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
69071952bcbff4db2e4531526dc192df0824bf05
0c86b24033e486c97a93f9523b64c9d555c88bd1
/app/processing/Constants.py
3514909a5c087183f5e6805735eba9fbdc422de0
[]
no_license
generaldave/recursion_challenge
8ade0469bc95f9bb296990cc598b38fc912255ea
5b6c66b836aae496eb4d96ea589d7b3c3a28111b
refs/heads/master
2021-05-16T04:29:15.361400
2017-10-22T12:21:40
2017-10-22T12:21:40
106,060,131
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
''' David Fuller Constants file - File contains processing package constants. 10-18-2017 ''' from collections import namedtuple color = namedtuple('color', ['r', 'g', 'b']) black = color(r = 0, g = 0, b = 0) fill = 0
[ "icepicktoeye@gmail.com" ]
icepicktoeye@gmail.com
e5df2cac5af1e7675c2834552eb84e30557ef284
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/elasticache_write_f/migration_start.py
57199a5b11bdc29cefbb78c2d99566301c09f993
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
88ac5475218c83d8f3cdb7a5707979f243d89c73
2ed86a79d0fcd299ad4a01310954c5eddcf01edf
/homeassistant/components/flume/entity.py
ef63eeff1d7e012ff7b58bcaa77453070d2d0b88
[ "Apache-2.0" ]
permissive
konnected-io/home-assistant
037f12c87bb79e19220192eb918e49db1b1a8b3e
2e65b77b2b5c17919939481f327963abdfdc53f0
refs/heads/dev
2023-05-11T08:57:41.891518
2023-05-07T20:03:37
2023-05-07T20:03:37
109,931,626
24
10
Apache-2.0
2023-02-22T06:24:01
2017-11-08T05:27:21
Python
UTF-8
Python
false
false
1,966
py
"""Platform for shared base classes for sensors.""" from __future__ import annotations from typing import TypeVar from homeassistant.helpers.entity import DeviceInfo, EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coordinator import ( Flum...
[ "noreply@github.com" ]
konnected-io.noreply@github.com
9a70646f2495e0391bb3a4eff9d772867a98b1e3
5a319a47587653dab9472eab4055144bcfd25967
/src/opendr/perception/object_tracking_2d/fair_mot/algorithm/lib/tracker/matching.py
850fbeae8cb2296c8cbaceffbf104e03de1f162c
[ "Apache-2.0" ]
permissive
passalis/demos
612a7e07ba125d9815e110ff483132e162759dd7
d8aeb045ee1832418fa232bc1c73783d72d10cf7
refs/heads/main
2023-07-19T03:25:05.269333
2021-09-21T19:59:42
2021-09-21T19:59:42
397,585,032
1
0
Apache-2.0
2021-09-21T19:58:51
2021-08-18T12:02:00
Python
UTF-8
Python
false
false
4,740
py
import cv2 import numpy as np import scipy import lap from scipy.spatial.distance import cdist from cython_bbox import bbox_overlaps as bbox_ious from opendr.perception.object_tracking_2d.fair_mot.algorithm.lib.tracking_utils import kalman_filter import time def merge_matches(m1, m2, shape): O, P, Q = shape ...
[ "passalis@csd.auth.gr" ]
passalis@csd.auth.gr
48fcfcfc861eb1909a5b77a1e8b155fb169917c0
993ef8924418866f932396a58e3ad0c2a940ddd3
/Production/python/PrivateSamples/EMJ_UL18_mMed-1200_mDark-20_ctau-150_unflavored-down_cff.py
515c71897a83cb6ed2e74ab5cf63cf3af9d9f817
[]
no_license
TreeMaker/TreeMaker
48d81f6c95a17828dbb599d29c15137cd6ef009a
15dd7fe9e9e6f97d9e52614c900c27d200a6c45f
refs/heads/Run2_UL
2023-07-07T15:04:56.672709
2023-07-03T16:43:17
2023-07-03T16:43:17
29,192,343
16
92
null
2023-07-03T16:43:28
2015-01-13T13:59:30
Python
UTF-8
Python
false
false
1,981
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ 'root://cmseos.fnal.gov///store/gr...
[ "enochnotsocool@gmail.com" ]
enochnotsocool@gmail.com
f954041fba7b8510d2b5f4cb547b771e5c3dfb79
eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e
/atcoder/abc/abc201-300/abc266/f.py
b03a34ca709778b20ecaa0399ffdedf93dca60c1
[]
no_license
reo11/AtCoder
4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9
69c6d67f05cb9190d8fb07204488cd7ce4d0bed2
refs/heads/master
2023-08-28T10:54:50.859288
2023-08-22T18:52:47
2023-08-22T18:52:47
162,085,118
4
0
null
2023-07-01T14:17:28
2018-12-17T06:31:10
Python
UTF-8
Python
false
false
2,517
py
import sys from collections import defaultdict, deque input = sys.stdin.readline n = int(input()) edges = defaultdict(lambda: []) uv = [] for _ in range(n): u, v = map(int, input().split()) uv.append([u, v]) edges[u].append(v) edges[v].append(u) q = int(input()) xy = [] for _ in range(q): x, y = m...
[ "reohirao116@gmail.com" ]
reohirao116@gmail.com
e87f671468d4cb412ce0ae1816a39fa2d20d24ce
868ac4e558cf5fe945e8b557564f34f79b3ad01e
/purity_fb/purity_fb_1dot9/models/smtp.py
73de2c03398c7a6e3ef26e742ed48d8a6ee43f43
[ "Apache-2.0" ]
permissive
mabdelhafez/purity_fb_python_client
f4253ce8497fb3cff648e0a0cd1e567f48129fa7
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
refs/heads/master
2022-04-20T09:24:22.031408
2020-04-20T22:11:32
2020-04-20T22:15:44
257,372,596
0
0
NOASSERTION
2020-04-20T18:40:24
2020-04-20T18:40:23
null
UTF-8
Python
false
false
4,729
py
# coding: utf-8 """ Pure Storage FlashBlade REST 1.9 Python SDK Pure Storage FlashBlade REST 1.9 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.9 Contact: i...
[ "tlewis@purestorage.com" ]
tlewis@purestorage.com
eaf85de5d93fe435e036d48de6973e7d745e8ac1
bb150497a05203a718fb3630941231be9e3b6a32
/framework/api/loss/test_nn_cross_entropy_loss_1.py
e11e2989f99c926f8b6e8a776af775db46b71c2d
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
1,406
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python """ paddle.nn.CrossEntropyLoss """ import paddle import pytest from runner import Runner from conv2d_dygraph_model import Conv2DNet import numpy as np @pytest.mark.loss_nn_CrossEntropyLoss_parameters def test_nn_cross_entropy_...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
feef4eee08e45decb009e434f76d5356af6b78ba
dde951c8bcfb79cdead3449de42d9ed3e6f24fbe
/func_return.py
1f6f46649a7f1fc0a1f1c095cda972238fb70987
[]
no_license
wolfeyuanwei/study-python
c764353cbf75b0ccd79dc562fe11eebee712510b
be1a9ec93cd29d9fe6b69ad4f9c059fb9dd308de
refs/heads/master
2021-05-11T22:57:51.541684
2018-02-08T05:03:10
2018-02-08T05:03:10
117,504,326
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
#!/usr/bin/python #FileName:func_return.py def maximum(x, y): if x > y: return x else: return y print(maximum(2, 3))
[ "wolfe_yuan@163.com" ]
wolfe_yuan@163.com
b6ab227dbf910c0633ed13ccc542c3bb3f006958
5bc369d49b16bc46e23b76621144223dc4226997
/model/medicationknowledge.py
0c9a4941e14c3566714b6e51c90cb1c0a0d1a912
[ "MIT" ]
permissive
beda-software/fhir-py-experements
90d8e802f92f9e691d47d6ea4b33fda47957383a
363cfb894fa6f971b9be19340cae1b0a3a4377d8
refs/heads/master
2022-12-17T05:19:59.294901
2020-02-26T03:54:13
2020-02-26T03:54:13
241,292,789
0
0
MIT
2022-12-08T03:38:55
2020-02-18T06:53:02
Python
UTF-8
Python
false
false
9,022
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/MedicationKnowledge) on 2020-02-03. # 2020, SMART Health IT. import sys from dataclasses import dataclass, field from typing import ClassVar, Optional, List from .backboneelement import Bac...
[ "ir4y.ix@gmail.com" ]
ir4y.ix@gmail.com
603fc965c36dfb69ea7acf6e8c3f3913be0065f8
756b79e61594b0833fdc9d3f04d6107e95ee4889
/Wave Segment/waveSegmentMusic/segmentWav.py
d7e86a6b03d8d8e71f8608d313f1a3308df6b814
[]
no_license
jiemojiemo/MusicEmotionRecognitionBaseOnAdaboost
c5552c3c62568560ece4e73da6eaff8b0990e760
12b669e521e756f7d5e1e92275b69a9b7101a3fb
refs/heads/master
2021-01-10T09:10:41.403495
2015-12-14T05:42:11
2015-12-14T05:42:11
47,905,944
2
1
null
null
null
null
UTF-8
Python
false
false
1,626
py
#usr/bin/env python #-*- coding: utf-8 -*- import win32api import win32event import win32process import os def main(): rootdir = os.getcwd(); exePath = rootdir + "/Wave Segment.exe" print(exePath) for parent, dirname, filenames in os.walk(rootdir): for filename in filenames: fullPa...
[ "460706836@qq.com" ]
460706836@qq.com
ab65b3a0f01c4e119b68c1a347510f32f96a3022
466e5e56d2f350bcea90683af67e160138af836c
/Onsite/Week-1/Wednesday/Alphabet.py
367494d1e6770c43e0a53e28ddc978c4529db1f2
[]
no_license
max180643/Pre-Programming-61
bafbb7ed3069cda5c2e64cf1de590dfb4a542273
e68d4a69ffeedd4269fffc64b9b81e845a10da4d
refs/heads/master
2021-06-17T14:10:44.889814
2019-08-01T09:35:42
2019-08-01T09:35:42
135,553,863
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
"""Alphabet""" def main(): """Main Function""" letter = ord(input()) print(letter - 64) main()
[ "noreply@github.com" ]
max180643.noreply@github.com
dd5f3f796d2ecf89a87d1316637cf3c8f86eed1d
cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45
/projects/computer-apps/py-qt/practice/lineEdit.py
55c366c81d06e56eec698e7a3cbe3bd619076e37
[]
no_license
ProsenjitKumar/PycharmProjects
d90d0e7c2f4adc84e861c12a3fcb9174f15cde17
285692394581441ce7b706afa3b7af9e995f1c55
refs/heads/master
2022-12-13T01:09:55.408985
2019-05-08T02:21:47
2019-05-08T02:21:47
181,052,978
1
1
null
2022-12-08T02:31:17
2019-04-12T17:21:59
null
UTF-8
Python
false
false
1,255
py
from PyQt5.QtWidgets import QApplication, QPushButton, QDialog,\ QGroupBox, QGridLayout, QVBoxLayout, QLabel, QMainWindow,\ QHBoxLayout, QRadioButton, QLineEdit, QWidget import sys from PyQt5 import QtGui, QtCore from PyQt5.QtCore import QRect from PyQt5.QtGui import QPixmap class Window(QWidget): def __i...
[ "prosenjitearnkuar@gmail.com" ]
prosenjitearnkuar@gmail.com
19f12b5fc947a4c0fa471b3048cb162b276cf947
69d8f3cf7c10640a692fa9175f5a63a5a7b54fcd
/naver_spellchecker.py
76de17ee5185f3fe4709539f055c23cdd9395c31
[]
no_license
baidoosik/crawling
bd89fd9f59ecb8921e765b03faadf1c55bd59c74
62669badf6ce84e0ac9e575b736e41051642ea9c
refs/heads/master
2021-06-21T19:25:30.175798
2017-07-30T15:02:55
2017-07-30T15:02:55
84,198,685
0
0
null
null
null
null
UTF-8
Python
false
false
1,089
py
import requests as req import re import json def naver_spellchecker(q): url = 'https://m.search.naver.com/p/csearch/dcontent/spellchecker.nhn?' params = { '_callback': 'window.__jindo2_callback._spellingCheck_0', 'q': q } request_headers = { 'User-Agent': ('Mozilla/5.0 (Macintos...
[ "qoentlr37@naver.com" ]
qoentlr37@naver.com
6a69fff2b1da3b0edc111afb0b6fd0c8a121272c
941c912f44beff33a072e086c1f561f6cdd64626
/LeetCode/codes/568.py
f7fb81e31251c847a413315df48a13004996231b
[]
no_license
adreena/MyStudyCorner
3a13a743769ed144965b767f547c16df4d0fa0dd
355c0dbd32ad201800901f1bcc110550696bc96d
refs/heads/master
2023-02-20T07:39:32.391421
2021-01-25T01:46:21
2021-01-25T01:46:21
255,104,133
0
0
null
null
null
null
UTF-8
Python
false
false
938
py
# time O(n2k) # space (nk) class Solution: def maxVacationDays(self, flights: List[List[int]], days: List[List[int]]) -> int: self.max_vac = float('-inf') self.memo = defaultdict(lambda: float('-inf')) self.cities = len(flights) self.final_week = len(days[0]) def ba...
[ "kim.hszd@gmail.com" ]
kim.hszd@gmail.com
9e5f3da408e6e30d3482347e10921a29e528cc56
c77625eca982bac81ce97630e1e1273e022490ad
/week2-zebraPuzzle/alphaMetricalPuzzle/profiling.py
2849aedbcd8127debb8a0255685f7552fb0c5c25
[]
no_license
benzitohhh/cs212-style
7b66a5b948f828b0ccece6c22ad49c3eed2d202b
0cefe0fd374e2a3c84ecf15d1ac657392aacfcf1
refs/heads/master
2021-01-23T19:45:43.506797
2012-06-03T23:53:16
2012-06-03T23:53:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
""" To profile in python.... python -m cProfile <filename.py> LAW OF DIMINISHING RETURNS in all productive processes, adding more of one factor of production, while holding all others constant, will at some point yield lower per-unit returns In our programme, 63% of time is spent in eval(), so we should focus ...
[ "immanuel_ben@yahoo.co.uk" ]
immanuel_ben@yahoo.co.uk
4c09b44e3736253213273ced7d360485f1c87431
1eab574606dffb14a63195de994ee7c2355989b1
/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/vicclientglobals/vicoptionset/vicoptiontlv/vicoptiontlv.py
c3d8f829d05f280d4afe199c5198d90f84de9cc2
[ "MIT" ]
permissive
steiler/ixnetwork_restpy
56b3f08726301e9938aaea26f6dcd20ebf53c806
dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9
refs/heads/master
2020-09-04T12:10:18.387184
2019-11-05T11:29:43
2019-11-05T11:29:43
219,728,796
0
0
null
2019-11-05T11:28:29
2019-11-05T11:28:26
null
UTF-8
Python
false
false
6,741
py
# MIT LICENSE # # Copyright 1997 - 2019 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
[ "srvc_cm_packages@keysight.com" ]
srvc_cm_packages@keysight.com
9b8b8903a02b1d8d679121b8d00342707eab6385
5249381720c1feaa6bb91966d1919da77fc4eb76
/python_web_demo/l7_05_元素操作.py
e556b593ff1d3a003dd04c93d2486927c099af81
[]
no_license
liqi629/py_study
7ab34d816e622fe57c2a3373a7f5d82472802dc8
c3d192be9f755c9ea912006e545fd6f5ea43370d
refs/heads/master
2022-12-24T10:02:38.707313
2020-09-29T07:27:27
2020-09-29T07:27:27
299,537,971
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
# -*- coding: utf-8 -*- # @Time : 2019/5/21 22:52 # @Author : l7 # @Email :liqi_629@163.com # @File : l7_05_元素操作.py # @Software : PyCharm from selenium import webdriver import time #打开浏览器Chrome driver = webdriver.Chrome() #打开网址 driver.get("http://www.baidu.com") #3、获取属性值 value = driver.find_element_by_id(...
[ "liqi_629@163.com" ]
liqi_629@163.com
496b9b1a0ac781eb298c49dd56dddeaa0c0fd2fa
266fb6ba49327e33ca5b758163a448e8179663dc
/backend/bitter_sound_27405/settings.py
60170ff259fe2d424ef41917e8ab1bd57166f9ef
[]
no_license
crowdbotics-apps/bitter-sound-27405
9be168773f9330011996bd87dee3ae0f773417cb
cba493a67768a176c46e443fe30097657baeaa83
refs/heads/master
2023-05-06T02:46:31.203591
2021-05-26T00:35:37
2021-05-26T00:35:37
370,863,369
0
0
null
null
null
null
UTF-8
Python
false
false
7,120
py
""" Django settings for bitter_sound_27405 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ i...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
0db720bca678bb4b6aec58ca3f248ba45ffaea0b
b0dd7779c225971e71ae12c1093dc75ed9889921
/tools/build/v2/test/example_make.py
4ade4c204d542c9e6e7fe65c9f7be22c69a02ee5
[ "LicenseRef-scancode-warranty-disclaimer", "BSL-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
blackberry/Boost
6e653cd91a7806855a162347a5aeebd2a8c055a2
fc90c3fde129c62565c023f091eddc4a7ed9902b
refs/heads/1_48_0-gnu
2021-01-15T14:31:33.706351
2013-06-25T16:02:41
2013-06-25T16:02:41
2,599,411
244
154
BSL-1.0
2018-10-13T18:35:09
2011-10-18T14:25:18
C++
UTF-8
Python
false
false
418
py
#!/usr/bin/python # Copyright (C) Vladimir Prus 2006. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # Test the 'make' example. import BoostBuild t = BoostBuild.Tester() t.set_tree("../example/mak...
[ "tvaneerd@rim.com" ]
tvaneerd@rim.com
e1e61cd4ef9166e1611b2c6ef5f6fb8843d4461f
9bad4a99448df1957981d8c2fbd3ef4001d71fea
/a-3-6-1-take pictures.py
fddd724f0c4b653eb41e5300cdf2080766f8d2fd
[]
no_license
paulcwlin/raspi-AIoT-test
a991cac81335c4036cf34d48a9824a8fa077e1c7
ada56e0668c07a9575a82023dff38e02c0b9220e
refs/heads/master
2023-04-19T06:23:26.122336
2021-04-29T10:00:25
2021-04-29T10:00:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,226
py
import cv2 ESC = 27 n = 1 index = 0 total = 100 def saveImage(face_image, index): filename = '/home/pi/Documents/raspi-AIoT-test/images/h1/{:03d}.jpg'.format(index) cv2.imwrite(filename, face_image) print(filename) faceCascade = cv2.CascadeClassifier('/home/pi/opencv/opencv-master/data/haarcascades/haa...
[ "bauroad@gmail.com" ]
bauroad@gmail.com
d9490cc769b627d539016c7c03a8e2e7f239b62d
2d925dda36ff0eefcaf5c90e458c2b22535aa4f7
/anagram/anagram.py
8fb6d872752ab60846d7c0c059105a30579f40cd
[]
no_license
butterflylady/exercism
0e06fd1a037cebf9e5557007a1bca9f7fc8cb55a
db269c86f5bea138cd9754a9598803f9db28958a
refs/heads/master
2023-02-21T14:08:14.031962
2021-01-31T15:28:40
2021-01-31T15:28:40
334,437,701
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
def find_anagrams(word, candidates): output = [] for candidate in candidates: if sorted(candidate.lower()) == sorted(word.lower()) and candidate.lower() != word.lower(): output.append(candidate) return output
[ "mpaluyanava@gmail.com" ]
mpaluyanava@gmail.com
c417b65d88af2a41f1a6f2a8abc0ebe574230c12
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/tbz5ji3ocwzAeLQNa_17.py
e50d572a8bfe14ab16d76f9f91ad29fc1f351a4f
[]
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
698
py
def exit_maze(maze, directions): l = len(maze) w = len(maze[0]) for y in range(l): for x in range(w): if maze[y][x] == 2: sx = x sy = y ​ for i in directions: if i == 'N': sy -= 1 elif i == 'E': sx += 1 ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
972e96e0720ba97f5e6daa01c0c6ae41da58743c
40195e6f86bf8620850f0c56e98eae5693e88277
/coremltools/converters/mil/frontend/tensorflow2/ssa_passes/test_v2_passes.py
8b9ec829878c1c138997390b2bd3ce30180b7664
[ "MIT", "BSD-3-Clause" ]
permissive
apple/coremltools
009dfa7154d34cab8edcafa618e689e407521f50
feed174188f7773631a3d574e1ff9889a135c986
refs/heads/main
2023-09-01T23:26:13.491955
2023-08-31T18:44:31
2023-08-31T18:44:31
95,862,535
3,742
705
BSD-3-Clause
2023-09-14T17:33:58
2017-06-30T07:39:02
Python
UTF-8
Python
false
false
1,850
py
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import copy import numpy as np from coremltools.converters.mil.mil import Builder as mb from coreml...
[ "noreply@github.com" ]
apple.noreply@github.com
de17d29ef0e4c7870bf659be6303286e52e36dff
eb6a65c8eaa9d430d9b30240dccbfb4f99c34115
/server/core/migrations/0006_deposit.py
c6c140460f87e2edff97534af98ed66cb9d832d8
[]
no_license
dopeboy/underline
17c2658b95cada089325cf28ad23211b4622e480
9028c444771f0ac8bd7d0f2c7ed326d338bf80ab
refs/heads/main
2023-06-17T15:49:49.511694
2021-07-14T21:48:38
2021-07-14T21:48:38
335,760,303
0
0
null
null
null
null
UTF-8
Python
false
false
908
py
# Generated by Django 3.1.6 on 2021-02-25 22:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core', '0005_slip_entry_...
[ "arithmetic@gmail.com" ]
arithmetic@gmail.com
1d6ab9387bb79ad61478237022abe9051420f9df
e523770b755a43accfa02ee3ea86af4aeac438e7
/0_startcamp/day1/list1.py
fe1002030eee81ac5ee114d5bc0f89f22c828945
[]
no_license
AhnDogeon/TIL
a21f8e70bdd917fd1ec58d55955fa6b3e70c4ca4
b4ae78b7c6c08ab6076312ba3b44493248ab5195
refs/heads/master
2022-11-30T10:14:32.880643
2021-02-11T16:09:27
2021-02-11T16:09:27
162,255,917
1
1
null
2022-11-22T03:46:04
2018-12-18T08:32:42
Jupyter Notebook
UTF-8
Python
false
false
201
py
numbers = [1, 2, 3] # 변수 이름은 뜻을 담아서 짓자! family =['mom', 1.64, 'dad', 1.75, 'sister', 1.78, True] mcu = [ ['ironman', 'captain'], ['xmen','deadpool'], ['spiderman'] ]
[ "qltiqlti@gmail.com" ]
qltiqlti@gmail.com
ca756c26eab8193970e8afce664fde448e00dc44
e845f7f61ff76b3c0b8f4d8fd98f6192e48d542a
/djangocg/utils/dateformat.py
7d4066b71cc299624e0bb228c36944639457df5d
[ "BSD-3-Clause" ]
permissive
timothyclemans/djangocg
fd150c028013cb5f53f5a3b4fdc960a07fdaaa78
52cf28e046523bceb5d436f8e6bf61e7d4ba6312
refs/heads/master
2021-01-18T13:20:13.636812
2012-08-31T23:38:14
2012-08-31T23:38:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,943
py
""" PHP date() style date formatting See http://www.php.net/date for format strings Usage: >>> import datetime >>> d = datetime.datetime.now() >>> df = DateFormat(d) >>> print(df.format('jS F Y H:i')) 7th October 2003 11:39 >>> """ from __future__ import unicode_literals import re import time import calendar import d...
[ "timothy.clemans@gmail.com" ]
timothy.clemans@gmail.com
6177d284bd6e936bcf5790431d5c49eb42f90d68
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_stats.py
f9ffa9854ccf5d162867be4267f96a7b4ecc3553
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,601
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
1659481855f03de945b35b46a831242522f624fe
8698757521458c2061494258886e5d3cdfa6ff11
/core/adversarial/accuracy_repeated_reconstructions.py
e5a3818ba69a8a7afb6c10a7dea992487a9635d7
[ "MIT" ]
permissive
ricvo/argo
546c91e84d618c4bc1bb79a6bc7cba01dca56d57
a10c33346803239db8a64c104db7f22ec4e05bef
refs/heads/master
2023-02-25T01:45:26.412280
2020-07-05T22:55:35
2020-07-05T22:55:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,330
py
import numpy as np import tensorflow as tf import pdb import argparse from tensorflow.examples.tutorials.mnist import input_data from datasets.Dataset import Dataset from core.argo.core.ArgoLauncher import ArgoLauncher, get_full_id from core.argo.core.TrainingLauncher import TrainingLauncher from core.argo.core.TFDee...
[ "volpi@rist.ro" ]
volpi@rist.ro
3da2c220a49a54cea7eca6b1aa7aff30b2b7c283
99dcb18a9e3ea367272f740b8cbf3c34285a0c08
/samples/generated_samples/aiplatform_generated_aiplatform_v1_tensorboard_service_write_tensorboard_run_data_sync.py
b29147d3fc8c9dc447b2e378c7ab7777942fd231
[ "Apache-2.0" ]
permissive
googleapis/python-aiplatform
926a4873f35dbea15b2fd86c0e16b5e6556d803e
76b95b92c1d3b87c72d754d8c02b1bca652b9a27
refs/heads/main
2023-08-19T23:49:02.180075
2023-08-19T13:25:59
2023-08-19T13:27:27
298,017,988
418
240
Apache-2.0
2023-09-14T21:08:33
2020-09-23T15:43:39
Python
UTF-8
Python
false
false
1,814
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" ]
googleapis.noreply@github.com
56d35c8be025ff1d54f1f4ad818ab5e623008fe1
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_herding.py
2aa0cb990f8008f89f85be0e917a16355fd6d51e
[ "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
218
py
#calss header class _HERDING(): def __init__(self,): self.name = "HERDING" self.definitions = herd self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['herd']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ab6114c3cbc6fcae25a05ce741d018a20a657aba
eaf319e5d25a9bbf9ce9bb9ff596efda7e0b1ac5
/deviceselectwidget.py
ca3592aeca69218454512895becb6d9b83e840af
[]
no_license
igrekus/mult_i1_measure
4a3e43b99c66e0288bb042ecb47907c60aa3c224
bcee674c0cfcb5f7de02dcf5d804b7a5be3449aa
refs/heads/master
2020-05-24T01:04:14.936612
2019-08-19T10:38:51
2019-08-19T10:38:51
187,028,327
0
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
from PyQt5.QtCore import pyqtSignal, pyqtSlot from PyQt5.QtWidgets import QWidget, QVBoxLayout, QRadioButton, QButtonGroup, QLabel, QComboBox class DeviceSelectWidget(QWidget): selectedChanged = pyqtSignal(str) def __init__(self, parent=None, params=None): super().__init__(parent=parent) se...
[ "upload234@mail.ru" ]
upload234@mail.ru
b195df519818411291df92af9e17a1398789bfd5
c155d27bf74255b8315603518c5ab76d0638dfea
/uv/serpens/flux_correlation_CN_HCN_log_Jy_v2.py
749360d463819d4bdba2436ddab099aedfe9d64d
[]
no_license
amirocha/doktorat
406c2e4476a5a22c863c37eb5f581a369800e936
22c90228f6bca9d0b116c73457b7e86ae4462167
refs/heads/master
2021-07-05T14:18:26.324886
2020-08-03T19:28:50
2020-08-03T19:28:50
152,316,686
0
0
null
2020-04-03T20:22:37
2018-10-09T20:28:29
Python
UTF-8
Python
false
false
4,578
py
"""Flux correlation""" import matplotlib.pyplot as plt import numpy as np import scipy.stats as stat import math as m from scipy.stats import linregress as regr DIST=436. #Ortiz-Leon 2017 L_sun = 3.86e26 #W freq = {'CN': 113490985000, 'HCN': } c = 299792458 # m/s k = 1.38e-23 #Boltzmann constant [J/K] conversion_...
[ "mirochagnieszka@gmail.com" ]
mirochagnieszka@gmail.com
0b3748a7100aa612a78fc96bc481e5e90e940cf3
78518b65b6823ac42b20515ae7716ada4b59db3d
/手写代码/第17章 智能算法/17_3.py
33d3e08f23e41d7ca1f5669656876126df991ba9
[]
no_license
YunHao-Von/Mathematical-Modeling
70d6ad8f2f543751883afdc85aa19b1c80a106a0
4fe153453cccb4b474166c104e08d13ed72bc5ac
refs/heads/master
2023-03-02T23:16:40.839865
2021-02-15T09:52:24
2021-02-15T09:52:24
339,029,227
1
0
null
null
null
null
UTF-8
Python
false
false
326
py
from sklearn.linear_model import Perceptron import numpy as np x0 = np.array([ [-0.5, -0.5, 0.3, 0.3], [-0.5, 0.5, -0.5, 1.0] ]).T y0 = np.array([1, 1, 0, 0]) md = Perceptron(tol=1e-3) md.fit(x0, y0) print(md.coef_, md.intercept_) print(md.score(x0, y0)) print("预测值为:\n", md.predict(np.array([[-0.5, 0.2]])))
[ "Alctrain@163.com" ]
Alctrain@163.com
6d92a891992f6af7b4de9006ce4e62ea9be8b1ea
c828f5c86e8ae7a157bd3f212c4bd754ee04e5e7
/exercise_coding_test_6.py
ed190e91d5b9b242bf252dd4909b7e95c6804591
[]
no_license
SeungHune/beakjun
c319e33f10a3dfd3acb090a7872b900ed92c5419
5d4610557aa56efc41053954299924ab890812f2
refs/heads/master
2020-12-03T04:37:48.054739
2020-11-10T10:50:17
2020-11-10T10:50:17
231,204,761
0
0
null
null
null
null
UTF-8
Python
false
false
714
py
# 정렬 - 가장 큰 수 def solution(numbers): if sum(numbers) == 0: return "0" new_numbers = [] for num in numbers: new_numbers.append(str(num) * 3) new_numbers.sort(reverse=True) # print(new_numbers) answer = "" for num in new_numbers: if len(num) == 3: answer +...
[ "xyz9080@naver.com" ]
xyz9080@naver.com
7917887add58e4ea0bcdad9defeb3a862053a299
53aaac91271841228909dd58ba85ef724d00bbb6
/animatedsprite.py
4ce1180450629887c0935e7d45eb942faeb926fd
[]
no_license
ateoto/pysfmltest
87f718894ade45132074a66876e42fb3703ccff5
2178bb3c38ac84f7106a8c0006ed671306fe41a7
refs/heads/master
2021-01-15T23:40:09.112780
2012-08-29T05:50:15
2012-08-29T05:50:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,819
py
import sfml as sf from collections import deque """ texture = sf.Texture.load_from_file('data/art/male_walkcycle.png') frames = deque() for f in range(0, texture.width, 64): frames.append(AnimationFrame(texture, sf.IntRect(0,f,64,64), 0.1) walkcycle_north = Animation([ AnimationFrame(tex...
[ "mattmccants@gmail.com" ]
mattmccants@gmail.com
1977d062e0c1fde4e2208066bed5949968d5f079
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/ESSENTIAL-COMMUNICATIONS-HIPPI-SWITCH.py
9502e9a6628121290a820f2cb53d6169bac89931
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
12,990
py
# # PySNMP MIB module ESSENTIAL-COMMUNICATIONS-HIPPI-SWITCH (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ESSENTIAL-COMMUNICATIONS-HIPPI-SWITCH # Produced by pysmi-0.3.4 at Mon Apr 29 18:52:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 #...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
215616e2ea755088fa21f32a70300b14cf208f9c
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2140/60829/285720.py
898bdad05e5dd21e0d4d2646299d9c486b4d186d
[]
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
426
py
nn=int(input()) for p in range(nn): a=int(input()) n=1 res="" kk=a while a>0: if n%2==0: a=a-1 res=res+str(n//2)+" " else: a=a-n//2-1 for s in range(n//2+1): res=res+str(kk)+" " kk -= 1 n=n+1 ...
[ "1069583789@qq.com" ]
1069583789@qq.com
94960e078c9e3916681b9cf5586902f26295040f
69d57bbb32008a6174468ed8f01532cf318996b7
/demo01.py
7cdce4bb3ffd12757d7fa8b145485b7973363fe2
[]
no_license
HandSomexvv66/itcast_test12
deb5388ac73b59dbe97e5ec72dc27a6de024040b
2720f6fa9335ebb094b950c7b63cada5225f9ced
refs/heads/master
2020-08-17T16:50:49.492626
2019-10-17T04:02:47
2019-10-17T04:02:47
215,689,213
0
1
null
null
null
null
UTF-8
Python
false
false
49
py
print('软件测试彭于晏') print('牛逼啊')
[ "email@example.com" ]
email@example.com
3dd7c3f65e14b78958e8369738bb17b7439df1b5
c4a57dced2f1ed5fd5bac6de620e993a6250ca97
/huaxin/huaxin_restful_service/restful_xjb_service/v1_services_fund_findhotsearchproduct_entity.py
937e9b0575a6717a572f56f3bd8ef4aa2b8546be
[]
no_license
wanglili1703/firewill
f1b287b90afddfe4f31ec063ff0bd5802068be4f
1996f4c01b22b9aec3ae1e243d683af626eb76b8
refs/heads/master
2020-05-24T07:51:12.612678
2019-05-17T07:38:08
2019-05-17T07:38:08
187,169,391
0
0
null
null
null
null
UTF-8
Python
false
false
1,811
py
import json from code_gen.lib.basic_troop_service_entity_handler import BasicTroopServiceEntityHandler DOMAIN_NAME = u'10.199.111.2' URL = u'http://%s/V1/services/fund/findHotSearchProduct?' BODY_DATA = '' _BODY_DATA = '' if BODY_DATA: _BODY_DATA = json.loads(BODY_DATA) QUERY_DATA = u'timestamp=1495434109309&nonce...
[ "wanglili@shhxzq.com" ]
wanglili@shhxzq.com
f98452e0f21a9c1056e0c1d3c53317f9bf629ff5
76c14138689216634ca12b5e1bc0947a9866b1b0
/aa/PYT/file_han/aa.py
0459b8ea210dea61036e1e28d403896cd6d919c4
[]
no_license
KSrinuvas/ALL
4b0c339bfeb8780232f3853e5fc53c40b84c9cb7
9251464a27a98f98e1055ebf129d6934a02e8ffc
refs/heads/master
2020-12-06T21:59:33.449669
2020-03-15T17:05:42
2020-03-15T17:05:42
232,560,914
0
0
null
null
null
null
UTF-8
Python
false
false
900
py
#!/usr/bin/python3 import re import os ## write a file fobj = open("aa.txt","w") print (fobj.mode) fobj.write("this is srinu\n") fobj.write("this is my email address ss123@gmail.com\n") fobj.write("good bye\n") ## close file handler fobj.close() ## read file fh = open("aa.txt","r") print (fh.name) prin...
[ "Srinuvas935@gmail.com" ]
Srinuvas935@gmail.com
e0c984afcd1f4fccb80e153c90f1627ada1af52a
fe15d678aeece784bb9fdd5e7211bedab98f79ea
/sib_api_v3_sdk/models/send_smtp_email_sender.py
fa3c3f0de73ba8dcd2e349ffefac9f341ff96cb2
[ "MIT" ]
permissive
Edraak/APIv3-python-library
bec8014814ca5a3eaa98dad0f9a3b71acc71316c
4a97bf479d92ca08d5a2881ac37e397d3a1846b4
refs/heads/master
2022-04-16T18:18:37.406313
2020-04-10T19:02:09
2020-04-10T19:02:09
254,713,617
0
0
MIT
2020-04-10T19:00:58
2020-04-10T19:00:57
null
UTF-8
Python
false
false
4,935
py
# coding: utf-8 """ SendinBlue API SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at h...
[ "aakanksha@sendinblue.com" ]
aakanksha@sendinblue.com
fe52028f642c5e303add875b04d4a7db496a04c2
3a458d9efb62c055542beb6685c7250910bc4fdc
/awx/main/tests/functional/models/test_job_options.py
65add96de980233a1f7b8f1793bc264e384e6cea
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "Python-2.0", "Apache-2.0" ]
permissive
aperigault/awx
2e1b8c56592fdc20812b0c3841fb836d1a7a61a8
2ef840ce128a8028fe63b01b47bc5be5304062b2
refs/heads/devel
2021-11-21T03:28:31.346758
2021-10-12T18:19:40
2021-11-16T15:27:27
125,395,064
0
0
Apache-2.0
2018-07-13T13:37:14
2018-03-15T16:22:23
Python
UTF-8
Python
false
false
759
py
import pytest from awx.main.models import Credential @pytest.mark.django_db def test_clean_credential_with_ssh_type(credentialtype_ssh, job_template): credential = Credential(name='My Credential', credential_type=credentialtype_ssh) credential.save() job_template.credentials.add(credential) job_temp...
[ "rpetrell@redhat.com" ]
rpetrell@redhat.com
e518e98488120860bfe9a632e9bdb823a1476118
06c41f009777395c38a66abf639cb5717b240e15
/test/_compat.py
3e6293e1808f4260efe93824291b3bc82462764c
[ "MIT" ]
permissive
hibtc/madgui-old
6c7a5f1ecd455f1814a01524446c751255c75052
18241115b6c3c3ec8ba76c0ec10a894937ffc3c7
refs/heads/master
2021-10-22T16:25:25.371717
2016-10-06T14:37:50
2016-10-06T14:37:50
14,426,207
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
import unittest class TestCase(object): """ Compatibility layer for unittest.TestCase """ try: assertItemsEqual = unittest.TestCase.assertCountEqual except AttributeError: def assertItemsEqual(self, first, second): """Method missing in python2.6 and renamed in python3...
[ "t_glaessle@gmx.de" ]
t_glaessle@gmx.de
9b922048184f18e43a4b6d17868455c9307961a0
73a8f5027f7bc1937d63cd54d07cd0d0652b6914
/532_K-diff_Pairs_in_an_Array.py
30a98a2d01df114fc7da58a6f7fac78a4c824066
[]
no_license
jincurry/LeetCode_python
0891cd4879c44cfb67df870de529c1bdd89c9954
d9c1061fefc5f42474b7dd8e2d3854825eeff45f
refs/heads/master
2021-06-18T01:50:46.551949
2019-05-07T14:00:11
2019-05-07T14:00:11
115,329,517
1
0
null
null
null
null
UTF-8
Python
false
false
1,676
py
# Given an array of integers and an integer k, you need to find the number of unique # k-diff pairs in the array. Here a k-diff pair is defined as an integer pair (i, j), # where i and j are both numbers in the array and their absolute difference is k. # # Example 1: # Input: [3, 1, 4, 1, 5], k = 2 # Output: 2 # Explan...
[ "jintao422516@gmail.com" ]
jintao422516@gmail.com
8ea5e884675f24b3efd9298b90c893e3ca4606c1
c105797a5b6f5aca0b892ccdadbb2697f80fb3ab
/python_base/base9/base9_6/test_base9_6_8.py
0f4b4c47bf83ee51ee523ad09b3439685b825c78
[]
no_license
jj1165922611/SET_hogwarts
6f987c4672bac88b021069c2f947ab5030c84982
fbc8d7363af0a4ac732d603e2bead51c91b3f1f7
refs/heads/master
2023-01-31T19:41:27.525245
2020-12-15T13:43:45
2020-12-15T13:43:45
258,734,624
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020-05-17 # @Author : Joey Jiang # @File : test_9_6_8.py # @Software : Pycharm # @Description: 测试报告美化与定制 ''' 通过allure.attach("xxxx",attachment_type,exntension)加入纯文本信息 ''' import pytest import allure def test_attach_text(): allure.attach("这...
[ "1165922611@qq.com" ]
1165922611@qq.com
08cb2af99063d8577b2e342771292d39a6b09887
0d6a506fe4dcd83a7e735a9df78b39ce703c5a35
/pro_div.py
55adab5487ba3f64424e6ea7cda6f75eec93ba5e
[]
no_license
Ponkiruthika112/codeset6
96ad146cea3fe10fff2963c72a6276381b5f926a
274efc8bbbf61f9838cdb8ff56472b7f8185f51e
refs/heads/master
2020-04-16T01:33:02.069006
2019-05-17T11:26:50
2019-05-17T11:26:50
165,178,165
0
1
null
null
null
null
UTF-8
Python
false
false
61
py
#for division n,k,m=map(int,input().split()) print((n*k)//m)
[ "noreply@github.com" ]
Ponkiruthika112.noreply@github.com
8e410733b7c830155aaf12fbd8f8472e561c5cda
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/misc-experiments/_FIREBFIRE/grpc/doc/python/sphinx/conf.py
6e4bfab7d0edbc549c44c0323f157ca1c924de20
[ "Apache-2.0", "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
3,626
py
# Copyright 2018 The gRPC 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 or agreed to in writ...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
03604ba84c2c5d0bebc993dcfe4c9ac30d9582d2
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/LeetCode In Python/Section 13 INTERVIEW QUESTIONS Backtracking_Recursion/subsets/index.py
4e46e6557bce57042cabb2c1408c1c12629276e2
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
425
py
# c_ Solution # ___ solution nums ans cur index # __ i.. > le. n.. # r_ # a__.ap.. c.. : # ___ i __ ra.. i.. le. n.. # __ n.. ? no. __ c.. # c__.ap.. n.. ? # .s.. ? ? ? ? # c__.p.. # r_ # ___ subsets nums L.....
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
30b534d409fdddb82db90e74490f1ffe75c06b86
337e04c14a975868229cd2cdda3bcacfdf016869
/src/exp/dataset.py
c66040f5457d7c8309df38bd0087f1f5c646c178
[]
no_license
esddse/IEN
966ea827991b898900c5dc4cea9accf971d7e52c
175d6be32e11135287c59c66c4d743b5c2782d52
refs/heads/master
2023-01-20T09:03:04.030694
2020-11-16T09:10:23
2020-11-16T09:10:23
300,647,427
4
0
null
null
null
null
UTF-8
Python
false
false
6,306
py
import os import sys import time sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))) import math import random import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.d...
[ "tjz427@sina.cn" ]
tjz427@sina.cn
eab0ae860ce7d4455552dd826541ec4705c7b60c
b9a69d7de64b96623d519394d59286f774e92c1f
/mnist-classification/src/model/net.py
834f07afb7480521e83b753958f8fc64e4e204b6
[ "MIT" ]
permissive
Ronalmoo/DataScience
abb20320c7fe5b68192e1ceeb956eb199bb1aecb
175f610acaa50898a3899bfaddfbb5530ef640a9
refs/heads/main
2023-05-02T23:44:40.824085
2021-05-26T08:01:31
2021-05-26T08:01:31
370,643,477
1
0
null
null
null
null
UTF-8
Python
false
false
6,829
py
import copy from typing import Dict, List, Optional import torch import torch.nn as nn from omegaconf import DictConfig, OmegaConf from torchsummary import summary as torch_summary class LinearBlock(nn.Module): def __init__( self, in_features: int, out_features: int, bias: bool = ...
[ "ydaniel0826@gmail.com" ]
ydaniel0826@gmail.com
bcf9d5165d2472f4481ea6adbbe98aeff68e9357
07cf86733b110a13224ef91e94ea5862a8f5d0d5
/organizing_containers_of_balls/organizing_containers_of_balls.py
2e9ae573293f4edce2c0ed2d9a2559bd066b30f0
[]
no_license
karsevar/Code_Challenge_Practice
2d96964ed2601b3beb324d08dd3692c3d566b223
88d4587041a76cfd539c0698771420974ffaf60b
refs/heads/master
2023-01-23T17:20:33.967020
2020-12-14T18:29:49
2020-12-14T18:29:49
261,813,079
1
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
def organizingContainers(container): print(container) # create an array that will carry the rows # create an array that will carry the cols # create a for loop that will iterate through the each row # make sure to sum the total of all the values in the current # row and append it t...
[ "masonkarsevar@gmail.com" ]
masonkarsevar@gmail.com
f8fb7ecfc93e7df33edbc3b69d85e82ce8301512
0f9b6a33a5e2ce627db75d1bcc34bc3f3674335b
/hitconctf/2019/PoE/exploit-luna.py
52b254aa88fc98903c1caff7fa1c9758dc87c315
[]
no_license
hnoson/writeups
359a33b03286bab19359ad9b089e6f3bfe4fb708
05550e3c462108f6c5ba0b69f65694e2eb1dc9b3
refs/heads/master
2021-10-07T18:21:26.041101
2021-10-03T10:22:31
2021-10-03T10:22:31
119,823,623
7
0
null
null
null
null
UTF-8
Python
false
false
2,474
py
#!/usr/bin/env python from pwn import * def proofofwork(): s.recvline() s.sendline(process(['hashcash', '-mb25', s.recvline(False).split(' ')[2]]).recvline(False).split(': ')[1]) if len(sys.argv) == 1: s = process('./run.sh') else: s = remote('13.230.132.4', 21700) proofofwork() elf = ELF('./luna...
[ "hiroki015@gmail.com" ]
hiroki015@gmail.com
5b1bfed3e7c9fb66a7429d873ee4764334aca828
05a4c12938935c1ea01bc1f43ab829f1e35c7168
/tests/qflags/test_QtCore_UserInputResolutionOptions_UserInputResolutionOption.py
41d9a397d82484468f77cce905c44209183de94c
[ "GPL-3.0-only" ]
permissive
bluebird75/PyQt5-stubs
e4eae29c49f15012649290fe7098c53e216254ed
e9adedcb817fa88ba854763d7b403d817ea83a00
refs/heads/master
2023-08-09T02:05:10.082636
2023-07-23T09:14:59
2023-07-23T09:14:59
208,842,053
0
0
MIT
2019-09-16T16:04:47
2019-09-16T16:04:46
null
UTF-8
Python
false
false
10,179
py
# mypy: no-warn-unreachable import sys from typing import Union, TypeVar, Type if sys.version_info[:2] >= (3,8): from typing import Literal else: from typing_extensions import Literal import pytest ### Specific part # file generated from qflags_test_template.py for QFlags class "QUrl.UserInputResolutionOptions" and...
[ "phil.fremy@free.fr" ]
phil.fremy@free.fr
cea6cd25d2468ada9807bec6d45b481c79331e03
98895f2c4a11195495e4e94d7b1821d3ec229f17
/blockchain-env/Lib/site-packages/pubnub/models/consumer/pubsub.py
8c8e3eac97b429df2b278505652433e00885d04c
[ "MIT" ]
permissive
zarif007/Block-Chain-Web-App
130a0e44fb84c622a6fbc496ead1a45b0caf6065
40bd4d8d8ce1f6de2840792290bf022d7dfacbb4
refs/heads/main
2023-02-20T01:32:41.974440
2021-01-23T20:04:01
2021-01-23T20:04:01
317,946,069
1
0
null
null
null
null
UTF-8
Python
false
false
3,655
py
import six from pubnub.models.consumer.message_actions import PNMessageAction class PNMessageResult(object): def __init__(self, message, subscription, channel, timetoken, user_metadata=None, publisher=None): assert message is not None if subscription is not None: assert isinstance(su...
[ "zarifhuq786@gmail.com" ]
zarifhuq786@gmail.com
c195715efd133bb7dc0c497d1178122f5a11b55f
5ae45b99eb9c590f64f3a7d3f1b26915bef87831
/solutions/040/040.py
14a25ca0a1cb4b5aab7c9e665966f2f5922edfd8
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
jwmcgettigan/project-euler-solutions
5c4cb7fb32e9ba4f3d9b0edc89853275c302ee03
f06b6551e713619d5fd1359ee2f96fcff61c425b
refs/heads/master
2023-07-13T21:24:03.961946
2021-08-19T21:03:12
2021-08-19T21:03:12
289,103,259
1
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
""" Project Euler - Problem Solution 040 Problem Title - Champernowne's constant Copyright (c) Justin McGettigan. All rights reserved. https://github.com/jwmcgettigan/project-euler-solutions """ #TODO: Come back and make this more readable. def fractional_part(nth): ''' Finds the nth digit of Champernowne's constan...
[ "jwmcgettigan@gmail.com" ]
jwmcgettigan@gmail.com
de5dfc99ab3202da4b172ac063dd3210b980fed1
914a83057719d6b9276b1a0ec4f9c66fea064276
/test/performance-regression/full-apps/qmcpack/nexus/library/xmlreader.py
624681b744438e1c0543befdb9c7001fa8710c08
[ "LicenseRef-scancode-unknown-license-reference", "NCSA", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "BSD-2-Clause" ]
permissive
jjwilke/hclib
e8970675bf49f89c1e5e2120b06387d0b14b6645
5c57408ac009386702e9b96ec2401da0e8369dbe
refs/heads/master
2020-03-31T19:38:28.239603
2018-12-21T20:29:44
2018-12-21T20:29:44
152,505,070
0
0
Apache-2.0
2018-10-11T00:02:52
2018-10-11T00:02:51
null
UTF-8
Python
false
false
13,595
py
from xml.parsers import expat from numpy import array import sys import keyword import re import os from inspect import getmembers from superstring import \ find_matching_pair, \ remove_pair_sections, \ remove_empty_lines, \ valid_variable_name,\ string2val #from abilities import AllAbilities fro...
[ "jmaxg3@gmail.com" ]
jmaxg3@gmail.com
7be7ca5f44475ebbd989603850bd4eff428e5a08
6c704d6e8a3d0e2d170f9a7f16a290e4d0957f01
/find_mode_in_bst_.py
96e77b037fca4066f08f1a6725744988dcb2558d
[]
no_license
savourylie/leetcode
da68dbaabdf0041b3b2d0e59de7459e495fd1e53
41cd68d9be796b690063f81a57f120025abb4f96
refs/heads/master
2021-01-22T03:33:19.150030
2019-04-06T17:42:32
2019-04-06T17:42:32
92,387,135
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def __init__(self): self.counter = {} def findMode(self, root): """ :type root: TreeNode ...
[ "calvin.j.ku@googlemail.com" ]
calvin.j.ku@googlemail.com
e90603143ef5ac15c5d869fb9f19119e327fc612
4e02d5b0b1b0739553fd40bbbdfb0d02c9830350
/1331_Rank_Transform_of_an_Array.py
53736326481173dbf7a9c31efa601089bb5ce9d6
[]
no_license
bingli8802/leetcode
b039ab6af62f0c8992463393f561caafd21056e6
a509b383a42f54313970168d9faa11f088f18708
refs/heads/master
2023-03-29T03:11:45.801090
2021-03-23T22:55:16
2021-03-23T22:55:16
279,321,659
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
def arrayRankTransform(self, arr): """ :type arr: List[int] :rtype: List[int] """ a = sorted(set(arr)) dic = collections.defaultdict(int) for k, v in enumerate(a): dic[v] = k + 1 for i in range(len(arr)): arr[i] = dic[arr[i]] ...
[ "noreply@github.com" ]
bingli8802.noreply@github.com
09188c53652691e27604a50974d29388261f325f
0876d217bd18a8a3dbf462a015b4b9b3b37fc0b9
/plugins/user_quota/setup.py
3aa30bdcb4df850f7b16b4a5f5af855fee95956f
[ "Apache-2.0" ]
permissive
mbrukman/girder
ec986802d952925d3f2c4196a152c13d331d602d
c4d8e9f9847f1d19079e32b9df31817ad4c0ddea
refs/heads/master
2020-04-27T16:06:30.186083
2019-03-07T17:48:38
2019-03-07T17:48:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,933
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2013 Kitware 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 cop...
[ "jonathan.beezley@kitware.com" ]
jonathan.beezley@kitware.com
5a162275f2bc74d1096b788d6c83ff51e35a756b
68b2e5981caadabd6a4ecec5dab69831979b33f2
/home/views.py
728ccaccb3505218a1d209609c9055bd4de840d2
[]
no_license
linker10/jodep
a78b853743b701ef3a63ed6f8555e280e20f1048
7f533e9ee68e57eb19a874390e087ca19d786d60
refs/heads/master
2022-12-30T20:34:06.721603
2020-10-14T17:14:15
2020-10-14T17:14:15
292,902,953
0
1
null
null
null
null
UTF-8
Python
false
false
752
py
from django.shortcuts import render from . import forms # Create your views here. def index(request): return render(request, 'home/index.html', {}) def hire(request): return render(request, 'home/embaucher.html', {}) def work(request): return render(request, 'home/travailler.html', {}) def career_cente...
[ "bilalsharif4@gmail.com" ]
bilalsharif4@gmail.com
141ef4d5afc8cab5c85509adeaa251a5f7bc2b3c
214c4a79fd77008bf688aa2fc8bafdff8a80780b
/src/dns-resolver/azext_dnsresolver/vendored_sdks/dnsresolver/aio/operations/_outbound_endpoints_operations.py
1f92484598a0da931f65c0e6c53843378a5d7877
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
openapi-env-test/azure-cli-extensions
abb8bcf005a5b75ee47a12745a958bcb64996a44
d4ffc4100d82af66c4f88e9401397c66b85bd501
refs/heads/master
2022-09-15T18:08:46.848581
2022-08-09T06:09:14
2022-08-09T06:09:14
243,698,123
0
1
MIT
2020-11-10T06:59:47
2020-02-28T06:53:57
Python
UTF-8
Python
false
false
31,674
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
8a5ea54f00eb6fdcb32e2b97441e82db4f04f4b1
fe70774ff6898c5bdb0c941b4f335de576abfdb6
/autotest/test_util_geometry.py
a727f7b5d9f5c8fac277633719c559ca1b644a4e
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
robinthibaut/flopy
35af468415d1ba6e1de119a7cb335381304fada9
22ef330bcfb9259fc23735d6b174d27804b624a0
refs/heads/develop
2023-06-30T21:43:24.101593
2023-06-13T19:46:03
2023-06-13T19:46:03
255,560,877
0
0
BSD-3-Clause
2022-10-10T12:23:38
2020-04-14T09:05:42
null
UTF-8
Python
false
false
734
py
import numpy as np import pytest from flopy.utils.geometry import is_clockwise def test_does_isclockwise_work(): # Create some points verts = [] verts.append([0, 20.0000, 30.0000]) verts.append([1, 18.9394, 25.9806]) verts.append([2, 21.9192, 25.3013]) verts.append([3, 22.2834, 27.5068]) ...
[ "noreply@github.com" ]
robinthibaut.noreply@github.com
b20e25d270aa6a1dcda5f1c329255d156a3e6fcf
71ec941712decba1f7326e83c02df998a55e8fb3
/tensorflow_datasets/core/download/downloader.py
15b4c7183010a59b1f0d3899105beb4329f1a6b4
[ "Apache-2.0" ]
permissive
temiafeye/datasets
6c79d30a948c4bdac577dd2fe004aed51e079beb
4d8c05c471c710aaf3302046b73e222a70d663c1
refs/heads/master
2020-04-20T18:03:50.609952
2019-03-11T06:27:14
2019-03-11T06:27:14
169,007,422
0
0
null
2019-02-03T23:57:17
2019-02-03T23:57:17
null
UTF-8
Python
false
false
5,204
py
# coding=utf-8 # Copyright 2018 The TensorFlow Datasets 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 appl...
[ "copybara-piper@google.com" ]
copybara-piper@google.com
1b91b70756352db0d1bd5c4cc5f9e0edef9f3acb
0a973640f0b02d7f3cf9211fcce33221c3a50c88
/.history/src/eastmoney_20210204150713.py
a4f39e9fd4f7b05e7ed21020c66dcd5273b3924e
[]
no_license
JiajunChen123/IPO_under_review_crawler
5468b9079950fdd11c5e3ce45af2c75ccb30323c
031aac915ebe350ec816c05a29b5827fde588567
refs/heads/main
2023-02-26T08:23:09.622725
2021-02-04T10:11:16
2021-02-04T10:11:16
332,619,348
0
0
null
null
null
null
UTF-8
Python
false
false
17,727
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : easy-money.py @Time : 2021/02/04 09:03:02 @Author : Jiajun Chen @Version : 1.0 @Contact : 554001000@qq.com @License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA ''' # 东方财富网 首发申报及上会信息 import re import pickle from datetime import datetime...
[ "chenjiajun.jason@outlook.com" ]
chenjiajun.jason@outlook.com
0865d62dd0d7b3fc9a1aaedbe6cf6799240ddb8f
274eb3a3c4202c86a40e13d2de7c2d6f2a982fcb
/altimeter/qj/api/base/endpoints/status.py
3345752ca410d1b8e0fbd80b24d6b5ff39d934dc
[ "MIT", "Python-2.0" ]
permissive
tableau/altimeter
6199b8827d193946bb0d0d1e29e462fc8749d3e4
eb7d5d18f3d177973c4105c21be9d251250ca8d6
refs/heads/master
2023-08-15T16:21:31.265590
2023-07-04T13:13:32
2023-07-04T13:13:32
212,153,766
75
25
MIT
2023-08-02T02:05:22
2019-10-01T17:10:16
Python
UTF-8
Python
false
false
292
py
"""Endpoints for service status""" from typing import Any from fastapi import APIRouter from altimeter.qj import schemas ROUTER = APIRouter() @ROUTER.get("", response_model=schemas.Status) def read_status() -> Any: """Get application status""" return schemas.Status(status="ok")
[ "noreply@github.com" ]
tableau.noreply@github.com
0097ed2047e2e481c74edb1a1535d6da760806ab
8052aca2d072b1a0f04c1b310c188c7a26286395
/simulator/animation.py
bb42e4d239583dff9acf9e91a4edbc626f1efac7
[]
no_license
huangy10/VehicleDensityEstimation
71aec734c0ef1fb2b685d902c4323e6db6a69095
3ca1ae84fa5336729f90b22416838aa84478caa7
refs/heads/master
2021-01-21T13:57:40.677699
2016-06-03T08:37:50
2016-06-03T08:37:50
44,721,127
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation import math, random # 需要安装的库:Numpy和Matplotlib,推荐直接Anaconda fig, axes1 = plt.subplots() # 设置坐标轴长度 axes1.set_ylim(0, 1.4) axes1.set_xlim(0, 1*np.pi/0.01) # 设置初始x、y数值数组 xdata = np.arange(0, 2*np.pi, 0.01) yd...
[ "woody1573@163.com" ]
woody1573@163.com
162fe5cabb9af63b66ed3b9bf6a4cdbdfa142aa9
092dd56a1bf9357466c05d0f5aedf240cec1a27b
/examples/strikeslip-2d/createbc.jou
64dd61ff4cf1944a7e4213c246c30eaedac46839
[ "MIT" ]
permissive
rwalkerlewis/pylith
cef02d5543e99a3e778a1c530967e6b5f1d5dcba
c5f872c6afff004a06311d36ac078133a30abd99
refs/heads/main
2023-08-24T18:27:30.877550
2023-06-21T22:03:01
2023-06-21T22:03:01
154,047,591
0
0
MIT
2018-10-21T20:05:59
2018-10-21T20:05:59
null
UTF-8
Python
false
false
2,282
jou
# -*- Python -*- (syntax highlighting) # ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University at Buffalo # # This code was developed as part of the Computational Infrastructure # for Geodyna...
[ "baagaard@usgs.gov" ]
baagaard@usgs.gov
dfcc7f521f57ebf34370c87579f05a89740afff4
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/08/02/12.py
825210521622dc3272a540dba11a6d14fb26afff
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,194
py
#!/usr/bin/env python2.5 import sys infile = open(sys.argv[1], 'rb') numcases = int(infile.readline()) def gettime(s): t = s.split(":") return int(t[0])*60 + int(t[1]) for case in xrange(1, numcases+1): turnaround = int(infile.readline()) counts = [int(x) for x in infile.readline().split()] a = [infile.readlin...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
120e5e404b9e11ba47a11aa081221fed40d87472
1012f61f46ff7aaf37cd3ce0ead64e035ec201dc
/coding-challange/leetcode/easy/~2021-10-08/2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.py
bfef32246ea3da44b94703ca6e2e2ee38d453037
[]
no_license
polyglotm/coding-dojo
89efe22f5a34088e94c9e3a4e25cad510b04172a
43da9c75e3125f5cb1ac317d275475f1c0ea6727
refs/heads/develop
2023-08-17T11:59:30.945061
2023-08-16T14:13:45
2023-08-16T14:13:45
188,733,115
2
0
null
2023-03-04T05:49:21
2019-05-26T21:26:25
JavaScript
UTF-8
Python
false
false
825
py
""" 2011-final-value-of-variable-after-performing-operations leetcode/easy/2011. Final Value of Variable After Performing Operations Difficulty: easy URL: https://leetcode.com/problems/final-value-of-variable-after-performing-operations/ """ from typing import List class Solution: def finalValueAfterOperations(...
[ "polyglot.m@gmail.com" ]
polyglot.m@gmail.com
780de82ddd78763573605119070f522619a10ae7
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4178/codes/1716_2496.py
282295ccd44e60d906e34260c803e8b9eb894dcb
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
98
py
x = int(input("Num: ")) a = 0 while (x != -1) : a = a + x x = int (input()) print(a)
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
564011be9d7a560aadc78d77acbd87da93c4ea62
9405aa570ede31a9b11ce07c0da69a2c73ab0570
/aliyun-python-sdk-elasticsearch/aliyunsdkelasticsearch/request/v20170613/GetSuggestShrinkableNodesRequest.py
cf6179a47a1941766eade496605b6b2b9781a9cc
[ "Apache-2.0" ]
permissive
liumihust/aliyun-openapi-python-sdk
7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b
c7b5dd4befae4b9c59181654289f9272531207ef
refs/heads/master
2020-09-25T12:10:14.245354
2019-12-04T14:43:27
2019-12-04T14:43:27
226,002,339
1
0
NOASSERTION
2019-12-05T02:50:35
2019-12-05T02:50:34
null
UTF-8
Python
false
false
1,873
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
4a32153afe9121aaf77c014e94ac46d3ee064db3
9c58a1f594e18cee20128f2c8dad8257429b10d1
/purchase_more_details/__manifest__.py
bca04c1f1481d830a2cba364538dfa3ce000825b
[]
no_license
gastonfeng/Odoo-eBay-Amazon
e8919768b2a1500209f209ee3aecc7f2fb10cda7
a9c4a8a7548b19027bc0fd904f8ae9249248a293
refs/heads/master
2022-04-05T00:23:50.483430
2020-02-19T04:58:56
2020-02-19T04:58:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': "Purchase - More Details", 'summary': "Advanced purchase features", 'description': """ Advanced Purchase Features ================================================================================= ...
[ "yjm@mail.ru" ]
yjm@mail.ru
c5a9fbc180fbf0b1cac50246ab69b0c60c57e2d1
9214a22c37f9751f66005d9033c68eadca43d6ee
/app/.history/datasets/spotify_fetch_20201212160646.py
c6e057311d1faed4b190317c09db9b7fc727b28e
[]
no_license
bsalgado98/lockdown-music
0800922ea25c9b07ea4b034297e67725776de070
a407265b7caa83667c92ee13c2adec1645acdafa
refs/heads/main
2023-01-29T09:55:38.137972
2020-12-17T01:01:49
2020-12-17T01:01:49
322,133,071
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
import spotipy from spotipy.oauth2 import SpotifyClientCredentials import json import csv auth_manager = SpotifyClientCredentials() sp = spotipy.Spotify(auth_manager=auth_manager) def get_artist_genre(artist): results = sp.search(q='artist:' + artist, type='artist') # print(json.dumps(results, indent=4, sort_...
[ "bsalgado@stevens.edu" ]
bsalgado@stevens.edu
d46a2d15a60364610678fa75cf1804149b56db91
a81a19b1e5fdb752227d81f89d0b01633958d958
/lesson3/task6.py
ccea59a6bb299d837466ed47e49826ea4a079c1d
[]
no_license
Gwellir/gb_py_algo
21cead3917c8ee09b08f306b252b87e8d4575a02
c704c86e9bb3a56f79e28ee27058ec45c93a2341
refs/heads/master
2020-09-24T05:16:30.552674
2019-12-30T13:58:42
2019-12-30T13:58:42
225,671,705
1
0
null
2019-12-30T13:58:43
2019-12-03T16:55:48
Python
UTF-8
Python
false
false
920
py
# В одномерном массиве найти сумму элементов, находящихся между минимальным и # максимальным элементами. Сами минимальный и максимальный элементы в сумму не включать. import random SIZE = 100 MIN_ITEM = 0 MAX_ITEM = 100 array = [random.randint(MIN_ITEM, MAX_ITEM) for _ in range(SIZE)] print(array) min_elem = (0, ar...
[ "gwellir@gmail.com" ]
gwellir@gmail.com
589fcc650b3b19b399bb7e2c41f973eb0274a6f8
175e4e031471e5cdbc9bcaee2df10f5ec44871d3
/LESSON2b/.history/backend/app_20200531171712.py
30c8d98adb31d0f7ac9789f77fb261fe0e2390d0
[]
no_license
hiyacins/uma_study
c329d29a9c3899ab4feca21b9c47ef546b69b0bd
067e66f258a0c89f7670c645dd7c40feee8536fa
refs/heads/master
2023-01-23T06:40:12.435047
2020-06-17T15:59:34
2020-06-17T15:59:34
239,077,726
0
0
null
2023-01-06T08:36:26
2020-02-08T05:56:52
Python
UTF-8
Python
false
false
4,260
py
from HiyaLib import * import unittest app = FlaskBuilder(__name__) # ログイン成功後の画面(ホーム画面) @app.route('/') @login_required def top(): flash('ログインを成功しました\(^o^)/') with MySQLConnector() as db: return render_template('index.html', entries=db.select(ToDoItem)) # ログイン前画面表示 @app.route('/login', methods=['...
[ "hiyacins@gmail.com" ]
hiyacins@gmail.com
1caa8edc04da0c6565e11e0ecbe236dbe815fd18
e73cf78346901f00193dbfda7098de32afa99091
/solutions/video_similarity_search/quick_deploy/server/src/mysql_helpers.py
d70fcc9d00d115e0dacd97a1b06cf1ced239e934
[ "Apache-2.0" ]
permissive
miia12/bootcamp
d690056ba5c2a538b8734cf7eacb23bf189683eb
cc42989537fac13882789ee40ec4a9b8834c425b
refs/heads/master
2023-06-05T10:06:04.318263
2021-06-22T07:45:10
2021-06-22T07:45:10
373,466,228
0
2
Apache-2.0
2021-06-23T00:17:15
2021-06-03T10:19:13
Jupyter Notebook
UTF-8
Python
false
false
3,299
py
import pymysql import sys from config import MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PWD, MYSQL_DB from logs import LOGGER class MySQLHelper(): def __init__(self): self.conn = pymysql.connect(host=MYSQL_HOST, user=MYSQL_USER, port=MYSQL_PORT, password=MYSQL_PWD, datab...
[ "shiyu.chen@zilliz.com" ]
shiyu.chen@zilliz.com
a645d651077b0b787589e33ea9a914f8d5db6263
4846c0e7cf3cf1335c797106afe880d1b44d3e71
/tests/test_expand_tsv.py
4127d7b52b745181c146c72a5f9447d09e18a692
[]
permissive
biolink/ontobio
1f2825edab68d7e52f4e262c82b173e6cc978d9f
3dd9050f1c53efd63003e4adfe9d9e27e4557b56
refs/heads/master
2023-08-31T13:43:01.545837
2023-08-30T16:56:10
2023-08-30T16:56:10
88,679,857
125
33
BSD-3-Clause
2023-09-13T23:50:27
2017-04-18T23:36:22
Python
UTF-8
Python
false
false
719
py
from ontobio import OntologyFactory from ontobio.tsv_expander import expand_tsv import csv INPUT = "tests/resources/data_table.tsv" OUTPUT = "tests/resources/data_table-expanded.tsv" def test_expand(): factory = OntologyFactory() ontobj = factory.create("tests/resources/goslim_pombe.json") expand_tsv(INP...
[ "cjm@berkeleybop.org" ]
cjm@berkeleybop.org
7ad8044f573bd3b0dbbfacd2793d91404ed7c16b
1fddb12ae9b7db260b9161983a726f1528ece940
/Part_01/Cap_11/test_survey.py
c8b1d834dc1b4be20cada692bde36442ea8a3ee2
[]
no_license
davicosta12/python_work
aecf642bbbf2a007fba159f305b4ab21ff00503f
5df62d3ced25b7e04cda71846fd07862dda39b4c
refs/heads/master
2023-04-23T09:49:31.923211
2021-04-27T00:31:42
2021-04-27T00:31:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
import unittest from survey import AnonymousSurvey class TestAnonymousSurvey(unittest.TestCase): """Testes para a classe AnonymousSurvey""" def setUp(self): """ Cria uma pesquisa e um conjuntos de respostas que poderão ser usados em todos os métodos de teste. """ question = "What la...
[ "deadspace24@hotmail.com" ]
deadspace24@hotmail.com
dce0ea73309c79f5b5ff5c67b8dc08e0e37c9604
23556b966ee6a3abbe42ee5b66e13af3dce0cf71
/u24_lymphocyte/third_party/treeano/sandbox/nodes/wta_sparisty.py
c398a9bda304d23a4746b232e91d460a3a11ec8f
[ "BSD-3-Clause" ]
permissive
SBU-BMI/quip_classification
74dbf6d41e579755a952ba475f8a89bd82ac8530
be61e5f047093243404f6f2dc8e837e27e8e1eb3
refs/heads/master
2022-07-30T20:29:48.459298
2022-07-17T16:59:15
2022-07-17T16:59:15
162,736,219
5
14
BSD-3-Clause
2022-02-11T02:53:02
2018-12-21T16:36:39
Python
UTF-8
Python
false
false
3,184
py
""" winner-take-all sparsity activations from "Winner-Take-All Autoencoders" http://arxiv.org/abs/1409.2752 """ import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn DEFAULT_POPULATION_SPARSITY_LEVEL = 0.05 @treeano.register_node("wta_spatial_sparsity") class WTASpatia...
[ "sabousamra@cs.stonybrook.edu" ]
sabousamra@cs.stonybrook.edu
1cf8d985c0faf8b5278b5a7b2389cbd800709754
4a5b49806d0dd4fd8bd38483b06da79515d1ad39
/apps/apis/permissions.py
b634545aa3b4c8601b293db01ee3f5f4d490c08e
[]
no_license
madongliang11/dj_Book
5ace757f7873d10e41d756be29050ee395f4bceb
c70e331e733a4431467d49dcb8514b58ef03715c
refs/heads/master
2022-12-14T15:08:02.027194
2019-03-10T14:48:47
2019-03-10T14:48:47
174,836,847
1
0
null
2022-11-22T02:23:10
2019-03-10T14:44:17
JavaScript
UTF-8
Python
false
false
406
py
# -*- coding: utf-8 -*- __author__ = 'zhougy' __date__ = '2018/7/12 下午4:24' from rest_framework import permissions class IsOwnerOrReadOnly(permissions.BasePermission): ''' 自定义权限功能,只允许对象的所有者编辑它 ''' def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return T...
[ "15565608583@163.com" ]
15565608583@163.com
2b06a220ed73cca961384efdf9355c7e80335c6a
847273de4b1d814fab8b19dc651c651c2d342ede
/.history/Sudoku_II_1_20180618112201.py
c3a8ac5c585fb9bc255e10c97590066dd79def36
[]
no_license
Los4U/sudoku_in_python
0ba55850afcffeac4170321651620f3c89448b45
7d470604962a43da3fc3e5edce6f718076197d32
refs/heads/master
2020-03-22T08:10:13.939424
2018-07-04T17:21:13
2018-07-04T17:21:13
139,749,483
0
1
null
null
null
null
UTF-8
Python
false
false
9,373
py
from random import randint # Sudoku1 almost solved sudoku1 = [ [5, 9, 8, 6, 1, 2, 3, 4, 7], [2, 1, 7, 9, 3, 4, 8, 6, 5], [6, 4, 3, 5, 8, 7, 1, 2, 9], [1, 6, 5, 4, 9, 8, 2, 7, 3], [3, 2, 9, 7, 6, 5, 4, 1, 8], [7, 8, 4, 3, 2, 1, 5, 9, 6], [8, 3, 1, 2, 7, 6, 9, 5, 4], [4, 7, 2, 8, 5, 9, 6,...
[ "inz.kamil.wos@gmail.com" ]
inz.kamil.wos@gmail.com
e32ddebb3bbd8d75e23cd2ff84cbce8b1473fba1
07eac224e2633aee3f606efcdb74d5e4b1e3e76e
/lib/functionfinder.py
3b2da1af74eb50e3aec2d225f15e6c57db9551d6
[ "MIT" ]
permissive
Ortus-Solutions/sublimetext-lucee
5cbd8517b050a7b69d62874e185fc73cd3e84234
a663c219f3eed60f72843a08592e28c8d9e5854f
refs/heads/master
2021-01-16T18:49:51.372386
2015-08-18T00:55:40
2015-08-18T01:54:34
41,172,500
2
0
null
2015-08-21T19:02:51
2015-08-21T19:02:51
null
UTF-8
Python
false
false
5,003
py
# This module, via find_functions(), takes in a cfml/lucee source file string and # returns a python list containing tuples of the function name and a map of data # about the function. # The structure looks like this: # [ # ("function_name", { # "access": "public/private/etc", # "returntype": "any/st...
[ "jcberquist@outlook.com" ]
jcberquist@outlook.com
056a503e59def2e468d0f077374750058c19d71d
908d2154515d9f9d54a3a1fb5e3b9a388642ac07
/eval/eval.py
8b238104fa5e7c6dc93f768282b7e832d3dd4648
[]
no_license
unix0000/Colorful-Image-Colorization
122e33246844d95b5aa1fa77462c90569b3c4d3c
b53ea3fe3a213ad2a3eb92a183fd824409e037a9
refs/heads/master
2020-07-05T01:34:12.083707
2016-11-18T03:13:56
2016-11-18T03:13:56
74,130,602
1
0
null
2016-11-18T13:09:17
2016-11-18T13:09:17
null
UTF-8
Python
false
false
2,373
py
""" Cameron Fabbri Evaluation by just looking at the original image and the resulting image from the network """ import os import tensorflow as tf import cv2 import sys import numpy as np import fnmatch sys.path.insert(0, '../architecture/') sys.path.insert(0, '../model/') import architecture def eval(checkpoint...
[ "cameronfabbri@gmail.com" ]
cameronfabbri@gmail.com
1ee8f42708cdd52a258a57dabd3803e37076ae59
7f6958b47a47cea5926181ea5ca0377dcc0721cd
/apps/cms/models.py
176c250e8b25c2c180b91bcac9d5aa88d8bbccbf
[]
no_license
LearnerCharlesYim/bbs_demo
04afb8273548dc2bd2d386e6bece19c8e763ac80
8ffbacb7f114e479b322147fe5c9164664d0c479
refs/heads/master
2023-03-31T17:49:46.569650
2021-04-10T02:37:23
2021-04-10T02:37:23
354,493,306
0
0
null
null
null
null
UTF-8
Python
false
false
3,634
py
from exts import db from datetime import datetime from werkzeug.security import generate_password_hash,check_password_hash #权限 class CMSPermission(object): #255二进制表示 1111 1111 ALL_PERMISSION = 0b11111111 #1.访问者(无权限) VISITOR = 0b00000001 #2.管理帖子 POSTER = 0b00000010 #3.管理评论 ...
[ "yanchicharles@gmail.com" ]
yanchicharles@gmail.com
dd67d8a19666bf18e0a966a013d8e472126af59e
d96d1467dfc5648bcd29609c4b075453d20f8504
/mycroft_voice_satellite/speech/listener.py
cd21928331d0329e48c3a71dec9af28677aa7dbf
[]
no_license
msgpo/HiveMind-voice-sat
38a88b7dd6a2ddbd2a40a9af633a7c4172090d6a
826d0fddcecf662b3346c656ea6e2d02c810e37b
refs/heads/master
2022-10-10T16:00:06.564431
2020-06-10T03:29:53
2020-06-10T03:29:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,253
py
# Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
[ "jarbasai@mailfence.com" ]
jarbasai@mailfence.com
96c16054cf31a37d84a372faeeb23be5d8cdd08e
7a76057ad364bd82bb91c9fbf361df72eb49a2b0
/api/v1/views/places_amenities.py
c29d2f2c2f335441f88fdfc9c806e26017504ae6
[ "LicenseRef-scancode-public-domain" ]
permissive
hcheung01/AirBnB_clone_v3
2f351fd8840d6ffbc66b49d5e8549959ab5c887a
91885a067d4011d3d58d3cecc55ad0a0d3789a3a
refs/heads/master
2021-07-13T13:06:59.293804
2020-07-29T03:34:26
2020-07-29T03:34:26
169,111,974
1
1
null
2019-02-09T00:14:32
2019-02-04T16:45:03
Python
UTF-8
Python
false
false
1,665
py
#!/usr/bin/python3 """view of State object""" from api.v1.views import app_views from models import storage from flask import jsonify, abort @app_views.route('/places/<place_id>/amenities', methods=["GET"]) def ame_ret(place_id=None): """return json Amenity objects""" ame_list = [] place_obj = storage.get...
[ "kazucuong@yahoo.com" ]
kazucuong@yahoo.com
e1f94ec28ab6bca97569e151132194b7d52dec20
fa16b3626f9e383dc9ae2021c98232447bfcd7d6
/find_object_doc.py
f8d4b09cf2b46b3e416590f9b4303a9b16ea8edb
[]
no_license
zlszhonglongshen/BitPythonCode
5bd37ac917d2b065771f87375fc96f78a8743ef6
cae504fed4f92a275dcdcf2802e3e4f00dfe1a60
refs/heads/master
2020-12-26T03:22:15.614046
2014-11-07T12:05:51
2014-11-07T12:05:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,987
py
#!/usr/bin/env python #coding:utf-8 #让开发人员在IDE中打印出对象的所有函数和它们的doc string #接收任何含有函数或者方法的对象 #使用方法, #from find_object_doc import info #info(object) #也可以增加参数。 def info(object,spacing=10,collapse=1): #声明函数,有三个变量,后面两个是可选参数 """Print methods and doc strings. #多行doc string,介绍函数功能 Takes module,class,list,dictionar...
[ "qiwsir@gmail.com" ]
qiwsir@gmail.com
bf7381c46d0b27c47798a737965b91e7a25453b4
b385f39c5b701fb6f22796ab951872257ae8398a
/exercicios-secao08/exercicio40.py
cc298e6652cf528d91cc35374a1688460f8fbbbf
[ "MIT" ]
permissive
EhODavi/curso-python
5c97a6913bad198ae590519287ed441c95399d80
cf07e308be9d7516f2cfe7f21c539d214c836979
refs/heads/main
2023-08-07T13:44:46.608118
2021-06-14T21:40:50
2021-06-14T21:40:50
356,542,988
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
from typing import List def quantidade_par(vetor: List[int]) -> int: contador: int = 0 for numero in vetor: if numero % 2 == 0: contador += 1 return contador
[ "davi.miau@gmail.com" ]
davi.miau@gmail.com
6889f412ecdbc3a394cdd2e61a0802c3c0a2fec9
ec1af022ed6a0f42927fe671d2919a8bb5189b68
/src/python/Agents/Stagers/FakeStager.py
26570db7f33c25cdce375568a977d593dca4daa1
[]
no_license
dmwm/StageManager
bac6711e1d6bc8e800fdf0f314f9fa69a92ced50
739656b3771b6369d296fb9426ed21f296ed7f0c
refs/heads/master
2021-01-19T06:40:42.928014
2012-02-08T19:09:55
2012-02-08T19:09:55
4,423,799
0
1
null
2016-01-22T16:58:28
2012-05-23T18:33:45
Python
UTF-8
Python
false
false
607
py
from StageManager.Agents.Stagers.Stager import Stager import random class FakeStager(Stager): def command(self, files): """ In this stager a random population is taken as being successfully staged incomplete and the rest marked as a failure. """ staged = random.samp...
[ "metson@4525493e-7705-40b1-a816-d608a930855b" ]
metson@4525493e-7705-40b1-a816-d608a930855b
2107e3e740454d344bed87f2246ff50aa4784999
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj9-10_161143.03+122953.0/sdB_sdssj9-10_161143.03+122953.0_lc.py
3bae2008e88647d867cbf8624a155c3a0503f76d
[]
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
379
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[242.929292,12.498056], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj9-10_161143.03+122953.0/sdB_sdssj9-10_161143.03+122953.0_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0....
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
fb2f71f7f74173ce95d17e4bf2137d9cb471f1df
1554b551ecf51d38efd27252b52fc722ee3869af
/tasks/relevance_transfer/rerank.py
b9c54d55ad59013fd130f1205c5eae9b4ad0b789
[ "Apache-2.0" ]
permissive
castorini/hedwig
540c231c98f19b576e575f9d8f0a5e937832d752
277814c401f4d17f5489e3c8c6deefc1af9eeffd
refs/heads/master
2023-08-03T08:54:01.015424
2022-05-07T20:01:54
2022-05-07T20:01:54
174,762,036
603
140
Apache-2.0
2023-07-21T16:23:09
2019-03-10T00:44:37
Python
UTF-8
Python
false
false
2,601
py
import os import numpy as np def load_ranks(rank_file): score_dict = {} with open(rank_file, 'r') as f: for line in f: topic, _, docid, _, score, _ = line.split() if topic not in score_dict: score_dict[topic] = dict() score_dict[topic.strip()][docid...
[ "noreply@github.com" ]
castorini.noreply@github.com
607043ecdf65065fb5ebc1408a1e34864ec3912c
7443577408e36ce0f4b9c45e13c82597f5533738
/Distributed_test/src/mnist_data.py
583ae21570008b0b5957d8fafd3f3ee70c7bcd4e
[]
no_license
hwang595/distributed_tensorflow
87c7349621a33e325a63dfb8f9c385fd12bc9baa
d726ebcc76b02ee7db0237e422b8d71b039db97d
refs/heads/master
2021-01-21T17:32:06.641535
2017-10-15T21:49:53
2017-10-15T21:49:53
81,853,418
1
2
null
null
null
null
UTF-8
Python
false
false
7,245
py
# Copyright 2015 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...
[ "hongyiwang@cs.wisc.edu" ]
hongyiwang@cs.wisc.edu
e789af347a07d7eca625399ca8b4e60e44feb2f7
d6815f4c7774d30c5d12d2205703427693294dec
/tests/unit/more/debian/security/test_apparmor.py
24231dfd2d320ccbf533a061e9ced2b0493ad757
[ "MIT" ]
permissive
python-provy/provy
2579bbedc31f559992b7c007a4a2e75424d3507f
ca3d5e96a2210daf3c1fd4b96e047efff152db14
refs/heads/master
2021-12-30T12:03:28.083794
2019-02-20T16:55:32
2019-02-20T16:55:32
1,948,340
16
3
MIT
2021-12-26T06:30:37
2011-06-24T16:01:45
Python
UTF-8
Python
false
false
3,560
py
from nose.tools import istest from provy.more.debian import AptitudeRole, AppArmorRole from tests.unit.tools.helpers import ProvyTestCase class AppArmorRoleTest(ProvyTestCase): def setUp(self): super(AppArmorRoleTest, self).setUp() self.role = AppArmorRole(prov=None, context={'cleanup': []}) ...
[ "diogobaeder@yahoo.com.br" ]
diogobaeder@yahoo.com.br
2958debc837be49ad4a1c9137151045b42512f67
77311ad9622a7d8b88707d7cee3f44de7c8860cb
/res_bw/scripts/common/lib/plat-mac/lib-scriptpackages/finder/enumerations.py
2d873810a8b4d06a88219350ce00dbd265275893
[]
no_license
webiumsk/WOT-0.9.14-CT
9b193191505a4560df4e872e022eebf59308057e
cfe0b03e511d02c36ce185f308eb48f13ecc05ca
refs/heads/master
2021-01-10T02:14:10.830715
2016-02-14T11:59:59
2016-02-14T11:59:59
51,606,676
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
3,027
py
# 2016.02.14 12:50:16 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/plat-mac/lib-scriptpackages/Finder/Enumerations.py """Suite Enumerations: Enumerations for the Finder Level 1, version 1 Generated from /System/Library/CoreServices/Finder.app AETE/AEUT resource version 0/144, language 0, script ...
[ "info@webium.sk" ]
info@webium.sk
e41211b2919ee8cc6517b8bf0ae266de80004e07
46f5281aa3a83f5b2335bf8131ca484875a0acb7
/ambiente/views.py
8d1c9c9decbb702ba2865de364b11c2507fec798
[]
no_license
rauldosS/simulador
1718b150043ea046823411ac93dd006c501ddd9e
03bff4da57db570ac70e511f3c0700f19ff6c95e
refs/heads/main
2023-01-23T04:52:07.285003
2020-12-08T09:18:43
2020-12-08T09:18:43
310,734,986
1
0
null
null
null
null
UTF-8
Python
false
false
2,354
py
from django.shortcuts import render, redirect from django.urls import reverse from .models import Ambiente, Atividade from django.http import HttpResponseRedirect, JsonResponse from django.db.models import Count import json # Create your views here. def inicio(request): ambientes = Ambiente.objects.all() dado...
[ "48498755+rauldosS@users.noreply.github.com" ]
48498755+rauldosS@users.noreply.github.com
4291e2f4b3e1681a8d95c15fd5591191503146fc
4a220323a6d4a86d690be43e10a31f306eb6d888
/PF/Day_5/src/Assign37.py
4c610098568031c1f0d3ca3a625f52c8f4a11ec0
[]
no_license
vijayroykargwal/Infy-FP
29e923f6756e73d72ebef9ed63ede0105929aae0
60ebd1514f7c9d3c77ec8c622091b1127e225c2c
refs/heads/master
2023-02-02T02:14:46.870321
2023-01-30T14:43:16
2023-01-30T14:43:16
176,973,990
2
0
null
null
null
null
UTF-8
Python
false
false
1,027
py
#PF-Assgn-37 ''' Created on Feb 26, 2019 @author: vijay.pal01 ''' #Global variables child_id=(10,20,30,40,50) chocolates_received=[12,5,3,4,6] child_id=(10,20,30,40,50) child_id_list=list(child_id) chocolates_received=[12,5,3,4,6] def calculate_total_chocolates(): total_chocolates=sum(choc...
[ "noreply@github.com" ]
vijayroykargwal.noreply@github.com
54568df6142694ca70bd7449d08abed925d2a91a
4fdaa61e2fb2d320a0903e17024598c6a67ab0fb
/python/Faa/subsets1.py
2d4ab086853db49941f02a5cbccf516c1690a0a5
[]
no_license
khans/ProgrammingAndDataStructures
10d5cd5f30f703298ba132be4dfba828f3a0e9e1
58c1d822fa5eab17485369bc40dd1376db389f44
refs/heads/master
2021-01-25T14:03:40.616633
2018-06-19T23:02:44
2018-06-19T23:02:44
123,643,607
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
import sys class Solution: def print_set(self,res): #sys.stdout.write('{') print (res) #for i in range(len(res)): # if res[i] != None: # sys.stdout.write(str(res[i])) # if (i+1) <len(res): #print (res[i+1]) #if i+1 <len(res) and res[i+1] != None: ...
[ "isafakhan@gmail.com" ]
isafakhan@gmail.com
41aa6fb3432521bc84a6e5949a8ffbe5119f4254
55e7e516f5f814d3f7f8daa59708bb2fec3d4962
/_lib/slash_running.py
1d42bf00e6d109f65106566c2b1e7b6e9d535b70
[ "BSD-3-Clause" ]
permissive
omergertel/backslash
4c3c916a37f8ce00108e6274f61feb5c6395e460
9123b28f2717ec5653fc0c224b5adac0e738ff36
refs/heads/master
2021-01-21T03:02:40.872363
2015-10-20T18:43:55
2015-10-20T18:43:55
46,661,674
0
0
null
2015-11-22T13:25:54
2015-11-22T13:25:54
null
UTF-8
Python
false
false
760
py
import click import logbook from .bootstrapping import requires_env, from_project_root _logger = logbook.Logger(__name__) @click.command() @click.argument('name') @click.argument('args', nargs=-1) @requires_env('app', 'develop') def suite(name, args): import slash import gossip from slash.frontend.slas...
[ "vmalloc@gmail.com" ]
vmalloc@gmail.com
48b64edf5aab3ad08b5f31525b08d0272bf0171d
db49ac8279d82a28147f78518db5664eb5ebedc4
/0x04-python-more_data_structures/100-weight_average.py
d5570d98a3e0e7b864f2ec12322f4b7bf1d2aeda
[]
no_license
DennisWanjeri/alx-higher_level_programming
95129d46c111d63ea2eb6278daf0dff388f641c5
23b859646cbe3221f18c8523065c749c018e0fe0
refs/heads/main
2023-08-12T22:55:47.896613
2021-09-22T11:01:21
2021-09-22T11:01:21
361,633,867
0
4
null
null
null
null
UTF-8
Python
false
false
218
py
#!/usr/bin/python3 def weight_average(my_list=[]): total = 0 i = 0 if len(my_list) == 0: return total for x in my_list: total += (x[0] * x[1]) i += x[1] return (total / i)
[ "shikandadennis07@gmail.com" ]
shikandadennis07@gmail.com