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
151bb2630dcdd841e11860cfb97951186b5596c6
4c3e992678341ccaa1d4d14e97dac2e0682026d1
/addons/purchase/tests/common.py
b7dd2a7bfc5316a6415eb68390f82e4dca1f8dc1
[]
no_license
gahan-corporation/wyatt
3a6add8f8f815bd26643e1e7c81aea024945130d
77e56da362bec56f13bf0abc9f8cf13e98461111
refs/heads/master
2021-09-03T18:56:15.726392
2018-01-08T02:54:47
2018-01-08T02:54:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,581
py
# -*- coding: utf-8 -*- from datetime import timedelta from gerp import fields from gerp.addons.stock.tests.common2 import TestStockCommon class TestPurchase(TestStockCommon): def _create_make_procurement(self, product, product_qty, date_planned=False): ProcurementGroup = self.env['procurement.group'] ...
[ "duchess@gahan-corporation.com" ]
duchess@gahan-corporation.com
b947f302b1e234da403019a52c91fb35d80e79a5
aaff711b31dcaf59e0924a8ff2928d6ff859b4a7
/src/models/base2.py
bdcd5d8ad769eba04ed76785d1cc076ff24deceb
[]
no_license
harupy/kaggle-dsb2019
abde925d0b529d07085b3010a79c56729409273d
144d34c40200523e7263ac2c3512c15b6fa522e7
refs/heads/master
2020-12-26T18:22:01.285659
2020-01-24T08:58:23
2020-01-24T08:58:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,583
py
import logging import catboost as cat import lightgbm as lgb import numpy as np import pandas as pd from abc import abstractmethod from typing import Union, Tuple, List from src.evaluation import (calc_metric, eval_with_truncated_data, OptimizedRounder) # type alias AoD = Union[np.ndarra...
[ "arabiannight1994@yahoo.co.jp" ]
arabiannight1994@yahoo.co.jp
d69844e88e496ef3a2a01cb0c813df546e83a503
0563f004a0c9d36c37a889d1f9c583ff06b2eef8
/db/venv/Scripts/pip3.6-script.py
b2455ee2fa5bf12d78d83f42c10bf32393ebb879
[]
no_license
Rk27-Dev/djangoproject
675021446c4147972ee5d5fb1e8bfe832a386f29
326449a03d813819471120e8838cc19f883e93d4
refs/heads/master
2023-08-16T16:19:14.174602
2019-06-14T10:41:46
2019-06-14T10:41:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#!C:\Users\ravik\PycharmProjects\db\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.6' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])...
[ "ravikurva7@gmail.com" ]
ravikurva7@gmail.com
71b2885c6449420cfa97805c5ab664b3831751cf
dcf7b2fabd605372bf7a380008de982bab0edcce
/src/pages/views.py
dc105774d5e49b1769e16630db944f7c7d8525fd
[ "MIT" ]
permissive
happeninghq/happening
f18b2c2485a2e5aae7f03356a45c905362cdac3c
e33c2be9fd27e90dcafbf4fd7bd6724658411157
refs/heads/master
2020-04-11T23:46:46.446504
2017-07-17T19:12:45
2017-07-17T19:12:45
31,820,807
0
1
null
null
null
null
UTF-8
Python
false
false
717
py
"""Pages views.""" from django.shortcuts import render, get_object_or_404 from .models import Page from .utils import render_block def view(request, pk): """Show page.""" page = get_object_or_404(Page, url=pk) def get_block(i): return [b for b in page.content["blocks"] if b["id"] == i][0] # ...
[ "jonathan@jscott.me" ]
jonathan@jscott.me
bdb91c98287bfdda38b2f002d055e9b68fb72adb
52b5773617a1b972a905de4d692540d26ff74926
/.history/fish1_20200804194920.py
75f8c93810bd9e1f658e845c81df8cd14263c325
[]
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
461
py
def fish(A,B): # where A represent the size of fish and B represents the direction of fish i = 0 j = 0 newFish = {} for i,j in zip(A,B): newFish[] # I'll loop through both arrays # you are intrested in a fish going down # and the fish only eat each other when p > q fish...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
08598fd2dc70a59f8b15add5b1ab64cbc64392d1
1473def75909e4ce909251aa35ab1022909dae69
/lib/utils/keypoints.py
c7caa1c035eed4e35f565037672d771e4b821bcf
[ "MIT", "Apache-2.0" ]
permissive
skokec/detectron-traffic-signs
c2a952068a8ca62d14c4b563db8e5a3c2cdcdf0b
6b3111f79727add35c6ee0ff7958924415eeb018
refs/heads/villard
2023-07-05T09:00:15.260408
2023-06-28T16:32:34
2023-06-28T16:32:34
140,719,402
40
22
Apache-2.0
2019-10-23T15:22:23
2018-07-12T13:50:01
Python
UTF-8
Python
false
false
9,303
py
# Copyright (c) 2017-present, Facebook, 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...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
b32563d1ce5eceee9e3cb1f513e172543798f374
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_expressways.py
45727e5a28f81ee71791c4f1cf8fe71637f2d0fa
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
#calss header class _EXPRESSWAYS(): def __init__(self,): self.name = "EXPRESSWAYS" self.definitions = expressway self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['expressway']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4318c1a5062d3e088bfcd4a85d28b89a1804e5b8
7a1243f229dd1ff671b26d5035c39219c9fa9586
/1285A - Mezo Playing Zoma.py
9f70ddf4f0296407053a868d30a19e2826490de6
[]
no_license
henseljahja/code-forces
ce4063f30754bdee0e4d6ebc58b55f0874bf2cf9
1ca196636073331507b9bf48cb78cff625f44def
refs/heads/main
2023-03-21T10:00:39.986314
2021-03-08T15:45:22
2021-03-08T15:45:22
339,361,495
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
n = int(input()) s = list(input()) x = len(s) print(int(x)+1)
[ "henseljahja@gmail.com" ]
henseljahja@gmail.com
0bcf6862e8499aa8fa21e233f6239f21aab93aea
1798ba59a187a8868e32b4d4f5f54ec81efbf807
/build/roborts_localization/catkin_generated/pkg.develspace.context.pc.py
a6e62cb3bf45633bd319355aaa95ab0b8bb1c7ac
[]
no_license
chalkchalk/fl1oth_ws
60d17ee4d9206c436a221b82e2f92d0eedd78eb0
4c53588c129ad206ebc1354cc55ff6d2d88863d4
refs/heads/master
2022-12-11T11:15:58.773602
2020-09-13T04:04:24
2020-09-13T04:04:24
294,903,878
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "roborts_localization" PROJECT_SPACE_D...
[ "1261677461@qq.com" ]
1261677461@qq.com
cc7a84965d808ee3b734493e473922e1ea73021c
7e33d54ce1351a4272ec0647fc2c5c747b8a7593
/0x15-api/3-dictionary_of_list_of_dictionaries.py
015523ae103d7dc639c5c51644c8879f34d4bcba
[]
no_license
DiegoAlar/holberton-system_engineering-devops
ffa7cdd6350b552c4b105fc7aea2c7c4c23b504d
ac686a1951615628f7067852fb9d46a2f18b8517
refs/heads/master
2020-07-24T07:59:38.782752
2020-05-27T17:48:06
2020-05-27T17:48:06
207,856,072
0
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
#!/usr/bin/python3 """ Python script that, using this REST API (https://jsonplaceholder.typicode.com/), extend your Python script to export data in the JSON format. """ if __name__ == "__main__": import json import requests import sys url_todos = 'https://jsonplaceholder.typicode.com/todos' ...
[ "diegoaav@hotmail.com" ]
diegoaav@hotmail.com
d4ed593563aa11bcdee5c4ed80493fc8c8b3cabb
84864f862dec9171e958920f2c8e7c920fcef056
/CLRS/CLRS_with_Python/Learning/Chapter2/Linear_search.py
159bf6d97754b756aed6b48d05220787f497eff0
[]
no_license
Orcuslc/Learning
7704950f8c09232dadbbde81ed82ddc0ca65172d
ffa856febd85235d17358178f1e288ffae7856cb
refs/heads/master
2020-03-26T11:59:54.093395
2018-05-29T04:19:36
2018-05-29T04:19:36
47,269,920
4
2
null
null
null
null
UTF-8
Python
false
false
187
py
#linear_search #15.7.15 def linear_search(A, key): for index in range(len(A)): if A[index] == key: return index return 'NIL' A = [1, 2,43,57,476,32] print(linear_search(A, 42))
[ "orcuslc@hotmail.com" ]
orcuslc@hotmail.com
007e76fb39e428ac08d400eedaaef81347e242c4
2a54d19a114ea8aebfb2bd2ba6495a462c48c68d
/bin/pycodestyle
dad78b20d47a74c7953101b338e8909826d16b1d
[]
no_license
aki-06/tweetme
a07196c1fa00f79f800c06b28f10c4d3fd42988e
2ecdb6655b0aa2a80fe3db352b91a61ca286f9a8
refs/heads/master
2021-10-15T08:00:52.310992
2019-02-05T12:39:43
2019-02-05T12:39:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
#!/Users/akihiro/Dev/tweetme/bin/python3 # -*- coding: utf-8 -*- import re import sys from pycodestyle import _main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(_main())
[ "akihiro.nemoto.06@gmail.com" ]
akihiro.nemoto.06@gmail.com
6469a74b691fd81705e5d485ad6686f0664d7a7f
e79de9c9def60b0f814ab0625a2eb8bce3428ddd
/challenges/pybites/bite_053_test.py
31573d9b3a2406814be91cd50450c39c19a7ed4b
[]
no_license
mh70cz/py_old
a80e2140a279541c3639f89df70fadad34f7df0f
1af878cfbff24e5c6d39219c2c4faebd5a12f0c4
refs/heads/master
2022-04-05T15:07:10.840387
2020-01-13T18:39:50
2020-01-13T18:39:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,202
py
""" Bite 53. Convert text into multiple columns https://codechalleng.es/bites/53 """ import pytest import re from bite_053 import text_to_columns def test_text_to_one_col(): text = """My house is small but cosy.""" expected = [ r"^My house is small", r"^but cosy." ] output = text_...
[ "mh70@mh70.cz" ]
mh70@mh70.cz
c4014b6010fd2a7dadfdaa7277e7fcf653e0b01c
ca82e3c6084e697ecbdbf32d96c08293c5540287
/courses/python_data_structures_queues/Exercise Files/Ch03/03_04/End/queues.py
19eb97b17cd0be882489e797fbccca25b3ae175f
[]
no_license
bheki-maenetja/small-projects-py
8c8b35444ff2ecef7ad77e709392a9c860967ecc
18504d2e1f1ea48b612a4e469828682f426c9704
refs/heads/master
2023-08-17T00:38:06.208787
2023-08-16T16:25:22
2023-08-16T16:25:22
131,871,876
1
0
null
2023-08-14T23:44:23
2018-05-02T15:37:58
Python
UTF-8
Python
false
false
905
py
class Queue: def __init__(self): self.items = [] def enqueue(self, item): """Takes in an item and inserts that item into the 0th index of the list that is representing the Queue. The runtime is O(n), or linear time, because inserting into the 0th index of a list forces...
[ "bhekimaenetja@gmail.com" ]
bhekimaenetja@gmail.com
d7399db7dc4980f998438f1bf98daeff76c1e770
47b9b9fc6f28a8af58d8bf1266baf7388b3f906d
/mammoth/styles/parser/html_path_parser.py
9e155b600c9c5b4627ec4cc265db326df5dd4bba
[ "BSD-2-Clause" ]
permissive
mwilliamson/python-mammoth
3535f86fa55d54ac41cd6cb09791d83cc42a1f1f
d037ef5cf7fc976047bed20859dbcd5c90f45d67
refs/heads/master
2023-06-17T08:07:57.393801
2023-05-30T10:33:07
2023-05-30T10:33:07
14,839,863
676
131
BSD-2-Clause
2023-05-07T08:55:00
2013-12-01T14:13:31
Python
UTF-8
Python
false
false
2,034
py
from ... import html_paths from .tokeniser import TokenType from .token_parser import parse_identifier, parse_string, try_parse_class_name def parse_html_path(tokens): if tokens.try_skip(TokenType.SYMBOL, "!"): return html_paths.ignore else: return html_paths.path(_parse_html_path_elements(tok...
[ "mike@zwobble.org" ]
mike@zwobble.org
5f1db8dc2d9eb1d7fcc256bf45e52544791ede00
8441c4b9c0af69caf9af3da476ee0629aae9ba26
/local/admin.py
e9b5d50e07a0598d9856e6c231a8021498c01038
[ "MIT" ]
permissive
rodrigondec/Open_CliEng
38e1262a2400e9b972faf5fa2f5d53bd1007f91e
83e399a35c1cf96283409ac43a61b2725cd93982
refs/heads/master
2021-08-23T06:29:14.760569
2017-12-03T22:24:55
2017-12-03T22:24:55
111,357,606
4
0
MIT
2017-12-03T22:26:15
2017-11-20T03:32:39
Python
UTF-8
Python
false
false
152
py
from django.contrib import admin from .models import Predio, Setor # Register your models here. admin.site.register(Predio) admin.site.register(Setor)
[ "rodrigondec@gmail.com" ]
rodrigondec@gmail.com
e77a131242c86448d0138b702080812f8201a39c
7255a09821deba655309b74927091ac9ab8b6075
/example/ROAD/code/reborn.vgg16.lr1e-5.w1_10_1.sm_bugfix.class16.adapSegnet_DC.1024x512.wgan.py
b30c6bc085a6d17e11c77511dbb187e0dbe7f697
[]
no_license
summer1719/pytorchgo
2814141d6fc0b5c3369d2b9d37e1140e410b25ec
1ffd561a53d583ca4098297e585e786e472ddd1a
refs/heads/master
2020-04-25T20:45:04.203802
2019-01-10T15:03:31
2019-01-10T15:03:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,071
py
import argparse import torch from pytorchgo.utils.pytorch_utils import model_summary, optimizer_summary from pytorchgo.utils.weight_init import weights_init import torch.nn.functional as F from torch.utils import data, model_zoo import math import os import os.path as osp import shutil import numpy as np from torch.au...
[ "taohu620@gmail.com" ]
taohu620@gmail.com
9503ded4348052a75adccd9d733416fd7b96c239
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2563/60602/281173.py
71f6f0667d59f27bf7e66119038daab96280b26b
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
763
py
def examString(string): i=0; while(i<len(string)): if(string[i]!='1'): return False; i+=1; return True; def fNumtoNum(n,x): string=""; #n为待转换的十进制数,x为机制,取值为2-16 a=['0','1','2','3','4','5','6','7','8','9','A','b','C','D','E','F'] i=0; b=[] while True: ...
[ "1069583789@qq.com" ]
1069583789@qq.com
d43c9a7d79729a2dbdf8a2a5ee47b08b79e8c488
1e0b5283ba08876a30fdd5e5a00daf1da9393083
/labs/migrations/0008_auto_20191013_0842.py
cc4d3de22c776a79a76a190767c0058e78ca8cfa
[]
no_license
nikhilrayaprolu/codelabsback
c26c1ebbda3db2752f47e96bfb46a7a21278b505
03871a312c54aa408b24fd48016f64e2a19f7757
refs/heads/master
2022-03-06T07:09:35.478727
2019-11-03T09:35:12
2019-11-03T09:35:12
216,264,414
0
0
null
null
null
null
UTF-8
Python
false
false
648
py
# Generated by Django 2.2.5 on 2019-10-13 08:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('labs', '0007_auto_20191012_1300'), ] operations = [ migrations.AddField( model_name='challenge', name='track', ...
[ "nikhil684@gmail.com" ]
nikhil684@gmail.com
36d867f9e10470e71d9de1c747acdf58dccf8c64
285ec77e4e5a914f882a5d42ce1604f94f081b06
/peru/display.py
b1186d648527b0dc288a39c6fbeac3e515ded1cf
[ "MIT" ]
permissive
buildinspace/peru
c327c983dc001758f8f13028c3e7412aefbcebd9
bc8de020a2ee8e380ff0ff9130bd12e93430b819
refs/heads/master
2023-09-05T16:06:41.037281
2023-02-10T22:20:28
2023-04-05T05:27:14
13,880,738
649
54
MIT
2023-07-28T12:18:11
2013-10-26T09:14:57
Python
UTF-8
Python
false
false
9,350
py
import io import re import sys from . import async_helpers # The display classes deal with output from subprocesses. The FancyDisplay # gives a multi-line, real-time view of each running process that looks nice in # the terminal. The VerboseDisplay collects output from each job and prints it # all when the job is fin...
[ "oconnor663@gmail.com" ]
oconnor663@gmail.com
00bd2344949c16de3c05648ba3ab4a0b294938a7
bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6
/AtCoder/abc/036c.py
d912df61cfedb6e05577f341c85c9cdc87e0130f
[]
no_license
y-oksaku/Competitive-Programming
3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db
a3ff52f538329bed034d3008e051f30442aaadae
refs/heads/master
2021-06-11T16:14:12.635947
2021-05-04T08:18:35
2021-05-04T08:18:35
188,639,647
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
from bisect import bisect_left N = int(input()) A = [] for _ in range(N): a = int(input()) A.append(a) conv = set(A) conv = list(conv) conv.sort() for a in A: ans = bisect_left(conv, a) print(ans)
[ "y.oksaku@stu.kanazawa-u.ac.jp" ]
y.oksaku@stu.kanazawa-u.ac.jp
c4dcbd8c299862b9baf5c4685901cf33353cfa67
43907139256a7d680b895a0ed63bd64c75e4b64f
/1433A.py
105a49aff5e0d444bce90b34a949de7ab1bb0a28
[]
no_license
HoangAce/ExerciseCodeforcer
7e8b690a236c1629ba557bbd95de52e5ec3412db
39ccd877a68bbf86f3bd53b4cd757c8421ecccca
refs/heads/main
2023-08-29T04:14:10.477397
2021-10-26T03:00:40
2021-10-26T03:00:40
365,713,642
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
#-*- coding: utf- 8-*- t = int(input()) answer = [] for i in range(t): x = input() count = 10 * (int(x[0]) - 1) for j in range(len(x)): count += 1 + j answer.append(count) for i in range(t): print(answer[i])
[ "haui.hoangace@gmail.com" ]
haui.hoangace@gmail.com
05fc971092cd0a51ce25f2832db9513f54f155d4
71025abf182a917c585a4929ce24b2b410f82909
/shipping_expedition_cbl/models/stock.py
516735e611bf61e93953dda47c343ed1cd1e5b97
[]
no_license
mulaudzicalvin/stock
101dbbc553bf8d121a9ce4de077b7392b59d8667
9f03bb98aae96ec5716eecab1d36ad10a4b5c829
refs/heads/master
2022-11-18T14:51:03.889420
2020-04-03T11:49:15
2020-04-03T11:49:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,319
py
# -*- coding: utf-8 -*- # © 2013 Yannick Vaucher (Camptocamp SA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from operator import attrgetter from openerp import _, api, exceptions, fields, models, tools from ..cbl.web_service import CblWebService import logging import urllib, cStringIO _log...
[ "informatica@arelux.com" ]
informatica@arelux.com
913ef13802d6ba150d50657d81a17c34acb67996
b993df6e8d563a75ea6f6ce40a41aa3e59675dbf
/20191121/swea 5688.py
f528f8b90f8729f1dcce6ad1848eddf157d2ba03
[]
no_license
BuankerC/projectswea
7d6a5f35b73e553037efd01d6a57811a9778834d
ea169d2352f3785ff2ce47475d203c3f751716cb
refs/heads/master
2020-07-03T11:31:43.283821
2020-01-04T03:19:25
2020-01-04T03:19:25
201,892,552
1
0
null
null
null
null
UTF-8
Python
false
false
209
py
''' swea 5688. 세제곱근을 찾아라 D3 ''' for t in range(int(input())): N = int(input()) x = round(N ** (1 / 3), 6) x = int(x) if str(x)[-2] == '.' else -1 print('#{} {}'.format(t+1, x))
[ "ergaster91@gmail.com" ]
ergaster91@gmail.com
214d4aa7d9d650457f16d09deb626056c87e3125
1ebbc0af6be6956d3c4b30908893f4a558dedba4
/tests/zf_grid/test_get_dms.py
00b58ceb3d247e5b37c520c1c4b3df90671006d8
[ "MIT" ]
permissive
Cangar00/easyGalaxy
d724f6869168527f6f62274bdf981a2410c8de58
08570d28dbb796c5c0626e598dee12dfc29f16b8
refs/heads/master
2021-05-11T23:32:54.752850
2019-12-02T08:47:39
2019-12-02T08:47:39
117,512,634
1
0
null
2018-01-15T07:36:42
2018-01-15T07:36:42
null
UTF-8
Python
false
false
1,061
py
import unittest import ezgal.zf_grid import numpy as np import math # I put the test data for the zf_grid tests in # tests.zf_grid instead of in tests because # there is a lot of data but it is all # specific for this test. import tests.zf_grid class test_get_dms(tests.zf_grid.test_zf_grid): def test_get_dms( self...
[ "cmancone@gmail.com" ]
cmancone@gmail.com
bd51f36b387ac28d7d6a8db6ecfcc4339e5f1aef
3f5ff18ff0183b50e7eea1c638a0b75623a20779
/viewshare/apps/augment/migrations/0004_auto__add_augmenttransaction__chg_field_listpattern_slug.py
e3bbf123bd5cbdb1f9087f1704ebb10a7841f8f5
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-secret-labs-2011", "CC-BY-2.5", "Apache-2.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
LibraryOfCongress/viewshare
2177d808916677a262a28fd13904cd5036ace8bd
87fb4966366e5392fa5f65a2cf03712f403d78b9
refs/heads/master
2023-02-03T12:49:31.774124
2022-09-13T15:35:24
2022-09-13T15:35:24
1,802,864
21
9
NOASSERTION
2023-01-23T16:10:19
2011-05-26T05:13:57
JavaScript
UTF-8
Python
false
false
9,587
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'AugmentTransaction' db.create_table(u'augment_augmenttransaction', ( (u'id', sel...
[ "dfeeney@gmail.com" ]
dfeeney@gmail.com
68eaecbd85734eb0f4bbe99130887cfd001dfb3f
18430833920b3193d2f26ed526ca8f6d7e3df4c8
/src/discussion/models.py
0a055192ebd8e9616ffd4509c758e025556bebf4
[ "MIT" ]
permissive
providenz/phase
ed8b48ea51d4b359f8012e603b328adf13d5e535
b0c46a5468eda6d4eae7b2b959c6210c8d1bbc60
refs/heads/master
2021-01-17T06:56:07.842719
2016-06-28T11:17:53
2016-06-28T11:17:53
47,676,508
0
0
null
2015-12-09T07:45:19
2015-12-09T07:45:18
null
UTF-8
Python
false
false
2,536
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import re from django.db import models, transaction from django.utils import timezone from django.utils.translation import ugettext, ugettext_lazy as _ from django.conf import settings from accounts.models import User from documents.models import Docum...
[ "thibault@miximum.fr" ]
thibault@miximum.fr
b8f7ec759aa31e5dc5914079be6ac61cd45be9b0
19333aed645a4721108a67ba4d90292d2383314e
/935knightDialer.py
6679b5fbfc7423430428ce7efb9c3c4040c7689b
[]
no_license
qinzhouhit/leetcode
f39f8720a19259310293c1eb2975ce459f7cf702
502e121cc25fcd81afe3d029145aeee56db794f0
refs/heads/master
2023-06-24T09:18:25.715450
2021-07-21T07:21:42
2021-07-21T07:21:42
189,679,632
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
''' keys: Solutions: Similar: T: S: ''' from typing import List class Solution: # T: O(n); S: O(1), bottom up def knightDialer(self, n: int) -> int: MOD = 10**9 + 7 # moves: each item is numbers which can move to idx number # e.g., 0 can move to 4 and 6 moves = [(4,6),(6,8),(7...
[ "qinzhouhit@gmail.com" ]
qinzhouhit@gmail.com
ac3ae15bafc730acf328f915c2206073cc44b397
e6c65e2e354336a4bea5b6a4ccbccd3682915fe2
/out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorboard_1_12_1/tensorboard/_vendor/tensorflow_serving/util/status_pb2.py
1a7c8177caeb42fa47ebc36be5b7be0894e8b1a5
[ "Apache-2.0" ]
permissive
rasalt/fhir-datalab
c30ab773d84983dd04a37e9d0ddec8bf2824b8a4
3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de
refs/heads/master
2021-10-09T05:51:04.593416
2018-12-21T18:11:03
2018-12-22T05:38:32
162,744,237
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorboard_1_12_1/tensorboard/_vendor/tensorflow_serving/util/status_pb2.py
[ "ruchika.kharwar@gmail.com" ]
ruchika.kharwar@gmail.com
a0bee0b6bca0acf9eeab3301e14828b38fc31720
5d48aba44824ff9b9ae7e3616df10aad323c260e
/math/7.reverse_integer.py
423dff20dd4e1317bf2eaa4e0dd641f08a7c72cc
[]
no_license
eric496/leetcode.py
37eab98a68d6d3417780230f4b5a840f6d4bd2a6
32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17
refs/heads/master
2021-07-25T11:08:36.776720
2021-07-01T15:49:31
2021-07-01T15:49:31
139,770,188
3
0
null
null
null
null
UTF-8
Python
false
false
1,322
py
""" Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−2^31, 2^31 − 1]. For the...
[ "eric.mlengineer@gmail.com" ]
eric.mlengineer@gmail.com
87633fa653170b11500e6ce6c575b271641b5cb1
62e9fb33329fbefa89287e5bc343cb9c120306a1
/tensorflow_probability/python/experimental/nn/convolutional_layers_v2_test.py
963c3f454ef5ba4bf5e747474a484e12150550fe
[ "Apache-2.0" ]
permissive
npfp/probability
3c103d4b9d7a72d3d16eb79b1e4f648afbaca057
3911f4463cdcca6cc118633742430885fb0c88cb
refs/heads/master
2022-05-01T14:23:40.504258
2022-04-07T20:08:45
2022-04-07T20:10:58
246,853,846
0
0
Apache-2.0
2020-03-12T14:23:04
2020-03-12T14:23:03
null
UTF-8
Python
false
false
5,851
py
# Copyright 2019 The TensorFlow Probability Authors. # # 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 o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
abffda888ed0fd0cbb18028af0084c011d97402d
938650c8a8191a4203462e44ff9684b01fa61d54
/ListsAdvanced/Problem3MidExam.py
4023e40e7d1620e8fd412172bf38579610c78e43
[ "MIT" ]
permissive
mironmiron3/SoftuniPythonFundamentals
838e91e36531b59ea382a3aaaad3e71710a396a6
4f2d968250ae5c58c2b60242da013fe319781c6b
refs/heads/main
2023-03-31T19:07:49.183225
2021-04-02T07:43:59
2021-04-02T07:43:59
353,728,507
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
available_cards = input().split(":") new_deck = [] command = input() while not command == "Ready": commands = command.split() if commands[0] == "Add": if not commands[1] in available_cards: print("Card not found.") command = input() continue new_de...
[ "noreply@github.com" ]
mironmiron3.noreply@github.com
95f7489074851714bb2cbb2fee4037f59781eeb2
7aaf08047ad3e3d539dd20309648740cd11b5950
/modules/sdnpwn_common.py
8452d45bf7129a3f9e0627f6c2496f60f5b4e9c6
[ "MIT" ]
permissive
Grukz/sdnpwn
50e2a236f18de09daa40121c67ab53aba43c8390
c1d0277110a398dcc3fa6c9b597a02c8d028086d
refs/heads/master
2021-06-26T08:32:48.921135
2017-09-11T15:00:44
2017-09-11T15:00:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,882
py
import netifaces from scapy.all import * from random import randint from subprocess import check_output from tabulate import tabulate SUCCESS = "\033[32m[*]\033[0m " WARNING = "\033[93m[!]\033[0m " ERROR = "\033[91m[!]\033[0m " NORMAL = "\033[0m[+]\033[0m " VERBOSE = " " SDNPWN_MODULE_USAGE = [] # sdnpwn genera...
[ "dylan@admin-dell.admin-dell" ]
dylan@admin-dell.admin-dell
baa8ad8c8aa770dd1c384019ef7fd5f13026eebc
dcff14b40e9ae8eee237777d7689897d6c6251f8
/section9/lecture_041.py
dd9884166a60a6e7145ea516d7f6e83f190bcc9b
[]
no_license
nirzaf/python_excersize_files
bebdfd0dbd9e2c5991c7aa3ff56b0ab5def0707c
960f0935483729648aea17456c813ccf65d99149
refs/heads/master
2021-03-25T16:02:59.573403
2020-03-16T09:57:23
2020-03-16T09:57:23
247,631,346
25
0
null
null
null
null
UTF-8
Python
false
false
379
py
### Tony Staunton ### Interest rate checker using if-elif-else # Get user balance balance = input("What is your bank balance?") if int(balance) <= 0: print("Would you like to make a deposit?") elif int(balance) <= 50: print("You do not qualify for interest.") elif int(balance) < 100: print("Your inerest ...
[ "mohamed.fazrin@staff.broadbandsolutions.com.au" ]
mohamed.fazrin@staff.broadbandsolutions.com.au
a2b655eff997a9e7b2fc221d1fed9f292086fe47
b4724160fa87451ae45b43f320e90dce946629a0
/marketplace/deployer_util/overlay_test_files.py
71f87c2fbfe19d70ea24b28dcb0698081d0e6d07
[ "Apache-2.0" ]
permissive
DalavanCloud/marketplace-k8s-app-tools
a2b95393664ab87817732246c458c3c7d385174a
96d5ebd4b4e9a398ade8eddac24c8d9ffe84ed59
refs/heads/master
2020-04-22T13:15:35.196338
2019-02-11T21:42:54
2019-02-11T21:42:54
170,402,828
1
0
Apache-2.0
2019-02-12T22:44:08
2019-02-12T22:44:07
null
UTF-8
Python
false
false
1,527
py
#!/usr/bin/env python # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "noreply@github.com" ]
DalavanCloud.noreply@github.com
307a7e5fe4ea9b9695dcc16eb6cec4100dda4471
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/rating_canada_movies_type.py
4b928313671a9ffaf8d482cba89536b9b8a8fcd8
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
687
py
from enum import Enum class RatingCanadaMoviesType(str, Enum): # Default value, allow all movies content AllAllowed = "allAllowed", # Do not allow any movies content AllBlocked = "allBlocked", # The G classification is suitable for all ages General = "general", # The PG classification advis...
[ "GraphTooling@service.microsoft.com" ]
GraphTooling@service.microsoft.com
aed8cf9e7ff30d72f7e55c3e720bcfa31e4a99ab
4df22cee4c4ee3ce87c7db1b01e6ece950357cce
/store/migrations/0004_product_image.py
3c355212d6f1618f62126587c90c62753494341b
[]
no_license
Vazimax/eco_website
88c9ad190fcef63da937c1eebaa787282fa9f99a
fb1e01614e653b3e906d189a9973daee4dcba070
refs/heads/main
2023-06-02T02:28:06.766616
2021-06-20T15:41:25
2021-06-20T15:41:25
378,681,288
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
# Generated by Django 3.1.7 on 2021-03-16 14:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0003_auto_20210316_1452'), ] operations = [ migrations.AddField( model_name='product', name='image', ...
[ "aboubakr.elhabti@gmail.com" ]
aboubakr.elhabti@gmail.com
b080a7e61bd63171f0212668aa335da66d1d6605
4c5c34270e0df58b6efbdd107ad1a4345278c56a
/src/melange/src/soc/cache/logic.py
37fc93452605885736edfaf4962089aeebbf99cc
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MatthewWilkes/mw4068-packaging
adce06a8e5b6436cf5ef8b64e930e04dacf501a0
5c5d50eea89372e967994dac3bd8b06d25b4f0fa
refs/heads/master
2020-05-31T00:17:37.772457
2010-04-07T06:09:54
2010-04-07T06:09:54
32,225,513
0
0
null
null
null
null
UTF-8
Python
false
false
2,133
py
#!/usr/bin/env python2.5 # # Copyright 2009 the Melange authors. # # 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 applic...
[ "madhusudancs@gmail.com" ]
madhusudancs@gmail.com
1b9cafcd2f0a7519651d87355ff8f633d6d3b09c
70bcdd97318a85acc5bc3f4d47afde696fb7a33b
/jqdata/gta_tables/STK_MANAGE_CMEMBERS.py
4f5bcd838a5a66a882ad86c3a14d75f0303611b8
[]
no_license
Inistlwq/tulipquant-code
f78fe3c4238e98014f6d4f36735fb65a8b88f60d
5959bfe35b6ae2e0e2a204117bda66a13893c64c
refs/heads/master
2020-03-31T11:25:12.145593
2018-04-22T02:16:16
2018-04-22T02:16:16
152,175,727
2
0
null
2018-10-09T02:31:34
2018-10-09T02:31:33
null
UTF-8
Python
false
false
813
py
# coding: utf-8 from sqlalchemy import BigInteger, Column, DateTime, Integer, Numeric, SmallInteger, String, Table, Text, text from sqlalchemy.dialects.mysql.base import LONGBLOB from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() metadata = Base.metadata class STK_MANAGE_CMEMBERS(Ba...
[ "wonghiu45@163.com" ]
wonghiu45@163.com
957007e2b6be4b651e1529477c950e9823638ad7
f4b60f5e49baf60976987946c20a8ebca4880602
/lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/config/rtaeconfigsnapshotcont.py
38db199cd1af0ba384f9062d863fab5d1d34fba9
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
4,563
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "collinsctk@qytang.com" ]
collinsctk@qytang.com
81ff1d34dd39cd31136fcd37cdccb90ed353ef2b
7fae23d734356d2016f13f231673ee9ea1b6efd5
/catkin_ws/build/ur10_moveit_config/catkin_generated/pkg.installspace.context.pc.py
5b15236f7fbca27028d61465ac9228b8c6c24090
[]
no_license
Tidu09/Eyantra
57c4fd01a39305ff01758ed021643d894e61e60f
2bca1cdce1742e79f1550b832cda086dc22e946f
refs/heads/main
2023-01-12T07:57:54.356909
2020-11-22T05:41:40
2020-11-22T05:41:40
306,226,769
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "ur10_moveit_config" PROJECT_SPACE_DIR...
[ "uditsharma.2000@gmail.com" ]
uditsharma.2000@gmail.com
63dc109c6e39f2f7edce15328af33f8d6528c990
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03635/s416200108.py
8f857cc72bf4ce9a819a306a20c5cb4007542a52
[]
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
60
py
n,m = [int(i) for i in input().split()] print((n-1)*(m-1))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
412062a4ab1281e579feaab6c892ec97f6572996
0d5a5a9c25035f8e85a67a1ca63e8408f8b191f1
/tests/fractions_tok/test_fractions_tok.py
ed37dd55db18490dd8bd7802940fc3508e3aea6b
[ "MIT" ]
permissive
aroberge/ideas
abbb8e793b2020ba08caf49dce18fbf7c7e38d3f
a53810451d9daeff986edcbb2e2f0921025a4d62
refs/heads/master
2023-01-29T04:42:43.005232
2023-01-16T00:33:29
2023-01-16T00:33:29
234,971,532
67
7
NOASSERTION
2023-09-11T07:25:33
2020-01-19T21:35:18
Python
UTF-8
Python
false
false
206
py
from ideas.examples import fractions_tok from ideas.import_hook import remove_hook def test_simple_addition(): hook = fractions_tok.add_hook() from . import addition # noqa remove_hook(hook)
[ "andre.roberge@gmail.com" ]
andre.roberge@gmail.com
cf95e4dc55c8f8cfe24cb56a7397e8ee5bbd1c02
f0066a2eb7b2f92d7c04dc314af6be320724c614
/nova/virt/xenapi/agent.py
dad629ad9d417c731af947f80cd9cc83e0e156bc
[ "Apache-2.0" ]
permissive
hyphon81/nova-for-gpu-passthrough
80392ea7462ade8457e77843482387d8f6593797
7c164980d7355d8fc40a6b155e31e325191b6a5e
refs/heads/master
2021-01-20T14:10:38.016142
2017-02-10T08:03:45
2017-02-10T08:03:45
82,746,438
0
1
Apache-2.0
2020-07-24T00:41:48
2017-02-22T01:31:23
Python
UTF-8
Python
false
false
17,006
py
# Copyright (c) 2010 Citrix Systems, Inc. # Copyright 2010-2012 OpenStack Foundation # # 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/LICENS...
[ "zero812n@gmail.com" ]
zero812n@gmail.com
ebe30c8c88ff96755d776aa0d00df68de6f3615e
055581f9d6c81eda2f73ea05b90b7a2256da1219
/parts/zodiac/pyramid/tests/pkgs/includeapp1/__init__.py
0f89a56ed0b1703d0aaa8dd167b973ffc9b8b0f2
[]
no_license
Tosti770/zodiac
488a91c3e872a62d09a3ebb22a951dadcbd1c2df
af0380e20eb90699a84e3b7c6cb2085a1fb81667
refs/heads/master
2020-04-13T06:54:26.333228
2014-03-03T20:10:11
2014-03-03T20:10:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
/home/ruben/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/tests/pkgs/includeapp1/__init__.py
[ "ruben_tc@hotmail.es" ]
ruben_tc@hotmail.es
fdf753dbdb488fd75f762ef43edd88e4c7c8ff6c
cd5f6f8da3f7864439b3952ebb0bab8de37b0006
/codddddd/dbooktop250.py
bf57257d2655c8b9eec24aabcfcdcd4f4b859210
[]
no_license
etmorefish/pyyyy
7eaab3c12238fb7089bca37d3cc2639a1633243b
b1cd33025286972b7ab1fcdd87569050ae172335
refs/heads/master
2023-08-07T17:32:43.280563
2021-09-12T15:21:41
2021-09-12T15:21:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,963
py
import requests from lxml import etree import re import random import json from pandas import DataFrame dbookname = [] dquote = [] drating_nums = [] dimgurl = [] dinfo = [] dauthor = [] dtranslater = [] dpublisher = [] ddate = [] dprice = [] headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) Appl...
[ "849078367@qq.com" ]
849078367@qq.com
fae42858e5ba84fd2e94d51e4e3cf94b77f96c58
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03504/s319540660.py
ee70313edc9a2fbc0284b356f73597811e6542df
[]
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
475
py
n, c = map(int, input().split()) data = [[0 for i in range(c+1)] for j in range(10**5+2)] for i in range(n): s, t, channel = map(int, input().split()) data[s][channel] += 1 data[t+1][channel] -= 1 for i in range(c+1): for j in range(1,10**5+2): data[j][i] += data[j-1][i] ans = 0 for i in range(1...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2aa31687258ea7458be70cd25c6128a903c1bf41
a281687eed49151ef612908a2a1de99667641110
/pydlshogi/common.py
5f3c861e2227821852b6be2d2c46cf296b887be0
[]
no_license
TukamotoRyuzo/python-dlshogi
3c752a2bdd5e822d1455b99aa17bf23a7bf66b9d
9cf0e38295bd547366a0eaa2a86a2a1ae3f6db1c
refs/heads/master
2020-03-29T15:01:21.593297
2018-10-05T12:30:16
2018-10-05T12:30:16
150,041,082
0
1
null
null
null
null
UTF-8
Python
false
false
1,729
py
import shogi # 移動の定数 MOVE_DIRECTION = [ UP, UP_LEFT, UP_RIGHT, LEFT, RIGHT, DOWN, DOWN_LEFT, DOWN_RIGHT, UP2_LEFT, UP2_RIGHT, UP_PROMOTE, UP_LEFT_PROMOTE, UP_RIGHT_PROMOTE, LEFT_PROMOTE, RIGHT_PROMOTE, DOWN_PROMOTE, DOWN_LEFT_PROMOTE, DOWN_RIGHT_PROMOTE, UP2_LEFT_PROMOTE, UP2_RIGHT_PROMOTE ] = range(20) # 成り...
[ "tadaoyamaoka@gmail.com" ]
tadaoyamaoka@gmail.com
0ccb41246035d5d808f86b28e334eb058bf83ea6
c5746efe18a5406764c041d149d89c0e0564c5a5
/2. Python高级软件开发技术/2. IO/Day10/select_server.py
03c9998eb985ef54dbbc1ecd0898523b5670329c
[]
no_license
ShaoxiongYuan/PycharmProjects
fc7d9eeaf833d3711211cd2fafb81dd277d4e4a3
5111d4c0a7644c246f96e2d038c1a10b0648e4bf
refs/heads/master
2021-12-15T05:45:42.117000
2021-11-23T06:45:16
2021-11-23T06:45:16
241,294,858
3
1
null
2021-02-20T15:29:07
2020-02-18T07:06:08
Jupyter Notebook
UTF-8
Python
false
false
566
py
from socket import * from select import select """ 可否同时监控多个客户端和一个监听套接字 有客户端链接 --》 监听套接字 客户端给我发消息 --》 对应的客户端套接字 """ s = socket() s.bind(('0.0.0.0', 11111)) s.listen(3) rlist = [s] while True: rs, ws, xs = select(rlist, [], []) if rs[0] == s: c, addr = s.accept() rlist.append(c) else: ...
[ "ysxstevenpp123@gmail.com" ]
ysxstevenpp123@gmail.com
313bf3ae39b9e9f6c7a1946a9c2afcc5afbe6bc3
808443b95bf49567ee82f1967892156cf1c6a62c
/0x03-caching/3-lru_cache.py
dda9407fd6de225cdf45c205cdce0dae8939d8ce
[]
no_license
NasserAbuchaibe/holbertonschool-web_back_end
f0d93901b193058fd70451678e1d6174537bd226
3a051eab09c1c50ac56c05f530c3a4b616dde5f7
refs/heads/master
2023-08-25T13:34:30.278442
2021-10-12T04:07:47
2021-10-12T04:07:47
361,899,300
0
0
null
null
null
null
UTF-8
Python
false
false
1,183
py
#!/usr/bin/python3 """sumary_line""" from collections import OrderedDict BaseCaching = __import__('base_caching').BaseCaching class LRUCache(BaseCaching): """sumary_line""" def __init__(self): super().__init__() self.order_dict = OrderedDict() def put(self, key, item): """[sum...
[ "nasser_abuchaibe@hotmail.com" ]
nasser_abuchaibe@hotmail.com
58f31e1f5f3d950fff3ea0f982de253cb7067037
9061cf35d300ba84113a9e86e897ee7594e14353
/torcurl/listeners/ExitRelay.py
7ac5b72bacb3afa1c1e78956ada9af7ec51509e7
[ "MIT" ]
permissive
AsiganTheSunk/python-torcurl
cd1b98b6e58c217e57463c345d058efadafc8a3f
9489a3b9b0e45bd0ff1f5279d8e4c8ed71a460f7
refs/heads/master
2021-01-01T19:45:27.984041
2017-09-06T18:06:19
2017-09-06T18:06:19
98,675,120
1
0
null
null
null
null
UTF-8
Python
false
false
1,498
py
import os import sys class ExitRelay(): def __init__(self, exit_relay='', exit_address='', exit_fingerprint='', exit_nickname='', exit_locale=''): self.exit_relay = exit_relay self.exit_address = exit_address self.exit_fingerprint = exit_fingerprint self.exit_nickname = exit_nicknam...
[ "asiganthesunk@gmail.com" ]
asiganthesunk@gmail.com
e9277436cb8d95bc17e2100a049df4bbaefb5ccf
59636b143a2ab189145b17a7ea9a38de5af1f7a5
/All/selenium_all/PC_zonghe_selenium/login/wchen_china.py
ea6eaa98ef77d49fd2d75ccb5493ca59e52f60ba
[]
no_license
woshichenya/hezi
880a70c34cc61b6b6bcf1ccb65fa54989595fb71
4211ff8ef78f5d15d8fc8065247f916dfe9d305d
refs/heads/master
2020-04-28T21:46:02.664025
2019-05-14T08:47:33
2019-05-14T08:47:33
175,593,966
1
0
null
null
null
null
UTF-8
Python
false
false
797
py
# coding: utf-8 from beifen import baibaoxiang '''必改参数''' userid="3482" url="https://xiao.vdongchina.com" username="vdongshops" pasword="1234567890" name="陈雅小号" shopname="微动商城" '''web开始''' GO= baibaoxiang.geturl Go= baibaoxiang.geturl.llq go= baibaoxiang.geturl(url) Go.maximize_window() def login_40(): try: ...
[ "bj_xiaoya@163.com" ]
bj_xiaoya@163.com
270fe2eff217283720608fe0161226fd84fa6683
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startCirq1556.py
3b19093f8f347119ae4a15743aebed6f0816e2c5
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,374
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=5 # total number=64 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
bff12726d51bf2d8ae52233095def1a6b3bcc926
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/350/78009/submittedfiles/testes.py
61d398824b796aa02bb9f14d6198742908426a70
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO C = input('Digite C :') F = int(input(((9*C) + 160)/5)) print('F = ')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
7ad6f2b692c1f596733ccaab79171a7365539d2d
40869fdb3424a578fa2207d0df16c292e748cbca
/tests/particle/countourtest.py
bc526905e82ba8f244414befb71e020e9f618e63
[]
no_license
will-hossack/Python
890006f8b0242cfc848c06cc382a4672f58b3167
1cdd04c418a3824ee28f3cb8044732756b89ecf3
refs/heads/master
2021-01-18T02:08:47.176503
2020-05-20T19:50:00
2020-05-20T19:50:00
39,899,770
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
import matplotlib.pyplot as plt import numpy as np x = np.arange(-5, 5, 0.1) y = np.arange(-5, 5, 0.1) xx, yy = np.meshgrid(x, y, sparse=False) print (xx) z = np.sin(xx**2 + yy**2) / (xx**2 + yy**2) h = plt.contourf(x,y,z) plt.show()
[ "will.hossack@gmail.com" ]
will.hossack@gmail.com
dcb4432eded7e1d4d91636692e424f9a3974f414
3fa4a77e75738d00835dcca1c47d4b99d371b2d8
/backend/pyrogram/raw/functions/users/get_full_user.py
3776bde4621f255b20f729bed81495434b70e88a
[ "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,126
py
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
[ "taleb.zarhesh@gmail.com" ]
taleb.zarhesh@gmail.com
193912e483b460780e468c73ce95c94383796696
76800454958c36c26d828ee989f181990813955f
/libml/utils/torch.py
e7b8f3375c79c40d008d68d7df64c9d0189e68b5
[]
no_license
JuneXia/proml
374b27b1d1c2d983aae4fed3141a2864a7196a1b
fbe86564013e7556c30d98c702c1ba6251f21851
refs/heads/master
2022-12-27T23:38:16.838639
2020-10-11T10:05:32
2020-10-11T10:05:32
267,207,978
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
from thop import profile from torchvision.models import resnet50 import torch if __name__ == '__main__': input_size = 96 net = resnet50() input = torch.randn(1, 3, input_size, input_size) flops, params = profile(net, inputs=(input,)) """ flops params mobilenetv1-阉割版: 62100...
[ "junxstudio@sina.com" ]
junxstudio@sina.com
89bf681dd5a27f6a948ee33b87e12b0523d2bae8
57a9ef225cf7817869cc14dab885ae9074d6cc5e
/main.py
54ae39015462fa4ddedb6d08929290953e1b0400
[]
no_license
mdornseif/Zwitschr
de313e29f26c59dda530615ed4f8140132d4401e
62567c75489d4c8cf89fe96c5ea3b934a46c13b0
refs/heads/master
2016-08-04T20:53:22.503805
2010-09-24T05:53:04
2010-09-24T05:53:04
890,729
0
0
null
null
null
null
UTF-8
Python
false
false
13,744
py
#!/usr/bin/env python # encoding: utf-8 from google.appengine.dist import use_library use_library('django', '1.1') from google.appengine.api import memcache from google.appengine.api import users from google.appengine.api import xmpp from google.appengine.ext import db from google.appengine.ext import webapp from go...
[ "md@hudora.de" ]
md@hudora.de
5d9ecb6dc74d211dfabc219842b83dc6a77491c3
107ebb6d25812d12718d3f0731770318fb0eb2d2
/study_code/Day_26/office办公自动化/03ppt.py
d8ceacacfce15b5503c07a45440c9837d3d9ed4a
[]
no_license
taoranzhishang/Python_codes_for_learning
0c5fa25a5da80e5cbca8cf0b9b3703d488e1af6f
23d12b8c7524f3672ff3baed94dbfed04df821b5
refs/heads/master
2023-03-09T12:16:02.749807
2021-02-26T13:04:08
2021-02-26T13:04:08
315,070,954
1
0
null
null
null
null
UTF-8
Python
false
false
842
py
import win32com import win32com.client def makeppt(name): try: ppt = win32com.client.Dispatch("PowerPoint.Application") pres = ppt.Presentations.Add() # 增加一个页面 ppt.Visible = True s1 = pres.Slides.Add(1, 1) # 增加一个页面 s1_0 = s1.Shapes[0].TextFrame.TextRange # 找到第一个文本 ...
[ "taoranzhishang@hotmail.com" ]
taoranzhishang@hotmail.com
5d6ce8260b5d68aa44922e20920da6a022edf7d2
97dae48fa3c613a84655c1c0b12cdc0db2c555bb
/algorithm/patternsearch/rabin_karp_search.py
28bc60ddd56840ff1544c1c915f9011ac8535b6f
[]
no_license
klknet/geeks4geeks
6aa5841b15be41057dc987524721ea1ea37e02ea
d7d9099af7617a4000f38c75d2c7214bed570eda
refs/heads/master
2021-07-12T06:34:30.048691
2020-06-22T07:51:14
2020-06-22T07:51:14
170,288,225
1
0
null
null
null
null
UTF-8
Python
false
false
1,768
py
""" Rabin-Karp Algorithm for Pattern Searching. Rabin-Karp algorithm matches the hash value of the pattern with the hash value of the current substring of text, and if the hash values match then it only starts matching individual characters. So Rabin-Karp algorithm needs to calculate hash values for following strings. ...
[ "konglk@aliyun.com" ]
konglk@aliyun.com
5131bd36542b9be6d832b55d68fdf4a2f924f839
a4525c981552117dabdf5f952ced15997199da32
/ask-smapi-model/ask_smapi_model/v1/skill/invocations/request.py
b68a06bdff6a8f0fd2265c5e1ad612bf9af0b631
[ "Apache-2.0" ]
permissive
muskanmahajan37/alexa-apis-for-python
29b3b8e45bb009fa56ba0a2a73ed2f50efe77f65
8e0c90a3031f5afd8a2e62d19b51fe392e7da1af
refs/heads/master
2022-11-09T01:14:58.947495
2020-06-25T17:33:19
2020-06-25T17:33:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,537
py
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
[ "ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com" ]
ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com
dff61698ba2b6a51fa5f4fdb10753584b5c892b6
725ac5a0bf72829be627bf8dc82fdc51ba0f94ae
/OCR/OCR提取视频中的字幕/step1_extract_frame.py
1b4f8ca46e3795b70fc8e7823250b1acef9e9303
[]
no_license
shawroad/NLP_pytorch_project
fa14b6e4a156229765e1d552901d0492d8e1def3
1272fed2dc8fef78a9ded0f1ae1644d613a3b57b
refs/heads/master
2023-06-25T02:37:35.503251
2023-06-12T10:57:11
2023-06-12T10:57:11
229,694,655
530
104
null
2020-12-08T09:21:47
2019-12-23T06:54:29
Python
UTF-8
Python
false
false
1,099
py
""" @file : step1_extract_frame.py @author : xiaolu @email : luxiaonlp@163.com @time : 2022-04-01 """ import cv2 if __name__ == '__main__': video_path = './data/video.mp4' # 1. 加载视频 videoCapture = cv2.VideoCapture(video_path) # 2. 读取每一帧 success, frame = videoCapture.read() # 3. 视频的总帧数 ...
[ "luxiaonlp@163.com" ]
luxiaonlp@163.com
43764c1f02d7a7355c15fc9aa434deb2629b0af0
805e304438d350c4ab320826786ba0a5390a1f91
/ecom/migrations/0004_auto_20200510_0653.py
9e0dc37dd0e325cbcb47cd2a68a87169530a97d3
[]
no_license
codekoma/ecommerce
8f4d6d5fbeb49d2c0a103db9ca885608614a2feb
02389af6966f62965b2b37cf25a1ddd41a183179
refs/heads/master
2022-07-05T14:59:02.724384
2020-05-13T04:55:35
2020-05-13T04:55:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
# Generated by Django 3.0.5 on 2020-05-10 06:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ecom', '0003_auto_20200510_0652'), ] operations = [ migrations.RenameField( model_name='category', old_name='Subcategory_nam...
[ "chetankoranga3@gmail.com" ]
chetankoranga3@gmail.com
dba30d6b9ba5abd6c4651c91be9e80a86581dfbf
21a31701fd375d8e199d82bd4307f1e2adc99a0d
/cooler/sandbox/dask.py
a4381cbb34adedd9bb2b30d9c340f681d87fd1d1
[ "BSD-3-Clause" ]
permissive
luisdiaz1997/cooler
e08e4d886a408e5d62d6b8cc528b96ac85378b9f
d6a7d19e5933d5a2a8a31a93bb13c0f06ccb075d
refs/heads/master
2021-08-26T04:47:58.330901
2021-04-01T09:12:46
2021-04-01T09:12:46
223,371,015
0
0
BSD-3-Clause
2019-11-22T09:38:22
2019-11-22T09:38:21
null
UTF-8
Python
false
false
5,791
py
from __future__ import absolute_import, division, print_function from itertools import product from math import ceil import numpy as np import pandas as pd import h5py try: from sparse import COO except ImportError: raise ImportError("The 'sparse' package is required to use dask") from dask.base import token...
[ "nabdennur@gmail.com" ]
nabdennur@gmail.com
0d8d996188f7052f93a02e9f9c9438c8a9728b92
06f5f3b11294396cf536f4467e34b50ff2d85b6f
/utils.py
e1ad1559a8d96b7b0caa4206b5f89afbe5e2a9aa
[]
no_license
sungminoh/alfred-workflow-yahoo-finance
21ffa9a236a24f32b68094079b41c3e109a617a7
a2cdeb04d7c7f425301d739ab5ec91d15539d715
refs/heads/master
2023-08-19T16:37:25.905132
2021-10-04T17:16:15
2021-10-04T17:16:15
394,235,719
1
0
null
null
null
null
UTF-8
Python
false
false
3,233
py
import json import re import sys import unicodedata from threading import Thread if sys.version_info[0] == 3: from urllib import request as urllib else: import urllib2 as urllib def platten_nested_list(l): ret = [] for v in l: if isinstance(v, list): if len(v) == 1: ...
[ "smoh2044@gmail.com" ]
smoh2044@gmail.com
e6c7994c1dfa8c9d61515f12b45d2ee555cbb647
52ad58b5412f9124822283d168391e5e2b8fa150
/Python基础&并发编程/day40/协程实现socket04/server.py
e27ca426bd385006f8630ff0551a7e45d5adb8da
[]
no_license
JiangHuYiXiao/PythonStudy
69ad9795faaf24a6166ab21cae564f6461e1363e
aeebce2cacbf3757d25c8c4d24d15639e0bb8e37
refs/heads/master
2021-08-17T16:54:43.477502
2021-08-11T01:06:11
2021-08-11T01:06:11
153,078,386
1
0
null
null
null
null
UTF-8
Python
false
false
562
py
# -*- coding:utf-8 -*- # @Author : 江湖一笑 # @Time : 2019/11/25 8:19 # @Software : Python_study # @Python_verison : 3.7 from gevent import monkey;monkey.patch_all() import socket import gevent import time ss = socket.socket() ss.bind(('127.0.0.1',8868)) ss.listen() def task(conn): while True: ...
[ "1163270704@qq.com" ]
1163270704@qq.com
bd07ba932f2c593b74b76bd69ecf93e808cd7f76
9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56
/google/ads/googleads/v9/common/types/feed_common.py
ffc1465e330a3e1246e778f582777640f51e6cdc
[ "Apache-2.0" ]
permissive
GerhardusM/google-ads-python
73b275a06e5401e6b951a6cd99af98c247e34aa3
676ac5fcb5bec0d9b5897f4c950049dac5647555
refs/heads/master
2022-07-06T19:05:50.932553
2022-06-17T20:41:17
2022-06-17T20:41:17
207,535,443
0
0
Apache-2.0
2019-09-10T10:58:55
2019-09-10T10:58:55
null
UTF-8
Python
false
false
1,400
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
GerhardusM.noreply@github.com
27cd1e14c39f0fd33e5cb1ac72f2d2f447dd3f25
7101871e7a82d202483ada3053fec155ce7824a6
/test/functional/feature_cltv.py
130753e23f12ce78d7cea9bf1df79836160fccca
[ "MIT" ]
permissive
trumpcoinsupport/TrumpCoin
633a9992e46cab00774d01e569f4611b7f6b4b54
098c62ea249a63ca1cc31d5f37c6209ccdf50e2a
refs/heads/master
2023-01-11T20:22:03.469608
2021-12-31T10:04:39
2021-12-31T10:04:39
194,952,065
15
14
MIT
2023-01-08T02:49:09
2019-07-03T00:24:45
C++
UTF-8
Python
false
false
6,350
py
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP65 (CHECKLOCKTIMEVERIFY). Test that the CHECKLOCKTIMEVERIFY soft-fork activates at (regtest) b...
[ "sebgruby@gmail.com" ]
sebgruby@gmail.com
1b745d1bbb887ce5f8660d831ab523e076e4ceb6
d2fdd6b10b0467913971d1408a9a4053f0be9ffb
/datahub/search/large_investor_profile/test/test_models.py
d4953952d08e4179f98eef8e585336d1e7191681
[]
no_license
jakub-kozlowski/data-hub-leeloo
fc5ecebb5e4d885c824fc7c85acad8837fcc5c76
7f033fcbcfb2f7c1c0e10bec51620742d3d929df
refs/heads/master
2020-05-18T13:29:14.145251
2019-04-30T12:12:50
2019-04-30T12:12:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,833
py
import pytest from datahub.investment.investor_profile.test.factories import LargeInvestorProfileFactory from datahub.search.large_investor_profile.models import ( LargeInvestorProfile as ESLargeInvestorProfile, ) pytestmark = pytest.mark.django_db class TestLargeInvestorProfileElasticModel: """Test for the...
[ "marcus.patino-pan@digital.trade.gov.uk" ]
marcus.patino-pan@digital.trade.gov.uk
fd50fd712f4c845da4eaaece791b31bc9966394d
811dac01062c3130631d81d3c092f18916ac2e27
/Arch.Magos/function.py
a0760453a315811aa3cc733e906ac3467af41ea8
[]
no_license
KhanhNguyen1308/Arch.Magos
5409df640c565aeeccb8aeb7a0e17ec7aab890bc
1a6e39ff1bf0541c114585b324db57daf559c5ee
refs/heads/main
2023-08-01T03:42:50.483045
2021-09-18T06:38:28
2021-09-18T06:38:28
395,691,136
0
0
null
null
null
null
UTF-8
Python
false
false
1,751
py
import cv2 import nltk import json import random import pickle import numpy as np from nltk.stem import WordNetLemmatizer from tensorflow.keras.models import load_model nltk.download('punkt') nltk.download('wordnet') lemmatizer = WordNetLemmatizer() intents = json.loads(open("cfg/Arch_Master.json").read()) words = pick...
[ "khanhnguyenduy1308@gmail.com" ]
khanhnguyenduy1308@gmail.com
794166a81ae42cd650051ba3ff7547305dadc54a
e1715a1c32da9d4dd137863530c06a1003ea0c53
/main/face_extractor.py
5c823429647d943f214e877da2a6cb54e7112061
[]
no_license
devendrakushwah/automatic-attendance-using-face-recognition
e6a123074998e7c3c8da7d448598cedaf7c68cbd
a8df1677459ca0181b88612b99dc592004cffd17
refs/heads/master
2022-12-01T09:37:44.935627
2019-12-25T11:46:35
2019-12-25T11:46:35
229,424,144
1
0
null
2022-11-22T04:38:07
2019-12-21T12:27:00
HTML
UTF-8
Python
false
false
534
py
from PIL import Image import face_recognition import os import shutil def face_extract(): image = face_recognition.load_image_file("main/camera/camera_snap.jpg") face_locations = face_recognition.face_locations(image) cam_image = Image.open('main/camera/camera_snap.jpg') index = 1 shutil.rmtree('main/extracted_...
[ "idevendra08@gmail.com" ]
idevendra08@gmail.com
02d9eb8ab68af12cadc77b601c1a62c5d99067dd
23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6
/rootfs/usr/lib/pymodules/python2.6/papyon/event/__init__.py
ffd5e2ac94d9a81b5ae028a3b2dc530c3d4287ea
[]
no_license
xinligg/trainmonitor
07ed0fa99e54e2857b49ad3435546d13cc0eb17a
938a8d8f56dc267fceeb65ef7b867f1cac343923
refs/heads/master
2021-09-24T15:52:43.195053
2018-10-11T07:12:25
2018-10-11T07:12:25
116,164,395
0
0
null
null
null
null
UTF-8
Python
false
false
44
py
/usr/share/pyshared/papyon/event/__init__.py
[ "root@xinli.xinli" ]
root@xinli.xinli
2f3efb745a359e5078fdac3976a999beca17fbe0
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_321/ch33_2020_07_09_02_29_49_919925.py
487e6593f79a0b4f48dc522dae9ef69c03c23994
[]
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
400
py
def primos_entre (a,b): i = 3 n = a contagem = 0 while n <= b: if n == 2: contagem += 1 else: while (i<n): print("oi") if (n%i==0) and i == n: contagem += 1 break else: ...
[ "you@example.com" ]
you@example.com
b6240a00f9ac58abda8d451f185a183dde761bae
97b3ab895aba214ee73837f0ea2838013d42ef8a
/_113-Mersenne_primes.py
63e06f6112a4f9a4927de9086e08886e9dcd238c
[]
no_license
abhisheknm99/APS-2020
97b0f0ed8cf53c8e9686727ccac43990728f22d8
9ac83a9551533e47ff85cc9da5cc164b4670d6f8
refs/heads/master
2020-12-21T04:56:41.001669
2020-04-28T19:06:21
2020-04-28T19:06:21
236,313,601
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
#prints mersenne numbers less than n #mersenne no->2^p-1 is prime def SieveOfEratosthenes(n, prime): for i in range(0,n+1) : prime[i]=True p=2 while(p*p<=n): if (prime[p]==True) : for i in range(p*2,n+1,p): prime[i] = False p += 1 def mersennePrimes(n) : prime=[0]*(n+1) SieveOfEratosthenes(n, ...
[ "abhisheknm99@gmail.com" ]
abhisheknm99@gmail.com
1da98c59c80d47f6048ee60365332ed09cedd1c2
ac7435b0b3faa6b6cf51d0d6b43984b77b70a37c
/nova/compute/rpcapi.py
0168c7a11c50c9c7dee3662c6e2422d3d0ba1864
[ "Apache-2.0" ]
permissive
gokrokvertskhov/nova-mesos-driver
04688cd51cad9790cf5460b44ba527b51080760d
fdb9c8468f6a8680c19095a81bf77884ae61e170
refs/heads/master
2021-01-10T10:51:07.096729
2016-03-25T01:45:10
2016-03-25T01:45:10
54,685,199
0
1
Apache-2.0
2020-07-24T01:00:58
2016-03-25T01:22:06
Python
UTF-8
Python
false
false
43,954
py
# Copyright 2013 Red Hat, Inc. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
[ "gokrokvertskhov@mirantis.com" ]
gokrokvertskhov@mirantis.com
9a457ebad3b43ac142d608227fb74525780d87e4
5e30d97e95024bbea0729f80767d07849f2cedd7
/esphomeyaml/components/pcf8574.py
82be8712925ebba74d0780c52cc556fa5fb96643
[]
no_license
Landrash/esphomeyaml
42634977d96d38a0ef207df499fc2b2dd62a419a
eec163644d7c0a9cac9483458a1e7a70e1409582
refs/heads/master
2020-03-16T23:15:56.178162
2018-05-06T16:23:23
2018-05-06T16:23:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
import voluptuous as vol import esphomeyaml.config_validation as cv from esphomeyaml.const import CONF_ADDRESS, CONF_ID, CONF_PCF8575 from esphomeyaml.helpers import App, Pvariable DEPENDENCIES = ['i2c'] PCF8574_SCHEMA = vol.Schema({ vol.Required(CONF_ID): cv.register_variable_id, vol.Optional(CONF_ADDRESS, ...
[ "otto@otto-winter.com" ]
otto@otto-winter.com
d6c9e5dd20d9f1f6005612e149447359510881b4
f67653e2f610850b1d34ad5f12c5fbca83cca1a0
/test_geostore_routing/wsgi.py
cf96d1c0052c842733e9e68b4a940a5f847df1fb
[]
no_license
Terralego/django-geostore-routing
2acbc9ef8d82a00aa605ef63ad53e8e8b269f7f2
0a8723748e9f508f4f3b133e8935416805a3e786
refs/heads/master
2023-03-23T22:17:52.336369
2021-03-12T17:48:24
2021-03-12T17:48:24
307,410,471
3
0
null
2021-03-12T17:40:48
2020-10-26T15:03:28
Python
UTF-8
Python
false
false
419
py
""" WSGI config for test_geostore_routing 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...
[ "j.e.castagnede@gmail.com" ]
j.e.castagnede@gmail.com
a8561ef0322896554fa88a71e84120f0c5efaba7
4f0fd729340ba67f4f560884276cf25934be1919
/python/moneysocket/core/message/notification/rendezvous.py
1fc939a78180a705c5ffd18baf2cfe9cd2266653
[ "MIT" ]
permissive
jarret/prototype
d85e524b73126264be83e028bbfa8369e9f051a0
74124b8ea74061a97f092c3f973907b42b2de8e8
refs/heads/master
2023-01-19T07:54:34.145166
2020-08-07T02:55:11
2020-08-07T02:55:11
286,554,581
0
0
MIT
2020-08-10T18:49:57
2020-08-10T18:49:56
null
UTF-8
Python
false
false
1,430
py
# Copyright (c) 2020 Jarret Dyrbye # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php import string import json from moneysocket.core.message.notification.notification import ( MoneysocketNotification) class NotifyRendezvous(Mon...
[ "jarret.dyrbye@gmail.com" ]
jarret.dyrbye@gmail.com
25e8561b0f1dcc12f21d6ce7cb8c8089f6fd34dd
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_targeted.py
1da6a9465b482525fd9a07238d90cf809d39786f
[ "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
240
py
from xai.brain.wordbase.verbs._target import _TARGET #calss header class _TARGETED(_TARGET, ): def __init__(self,): _TARGET.__init__(self) self.name = "TARGETED" self.specie = 'verbs' self.basic = "target" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
9864965d570d80667837c7d2317e398040d2d9ac
cf4104a12ac08371ecca64f6a8bc6aeb6985c004
/project/system.py
4e1faf9541a264c5e36a9f85aa91cb1071f34df0
[]
no_license
RuzhaK/ExamPreparationOOP16082020
ddb952e98946110563530c36cf7aff4146022b9b
0cbf5d7b3cdb7bf715ac9718469d6723c25b4d4e
refs/heads/master
2023-06-10T04:27:12.031812
2021-07-06T07:22:08
2021-07-06T07:22:08
383,189,294
0
0
null
null
null
null
UTF-8
Python
false
false
3,626
py
from project.hardware.hardware import Hardware from project.hardware.heavy_hardware import HeavyHardware from project.hardware.power_hardware import PowerHardware from project.software.express_software import ExpressSoftware from project.software.light_software import LightSoftware from typing import List from project...
[ "rkaraatanasova@gmail.com" ]
rkaraatanasova@gmail.com
92d52108298d1b6fb3fd811890df132cbba62486
3518c26e3b305d5803fb6703bc1c94219cd3653e
/cirq/value/value_equality.py
8713b21be454ac61be7c5d3227c174af9dc8254b
[ "Apache-2.0" ]
permissive
verult-prowtest/Cirq
9ad527f5437f034f0cb69d6c561be56797968b80
653bf210f04635f6d8fde80d37cb25edbab6eb31
refs/heads/master
2020-05-16T21:51:40.001580
2019-04-24T19:31:44
2019-04-24T19:31:44
178,077,411
0
0
Apache-2.0
2019-03-27T21:30:44
2019-03-27T21:30:44
null
UTF-8
Python
false
false
8,365
py
# Copyright 2018 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "craiggidney+github+cirqbot@google.com" ]
craiggidney+github+cirqbot@google.com
e472c3585a442f29cad954c7dde05fb03f6e0fc5
6e7950a06c03a2dd62edea30e3384eaa5871bc13
/multiple_returns/main.py
3bffbba57bfdb4070d3f51722fbd8fa22459ede6
[]
no_license
roblivesinottawa/Python3-Programs-Scripts
2290305ef82d5736b9b8cc5a72690216e2fea35d
b9d109f1f666af1f1891ebe802ea1bc5ecc583b9
refs/heads/main
2023-05-29T03:19:47.414515
2021-06-23T00:14:41
2021-06-23T00:14:41
374,818,637
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
from typing import AsyncGenerator # def profile(): # global name # global age # name = "Rob" # age = 35 # profile() # print(name) # print(age) def profile(): name = "Rob" age = 35 return name, age profile_name, profile_age = profile() print(profile_name) print(profile_age)
[ "tech.rob@icloud.com" ]
tech.rob@icloud.com
2f760cb685233af26c0ba04dc072f313aa7a0181
0fc9a7b97813c6399226f74982b1a5af00fa22c8
/archive/test_reweight.py
46abe40b90d54d0ceb7d340ebda894f5c6081490
[]
no_license
donboyd5/weighting
cf86ff9805624ab7cf1eaa0884351f362af4dda0
bccdd6741595373775960ac61f9dcc9dd372abae
refs/heads/master
2023-09-06T00:18:41.736845
2021-06-13T10:55:31
2021-06-13T10:55:31
290,885,995
1
4
null
null
null
null
UTF-8
Python
false
false
5,920
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 7 07:54:35 2021 @author: donboyd """ # %% imports # for checking: # import sys; print(sys.executable) # print(sys.path) from __future__ import print_function, unicode_literals # import importlib import numpy as np import scipy from scipy.optimize...
[ "donboyd5@gmail.com" ]
donboyd5@gmail.com
ca4d4a526f7be909048ba7e7b4bcd59c79d3ab40
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2621/60705/240776.py
4ccb441e2d80914a2894d426a25159576c74695e
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
236
py
a = list(map(int, input().split(","))) m = a[0] for i in range(0, len(a)-1): for j in range(i+1, len(a)): total = 0 for k in range(i, j): total += a[k] if total > m: m = total print(m)
[ "1069583789@qq.com" ]
1069583789@qq.com
2ebaef22c2a3f141c5c4e3328727bfab8e9b2e37
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_155/3347.py
0870c72a6fb81071af0180aded42bedea73dc417
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
for i,l in enumerate(open("downloads/A-large.in").readlines()[1:]): num_clapping = 0 num_invited = 0 for min,num in enumerate(l.split()[1]): if num_clapping < min: num_invited += (min - num_clapping) num_clapping += (int(num) + min - num_clapping) else: nu...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c4dd0d9682e769d89e0e3dff982b9bff518e2c55
e10093b20912ca6cc3bd6d7ae1ed9ea677fa839f
/baselines/HypeNet/evaluation.py
30d0a093e14b2d31b07e3c37723e5ff2efcf9b1a
[ "MIT" ]
permissive
Milozms/feedforward-RE
fa0b7453ec133913b815ccf8e90d1f43bfc6140c
64fce7a8455648020acab9c2c570102b97c2ca5b
refs/heads/master
2020-03-21T16:53:40.141395
2018-07-09T04:44:58
2018-07-09T04:44:58
138,800,406
0
0
MIT
2018-08-15T18:14:30
2018-06-26T22:27:51
Python
UTF-8
Python
false
false
8,566
py
import sys from collections import defaultdict def find_none_index(file_name): with open(file_name) as f: for line in f: entry = line.strip('\r\n').split('\t') if entry[0] == 'None': return int(entry[1]) print('No None label!!!') return ...
[ "frankxu2004@gmail.com" ]
frankxu2004@gmail.com
708ac1015d6197e093eb18328b766bc2c19976bd
af6be0921c461143424fc75ed5a55b25ad792952
/CPANJMIS-master/CPANJMIS-master/project/apps/task/migrations/0013_auto_20190605_1011.py
2d561fca9eaffbbd3b68fc93996e6c73977b96fa
[]
no_license
bobolinbo/bobolearning
c90b4dccdfcec302df9f166a04a75d585e4c6a0b
ac520d9311b15e29c055edb1eb7b3b800d5051ac
refs/heads/master
2020-08-13T07:24:57.044426
2019-10-14T04:11:46
2019-10-14T04:11:46
214,931,735
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
# Generated by Django 2.2 on 2019-06-05 10:11 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('task', '0012_auto_20190605_0938'), ] operations = [ migrations.AlterField( model_na...
[ "1539019002@qq.com" ]
1539019002@qq.com
d29390a09feac8c6d80426a05a0876f181953eee
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/TauES_test/up/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374851248/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_79/run_cfg.py
4adfdff940c31446f9cf49a2c633148d06f0a75d
[]
no_license
rmanzoni/HTT
18e6b583f04c0a6ca10142d9da3dd4c850cddabc
a03b227073b2d4d8a2abe95367c014694588bf98
refs/heads/master
2016-09-06T05:55:52.602604
2014-02-20T16:35:34
2014-02-20T16:35:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
69,049
py
import FWCore.ParameterSet.Config as cms import os,sys sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/up/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CM...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
7a55ff623fe3d8d7ef154190ec55a8e4290a31e3
7c84cde29ea30614b137a1053fea44cbed171779
/Mapping/web_map.py
9430f3d32ca71b3a2a0c5ebc70638de8877d6db4
[ "MIT" ]
permissive
lennykioko/Awesome_Python
27f01b7605e7d820ae84288bbe745494cf7fd852
b48d5a3663570dc96d407db1d6b09099cfa98831
refs/heads/master
2021-04-26T23:07:28.348471
2018-03-05T15:22:04
2018-03-05T15:22:04
123,935,040
2
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
import folium import pandas volcanoes_file = "volcanoes.txt" world_file = "world.json" data = pandas.read_csv(volcanoes_file) lat = list(data["LAT"]) lon = list(data["LON"]) elev = list(data["ELEV"]) def color_producer(elevation): if elevation < 1000: return 'green' elif 1000 <= elevation < 3000: ...
[ "lennykmutua@gmail.com" ]
lennykmutua@gmail.com
f7eb2736d6ce4d7e51347eec64491257d5d80c37
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/pHp9qkjY53JNTGCG4_21.py
1e766cb8b715641a401477f94dcb6880dd1ec0f1
[]
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
84
py
from math import ceil ​ def century_from_year(year): return ceil(year * 0.01)
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
69dbef432a66037ba866f6fe723142d1ff6ce774
23e55ab51e322a3c0f967976a84f42f70f8ab701
/tensorflow/python/keras/engine/training_test.py
f924cd311974b858670a22601029aedf12c8a9c8
[ "Apache-2.0" ]
permissive
thangnvit/tensorflow
f58e7c2f95690f337361aa2973f2b84ac7e7f947
c83887196eb717af66a7b3f008e970b4a226ff8f
refs/heads/master
2021-02-21T17:51:56.030461
2020-03-06T07:55:33
2020-03-06T07:58:38
245,362,540
3
0
Apache-2.0
2020-03-06T08:05:41
2020-03-06T08:05:40
null
UTF-8
Python
false
false
115,787
py
# Copyright 2016 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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
1c00f8dd03b9377ae7904f707063bec4a444cbb1
6e2011a7e8778cdcd89acf33cf6105d09cc5fa3b
/timemachines/skaters/suc/successorinclusion.py
a23390ace10616090a3a506d689ba5ae346943bc
[ "MIT" ]
permissive
webclinic017/timemachines
0a60d4d121e5b7f3c005209e74db543ba40e63a5
202576e7e6a72575b6a121770f9665748b21e0c0
refs/heads/main
2023-08-26T01:31:37.794904
2021-10-20T01:13:58
2021-10-20T01:13:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
try: import successor using_successor = True except ImportError: using_successor = False
[ "peter.cotton@microprediction.com" ]
peter.cotton@microprediction.com
4d83a5f658fc71b95b1ac99a25da78cf7b3004bf
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/cctbx_project/fable/command_line/read.py
2b63d9550609472601d89f6e372cfb1a0fe40755
[ "BSD-3-Clause-LBNL", "BSD-3-Clause" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
2,667
py
from __future__ import absolute_import, division, print_function import optparse import sys def process_each(process, file_names, report_success=False): import traceback n_fail = 0 n_succ = 0 for file_name in file_names: try: process(file_names=[file_name]) except Exception: n_fail += 1 ...
[ "jorge7soccer@gmail.com" ]
jorge7soccer@gmail.com
dfa5623820e9b34992423ba12f4d18f1b1d93316
f3b233e5053e28fa95c549017bd75a30456eb50c
/tyk2_input/43/43-55_wat_20Abox/set_1ns_equi_m.py
16a56ed6880d8dc5338e7e4e41bbef04afb51853
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
import os dir = '/mnt/scratch/songlin3/run/tyk2/L43/wat_20Abox/ti_one-step/43_55/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi_m.in' temp_pbs = filesdir + 'temp_1ns_equi_m.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
5202657f23742058cd36993d8a290b33e88ab3ee
51885da54b320351bfea42c7dd629f41985454cd
/abc142/d.py
82d7dc3beff88d0ac37e5da28d56708d01703dee
[]
no_license
mskt4440/AtCoder
dd266247205faeda468f911bff279a792eef5113
f22702e3932e129a13f0683e91e5cc1a0a99c8d5
refs/heads/master
2021-12-15T10:21:31.036601
2021-12-14T08:19:11
2021-12-14T08:19:11
185,161,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
# # abc142 d # from math import factorial import sys from io import StringIO import unittest import math class TestClass(unittest.TestCase): def assertIO(self, input, output): stdout, stdin = sys.stdout, sys.stdin sys.stdout, sys.stdin = StringIO(), StringIO(input) resolve() sys.st...
[ "mskt4440@gmail.com" ]
mskt4440@gmail.com
47446ba6164838d8d1bfbe3be3095ae542d7799d
8bdce915174678a90a6be811ea91b50930b9d26a
/MachineLearning/Ch05/logRegres.py
7d8a9b1847a91dd160686bec7cb0f0ba78e44cb7
[]
no_license
CharlesBird/Resources
daefffef8fb3735e656cd0a3bf400d5e2ff85cc0
517ac7b7992a686fa5370b6fda8b62663735853c
refs/heads/master
2022-12-15T02:54:56.530940
2020-02-29T14:33:43
2020-02-29T14:33:43
109,668,108
1
1
null
2022-12-08T05:04:25
2017-11-06T08:34:30
Jupyter Notebook
UTF-8
Python
false
false
4,292
py
# -*- coding: utf-8 -*- from numpy import * import matplotlib.pyplot as plt def loadDataSet(): dataMat = [] labelMat = [] fr = open('testSet.txt') for line in fr.readlines(): lineArr = line.strip().split("\t") dataMat.append([1.0, float(lineArr[0]), float(lineArr[1])]) labelMat....
[ "1016784928@qq.com" ]
1016784928@qq.com
ed318a9e868ea3960c75efc699986defa5e77610
a15db1c900c4c5769005c977d604fef1ddecd642
/model/basic_layer/GeneralAttentionLayer.py
b158760dc98b7bb8bf8805ccb69b32571419d229
[]
no_license
MasterFishfish/Cabasc
f64f8066aba16c2fb2c68011e51f401b7d2ebd82
36363053a2b40f1367f2d0793dee6d6dd6131e36
refs/heads/master
2020-04-07T22:47:22.843289
2018-12-27T13:06:53
2018-12-27T13:06:53
158,785,003
0
0
null
null
null
null
UTF-8
Python
false
false
3,500
py
import tensorflow as tf from util.SoftmaxMask import softmax_mask from LinearLayer_3dim import LinearLayer_3dim from util.SoftmaxMask import normalizer class GenAttentionLayer: ''' the dot attention basic_layer. ''' # watt.shape = [2 * edim, 1] # batt.shape = [1] def __init__(self, edim,stddev...
[ "tusimplefishfish@foxmail.com" ]
tusimplefishfish@foxmail.com
bef1012665a4ac31dd4ace014a071cf6cf6a294b
9d0195aa83cc594a8c61f334b90375961e62d4fe
/JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano1544.py
e9cdc86fc89002da5e593868be8e45e19674a4eb
[]
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
4040e1965ba8edfc93c6031c8ab090e3c087a4e2
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Data Structures/Hash Tables/Basics of Hash Tables/URL shortener/solution.py
40c843e6ec220e371c5e1a5bdf8f5641a1ee8465
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
774
py
def solve(N, Query): # Write your code here histories = {} visited = set() for time, url, key, user_id in Query: time = int(time) lk = len(key) if key in visited or lk < 2 or lk > 12: yield 'NO' continue if user_id in histories and time - histories...
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
57d1238061403eff842b23504c951fea348a0307
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03162/s328006269.py
f127e072c4e68f76749fb892795d7a12302d169f
[]
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
251
py
N = int(input()) H = [[0,0,0] for i in range(N)] H[0] = list(map(int, input().split())) for i in range(1, N): abc = list(map(int, input().split())) for j in range(3): H[i][j] = max(H[i-1][j-1],H[i-1][(j+1)%3])+abc[j] print(max(H[-1]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com