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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e36a279c7da1ddf582be9cd6892c444d8c89ff99 | f7cf5647517d5d728a306967bf7531cc86525d5a | /sdc_scale.py | 2bba7f66631bbd7661779f25b465819206148b11 | [] | no_license | khokhlov/seismic_data_converter | c6b4663efcf091eb2f76f260374a94cde961accf | b904f8cfa6e846beaa1c82643638886ca2dd6baa | refs/heads/master | 2021-06-08T05:22:34.945126 | 2020-06-19T14:05:27 | 2020-06-19T14:05:27 | 95,864,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
# (C) Nikolay Khokhlov <k_h@inbox.ru> 2017
import argparse
import numpy as np
import sys
from binjson import load_bin, save_bin
def main():
parser = argparse.ArgumentParser(description = 'Scale all values at bin file.')
parser.add_argument('input', help='input file')
parser.add_arg... | [
"kolya.khokhlov@gmail.com"
] | kolya.khokhlov@gmail.com |
b11bdcd4a134220f51a7db78eb753012b6bf3114 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/learnedrouteipv6_fdef4758ad13bb42ae07821a7635e378.py | ce66b77a40c84a94b26b3eb20ccb5a7f7182c9a5 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 6,444 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# 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 limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
fcf943c9a12f68cdbce93984752dc88ce47547dc | 3fa4a77e75738d00835dcca1c47d4b99d371b2d8 | /backend/telegram/models/chats/admin_log_event/admin_log_event_action_toggle_admin.py | 8cc707026c5b98d6b7ea0b8a0ae05a57598b13b7 | [
"Apache-2.0"
] | permissive | appheap/social-media-analyzer | 1711f415fcd094bff94ac4f009a7a8546f53196f | 0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c | refs/heads/master | 2023-06-24T02:13:45.150791 | 2021-07-22T07:32:40 | 2021-07-22T07:32:40 | 287,000,778 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | from typing import Optional
from django.db import models, DatabaseError
from telegram import models as tg_models
from core.globals import logger
from ...base import BaseModel
class AdminLogEventActionToggleAdminQuerySet(models.QuerySet):
def update_or_create_action(self, **kwargs) -> Optional['AdminLogEventActi... | [
"taleb.zarhesh@gmail.com"
] | taleb.zarhesh@gmail.com |
174381d9dbc5ca6653d670f4e06be4f0bf6322c7 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/atbash-cipher/b9b8b95767434aa0871b2c8be48c53bd.py | f0b099a7bd55fe14b4e43829323d85f729c01d42 | [] | 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 | 486 | py | from string import ascii_lowercase, digits, maketrans, translate, whitespace, punctuation
def xcode(text, space=None):
xlate = maketrans(ascii_lowercase + digits, ascii_lowercase[::-1] + digits)
out = translate(text.lower(), xlate, whitespace + punctuation)
if space:
tmp = ""
for i in rang... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
37b40e5f9f9835752e00832a3f9b1efc8166a281 | a8547f73463eef517b98d1085430732f442c856e | /numpy/core/tests/test_longdouble.py | 9f4b9eddeecd2c0ffee07713482ebfef2b9e5381 | [] | no_license | EnjoyLifeFund/macHighSierra-py36-pkgs | 63aece1b692225ee2fbb865200279d7ef88a1eca | 5668b5785296b314ea1321057420bcd077dba9ea | refs/heads/master | 2021-01-23T19:13:04.707152 | 2017-12-25T17:41:30 | 2017-12-25T17:41:30 | 102,808,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | ../../../../../../Cellar/numpy/1.13.3/lib/python3.6/site-packages/numpy/core/tests/test_longdouble.py | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
dc73cf6e9989804e2dc0f3c2877e0fff14501cb2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02851/s504076203.py | 4b1b8ee55fac378d844e2fa9052da7b00644e874 | [] | 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 | 1,688 | py | def getN():
return int(input())
def getNM():
return map(int, input().split())
def getList():
return list(map(int, input().split()))
def getArray(intn):
return [int(input()) for i in range(intn)]
def input():
return sys.stdin.readline().rstrip()
def rand_N(ran1, ran2):
return random.randint(ran1,... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
16608f71543a2fe1d5b8b46899fd4afec3deff67 | 4104ef21c5383458ef0005179b77f582ae87844c | /web/migrations/0009_auto_20150728_1334.py | 9321d918ca4040ea4a21f263470e94b1ce9fb7e9 | [] | no_license | kodiers/quests | 8580d4cacd5685e08989f28fc6825117b17ea146 | 006bfbd354c75f6baeac020112cf36adcee9b016 | refs/heads/master | 2021-01-18T22:25:00.676362 | 2016-05-23T23:08:18 | 2016-05-23T23:08:18 | 37,993,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('web', '0008_organizers_show_on_main_page'),
]
operations = [
migrations.CreateModel(
... | [
"kodiers@gmail.com"
] | kodiers@gmail.com |
a0a745860debb68c77f7b93110de4c23aa4f70ae | 5c87690a2ef17e204456224e6388d64b2f20ab12 | /test/functional/wallet_import_rescan.py | 9700ec41a880bfc9d5fd36c57927e9fb86ee178c | [
"MIT"
] | permissive | durgeshkmr/Libra-Coin | aee161b81315c9a8163170db370136b09def6712 | c40293ac5c8f289e4c06b46d0c7f3ca76ff591a6 | refs/heads/master | 2020-06-09T02:18:53.830023 | 2019-06-23T14:02:57 | 2019-06-23T14:02:57 | 193,351,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,624 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Libra Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test wallet import RPCs.
Test rescan behavior of importaddress, importpubkey, importprivkey, and
importm... | [
"durgeshkmr4u@gmail.com"
] | durgeshkmr4u@gmail.com |
39d76c5ac93ca62d22d8102da6ae57b798a0abc1 | 41b59a9c8381fa3a92f5d2c37c91261afb9c82c4 | /QCDEventShape/2017/MC/test/Run_QCD_test_76x_data_cfg.py | a70d898a68603a21318aca5063817cdfeee12de7 | [] | no_license | Sumankkundu/ChargedParticle | c6d4f90b55df49321df2ecd758bb1f39db896f8c | eb5bada24b37a58ded186d6e5d2d7bd00898fefe | refs/heads/master | 2023-07-15T03:34:33.377203 | 2021-08-31T05:01:32 | 2021-08-31T05:01:32 | 231,091,587 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,329 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Test")
## switch to uncheduled mode
#process.options.allowUnscheduled = cms.untracked.bool(True)
#process.Tracer = cms.Service("Tracer")
process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
process.load("PhysicsTools.PatAlgos.selectio... | [
"skundu91phys@gmail.com"
] | skundu91phys@gmail.com |
d5415f607dd31adae279661a33d4bee445418136 | 76084379c92ba50a7dd273072c828e1fb886ac66 | /s3iotools/io/dataframe.py | 23a9451c51516f2e9c1369c1b027ddbd284b631c | [
"MIT"
] | permissive | MacHu-GWU/s3iotools-project | 19a08698b3f41fdb165a5df266860afdfe82d10e | 6e8a12d30792464c6ffa13cfb105578aed9f67da | refs/heads/master | 2020-04-25T18:05:13.116604 | 2019-05-20T13:00:02 | 2019-05-20T13:00:02 | 172,972,132 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,796 | py | # -*- coding: utf-8 -*-
"""
s3 IO tools.
"""
import attr
import pandas as pd
from six import string_types, StringIO, BytesIO, PY3
from ..compat import gzip_compress, gzip_decompress
@attr.s
class S3Dataframe(object):
"""
S3 object backed pandas DataFrame.
"""
s3_resource = attr.ib(default=None)
... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
37f2a774f750224dc8e9aa45726c5e4d43d15a98 | 78cb6dadc7599e01b078682b175f21be673ed199 | /289. Game of Life.py | 8f9a3ce969e8b1a9a93adcdce1c8c56a5b245d10 | [] | no_license | AlexWufan/leetcode-python | 5cf5f13dbc7d1e425fde646df618e50c488fa79f | 435323a9fcea6a4d09266785e88fb78735e0cc3e | refs/heads/master | 2021-01-13T00:49:49.870468 | 2018-04-13T18:44:19 | 2018-04-13T18:44:19 | 51,347,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | class Solution(object):
def gameOfLife(self, board):
"""
:type board: List[List[int]]
:rtype: void Do not return anything, modify board in-place instead.
"""
tbc | [
"mengnanszw@gmail.com"
] | mengnanszw@gmail.com |
716e24f833117790ab5298a92011c308a6ea8355 | 56be7f6b6a1243c532af9ea98310ccea165a1e66 | /day18/课件/day18mysite/app01/migrations/0002_publisher.py | fe58096c46afa0d01cbc643d0689ddf1f3992ce0 | [] | no_license | 214031230/Python21 | 55b0405ec4ad186b052cde7ebfb3f4bb636a3f30 | d7fc68d3d23345df5bfb09d4a84686c8b49a5ad7 | refs/heads/master | 2021-05-26T06:00:53.393577 | 2019-01-09T02:29:04 | 2019-01-09T02:29:04 | 127,778,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-08-19 04:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app01', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"21403123@qq.com"
] | 21403123@qq.com |
95ac8d6e1cd48ef413e647eba9db8996cf4f9756 | 204ec78fcebcea9e1e1da4905cf3fad0a514b01f | /pyocd/commands/commander.py | dda3def7d561c8cd2b153987fadbdc9bd23fe83c | [
"Apache-2.0"
] | permissive | ARMmbed/pyOCD | 659340bf8753aa8e15a72890b8bea64dff2c2f42 | d4cdcf7e532cae17caad866839287bbe1e0d952b | refs/heads/master | 2023-05-31T13:45:15.797588 | 2020-10-12T13:55:47 | 2020-10-12T13:55:47 | 190,203,829 | 3 | 1 | Apache-2.0 | 2019-07-05T11:05:40 | 2019-06-04T13:09:56 | Python | UTF-8 | Python | false | false | 8,726 | py | # pyOCD debugger
# Copyright (c) 2015-2020 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"flit@me.com"
] | flit@me.com |
911dc1a4721c02884df0423246b265a52c5c38e8 | b914ee0f23ddafa487e5cb35c35c3d41517a47a8 | /Ornek2_7.py | 8874dbd3f5b9f090d4b56a7557a26203c85a08b6 | [] | no_license | suacalis/VeriBilimiPython | 0dc45402b09936c82cecca9d6447873d24d1b241 | 85dbfa98ccf1a6a4e8916d134dc1ad41f99535ad | refs/heads/main | 2023-08-24T17:03:48.627831 | 2021-09-28T07:28:21 | 2021-09-28T07:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | '''
Örnek 2.7:
Kullanıcı tarafından girilen yarıçap (r) değerine göre bir dairenin çevresini
hesaplayan programı kodlayalım.
'''
import math #pi için gerekli
import easygui #enterbox(), msgbox() için gerekli
r = easygui.enterbox("Dairenin yarıçapı.:")
r = float(r) #girilen float tipine dönüştü.
Cevre = 2*math.p... | [
"noreply@github.com"
] | suacalis.noreply@github.com |
def7d53c45ac5636dbf465c21bd23e68f4c0277e | f2a678afb6152de57635c503ed532a205664b413 | /items/migrations/0001_initial.py | a97ac753a607b444c4082ac3d4068767d265ff07 | [] | no_license | phrac/onepercentgame | 4d4a6247d5f587a65faef8d05a22a2522de3e6f8 | 113d01a3c6641d90f1ce4674ec565ed40ee7c093 | refs/heads/master | 2016-09-16T00:49:36.489216 | 2015-08-30T21:30:51 | 2015-08-30T21:30:51 | 41,644,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(verbose... | [
"derek@disflux.com"
] | derek@disflux.com |
053b4ae6bb4f8ac87dc20403abc872c543784cd4 | 1e65ca80032b1b5a4ab3631044c3d41a9f3dd035 | /01_Jump_to_Python/Chapter03/rhombus_v1.py | 2ef012fb11668bdbb5d71475d648db0bd3ffd592 | [] | no_license | bj730612/Bigdata | cdd398c56023c67a2e56c36151e9f2bca067a40a | 9bb38e30bb3728b4a4e75bc763fa858029414d4e | refs/heads/master | 2020-03-15T09:27:23.995217 | 2018-10-02T00:07:38 | 2018-10-02T00:07:38 | 132,075,198 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 473 | py | #coding: cp949
while True:
i = 0
base=(int)(input("홀수를 입력하세요.(0 <- 종료): "))
num=(base+1)/2
if base%2 == 1:
while True:
if num > i:
print(" "*(int)(num-1-i),end="")
print("*"*(int)((2*i)+1))
i+=1
if num <= i:
... | [
"USER@test.com"
] | USER@test.com |
099ec43119f2ae5e0635eb44a1dbff6c88d3ed20 | 4730749ce5f0f4f652b688c7594badc1c357f1d6 | /LV.1/핸드폰 번호 가리기.py | 4553fb1630829f20ac62717e105e0e247257c327 | [] | no_license | RobertHan96/programmers_algorithm | 4de015278d7242ee79cd33047a6975a9c9d63c92 | 776777e14e33ca99571296defd28d145d6366bef | refs/heads/master | 2022-04-26T22:46:54.363542 | 2022-04-12T13:53:46 | 2022-04-12T13:53:46 | 233,599,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # 프로그래머스 모바일은 개인정보 보호를 위해 고지서를 보낼 때 고객들의 전화번호의 일부를 가립니다.
# 전화번호가 문자열 phone_number로 주어졌을 때,
# 전화번호의 뒷 4자리를 제외한 나머지 숫자를 전부 *으로 가린 문자열을 리턴하는 함수, solution을 완성해주세요.
# s는 길이 4 이상, 20이하인 문자열입니다.
def solution(phone_number):
numbers = list(phone_number)
return (len(numbers)-4) * "*" + ''.join(numbers[len(numbers)-4:])... | [
"yshan4329@gmail.com"
] | yshan4329@gmail.com |
8c205a7d4003fa5e71c1b5a52726c951d55b0033 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/graph/viewer/layout/GridLocationMap.pyi | f3f8d6ccb23e3486a6d68662f4b630f36b2434c5 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | pyi | from typing import List
import ghidra.graph.viewer.layout
import java.lang
class GridLocationMap(object):
"""
An object that maps vertices to rows and columns and edges to their articulation points.
This class is essentially a container that allows layout algorithms to store results, which
can later... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
23edf3fbfe1db234c24b79cd8c272514d314f1c4 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /m42wuSJtbRYC2HmRP_1.py | f66939f77888e2de21eaa38b6d7b1f8e7e9981c8 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py |
from math import*
largest_exponential=lambda l:l.index(max(l,key=lambda x:x[1]*log(x[0])))+1
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f4ef2defc06bdd2a35f26acedd9b7bac282e0460 | 4e54d2199f7c601f6efc58d88447eeeb3594a637 | /riselive/python_courses/datatype.3.py | f917572804f2b27081ab90ec6371e9caf2148654 | [
"MIT"
] | permissive | Z3Prover/doc | 4e23e40cef32cf8102bd0dda7fb76d01051f9210 | f79ba59ce06e855d783508d9b6f47a8947480d12 | refs/heads/master | 2023-09-05T19:45:26.160516 | 2023-08-01T17:01:16 | 2023-08-01T17:01:16 | 151,014,945 | 34 | 20 | MIT | 2023-06-30T03:29:19 | 2018-09-30T23:09:21 | HTML | UTF-8 | Python | false | false | 393 | py | Color = Datatype('Color')
Color.declare('red')
Color.declare('green')
Color.declare('blue')
Color = Color.create()
print is_expr(Color.green)
print Color.green == Color.blue
print simplify(Color.green == Color.blue)
# Let c be a constant of sort Color
c = Const('c', Color)
# Then, c must be red, green or blue
prove(O... | [
"nbjorner@microsoft.com"
] | nbjorner@microsoft.com |
3ae3022f4d02fd4850ca632a44e0205b7d1fa653 | c93080264201fe6d0c84a79ae435022981d8ccf6 | /panoptic/panoptic/doctype/frt_link/frt_link.py | 67e8a4394dda3a574c7eb1b126c1d9f854e6c6c7 | [
"MIT"
] | permissive | wisharya/panoptic | 100e733e9aad33d087851fc4ea9bd064e81954f2 | 7c9a0eeb6bd5d9032087ccb7c805a3e65a357ba8 | refs/heads/master | 2023-07-09T14:20:45.377441 | 2021-08-25T06:58:45 | 2021-08-25T06:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Internet Freedom Foundation and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class FRTLink(Document):
pass
| [
"scm.mymail@gmail.com"
] | scm.mymail@gmail.com |
34a3c2e383db34435bf9f7f6871b4759c697745c | 30f15a184450d6e914ac16375e674cc2f993b9ce | /game/engine/scummvm/actions.py | 753eacd9cdf63940e2303b46b603fc71086fe5a4 | [] | no_license | Erick-Pardus/2013 | 9d0dd48e19400965476480a8e6826beb865bdb2e | 80943b26dbb4474f6e99f81752a0d963af565234 | refs/heads/master | 2021-01-18T16:57:58.233209 | 2012-10-30T20:35:42 | 2012-10-30T20:35:42 | 6,467,098 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
2cd19af823e90d2a4f99f3ee7ad155f837d1bb6c | f708a01bdfd1133883ec43dc9f7fc1dd8efd655c | /backend/home/migrations/0002_load_initial_data.py | cd9ce165d6eece5be8715f7fd500ce6e879c1ef5 | [] | no_license | crowdbotics-apps/cws-v2-24857 | d289f5011c0c122079399365b040ccde1731282c | 2bd623d18e207ddf7f048ca117eaf3f864edae7e | refs/heads/master | 2023-03-12T10:33:38.218689 | 2021-03-05T02:19:14 | 2021-03-05T02:19:14 | 344,669,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "CWS v2"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
ho... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bc125099241b8ffd9f1ccc9d93c01b6f7eaf5f23 | a05550df7d8385ac8cfe2f1ac30aa438e706dd59 | /src/eval/create_ranking_3models.py | 18e28432ac756acbb80fa5497ee808f946b56465 | [] | no_license | raosudha89/clarification_question_generation | 9a537e4410d649519e662c8ddd1d776d5a891deb | f8ed75cc25622fc82c753e8f73e9c25d5e2df344 | refs/heads/master | 2020-03-08T10:34:33.771492 | 2018-06-27T18:27:54 | 2018-06-27T18:27:54 | 128,076,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,741 | py | import argparse
import gzip
import nltk
import pdb
import sys, os
from collections import defaultdict
import csv
import random
def parse(path):
g = gzip.open(path, 'r')
for l in g:
yield eval(l)
def read_ids(fname):
return [line.strip('\n') for line in open(fname, 'r').readlines()]
def read_model_outputs(m... | [
"raosudha@umiacs.umd.edu"
] | raosudha@umiacs.umd.edu |
5c45e9998b505e3bdd5403e41fd8ec79d4127387 | f43418339d85ab07ec369fd8f14df6f0b1d4bcd8 | /ch3/barrier/python/barrier.py | 86ed375668e3f0bb72ae10219c42461b09699ee9 | [] | no_license | frankieliu/little-book-semaphores | 732fbb1787d826666e750c4e8c8897877631921c | 9017ddceeab30090af983100729649f0f29c7c99 | refs/heads/master | 2021-07-14T03:40:05.503689 | 2020-08-15T13:55:19 | 2020-08-15T13:55:19 | 195,286,896 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | from threading import Thread, Semaphore
import time
from random import randint
class Person(Thread):
def __init__(self,i,m,s,count,numthreads):
self.s = s
self.m = m
self.count = count
self.count.i = 0
self.numthreads = numthreads
super().__init__(name=i)
def ru... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
6bfd98d0acb97cfadfc17f5ebe4ecf36c7af746b | 4ea92cda40dce3acec7016aaf65488a5c5286b36 | /src/crumblebundle/input/windows_keycodes.py | 10e46ca9876170d11ccb4cd7fc2231a94097efaa | [
"MIT"
] | permissive | Peilonrayz/crumblebundle | 694137315617201a9797a7bc1f249121981c2bd9 | cffb3b0b16e9bc6497e9ba43f9c7cc3fd008c3ee | refs/heads/master | 2021-01-09T13:34:25.026340 | 2020-02-21T20:09:50 | 2020-02-21T20:09:50 | 242,320,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,565 | py | # Table headers
# [name, ext, ext-shift, ext-ctrl, ext-alt]
# [name, dec, char, dec, char, dec char, dec char]
_keycodes = [
["ESC", 1, 27, None, 27, None, 27, None, 1, 0],
["1!", 2, 49, "1", 33, "!", None, None, 120, 0],
["2@", 3, 50, "2", 64, "@", 3, 0, 121, 0],
["3#", 4, 51, "3", 35, "#", None... | [
"peilonrayz@gmail.com"
] | peilonrayz@gmail.com |
e0b5ca9db7e40e9b5e0260f2d584aa234eb16f94 | cb2a40b70bc21d0057c96ddb2c86edceffe19707 | /payments/migrations/0011_auto_20180104_1301.py | 259d5612830139f25d17956bd53eef9cb226afa7 | [] | no_license | rebkwok/pipsevents | ceed9f420b08cd1a3fa418800c0870f5a95a4067 | c997349a1b4f3995ca4bb3a897be6a73001c9810 | refs/heads/main | 2023-08-09T14:11:52.227086 | 2023-07-27T20:21:01 | 2023-07-27T20:21:01 | 29,796,344 | 1 | 1 | null | 2023-09-13T14:32:16 | 2015-01-24T23:53:34 | Python | UTF-8 | Python | false | false | 697 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-04 13:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('payments', '0010_auto_20180102_1130'),
]
operations = [
migrations.AlterFie... | [
"rebkwok@gmail.com"
] | rebkwok@gmail.com |
75498a2f5f3b001a45ca4069131312af6328a494 | 7ad19e854135977ee5b789d7c9bdd39d67ec9ea4 | /members/amit/f0_experiments/model.py | 05a5e529b028aa62ab646eb7176aec7490be90a4 | [
"MIT"
] | permissive | Leofltt/rg_sound_generation | 1b4d522507bf06247247f3ef929c8d0b93015e61 | 8e79b4d9dce028def43284f80521a2ec61d0066c | refs/heads/main | 2023-05-02T19:53:23.645982 | 2021-05-22T16:09:54 | 2021-05-22T16:09:54 | 369,842,561 | 0 | 0 | MIT | 2021-05-22T15:27:28 | 2021-05-22T15:27:27 | null | UTF-8 | Python | false | false | 1,197 | py | import tensorflow as tf
from tensorflow.keras.layers import Input, concatenate, RepeatVector
from tensorflow.keras.layers import Dense, GRU, Dropout
def create_model():
_velocity = Input(shape=(5,), name='velocity')
_instrument_source = Input(shape=(3,), name='instrument_source')
_qualities = Input(shape... | [
"amit.yadav.iitr@gmail.com"
] | amit.yadav.iitr@gmail.com |
13564f1fa07291d92bd2edd1ade46fb1f410c888 | e84020108a7037d8d4867d95fada1b72cbcbcd25 | /django/nrega.libtech.info/src/nrega/migrations/0118_auto_20170621_1328.py | 219d29cf057534d7b88f61db611446f66075c53b | [] | no_license | rajesh241/libtech | 8384316051a2e8c2d4a925cd43216b855b82e4d9 | 0105e717357a3626106028adae9bf162a7f93fbf | refs/heads/master | 2022-12-10T03:09:00.048841 | 2020-06-14T09:39:04 | 2020-06-14T09:39:04 | 24,629,538 | 1 | 1 | null | 2022-12-08T02:26:11 | 2014-09-30T07:57:45 | Python | UTF-8 | Python | false | false | 3,064 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-21 07:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nrega', '0117_auto_20170621_1123'),
]
operations = [... | [
"togoli@gmail.com"
] | togoli@gmail.com |
d509eed695ce2b3e20d2b819a42172b2c95fccab | 4e04db11d891f869a51adf0e0895999d425f29f6 | /portalbackend/lendapi/v1/accounts/permissions.py | d03cc4c6a2749a8264b3b36768a2678d71de1192 | [] | no_license | mthangaraj/ix-ec-backend | 21e2d4b642c1174b53a86cd1a15564f99985d23f | 11b80dbd665e3592ed862403dd8c8d65b6791b30 | refs/heads/master | 2022-12-12T12:21:29.237675 | 2018-06-20T13:10:21 | 2018-06-20T13:10:21 | 138,033,811 | 0 | 0 | null | 2022-06-27T16:54:14 | 2018-06-20T13:04:22 | JavaScript | UTF-8 | Python | false | false | 4,807 | py | import json
import re
from rest_framework import permissions, status
from rest_framework.exceptions import APIException
from portalbackend.validator.errormapping import ErrorMessage
from portalbackend.validator.errorcodemapping import ErrorCode
from django.utils.deprecation import MiddlewareMixin
from datetime import ... | [
"thangaraj.matheson@ionixxtech.com"
] | thangaraj.matheson@ionixxtech.com |
a2efb56dab315b04b0175314bda7483e3137b35a | b08f5367ffd3bdd1463de2ddc05d34cbfba6796e | /search/search_missing_among_billions.py | 89e090a9dfd46719bbba7f53ba780a4de22f17eb | [] | no_license | uohzxela/fundamentals | cb611fa6c820dc8643a43fd045efe96bc43ba4ed | 6bbbd489c3854fa4bf2fe73e1a2dfb2efe4aeb94 | refs/heads/master | 2020-04-04T03:56:44.145222 | 2018-04-05T01:08:14 | 2018-04-05T01:08:14 | 54,199,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | '''
create an array of 2^16 32-bit integers
for every integer in the file, take its 16 most significant bits to index into this array and increment count
since the file contains less than 2^32 numbers, there must be one entry in the array that is less than 2^16
this tells us that there is at least one integer which has... | [
"uohzxela@gmail.com"
] | uohzxela@gmail.com |
4c17a2fd6c5aae776b17d9474dacb25c0396c160 | 738aedb8035e49951f83ce3f4291eee149cad5fb | /OB Damage - Li-Hopfield Model/All the code/Damage Trials/MC-1col_20_2D.py | 83d3c9d36ca88bf3d357b7ab8bca600c998a336b | [] | no_license | jkberry07/OB_PD_Model | fb453303bfa64c1a3a43c7d81d2b5373950e1f4d | 1ce30205354dc30cab4673e406988bfa76390238 | refs/heads/master | 2022-11-21T09:39:09.692654 | 2020-07-25T23:25:11 | 2020-07-25T23:25:11 | 282,358,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,848 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 18 13:38:32 2018
@author: wmmjk
"""
#This one does the damage to each of the granule cells (columns of H0)
#Olfactory Bulb Model a la Li/Hopfield and Li/Hertz
#Translated from Avinash's Matlab code
#This one I have the initial condition in odeint as the... | [
"noreply@github.com"
] | jkberry07.noreply@github.com |
41719d1f84a14e2c8c31ca71d64fb6fe025054a3 | 40c6fa589a0dfe88e82f8bd969cd5ef0ed04f303 | /SWEA/D2/1954.py | 6f69fcd9fca262d0e6c5087f16a45514a8d6b3b2 | [] | no_license | EHwooKim/Algorithms | 7d8653e55a491f3bca77a197965f15792f7ebe47 | 5db0a22b9dc0ba9a30bb9812c54d2d5ecec1676b | refs/heads/master | 2021-08-20T04:05:09.967910 | 2021-06-15T07:54:17 | 2021-06-15T07:54:17 | 197,136,680 | 0 | 2 | null | 2021-01-08T05:51:37 | 2019-07-16T06:46:57 | Python | UTF-8 | Python | false | false | 751 | py | T = int(input())
for t in range(1, T + 1):
print(f'#{t}')
N = int(input())
i = j = 0
min_num = 0
max_num = N - 1
count = 1
result = [[0]*N for i in range(N)]
while count <= N**2 - 1:
while j < max_num:
result[i][j] = count
j += 1
count += 1
... | [
"ehwoo0707@naver.com"
] | ehwoo0707@naver.com |
863a9e7fabd741444ae2d183a4dac774c8e404b4 | 204d62b325fe5dff332a517a6bea9a3cad76371d | /django/first_project/first_project/settings.py | 770e2788b153469112fe4d647d2f72998cd71d5f | [] | no_license | tedyeung/Python- | ca5b87b66df95cf3e2d68e516becc04a890bb361 | f379aa48d1e2118729c422e6d48a067b70639c5f | refs/heads/master | 2021-09-21T11:52:20.389770 | 2018-08-25T14:47:46 | 2018-08-25T14:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | """
Django settings for first_project project.
Generated by 'django-admin startproject' using Django 1.11.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
imp... | [
"slavo@mimicom24.com"
] | slavo@mimicom24.com |
dd503f30535313cc118f2aff0289365f7759c68e | db3a0578ef5d79cee7f9e96fa3fd291bbaaf9eb4 | /Web/flask/morse/morseclient.py | 51987ad7f8af39d04cbbd30327428eafbe498b75 | [
"MIT"
] | permissive | otisgbangba/python-lessons | 0477a766cda6bc0e2671e4cce2f95bc62c8d3c43 | a29f5383b56b21e6b0bc21aa9acaec40ed4df3cc | refs/heads/master | 2022-11-03T22:10:52.845204 | 2020-06-13T15:42:40 | 2020-06-13T15:42:40 | 261,255,751 | 1 | 0 | MIT | 2020-05-04T17:48:12 | 2020-05-04T17:48:11 | null | UTF-8 | Python | false | false | 626 | py | import requests
from time import sleep
from codes import PASSWORD, morse_codes, words_by_symbol
URL_BASE = 'http://localhost:5000'
INTER_LETTER_DELAY = 0.2
def request_secret():
response = requests.get(URL_BASE + '/secret')
print(response.text)
def send_unlock_request(message):
for letter in message:
... | [
"daveb@davebsoft.com"
] | daveb@davebsoft.com |
bc52f37436a7565189d51e912a3ff824c5577c49 | d21326e0e2604431549e80cf025074624f36c6bb | /boneless/test/test_alsru.py | a8fd22835150c7e12b619be0fccb994aac84ee72 | [
"0BSD",
"Apache-2.0"
] | permissive | zignig/Boneless-CPU | ad9232d82e19c1035f5e10443b81f147d96c4072 | 10bb571b4efab015e1bf147c78f0b8b3c93443e4 | refs/heads/master | 2020-04-25T20:29:47.987910 | 2019-07-05T05:35:18 | 2019-07-05T05:35:18 | 173,051,283 | 0 | 0 | NOASSERTION | 2019-02-28T06:06:16 | 2019-02-28T06:06:15 | null | UTF-8 | Python | false | false | 4,413 | py | import unittest
import contextlib
import random
from nmigen import *
from nmigen.back.pysim import *
from ..gateware.alsru import *
class ALSRUTestCase:
dut_cls = None
def setUp(self):
self.checks = 100
self.width = 16
self.dut = self.dut_cls(self.width)
@contextlib.contextm... | [
"whitequark@whitequark.org"
] | whitequark@whitequark.org |
acdd334ba1e6d6b647648d7ce04d95c971a8a97c | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /Dataset/Utility/youtube_downloader.py | 9dfc738aba4989d5f42cfc43fb334b8de60c5b2a | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | import os
import subprocess
import threading
from tqdm import tqdm
import shutil
def _read_outputs_from_precess(process):
def _print_stdout(process):
for line_ in iter(process.stdout.readline, ""):
if len(line_) > 0:
print(line_.strip())
def _print_stderr(process):
... | [
"linliting06@live.com"
] | linliting06@live.com |
f46874aae652fa3eb63244fb046e91dd42da42aa | 80e152f49b355b3e07faaab6b468ca8dda6aa097 | /python/streamlit-sample/align-epub/epub.py | 94f4c812edb5b0b8ffabe802589336488cf1e1ca | [] | no_license | Pitrified/snippet | 13ad9222f584570b10abb23a122b010b088eb366 | 1d7e5657014b00612cde87b78d5506a9e8b6adfc | refs/heads/master | 2023-05-25T16:14:42.133900 | 2023-04-19T18:20:32 | 2023-04-19T18:20:32 | 174,192,523 | 2 | 0 | null | 2023-05-01T23:48:48 | 2019-03-06T17:47:16 | Python | UTF-8 | Python | false | false | 10,849 | py | """Class to load an EPub in memory and analyze it.
Split in chapter, paragraph, sentences.
Sentences are translated.
"""
import re
import zipfile
from collections import Counter
from pathlib import Path
from typing import IO, Literal, Union
from bs4 import BeautifulSoup, Tag
from spacy.language import Language
from ... | [
"nobilipietro@gmail.com"
] | nobilipietro@gmail.com |
68e5589fe85596c30ef2e358b26b9a438f01ad92 | 0f7e18a483a44352dfac27137b8d351416f1d1bb | /application.py | c5bacc7030432a73f7dc538367825d6dc44c5983 | [] | no_license | rinoshinme/slim_finetune | b5ec4ed53a2d6c15dfa5b4cfb73677ccb58a4aa6 | 1e465e3faff668e65cc873828057365114d4cfb1 | refs/heads/master | 2022-11-07T21:02:38.253001 | 2022-11-02T14:48:45 | 2022-11-02T14:48:45 | 199,089,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | from app.nsfw_process import NSFWProcessor
| [
"rinoshinme@163.com"
] | rinoshinme@163.com |
c81a40039c0c97890bc37a375a712236114ae380 | 1122bcd042953f085835483ca7809c7dfeac21e2 | /Gluon/k_means/main.py | 81e2ccb65324768e76ebb32bdd7d4405119e1af7 | [] | no_license | nguyen-viet-hung/Mxnet_Tutorial | 7b293db2f415720e144e4e506d5fd3678fbedeb4 | 9892dbd91377476f8482baff473ae2c74105faff | refs/heads/master | 2020-12-29T13:56:58.804003 | 2018-03-07T18:39:39 | 2018-03-07T18:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | import mxnet as mx
import kmeans
kmeans.K_means_Algorithm(epoch=5000,centroid_numbers=10,point_numbers=5000,ctx=mx.gpu(0))
| [
"medical18@naver.com"
] | medical18@naver.com |
b718955f50d1f4ad7b792f47ff62beb3938634f9 | 3a1fea0fdd27baa6b63941f71b29eb04061678c6 | /src/ch06/instructions/math/Rem.py | cc1e03153ae35a83b62c6b568c1c156b2675f163 | [] | no_license | sumerzhang/JVMByPython | 56a7a896e43b7a5020559c0740ebe61d608a9f2a | 1554cf62f47a2c6eb10fe09c7216518416bb65bc | refs/heads/master | 2022-12-02T17:21:11.020486 | 2020-08-18T06:57:10 | 2020-08-18T06:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: HuRuiFeng
@file: Rem.py
@time: 2019/9/15 20:04
@desc: 求余(rem)指令
"""
import math
from ch06.instructions.base.Instruction import NoOperandsInstruction
# double remainder
class DREM(NoOperandsInstruction):
def execute(self, frame):
stack = frame.operand_... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
c38baec5d263b52e5b8b07f604db735e512f235b | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KbIsvMaCode.py | fa25c52f96b6b0de55cd7ffaf33dc6023902ce7c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,183 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KbIsvMaCode(object):
def __init__(self):
self._code = None
self._num = None
@property
def code(self):
return self._code
@code.setter
def code(self, value... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
ad46c5cf701393737c5af474da5fe9ea2f31a1c9 | 56554999cdd882b6a6701b2a09e148c1fa4465c8 | /scramble.py | c9cd6805db2f8759634629df0b007e63d9a93de0 | [] | no_license | theriley106/Cubuyo | a266bd97fb82a8443785b40151222f68901a4bb2 | 38fb8caf2cb395c3df2274fd0651b51c621a5723 | refs/heads/master | 2020-04-11T17:17:43.095793 | 2018-12-16T02:34:15 | 2018-12-16T02:34:15 | 161,955,403 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import random
import re
Notation = ["R", "R'", "L", "L'", "U", "U'", "F", "F'", "B", "B'"]
def genNew(length):
Scramble = []
while len(Scramble) < length:
Move = random.choice(Notation)
MoveStr = " ".join(re.findall("[a-zA-Z]+", str(Move)))
PreviousMove = Scramble[-1:]
PreviousMove = " ".join(re.findall("[a... | [
"christopherlambert106@gmail.com"
] | christopherlambert106@gmail.com |
609d3a6c31bdda855c9cdee73943267fea809e40 | 9645bdfbb15742e0d94e3327f94471663f32061a | /Python/719 - Find K-th Smallest Pair Distance/719_find-k-th-smallest-pair-distance.py | 8370a768504118d06936fb1274d64a87cac376a5 | [] | no_license | aptend/leetcode-rua | f81c080b2260adb2da677612e5c437eda256781d | 80e44f4e9d3a5b592fdebe0bf16d1df54e99991e | refs/heads/master | 2023-06-22T00:40:05.533424 | 2021-03-17T13:51:28 | 2021-03-17T13:51:28 | 186,434,133 | 2 | 0 | null | 2023-06-21T22:12:51 | 2019-05-13T14:17:27 | HTML | UTF-8 | Python | false | false | 609 | py | from leezy import Solution, solution
from heapq import heappush, heappop
class Q719(Solution):
@solution
def smallestDistancePair(self, nums, k):
# MLE
A = sorted(nums)
N = len(A)
heap = []
def push(i, j):
heappush(heap, (abs(A[i]-A[j]), i, j))
for i... | [
"crescentwhale@hotmail.com"
] | crescentwhale@hotmail.com |
749b6395b6d8726189553c6d5d199595a4229343 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_pause_resume_stutus_response.py | c5684b791851a26cc2626b0be1f8ff75fd7fc5a2 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 8,747 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowPauseResumeStutusResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7f23226f64137649209c8979392ca73a776cc6ed | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_0/Python/xulusko/CoinJam.py | 2d99d9e5c0b0750367878956b22ae6d543d493aa | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | from random import randint
from pyprimes import nprimes
N = 16
J = 50
jamcoins = set()
somePrimes = list(nprimes(47))[1:]
def findDiv(val):
for p in somePrimes:
if val % p == 0: return p
return None
def getDivisors(coin):
divs = []
for base in range(2, 11):
val = int(coin, base)
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
2a742123549ed793dd03e532042a323592171d10 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_sp_res_response.py | f475eccd26c2ba4a71ea8a20576fbef3e88e9b9f | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowSpResResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
5e0157cbe7967799bd395e9d9038dedcf13957bb | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/test/test_v1_scale_io_persistent_volume_source.py | 0ee57636f0970338a9cb0f60be03d7b2ee42a7f5 | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 1,122 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... | [
"tomasz.prus@gmail.com"
] | tomasz.prus@gmail.com |
c29e4fcb17ba98010f15b65b0383c453ae095f67 | 4ee2ebef215cf879aafdfa44221f52d82775176a | /Inheritance/Exercise/02-Zoo/project/reptile.py | 75f13a08a48e503a16c38a736c1bf215ce43adcd | [] | no_license | Avstrian/SoftUni-Python-OOP | d2a9653863cba7bc095e647cd3f0561377f10f6d | 6789f005b311039fd46ef1f55f3eb6fa9313e5a6 | refs/heads/main | 2023-08-01T09:31:38.099842 | 2021-08-24T04:21:38 | 2021-08-24T04:21:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from project.animal import Animal
class Reptile(Animal):
def __init__(self, name):
super().__init__(name)
| [
"noreply@github.com"
] | Avstrian.noreply@github.com |
9ca7a052e7117038353576d0ec3d66ac59d833ae | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_k_alkiek_countingsheep.py | f323c616326819f23c2e79d41df1a4a52585b9c4 | [] | 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 | 736 | py | T = int(raw_input()) # read number of cases
nums = [0,1,2,3,4,5,6,7,8,9]
def elementsofin(L,ref): #function to compare seen with all numbers
x = [i for i in ref if i in L]
if x == ref:
return True
else:
return False
for i in xrange(1, T + 1):
N = int(raw_input()) # read cho... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
c79f737de7690fc52877eb13c4099495de3fe7d9 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901040051/d08/mymodule/try_except.py | 2bab5904e58d40ed0977888a300dca3aa289874d | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 217 | py | def spam(divideby):
try:
return 42 / divideby
except ZeroDivisionError:
print('error:Invalid argument.')
print(int(spam(2)))
print(int(spam(12)))
print(spam(0))
print(spam(0.1))
print(spam(1)) | [
"40155646+seven-tears@users.noreply.github.com"
] | 40155646+seven-tears@users.noreply.github.com |
fdf116fc0fba39809c9daedd37fdb20c0c721dc8 | 5115d3fd60826f2e7eb36c3467608a31e34d8cd1 | /myshop/orders/urls.py | a9ba0463ffca3b9978db9ce5070203cf9675187e | [] | no_license | Dyavathrocky/e-commerce | 650ca4e764723101c9f1cf456c15ab43c503d1b4 | 2c6368fc514c5a2102088df1427da41a8b8af34a | refs/heads/master | 2022-12-10T11:31:36.052547 | 2020-09-06T14:27:34 | 2020-09-06T14:27:34 | 289,501,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from django.urls import path
from . import views
app_name = 'orders'
urlpatterns = [
path('create/', views.order_create, name='order_create'),
path('admin/order/<int:order_id>/', views.admin_order_detail, name='admin_order_detail'),
] | [
"davathrak@gmail.com"
] | davathrak@gmail.com |
73f699b53370be080a723734410e86ee80b96259 | b87ea98bc166cade5c78d246aeb0e23c59183d56 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py | 00eeab16165cc40c5ceea36e2021cce7127c7ea9 | [
"Apache-2.0"
] | permissive | holisticon/openapi-generator | 88f8e6a3d7bc059c8f56563c87f6d473694d94e5 | 6a67551ea54a1aa9a49eb48ee26b4e9bb7fb1272 | refs/heads/master | 2023-05-12T02:55:19.037397 | 2023-04-14T08:31:59 | 2023-04-14T08:31:59 | 450,034,139 | 1 | 0 | Apache-2.0 | 2022-01-20T09:34:14 | 2022-01-20T09:34:13 | null | UTF-8 | Python | false | false | 10,414 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | holisticon.noreply@github.com |
898f8669c025fcb6c7a6aba2fa3dcebc841b282c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02957/s796407054.py | 9de0035e3ab02e37a3607cddb48ae764505a081a | [] | 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 | 87 | py | A,B=map(int,input().split())
if (A+B) % 2 == 1:print("IMPOSSIBLE")
else:print((A+B)//2) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dd3a13b3441bdb43584cc9c9fa763ecb19c44f8e | 3e8e1add88b0782bc64f8682b05f399638094729 | /teacherstudent/urls.py | b239ac643a67403dbc79edb5bef2e6da441b6a22 | [] | no_license | nnish09/Task2 | 3e154c8f61ef88034cff6e1e42fdd616d2922951 | cddc23c062c81e0669b6656d7f294f61f3c05976 | refs/heads/master | 2023-04-29T12:04:14.565984 | 2019-09-23T10:52:08 | 2019-09-23T10:52:08 | 209,307,595 | 0 | 0 | null | 2023-04-21T20:37:36 | 2019-09-18T12:51:29 | CSS | UTF-8 | Python | false | false | 1,171 | py | """teacherstudent URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"nishtha0995@gmail.com"
] | nishtha0995@gmail.com |
ca1612d5068d3f4480ffbc0428ee9943db2a5476 | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/network/v2016_09_01/models/application_gateway_ssl_policy.py | ff1c8f6c4ca1af9b4fb15521b1d8135387e1a75f | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 1,153 | 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 ... | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
eed8531d3cb546a055192bd95204d0d304ac460e | df9d6ecde9202bd4b73e69cd28c50b41195c0aa1 | /tests/data.py | c5e249eb686ffb112d8483880a75c1c68a661d9d | [
"MIT"
] | permissive | ppinard/dataclasses-sql | 8d6d18dd558537fbf40c386a11fdd75f4720fa2a | 8f2eeaf090887985f8fd9853adb763883906bed6 | refs/heads/master | 2021-03-23T22:48:34.437619 | 2020-06-10T14:23:07 | 2020-06-10T14:23:07 | 247,489,847 | 6 | 3 | MIT | 2020-11-02T01:43:20 | 2020-03-15T15:06:32 | Python | UTF-8 | Python | false | false | 858 | py | """"""
# Standard library modules.
import dataclasses
import datetime
# Third party modules.
# Local modules.
# Globals and constants variables.
@dataclasses.dataclass
class TaxonomyData:
kingdom: str = dataclasses.field(metadata={"key": True})
order: str = dataclasses.field(metadata={"key": True})
fa... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
17b0c3efb04efec5a6d635005649370d3c085113 | 3e3bf98840d133e56f0d0eb16ba85678ddd6ca45 | /.history/iss_20200102103033.py | 9612bd296d926015d41b8fbb1e476f1266919608 | [] | no_license | Imraj423/backend-iss-location-assessment | a05d3cc229a5fc4857483ae466348c1f8c23c234 | b0565c089a445ccffcb8d0aab3c0be3bb0c1d5b8 | refs/heads/master | 2020-12-03T17:04:58.512124 | 2020-06-24T16:02:02 | 2020-06-24T16:02:02 | 231,400,854 | 0 | 0 | null | 2020-06-24T16:02:04 | 2020-01-02T14:43:44 | null | UTF-8 | Python | false | false | 273 | py | #!/usr/bin/env python3
__author__ = 'Imraj423'
import requests
import turtle
r = requests.get('http://api.open-notify.org/astros.json')
print(r.text)
s = requests.get('http://api.open-notify.org/iss-now.json')
print(s.text)
# if __name__ == '__main__':
# main()
| [
"dahqniss@gmail.com"
] | dahqniss@gmail.com |
1d959f7ffb45e5bd71979204e4f0c6b34379fcf2 | 55883f5c70f634b4341b2368ad3c6eccbe13e7e5 | /CEPNetworks.py | 30de48a2acd99ea226f70ff8ba9a0a7fe1d56710 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaihami/pycsa | e93fcceb4b7fed1c0b4ae23fbebd0a5bc3e2bf44 | a85594526a4d10d2e8097b6e90f5b93b44a8236f | refs/heads/master | 2021-01-23T02:40:29.036635 | 2016-04-29T17:21:11 | 2016-04-29T17:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,029 | py | """
CEPNetworks.py
This module is used to control all of the pipeline flow and do
the reshuffling, etc. It works with the CEPAlgorithms module which can
easily be adapted to include more algorithms. The main pipeline is initialized
with all of the information for the rest of the project.
@author: Kevin S. Brown (Un... | [
"kevin.s.brown@uconn.edu"
] | kevin.s.brown@uconn.edu |
01503584d16b7c4a0cb75a7cc758eb2adfac62e9 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/cb96f8a25034763e9f45f371afae4ca021d26a68-<process_state>-bug.py | 6773a85f0e7bd66ac286e39e30972daccc1daef3 | [] | 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 | 756 | py | def process_state(self):
try:
dvs_host_states = {
'absent': {
'present': self.state_destroy_dvs_host,
'absent': self.state_exit_unchanged,
},
'present': {
'update': self.state_update_dvs_host,
'present': self... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
7e5707c253c5dd0752d89832311a101d4f2ddd7f | 4ae7a930ca6aa629aa57df7764665358ee70ffac | /cflearn/data/blocks/ml/__init__.py | 004f79c534726862b6d1c4593e1b88dbc9ee2142 | [
"MIT"
] | permissive | carefree0910/carefree-learn | 0ecc7046ef0ab44a642ff0a72a181c4cb5037571 | 554bf15c5ce6e3b4ee6a219f348d416e71d3972f | refs/heads/dev | 2023-08-23T07:09:56.712338 | 2023-08-23T02:49:10 | 2023-08-23T02:49:10 | 273,041,593 | 451 | 38 | MIT | 2021-01-05T10:49:46 | 2020-06-17T17:44:17 | Python | UTF-8 | Python | false | false | 169 | py | from .schema import *
from .file import *
from .nan_handler import *
from .recognizer import *
from .preprocessor import *
from .splitter import *
from .gather import *
| [
"syameimaru.saki@gmail.com"
] | syameimaru.saki@gmail.com |
d03b154d78c9833bf938cf54367d34ddaaaed477 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano4144.py | 437f1315e60150f35c8d478d47df71dfcc8adc9d | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
f7af00972670b3961fb2a93450be13284126ec84 | 1af379b14252defebfe9ba55154770a021d040f9 | /2018-09-26/attract/gen/limiti.py | a3f48e45a0f7f19d52915b6b1f0cd1afd65e549c | [] | no_license | romeorizzi/esami-algo-TA | ee8cc12731963ae0d6b46a026b3ef8782539a73b | 57af9679a95ee76c302cae1c5daf5cd9fbc9afd3 | refs/heads/master | 2020-06-24T14:39:03.361825 | 2019-08-02T07:22:02 | 2019-08-02T07:22:02 | 198,989,340 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | MAXN = 200000
MAXM = 500000
| [
"romeo.rizzi@univr.it"
] | romeo.rizzi@univr.it |
8f1d7509d6740417abcd8905bddf1141f2fc7058 | 87b249bde7c729800f2c2530a0ee35c101e3d363 | /game/models.py | 0182d4d21bfdffb62927c088fda77e2b58ca7a54 | [] | no_license | infsolution/prehistory | 9c909230cdc114dfdbc97875df27de23262befcc | 70bab6b9c8352612bd46572b63330c1187dd869e | refs/heads/master | 2020-09-12T12:14:39.358521 | 2019-11-29T23:59:43 | 2019-11-29T23:59:43 | 222,422,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | from django.contrib.auth.models import User
from django.contrib.auth import *
from django.db import models
class Knowing(models.Model):
name = models.CharField(max_length=30)
force = models. IntegerField(default=0)
defense = models.IntegerField(default=0)
allowed_level = models.IntegerField(default=0)
def __str__... | [
"clsinfsolution@gmail.com"
] | clsinfsolution@gmail.com |
7b54810242d09c7362950443e7fb95afecc7c011 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/models_20201115165700.py | 0eac60d92b9d9ae7be453f6bd85a6871087bd4aa | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | from django.db import models
import re
class UserManager(models.Manager):
def user_registration_validator(self, post_data):
errors = {}
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
if len(post_data['first_name']) < 3:
errors['first_name'] = "First ... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
803b42aa13d6faa1c2502eba19d4b72a915cf30b | a63264a25fe18a94d9e2cba2632d7d59262e36a1 | /app/handlers/converttopopulation.py | d1a9eb7efeab1d636cec5909a9a923a2ef1a3ffd | [
"BSD-3-Clause"
] | permissive | bbbales2/stochss | 4f3ac8f909f52aaba0c863ffed91c2ae70b2fe27 | afddf9ad8936993a5b17d1d4130677eb42afa439 | refs/heads/master | 2021-01-15T23:11:40.983003 | 2013-11-27T19:27:23 | 2013-11-27T19:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | try:
import json
except ImportError:
from django.utils import simplejson as json
import traceback
from collections import OrderedDict
from stochssapp import *
from stochss.model import *
class ConvertToPopulationPage(BaseHandler):
def authentication_required(self):
return True
def ge... | [
"bbbales2@gmail.com"
] | bbbales2@gmail.com |
a2305f410c636a1f73e9eb03c70036300b797b07 | 76938f270e6165514162856b2ed33c78e3c3bcb5 | /lib/coginvasion/shop/ItemType.py | e96efa1c25c3578ab1b279372a20d21679db23fd | [] | no_license | coginvasion/src | 9a5ec682845cc4c9c013fcc35e9b379bd4360b6c | 2d7fcdb0cd073050250cb51292ee48300a9fe19f | refs/heads/master | 2021-01-19T06:50:11.786112 | 2015-11-08T12:28:52 | 2015-11-08T12:28:52 | 61,545,543 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | # Embedded file name: lib.coginvasion.shop.ItemType
"""
Filename: ItemType.py
Created by: DecodedLogic (13Jul15)
"""
class ItemType:
GAG, UPGRADE, HEAL = range(3) | [
"ttarchive@yandex.com"
] | ttarchive@yandex.com |
8f37672040f9e295c8762f408ad6bd4bb41e491a | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_Lag1Trend_NoCycle_MLP.py | 46db9aa8f60fd81599dfc2f183a3cf62b5ad1657 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 149 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Anscombe'] , ['Lag1Trend'] , ['NoCycle'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
fab339050b992558c77da577c671a699a7775d41 | 6ab67facf12280fedf7cc47c61ae91da0bcf7339 | /service/yowsup/yowsup/layers/auth/protocolentities/failure.py | 12d1d8ed0f8ee7267a59a9cbb7493f6c5c879d4d | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | PuneethReddyHC/whatsapp-rest-webservice | 2f035a08a506431c40b9ff0f333953b855f9c461 | 822dfc46b80e7a26eb553e5a10e723dda5a9f77d | refs/heads/master | 2022-09-17T14:31:17.273339 | 2017-11-27T11:16:43 | 2017-11-27T11:16:43 | 278,612,537 | 0 | 1 | MIT | 2020-07-10T11:04:42 | 2020-07-10T11:04:41 | null | UTF-8 | Python | false | false | 684 | py | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
class FailureProtocolEntity(ProtocolEntity):
def __init__(self, reason):
super(FailureProtocolEntity, self).__init__("failure")
self.reason = reason
def __str__(self):
out = "Failure:\n"
out += "Reason: %s\n" % self.r... | [
"svub@x900.svub.net"
] | svub@x900.svub.net |
3ad2dd87828157dd063f2b7458571a524017263a | 833ae432c07ff3c33812b4847c247aa730a2549b | /glue/_plugin_helpers.py | 341fbd440fc91bad6628fe8c03f9dba38fea1a07 | [
"BSD-3-Clause"
] | permissive | scalet98/glue | 3e4bc49ac53766d4e1927da3434ad02410d93486 | ff949ad52e205c20561f48c05f870b2abb39e0b0 | refs/heads/master | 2020-11-25T07:50:11.278074 | 2019-10-29T09:23:19 | 2019-10-29T09:23:19 | 228,563,694 | 1 | 0 | NOASSERTION | 2019-12-17T07:58:31 | 2019-12-17T07:58:31 | null | UTF-8 | Python | false | false | 2,776 | py | # The following function is a thin wrapper around iter_entry_points. The reason it
# is in this separate file is that when making the Mac app, py2app doesn't
# support entry points, so we replace this function with a version that has the
# entry points we want hardcoded. If this function was in glue/main.py, the
# refe... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
9a4313fa0814d9397f41b20ed086b55e7abb6250 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /QgAwpaFWD2jtxZ2wG_4.py | 58922c617047ba45a395b810841f6329c9e8ff3b | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py |
def sum_digits(n):
if n==0:
return 1
k = 0
j = n
while (int(j)>0):
k += 1
j /= 10
return k
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c51601e1b9ee338db02f4c1f497e0198df94460b | 29a47609913b7cec54266f230f19611b60b2080a | /examples/light_head_rcnn/train_coco_multi.py | f5b126c6e8072cf5f6af9613f1d78ddc18fbfdf1 | [
"MIT"
] | permissive | xiaolonghao/chainercv | ec89ec711eb05f4a9a62c7d535d0c42c49500883 | 1db5572aa4bac6c40fd811c51dd63f1b6ad57dcf | refs/heads/master | 2020-12-05T21:20:49.118214 | 2019-12-24T06:01:34 | 2019-12-24T06:01:34 | 232,251,009 | 1 | 0 | MIT | 2020-01-07T05:41:06 | 2020-01-07T05:41:05 | null | UTF-8 | Python | false | false | 8,388 | py | from __future__ import division
import argparse
import functools
import multiprocessing
import numpy as np
import random
import six
import chainer
from chainer.dataset.convert import _concat_arrays
from chainer.dataset.convert import to_device
import chainer.links as L
from chainer.training import extensions
from ch... | [
"shingogo@hotmail.co.jp"
] | shingogo@hotmail.co.jp |
d393dfab85f711e3577849ec7cf8e6c50b16d399 | bfdab27f224d9cac02e319fe55b53172fbf8d1a2 | /motion_editor_core/data/atlas_old/positions/arm/calib_12.py | 0953601e8df0af370b4565871e3c978535f8a6ca | [] | no_license | tu-darmstadt-ros-pkg/motion_editor | c18294b4f035f737ff33d1dcbdfa87d4bb4e6f71 | 178a7564b18420748e1ca4413849a44965823655 | refs/heads/master | 2020-04-06T12:37:30.763325 | 2016-09-15T14:11:48 | 2016-09-15T14:11:48 | 35,028,245 | 2 | 3 | null | 2015-05-05T13:20:27 | 2015-05-04T10:18:22 | Python | UTF-8 | Python | false | false | 67 | py | { 'calib_12': [-1.0046, 1.2497, 1.8048, -0.9239, 3.1416, -1.1781]}
| [
"martin.sven.oehler@gmail.com"
] | martin.sven.oehler@gmail.com |
3479e119a928a44bfb4b30588b082226216cfa06 | 97bf09cf62ddd060ec436bc0abdda8a1a78e57f9 | /scripts/test/run_tests.py | 4392a92d799968c527d36b1bb61228cda313639e | [
"BSD-3-Clause"
] | permissive | Hiwatts/facebook360_dep | 1911848900d6be6eabe72a088bab9cf7eae6ef02 | 3ecbe7f64f88b8a7b50bfa3deef6daad61a30443 | refs/heads/master | 2023-07-24T05:48:44.705469 | 2021-05-05T15:57:32 | 2021-05-05T16:04:43 | 396,123,779 | 0 | 0 | NOASSERTION | 2021-08-18T11:48:09 | 2021-08-14T20:35:58 | null | UTF-8 | Python | false | false | 5,371 | py | #!/usr/bin/env python3
# Copyright 2004-present Facebook. All Rights Reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
"""Runs all the unit tests defined in res/test/translator.json.
This is the main entrypoint for running the ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
68be4a145f5591cd39cece0984dc6931714f5716 | 44c65c93549aa06b01ef9114817cd45e645da6f7 | /tests/test_observable/test_concat.py | 7b28c6f1c9fd20302717129da1983eaa60fd0f1c | [
"Apache-2.0"
] | permissive | Affirm/RxPY | 692b6a0089f4e79b92c0c683f11427c558eefd06 | 7c23939ea497761c85b382257f9f0954998ab91e | refs/heads/master | 2023-07-06T11:34:28.229747 | 2017-10-22T16:25:56 | 2017-10-22T16:25:56 | 108,198,347 | 0 | 2 | Apache-2.0 | 2023-03-20T20:28:56 | 2017-10-25T00:18:37 | Python | UTF-8 | Python | false | false | 7,099 | py | import unittest
from rx import Observable
from rx.testing import TestScheduler, ReactiveTest
on_next = ReactiveTest.on_next
on_completed = ReactiveTest.on_completed
on_error = ReactiveTest.on_error
subscribe = ReactiveTest.subscribe
subscribed = ReactiveTest.subscribed
disposed = ReactiveTest.disposed
created = React... | [
"dag@brattli.net"
] | dag@brattli.net |
3d37da637d2574b7f62ac05306ea06e985dab24c | ae10b60cb92a69146bfb05ef5dde735a0aa45d4b | /examples/Extended Application/sklearn/examples/manifold/plot_swissroll.py | 7c79aa7f21f247e89add004d85ca228061582301 | [
"MIT"
] | permissive | kantel/nodebox-pyobjc | 471cea4c5d7f1c239c490323186458a74edcc214 | 068ba64c87d607522a240ab60c3ba14f869f6222 | refs/heads/master | 2021-08-14T18:32:57.995445 | 2017-11-16T13:42:23 | 2017-11-16T13:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | """
===================================
Swiss Roll reduction with LLE
===================================
An illustration of Swiss Roll reduction
with locally linear embedding
"""
# Author: Fabian Pedregosa -- <fabian.pedregosa@inria.fr>
# License: BSD 3 clause (C) INRIA 2011
print(__doc__)
import matplotlib.pyplot... | [
"karstenwo@web.de"
] | karstenwo@web.de |
9bad6a345a6bdffa026f01429de7892977c34495 | fd64e364368bcb2cdcf77ab1e0fc234a6b698f69 | /Python/Easy/CHEFSETC.py | 48d298e8c44654557290eaf4fd4a08a2753e58f3 | [] | no_license | Parizval/CodeChefCodes | 57712069f3d56cc42282f9e35c6ddd9398e4a5bf | cfd2876816be806882650b6ea51431b1f8d6bec5 | refs/heads/master | 2021-07-16T13:10:15.668713 | 2020-07-06T21:40:09 | 2020-07-06T21:40:09 | 188,693,667 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import itertools
def findsubsets(s, n):
return [set(i) for i in itertools.combinations(s, n)]
for a in range(int(input())):
elements = set(map(int,input().split()))
check = False
for i in range(1,5,1):
array = findsubsets(elements,i)
for i in array:
if sum(i) == 0 :
... | [
"anmolgoyal@gmail.com"
] | anmolgoyal@gmail.com |
42b03dcc9562188ff8a81630422edb51674a221c | 2c54320b0bebb4351d6056d117796c11b6fb1441 | /test_endpoints.py | 5511b26bb32d7594a6d5ed3116bbdfc142a99fdb | [] | no_license | Amertz08/flask-ci | f728ca59c67d24b5d437de8acd469d2460151f01 | a67c0417345b6b67f86d7f18d509f1f192cf862a | refs/heads/master | 2020-03-23T08:53:14.389682 | 2018-07-18T02:18:29 | 2018-07-18T02:18:29 | 141,353,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | import unittest
from flask import url_for
from flask_testing import TestCase
from app import create_app
class TestApp(TestCase):
def create_app(self):
return create_app()
def test_index(self):
resp = self.client.get(url_for('main.index'))
try:
with open('version.txt', '... | [
"adammertz@gmail.com"
] | adammertz@gmail.com |
b7cd1f9a1aea1fcef7d9de69a39850cb6d63dafc | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /log-20190927/132.230.102.123-10.21.12.20/1569574219.py | 4a95238224a8297f24bd861789148dd266556edb | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def divisors(n)->list:
teiler = []
if n < 0:
return "Ungültige Eingabe"
else:
for i in range(1, n+1):
if n%i == 0:
teiler = teiler + [i]
return [teiler]
#... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
a8b53a582053bf011063b816014242b9cc4b3276 | a34dc024004dded61c9a5612e047fc4537534ddb | /scripts/utils.py | ca1dc8ab17fc6a2132b90e53bb34b9903dcce3b4 | [] | no_license | tehZevo/aegis-scripts | 29ca28998f3fb2c6c8f7960ef56df8bff5e9970d | 280435890fc7661e73aff65ef28bd9b2a5b24055 | refs/heads/master | 2020-07-21T12:23:55.913579 | 2020-03-06T01:26:40 | 2020-03-06T01:26:40 | 206,863,972 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,183 | py | from tensorflow.keras import optimizers as O
import retro
import gym
from aegis_core.callbacks import TensorboardFieldCallback, TensorboardCallback
from aegis_core.callbacks import TensorboardActions, TensorboardPGETReward
from aegis_core.callbacks import TensorboardPGETWeights, TensorboardPGETTraces
class DummyEnv(g... | [
"tehzevo@users.noreply.github.com"
] | tehzevo@users.noreply.github.com |
d9bee4ad7b23f641753a2fe3e8fa91e75064ef95 | 4f41601218f7c270a9b1bb0b02a45522dfb586df | /miform/structure.py | 74b867359fe58dc888aa44f38c23b1ce2fe4bec6 | [] | no_license | cr1901/miform | 3e7372cf5f5d2ece04b5df17f8582ed2795ada1f | 23abfbe16a5064cbd267719ebbb66e08f594b689 | refs/heads/master | 2021-07-13T08:58:18.657665 | 2017-10-15T18:01:03 | 2017-10-15T18:01:03 | 106,760,269 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,706 | py | from migen.fhdl.structure import _Statement, wrap, _check_statement
from migen.fhdl.specials import Special
from migen.fhdl.verilog import _AT_BLOCKING, _printexpr as verilog_printexpr
from migen.fhdl.module import _flat_list, _cd_append
import miform.verilog
class _FormalStatement:
pass
class _FormalTask:
... | [
"thor0505@comcast.net"
] | thor0505@comcast.net |
8e4ac45e01675c7b4f520a4a23d18060dc8c7369 | cab678a44ecef2fcb9102588006e3080d4529481 | /microsoft/store/partnercenterservices/models/microsoft_partner_sdk_contracts_v1_support_topic.py | df2acd2a2202668d37743f77e8790c7ac41b5299 | [] | no_license | eduardomourar/partner-center-python | 410f61f1ff0dfa8fe34414b1012edba983c289dc | 85e9617d58347fb6c3b8d50b728f9a10201e2f10 | refs/heads/master | 2020-04-19T19:21:16.543501 | 2020-01-28T12:10:33 | 2020-01-28T12:10:33 | 168,386,194 | 2 | 0 | null | 2020-01-28T12:10:35 | 2019-01-30T17:38:16 | Python | UTF-8 | Python | false | false | 1,722 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"eduardo.rodrigues@sentia.com"
] | eduardo.rodrigues@sentia.com |
8ac2409f5cb6f10f638f4a529a2f5abd608a6613 | aacec9c81c1f015ac3f76d6e37d798e08b59d150 | /sample/sample/settings.py | 00ed6e4b6be213ff1107b7f54da769cb0c0096b0 | [] | no_license | meghalrag/djangoprgm | 25ae32b04789dc9cdeda5ac64833e6e138234349 | 6a802a6b7a0c2044af24f4e0e90e034c0ba0d9ec | refs/heads/master | 2020-05-19T22:20:51.979077 | 2019-05-06T18:05:42 | 2019-05-06T18:05:42 | 185,244,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,230 | py | """
Django settings for sample project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
... | [
"noreply@github.com"
] | meghalrag.noreply@github.com |
d51070832466bbae325f25e103f2e00e81030c3e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02717/s273928982.py | 4e8c5d3b6646e3a0f9abc51aba12f955647e3323 | [] | 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 | 64 | py | A,B,C=[i for i in input().split(" ")]
print(" ".join([C,A,B]))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3a0f2b78a917ebbb93b31b448eff17706496fcb4 | 55d6de252e61c4b60688ebd8b1f637807acc1e7c | /custom_customer_payment_approval/models/models.py | 83b0d97f1108f7bbd53d5c29fe68c31b90a5209d | [] | no_license | mosadiqit/eerna_erp_uslbd | b707a1d49a4fce7c1543b63e0120e8f9b77b26ce | 73e3994a9e32df7809d244eb6592513162ab7853 | refs/heads/main | 2023-06-30T14:53:04.837197 | 2021-08-04T11:30:46 | 2021-08-04T11:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # -*- coding: utf-8 -*-
# from odoo import models, fields, api
# class custom_customer_payment_approval(models.Model):
# _name = 'custom_customer_payment_approval.custom_customer_payment_approval'
# _description = 'custom_customer_payment_approval.custom_customer_payment_approval'
# name = fields.Char()... | [
"ibrahimalazhar264@gmail.com"
] | ibrahimalazhar264@gmail.com |
3eea2bcd2377a53c6ec3a0fac375d30816303266 | ede10f744f89dcc7c81a73e922cfd41c8c415b3f | /setoperation.py | 2dc31b509a25cf4a50900a49bc5f21b382e8ff7e | [] | no_license | Techsrijan/Python11 | 6d76ac9aaa1fe30a1a31f7dbe898927b439ac64b | c1080fcc027044137859e4e55ef6a8d3cb740c2a | refs/heads/master | 2020-06-16T07:02:38.150544 | 2019-08-04T03:29:15 | 2019-08-04T03:29:15 | 195,508,033 | 0 | 35 | null | 2019-07-28T07:48:25 | 2019-07-06T06:52:21 | Python | UTF-8 | Python | false | false | 618 | py | marks={11,12,15,66,12}
print(marks)
marks.add(555)
print(marks)
marks.remove(12)
print(marks)
fruit=frozenset(['apple','mango'])
print(fruit)
#fruit.add('ss')
# this will create dictionary but not set
a={}
print(a)
print(type(a))
# set function creates an empty set
b=set()
print(b)
print(type(b))
b= set(marks) #c... | [
"aswanibtech@gmail.com"
] | aswanibtech@gmail.com |
ef26605460b724a8997f2a2f00e3ae325643e6c3 | 9dba8607dce414f9905700d7a4ac44668de5e1f1 | /ave_SR/OD_PF_103_17_arm_transv/results/verifications/verifRsl_crackingSLS_qperm.py | 3295ef96ddc40442d8f31a8b22acc3cc7f20fe8c | [] | no_license | anaiortega/XCmodels | c0463ffe38531578aee281456e88528882255cd7 | e9b8c2f996a21b8aa3314242f3cc12b0e391b5df | refs/heads/master | 2023-08-16T22:44:01.168775 | 2023-08-14T18:15:10 | 2023-08-14T18:15:10 | 141,140,177 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,021,638 | py | preprocessor.getElementHandler.getElement(1).setProp("SLS_quasiPermanentLoadsLoadsCrackControlSect1",CrackControlVars(idSection= "M1losCimExtRCSects1", crackControlBaseVarsPos= CrackControlBaseVars(combName= "ELSQP001", CF=0.000271291616075,N= 0.985779759312,My= 1.72327385081,Mz= 0.0,steelStress= 0.0949520656263), crac... | [
"ana.Ortega.Ort@gmail.com"
] | ana.Ortega.Ort@gmail.com |
137ba7136d89e5ece45a8d4271fd13561c4b608f | 13f25be5c1f9d4023fdc188af20699370bbc896d | /billy/commands/update_external_ids.py | 3e37a7f86791dc9da57d8eb46cbb0c11f1901cb7 | [] | no_license | JT5D/billy | d303ca408527e122faebdd1c1047233cf0231d8c | de1586fddd30d354d80d6b6b2c7932e16bc02991 | refs/heads/master | 2020-12-25T15:51:22.750561 | 2012-09-14T16:23:18 | 2012-09-14T16:23:18 | 5,826,718 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | import json
import urllib
import urllib2
import time
import sys
from billy import db
from billy.conf import settings
from billy.commands import BaseCommand
class UpdateMissingIds(BaseCommand):
name = 'update-ext-ids'
help = 'update TransparencyData ids'
def add_args(self):
self.add_argument('ab... | [
"james.p.turk@gmail.com"
] | james.p.turk@gmail.com |
e20d78120e7e8e868e2796fbd0ad91445e24f16a | eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e | /atcoder/abc/abc101-200/abc170/d.py | 6f7baffcc4792acd400908f7b89a52f59bfb752e | [] | no_license | reo11/AtCoder | 4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9 | 69c6d67f05cb9190d8fb07204488cd7ce4d0bed2 | refs/heads/master | 2023-08-28T10:54:50.859288 | 2023-08-22T18:52:47 | 2023-08-22T18:52:47 | 162,085,118 | 4 | 0 | null | 2023-07-01T14:17:28 | 2018-12-17T06:31:10 | Python | UTF-8 | Python | false | false | 357 | py | import sys
from collections import Counter
input = sys.stdin.readline
MAX = 1000001
dp = [True for _ in range(MAX)]
n = int(input())
a = list(map(int, input().split()))
cnt = Counter(a)
a = sorted(list(set(a)))
ans = 0
for v in a:
if cnt[v] <= 1 and dp[v]:
ans += 1
m = v
while m < MAX:
dp[... | [
"reohirao116@gmail.com"
] | reohirao116@gmail.com |
da1424b954c6ea7946bf5c4b741adee5647928ce | 2e69d2f140bb653938dc1b7238b85a4af4754123 | /metanic/settings/development.py | 24903ea9e622fd8f43c25fe974be2913277bb0c6 | [
"BSD-3-Clause"
] | permissive | metanic/services | f866d78e7207624cf4b420929d987b6005394d1d | a00b99f9b697864a078e2cb886be4d75c10458a9 | refs/heads/master | 2021-06-06T22:33:56.823827 | 2018-08-14T08:05:00 | 2018-08-14T08:05:00 | 115,375,318 | 0 | 0 | NOASSERTION | 2020-02-11T21:34:25 | 2017-12-26T01:57:09 | Python | UTF-8 | Python | false | false | 2,287 | py | from metanic.settings.defaults import INSTALLED_APPS
from metanic.settings.defaults import MIDDLEWARE
from metanic.settings.defaults import REST_FRAMEWORK
from metanic.settings.defaults import cache_url
from metanic.settings.defaults import env_value
from metanic.settings.defaults import project_path
# We specificall... | [
"monokrome@monokro.me"
] | monokrome@monokro.me |
24a0eef4f1af79a957cf9029213903e7a4999b2b | 3899dd3debab668ef0c4b91c12127e714bdf3d6d | /venv/Lib/site-packages/tensorflow/python/estimator/canned/linear.py | f20177bc113e7d69e4c24f89d653ca26be594025 | [] | no_license | SphericalPotatoInVacuum/CNNDDDD | b2f79521581a15d522d8bb52f81b731a3c6a4db4 | 03c5c0e7cb922f53f31025b7dd78287a19392824 | refs/heads/master | 2020-04-21T16:10:25.909319 | 2019-02-08T06:04:42 | 2019-02-08T06:04:42 | 169,691,960 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 22,582 | py | # Copyright 2017 The TensorFlow Authors. 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... | [
"a@bogdanov.co"
] | a@bogdanov.co |
b8b6b730b3d1e9345cd8228e34aab0f42a31aa8c | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /19_数学/数论/BSGS/G - 222.py | 6cdc9f5606b73ac8778ecd183c8606680b877f35 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # 形如2,22,222,...的数列
# !这个数列第一个k的倍数的项是否存在, 若存在是第几项
# k<=1e8
# !等价于 2*(10^x-1)/9 ≡ 0 (mod k)
# !即 10^x ≡ 1 (mod k*9/gcd(k,2))
from math import gcd
from bsgs import exbsgs
# 即为扩展exbsgs
# TODO 有问题
import sys
sys.setrecursionlimit(int(1e9))
input = lambda: sys.stdin.readline().rstrip("\r\n")
MOD = 9982... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
94f9719ea3bafb52fb5ea71541380aa245912c33 | afdeedfb743fbb149d36c14cfad65feaf03acd21 | /code/1253-reconstruct-a-2-row-binary-matrix.py | bd9cbd79b960e9959b96f36d73f49227eb0ec9fe | [] | no_license | linhx13/leetcode-code | f16cd4a0d35be34c41b86715fc9f3e8ec4b0a577 | c71574acfc68174a091c1751f10985b8f5737a1f | refs/heads/master | 2021-07-04T03:45:20.030275 | 2021-06-09T13:55:18 | 2021-06-09T13:55:18 | 70,423,464 | 0 | 1 | null | 2019-08-01T09:37:49 | 2016-10-09T18:48:33 | null | UTF-8 | Python | false | false | 870 | py | from typing import List
class Solution:
def reconstructMatrix(
self, upper: int, lower: int, colsum: List[int]
) -> List[List[int]]:
n = len(colsum)
res = [[0] * n for _ in range(2)]
for i, s in enumerate(colsum):
if s == 2 or (s == 1 and lower < upper):
... | [
"mylhx288@gmail.com"
] | mylhx288@gmail.com |
3ee47a3f3fcc17860c659aea5450baf56dda10e5 | 312ab41033c2cb043d617d3e633c166503fd280c | /Informatikk/Bachelor/H2017/ITGK/Eksamner/2012/Oppgave_4f.py | aa7ca178ffff91e045fd53d574fa57141adaeafe | [] | no_license | skanin/NTNU | cb9b833d9de0d504965979584370b8f353435cd1 | e4023856f69060f8d3d09ff4990e29f7a75d98b1 | refs/heads/master | 2022-01-30T14:31:22.947512 | 2022-01-20T14:11:14 | 2022-01-20T14:11:14 | 113,476,017 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | def strange_weather(temp, rain):
x = None
y = None
for i in range(len(temp)-1):
if temp[i] < 0:
if temp[i] < temp[i+1] and rain[i] < rain[i+1]:
x = i
if temp[i] > temp[i+1] and rain[i] > rain[i+1]:
y = i
return x, y... | [
"sander.b.lindberg@gmail.com"
] | sander.b.lindberg@gmail.com |
ed6ba51a1f51da4a70789894dbbc3c28652b12bf | a08225934c425be313a12975c9563a72ded58be6 | /round669/q1.py | 851433744811d0efac4f1b094d4089b7adb1d6ae | [] | no_license | marcus-aurelianus/codeforce | 27c966554dee9986f23fb2925bd53e6cceb8b9e9 | 4764df151ade7806e32b6c88283a2de946f99e16 | refs/heads/master | 2023-03-18T09:30:55.042594 | 2021-03-12T18:14:08 | 2021-03-12T18:14:08 | 231,387,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | import sys
reader = (s.rstrip() for s in sys.stdin)
input = reader.__next__
def gift():
for _ in range(t):
n = int(input())
arry = list(map(int,input().split()))
count0 = 0
count1 = 0
for i in range(n):
if arry[i] == 1:
count1 += 1
els... | [
"37787424+marcus-aurelianus@users.noreply.github.com"
] | 37787424+marcus-aurelianus@users.noreply.github.com |
eff344fe4db23e7846abced170514cefc8dc4524 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-GameKit/PyObjCTest/test_gkleaderboardset.py | 07d32c0476b2648b0ec250082721e960bbc9e8b1 | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from PyObjCTools.TestSupport import *
import GameKit
class TestGKLeaderboardSet (TestCase):
@min_os_level('10.10')
def testMethods(self):
class TestGKLeaderboardSetHelper (GameKit.GKLeaderboardSet):
def loadImageWithCompletionHandler_(self, h): pass
self.assertArgIsBlock(GameKit.... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
cc5944b4c83a4775a2bb0eb3623f8812a6f2e3ac | c4a2c5d2ee3bb946333bec267c337858c2eaa87c | /tests/bhive/test_asciichart.py | 33f157a84494dea26f1582b0203b3aa21810eb53 | [
"MIT"
] | permissive | TheCrazyGM/bhive | 93b237140def25a8cb4de0160678db116b45d4e0 | 1494e90a99123ecfc5efbd927258f9ba59443e2e | refs/heads/master | 2021-04-10T20:15:59.966431 | 2020-03-22T23:50:52 | 2020-03-22T23:50:52 | 248,962,200 | 3 | 1 | NOASSERTION | 2020-10-27T22:24:53 | 2020-03-21T11:29:02 | Python | UTF-8 | Python | false | false | 1,211 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import bytes
from builtins import range
from builtins import super
import string
import random
import unittest
import base64
from pprint import pprint
from b... | [
"thecrazygm@gmail.com"
] | thecrazygm@gmail.com |
71f6ad5a698c326f96d84161d38f7a08056340a5 | 75e03232591b263a50523d7cfef4041db36caf01 | /VMWsolutions/at2-vclient-032/cft/disable_node_otp.py | e3092e047d6ae3d778a3ded3eac14088fc42a51c | [] | no_license | adamkittel/src | aaf157062d069998a8d18841895e7362cf868ff9 | 11e3927bd990b885eba595346694de2d2601d5c9 | refs/heads/master | 2021-01-11T16:13:14.592894 | 2017-01-25T18:29:09 | 2017-01-25T18:29:09 | 80,040,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | #!/usr/bin/python
"""
This action will disable OTP on a set of nodes
When run as a script, the following options/env variables apply:
--node_ips The list of node management IP addresses
SFNODE_IPS
--ssh_user The nodes SSH username
SFSSH_USER env var
--ssh_pass The node... | [
"adam.kittel@solidfire.com"
] | adam.kittel@solidfire.com |
366fff143610fe845b7b6e6395ef18c03343fd2a | a468016412cc2b435501de4d3ee5c4d2be5fa19f | /coupons/models.py | 305be09c0686ea6f5f965be1fc9468e3968e0bac | [] | no_license | sadakchap/first-full-ecom | ef022596c05c29cae0842bae34d201cd4af08b93 | 881b39ec60dff3aef04105e3d08e3be3e16f6420 | refs/heads/master | 2020-08-07T05:02:48.165873 | 2019-10-07T06:16:16 | 2019-10-07T06:16:16 | 213,308,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from django.db import models
from django.core.validators import MinValueValidator,MaxValueValidator
# Create your models here.
class Coupon(models.Model):
code = models.CharField(max_length=255,unique=True)
valid_from = models.DateTimeField()
valid_to = models.DateTimeField()
discount = mo... | [
"aliceprerna@gmail.com"
] | aliceprerna@gmail.com |
afa1b74ce031d3bc549a576b770b55e6aedcdb23 | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /Practice_Telusko/146.py | c21c476c942079f99e1cf5e650cb300b11c67186 | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | x = "Tuhin"
for i in range(len(x)):
print(x[i]) | [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.