blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2387b82ab1a3efe61e5b5aa7efc01a01c8151353 | e8f99a162207cba82d4e0f969d7bcdb2b9d8b522 | /pyhton_quantitative/while_demo2.py | f492cfea0b6d4e08f2a46ddc64a65de4880c3a92 | [] | no_license | TesterCC/Python3Scripts | edb5446278ebf13edb64336001081941ca27d67d | 58be67e1ffc74ef50289a885aa4ad05f58e2c383 | refs/heads/master | 2023-08-30T21:16:38.328045 | 2023-08-17T11:23:08 | 2023-08-17T11:23:08 | 93,401,996 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'MFC'
__time__ = '18/7/15 17:55'
"""
Python与量化投资从基础到实战 P34
"""
a = 0
while a < 6:
if a <= 3:
print("It's {}".format(a))
else:
print("hello {}".format(a))
a += 1
| [
"testerlyx@foxmail.com"
] | testerlyx@foxmail.com |
9198ab7d9caadc7f9c984a5d9a805790442a14a6 | 92137962a84e724df31b63367854349a875f1c43 | /tapis_cli/commands/taccapis/v2/notifications/__init__.py | 872625d883e6fbb24852f8471c6e26d506cf7180 | [
"BSD-3-Clause"
] | permissive | TACC-Cloud/tapis-cli | e3a26e79a20d1ada4cb2dc9ef204cae3e385bfe7 | d34e8635d3dbacc8276cf52b6bae04caacd655de | refs/heads/main | 2023-04-08T14:47:27.707885 | 2022-02-13T17:43:26 | 2022-02-13T17:43:26 | 203,083,094 | 11 | 3 | BSD-3-Clause | 2022-04-01T20:23:23 | 2019-08-19T02:21:28 | Python | UTF-8 | Python | false | false | 319 | py | """Notifications service commands
"""
from tapis_cli.commands.taccapis.v2 import SERVICE_VERSION
API_NAME = 'notifications'
from .create import NotificationsCreate
from .delete import NotificationsDelete
from .list import NotificationsList
from .show import NotificationsShow
# from .update import NotificationsUpdate
| [
"vaughn@tacc.utexas.edu"
] | vaughn@tacc.utexas.edu |
86a5a9246a152c7f71a0a3c5810bf5180b0c6ace | 0725d2a93c9058113d0127501fa7bbea28b4f8b1 | /venv/Lib/site-packages/tencentcloud/live/v20180801/live_client.py | 7e0d2dd9880b1f4ac408f31f3c931764e8384e3c | [] | no_license | liugngg/liug-001 | 8c9d39fab49b1895c213814dfec4b1bff649671b | 9ae093a3f7e042b29e756620311f0a57ad083f5c | refs/heads/master | 2023-06-06T00:14:52.548147 | 2021-06-25T07:30:26 | 2021-06-25T07:30:26 | 380,157,121 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149,575 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | [
"liugngg.gmail.com"
] | liugngg.gmail.com |
191438a54879a3f0caa53fbff81e964fe60669ce | f3405bf1f896ea05eb902ba1ef94133993b95350 | /dados/settings.py | 528cfbe8e4ad6cd79cc0f1d8aad1366bf523a6a1 | [] | no_license | juniorcarvalho/teste | c4e9d35be761f206cf6d1f3ae12b88ef9e094133 | a28eb59b989e1a3682195e556a1764e535e155b5 | refs/heads/master | 2020-04-02T11:16:52.904723 | 2018-10-29T23:59:12 | 2018-10-29T23:59:12 | 154,380,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,170 | py | """
Django settings for dados project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"joseadolfojr@gmail.com"
] | joseadolfojr@gmail.com |
0a6fcdeaa21b341a09d672294aae44cfb49b672f | 94c060239448fea9d165c90738ff48bad692d559 | /testcase2-v1/backup_create_memconfig_013117.py | d848444b1785c20349f49b24bc13a27a91665f0c | [] | no_license | ttungl/multi2sim-5.0 | be180031c19cd783e910de3dbac33f0598278e03 | 35b9fb96565429d0131fd86589c284c9abda2fe9 | refs/heads/master | 2021-06-14T01:23:56.689660 | 2017-02-18T16:06:47 | 2017-02-18T16:06:47 | 75,245,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,091 | py | # ==========================================================
# Copyright 2017 `Tung Thanh Le`
# Email: ttungl at gmail dot com
#
# Simulation Configuration Files Generator for Multi2Sim
# (aka, `GenSimConfigM2S`)
# `GenSimConfigM2S` is free software, which is freely to be
# redistributed and modified it under the term... | [
"noreply@github.com"
] | ttungl.noreply@github.com |
634f627f7acfa9612128b88eabb74305bd376870 | 9a5a91d1905c41e340f5892c259ee118e613993c | /python/svm_py.py | d1b643acd1ee5c2de02c01edc8cb5da91571c002 | [
"MIT"
] | permissive | ivanliu1989/Afr-Soil-Prediction | 714d3acb0a5f4520f68d0ace467f817d9df4fee3 | ccd327b12f2cd47e7f0a78302e86d5f8c2f25e78 | refs/heads/master | 2021-01-20T11:41:33.454413 | 2019-06-30T12:55:14 | 2019-06-30T12:55:14 | 24,354,500 | 4 | 4 | null | 2019-06-30T12:55:15 | 2014-09-23T02:53:05 | R | UTF-8 | Python | false | false | 80 | py | import pandas as pd
import numpy as np
from sklearn import svm, cross_validation | [
"ivan.liuyanfeng@gmail.com"
] | ivan.liuyanfeng@gmail.com |
cf13961e2443482a19a7c92ff0445787afcd2f9f | c180333a152eb3efd39ec1a6f92965c2124d41fd | /Dojo/Python_Stack/Django/014multiple_apps/main/main/urls.py | 35ebdd067601a8e757c933aa3842355e433e3d9d | [] | no_license | AlexFloresGreer/Branching_and_Merging | 3399a91dfb9f23e6d3ec163d40d004d27bc330ab | 3d53fb814345d075a79a6078a63c9ef7ccfa09bc | refs/heads/master | 2021-01-15T09:15:27.153736 | 2016-08-24T18:02:58 | 2016-08-24T18:02:58 | 64,349,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | """main 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-based... | [
"floresalexx@gmail.com"
] | floresalexx@gmail.com |
bf1283a9dc337b0ca0ab768790ee5c9215d2eb0b | c4702d1a06640555829b367852138cc93ba4a161 | /dym_report_stock_pertgl/report/dym_report_stock_xls.py | 7d4b95b8846eacc54c5ce5f9940eb0eaa809308f | [] | no_license | Rizalimami/dym | 0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26 | af1bcf7b77a3212bc8a8a0e41e6042a134587ed4 | refs/heads/master | 2020-04-08T10:56:43.605698 | 2018-11-27T06:44:08 | 2018-11-27T06:44:08 | 159,287,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,603 | py | import xlwt
from datetime import datetime
from openerp.osv import orm
from openerp.addons.report_xls.report_xls import report_xls
from openerp.addons.report_xls.utils import rowcol_to_cell, _render
from .dym_report_stock import dym_stock_unit_report_pertgl_print
from openerp.tools.translate import translate
import logg... | [
"rizal@portcities.net"
] | rizal@portcities.net |
6eed654bb519b22b5c1a95bd50577721a9f5214d | c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd | /ScanPi/QRbytes/466.py | 132283c8e343e232f03e72f51e444e537029ce6a | [] | no_license | NUSTEM-UK/Heart-of-Maker-Faire | de2c2f223c76f54a8b4c460530e56a5c74b65ca3 | fa5a1661c63dac3ae982ed080d80d8da0480ed4e | refs/heads/master | 2021-06-18T13:14:38.204811 | 2017-07-18T13:47:49 | 2017-07-18T13:47:49 | 73,701,984 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94,946 | py | data = [
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ... | [
"jonathan.sanderson@northumbria.ac.uk"
] | jonathan.sanderson@northumbria.ac.uk |
b64b8da5acef4372a486cc84cd81695b77bbc8cb | f7574ee7a679261e758ba461cb5a5a364fdb0ed1 | /BullsandCows.py | 66626a1462d54de8c3491dc7c40ae7c72cb50a56 | [] | no_license | janewjy/Leetcode | 807050548c0f45704f2f0f821a7fef40ffbda0ed | b4dccd3d1c59aa1e92f10ed5c4f7a3e1d08897d8 | refs/heads/master | 2021-01-10T19:20:22.858158 | 2016-02-26T16:03:19 | 2016-02-26T16:03:19 | 40,615,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | class Solution(object):
def getHint(self, secret, guess):
"""
:type secret: str
:type guess: str
:rtype: str
"""
cow = sum([s == t for s,t in zip(secret, guess)])
bull = 0
secret_map = {}
for s in secret:
if s not in secret_map:
... | [
"janewjy87@gmail.com"
] | janewjy87@gmail.com |
01750bbb66ada49685c5cf9c03f832757d3d3536 | 1119c2c2020abc6f56cc40f39a768312345055ef | /bin/GROCSVS/barcode_overlaps_overlappingwindow.py | f0fc3c442e96aa6338964486fbcbd7763069ce4e | [] | no_license | JinfengChen/10x | f2d3adc2db05bdbffdf4c02f220336a9cd55cda5 | 32cb2d00032a7304fd1a7b18b9c0319340c898ac | refs/heads/master | 2020-12-30T11:39:30.893786 | 2017-07-04T03:14:13 | 2017-07-04T03:14:13 | 91,510,701 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,323 | py | import itertools
# import gzip
import h5py
import logging
import numpy
import os
import scipy.stats
from grocsvs import datasets as svdatasets
from grocsvs import step
from grocsvs import utilities
from grocsvs.stages import window_barcodes
class BarcodeOverlapsStep(step.StepChunk):
"""
Compare two sets o... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
fa8dfdab0dc471bdacc09b16237632e719905903 | 40111565ed9a8173742cc2ab99402e246a9f4186 | /13-99-exam-02-01-my.py | f164a9e4701db20a9354ffd68bd10e173e34ab43 | [] | no_license | dev-iwin/book8-hanbit-python-data-structure-algorithm | 230827afddb998286972caf0e0a5ff8c34b2e35b | acbe2375ffc9c08a1fc85f3678bb79510c3e67ef | refs/heads/master | 2023-05-27T08:02:12.726463 | 2021-06-18T14:38:26 | 2021-06-18T14:38:26 | 365,667,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | import random
##
def seqSearch(ary, fData):
global count
pos = -1
for i in range(len(ary)):
count += 1
if ary[i] == fData:
pos = i
break
return pos
def binSearch(ary, fData):
global count
start = 0
end = len(ary) - 1 # -1 명심!
while start <= end... | [
"iwinoriwin@gmail.com"
] | iwinoriwin@gmail.com |
1b021c9e0edef1c16a915a129abf345ea0defd9b | 14483184f0eabafab14f75a052a69e363f973f99 | /139.word-break.py | 393de0f7f337e2e8fba82a5e149d51e31f850f18 | [] | no_license | DizzyYunxuan/Leetcode_answers | d38679935214597bae973a1fef03334005802819 | 9605165b684bc5a1299a418bb274dc0d3be117a6 | refs/heads/master | 2021-06-19T15:01:34.991783 | 2021-03-31T12:10:52 | 2021-03-31T12:10:52 | 196,497,506 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | #
# @lc app=leetcode id=139 lang=python3
#
# [139] Word Break
#
class Solution:
def wordBreak(self, s: str, wordDict) -> bool:
# dp = [0] * (len(s) + 1)
sli = [0]
for i in range(len(s)+1):
for start in sli:
if s[start:i] in wordDict:
sli.append... | [
"516488199@qq.com"
] | 516488199@qq.com |
13ce61de05b4e5c883a1f8d5a394c008ce40d731 | 27034876dc372d24d0c659b35e2da394e8d633ca | /src/idom/server/fastapi.py | 368b6efbdcaa5862d88566b182898122814794ad | [
"MIT"
] | permissive | gc-ss/idom | 48458aeb1084889accd8026feb8e58900cff23b4 | bf2a6beb09700ebd81cb569af1ef22fcc46ffcb6 | refs/heads/main | 2023-04-19T13:07:27.925291 | 2021-05-08T18:26:11 | 2021-05-08T18:26:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,363 | py | """
FastAPI Servers
===============
"""
import asyncio
import json
import logging
import sys
import time
from threading import Event, Thread
from typing import Any, Dict, Optional, Tuple, Union
from fastapi import APIRouter, FastAPI, Request, WebSocket
from fastapi.middleware.cors import CORSMiddleware
from fastapi.r... | [
"ryan.morshead@gmail.com"
] | ryan.morshead@gmail.com |
b1cb552da3795779b62f09d19864cface94f9920 | 0d2c2ffe431b159a87bcd78c97147422dce8d778 | /GUI学习/01PyQt5快速开发与实战/ch05高级界面控件/13thread02.py | 6ecbe517b0896f5710a9d0e74731115400480fe2 | [] | no_license | YuanXianguo/Python-Project-ITC | 9e297fc1e1e8ec2b136e6e8b1db0afaaba81c16c | afd14cbe501147ec66b4aa0c1c7907b3ae41d148 | refs/heads/master | 2020-04-16T13:54:33.727825 | 2019-12-20T02:16:52 | 2019-12-20T02:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QLCDNumber, QPushButton
from PyQt5.QtCore import QThread, pyqtSignal, QTimer
class ThreadDemo(QWidget):
def __init__(self):
super().__init__()
self.setGeometry(300, 300, 300, 200)
self.setWindowTitle('QThread Demo')... | [
"736913978@qq.com"
] | 736913978@qq.com |
d6ccb46b190a700260b29fc46f1be9fa16c66e12 | 6f5bdf6ea1871ac042cdf44b688b2ac8fe549542 | /tutorials/asteroids/main.py | 5159b80de0ccd27c69809dd58cdd45eb7170a678 | [
"MIT"
] | permissive | HoomanDashti/gamedev | b690fbb9a856eb25835b76ac815d9c0ba0a035c6 | 4960babd40d1c692d83cd0fdddf4ee000212b0a4 | refs/heads/master | 2021-01-21T18:28:50.120514 | 2016-05-10T01:11:46 | 2016-05-10T01:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,271 | py | # Space Rocks! (asteroids)
# KidsCanCode 2015
import pygame as pg
import sys
from random import choice, randint
from math import atan2, degrees
from os import path
img_dir = path.join(path.dirname(__file__), 'img')
snd_dir = path.join(path.dirname(__file__), 'snd')
# define some colors (R, G, B)
WHITE = (255, 255, 25... | [
"chris@kidscancode.org"
] | chris@kidscancode.org |
0fb076dd2aca9db6e2496b1642316742ef48603c | 04777383454caff37c84791d59c0761dff1b86c0 | /mysite/urls.py | 83b517a489de447f1904e287a4809fb8156116b8 | [] | no_license | moriarty0531/my-first-blog | a22aa6c9c0ab3f0bed309bd291707e6469582d62 | c8683d7e6815bb2a22d67a49c6bd0f70f12cb5cd | refs/heads/master | 2020-12-14T04:50:57.476313 | 2020-01-18T03:12:45 | 2020-01-18T03:12:45 | 234,644,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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 ... | [
"admin@admin.com"
] | admin@admin.com |
60a1a866c025addf575a4cd41653fd9dfb27efc4 | 4c187f0f9d244e89facdddc1581bcef33e092a93 | /benchmarks/QLib/QASM_src/benstein_vazirani_20b_secret_8.py | 28c335955a8793fb7c1275479ca34059b1ac3ec1 | [] | no_license | Gonaco/Super-Qool-Benchmarks | 419dea5306bcec7e502034527acffe371a4e8004 | a630f3dd6f22bebd4ce7601a772fd3a8cd3dd08c | refs/heads/master | 2021-01-25T13:40:57.523633 | 2018-04-03T09:31:56 | 2018-04-03T09:31:56 | 123,600,859 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from openql import openql as ql
import os
import numpy as np
curdir = os.path.dirname(__file__)
output_dir = os.path.join(curdir, 'test_output')
ql.set_output_dir(output_dir)
config_fn = os.path.join(curdir, '/home/daniel/Master/Quantum_Computing_and_Quantum_Information/OpenQL/tests/hardware_config_cc_light.json')
plat... | [
"danielmoremanza@gmail.com"
] | danielmoremanza@gmail.com |
b4105fd29a47d22cfb485ec02e634433108bf5eb | aff98325082a912c84471b7a505ab565175b0289 | /kopf/reactor/lifecycles.py | 5bdb661f4d64b2aa5cc1c2f66ec615b7f45c0e93 | [
"MIT"
] | permissive | dbazhal/kopf | a10dde232095eaf7104f1623a1f6bfc33cb80363 | ac772f2d7ce1272f47f10ebff784f54a6ec8dcfa | refs/heads/master | 2020-06-15T03:51:57.055815 | 2020-01-13T14:23:29 | 2020-01-13T14:23:29 | 195,031,097 | 0 | 0 | MIT | 2019-07-03T10:21:51 | 2019-07-03T10:21:50 | null | UTF-8 | Python | false | false | 1,762 | py | """
Few simple lifecycles for the handlers.
New lifecycles can be implemented the same way: accept ``handlers``
in the order they are registered (except those already succeeded),
and return the list of handlers in the order and amount to be executed.
The default behaviour of the framework is the most simplistic:
exec... | [
"sergey.vasilyev@zalando.de"
] | sergey.vasilyev@zalando.de |
4107830fe27b34ca8520a0b3b88d3982ec26495f | 1b4abb5e310c7ae1b2928f9ea80a6b3a8c2fb8ed | /model/ml/plot/newer/column_strategy_sim/column_order/plot_metadata_blackoak.py | 779773f81777564c27bc2d873c4b0bad21bd1bec | [] | no_license | zhang-198/ExampleDrivenErrorDetection | 2e2c708665f2b57b6ac7c785604a2ac6234f7ba9 | ae8bc24fc441957d9a29e5fa4cc247f1805d8b4d | refs/heads/master | 2023-05-23T14:49:29.628520 | 2020-04-09T14:02:28 | 2020-04-09T14:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,738 | py | import numpy as np
from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_list_latex
from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_list
from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_integral
from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_integral_latex
f... | [
"neutatz@googlemail.com"
] | neutatz@googlemail.com |
04109fdaf496805f6438241d9b4b645c10f44e4a | 527a8837c449d7fd0ccacf33cd6e6be0d6308038 | /testExternalModules/testPyLearn2_python.py | e906e4c6cca154956923d07445e69289a75dc9a7 | [] | no_license | nparslow/L2FrenchWritingAnalyser | c4539cf67f6885224d83890c31d95080c49fa175 | 6708e560d65120d1946f1d08a460ca8fe97a548f | refs/heads/master | 2020-12-07T03:50:12.090153 | 2015-07-18T18:28:12 | 2015-07-18T18:28:12 | 39,304,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | __author__ = 'nparslow'
from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix
#from numpy.random import randint
from random import randint
import numpy as np
from pylearn2.models import mlp
from pylearn2.training_algorithms import sgd
from pylearn2.termination_criteria import EpochCounter
import theano
... | [
"nparslow@yahoo.com.au"
] | nparslow@yahoo.com.au |
def298acfa57932fc0b3cb9512e12b0c0f2d6d1a | e36472948f74fd5ed35fc64801a59db4efa27070 | /part_1/08_7_test.py | 2b968f5a42f074e961bd6725a905b523e2fcf035 | [] | no_license | anton1k/python_crash_course | 051aad7c5a043830d8cc9e5fd314f568bf0f4a53 | 80f302074e5fef48fb40e72f7d79ab4b8658b38a | refs/heads/master | 2020-07-18T23:28:00.871466 | 2019-09-04T14:06:12 | 2019-09-04T14:06:12 | 206,333,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | def make_album(name, title, track = ''):
res = {}
if track:
res = {
'name': name,
'title': title,
'track': track,
}
else:
res = {
'name': name,
'title': title,
}
return res
print(make_album('КиШ', 'Король и шут'))
print(make_album('... | [
"40913464+anton1k@users.noreply.github.com"
] | 40913464+anton1k@users.noreply.github.com |
1d4f0e5a9af0f597474c8e5fb93b2382f8b8d200 | 3cea765d17ee9cc7571499b667699c7d2bf4390b | /espresso/tools/simple_greedy_decoder.py | 3602bc3488bfae6ccac4212cbaa6ab2a2e23af53 | [
"MIT"
] | permissive | 200987299/espresso | cc62b9702bc8318df1feb3d50e6955baf5045be1 | ecfb37881348bf3a74833318cba3867d9856329a | refs/heads/master | 2022-11-06T14:37:36.002872 | 2020-06-17T00:11:09 | 2020-06-17T00:11:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,768 | py | # Copyright (c) Yiming Wang
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Dict, Optional
import numpy as np
import torch
import torch.nn as nn
from torch import Tensor
class SimpleGreedyDecoder(nn.Module):
def __... | [
"freewym@gmail.com"
] | freewym@gmail.com |
2b9d7a61d0a5fcc0064564d68c22994b8921ac4b | 82b23f3ee6ba26187e3debb266ef174803da1950 | /DiHadronCorrelationAnalyzer/cfg/chargedepcorr_recenter_gen_cent1020_cfg.py | 92157b17577540fc0bbd9dd3f65a9dbdede7b8bc | [] | no_license | mguilbau/Analyzer | f12c8bad07e691425d4c41d5e17301f49599494a | c048200b77672d89d387146ba1941d43a071293a | refs/heads/master | 2020-06-08T22:25:56.875111 | 2015-06-11T15:38:22 | 2015-06-11T15:38:22 | 37,269,849 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,049 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("corr")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 2000
### conditions
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = 'GR_R_53_... | [
"liwei810812@gmail.com"
] | liwei810812@gmail.com |
2c46ec7eefc9ec972cc0c1c6a746daf428038412 | f5d308f2eae062b1ef8da11baa46fc8b6fcca401 | /backend/users/migrations/0002_auto_20210426_1630.py | 17fa5f4db04e35edd1dd82377b73e96f508befc4 | [] | no_license | crowdbotics-apps/test-template-app-25949 | fa329032278a5a1f46b93b1eecb2657f36ce6d12 | a95369a3210120f296b207bd1d0d7785d4f2b0ce | refs/heads/master | 2023-04-16T13:40:31.411142 | 2021-04-26T16:33:44 | 2021-04-26T16:33:44 | 361,817,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # Generated by Django 2.2.19 on 2021-04-26 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='last_updated',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
59f4610be64e9df41da9179d7345857b322258c0 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_compare_energies1.py | 4005ea72219f327b6b6ceb0e778afb970b6cd05f | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | from xcp2k.inputsection import InputSection
from _each419 import _each419
class _compare_energies1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Filename = None
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
41d0d13b8176d2e6659e0d5a9cae8254a87e913d | 72b59ef57caa4d0c5cdf2357c392429d5860ff93 | /seguridad/clave.py | b5a46c20d580e0ce53f2bcf2585a661cbcc45f48 | [] | no_license | aavilesv/Control-de-Clientes-Restaurante_Django | 6b00c886505a0311c3c6171c90bf3be866fd3f46 | e7faf087187ce78083a5729b10ffe0380c9feedc | refs/heads/main | 2023-03-12T07:31:01.148447 | 2021-02-28T05:00:27 | 2021-02-28T05:00:27 | 334,050,020 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.db import transaction
from django.contrib import messages
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
import datetime
import smtplib
from email.mime.multipart ... | [
"you@example.com"
] | you@example.com |
e72cafbc87ae46a5ddbe4e3888188fdb029e0c39 | aaa7fe7d79838891357f4c12046ad8b0a9ba1976 | /event/functions/functions.py | e31d1b05e125864324cf4ad32cd4cbc2e6514d38 | [] | no_license | Code-Institute-Submissions/family_organiser | 9b60a54882d60d5aab4c06e734291d862f521cf0 | fb3fc24c72768c00b6bb55acaf7606f5aaf07162 | refs/heads/master | 2022-12-16T07:17:35.592493 | 2020-09-22T10:00:53 | 2020-09-22T10:00:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | from datetime import date
def add_count_down_to_events(events):
todays_date = date.today()
events_with_count_down = []
for event in events:
# find the days betweent now and the event.
event_date = date(event.event_date.year, event.event_date.month, event.event_date.day)
time_b... | [
"alex96ford19@gmail.com"
] | alex96ford19@gmail.com |
819ce9ee7cc3b3ae610a31e561e3d21caf1e99ca | a9ee46a3a19b9de76af8271d8e9ce888b76ddd40 | /ML_A_Z_Hands_On_Python_And_R_(Udemy)/dev/dev_py/missing_data.py | d45287e037bada63556f459ec5b38e161c537381 | [] | no_license | weilin2018/CS_ML_DL_Courses | 1b901bc2d19509e3ac5e015be1e163f3b83f0020 | 6ecd493dedc15c470aa42dc9e9601d5e7e20a648 | refs/heads/master | 2020-08-03T14:30:42.169134 | 2019-09-27T00:57:13 | 2019-09-27T00:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author : Bhishan Poudel; Physics PhD Student, Ohio University
# Date : Jun 07, 2017 Wed
# Last update :
#
# Imports
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from pandas import DataFrame as DF
# Importing the dataset
dataset = ... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
695c1be5e6cdbb5363804c1be52991a5cde022de | 6c14069181f313e84eeb524dd495e3882156ef50 | /samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-ip-ntp-cfg/nc-read-xr-ip-ntp-cfg-10-ydk.py | ec6c73dc8aa42eedb157d440ce8d68bf6b9d0c37 | [
"Apache-2.0"
] | permissive | decolnz/ydk-py-samples | dde0fd64fd4df12a215588766a0f1fb8baf07fcd | 7fa3f53c4d458c3332d372fb2fe3c46c5e036f07 | refs/heads/master | 2021-01-19T03:24:19.877929 | 2017-04-04T17:16:46 | 2017-04-04T17:16:46 | 87,310,389 | 1 | 0 | null | 2017-04-05T13:06:57 | 2017-04-05T13:06:57 | null | UTF-8 | Python | false | false | 2,655 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, 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 applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
916bdd9aae3c8ee47e913d189ee4be8e4d790bf2 | 40e7a86d13b9549825228b20924c00e151482d59 | /site_response/two_d_elastic_w_free_field_cols_and_comp_base.py | 1506e5d25b4997585b58ffd46b96021e866c4189 | [] | no_license | cryptopulgo/o3seespy-examples | 31f2d113fe4abe8ac1f47c2d37902f6f14be1415 | 332fdee6b628784ab00485ba197115019180d36e | refs/heads/master | 2022-11-29T03:04:30.684679 | 2020-07-22T00:45:30 | 2020-07-22T00:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,725 | py | import o3seespy as o3
import o3seespy.extensions
import copy
import sfsimodels as sm
import numpy as np
import eqsig
import all_paths as ap
import liquepy as lq
import matplotlib.pyplot as plt
from bwplot import cbox
def site_response(sp, asig, freqs=(0.5, 10), xi=0.03, analysis_dt=0.001, dy=0.5,
an... | [
"maxim.millen@gmail.com"
] | maxim.millen@gmail.com |
9ee2ca4c90667d63a5b5f8f0610bc72eeb8f67af | 662881988e9f6b3b306e08039e3378e35118b325 | /api.py | 043c8f3ed9d9164fe390bb2b33139affff39693b | [] | no_license | mbruzek/svg.juju.solutions | c667cd75d04354f6bca5304dc37fa09d09e6a068 | e2b445141e7635767fb1e03bbba8977da87cadb2 | refs/heads/master | 2021-01-11T12:00:01.061475 | 2016-03-23T21:30:27 | 2016-03-23T21:30:27 | 69,500,137 | 0 | 0 | null | 2016-09-28T20:14:23 | 2016-09-28T20:14:22 | null | UTF-8 | Python | false | false | 2,737 | py | import re
import yaml
import tempfile
import subprocess
import networkx as nx
from settings import JUJSVG
class JujuSVGException(Exception):
def __init__(self, cmd, msg):
self.cmd = cmd
self.msg = msg
class BundleFormatException(Exception):
def __init__(self, msg):
self.msg = msg
... | [
"marco@ceppi.net"
] | marco@ceppi.net |
7484dfb034510d8a087ee641d0651b2b5e22a9f0 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /right_government_and_great_way/year/time/take_early_child_in_hand/work_long_case/large_woman.py | 1916a60a885e26fcd8e1627ab9c1b09568f996e8 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py |
#! /usr/bin/env python
def early_fact(str_arg):
few_fact(str_arg)
print('bad_day')
def few_fact(str_arg):
print(str_arg)
if __name__ == '__main__':
early_fact('person')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
bb4c63b37a21cec7183520b51b6d4db138057ab9 | d47cce33ab973544f3f67762c93cf812ebd26b74 | /run.py | 9e76756010cfd35290b42166832dcd2e38c703a8 | [] | no_license | Dimas4/Distance-Between-Cities-Flask | 82478b636710ff187bc5c2ce137b1e002ebacfb8 | 2936a0c3ac0ec3b465cbbf93231e9450f5983673 | refs/heads/master | 2020-04-01T07:03:23.006063 | 2018-10-15T12:52:58 | 2018-10-15T12:52:58 | 152,975,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from app.create_app import app, db
from routers.routers import View
View.register(app)
if __name__ == '__main__':
app.run(debug=True)
| [
"ivanshatukho@yandex.ru"
] | ivanshatukho@yandex.ru |
f615760588455c4ac945d86f4fadaeff72d2e155 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02963/s223565541.py | 73976dc2dc326d20703da8bd372e1ac416e4e2f3 | [] | 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 | 170 | py | n = int(input())
z = 1000000000
if n==z*z:
print(z, 0, 0, z, 0, 0)
elif n > z:
a = n//z
b = n%z
print(a+1, b, 0, z, 1, 0)
else:
print(n, 0, 1, 1, 0, 0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ff202648f0cc4eb27bf46545be1070f4e7a77053 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_action_recognition.py | f09d2058e3f969677ab1d572026523e38e42f868 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 1,567 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
751fb0826e9e04596771f46e4adb129994ea867b | 502af3505e4e670c507ee6a5dedbc41995cefa09 | /deep_generative_models/losses/wgan.py | fe0af2bb0d3146dcb54b831df8557c3422fa1eea | [] | no_license | manoj04418/deep-generative-models | c1e8062e280ac6d1f3fb8ab359a21e870a2276df | 402d06773320231d9135c88d8a6033f916a68f89 | refs/heads/master | 2022-10-02T10:44:14.857680 | 2020-06-10T14:50:48 | 2020-06-10T14:50:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | from torch import Tensor
from torch.nn import Module
from deep_generative_models.architecture import Architecture
def critic_loss_function(predictions: Tensor) -> Tensor:
return predictions.mean(0).view(1)
class WGANCriticLoss(Module):
def forward(self, architecture: Architecture, real_features: Tensor, f... | [
"ramirocamino@gmail.com"
] | ramirocamino@gmail.com |
2439dbce86835dcd0fa5d9dc1b90eaacfaea22f3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03044/s578441348.py | 4634c71091f17ce06012666a036925fa5ba185c5 | [] | 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 | 784 | py | import sys
from collections import defaultdict, deque
def main():
input = sys.stdin.readline
N = int(input())
d = defaultdict(list)
for _ in range(N-1):
u, v, w = map(int, input().split())
d[u-1].append((v-1, w))
d[v-1].append((u-1, w))
dist = [0] * N
q = deque()
q.... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f3837984aa4bdd60c64b9222632513c0fdc3dbe6 | 72000eb7bd7a7ad2c4a88746067d85ec53d09639 | /InAction/TED/wordCounts/wordsCounts.py | ddd2cf9f9bbca3847a895da7f715489b83b6b392 | [] | no_license | Winniekun/Data_Mining | f3c9cb8b2a16f8647a18d22c2b2f202f3953467f | 61baeb80a57d0e8152af513474dc6e16a8e2f30c | refs/heads/master | 2022-04-01T07:42:09.337582 | 2020-01-02T11:02:42 | 2020-01-02T11:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | '''
@author:KongWeiKun
@file: wordsCounts.py
@time: 18-3-27 下午7:21
@contact: 836242657@qq.com
'''
import nltk
import glob as gb
import pprint
from nltk.corpus import stopwords
stop_words = stopwords.words('english')
# print(stop_words)
def most_words(file):
with open(file) as f:
lines = f.readlines()
... | [
"kongwiki@163.com"
] | kongwiki@163.com |
147d638bbdac9161b46e4f85c01bf0d008b82875 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4051/837004051.py | 5093ef59350c7bbbe47c33136b32d92f41046c4d | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 5,594 | py | from bots.botsconfig import *
from records004051 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'HC',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BHT', MIN: 1, MAX: 1},
{ID: 'REF', MIN: 0, MAX: 3},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
90f53d48980e865393a025bc8fd4cbc854e41362 | 9390c966a2a786536bd177da4e6f13e9704e454f | /pfscrap/modules/kofia/scrapers.py | 0871bd46fed0ad2ffbd772617166ff340b6ba6e7 | [] | no_license | zwolf21/pfscrap | f7da4eed826e9b09e43596c1e8eba8aa0fc693ba | 0b8de398a923aeea1e6530128cb4f2a3282fc11b | refs/heads/master | 2020-05-25T13:29:31.319617 | 2019-06-01T15:51:23 | 2019-06-01T15:51:23 | 187,242,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,975 | py | import os
import re
import json
import math
from pprint import pprint
from urllib.parse import unquote
from datetime import datetime, timedelta
from scrapgo import LinkRelayScraper, urlpattern, url, root
from .payloaders import (
get_fund_list_payload,
get_fund_detail_payload,
get_fund_etc_payload,
ge... | [
"pbr112@naver.com"
] | pbr112@naver.com |
e68b6940a4fd49fc1181751a7ea22a62b87f0256 | e31307f80e3105de577bd6fff5d67b6b07db2d7e | /main.py | 7219794a37c96fc06de26d65f4aa57686d538c9c | [] | no_license | caoyucharlie/crawler | 47e297767c2f5b8e22afe625c96bb8e09fc736cc | 2654c2a748ed29eeced0e31e8a16783558ccbdcc | refs/heads/master | 2020-03-18T20:45:28.925452 | 2018-06-09T06:44:10 | 2018-06-09T06:44:10 | 135,236,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,867 | py | from enum import Enum, unique
from queue import Queue
from random import random
from threading import Thread, current_thread
from time import sleep
from urllib.parse import urlparse
import requests
from bs4 import BeautifulSoup
@unique
class SpiderStatus(Enum):
IDLE = 0
WORKING = 1
def dec... | [
"charlielbj@163.com"
] | charlielbj@163.com |
7b994181abbc1619a81a9a6be9f7aeb55186cb7c | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/braincorp_PVM/PVM-master/PVM_models/process_dream_data.py | d897feadcda62b36bbfadebd94ce5e1eff7b8bba | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 4,098 | py | # ==================================================================================
# Copyright (c) 2016, Brain Corporation
#
# This software is released under Creative Commons
# Attribution-NonCommercial-ShareAlike 3.0 (BY-NC-SA) license.
# Full text available here in LICENSE.TXT file as well as:
# https://creativeco... | [
"659338505@qq.com"
] | 659338505@qq.com |
71f711a663fe6c448659827e6372424ed8a9a9b4 | a1a42b2165f8cb899bff02f10d8b081b372ce9d3 | /mshub-gc/tools/mshub-gc/proc/io/__init__.py | 7ba9404f3fc29683bc57790e89bc8cc7a2c80b82 | [
"Apache-2.0"
] | permissive | CCMS-UCSD/GNPS_Workflows | 47ca90ba177b3ddc1a71877a3ee92473e0fe392b | 8c6772e244c6f3e5ea7cd5eae873b6faa48b7313 | refs/heads/master | 2023-08-31T13:38:51.911232 | 2023-08-24T06:06:37 | 2023-08-24T06:06:37 | 57,243,138 | 41 | 45 | NOASSERTION | 2023-06-13T16:54:49 | 2016-04-27T19:52:07 | HTML | UTF-8 | Python | false | false | 305 | py | # -*- coding: utf-8 -*-
"""
**************************************
MS Processing imput/output sub-package
**************************************
The sub-package includes modules for reading and depositing individual GC-MS or LC-MS data files
into hdf5 database file for subsequent pre-processing.
""" | [
"mwang87@gmail.com"
] | mwang87@gmail.com |
5dad7d231cdeb7764d30ad494fbf1f215b0d5bd8 | 70858abdb3ffd86c07971b7ea317ecdc8cc61dc4 | /log-sample/log-sample.py | 2e0d7285301efd6d43a63e5d540053bdc42576cb | [] | no_license | henrylin2008/python_tricks | 32c1a5a01f874f8e7fc20e31904aad9ff4bcc18a | 504018e18ee2562b68338c450af916378305a11a | refs/heads/master | 2021-12-15T00:14:14.488551 | 2021-12-02T00:02:08 | 2021-12-02T00:02:08 | 235,941,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s:%(name)s:%(message)s')
file_handler = logging.FileHandler('sample.log')
file_handler.setLevel(logging.ERROR)
file_handler.setFormatter(formatter)
stream_handler = logging.StreamHandler() ... | [
"henrylin2008@yahoo.com"
] | henrylin2008@yahoo.com |
01a91a40b7fc1c0b372a7f3ba7933409876cd89b | 0f5dd525aba7747a6036f991e5dc98db6deb5e58 | /Matrixes/TimeHumansToZombie.py | 7e0ae0fd86b7c42b77dd45912ea312b1f44d1256 | [] | no_license | aye-am-rt/python-practice | cc9894577b4f394724975acaa59138c9ca5b70d1 | 0b65a739a4bce86774327d9dfbda6eee7123691f | refs/heads/master | 2020-12-09T11:55:15.541509 | 2020-07-02T16:48:07 | 2020-07-02T16:48:07 | 233,296,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | """
Given a 2D grid, each cell is either a zombie 1 or a human 0. Zombies can turn adjacent
(up/down/left/right) human beings into zombies every hour. Find out how many hours does it take
to infect all humans?
Example:
Input:
[[0, 1, 1, 0, 1],
[0, 1, 0, 1, 0],
[0, 0, 0, 0, 1],
[0, 1, 0, 0, 0]]
Output: 2
Explanatio... | [
"riteshtiwari.271097@gmail.com"
] | riteshtiwari.271097@gmail.com |
79cb39e3b8e8c331d7b034abba4f0be6668dcb0a | bab936c727fc5e0095fb3efb2539985afdc34724 | /blog/migrations/0001_initial.py | 48cc0d8b618ab1093243d74ef56a08981ef94cda | [] | no_license | franckeric96/examen3.20 | b14af6cb80d328c7b3c46dae4e80a460c7789bc0 | d9415a486fa7c5c57b8954f3f9d81636dcda9314 | refs/heads/master | 2022-12-21T03:50:45.303734 | 2020-09-21T17:36:04 | 2020-09-21T17:36:04 | 297,398,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | # Generated by Django 3.0.8 on 2020-09-21 12:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_... | [
"franck@gmail.com"
] | franck@gmail.com |
71806f358e9c71933053d7eb1fba85f5d119b596 | 0b6d99c3ecc9a4d937345b85a80fb6558a4da397 | /function/装饰器/c4.py | ff8a2be85ed874e0f3002fcd6ebbb148db561071 | [] | no_license | huiup/python_notes | 3057058154d2b6ba0514913b9e55421614e1ea5e | 60f5513cefef054aec0deb4ca1b2eb9fdc263f9d | refs/heads/master | 2021-03-01T20:16:31.904703 | 2020-11-03T13:09:51 | 2020-11-03T13:09:51 | 245,811,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import time
# 使用装饰器+语法糖(带参数)
def decorator(func):
def wrapper(func_name):
print(time.time())
func(func_name)
return wrapper
@decorator
def f1(func_name):
print('this is a function named ' + func_name)
f1('f1') | [
"1127473030@qq.com"
] | 1127473030@qq.com |
93bb3efb4157ccde679aff458a4e083c43b5025b | 072f8bffbfef6e149ad1934ea9183a79864c1acd | /venv/Lib/site-packages/ironicclient/tests/unit/v1/test_allocation.py | e1fa8b5067878e339750b4e3eb2f4260b9a75e12 | [] | no_license | numvc/LuxoftBot | 77d9bf8f5f63aee63350f1ec82f4b940afe203d2 | 29d7ca8868ab86bc076509d103f7596039333417 | refs/heads/master | 2020-09-21T21:37:12.527546 | 2019-12-04T23:24:35 | 2019-12-04T23:24:35 | 224,939,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,900 | py | # 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, software
# d... | [
"feys-00@mail.ru"
] | feys-00@mail.ru |
d95be3ae2f0d3af3d7ff9826b36f348e5cb7f1cf | 677002b757c0a1a00b450d9710a8ec6aeb9b9e9a | /tiago_public_ws/build/controller_interface/catkin_generated/pkg.develspace.context.pc.py | c338b64739b537ef0c7c4fe56900ec8f0104245c | [] | 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 | 563 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/tiago_public_ws/src/ros_control/controller_interface/include".split(';') if "/tiago_public_ws/src/ros_control/controller_interface/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;hardware_inte... | [
"ricardoxcm@hotmail.com"
] | ricardoxcm@hotmail.com |
5b2c2e0123440911ad438e8b09412ea1701610c9 | 2274049fa848566e013de3705765862476292f4c | /chap4/k34.py | 9c2384a59df5c1716b03aaba7015809c633bddfc | [] | no_license | Cain96/nlp100 | 469c0316c59a9fb532fe5c4e8a68503e2799e95a | 4f5a6cc7b4f2cd0b5aa6f3fd03d425fdea1f2802 | refs/heads/master | 2021-04-28T18:31:58.224717 | 2018-04-12T02:27:06 | 2018-04-12T02:28:49 | 121,874,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# k34.py
from chap4.utils import morphological, n_gram
if __name__ == '__main__':
for sentence in morphological():
for first, second, third in n_gram(sentence, 3):
if second["surface"] == "の" and first["pos"] == "名詞" and third["pos"] == "名詞":
... | [
"tk.777.k@gmail.com"
] | tk.777.k@gmail.com |
1307bb31504146fd43e0d594b67635b67505907f | 8be39fd741cbbb08439433188ca1bc59ee5cf11f | /model/bytenet/__init__.py | 101058dd52e1c205e991792b07bc9e441a4e95ab | [
"MIT"
] | permissive | tpimentelms/fast-conversational-banking | ca1e699261f989f3b535a50782062c000985ba1e | b9d3ddfe3adb78522fafab91c2d20495db063dda | refs/heads/master | 2021-03-16T21:30:51.253223 | 2018-02-28T20:30:15 | 2018-02-28T20:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from model.bytenet.network.base_bytenet import BaseByteNet
from model.bytenet.network.bytenet import ByteNet
| [
"tiagopms@gmail.com"
] | tiagopms@gmail.com |
fc6b6f9087dc8f303ac80e452b150aebc31250ec | 82b23f3ee6ba26187e3debb266ef174803da1950 | /DiHadronCorrelationAnalyzer/cfg/chargedepcorr_recenter_cent4050_cfg.py | 469ca7ec1b96026dafafdcbe78787661af823ce2 | [] | no_license | mguilbau/Analyzer | f12c8bad07e691425d4c41d5e17301f49599494a | c048200b77672d89d387146ba1941d43a071293a | refs/heads/master | 2020-06-08T22:25:56.875111 | 2015-06-11T15:38:22 | 2015-06-11T15:38:22 | 37,269,849 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("corr")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 2000
### conditions
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = 'GR_R_53_... | [
"liwei810812@gmail.com"
] | liwei810812@gmail.com |
46697028a1e6b18c60fb5749d3f964bfb61a7208 | 84b5ac79cb471cad1d54ed1d2c842dc5581a03f0 | /branches/umlref/config/scripts/paella-list-trait-packages | 43a2180af8bb26a4f5ae4a19b1ae99fa2a51eff4 | [] | no_license | BackupTheBerlios/paella-svn | c8fb5ea3ae2a5e4ca6325a0b3623d80368b767f3 | d737a5ea4b40f279a1b2742c62bc34bd7df68348 | refs/heads/master | 2021-01-18T14:07:40.881696 | 2012-11-13T20:33:08 | 2012-11-13T20:33:08 | 40,747,253 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | #!/usr/bin/env python
import os, sys
from optparse import OptionParser
from useless.db.midlevel import StatementCursor
from paella.base import PaellaConfig
from paella.db import PaellaConnection
cfg = PaellaConfig()
parser = OptionParser()
parser.usage = '%prog [options] suite'
parser.add_option('-v', '--verbose'... | [
"umeboshi@cfc4e7be-4be4-0310-bcfe-fc894edce94f"
] | umeboshi@cfc4e7be-4be4-0310-bcfe-fc894edce94f | |
3bb2f96ac5504cf2d9f6c21a40cd559b718d5a01 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2549/60678/287719.py | 0ed13bc4dac02cc89d93b8a4d43b9074b34954a2 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | mANDq = input().split()
m = int(mANDq[0])
q = int(mANDq[1])
values = input().split()
for i in range(m):
values[i] = int(values[i])
for loopTimes in range(q):
orders = input().split()
if orders[0] == '1':
values.sort(reverse=True)
print(values[int(orders[1]) - 1])
else:
values.app... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
92b4506c45b3eb43d210481696f94d2d03a10ba6 | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/job_scrapers/plugins/edu/wheaton.py | e85d54d4acae735a815ef8cb3643d627ce0e1316 | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import re, urlparse
from neekanee.jobscrapers.jobscraper import JobScraper
from neekanee.htmlparse.soupify import soupify, get_all_text
from neekanee_solr.models import *
COMPANY = {
'name': 'Wheaton College',
'hq': 'Wheaton, IL',
'home_page_url': 'http://www.wheaton.edu',
'jobs_page_url': 'http://w... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
95c105248ac6f24fb3035a430b5b8f801ceb1df4 | bc00d7028ebf281491bb0160c33313eb6540e14c | /Game_1/Scripts/pygame_tut_2.py | b40cb80663f0c3e8d3258cb3364c9e168535b633 | [] | no_license | jlevy44/Python_Games | 7ad556f4d9910027ac9f632e910d216ca2ed22e5 | d981cfe8bbbbc2d73809aef58c071de5d5ef2cdf | refs/heads/master | 2021-01-19T13:06:15.564592 | 2017-09-01T21:08:52 | 2017-09-01T21:08:52 | 100,822,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | import pygame, numpy as np, sys
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((1024, 768))
clock = pygame.time.Clock()
class PadSprite(pygame.sprite.Sprite):
normal = pygame.image.load('../Images/pad_normal.png')
hit = pygame.image.load('../Images/pad_hit.png')
def __init__(sel... | [
"joshualevy44@berkeley.edu"
] | joshualevy44@berkeley.edu |
bc319042173cbe4e5dcc1a352e1343fba71e7d82 | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/pandas/tests/test_optional_dependency.py | 35b283f27ebf0df962aa8a50dafdd9e2fae0377f | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | import sys
import types
import pandas._testing as tm
import pytest
from pandas.compat._optional import VERSIONS, import_optional_dependency
def test_import_optional():
match = "Missing .*notapackage.* pip .* conda .* notapackage"
with pytest.raises(ImportError, match=match):
import_optional_dependenc... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
699638cb35d1385829bae5dc05972e80fad959ec | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_03_01_preview/operations/_operations.py | e59c4f92435ebd3f3d08b9cf5ea3cac78d7c52d7 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,686 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
68a60d8735f14799b70c6ab560b2533931d22891 | 8574094da8e8ad4bd65e1bbe67dd1abd5003d6a9 | /zopen.plone.todo/src/zopen/plone/todo/utils.py | eac5d46546addc1cc0da5a99492df547c0a64b5b | [] | no_license | madfrog2018/everydo-project | 5b948f8b04c04773163eb5193e45604b1fe4a74e | d2ea5b83513cf4191e29ba70a1fc8b1d9950599f | refs/heads/master | 2021-01-17T06:33:26.229787 | 2010-07-15T01:45:19 | 2010-07-15T01:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import re
urlRegexp = re.compile(r'((?:ftp|https?)://(?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)+(?:com|edu|biz|org|gov|int|info|mil|net|name|museum|coop|aero|[a-z][a-z])\b(?:\d+)?(?:\/[^"\'<>()\[\]{}\s\x7f-\xff]*(?:[.,?]+[^"\'<>()\[\]{}\s\x7f-\xff]+)*)?)', re.I|re.S|re.U)
def abbreviateUrl(url, max = 60, ellipsis = "[&hel... | [
"yan5yang@gmail.com@4c72a389-b037-68f1-009d-6f17fb46af5f"
] | yan5yang@gmail.com@4c72a389-b037-68f1-009d-6f17fb46af5f |
c709d432fc89d87fa0c9adfc21310b808d742602 | b7c4169d6e93142aefacbd08e59ce87b8020b409 | /filterpy/kalman/ensemble_kalman_filter.py | 66cc2be1580bd1713cd0f3d2c66275e5ee835ad8 | [
"MIT"
] | permissive | Censio/filterpy | a4414f9ee02c63a173c6ced31299ab59c78b206f | f6fde8f6c7f2cbb6818c9e9107d2e61da7cf3174 | refs/heads/master | 2023-04-10T21:47:06.559751 | 2021-08-12T17:09:40 | 2021-08-12T17:09:40 | 42,183,351 | 0 | 0 | MIT | 2022-09-30T20:09:50 | 2015-09-09T14:24:02 | Python | UTF-8 | Python | false | false | 5,959 | py | # -*- coding: utf-8 -*-
"""Copyright 2015 Roger R Labbe Jr.
FilterPy library.
http://github.com/rlabbe/filterpy
Documentation at:
https://filterpy.readthedocs.org
Supporting book at:
https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python
This is licensed under an MIT license. See the readme.MD file
for mo... | [
"rlabbejr@gmail.com"
] | rlabbejr@gmail.com |
d5214b6670dbc33268918add20a15e88256d19c0 | 65c03709b91ce8f006641b30d481b4fda651520e | /Coding/17_tuple_unpacking.py | b651db52527c416c80afe94f72636cc185f491e2 | [] | no_license | ahad-emu/python-code | 332121ad289b169ca8099c88bde13d7121be1030 | 135805c78de38eaf1bd5500b44625b36b7b653c0 | refs/heads/master | 2020-09-09T01:01:41.313964 | 2020-07-04T16:31:37 | 2020-07-04T16:31:37 | 221,296,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | myList = [(1,2), (3,4), (5,6), (7,8)]
for list in myList:
print(list)
for (a,b) in myList:
print(a)
print(b)
for (a,b) in myList:
print(a)
| [
"ahademu99@gmail.com"
] | ahademu99@gmail.com |
3ee46624e9611a73d63fbd7277eed4d6f27220a9 | 780b78b56ed85d2ae4735e64f1c400ed2ca7410a | /gaussian_experiment/stochastic_proc.py | 4376941a2dce89e24e9106b6d00309fb5e8de28b | [] | no_license | Namenaro/cnn-ecg | c01f82997dc06923297dfcc1b650b99d072c5649 | 90101a110225783ffd11f465b20658cd6facaf0a | refs/heads/master | 2020-12-18T11:08:28.602315 | 2020-01-27T09:08:08 | 2020-01-27T09:08:08 | 235,358,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | import numpy as np
import scipy
from scipy import spatial
import matplotlib
import matplotlib.pyplot as plt
import math
import sklearn
import json
import codecs, json
def get_m_sigma(patient_id_in_dataset):
raw_dataset_path = "data_1078.json"
f = open(raw_dataset_path, 'r')
data = json.load(f)
v6Data ... | [
"nanenaro@gmail.com"
] | nanenaro@gmail.com |
f74d61fe5cf75d61250350c4f877e7e8f99213e5 | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/aliyun/aliyun-openapi-python-sdk/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/BindIpRangeRequest.py | 5f4600a6d151db73e89425c73e000d842865c65b | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 2,034 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
08b554b69a04804a38cba67cbd94ec98500ee6aa | e689e675637cfa7f6e42d30dd8bfd1d1675c9421 | /python/fizzbuzz/advanced/adv_fizzbuzz.py | 4c9e960062f38316620b78fdaf59f229c1f7047e | [] | no_license | kkneomis/thinkful-mentor | 9adce5259a19329595d344ef42691365b4bbae55 | 4e83c6dfe019c72154ebd778a93d0ef51c6cdc0e | refs/heads/master | 2021-01-20T18:51:32.043281 | 2016-06-29T02:34:16 | 2016-06-29T02:34:16 | 62,686,201 | 1 | 0 | null | 2016-07-06T02:53:40 | 2016-07-06T02:53:40 | null | UTF-8 | Python | false | false | 962 | py | import sys
def get_value():
if sys.argv[1:]:
upper_limit = sys.argv[1]
else:
upper_limit = raw_input("Enter the upper limit of the range: ")
return upper_limit
def convert_value(upper_limit):
while True:
try:
value = int(upper_limit)
return value
... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
9a116b9a2df2c0561763c6fa9b21c1cf501f833f | 570fc184f62d1cf8624ca2a5a7fc487af1452754 | /testing/mozbase/mozprocess/mozprocess/processhandler.py | 7f99b7e29781fd29d8f31b0651631595a88ba253 | [] | no_license | roytam1/palemoon26 | 726424415a96fb36fe47d5d414a2cfafabecb3e6 | 43b0deedf05166f30d62bd666c040a3165a761a1 | refs/heads/master | 2023-09-03T15:25:23.800487 | 2018-08-25T16:35:59 | 2018-08-28T12:32:52 | 115,328,093 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 37,821 | py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import logging
import mozinfo
import os
import select
import signal
import subprocess
import sys
import threading
import... | [
"roytam@gmail.com"
] | roytam@gmail.com |
94a59ce25ec6acf6709987fb3d3b466546948fa6 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/python/autograph/operators/py_builtins.pyi | 8e5e863be785717e33a3a2d0d875c4ee1a435da7 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | pyi | # Stubs for tensorflow.python.autograph.operators.py_builtins (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python.autograph.utils import py_func as py_func, tensors as tensors
from tensorflow.python.framework import constant_op as constant_op, dtypes as dtype... | [
"matangover@gmail.com"
] | matangover@gmail.com |
5e298775a4bd9838b08de0ceaae0b775560f4456 | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/appengine/v1beta/appengine_v1beta_client.py | 9639083a46e161ed8d1f74c4be6d54f35a95cb87 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 50,318 | py | """Generated client library for appengine version v1beta."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.appengine.v1beta import appengine_v1beta_messages as messages
class AppengineV1beta(base_api.BaseApiClient):
""... | [
"me@gareth.codes"
] | me@gareth.codes |
d108f2f8f3864ac321098b41e020a68a570e2eb4 | d0b59e57fad41ca6ffab65fd5731507028f17321 | /_CNDB/_GTW/deploy.py | ec6bb3cbc5bf168b9312b593cce96eeb2aafb1c4 | [
"BSD-3-Clause"
] | permissive | FunkFeuer/common-node-db | c3b3c15baffce355715110e888838f9350c97754 | 788090da1991fdb37ae80c0d3395888951e5be03 | refs/heads/master | 2021-01-17T14:03:21.682449 | 2020-04-01T11:38:45 | 2020-04-02T12:25:33 | 31,951,710 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2014-2015 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# #*** <License> ************************************************************#
# This module is part of the package CNDB.GTW.
#
# This module is licensed under the te... | [
"tanzer@swing.co.at"
] | tanzer@swing.co.at |
5a23be2badc69ab99d7bb9cad0b43134de690a15 | 35fb414cc9f5c408dc5d2c8316a5b6e4de3ccf22 | /scripts/plot_from_histogram.py | 336fd3e7829ef79883ddc1a80bf7217d06d1d554 | [] | no_license | kartikmaurya/tth-htt | abf1abafc9335da9687938f8588550a86631f751 | 8486aa6f33085a7b2d665e9215b828970f6ee8a7 | refs/heads/master | 2020-05-05T02:09:31.876729 | 2019-04-05T06:54:50 | 2019-04-05T06:54:50 | 177,517,377 | 0 | 0 | null | 2019-03-25T05:01:21 | 2019-03-25T05:01:21 | null | UTF-8 | Python | false | false | 3,423 | py | #!/usr/bin/env python
# Example usage:
# plot_from_histogram.py -i input.root -j autoPU -o output.png -x '# PU interactions' -y '# events' -t 'ttHJetToNonbb' -g
import ROOT
import argparse
import os
ROOT.gROOT.SetBatch(True)
def positive_int_type(value):
try:
value_int = int(value)
except ValueError:
ra... | [
"karlehataht@gmail.com"
] | karlehataht@gmail.com |
31f08c81fb63ccd415f1866ae4f72d19a79d9c24 | 3b2940c38412e5216527e35093396470060cca2f | /top/api/rest/SimbaAdgroupidsDeletedGetRequest.py | 2ab12fd5bd10268d1a4b4b6b04735c428c50d9d5 | [] | no_license | akingthink/goods | 842eb09daddc2611868b01ebd6e330e5dd7d50be | ffdb5868a8df5c2935fc6142edcdf4c661c84dca | refs/heads/master | 2021-01-10T14:22:54.061570 | 2016-03-04T09:48:24 | 2016-03-04T09:48:24 | 45,093,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | '''
Created by auto_sdk on 2015-01-20 12:44:31
'''
from top.api.base import RestApi
class SimbaAdgroupidsDeletedGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.nick = None
self.page_no = None
self.page_size = None
self.start_time ... | [
"yangwenjin@T4F-MBP-17.local"
] | yangwenjin@T4F-MBP-17.local |
9791846dba11f9d93df6abceaea045e7ffc3f3e2 | 10b5a703c0166b55331513d2a9aead687032e804 | /leetcode17.py | d6907a73184f64aa2e6021cd6dfff17426ab332e | [] | no_license | jack456054/leetcode | f2d623d5683098b2038322ee3eef81dc020f6fb1 | 24f0075909f8620513f6f21c9ad3dc299dee8967 | refs/heads/master | 2022-11-12T18:01:52.832206 | 2022-11-10T07:24:39 | 2022-11-10T07:24:39 | 125,793,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | class Solution:
def letterCombinations(self, digits: str) -> List[str]:
if not digits:
return []
number_map: Dict[int, List[str]] = {
'2': 'abc',
'3': 'def',
'4': 'ghi',
'5': 'jkl',
'6': 'mon',
'7': 'pqrs',
... | [
"jack456054@hotmail.com"
] | jack456054@hotmail.com |
89313bf795ab761c5c310640cb14bb633d643f8a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03544/s328169795.py | fc7bee0fc44cff4fea1ea0d63312692d674f3f78 | [] | 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 | 140 | py | n = int(input())
a = 2
b = 1
for i in range(n-1):
c=b+a
a,b=b,c
if n == 0:
print(a)
elif n == 1:
print(b)
else:
print(c) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f2ae1e2a90e91a16c0190425e36cde52e56fa300 | 7cad80770718e655766dd038bc654ebe1ad2ab3e | /network/bumbacoin.py | 9bec823d24389fe9a7a56fabf3973170c80985e4 | [] | no_license | kindanew/clove_bounty | d0e1f917dff5b3a23eae6a05d6449af068fb4dc9 | e707eebde301ac3728a5835d10d927aa83d27ab5 | refs/heads/master | 2021-04-29T00:29:37.698092 | 2018-02-24T02:34:33 | 2018-02-24T02:34:33 | 121,830,043 | 0 | 0 | null | 2018-02-17T05:34:54 | 2018-02-17T05:26:51 | Python | UTF-8 | Python | false | false | 412 | py | from clove.network.bitcoin import Bitcoin
class Bumbacoin(Bitcoin):
"""
Class with all the necessary Bumbacoin network information based on
https://github.com/bumbacoin/bumbacoin2-source/blob/master/src/net.cpp
(date of access: 02/12/2018)
"""
name = 'Bumbacoin'
symbols = ('BUMBA... | [
"noreply@github.com"
] | kindanew.noreply@github.com |
eb772f9a4eb2d3f416c76309582eb7a436c8c507 | 47787c2f0b844288306ea2082969fedbdc8c00ce | /scripts/reaction_wheels.py | 00e24ab915df587ff9c0f077c82d4f6eec8b591b | [] | no_license | connorlee77/ros-spacecraft-controller | 05219b3a686731e167b9b976a4179fba6dd24270 | 9404ee1526c3be3e5e96942b5c80cc9ea6a6fbdd | refs/heads/master | 2020-05-20T19:48:49.009032 | 2019-05-25T07:50:27 | 2019-05-25T07:50:27 | 185,731,355 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,677 | py | #!/usr/bin/env python
import odrive
import odrive.enums
import fibre.protocol
import json
import time
import sys
from hivemind.srv import reaction_wheel
MAX_RPM = 5000
POLE_PAIRS = 8
RESISTANCE_CALIB_MAX_VOLTAGE = 1.0
CALIB_CURRENT = 2.0
CURRENT_LIM = 3.0
REQUESTED_CURRENT_RANGE = 1.0
HALL_CPR = 6 * POLE_PAIRS
POS_GAI... | [
"connorlee77@gmail.com"
] | connorlee77@gmail.com |
46c872848672e72ad82742167c1b929a600e90ad | 6825df3893e582e17055627e4a3e52e905dbd588 | /post/urls.py | f278a4cbd9213d02ba519f7fe904ed6585f441a0 | [] | no_license | Munene19/Insta-clone | 23c8564aaa24bd967fb31ad46538ff3a87211ac3 | 65c8dc6496da2d0a0b0e16e1d0912953a999f309 | refs/heads/master | 2023-01-15T06:34:25.163603 | 2020-11-26T05:56:59 | 2020-11-26T05:56:59 | 314,538,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from django.urls import path
from post.views import index, NewPost, PostDetails, like
urlpatterns = [
path('', index, name='index'),
path('newpost/', NewPost, name='newpost'),
path('<uuid:post_id>', PostDetails, name='postdetails'),
path('<uuid:post_id>/like', like, name='postlike')
] | [
"you@example.com"
] | you@example.com |
483f811c4ec3c1f9c3d15953d4c11f53ee8d1af3 | ee91fd76ad11a35db46adda8569915b95fa59013 | /.ipython/profile_default/ipython_kernel_config.py | 5c424d003c6f192ecc0a9919cf180e069d788c9c | [] | no_license | nim65s/dotfiles | b01f9cbb6452abe526a7c4912984f01b4332f824 | 8466a6886469fd3e459794fb8fcff5f896b40614 | refs/heads/master | 2023-09-01T10:45:45.836233 | 2023-08-08T01:08:33 | 2023-08-08T01:08:33 | 319,199 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,283 | py | # Configuration file for ipython-kernel.
#------------------------------------------------------------------------------
# Configurable configuration
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Loggin... | [
"guilhem.saurel@gmail.com"
] | guilhem.saurel@gmail.com |
5b2390b0f3f949f85a146c3f3e93c68751449a21 | 7db6c1865cf9102808824ff06cda747b6e572a21 | /Python/Test/Regexp/test_findall.py | 1f412272647d1802e79e595173c1433e169442b0 | [] | no_license | hyteer/testing | 1f6cabc1d2b67faa4533e6ad7eb5be8c13d542c9 | 1d8b47b3bbb2daf00e4f15b5d18e86111ea4e113 | refs/heads/master | 2020-05-21T16:19:08.243676 | 2017-01-03T01:25:17 | 2017-01-03T01:25:17 | 60,914,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | import re
url = 'http://betanewwsh.snsshop.net'
match = re.findall(r'(?<=http://).*', url)
print match[0]
| [
"hyteer@qq.com"
] | hyteer@qq.com |
bdc579d1445a41c8bdf585db8f0b047eaaacb190 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2131.py | 9cbbfda580f7c88867094f12c09439b1105ac359 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=31
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
d558351b7f2e51e354c622fe8171061762165fdd | b70126739f50af4d598f4ca59806cdf34e7d06dd | /product/migrations/0017_auto_20190327_1254.py | d49d655b638e58ce30e2021d182340681b7f13f3 | [] | no_license | sharingsimplethoughts/onlineshopping | aa1b52828819d9ab21b0405463efa9995210ec0d | c48a32dd762dd2eef81935e1645b4304d9587cc7 | refs/heads/master | 2022-11-10T09:16:21.341703 | 2020-07-01T07:29:10 | 2020-07-01T07:29:10 | 276,291,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # Generated by Django 2.1.5 on 2019-03-27 07:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('product', '0016_auto_20190327_1253'),
]
operations = [
migrations.RenameField(
model_name='colour',
old_name='code',
... | [
"sukamal.sinha@fluper.in"
] | sukamal.sinha@fluper.in |
2a44ec3389567cfbb56109b56d75c6e49901c966 | 262a6bb44f5e836c09a52687ea41b4c78c083c2d | /src/sst/elements/memHierarchy/tests/testBackendChaining.py | 00900743b6825cf753f1f8a86b31161a8b47ce93 | [] | no_license | KarateSnowMachine/sst-elements | 229a4455f1fe1bea1d4d39b225328fce6ac9854b | dfa14007e63c7bf3441e45b57ff692f35f3edc21 | refs/heads/master | 2021-04-26T16:56:13.240560 | 2017-09-17T13:48:42 | 2017-09-17T13:48:42 | 106,871,524 | 0 | 0 | null | 2017-10-13T20:43:25 | 2017-10-13T20:43:24 | null | UTF-8 | Python | false | false | 8,676 | py | # Automatically generated SST Python input
import sst
# Define the simulation components
comp_cpu0 = sst.Component("cpu0", "memHierarchy.trivialCPU")
comp_cpu0.addParams({
"clock" : "2.2GHz",
"commFreq" : "4",
"rngseed" : "101",
"do_write" : "1",
"num_loadstore" : "1000",
"memSize" ... | [
"grvosku@sandia.gov"
] | grvosku@sandia.gov |
49fe30601847cf0de4d62c34f3fa7fa084f99cf2 | 259319862c0f6a8e56bf20f9c910e14b8c629ef1 | /Linear Regression/linear_reg.py | 5ebcd8167b6f62f9392ee420628bc1dfd0648353 | [] | no_license | chatchad/Machine-Learning | 406bc3742cef7839d806959227ed3cbb9d341132 | 7c567a19af9fc77c366e18fc16c744f9dc72b361 | refs/heads/master | 2020-04-07T01:41:11.887136 | 2018-11-11T15:31:34 | 2018-11-11T15:31:34 | 157,948,200 | 1 | 0 | null | 2018-11-17T03:47:47 | 2018-11-17T03:47:46 | null | UTF-8 | Python | false | false | 1,034 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
os.chdir(r'g:\\Programs\\python\\Machine Learning\\Linear Regression')
datas = pd.read_csv('example.csv')
print(datas.shape)
datas.head()
X = datas[datas.columns[0]].values
Y = datas[datas.columns[1]].values
print(X)
print(Y)
mean_x = ... | [
"vngla21@gmail.com"
] | vngla21@gmail.com |
f704978e2e439cf9569e40e394f3fd3a117ef584 | fd529ba6ade52cd2a3dab94da01252d7ea90398d | /stock/stocktest.py | edf0d8195e090ed0ebaa4422dbf26c1aece7826f | [] | no_license | fjfhfjfjgishbrk/AE401-Python | 4a984deb0281542c205d72695285b35c7413338f | ee80fa4588b127cff2402fd81e732ede28a66411 | refs/heads/master | 2022-06-13T13:49:39.875567 | 2022-05-28T12:40:51 | 2022-05-28T12:40:51 | 251,178,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | import yahoo_finance
yahoo = yahoo_finance.Share("YHOO")
print(yahoo.get_open()) | [
"59891511+fjfhfjfjgishbrk@users.noreply.github.com"
] | 59891511+fjfhfjfjgishbrk@users.noreply.github.com |
abb11c083227de389d5b431d13b118dbc06ae759 | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/.install/.backup/lib/surface/compute/instances/tail_serial_port_output.py | b69274386dfba6a5cab036f4c5a82496465d1b9d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 3,792 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
8745f5e38d3a1af9c322409e7d364a6f90a5627a | 05d692469305dd1adb9ebc46080525bb4515b424 | /Exception handling/lookuperror1.py | ec7939de1f5c90d98b2cc67eea3a9a151fbbcbcf | [] | no_license | rajdharmkar/pythoncode | 979805bc0e672f123ca1460644a4bd71d7854fd5 | 15b758d373f27da5680a711bf12c07e86758c447 | refs/heads/master | 2020-08-07T18:30:55.575632 | 2019-10-14T12:46:09 | 2019-10-14T12:46:09 | 213,551,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import sys
try:
f = open ( "JohnDoe.txt", 'r' )
except Exception as e:
print e
print sys.exc_type | [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
c1222571099b17830bd188823743c5f3a14d1e31 | a5d22c99e781270317078f8980c934bcc71e6e8b | /neodroidvision/data/synthesis/conversion/mnist/threed/to_nrrd.py | 433a17b5ae0cab4ca843fdacca862311779cdc42 | [
"Apache-2.0"
] | permissive | aivclab/vision | dda3b30648b01c2639d64a016b8dbcfccb87b27f | 06839b08d8e8f274c02a6bcd31bf1b32d3dc04e4 | refs/heads/master | 2023-08-21T22:35:10.114394 | 2022-11-02T10:14:08 | 2022-11-02T10:14:08 | 172,566,233 | 1 | 3 | Apache-2.0 | 2023-08-16T05:11:30 | 2019-02-25T19:00:57 | Python | UTF-8 | Python | false | false | 1,765 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian"
__doc__ = r"""
Created on 29/03/2020
"""
import gzip
import pickle
import numpy
from draugr.numpy_utilities import SplitEnum
from tqdm import trange
from neodroidvision import PROJECT_APP_PATH
from .augmentation import ro... | [
"christian.heider@alexandra.dk"
] | christian.heider@alexandra.dk |
f885865bcc0219928384c787aad086529158bf1f | aa3dc5ae4fa7d531bbaa75c3008031f2a1b8845d | /1002. Find Common Characters.py | 9bec4b428f1a593c799b6d1f14f417187823e118 | [] | no_license | alankrit03/LeetCode_Solutions | 354e797d1d5f5a78b116c1f9a3034dd651d71d9a | f8ca46afdfbd67509dde63e9cdc5fd178b6f111b | refs/heads/master | 2021-01-08T17:41:22.976375 | 2020-11-03T17:01:37 | 2020-11-03T17:01:37 | 242,097,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from collections import Counter
class Solution:
def commonChars(self, A: list[str]):
ans = Counter(A[0])
for i in range(1, len(A)):
temp = ans - Counter(A[i])
ans -= temp
return list(ans.elements()) | [
"alankritagarwal9@gmail.com"
] | alankritagarwal9@gmail.com |
f56a7d3966e2ab8523173e212ec464b3f4e963ae | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /001113StepikPyGEK/StepikPyGEK001113сh03p02st06C02_20200408.py | 282b1a50447d19813e13cca0436f6561948f6822 | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | import math
r = float(input())
print(2 * math.pi * r)
| [
"ms33@inbox.ru"
] | ms33@inbox.ru |
7f76daf435068352daf6a80d76f0b7009b5af610 | 55a273347cb103fe2b2704cb9653956956d0dd34 | /code/tmp_rtrip/lib2to3/pytree.py | 73dffdb298a594076440bc74adda81cb58c5c259 | [
"MIT"
] | permissive | emilyemorehouse/ast-and-me | 4af1bc74fc967ea69ac1aed92664f6428acabe6a | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | refs/heads/master | 2022-11-18T03:50:36.505882 | 2018-05-12T17:53:44 | 2018-05-12T17:53:44 | 115,035,148 | 25 | 1 | MIT | 2022-11-04T11:36:43 | 2017-12-21T18:27:19 | Python | UTF-8 | Python | false | false | 25,655 | py | """
Python parse tree definitions.
This is a very concrete parse tree; we need to keep every token and
even the comments and whitespace between tokens.
There's also a pattern matching implementation here.
"""
__author__ = 'Guido van Rossum <guido@python.org>'
import sys
import warnings
from io import StringIO
HUGE = ... | [
"emily@cuttlesoft.com"
] | emily@cuttlesoft.com |
8decf126cca75b2d70c41c9ef186e8744403211f | fd2d23696455770f1fb6236313133c637f9d42d6 | /drf_registration/apps.py | 0f2796050f5158ddd82ef930eb7539edc1ff9c24 | [] | no_license | eyeduh/hinode | 8a2352556fbcaa71fdbe63d1252dc844239a9ad8 | 1c96b8bd2ce053e3d5ae0d8c29156633a3dd74aa | refs/heads/master | 2023-08-04T15:24:05.216411 | 2021-09-20T15:46:21 | 2021-09-20T15:46:21 | 407,625,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.apps import AppConfig
class AuthConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'drf_registration'
| [
"ida@Aidas-MacBook-Pro.local"
] | ida@Aidas-MacBook-Pro.local |
e3f7da36ad64fb63e72a170e43610e64a9468722 | 4fd3f6c6ce06199d554101f796c0f6fc7eca074f | /0x06-python-classes/intervew.py | 90ec00a719bd5ec1c9b9c50cbe8470a7d44750b2 | [] | no_license | Joldiazch/holbertonschool-higher_level_programming | 64f453aaf492b5473319a1b5e7e338bc7964fa7b | c9127882ffed3b72b2a517824770adafa63a9042 | refs/heads/master | 2020-09-29T03:12:47.497695 | 2020-05-15T04:05:13 | 2020-05-15T04:05:13 | 226,935,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | def weight_average(my_list=[]):
mult = sum(list(map(lambda tup: tup[0] * tup[1], my_list)))
den = sum(list(map(lambda tup: tup[1], my_list)))
print (mult / den)
if __name__ == "__main__":
my_list = [(1, 2), (2, 1), (3, 10), (4, 2)]
weight_average(my_list) | [
"jluis.diaz@udea.edu.co"
] | jluis.diaz@udea.edu.co |
66d4b18e7a6b9a7fa3fec07d566e17ba2af695e1 | b2fef77e77f77b6cfd83da4ec2f89cbe73330844 | /tests/test_rand_rotated.py | a5a377b02fd859c1531af68d813eaa58d61d08e0 | [
"Apache-2.0"
] | permissive | Project-MONAI/MONAI | 8ef2593cc5fd1cd16e13464f927fe563fe3f5bac | e48c3e2c741fa3fc705c4425d17ac4a5afac6c47 | refs/heads/dev | 2023-09-02T00:21:04.532596 | 2023-09-01T06:46:45 | 2023-09-01T06:46:45 | 214,485,001 | 4,805 | 996 | Apache-2.0 | 2023-09-14T15:19:30 | 2019-10-11T16:41:38 | Python | UTF-8 | Python | false | false | 6,332 | py | # Copyright (c) MONAI Consortium
# 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, so... | [
"noreply@github.com"
] | Project-MONAI.noreply@github.com |
f8e6d80b30ad9b07e7a79729fa1165930be30288 | caa6180f15b260288e7dd813019717aab4d4f968 | /cbv/cbv/settings.py | 0a34d69c3c36ba47257c4146155c9ea6682c1f44 | [] | no_license | 404bhatt/test | 68e467887f28599ede85de39b9d6d9760240df86 | d32b0290eb4fa21c90d4a7436f3e84a23484b424 | refs/heads/master | 2021-07-15T02:26:19.224958 | 2020-10-05T18:01:34 | 2020-10-05T18:01:34 | 204,125,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | """
Django settings for cbv project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# ... | [
"mayankbhatt457@gmail.com"
] | mayankbhatt457@gmail.com |
16ccaa647bc01c498ff8c74f7173d5fc30cdc15a | e7e5ac71c941e3daf82781249ae6d32d8614f78e | /2016/day-04/part-1.py | 81c4141eae43dd4088cafb89f1952bd6f152ae30 | [
"MIT"
] | permissive | amochtar/adventofcode | 7f952ebee6b41aa5147cc788710fb054579742e7 | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | refs/heads/master | 2022-07-14T22:46:21.175533 | 2021-12-15T08:14:17 | 2021-12-15T08:28:43 | 222,647,709 | 1 | 0 | MIT | 2022-06-22T04:45:13 | 2019-11-19T08:36:02 | Python | UTF-8 | Python | false | false | 761 | py | import re
from collections import Counter
from operator import itemgetter
with open("input.txt", "r") as f:
rooms = [x.strip() for x in f.readlines()]
regex = re.compile(r'([a-z-]+)-(\d+)\[([a-z]+)\]')
count = 0
for room in rooms:
match = regex.match(room)
room_name = match.group(1).replace('-', '')
... | [
"amochtar@xebia.com"
] | amochtar@xebia.com |
314957918d553d5f5f4622faf639c98efc16e2ca | 4fccfbe5c9cdf595dd3bdb182a6214f593bfd808 | /tests/typing-py3-style.py | 3b54ad1c5cb75a92731791590153913463eb3764 | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | MountakBernotas/AzurePython | a3838207cb7ed9f3cd5e5b34aadd0a4eb6ca985d | 5f34b13be8aefc08c491eebaf1692b75b813e1f5 | refs/heads/master | 2020-03-28T16:25:30.226681 | 2018-09-13T20:37:30 | 2018-09-13T20:37:30 | 148,693,461 | 0 | 1 | NOASSERTION | 2018-12-13T13:33:54 | 2018-09-13T20:22:54 | Python | UTF-8 | Python | false | false | 2,879 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#
"""
############################################################################
# Pyth... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a0ae8dc7f97d5401b117be17724abd8856644f12 | 5a3547772b61f7d1b3a81f76dd1397eb92c68e7b | /lunzi/nn/__init__.py | 0eb61d1cc0b130f55e56ac0883ce562413c31b93 | [
"MIT"
] | permissive | suen049/AdMRL | 483440f0ded14e471d879b300da9afbab68fbe66 | 50a22d4d480e99125cc91cc65dfcc0df4a883ac6 | refs/heads/master | 2023-03-12T23:15:05.154003 | 2021-03-06T15:31:21 | 2021-03-06T15:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from . import patch
from .parameter import Parameter
from .module import Module
from .container import *
from . import utils
from .utils import make_method
from .layers import *
from .loss import *
from .flat_param import FlatParam
| [
"linzichuan12@163.com"
] | linzichuan12@163.com |
9220cbb119a86d18637c3d5466300c94b9b86359 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/14195241.py | c7528a8693aba9dbbdc9775236cb376493adf24b | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/14195241.py generated: Wed, 25 Jan 2017 15:25:27
#
# Event Type: 14195241
#
# ASCII decay Descriptor: [ B_c+ => (D+ -> K- pi+ pi+) (D*(2007)~0 => (D~0 -> K+ pi-) gamma) ]CC
#
from Configurables import Generation
Generation().EventType = 14195241
Genera... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
861d1d89fe4dd814f1746a8227664c5361da17c8 | 36fec9f5b26508d07b3d990bb2b15cf2a4b0fafa | /mls_api/migrations/0001_initial.py | 00a8b893e7437176ea4799a783f72b972197adc3 | [
"BSD-2-Clause"
] | permissive | NOBOD112/mls-api | af879ac10b1fb43645842f6df5a338084ae266d6 | 89188fefe1958f0e8fa8e2546614e7ac6c673156 | refs/heads/master | 2021-01-17T10:17:07.501141 | 2013-08-20T01:15:03 | 2013-08-20T01:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,862 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Team'
db.create_table(u'mls_api_team', (
(u'id', self.gf('django.db.models.field... | [
"f4nt@f4ntasmic.com"
] | f4nt@f4ntasmic.com |
ebaf77759da485914385a43824a95b16b834b08e | 8e8a02304570bdf14626ee482376c8fafebe077e | /bsp/src/leveleditor/actions/EditObjectProperties.py | 859df25b93026c62df2e0196a9f99a4e09d03893 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | tsp-team/panda3d | 3f8dc13bc3147e33dae5f452035d520c8aad08d0 | 7cdddb25ad73e0f5de40054ed94fa92b16bc2afd | refs/heads/master | 2022-12-22T00:38:56.908503 | 2020-09-28T20:53:55 | 2020-09-28T20:53:55 | 299,421,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from .Action import Action
class EditObjectProperties(Action):
Name = "Edit Object Properties"
def __init__(self, ent, newProperties):
self.obj = ent
self.newProperties = newProperties
# Copy the current values based on the new property keys
self.oldProperties = {}
fo... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
855a6b61c167620f8445786426e0c7a5dae90450 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02606/s711538947.py | f25530690687bc9e743f232f61ffa73ae04d047f | [] | 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 | 128 | py | [L,R,d] = map(int,input().split())
n = R - L + 1
c = 0
for i in range(n):
if (L + i) % d == 0 :
c = c + 1
print(c) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.