blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da9e1f4522b6eb3e083a65ce718036a326735377 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/welch_seasonal/seasonal-master/tests/periodogram_test.py | 32e6238a7848c7b5ebffdd644e8cfce74646e5a9 | [] | 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 | 1,236 | py | # tests of seasonal.periodogram_mode() using synthetic centered sources
#
# Generate synthetic waveforms at varying periods and test for
# periodogram_mode's ability to estimate an interval containing the
# original period.
#
from __future__ import division
import pytest
import numpy as np
from seasonal import periodog... | [
"659338505@qq.com"
] | 659338505@qq.com |
c3d3be01f739c6bd1ec36e55894a11cbd212fd64 | 8712ee1ef3c3b78c43fec493c29e1c1a894b7002 | /PAYING THE MINIMUM.py | b75445ba6d7a43838efee7aa7b6a93fb581bb32b | [] | no_license | Ryanrenqian/600x | 19741d501695d0b88778dae1342d7cb662991b1c | 05e9f99402af310a4414d655517a16795d3fa63d | refs/heads/master | 2021-01-11T11:06:17.776210 | 2017-01-15T13:31:58 | 2017-01-15T13:31:58 | 79,034,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | balance = 4213
annualInterestRate = 0.2
monthlyPaymentRate = 0.04
r=annualInterestRate #annualInterestRate=18%
c=r/12 #monthlyPaymentRate=annualInterestRate/12
pr=monthlyPaymentRate #monthlypayrate=2%
b=balance #updatebalance=balance-monthlypayrate*balance
up=0
for month in range(12):
ub=round(b-pr*b,2)
up+=rou... | [
"778315181@qq.com"
] | 778315181@qq.com |
6b108c77383f3d375a00a67e9286b2e362fe9471 | 870e117b42d36f02073a7a4fee098884f4b458cd | /bin/run_robot.py | 8edfa2cf1cab060c591cefc0af7a8668007653c7 | [
"MIT"
] | permissive | mimmon/snakepit-game | 386a1f65aaa178e63f6df4caa0f79de5114a13ce | 4616dd0ae6d3b601e9f893cbe09bc7f6cfe633dd | refs/heads/master | 2021-04-26T23:10:23.940810 | 2018-03-05T13:25:02 | 2018-03-05T13:25:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,147 | py | #!/usr/bin/env python
import os
import sys
import traceback
import argparse
import contextlib
from importlib import import_module
try:
from snakepit.robot_player import RobotPlayer, DEFAULT_SERVER_URL
from snakepit.robot_snake import RobotSnake
except ImportError:
print('snakepit Python package not found',... | [
"daniel@kontsek.sk"
] | daniel@kontsek.sk |
5fe44431c5c95744f9fe951639942ab4b0595fd9 | c2fa3b814a7f56ad804dffc767fc54f5099d60f8 | /models/structs/OLD_ALLEN/ALLEN_all_cells/DoG.py | 04627afbad4ff165e43da88721199e767ad8d208 | [] | no_license | dmely/contextual_circuit_bp | 223b602dbabbe8f8091fbb9106f3103bd5e1dcba | a277bc3146beaa4e3edd2134fc9fb8d3388a6013 | refs/heads/master | 2021-10-07T19:04:14.509951 | 2018-03-31T17:10:33 | 2018-03-31T17:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | """DoG model for Allen data."""
layer_structure = [
{
'layers': ['DoG'],
'weights': [9],
'names': ['dog1'],
'filter_size': [7],
'activation': ['selu'],
'activation_target': ['post'],
'dropout': [0.5],
'dropout_target': ['post']
},
{
'l... | [
"drewlinsley@gmail.com"
] | drewlinsley@gmail.com |
a1a2364ec32e358d906c39af09f6bb5b6d18e25f | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/R/rdmurphy/texas_reservoir_water_level_scraper.py | 14fccbb52ec6924ba06afe5a429065c3882265fb | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | import scraperwiki
import lxml.html
import csv
SITE_URL = "http://wiid.twdb.state.tx.us/ims/resinfo/BushButton/lakeStatus.asp"
CSV_URL = "http://dl.dropbox.com/u/72154039/res_lat_lons.csv"
data = scraperwiki.scrape(CSV_URL)
reader = csv.reader(data.splitlines())
latlon_data = {}
for row in reader:
latlon_data[... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
c1bbd9d41fb8e295488df287aec96b8d0ec5cf6d | 7298d1692c6948f0880e550d6100c63a64ce3ea1 | /deriva-annotations/catalog50/catalog-configs/PDB/atom_type.py | 566162367d702c5b84a8b33bda1226cd083e4de0 | [] | no_license | informatics-isi-edu/protein-database | b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d | ce4be1bf13e6b1c22f3fccbb513824782609991f | refs/heads/master | 2023-08-16T10:24:10.206574 | 2023-07-25T23:10:42 | 2023-07-25T23:10:42 | 174,095,941 | 2 | 0 | null | 2023-06-16T19:44:43 | 2019-03-06T07:39:14 | Python | UTF-8 | Python | false | false | 3,670 | py | import argparse
from deriva.core import ErmrestCatalog, AttrDict, get_credential
import deriva.core.ermrest_model as em
from deriva.core.ermrest_config import tag as chaise_tags
from deriva.utils.catalog.manage.update_catalog import CatalogUpdater, parse_args
groups = {}
table_name = 'atom_type'
schema_name = 'PDB'
... | [
"brinda.vallat@rcsb.org"
] | brinda.vallat@rcsb.org |
89d53391e2e4249ec256d142dbb65a5895dc11b4 | 4c3ad36846fe4382fafd55ed831bd2fef8e454cd | /medium/Wiggle Sort II.py | 13d331caa801dcbe3cc7cdd3090856e7ddc9442e | [] | no_license | gjwei/leetcode-python | 809f1f2d43d62eb931d42f2e7e271abf4a426017 | 7f25fa62c8cfa0fb24d57fd2a62059e0e98a6002 | refs/heads/master | 2021-01-20T01:38:01.149608 | 2018-01-05T06:43:05 | 2018-01-05T06:43:05 | 89,308,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
created by gjwei on 7/25/17
"""
class Solution(object):
def wiggleSort(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
pass
| [
"1449894353@qq.com"
] | 1449894353@qq.com |
7861875d5a5a4358305e8931f1847acdd812a42d | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Livro-Desenvolvimento web com Flask/Capitulo03/Nível 02/exemplo03a.py | 1c12404e0869b9685907ec9b842c0f3e6cf2e640 | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Prgrama: exemplo3a.py
# Author: Ramon R. Valeriano
# Description: Desensolvolvendo os Scripts do Nível 2 do Capitulo 3 do Livro.
# Developed: 08/03/2020 - 10:54
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('derivadobase.html')
app.run(debug... | [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
d09eef3e2f27c6cb21c0b9a6ea98027cfad67017 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /first_case/government/person.py | 5480f40b9492aa70592d4b1e5136639932143468 | [] | 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 | 217 | py |
#! /usr/bin/env python
def public_point(str_arg):
same_hand(str_arg)
print('come_person_from_able_world')
def same_hand(str_arg):
print(str_arg)
if __name__ == '__main__':
public_point('go_thing')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
ee81d9aa9b210ede93f68c9e3cdd8aa0b8cddb79 | 1e6fbad45fdf7b9c0057898ddedea1caf505afcb | /20190326/pf_opt/portfolio_optimization.py | fe8d81b06b136937e36e574f1a5d48107b2ba49f | [] | no_license | inaheaven/GA_Stock_Portfolio_Optimization_History | 5c26058ec41872b9548b46245f4afffa32d3abbe | f9e3300bd2d71ec3440b749896817127e83af481 | refs/heads/master | 2020-05-09T13:54:59.978675 | 2019-04-25T03:50:06 | 2019-04-25T03:50:06 | 181,171,241 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | from settings import *
from kospi_tickers import *
from population import Population
from genetic_algorithm import GeneticAlgorithm
import scraper
import save
import test_fund
import time
import datetime
from dateutil import relativedelta
from calendar import monthrange
import threading
def main(training_file_name... | [
"sangmin.rim@gmail.com"
] | sangmin.rim@gmail.com |
36641602f4c515c637f2dcc13bc20b2a7d936e22 | 61206ab4bb0ec3a85f228b02d5685c30c30ef8e8 | /socket_program/one_file_raw.spec | c7e1aea3d3068badf100c48bbe7bcab12179e6b8 | [] | no_license | mybeang/workspace3 | 14e8f9d8a5e520f40e9f1d9c7a836f3aa2da4109 | 87f31a637732d484a6302a3fed8cd04d165f35a3 | refs/heads/master | 2020-04-29T07:32:51.974351 | 2019-11-18T11:52:31 | 2019-11-18T11:52:31 | 175,956,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['one_file_raw.py'],
pathex=['D:\\python_project\\workspace3\\socket_program',
"C:\\Program Files (x86)\\Windows Kits\\10\\Redist\\10.0.17763.0\\ucrt\\DLLs\\x86"],
binaries=[],
datas=[],
hiddenimp... | [
"chaebh@dasanzhone.com"
] | chaebh@dasanzhone.com |
2f807b6634d0b1776393092b23210fa9e056b0e9 | d55cfa527d21854a0831f1db7a4fa2425a3a35fd | /singularity/registry/client/query.py | 1a152e37a5bca4d311429ebcae2eca8a9c934151 | [
"MIT"
] | permissive | mconcas/singularity-python | 838757965c59bd403619aabfe8adcbe12b6338ea | 1b38684fcda7931885269488e16305f989147b4f | refs/heads/master | 2021-05-07T07:42:45.440013 | 2017-10-31T23:38:18 | 2017-10-31T23:38:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,860 | py | '''
ls: search and query functions for client
The MIT License (MIT)
Copyright (c) 2016-2017 Vanessa Sochat
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... | [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
3ce86ff3cf34f9fc87e8f95423421fe4488285df | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /ARC012/ARC012f.py | df30b12a44bdf02c82125d2eec2296f40ae8507a | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #ARC012f
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
if __name__ == '__main__':
main() | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
0bfb29754b4e6e0b115ba9fcbe2a99e5e9bd8501 | 8400871944b1245393ab0f34d7d826d238415d1e | /Email/Libs/Ui_login.py | a175a37037e7e12f466f98f763c7b864a2532774 | [] | no_license | Shapooo/XYZMail | 350b8f2b909ab5ab021189cf4642921f8871e7d8 | a91fb61f5ec00af4329b6a221b73c8ee33bf9235 | refs/heads/master | 2021-06-09T12:47:49.877716 | 2016-12-19T09:23:08 | 2016-12-19T09:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,175 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\14356\Desktop\EmailSystem_搜索_转发_回复_12.15\Email\Libs\login.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QStr... | [
"1435679023@qq.com"
] | 1435679023@qq.com |
55f293c3130c250ce709ccf8907bdb1af62247cb | 9b410c4884b978f654e1538467549d26456f60e0 | /src/show_tree.py | 2c5bfc61ce4e8962b1b72fbbc9d324b72f753d2b | [] | no_license | vrthra/ddset | 4c49e13a91c4a1c1b4a7b580174abe21323324da | 6c776c998a0d7e2ee0092cf688e352149b177330 | refs/heads/master | 2022-11-29T23:46:40.730354 | 2020-08-03T13:36:49 | 2020-08-03T13:36:49 | 257,855,512 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | #!/usr/bin/env python3
import ftree as T
import Abstract as A
import json
import sys
import os
def coalesce(tree):
name, children, *rest = tree
if not A.is_nt(name):
return (name, children, *rest)
elif is_token(name):
v = A.tree_to_string(tree)
return (name, [(v, [])], *rest)
... | [
"rahul@gopinath.org"
] | rahul@gopinath.org |
da0986e45c49edd4895459d5a1194d935b377de6 | 1d60b962456da3a0dcf8a5dbd82c72cf1be42521 | /tests/test_type_alignment.py | a47a5fb1df1fa48ffa60c86135180d331be31018 | [
"Apache-2.0"
] | permissive | txxia/fruit | 9ac02fa28823197697eae1fc6d1e3164f67886d7 | b645d155220b21d81b0080c4f2a0ed3985d40689 | refs/heads/master | 2021-01-01T20:36:02.085118 | 2017-07-30T20:55:52 | 2017-07-30T20:55:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | #!/usr/bin/env python3
# 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 requir... | [
"poletti.marco@gmail.com"
] | poletti.marco@gmail.com |
7d9dd142d777fe4e3f55a9056643c74750396f80 | e4f956a7c8de3d445f3121c45bb9d421524a9ee8 | /xero_python/payrolluk/models/accounts.py | 2d10400860cf0560d27df85f4657269b3f8f3df4 | [
"MIT"
] | permissive | brickx/xero-python | d120625ec8247e3ac5e1f4fad1c9442170ee5ddf | 0cfe5e15cf4b2df4fffbee8acec9ce221bda15bb | refs/heads/master | 2023-01-31T09:24:54.239649 | 2020-12-11T23:36:01 | 2020-12-11T23:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | # coding: utf-8
"""
Xero Payroll UK
This is the Xero Payroll API for orgs in the UK region. # noqa: E501
OpenAPI spec version: 2.7.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class Accounts(BaseMod... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
044cc80569d2449907ba23c46d2281fe154e7ce2 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/query_options_py3.py | ed3bb4d1609df405159dfe7e4676593daad4ccb8 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,670 | py | # 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) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
8bc9ce624632e82e949d5d73e7cdeec019baf07d | d81dc8eda4aed1e66a2275ddd7463eaa90789ff4 | /BCJA/Face_Detect(Frontal).py | 793694411617dd3c08e593c1f94b7597adda85de | [] | no_license | ai3DVision/BlendedJointAttention | c01b8b6b0c33923e2e7c6719765c427c1c5e5439 | 2bf9445d7749c9f138df950aea9dd101c8713ff4 | refs/heads/master | 2020-03-15T23:42:18.307922 | 2016-08-25T13:26:53 | 2016-08-25T13:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import cv2
# Defining cascade variables
faceCascade1 = cv2.CascadeClassifier('haarcascades/haarcascade_frontalface_alt2.xml')
faceCascade2 = cv2.CascadeClassifier('haarcascades/haarcascade_frontalface_default.xml')
faceCascade3 = cv2.CascadeClassifier('haarcascades/haarcascade_frontalface_alt.xml')
# Video capture vi... | [
"agarwalsoumitra1504@gmail.com"
] | agarwalsoumitra1504@gmail.com |
74a7839b68d764721e6f58b7ae7c4a273ec5ff50 | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/557_reverse_words_in_a_string_iii.py | eff6cb832c443c13a31056367c558928b115e458 | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | class Solution:
def reverseWords(self, s: str) -> str:
"""String.
Running time: O(n) where n is the length of s.
"""
words = s.split(' ')
return ' '.join([word[::-1] for word in words]) | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
2bdc59823f2bee894b70231d3cf60dc7637a746c | 2ce042561eda93d24df0af7497da9d9fef823c4e | /share/rpcauth/rpcauth.py | f28d820b24fd7c6aea08d228d71cff8f08089a40 | [
"MIT"
] | permissive | minblock/mieracoin | 11cb487718a869e7a636dd62426c2de8d9e90305 | 6c0a25bff99d20ecfb1cd2688361a0f34f699dae | refs/heads/master | 2021-05-21T13:41:04.179190 | 2020-04-04T13:46:31 | 2020-04-04T13:46:31 | 252,669,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from argparse import ArgumentParser
from base64 import urlsafe_b64encode
from binascii import hexlify
fro... | [
"POSTMASTER@provgn.com"
] | POSTMASTER@provgn.com |
3686e3848676895b48f87f5319744293231498b6 | 4926667354fa1f5c8a93336c4d6e2b9f6630836e | /1308.py | bd105fb4201adb5add758866d16fe572abbdd391 | [] | no_license | nascarsayan/lintcode | 343b3f6e7071479f0299dd1dd1d8068cbd7a7d9e | 4da24b9f5f182964a1bdf4beaa8afc17eb7a70f4 | refs/heads/master | 2021-07-13T12:31:45.883179 | 2020-07-20T02:27:53 | 2020-07-20T02:27:53 | 185,825,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | class Solution:
"""
@param n: a integer
@return: return a 2D array
"""
def getFactors(self, n):
# write your code here
dp = {}
def facs(n):
if n in dp:
return dp[n]
res = []
for i in range(2, int(n**0.5) + 1):
if n % i == 0:
res.append([i, n // i])
... | [
"nascarsayan@iitkgp.ac.in"
] | nascarsayan@iitkgp.ac.in |
cb4ea87eacd9b91bfd311183e67eb73d1c0e12c6 | 03708e4eb8cfd79b45956f930bb50c1f54383bef | /setup.py | 07bf9eb0f072c9880a6a231609b5f5042b2a17a3 | [
"MIT"
] | permissive | MacHu-GWU/lbdrabbit-project | 3d55e194328391f67c2c12c40b7762c18a2647ac | e808f116bc85d95f3d545e085bede56df41b6d92 | refs/heads/master | 2020-08-02T02:21:46.634030 | 2019-10-07T11:39:57 | 2019-10-07T11:39:57 | 211,206,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,376 | py | # -*- coding: utf-8 -*-
"""
The setup script is the centre of all activity in building, distributing,
and installing modules using the Distutils. It is required for ``pip install``.
See more: https://docs.python.org/2/distutils/setupscript.html
"""
from __future__ import print_function
import os
from datetime import... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
f383ad5bd1a6f746bd006f603ae572f777fbbeea | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/lokcon/counting_sheep.py | 07987a45a70b32d1f5f756f36eb3601df5d0dcc4 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 721 | py | from sys import stdin
def readline_int():
return int(stdin.readline().rstrip())
def process(num):
i = 0
digits = []
history = []
while len(digits) != 10:
value = num * (i + 1)
i += 1
if value in history:
return None
history.append(value)
for ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
2e1cc6ee3d92b777194459a8c149fc2c3a0623f0 | 0559694cf652f496c8fc3a7827715e5fcf98e7b8 | /InnerEye/ML/models/layers/weight_standardization.py | 79fa6590e2d10efb6419cbd430722b1cc434ea33 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/InnerEye-DeepLearning | 9f7fc5f5dbeb153138d5668f1d026f24b68cb50f | 2877002d50d3a34d80f647c18cb561025d9066cc | refs/heads/main | 2023-08-24T16:52:52.817042 | 2023-03-23T09:36:07 | 2023-03-23T09:36:07 | 259,878,805 | 511 | 144 | MIT | 2023-07-26T18:55:26 | 2020-04-29T09:15:05 | Python | UTF-8 | Python | false | false | 2,317 | py | # ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
a9e4a8a5a7129f7fbf6312563015808d2ccb90fd | 6cc2d3b96819074f703fc0538dbe54c6bf63f29e | /dev_pestle/dose_class_obj.py | 9ace059a0022236359dc68dde0c5917aef04d9dc | [] | no_license | lhogstrom/jailbird | 197685ed1760cf782bf68b2b8bd1cc343f317c11 | c768c40a8caee2367190fab436810d926daee59d | refs/heads/master | 2016-09-02T03:52:50.877322 | 2014-07-29T17:45:26 | 2014-07-29T17:45:26 | 9,912,211 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,872 | py | #! /usr/bin/env python
'''
create a class/ object to handel common info for dose analysis
'''
import os
import cmap.io.gct as gct
import numpy as np
class DosePlate:
'''
class to serve as a containing for dose analysis
'''
def __init__(self,s_thresh=6,c_thresh=0.2):
'''
constructor
... | [
"hogstrom@broadinstitute.org"
] | hogstrom@broadinstitute.org |
f9fc5d2d7228ebb0b30c662667a6d83ae776925c | eff5cd25fa442b70491262bada0584eaaf8add46 | /tfx/benchmarks/benchmark_utils.py | e4348810e3b15dc9cc0e9b03c78330780e55914b | [
"Apache-2.0"
] | permissive | fsx950223/tfx | c58e58a85e6de6e9abcb8790acbf36424b5b2029 | 527fe2bab6e4f62febfe1a2029358fabe55f418c | refs/heads/master | 2021-01-04T12:12:51.010090 | 2020-01-26T04:43:14 | 2020-01-26T04:43:14 | 240,543,231 | 1 | 0 | Apache-2.0 | 2020-02-14T15:48:12 | 2020-02-14T15:48:11 | null | UTF-8 | Python | false | false | 1,642 | py | # Copyright 2019 Google LLC. 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 a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
852e8a47a94f64376b08c60a17cee5a6af29300c | c0872739a7a58c04b714a0af5bc0893eb8ae0f0a | /canvas_users/dao/sis_provisioner.py | fa8eb582d92476af8a413d3df4d8666e30631643 | [
"Apache-2.0"
] | permissive | uw-it-aca/django-canvas-users | be4494bc7df1728e3388132f307bc7e8b9c75420 | a7f2a6915e34f85ad7ce7e11088422111b1c3213 | refs/heads/main | 2023-06-09T21:40:13.386286 | 2023-06-06T16:29:11 | 2023-06-06T16:29:11 | 43,985,776 | 0 | 0 | Apache-2.0 | 2023-08-21T23:56:04 | 2015-10-10T00:09:37 | Python | UTF-8 | Python | false | false | 1,116 | py | # Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from restclients_core.dao import DAO
from restclients_core.exceptions import DataFailureException
from os.path import abspath, dirname
import os
import json
class SIS_PROVISIONER_DAO(DAO):
def service_name(self):
retu... | [
"jlaney@uw.edu"
] | jlaney@uw.edu |
bcf65b6edfa547a0a15912062806fd91a3291ff5 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CondTools/CTPPS/test/write-ctpps-beam-parameters_cfg.py | 0702975bcda39add583bb744fa8b20e7a1f020b1 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 1,307 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("writeCTPPSBeamParameters")
# Load CondDB service
process.load("CondCore.CondDB.CondDB_cfi")
# output database (in this case local sqlite file)
process.CondDB.connect = 'sqlite_file:CTPPSBeamParameters.db'
# A data source must always be defined. We don'... | [
"jan.kaspar@cern.ch"
] | jan.kaspar@cern.ch |
53d2004b9c1088b9b0dd18deb9a9956964bddadd | 999879f8d18e041d7fa313132408b252aded47f8 | /01-codes/python-neural-network-master/nimblenet/learning_algorithms/backpropagation/variations.py | c641c47e242d6e8814b90c7f9245a93522b8089c | [
"BSD-2-Clause",
"MIT"
] | permissive | QPanProjects/Surrogate-Model | ebcaf05728e82dcbcd924c2edca1b490ab085173 | 848c7128201218b0819c9665e2cec72e3b1d29ac | refs/heads/master | 2022-10-11T19:03:55.224257 | 2020-06-09T14:37:35 | 2020-06-09T14:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | import collections
import numpy as np
from base import backpropagation_foundation
default_configuration = {
'ERROR_LIMIT': 0.001,
'learning_rate': 0.03,
'batch_size': 1,
'print_rate': 1000,
'save_trained_network': False,
'input_layer_dropout': 0.0,
'hidden_layer_dropout': 0.0,
'evalua... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
6d57177e4c85e0a799f119af04ba2bde8b8edfef | 9b4bd7bb36d6e2d63973c724ca1ceb1c5e123ee1 | /launcher/deployment/migrations/0008_auto__add_field_deployment_reminder_mail_sent.py | 45f81165fe8954d3732aff6ac2f66eec2de8bdf9 | [] | no_license | zennro/launcher | 39de39345a15b1f544222503e5cf82992c1e62c8 | 25651d1ffa29adad18d1e003f69720bea9671d7c | refs/heads/master | 2020-04-20T19:16:59.492609 | 2014-02-27T16:22:30 | 2014-02-27T16:22:30 | 17,900,826 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | 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 field 'Deployment.reminder_mail_sent'
db.add_column(u'deployment_deployment', 'reminder_mail_sent',... | [
"filip@jukic.me"
] | filip@jukic.me |
59d3b0755996496bb4f419864ea70114ff3deb68 | b43af72e789c720e177c935c059937b1cfa79d9e | /packages/api-server/api_server/__init__.py | 2fdfa2ba8f9b56f0d1534ede0654e56c97e5beba | [
"Apache-2.0"
] | permissive | matiasbavera/romi-dashboard | d4a65ad293e438fdb56f1d0dd3fa5d519bbe77a1 | ac3a15014ad3c3bdac523a6550934a06653cfba1 | refs/heads/master | 2023-07-24T13:09:23.417613 | 2021-09-01T02:20:49 | 2021-09-01T02:20:49 | 260,000,923 | 0 | 0 | Apache-2.0 | 2021-10-30T13:17:53 | 2020-04-29T17:53:36 | TypeScript | UTF-8 | Python | false | false | 274 | py | from tortoise import Tortoise
# need to init models before calling `pydantic_model_creator` https://tortoise-orm.readthedocs.io/en/latest/examples/pydantic.html?highlight=serializer#relations-early-init
Tortoise.init_models(["api_server.models.tortoise_models"], "models")
| [
"noreply@github.com"
] | matiasbavera.noreply@github.com |
9e8ca9ebff179dd7569b772480fa5cdc0d819573 | b659e99f89cf17ae886857383cb5b708847fe3f1 | /Think Python Book/Conditionals-and-recursion/Exercise5.2.py | 9626322ca22af734543dbb2895caabb37090cc56 | [] | no_license | nitheeshmavila/practice-python | bea06cc4b2b9247b926e07fd5a3987552e531242 | f54bf8934a4cf160cdfc9dc43176f1eea3bc7a41 | refs/heads/master | 2021-07-03T17:24:29.450939 | 2021-06-16T08:40:48 | 2021-06-16T08:40:48 | 100,113,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Exercise 5.2. Write a function called do_n that takes a function object and a number, n , as arguments, and that calls the given function n times.
square = lambda x: x*x
def do_n(square, n):
# return sum of squares of integers starting from 1 to n
sumOfSquares = 0
for i in range(1, n+1):
sumOfS... | [
"mail2nitheeshmavila@gmail.com"
] | mail2nitheeshmavila@gmail.com |
bd5e2b0376ddd908d696fd612c0bb9ae18d1184c | 8828d88f3a7b746a95e9a6968727be72a410b5c9 | /programs/nth Largest.py | e60c289fbaac04f42c112ea63abca0f8b8ad53a8 | [] | no_license | murali-kotakonda/PythonProgs | 7239b96ed12d15e59095f06151136c1731e3f219 | d9e95c8934a5bc29e82d214b448a38b4e031e96f | refs/heads/master | 2023-06-30T21:08:57.527945 | 2021-07-28T21:17:45 | 2021-07-28T21:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | # Python program to find N largest
# element from given list of integers
# Function returns N largest elements
def Nmaxelements(list1, N):
final_list = []
for i in range(0, N):
max1 = 0
for j in range(len(list1)):
if list1[j] > max1:
max1 = list1[j];
list1... | [
"muralidhar.reddy.kotakonda@sap.com"
] | muralidhar.reddy.kotakonda@sap.com |
ec3de015f5bbcf8c17bcde79ea5a3e7de0921f77 | d19803850901f7e9004b926e5516ecfe4af8be55 | /app/routes/index.py | fe839bcb2a573d3fa26a015be7970354672f462f | [] | no_license | emfcamp/Mk4-Backend | 92d347da0dcc6a63358a22e3d77caec2c98bfdfd | dd63bf54c78cf2311b82f344b4740e24cb982808 | refs/heads/master | 2021-06-06T00:11:35.816309 | 2018-09-15T22:24:41 | 2018-09-15T22:24:41 | 141,486,643 | 1 | 2 | null | 2021-05-08T16:57:43 | 2018-07-18T20:29:03 | Python | UTF-8 | Python | false | false | 822 | py | from flask import Flask, jsonify, Blueprint
from ..flask_shared import app
from ..util.memcached import shared
import shutil
from os.path import *
import tempfile
index_routes = Blueprint('index_routes', __name__)
@index_routes.route("/")
def hello_world():
app.logger.info("Hello world")
return jsonify({"hell... | [
"marekventur@gmail.com"
] | marekventur@gmail.com |
9a72a3b42f3f6f61d836416fb038bfadd89f8aa2 | 2f0d56cdcc4db54f9484b3942db88d79a4215408 | /.history/Python_Learning/print_heart_20200410221020.py | e003b9c5b3fe6cb82780ae529480648867b80a02 | [] | no_license | xiangxing98/xiangxing98.github.io | 8571c8ee8509c0bccbb6c2f3740494eedc53e418 | 23618666363ecc6d4acd1a8662ea366ddf2e6155 | refs/heads/master | 2021-11-17T19:00:16.347567 | 2021-11-14T08:35:01 | 2021-11-14T08:35:01 | 33,877,060 | 7 | 1 | null | 2017-07-01T16:42:49 | 2015-04-13T15:35:01 | HTML | UTF-8 | Python | false | false | 480 | py | print('''
*** ***
********* *********
************ ************
************* *************
************** **************
*************** ***************
******* *** *** *******
****** ***** ******
****** *** ******
****** *** ******
... | [
"xiangxing985529@163.com"
] | xiangxing985529@163.com |
b9f0277aa9aeedc35c7a71fafe93c719387e859d | 8e07b5b7a8dd38e0ef2c7ffc97d0392d886f32e6 | /venv/Lib/site-packages/mypy/typeshed/third_party/2and3/werkzeug/contrib/limiter.pyi | f220a0032c460a939d6cb982bf350b8d842ff3af | [] | no_license | RodrigoNeto/cursopythonyt | fc064a2e6106324e22a23c54bdb9c31040ac9eb6 | 279dad531e21a9c7121b73d84fcbdd714f435e7e | refs/heads/master | 2023-07-03T00:54:09.795054 | 2021-08-13T12:42:24 | 2021-08-13T12:42:24 | 395,646,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | pyi | from typing import Any
class StreamLimitMiddleware:
app: Any
maximum_size: Any
def __init__(self, app, maximum_size=...): ...
def __call__(self, environ, start_response): ...
| [
"rodrigoneto.forseti@gmail.com"
] | rodrigoneto.forseti@gmail.com |
311699d37c6686aa8a1320708b2e72ccb4f3811e | 625ff91e8d6b4cdce9c60f76e693d32b761bfa16 | /example-config/scripts/scan_commands.py | 5ea59a8e0be8782aabecf0081304e40db1ff1326 | [] | no_license | openGDA/gda-core | 21296e4106d71d6ad8c0d4174a53890ea5d9ad42 | c6450c22d2094f40ca3015547c60fbf644173a4c | refs/heads/master | 2023-08-22T15:05:40.149955 | 2023-08-22T10:06:42 | 2023-08-22T10:06:42 | 121,757,680 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | import sys
from gda.scan import ConcurrentScan
from gdascripts.messages import handle_messages
from gdascripts.messages.handle_messages import simpleLog
def scan(*args):
"""
Moves several scannable objects simultaneously, the same number of steps.
After each movement data is collected from items in the allDetecto... | [
"dag-group@diamond.ac.uk"
] | dag-group@diamond.ac.uk |
e4f472579bd45579d6c32a4e84f11c81460d3a1f | ed454f31cf5a3d2605f275cc83ec82f34f06bb33 | /zerver/webhooks/zabbix/view.py | 45fb67cd34991f72461b80bfb6d3b9aaa3b08c8e | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | 18-2-SKKU-OSS/2018-2-OSS-L5 | b62a3ce53eff63ed09395dc1f8296fef089d90e2 | 190bc3afbf973d5917e82ad9785d01b2ea1773f2 | refs/heads/master | 2020-04-08T11:44:14.468373 | 2018-12-11T04:35:30 | 2018-12-11T04:35:30 | 159,317,980 | 3 | 4 | Apache-2.0 | 2018-12-09T14:14:21 | 2018-11-27T10:30:18 | Python | UTF-8 | Python | false | false | 1,563 | py | from typing import Any, Dict
from django.utils.translation import ugettext as _
from django.http import HttpRequest, HttpResponse
from zerver.lib.webhooks.common import check_send_webhook_message
from zerver.lib.response import json_success, json_error
from zerver.decorator import REQ, has_request_variables, api_key_... | [
"ulla4571@gmali.com"
] | ulla4571@gmali.com |
8b97a84f27380f0b3359bc07f5e8b0b4083e3a89 | f60b964dc39ba54bb84f1c4949be3b91a92b8346 | /track_order/migrations/0009_auto_20181203_1435.py | 2cb490c4d58a3221764a4725fc893b7b80a0a753 | [
"Apache-2.0"
] | permissive | jiejiang/courier | 4b0b4fc56c5510228ffcc4de51b074c7aff9502f | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | refs/heads/master | 2022-11-30T14:24:53.950502 | 2019-12-06T16:42:00 | 2019-12-06T16:42:00 | 195,387,643 | 0 | 0 | Apache-2.0 | 2022-11-22T01:22:33 | 2019-07-05T10:08:19 | Python | UTF-8 | Python | false | false | 854 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-03 14:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('track_order', '0008_shippingrecord_agent_query_fault_time')... | [
"mail.jie.jiang@gmail.com"
] | mail.jie.jiang@gmail.com |
e3cd0dd9bd6e2077505d66f0823ec20ab633cb46 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Google/Drive/Comments/List.py | 90acdf88bb3798087a0119495a2c96ba5f5361fb | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,013 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# List
# Lists a file's comments.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complia... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
f3f562ed1f14612eefd670979390f14a903ab33d | 99697559d046cdd04dd9068bd518e4da4177aaa2 | /Finish/M721_Accounts_Merge.py | 43f2397fdf819f5cbc0cac2540e5067406e66a9b | [] | no_license | Azurisky/Leetcode | 3e3621ef15f2774cfdfac8c3018e2e4701760c3b | 8fa215fb0d5b2e8f6a863756c874d0bdb2cffa04 | refs/heads/master | 2020-03-18T22:46:35.780864 | 2018-10-07T05:45:30 | 2018-10-07T05:45:30 | 135,364,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | class Solution:
def accountsMerge(self, accounts):
"""
:type accounts: List[List[str]]
:rtype: List[List[str]]
"""
## Union Find
def find(a):
if ds[a] < 0:
return a
ds[a] = find(ds[a])
return ds[a]
... | [
"andrew0704us@gmail.com"
] | andrew0704us@gmail.com |
e3103bc1c87873804dca2dcca1ae972bde25c77e | 82afadf121c9887b7208c55d7e43c8bd3e74d923 | /backendapp/travels/migrations/0038_auto_20200123_1535.py | 84b05be94cc55d868f5cc8fc0ca1115e9d29653e | [
"BSD-3-Clause"
] | permissive | finebrush/takeatripsFB | cbc8517e1313c7f5ae3621b40a9a3040b65f2a81 | 85a5be1a2ee68531f04f2601a3f69ddc608d4d27 | refs/heads/master | 2022-12-12T05:00:51.925952 | 2020-05-21T03:04:38 | 2020-05-21T03:04:38 | 225,299,793 | 0 | 0 | BSD-3-Clause | 2022-12-08T06:59:31 | 2019-12-02T06:16:43 | JavaScript | UTF-8 | Python | false | false | 503 | py | # Generated by Django 2.2.7 on 2020-01-23 06:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('travels', '0037_auto_20200115_1738'),
]
operations = [
migrations.AlterField(
model_name='likei... | [
"finebrush.mlab@gmail.com"
] | finebrush.mlab@gmail.com |
a47091bdb8af5454311565d7fa870d605dbba204 | c6053ad14e9a9161128ab43ced5604d801ba616d | /Lemon/Python_Base/Lesson17_do_excel_20181203/Lesson17_do_pandas_01_20181203.py | 84f26293464b98f833d5d0c567de242e99789a8a | [] | no_license | HesterXu/Home | 0f6bdace39f15e8be26031f88248f2febf33954d | ef8fa0becb687b7b6f73a7167bdde562b8c539be | refs/heads/master | 2020-04-04T00:56:35.183580 | 2018-12-25T02:48:51 | 2018-12-25T02:49:05 | 155,662,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/7/16:22
# @Author : Hester Xu
# Email : xuruizhu@yeah.net
# @File : Lesson17_do_pandas_01_20181203.py
# @Software : PyCharm
# https://www.cnblogs.com/liulinghua90/p/9935642.html
import pandas as pd
df = pd.read_excel('python12.xlsx',sheet_name = 'Sheet1') # 打开... | [
"xuruizhu@yeah.net"
] | xuruizhu@yeah.net |
b7647e82a6208bb5261cf370cb9900705f1a755d | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/BPA/Integrations/BPA/BPA_test.py | 1882157c4e38628dfe8428f099cfb35ba7219e9d | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 2,366 | py | import pytest
from test_data.response_constants import GET_RESULTS_RESPONSE, GET_DOCUMENTATION_RESPONSE
from test_data.result_constants import GET_RESULTS_NO_FILTER, GET_RESULTS_ID_FILTER, GET_RESULTS_NAME_FILTER, \
GET_DOCUMENTATION_NO_FILTER, GET_DOCUMENTATION_ID_FILTER
from BPA import Client, get_results_comma... | [
"noreply@github.com"
] | demisto.noreply@github.com |
389175f3839e2faa2fe81711404be96c6106080d | 2760effda15d884af413ca2a35809d03fabea377 | /lc-64.py | b83227ac1b3d0b1d325c2d6399b40a3aaab97471 | [] | no_license | UtsavRaychaudhuri/leetcode | 31943b98ad89d96d72ee4b6b1d1c8d70429d1e1f | 77a13580fd6231830558b1cf8c84f8b3b62b99d0 | refs/heads/master | 2020-11-27T18:02:23.712639 | 2020-09-29T19:39:49 | 2020-09-29T19:39:49 | 229,552,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | class Solution(object):
def minPathSum(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
m = len(grid)
n = len(grid[0])
for i in range(1, n):
grid[0][i] += grid[0][i-1]
for i in range(1, m):
grid[i][0] += grid[i-1][0]... | [
"utsav@pdx.edu"
] | utsav@pdx.edu |
41de63148efbdc174e2b8671a4249e0ae2f427a5 | dc7cf35d6be924530b3f6677312f20d2985fd8dc | /blog/migrations/0001_initial.py | 838cb09b2c5ed66cc44343e4026688a8a6612972 | [] | no_license | kyungsubbb/Heroku | 86187b1c572c16b5029928ed265443f66729b339 | 4a82739d0e5ea68a847b28bc34d53c87a9f5a320 | refs/heads/master | 2021-06-18T06:33:41.863323 | 2020-11-18T15:07:26 | 2020-11-18T15:07:26 | 192,719,634 | 0 | 0 | null | 2021-06-10T21:36:21 | 2019-06-19T11:32:14 | Python | UTF-8 | Python | false | false | 612 | py | # Generated by Django 2.2 on 2019-04-03 12:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(auto_... | [
"isks2322@gmail.com"
] | isks2322@gmail.com |
b78ddb81741cd6157d94a4e645ac6a206c259aff | 11ff14c118240e87c4804d0373e4656d0683d479 | /test_app/conftest.py | dba16658216ff2b103d8d9641817a0ab7312a412 | [] | no_license | wxmmavis/OS3.1 | e3028d9c79d5a1a17449fea6380fcdda902bdec7 | 26d954344207a82d2298821c3c4f01302393dc7e | refs/heads/master | 2020-03-25T20:07:11.225493 | 2018-08-13T03:20:57 | 2018-08-13T03:20:57 | 144,115,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | from selenium import webdriver
import pytest
import configparser
import os
import time
import datetime
driver = None
projectpath = os.path.dirname(os.getcwd())
config_file = projectpath + '/configure/' + 'testconfig.ini'
# result_dir = projectpath + '/errorpng/'
# config = configparser.ConfigParser()
# config.read(con... | [
"1475806321@qq.com"
] | 1475806321@qq.com |
0b14cf5f7b95419a49e2d8a1b19f0ae777de56a5 | f7463bd0ab18b41611d5ac725f65d3db3a3a7a1d | /Generation Python - A Beginner's Course/6_data_types/6.2.math/3.py | c8577310217a73f35b4e1adbea54c12aa510fc6f | [] | no_license | Sergey-Laznenko/Stepik | f81c5aeead3fbd20628129d60ccce92b34724b97 | 5e1a1a76c3f6ed487cf8fc847913c890c8eac840 | refs/heads/master | 2022-12-28T19:01:48.670540 | 2020-10-18T15:23:58 | 2020-10-18T15:23:58 | 279,022,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | """
Напишите программу определяющую площадь круга и длину окружности по заданному радиусу R.
"""
from math import *
x = float(input())
print(pi * x**2)
print(2 * pi * x)
| [
"Laznenko.Sergey@gmail.com"
] | Laznenko.Sergey@gmail.com |
97745efd98061fda4f203d04edc18d55c85eb704 | 9865d25bfbb08f54459689a74e9db7d7692ef285 | /hparams.py | 1190b6793865e705d2b875ee1a876fe54911d499 | [
"MIT"
] | permissive | zhihangxie/Stepwise_Monotonic_Multihead_Attention | 1e92fda92c0cc14951e32df0cdb4a4aad65a1576 | 3278cb54f2b923b57a9d6db2304d9cfb2e1328e1 | refs/heads/main | 2023-05-08T11:26:20.177848 | 2021-05-15T13:41:35 | 2021-05-16T05:55:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | """
You may change these hyperparameters depending on the task.
"""
sma_head = 4
sma_dropout = 0.1
sma_tunable = False # If True, the stepwise monotonice multihead attention is activated. Else, it is a normal multihead attention just like in Transformer. | [
"keonlee9420@gmail.com"
] | keonlee9420@gmail.com |
d4d7ed83da904769160276f3d068ac039888759a | d672861d72e19e0deed3cabf5a7cbdc2c93b1c91 | /04-多线程/作业+解答课/作业解答.py | df58a56a8b5ae458ecd753069e54ed91259e705f | [] | no_license | zx490336534/python_Concurrent | 74b67f341145e22bc96f0cabc67491b998eb1b37 | 584d5e932da02d3497e8c75231f31ef7c2f7fb6e | refs/heads/master | 2018-12-19T03:43:04.963431 | 2018-09-15T09:40:10 | 2018-09-15T09:40:10 | 117,328,829 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | from multiprocessing.dummy import Pool as ThreadPool
import queue
import time
from multiprocessing import cpu_count
from threading import Thread
#高内聚:相关逻辑,放在一起
#低耦合:无关逻辑,尽量分开
# q = queue.Queue()
# q.get()
# q.put()
# q.task_done()
#可以认为,queue就是一个list
# queue.put list.append()
# queue.get list.pop()
# pool = Pool() 先... | [
"490336534@qq.com"
] | 490336534@qq.com |
659d3a111b89851326b51b75a6f7c679069fcf2b | 486f544a05fe873651c5b6d53f037f4ac4bfc020 | /train/train_hyperopt_mlflow.py | ad951a3035a60a4e15d8c752da68ab73f74ab9c2 | [] | no_license | deeep-learning/ml_pipelines | abee948e0295b777d10e03a25a79b28d17fc7002 | 6373e4bb9f2bc0395e267d3fc04af280e04b2c7c | refs/heads/master | 2020-04-27T22:51:38.008718 | 2019-03-08T18:11:08 | 2019-03-08T18:11:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | import numpy as np
import pandas as pd
import lightgbm as lgb
import pickle
import pdb
import warnings
import mlflow
import mlflow.sklearn
from pathlib import Path
from sklearn.metrics import f1_score
from hyperopt import hp, tpe, fmin, Trials
from mlflow.tracking import MlflowClient
warnings.filterwarnings("ignore"... | [
"jrzaurin@gmail.com"
] | jrzaurin@gmail.com |
cfbceae48da503c10f54c8554fc07456c4c4bc45 | b8d7c4e3476aae5c3bba7ffa28311f84fda5af9e | /main/apps/wx_pay/__init__.py | 9dfc057e96393af7a79e28b90a00bd8435a83a3b | [] | no_license | zhongzhiqiang/hotel-api | 1744b8ecb63c4626f7a90f6f04f073aab052b312 | 25703713d0e8ab2314e07e983b98506a3551e762 | refs/heads/master | 2020-03-26T08:53:06.776003 | 2019-01-20T09:23:39 | 2019-01-20T09:23:39 | 144,724,134 | 0 | 0 | null | 2018-10-12T13:29:20 | 2018-08-14T13:28:51 | Python | UTF-8 | Python | false | false | 167 | py | # coding:utf-8
# Time : 2018/9/27 下午3:17
# Author : Zhongzq
# Site :
# File : __init__.py.py
# Software: PyCharm
from __future__ import unicode_literals | [
"200730249@qq.com"
] | 200730249@qq.com |
95a3455833774e499b19f2440ad2054c946ffdec | 672f41b51c56bacdddb21a00756ba29253369bd6 | /core/migrations/0008_auto_20151021_1621.py | 16f320720b74a067eb9a0e570e4a49f107c75ce9 | [] | no_license | jonerra/contact_me | ffd22f38ff0ade8d0d9057b28a3919e69cafa010 | 47d9e5324ae769ff853d31be38a075c24d6f859e | refs/heads/master | 2021-01-10T09:19:21.277946 | 2015-10-23T20:46:28 | 2015-10-23T20:46:28 | 44,626,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_contact_title'),
]
operations = [
migrations.CreateModel(
name='Message',
fields=[
... | [
"jonerra23@aim.com"
] | jonerra23@aim.com |
ee53ffe4fc443478c7d2bddcd2e1d9392bc006c8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_hookahs.py | 3aac51c95d330658cea234bcef6de919348c6a0c | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from xai.brain.wordbase.nouns._hookah import _HOOKAH
#calss header
class _HOOKAHS(_HOOKAH, ):
def __init__(self,):
_HOOKAH.__init__(self)
self.name = "HOOKAHS"
self.specie = 'nouns'
self.basic = "hookah"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
408a7377c7ac8fa8cddbf5b665b94dd8a80ea248 | 245381ad175dcc03ee0710964340eed4daa2ef85 | /accounts/all/urls.py | 117700d63c49cac0f81b7909cb0b46472083c2b7 | [] | no_license | musabansari-1/Shagroup-erp-backend | 2c1f56f7ce5763dae668d160cdcc1a26dbc2e8d7 | 87845f11faae50301d5bb73ffa0c3ee0bed38256 | refs/heads/main | 2023-04-13T02:25:36.808755 | 2021-04-15T16:28:19 | 2021-04-15T16:28:19 | 358,324,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.urls import path, include
urlpatterns = [
path('fees/', include('accounts.all.fees.urls')),
path('expenses/', include('accounts.all.expenses.urls'))
] | [
"musabzahida@gmail.com"
] | musabzahida@gmail.com |
0f907e526fbe3b59c6664f9d7cec8b176c98fd85 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/294/66325/submittedfiles/testes.py | 16ff57f3b36b12e943295b610ce2720da9a17ef8 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
print("Maria Emanuelle Batista Alves")
print("17")
print(11+1037)
print((9*35+160)/5)
print(3,14159*5^2*30)
print((2+5)^2) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7b4cb1aa8c45bbead5f26ad1fb3651443fe71fe6 | 38466811d0e12a8f755bae58d7244622ef5f4d9b | /project_euler/20.py | ccb827101b628d35b2d634743585171fa4e47981 | [] | no_license | andysitu/algo-problems | 4ab5a2b6591f0c0d84174b69598f30bc354ff8aa | 35c88dc747e7afa4fdd51d538bc80c4712eb1172 | refs/heads/master | 2023-06-24T15:55:39.019652 | 2021-02-26T20:31:07 | 2021-02-26T20:31:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | def factorial(n):
prod = "1"
for i in range(2, n+1):
new_prod = ""
prod_rev = prod[::-1]
carry_over = 0
for n in prod_rev:
num = int(n)
p = num * i + carry_over
if p >= 10:
carry_over = int(p / 10)
p %= 10
... | [
"and.situ@gmail.com"
] | and.situ@gmail.com |
2b661b8b6573707ca1c3a65579dcd4313836bc65 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_280/ch118_2020_03_28_19_18_06_336759.py | 312ff61f5476d7cc1987e4e83e8133f165768ef4 | [] | 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 | 189 | py | import math
def reflexao_total_interna(n1, n2, teta2):
y = math.sin(math.asin(n1*math.sin(math.radians(teta2))/n2))
if y>1:
return True
else:
return False
| [
"you@example.com"
] | you@example.com |
fe70c7b0cd1fcdcc192adfcd264a83fcbe1d2046 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/hotel_media_links_req.py | 5056ced096016a25b627df1ddc153b95ca05e117 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 2,266 | py | from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.base_req_1 import BaseReq1
from travelport.models.hotel_property import HotelProperty
from travelport.models.permitted_providers_1 import PermittedProviders1
from travelport.models.type_requested_image_size import TypeReq... | [
"chris@komposta.net"
] | chris@komposta.net |
9f2fd2f2c34c6e6ad62e8037c373682d29b3cb31 | 81e706b69c789aff05691c41fa79156942927f82 | /site-packages/tensorflow/_api/v1/compat/v1/gfile/__init__.py | 792999431d0652a01f79c617b6dbf0a031697c86 | [] | no_license | yoncho/OpenCV-code | f5a1091ef32f3c8c3254ab93e083950b84c4fabd | bda2f793b11462e67c7ab644b342beffb871e3de | refs/heads/master | 2023-03-30T12:01:23.521511 | 2021-04-01T13:45:44 | 2021-04-01T13:45:44 | 291,398,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Import router for file_io.
"""
from __future__ import print_function as _print_function
from tensorflow.python.lib.io.file_io import copy as Copy
from tensorflow.python.lib.io.f... | [
"yoncho@student.42seoul.kr"
] | yoncho@student.42seoul.kr |
6f663d02ca1a6aebd451c07f825ff66debab7eed | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Anscombe/trend_MovingMedian/cycle_7/ar_12/test_artificial_1024_Anscombe_MovingMedian_7_12_0.py | a59d0ee790009aff327306bdf4addc643b5fce44 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 272 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 7, transform = "Anscombe", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
264e9f3a33ae449fece39e4a46269bdaaa1ba91d | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/cura/Machines/QualityNode.py | 45cd898db571ac44bbaf6f733ff28933f5d319d7 | [
"GPL-3.0-only",
"LGPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 2,078 | py | # Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Union, TYPE_CHECKING
from UM.Settings.ContainerRegistry import ContainerRegistry
from cura.Machines.ContainerNode import ContainerNode
from cura.Machines.IntentNode import IntentNode
import UM.FlameProfi... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
ac0dd3ad4c0563007be034df6e19a32dd39322dd | b66712b087e83e793645d24342a0d23191206def | /open_general_licences/urls.py | df661f74a386f28146b9b9c1122d4c0ab78ffc35 | [
"MIT"
] | permissive | uktrade/lite-internal-frontend | cd2a651c41d4f108411c9aefb8cef7b903d08768 | 39151854b1225f7956963a22ef1a8beb6897eccf | refs/heads/master | 2021-07-10T03:54:04.040278 | 2020-08-06T11:16:40 | 2020-08-06T11:16:40 | 174,536,384 | 4 | 0 | MIT | 2020-08-06T11:16:42 | 2019-03-08T12:45:58 | Python | UTF-8 | Python | false | false | 514 | py | from django.urls import path
from open_general_licences import views
app_name = "open_general_licences"
urlpatterns = [
path("", views.ListView.as_view(), name="open_general_licences"),
path("<uuid:pk>/", views.DetailView.as_view(), name="open_general_licence"),
path("<uuid:pk>/edit-<str:edit>/", views.U... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
b0bbfcf0caf9d43b553a6cc5624de47994bf81b4 | eba95bf9ca692e44e0d7d2f7444b087aa3afec29 | /project-addons/magento_sale_store/models/__init__.py | b1c404d88fb40eb96d5b575b77da058203ed83dc | [] | no_license | Comunitea/CMNT_00056_2016_BT | 9201fd55f9d9c4188e70a639c74f0973e4ffd209 | 636bc89a84f12c163c31204bc19f4e0271546017 | refs/heads/master | 2022-02-20T09:26:19.825862 | 2022-02-10T11:54:42 | 2022-02-10T11:54:42 | 59,229,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | # -*- coding: utf-8 -*-
# © 2016 Comunitea
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import magento_store
from . import prestashop_store
from . import sale
from . import sale_prestashop
from . import magento_model
| [
"jesus@comunitea.com"
] | jesus@comunitea.com |
d2ccd823bb2f5e3df4cec50d18fa643995cacf9b | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/python/debug/examples/v1/debug_errors.py | 7bbe0d231a971505ccd00378cd9f18f5e973f0fb | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e743aa3630d233095b828aee2df35ddb11d5d3ac2bea82282dcfa4fc4e5c5400
size 3117
| [
"business030301@gmail.com"
] | business030301@gmail.com |
2efefd0faa6d844d098c28c710009f2815b2165d | 552c893723136340573de5cc754a9f29f25765ce | /gluonnlp/data/corpora/text8.py | 9cbb1a67abd0bf9865db005e745b4ddef5233c30 | [
"Apache-2.0"
] | permissive | eric-erki/gluon-nlp | cf202711670161d234650f8a7a6e9c25fc1d09af | a946474274a9c45c9fd0e02ef53d2ff9d6f67740 | refs/heads/master | 2022-10-26T02:22:36.667426 | 2018-09-11T21:25:42 | 2018-09-11T21:25:42 | 148,483,610 | 0 | 1 | Apache-2.0 | 2022-10-11T08:19:36 | 2018-09-12T13:20:07 | Python | UTF-8 | Python | false | false | 3,066 | py | # coding: utf-8
# 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... | [
"szha@users.noreply.github.com"
] | szha@users.noreply.github.com |
dec5527e7c46b0cdd45d4524ed9a222ada35d70f | 7db513150b7daaf1f8ac435c41b850545156d037 | /cmdb/afcat/cmdb/migrations/0022_auto_20170117_1643.py | e7d5000936eabbb6afa37d0b695dcc6556967868 | [
"Apache-2.0"
] | permissive | tonglinge/MyProjects | bb94e141e1833dc38fe2b41d5b80fb4abc222cf0 | 002f80dcc07e3502610b0a0be1e91fe61bcfc42c | refs/heads/master | 2021-04-15T14:53:46.175035 | 2017-03-19T04:39:48 | 2017-03-19T04:39:48 | 61,760,333 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-01-17 16:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cmdb', '0021_auto_20161229_1121'),
]
operations = [
migrations.CreateModel(... | [
"songfreeman@sina.com"
] | songfreeman@sina.com |
62bfd4972bb60f016a078ed85aac4283d0af14d5 | 0c91c5ce2f237fae190816059206a30e1a17f12f | /webapp/migrations/0004_auto_20180323_2202.py | 925c69782fd2b1891e969311292e9cbdf4c874b7 | [] | no_license | wsyx123/dcosauto | fc12459fb72f821f081b15e55c0f8bad87b1801c | 4c2b722b35d9263f84baa83a1933faf83913458c | refs/heads/master | 2020-03-08T03:33:13.192446 | 2018-05-05T12:02:14 | 2018-05-05T12:02:14 | 127,894,478 | 0 | 0 | null | 2018-05-05T12:02:15 | 2018-04-03T10:57:42 | HTML | UTF-8 | Python | false | false | 840 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-03-23 14:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('webapp', '0003_auto_20180321_2325'),
]
o... | [
"690943136@qq.com"
] | 690943136@qq.com |
280688064ae76fe794e586639e302fd70eba6e43 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/azuredata/v20190724preview/get_sql_server_instance.py | 32efb1c7d014950927aae9c364af1871c33dd195 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 7,347 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
7df12cb9ea1e87d2f3ddb709f0728cb53917aa3c | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /number_of_ways_to_split_array.py | c9bdd04a628e25ff59272f8e62eca3957723d745 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 1,172 | py | '''
You are given a 0-indexed integer array nums of length n.
nums contains a valid split at index i if the following are true:
The sum of the first i + 1 elements is greater than or equal to the sum of the last n - i - 1 elements.
There is at least one element to the right of i. That is, 0 <= i < n - 1.
Return the n... | [
"noreply@github.com"
] | erjan.noreply@github.com |
de75c2964c60ed9f6f07f51455395d65b1098822 | ac54aa0127a47fb59211fba9e6cb8431d9d864cd | /apps/stats/migrations/0054_auto_20170928_1500.py | adf9ab3b5afe4f777305ca5a47a8822353e735af | [] | no_license | xiringlama/manutd.org.np | 8919e3c1ad0494f88b819089686a756d67d38598 | f394f16edb96c05e2e864dcec1ec52532cd35ac2 | refs/heads/master | 2021-07-12T00:33:17.197706 | 2017-10-16T14:45:10 | 2017-10-16T14:45:10 | 107,222,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,442 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-28 09:15
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stats', '0053_auto_20170928_1349'),
]
operations = [
migrations.RemoveField(
... | [
"xtranophilist@gmail.com"
] | xtranophilist@gmail.com |
969e9ea399ff5539fb4e1a20b8ea520bf178547b | 9f39defced71694457d8726c7cc9e15c9254f144 | /Data_Modeling/project_1_RDBMS_Postgres/create_tables.py | f927735f6f44ce4cd71a9f7bfe69a24ce53eae80 | [] | no_license | itsmuriuki/Data_Engineering | e338c13cf8b8f521a9896419827c98c2bba4ecbc | e934d02fab1e905aefe833408d014cae9001c09a | refs/heads/master | 2022-12-09T17:34:53.576244 | 2020-09-01T13:53:31 | 2020-09-01T13:53:31 | 288,656,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | import psycopg2
from sql_queries import create_table_queries, drop_table_queries
def create_database():
#connect to default database
conn = psycopg2.connect("host =127.0.0.1 dbname=postgres user=postgres password=password port= '5432'")
conn.set_session(autocommit =True)
cur = conn.cursor()
#crea... | [
"grdmuriuki@gmail.com"
] | grdmuriuki@gmail.com |
4aa333c30a69bf7ae88eec1baa3d0c8433b6f7a6 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/FourteenTeV/QstarToQW_M_6000_TuneCUETP8M1_14TeV_pythia8_cfi.py | 2036d92e70c67e41d60392d7aff82b378851fbe0 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,122 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(14000.0),
crossSection = cms.untracked.double(4.144e-04),
filterEfficie... | [
"juliette.alimena@cern.ch"
] | juliette.alimena@cern.ch |
1856e038194377f0fd28254604c7d547a9d1ed02 | 06c367fe2d2233c6efb64f323e15bebd7f48c625 | /venv/lib/python3.6/site-packages/social_core/backends/line.py | 73f44584c2939509521ee1eea06a7795ea80c02d | [
"BSD-3-Clause"
] | permissive | AkioSky/FishMart | ce630bc4addf63bc105e4f3e13e92c15b119b558 | 1d01d7e79812dc7cccb1b26ffc6457af6104d9f2 | refs/heads/master | 2022-12-11T16:13:38.277080 | 2019-04-22T03:44:22 | 2019-04-22T03:44:22 | 182,615,627 | 0 | 0 | BSD-3-Clause | 2022-12-08T01:44:37 | 2019-04-22T03:20:03 | Python | UTF-8 | Python | false | false | 3,620 | py | """
LINE Login OAuth2 backend, docs at:
https://developers.line.me/en/docs/line-login/
"""
import requests
import json
from .oauth import BaseOAuth2
from ..exceptions import AuthFailed
from ..utils import handle_http_errors
class LineOAuth2(BaseOAuth2):
name = 'line'
AUTHORIZATION_URL = 'https://access.l... | [
"whitebirdinbluesky1990@gmail.com"
] | whitebirdinbluesky1990@gmail.com |
8749109dc09d655bbfbe53b856c0fecb705f5f1f | 6caab8d886e8bd302d1994ff663cf5ccb5e11522 | /MyNotes_01/Step01/1-BASE01/day03/exercise10.py | 79c04f4acf5550553cee82ffa1502cdb4329bac1 | [] | no_license | ZimingGuo/MyNotes01 | 7698941223c79ee754b17296b9984b731858b238 | 55e6681da1a9faf9c0ec618ed60f5da9ecc6beb6 | refs/heads/master | 2022-07-30T21:30:32.100042 | 2020-05-19T16:59:09 | 2020-05-19T16:59:09 | 265,254,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # author: Ziming Guo
# time: 2020/2/4
'''
练习10:
在控制台中依次显示 0 1 2 3 4 5
'''
count_1 = 0
while count_1 < 6:
print(count_1)
count_1 += 1
| [
"guoziming99999@icloud.com"
] | guoziming99999@icloud.com |
17f2634d2282fb9b5495685c7586f65ffe732ece | 6e601105760f09d3c9f5306e18e4cf085f0bb4a2 | /1000-9999/1477.py | 641c2d945e8204eef1b151752ca05514860e8a93 | [] | no_license | WSJI0/BOJ | 6412f69fddd46c4bcc96377e2b6e013f3bb1b524 | 160d8c13f72d7da835d938686f433e7b245be682 | refs/heads/master | 2023-07-06T15:35:50.815021 | 2023-07-04T01:39:48 | 2023-07-04T01:39:48 | 199,650,520 | 2 | 0 | null | 2020-04-20T09:03:03 | 2019-07-30T12:48:37 | Python | UTF-8 | Python | false | false | 168 | py | '''
1477번
휴게소 세우기
'''
import sys
n, m, l=map(int,sys.stdin.readline().split())
road=list(map(int,sys.stdin.readline().split()))
road.sort()
print(road) | [
"lifedev@naver.com"
] | lifedev@naver.com |
daf13b2889ed7279b735546f9a0016da234c5ce5 | 70e685f15c099d166fd96d9b22004e96639d634e | /core/utils.py | 43575215765408e7156211623782121e53897c8b | [] | no_license | duda-joann/flask-mongo-blog | 3186a682ad169ff087b03c25b260ffd4185578cd | ef3fced8020f2e208eef27154ba74172429c7ae1 | refs/heads/main | 2023-02-18T14:23:18.990061 | 2021-01-11T18:30:53 | 2021-01-11T18:30:53 | 323,744,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from functools import wraps
from typing import Callable
from flask import redirect, session
def login_required(function: Callable) -> Callable:
@wraps(function)
def wrapper(*args, **kwargs):
if 'logged_in' in session:
return function(*args, **kwargs)
else:
redirect('/'... | [
"duda.joann@gmail.com"
] | duda.joann@gmail.com |
8f8cac30b6ad26e090987c743506b77e99f0bb2e | f9d5bc590bd6c6274d7a6efec0f60cac1d8286b2 | /assets/coins/gobyte/gobyteImportHistoricalPrices.py | 9d5a96aa772fd9bff772c099c4dd98f8b1ac8cb0 | [] | no_license | pr0logas/grepblockBEpython | 35c83c1bf2114fc9417bedff6cf2a6e2ad2e667e | bbeaa290d13d80f993d843c7f1dbbfd373eee332 | refs/heads/master | 2022-10-03T23:35:44.600740 | 2020-03-09T08:24:53 | 2020-03-09T08:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | #:: By GrepBlock.com developers // pr0logas
#:: Modified date: 2019-11-30
#:: Description: This file is a workspace for Historical Prices importation.
import sys, time
from datetime import datetime, timedelta
from time import gmtime, strftime
from gobyte import *
sys.path.append('../../../')
from mongoDB import *
from... | [
"prologas@protonmail.com"
] | prologas@protonmail.com |
2e648026152346ae162d222c8c0cec3d5b437201 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0013-Roman-to-Integer/soln-1.py | 97fec75bcb9193e4812930d2cebb6565fa927714 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 374 | py | class Solution:
def romanToInt(self, s):
"""
:type s: str
:rtype: int
"""
d = {'I' : 1, 'V' : 5, 'X' : 10, 'L' : 50, 'C' : 100, 'D' : 500, 'M' : 1000}
ans = d[s[0]]
for i in range(1, len(s)):
ans += d[s[i]]
if d[s[i]] > d[s[i - 1]]:
... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
0d78c7c58e8537363ffdc9a1e2b093dbc89a576b | 33bf0a67c8c4c3f92c970ce70b50b7affc7eb177 | /src/einsteinpy/symbolic/auxillary_functions.py | c2cce458f8451a687a5b5f00dfa39f78a333e857 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | nimeshvashistha/einsteinpy | 2fc69bb2d436450dc30c7a0521712da7049dac7d | adf97d92be7851cfe905a6eb1110c0589dbab3cc | refs/heads/master | 2020-12-20T21:58:42.971448 | 2020-01-24T21:42:25 | 2020-01-24T21:42:25 | 236,220,304 | 0 | 0 | MIT | 2020-01-25T19:41:46 | 2020-01-25T19:41:46 | null | UTF-8 | Python | false | false | 576 | py | import warnings
import sympy
def raise_warning(WarningType, message):
warnings.warn(message, WarningType)
def _flatten_list(seq):
# flatten an arbitarily nested list
if not seq:
return []
if not isinstance(seq[0], list):
return [seq[0]] + _flatten_list(seq[1:])
return _flatten_l... | [
"s.ritwik98@gmail.com"
] | s.ritwik98@gmail.com |
f37cddfa0e1a090a0179bf2015a2058576513fb5 | 383de02d5f980d566b3a2890d845ee3d6cd9dda2 | /mini/conversation.py | a9329b3bb61b0045964666777c22ae0bd997814a | [] | no_license | ymJung/scrap | d3cac97b49fffd735addd8623271595d3822b894 | ebd81d1b05591c9cae568956aa70f2cf93abe55d | refs/heads/master | 2020-05-22T01:31:24.833089 | 2017-08-30T15:01:39 | 2017-08-30T15:01:39 | 45,390,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,519 | py | import pymysql
from datetime import date, timedelta
import configparser
cf = configparser.ConfigParser()
cf.read('config.cfg')
DB_IP = cf.get('db', 'DB_IP')
DB_USER = cf.get('db', 'DB_USER')
DB_PWD = cf.get('db', 'DB_PWD')
DB_SCH = cf.get('db', 'DB_SCH')
VALID_USER = cf.get('telegram', 'VALID_USER')
ORA_TOKEN = cf.g... | [
"metalbird0@gmail.com"
] | metalbird0@gmail.com |
aa8f8cbf9bb1e450ddb7b5612a97c937d576a905 | cb0e7d6493b23e870aa625eb362384a10f5ee657 | /solutions/python3/0891.py | 02843d851e637baf503371fb020dcaca73d3f60e | [] | no_license | sweetpand/LeetCode-1 | 0acfa603af254a3350d457803449a91322f2d1a7 | 65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94 | refs/heads/master | 2022-11-14T07:01:42.502172 | 2020-07-12T12:25:56 | 2020-07-12T12:25:56 | 279,088,171 | 1 | 0 | null | 2020-07-12T15:03:20 | 2020-07-12T15:03:19 | null | UTF-8 | Python | false | false | 312 | py | class Solution:
def sumSubseqWidths(self, A: List[int]) -> int:
n = len(A)
kMod = int(1e9 + 7)
ans = 0
exp = 1
A.sort()
for i in range(n):
ans = (ans + A[i] * exp - A[n - i - 1] * exp) % kMod
exp = exp * 2 % kMod
return ans
| [
"walkccray@gmail.com"
] | walkccray@gmail.com |
40da2440ec9b0979f2cf5409e2bdb3714d7245f0 | bc4688c02d16c4f786f0ea835f9e1a7e45272090 | /cnn/keras/metaROItest/predict.py | 8c0fded8b4707dcf8df00e04098534e306abe61e | [] | no_license | mhubrich/adni-python | 4e3fb24e216fb908eb2426b2fc90482431f3494d | 21e14e4cb5ab8edf33deff7fbe2494bbc396ea35 | refs/heads/master | 2021-06-15T02:04:00.435915 | 2017-02-28T14:25:23 | 2017-02-28T14:25:23 | 69,449,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | from cnn.keras.prediction.predict_generator import predict_generator
from cnn.keras.utils.write_prediction import write_prediction
from cnn.keras.metaROItest.model import build_model
from cnn.keras.metaROItest.image_processing import inputs
from utils.split_scans import read_imageID
# Training specific parameters
cla... | [
"mhubrich@students.uni-mainz.de"
] | mhubrich@students.uni-mainz.de |
30a5171fb79b663ae2a8fad09e82bf238e8cb65c | aed51eb0804761a0faa77c5602bd5c92d55a866f | /modules/dataLoader.py | d7f8e056e76c822e4e4feee9d5e9f19572ec37ba | [
"MIT"
] | permissive | nbvc1003/stockAnalyst | fdb2a69150514c8b36ece3f97e20ff62f080047e | 57a3431e2a0a4d8721b2e5e18ab0a2f7b79f7f81 | refs/heads/master | 2020-11-26T06:58:51.036617 | 2020-01-28T00:40:54 | 2020-01-28T00:40:54 | 228,996,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py |
import sys
import pandas as pd
BASE_PATH = "../readFiles/"
KOSPI = 0
KODAQ = 1
NYSE = 2
NASDAQ = 3
class DataLoader(object):
_instance = None
@classmethod
def _getInstance(cls):
return cls._instance
@classmethod
def instance(cls, *args, **kargs):
cls._instance = cls(*args, *... | [
"nbvc@nate.com"
] | nbvc@nate.com |
a544c3cb74111f21d80ef0c9263d2d4d2f0e3f65 | 700098e09365236bea10a26c40b9f48dc753f622 | /BiAudioTransform/functional.py | 2b14576006775b1fe824cb941c596c9f21b05188 | [] | no_license | aoirint/SongOkeDLKit | e1c03e13bbe19ced40083168578bda92ad0cd93c | 371f7a1afb32a1bd44ff168951191d05b05fc9bf | refs/heads/master | 2022-04-09T19:36:25.355042 | 2020-03-29T17:38:43 | 2020-03-29T17:38:43 | 250,877,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | import numpy as np
import torch
import torchaudio
import torchaudio.transforms as T
from pydub import AudioSegment
'''
in: pydub.AudioSegment
out: torch.Tensor (float32)
'''
def to_tensor(audio):
sample_width = audio.sample_width
sample_bits = 8 * sample_width
sample_max_int = 2 ** (sample_bits - 1)
sa... | [
"aoirint@gmail.com"
] | aoirint@gmail.com |
5fd5bd9ebee8e15baf454f7ebeef2501bdae623f | 84b68b5dc1df9a0d88c38f7f4de3dbe371b08358 | /accounts/views.py | 4355c6208c139c3ac3bf51e1932f153dec9331e8 | [] | no_license | alisamadzadeh46/car | e489c548343096ca9c547c693c5339569f221b4e | 057ea3d35cf86d44530683e06c963a54771aa386 | refs/heads/main | 2023-05-28T10:44:36.574886 | 2021-06-16T16:58:09 | 2021-06-16T16:58:09 | 374,656,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.contrib import messages, auth
from cars.models import Message
def register(request):
if request.method == 'POST':
firstname = request.POST['first... | [
"alisamadzadeh46@gmail.com"
] | alisamadzadeh46@gmail.com |
da22a56783936989868da9e8aab26717c0bbcb48 | 78a20d2ceac95d3afb55b215305a8c40670e873f | /QsimMaster/scripts/pulse_sequences/sub_sequences/VariableDeshelving.py | 3fa7c07c9e161482b75ed1180af4de703ff6c403 | [] | no_license | johnpalsberg/John-Palsberg | 9957dd2fb2a6da62e5118c4e2a9a471d5e2f4c9b | 91aa6476bc319524c6f6a4bfc5561ca6aa95e6c4 | refs/heads/master | 2023-01-13T07:26:04.250541 | 2023-01-05T08:48:17 | 2023-01-05T08:48:17 | 206,402,363 | 0 | 0 | null | 2022-06-20T16:29:42 | 2019-09-04T19:57:25 | Python | UTF-8 | Python | false | false | 2,342 | py | from common.lib.servers.Pulser2.pulse_sequences.pulse_sequence import pulse_sequence
from labrad.units import WithUnit as U
class variable_deshelving(pulse_sequence):
required_parameters = [
('VariableDeshelving', 'duration'),
('Deshelving', 'power1'),
('Deshelving', 'power2'),
('... | [
"jpalsberg2023@chadwickschool.org"
] | jpalsberg2023@chadwickschool.org |
9d839d80128e7cdbcc9f007bb4cacb7958bee126 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/SQLAlchemy/sqlalchemy/ext/mypy/infer.pyi | 0ffb05b70360fbcf205d26bee7b66002b7ba43fc | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 1,074 | pyi | from collections.abc import Sequence
from typing import Any
from typing_extensions import TypeAlias
_AssignmentStmt: TypeAlias = Any # mypy.nodes.AssignmentStmt
_Expression: TypeAlias = Any # mypy.nodes.Expression
_RefExpr: TypeAlias = Any # mypy.nodes.RefExpr
_TypeInfo: TypeAlias = Any # mypy.nodes.TypeInfo
_Var:... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
e2dc25966d372738b08d81596eac7ab7db2bb155 | b7c1e5d140c3c41e86f206047145f7f296fed53a | /In Class Projects/In Class Examples Spring 2019/Section 2/listFromGenerator.py | 3992910c1d7f1fc3dc71d21f94c9064982291318 | [
"MIT"
] | permissive | jlcatonjr/Learn-Python-for-Stats-and-Econ | c2fbe29b324e70ceb832beafdd42d0accb37d9f9 | 194671592937562e08c92e0ef5f4793d4911701c | refs/heads/master | 2023-05-11T17:17:05.934290 | 2023-05-10T20:12:10 | 2023-05-10T20:12:10 | 148,912,065 | 22 | 21 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #listFromGenerator.py
# create a generator of length 20 i in range [0,19]
generator = (i for i in range(20))
print(generator)
# use the generator to create a list using list(generator)
list1 = list(generator)
print(list1)
# place teh generator with an "empty" list to create
# a list with values specified by the gener... | [
"jlcatonjr@gmail.com"
] | jlcatonjr@gmail.com |
2053bac20b6da2c4c8a25c783ae4c36781341f76 | 113b962bd5e2eb770067bd374a15dfe8a1c2d09f | /py_scripts/tophit/tophit_querycatgen.py | 674ebdd75f6f0a1b351f497c6cdd14000010b013 | [] | no_license | aungthurhahein/biotech_script | ecce51950bcef69405843da12ece2f84ea5541d6 | 2fda699343e6c46543fa1df2412c8ca2f2622cda | refs/heads/master | 2020-12-24T06:20:13.028141 | 2016-07-06T15:23:34 | 2016-07-06T15:23:34 | 25,574,741 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | #! /usr/bin/env/ python
"""
#
# usage:
# output:
# Dev: __author__ = 'aung'
# Date:
"""
import sys
ifile = sys.argv[1]
openfile = open(ifile, 'r')
queryid = []
blastn = []
blastx = []
for line in openfile:
line_split = line.split('\t')
queryid.append(line_split[0].strip())
blastn.append(line_split[15].s... | [
"aungthurhahein@gmail.com"
] | aungthurhahein@gmail.com |
201b18abde605249592ed22437a83a088afa22af | c3fc6cfb1312426bb61205185a0470e43413ae4b | /tests/wrappers/test_get_scu.py | 53c6f8518f9e128255feb18af9d6c7c63f28adf6 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | rrusconi/odil | efa0257781e828ed41757236e79c997c05625c75 | 31da62615604e43dda8a2b01bc88d30e7b7d910f | refs/heads/master | 2020-04-07T21:52:19.208290 | 2018-11-02T16:44:07 | 2018-11-02T16:44:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | import os
import sys
import unittest
import odil
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
from peer_fixture_base import PeerFixtureBase
class TestGetSCU(PeerFixtureBase):
def setUp(self):
PeerFixtureBase.setUp(
self,
[
odil.AssociationParameters... | [
"lamy@unistra.fr"
] | lamy@unistra.fr |
2796ea9857709a06ad5a824740e0e60aa46003b1 | 6f2675eee55b7ebc5adf9c2176ced8cb59fc64d4 | /sales_manager_back/app.py | 63781738746e87ec1b0ad2555058bff49c1aecec | [] | no_license | wildmanwang/proDataInter | 8c2b65fa96ad45b21165d997b1769a28e12fc42a | f5a1f1fb195c66bf586bd999465c7e3b16453369 | refs/heads/master | 2023-06-07T11:57:16.763251 | 2023-06-03T08:54:56 | 2023-06-03T08:54:56 | 157,559,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | # -*- coding:utf-8 -*-
"""
flask框架实现数据接口服务
数据返回格式:
rtnData = {
"result":True, # 逻辑控制 True/False
"dataString":"", # 字符串
"dataNumber":1, # 数字
"info":"", # 信息
"entities": { # 表体集
"bill":[], # ... | [
"cliff.w@qq.com"
] | cliff.w@qq.com |
2d751071f5971de01783f3aee6fbb0cf39fc5ceb | 09996c147d498e61352683c5e7df0f3cd517ea27 | /test/oldcrab/crabMCW1JetsToLNu_DiMu.py | 40e20f68c6dc4109e77ba6278fafee9c0e443e38 | [] | no_license | shchenarani/whelicityAnalyzer | 3e3320a6d03eab21de6d51dad60f057b6a2f3d47 | 8b4586f7210c6a166b949470c22310b25683da4f | refs/heads/master | 2021-09-10T12:22:52.088849 | 2018-03-26T07:52:54 | 2018-03-26T07:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'WW1JetsApr15'
#config.General.requestName = 'TTJetsDiLep7March'
#config.General.requestName = 'DataMuEG'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.Genera... | [
"hesam.kaveh@gmail.com"
] | hesam.kaveh@gmail.com |
8c4fa30f8daa7a5b52d04d3a4d7d45a340c19007 | fad771c4901934b05f58a71dc0815b98ef029447 | /ipy_pelican/pelican/liquid_tags.py | 13e50fbd6c45ddcbc5dc359c7af1b027d7295946 | [
"MIT"
] | permissive | dalejung/ipy_pelican | b118ef0461e3931279d7dd4107d9d3de19b11a58 | 7b900874921452ee8cffc287ecd7f6f1443db975 | refs/heads/master | 2016-08-04T19:45:01.520812 | 2013-12-15T18:35:00 | 2013-12-15T18:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from pelican import signals
from mdx_liquid_tags import LiquidTags
from pelican.readers import EXTENSIONS
def addLiquidTags(gen):
if not gen.settings.get('MD_EXTENSIONS'):
MDReader = EXTENSIONS['markdown']
gen.settings['MD_EXTENSIONS'] = MDReader.default_extensions
if LiquidTags not in gen... | [
"dale@dalejung.com"
] | dale@dalejung.com |
0b151c1326e0accc1238097acd352ed8f000e115 | 0c6155f4ecd52c79cfd79db70eb91094801896a9 | /src/openfermion/utils/_lcu_util_test.py | 8de5998e4950e43af54604e86069af979cb824f1 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | daochenw/OpenFermion | aec78ee7ef0ae76ef77ae76a2389148e175cade5 | d1c18cd0b8ae3c9030dece26625c62fa5b9ada15 | refs/heads/master | 2021-04-18T21:26:51.614963 | 2018-05-18T00:42:48 | 2018-05-18T00:42:48 | 126,171,542 | 0 | 0 | null | 2018-03-21T11:54:54 | 2018-03-21T11:54:54 | null | UTF-8 | Python | false | false | 6,870 | 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
# distribu... | [
"ryanbabbush@gmail.com"
] | ryanbabbush@gmail.com |
2cf9b8ab6275a15d8a2e47ab6aa7ecf517ed4ae4 | 933d07cb0b3d3e5124eb040626869f68b8e8c34f | /docs/04_队列/queue.py | 9e4c49fdd929b04103e5cbb7a479f136fa15cf5c | [] | no_license | chisyliu/python_data_structures_and_algorithms | 49bd66f97a3494309a3430958bef4e8fad19e934 | 2526f07ece5f4ff842c7e7c91db389a51f03e783 | refs/heads/master | 2020-03-19T13:52:12.024753 | 2018-06-06T23:39:57 | 2018-06-06T23:39:57 | 136,598,675 | 1 | 0 | null | 2018-06-08T09:34:45 | 2018-06-08T09:34:45 | null | UTF-8 | Python | false | false | 4,654 | py | # -*- coding: utf-8 -*-
# NOTE:注意这里是第三章 linked_list.py 里的内容,为了使文件自包含,我直接拷贝过来的
class Node(object):
def __init__(self, value=None, next=None): # 这里我们 root 节点默认都是 None,所以都给了默认值
self.value = value
self.next = next
def __str__(self):
"""方便你打出来调试,复杂的代码可能需要断点调试"""
return '<Node: va... | [
"291374108@qq.com"
] | 291374108@qq.com |
fb904a2bc50102508d7833407fa986b9b3bbf94a | b551947158956881cb346fb35659dac499a6a43a | /examples/python/maps/sptm_maps_explorer.py | b7ff9b67e2b4f3d1033269cb720c8e3e6484ff18 | [
"MIT"
] | permissive | mr-docdot/ViZDoom | b11a89848c6678acf1b0c4b7192e581b7329941d | 7aa037fc9b25aac200f4b1496f91c8d10b30703c | refs/heads/master | 2021-10-08T12:33:59.860318 | 2018-11-12T21:32:02 | 2018-11-12T21:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from explorer import explorer
import glob
num_episodes = 8
for scenario in glob.glob('*.wad'):
for e in range(num_episodes):
print(scenario, e)
explorer('../../../../scenarios/explorer.cfg', scenario, e)
| [
"you@example.com"
] | you@example.com |
aedd72d55636683dbd4f5a2faa100ca69f273fd9 | 2092f23db140d4273c2812107e54fdb652a7d1eb | /openstack/tests/network/v2/test_security_group.py | 6c7c435f33cef816c367a82ca26f6b54d014f5b2 | [
"Apache-2.0"
] | permissive | roaet/python-openstacksdk | 0db962eea48341bfa02890e1e3fffb8b1e9fbbf1 | 6a64ca6dc7ec3963f962a92e92da34363b6aa68a | refs/heads/master | 2020-04-08T18:05:26.665377 | 2015-02-13T16:01:32 | 2015-02-13T16:01:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | 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
# distributed under t... | [
"terrylhowe@gmail.com"
] | terrylhowe@gmail.com |
3c1e7090eab3515a03814b0b6c2f19add7fe7c50 | a31c21bcc4486fd44dd2c5b7f364e8f0320f7dd3 | /mitmproxy/mitmproxy/test/tutils.py | e925b282d60fb66eca66ff2f40dbf0055af2824e | [
"MIT"
] | permissive | SynthAI/SynthAI | 0cb409a4f5eb309dfc6a22d21ac78447af075a33 | 4e28fdf2ffd0eaefc0d23049106609421c9290b0 | refs/heads/master | 2020-03-19T12:49:07.246339 | 2018-06-07T23:27:51 | 2018-06-07T23:27:51 | 136,542,297 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | py | from io import BytesIO
import tempfile
import os
import time
import shutil
from contextlib import contextmanager
import sys
from mitmproxy.utils import data
from mitmproxy.net import tcp
from mitmproxy.net import http
def treader(bytes):
"""
Construct a tcp.Read object from bytes.
"""
fp = BytesI... | [
"foxxymoxxy@secmail.pro"
] | foxxymoxxy@secmail.pro |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.