blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
68add924debc9d40e2c9e6e8b0177bc5b786cd89
2adcbbbecf90e4fbb89755a8a68f86b8fe70910a
/pythinkutils/aio/jwt/tornado/handler/AuthHandler.py
cf9795dfe29d2da870a4610c81273d1f7a526deb
[]
no_license
ThinkmanWang/ThinkEventTrack
53e3b205787c2fcefb20d24fef0f98465dcb925e
b65072a3236a183c1cc1ac835cd79f2f46fd10d7
refs/heads/master
2023-08-03T11:38:33.099014
2021-09-19T13:17:39
2021-09-19T13:17:39
406,753,292
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
# -*- coding: utf-8 -*- from pythinkutils.aio.jwt.tornado.handler.BaseHandler import BaseHandler from pythinkutils.common.StringUtils import * class AuthHandler(BaseHandler): async def create_token(self, szAppId, szSecret): pass async def token_valid(self): pass async def get_uid_name(se...
[ "wangxf1985@gmail.com" ]
wangxf1985@gmail.com
23bb6267bc9316d2c29589fa9f9f4bbc4070480d
9084751a90f977fc722f90892e62c6596d0a26c6
/staticpy/util/helper.py
c426b40cab25aefe97cd88114e4f10b9981420d3
[ "BSD-3-Clause" ]
permissive
SnowWalkerJ/StaticPy
5d3b4723cd7b78283ab95ec3021bdcf0dfe67a6c
818b7f009af7a6040313791993f543779781dddf
refs/heads/master
2020-07-28T17:50:21.072169
2020-01-14T06:21:39
2020-01-14T06:21:39
209,484,058
19
0
null
null
null
null
UTF-8
Python
false
false
457
py
class Cls: """ This class is to refer to the "current" class when it hasn't been completely defined. Example ======= .. code-block:: python class A: def __init__(self, value): self.value: int = 1 def __add__(self, other: Cls) -> Cls: ...
[ "jike3212001@163.com" ]
jike3212001@163.com
f4c2668459c92a992bfea23f219d566210944f98
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_imported.py
878ac0a3c2bf379c3bee6feb4d0d7b3a98dbeee7
[ "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._import import _IMPORT #calss header class _IMPORTED(_IMPORT, ): def __init__(self,): _IMPORT.__init__(self) self.name = "IMPORTED" self.specie = 'verbs' self.basic = "import" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
c3e66a8e8814e8e5285b5c62076236e5e92a2c5c
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_barmaids.py
ed81aeb5d23f31b1164a1e5b2abbd9d585783d17
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
#calss header class _BARMAIDS(): def __init__(self,): self.name = "BARMAIDS" self.definitions = barmaid self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['barmaid']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
41362c6f99bb8f283f580c623b5714413bdd9cef
b201a0a88022b4c567f9c74346d60ab17f46ef64
/supervised_learning/0x08-deep_cnns/0-inception_block.py
c25e5a099742a0fae8f1a181e73471d332ce9741
[]
no_license
Diegokernel/holbertonschool-machine_learning
929d9b8ac0fcdecbf28b76c09799f86c4b48d38e
a51fbcb76dae9281ff34ace0fb762ef899b4c380
refs/heads/master
2020-12-21T18:34:03.579632
2020-10-15T20:51:32
2020-10-15T20:51:32
236,523,731
0
1
null
null
null
null
UTF-8
Python
false
false
2,189
py
#!/usr/bin/env python3 """inception""" import tensorflow.keras as K def inception_block(A_prev, filters): """Builds an inception block as described in Going Deeper with Convolutions (2014). The concatenated output of the inception block """ convly_1 = K.layers.Conv2D(filters=filters[0], ...
[ "777@holbertonschool.com" ]
777@holbertonschool.com
7efd7bacbcbce83194fa14d887cdaec9746271a3
714e36b745a5b2b5fc4e9b267b3fa214a9fa3d9a
/scripts/matplotlib/32plot_multi_ax.py
2d24a31b7ad2f8682a42094864e96bfd9abaa085
[]
no_license
j3ffyang/ai
e89b4618c96e2085f37047c88d95f89d0a5409c9
5da753d2a1c9793564a32ac80911c1d2e35e8605
refs/heads/master
2022-12-10T21:12:48.432682
2020-08-12T07:56:11
2020-08-12T07:56:11
141,972,057
2
1
null
2022-11-22T02:55:29
2018-07-23T06:37:15
Python
UTF-8
Python
false
false
251
py
import matplotlib.pyplot as plt fig= plt.figure(figsize=(10, 5)) ax1= fig.add_subplot(121) # 1= axes lie horizontally, 2= 2 cols ax2= fig.add_subplot(122) ax1.bar([1,2,3], [3,4,5]) ax2.barh([0.5, 1, 2.5], [0, 1, 2]) # horizontal bar plt.show()
[ "j3ffyang@gmail.com" ]
j3ffyang@gmail.com
f1e2664fa2d0bd72aa21b35789a9c70c94b02c4b
29bd55d171733586f24f42151d44f4312b6a610e
/keras/keras09_R2_test_answer.py
290e451c6c941e5b4cc6a1795f1120eefece9faa
[]
no_license
votus777/AI_study
66ab1da2b8e760d0c52b0ed2b2f74158e14f435b
f4e38d95690c8ee84d87c02dc20a1ea59c495f04
refs/heads/master
2022-12-04T15:52:14.855624
2020-08-20T06:12:52
2020-08-20T06:12:52
262,975,960
1
0
null
null
null
null
UTF-8
Python
false
false
1,406
py
''' * 정답 * Overfitting이 나게 해라! epoch를 컴터지기 직전까지 돌려라 단 너무 많이 돌리면 - 값이 나온다. ''' # 1. 데이터 import numpy as np x_train = np.array([1,2,3,4,5,6,7,8,9,10]) y_train = np.array([1,2,3,4,5,6,7,8,9,10]) x_test = np.array([11,12,13,14,15]) y_test = np.array([11,12,13,14,15]) x_pred = np.array([16, 17, 18]) # 2....
[ "votus777@users.noreply.github.com" ]
votus777@users.noreply.github.com
637294feb6424a6229c798af7673ec45462eb36b
6f1034b17b49f373a41ecf3a5a8923fb4948992b
/pychron/entry/providers/geodeepdive.py
5b215e86d942b7a12705bd99e2a5055fe0130c7a
[ "Apache-2.0" ]
permissive
NMGRL/pychron
a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f
8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6
refs/heads/main
2023-08-30T07:00:34.121528
2023-06-12T17:43:25
2023-06-12T17:43:25
14,438,041
38
28
Apache-2.0
2023-08-09T22:47:17
2013-11-15T23:46:10
Python
UTF-8
Python
false
false
1,128
py
# =============================================================================== # Copyright 2019 ross # # 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/LICE...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
5bbd918ca6dd43ecbc614c38cc3504aae453f7ff
3d4247362747e3763b72cd97ba39164387cfc07b
/tests/conftest.py
f2e6030f9a4269a460b002190ed04975970e3692
[ "MIT" ]
permissive
gitter-badger/bocadillo
d5f104ff47ef5b9ee61163b7a4f3eb21d3e7da8b
ec1122ec6d62e8c90060b3ab3eb8cf7fb7deb433
refs/heads/master
2020-04-12T23:34:39.904514
2018-12-22T12:17:13
2018-12-22T12:17:13
162,823,961
0
0
MIT
2018-12-22T15:56:06
2018-12-22T15:56:06
null
UTF-8
Python
false
false
1,147
py
from typing import NamedTuple import pytest from click.testing import CliRunner from bocadillo import API from .utils import RouteBuilder @pytest.fixture def api(): return API() @pytest.fixture def builder(api: API): return RouteBuilder(api) class TemplateWrapper(NamedTuple): name: str context: ...
[ "florimond.manca@gmail.com" ]
florimond.manca@gmail.com
81e4750f6e1eafec47a415e18716602934030d5a
ef6229d281edecbea3faad37830cb1d452d03e5b
/ucsmsdk/mometa/ape/ApeControllerChassis.py
92e616892a55b50b06f2dfb1df372998f463b50d
[ "Apache-2.0" ]
permissive
anoop1984/python_sdk
0809be78de32350acc40701d6207631322851010
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
refs/heads/master
2020-12-31T00:18:57.415950
2016-04-26T17:39:38
2016-04-26T17:39:38
57,148,449
0
0
null
null
null
null
UTF-8
Python
false
false
2,276
py
"""This module contains the general information for ApeControllerChassis ManagedObject.""" import sys, os from ...ucsmo import ManagedObject from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class ApeControllerChassisConsts(): pass class ApeControllerChassis(Manag...
[ "test@cisco.com" ]
test@cisco.com
8f304b7f865adf1b910f47d4f554e7f22e87c2c7
b6406cd1e6d951934e762ec2ac925cddf4716ae9
/verification_feed/app.py
f72a52e96e4339287768e573bf79e527800013db
[ "MIT" ]
permissive
agiamas/activity-stream
e5da92f00c26a8d7d99c4b2c5d4469e3500315cc
2b6a23de082950736e71380932b89b0a0e984b89
refs/heads/master
2020-03-28T17:14:02.023352
2018-09-05T17:32:51
2018-09-05T17:32:51
148,770,350
0
0
null
2018-09-14T09:57:53
2018-09-14T09:57:53
null
UTF-8
Python
false
false
3,912
py
import asyncio from datetime import ( datetime, timedelta, timezone, ) import logging import os import sys from aiohttp import web LOGGER_NAME = 'activity-stream-verification-feed' async def run_application(): app_logger = logging.getLogger(LOGGER_NAME) app_logger.debug('Examining environment....
[ "michal@charemza.name" ]
michal@charemza.name
b6e9b3b07c2c919a348d0916afd90fca07c31ad4
a74cabbe1b11fc8ef575ea86f2543cd95db78ec9
/python_program/q1457_Pseudo_Palindromic_Paths_in_a_Binary_Tree.py
3cb032d2740ae837af114fe21693659a88007536
[]
no_license
tszandy/leetcode
87e3ccf291b2879637d2d8238935a455b401a78a
f1f4361541dcffbb291285663c8820d7ffb37d2f
refs/heads/master
2023-04-06T15:34:04.847875
2023-03-26T12:22:42
2023-03-26T12:22:42
204,069,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,485
py
from typing import List from collections import Counter,defaultdict,deque from math import * from functools import reduce,lru_cache,total_ordering import numpy as np from heapq import * from bisect import bisect_left,bisect_right from itertools import count,zip_longest import queue # Definition for a binary tree node....
[ "444980834@qq.com" ]
444980834@qq.com
ae65ef4938bb05f4be99939c1298eac1dfe34aed
76f1331d083d360fb3822312537e72d4ff9d50b5
/spider/strong_spider/spider/antispider/proxypool/proxy_crawler.py
47c2dca816b1f993382664123b02647d33042a3d
[]
no_license
ZouJoshua/ml_project
2fe0efee49aa1454b04cd83c61455232601720a6
b1d8eb050182cd782bc6f3bb3ac1429fe22ab7b7
refs/heads/master
2021-07-22T10:37:56.452484
2020-05-09T09:54:39
2020-05-09T09:54:39
158,562,016
0
0
null
null
null
null
UTF-8
Python
false
false
3,767
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Author : Joshua @Time : 2018/9/5 15:51 @File : proxy_crawler.py @Desc : 代理下载调度 """ from gevent import monkey monkey.patch_all() import sys import time import gevent from gevent.pool import Pool from multiprocessing import Queue, Process, Value import sett...
[ "joshua_zou@163.com" ]
joshua_zou@163.com
5b7240a4bf1fca1148ffca29d3a7222e1e4a4373
b565143dbd490ad2721af7d8578483aa053383d0
/recipes/tsl-hopscotch-map/all/conanfile.py
bd7f158542108161ebd2d641b6d256fd96a8682a
[ "MIT" ]
permissive
czoido/conan-center-index
da7fbe837c88e3a65f7f2d6ed24ada62eb601c69
7952190873e49e23996fc7192a76e5917c49ec8a
refs/heads/master
2023-07-20T02:13:08.706521
2022-12-13T17:01:47
2022-12-13T17:01:47
228,573,093
0
0
MIT
2022-12-13T17:01:49
2019-12-17T08:49:29
Python
UTF-8
Python
false
false
1,853
py
from conans import ConanFile, tools import os required_conan_version = ">=1.43.0" class TslHopscotchMapConan(ConanFile): name = "tsl-hopscotch-map" license = "MIT" description = "C++ implementation of a fast hash map and hash set using hopscotch hashing" topics = ("structure", "hash map", "hash set")...
[ "noreply@github.com" ]
czoido.noreply@github.com
694f4c1a1be63ef2db87c8057b17478b668dafac
7da87c6d4c4d8443f1a9930b5edc277ce2a6c358
/009_triangles.py
642b3ede7b4aa5ace5b0e7d418acbdaca8585824
[]
no_license
kazamari/CodeAbbey
2e1f28a20d5f773fc08b5b20899d437d5ba420f2
4f5031585ddad8d8be71ee1f80872712b139051e
refs/heads/master
2021-04-15T14:49:10.839383
2018-03-23T12:18:17
2018-03-23T12:18:17
126,477,191
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
''' Input data: First line will contain number of triplets. Other lines will contain triplets themselves (each in separate line). Answer: You should output 1 or 0 for each triplet (1 if triangle could be built and 0 otherwise). Example: data: 2 3 4 5 1 2 4 answer: 1 0 ''' from sys import stdin def is_triangle(tri...
[ "maha_on@yahoo.com" ]
maha_on@yahoo.com
15a64d10e6323cff866a56ab5326f9f9abfe8c10
97aa1181a8305fab0cfc635954c92880460ba189
/torch/nn/intrinsic/modules/fused.py
47f26dbdc203a870d09cbb6c19b5a68b2b260f95
[ "BSD-2-Clause" ]
permissive
zhujiang73/pytorch_mingw
64973a4ef29cc10b96e5d3f8d294ad2a721ccacb
b0134a0acc937f875b7c4b5f3cef6529711ad336
refs/heads/master
2022-11-05T12:10:59.045925
2020-08-22T12:10:32
2020-08-22T12:10:32
123,688,924
8
4
NOASSERTION
2022-10-17T12:30:52
2018-03-03T12:15:16
C++
UTF-8
Python
false
false
5,967
py
from __future__ import absolute_import, division, print_function, unicode_literals import torch from torch.nn import Conv1d, Conv2d, Conv3d, ReLU, Linear, BatchNorm1d, BatchNorm2d, BatchNorm3d class ConvReLU1d(torch.nn.Sequential): r"""This is a sequential container which calls the Conv 1d and ReLU modules. Du...
[ "zhujiangmail@hotmail.com" ]
zhujiangmail@hotmail.com
7ca2f0338361b838e4f68540221bd77ee9e62925
3c349aa9cd58b50d9179bbc9d5f5c2403c491543
/ex33_polygons.py
035896acae30a0b26de698d7161f57a52b167776
[]
no_license
dryabokon/geometry
a2f85f8681d5e878a327235380668ebdb858e70c
9024e963f6a9f308101e6d477d89ce3323038117
refs/heads/master
2023-04-30T12:06:18.130607
2023-04-27T18:23:49
2023-04-27T18:23:49
156,690,211
4
1
null
null
null
null
UTF-8
Python
false
false
2,872
py
import cv2 import numpy import shapely.geometry as geom from scipy.spatial import ConvexHull # ---------------------------------------------------------------------------------------------------------------------- import tools_polygons_i import tools_draw_numpy # --------------------------------------------------------...
[ "d.ryabokon@gmail.com" ]
d.ryabokon@gmail.com
dda6f3a8ef102c9ba39babca4de4c8d9b3f4dd59
25f61fb72a60f95e10aff5809e67e95526c5fff7
/leetcode-30day-challenge/May-2019/W1_1_first_bad_version.py
a7d316cfa6cd858db77346c1f616205b8c0c0f1e
[]
no_license
pradeepsinngh/A-Problem-A-Day
19db6baccc68f216cd8206118dafb2cbec962671
f5d598bbb60786a99c00fb338145c564fa70cf84
refs/heads/master
2021-07-18T02:23:04.248782
2020-05-04T22:12:27
2020-05-04T22:12:27
150,642,029
5
2
null
null
null
null
UTF-8
Python
false
false
1,157
py
''' # Prob: First Bad Version # You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad. # Suppose you hav...
[ "noreply@github.com" ]
pradeepsinngh.noreply@github.com
852c57d9837e0941432c42026f1c82d0451da187
3cdb4faf34d8375d6aee08bcc523adadcb0c46e2
/web/env/lib/python3.6/site-packages/django/contrib/auth/migrations/0008_alter_user_username_max_length.py
7c9dae09500de428c3e2cea1c22b0419c38beedd
[ "MIT", "GPL-3.0-only" ]
permissive
rizwansoaib/face-attendence
bc185d4de627ce5adab1cda7da466cb7a5fddcbe
59300441b52d32f3ecb5095085ef9d448aef63af
refs/heads/master
2020-04-25T23:47:47.303642
2019-09-12T14:26:17
2019-09-12T14:26:17
173,157,284
45
12
MIT
2020-02-11T23:47:55
2019-02-28T17:33:14
Python
UTF-8
Python
false
false
752
py
from django.contrib.auth import validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auth', '0007_alter_validators_add_error_messages'), ] operations = [ migrations.AlterField( model_name='user', name='usern...
[ "rizwansoaib@gmail.com" ]
rizwansoaib@gmail.com
3afca15c44b03004f1a13b16f2ce4c2a33cdf1b7
d1c53def818f9c7e1bd660e3303a754f297aff43
/code/ch7/4_13_b.py
ea53b0fad8491987b7b00a7fb0c995791a2c1aef
[]
no_license
khimacademy/c104
dcdcae13499e5b68905f09ea009e1a2b9f552e1c
83443858d5b85c23c107fa09cd672d17549776ee
refs/heads/master
2020-03-26T10:57:52.536935
2018-08-25T06:17:04
2018-08-25T06:17:04
144,822,712
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
''' 4-13. 뷔페 뷔페 스타일의 음식점이 있는데 기본 음식은 다섯 가지밖에 없습니다. 단순한 음식 다섯 가지를 생각하고 튜플로 저장하세요. - for 루프를 써서 이 식당의 각 음식을 출력하세요. - 항목 중 하나를 수정하는 시도를 해보고 파이썬에서 변경을 거부하는지 확인하세요. - 식당에서 메뉴를 교체하려 합니다. 항목 중 두 개를 다른 음식으로 바꾸세요. 튜플을 덮어쓰는 코드 블록을 추가하고, for 루프를 써서 바뀐 메뉴의 각 항목을 출력하세요. Output: You can choose from the following menu items: - rockf...
[ "sarang.khim@gmail.com" ]
sarang.khim@gmail.com
340cdd25e6ba61fafd87bd9b7fb641673e3470b8
ad0b7af5c3547be1081e77594d98fa9939576c69
/program/SGD.py
fecb93355de1de1e74268e73e1c5d474d0eba2db
[]
no_license
UESTC-Liuxin/ML
29ce4a576215520f87049bf1024f659cbd7a0e64
f88ddaa6eb97d1bb31a64ba3a8448fa9f2bead32
refs/heads/master
2022-07-29T22:24:12.997064
2020-05-24T12:48:32
2020-05-24T12:48:32
261,960,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
# import d2lzh as d2l import math # from mxnet import nd import numpy as np import matplotlib.pyplot as plt def train_2d(trainer): # 本函数将保存在d2lzh包中方便以后使用 x1, x2, s1, s2 = -5, -2, 0, 0 # s1和s2是自变量状态,本章后续几节会使用 results = [(x1, x2)] for i in range(20): x1, x2, s1, s2 = trainer(x1, x2, s1, s2) ...
[ "625092890@qq.com" ]
625092890@qq.com
8d2bf3bac2b602bbaeb7eb68a7b28172a7b6631f
d1d79d0c3889316b298852834b346d4246825e66
/blackbot/core/wss/ttp/art/art_T1055-1.py
ce733c638fed1dee79e232881503ae921bc201e5
[]
no_license
ammasajan/Atomic-Red-Team-Intelligence-C2
78d1ed2de49af71d4c3c74db484e63c7e093809f
5919804f0bdeb15ea724cd32a48f377bce208277
refs/heads/master
2023-07-17T12:48:15.249921
2021-08-21T20:10:30
2021-08-21T20:10:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,874
py
from blackbot.core.utils import get_path_in_package from blackbot.core.wss.atomic import Atomic from terminaltables import SingleTable import os import json class Atomic(Atomic): def __init__(self): self.name = 'Privesc/T1055-1' self.controller_type = '' self.external_id = 'T1055' s...
[ "root@uw2artic201.blackbot.net" ]
root@uw2artic201.blackbot.net
55405e3d6382798737ab5eaecff2a1af521ff606
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/MuonSpectrometer/MuonCablings/MuonCablingServers/python/__init__.py
46ac7323b0e0050a72f16f3a5a65d27ae41069ce
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
234
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # File: MuonCablingServersConfig/__init__.py __version__ = '1.0.0' __author__ = 'alessandro.dimattia@roma1.infn.it' __all__ = [ 'MuonCablingServersConfig' ]
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
51df6f78e9135e31af7333b8fb60f766d0b4e202
389569a591284a2adcdc38046114e7b1038afd94
/polygon/polygon/main_test1.py
e577151b68aaee98d00b80a0414e0977b53d0787
[]
no_license
xytysingle/AnnotationTool
b797daf2fd472f602341b16f24fb1ed9b702aef1
a217d4376ceee739e0d8c43515c403133982e86e
refs/heads/master
2020-04-11T18:16:10.438919
2019-07-31T10:21:18
2019-07-31T10:21:18
161,992,153
0
0
null
null
null
null
UTF-8
Python
false
false
7,227
py
# import re # # s = '1中文中文:123456aa哈哈哈bbcc' # print(re.match(u"[\u4e00-\u9fa5]+", s) ) # # None. 只从字符串的开始匹配,没有匹配上返回None,否则返回matchobject # # pat = '中文' # print(re.search(pat, s).group()) # # matchobject. 对整个字符串进行匹配,,没有匹配上返回None,否则返回matchobject # # newpat = '这里是中文内容' # news = re.sub(pat, newpat, s) # 正则部分替换,将s中的所有符合p...
[ "2463072824@qq.com" ]
2463072824@qq.com
3d0f4e92f82aeca0ee2486764345fa694bfe6656
8fd28b248511f42ad8732ca1e574aada33908376
/configs/recognition/slowonly/slowonly_r50_8x8x1_256e_kinetics400_rgb.py
02c50db20d8fa02519d4fe1ad7364d0967dfce15
[ "Apache-2.0" ]
permissive
vt-vl-lab/video-data-aug
28bd175535cab1444055502389c8f5d7d75e4bd2
01667cdbd1b952f2510af3422beeeb76e0d9e15a
refs/heads/main
2023-09-01T02:36:40.034893
2021-07-21T01:31:42
2021-07-21T01:31:42
352,920,339
29
6
Apache-2.0
2021-07-21T01:29:36
2021-03-30T08:06:54
Jupyter Notebook
UTF-8
Python
false
false
3,720
py
model = dict( type='Recognizer3D', backbone=dict( type='ResNet3dSlowOnly', depth=50, pretrained=None, lateral=False, conv1_kernel=(1, 7, 7), conv1_stride_t=1, pool1_stride_t=1, inflate=(0, 0, 1, 1), norm_eval=False), cls_head=dict( ...
[ "zouyuliang123@gmail.com" ]
zouyuliang123@gmail.com
d07b9ec027e3387ad373a6fcb4dc243fa3964750
3f763cf893b09a3be562858613c928703ff349e4
/client/verta/verta/_swagger/_public/modeldb/metadata/model/MetadataGetLabelsRequestResponse.py
18ffa3ba5b5186c19c9a7ab2962468b46c703524
[ "Apache-2.0" ]
permissive
VertaAI/modeldb
636e46fc025b01a514d599b10e228c8735503357
ec9ac7712500adb13fd815dfd476ce9f536c6921
refs/heads/main
2023-08-31T00:45:37.220628
2023-08-30T18:45:13
2023-08-30T18:45:13
71,305,435
844
142
Apache-2.0
2023-09-14T19:24:13
2016-10-19T01:07:26
Java
UTF-8
Python
false
false
566
py
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class MetadataGetLabelsRequestResponse(BaseType): def __init__(self, labels=None): required = { "labels": False, } self.labels = labels for k, v in required.items(): if self[k] is None and v: ...
[ "noreply@github.com" ]
VertaAI.noreply@github.com
de67c007364dfb0b71dd50d487c78eea39e615d6
cfbbe1303ed4a2feaf7e0023e62aa910b7eee733
/doc/conf.py
a4b1bca880898a236fea88f11043c0d203a934b7
[ "BSD-3-Clause" ]
permissive
717524640/fatiando
8fa4fef8920770735d1a0d655259e87bc9382001
bf09661c40423bec85e47f15a14b786f25b7e873
refs/heads/master
2021-01-20T21:29:26.742259
2015-03-18T19:15:45
2015-03-18T19:15:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,807
py
# -*- coding: utf-8 -*- import sys import os import datetime import sphinx_bootstrap_theme # Sphinx needs to be able to import fatiando to use autodoc sys.path.append(os.path.pardir) # and the cookbook.py module to build the cookbook sys.path.append(os.path.split(os.path.abspath(__file__))[0]) from fatiando import __...
[ "leouieda@gmail.com" ]
leouieda@gmail.com
7d1953fb1da45033d63049d7b07cc49f0cbb273e
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/e93cdecef17fe3027247389bba5934607c63372e-<run>-fix.py
358973030efe43d7b9bb143ecbcf224ff7f0da99
[]
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
2,366
py
def run(self, tmp=None, task_vars=None): if (self._play_context.connection != 'local'): return dict(failed=True, msg=('invalid connection specified, expected connection=local, got %s' % self._play_context.connection)) module = module_loader._load_module_source(self._task.action, module_loader.find_plugi...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
408df962b97cfeeb22d6bd8877223f600cbcaf2e
3ee982b28adec7154777a9962dacae5c17fbebe0
/data3/hadoop-2/PageRank1/PageRank.py
86f0a067ab8c03d973c7f59125f0f7d6d44aa98d
[]
no_license
nycdatasci/aetna
406a5194b0ffff6b78c2ce1d34c2b090c3d82840
095c476210ebe4fef0a702a6a0a56981fe91c8ff
refs/heads/master
2020-04-24T05:40:48.464871
2019-03-15T15:06:42
2019-03-15T15:06:42
171,737,873
0
0
null
null
null
null
UTF-8
Python
false
false
875
py
#!/usr/bin/env python import os from sys import argv script, input_file, iters = argv iters = int(iters) streaming = '''hadoop jar $HADOOP_HOME/share/hadoop/tools/lib/hadoop-streaming-*.jar \ -files PageRankMap.py,PageRankReduce.py \ -input %s \ -output PageRankOutput \ -mapper PageRankMap.py \ -reducer PageRankReduc...
[ "yanshu.usc@gmail.com" ]
yanshu.usc@gmail.com
7c79dc9fc7a73da8dbaa46e617aa02e1400a73a7
ae8f61a8c0c4a569f00529c3f07c73dbfc884f71
/tiled/server/models.py
f46b8b543646104f2e61cef8595a3bcd5815ac21
[ "BSD-3-Clause" ]
permissive
untzag/tiled
1ba705303193312711d8ac75b977a26d6d9e7571
43a8ba82660ce3be077f2b6b060bdd2a23cf956b
refs/heads/main
2023-04-18T18:34:13.545139
2021-04-28T21:27:59
2021-04-28T21:27:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,385
py
import enum import pydantic import pydantic.dataclasses import pydantic.generics from typing import Any, Dict, Generic, List, Optional, TypeVar DataT = TypeVar("DataT") class Error(pydantic.BaseModel): code: int message: str class Response(pydantic.generics.GenericModel, Generic[DataT]): data: Optiona...
[ "dallan@bnl.gov" ]
dallan@bnl.gov
51cbf596ebc778a532ab71e8d4bc5c3334d54fc2
6fe477a55bd565c78b55e5ec79ae704186e2c1fc
/chatgui.py
aceede2560445b3cbe0b67e7c8c2db77c079ae00
[]
no_license
jayz6/chatboty
4f7ef8ea0105394230b076261f0f5a4828abfcde
e419faac730c9644269b6093e35bc375e2f723b8
refs/heads/master
2023-06-15T14:45:36.542008
2021-07-11T12:27:29
2021-07-11T12:27:29
374,563,728
0
0
null
null
null
null
UTF-8
Python
false
false
3,646
py
import nltk from nltk.stem import WordNetLemmatizer lemmatizer = WordNetLemmatizer() import pickle import numpy as np from keras.models import load_model model = load_model('chatbot_model.h5') import json import random intents = json.loads(open('intents.json').read()) words = pickle.load(open('words.pkl','rb')) classe...
[ "you@example.com" ]
you@example.com
5a238a1582affefe50b7405410ac9c64ff303309
edcc26728370aa5bfabfbf5615933c34b108ed21
/sketches/readLines/readLines.pyde
eb9caaf92a7754dd7c22440ad54ab00eda3f75ef
[ "MIT" ]
permissive
kantel/processingpy
9e94f4116257e9cfcd59c1f71d7572559c703058
1eef60347d41563aef7a092ff35434bd47d931d2
refs/heads/master
2023-08-15T12:04:46.713124
2023-07-29T16:41:14
2023-07-29T16:41:14
73,006,897
5
3
null
null
null
null
UTF-8
Python
false
false
599
pyde
# Font-Test auf UTF-8; aus der Dokumentation: # Starting with Processing release 0134, # all files loaded and saved by the Processing API # use UTF-8 encoding. font = None def setup(): size(500, 500) # fontList = PFont.list() # printArray(fontList) font = createFont("Palatino-Roman", 32) textFont(...
[ "joerg@kantel.de" ]
joerg@kantel.de
a0bb2dd4a72b7f004884bdda564b3762452634f9
c2d681e9a4c7b1be07e9d581ad3ac00a5c783604
/classes.py
f9cca27f147dc0814ed33409926ddb4d9e4d635e
[]
no_license
DennisMufasa/PythoneCode
6291ddf2d08a8361fe82e81bc5747eb0123848f6
d9b74205de0c60fec2c088e1b6c2b0b7a91c1273
refs/heads/master
2021-04-05T23:45:50.256668
2019-04-07T16:17:20
2019-04-07T16:17:20
124,888,947
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
class Mufasa: def __init__(self,name,age,profession,health): self.name=name self.age=age self.profession=profession self.health=health def career(self): if self.profession=='Developer': print(self.name,' is a developer.') else: print(self...
[ "denny.muasa@gmail.com" ]
denny.muasa@gmail.com
c936f1c418ea6c456cf0dd6c2b5cec291e39acf2
905f40a4ad8e17bb4871cf87b6ee184a76a77c2a
/BCM/management/commands/remove_templates.py
bd73841db58291945cf21bda90d4758966cf6519
[]
no_license
sai9912/mypyton
5e1f7ca278051d5f588af1d9accae5fd1780020b
338fd6396dbdce971bc542718fbb9608bdcfc2a7
refs/heads/master
2022-12-16T05:04:34.590818
2019-04-18T09:18:06
2019-04-18T09:18:06
176,324,427
0
0
null
2022-12-08T02:31:10
2019-03-18T16:16:56
Python
UTF-8
Python
false
false
1,975
py
from django.core.management import BaseCommand from member_organisations.models import MemberOrganisation, ProductTemplate, ProductAttribute, ProductPackaging IMPORT_DEBUG = True class Command(BaseCommand): """ python manage.py remove_templates """ def add_arguments(self, parser): parser.ad...
[ "root@ip-172-31-29-10.ap-south-1.compute.internal" ]
root@ip-172-31-29-10.ap-south-1.compute.internal
79ecffd0003b8f52b8e02699f96264b491844e07
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Algorithms/Palindromes/solution.py
2287b35b7d8a759993933e56e1c6c55558875c88
[ "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
418
py
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here s = input().strip() temp = s if len(set(s))...
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
a04ef908392a402d41fe90499306a7c8d326b53a
9307d42ca27c8f07115197851a4d2355a7492abc
/shared/views.py
ef3b27912011c7aa2b20c022011f458b65b3a524
[]
no_license
dkutelov/djangoevents
2a1c05d187a32557d4e5195cbe349efb05611ce4
9b6c4c9db366d7e282542cb853123dcca6191f8e
refs/heads/master
2023-01-29T15:37:47.664373
2020-12-13T13:17:58
2020-12-13T13:17:58
314,523,415
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
from django.core.exceptions import PermissionDenied class GroupRequiredMixin: groups = None def dispatch(self, request, *args, **kwargs): user = request.user if not user.is_authenticated: raise PermissionDenied groups_set = set(self.groups or []) raw_groups = use...
[ "dari.k@abv.bg" ]
dari.k@abv.bg
e772c8886cb376be4c127bf28013a9fc58b59e69
2eff2b24d5b6f5dffc42c9cbde6102ec9317502f
/src/Bits.py
49ff824b30bb9cf591b4e5c06713a9fefbb9b567
[]
no_license
JakobKallestad/Python-Kattis
599a14e71a8d5c52aae779b8db3d35f0e4d01e88
51656964e79cc861e53f574785aacb213ef10b46
refs/heads/master
2022-10-24T23:12:45.599813
2021-12-08T12:31:54
2021-12-08T12:31:54
156,881,692
2
1
null
2022-10-02T12:36:57
2018-11-09T15:34:09
Python
UTF-8
Python
false
false
231
py
n_test_cases = int(input()) for _ in range(n_test_cases): line = input() max_bits = 0 for i in range(1, len(line)+1): num = bin(int(line[:i])) max_bits = max(max_bits, num.count('1')) print(max_bits)
[ "Jakob.Kallestad@student.uib.no" ]
Jakob.Kallestad@student.uib.no
644400cc50052b08c364c1f2f950b52d631c448a
cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc
/Python Books/Athena/training/exercises/exercises/software_craftsmanship/fancy_math/fancy_math_solution.py
f6812946aeb6e236e271e1b69504b96c23643970
[]
no_license
theGreenJedi/Path
df24fca355590efef0c6cb5c52e7216c6b5d2464
b5ed2805dbb046480929e49e550bfd8af5bb4d6f
refs/heads/master
2023-07-27T14:23:37.694546
2021-07-16T01:38:55
2021-07-16T01:38:55
87,686,563
8
2
null
2023-07-11T22:49:03
2017-04-09T05:57:30
Jupyter Notebook
UTF-8
Python
false
false
1,523
py
""" Test Driven Development Example Write a function called `slope` that calculates the slope between two points. A point is specified by a two element sequence of (x,y) coordinates. >>> pt1 = [0.0, 0.0] >>> pt2 = [1.0, 2.0] >>> slope(pt1, pt2) 2.0 Use Test D...
[ "GreenJedi@protonmail.com" ]
GreenJedi@protonmail.com
387e099c4bd771eae8b41a1b0168202680e46074
31747dd8c61085421d7bd4166f7bd4f9429cf914
/tests/test_visitors/test_tokenize/test_keywords/test_starts_with_dot.py
71c475e0052d8cbb4394f153df8ed6fd363f4019
[ "MIT" ]
permissive
edytagarbarz/wemake-python-styleguide
0e9ed4080a13a6727b8e80785e113b8407409352
74b86156d73c2a4fe9c755138f6953fec41fab3b
refs/heads/master
2021-03-03T19:21:54.807089
2020-03-07T23:35:15
2020-03-07T23:35:15
245,981,718
1
1
MIT
2020-03-09T08:31:55
2020-03-09T08:31:54
null
UTF-8
Python
false
false
1,483
py
import pytest from wemake_python_styleguide.violations.consistency import ( LineStartsWithDotViolation, ) from wemake_python_styleguide.visitors.tokenize.syntax import ( WrongKeywordTokenVisitor, ) # Correct: correct_dot_attr = """ some_line = some.attr( some.other, ) """ correct_elipsis = """ first[ ...
[ "mail@sobolevn.me" ]
mail@sobolevn.me
14b359d92f3e1da24aa1a431953c9de91141cae3
449f6888bff99d7e4fd86fa6ffa6b3316084e34e
/Solutions/248.py
febd366352a6f0c6d1e9f9292f83bc6b4f1906f7
[ "MIT" ]
permissive
All3yp/Daily-Coding-Problem-Solutions
e94679a5858b8a83ffe58d14b824fe80de21a694
199b9606474edb45bd14b20b511b691ada437586
refs/heads/master
2023-03-18T21:06:30.675503
2021-03-13T03:52:31
2021-03-13T03:52:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
""" Problem: Find the maximum of two numbers without using any if-else statements, branching, or direct comparisons. """ def get_max(num1: int, num2: int) -> int: return num1 ^ ((num1 ^ num2) & -(num1 < num2)) if __name__ == "__main__": print(get_max(1, 5)) print(get_max(4, 3)) print(get_max(-3, 6)...
[ "ruppysuppy@gmail.com" ]
ruppysuppy@gmail.com
7af9d20303a6cb0534c7e8fa34538d9028d47d3a
e40381a0aa3320616e5a5b82533c2c5cfe0fa2ce
/Dark_Scripts/plot_ValidationScores-LoopSeeds.py
40dc9786c4c96c2cd21b3edd21e4a9bd9de57c82
[ "MIT" ]
permissive
zmlabe/predictGMSTrate
7220b26f86839699635fe2f04e45348095183bc7
ac4238c7f1c33dc9d30382e4dbdc26a2f63352f5
refs/heads/main
2023-04-10T03:46:16.053123
2023-01-11T14:08:27
2023-01-11T14:08:27
396,942,451
4
3
MIT
2022-01-19T22:15:19
2021-08-16T19:30:55
Python
UTF-8
Python
false
false
5,612
py
""" Create plots to show validation scores for different seeds Author : Zachary M. Labe Date : 27 September 2021 Version : 2 (mostly for testing) """ ### Import packages import sys import matplotlib.pyplot as plt import matplotlib.colors as c import numpy as np ### Plotting defaults plt.rc('text',usete...
[ "zmlabe@rams.colostate.edu" ]
zmlabe@rams.colostate.edu
d87d2fd7a1df348093b2c383f2a073227f39de42
4e691a59c67915d5e2cc5a367137dfb02894f4cc
/main/migrations/0005_auto_20191118_1131.py
f8539f0214cc916cee8f0cc19c14e6206fb9725e
[]
no_license
antocaroca/clase-4
fd7395e25debfa807fde2c5823b968747c5d9222
b88b78b022102156ba01cd4804307fafd3c6966b
refs/heads/master
2022-04-30T14:48:03.361465
2019-11-23T13:22:33
2019-11-23T13:22:33
223,596,303
0
0
null
2022-04-22T22:53:32
2019-11-23T13:51:00
Python
UTF-8
Python
false
false
406
py
# Generated by Django 2.2.7 on 2019-11-18 14:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0004_activemanager'), ] operations = [ migrations.AlterField( model_name='productag', name='products', ...
[ "antonella.caroca@cci-entel.cl" ]
antonella.caroca@cci-entel.cl
ee912e4cffffee0781c744461002eba138ced516
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj9-10_233719.19+062504.0/sdB_sdssj9-10_233719.19+062504.0_lc.py
0f09a4e3130e72011e6fee900f36b7ea6ab8c394
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[354.329958,6.417778], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj9-10_233719.19+062504.0/sdB_sdssj9-10_233719.19+062504.0_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
880d0dabd65d48c9ab7140cf7942a975a4dc87e3
f5e7882e9fa8dca9b49d74819918063963eaf515
/FILES/prob2.py
09b48eba87e8bfcd175f537d161d9ee3a423e5a3
[]
no_license
marri88/python-base
66ede5e3da3bce92e2661fabf8a2119644dd5ab3
00002724412f4081ee6d1b91c22cb1ccb5ed92fe
refs/heads/master
2023-06-09T16:13:08.921614
2021-07-02T09:16:38
2021-07-02T09:16:38
382,293,700
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
# -week_2:Работа С файлами- ##################################################################################### # first picture: prob №2 # Создайте файл users.txt. # Напишите программу которая спрашивает у пользователя его Логин и Пароль и записывает в файл users.txt. r = open('/home/aimira/python/python3/week2...
[ "aymira.narzhigitova@gmail.com" ]
aymira.narzhigitova@gmail.com
86550fb12d249da7e19769464f8dd19eee7951c5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_sharpening.py
511f6993ea47ed80907f9f44fb3fcbe24158ade6
[ "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
230
py
#calss header class _SHARPENING(): def __init__(self,): self.name = "SHARPENING" self.definitions = sharpen self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['sharpen']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
73418a4efc33f77e2110c61b4fae9a8d028f2537
14a26103e97b1669ca6f1f44996c4ad65b9f0179
/bim1/week4/16.6.5.py
714f4bcd5a24a3f05a9b49443eec7b91589b1e9e
[]
no_license
igorbragaia/CES-22
6ea0fc3da7ba2274080954071f0070ba78a7f1f4
7c09bdec315421e57f2cd44d50f919f3965144ac
refs/heads/master
2021-09-17T14:40:31.426602
2018-07-02T18:54:40
2018-07-02T18:54:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,916
py
import sys def test(did_pass): """ Prints test result :param did_pass: test result :return: """ linenum = sys._getframe(1).f_lineno # Get the caller's line number. if did_pass: msg = "Test at line {0} ok.".format(linenum) else: msg = ("Test at line {0} FAILED.".format(...
[ "igor.bragaia@gmail.com" ]
igor.bragaia@gmail.com
3d4a9d8593553e43461522b4f38e4009058c4b7f
46355bd117d38191f2ebd23e9250ab121bf839fc
/Airbnb/roundPrice.py
dfa2edbe6aa3ad782e2593c4a64dd5308c29feb7
[]
no_license
Jason003/Interview_Code_Python
f1e1a59e87cfada78a931be6a27a51898442aca4
75dbc8d3906bd00c8129c8ed0b584794c8b41d6b
refs/heads/master
2020-08-12T20:11:56.454848
2019-11-12T01:36:52
2019-11-12T01:36:52
214,835,963
4
1
null
null
null
null
UTF-8
Python
false
false
1,203
py
import math def roundPrice(A): # attention: in python3, round(1.5) = 1 !!! def round(x): fac = x - math.floor(x) return math.ceil(x) if fac >= 0.5 else math.floor(x) if not A: return A roundSum = sum(map(round, A)) sumRound = round(sum(A)) print(roundSum) print(sumRo...
[ "792576519@qq.com" ]
792576519@qq.com
e38b81ecb5dcb797e6cabf948bf96fed37fc0bb9
22bf086e3e7d43b72f0d05aaa3359b766a688a79
/scripts/extract_clues_info.py
5b22dcb47717b771f546fc7cd1ccda68132dab69
[]
no_license
kaspermunch/humanXsweeps
aa7a4e6a175be276713f17f79d7179a5dd644ff5
3a2c4aa496aaffa837eb15dd3d382f7712266f38
refs/heads/master
2023-04-07T13:36:11.619973
2023-03-18T08:05:18
2023-03-18T08:05:18
161,376,285
1
0
null
2023-01-11T14:12:39
2018-12-11T18:25:53
Jupyter Notebook
UTF-8
Python
false
false
886
py
import sys import re import os import pandas as pd import h5py _, output_file_name, steps_dir, *clues_file_names = sys.argv # pylint: disable=unbalanced-tuple-unpacking # open output file: output_file = open(output_file_name, 'w') # loop over base names of for clues_file_name in clues_file_names: # 98000000_995...
[ "kaspermunch@birc.au.dk" ]
kaspermunch@birc.au.dk
71ba6aabb8bb089ad893dcdffa33d9eec54dcd76
65dc8b306c1a22dc3a8ebf53d399135c5b894b69
/guestbook/forms.py
7936a074493597f70ce0116429f3fece381a3b2e
[]
no_license
tokibito/python-hackathon2-guestbook
49e7f144d2c4f9920abea639816645d0edbca292
dfa152cf6cb7ebea1779c63846e36f8dbb90d8c1
refs/heads/master
2020-07-25T08:20:37.459468
2009-11-13T04:53:40
2009-11-13T04:53:40
208,228,426
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
# coding: utf8 from django import forms from guestbook.models import Greeting class GreetingForm(forms.ModelForm): """ ゲストブックの書き込みフォーム モデルを元に生成する """ class Meta: model = Greeting # 書き込み日時は除く exclude = ('create_at',)
[ "xxshss@yahoo.co.jp" ]
xxshss@yahoo.co.jp
b006bdd2968ab6b20d0f4cebef10dca4504e7561
b8ea631aae5d132c7b0236684d5f7c12d3c222be
/ABC/ABC_114C_zentan.py
6204c22fc19b6d2aae27bac78f48b889f8173b21
[]
no_license
Ryushi-tech/card3
68c429313142e58d4722a1cd5a4acc4ab39ca41f
883636b2f518e38343a12816c5c641b60a87c098
refs/heads/master
2021-07-05T22:46:33.089945
2020-12-12T15:31:00
2020-12-12T15:31:00
209,176,836
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
import itertools as it n = int(input()) l = len(str(n)) res = [] for i in range(3, l + 1): for gen in it.product("357", repeat=i): gen_s = "".join(gen) if int(gen_s) <= n: res.append(gen_s) cnt = 0 for r in res: if all(r.count(c) for c in "357"): cnt += 1 print(cnt)
[ "mryrys@gmail.com" ]
mryrys@gmail.com
93d9228177ee76f0b5d92291e7212790f6c0557e
6a0e51fc8d2ea8819711acb7948f4c21c277c771
/the_list.py
bf381ad611c0d6716c2dc2a1241e1b868e580752
[]
no_license
sunzhiyan/Python
eb0bd60edbc85e670ad02af9009df53f5936bff3
3881d124b71f81b7e0bd1e70bcd336238fbcfa3f
refs/heads/master
2022-10-08T21:38:22.799102
2021-03-05T02:32:57
2021-03-05T02:32:57
244,139,633
1
0
null
2022-09-23T22:42:18
2020-03-01T11:50:40
Python
UTF-8
Python
false
false
321
py
# -*- encoding: utf-8 -*- ''' @File : 列表.py @Time : 2020/03/03 22:09:13 @Author : xdbcb8 @Version : 1.0 @Contact : xdbcb8@qq.com @WebSite : www.xdbcb8.com ''' # here put the import lib list=[56,23,89,99,56,45,87,56,65,100] print(max(list)) print(min(list)) print(sum(list)) print(sum(list)/len(list))
[ "noreply@github.com" ]
sunzhiyan.noreply@github.com
38b3cfd6f2bac9bca72f1b1a81f348801111e789
00cb405170a6a9572bef0ec8f373813eada08c03
/Game Structure/geometry/version5/mypainter.py
ce5e1b632d327bbb6cd9614946dd573bfe5136dd
[]
no_license
MarcPartensky/Python-Games
c0ad2857be5832d6029642bb0a96bc8e403a12e3
ebfcaaf4a028eddb36bbc99184eb3f7a86eb24ed
refs/heads/master
2022-09-03T00:04:16.402288
2022-08-12T17:10:22
2022-08-12T17:10:22
166,606,022
2
1
null
2021-03-07T16:20:15
2019-01-19T23:56:04
Python
UTF-8
Python
false
false
7,413
py
from mycase import Case from myabstract import Point, Form import mycolors import numpy as np import shelve from pygame.locals import * class Painter: def __init__(self, *args, **kwargs): """Create a painter.""" self.paints = [Board(), Paint(*args, **kwargs)] self.paint_brush = PaintBrus...
[ "marc.partensky@gmail.com" ]
marc.partensky@gmail.com
270742e36424951d8024a33594d64497bf5758e2
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/331/usersdata/293/94058/submittedfiles/funcoes1.py
cc9f91b72aa5433b90fafe6a6f90c9742a3cf68e
[]
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
452
py
# -*- coding: utf-8 -*- def crescente(n,lista_crescente): #escreva o código da função crescente aqui cont_crescente=0 for i in range(0,n-1,1): if lista_crescente[i]<lista_crescente[i+1] cont_crescente= cont_crescente + 1 if cont_crescente==len(lista_crescente)-1 return ("S")...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
1fa310f9ae1a6793e62ea6ef82a206a3635c31df
d74daa1dfe1f4eac96ceb1d006c59ba19b55d37a
/CS401/GG-Project/GG-Project/productProcessers/ProductReader.py
e6a04f2b514a3650ae352f1cd5ba9b37d87b4018
[]
no_license
muratcancicek/Assignment-Projects
7aac0cced54f392e26b39f6bc46af813faddd628
41c7df2b60f20eb840d409f3fedb4ec6feeafdcc
refs/heads/master
2021-06-06T17:27:11.616251
2017-09-06T12:17:40
2017-09-06T12:17:40
58,016,251
0
1
null
null
null
null
UTF-8
Python
false
false
5,422
py
from MainSrc.PythonVersionHandler import * from .BsonIO import * from paths import * def getCategories(filename): categoriesData = readBson("categories.bson") categories = categoriesData['data']['categories'] print_(len(categories)) deepestCategories = [c for c in categories if c['deepest'] == 'Y'] ...
[ "muratcancicek0@gmail.com" ]
muratcancicek0@gmail.com
ac36af1e489a5c9b31c7590762b0a39c7afac82e
7243df7ee2090f76a3d82b898f8a0f2e82198071
/csv_to_kml.py
e98a31ab4bea4bcfb7c771d945aefad94930d2ad
[]
no_license
TimSC/air-quality-analysis-2018
6e3b8dce1a4ab76b36a362229572e20f7014db09
64a163a1b406f708a66a6f510647d9bfd49b7e5c
refs/heads/master
2020-03-18T13:32:16.576221
2019-06-13T13:07:49
2019-06-13T13:07:49
134,790,376
0
0
null
null
null
null
UTF-8
Python
false
false
4,320
py
#!/usr/bin/env python '''Example of generating KML from data in a CSV file References: ''' from __future__ import print_function import csv import urllib2 from datetime import datetime from lxml import etree from pykml.factory import KML_ElementMaker as KML def makeExtendedDataElements(datadict): '''Converts a dic...
[ "tim2009@sheerman-chase.org.uk" ]
tim2009@sheerman-chase.org.uk
14949c91a4d0ab5a8e7d226a1ccfb3b8e203319e
b74d9c0655593d488f1bbf3e6d97a6d587fae9e8
/printing/wsgi.py
d8b6927a26ae5b4d5ae3ab65cd51e6dc08659019
[]
no_license
dbca-wa/printing
d3353dce75412cfb1a1cf4a1f3f88373b4d36194
e0c5359fecf84a5512c4b9ede71f56acd9058bf9
refs/heads/master
2022-12-12T23:02:43.993583
2016-04-28T07:48:28
2016-04-28T07:48:28
57,281,158
0
0
null
2020-09-09T09:07:44
2016-04-28T07:41:33
JavaScript
UTF-8
Python
false
false
393
py
""" WSGI config for printing 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/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
[ "rocky.chen@dpaw.wa.gov.au" ]
rocky.chen@dpaw.wa.gov.au
829d8ceb31ec21a8324a4ee14faa7bf5ad47e755
20f951bd927e4e5cde8ef7781813fcf0d51cc3ea
/fossir/modules/events/papers/controllers/base.py
ae72c3fe163c825494ededfcc8484349b10fe67e
[]
no_license
HodardCodeclub/SoftwareDevelopment
60a0fbab045cb1802925d4dd5012d5b030c272e0
6300f2fae830c0c2c73fe0afd9c684383bce63e5
refs/heads/master
2021-01-20T00:30:02.800383
2018-04-27T09:28:25
2018-04-27T09:28:25
101,277,325
0
2
null
null
null
null
UTF-8
Python
false
false
2,637
py
from __future__ import unicode_literals from flask import request, session from werkzeug.exceptions import Forbidden, NotFound from fossir.modules.events.contributions.models.contributions import Contribution from fossir.modules.events.controllers.base import RHDisplayEventBase from fossir.modules.events.management...
[ "hodardhazwinayo@gmail.com" ]
hodardhazwinayo@gmail.com
d89c6d607ae28029364a25d266750f8ce316d329
e718d3ccc181a72e7bfe0faad42285f2829a96e5
/GDP_projectOriginal/service/urls.py
a21fadcfe3bedc40bf12129e1924b069fbbf87aa
[]
no_license
Jerrykim91/GDP_project
8a17e75276ee92c93ad621163bffa57a528c258f
cd8e626cc3f01c1051f13115ad3d6217dd99ddc6
refs/heads/master
2022-05-02T01:08:33.955292
2021-03-25T14:43:21
2021-03-25T14:43:21
234,493,053
0
0
null
2022-04-22T23:27:15
2020-01-17T07:16:07
Jupyter Notebook
UTF-8
Python
false
false
651
py
# service\urls.py # import from django.urls import path from . import views urlpatterns = [ # GDP_graph path('search_main', views.search_main, name="search_main"), path('search_detail', views.search_detail, name="search_detail"), path('search_show', views.search_show, name="search_show"), p...
[ "sun4131@gmail.com" ]
sun4131@gmail.com
84f719db77d5ee7f722e08c95dd6bff85761425f
25e989e986522cf91365a6cc51e3c68b3d29351b
/databases/migrations/2018_06_26_165322_add_is_active_to_users_table.py
e16a431117d57b3dbff7c92a8a01d0b377b0c016
[ "MIT" ]
permissive
josephmancuso/gbaleague-masonite2
ff7a3865927705649deea07f68d89829b2132d31
b3dd5ec3f20c07eaabcc3129b0c50379a946a82b
refs/heads/master
2022-05-06T10:47:21.809432
2019-03-31T22:01:04
2019-03-31T22:01:04
136,680,885
0
1
MIT
2022-03-21T22:16:43
2018-06-09T01:33:01
Python
UTF-8
Python
false
false
398
py
from orator.migrations import Migration class AddIsActiveToUsersTable(Migration): def up(self): """ Run the migrations. """ with self.schema.table('users') as table: table.integer('is_active').nullable() def down(self): """ Revert the migrations. ...
[ "idmann509@gmail.com" ]
idmann509@gmail.com
6bfa7de91c5b3465d54ffa63e86ba56adc35cf78
ba0731b2dbc4c1529eaaa79811ec15754c19b4cd
/references/domain.py
9d612aaa40fa48d9746f598c63c465aedf4bba37
[ "MIT" ]
permissive
arXiv/arxiv-references
35f87084cf91947c572faf1a86f119b308fada66
a755aeaa864ff807ff16ae2c3960f9fee54d8dd8
refs/heads/master
2022-12-21T02:34:57.166298
2018-05-04T20:30:48
2018-05-04T20:30:48
94,906,433
8
6
MIT
2022-12-08T02:06:20
2017-06-20T15:26:25
Python
UTF-8
Python
false
false
3,178
py
"""Core data structures in the references application.""" from typing import List, Optional from datetime import datetime from base64 import b64encode from dataclasses import dataclass, field, asdict from unidecode import unidecode @dataclass class Author: """A parsed author name in a bibliographic reference."""...
[ "brp53@cornell.edu" ]
brp53@cornell.edu
7b66b925a73790e4aaf1a9068d9c96e34ae8985d
2d048e630f8d9c546860820ef27700c1020b44cd
/th.py
5ae01e2c7426d7eb7c21903856965982279d5aca
[]
no_license
0h-n0/tch-mnist-simple-benchmak
60ce3b6500f161f9a768e965d82eadf50a1e051f
c2f07661b64c83de82ad760b4a7b20b601a7129b
refs/heads/master
2020-12-31T22:36:26.946751
2020-02-08T02:40:40
2020-02-08T02:40:40
239,057,622
0
0
null
null
null
null
UTF-8
Python
false
false
5,243
py
from __future__ import print_function import time import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR class Net(nn.Module): def __init__(self): super(Net, sel...
[ "kbu94982@gmail.com" ]
kbu94982@gmail.com
ed34089d75838c5200f1175d0b9aece8648523e1
36b75aac4236e928e22552e8812abd45d32aecf1
/modules/dbnd-airflow/src/dbnd_airflow_contrib/utils/system_utils.py
88d9452cd26e2ec091d604cdb48fdd92751efb1d
[ "Apache-2.0" ]
permissive
reloadbrain/dbnd
7793aa1864f678005de626068b0ac9361d637d65
ec0076f9a142b20e2f7afd886ed1a18683c553ec
refs/heads/master
2023-09-01T08:04:09.486666
2021-10-14T16:43:00
2021-10-14T16:43:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,451
py
import logging import re import subprocess logger = logging.getLogger(__name__) def print_stack_trace(stack_frame): try: import traceback traceback.print_stack(stack_frame) except Exception as e: logger.info("Could not print stack trace! Exception: %s", e) def print_cpu_memory_usa...
[ "roman.slipchenko@databand.ai" ]
roman.slipchenko@databand.ai
e5d148377f281451a04b29aa1ba61f66b2a2f021
150d9e4cee92be00251625b7f9ff231cc8306e9f
/LongestCommonSubsequenceSP.py
bcfcc3820f481d704dc5053bddf126c12d6f8f44
[]
no_license
JerinPaulS/Python-Programs
0d3724ce277794be597104d9e8f8becb67282cb0
d0778178d89d39a93ddb9b95ca18706554eb7655
refs/heads/master
2022-05-12T02:18:12.599648
2022-04-20T18:02:15
2022-04-20T18:02:15
216,547,245
0
0
null
null
null
null
UTF-8
Python
false
false
1,680
py
''' 1143. Longest Common Subsequence Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0. A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without changing the relati...
[ "jerinsprograms@gmail.com" ]
jerinsprograms@gmail.com
d971cd5adcf944f961e3a880ed247c1f0f3464c2
0ef98f8a60e4d30001c918dae6fa7ac6283abca9
/61.py
8fb34a02053700a90124fd61efbb6ce24271c8d1
[]
no_license
samrithasudhagar/pro
a0169fc89c8c6d6189ac984ec3fab26e23269264
c90cb60fefb74174f12db5ee80812c2374e4e3ce
refs/heads/master
2020-04-22T11:00:47.588732
2019-06-20T09:43:28
2019-06-20T09:43:28
170,324,794
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
a=input() c=input() s="" l=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] for i in range(len(a)): k=l.index(a[i]) p=l.index(c[i]) s=s+l[(k+p)%26+1] print(s)
[ "noreply@github.com" ]
samrithasudhagar.noreply@github.com
db970fba12cef3fd3dc931f70a998a1bb9b80ed5
5b52feaf975c810693bbd9c67deb061824cdca32
/Darlington/phase-2/FILE 1/O/day 84 solution/qtn3.py
13efc55791274ad1db6d3c1951ab660afa1f5ddb
[ "MIT" ]
permissive
darlcruz/python-challenge-solutions
1dd21796b86f8fdcfa9a1a15faa26ab3e8e0f7b1
3e03a420d01177b71750d4d1b84cb3cbbf8c6900
refs/heads/master
2022-12-20T23:50:08.641120
2020-09-28T21:34:14
2020-09-28T21:34:14
263,591,779
0
0
MIT
2020-05-13T10:00:21
2020-05-13T10:00:20
null
UTF-8
Python
false
false
372
py
# program to create a file where all letters of English alphabet are listed by # specified number of letters on each line. import string def letters_file_line(n): with open("words1.txt", "w") as f: alphabet = string.ascii_uppercase letters = [alphabet[i:i + n] + "\n" for i in range(0, len(alphabet), n...
[ "darlingtonchibuzor64@gmail.com" ]
darlingtonchibuzor64@gmail.com
69729b36949e741a9c7edf3832821394f61312c9
44f216cc3bb4771c8186349013ff0ed1abc98ea6
/torch/distributed/_shard/sharded_tensor/_ops/math_ops.py
6d3ed59da38cc711b1b67bbf8fd16e507d64083c
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
eiphy/pytorch
a8fc21a3c0552b392ed8c3a1d69f7ed8660c56ac
104f0bf09ec7609d1c5626a7d7953ade4f8c9007
refs/heads/master
2022-05-23T02:10:13.158924
2022-05-07T21:26:00
2022-05-07T21:26:00
244,914,898
2
0
NOASSERTION
2020-03-04T14:00:53
2020-03-04T14:00:53
null
UTF-8
Python
false
false
3,242
py
import torch from torch import Tensor from torch.distributed._shard.sharded_tensor import ( ShardedTensor, sharded_op_impl ) from torch.distributed._shard.replicated_tensor import ReplicatedTensor from torch.distributed._shard._utils import narrow_tensor def binary_math_op_impl(op, types, args=(), kwargs=None...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
c00894ef0c8a747b7a9d05f73efe554aa75785e6
5111b0c881c8d86705f2b237e14024396e34091a
/task_check_list/models/task_check_list.py
88812aad7bc1b21e05fae5f1a896ebb05a2373dd
[]
no_license
odoomates/odooapps
a22fa15346694563733008c42549ebc0da7fc9f6
68061b6fa79818d17727ef620e28fff44b48df72
refs/heads/16.0
2023-08-11T15:25:28.508718
2023-08-10T17:58:45
2023-08-10T17:58:45
173,598,986
182
306
null
2023-08-10T17:58:46
2019-03-03T16:20:23
Python
UTF-8
Python
false
false
1,019
py
# -*- coding: utf-8 -*- from odoo import models, fields, api class ProjectTask(models.Model): _inherit = 'project.task' @api.depends('task_checklist') def checklist_progress(self): total_len = self.env['task.checklist'].search_count([]) for rec in self: if total_len != 0: ...
[ "odoomates@gmail.com" ]
odoomates@gmail.com
1c68bb6b8863c584a3f0728adcaa19a31159f831
754d26af3d5fa0900d1dbfc934f3b9f0970e2a47
/unchained/community/announcement/views.py
da9977b7d41c7f38d2fd2e479fe5ec88fbdaba8e
[]
no_license
live-wire/community
8a7bfdb4e2d6562d12be334ba0e655ffe041bb5f
7b2efa7b78465134138ee08fc557f4fedf678394
refs/heads/master
2021-07-11T10:26:31.535653
2020-03-20T02:37:30
2020-03-20T02:37:30
140,683,308
3
2
null
2020-06-06T12:03:38
2018-07-12T08:17:50
JavaScript
UTF-8
Python
false
false
1,121
py
from django.shortcuts import render from rest_framework import generics from rest_framework import mixins from django.contrib.auth.models import User from rest_framework import permissions from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import r...
[ "dhruv.life@hotmail.com" ]
dhruv.life@hotmail.com
50a4aa9cfcccc1e4f762802aeab4c1d0c615195b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04019/s609202447.py
9cd2c625f2777b825900b773714a1f4e6fb7849b
[]
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
326
py
S=input() n=0 s=0 w=0 e=0 for i in range(len(S)): if S[i]=="N": n+=1 if S[i]=="S": s+=1 if S[i]=="W": w+=1 if S[i]=="E": e+=1 if n!=0 and s!=0 and w!=0 and e!=0 or n==0 and s==0 and w!=0 and e!=0 or n!=0 and s!=0 and w==0 and e==0: print("Yes") else: print("No")...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
96df2462240b880242a521c7a6728ce366df98c0
553b34a101c54090e68f540d96369ac7d5774d95
/python/python_koans/python2/koans/about_list_assignments.py
aa05dc5b8a69e50728be9798b3455af462f5c023
[ "MIT" ]
permissive
topliceanu/learn
fd124e1885b5c0bfea8587510b5eab79da629099
1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3
refs/heads/master
2022-07-16T19:50:40.939933
2022-06-12T15:40:20
2022-06-12T15:40:20
21,684,180
26
12
MIT
2020-03-26T20:51:35
2014-07-10T07:22:17
JavaScript
UTF-8
Python
false
false
947
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Based on AboutArrayAssignments in the Ruby Koans # from runner.koan import * class AboutListAssignments(Koan): def test_non_parallel_assignment(self): names = ["John", "Smith"] self.assertEqual(['John', 'Smith'], names) def test_parallel_ass...
[ "alexandru.topliceanu@gmail.com" ]
alexandru.topliceanu@gmail.com
b883d4613806a95ab753103d22f2fcd096a20b3f
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/others/Pix2Pix/util/__init__.py
4de848e30b5a486d7214bec80276e35a3a4d0d04
[ "BSD-3-Clause", "BSD-2-Clause", "Apache-2.0", "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
667
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law or agreed to in ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
9c439dd90703b73edc146cfbc628fab4e7984a37
cfa08425d0a457e0c673543b6e16f0a02effe05f
/projects/admm_4bus/data/sixbus/plot.py
86a8e56d3602f498a28cb6b6409a2bb9500fe2cf
[]
no_license
missinglpf/Distributed_optimization
5b3dfea8b2a29225761537531322e421be83d7a8
84040eebd3f04acf4c09e5e4ff2e59e752bf3fae
refs/heads/master
2020-08-01T03:42:36.455932
2018-06-25T15:59:44
2018-06-25T15:59:44
210,850,421
1
0
null
2019-09-25T13:20:11
2019-09-25T13:20:10
null
UTF-8
Python
false
false
4,376
py
import matplotlib.pyplot as plt import pandas as pd import numpy as np from datetime import datetime # df0 = pd.read_csv('lamda300/data_A_0.csv') # df1 = pd.read_csv('lamda300/data_A_0.csv') # df0 = pd.read_csv('lamda200/data_A_0.csv') # df3 = pd.read_csv('lamda100/data_A_0.csv') df0 = pd.read_csv('lamda50/...
[ "tunglam87@gmail.com" ]
tunglam87@gmail.com
afb02e97b0e4004e14d9c672ec1972d124005491
f1bff0e018463081513c30258a67f238f5d08396
/finalizing.py
b5105ab4545ed0f1ea81bf1665dca4f52c311693
[]
no_license
bellyfat/speaker-Identification
cfcedd86ea634d5df19e560acea250c5b8dbc5d0
34c9ce12c6400f116e04a0d1be75e0e79228d599
refs/heads/master
2022-04-07T12:23:59.446618
2019-08-26T07:59:44
2019-08-26T07:59:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,290
py
from recoder import * import glob, os import wave import pylab def training(): get_model() print("training complete....") # getting the audio def getAudio(): rec = Recorder() print("Start recording") rec.start() time.sleep(11) print("Stop recording") rec.stop() print("Saving") rec...
[ "noreply@github.com" ]
bellyfat.noreply@github.com
0a6d677d3bfe4d9fc3186df61d42fd1449051a94
cb0e7d6493b23e870aa625eb362384a10f5ee657
/solutions/python3/0239.py
9306b2072110eb6570e723b0a84bc6ed856cb9dd
[]
no_license
sweetpand/LeetCode-1
0acfa603af254a3350d457803449a91322f2d1a7
65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94
refs/heads/master
2022-11-14T07:01:42.502172
2020-07-12T12:25:56
2020-07-12T12:25:56
279,088,171
1
0
null
2020-07-12T15:03:20
2020-07-12T15:03:19
null
UTF-8
Python
false
false
530
py
class Solution: def maxSlidingWindow(self, nums: List[int], k: int) -> List[int]: ans = [] decreasingQueue = collections.deque() for i, num in enumerate(nums): while decreasingQueue and num > decreasingQueue[-1]: decreasingQueue.pop() decreasingQueue....
[ "walkccray@gmail.com" ]
walkccray@gmail.com
8e725276edde728b56862510da106778c1da2780
7f57c12349eb4046c40c48acb35b0f0a51a344f6
/2017/002_AddTwoNumbers_v1.py
1ea044ab8f4b389954d82f3afbf3dffdd586c7d5
[]
no_license
everbird/leetcode-py
0a1135952a93b93c02dcb9766a45e481337f1131
b093920748012cddb77258b1900c6c177579bff8
refs/heads/master
2022-12-13T07:53:31.895212
2022-12-10T00:48:39
2022-12-10T00:48:39
11,116,752
2
0
null
null
null
null
UTF-8
Python
false
false
1,639
py
#!/usr/bin/env python # encoding: utf-8 class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # @param {ListNode} l1 # @param {ListNode} l2 # @return {ListNode} def addTwoNumbers(self, l1, l2): head = p = None carry = 0 while l...
[ "stephen.zhuang@gmail.com" ]
stephen.zhuang@gmail.com
47fc7609c7840f44a8a36732191723aaed6399c9
45c170fb0673deece06f3055979ece25c3210380
/toontown/coghq/BossbotCountryClubKartRoom_Battle00.py
6209ace14272197b5d427ec788369610888baf8c
[]
no_license
MTTPAM/PublicRelease
5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f
825f562d5021c65d40115d64523bb850feff6a98
refs/heads/master
2021-07-24T09:48:32.607518
2018-11-13T03:17:53
2018-11-13T03:17:53
119,129,731
2
6
null
2018-11-07T22:10:10
2018-01-27T03:43:39
Python
UTF-8
Python
false
false
1,780
py
#Embedded file name: toontown.coghq.BossbotCountryClubKartRoom_Battle00 from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'ph...
[ "linktlh@gmail.com" ]
linktlh@gmail.com
d8194a910febb338161234dd2ca1b0ca28446a04
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03129/s416237729.py
26351727aeb63985e21352d846400af1977248dc
[]
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
129
py
n,k = input().split() n = int(n) k = int(k) for l in range(k): l = 2*l +1 c = l if c <= n: print('YES') else: print('NO')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
373acc2bcb313e92d96b6a0047fef866c1c722f7
7bc54bae28eec4b735c05ac7bc40b1a8711bb381
/src/scratch/code2023/namespace.py
99715efdf2a7cd185fc763fdba1aab4033c39f8a
[]
no_license
clover3/Chair
755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e
a2102ebf826a58efbc479181f1ebb5de21d1e49f
refs/heads/master
2023-07-20T17:29:42.414170
2023-07-18T21:12:46
2023-07-18T21:12:46
157,024,916
0
0
null
2023-02-16T05:20:37
2018-11-10T21:55:29
Python
UTF-8
Python
false
false
5,654
py
import logging import os from tensorflow.python.ops.summary_ops_v2 import create_file_writer import trainer_v2.per_project.transparency.mmp.probe.probe_common from cpath import output_path from misc_lib import path_join from trainer_v2.custom_loop.modeling_common.adam_decay import AdamWeightDecay from trainer_v2.cus...
[ "lesterny@gmail.com" ]
lesterny@gmail.com
6cedc11b21eb576d025e57da6ccc3febbc2bb6c4
d2c80cd70f3220165c7add7ed9a103c0ed1ab871
/python/HOMEWORK/5th_Session/Answers/Class/1/1.py
37d69bb2650fbd94bf752634ed7bc727c291f579
[]
no_license
nervaishere/DashTeam
2a786af8a871200d7facfa3701a07f97230b706e
a57b34a601f74b06a7be59f2bfe503cbd2a6c15f
refs/heads/master
2023-08-24T12:24:18.081164
2021-10-09T21:10:54
2021-10-09T21:10:54
393,689,874
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
a=int(input("enter your first number:" )) b=int(input("enter your second number:" )) c=int(input("enter your third number:" )) maximum=max(a,b,c) minimum=min(a,b,c) if a==maximum and b==minimum: print(a, c, b) elif a==maximum and c==minimum: print(a, b, c) elif b==maximum and a==minimum: print(b, ...
[ "athenajafari34@gmail.com" ]
athenajafari34@gmail.com
86afd457c842b29e419998349f8353c18483ab10
54ab0f79f5d68f4732ca7d205f72ecef99862303
/benchmarks/distributed/rpc/parameter_server/metrics/ProcessedMetricsPrinter.py
7ff8c3171a83336b367299649c37b08f416d7ca2
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
csarofeen/pytorch
a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc
e8557ec5e064608577f81e51ccfe7c36c917cb0f
refs/heads/devel
2023-04-30T02:42:13.558738
2023-03-14T00:50:01
2023-03-14T00:50:01
88,071,101
35
10
NOASSERTION
2023-06-21T17:37:30
2017-04-12T16:02:31
C++
UTF-8
Python
false
false
3,206
py
import statistics import pandas as pd from tabulate import tabulate class ProcessedMetricsPrinter: def print_data_frame(self, name, processed_metrics): print(f"metrics for {name}") data_frame = self.get_data_frame(processed_metrics) print(tabulate(data_frame, showindex=False, headers=dat...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
64a2f6689e74b94b8ed76e6cae0bed317078440b
bfc25f1ad7bfe061b57cfab82aba9d0af1453491
/data/external/repositories_2to3/204509/kaggle-liberty-mutual-group-master/code/correlation.py
b6f3c6e3fd83c3c6656f2ae5fe14cd5de6b86512
[ "MIT" ]
permissive
Keesiu/meta-kaggle
77d134620ebce530d183467202cf45639d9c6ff2
87de739aba2399fd31072ee81b391f9b7a63f540
refs/heads/master
2020-03-28T00:23:10.584151
2018-12-20T19:09:50
2018-12-20T19:09:50
147,406,338
0
1
null
null
null
null
UTF-8
Python
false
false
422
py
# -*- coding: utf-8 -*- """ simple code to calculate Pearson correlation between two results """ import pandas as pd import numpy as np print('Reading data...') xgb1 = pd.read_csv("../output/xgboost_1.csv") xgb2 = pd.read_csv("../output/xgboost_2.csv") rf = pd.read_csv("../output/rf.csv") gbm = pd.read_...
[ "keesiu.wong@gmail.com" ]
keesiu.wong@gmail.com
7461637d40a3096ec3e12766fc5d9198b8cb2fdb
3e4bb5b4036a66d25a72793c1deaa4f5572d37bf
/apps/pyvcal/tests/independent/revision.py
8c3bae6df8ddd6187220622f0a6e5e8f2e1e65fd
[ "MIT" ]
permissive
hbussell/pinax-tracker
f7f7eb0676d01251d7d8832557be14665755844d
4f6538324b2e1f7a8b14c346104d2f1bd8e1556b
refs/heads/master
2021-01-20T12:06:29.630850
2010-02-03T00:39:05
2010-02-03T00:39:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,092
py
import modulespecific import unittest class TestRevision(modulespecific.ModuleSpecificTestCase): """Test the Revision interface.""" def setUp(self): """Create and connect to a repository.""" self.basic_repo = self.test_module.BasicRepository() self.repo = self.basic_repo.repo() ...
[ "harley@harley-desktop.(none)" ]
harley@harley-desktop.(none)
5d074a0b8bca96ac9ec808db99922c922dfe31a1
bc441bb06b8948288f110af63feda4e798f30225
/monitor_sdk/model/flowable_service/process_instance_pb2.py
4138e633ea17940cb65e4ffd486693a240303547
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
true
6,546
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: process_instance.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pro...
[ "service@easyops.cn" ]
service@easyops.cn
e1777a1bf88087f70635240d8c7855eca9233d1a
cb35fffaab9650a8b89019a0269ad7cdf772f757
/news/migrations/0001_initial.py
849f2c75fec1aa5d94778cd7ca1fc5ab0994583d
[]
no_license
amazing22/my-second-blog
6c75dddae2650269805edfa9c0f2b89ba6f1db48
a5cc02663badcbb2efcaf6d291a634edbdb8a009
refs/heads/master
2021-08-08T03:19:58.404245
2017-11-09T12:32:22
2017-11-09T12:32:22
102,439,698
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-11 05:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
[ "you@example.com" ]
you@example.com
abb40f6104d91f9d09907f53c15d22b40b43d962
6f1e1c378997bf76942ce6e203e720035169ce27
/104-maximum-depth-of-binary-tree.py
7c47b2cce48c405645fdc77aba59813e9127047c
[ "MIT" ]
permissive
yuenliou/leetcode
a489b0986b70b55f29d06c2fd7545294ba6e7ee5
e8a1c6cae6547cbcb6e8494be6df685f3e7c837c
refs/heads/main
2021-06-16T07:47:39.103445
2021-05-11T09:16:15
2021-05-11T09:16:15
306,536,421
0
0
null
null
null
null
UTF-8
Python
false
false
1,927
py
#!/usr/local/bin/python3.7 # -*- coding: utf-8 -*- from collections import deque from datatype.tree_node import TreeNode class Solution: def maxDepth(self, root: TreeNode) -> int: """dfs""" if not root: return 0 else: l = self.maxDepth(root.left) r = self...
[ "liuyuan@aplum.com.cn" ]
liuyuan@aplum.com.cn
79800080c4d9f0483f339e63026999badf2cd752
4522fc52bc43654aadd30421a75bae00a09044f0
/alfa/diannad.py
f52594100e43207f34f304fe117f59a727bc3de3
[]
no_license
qesoalpe/anelys
1edb8201aa80fedf0316db973da3a58b67070fca
cfccaa1bf5175827794da451a9408a26cd97599d
refs/heads/master
2020-04-07T22:39:35.344954
2018-11-25T05:23:21
2018-11-25T05:23:21
158,779,332
0
0
null
null
null
null
UTF-8
Python
false
false
779
py
from sarah.acp_bson import Recipient from base64 import b64decode import json ff = open('dianna_file', 'rb') config = json.loads(b64decode(ff.read()).decode()) ff.close() def handle_request(msg): if 'request_type' in msg: if msg['request_type'] == 'get': if msg['get'] == 'dianna/local_device'...
[ "qesoalpe@gmail.com" ]
qesoalpe@gmail.com
5798d06030285a366239004b9efbbf2e57eedf93
5864e86954a221d52d4fa83a607c71bacf201c5a
/spacecomponents/server/components/itemtrader.py
d137971475932934dac6aa414f5db1d9685da1b9
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
4,402
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\spacecomponents\server\components\itemtrader.py from spacecomponents.common.components.component import Component from spacecomponents.common.componentregistry import ExportCall import evetypes class ItemTrader(Component): ...
[ "le02005@163.com" ]
le02005@163.com
b018c86a7c6c80f8fa48f8ac5dcca77ac0fc80bc
d8c50195fe04a09bd98e12f0b18a84dbe4a3dfe2
/zeus/tasks/process_artifact.py
a16482e42a4078a95b72babb1012eb62ace1e806
[ "Apache-2.0" ]
permissive
keegancsmith/zeus
44eeac0e9c99635f21bfa7ec744c84be7b40525e
e7bfe3db564ad1bbf449d8197f7d663fe41dd60a
refs/heads/master
2021-09-04T04:34:47.747175
2018-01-12T17:24:11
2018-01-12T21:55:31
117,591,379
0
0
null
2018-01-15T20:19:57
2018-01-15T20:19:57
null
UTF-8
Python
false
false
2,120
py
from flask import current_app from zeus import auth from zeus.artifacts import manager as default_manager from zeus.config import celery, db from zeus.constants import Result from zeus.models import Artifact, Job, Status from zeus.utils import timezone from .aggregate_job_stats import aggregate_build_stats_for_job ...
[ "dcramer@gmail.com" ]
dcramer@gmail.com
4e71953ea5d17920c540d29e944877d704f20cc5
4ee4c2cafad449dd60032630bdd249e63d70b5ac
/plugins/xevents/Xlib/xauth.py
4755b353f1bc01bc186ea50603860a9c1df9ddec
[ "MIT", "GPL-2.0-only" ]
permissive
rrojasPy/TurtleBots.activity
4c44ed90b1aadbd0788cdb091fc647deac28d8e8
c18e64cc817b2bd8d8cd80a538ff703f580bbe42
refs/heads/master
2022-10-20T20:46:27.304452
2020-06-17T15:57:11
2020-06-17T15:57:11
273,014,877
0
1
MIT
2020-06-17T15:57:12
2020-06-17T15:44:15
null
UTF-8
Python
false
false
4,168
py
# $Id: xauth.py,v 1.5 2007/06/10 14:11:58 mggrant Exp $ # # Xlib.xauth -- ~/.Xauthority access # # Copyright (C) 2000 Peter Liljenberg <petli@ctrl-c.liu.se> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the F...
[ "rodneyrrs@hotmail.com" ]
rodneyrrs@hotmail.com
0eee2867d2a4f3aca7a06bb5468124d94ef182fe
1e263d605d4eaf0fd20f90dd2aa4174574e3ebce
/components/ally-utilities/__setup__/ally_utilities/logging.py
b8a479b38eb8e2357cf75e837ffe1b544a61d068
[]
no_license
galiminus/my_liveblog
698f67174753ff30f8c9590935d6562a79ad2cbf
550aa1d0a58fc30aa9faccbfd24c79a0ceb83352
refs/heads/master
2021-05-26T20:03:13.506295
2013-04-23T09:57:53
2013-04-23T09:57:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
''' Created on Nov 7, 2012 @package: ally utilities @copyright: 2012 Sourcefabric o.p.s. @license: http://www.gnu.org/licenses/gpl-3.0.txt @author: Gabriel Nistor Provides the logging configurations to be used for the application. ''' from ally.container import ioc # ------------------------------------------------...
[ "etienne@spillemaeker.com" ]
etienne@spillemaeker.com
c52e5a01d006afaa44d941558a3b4413e7d46507
2c97e11e13bfbabfdae8979385ba0957c7b11270
/ebl/tests/corpus/test_text.py
492a85c0eae4e191f7fa44e750326ebdfcf9d5eb
[ "MIT" ]
permissive
ElectronicBabylonianLiterature/ebl-api
72a2a95291e502ec89a20ebe5c14447e63ac6d92
4910f6fbb57fa213fef55cbe9bc16215aebbaa27
refs/heads/master
2023-08-16T12:42:03.303042
2023-08-16T10:59:44
2023-08-16T10:59:44
135,266,736
11
3
MIT
2023-09-12T09:56:14
2018-05-29T08:39:58
Python
UTF-8
Python
false
false
679
py
import pytest from ebl.transliteration.domain.stage import Stage from ebl.tests.factories.corpus import ChapterListingFactory, TextFactory @pytest.mark.parametrize( "chapters,expected", [ (tuple(), False), (ChapterListingFactory.build_batch(2, stage=Stage.NEO_ASSYRIAN), False), ( ...
[ "noreply@github.com" ]
ElectronicBabylonianLiterature.noreply@github.com
917fcebd166d847a92f7e606dacab4fd29e3999f
3f70e754981a941dbc3a24d15edb0a5abe3d4788
/yotta/test/test_ignores.py
a2b9a8a7100fa9cee34d536a142b11b4dc2cd2c5
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ARMmbed/yotta
66cfa634f03a25594311a569ea369a916cff70bf
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
refs/heads/master
2023-03-16T11:57:12.852163
2021-01-15T13:49:47
2021-01-15T13:49:47
16,579,440
184
87
Apache-2.0
2021-01-15T13:46:43
2014-02-06T13:03:45
Python
UTF-8
Python
false
false
5,789
py
#!/usr/bin/env python # Copyright 2015 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. # standard library modules, , , import unittest import os # internal modules: from yotta.lib.detect import systemDefaultTarget from yotta.lib import component from yotta.test.cli impo...
[ "James.Crosby@arm.com" ]
James.Crosby@arm.com
21592df1ab03e4bc5631a96f3de6b93a787069ac
e6f0d9716288c7a8ac04aad852343177195fe8a4
/hydrus/client/db/ClientDBMappingsStorage.py
b563cc014146c8b9f8777769f993c37b28e09b00
[ "WTFPL" ]
permissive
dot1991/hydrus
d5fb7960650c7b0cc999832be196deec073146a2
e95ddf7fb65e2a1fc82e091473c4c9e6cb09e69d
refs/heads/master
2023-06-15T19:29:59.477574
2021-07-14T20:42:19
2021-07-14T20:42:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,221
py
import sqlite3 import typing from hydrus.core import HydrusConstants as HC from hydrus.core import HydrusDBModule from hydrus.client.db import ClientDBServices def GenerateMappingsTableNames( service_id: int ) -> typing.Tuple[ str, str, str, str ]: suffix = str( service_id ) current_mappings_table_...
[ "hydrus.admin@gmail.com" ]
hydrus.admin@gmail.com
f6e48ed453acfeacb2bc7ce5b0987480f39bf064
225a1d5fca742ae4f502bc346e26d804283e925e
/luna/shortcuts.py
eb802ebf4837f5a06844a562249863d1b76f2dc0
[ "MIT" ]
permissive
y372465774/luna
8ad056fdd956c9fa5508d6d3a657b76785e9641d
ee3bb740f2cee67fa84b3e923979d29fd14015a7
refs/heads/master
2021-06-21T12:43:09.821262
2017-06-03T23:11:47
2017-06-03T23:11:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
from luna import util from luna.compiler import Compiler from luna.parser import Parser def compile(filepath): tree = parse(filepath) compiler = Compiler() return compiler.compile(tree) def interpret(filepath): frame = compile(filepath) frame.run() def parse(filepath): import os content ...
[ "numerodix@gmail.com" ]
numerodix@gmail.com
d2e678f126fa9f4a2b06d9a9db003b86dc26c0cb
d668209e9951d249020765c011a836f193004c01
/tools/pnnx/tests/ncnn/test_F_pad.py
88590649883cbbc978a447b89328a1e6e6372751
[ "BSD-3-Clause", "Zlib", "BSD-2-Clause" ]
permissive
Tencent/ncnn
d8371746c00439304c279041647362a723330a79
14b000d2b739bd0f169a9ccfeb042da06fa0a84a
refs/heads/master
2023-08-31T14:04:36.635201
2023-08-31T04:19:23
2023-08-31T04:19:23
95,879,426
18,818
4,491
NOASSERTION
2023-09-14T15:44:56
2017-06-30T10:55:37
C++
UTF-8
Python
false
false
2,062
py
# Tencent is pleased to support the open source community by making ncnn available. # # Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the...
[ "noreply@github.com" ]
Tencent.noreply@github.com
ed20f0ff5ef0931674df3d3cb706768578fb1f47
28225a61f2fc33e4f6d56a1941a99301489c0f1e
/GAN/CoGAN(WIP)/main.py
34036d03559776a7b713da6c23fac7aa13909638
[]
no_license
sailfish009/pytorchTutorialRepo
97cb4368b6ac22bd678965d351196b47d52970e1
17d67e64555d2b219d7d53de6a7bfda4172b809b
refs/heads/master
2023-03-08T13:03:57.244087
2021-02-23T11:26:19
2021-02-23T11:26:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,696
py
import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR from tqdm import tqdm from trainer import * import torchvision.models as models import mnistm import os os.environ["TORC...
[ "msubhaditya@gmail.com" ]
msubhaditya@gmail.com
9bcc59034c881a3c1b6c4c6e4be0b400fa0191b6
d8da64ecb3a88f8f3196937d3836c7bbafd5e26f
/backend/home/migrations/0002_load_initial_data.py
5ac5736cbfb33d2462efd03c2c2be03900aba58d
[]
no_license
crowdbotics-apps/layouteditor151-1654
990b395d8054e05b0f8739345d5e55623cead88c
75e3614856ab5577da68e9ec4ad0157f462abd6d
refs/heads/master
2022-11-16T05:09:59.518254
2020-07-03T17:54:23
2020-07-03T17:54:23
276,958,333
0
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "layouteditor151" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
119c672f5d02ac1dc65310e156c212718e05ac89
d838bed08a00114c92b73982a74d96c15166a49e
/docs/data/learn/Bioinformatics/output/ch8_code/src/metrics/PearsonSimilarity.py
aae4c9870689ccc0776b67c2e785b313c5e05669
[]
no_license
offbynull/offbynull.github.io
4911f53d77f6c59e7a453ee271b1e04e613862bc
754a85f43159738b89dd2bde1ad6ba0d75f34b98
refs/heads/master
2023-07-04T00:39:50.013571
2023-06-17T20:27:05
2023-06-17T23:27:00
308,482,936
1
0
null
null
null
null
UTF-8
Python
false
false
1,725
py
from math import sqrt from statistics import mean from sys import stdin from typing import Sequence import yaml # MARKDOWN def pearson_similarity(v: Sequence[float], w: Sequence[float], dims: int): v_avg = mean(v) w_avg = mean(w) vec_avg_diffs_dp = sum((v[i] - v_avg) * (w[i] - w_avg) for i in range(dims)...
[ "offbynull@gmail.com" ]
offbynull@gmail.com
12715c528873546ae9649b4dbb52876cf6d0505b
f90522eee8d87c1486f32f3801a67141f7aee15f
/0129.Sum Root to Leaf Numbers/solution.py
a5789c653314b4d53aacfa3e2860b7adcd4c6bbb
[ "Apache-2.0" ]
permissive
zhlinh/leetcode
15a30af8439e664d2a5f1aa328baf96f0f1791da
6dfa0a4df9ec07b2c746a13c8257780880ea04af
refs/heads/master
2021-01-15T15:49:25.525816
2016-09-20T03:24:10
2016-09-20T03:24:10
48,949,767
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-03-11 Last_modify: 2016-03-11 ****************************************** ''' ''' Given a binary tree containing digits from...
[ "zhlinhng@gmail.com" ]
zhlinhng@gmail.com
3b6849ee78281ae2e1737249fd55941971b110fc
7ab4cdf01de10faa0b5e6103cb98f4a1447b38e1
/ChromeController/__init__.py
29f415a8675ecb9d895139a843ac001249a70336
[ "BSD-3-Clause" ]
permissive
acskurucz/ChromeController
619a0d46db60809bbe1188dc1d7230e3ef2dba47
4294c1ca7db9569a976710c7c219069eb07d28bf
refs/heads/master
2020-12-08T16:40:32.528694
2020-01-10T12:36:28
2020-01-10T12:36:28
233,036,106
0
0
BSD-3-Clause
2020-01-10T11:47:56
2020-01-10T11:47:55
null
UTF-8
Python
false
false
687
py
from .tab_pool import TabPooledChromium from .chrome_context import ChromeContext from .transport import ChromeExecutionManager from .manager import ChromeRemoteDebugInterface from .Generator import gen from .cr_exceptions import ChromeControllerException from .cr_exceptions import ChromeStartupException from .cr_ex...
[ "something@fake-url.com" ]
something@fake-url.com