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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
735eca849b9b5abd6d669224ea24b24aea39bd44 | 5a1e1756025bacae88b619d388ebf61b330001ab | /1.Class/PracticeInClass/Class20/contact_covert_file.py | c5093659a692867b333175b9476f9e5b394c9a7f | [] | no_license | reshmaladi/Python | d1953497703aa15e163cd8ac27be23e3e5c3e947 | 8e9092af63476fef35d221e20acf418983957e53 | refs/heads/master | 2021-10-15T00:55:08.136039 | 2021-10-01T14:32:16 | 2021-10-01T14:32:16 | 165,836,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | #!C:\Python34
import openpyxl
#import vcf
def GetVCF(name, email, number, org):
vcf = "BEGIN:VCARD"+"\n"
vcf += "VERSION:2.1"+"\n"
vcf += "FN:"+name+"\n"
vcf += "ORG:"+org+"\n"
vcf += "TEL;WORK;VOICE:"+str(number)+"\n"
vcf += "EMAIL:"+email+"\n"
vcf += "END:VCARD"
return vcf
def main():
path = "C:\\1.Class\\... | [
"reshma.ladi@gmail.com"
] | reshma.ladi@gmail.com |
4726b0a60129cc520875711b059fb998c3b40753 | 3b21be024742a724940c3a533bbb28454236ecbf | /openscraper/scraper/settings_scrapy.py | 6e0256b81a3fe52c5a8fdaefadd9af6eda18af88 | [
"MIT"
] | permissive | KNIGHTTH0R/OpenScraper | 31ca963234d56b8cd63931686510fb447c2c3aa2 | b98ac7efb2107933e34daa17290360e15383d1ae | refs/heads/master | 2021-04-03T08:43:07.280063 | 2018-03-07T23:54:45 | 2018-03-07T23:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,892 | py | # -*- coding: utf-8 -*-
# Scrapy settings for openscraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/la... | [
"jparis.py@gmail.com"
] | jparis.py@gmail.com |
4c89462e42de59168a588dbc3056076b26d74664 | 0047d5fc306110b27249265a872f72ad424c8c3b | /game_of_life/domain.py | ef8cab7374b5ecc6e0c3072e8391cc2b0aa7c75d | [] | no_license | nickdelgrosso/another-game-of-life | 892d1ea462b70d7b2408267f9ff968e52af0e840 | 0b8a37f3f5c6502838b029b25d76eb65e5e6e5c1 | refs/heads/master | 2020-07-11T14:08:56.399226 | 2019-08-26T21:32:07 | 2019-08-26T21:32:07 | 204,563,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | from typing import NewType, Dict, Tuple, List, Generator, Optional, Iterator
from itertools import product
import random
Cell = Tuple[int, int]
Board = NewType("LifeBoard", Dict[Cell, bool])
def get_neighbors(cell: Cell) -> Iterator[Cell]:
"""Get all neighbors of the cell."""
x, y = cell
for dx, dy in p... | [
"delgrosso.nick@gmail.com"
] | delgrosso.nick@gmail.com |
765c19889b1fcae838d86283483180599c22cf96 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_hastening.py | 83075228f31951512667c3a25ebea5c5bdcc2984 | [
"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 | 242 | py |
from xai.brain.wordbase.verbs._hasten import _HASTEN
#calss header
class _HASTENING(_HASTEN, ):
def __init__(self,):
_HASTEN.__init__(self)
self.name = "HASTENING"
self.specie = 'verbs'
self.basic = "hasten"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
14c2166ca7c27cb87d36a88c390922fa57327686 | 451e3188ef94bfd106a0194774c23edd0bba84a2 | /Wagtail_Django_Static_Blog/settings/dev.py | 5721bf790b76251df7a8f28ac24df7534a408633 | [] | no_license | Dolidodzik/Wagtail-Django-Static-Blog | fe9c8caf63275c8f444ac7b898e7e0d67fae018a | db0769da8c7b1c3fc450fe40181bfcf984079ec1 | refs/heads/master | 2020-06-08T02:13:32.401772 | 2019-10-29T17:09:09 | 2019-10-29T17:09:09 | 193,139,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from .base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'hl@$^mb(^u=h)l^!52w(i(3bm0^h@xhka_3m-iw@p84sxza4ng'
# SECURITY WARNING: define the correct hosts in production!
ALLOWED_HOSTS = ['*']
E... | [
"teethtard321@gmail.com"
] | teethtard321@gmail.com |
44ef9fd9b9c28ca73a6444300f5c16e659afdea5 | 1559879496d7220e89f51843997f98b732f0526d | /myTest/com/my/HelloW.py | 84a19e14f1078005e72307188af08614e2a43744 | [] | no_license | 357112130/Test | 4d0e0a4822c5a4062d768d699e61b3d504090a2e | a58ff4e9811cab77c9a5117d9a70ce1e4582c515 | refs/heads/master | 2022-12-10T15:08:24.607252 | 2019-04-21T14:20:58 | 2019-04-21T14:20:58 | 168,373,835 | 0 | 0 | null | 2022-12-08T04:57:02 | 2019-01-30T16:16:41 | Python | UTF-8 | Python | false | false | 417 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
a = '中国' # 姓名
b = '女' # 性别
c = 5000 # 年龄
d = 'abcde' # 字符串Str
e = ["250", "hhh", 250, 520.0] # 列表List
print "我的名字叫" + a, ",性别是" + b, ",今年已经有", c, "多岁了"
print d[0:-1]
print e
print a + b # 连接符
print a * 2 # 重复操作/乘号
print e[3]
raw_input("按下 enter 键退出,其他任意键显示...\n")
| [
"aptx_48691"
] | aptx_48691 |
e142fe1358d0e0dfa8f6bc333a60862e5600a018 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/91269526c2fa445492883ce4360cc38d.py | a4227c944dcfe04c89b0a3dc86d338a396a895ca | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 260 | py | class DNA:
dna_to_rna_mapping = {
"G": "C",
"C": "G",
"T": "A",
"A": "U"
}
def __init__(self,dna):
self.dna = dna
def to_rna(self):
return ''.join([DNA.dna_to_rna_mapping[x] for x in self.dna])
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
e0a0bcc7def8b3e104980bfef43e6947779de87c | 628bb278318f844891d3268293b33ac956408bd1 | /Python/continuous-subarray-sum.py | 116528e899ebd2b651bbffd008305f7ded11c3d8 | [] | no_license | utcsox/Leetcode-Solutions | 84ef82e4333484695d5bf425b14f6bc6c2b22772 | a9c83cf709c66100b6232e644c630520cd921131 | refs/heads/master | 2023-08-31T07:00:54.842451 | 2023-08-26T04:06:48 | 2023-08-26T04:06:48 | 185,678,135 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | class Solution1:
def checkSubarraySum(self, nums: List[int], k: int) -> bool:
# Cumulative sum appraoch
# 1. construct an array that store cumulative sum
# 2. check two conditions:
#. a). if cumulative sum (from 0 to j - cumulative sum from 0 to i + nums[i] is equal to k ... | [
"noreply@github.com"
] | utcsox.noreply@github.com |
93315e6b2da6b50223ffe007b336e50700496759 | 4eaf765f6d97651d76ec93918879cd4fcbbcb5bf | /rotkehlchen/crypto.py | 6b598bd55d225da187707aae02cab8dcc207b52e | [
"BSD-3-Clause"
] | permissive | bobkilla/rotkehlchen | 2ed47c9f319bbc41017cb5fd3a49762dcdd6349a | f611351e39cb1ebcc16f1344b4f7adaa441cc763 | refs/heads/master | 2020-06-29T06:48:25.789349 | 2019-08-03T22:41:14 | 2019-08-03T23:00:34 | 200,466,923 | 1 | 0 | BSD-3-Clause | 2019-08-04T08:15:17 | 2019-08-04T08:15:17 | null | UTF-8 | Python | false | false | 3,479 | py | import base64
from binascii import hexlify
from coincurve import PrivateKey
from Crypto import Random
from Crypto.Cipher import AES
from Crypto.Hash import SHA3_256, SHA256 # type: ignore
from rotkehlchen.errors import UnableToDecryptRemoteData
from rotkehlchen.typing import BinaryEthAddress, EthAddress
# AES encr... | [
"lefteris@refu.co"
] | lefteris@refu.co |
52ecdfc8eef087cd0e814c6acc9304b7d6f1bc68 | fe06311a7de13a02ca0be37d84c542c3cece3f33 | /Chapter19/file_19_1_1.py | d28b579b870ca0eb17cd64f4ddcf4a291be9e1ef | [] | no_license | mooksys/Python_Algorithms | a4a84ddabc34ec4b7cc0ac01d55019880af38514 | 375817e3dfdec94411cf245fe3f685a69d92b948 | refs/heads/master | 2020-08-24T06:35:05.791979 | 2018-07-30T01:22:24 | 2018-07-30T01:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | x = int(input())
y = 10
if x < 30:
if x < 15:
y = y + 2
else:
y -= 1
else:
y += 1
print(y)
| [
"jeipubmanager@gmail.com"
] | jeipubmanager@gmail.com |
1e0c9e4f72a757b4b65e67db92d75102d657dd5f | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/scaleform/daapi/view/battle/meta/falloutscorepanelmeta.py | 6708b732dcd0ebb3ec41f56ddfdf899e658933fc | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,191 | py | # 2016.05.01 15:21:20 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/meta/FalloutScorePanelMeta.py
from gui.Scaleform.daapi.view.battle.meta.BattleComponentMeta import BattleComponentMeta
class FalloutScorePanelMeta(BattleComponentMeta):
def as_initWarningValue(sel... | [
"info@webium.sk"
] | info@webium.sk |
6a1c7fb538147613c27a2a62c2aae2c8722edc1f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_091/ch36_2020_10_01_00_24_55_065240.py | f5625912c7e0c42af7a4c6ecdcc4688fad7f6d63 | [] | 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 | 108 | py | def fatorial(n):
i=1
while i<=n:
g=n*i
i+=1
return g
| [
"you@example.com"
] | you@example.com |
90cc560cb7eb9ccd9f35375162ed89a29c08a98a | c6ec3dce0d4be88e985bf299003d87cfb166ee23 | /find_routes.py | 284f6e0020748ec2225a1065131827060cdcf7c8 | [
"MIT"
] | permissive | akx/so69552983 | eedbd9410ca9f6eebc140e07058bd7ae98499801 | 0558ac3471ff20374e6f0310cfa06a82955396dd | refs/heads/master | 2023-08-28T01:20:43.825905 | 2021-10-21T10:18:52 | 2021-10-21T10:18:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,587 | py | import sys
from itertools import count, combinations
import cv2
import matplotlib.pyplot as plt
import numpy as np
save_animation = ("animate" in sys.argv)
def inrange_thresh(image, color, thresh, binarize_thresh=None):
"""
Apply cv.inRange with a threshold near the given color, optionally threshold the fin... | [
"akx@iki.fi"
] | akx@iki.fi |
dcef54939494ff328df431d347647eb51d059ed2 | 0987f31e64bcacb41ba3a1e20054d7b8ac0d7346 | /contests/agc046/a/a_copy.py | dc5dbede5aa28215f4683f0155db7928d3d2855c | [] | no_license | masakiaota/kyoupuro | 81ae52ab3014fb2b1e10472994afa4caa9ea463b | 74915a40ac157f89fe400e3f98e9bf3c10012cd7 | refs/heads/master | 2021-06-27T04:13:52.152582 | 2020-09-20T03:21:17 | 2020-09-20T03:21:17 | 147,049,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | import sys
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline
ra = range
enu = enumerate
def mina(*argv, sub=1): return list(map(lambda x: x - sub, argv))
# 受け渡されたすべての要素からsubだけ引く.リストを*をつけて展開しておくこと
def read_a_int(): return int(read())
def read_ints(): return list(map(int, read().split()))
def read_col(H):
... | [
"aotamasakimail@gmail.com"
] | aotamasakimail@gmail.com |
1f68d7ab0a45501ed9a2e5528634aa65054825ff | e4f520bfbc4e1cfd5cbfb49177ff17f18053b8e5 | /models/app.py | ea4b85703441b89707f8aa415ce617e8725fc4ee | [] | no_license | a30f49/gobelieve_api | 8418d906e8cf528e92b872878f9b6b9c6298cd16 | 79e3a9d63e69de2d093a13febb71106f4e7480d6 | refs/heads/master | 2020-08-07T10:35:48.916881 | 2019-10-20T04:46:35 | 2019-10-20T04:46:35 | 213,414,438 | 0 | 0 | null | 2019-10-07T15:05:04 | 2019-10-07T15:05:04 | null | UTF-8 | Python | false | false | 308 | py |
class App(object):
@classmethod
def get_store_id(cls, db, appid):
sql = "SELECT store_id FROM app WHERE app.id=%s"
r = db.execute(sql, appid)
app = r.fetchone()
if app and app.has_key("store_id"):
return app["store_id"]
else:
return 0
| [
"houxuehua49@gmail.com"
] | houxuehua49@gmail.com |
c951238f18d81e25f1877cdb32f0a24a996fc8da | 025d7484c52b204bc286dfb9d17fc08e8e03604e | /base_branch_company/models/res_branch.py | 044961ad9b02885e980052b9311755076c48848e | [] | no_license | gotorishab/stpi | 3e2d2393a3b64f313c688bfcb4855052ea5e62b4 | a548e923f80e124ea5f90f4559ec727193c70528 | refs/heads/master | 2021-07-05T16:19:39.932782 | 2021-04-30T03:58:05 | 2021-04-30T03:58:05 | 236,436,956 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 8,580 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models,tools
from odoo import SUPERUSER_ID
import base64
import os
from odoo.exceptions import ValidationError
def migrate_company_branch(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
company = env.ref('base.main_company')
company.write({'... | [
"gotorishab@gmail.com"
] | gotorishab@gmail.com |
029aff90187677cf8d5d25f75ca2ff1a04562698 | ea40d872e4d3122387f7a17400c1d2f31cf5bd6a | /Tree/968. Binary Tree Cameras Hard.py | f35d47bd0b8468fca67aae34ce3194190ad28421 | [] | no_license | dongbo910220/leetcode_ | e4cf6c849986b105d4d5162c5cd2318ffc3fbb67 | e4c02084f26384cedbd87c4c60e9bdfbf77228cc | refs/heads/main | 2023-05-29T11:23:46.865259 | 2021-06-17T03:40:30 | 2021-06-17T03:40:30 | 344,785,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | '''
https://leetcode.com/problems/binary-tree-cameras/
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def minCameraCover(self, root):
"""
:type roo... | [
"1275604947@qq.com"
] | 1275604947@qq.com |
b094217b6f93d45e123a90a8530f84206448c448 | 54ab0f79f5d68f4732ca7d205f72ecef99862303 | /torch/onnx/_internal/diagnostics/infra/__init__.py | 4f9dd9e5fa0b3b25769eee31b7951242d7f4b088 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | csarofeen/pytorch | a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc | e8557ec5e064608577f81e51ccfe7c36c917cb0f | refs/heads/devel | 2023-04-30T02:42:13.558738 | 2023-03-14T00:50:01 | 2023-03-14T00:50:01 | 88,071,101 | 35 | 10 | NOASSERTION | 2023-06-21T17:37:30 | 2017-04-12T16:02:31 | C++ | UTF-8 | Python | false | false | 432 | py | from ._infra import (
Diagnostic,
DiagnosticContext,
DiagnosticOptions,
Level,
levels,
Location,
Rule,
RuleCollection,
Stack,
StackFrame,
)
from .engine import DiagnosticEngine
__all__ = [
"Diagnostic",
"DiagnosticContext",
"DiagnosticEngine",
"DiagnosticOptions"... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
6e5b694dc0272dcb2fe90f556ecb2e79e39af9d2 | 06ff97866a1711de6f856ce968683e526630079a | /app/api_1_0/authentication.py | b84f32742412e1d655a7f13e94916066a69cf3f0 | [] | no_license | guoweikuang/guoweikuang_blog | c6eb945b765cdb2631594f207c101718abcf81a0 | e0c1cc0bfc5bf8835dae49923eec6e028e65bdc6 | refs/heads/master | 2021-01-12T10:19:42.627713 | 2016-12-25T08:03:12 | 2016-12-25T08:03:12 | 76,423,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | # coding=utf-8
from flask import jsonify, g
from flask_httpauth import HTTPBasicAuth
from ..models import AnonymousUser, User
from . import api
from .errors import unauthorized, forbidden
auth = HTTPBasicAuth()
@auth.verify_password
def verify_password(email_or_token, password):
if email_or_token == '':
... | [
"673411814@qq.com"
] | 673411814@qq.com |
373e916fd29a0bc7dea95ff7b99d8e886bcba535 | c3fc7865f163a43fbd3e832547005cf3c89547c5 | /bin/oldScripts/JobCommands/pinn_ecfp4ksep_2_2_classifier_commands_20_r.py | 36c9585f0731fc3bdb5a9d29dce0d6cb2d550f3b | [] | no_license | ahmetrifaioglu/PyTorch | 936d5317ca90a147e147241cbf75ae0864477f13 | fff02012eb5f05cdd634b5128f8bdceb9ed3b2a7 | refs/heads/master | 2021-10-24T19:27:53.495478 | 2021-10-12T22:05:08 | 2021-10-12T22:05:08 | 165,693,778 | 0 | 0 | null | 2021-10-12T22:04:20 | 2019-01-14T16:24:32 | Jupyter Notebook | UTF-8 | Python | false | false | 15,314 | py | import subprocess
subprocess.call("python dream_challenge.py PINN_2_2 ecfp4 trigram 2048_1024 1024_128 256 256 0.0005 idg_comp_targ_uniq_inter_filtered.csv r", shell=True)
subprocess.call("python dream_challenge.py PINN_2_2 ecfp4 trigram 2048_1024 1024_128 64 64 0.0001 idg_comp_targ_uniq_inter_filtered.csv r", shell=Tr... | [
"ahmetrifaioglu.ce@gmail.com"
] | ahmetrifaioglu.ce@gmail.com |
e1106a3ddc52e1a59fd54a8933a0f2fee7c04871 | d1dc76ed99f2b6e1f39836eb9728484425034f6a | /03/zhuce3.py | 383318ccc33b2c6df2bbbb1a56a589daecbd720b | [] | no_license | lannyMa/py_infos | d9bccda896c98012b8fabbe5ba1617dae413dd59 | e338ef05e8c800a95fd07617c9d6caf67f748e0c | refs/heads/master | 2021-07-09T20:17:46.480751 | 2017-10-10T12:45:25 | 2017-10-10T12:45:25 | 105,779,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #!/usr/bin/env python
# coding=utf-8
# the theacher code
while True:
name = raw_input("name: ").strip()
if len(name) == 0:
print "用户名不能为null"
continue
pwd = raw_input("pwd: ").strip()
pwd2 = raw_input("pwd: ").strip()
if len(pwd) == 0 or pwd != pwd2:
print "密码错误"
... | [
"iher@foxmail.com"
] | iher@foxmail.com |
1aadf8831afa834c6ebed3c48c39e9e1bdb3bdad | e6369cc8cbb95e3e12c7274685525af0ea4cd961 | /scripts/indicadores.py | f8094b5a11ac639bd5a74b55a4dbe706753d7258 | [] | no_license | franksotogithub/segmentacion-project | 441003d6e750130b9c577f1b61add4a83ffae3d7 | f685dba79a0305d651f7ded594c87444aed7313d | refs/heads/master | 2022-12-16T22:24:37.340213 | 2019-06-26T05:03:45 | 2019-06-26T05:03:45 | 191,875,852 | 0 | 0 | null | 2022-12-08T05:15:24 | 2019-06-14T04:30:04 | Python | UTF-8 | Python | false | false | 4,069 | py | import pyodbc
import json
from pymongo import MongoClient
ORIGEN = {
"type": 'sql',
"config": {
"host": '172.18.1.41',
"name": 'CPV2017_INDICADORES',
"user": 'jramirez',
"password": 'rjM3NLF8'
},
"table": '[PRINCIPALES].[json_indicadores]',
}
DESTINO = {
"type": 'm... | [
"franksoto2012@gmail.com"
] | franksoto2012@gmail.com |
5888bcb5eef78b9bd308f3667fd222cd1c2a2149 | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/xml/etree/ElementTree/ElementTree_show_feed_urls.py | 90500d7a3bcf31b1855a72a060f80bdd93715d1e | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 476 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2010 Doug Hellmann. All rights reserved.
#
"""Dump the OPML in plain text
"""
#end_pymotw_header
from xml.etree import ElementTree
with open('podcasts.opml', 'rt') as f:
tree = ElementTree.parse(f)
for node in tree.iter('outline'):
name = node.attrib... | [
"350840291@qq.com"
] | 350840291@qq.com |
52a08161419ceaeb6aa221491d91666e8ca20a30 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_25898.py | 404c20c414d3e3c3655e88045ec37ab2d131e19e | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # How do you change the display name when sending emails via Amazon SES in Django?
email_message = EmailMessage('This is a title', 'This is a message body', 'UserFirstName UserLastName <FromEmail@example.com>', ['ToEmail@example.com'])
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
0b9c3dab891034f8b96eca6a87f14b211a3235e5 | 16f173135e81215d05ee8f475c13a16e3796e1fa | /Statistical_Thinking_in_Python_Part1/1.Graphical_exploratory_data_analysis/Comparison of ECDFs.py | 390795a926c6f37bce8434c4d7e06e4d84a93bd8 | [] | no_license | jerry-mkpong/DataCamp | 1b53821f1a32b48efdc8465251401721ba75bb56 | 10445bad35ef11567910ffab6ac70a980555a1b7 | refs/heads/master | 2022-11-11T03:57:21.923366 | 2020-06-28T17:36:10 | 2020-06-28T17:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | '''
ECDFs also allow you to compare two or more distributions (though plots get cluttered if you have too many). Here, you will plot ECDFs for the petal lengths of all three iris species. You already wrote a function to generate ECDFs so you can put it to good use!
To overlay all three ECDFs on the same plot, you can ... | [
"egorfollia@gmail.com"
] | egorfollia@gmail.com |
86a7a0f3207a9ff58a7cf32795384e0a327c36a0 | fcdb430384f00a39a936b46eae5606c9ec339b15 | /pentai/db/t_ai_factory.py | 47ac7ed88de13616cdc280bba3fae14a3085ae41 | [
"MIT"
] | permissive | cropleyb/pentai | 78a03161d26eb5cdd7b0f023b782b3bf9352456a | bbd32864cabce9ba5cb1051fa9d78d69c8feb5e5 | refs/heads/master | 2020-04-16T16:13:53.640001 | 2014-12-10T07:54:05 | 2014-12-10T07:54:05 | 24,712,772 | 8 | 1 | null | 2016-06-04T08:01:48 | 2014-10-02T08:59:04 | Python | UTF-8 | Python | false | false | 334 | py | #!/usr/bin/env python
import unittest
from ai_factory import *
class AIFactoryTest(unittest.TestCase):
def test_ai_factory_create_from_genome(self):
genome = AIGenome("Freddo Frog")
genome.max_depth = 8
aif = AIFactory()
p = aif.create_player(genome)
self.assertEquals(p.m... | [
"cropleyb@yahoo.com.au"
] | cropleyb@yahoo.com.au |
9c5a9c6f13140df50bcb5815db3dca4c6a6aac7e | 0809ea2739d901b095d896e01baa9672f3138825 | /jobproject_2/jobApp/migrations/0001_initial.py | 268ce08f0a1c6ea4e14d94d998511dce896f05db | [] | no_license | Gagangithub1988/djangoprojects | dd001f2184e78be2fb269dbfdc8e3be1dd71ce43 | ea236f0e4172fbf0f71a99aed05ed7c7b38018e2 | refs/heads/master | 2022-11-15T23:46:46.134247 | 2020-07-15T06:37:51 | 2020-07-15T06:37:51 | 273,479,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,973 | py | # Generated by Django 3.0.5 on 2020-05-11 04:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bangalore_jobs',
fields=[
('id', models.Aut... | [
"djangopython1988@gmail.com"
] | djangopython1988@gmail.com |
32571ea46cc110bfa0c28bfc1e85e1041fedbda5 | 93c6d77a72e5cd570d8302d355c00e2e18ece986 | /class_based_views/urls.py | 422a4e39e729b7b3d05eedd62d3d780fc1f2ccff | [] | no_license | jayednahain/Django-class-Bassed-Serializer | 5bb64948edbb5ec9686329ea0ad33525b2199cfb | 98f2c6363cbb87a71825fff10d7518a5c59f91cc | refs/heads/main | 2023-03-24T10:10:13.898432 | 2021-03-21T12:29:12 | 2021-03-21T12:29:12 | 349,943,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py |
from django.contrib import admin
from django.urls import path,include
from class_based_views import views
urlpatterns = [
path('student/',views.StudentListView.as_view()),
path('student/<int:pk>',views.StudentDetailView.as_view())
]
| [
"jayednahian@yahoo.com"
] | jayednahian@yahoo.com |
bd9a0adddd2197a036fd6e0b074ffc6dea086986 | c76f836c6a32cc3051496024c4fb07420005a76e | /django_eveonline_entity_extensions/tasks.py | bb8b6b606e57fd3e40353fb0e94ce2e668a9082c | [
"MIT"
] | permissive | KryptedGaming/django-eveonline-entity-extensions | 5f3ad6a52e50b56380c492a1c0bdacd7e958b813 | ac09a09292be656fc31db08da0c755ad52bc9f06 | refs/heads/master | 2021-07-25T22:49:36.058877 | 2020-08-18T01:01:37 | 2020-08-18T01:01:37 | 212,662,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,346 | py | from celery import shared_task
from django.utils.dateparse import parse_datetime
from django_eveonline_connector.models import EveCharacter, EveCorporation, EveAlliance, EveToken
from django_eveonline_entity_extensions.models import EveAsset, EveClone, EveContact, EveContract, EveSkill, EveSkillPoints, EveNetWorth, Eve... | [
"porowns@gmail.com"
] | porowns@gmail.com |
f78f083e0e7ae1f57fa7b659c66a6b70b44cb2d7 | bcc88515f548c2cfd111091b5017b17fe8eb104e | /bootcamp/qa/urls.py | 9067f7ecb625b411ef101feda5efae8302478a02 | [
"MIT"
] | permissive | phamminhtris/bootcamp | e17313adae48c4ee1c15ae56046f7d578c5cbb78 | 5333d3120f4c0cf133dddf92e24c000bb5798914 | refs/heads/master | 2020-08-17T06:31:05.111706 | 2019-10-17T17:14:41 | 2019-10-17T17:14:41 | 215,625,304 | 0 | 0 | MIT | 2019-10-16T19:13:28 | 2019-10-16T19:13:28 | null | UTF-8 | Python | false | false | 843 | py | from django.conf.urls import url
from bootcamp.qa import views
app_name = 'qa'
urlpatterns = [
url(r'^$', views.QuestionListView.as_view(), name='index_noans'),
url(r'^answered/$', views.QuestionAnsListView.as_view(), name='index_ans'),
url(r'^indexed/$', views.QuestionsIndexListView.as_view(), name='inde... | [
"sebaslander@gmail.com"
] | sebaslander@gmail.com |
c2551d215d73498c3d4e970962f2e8c6c714e33b | 95c71453ed6cc6f9b94f38a3c1655680618d71a4 | /kickstart/tmp/setup.py | 1c2bbac5262aaaf1eaf615da8b6914f1cdc79f21 | [] | no_license | ZX1209/gl-algorithm-practise | 95f4d6627c1dbaf2b70be90149d897f003f9cb3a | dd0a1c92414e12d82053c3df981897e975063bb8 | refs/heads/master | 2020-05-16T14:56:34.568878 | 2019-12-27T07:37:11 | 2019-12-27T07:37:11 | 183,116,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from distutils.core import setup
import py2exe
setup(console=['redo-DA.py'])
| [
"1404919041@qq.com"
] | 1404919041@qq.com |
0d5549e25bd3c020b0067647837841f02d1b4e93 | 5a27471bc2ae4a815db2c58d047dbbea03cd8f77 | /comparisonFiles/codigos/Analisis/SciLab/Set1Imp.py | 8820df3a9e0d3f907f0c082ef7fb70e8037bf6aa | [] | no_license | ezalorpro/LaboratorioDeControl | 6ef52bb77b6a2283decb8c9fa153d7b43f019609 | ac286214f9a4b32298aa1caec808717f4b2d9a29 | refs/heads/master | 2023-01-20T19:27:56.233542 | 2020-03-15T20:24:10 | 2020-03-15T20:24:10 | 190,772,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | import numpy as np
from scipy.interpolate import interp1d
from scipy.signal import correlate
from scipy.stats import energy_distance
from scipy.integrate import cumtrapz
from scipy import io
from matplotlib import pyplot as plt
import pickle
MatFile = io.loadmat('comparisonFiles/Data SciLab/Analisis/S1Imp', squeeze_me... | [
"kleiver615@gmail.com"
] | kleiver615@gmail.com |
d64065383ad847614bc3d4da63a4f1c06a9c3919 | 363243d601ec0aefbdb1821406884565bbcac895 | /src/todo/views.py | c0e5c7af7fdb0db50e5d14c79d4e5317dc7df80d | [] | no_license | achiengcindy/todo | ae77a83ecdb35490eb6019cf7e887f63e4d09879 | 7d9a4cacfe7712b898880be0f2532f03a754ea10 | refs/heads/master | 2020-04-02T19:06:09.736282 | 2018-11-01T10:31:24 | 2018-11-01T10:31:24 | 154,722,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from django.shortcuts import render, redirect, get_object_or_404
from .models import Task
from .forms import TaskForm
def index(request):
todo_list = Task.objects.all()[:7]
context = {'tasks': todo_list}
return render (request, 'todo/task/index.html', context)
def create_task(request):
if request.m... | [
"achiengcindy36@gmail.com"
] | achiengcindy36@gmail.com |
b4aa5bdfc0f2f07834b448cc0bdb98c10294e4a6 | f7a655574b8198c3cbd1ebf43626234654156bab | /password5_lucas.py | 2c89008a2ebb4a2ec96b2438f34821df39901f8a | [] | no_license | Botany-Downs-Secondary-College/password_manager-scott-mouat-trisan-huynh-lucas-pryce-ravi-grewal | acc72bb56119c65912569cded4c61d351bf86ee6 | 33a7c692740a617efda5ca36bda10ac75a146b32 | refs/heads/main | 2023-03-31T15:09:29.585881 | 2021-04-02T08:14:07 | 2021-04-02T08:14:07 | 341,021,516 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | #password1_lucas.py
#create and display passwords for users
#Lucas Pryce, Feb 2021
usernames = []
passwords = []
user_data = []
with open('usernames.txt','r') as f:
usernames = f.readline()
with open('passwords.txt','r') as f:
passwords = f.readline()
print("Welcome to Password Man... | [
"noreply@github.com"
] | Botany-Downs-Secondary-College.noreply@github.com |
a718e0133bec06538b25f984ccbb55eddb48a6f2 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/head_year_air/president/man_home_change.py | b258a7477cad225134e69fa7388bc6316c10cf9f | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Translator.API;
namespace CSharp_TranslateSample
{
class Program
{
private const string SubscriptionKey = "6d4fe11e62c25d440dacd5b2e3a45a4b"; //Enter here the Key from your Microsoft Translator Text s... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
63033e5c2662c0a3c315056a2aa93d0fee9840a0 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/132416/caffe-windows-master/tools/extra/resize_and_crop_images.py | 1ddf6d7b59e065b04fc140c3a01d32da61173a92 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,592 | py | #!/usr/bin/env python
from mincepie import mapreducer, launcher
import gflags
import os
import cv2
import PIL
# gflags
gflags.DEFINE_string('image_lib', 'opencv',
'OpenCV or PIL, case insensitive. The default value is the faster OpenCV.')
gflags.DEFINE_string('input_folder', '',
... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
83cba34ccafb7f29a43d294c4b1232a61a4d3e31 | 64fb7c0c2f91c6e8d19dac7cde5f79a7d0fa852a | /flask_databrowser/sa/sa_kolumne.py | 5f5c100dfd5bfedd47e1907c822c75d3256ade07 | [] | no_license | PuZheng/Flask-DataBrowser | cf006b6c4997347ff4fa355ef5eee70052d7dfe8 | cc116e4c96a57b23cc25a1709154a65c87ea3a7d | refs/heads/master | 2020-06-26T08:35:09.179020 | 2014-06-10T05:12:34 | 2014-06-10T05:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,425 | py | # -*- coding: utf-8 -*-
from collections import OrderedDict
import copy
from decimal import Decimal
from datetime import datetime, date
from sqlalchemy_utils import types as sa_util_types
from wtforms import validators, fields, ValidationError, SelectField, TextAreaField, BooleanField, FloatField, \
PasswordField
... | [
"xiechao06@gmail.com"
] | xiechao06@gmail.com |
de22168925dc8d6ac77f857177b7291600e10be4 | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/push_notifications/forms.py | 028e11db408dbe14acc95c5025b7383ac726e161 | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # coding=UTF8
from django import forms
class HexIntegerFormField(forms.IntegerField):
default_error_messages = {
'invalid': 'Enter a valid hex value."',
}
def to_python(self, value):
if value in self.empty_values:
return None
try:
return int(value, 16)
... | [
"rk@23doors.com"
] | rk@23doors.com |
b4e1e8051d7eb92cafa9fcbe36c99677f952b1a6 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/graph_objs/streamtube/colorbar/title/__init__.py | 83377f3e5bbdaf24a4e0494eeb1bc923d7d919e3 | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 8,538 | py |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# color
# -----
@property
def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff000... | [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
9a4cb62df59db319e8fa5ad86d9fc59e207ef8b8 | 0abe5272c7c505cfae702d85b96e320e4d1850eb | /oslo_task/conf/__init__.py | 909e15b489d57f032e6fd0b98d9563e73dc954aa | [] | no_license | laurencechan/oslo_task | ccb8d46b1cf3e3709144f6bf1f6ed9c6dfb82fdb | 9be6e2cf3bc647d4dd2b77f4c3c59d4fd1d20b64 | refs/heads/master | 2021-08-14T15:18:07.689418 | 2017-11-16T03:23:58 | 2017-11-16T03:23:58 | 110,917,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | from config import cfg
OSLO_CONF=cfg.ConfigOpts()
| [
"laurencechan@qq.com"
] | laurencechan@qq.com |
cc380d605aee569ee9483fb4fc09ebbd7120f380 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-mrsp.0/mrsp_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=26/sched.py | ca6fbc8c6c47e8f66e09915e60aaa7c8a450845a | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | -S 0 -X RUN -Q 0 -L 3 95 400
-S 0 -X RUN -Q 0 -L 3 66 300
-S 0 -X RUN -Q 0 -L 3 54 175
-S 1 -X RUN -Q 1 -L 2 53 200
-S 1 -X RUN -Q 1 -L 2 50 200
-S 1 -X RUN -Q 1 -L 2 44 175
-S 2 -X RUN -Q 2 -L 2 34 125
-S 2 -X RUN -Q 2 -L 2 34 175
-S 2 -X RUN -Q 3 -L 1 33 175
-S 2 -X RUN -Q 3 -L 1... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
990b467fa327bfecde09773d0a0948bac93bd9a0 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/lobby/account_completion/tooltips/hangar_tooltip_view.py | 1de315246317c72f5af272309edf40864c43ba98 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 1,421 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/lobby/account_completion/tooltips/hangar_tooltip_view.py
from frameworks.wulf import ViewSettings
from gui.impl.gen import R
from gui.impl.lobby.account_completion.utils.common import fillRewards
from gui.impl.pub import Vi... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
7b09567caefbc8eec53695d9756f5f0a620ab352 | 5bfeda1584d8d9d5c5293e23d5e4677e47db47b2 | /bin/pygmentize | 720485ed186882c3a73eafa5879d223632eeafb5 | [] | no_license | Anubhav722/Github-CLI | 34f4fc188f056d10b10e9735d495c3846331506b | 9b62d8a2e835831fd7be1208e9df693e49064c54 | refs/heads/master | 2021-01-23T14:56:57.034138 | 2017-06-04T07:41:21 | 2017-06-04T07:41:21 | 93,264,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/sheron/Desktop/psycho_2/github_loads/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"anubhavs286@gmail.com"
] | anubhavs286@gmail.com | |
145a3654a08e410b31c5a2d8ce8ccec064243997 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s572717963.py | ae61dce957ea8632da6dc8d93aa19a41f484843b | [] | 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 | 2,237 | py |
import sys
def enum_div(n):
ir=int(n**(0.5))+1
ret=[]
for i in range(1,ir):
if n%i == 0:
ret.append(i)
if (i!= 1) & (i*i != n):
ret.append(n//i)
return ret
from collections import deque
# q = deque(l)
# q.append(4) # 後ろから4を挿入, l=deque([0,1,2,3... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
69e69938b0c8ea577907f6d617833442c741d728 | 89f4284d0b5b2359c5121626e1575f95fc08a160 | /HeavyIonsAnalysis/JetAnalysis/python/jets/akPu2CaloJetSequence_pponPbPb_data_cff.py | bebd5ce9e55c6f4749ab59b8a208d560f087c6a1 | [] | no_license | geun-woo/Comparing-collections-in-AOD-and-in-miniAOD | e11eb48cc8ab15a07f02a08a8a46dfd9d5a4e418 | 7b6e2118b9ce733b2ebb6f26516cbc107e37b285 | refs/heads/main | 2023-01-27T21:18:37.980241 | 2020-12-04T08:24:01 | 2020-12-04T08:24:01 | 318,445,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,471 | py | import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.mcMatchLayer0.jetMatch_cfi import patJetGenJetMatch, patJetPartonMatch
from PhysicsTools.PatAlgos.recoLayer0.jetCorrFactors_cfi import patJetCorrFactors
from PhysicsTools.PatAlgos.producersLayer1.jetProducer_cfi import patJets
from HeavyIonsAnalysis.... | [
"9nukim@gmail.com"
] | 9nukim@gmail.com |
26b0e174793d5a6be902338ffad4b225570fb137 | aa0270b351402e421631ebc8b51e528448302fab | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/aio/_configuration.py | c7b3be52192bf7caeda7bb1f9c0ea7f0b4d35b5f | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 3,790 | 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 may ... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
331ecb571092eb9d64f691933fb7d96667246caf | 033896b10280654d87029f96306ceba2d028320e | /modules/lib/webpage/__init__.py | 485e287421a84214563c5256608e03a203ea2e56 | [
"MIT"
] | permissive | guminov/pycameresp | 9eb465fa0743aec2149e0b43da5709e8560a3e46 | 2c00a77a73e6387f55707564851cdeccccc7ddfa | refs/heads/main | 2023-07-17T22:58:54.290378 | 2021-09-01T17:35:43 | 2021-09-01T17:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # Distributed under MIT License
# Copyright (c) 2021 Remi BERTHOLET
""" All web pages defined here """
from tools.useful import log, iscamera
from webpage.passwordpage import *
from webpage.mainpage import *
from webpage.changepasswordpage import *
from webpage.infopage import *
from webpage.pushoverpage import *
from ... | [
"remi_bertholet@yahoo.fr"
] | remi_bertholet@yahoo.fr |
09b9d602d8d4916c040676bcd6a5dccb4467dfcc | 30150c7f6ed7a10ac50eee3f40101bc3165ebf9e | /src/parties/DistributedPartyDance20Activity.py | d7c00301124f1c523c7aba6f6acc620275d9e38e | [] | no_license | toontown-restoration-project/toontown | c2ad0d552cb9d5d3232ae6941e28f00c11ca3aa8 | 9bef6d9f823b2c12a176b33518eaa51ddbe3fd2f | refs/heads/master | 2022-12-23T19:46:16.697036 | 2020-10-02T20:17:09 | 2020-10-02T20:17:09 | 300,672,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | #-------------------------------------------------------------------------------
# Contact: Edmundo Ruiz (Schell Games)
# Created: Oct 2008
#
# Purpose: Party Dance Activity. Loads up the dance floor and plays the rotation
# sequences, as well as handles dance moves and toons currently dancing.
# Toon... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
9e09127ea6d37216e0f98d565d9138ec5a2a8f8e | 8e0f89612fb278c07cd871ea29685917caec4e0d | /create_next_nested_list.py | d2fe509617f199c067767189cd0a08d6ab4a4622 | [] | no_license | amritat123/list_Questions | 169836e87863f1d97776a9f9da0dd14e0512ac8a | d98982fd16a2165d7fd4bea8c89014897a1a0f72 | refs/heads/main | 2023-06-20T06:35:41.533536 | 2021-07-10T07:52:04 | 2021-07-10T07:52:04 | 369,066,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | num=int(input("enter any num for 1st loop="))
i=1
list=[]
s=1
while i<=num:
j=0
list1=[]
num1=int(input("enter nay num for 2nd loop="))
while j<=num1:
# n=int(input("enter any num for list="))
list1.append(s)
j+=1
s+=1
list.append(list1)
i+=1
print(list) | [
"you@example.com"
] | you@example.com |
546958722452aeea34f21d2e2b026e6447142ac6 | 13625dd7375297b066ccd69d6c229e9a1535c9b2 | /wallet/migrations/0010_auto_20201221_1041.py | 2f70e36d27f9ce7b1c7b11b6b44fbd25d4b9403d | [] | no_license | rajman01/investfy | 9d5fa3ed7593ec13db575016fc839664630318af | a4c8bf16ba7a1ce38d1370e4779284a4d6426733 | refs/heads/main | 2023-09-01T19:10:18.411861 | 2023-08-28T02:30:23 | 2023-08-28T02:30:23 | 320,408,218 | 0 | 1 | null | 2023-08-28T02:30:24 | 2020-12-10T22:46:03 | null | UTF-8 | Python | false | false | 399 | py | # Generated by Django 3.1.3 on 2020-12-21 09:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wallet', '0009_wallet_wallet_id'),
]
operations = [
migrations.AlterField(
model_name='wallet',
name='wallet_id',
... | [
"alameenraji31@gmail.com"
] | alameenraji31@gmail.com |
a030273e05fc3722095cf1d7b01d41218f36f11e | ab8b066221447d9dc8b02f5fa83a561e164a82c0 | /variation/src/association/AssociationCofactor.py | 1d2e958bbd0a5e62c22c01f720d5aa2c5c77a935 | [] | no_license | polyactis/gwasmodules | 52729435a91933cfd8409973e1afda5514615d93 | b9333b85daed71032a1cba766585d0be1986ffdb | refs/heads/master | 2021-01-17T12:16:19.813899 | 2015-03-14T00:30:40 | 2015-03-14T00:30:40 | 32,554,385 | 0 | 1 | null | 2020-07-24T15:51:39 | 2015-03-20T00:50:11 | Python | UTF-8 | Python | false | false | 3,477 | py | #!/usr/bin/env python
"""
Examples:
SNP 4_268809 (FRI deletion 1) and phenotype 44 (FRI) are cofactor. EMMAX association on phenotype 43 FLC.
~/script/variation/src/AssociationCofactor.py -i /Network/Data/250k/tmp-yh/250k_data/call_method_32.tsv
-p /Network/Data/250k/tmp-yh/phenotype/phenotype.tsv
-o /tmp/cal... | [
"tom@phantom"
] | tom@phantom |
5543d6ce1becb1523fc33862684db06f22cf441e | 0ad3cad4116cfac2e0c86a4445c6869c1f0044d9 | /lib/neural_net_single_layer.py | 87cd4618d941ce696c22738d5abe21ac9f90fb55 | [] | no_license | Anwesh43/DeeplearningUsingNumpy | 015b4ddb2229124171756f6e0211481a5680f640 | acc92a70be3e413f6ab9aa3420090eca7715c65a | refs/heads/master | 2020-06-28T07:30:12.923361 | 2016-11-25T06:32:50 | 2016-11-25T06:32:50 | 74,500,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,252 | py | from ecomm_project import getData
import numpy as np
import time
class NeuralNet:
def __init__(self,X,Y,M=3,softmax_required=True):
assert(X.shape[0] == Y.shape[0])
self.X = X
self.T = Y
self.softmax_required = softmax_required
self.D = X.shape[1]
self.M = M
s... | [
"anweshthecool0@gmail.com"
] | anweshthecool0@gmail.com |
821975ec28b686b2402d8ab3fabbd98f8335f1ee | 1375f57f96c4021f8b362ad7fb693210be32eac9 | /kubernetes/test/test_v1beta1_fs_group_strategy_options.py | f7366e54e65280a6505f78d52b35933d62667e18 | [
"Apache-2.0"
] | permissive | dawidfieluba/client-python | 92d637354e2f2842f4c2408ed44d9d71d5572606 | 53e882c920d34fab84c76b9e38eecfed0d265da1 | refs/heads/master | 2021-12-23T20:13:26.751954 | 2017-10-06T22:29:14 | 2017-10-06T22:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
fa5b6fc62c2803940a4657aeb270a09b2c5a20d8 | fecb138cf4546a2d92f2c25f892df79be6e1907f | /enviarDatos/wsgi.py | 1f01fed672d3608e08a6ec07d86194e8635adc2d | [] | no_license | rikicop/enviarDatos | 5ddfd1f6754be698aafe9b8781bf0fb3ce75c92d | e25c067b5304d2e970619a913ee66c0272464ccf | refs/heads/main | 2023-02-25T13:27:00.458287 | 2021-02-02T22:34:32 | 2021-02-02T22:34:32 | 330,767,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for enviarDatos project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"ruperto1@protonmail.com"
] | ruperto1@protonmail.com |
af03629974a3ac217a6dd8485f425be86883ba85 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f326e49d752092e41b6f1226df74a9259b8abf1c-<run>-bug.py | 212c8a0a7dffcfb58dee6754faa6461c21315ee2 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,120 | py | def run(self, tmp=None, task_vars=None):
' generates params and passes them on to the rsync module '
if (task_vars is None):
task_vars = dict()
result = super(ActionModule, self).run(tmp, task_vars)
remote_transport = False
if (self._connection.transport != 'local'):
remote_transport... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
dcccaeb07693eac50adae069d83568700e3da471 | 1b6a460652f5b43e42614d63c26a57b4e14b6360 | /src/tinySelf/datastructures/code_generalization.py | 902f9da21f2e666e35087d4ebe694508820b65e7 | [] | no_license | cfbolz/tinySelf | 68800b2782f998f46b7950a688a6a0ec663c661b | f20b38aaaa85b4be89cf1fc2ebc890cd1e33c62b | refs/heads/master | 2020-05-09T10:02:05.385599 | 2019-04-12T15:12:23 | 2019-04-12T15:15:50 | 181,025,576 | 0 | 0 | null | 2019-04-12T14:35:12 | 2019-04-12T14:35:11 | null | UTF-8 | Python | false | false | 1,382 | py | # -*- coding: utf-8 -*-
import inspect
def create_copy_with_different_types(cls, new_name, other_replacements=None):
"""
Create copy of the `cls` item with `new_name`. Also optionally run
.replace() calls on the source for all pairs in `other_replacements`.
This function is useful as kind of template... | [
"bystrousak@kitakitsune.org"
] | bystrousak@kitakitsune.org |
22678261ffff6d573391b5a65eebeabf60f5f9d1 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/탈출문자_20200628134853.py | 7fa18942ae11eca8f70825013f54ba5321ea1418 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # \n : 줄바꿈 문자
print("백문이 불여일견 \n백견이 불여일타")
# \" , \' : 문장 내에서 따옴표 표시
# 저는 "나도코딩"입니다.
print('저는 "나도코딩"입니다.')
print("저는 \"나도코딩\"입니다.")
print("저는 \'나도코딩\'입니다.")
# \\ : 문장 내에서 하나의 \ 인식
print("C:\\user\\Nadocoding\\Desktop\\PythonWorkspace")
# \r : 커서를 맨 앞으로 이동
print("Red Apple\rPineㅈ")
# Pine 을 맨 앞으로 이동해서 'Red '에 덮어 쓴다.... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
c60dc3a44214867b751eaef5ff89b74195c87bd8 | a1bc73b72c9a44bfbbda2aa5aeb711d1b5c018e4 | /cienciometria/wos_sci_scp_ptj_ctr.py | 228c6405e75fe53db0d89b610c9148001183cea1 | [] | no_license | restrepo/medicion | 1574c71e0708af297a72f7c4b01ac5b13cb57743 | d313163b9488c6e7f0e13a11afcb28a3c0efde5d | refs/heads/master | 2021-06-22T15:59:52.832196 | 2020-12-03T04:11:32 | 2020-12-03T04:11:32 | 149,656,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,326 | py | import unidecode
import Levenshtein as lv
import fuzzywuzzy.process as fwp
from fuzzywuzzy import fuzz
import wosplus as wp
import numpy as np
import pandas as pd
import unidecode
import os
import re
import sys
from IPython.display import clear_output
def get_author_info(x):
sep='; '
authors=[{'WOS_author':x[0]... | [
"restrepo@udea.edu.co"
] | restrepo@udea.edu.co |
a3c09212e16547bcb194c63736171867c3746cca | 3ed0809f2761953d75b3652ac7378f80508d6d93 | /NLP/PresidentialAnalysis/script.py | de7296d619cf4af1b5af115d471f5d47f5e184c4 | [] | no_license | giantianye/NLP | 5d063bd742ac76914fc5fbb7c0952161c6c19b9a | df64507e7a3f27615e27413a916292426d0392ab | refs/heads/master | 2022-12-23T20:38:43.716196 | 2020-10-05T16:24:09 | 2020-10-05T16:24:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,650 | py | import os
import gensim
import spacy
from president_helper import read_file, process_speeches, merge_speeches, get_president_sentences, get_presidents_sentences, most_frequent_words
# get list of all speech files
files = [file for file in os.listdir() if file[-4:] == '.txt']
#print(f'These are the files in this folder... | [
"chrisbrousseau304@gmail.com"
] | chrisbrousseau304@gmail.com |
eeba00f9275c97d64d9d1dc8257463e509c1efaf | 2f418a0f2fcca40f84ec0863b31ff974b574350c | /scripts/addons_extern/anim_ivo_anim_tools/menu.py | f7a81323d77737d767ec55d6c94d5a24018eb64c | [] | no_license | JT-a/blenderpython279 | 57a81b55564218f3b1417c2ffa97f5161897ec79 | 04846c82f794c22f87d677d9eb8cec1d05c48cda | refs/heads/master | 2021-06-25T06:58:07.670613 | 2017-09-11T11:14:36 | 2017-09-11T11:14:36 | 103,723,697 | 4 | 2 | null | 2017-09-16T04:09:31 | 2017-09-16T04:09:31 | null | UTF-8 | Python | false | false | 6,473 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
42c9121701414467056a7bb07a6682040a9bdb88 | f96937b4f6ee9865413978fb85fa2e99e2f842ff | /lessons/migrations/0015_annotation.py | c8acb1d9c3f7bdffccf0ed04f41c22891335a5e4 | [] | no_license | mrjoshida/curriculumbuilder | 8adf22d91eae2f3205b177e18dbd8a0909fb2d58 | 3b700d6a6fea6d1d7d7ed18d5612d6e0853449c3 | refs/heads/master | 2021-01-17T02:28:11.094855 | 2019-10-17T22:47:46 | 2019-10-17T22:47:46 | 36,847,693 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('lessons', '0014_lesson_comments_count'),
... | [
"josh@code.org"
] | josh@code.org |
c11780343fc4b4078f6bd8df604edd493474bcf4 | d8a0b7b73c495ba3933bae97aa201ff995bd8532 | /otter/check/logs.py | 94790e12df171282802ee589b146560c8ecfd83f | [
"BSD-3-Clause"
] | permissive | podgorskiy/otter-grader | a1cdc31c90e7dce2ecfda8ef925b0384ac32d61e | 62815663a82fc9b92318a0ef4b3e82532b66b32c | refs/heads/master | 2022-12-07T02:19:57.270269 | 2020-08-21T18:56:09 | 2020-08-21T18:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,855 | py | """
Logging for Otter Check
"""
import os
import pickle
import types
import dill
import tempfile
import datetime as dt
import numpy as np
from enum import Enum, auto
from glob import glob
class QuestionNotInLogException(Exception):
"""Exception that indicates that a specific question was not found in any entry i... | [
"cpyles@berkeley.edu"
] | cpyles@berkeley.edu |
dd6c76325e726a44e720e7fbeb4153e671d09e1a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02414/s356487546.py | 886ab225d05211bab3699f00130fdb8c698393cb | [] | 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 | 458 | py | n, m, l = map(int, raw_input().split())
matrix_a = []
matrix_b = []
for i in range(n):
line = map(int, raw_input().split())
matrix_a.append(line)
for i in range(m):
line = map(int, raw_input().split())
matrix_b.append(line)
for i in range(n):
result = []
for j in range(l):
tmp = 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ffd6525fa0dc7dc9efacb33c7f0d7ce1319e6a65 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Vinayak/Python/Practice/24 Feb/Operators in Python.py | e4a474da542271e0760305d2ac633cdf8827f3a9 | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 2,766 | py | #Python Operators
#Arithmetic Operators
+ Addition x + y 5+3 8
- Subtraction x - y 5-3 2
* Multiplication x * y 5*3 15
/ Division x / y 5/3 1.666667
% Modulus x % y 5%3 2
** Exponentiation x ** y 5**3 5*5*5
// Floor division x // y 5//3 2
#Assignment Operators
= ... | [
"ravva.vinayak98@gmail.com"
] | ravva.vinayak98@gmail.com |
eda9820ef94e75240e523bd0ab9346bb482f089d | 7fe20296c412a671e76d00cf9b704936dd179aed | /backend/home/management/commands/load_initial_data.py | ba13c8213c4db6c3a2a1edae942613f8a1f4f3a3 | [] | no_license | crowdbotics-apps/test-screen-prod-11608 | c4d92d12388da48b9353979a1a362f11c6ba956e | 9b77068f0fd739b6fba3e5bfbe2cea5d6514021d | refs/heads/master | 2022-03-26T13:14:59.683047 | 2019-12-20T17:32:36 | 2019-12-20T17:32:36 | 229,301,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from django.core.management import BaseCommand
from home.models import CustomText, HomePage
def load_initial_data():
homepage_body = """
<h1 class="display-4 text-center">Test Screen prod</h1>
<p class="lead">
This is the sample application created and deployed from the crowdbotics sl... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
acf05ec6a485e99277a0ebb52d9007e2e0c07507 | bc54edd6c2aec23ccfe36011bae16eacc1598467 | /simscale_sdk/models/oak.py | 0d8c6ec085eff29d362a5a26c7e42124df45ff69 | [
"MIT"
] | permissive | SimScaleGmbH/simscale-python-sdk | 4d9538d5efcadae718f12504fb2c7051bbe4b712 | 6fe410d676bf53df13c461cb0b3504278490a9bb | refs/heads/master | 2023-08-17T03:30:50.891887 | 2023-08-14T08:09:36 | 2023-08-14T08:09:36 | 331,949,105 | 17 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,174 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class Oak(object):
"""NOTE: This class is auto generated by OpenAPI G... | [
"simscale"
] | simscale |
8b387b5a56422af01bdd320c9429e0f8a9e1955b | c92beac7dd96799d473fcf86ee8ca0abfed05daf | /pcapparser/config.py | 149bb338252e2353326e0d8c7e60b6f42d64b722 | [] | no_license | fengidri/netdump | da6143932964b2da880235d165a62e67ed471760 | 2268c0f8f684c9b254cfdb009853de16ffb44dc3 | refs/heads/master | 2021-01-10T11:27:21.757682 | 2019-05-17T09:47:11 | 2019-05-17T09:47:11 | 45,653,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py | from __future__ import unicode_literals, print_function, division
import sys
import argparse
import io
__author__ = 'dongliu'
class OutputLevel(object):
ONLY_URL = 0
HEADER = 1
TEXT_BODY = 2
ALL_BODY = 3
class ParseConfig(object):
""" global settings """
def __init__(self):
self.... | [
"fengidri@gmail.com"
] | fengidri@gmail.com |
d547bef1d00a5d30f348e0d427acc565d96e9374 | 23261d97f11c502f882a003cf9d65e7de2aa860e | /src/tests/main_test.py | 7b3d7de85c6573027a1d1f37c303bf23d6770125 | [] | no_license | shohruh-abduakhatov-portfolio/mivs-py | 4a7161066dcb3551d866af8238db85672ce95ee8 | 4419deb48db8a71555481c2fff09c553440e8702 | refs/heads/master | 2023-01-11T18:02:30.802698 | 2020-11-16T17:41:52 | 2020-11-16T17:41:52 | 312,632,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | import asyncio
from time import time
from src.mc_mics_v2 import main as mc_main
from src.tests.test_data import *
async def main():
start = time()
decimal = 100
# m_input_capital = int(input_capital * decimal)
# m_cash = int(cash * decimal)
# m_perech = int(perech * decimal)
# m_cash_cost = ... | [
"shokhrukh.abduahadov@gmail.com"
] | shokhrukh.abduahadov@gmail.com |
99c04d3e07ddbfa58111544a13254a7229108424 | 1900f3c3f5e7cb9cf05487cbb3b743128cd32ed5 | /Quanlse/Calibration/__init__.py | b47daa9fe3a2e8058c9716e8e6d6629d0d60e25e | [
"Apache-2.0"
] | permissive | ajunlonglive/Quanlse | e7ffc744e1a1bf19afda1cfc9ec51d36eeb77f94 | f84a9afc66a7a404fc1ee2ea0de110f966491279 | refs/heads/main | 2023-08-05T09:56:34.199957 | 2021-09-28T09:27:15 | 2021-09-28T09:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/python3
# -*- coding: utf8 -*-
# Copyright (c) 2020 Baidu, 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... | [
"quantum@baidu.com"
] | quantum@baidu.com |
2dc637adcd60744a513d38463934a8e5b74c79d7 | 86f07020293cfd625a1c01ffdc6aa09272f5537b | /scripts/updateSubscription.py | c4131964eb5f5afc5cde0829e23f9826296629ec | [] | no_license | CMSCompOps/TransferTeam | ec553a357decbc0650cc0302f58cec7cec7e57e9 | b9259a3ee8be1f020d614721f62662ce0eafa2cb | refs/heads/master | 2022-12-23T05:44:30.252624 | 2022-12-22T13:24:01 | 2022-12-22T13:24:01 | 20,916,607 | 5 | 13 | null | 2021-07-30T15:58:01 | 2014-06-17T08:52:06 | Python | UTF-8 | Python | false | false | 1,688 | py | #!/usr/bin/env python
import os
import pycurl
import urllib
from optparse import OptionParser
def updateSubscription(block, node, priority):
proxyfile='/tmp/x509up_u'+str(os.getuid())
cadir='/etc/grid-security/certificates'
c = pycurl.Curl()
c.setopt(pycurl.CAINFO,proxyfile)
c.setopt(pycurl.CAPAT... | [
"sidn@mit.edu"
] | sidn@mit.edu |
351afebe0fb7d47cc9a114781fdea4433c5d22bd | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/climbingStairs_20200709192229.py | 72a0b6be11af850876764924a65e5b152a5b1b10 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | def climbing(n):
'''
Problem:
Climbing stairs
You are climbing a stair case.It takes n steps to reach the top
Each time you can either climb 1 or 2 steps
In how many distinct ways can you climb to the the top
1.Define the objective function
f(i) --> nu of distinct ways to reach the ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
b6ccc1004ee8af3909623c7a031a8ac071a83375 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-1752.py | a04fc4916a1511fc00974fec5bc772e3072a13f6 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,293 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
f18bcb2caa8a345d47c97d12f0ff6e6de2d0e1a7 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/common/checks_infra/solvers/attribute_solvers/is_true_attribute_solver.py | ac1e127ed805cd12901626b26d29bf35d3263227 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 595 | py | from typing import Optional, Any, Dict
from checkov.common.graph.checks_infra.enums import Operators
from checkov.common.checks_infra.solvers.attribute_solvers.base_attribute_solver import BaseAttributeSolver
class IsTrueAttributeSolver(BaseAttributeSolver):
operator = Operators.IS_TRUE # noqa: CCE003 # a stat... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
e525a2da42c80d2a737ef03d090a037452f63f5c | e54a762c773c0699a475496088f38312c760856e | /3-examples/3-wrap-logic/timed.py | e57aeedb60506c6fc35152780ab44ad89309d778 | [] | no_license | MarkovCredit/python-decorators | 7aa4756d3f90a81964afd26afef8213dce1016c3 | c03c6ee371da2493221db1172ac01ff0d96c80ab | refs/heads/master | 2020-04-05T06:46:28.876897 | 2018-11-07T01:57:10 | 2018-11-07T01:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import time
import functools
__author__ = 'Michael'
def timed(func):
@functools.wraps(func)
def __new_func(*args, **kwargs):
start = time.time()
try:
return func(*args, **kwargs)
finally:
end = time.time()
print("{} took {} seconds".format(func.__n... | [
"mkim0407@gmail.com"
] | mkim0407@gmail.com |
1be04052f60df48933a945fb9de1c354eb2feffc | 053d7ca689e41e8ba94c8792f4167a3a2e3069f3 | /urly_bird/users/models.py | 093aaf3198e62fcb441256442d8d8d157dc63ce7 | [] | no_license | cesarmarroquin/urly-bird-evolved | 691554ee13ea4bfb12ab056b5f2a7a621bfb8e5e | c61e50bc8d13c06b6d431196d532cf45c85dee65 | refs/heads/master | 2020-12-25T23:19:14.149147 | 2015-11-05T16:21:42 | 2015-11-05T16:21:42 | 45,566,498 | 0 | 0 | null | 2015-11-04T20:48:57 | 2015-11-04T20:48:56 | null | UTF-8 | Python | false | false | 274 | py | from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from django.db import models
class Profile(models.Model):
user = models.OneToOneField(User)
def __str__(self):
return "username: {}".format(self.user.username)
| [
"cesarm2333@gmail.com"
] | cesarm2333@gmail.com |
6c4c9bf4a7b3c49c5499b1d8dfd04b1de907420c | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/shuge-zbox_wiki/allPythonContent.py | 12a0ebdae5b53374cbff2a1ae08a26dd61abbdbf | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549,128 | py | __FILENAME__ = migrate_from_trac_wiki_to_zwiki
#!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
This script assists you migrate data from Trac Wiki to ZWiki.
NOTICE: it supports SQLite3 database backend only.
File migrate_from_trac_wiki_to_zwiki_conf.py *MUST* contains following variables:
- trac_db_pat... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
74d17d2e9efe5a3aad198337a32c9a0fcbf53f90 | 1f1b6692d26e61d8ed9dae4a07e59863cce608b4 | /stocktrends/indicators.py | b158f2ebe5c601a520375f4db15dabf702afc81a | [] | no_license | webclinic017/Algobro | 4704386d0e75d1e755c79603634e25181609b7ac | f563e71c06026a73d1ca746425c2c22a5d388462 | refs/heads/main | 2023-06-22T02:54:56.405499 | 2021-07-22T04:57:52 | 2021-07-22T04:57:52 | 410,951,894 | 1 | 0 | null | 2021-09-27T16:01:42 | 2021-09-27T16:01:42 | null | UTF-8 | Python | false | false | 9,824 | py | import numpy as np
import pandas as pd
# import ray.dataframe as pd
class Instrument:
def __init__(self, df):
self.odf = df
self.df = df
self._validate_df()
ohlc = {'open', 'high', 'low', 'close'}
UPTREND_CONTINUAL = 0
UPTREND_REVERSAL = 1
DOWNTREND_CONTINUAL = 2
DOW... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
4fd2ee506a0b2c9419c403155d87bcac53827212 | ce7b0931b5bf655f0289428b060dda035923e0e3 | /snippets/forms.py | 1d68902397a21b1a9cedae52828620736819e391 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | robertowest/django-auth-tutorial | f3d4d9bec367e688514cc51883a2786afe9c90d9 | 613870246291707044d43d8380f75704faa90dd8 | refs/heads/master | 2020-09-21T05:47:46.706254 | 2019-11-28T17:27:44 | 2019-11-28T17:27:44 | 224,698,437 | 0 | 0 | MIT | 2019-11-28T17:12:12 | 2019-11-28T17:10:14 | Python | UTF-8 | Python | false | false | 413 | py | from django import forms
from .models import Snippet, Comment
class SnippetForm(forms.ModelForm):
class Meta:
model = Snippet
fields = ('title', 'code', 'description')
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = ('text', )
widgets = {
... | [
"roberto.west@gmail.com"
] | roberto.west@gmail.com |
3d22d8adc23719e2694998cdb3e94ef35c2d520e | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/anthos/auth/version_test.py | 86050f55a62c780a07e047844dff5674998e4885 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 1,241 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 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 requir... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
c7005f793f0cd8f91d2bb0e0db82af9221dd4e5f | 0c246a93ce8f5d2f6c5ee2a175aa255a956f70a8 | /mosfit/modules/outputs/__init__.py | b4750f3255626d74884093ff95f07f474938c1b1 | [
"MIT"
] | permissive | guillochon/MOSFiT | c7ac4d4c769b6ff89600e907ba6c41d9cc3d8e10 | 7e7779b6932955eb3875ebab5fe3fd28745eeb17 | refs/heads/master | 2023-06-07T21:05:14.623231 | 2023-05-26T12:03:27 | 2023-05-26T12:03:27 | 67,811,113 | 36 | 57 | MIT | 2023-05-26T12:03:29 | 2016-09-09T15:37:55 | Jupyter Notebook | UTF-8 | Python | false | false | 620 | py | """Initilization procedure for `Output` modules."""
import inspect
import os
import sys
path = os.path.dirname(os.path.abspath(__file__))
__all__ = []
for py in [
f[:-3] for f in os.listdir(path)
if f.endswith('.py') and f != '__init__.py'
]:
mod = __import__('.'.join([__name__, py]), fromlist=[py... | [
"guillochon@gmail.com"
] | guillochon@gmail.com |
e65fce3550fae4739f43bc1930d1f601e056cf77 | 971c5ae1d87cdfbb97723485c3d76c17395b82b0 | /x86-semantics/semantics_using_uifs/z3EquivFormulas/x86-cmpq_r64_r64.py | c4bbca127aab73300227e2f20ab5ed45959d484d | [
"NCSA"
] | permissive | mewbak/binary-decompilation | 7d0bf64d6cd01bfa5f5fc912d74a85ce81124959 | f58da4c53cd823edc4bbbad6b647dbcefd7e64f8 | refs/heads/master | 2020-04-16T06:08:14.983946 | 2019-01-06T17:21:50 | 2019-01-06T17:21:50 | 165,334,058 | 1 | 0 | NOASSERTION | 2019-01-12T01:42:16 | 2019-01-12T01:42:16 | null | UTF-8 | Python | false | false | 16,664 | py | from z3 import *
import proverUtils
# Declarations
CF = BitVec('CF', 1)
PF = BitVec('PF', 1)
AF = BitVec('AF', 1)
ZF = BitVec('ZF', 1)
SF = BitVec('SF', 1)
OF = BitVec('OF', 1)
RAX = BitVec('RAX', 64)
RCX = BitVec('RCX', 64)
RDX = BitVec('RDX', 64)
ZERO1 = BitVecVal(0, 1)
ONE1 = BitVecVal(1, 1)
cf = (CF == ONE1)
pf =... | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
92ba93615a78a39a63ab23dd2af5d465181f8709 | fad5790a7b43c6851de342c5871d97845e44181c | /api/analytes/analytes.py | 0544df6c9b7ffe3ef33db179b63ec8d4cab09f1b | [
"MIT"
] | permissive | mathematicalmichael/cannlytics | b7bc54c786ab7c05c41f30fcaf2bd7f06e05e410 | acc2b8c73fd3689283b41bd275a1885fe37153a6 | refs/heads/main | 2023-07-10T08:49:39.626958 | 2021-07-24T17:53:03 | 2021-07-24T17:53:03 | 392,492,100 | 0 | 0 | MIT | 2021-08-04T00:09:39 | 2021-08-04T00:09:39 | null | UTF-8 | Python | false | false | 5,414 | py | """
Analytes Endpoint Views | Cannlytics API
Created: 4/21/2021
Updated: 7/7/2021
API to interface with analysis analytes.
"""
# pylint:disable=line-too-long
# Internal imports
from json import loads
# External imports
from rest_framework.decorators import api_view
from rest_framework.response import Response
# Int... | [
"keeganskeate@gmail.com"
] | keeganskeate@gmail.com |
1ed35fa676f8e3648906f5e4204976408a6f3218 | a3625387757f1960262bc60c77d04328af607c1a | /setting.py | 88ea30a1df6999187c324e7a9caea242d8fe9ddc | [] | no_license | ChanonVilaiyuk/multiMatteTool | 915980576cb4e887d6958a396afb20e6377a2af7 | 045e3cad7e295d047b30f38618d764c3c24e19f2 | refs/heads/master | 2021-05-31T17:18:30.507487 | 2016-05-12T18:34:03 | 2016-05-12T18:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | VrayNodeType = ['VRayMtl', 'VRayBlendMtl', 'VRayBumpMtl', 'VRayMtl2Sided'] | [
"ta.animator@gmail.com"
] | ta.animator@gmail.com |
ab50adf0c9dfd6c95950da63802069412386cb93 | b44763b4eb18633a09f2b011bb9e35b8b54ae742 | /case/bqywtest.py | 7b5b3f581326fac99c0db8de1de477025399f17b | [] | no_license | Pactortester/quandashitest_old | 4f3f85badcc99fa99d55e7c84e4524eb7281590f | 1b074a5b5434efc51f4e64af893cd9cc182886cd | refs/heads/master | 2020-03-25T11:31:09.714536 | 2018-08-22T09:59:32 | 2018-08-22T09:59:32 | 143,736,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,557 | py | # coding=utf-8
import time
import logging
from selenium.webdriver import ActionChains
from utils.mytestcase import mytestcase
from utils.logincookie import dengLuPage
from utils.screenshort import get_screenshort
class bqywtest(mytestcase):
"""版权业务测试集"""
def test_mszp(self):
"""美术作品版权登记测试"""
... | [
"1456470136@qq.com"
] | 1456470136@qq.com |
ea785d4abe7754c6dba6d89933e947b3271d5925 | 851b8ac597146bf467b96dea48331332eba48833 | /custom_components/spaclient/light.py | 86c15e705a7d8410fc27b50449d658771f82e3f4 | [] | no_license | bigal82/bruces_homeassistant_config | 9d569052ed1efd58a4f7035eba19007ff6be56c5 | 3def555be1b8e72a0f7a4978974d96c54544053a | refs/heads/main | 2023-08-24T09:09:37.406093 | 2021-10-25T07:09:56 | 2021-10-25T07:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | """Support for Spa Client lights."""
# Import the device class from the component that you want to support
from . import SpaClientDevice
from .const import _LOGGER, DOMAIN, SPA
from homeassistant.components.light import LightEntity
from datetime import timedelta
SCAN_INTERVAL = timedelta(seconds=1)
async def async_s... | [
"Bruce.hartley@clickspares.co.uk"
] | Bruce.hartley@clickspares.co.uk |
e3653b9e77b00e7930caa9d483c06828a4a0b951 | 36fec9f5b26508d07b3d990bb2b15cf2a4b0fafa | /mls_api/models/stats.py | df3a5eaab3d219dd60da8cdc128266219b909f3a | [
"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 | 1,089 | py | from django.db import models
from mls_api.models.base import BaseModel
class StatSet(BaseModel):
''' Holds all the basic stats of a game such as possession, shots on goal
so on and so forth
'''
attempts_on_goal = models.IntegerField()
shots_on_target = models.IntegerField()
shots_off_target =... | [
"f4nt@f4ntasmic.com"
] | f4nt@f4ntasmic.com |
6155b8cd8999663d34f472daaff1129d74a812cb | ea6d6e1320a1dda89850d7358e47f5d60b32f7de | /Log.py | 74a8f7b32752c7773ff6c6d2fa9f1be4d3462381 | [] | no_license | vektorelpython/Python11TemelOrnekler | ac9173a7adc6395cdc1ac18742c719ae6480050f | 31f5a49cd4c7ce3a5207a2baf7fbf37f10bfbca9 | refs/heads/master | 2022-03-02T21:10:09.060881 | 2019-11-10T14:39:53 | 2019-11-10T14:39:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py |
def dosyaAc(adres):
import os
if not os.path.exists(adres) :
dosya = open(adres,"w+",encoding="UTF-8")
else:
dosya = open(adres,"r+",encoding="UTF-8")
return dosya
def dosyaKayitListele(dosya):
dosya.seek(0)
liste = dosya.readlines()
print("-"*55)
... | [
"Kurs"
] | Kurs |
7d66b1903909ff049a363a8bd0c60c904f8732ff | f6faeb43b394bebb2c66b270ece4a5422cece0f6 | /Maxnumber-with-Function.py | cd65765320b9d5f59ead5a618495ad2cc339522f | [] | no_license | Khun-Cho-Lwin/Programming-Basic-with-Python | a57b6445d0fdfca23017aa691208899935fcf5e7 | 1e8cc924143771b7737bb54ad8f04ae5b88c1e81 | refs/heads/master | 2022-11-13T05:56:11.881552 | 2020-06-29T21:58:29 | 2020-06-29T21:58:29 | 267,246,983 | 0 | 4 | null | 2020-06-29T08:00:57 | 2020-05-27T07:10:11 | Python | UTF-8 | Python | false | false | 275 | py | def max(lst):
maxnumber = lst[0]
for x in lst:
if maxnumber < x :
maxnumber = x
return maxnumber
list1 = [1,2,3,5,4]
list2 = [100,200,900,400,500]
print("Maxnumber in list1 is ",max(list1))
print("Maxnumber in list2 is ",max(list2))
| [
"khuncholwin.2019@gmail.com"
] | khuncholwin.2019@gmail.com |
07fcc6fdee084f1f3a7783124684bf4863064d72 | 33d95a2e5222f1ab9993480a8bdc354aa6dc672f | /world/views.py | f780d0a18e527921a16a6d22c9a2f6cf3c3c6886 | [] | no_license | JackSnowdon/die-master | ab3eb7b1dbbe8b16031515c09b843aaba879aef5 | d0af9fb8d6851904d466165d190dc9ec3700f2fd | refs/heads/master | 2023-07-29T13:20:18.171612 | 2020-06-19T18:27:56 | 2020-06-19T18:27:56 | 265,283,325 | 0 | 0 | null | 2021-09-22T19:14:04 | 2020-05-19T15:16:26 | Python | UTF-8 | Python | false | false | 3,104 | py | from django.shortcuts import render, redirect, reverse, get_object_or_404
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .models import *
from .forms import *
# Create your views here.
@login_required
def world_home(request):
profile = request.user.profile
d... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
af92e4275eb480a6c1d4cab254e3d8408d32f697 | b3ddf0b5543f588a7473a2bb73a8ddb9357dac28 | /classy_vision/templates/synthetic/datasets/my_dataset.py | 58ac50f9389b618cc0d09476b3aa1e06ccc9b672 | [
"MIT"
] | permissive | CindySZha/ClassyVision | c33b5bec820e52b45e5184a9dd36c27c8c627021 | c81b81bd2dfcef3ec157631fe0ca3cc9e81cb19d | refs/heads/master | 2020-11-25T14:04:39.911140 | 2019-12-17T18:18:02 | 2019-12-17T18:19:44 | 228,704,595 | 0 | 0 | MIT | 2019-12-17T21:27:46 | 2019-12-17T21:27:45 | null | UTF-8 | Python | false | false | 1,893 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# 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 Any, Callable, Dict, Optional, Union
from classy_vision.dataset import ClassyDataset, register_dat... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f022323e7792c9e9f25c2b92b56e15464a7473e2 | 1e987bd8b8be0dc1c139fa6bf92e8229eb51da27 | /deeplearning/ml4pl/graphs/unlabelled/make_unlabelled_graph_dataset.py | 2d48d0352a7cde21dc8bb6236a882910b6dcb85b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tszdanger/phd | c97091b4f1d7712a836f0c8e3c6f819d53bd0dd5 | aab7f16bd1f3546f81e349fc6e2325fb17beb851 | refs/heads/master | 2023-01-01T00:54:20.136122 | 2020-10-21T18:07:42 | 2020-10-21T18:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | # Copyright 2019-2020 the ProGraML authors.
#
# Contact Chris Cummins <chrisc.101@gmail.com>.
#
# 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... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
d5f661022ab6aa483fe6d4458970d44531e805a1 | 797f21680bf51656db629691cc667a4ddae7a513 | /basic_syntax/coffee_do_you_need.py | 1610d44eb37e49b02e8e5aa6e2cbb398d77937da | [] | no_license | yordan-marinov/fundamentals_python | 48f5ab77814fddc6d3cb5a8d4b5e14f1eebf1298 | e1e9544d02be99640623317fadee810b503e7d9f | refs/heads/master | 2023-01-24T04:59:48.140176 | 2020-12-14T14:21:49 | 2020-12-14T14:21:49 | 309,784,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | events = {"coding": 0, "dog": 0, "cat": 0, "movie": 0}
MAXIMUM_NUMBER = 5
while True:
command = input()
if command == "END":
break
if command.lower() in events.keys():
value = 1
if command.isupper():
value += 1
events[command] = value
if sum(events.values()) >... | [
"jordanmarinov8@gmail.com"
] | jordanmarinov8@gmail.com |
d69a5d5bc0acc17b448f6da6f2f54f784af49c90 | 5dc5b716ef6a0a73c078782289288f8cca72265a | /docs/conf.py | dc522c9a311e6d947f8200d91315b395a877092b | [
"Apache-2.0",
"ISC"
] | permissive | sshah1103/minemeld-core | 899eb9d22308cf489efddcbde06f58bc94324c07 | 633e49d4e2c5b5b3f156d84ffd84aa9f11a25625 | refs/heads/master | 2020-09-05T12:15:12.538049 | 2019-11-07T03:59:24 | 2019-11-07T03:59:24 | 220,101,330 | 0 | 0 | Apache-2.0 | 2019-11-06T22:21:07 | 2019-11-06T22:21:07 | null | UTF-8 | Python | false | false | 9,568 | py | # -*- coding: utf-8 -*-
#
# minemeld-core documentation build configuration file, created by
# sphinx-quickstart on Thu Aug 6 14:14:33 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.... | [
"lmori@paloaltonetworks.com"
] | lmori@paloaltonetworks.com |
40a9f243ffac7d960e6b968e5809eca1426378c5 | abaa004b41f63aa489be12a6e4be8f92ef2ef6d3 | /permssion1/manage.py | 473fc01721dc6b0bb1a52ff9a631439fd2519e12 | [] | no_license | vshaladhav97/django_practise_projects | 30dcc8dd909626c1d624d9c5895fc90ad55c79d0 | 83455c50e2ee910f03db47fbe1420d1cbd7eb292 | refs/heads/master | 2023-03-28T14:08:08.244694 | 2021-03-26T03:56:56 | 2021-03-26T03:56:56 | 351,655,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'permssion1.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"adhavv0@gmail.com"
] | adhavv0@gmail.com |
5323cb22f46cff2b13bef581892f4204c4b211e4 | 3307766701d680af6d12a726a2d98df2cb1830e5 | /jams/euler/50.py | 4558d5abd033e5b62321853ded4de2669c51572d | [] | no_license | dpaneda/code | c1a54037a275fa7044eb5c2d6079f052dd968615 | 7da1ede33a6a7cd19cbd0db517d91e7cccfbbfff | refs/heads/master | 2023-01-07T18:41:00.816363 | 2022-12-30T09:24:22 | 2022-12-30T09:24:22 | 1,583,913 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python3
import math
import itertools
def is_prime(n):
for m in range(2, 1 + int(math.sqrt(n))):
if n % m == 0:
return False
return True
np = {}
def next_prime(n):
if n in np:
return np[n]
n2 = n + 1
while not is_prime(n2):
n2 += 1
np[n] = n2
return n2
primes = []
n =... | [
"dpaneda@gmail.com"
] | dpaneda@gmail.com |
cf58b91df5222a64afc2dc9df0b700360bd383e7 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/liblouis/PRESUBMIT.py | 30a6df57cc3e563be8397b39e6d0ca30f75f9db6 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LGPL-3.0-or-later",
"GPL-3.0-only",
"LGPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 2,316 | py | # Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Presubmit script for liblouis repository."""
import json
import sys
USE_PYTHON3 = True
def CheckChangeOnUpload(input_api, output_api):
if not sys.platform.startswith('linux... | [
"jengelh@inai.de"
] | jengelh@inai.de |
352860a7e9f9043d37769ae645fc1ca48dc62f2e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02995/s218981992.py | 0cc09f600bb2ffda13d3afeca561a81fbd61f6eb | [] | 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 | 454 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 問題:https://atcoder.jp/contests/abc126/tasks/abc131_c
def gcd(a, b):
while b > 0:
tmp = a
a = b
b = tmp % b
return a
def lcm(a, b):
return a // gcd(a, b) * b
def f(x, c, d):
res = x
res -= x // c
res -= x // d
res +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6b5ec4cc13dbffa699ec360e6cf97ae233b0d7f8 | 4ae25f6f4ec3a99d7acb44edee16b67537fd29c2 | /soil/soil/db/constants.py | 788baaf922bdaf01434c9d6a0a5bea5152d9a2e4 | [
"MIT"
] | permissive | JackDan9/soil | 4df98e8c578051b360d188b642dfe6db4931f5aa | 624dc17354d816c82a027ca270971668e96402df | refs/heads/master | 2023-06-24T01:44:21.170001 | 2023-06-14T10:21:27 | 2023-06-14T10:21:27 | 227,823,021 | 1 | 0 | MIT | 2023-03-05T22:05:30 | 2019-12-13T11:18:29 | Python | UTF-8 | Python | false | false | 1,297 | py | # Copyright 2020 Soil, Inc.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"1835812864@qq.com"
] | 1835812864@qq.com |
8b11e871424100eb175987eb719834402cc1ed19 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_camped.py | 22446f5d2c862c3d2d43a6d71f848073d3fefdd6 | [
"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 | 226 | py |
from xai.brain.wordbase.verbs._camp import _CAMP
#calss header
class _CAMPED(_CAMP, ):
def __init__(self,):
_CAMP.__init__(self)
self.name = "CAMPED"
self.specie = 'verbs'
self.basic = "camp"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
74c15589e79c6176f5ca7bea02db98b47c6a5202 | 1a12cc54ac1b2934cddf12eb733d5a8c25a0bf6d | /interviewbit-arrays-find-duplicate-in-array.py | 562644c9525e1304876b273671cc38e063afa880 | [] | no_license | sbairishal/CodePath-Alumni-Professional-Interview-Prep-Course | 5813b95cb4c23551d06e74a3aaec6ae7815923ae | 71d8f1e7a456a0f97655e7be90fa17fe18ceaf95 | refs/heads/master | 2020-10-01T01:53:29.246652 | 2018-02-21T06:05:57 | 2018-02-21T06:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | class Solution:
# @param A : tuple of integers
# @return an integer
def repeatedNumber(self, A):
counts = {}
for num in A:
if num in counts:
return num
else:
counts[num] = 1
return -1
| [
"tachyon@tachyonlabs.com"
] | tachyon@tachyonlabs.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.