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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
871e2a48a189968cac97002cfa27a51d1f9daccb | b2ed893d04f04eeaf7209187133de7431c476a96 | /user_net/gender_class.py | c62093ef4ce48cc8a023d0c95a5f5f11497668c8 | [] | no_license | liruikaiyao/workshop | 4b5221259f59ad504d87d73c31f5fa0e58d4a1f0 | 6dbde74e35ef02f5e92c76dcdd1909f1d0afb89e | refs/heads/master | 2021-01-17T16:09:13.248109 | 2015-08-05T09:43:21 | 2015-08-05T09:43:21 | 23,420,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | # coding=utf-8
__author__ = 'Carry lee'
from collections import Counter
import datetime
import urllib2
import json
from config.db import ICCv1, sh, utc, mapreduce
# 获取用户性别数据
class Gender(object):
def __init__(self, collection_name, begin_name, end_name):
self.collection_name = collection_name
s... | [
"liruikaiyao@gmail.com"
] | liruikaiyao@gmail.com |
87b11d42b884e37cf9618016f3c796bffb40d792 | 96cb70018587f32d8498a5b3bd98703b3bb10495 | /pymeasure/instruments/anapico/apsin12G.py | 1ac6df64e4565d4bcedb2e534ff58b0995868e03 | [
"MIT"
] | permissive | StevenSiegl/pymeasure | 724a8d48db7aaf97fd4d2b19e201d425f8918b28 | 1565c67d5507a61711a4f63e8235900081ee41d7 | refs/heads/master | 2021-05-22T20:07:15.255255 | 2021-01-17T16:15:07 | 2021-01-17T16:15:07 | 253,072,625 | 1 | 1 | MIT | 2020-12-21T17:53:34 | 2020-04-04T18:36:49 | Python | UTF-8 | Python | false | false | 3,078 | py | #
# This file is part of the PyMeasure package.
#
# Copyright (c) 2013-2020 PyMeasure Developers
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limit... | [
"bilderbuchi@users.noreply.github.com"
] | bilderbuchi@users.noreply.github.com |
b66d57a519311e8f0a4f226ea6a3f5a9d8595aa8 | 8fcae139173f216eba1eaa01fd055e647d13fd4e | /.history/scraper_20191220161655.py | f1703b47ad7e8f00adc89277b1d03b707bd4eb9d | [] | no_license | EnriqueGalindo/backend-web-scraper | 68fdea5430a0ffb69cc7fb0e0d9bcce525147e53 | 895d032f4528d88d68719838a45dae4078ebcc82 | refs/heads/master | 2020-11-27T14:02:59.989697 | 2019-12-21T19:47:34 | 2019-12-21T19:47:34 | 229,475,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module docstring: One line description of what your program does.
There should be a blank line in between description above, and this
more detailed description. In this section you should put any caveats,
environment variable expectations, gotchas, and other notes abo... | [
"egalindo@protonmail.com"
] | egalindo@protonmail.com |
a08e6d319ca3c3bf996f96299b7a1988523708b4 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_MM/YW_KCB_HASPRICELIMIT_GPMM_SHSJ_WDZC_108.py | 3b6c2efda3954622e0d4679be0aa3586e9e884dc | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("... | [
"418033945@qq.com"
] | 418033945@qq.com |
c27f0888bbcb61d88c852dc4101cc460b2e025fb | a50a4e874d3d203344a47bc7ad9c317b213eab90 | /optimise/submitJob.py | a51a218a60c530524478ad2e55045ee87b4b4c26 | [] | no_license | fjl121029xx/yarn-api-python | d5b61ca0695d5fdc4f8923d5814f6576c3c87509 | 4468609dea2d7630fd9fc3dabbe7c02ded7aa4a1 | refs/heads/master | 2020-12-04T02:02:40.913088 | 2020-02-27T08:08:18 | 2020-02-27T08:08:18 | 231,563,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'fjl'
import json
import requests
from urllib import request
import time
headers = {
'Content-Type': 'application/json',
'X-Requested-By': 'admin'
}
data = {
'code': "SELECT count(*) FROM `db_yqs_b_777777777`.`livy_watcher`",
'kind': "sql"
}
# ... | [
"sishengqikuo_xx@163.com"
] | sishengqikuo_xx@163.com |
f9d96bee14be78d6e39e6381b8587843e94a81be | dcbdea089e2b4df2a1933169b1d792dd3fa85835 | /tests/library/client_test.py | 6d5553516e2cc389cf0af09a918d57d842ba45eb | [
"Apache-2.0"
] | permissive | mahmud83/ibm-analytics-engine-python | 3cdaa1eb90d20798285a5e66e1fa29313e7ec996 | ed02832b63cbe2981af5b44917f78da539e1a950 | refs/heads/master | 2020-04-07T06:11:33.741937 | 2018-09-29T18:59:28 | 2018-09-29T18:59:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | from unittest import TestCase
from mock import Mock, patch
import sys
import tempfile
import os
import json
import requests
from requests.exceptions import RequestException
from ibm_analytics_engine import AnalyticsEngine, AnalyticsEngineException
class TestAnalyticsEngine(TestCase):
def test_invalid_api_ke... | [
"chsnow123@gmail.com"
] | chsnow123@gmail.com |
425d525054de4ed30057775581035a612747caa0 | 57422dc8cc8e9fa7e6cf8602fb3799ed3869d685 | /helper.py | 8a3d9cd6e0fc951ad2cb76838a49af21f83406aa | [] | no_license | kamakshidasan/cricket-topology | 6a9996e06fdc95f8ae12a5b6204c14525b64ea37 | 9482bc5963cd6081801342e9daaa6907fd5fb67d | refs/heads/master | 2020-03-24T23:57:18.933323 | 2018-08-02T09:52:40 | 2018-08-02T09:52:40 | 143,162,475 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | import os, re, shutil, pickle, inspect, csv, sys, math
import urllib, json
from urlparse import urljoin
############################
## Identifiers for scrapping cricket
############################
# List of constants
CSV_EXTENSION = '.csv'
PYTHON_COMMAND = 'python'
PAGE = 'page'
IDENTIFIER = 'id'
CONTENT = 'content... | [
"adhitya07@gmail.com"
] | adhitya07@gmail.com |
cf2eaf7e00ed5e442bcb2e5cec7034e2037df6a7 | d73cb659066925e17f35a084458a6418e851b6fd | /Bill Lubanovich - Introducing Python/04_exception_create.py | 3e79eaf14b8a08d1f50174a60a842e5ccd298f19 | [] | no_license | artag/Training | 11095dd67ae90f434666b156c4f778c54a754985 | 5ee29f5a77d33f682d8cf714a56cc4b0dfe40473 | refs/heads/master | 2023-08-31T08:10:21.535860 | 2023-08-30T21:32:16 | 2023-08-30T21:32:16 | 173,268,460 | 0 | 0 | null | 2023-03-06T20:03:34 | 2019-03-01T08:54:36 | C# | UTF-8 | Python | false | false | 171 | py | class UppercaseException(Exception):
pass
words = ('eeenie', 'meenie', 'miny', 'MO')
for word in words:
if word.isupper():
raise UppercaseException(word)
| [
"agart@mail.ru"
] | agart@mail.ru |
5fc3b805f173861239b6139fb22c85e5c1597b16 | 66559f752758913c3b741f764cb3316b64f821f6 | /NewsPortal/settings.py | 9e7aec79643886a818e117cfc0599b3c9fe8441c | [] | no_license | Dapucla/NewsPortal | 7d58c0c6515ee0ebac03bb9764a94791578cdd45 | 83cd0093b33bb249db08b26f0a65ab200f87e0eb | refs/heads/main | 2023-07-02T13:20:27.131750 | 2021-08-12T23:09:56 | 2021-08-12T23:09:56 | 375,814,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,134 | py | """
Django settings for NewsPortal project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from path... | [
"dapcula08@yandex.ru"
] | dapcula08@yandex.ru |
133e210f76872cc81160091bd693b155d285992a | fec543880620228a1e6e5f326d7b06d6a5c25a75 | /Tutorial_2_3.py | ce78a7d350877de6cd49aea6cc0d5ac438f090f3 | [] | no_license | andriyantohalim/PySide2_Tutorial | f6bf30b13d8bb150e41745f68e62e4ab525b5459 | 9317d252cfb1ec3067102b7e0dbf03e564ab8eda | refs/heads/master | 2020-04-22T05:49:35.658069 | 2019-02-14T15:05:41 | 2019-02-14T15:05:41 | 170,169,131 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | ##################################################
# TUTORIAL 2_3. Toolbar
# @TODO: No Icon displayed, maybe on Mac OS only
##################################################
import sys
from PySide2.QtWidgets import QMainWindow, QApplication, QAction
from PySide2.QtGui import QIcon
class Example(QMainWindow):
... | [
"noreply@github.com"
] | noreply@github.com |
ad139485701a6ef5cc4b1afc855f9bdbdfcb39fb | aa91bc5be73b742d37a726d2599ece7e45e6b82a | /tests/sentry/quotas/redis/tests.py | fd73a945c13ea3f506802b16cfe4d79fe2039e59 | [
"BSD-2-Clause"
] | permissive | vaginessa/BurntVeggies | 8f5f18d008bbe1bf0736b4adfb373624a83a9cf8 | 0bc4fe9bf0aa301e8314612cb8e56c50e1feab4a | refs/heads/master | 2020-07-12T09:55:30.669118 | 2014-02-04T01:34:05 | 2014-02-04T01:34:05 | 37,351,359 | 0 | 0 | BSD-3-Clause | 2019-01-18T06:17:33 | 2015-06-13T00:36:52 | Python | UTF-8 | Python | false | false | 2,623 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import mock
from exam import fixture, patcher
from sentry.quotas.redis import RedisQuota
from sentry.testutils import TestCase
class RedisQuotaTest(TestCase):
@fixture
def quota(self):
inst = RedisQuota(hosts={
0: {'db': 9}... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
f601c9bb6fd53fe0bef6a60838676b07583a7dda | 64290261c1466f0bcac0c302f59783cccad740a9 | /googletest/googletest/scripts/gen_gtest_pred_impl.py | 7cee3c7f7815849dcb2831dd5ed530a4457ca8ec | [
"BSD-3-Clause"
] | permissive | qinlang3/LaplacianFilter | 49560ec7933658db99710699448fd08f8f3c990f | dd5c1b150b14ff218b8c5d6cbf1a4bb644f13e04 | refs/heads/main | 2023-03-27T00:44:56.166409 | 2021-03-27T06:55:00 | 2021-03-27T06:55:00 | 347,609,035 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,618 | py | #!/usr/bin/env python
#
# Copyright 2006, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice,... | [
"kevinlang.qin@mail.utoronto.ca"
] | kevinlang.qin@mail.utoronto.ca |
0e1c61643756a0babee382e35dc2724271ea21a6 | 3785be3d8f6e852cfdd46e426747e7aaad1461ed | /for_format.py | 88c09c863a33eeb2c9a22caabaeb1b21b682625c | [] | no_license | ONOentrepreneur/python-code | d18a6f1beabcc8a4eedd1077a49458fc8593a16d | 7246f48b65d8d2e18291debd376796afaf88c6ec | refs/heads/master | 2021-10-19T18:58:48.506357 | 2019-02-23T09:14:34 | 2019-02-23T09:14:34 | 93,308,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | v=0
for i in range(1,10):
v+=i
print("{0}を足すと{1}".format(i,v))
print("1から10を足すと...{0}".format(v))
| [
"yuya27954510@icloud.com"
] | yuya27954510@icloud.com |
287dd1a5e3fdc62d41b3076b4cad6580e6f9daca | e62b02d6c028612a7dce488344a0246abd5a7433 | /src/point_plane_net/conv_onet/scripts/dataset_scannet_depth/check_max_depth_value.py | 86ab749ac585ddc87dc7925f085fefe690c32b91 | [
"MIT"
] | permissive | daniil-777/dynamic_geo_convolutional_onet | 335688016870c14ea08af676fa768d5c1175c348 | c4db94a64c8b2f2c83ecb507b02b9aecd4c7bb62 | refs/heads/main | 2023-02-24T14:26:45.772083 | 2021-01-30T20:36:12 | 2021-01-30T20:36:12 | 322,916,712 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import os
import numpy as np
import trimesh
import glob
import imageio
import sys
import torch
from tqdm import tqdm
from os.path import join
item_path = '/is/rg/avg/mniemeyer/project_data/2020/scalable_onet/data/ScanNet_depth14/scenes'
item_path = os.path.join(item_path, os.listdir(item_path)[0])
depth_path = join(i... | [
"daniil.emcev.ru@yandex.ru"
] | daniil.emcev.ru@yandex.ru |
9c1700b52b12a939eb75cda0d99d195d51d4f086 | a6df69adeda3c2b08c988e023ca5cac63a0d03cf | /tests/multiviewica/test_mvica.py | 0119b3e63c90fbf91db1d0ae90e39c1c05e56d90 | [
"MIT"
] | permissive | hugorichard/mvlearn | 89cf575070e847b7002cbecc185ddfa4431511b6 | 688548b55ca3b61ea4bcc3b339cee140d03c0adc | refs/heads/main | 2023-04-03T00:42:45.017104 | 2021-03-18T14:50:21 | 2021-03-18T14:50:21 | 294,060,397 | 0 | 0 | Apache-2.0 | 2020-09-09T09:06:43 | 2020-09-09T09:06:43 | null | UTF-8 | Python | false | false | 5,545 | py | # BSD 3-Clause License
# Copyright (c) 2020, Hugo RICHARD and Pierre ABLIN
# All rights reserved.
#
# 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 not... | [
"noreply@github.com"
] | noreply@github.com |
c02215ad3b73954a6dbd3a4c1899a46d2ae927eb | 45cd72d5f000f25c5efcd31bbe4547008d944c24 | /AlgoProjectLatest/venv/Scripts/easy_install-3.7-script.py | 5b7e22c5741d52a3e96b10adeae227b2d69659d4 | [] | no_license | fatinqnahar/Best-Flight | 2b09fa1b7a34bc218d9b0c1b64ce6a7775093409 | 419bbfc568a9279903c48882a4910772b79777f0 | refs/heads/master | 2023-04-24T11:45:51.239479 | 2021-05-04T14:11:03 | 2021-05-04T14:11:03 | 364,277,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | #!C:\Users\Amirah\PycharmProjects\AlgoProject\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script... | [
"fatin.qistina998@gmail.com"
] | fatin.qistina998@gmail.com |
52cbb065169570a9caa1dc72b04b06eb5949d804 | 8c59093c20719903cee2ddc348544a224f6ecf47 | /mongo_rest_django/bricks_rest_api/bricks_rest_api/wsgi.py | 6b91726d25fc59366b4ed1dab1ad0d8c90a4a33e | [] | no_license | anhuaxiang/django_rest_test | 6679e12470048deda546c5061edc677271046266 | bc946d50ef8f85d78de67d9ca84430e6a50d1ade | refs/heads/master | 2020-03-27T04:30:17.749535 | 2018-08-24T10:16:58 | 2018-08-24T10:16:58 | 145,946,140 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for bricks_rest_api project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"1342181530@qq.com"
] | 1342181530@qq.com |
6b067f8119195dc5b8ec6b3d534aebb0b9424bb5 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_Combo_Saigon_Comparison_Smart_Redundancy.py | 0e22c37e3a9aa75eeee259cd6893243d98da5d95 | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,411 | py | '''
Udpate @2011/9/8, by cwang@ruckuswireless.com
Update Content:
1) Append TCID to test cases so that report to test link directly.
2) Update Level hierarchical for test cases.
'''
import sys
import random
import libZD_TestSuite as testsuite
from RuckusAutoTest.common import lib_KwList as kwlist
def defineTe... | [
"tan@xx.com"
] | tan@xx.com |
5de0c3ecbd041cd5a3bda07015a1c63b74c5eff3 | be1c1bb17f267b5fb2c440f70e97c6442ebde819 | /componentes_basicos/botao.py | 100b15105c196a30f6cfb2f8efa5c8f88e636afa | [] | no_license | leuribeiru/QtforPhyton | 2fb4edebcee00c6acda55d87bb8d0359e3c3c1b7 | ee3ca119d03ae09012e2a564b66b6f0703727978 | refs/heads/main | 2023-01-11T01:17:32.731045 | 2020-11-14T02:46:02 | 2020-11-14T02:46:02 | 311,734,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | import sys
from PySide2.QtWidgets import QApplication, QMainWindow, QPushButton
aplicacao = QApplication(sys.argv)
janela = QMainWindow()
# setGeometry(esquerda, topo, largura, altura)
janela.setGeometry( 100, 50, 300, 200 )
janela.setWindowTitle("Primeira Janela")
# instância de um botão dentro da janela
botao = QPu... | [
"leuribeiru@gmail.com"
] | leuribeiru@gmail.com |
a6d3629bd67191a216b820d9cbbab017175d10e4 | 4f725d021518117851cb4607c8dda0346abbcaf2 | /bigdata_moretv/bigdata/bigdata/settings.py | ca016cc2af514b0908f8c9dcc471e47ddd1df6e3 | [] | no_license | milespeng/mydjango | 424515d38cd4aeeb2baaa87a955f514134b80d6e | d6b9f5a21bdfb08e077905cce81dc156ee71de83 | refs/heads/master | 2020-03-08T03:24:44.085175 | 2018-04-04T09:24:26 | 2018-04-04T09:24:26 | 127,890,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | """
Django settings for bigdata project.
Generated by 'django-admin startproject' using Django 1.11.2.
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 os... | [
"peng.tao@whaley.cn"
] | peng.tao@whaley.cn |
e85a4f334cd6cde981e33cfde51223548351b8c6 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008-EOL/applications/games/openarena-data/actions.py | a3a100c26fc8ba76e36b5d9c0ce8e1bd9ef8e90c | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
import os
NoStrip = "/"
WorkDir = "o... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
5aae8e966b5c54cd412a07b852f046b196f7080b | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/shared/fortifications/controls.py | 5b33b5497ab7e2d68156385958d6c1d445f7bd76 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 40,137 | py | # 2016.02.14 12:41:27 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/fortifications/controls.py
import BigWorld
from functools import partial
from operator import attrgetter
from debug_utils import LOG_ERROR, LOG_DEBUG
import fortified_regions
from gui.shared import g_eventBus, events, EVENT... | [
"info@webium.sk"
] | info@webium.sk |
ca21b5945e98da6ee90e624bc7ccd1fd01b3f5bd | a43e6385ae9128ff5eb9850161f2015dcf1c95ac | /count_letter.py | 77f3b66e4f920fe4ed4313b8d6afcd1699d5eac8 | [] | no_license | Alymbekov/tasks_of_python_crash_course | 18289ac99e3751cdc691c15492630f67388737dd | e0a58b23b2b89ee01c40a96661e50a63cf1513ca | refs/heads/master | 2020-04-21T03:00:16.846204 | 2019-02-05T16:27:55 | 2019-02-05T16:27:55 | 169,271,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | for x in range(1,21):
print('Считаем %s' % x)
list_of_numbers = []
for x in range(1,1000001):
list_of_numbers.append(x)
print(max(list_of_numbers))
print(min(list_of_numbers))
print(sum(list_of_numbers))
for i in range(1,21,2):
print(i)
for x in range(1,21,3):
print(x)
| [
"maxim.makarov.1997@mail.ru"
] | maxim.makarov.1997@mail.ru |
79fae613f8a13fe0d22c0c35588c39344289dbd1 | 0561900bf01598e6c453131952fe4f62b2f9c6e9 | /week1/1-IO-Simple-Problems/n_dice.py | 61db22c92341f0586f24b2693d212ecc08e2f9da | [] | no_license | Rositsazz/HackBulgaria-Programming0 | 497f40eefa373b024389c58e7d83aff3ffc547ac | 0590d7430ff0aadfb737593a04d3ab1eb894f8d3 | refs/heads/master | 2016-09-06T09:09:19.416648 | 2015-08-11T10:02:49 | 2015-08-11T10:02:49 | 30,868,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from random import randint
number = input ('Enter sides:')
number = int(number)
print ('The dice rolled:')
rolled =randint(1,number)
print(rolled)
| [
"ross_zz@mail.bg"
] | ross_zz@mail.bg |
2453c6123ee35125969e723e32bbc3ab9182653d | b00f7fe6fef51ac814baae7327c5e5fd13419d98 | /PyGameGameRefactor/data/Widgets/Button.py | 25a6bf1ebceec5821b2292cc45dfe48749e44026 | [] | no_license | JamesCollison/current_projects | 3cdfb304f6f3b65298a2245692e95b41e14bfbd6 | b2462eeaf13eb5a50c7c6c822a3819727c1f7118 | refs/heads/main | 2023-03-29T01:41:55.527547 | 2021-03-24T22:53:07 | 2021-03-24T22:53:07 | 351,235,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,586 | py | from .Widget import *
class Button(Widget):
def __init__(self, rect, command, **kwargs):
Widget.__init__(self) # TODO for later...
self.text = None # to make warning go away...
self.rect = pg.Rect(rect)
self.command = command
self.clicked = False
self.hovered = Fa... | [
"james.collison@my.jcu.edu.au"
] | james.collison@my.jcu.edu.au |
2fbd773bb02f8799eaaf4f2ac52581d52e45f694 | df92d6ad9c776320a597a574bd75f3aab2982de0 | /output/html5/deleted/users/fushman/cd978a337d71/Run_test_6c/out_ani.py | 571a72e2dfc680039afc833dc54cee04420f5237 | [] | no_license | TracyYXChen/SES_web | fa6eb41c5c18562508f9d1eb2d14c07f58f93b3c | 016dae4260c07398a9824e552b97c07ff6060f7d | refs/heads/master | 2020-04-28T18:53:07.640170 | 2019-03-13T20:21:36 | 2019-03-13T20:21:36 | 175,492,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # axes plot script
from pymol.cgo import *
from pymol import cmd
from pymol.vfont import plain
#create the axes object, draw axes with cylinders colored red (Dx), green (Dy), blue (Dz)
obj = [
CYLINDER, 16.09, 0.40, 1.66, -14.52, -1.12, -1.52, 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,
CYLINDER, 1.79, 4.15, -18.15, -1.32... | [
"ychen151@terpmail.umd.edu"
] | ychen151@terpmail.umd.edu |
4c9daf4e8525bebebfa29428d85d4ccaa95340bc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02911/s147801842.py | 38b45ab7d54781bdfa0d8f3c43ca05b08b88ac90 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import numpy as np
N,K,Q = map(int, input().split())
n = [0]*N
for _ in range(Q):
n[int(input())-1] +=1
nn = np.array(n)
ans = K - Q + nn
for an in ans:
if an > 0:
print('Yes')
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
941655e62c7eee31262492505c51c5a69db54a1c | 61336264d1b3662d59f59a7a5b8ba69ea2aa6c19 | /src/util/drishti.py | 0b04ca1eb58c5eadb8bfa91ad0da06de8d8991e0 | [
"MIT"
] | permissive | dermatologist/drishti-plan | 6d8cbb34ea0c19cb5c1e35a54665feb3641ad338 | 35e8a493ffcb754efdef374a610257c2aee75e11 | refs/heads/develop | 2023-05-10T16:39:38.625918 | 2018-12-30T02:55:06 | 2018-12-30T02:55:06 | 155,443,971 | 1 | 0 | MIT | 2023-05-01T20:13:48 | 2018-10-30T19:25:48 | Python | UTF-8 | Python | false | false | 3,228 | py | import os
import fhirclient.models.bundle as bundle
import fhirclient.models.careplan as careplan
import fhirclient.models.codeableconcept as codeconcept
import fhirclient.models.fhirreference as reference
import fhirclient.models.identifier as identifier
import fhirclient.models.patient as patient
from fhirclient imp... | [
"github@gulfdoctor.net"
] | github@gulfdoctor.net |
507fbf29090596be9011733ac8e20583dd595808 | 6b60ddc66bf37de64a8171b505cb18660a3a54e0 | /manage.py | 27fcc9c0c3553fe440d0f7a44c04915081745316 | [] | no_license | RyoJ/DBcalc | 5a864420ad1e09d20c740dc30de755bf13b6c92c | be256ebadd9fbd2d714b6b86c3b6df3062b0b4bd | refs/heads/master | 2020-06-12T02:59:27.193323 | 2019-06-27T23:38:24 | 2019-06-27T23:38:24 | 194,175,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dentaku.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"ec2-user@ip-172-31-40-126.us-east-2.compute.internal"
] | ec2-user@ip-172-31-40-126.us-east-2.compute.internal |
fbad7f40d93d3c5b698af8539c64109640c6c720 | 6b82695358c309bd09da9153dbedf26720fa7dc6 | /2021/17.py | 8c9b69721eb351fd8c9f057d381518f75890eeac | [] | no_license | viliampucik/adventofcode | 0e7b4cca7d7aaed86bdc2b8c57d1056b4620e625 | e7e0ab44ace3cf762b796730e582ab222a45f7d0 | refs/heads/master | 2023-01-04T18:19:07.064653 | 2022-12-26T19:42:59 | 2022-12-26T19:42:59 | 226,700,744 | 33 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | #!/usr/bin/env python
from collections import defaultdict
import re
xmin, xmax, ymin, ymax = map(int, re.findall(r"-?\d+", input()))
print((ymin + 1) * ymin // 2)
v, n = 0, int((xmin * 2) ** 0.5 - 1) # n-th member of arithmetic progression
# Fast, precomputed steps version
dxs = defaultdict(set)
for dx_init in rang... | [
"viliampucik@users.noreply.github.com"
] | viliampucik@users.noreply.github.com |
9a9a23998e7101a9cf5bc48aa9e53961e5bb0c4b | f9821e7200c1be14a8d15fd148c35fe36c2c9f15 | /task3/map.py | f0949fbeabbe5da51d79458ed6be86a465f9beb3 | [] | no_license | fducau/BD_A_01 | b3ae7d137ebd28693fb9f633645d56bb80f32f81 | 7860a792aaecb96d2b389eac0558303e21dbcd21 | refs/heads/master | 2021-01-21T05:14:31.257829 | 2017-02-26T22:06:30 | 2017-02-26T22:06:30 | 83,157,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | #!/usr/bin/python
# Call:
# hjs -D mapreduce.job.reduces=2 -files \
# /home/fnd212/BD/BD_A_01/task3 -mapper task3/map.py \
# -reducer task3/reduce.py -input \
# /user/ecc290/HW1data/open-violations.csv \
# -output /user/fnd212/task3/task3.out
import sys
import csv
o_header = ['summons_number', 'plate',
'... | [
"fnd212@nyu.edu"
] | fnd212@nyu.edu |
808c56f1953e3dff10b5545f5077b54d924b733f | b3ce05ef8d01f2a656639075cb7da987a19fa43b | /posts_app/migrations/0014_auto_20200621_2337.py | 2b9e51eadfd8d00d456a431eb28517c726fe4ccd | [] | no_license | Deltapimol/posts | 79113377fb13088256b0999dd2f6180f3aef214f | a4fed07af11a2916479c5372c41f702b338d772f | refs/heads/master | 2022-11-07T02:31:36.843042 | 2020-06-28T18:30:50 | 2020-06-28T18:30:50 | 268,334,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # Generated by Django 2.2.12 on 2020-06-21 18:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts_app', '0013_auto_20200621_1844'),
]
operations = [
migrations.RenameField(
model_name='replytoreply',
old_name='this_... | [
"43440596+Deltapimol@users.noreply.github.com"
] | 43440596+Deltapimol@users.noreply.github.com |
37bbb126df8bb723e3a9447667d805ec0a4da682 | f434c6057ae15568f2c6c2971259a9eaee46d918 | /pulse_API_3.py | 99c74242fdb4e95c8e00d41b7ae7a5f2b0b9b146 | [] | no_license | jwatson-CO-edu/py_music_mgmt | 3542f5e93b223f7c314678c80230a86efeff61d9 | 1dd31fd5d07b2c15034b6f3cd27e512acecedd5a | refs/heads/master | 2021-07-14T09:02:20.381122 | 2021-01-29T01:11:49 | 2021-01-29T01:11:49 | 230,323,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,943 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ~~ Future First ~~
from __future__ import division # Future imports must be called before everything else, including triple-quote docs!
__progname__ = "pulse_API.py"
__version__ = "2019.05"
__desc__ = "Query the API to keep it from dying"
"""
James Watso... | [
"james.watson-2@colorado.edu"
] | james.watson-2@colorado.edu |
6305cc21beb1ececb54b6951ddd244b010d33513 | 677002b757c0a1a00b450d9710a8ec6aeb9b9e9a | /tiago_public_ws/build/demo_motions/catkin_generated/generate_cached_setup.py | bf8cec67fb5fb8b4e4d0c897fb4496c08f278078 | [] | no_license | mrrocketraccoon/tiago_development | ce686c86459dbfe8623aa54cf4279021342887fb | a0539bdcf21b67ab902a4649b516dcb929c54042 | refs/heads/main | 2023-06-16T19:39:33.391293 | 2021-07-08T21:20:03 | 2021-07-08T21:20:03 | 384,249,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"ricardoxcm@hotmail.com"
] | ricardoxcm@hotmail.com |
87f4145d63f887989e347080608661feabbb110a | 80d2edd9a88f43b8cac6db3dcff765eec70ae742 | /src/registration/contrib/autologin/tests.py | e0d4c246b0f7f97e935af61ac7af5d3ebfeff1ca | [] | no_license | lambdalisue/django-inspectional-registration | e66004e66cd3255af25706556ebc0b748122cf32 | 9a4adc6587d343f553f41e570508bc6f4ee0a5c5 | refs/heads/master | 2021-06-26T10:55:29.980298 | 2016-11-15T04:02:52 | 2016-11-15T04:02:52 | 3,525,101 | 28 | 22 | null | 2020-04-09T07:40:36 | 2012-02-23T12:23:56 | Python | UTF-8 | Python | false | false | 2,937 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
"""
__author__ = 'Alisue <lambdalisue@hashnote.net>'
from django.test import TestCase
from django.contrib.auth.models import AnonymousUser
from registration.backends.default import DefaultRegistrationBackend
from registration.tests.mock import mock_req... | [
"lambdalisue@hashnote.net"
] | lambdalisue@hashnote.net |
41c72df5a5313f6f791caee351821355ddf7853f | 59f16317714656f40f4ef2b5dbaf84e8a42316e9 | /get_clear_sky_days.py | 5982604115bb80e38d1d63b5328e2addb423a152 | [] | no_license | mssamhan31/CANVAS | b6820464dc3ce9ac60af1df63a782c50cd84e152 | 71e6e04e39cbb2ae222f84e8e088375589ab97ed | refs/heads/main | 2023-05-17T10:33:20.689432 | 2021-06-07T07:26:28 | 2021-06-07T07:26:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,445 | py | # Useful functions
# Import required things
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
# Get clear sky days
# def get_clear_sky_days()
# Get first month of data
# df = pd.read_csv('F:/irradiance_data/1_min_solar/adelaide/sl_023034_2020_01.txt')
# 2... | [
"n.stringer@unsw.edu.au"
] | n.stringer@unsw.edu.au |
0fce58ebe41868e1449864353d86af15ba8d3c30 | a4d0be7303a3cf40ef83e912ec5d8ed06ac55eb2 | /2020_10_01_tictactoe_AI.py | acf4e79bb1956e505dd927448eddc1f1eeea5959 | [] | no_license | wezmiolem/TicTacToe-AI | 2c9e00826436f527abc0a270f5bc955afc9963c9 | f450a04edde4b3a6acde7fac8e1bf3dce03879e5 | refs/heads/main | 2023-08-04T23:35:55.983231 | 2021-09-14T08:27:46 | 2021-09-14T08:27:46 | 406,285,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,689 | py | import os
init_board = [['.','.','.'],['.','.','.'],['.','.','.']]
ABC = ["A","B","C"]
A123 = ["1","2","3"]
a_len_init_board = len(init_board)
def game_board():
os.system('cls' if os.name == 'nt' else 'clear')
print(" "," ".join(A123))
for i in range(a_len_init_board):
print(ABC[i... | [
"noreply@github.com"
] | noreply@github.com |
bb3e9bf5343bd336e788fc1b9d8d633f5f747b2b | dd3229c9a5ccf936e72d4e624e07ffdaf821cf5b | /tests/unit/test_table_creation.py | c17adcba9b8d32aa5cc31d590e6c06ef25109bd1 | [] | no_license | AndriiShchur/Github-Repository-Analysis | ba9aee94d6031c2875d4aa20501fb4a9e9b2724e | 270f4257832ed50a62fdb19d58f94ca31caedc22 | refs/heads/main | 2023-02-08T10:34:39.318288 | 2020-12-23T09:01:30 | 2020-12-23T09:01:30 | 323,592,569 | 0 | 0 | null | 2020-12-23T09:01:31 | 2020-12-22T10:23:24 | Python | UTF-8 | Python | false | false | 2,211 | py | import pytest
import getpass
import pyodbc
import pandas as pd
from dotenv import load_dotenv
import os
import math
print("Load env variables")
project_folder = os.getcwd() # adjust as appropriate
load_dotenv(os.path.join(project_folder, 'env.dist'))
server = os.getenv("SERVER")
database = os.getenv("DB_N... | [
"noreply@github.com"
] | noreply@github.com |
b3acc2c2f86299eaca7b23f8d1a00c35a3b61d33 | 252c2fee3bc8b4dd092fc3203bb9f76c51c8e4f1 | /tests/testData/visualTest.py | 1111b3544bede89f6d38fecc277a86838454ec56 | [
"MIT"
] | permissive | typemytype/booleanOperations | d9711e212c99921c23900c6fd0f18d8520100b61 | 25f709175b471508a169be790778b80ec328da7d | refs/heads/master | 2022-11-14T22:20:31.913043 | 2022-06-05T16:40:59 | 2022-06-05T16:40:59 | 14,314,043 | 34 | 23 | MIT | 2022-10-24T08:03:32 | 2013-11-11T21:35:22 | Python | UTF-8 | Python | false | false | 2,005 | py | # run in DrawBot RoboFont extension
border = 20
dotSize = 10
offDotSize = dotSize * .5
try:
CurrentFont
except NameError:
class CurrentFont(dict):
glyphOrder = []
def save(self, path=None):
pass
try:
saveImage
except NameError:
def saveImage(*args, **kwargs):
pass... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
ee87e6aa5b95880e017fd14693c6070a0ad7a835 | bca5c9f713629f478512735eb7696982fe75b7f8 | /jacobian.py | eb6c944e52faea78da5ba28e18488246fbdfa27b | [] | no_license | karabutov/robot-3RRR | e994e7e47ee34d05546ece50b077edbd1c445366 | 6cbef2fd9b30b4c1ee554bd2ee54a99bbfda8799 | refs/heads/master | 2021-04-06T20:36:19.428472 | 2019-05-12T20:45:53 | 2019-05-12T20:45:53 | 125,269,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | import math
import numpy as np
import scipy.optimize as so
size_side = 1.
k = (2./3.) * (size_side * math.sqrt(3.) / 2.)
l = 1.
a_phi = 0.;
gamma1 = math.pi * (0.5 + 1. * 2./3.)
gamma2 = math.pi * (0.5 + 2. * 2./3.)
gamma3 = math.pi * (0.5 + 3. * 2./3.)
x1 = 0.0
y1 = 0.0
x2 = 3.4
y2 = 0.33
x3 = ... | [
"noreply@github.com"
] | noreply@github.com |
c7236d2392d3e52ec8473bc9b970f3634cb1872a | a408222d976dde673e941e14a53e7ecd1ec1b974 | /test/test_client_async.py | 4047ce2154fb05419f35415f728afa63fff8e772 | [
"MIT"
] | permissive | yangliping-ql/python-snap7 | 12686c02e46b932aec8230ac10f72076a067bd7b | 0731267a025c6ac7a7b02ba574ddcb132a52e925 | refs/heads/master | 2023-01-04T04:01:17.107334 | 2020-10-28T08:56:12 | 2020-10-28T08:56:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | import logging
import time
import unittest
from multiprocessing import Process
from os import kill
import snap7
from snap7.server import mainloop
logging.basicConfig(level=logging.WARNING)
ip = '127.0.0.1'
tcpport = 1102
db_number = 1
rack = 1
slot = 1
class TestClient(unittest.TestCase):
@classmethod
def... | [
"noreply@github.com"
] | noreply@github.com |
1668a7aae7090c8534830f2e645e2471e2e7873f | b06c6847089ff73dcf1e6094b048bc312022a156 | /utility.py | 0261478127e3fe477868be94cb907e28add1b6c4 | [] | no_license | yqli-ds/Recurrent-DirBN | 743fb93b8a30dc713a76ad1b6f181eb8e80889ab | 68f89d200230f4ab443a4c41249487c0337cd18d | refs/heads/main | 2023-04-08T16:57:07.360221 | 2021-04-11T06:30:11 | 2021-04-11T06:30:11 | 356,785,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,360 | py | import numpy as np
import scipy
import copy
import scipy.io as scio
from sklearn.metrics import mean_squared_error
from math import sqrt
from scipy.stats import poisson, norm, gamma, dirichlet, uniform, beta
import math
def load_data_fan(data, dataNum_1, dataNum_2, Times):
# Input:
# data: Original data T*N*... | [
"noreply@github.com"
] | noreply@github.com |
8c0a6958d0fc28783f5c750e3591c16f0966e082 | 6f401aed6b736b07224c5da774fef5124536e4c3 | /automate_the_bouring_stuff/if_else_exaple.py | 1a38bf510adbb9ccad2150d54bbc03ff508275f3 | [] | no_license | Fumitus/First_Python_lessons | 871a417cdfe828c68da1003e24d5e93de5a466dd | 07a161c886a00ddb86eca3ede32e82df00b938a8 | refs/heads/master | 2020-04-10T06:49:20.666396 | 2018-12-07T19:23:41 | 2018-12-07T19:23:41 | 160,865,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | password = 'swordfish'
if password == 'swordfish':
print('Acces granted')
else:
print('Wrong password')
| [
"andrius.baikstis@biotecha.lt"
] | andrius.baikstis@biotecha.lt |
cdd0fb9b79616b82673e39202061c831e37586b3 | 7636292e3e32fa6fea4be6f2491b3bd303e68867 | /MethodsPractice/003无重复字符的最长子串.py | 16bfa38e26e722ad9c94d29122f7c5f013b82c1b | [] | no_license | MariOdyssey/Weeping-Hall | 0d595eea6d22c9c928b42daaef0712a3dbb44fda | d064068d92a65a8e94fa77583c9b4d4ccc529111 | refs/heads/master | 2020-04-17T16:27:17.210611 | 2019-09-07T18:52:26 | 2019-09-07T18:52:26 | 166,740,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | class Solution:
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
tempList = []
for i in s:
if not i in s:
tempList.append() | [
"noreply@github.com"
] | noreply@github.com |
dd24036430468b0bc02e658fe3954b26de047e3b | 69c470989c058fac9cd1a99e5bf2454e129d44dc | /assignment1/cs231n/classifiers/k_nearest_neighbor.py | c22d095d14640cda31b2131a381ecdaa1951a8b3 | [] | no_license | PedroFerreiradaCosta/CS231n-Solutions | 34efa55916936cf43c20f0ce78acb08913c146f5 | a77f72294618307f87922bc16817f7e218891f29 | refs/heads/master | 2022-12-14T03:58:06.042204 | 2019-11-12T14:42:49 | 2019-11-12T14:42:49 | 196,404,053 | 3 | 0 | null | 2022-12-08T05:18:44 | 2019-07-11T13:50:33 | Jupyter Notebook | UTF-8 | Python | false | false | 8,924 | py | from builtins import range
from builtins import object
import numpy as np
from past.builtins import xrange
class KNearestNeighbor(object):
""" a kNN classifier with L2 distance """
def __init__(self):
pass
def train(self, X, y):
"""
Train the classifier. For k-nearest neighbors t... | [
"pedro.hpf.costa@gmail.com"
] | pedro.hpf.costa@gmail.com |
957b402ca0ef50b2e6fe249c5db02dfa2e581343 | af683cae09e2ab3b49d50995f681b5616eb1b16c | /FC.py | 532353e2abdded1b03b8a1013b0cdad86e81eb76 | [
"MIT"
] | permissive | cutierobot/Folder-Compare | aefb967c8186a9eac2ab4bcdfaedaa097ca05139 | 206bdba879690ca0816d6b25f93f9aa2bb9100dc | refs/heads/master | 2020-04-13T03:28:06.564768 | 2019-01-08T11:15:40 | 2019-01-08T11:15:40 | 162,932,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,463 | py | # \033[1;32;40m green
# \033[1;35;40m purple
# \033[1;34;40m Bright Blue
# \033[0;37;40m Normal text
# \033[2;37;40m Normal text underline
import filecmp
import sys
# folder1="/Volumes/Mikaela\'s Hardrive/TV SHOWS"
# folder2 = "/Volumes/Grayson/Tv shows/"
# dc = filecmp.dircmp(folder1, folder2)
# dc.report_full_closur... | [
"mikaelasomerville@gmail.com"
] | mikaelasomerville@gmail.com |
a85ca2c33438c8d0eb7d6e5178f79143aa5e13ea | 24d6790dedd7473002513b2d58aa7e03e1b9b7c2 | /Week4/lesson_files/using_hint.py | 67fbed258d62b75f184596f05e61855a747d0c34 | [
"MIT"
] | permissive | italoag/M101P | 3b50ddcc9935f6977d95f23dfc5aa7ee56a716e7 | 708bdd793735228f820f3f50f57c44ce8fc637ef | refs/heads/master | 2021-01-01T20:01:30.181394 | 2013-09-24T02:29:58 | 2013-09-24T02:29:58 | 12,883,560 | 0 | 0 | MIT | 2020-08-13T20:06:29 | 2013-09-17T01:43:13 | Python | UTF-8 | Python | false | false | 449 | py |
import pymongo
import sys
# establish a connection to the database
connection = pymongo.Connection("mongodb://localhost", safe=True)
# get a handle to the test database
db=connection.test
foo = db.foo
query = {'a':40000,'b':40000, 'c':40000}
try:
doc = foo.find(query).hint([('c', pymongo.ASCENDING)]).explain... | [
"italo@amorimgomes.com.br"
] | italo@amorimgomes.com.br |
d9711c688ed5e63261e8c5597b0c4d6284345508 | bcc6ba85119503185759f17ccc89c32699b9d82f | /lib/stochastic/tauleap.py | 041531859c706eea9ac1d70b768e23da13d0676d | [
"MIT"
] | permissive | JordiVillaFreixa/ByoDyn | 01ca756c0cd50b42ccb35585c174ec02c6349877 | be5554323299d806ed2def5e0e68207fc22367fa | refs/heads/main | 2023-08-07T08:53:25.448622 | 2021-10-07T09:25:41 | 2021-10-07T09:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | #
# Project: ByoDyn
#
# Copyright (C) 2008 Alex Gomez-Garrido, Adrian L. Garcia-Lomana and Jordi Villa-Freixa
#
# Author: Pau Rue-Queralt
#
# Created: 2008-06-05 by Pau Rue-Queralt
#
# This application is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# Licens... | [
"jordi.villa@uvic.cat"
] | jordi.villa@uvic.cat |
4f949d20d79e29074f35b084d9b4298331cd0dc0 | 6d3b383497283fd479162c719fabf033cdcf076c | /groupAnagrams.py | 6e2a1d0c282d2f00e96e2b7d10d791a630ffcfd6 | [] | no_license | zunzunwang/python-leetcode | ea15b62929174397f39553280466c29a5883f235 | 2091a45cf825e3d1f8c318ed4e7d00f7fe97d017 | refs/heads/master | 2021-05-22T21:21:24.411217 | 2020-04-28T11:58:28 | 2020-04-28T11:58:28 | 253,101,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | import collections
from typing import List
'''
Given an array of strings, group anagrams together.
Example:
Input: ["eat", "tea", "tan", "ate", "nat", "bat"],
Output:
[
["ate","eat","tea"],
["nat","tan"],
["bat"]
]
Note:
All inputs will be in lowercase.
The order of your output does not matter.
review
pthon... | [
"zunzunwang@gmail.com"
] | zunzunwang@gmail.com |
ee3fa06556b05ef72b5e2a9ecbaaafb5b7c8d4d4 | 4f51b503c321f31a1088e1c884f2853d9ba127c2 | /flour_problem.py | 2b3b36f5941a103d38a8588e52496cf54e56202e | [] | no_license | pi-q/gluten_free_flour_optimization | 751e698b178e75bb3247e715fc10842540ae9286 | af93a8e6f2f30ea05f4ba3ea263661ee694a3b6f | refs/heads/main | 2023-01-12T23:50:48.834648 | 2020-11-16T14:29:52 | 2020-11-16T14:29:52 | 312,671,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | # https://scipy-lectures.org/advanced/mathematical_optimization/#optimization-with-constraints
import numpy as np
import scipy.optimize
#https://www.fqmc.org/vivre-sans-gluten/infolettres-anterieures/valentin-2018/farines-sans-gluten
#https://tools.myfooddata.com/nutrition-facts/172023/100g/1
#Assume water ~ 100% - ... | [
"marie.charbonneau@uwaterloo.ca"
] | marie.charbonneau@uwaterloo.ca |
22d318dd89abba5341491b3b6eb850002e4371b4 | 51c5f1bec4c64f2f4596404dc54ac19de7cbc0f4 | /Python/LT/listas.py | b40a034008e1a46938f70f5a6b67cf00703a0db7 | [] | no_license | jos3s/Linguagens | 53c49f6cb9849562d3f95a9125158d030ba2a096 | a72c240e87b81bc9676de32da53fc01fb3130661 | refs/heads/master | 2020-11-24T03:30:33.173559 | 2020-04-17T00:19:45 | 2020-04-17T00:19:45 | 227,946,835 | 1 | 1 | null | 2020-02-11T15:10:48 | 2019-12-14T00:59:03 | Python | UTF-8 | Python | false | false | 437 | py | valores=[]
pares=[]
impares=[]
while True:
valores.append(int(input('Digite um valor: ')))
opc=str(input('Quer continuar? [S/N] '))
if opc in 'Nn':
break
for i,v in enumerate(valores):
if v%2==0:
pares.append(v)
else:
impares.append(v)
print(f'Os valores digitados foram ... | [
"karatedkgt17@gmail.com"
] | karatedkgt17@gmail.com |
d5e6c3f2b59984b852d3eb925817cf4a395ad31e | bec2ccc5f19575518649932fb3f2853adf54c11e | /blog/myapp/migrations/0001_initial.py | d0dd55015f40c321d0a6d361bcfc47b094a5139d | [] | no_license | liuxinqiqi/djangosite | 08831c63c5fa5a4c8a14dd4bf8beed62138eb58a | 9a1b425cbdb73feb34d7fb1f60c3f2923e262d64 | refs/heads/master | 2022-12-13T11:00:07.039593 | 2017-08-12T08:40:03 | 2017-08-12T08:40:03 | 100,082,409 | 0 | 0 | null | 2022-12-08T00:43:01 | 2017-08-12T01:55:14 | JavaScript | UTF-8 | Python | false | false | 9,447 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-04 20:35
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezon... | [
"XinQi_Liu@outlook.com"
] | XinQi_Liu@outlook.com |
24435742a100eb44eebbaaf0e1f1c8741128254a | 79e1a5ad019b261034bc6338e894679d3f5d54d9 | /Min Cost Climbing Stairs.py | 9a9950a033bd4e855d1802436a93afb1b12d2cc0 | [
"MIT"
] | permissive | ngdeva99/Fulcrum | c615f457ec34c563199cc1dab243ecc62e23ad0b | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | refs/heads/master | 2022-12-15T19:35:46.508701 | 2020-09-09T06:47:48 | 2020-09-09T06:48:08 | 294,027,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | class Solution:
def minCostClimbingStairs(self, cost: List[int]) -> int:
f1 = f2 = 0
for x in reversed(cost):
print(f1,f2)
f1, f2 = x + min(f1, f2), f1
print(f1,f2)
return min(f1, f2)
| [
"31466229+ngdeva99@users.noreply.github.com"
] | 31466229+ngdeva99@users.noreply.github.com |
84c5dce05f108711b9f0c7145f5a308f8dc04b85 | b001b44c95f4a7c5574385baa4fe72c5f3d02236 | /home/migrations/0023_auto_20181105_1127.py | de37b9f338419b1882e0f38acef6049ef0a5a320 | [
"MIT"
] | permissive | gjergjk71/Attendence | 3ae9b9f3cb3c4e0bfe2addf4124b7612a78f1533 | 9e9370125bfc4958de02171a3ae4c8e16bf10913 | refs/heads/master | 2020-04-14T08:46:58.649674 | 2019-01-01T14:27:29 | 2019-01-01T14:27:29 | 163,743,067 | 0 | 0 | MIT | 2019-01-01T14:34:28 | 2019-01-01T14:34:28 | null | UTF-8 | Python | false | false | 491 | py | # Generated by Django 2.1.3 on 2018-11-05 05:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0022_auto_20181104_1620'),
]
operations = [
migrations.AlterField(
model_name='semester... | [
"201651011@iiitvadodara.ac.in"
] | 201651011@iiitvadodara.ac.in |
b1fca8e72085fe1fa234e38b71acb35fdb96361e | ee054fbb74b9d015b5b2e61f5801a7117ee6f872 | /postgresql/import_csv.py | fd4947158711fcea2fab090957aaa58d02521209 | [] | no_license | Sperryfreak01/other | 992571ca9dee8a6b0c07a408cb3b9d0bf7a7097b | f38be8d089316a0c56c3e94ef1683ec64c218f92 | refs/heads/master | 2021-05-30T08:15:06.427689 | 2016-02-07T00:27:03 | 2016-02-07T00:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | """
Script to load csv files into remote PostgreSQL database
Overview:
1. Get list of files to import
2. Get list of tables
3. Clear each table of existing data
4. Import new csv data into each table
"""
import os
import psycopg2
# Get list of files to import
file_list = os.listdir('C:/Users/pfriedhoff/Desktop/Arena ... | [
"pete.friedhoff@gmail.com"
] | pete.friedhoff@gmail.com |
ed491ef29d52c9db882bb740da80eef161bcd96c | aeb1bf8e189d7aabe55d86697f0b5712e35ed6ab | /KontoInhaber/main.py | 4bcb79d95c46578c487cca865e7892ea3fdbc5f6 | [
"MIT"
] | permissive | sandrodegiorgi/pythonits | bdb1b870fd3844aadf81082e7e0e6c6ecede3a1f | 1677e8fcf7c117c7657273ef0f6cc98718c5895b | refs/heads/master | 2023-05-30T17:37:39.108912 | 2021-06-17T17:08:32 | 2021-06-17T17:08:32 | 377,806,160 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # This is a sample Python script.
# Press Umschalt+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
from Girokonto import Girokonto
from Inhaber import Inhaber
from Sparkonto import Sparkonto
# Press the gree... | [
"noreply@github.com"
] | noreply@github.com |
31ff3e39a7a68715fe32a0839c2e2d057417d29b | 931db874c996cfedea38607922e3ceef7497a727 | /api.py | 5e635899c35e455759048e741505c14bf497a3e7 | [] | no_license | Cy8erEgo/vk-mailing-bot | f809fd501504909cc7f2f5359b0eb7ecbb07a654 | 4cb3a834c742578fb6c03fffa8170829a774f830 | refs/heads/master | 2023-01-02T06:10:59.950392 | 2020-10-25T13:26:15 | 2020-10-25T13:26:15 | 306,930,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | import random
from time import sleep
import requests
from typing import List
_BASE_URL = "https://api.vk.com/method/"
_HTTP_HEADERS = {"Content-Type": "application/json;charset=utf-8"}
_API_VERSION = 5.124
class IncorrectTokenException(Exception):
pass
class Api:
def __init__(self, token: str):
s... | [
"cy8erego@yandex.ru"
] | cy8erego@yandex.ru |
3afe47de2ced6f21ac6206f27a8fca59cac32d6b | ff1324c007edb02dc4fa84c428f7b1b3b45bd318 | /yql3/__init__.py | 7ac9f82c1e616113f2d6f711b952b16acb756f2a | [] | no_license | softsign/yahoo_ff_bot | d4888d74cf7d1c507b86e6daa1ec655951fc42c3 | d5bbc7a8198153cff805fac82b08463a79dc47e6 | refs/heads/master | 2020-03-28T13:25:52.525901 | 2018-09-12T03:30:13 | 2018-09-12T03:30:13 | 148,394,868 | 1 | 0 | null | 2018-09-12T03:32:40 | 2018-09-11T23:56:38 | Python | UTF-8 | Python | false | false | 21,350 | py | """
Python YQL
==========
YQL client for Python
Author: Stuart Colville http://muffinresearch.co.uk/
Docs at: http://python-yql.org/
Updates by: Joe M
TODO: More granular error handling
"""
import json
import re
import time
import pprint
from urllib.parse import urlparse, urlencode
from httplib2 import Http
from si... | [
"softsign@users.noreply.github.com"
] | softsign@users.noreply.github.com |
081eec9129daf0365812630378010bba524f2a46 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_246/ch31_2020_03_19_21_18_43_133674.py | 96a74701687347579e4909926913a5fbe4407c46 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def eh_primo(x):
if x==25:
return False
elif x==3:
return True
elif x==2:
return True
elif x==1:
return False
elif x%2==0:
return False
else:
y=3
while not x%y==0:
y=y+2
return True
return False
| [
"you@example.com"
] | you@example.com |
00e7a05b4daac5c0a2b0e1da8441ad4c7712e449 | 4718417c66065904e53c141c476c8b232f96ed55 | /June16/WordAndCharCount.py | faac691ae448bf1f74fd93e9eeb9ffd36333c96a | [] | no_license | alvas-education-foundation/Srilatha-K-Kamath-Daily-Report | c28dec426f1e57b65fd21d7370b7d742f823c22f | 6d56662633ae5b1df87dd6d5c23232c1a09dcd34 | refs/heads/master | 2022-11-30T04:59:26.548878 | 2020-08-19T12:20:01 | 2020-08-19T12:20:01 | 265,306,429 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | string=input('Enter the String: ')
wordcount=0
charcount=0
for word in string.split():
wordcount+=1
for i in word:
if(len(i)>0):
charcount+=1
print('Word count is ',wordcount)
print('Character count is ',charcount)
| [
"noreply@github.com"
] | noreply@github.com |
0b4074c7855ab1f8347ee4e06bf3d439e4e0ac55 | c01fdb66ee949ce14fa7b2fc64c94b15a9ba645f | /3.无重复字符的最长子串.py | cc705193f7011053287ff3b0614d4b83c0a47fb0 | [] | no_license | yxudong/LeetCode | fab58e73cf25fed435f9bd8365503ca0a1a16ac0 | 5fa8d84f91f6d2583a963313fde8fda48301c495 | refs/heads/master | 2021-08-04T03:50:52.409993 | 2021-07-15T08:33:52 | 2021-07-15T08:33:52 | 167,906,353 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | #
# @lc app=leetcode.cn id=3 lang=python3
#
# [3] 无重复字符的最长子串
#
# @lc code=start
# Tips: string, sliding-window, two-pointers, hash-table
class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
len_s = len(s)
if len_s <= 1:
return len_s
max_sub_len, right_point = 1,... | [
"yxd18352839189@gmail.com"
] | yxd18352839189@gmail.com |
cfee516f6a9befc78f63ec344ce9bc4d23c5925f | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/classification/convmixer/timm/models/layers/drop.py | df2526309ae305202741bf5836e408b6b8e94bc5 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 8,618 | py | # BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain th... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
0007f103813cae3d297e93408d84f95ee4198ba1 | b63142e8540cb30bb0c663332e29a4112721073e | /1396_set_union.py | 0d857ee6689a0f91d0670cc733bef0a70168eb09 | [] | no_license | HaydenInEdinburgh/LintCode | 025bb2f0d75686097061de324c0fd292536dbb14 | dbeae2bf631e57667d1415164d452d5ca2df7447 | refs/heads/master | 2023-08-18T19:52:54.561623 | 2021-10-06T21:46:50 | 2021-10-06T21:46:50 | 370,733,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | class UnionFind:
def __init__(self, length):
self.father = {i: i for i in range(length)}
self.count = length
def union(self, a, b):
a_root = self.find(a)
b_root = self.find(b)
if a_root == b_root:
return
self.father[b_root] = a_root
self.... | [
"bony960323@gmail.com"
] | bony960323@gmail.com |
b98b728c632282bacfbc50e8f93d8247d8fe05da | 5348732cf26a42a83a714adb5841cec9b5f64f81 | /Task 1/lecture02.py | 61cd167e48718a91ac938e91ccd3738ef3b54c6f | [
"MIT"
] | permissive | SchemingWeasels/EEEE1027_face-recognition_template-matching | 7b4468f76164a784a8f2c299b5d8744730537e5c | 22a9ebf174d21bbbfbe637d9c7dadba34d468614 | refs/heads/master | 2022-07-23T21:35:32.024385 | 2020-05-22T09:32:29 | 2020-05-22T09:32:29 | 266,066,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | import cv2
import numpy as np
face_cascade = cv2.CascadeClassifier('Pictures/haarcascade_frontalface_alt.xml')
cap = cv2.VideoCapture(0)
scaling_factor = 0.5
while True:
ret, frame = cap.read()
frame = cv2.resize(frame, None, fx=scaling_factor,
fy=scaling_factor, interpolation=cv2.INTER_AREA)
face_rect... | [
"relations99@gmail.com"
] | relations99@gmail.com |
c4582d858eedc192af567422de49a7e58b240a1c | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/zhzd_2_20190605154039.py | c6472ca4dd8a3ad43ec2696d5a071ed5ec48ca2b | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,178 | py | import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
import pandas as pd
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHRzhzd')#txt目录提取
g = open(r'C:\Users\Administrator\Desktop\JBML.txt',errors='ignore')
dics=g.readlines()
ryzd=[]
output=[]
line_re = []
for emr... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
bfc3f2d2974b18bddcac2a327a085bced230123a | bfad81de459052ea439a06d4346a4fdc60b3cad2 | /Project/Project/urls.py | b938a774ed61e21c007646c1637cf0a69b8236a0 | [] | no_license | MarCastellnou/Deriverable_Proj-Web | ecc9841b48c479cc05071a85f94bc92d5b8323a5 | 0a3b39e3afe1cc233c0e0e0186635037da26e0cd | refs/heads/master | 2021-07-19T02:49:02.962373 | 2019-05-26T09:54:39 | 2019-05-26T09:54:39 | 175,597,908 | 0 | 0 | null | 2020-06-05T20:59:43 | 2019-03-14T10:17:58 | Python | UTF-8 | Python | false | false | 989 | py | """Project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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... | [
"marccastellnou98@gmail.com"
] | marccastellnou98@gmail.com |
97ef71708fa9e7f58b078ba005c13ae776855b84 | 6a3f2da99bd10f6a701964bc46c3bc6dc2ba1043 | /lab02/lab02.py | 768b05a4c58e67cc9e02627b0a981b8752742bcc | [] | no_license | ziliang865/CS61A | 678a1a5d1963529b94b7664075333c6729242126 | 5d98e0ceff10607800f81f75d35363a218fabf59 | refs/heads/master | 2021-01-24T08:21:01.479598 | 2016-09-25T06:09:00 | 2016-09-25T06:09:00 | 69,146,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | """Lab 2: Higher Order Functions & Lambdas & Recursions"""
def lambda_curry2(func):
"""
Returns a Curried version of a two argument function func.
>>> from operator import add
>>> from operator import mul
>>> x = lambda_curry2(add)
>>> y = x(3)
>>> y(5)
8
>>> x = lambda_curry2(mul)(... | [
"juhaha2612167@vip.qq.com"
] | juhaha2612167@vip.qq.com |
d4edaed4db9a9e82e6c748f1fa17f782f84aa519 | 62a3db23d44532ef538b6d57f0ea0fd6a43050a0 | /finalproject/app/migrations/0005_tournament_fighters.py | f858a094804b0f258e29b31be31e3c952d63395d | [] | no_license | beatrizrp/final | 377f009a9a828b9809ab73e66a32d10065bb6347 | ce0deb52a8b17e4ae999ca63bd644a2a15f91a9d | refs/heads/master | 2020-03-17T11:31:21.147101 | 2018-10-02T10:55:40 | 2018-10-02T10:55:40 | 133,550,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-23 21:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0004_auto_20180523_2304'),
]
operations = [
migrations.AddField(
... | [
"beatrizruizpec@gmail.com"
] | beatrizruizpec@gmail.com |
e6cffb75f19e4afab6d2810287b9595e26dc13e8 | 0301717c32f8a919fd00b6e14f944192fe8ba332 | /f0005c.py | 70dd8100e048bf15df73111b7049ee7a26c7d552 | [] | no_license | vmarci80/f0005 | e727b2117fe36e463a20b7abc1c355758b477ffd | 5fb2c50852e9d20203e401239eb696de2d1b11cc | refs/heads/master | 2023-01-12T11:08:15.843474 | 2020-11-09T13:17:19 | 2020-11-09T13:17:19 | 311,344,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | #!/usr/bin/env python3
sz1 = 23
sz2 = 9
tipp = int(input ('Mennyi ' + str(sz1) + '+' + str(sz2) + ' ? '))
if tipp == sz1 + sz2:
print ('Nem rossz, nem rossz...')
else:
print('Háát mit csinálsz?!')
| [
"wmtech.vetromarton@gmail.com"
] | wmtech.vetromarton@gmail.com |
679a32a7d56a4b696e1f7578d001282b1b18aa18 | 0529dbee4b9defe6097f226656cc86079f81df8a | /NN_main.py | 2e033b32eb27f7d81083ffca15748faf8ed1eb2c | [] | no_license | xiaoke0515/Bioinformatic_class_project | 8f2665ac50f5c3763cbb4e507f5faa92a6865fd1 | dac0b5a369a0a702ba3e6627624d2ac01998a595 | refs/heads/master | 2021-07-13T06:48:09.738880 | 2020-08-01T14:54:14 | 2020-08-01T14:54:14 | 190,893,840 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from ReadClass import GetClass
from NN import NN
import os
os.environ["CUDA_VISIBLE_DEVICES"]="-1"
class_reader = GetClass()
filename = "Gene_Chip_Data/Gene_Chip_Data/microarray.original.txt"
classifier = NN(class_reader, filename, train_proportion=0.7)
(sess, accuracy, loss, input_data, label) = classifier.BuildG... | [
"1002567436@qq.com"
] | 1002567436@qq.com |
5b7b69ff6abc4a5daba3036daa61e8568b31a038 | 89336f4937f7ef5416f6cf66669fbf128bb35f02 | /app.py | da67d3def794148b3ddf9a3bd512c001d83afddc | [] | no_license | romanstr-code/milestone-project-threee | 770605a005bb8102bb9b65b0f47ce747b51dde61 | b7d0650123c8beb07c68835a40cd02a941e7c0c0 | refs/heads/master | 2023-04-20T09:52:20.989531 | 2021-05-12T09:59:01 | 2021-05-12T09:59:01 | 363,171,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,254 | py | # Imported Filesw
import os
from flask import (
Flask, flash, render_template,
redirect, request, session, url_for)
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
from werkzeug.security import generate_password_hash, check_password_hash
if os.path.exists("env.py"):
import env
app = F... | [
"romanstrogoteanu1990@gmail.com"
] | romanstrogoteanu1990@gmail.com |
f082dfbd85f23540fe495dddc50f961bfcb35818 | 86e6dd3df6f5a2dc0a5e08839eadfdab0a856759 | /cmdb/cmdb/cmdb/wsgi.py | dded9f98cb9a83ad913c45a2a66f3489769190e6 | [] | no_license | 99649952/practice | 37b0f4349cfd4957d8d2bcc9e0e6d042f9b157d9 | a486b6949a08594612428e88e8a5b73ad73b0b16 | refs/heads/master | 2021-01-17T15:41:09.769013 | 2016-06-12T06:16:34 | 2016-06-12T06:16:34 | 55,946,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | """
WSGI config for MadKing project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"lixiaobo994@163.com"
] | lixiaobo994@163.com |
f85b15a4823c6810244d576b6c8ac4f14a27b370 | 7ef8833dbf5f71dff7093f8daf72f5046cfbc914 | /datastructure/python-data-structure-linkedlist/deleteduplicates.py | c33ab7b90b8c0e7f513d61bcd3ca5f3a7a6ccbd1 | [] | no_license | zhangwhitemouse/pythonDataStructure | 84259177a98e6a4fc7cd816fa3939c2ae3665ff0 | eb9d8020207263074b528b6a221bf6fa75c04533 | refs/heads/master | 2021-06-29T04:32:01.650360 | 2021-01-16T07:52:55 | 2021-01-16T07:52:55 | 214,996,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | #删除链表的重复元素
"""
问题分析:保证链表中没有重复的元素(保证没有相邻的元素存在相同)
算法分析:一边遍历一边判断,看当前节点值与前一个节点值是否相同,
若相同,则删除当前节点,若不相同,则继续遍历
"""
# class Solution(object):
# def deleteDuplicates(self, head):
# cur = head
# while cur and cur.next:
# if cur.val == cur.next.val:
# cur.next = cu... | [
"slg__zhanglin@163.com"
] | slg__zhanglin@163.com |
665ca7c8480cf43f3293241817377b6208c1060c | 35c774ee67feae65cf3379781db389513cf8416e | /old_mac.py | ab76e287d25bc8e0af55d41cac282b302ed12d97 | [] | no_license | divyamtalreja/basic-python-program | c95e4bb64eca9b1f378a74ca7c610d36f5150e76 | 2bcb0f65334f42d7690a17c7355253544b3cbb4a | refs/heads/master | 2021-02-28T01:47:24.867857 | 2020-03-07T14:59:27 | 2020-03-07T14:59:27 | 245,651,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | def old_macdonald(s):
first=s[0]
inbetween=s[1:3]
fourth=s[3]
rem=s[4:]
return first.upper()+inbetween+fourth.upper()+rem
print(old_macdonald("macdonald")) | [
"noreply@github.com"
] | noreply@github.com |
a384997b92fd4d648e8df0aa05d3606b08def541 | 2ce7346a38ff819b7cbd69df73a7948b0abab12f | /10.자료구조변경.py | 67fc354d7787da7f70a12afc19fdc4fd64cd6dde | [] | no_license | poebus0102/JINWOO | c615f3540b18730bfce0926bdc20d35399367f60 | 761cd7ca5d9f8a1efe66ad89c2909850b0512e0d | refs/heads/main | 2023-04-24T13:03:14.266366 | 2021-04-26T04:08:11 | 2021-04-26T04:08:11 | 361,612,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | # 자료구조의 변경
# 커피숍
menu = {"커피","우유","주스"}
print(menu,type(menu))
| [
"noreply@github.com"
] | noreply@github.com |
a6c1a20dfdb3da33fd7e96ed02470a8318d32b13 | d65128e38be0243f279e0d72ef85e7d3c5e116ca | /base/site-packages/django/contrib/gis/geoip/tests.py | 3fa64bf6bef6ebe66e0523ad8e22ee07ec3b4e8b | [
"Apache-2.0"
] | permissive | ZxwZero/fastor | 19bfc568f9a68f1447c2e049428330ade02d451d | dd9e299e250362802032d1984801bed249e36d8d | refs/heads/master | 2021-06-26T06:40:38.555211 | 2021-06-09T02:05:38 | 2021-06-09T02:05:38 | 229,753,500 | 1 | 1 | Apache-2.0 | 2019-12-23T12:59:25 | 2019-12-23T12:59:24 | null | UTF-8 | Python | false | false | 4,672 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from django.conf import settings
from django.contrib.gis.geos import HAS_GEOS
from django.contrib.gis.geoip import HAS_GEOIP
from django.utils import unittest
from django.utils.unittest import skipUnless
from django.utils import six
if HAS_GEO... | [
"edisonlz@163.com"
] | edisonlz@163.com |
a24e94b51e575f5924c1a09583866578e9030e35 | f0858aae73097c49e995ff3526a91879354d1424 | /nova/virt/hardware.py | 830a74c70c635ef3b2a1621d054fa53bbab810ad | [
"Apache-2.0"
] | permissive | bopopescu/nested_quota_final | 7a13f7c95e9580909d91db83c46092148ba1403b | 7c3454883de9f5368fa943924540eebe157a319d | refs/heads/master | 2022-11-20T16:14:28.508150 | 2015-02-16T17:47:59 | 2015-02-16T17:47:59 | 282,100,691 | 0 | 0 | Apache-2.0 | 2020-07-24T02:14:02 | 2020-07-24T02:14:02 | null | UTF-8 | Python | false | false | 51,509 | py | # Copyright 2014 Red Hat, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"sajeesh@cern.ch"
] | sajeesh@cern.ch |
2c1698703cd35a9b3ddfb3fb9f2d79719b99005f | bf49a1f5a7e25777f5af626e8b9b2130c73d6450 | /SignalSmooth.py | 9beabef68d27f3f3f6c7ad2eb422f28d25a323c8 | [] | no_license | maryammokhberi/BCI_AudioTactile | 070b6bd70e139392c30b0331b0e7902602cc39ba | df9489f7224ed42ba3c87e059cdde38f733ac587 | refs/heads/master | 2021-09-05T03:04:05.644240 | 2018-01-23T20:54:22 | 2018-01-23T20:54:22 | 104,111,767 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 17 12:37:38 2017
@author: Downloaded from http://scipy-cookbook.readthedocs.io/items/SignalSmooth.html
"""
import numpy
def smooth(x,window_len=11,window='hanning'):
"""smooth the data using a window with requested size.
This method is based on the convolut... | [
"mokhebrimaryam@gmail.com"
] | mokhebrimaryam@gmail.com |
869c610d451114a41b0ede9a9dd0219b59828c68 | ff9303e0a6230fb508f33e55a0d4ff156270f350 | /recreation-foptimise.py | afe9438a4fe27ee01b4b802402cff564cd127acd | [] | no_license | Vani4ka/recreation | 026883bf7ae4207e245158b27e9184200b1c4aff | f6cc2b1c957c7096469c9db7d5734a672a876d5a | refs/heads/master | 2021-01-25T12:20:44.776787 | 2018-03-14T15:14:52 | 2018-03-14T15:14:52 | 123,466,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,866 | py | from sklearn import svm
from numpy import genfromtxt
import features as f
import functions as func
import sys
import datetime
import math
def findBestErrorRate(d):
"""Determines the best error rates by first selecting the lowest false
alarm rate and then selecting the lowest miss rate if there are several
... | [
"vanya.gercheva@uni-weimar.de"
] | vanya.gercheva@uni-weimar.de |
b20a49531606d2c5ae1e5574c0ba06d080ab4e78 | 0a6959eb1802f132e2fd4f9d1321420e293cb451 | /app/src/utils/predictor.py | 06d6e9af727b97ee700d204b87b01ab4b8ba2872 | [
"MIT"
] | permissive | muskanmahajan37/Heart-Disease-Web-Application | 398555940a5d1f363562c03896abc14a6f78ba70 | 02b65ece5606a18c3a293b53ec0f56271882cbb1 | refs/heads/master | 2022-12-24T04:04:34.701813 | 2020-09-25T06:48:51 | 2020-09-25T06:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,214 | py | import streamlit as st
import pandas as pd
import joblib
def create_inference_input(df):
input_list = []
age = st.sidebar.slider(label="Age",
min_value=min(df["age"]),
max_value=max(df["age"]))
input_list.append(age)
st.sidebar.write("\n")
s... | [
"sayarbanerjee@gmail.com"
] | sayarbanerjee@gmail.com |
9545603abda16bc46d541742d01db6610d959d1b | f2b833774224a626741752c5ab3c692b18692b37 | /vfoa/methods/geometrical_model.py | 51da6cf9db40b724c84ee6cd08d31008beeef456 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | idiap/vfoa | 6a3a691ec5ebb048147e597db234f6e28c85618c | c42697ebd848dc4871a5aaf480e2bbc40effc2c6 | refs/heads/main | 2022-12-27T22:23:56.364523 | 2020-10-12T07:03:02 | 2020-10-12T07:03:02 | 303,306,127 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,832 | py | """
Copyright (c) 2018 Idiap Research Institute, http://www.idiap.ch/
Written by Remy Siegfried <remy.siegfried@idiap.ch>
This file contains a vfoa estimation method based on geometrical features.
Estimate vfoa based on a geometric model: if the angular distance between the gaze vector and the target
direction (i.e. l... | [
"philip.abbet@idiap.ch"
] | philip.abbet@idiap.ch |
2420836ad929495008eab115570e2265b2d7c035 | 7001344d76da760d24852ceadf0d2da18aa45a4d | /Algorithm/SVD/SVD_Anonymous_Microsoft_Web_Data/SVD_Anonymous_Microsoft_Web_Data_FromScratch.py | cb9b37d119d37ef8850bd2c28c1d8f6bd5e1d958 | [] | no_license | JimXiongGM/MachineLearningPractice | e1038df38c740219562bca366472d67e898bdae0 | 9e76066303e317085a22d91785948d6ce12bac6d | refs/heads/master | 2020-04-30T15:37:42.054069 | 2019-03-20T13:03:31 | 2019-03-20T13:03:58 | 176,925,255 | 0 | 1 | null | 2019-03-21T10:47:57 | 2019-03-21T10:47:55 | null | UTF-8 | Python | false | false | 8,787 | py | ## Automobile From Scratch Version
#
# Author: David Lee
# Create Date: 2018/11/10
#
# PS. Recommendation System
import numpy as np
import pandas as pd # Read csv
from scipy.sparse.linalg import svds # using ARPACK as an eigensolver
from scipy.sparse import csc_matrix
### Recommendation System
# Item-based recommenda... | [
"daviddwlee84@gmail.com"
] | daviddwlee84@gmail.com |
bba6df8d6d59232a1b97cbb8eea71d9b6a69427e | fb18183bb84f20b47dd75b158a48cbee1e68169b | /python/menu.py | 54ab403b6e2d009a8af647ef1962eae4859910ac | [] | no_license | jasolson/development | f5cef579c2397d99636d1d117c39f9cb9adc1615 | 83a9a1accdea84ac3a6c5f0c457a11fa795c9706 | refs/heads/master | 2021-01-19T08:50:28.862441 | 2013-10-26T22:16:37 | 2013-10-26T22:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | import sys
import aws_ec2_functions as ec2
def main():
print "Welcome to AWS!"
while(True):
function = mainMenu()
if(function == 'listec2'):
ec2.listEC2Instances()
elif(function == 'listebs'):
ec2.listEBSVolumes()
elif(function == 'listzones'):
ec2.listEC2Zones()
elif(function == 'deleteebs'):
... | [
"jasolson@gmail.com"
] | jasolson@gmail.com |
59e85beb15aa658989b3e8f94c10d8171a846512 | 5fbfdc83f2577f42b50656e60e503d08c0278f2d | /4palindromes.py | f2828ae3053b31bbf291cea2128f3777aec09c0f | [] | no_license | jchen1352/project-euler | 25089a4a751bb47417975bf23dc562d2aa977b49 | 6f5a15aaa1a4879198f5ba9946c78291f61b0084 | refs/heads/master | 2021-01-19T09:41:56.495030 | 2015-09-06T17:43:13 | 2015-09-06T17:43:13 | 42,011,751 | 0 | 0 | null | 2015-09-06T17:42:10 | 2015-09-06T17:38:28 | Python | UTF-8 | Python | false | false | 800 | py | def factor(number):
factors = []
factor = 2
while number > 1:
if number % factor == 0:
factors.append(factor)
number = number / factor
factor = 2
else:
factor += 1
return factors
palin_list = []
for x in range(10):
for y in range(10):
... | [
"jchen1352@gmail.com"
] | jchen1352@gmail.com |
7a48106962ab4daa026afd3b6f4ebe6826ba7d85 | c73c158654a2e76dbc63f34a47b0c77a4e98b5a8 | /rexparse/__init__.py | 2a7568b6c2e4463fcd091e598a2cb47e0fdc177d | [] | no_license | gregbanks/rexparse | 2b61ebfe2638a446658965934325b7558b9bc72e | cd8b85df3219336c10bfb623dfc78b06785be593 | refs/heads/master | 2021-01-01T18:17:55.098929 | 2013-11-12T18:12:37 | 2013-11-12T18:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | import os
import re
from functools import wraps
from distutils.errors import DistutilsSetupError
from rex import Requirements, Requirement
from _version import __version__
__all__ = ['Requirements', 'Requirement', 'get_version']
def get_version(path):
version = None
try:
version = re.search(r'_... | [
"gbanks@mybasis.com"
] | gbanks@mybasis.com |
6a56579dde04c041a43a789d84507459c53c3aac | 432ed7648ad8b634e2e03d3c721ce9b96b79c25c | /simpledot.py | 63ab3de3db226e12b447c109648ffc6f12dfa507 | [] | no_license | leeseunghow/cps-IOT-project | ded7026b0b4585165b328cca5e089e275eec7856 | eb35fe26081ab528000b8301cfdcdd3979c1dfe9 | refs/heads/master | 2022-11-05T22:01:57.669797 | 2020-06-21T10:33:07 | 2020-06-21T10:33:07 | 269,158,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | latlon = [[37.550997 , 126.922986],
[37.548769, 126.918073],
[37.551596, 126.924945],
[37.554642, 126.921294],
[37.548534, 126.913838],
[37.55101598, 126.98866975],
[37.56504849, 127.00790431],
[37.56078470, 127.00615551],
[37.56260513, 126.98268300],
[37.56894269, 127.00058382],
[37.50... | [
"noreply@github.com"
] | noreply@github.com |
814593c51e85d2d29852853aa98aa56328942c71 | fc7d5eb1cc94e7b7ed0e4e0bdb68268cc2016dcb | /blog/migrations/0004_auto_20190910_1928.py | 8818d917e764965f5e4682457cd2bc2c769ed235 | [
"MIT"
] | permissive | danceandfight/sensitive-blog-dvmn | 65847a6796f393547976c051f3e7231f409295ed | 1e93bace2c548644723de0ec17feab064e8f1643 | refs/heads/master | 2022-11-29T02:22:16.430997 | 2020-01-08T17:34:24 | 2020-01-08T17:34:24 | 224,164,480 | 0 | 1 | MIT | 2022-11-22T04:18:51 | 2019-11-26T10:29:03 | HTML | UTF-8 | Python | false | false | 1,505 | py | # Generated by Django 2.2.5 on 2019-09-10 16:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('blog', '0003_post_publis... | [
"42836909+danceandfight@users.noreply.github.com"
] | 42836909+danceandfight@users.noreply.github.com |
4a7e666225218172bb22d81d113bb13f1659271d | c22db8895c04cf8d34f52a6ba687153ad01886a4 | /Chapter_5.2_Algorithms/Exercises/CountDown.py | 1fdbac84ba0484cc9420d7aa9c3073183987fb45 | [] | no_license | chyjuls/Computing-in-Python-IV-Objects-Algorithms-GTx-CS1301xIV-Exercises | a8b20e92a6d83a53f99fecc44a82ac02fb3dbec1 | aac897f86ea5537e4038f05f83f62f314fd8f837 | refs/heads/master | 2022-12-30T17:27:07.093956 | 2020-10-15T20:07:36 | 2020-10-15T20:07:36 | 420,781,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py | #We've written a function below called count_down(). This
#function takes an int parameter, start, and prints every
#number from that start to 0. The way we've written it uses
#recursion. Below that funtion, write a function that does
#the exact same thing, but do not use recursion.
#
#The purpose of this exercise is f... | [
"qays.sh@gmail.com"
] | qays.sh@gmail.com |
0e0e2fab975591c749f87685e0fb40a01e7cd269 | 67a0b708ee86c23102dcb03b90bcfed3e4e4181b | /yzrpc/utils/__init__.py | 12b77131ae05834a4fbb68df549bc5e49f8e9ecc | [
"Apache-2.0"
] | permissive | limi444/yz-rpc-1 | ebfdd841abb4a08d1b4e179e4d7d9f6bd2bb2f3c | f3b6cb76dab72e1763d759080854c11aa6ade872 | refs/heads/master | 2023-04-11T08:01:49.074491 | 2021-04-27T07:52:58 | 2021-04-27T07:52:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | #!/usr/bin/python3.7+
# -*- coding:utf-8 -*-
"""
@auth: cml
@date: 2021/2/23
@desc: ...
"""
from .type_transform import *
from ._path import *
from ._import import *
from ._autoreload import *
# from ._logger import *
# from ._inspect import *
# from ._singleton import *
| [
"caimengli@realibox.com"
] | caimengli@realibox.com |
712cb2fc42c9ad1f000da08ca648de2bab63137a | e8e77fbd3b128d5691db0dd3fbafaebddcca2f20 | /mySpider_HSN/mySpider_HSN/items.py | 8a0a5324cac66e6f7cd32c0912b37b36d2d78dea | [] | no_license | hashmeta/mySpider_HSN | f166f814209a48fc0aa636da57c91aecd29fe80e | 2d9a5803469666b5c17472ae3ab334abcf9b2970 | refs/heads/master | 2022-02-03T23:55:21.717763 | 2019-08-08T22:04:27 | 2019-08-08T22:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class MyspiderHsnItem(Item):
# define the fields for your item here like:
# name = scrapy.Field()
HSN_Code=Field()
... | [
"ruined.maniac@gmail.com"
] | ruined.maniac@gmail.com |
87f3d9a51925ed0fd72b5aba493e1d775bb21891 | ed23c841f17a5c2eee2f3707f35d8641aa1ffc89 | /366. Fibonacci.py | 4105ce4063a5fa26a4f5e834580a652369d4754b | [
"MIT"
] | permissive | bicongwang/lintcode-python3 | 077f5fe2c4c354fb3e0a294abea1bc94b7e05275 | 23ba29677b4d4b0a90014dc3a92ab7fae5a4d980 | refs/heads/master | 2020-03-10T18:26:29.680084 | 2018-05-05T17:31:37 | 2018-05-05T17:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # Solution 1: Simple
#
# Comment: You have no need to use array which will cause a larger space complexity
# Space complexity: O(1)
# Time complexity: O(n)
class Solution:
"""
@param n: an integer
@return: an ineger f(n)
"""
def fibonacci(self, n):
i_1, i_2 = 0, 1
for i in range(n-... | [
"wangbicong@hotmail.com"
] | wangbicong@hotmail.com |
e4c1bc4025cbb82d36058bfe6430850c83afe832 | f94463add4743b33ca3cb405309eb2cb939165cb | /accounts/migrations/0001_initial.py | bef9e4898162a3087d999998704acf7ff583c07f | [] | no_license | JaaMata/Book-Ecommers | e813d490bcd7d6aed3c0aa7dbb38cd21eef21722 | 839fe6231d551f09aa2785b4bbc79809d8bc5d70 | refs/heads/main | 2023-07-16T03:12:30.991192 | 2021-08-30T14:09:17 | 2021-08-30T14:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # Generated by Django 3.2.5 on 2021-07-21 18:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(... | [
"69767677+JaaMata@users.noreply.github.com"
] | 69767677+JaaMata@users.noreply.github.com |
8d2e68641e3022d1d0d4e3a364c9138e8574d8c2 | 746e766a5bffb98a1f353f107f370cfc37fa95f4 | /dc.py | e9b8cf399420643cf6732c684d46a93158c1fcbf | [] | no_license | girishjakkam/python-repo | eb955a0a9e4b8375469f4a04ee9558a8020e295d | 7d8cacb1df5d4f4751ec2a46f9d68744b604d69b | refs/heads/master | 2021-01-21T15:00:08.331719 | 2016-06-09T16:40:53 | 2016-06-09T16:40:53 | 58,341,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py |
name = raw_input("Enter file:")
handle = open(name)
lst=list()
z=list()
counts=dict()
for line in handle:
line.split()
if line.startswith('From')==True:
pos=line.find('From')
pos1=line.find('@')
lst.append(line[pos+5:pos1+9])
for name in lst:
counts[name]=counts.get(name,0)+1
bigword=None
bigc... | [
"girish.jakkam@gmail.com"
] | girish.jakkam@gmail.com |
ff73c351f221334739ef870b16ae97803f134220 | 23ea05ebeb26c4d5672bd1ddbfd7508196bddf99 | /meditation_tracker/meditation_tracker/meditation_tracker/urls.py | a3149c886dbaa40423863f7f1f67b88fe91b767a | [] | no_license | nucly/python | 7547c7a7bc5f90fe777b607cdac799db4e7e2d89 | dae2f1b649b0933e26a6c1826e0cdf54284eec20 | refs/heads/main | 2023-02-26T09:26:09.692651 | 2021-01-29T00:59:40 | 2021-01-29T00:59:40 | 325,858,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """meditation_tracker 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')
... | [
"kaminski.darek@icloud.com"
] | kaminski.darek@icloud.com |
9ee3976091d42ea805caecd71de5304d1f0f6bef | e9c82c51f8f3a3eaa828c35d6254f82daa96bf88 | /UTKFace.py | f3d81c0341376a1e74b8c05ce519a86cf8f9d810 | [] | no_license | rampant-lancer/FaceDL | 8bb6f4a1a61801ffe74da89f204cbfecece5b4f6 | a2f7e1bb026ac4c4624e0672a7ff769c6a2514a9 | refs/heads/master | 2020-03-29T11:23:43.042788 | 2018-10-06T16:06:13 | 2018-10-06T16:06:13 | 149,850,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,602 | py | import os
import tarfile
import numpy as np
import cv2
import requests
class UTKFace(object):
def __init__(self):
'''
To initialize the self.req_file variable with the zipped file and also to initialize
self.data_dir where extracted data is stored
'''
self.req_file... | [
"noreply@github.com"
] | noreply@github.com |
0a013dbeac63b6fe9a9a83342f2a4d953a07c59f | 8f848713ace51c3d7cb0491429f4abe808379431 | /KRR/WME.py | 363c602453c970c3714ed041bc8a24345e1c4c66 | [] | no_license | AshwiniTagadghar1/ReteNet | 20e1d7dcf74ffae71f292bda4b6374cf17d07c7c | 48d6c098dc1702e2ff1f5f38e1d17766f41b735a | refs/heads/master | 2022-11-17T17:43:42.075362 | 2020-07-11T07:50:28 | 2020-07-11T07:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | class WME:
def __init__(self, className, attribute_value_pairs):
self.className=className
self.attribute_value_pairs=attribute_value_pairs
| [
"noreply@github.com"
] | noreply@github.com |
69fa7989cab255908dc5566d8284bd79b02113c2 | 2d96739882edc57788b7876255947cad184f34e4 | /SMS_Packages/Tech/work.py | 76901374ed7d0cbf472d8f9179cac3a40d54a9a7 | [] | no_license | akash639743/Python_Assignment | afdd8ac126473fe9d2ef1a0f983376b17b5c4b92 | c04242af0d31037fa536655b1319acb1fb879e7b | refs/heads/master | 2023-07-18T04:55:48.333488 | 2021-08-27T07:41:39 | 2021-08-27T07:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # import sys
# sys.path.append('C:/Users/mande/Desktop/New folder/SMS/User')
# import request
from User import request
def tech_work():
print("Tech Package --> work Module")
print("tech_work Function")
print()
request.user_request()
| [
"negiakash63@gmail.com"
] | negiakash63@gmail.com |
a3fa89807dd7197e628cef4a3dc812403a098dec | 47da5e297ca31b69387817dfaa920b47cc8ff8ca | /Basics/Colt_Data_structure/Sorting_Algorithms/Selection_Sort/Selection_Sort_Test.py | 81aa410e6c94609843affb81c0110b8381cb3ce2 | [] | no_license | shafirpl/InterView_Prep | 546623b165903c2b3a1ffde55c65196f5e56f298 | f0c1f7b581210da120b8325a4846695afc1b9da7 | refs/heads/master | 2020-12-18T21:35:41.680029 | 2020-05-24T06:26:17 | 2020-05-24T06:26:17 | 235,527,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import unittest
from Selection_Sort import selection_sort
class SelectionSortTest(unittest.TestCase):
def test_Bubble_Sort(self):
self.assertEqual(selection_sort([8, 1, 2, 3, 4, 5, 6, 7]), [1, 2, 3, 4, 5, 6, 7, 8])
self.assertEqual(selection_sort([10, 5, 90, 0, 10]), [0, 5, 10, 10, 90])
s... | [
"shafi.rpl@gmail.com"
] | shafi.rpl@gmail.com |
6ce93375ceff30229cb3953ab10690c269168af9 | c51f02dc9bf560ce419e847c0a4c81cc507e6425 | /users/migrations/0005_alter_profile_user.py | 1ea9dc5aebaede819586885bd0e50f61ba745eda | [] | no_license | Emmanuelbreezy/votingapp | 0bbd214fb67d3073ee5b0460fb008ceb9266d754 | 3880b8df0fe5702da4a7ffebb80ca4b5f9dfcc87 | refs/heads/main | 2023-06-30T06:03:02.442261 | 2021-08-04T20:37:34 | 2021-08-04T20:37:34 | 392,818,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # Generated by Django 3.2.5 on 2021-07-21 00:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0004_alter_profile_user'),
]
operations = [
migrations.AlterField... | [
"isholaazeez40@gmail.com"
] | isholaazeez40@gmail.com |
7160dd58ad1a75f527a42d7ae7cd601eb8a90b90 | c28df1b0bf09c1ce1cb6d9de219676827f899e8d | /person/migrations/0014_auto_20201003_1524.py | 3fd510d20ea5ea36dec65400e05c8f6880e99e1c | [] | no_license | frozyum/split-expenses-app-backend | 36fc501c432b6508a7c34bc08b6ab27a6bff245d | 55e23ea222396814a80512df3fab0d5710c88fdf | refs/heads/master | 2023-01-01T08:56:16.145140 | 2020-10-27T09:17:14 | 2020-10-27T09:17:14 | 298,987,935 | 0 | 0 | null | 2020-09-28T16:49:28 | 2020-09-27T08:32:47 | Python | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.0.8 on 2020-10-03 15:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('group', '0001_initial'),
('person', '0013_auto_20201003_1356'),
]
operations = [
migrations.AlterFi... | [
"smamu13@freeuni.edu.ge"
] | smamu13@freeuni.edu.ge |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.