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
4d012607d045af72d09fba80cfd1625c1e627d90
3b7474148c07df7f4755106a3d0ada9b2de5efdc
/training/c26_api_requests/client/lab05_HTTPBIN_GETJSON.py
1e47277097b0a36464989ac7362dd529aaf4bb11
[]
no_license
juancsosap/pythontraining
7f67466846138f32d55361d64de81e74a946b484
1441d6fc9544042bc404d5c7efffd119fce33aa7
refs/heads/master
2021-08-26T05:37:15.851025
2021-08-11T22:35:23
2021-08-11T22:35:23
129,974,006
1
2
null
null
null
null
UTF-8
Python
false
false
291
py
import requests def main(): url = 'http://httpbin.org/get' response = requests.get(url) if response.status_code == 200: response_json = response.json() # Dictionary origin = response_json['origin'] print(origin) if __name__ == '__main__': main()
[ "user.nuage@gmail.com" ]
user.nuage@gmail.com
69443fd6ce76067dbc1afcbe80e1509d0d32777d
411a2fc51902aef288a7382aa3d4950132c2ba7d
/prob_015.py
679c21e047a18f465bc60e6850e0f504ab847378
[]
no_license
bdjackson/ProjectEuler
c73a1f55a9e7995f8674b02dc486bbd433cb6ea7
3517c39ee5ae3e90499ced2ca47b94bef3f2fb8f
refs/heads/master
2021-01-01T19:47:17.902466
2013-11-03T19:07:39
2013-11-03T19:07:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,543
py
#!/usr/bin/env python # ============================================================================ import sys # =========================================================================== # = http://projecteuler.net/problem=15 = # = - - - - - - - - - - - - - - - - - - - - - -...
[ "bjack3@gmail.com" ]
bjack3@gmail.com
45de4b48e69e78beab1276afde0493a05412c0fc
de0bf3ddc4fedc14a24e085007d4babe598d2e66
/generate_col_num.py
a30edd1329a0d56d907ba9f3750e6b63255e1cf6
[]
no_license
Scandium627/usseful_data_fuction
aa5531d71b4f163a3580a9b9302bf55dc5298095
476671e9a5117b587d3dfc6f605e483841c7db1c
refs/heads/master
2022-08-15T08:11:34.602656
2020-05-24T08:09:05
2020-05-24T08:09:05
208,982,165
0
0
null
null
null
null
UTF-8
Python
false
false
2,276
py
import os import pandas as pd import csv def get_files(file_dir): list_fife = [] for root, dirs, files in os.walk(file_dir): for name in files: if name.endswith('py') or name.endswith('css') or name.endswith('html') or name.endswith('js') or name.endswith('vue') or name.endswith('sh'): ...
[ "360134299@qq.com" ]
360134299@qq.com
44c46ba93a07fded493503c407a780d5ac75ad25
11d8e5c2ea583b837469491b25c5f186368e0b78
/test/test.py
d4e137565c58df5475b8473dd7a041ca2d254395
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sloria/pattern
dcd77a9e2de9d31677c28208d4c5a0b7dbae55c8
d1d719540f195f3028e24f4d2e536d73e9fef210
refs/heads/master
2021-01-18T08:48:02.400336
2013-09-22T14:56:25
2013-09-22T14:56:25
11,158,672
1
1
null
null
null
null
UTF-8
Python
false
false
1,288
py
import os, sys; sys.path.insert(0, os.path.join("..")) import unittest import test_metrics import test_web import test_db import test_de import test_en import test_es import test_fr import test_it import test_nl import test_text import test_search import test_vector import test_graph #--------------------------------...
[ "tom@organisms.be" ]
tom@organisms.be
b415842158a3d373c9b8c0d3a087ea55ea60a8a9
f4bf81d4e80468331a09401dbaeef12465aca853
/lib/python/helpers/profiler/prof_util.py
b529b5ece1393da4c6c1318d21f61e7e9cfb71d6
[]
no_license
nottyo/intellibot
45c41d673608a0a1291c6387f9d33ef449f18837
0547d987deaad90260abe33db5284eae9704eb9b
refs/heads/master
2020-12-30T23:59:29.795725
2017-04-10T07:53:59
2017-04-10T07:53:59
86,574,980
1
0
null
2017-03-29T11:37:54
2017-03-29T11:37:53
null
UTF-8
Python
false
false
3,343
py
__author__ = 'traff' import threading import os import sys import tempfile from _prof_imports import Stats, FuncStat, Function try: execfile=execfile #Not in Py3k except NameError: #We must redefine it in Py3k if it's not already there def execfile(file, glob=None, loc=None): if glob ...
[ "traitanit.hua@ascendcorp.com" ]
traitanit.hua@ascendcorp.com
b542ddb755239f61ca7234b388116278a6242a35
c163e238d0a0818a613fe107471e7d824febd280
/users/migrations/0001_initial.py
bfb13135d37b1cdf7a5aa6a7e2761d46ee7e1063
[]
no_license
Thxpatoxx/brigido
c6302bee8e353e0b68c6f98b4b96f899b8de9d98
58a5c3bdda15ce2f5acc6400251faadef3552d8a
refs/heads/master
2020-09-12T22:27:40.537696
2019-11-19T02:54:40
2019-11-19T02:54:40
222,579,885
0
0
null
null
null
null
UTF-8
Python
false
false
6,464
py
# Generated by Django 2.2.7 on 2019-11-19 00:19 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('aut...
[ "tu@ejemplo.com" ]
tu@ejemplo.com
7a542dffb43bea50b4904ad35af6bd28f8eb9309
e262e64415335060868e9f7f73ab8701e3be2f7b
/.history/read_pyexcal_20201111165203.py
37ff68e7a0fcf5143221bdcfbab09e0d81af48b8
[]
no_license
Allison001/developer_test
6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63
b8e04b4b248b0c10a35e93128a5323165990052c
refs/heads/master
2023-06-18T08:46:40.202383
2021-07-23T03:31:54
2021-07-23T03:31:54
322,807,303
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
from openpyxl import load_workbook # wb = load_workbook(filename = 'empty_book.xlsx') # sheet_ranges = wb['range names'] # print(sheet_ranges['D18'].value) # wb = load_workbook(filename= "empty_book.xlsx") # sheet_ranges = wb['range names'] # print(sheet_ranges["D12"].value) wb = load_workbook(filename = "empty_book...
[ "zhangyingxbba@gmail.com" ]
zhangyingxbba@gmail.com
313a803ee823c95518610dc7129331ac6979b773
f200708b8e5a67074f6c805a736311e9b1637532
/django_base/mysite3/bookstore/urls.py
76d264928b1d3498fb92d6293e248ff485af607f
[]
no_license
vivid-ZLL/tedu
48b78951eae07f5f0433ba85f7cc4e07cd76011d
319daf56d88e92f69ee467e0ccf83c01367ed137
refs/heads/master
2021-04-23T22:40:11.391574
2020-01-25T11:26:56
2020-01-25T11:26:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
from django.conf.urls import url from . import views urlpatterns = [ url(r"^add_book", views.add_view), url(r"^add_auth",views.auth_view), ]
[ "283438692@qq.com" ]
283438692@qq.com
ee45c47184689072aa55d84bb11c3d5e6ca2b91b
40a1ca8ddbdcd96a58703913f98b29b435a42745
/antipodes average.py
99638ba6aad58bc25581fe72ccc0789c1d462ff9
[]
no_license
GaganDureja/Algorithm-practice
3eaca2cfc03fcee3671b87b5efda1f950fd36212
d40e08287754594d016801a093becc3f69f4bcc1
refs/heads/master
2023-05-06T11:58:35.471799
2021-06-01T03:49:58
2021-06-01T03:49:58
292,361,813
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
#Link: https://edabit.com/challenge/oF8T7Apf7jfagC4fD def antipodes_average(lst): l = len(lst)//2 left = lst[:l] right = lst[-l:][::-1] return [(a+b)/2 for a,b in zip(left,right)] print(antipodes_average([1, 2, 3, 4]))
[ "gagandureja675@gmail.com" ]
gagandureja675@gmail.com
4463a41f0e2d05814c9a3f223ac97c262569bd68
f8dd8d046100f1223713e047074f30c7ce5a59cd
/testing/epilogue/utils/cache_utils.py
144e4fb20c3dfeaab976cb3fcc6260d51ccc9cdd
[]
no_license
dotslash227/98fitcortex
57aed99270799eff68fdff62db0b8c1d9aabd4a2
bd4002151e5def00c3dea1f5a1abfb06ba3e809a
refs/heads/master
2022-12-17T00:51:20.302948
2019-02-27T13:54:22
2019-02-27T13:54:22
197,362,824
0
0
null
2022-12-08T00:02:42
2019-07-17T09:55:14
HTML
UTF-8
Python
false
false
3,107
py
import functools import datetime import types from django.utils import timezone from django.core.cache import cache KEY_TEMPLATE = "%d_%s" #Template for cache "userid_key" modules = types.SimpleNamespace() modules.SLEEP_LOGS = "sleep_logs" modules.SLEEP_AGGREGATE = "sleep_aggregate" modules.SLEEP = "sleep" modules....
[ "shikhar.chauhan@live.com" ]
shikhar.chauhan@live.com
25c41d6ca45c55f09b718638c22bb3d7861e20cd
66a530b297725b1a2d1c95f95883145c04614ae1
/0x08-python-more_classes/6-rectangle.py
fa82234524d1f9de24bfbba4566ad040c31042c0
[]
no_license
Yagomfh/holbertonschool-higher_level_programming
4e6f28186eae18eaba60017fe49ac446a02cbdc5
1d15597a6040a8ee15b08447c478d0a2e79b5854
refs/heads/main
2023-04-23T18:23:28.096644
2021-05-18T08:12:27
2021-05-18T08:12:27
319,253,389
0
0
null
null
null
null
UTF-8
Python
false
false
2,178
py
#!/usr/bin/python3 """This module defines a rectangle""" class Rectangle(): """This class defines a empty rectangle """ number_of_instances = 0 def __init__(self, width=0, height=0): """Initialise a rectangle Args: width (int): width of the rectangle height (i...
[ "yagomfh@gmail.com" ]
yagomfh@gmail.com
e26cb78ff75c0518fef95e5020ff201bdd5bfd96
afd7207ec79198ed8b515c66a4ff951692fc5756
/Backend/users/views.py
005de0eee1fc2083a3fa4f7aa1f26b3fb1605619
[]
no_license
mdarifulislamroni21/Backend-project
469e58ee1c8395a56f45434efc238eccd2adea77
4a999c7cb520c811fb0a051015822944f5d8479d
refs/heads/master
2023-06-24T19:55:57.562157
2021-07-23T08:39:37
2021-07-23T08:39:37
388,731,430
0
0
null
null
null
null
UTF-8
Python
false
false
1,763
py
from django.shortcuts import render from form.models import main_user,buyproduct from form.form import main_users,buyproducts # Create your views here. def s_user(request): load_main_user=main_user.objects.order_by('user_name') diction={'main_user_data':load_main_user} return render(request,'pages/main_pag...
[ "mdarifulislamroni21@gmail.com" ]
mdarifulislamroni21@gmail.com
e8dd6d093db04e14c283f3fd1568fca70c9c39bb
b8b26feac86b66b0b534996cf9c3fbf7ec660240
/codejam/18/0q/b-trouble-sort.py
1eb82f601040fa07b503be04eeaee11988becb31
[ "MIT" ]
permissive
neizod/problems
775fffe32166c5b124d0e4c973b8d0aba7f3900b
180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a
refs/heads/master
2021-07-08T12:30:31.100320
2021-05-26T09:34:19
2021-05-26T09:34:19
6,245,523
1
0
null
null
null
null
UTF-8
Python
false
false
638
py
#!/usr/bin/env python3 from itertools import count def trouble_sort(ls): ls[0::2] = sorted(ls[0::2]) ls[1::2] = sorted(ls[1::2]) return ls def check_trouble_sort(ls): ls = trouble_sort(ls) it = iter(ls); next(it) for index, a, b in zip(count(), ls, it): if a > b: return ...
[ "neizod@gmail.com" ]
neizod@gmail.com
ba38f0f9fe91ce95584b1cdebbee4b4300ddff82
31c75012d7b1e86bc12c0b3bcc811e6b6acb5e6f
/tests/test_utils_pcap_utils.py
e1c9248d6c474a433d0df011161937ba1ffd3d10
[ "Apache-2.0" ]
permissive
lostminty/NetML-arff
46b3228ef233e00141894f34245acbb896a4f9fa
11e933f8772f8502f5b45acf226eaab08abfb090
refs/heads/master
2023-04-07T10:42:49.202946
2020-01-06T21:42:49
2020-01-06T21:42:49
228,263,765
0
0
Apache-2.0
2023-03-31T14:49:53
2019-12-15T22:45:41
Python
UTF-8
Python
false
false
2,268
py
from networkml.parsers.pcap.pcap_utils import extract_macs from networkml.parsers.pcap.pcap_utils import extract_protocol from networkml.parsers.pcap.pcap_utils import extract_session_size from networkml.parsers.pcap.pcap_utils import is_external from networkml.parsers.pcap.pcap_utils import is_private from networkml.p...
[ "clewis@iqt.org" ]
clewis@iqt.org
23c31ae42243e1603913f6239aa8310c2ae362a8
8a25ada37271acd5ea96d4a4e4e57f81bec221ac
/home/pi/GrovePi/Software/Python/others/temboo/Library/Twitter/Tweets/StatusesDestroy.py
07e9c00de2b583db36cbd869f08bd139b4004dfe
[ "MIT", "Apache-2.0" ]
permissive
lupyuen/RaspberryPiImage
65cebead6a480c772ed7f0c4d0d4e08572860f08
664e8a74b4628d710feab5582ef59b344b9ffddd
refs/heads/master
2021-01-20T02:12:27.897902
2016-11-17T17:32:30
2016-11-17T17:32:30
42,438,362
7
8
null
null
null
null
UTF-8
Python
false
false
4,450
py
# -*- coding: utf-8 -*- ############################################################################### # # StatusesDestroy # Deletes a specified status. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file exc...
[ "lupyuen@gmail.com" ]
lupyuen@gmail.com
d3fe008be694769fe5816841e56399d04c7fc6fe
8f70ad12af7eba07efa52eb29b8f99ed3900dbb9
/AGTGA data/AGTGA/LifeHack/LifeHack 2/TestSuite/TestSuite/TestCase06.py
19733c6a1b7ac5041c28934fdfc987459aa9461d
[]
no_license
Georgesarkis/AGTGARowData
768952dc03dc342bcbe0902bf2fb1720853d0e14
e1faa7dc820b051a73b0844eac545e597a97da16
refs/heads/master
2022-10-01T17:06:04.758751
2020-06-05T07:25:41
2020-06-05T07:25:41
267,772,437
0
1
null
null
null
null
UTF-8
Python
false
false
829
py
import time from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from TestSuite.TestSuiteHelper import ElementFinder port = 'http://localhost:4723/wd/hub' driver = webdriver.Remote(command_executor=port, desired_capabilities={'automationName' : 'UiAutomator2','deviceName':...
[ "32592901+Georgesarkis@users.noreply.github.com" ]
32592901+Georgesarkis@users.noreply.github.com
28c55f04edb78696643ed582fe5f5af8380b09c7
c68b99bf1671d1fb5a1a5a0d6df7bb164dd1d20d
/Medium/394-DecodeString.py
4af7e17cc5a884ed7770314baf35d36aaface6e3
[]
no_license
r50206v/Leetcode-Practice
8db9333e2e3d2a335f439d7e9e57e8c36b69ae6d
f9302e93c441f06cc14949605da20978c4289202
refs/heads/master
2022-05-17T18:09:48.857263
2022-04-27T01:02:12
2022-04-27T01:02:12
192,258,017
0
1
null
null
null
null
UTF-8
Python
false
false
917
py
''' Iteration + 2 Stack Time: O(N) Space: O(m + n) m: the number of letters in s n: the number of numbers in s ''' class Solution: def decodeString(self, s: str) -> str: result = "" strStack = [] countStack = [] base = "" for index in range(len(s)): ...
[ "r50206v@gmail.com" ]
r50206v@gmail.com
863f4da890f4e1a30367db93383f73c09e951f1c
9ac99a99dc8f79f52fbbe3e8a5b311b518fe45d9
/apps/lms/api/services/LMS_SurveyTemplateService.py
6c4bd27a38f6d95a6418cab80b7915b8834b249a
[]
no_license
nttlong/quicky-01
eb61620e01f04909d564244c46a03ca2b69dfecc
0f5610aa7027429bdd9ca9b45899a472c372c6cc
refs/heads/master
2020-03-25T17:45:31.633347
2018-11-27T15:02:30
2018-11-27T15:02:30
143,994,145
0
0
null
null
null
null
UTF-8
Python
false
false
2,316
py
from bson import ObjectId from .. import models import logging import threading from .. import common from ..views.views import SYS_VW_ValueList import qmongo def get_list(args): searchText = args['data'].get('search', '') pageSize = args['data'].get('pageSize', 0) pageIndex = args['data'].get('pageIndex', ...
[ "zugeliang2000@gmail.com" ]
zugeliang2000@gmail.com
63aa115716ff7fe5f2eaf64fe7b6afc4667e0365
d4280eca1a9badb0a4ad2aa22598616eedece373
/Tools/repleace.py
04ff63a750e4afd2bcff0e396159483b20cd2d02
[]
no_license
Little-Captain/py
77ec12bb2aaafe9f709a70831266335b03f63663
74ba3c3449e7b234a77500a17433e141e68169f7
refs/heads/master
2021-06-09T11:33:23.205388
2019-11-22T01:17:44
2019-11-22T01:17:44
131,844,918
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
#!/usr/bin/env python import os folders = filter(os.path.isdir, os.listdir()) for folder in folders: os.chdir(folder) try: process = os.popen('git remote -v') output = process.read() output = output.split() output = output[1] output = output.replace('172.31.103.221', 'ww...
[ "littlecaptain@foxmail.com" ]
littlecaptain@foxmail.com
34720c2c7fb2d14e18209377a6429e1ffb825f7b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_getting.py
12500bcd909462b932ec388267fef20736df99a6
[ "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
223
py
from xai.brain.wordbase.verbs._get import _GET #calss header class _GETTING(_GET, ): def __init__(self,): _GET.__init__(self) self.name = "GETTING" self.specie = 'verbs' self.basic = "get" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
0d5933e334cdf1f8a9aa2c79d39b3949cd95af95
db303c68682dfd18965a04026ff14e15c1ba6120
/ch09/ans89.py
48bb019536f5610904e0a23682919dd0e224fdf9
[]
no_license
Toshiyana/nlp100v2020
1a89f164de0c720da6d42c19b3fa60f8013d662c
37d4d208d5d527d163356793b630f36eb7595779
refs/heads/master
2023-07-15T15:01:28.454515
2021-08-21T13:20:03
2021-08-21T13:20:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,748
py
from tqdm import tqdm import torch from torch import optim from torchtext import data from transformers import BertForSequenceClassification def eval_net(model, data_loader, device='cpu'): model.eval() ys = [] ypreds = [] for x, y, _ in data_loader: with torch.no_grad(): loss, logi...
[ "upura0@gmail.com" ]
upura0@gmail.com
ef72c65accec37d5eb0fb33a531bfa3395a4a130
74e8b6ad9fa20b6caa61f7ced4825442f671f506
/curator/__init__.py
a9b39d35f54f3dab18f6bc3ed85d95b68be2e251
[ "Apache-2.0" ]
permissive
agent001/curator
2297191ea05903cdca5f2510b6423cf333961ef5
86fd4af224bbb1eb7993b754e47cd67e32f10d7a
refs/heads/master
2021-01-18T23:06:19.334462
2016-07-14T16:23:34
2016-07-14T16:23:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
from .exceptions import * from .settings import * from .logtools import * from .utils import * from .indexlist import IndexList from .snapshotlist import SnapshotList from .actions import * from .cli import * from .repomgrcli import *
[ "aaron@mildensteins.com" ]
aaron@mildensteins.com
12e4bdeb469eebeac17b5a318bd159f07f6041d2
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_6404600001200128_1/Python/DaniTunes/p1.py
cffa3f03a45fe53db87b1c794440401ea7e6dd94
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
477
py
#!/bin/env python # google code jam 2015 problem 1 def solve(ms): a = 0 n = len(ms) md = 0 for i in range(1, n): d = ms[i-1] - ms[i] md = max(d, md) if d > 0: a += d b = 0 for i in range(0, n-1): b += min(ms[i], md) return a, b tests = int(raw_input()) for k in range(tests): ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
315294feedef65535c8cb675b0557e0718d5e388
1eee2c9c105148904d0fb47cee227cfd20241b76
/cutils/setup.py
4b8f01285208f2e111388993010a95b9ade689a3
[]
no_license
fred-hz/zeta
be9f6f466b75767cc1a45a4004d1c84e5d559b6b
e7b631447fff6e58928d6ac15702338b7cc8e3e7
refs/heads/master
2021-09-05T01:03:31.387379
2018-01-23T04:15:58
2018-01-23T04:15:58
118,187,345
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
from distutils.core import setup, Extension import numpy from Cython.Distutils import build_ext setup( cmdclass={'build_ext': build_ext}, ext_modules=[Extension("rank", sources=["_rank.pyx", "rank.cpp"], language="c++", include_dirs=[numpy.get_include()])], )
[ "zibo_zhao@berkeley.edu" ]
zibo_zhao@berkeley.edu
4f810e9abaca21391af002ed8d1c9698941921e4
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_243/ch116_2020_03_31_22_45_24_453815.py
400553a42665308fa6ffd15da0619b304d274ada
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
def raiz_quadrada(x): i=1 num=0 while x>=0: num==x-i i+=2 if num==0: raiz=num/i print (raiz)
[ "you@example.com" ]
you@example.com
c07b661a1ea80740df76e137477763e6ae83bce8
27c12a37b58548c1b3ace6184d452cdcf4128168
/src/neurounits/visitors/__init__.py
7af18da334fdbb01db0248858e6ceb7c81b0cbb6
[]
no_license
stevemarsh/NeuroUnits
48ca63b42ee74bf3a3d3107aa86e50d1c9aa4bc2
350663588f7d6f4cf85c1472debc1d2312b877e8
refs/heads/master
2020-12-25T16:13:56.983904
2013-03-29T12:19:32
2013-03-29T12:20:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,710
py
#!/usr/bin/python # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions...
[ "mikehulluk@googlemail.com" ]
mikehulluk@googlemail.com
a43b24f70964cf35080f97edde3f21e4610f166d
21a341a52b0305c70def05a141243cc46160cd0d
/esp/main.py
7bd5f8cf81395f548c29257f1a9a6c5b5ce8ff85
[ "MIT" ]
permissive
BPI-STEAM/mpy-flasher
980c9084fec9108a316f70a965c7c8ee032da385
03a1be35ae2e0aaafb71ea6fb7adcfce823e7717
refs/heads/master
2020-05-25T03:38:08.464466
2019-05-28T05:14:02
2019-05-28T05:14:02
187,608,277
5
4
MIT
2019-11-02T21:20:18
2019-05-20T09:19:44
Python
UTF-8
Python
false
false
4,127
py
#!/usr/bin/env python # coding: utf-8 ''' @File :erase.py @Author :youxinweizhi @Date :2019/3/28 @Github :https://github.com/youxinweizhi ''' import esp.control import sys import time from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox from esp.mainWindow import Ui_Form from PyQt5.QtCore import QTime...
[ "junhuanchen@qq.com" ]
junhuanchen@qq.com
9777359834936fdc8271ec94988ad65e6584a4ce
031dbb2a3ea47a0483db310db9f98796cc83c500
/658_Find K Closest Elements.py
f6a1201e4d36fb08d5c4bbdcd397c0ad6874f1d6
[]
no_license
Shwan-Yu/Data_Structures_and_Algorithms
429fb127983e32931f2168f44ef1484c1cc4c87f
9126c2089e41d4d7fd3a204115eba2b5074076ad
refs/heads/master
2020-03-27T11:46:59.947303
2019-08-23T15:15:21
2019-08-23T15:15:21
146,507,496
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
class Solution(object): def findClosestElements(self, arr, k, x): """ :type arr: List[int] :type k: int :type x: int :rtype: List[int] """ # O(lg(n-k)) keep track of the interval l, r = 0, len(arr)-k while l < r: mid = (l+r)//2 ...
[ "noreply@github.com" ]
Shwan-Yu.noreply@github.com
a0cb2913c3bfaa4b5be6c7b4e94e17a951198076
9ef548f1e5457a18fe56f5c38d84cb835f98c7c3
/main/seq2seq.py
073d6fac5e16077011a0df330a49fa70b2ae6a9c
[]
no_license
sarikayamehmet/txt-summarization
00c799535a5e1513fa35ac476eb094e8fbb16042
132340e2ba75497793686841b819abb35c47d76d
refs/heads/master
2020-11-25T09:17:41.299564
2019-05-27T20:53:16
2019-05-27T20:53:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,767
py
import torch.nn as nn import torch.nn.functional as f from main.encoder import Encoder from main.reduce_encoder import ReduceEncoder from main.decoder import Decoder from main.encoder_attention import * from main.decoder_attention import DecoderAttention from main.common.vocab import * from main.common.common import *...
[ "leangsotheara@gmail.com" ]
leangsotheara@gmail.com
a7c89e3ba731b9cccd6ce9f60d3b144001fa296b
bc02e2c69f425e03b609f466b0a2d52a455765dc
/1212/1239. Maximum Length of a Concatenated String with Unique Characters.py
662a56e27f9c558011a42f71d223602f521d25f4
[]
no_license
gaberani/AlgorithmStudy
d795f449fe185c3993df90173f27b7eb74e02366
6d9d20ac29446d22f2e0ef7037f131c4a2f48762
refs/heads/master
2023-02-03T03:24:45.039238
2020-12-22T12:53:52
2020-12-22T12:53:52
287,101,596
0
0
null
null
null
null
UTF-8
Python
false
false
1,381
py
# Given an array of strings arr. # String s is a concatenation of a sub-sequence of arr which have unique characters. # Return the maximum possible length of s. # 1 <= arr.length <= 16 # 1 <= arr[i].length <= 26 # arr[i] contains only lower case English letters. class Solution(object): def maxLength2(self, arr): ...
[ "khs0783@naver.com" ]
khs0783@naver.com
bfe2190a8c6124aa6bad4f012e9a3873003340da
83e21dcd88961e01d7b6d76c1e7d3e0c405bb7a2
/tests/components/climate/common.py
4ac6f553091470acdb1d8908a859bc38e18e9aee
[ "Apache-2.0" ]
permissive
skalavala/home-assistant
0a61886a8e399d6c46bf791927a69557edfdebb3
66d6db7934db1af0c560ccffd92cf4a114ef5841
refs/heads/dev
2020-04-04T11:35:24.377362
2018-11-02T17:40:05
2018-11-02T17:40:05
155,896,654
3
1
Apache-2.0
2018-11-02T17:00:10
2018-11-02T17:00:09
null
UTF-8
Python
false
false
3,373
py
"""Collection of helper methods. All containing methods are legacy helpers that should not be used by new components. Instead call the service directly. """ from homeassistant.components.climate import ( _LOGGER, ATTR_AUX_HEAT, ATTR_AWAY_MODE, ATTR_FAN_MODE, ATTR_HOLD_MODE, ATTR_HUMIDITY, ATTR_OPERATION_MODE, ...
[ "paulus@home-assistant.io" ]
paulus@home-assistant.io
91aecef65480009d7dbbe337141cf68bbe514f8a
6f56da8db171d4a6c006b5d944437bf061069faf
/XCat.v.0.0.1/source/healpy/query_disc_func.py
860b9d7fb4bfb7b36c397658f7cf006776b6d060
[]
no_license
afarahi/XCat
16819bef7087e994907c413dd6331cdebde72ffb
498602eb7f61696d169f071185115345c68bcf86
refs/heads/master
2021-01-21T01:59:36.907059
2013-05-03T05:12:07
2013-05-03T05:12:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,163
py
# # This file is part of Healpy. # # Healpy is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Healpy is distributed in the h...
[ "aryaf66@gmail.com" ]
aryaf66@gmail.com
b3c8d616e489ff6dc141e07a0074a2878e1459bc
48e9d0e84238daf0de290551e3588e9ff3f49549
/api/apiget.py
e4a87a5f3719acb9b9a59313730984215342957e
[]
no_license
celord/PythonGreencore
9606af569738703b66d80bce6e423c9a313fa539
259aadcc346203f8092f6c6d286e3fca2e9fc550
refs/heads/master
2020-05-30T23:18:15.542876
2019-06-19T14:39:59
2019-06-19T14:39:59
190,014,113
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
import requests import json token = "55d87efda345913f136102ce791c622ffe7341c74dcb4790c9d0e463edc831d1" headers = {"Authorization": token} r =requests.get('https://api.ciscopark.com/v1/people/me', headers = headers) r.status_code
[ "celord@gmail.com" ]
celord@gmail.com
1a8cd084b7d6fe1ca312a37929a9ebd93b0edb00
2337351b228818e41be3002bd38f68f77c2aa074
/services/datastream/models/prefix.py
0d10a5ac433def71fd723d7eb22131d738db29e8
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
1,077
py
# ---------------------------------------------------------------------- # prefix datastream model # ---------------------------------------------------------------------- # Copyright (C) 2007-2021 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Pyth...
[ "dvolodin7@gmail.com" ]
dvolodin7@gmail.com
6c7421dce123b13a65b46ab1af4a596e22aae589
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/travelport/models/required_field_1.py
277122f083ebb95072706186a5e5838369bac68f
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
650
py
from __future__ import annotations from dataclasses import dataclass, field from travelport.models.required_field_name_1 import RequiredFieldName1 __NAMESPACE__ = "http://www.travelport.com/schema/common_v52_0" @dataclass class RequiredField1: """ Parameters ---------- name The name of the re...
[ "chris@komposta.net" ]
chris@komposta.net
6f436c757d9095dc9ac7eb488a5fbd3eba77d8c0
990e7410c3debec7332ba09aa4c6504127ba2638
/examples/opengl/opengl_core.py
7dd09a10fd535cba1b54058f2e5fed71c6e3bdd8
[ "LicenseRef-scancode-free-unknown", "BSD-3-Clause" ]
permissive
nachogon1/pyglet
2b2699703b16118cb33dd009857e3cccccccf8ab
d6a85579f24a48e5f8e3e9f59f7bd9d5ebf2b049
refs/heads/master
2023-08-23T16:43:13.609153
2021-10-28T00:46:52
2021-10-28T00:46:52
422,730,754
0
0
BSD-3-Clause
2021-10-29T22:45:17
2021-10-29T22:45:17
null
UTF-8
Python
false
false
3,702
py
import pyglet from pyglet.gl import * # pyglet.options['debug_gl_shaders'] = True window = pyglet.window.Window(width=540, height=540, resizable=True) batch = pyglet.graphics.Batch() print("OpenGL Context: {}".format(window.context.get_info().version)) ########################################################## # ...
[ "benmoran@protonmail.com" ]
benmoran@protonmail.com
f3832061ad2374d819506a18348aa03d27a95d26
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_slipped.py
b9ab1c3a9d8d932d06c99f0ba3cd3a162dee6b49
[ "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
228
py
from xai.brain.wordbase.nouns._slip import _SLIP #calss header class _SLIPPED(_SLIP, ): def __init__(self,): _SLIP.__init__(self) self.name = "SLIPPED" self.specie = 'nouns' self.basic = "slip" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
d41b809d954f96b6e5eed80c4f4f724e850412aa
d7bc683cc14198ba4b1ae9193f7feaec1808e9f3
/python练习题/day01/Check variable type.py
2ad3cf67da0abeab24045e029c5e21b4fb137f79
[]
no_license
yuanshaohui/python-learn
8bd4e6a0a5cc0ed622e32bdf0c9e833460ee3b90
8c9c6ecccb4219e29fec7593e9bc4b45e218da3e
refs/heads/master
2021-03-14T09:44:50.142244
2020-03-21T13:48:18
2020-03-21T13:48:18
246,756,738
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
""" 检查变量类型 Author:袁亮亮 Date:2019-11-19 """ a = 100 b = 100.1 c = "字符串" d = 10 + 5j e = True print(type(a)) print(type(b)) print(type(c)) print(type(d)) print(type(e))
[ "123456@qq.com" ]
123456@qq.com
7f418b7bee3176104ad9a89194ca1f4a3fa27ee1
3a9b154aa9d5e379683476f80f30630bf44d2102
/Server_v1/api/urls.py
d9480d7b24288746c33ed7570e2a86d0a4d9360c
[]
no_license
KevinDon/py_amazon_analysis
81995e360d2b536e1df6e515aae9457054edae29
13b5fbb046ca6516ac3a47e8f7867baf358011f4
refs/heads/master
2022-12-13T00:27:27.511783
2019-08-14T11:45:53
2019-08-14T11:45:53
185,160,162
0
1
null
2022-12-10T05:38:15
2019-05-06T08:56:40
TSQL
UTF-8
Python
false
false
8,094
py
# coding:utf-8 from django.conf.urls import url from django.urls import include, path # from rest_framework import routers from rest_framework_swagger.views import get_swagger_view from api.views import * # router = routers.DefaultRouter() # 创建路由对象 # router.register(r'statvisitqrcodeskus', StatVisitQrcodeSkusSet, ...
[ "kevintang002@gmail.com" ]
kevintang002@gmail.com
8996a492d2fae89a7cdfe698186f932481087617
1ca466de0ffc59b48ab63afdda369ccc13fe4fd3
/python_import/test_audio_sum_use_01.py
9b81b7f39cbb116710eaff58efe5025bac9c108d
[]
no_license
forwiat/youngri
380df95b6eb5c6eaa070099530b5ff9ba39cc8d0
9ed93838db56f202153413095b661273c1e33ddb
refs/heads/main
2023-05-06T06:36:50.651872
2021-06-04T02:30:18
2021-06-04T02:30:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,612
py
# 국립 국어원 발화 말뭉치의 여성 화자를 화자별, 토픽9만 합쳐보자!! import librosa from pydub import AudioSegment import soundfile as sf import os from voice_handling import import_test, voice_sum import_test() # ==== it will be great ==== # --------------------------------------------------------------- # voice_sum: 오디오 한 wav 파일로 합쳐서 저장하기 # ...
[ "lemontleo0311@gmail.com" ]
lemontleo0311@gmail.com
5cbdb08ef6c1b94df2eec04e2133cd087b486f96
0d86bb399a13152cd05e3ba5684e4cb22daeb247
/python-exercise/6-regex/py151_match_address.py
8d42e31cc168df7f51b8b1e726739eb9d57c1862
[]
no_license
tazbingor/learning-python2.7
abf73f59165e09fb19b5dc270b77324ea00b047e
f08c3bce60799df4f573169fcdb1a908dcb8810f
refs/heads/master
2021-09-06T05:03:59.206563
2018-02-02T15:22:45
2018-02-02T15:22:45
108,609,480
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18/1/12 下午5:47 # @Author : Aries # @Site : # @File : py151_match_address.py # @Software: PyCharm ''' 15-5 匹配住址. 1180 Bordeaux Drive 3120 De la Cruz Boulevard ''' from re import match def match_address(address=''): try: return match...
[ "852353298@qq.com" ]
852353298@qq.com
41e85e05c129f9c11ad1d862da42bb45eac84f4b
9a2ea68439d24632cdf1321db0137f412ad2b1ed
/analyzePcapWithScapy.py
61ddb90dc464a22310a33722337e2244798418df
[]
no_license
parahaoer/AnalyzePcap
91ec1656fd65e0aa51ce1fbc14d2cb7aac18fd22
c67e6f0d72a9351c86c8ae05e55426e21ad2ec02
refs/heads/master
2022-12-13T05:19:19.832656
2020-08-28T07:28:16
2020-08-28T07:28:16
279,524,775
0
0
null
null
null
null
UTF-8
Python
false
false
4,500
py
from scapy.all import * import re def analyzePcap(filepath): s1 = PcapReader(filepath) ftxt = open('scapy_analyze_result/result_feature_great_than_30.txt','a', encoding="utf-8") write_line = [] vnc_feature_count = 0 global vnc_file_count No = 1 try: # data 是以太网 数据包 data =...
[ "884101054@qq.com" ]
884101054@qq.com
0890a6bf27d61c2f9589587a2bffc15d5faec9cc
06e10ace821eb75f88299b8721f7e42ad497ca4c
/libby/main.py
25cb7a143748aef15cab1aebc3c877138cff324b
[]
no_license
kwarwp/henrietta
a36f4e7fecf652e6fb00600aeed92fe18acc481b
76963014bb7d47c0713cc7b43d61fe1292794f72
refs/heads/master
2022-11-23T22:37:35.872643
2022-11-08T17:39:41
2022-11-08T17:39:41
128,998,573
0
0
null
null
null
null
UTF-8
Python
false
false
1,251
py
# henrietta.libby.main.py class Templo: def __init__(self): self._esta_no_templo = False def entra(self): self._esta_no_templo = True def sai(self): self._esta_no_templo = False def entrou(self): return self._esta_no_templo class EntradaDoTemplo...
[ "38007182+kwarwp@users.noreply.github.com" ]
38007182+kwarwp@users.noreply.github.com
d01ab306dfeee67e9bda6895a5e86a518044d490
d14032ed6f3ec3b4f149a02df9e5bf6fbd8fda44
/app/modules/auth/active.py
d58070692fb442d44cd4994d430d41a8cfbe55ad
[]
no_license
tomszhou/pony
6bae77c6188c710eaf82898b6e792234ec773161
1fa6ab22a04f3cd2c1a130803833c5c22460a382
refs/heads/master
2021-05-17T23:21:42.023804
2018-07-09T05:54:45
2018-07-09T05:54:45
250,999,515
1
0
null
2020-03-29T09:50:46
2020-03-29T09:50:45
null
UTF-8
Python
false
false
1,375
py
from django.shortcuts import redirect from app.models.account.account import UserAccount from app.models.account.token import AccessToken from app.models.account.info import UserInfo from app.modules.common.util_struct import * from app.modules.common.secret import verify_password from app.modules.common.easemob impor...
[ "wudong@eastwu.cn" ]
wudong@eastwu.cn
8965f08a72396840cde95e71a464254a0bf45145
3bb57eb1f7c1c0aced487e7ce88f3cb84d979054
/paetzold_nns/scripts/rankers/Run_Glavas.py
081d7414d035f7ae7b6995b54c84c075c76a41a6
[]
no_license
ghpaetzold/phd-backup
e100cd0bbef82644dacc73a8d1c6b757b2203f71
6f5eee43e34baa796efb16db0bc8562243a049b6
refs/heads/master
2020-12-24T16:41:21.490426
2016-04-23T14:50:07
2016-04-23T14:50:07
37,981,094
0
1
null
null
null
null
UTF-8
Python
false
false
2,319
py
from lexenstein.rankers import * from lexenstein.features import * import sys victor_corpus = sys.argv[1] test_victor_corpus = sys.argv[2].strip() output_path = sys.argv[3].strip() model = '/export/data/ghpaetzold/benchmarking/lexmturk/scripts/evaluators/stanford-postagger-full-2015-04-20/models/english-bidirectional...
[ "ghpaetzold@outlook.com" ]
ghpaetzold@outlook.com
790f2c451355c35536dceb9e440223556ded9d71
1bad7fc3fdd9e38b7ff50a7825565b7b190fa5b7
/qrback/migrations/0026_company_slogan.py
c8bcd1c71abe99686a4ad68070fc1d0f902b136d
[]
no_license
furkankykc/QRforAll
d4be43e403d75c86436ed9d9e2b222619ecf92b1
6cc0555fdc27797586628f2012523dce5212b321
refs/heads/master
2023-07-10T13:02:27.618792
2021-08-05T07:22:29
2021-08-05T07:22:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
# Generated by Django 3.0.8 on 2020-08-22 09:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('qrback', '0025_company_counter'), ] operations = [ migrations.AddField( model_name='company', name='slogan', ...
[ "furkanfbr@gmail.com" ]
furkanfbr@gmail.com
63389afedfb107a2984a334fcbf2d0ddd4c0af9e
d1d9b21a81a354baf1c5bc1b3db4ee38825f794b
/_eh.py
52189ad74a92a321aac330cbb9af43576d83b004
[]
no_license
pytsite/plugin-seo
5c235630490fea8d0067d8c03c76a9b1678d6c51
486d4a8e8ab42938ca73b7bd757b7f8bee51ed78
refs/heads/master
2021-01-11T18:49:19.960731
2018-08-02T11:13:42
2018-08-02T11:13:42
79,632,947
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
"""PytSite SEO Plugin Event Handlers. """ __author__ = 'Alexander Shepetko' __email__ = 'a@shepetko.com' __license__ = 'MIT' from pytsite import metatag as _metatag, reg as _reg def router_dispatch(): for tag in _reg.get('seo.global_metatags', []): _metatag.t_set(tag['name'], tag['content'])
[ "a@shepetko.com" ]
a@shepetko.com
9a8df1df3b7aaeea7f01727f104107208d1bf7fd
02b1eccce01f515089ecb40862fc01c8b214fc50
/auth.py
cb6da04d15be14443a0013fbfededf9ac506b531
[ "MIT" ]
permissive
Nekmo/nekutils
1f8a1f4e309733d31d16ca34c266367369f2cb45
1de28bb810625db1d4c575f61426ab67e7d1f1e0
refs/heads/master
2016-08-12T16:10:13.838188
2016-04-01T14:45:20
2016-04-01T14:45:20
43,179,008
0
0
null
null
null
null
UTF-8
Python
false
false
1,888
py
class AuthAddress(object): def __init__(self, address): self._user = None self._host = None self._port = None self._endpoint = None self.address = address @property def user(self): if self._user is None: user_endpoint = self.address.split('@') ...
[ "contacto@nekmo.com" ]
contacto@nekmo.com
0db417c20a5d963481fb0f4b056258b3c8389ac1
7d5e694aba546c166004cab8e592a000fb7283ef
/PyQt5_Udemy/01_Basic_Widgets/07_comboBox_2.py
72affbce9bf5aa4a6a113f381cf8eab7b81f8c4c
[]
no_license
OnurKaraguler/PyQt5
45ffe320911f25f2ad0e318de2c7e3851db7be0c
909546b53c0f80c1eae27c660f47cd5ded3ff1a6
refs/heads/master
2022-12-21T09:06:24.063816
2020-09-24T14:54:11
2020-09-24T14:54:11
298,299,258
1
0
null
null
null
null
UTF-8
Python
false
false
1,525
py
import sys, os from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import Qt class Main(QWidget): def __init__(self): super().__init__() self.setWindowTitle('combo box demo') self.setGeometry(500,150,300,300) self.setFixedSize(self.size()) #Ekran ölçü...
[ "onurkaraguler@hotmail.com" ]
onurkaraguler@hotmail.com
c3765a33bb6228a494b01e9c2042906c4ff81caf
8412b576f09202e8b07a241749d31fd6ef5380c3
/rpc_interface.py
fe2bc978670679ced000f0f3ccc914e095611aff
[ "MIT" ]
permissive
meeh420/ngcccbase
2d7f64e16972904a4c4a97d300f3e301632b98d0
1c15e9f813076151b9c758e2b8c7de086fccedc0
refs/heads/master
2020-12-31T01:11:23.659834
2013-11-18T01:10:09
2013-11-18T01:10:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,652
py
""" rpc_interface.py This file connects ngccc-server.py to wallet_controller.py The main functions that this file has are to take the JSON-RPC commands from the server and pass them through to the wallet controller. Note console_interface.py does a similar thing for ngccc.py to wallet_controller.py """ from wallet_co...
[ "jaejoon@gmail.com" ]
jaejoon@gmail.com
052d73f6b96d29283777078b074e925cc5d8b8f4
ac1fdf53359b53e183fb9b2602328595b07cf427
/ParlAI/parlai/scripts/convert_data_to_fasttext_format.py
70ebc7703659461c6ac56e9bc58a7c97fc00ca52
[]
no_license
Ufukdogann/MasterThesis
780410c5df85b789136b525bce86ba0831409233
b09ede1e3c88c4ac3047800f5187c671eeda18be
refs/heads/main
2023-01-24T18:09:52.285718
2020-11-27T16:14:29
2020-11-27T16:14:29
312,416,173
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:efecd6dfb74a652f16bcda15d3f0cf10eb85b19973aaaee4dabc722b6798caf9 size 3094
[ "134679852Ufuk*" ]
134679852Ufuk*
95a028c6657a6a3a6252707015f2e449e578cd0c
c1bd12405d244c5924a4b069286cd9baf2c63895
/azure-mgmt-servermanager/azure/mgmt/servermanager/models/__init__.py
e6e542614005fecb3af1a7d6d4f16fb74b7017be
[ "MIT" ]
permissive
lmazuel/azure-sdk-for-python
972708ad5902778004680b142874582a284a8a7c
b40e0e36cc00a82b7f8ca2fa599b1928240c98b5
refs/heads/master
2022-08-16T02:32:14.070707
2018-03-29T17:16:15
2018-03-29T17:16:15
21,287,134
1
3
MIT
2019-10-25T15:56:00
2014-06-27T19:40:56
Python
UTF-8
Python
false
false
2,795
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
f39c368702daa9eef179818bc2e09dc0458cd47a
863b664aa0849c9c90124e0c644490feae42b9e9
/python3-demo/app/log.py
70e7f2a8c22ad938b31a26f384a052bea88aa920
[]
no_license
mingz2013/study.python
75d856a77c752a6b6c58b8fcdbd4c2c2bb9189fe
d65017912aa8f8b2ec932518a95990d1ff0c8c6e
refs/heads/master
2021-12-28T04:57:11.266866
2021-08-03T02:59:10
2021-08-03T02:59:10
78,043,106
1
0
null
null
null
null
UTF-8
Python
false
false
3,227
py
# -*- coding: utf-8 -*- """ @FileName: log @Time: 2020/5/19 15:41 @Author: zhaojm Module Description """ from datetime import datetime # from app.config import config def register_logging(): import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message...
[ "305603665@qq.com" ]
305603665@qq.com
2d401730bc0c78d7c4c300b3aec2845406bb0f39
b885eaf4df374d41c5a790e7635726a4a45413ca
/LeetCode/Session3/MinimumDepth.py
f6f31c751b0207b9ab055f367ff94a5a73cd8970
[ "MIT" ]
permissive
shobhitmishra/CodingProblems
2a5de0850478c3c2889ddac40c4ed73e652cf65f
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
refs/heads/master
2021-01-17T23:22:42.442018
2020-04-17T18:25:24
2020-04-17T18:25:24
84,218,320
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def minDepth(self, root: TreeNode) -> int: if not root: return 0 return self.minDepthHelper(root) def minDepthHelper(self, root: TreeNode) -> int: ...
[ "shmishra@microsoft.com" ]
shmishra@microsoft.com
b0697372f6464df3cdb5fcb923c349a26573ab08
02e2e17aeebe1e9e69a955f88686edab7efbe5a8
/kiyoshi_ni_shokuhatsu/update_objects.py
7f636d04e83eeebce0822a2e9369f71f0f8acdc7
[ "MIT" ]
permissive
grokit/grokit.github.io
948d893010ed3203f43a54af2d75259b69e2a895
4150b013eacb9bbdbc1a5046bbc8355d8306a9bc
refs/heads/master
2021-07-17T21:06:08.951517
2020-04-26T18:58:22
2020-04-26T18:58:22
136,870,651
10
3
null
null
null
null
UTF-8
Python
false
false
1,403
py
#!/usr/bin/python3 import dcore.env_setup as env_setup import glob import os def gen_generic_objects(): files = list(glob.iglob('.' + '/**/*.**', recursive=True)) exts = ['.js'] files = [os.path.splitext(os.path.split(f)[1])[0] for f in files if os.path.splitext(f)[1] in exts and os.path.split(f)[1][0:2]...
[ "you@example.com" ]
you@example.com
7dfa6fce30442805c5ee7317697fc349a849a656
5094868ffc84f6591ee4ec6feb25b10b549aef2b
/inwin/fund/orderform.py
2435061a767cd8d8161548e88387a2065c4af9ab
[]
no_license
137996047/finance_trading
c8d9606cfb67525d79a9e60d5cb36b1c293fcc3c
d97edfbfbafc9eea7c47f30064b7aeb3f6e4bf55
refs/heads/master
2020-12-10T08:49:02.272634
2013-11-19T08:12:11
2013-11-19T08:13:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,953
py
''' Created on 2013/2/13 @author: yhuang ''' from django import forms from django.utils.translation import ugettext as _ from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Fieldset, ButtonHolder, Submit, MultiField, Div, Field,Button from crispy_forms.bootstrap import AppendedText,For...
[ "yingchauhuang@gmail.com" ]
yingchauhuang@gmail.com
41fd56496294aa28b4df70baf4467a20cfc53bc6
ea5b4fdf353e76c44a8de71fa16aa8bae88c726a
/heap/613.highFive.py
9f8641a749e1afe5a6f792b433db444a691bcab7
[]
no_license
umnstao/lintcode-practice
dd61c66950ae89abec000063fe0d1a33f13ce6ec
e73b495e23c4dcb0421ab09133e573aaba23c431
refs/heads/master
2021-01-23T02:48:26.294160
2018-03-27T21:54:26
2018-03-27T21:54:26
86,024,853
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
''' Definition for a Record class Record: def __init__(self, id, score): self.id = id self.score = score ''' class Solution: # @param {Record[]} results a list of <student_id, score> # @return {dict(id, average)} find the average of 5 highest scores for each person # <key, value> (studen...
[ "umnstao@gmail.com" ]
umnstao@gmail.com
1ef60f5fc25c6b4427ff0a3202d65fbdb4d2172c
f039b3665b5ca29a5e197ed05a9860f9180a16aa
/maxProfit.py
946506e98ea2316952ca5664c4aa99c22eb4f464
[]
no_license
NeilWangziyu/HighPerformancwAlgorithm
895a0e9d78aee9a0eacc6f81352f8fde10b9310b
7e3fba6879bbe25b738989ef550fd71c7a49dab0
refs/heads/master
2020-04-17T04:36:35.178522
2019-08-09T16:11:34
2019-08-09T16:11:34
166,237,126
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
class Solution: def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ if not prices: return 0 profit = 0 for i in range(1, len(prices)): if prices[i] - prices[i - 1] > 0: profit += prices[i] - prices[i...
[ "noreply@github.com" ]
NeilWangziyu.noreply@github.com
45978b08a29506f6bd384b7c4cc8c361fc40d77b
62442c2547b22aae27f3bb3a0d3f84a9e8e535a0
/python/djangopro/mysite/polls/admin.py
55708fd52ed1fb701b7c1cd1b86a4096caca8aef
[]
no_license
jsdelivrbot/demos
935729fe9afde33709c4e4e74863b64c16c33b33
01a97eda371c2d832c9f2c907a945310662e0710
refs/heads/master
2020-04-10T10:35:44.039560
2018-12-08T10:53:29
2018-12-08T10:53:29
160,970,588
0
0
null
2018-12-08T19:13:00
2018-12-08T19:13:00
null
UTF-8
Python
false
false
872
py
from mysite.polls.models import Poll from mysite.polls.models import Choice from django.contrib import admin #class ChoiceInline(admin.StackedInline): class ChoiceInline(admin.TabularInline): model = Choice extra = 3 class PollAdmin(admin.ModelAdmin): # Show the fields in the following order #fields = ['pub_date...
[ "amjedonline@gmail.com" ]
amjedonline@gmail.com
2374b67ce1f63682539314996c2c82b71ee4b6df
cc8f8030d143f21e885995f97fd146d3dcc5fa40
/sbb/tools/instances.py
b6775a7f93f1bdd48286bca7253a32349a5af83c
[ "MIT" ]
permissive
DanielLSM/train-sbb-challenge
6719cb197df4eb16ef56e0ee3dbe267400cc5fcf
9779b178c1e31f445d136d567e9f62390b0d2c5e
refs/heads/master
2020-03-28T20:54:50.023088
2018-10-17T16:25:46
2018-10-17T16:25:46
149,113,258
1
0
null
null
null
null
UTF-8
Python
false
false
7,913
py
import logging import sbb.tools.logger import pprint import networkx from collections import defaultdict from itertools import chain, product, starmap from functools import partial from sbb.tools.parsers import parse_input_paths, parse_json_file from sbb.tools import input_dir, input_samples from sbb.tools.route_grap...
[ "daniellsmarta@gmail.com" ]
daniellsmarta@gmail.com
c8fad1f100e4968fe5c63524938cdcb4c7395128
9b422078f4ae22fe16610f2ebc54b8c7d905ccad
/xlsxwriter/test/comparison/test_chart_pattern05.py
4ffee075709f4ba1541f72c152fcaf13ae9b4934
[ "BSD-2-Clause-Views" ]
permissive
projectsmahendra/XlsxWriter
73d8c73ea648a911deea63cb46b9069fb4116b60
9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45
refs/heads/master
2023-07-21T19:40:41.103336
2023-07-08T16:54:37
2023-07-08T16:54:37
353,636,960
0
0
NOASSERTION
2021-04-01T08:57:21
2021-04-01T08:57:20
null
UTF-8
Python
false
false
3,121
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
b75df8010682fe9df788a973a54b7c29ad65d8bb
11aac96a622eadf3992d12659eaf0a450b9398bf
/Assignment/settings.py
95126fea50afc7271ec767a5834dbca2a8746130
[]
no_license
naveenkumar2505/Assignment
36604d0545c10a4bcce5606ea26dbbf1c7596159
635c64c8116ad17a2893aa86f498cf8ecdc1f944
refs/heads/master
2020-06-01T03:54:23.802759
2019-06-07T05:57:41
2019-06-07T05:57:41
190,622,923
0
0
null
null
null
null
UTF-8
Python
false
false
3,655
py
""" Django settings for Assignment project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os ...
[ "naveentechhie@gmail.com" ]
naveentechhie@gmail.com
dbd7245e581ae91c182ba9ce192bb227f29d3af5
e4266d7995c6952a374037e6809678a28e2972f4
/abs/abs_project_task_template/models/task_template.py
5fc1f01895efab778ea89c021e1665e3f7aa96f9
[]
no_license
h3llopy/addons_12
cdd3957faa46be9beb20239b713bcde7d3fb24bf
7440086ae976754b0d268986519705cbc9ea0a8a
refs/heads/master
2023-08-31T12:33:54.645648
2021-11-01T02:21:06
2021-11-01T02:21:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,772
py
# -*- coding: utf-8 -*- ################################################################################# # # Odoo, Open Source Management Solution # Copyright (C) 2018-Today Ascetic Business Solution <www.asceticbs.com> # # This program is free software: you can redistribute it and/or modify # it under the...
[ "diegobgajardo@gmail.com" ]
diegobgajardo@gmail.com
66b94cd88087c441f60c732183e04658634fc47f
3dff4bef08954fadb7cc83c4f212fffa81b7d27e
/pub_site/src/pub_site/transfer/forms.py
e39f18c35f5843e52340d97b53ee14bb5ffa4b0e
[]
no_license
webee/pay
3ec91cb415d9e3addabe961448533d861c0bd67a
b48c6892686bf3f9014bb67ed119506e41050d45
refs/heads/master
2020-04-29T14:31:09.643993
2016-02-02T07:14:14
2016-02-02T07:14:14
176,198,802
1
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from decimal import Decimal from flask.ext.wtf import Form from pub_site.commons import amount_less_than_balance, MyRegexp from wtforms import StringField, SubmitField, ValidationError, DecimalField from wtforms.validators import DataRequired, NumberRang...
[ "yiwang@lvye.com" ]
yiwang@lvye.com
19ef3e931eaaa31f4ee7726864baf8d4c408bd89
a5d22c99e781270317078f8980c934bcc71e6e8b
/samples/misc/opencv_samples/mqtt_cam/config.py
c1ba8083f6f40c04138fb58ff10003c9d0deedcf
[ "Apache-2.0" ]
permissive
aivclab/vision
dda3b30648b01c2639d64a016b8dbcfccb87b27f
06839b08d8e8f274c02a6bcd31bf1b32d3dc04e4
refs/heads/master
2023-08-21T22:35:10.114394
2022-11-02T10:14:08
2022-11-02T10:14:08
172,566,233
1
3
Apache-2.0
2023-08-16T05:11:30
2019-02-25T19:00:57
Python
UTF-8
Python
false
false
979
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" """ from pathlib import Path from warg import NOD MQTT_CAM_CONFIG = NOD( mqtt=NOD( broker="localhost", port=1883, QOS=1 ), # or an ip address like 192.168.1.74 camera=NOD( vi...
[ "christian.heider@alexandra.dk" ]
christian.heider@alexandra.dk
42e17a6a17075549bcba19d12ccfd1b3f4983c35
f525a67f7920d6d35077e60bbe3012ffd455ebdb
/sorting/reorder_data_log_files.py
d2cffa475979985bf5fd5fcbac86803e9689541e
[]
no_license
uma-c/CodingProblemSolving
c29671a76762ba34af0cab05d68e86f798616cab
b7d3b9e2f45ba68a121951c0ca138bf94f035b26
refs/heads/master
2023-05-02T05:38:43.666829
2021-05-19T02:23:13
2021-05-19T02:23:13
286,168,682
0
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
''' You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier. Then, either: Each word after the identifier will consist only of lowercase letters, or; Each word after the identifier will consist only of digits. We will call thes...
[ "chowtoori@live.com" ]
chowtoori@live.com
bccfed5d348f8c095814aa00c8d5e77feb4040ee
05e454259b44882a1bfff0ba82475374b36b74f0
/vision/utils/video_writer.py
099a8a4933882341dd3d3cd0c9295757e019ac70
[ "BSD-3-Clause" ]
permissive
TeamAutonomousCarOffenburg/TACO_2017
ec49f539528388f28114cca9787c1ab7db880e64
724c37188209818c22046d2229f67d882c36e2f4
refs/heads/master
2021-08-14T18:33:24.203830
2017-11-16T13:48:57
2017-11-16T13:48:57
110,350,009
4
1
null
null
null
null
UTF-8
Python
false
false
1,930
py
import os import time as t from threading import Thread import utils.tools as tools import cv2 class VideoWriter: def __init__(self, im_width, im_height, folder, video_queue): self.video_queue = video_queue self.folder = folder self.im_width = im_width self.im_height = im_height ...
[ "jensfischer95@gmail.com" ]
jensfischer95@gmail.com
a9ea65ef0f77600f090da1acf54b75f98d380c1c
c2643d37464d847facfaa39eca662578b6744c39
/async_www/app.py
a365c66be8802682fdcaba1b4ff00589baf96892
[]
no_license
Jelair/TMS_back_end
c85cd8dd74792a88354c8c2d85ff7e99dfd92677
be267a70741cf7b6810bcc165fbe383c809f24ff
refs/heads/master
2021-09-07T08:36:58.711793
2018-02-20T11:52:11
2018-02-20T11:52:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,866
py
# !/usr/bin/env python # -*- coding:utf-8 -*- """ ------------------------------------------------- File Name: app Description : Author : simplefly date: 2018/2/3 ------------------------------------------------- Change Activity: 2018/2/3: ---------------------------...
[ "1059229782@qq.com" ]
1059229782@qq.com
6823ae91cfcabb0d9c1f3bdc24adb4ffb866e73c
3e30f89790a93e715ef7eb396575e28ae5849cf0
/SurfaceTest.py
d4faf5549dc422114ab10b5dc19c567fb65d69b3
[]
no_license
sulantha2006/Surface
090d5d56fbe778de0b6c3a75cfb6cc3a2ebe12f3
ccc58cbd206da5063c880927c8ba130b6fe6e097
refs/heads/master
2021-01-10T18:49:45.489158
2013-12-11T19:01:48
2013-12-11T19:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
__author__ = 'sulantha' import numpy from mayavi.mlab import * from mayavi import mlab def test_contour3d(): x, y, z = numpy.ogrid[-100:100:1, -100:100:1, -100:100:1] scalars = (x*2*y*z*z)+(x*y*z) obj = contour3d(scalars, contours=4, transparent=True) return obj test_contour3d() mlab.show()
[ "sulantha.s@gmail.com" ]
sulantha.s@gmail.com
81dac263c0eb19bc1f2482b80239c0c651db6ed4
45fd54ecc12334806b4a285ca3886f3fe0d191c4
/tests/fixtures/entities.py
3d1cb92dff353405a98989dc76ded7ab47a091a7
[ "BSD-3-Clause" ]
permissive
azthief/pontoon
124fcb4b36ecbe7dc288df8d49ac4ed8e02b9d71
14f9de9b020e45c375311181ed32e487e76d28f8
refs/heads/master
2021-08-23T21:05:16.511013
2017-12-01T15:01:30
2017-12-01T15:01:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
# -*- coding: utf-8 -*- import functools import pytest from pontoon.base.models import Entity @pytest.fixture def entity0(resource0): """Entity 0""" return Entity.objects.get(resource=resource0, string="entity0") @pytest.fixture def entity1(resource1): """Entity 1""" return Entity.objects.get(res...
[ "ryan@synca.io" ]
ryan@synca.io
a00525930a6cd48eadc9c0a8846ad4b1f4204286
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_070/ch159_2020_06_21_20_15_37_551744.py
5e4469af1a68b27e0cd0f94e4e1993cac9b58f68
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
import json with open('estoque.json', 'r') as arquivo: estoque = arquivo.read() estoque = json.loads(estoque) valorfinal = 0 for produto in estoque["produtos"]: qntd = produto["quantidade"] valor = produto["valor"] valorfinal += (qntd * valor) print(valorfinal)
[ "you@example.com" ]
you@example.com
4ce36af0556c38c0b99aa0f46457cfeee2e0ccb1
318572c21d892155e7418e7eee88057a4f3c721d
/test/test_csr.py
a5958650d7ea97ccde7757fc32b9ade9bdb92cdc
[ "BSD-2-Clause" ]
permissive
goran-mahovlic/litex
69a1b1d8b1e0c1e3788c5691888527ae7bc74506
8030c691137d294043d797ff140de3c65aefc086
refs/heads/master
2020-07-11T08:49:58.894980
2019-08-26T21:02:03
2019-08-26T21:02:03
204,495,234
1
0
NOASSERTION
2019-08-26T16:36:25
2019-08-26T14:36:25
null
UTF-8
Python
false
false
3,085
py
# This file is Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr> # License: BSD import unittest from migen import * from litex.soc.interconnect import csr from litex.soc.interconnect import csr_bus def csr32_write(dut, adr, dat): for i in range(4): yield from dut.csr.write(adr + 3 - i, (d...
[ "florent@enjoy-digital.fr" ]
florent@enjoy-digital.fr
85d1b8bfb200d8f6023817335f55d8cc0ce0daa0
6a0cb1571b72b3f5708bb861b303380cc57a9a16
/English/prepare_flickr_train_chunks.py
3fa5629d374d4e1aa59fb12e265eddbe8553ad13
[ "Apache-2.0" ]
permissive
cltl/Spoken-versus-Written
5bb8f5c46bba2594e86bcaeb12b63c29f78aa443
997024ae60a3f1dacf87162aa3c82439393c1bf2
refs/heads/master
2020-03-21T13:35:22.902840
2018-12-07T20:56:28
2018-12-07T20:56:28
138,614,224
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
from collections import defaultdict def chunks(l, n): """Yield successive n-sized chunks from l.""" for i in range(0, len(l), n): yield l[i:i + n] # Only focus on the training data. with open('./Resources/Flickr30K/splits/train_images.txt') as f: train_ids = {line.split('.')[0] for line in f} # C...
[ "emielonline@gmail.com" ]
emielonline@gmail.com
0f736fdf633fa85c109716227574ac1e44c6a553
bfb036667018dd50883f03ccc51b2d7cbe93b94e
/SignIn/urls.py
d7e0b30211a9534c025dc93ee04b8e09a3c42ea1
[]
no_license
uniquehou/txj-php
845589bd256237d133471d51e4501a06082ff6c7
05edbbcfac541a03754421850c7d0767d12030cc
refs/heads/master
2021-07-21T05:10:01.513922
2017-10-30T23:27:50
2017-10-30T23:27:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
from django.conf.urls import url from . import views app_name = "SignIn" urlpatterns = [ url(r'^$', views.index), url(r'index', views.index, name='index'), url(r'submit', views.submit, name='submit'), ]
[ "919863463@qq.com" ]
919863463@qq.com
f465a631611beafd6ed28baa3a9cd236e84b711e
45e03dd61493195cbbbce14fa54a787715c7c1fb
/Python_String_Methods/Encode().py
66027a0d7c89956c85b20b4cacfba92d51cd82c2
[]
no_license
VaishnaviReddyGuddeti/Python_programs
c55ee69c05d78a70a44385ee2e66365f69546035
309a1786fa5a3886d516cd49eb09f9cd847389df
refs/heads/master
2023-02-17T03:41:31.480858
2021-01-14T15:39:52
2021-01-14T15:39:52
279,762,059
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
# Encode() - Returns an encoded version of the string # Syntax - string.encode(encoding=encoding, errors=errors) # UTF-8 encode the string: txt = "My name is Sushanth" x = txt.encode() print(x) # These examples uses ascii encoding, and a character that cannot be encoded, showing the result with different errors: tx...
[ "vaishnavireddyguddeti@gmail.com" ]
vaishnavireddyguddeti@gmail.com
390c4e261333eb5c95eb3d2d31bbf17f59221205
0ffed23713096d9034efdc44a9f1740f79ddc9e5
/scripts/QMDP_RCNN/IRL_linear_decay.py
3e763658e69cb3f7aea43ee969982ea4cbb4f5d1
[]
no_license
rohitsemwal16/RCNN_MDP
1f559a725195fbaf59e6f2f375695372251b8e55
1c493d17d71c470ebc1dbd1795a75d8ed11eb00a
refs/heads/master
2021-09-04T17:24:04.348415
2018-01-20T10:52:17
2018-01-20T10:52:17
118,078,756
0
0
null
2018-01-19T04:52:16
2018-01-19T04:52:16
null
UTF-8
Python
false
false
5,552
py
#!/usr/bin/env python import numpy as npy from variables import * action_size = 8 def initialize_state(): # global current_pose, from_state_belief, observed_state global observed_state from_state_belief[observed_state[0],observed_state[1]] = 1. def initialize_observation(): global observation_model # observatio...
[ "tanmay.shankar@gmail.com" ]
tanmay.shankar@gmail.com
97852b5e54f297008951ce01fea42b20236751c7
34652a47355a8dbe9200db229a1bbc62619de364
/Algorithms/Pascal's Triangle grid.py
7171af45039db025d7f6251f269ee3a26bdb34cf
[]
no_license
btrif/Python_dev_repo
df34ab7066eab662a5c11467d390e067ab5bf0f8
b4c81010a1476721cabc2621b17d92fead9314b4
refs/heads/master
2020-04-02T13:34:11.655162
2019-11-10T11:08:23
2019-11-10T11:08:23
154,487,015
0
1
null
null
null
null
UTF-8
Python
false
false
2,263
py
grid = [] n = 7 for i in range(n+1): grid.append([1] * (n+1)) for i in range(n): for j in range(n): grid[i+1][j+1] = grid[i][j+1] + grid[i+1][j] print(grid) print(str(grid[n][n])) ''' 1 1 1 ...
[ "bogdan.evanzo@gmail.com" ]
bogdan.evanzo@gmail.com
50c850718ee41b0daaf57cbf5aa1c0f224458fa1
6aab2d11b3ab7619ee26319886dcfc771cbcaba5
/0x0A-python-inheritance/4-inherits_from.py
7c1e345e609de731fc003fa63903631ed93486f7
[]
no_license
IhebChatti/holbertonschool-higher_level_programming
ef592f25eb077e182a0295cb5f2f7d69c7a8ab67
ca58262c6f82f98b2022344818e20d382cf82592
refs/heads/master
2022-12-18T10:06:30.443550
2020-09-24T17:31:30
2020-09-24T17:31:30
259,174,423
1
1
null
null
null
null
UTF-8
Python
false
false
429
py
#!/usr/bin/python3 """check if obj inhertied directly of a class """ def inherits_from(obj, a_class): """inherits_from definition Arguments: obj {[object]} -- [the object to check] a_class {[class]} -- [the class] Returns: [bool] -- [true if inherited directly, false if not] ...
[ "iheb.chatti@holbertonschool.com" ]
iheb.chatti@holbertonschool.com
0c79eacddb49731e119b453110e076bd5b9ca5da
9ba2b89dbdeefa54c6b6935d772ce36be7b05292
/devilry/devilry_group/cradmin_instances/crinstance_base.py
f01a0b0b7c01fb528306066de649c1c7909be4c5
[]
no_license
kristtuv/devilry-django
0ffcd9d2005cad5e51f6377484a83d778d65050f
dd2a4e5a887b28268f3a45cc3b25a40c0e313fd3
refs/heads/master
2020-04-27T06:02:45.518765
2019-02-15T13:28:20
2019-02-15T13:28:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,093
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.db.models.functions import Lower, Concat from devilry.apps.core.models import Examiner, Candidate, AssignmentGroup from devilry.devilry_dbcache.models import AssignmentGroupCachedData class DevilryGroupCrInstanc...
[ "stianjul@gmail.com" ]
stianjul@gmail.com
9ce297a89bcb7527f0066f244fe50fac15f47f23
ca75f7099b93d8083d5b2e9c6db2e8821e63f83b
/z2/part3/updated_part2_batch/jm/parser_errors_2/158698348.py
07c5e587ea7fc17c711767e5940198e5050b7d40
[ "MIT" ]
permissive
kozakusek/ipp-2020-testy
210ed201eaea3c86933266bd57ee284c9fbc1b96
09aa008fa53d159672cc7cbf969a6b237e15a7b8
refs/heads/master
2022-10-04T18:55:37.875713
2020-06-09T21:15:37
2020-06-09T21:15:37
262,290,632
0
0
MIT
2020-06-09T21:15:38
2020-05-08T10:10:47
C
UTF-8
Python
false
false
3,078
py
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 158698348 """ """ random actions, total chaos """ board = gamma_new(5, 3, 3, 7) assert board is...
[ "noreply@github.com" ]
kozakusek.noreply@github.com
fb618bb99c8eb4fecc90504df2e15c24a4405d5e
50eb4e3092fadb9af8f5ad33f2d37edce43633ed
/okfncart/tests/test_promotion_loader.py
fe9378704631eaf15f98a06f8b440fc913f5d10a
[]
no_license
tomwardill/okfncart
8723cf42955f1393deeebadc4e7dbaa0de5b435e
89759bf18efb7a49e16492dabdcf23fca41f49c9
refs/heads/master
2020-04-06T04:01:39.242094
2014-09-08T14:23:29
2014-09-08T14:23:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
import unittest from okfncart.promotions.promotion_loader import PromotionLoader class TestPromotionLoader(unittest.TestCase): def setUp(self): self.loader = PromotionLoader() def test_load_promotions_empty(self): promotions = self.loader.load_promotions() self.assertTrue(promotions...
[ "tom@howrandom.net" ]
tom@howrandom.net
12b07ab23fed1bee315b968b910789912c086c85
e0d9844e123fa0706388814b9f29758258589487
/torch/jit/_fuser.py
349ecbea75621a03adfa9001d1d4c5bbd82370e0
[]
no_license
pigpigman8686/seg
b5cf5261a5744e89ed5e5b145f60b0ccc3ba2c0c
61c3816f7ba76243a872fe5c5fc0dede17026987
refs/heads/master
2023-04-10T22:22:35.035542
2021-04-22T06:24:36
2021-04-22T06:24:36
360,398,108
0
0
null
null
null
null
UTF-8
Python
false
false
2,647
py
import contextlib import torch @contextlib.contextmanager def optimized_execution(should_optimize): """ A context manager that controls whether the JIT's executor will run optimizations before executing a function. """ stored_flag = torch._C._get_graph_executor_optimize() torch._C._...
[ "952361195@qq.com" ]
952361195@qq.com
0beb595ac8b8afe6fe9f98094c63c6054d060ac7
df1eea603a7adbdd3f81e06800f788ee97ecefe1
/0x11-python-network_1/101-starwars.py
bf5bd2f574c972d35b0370cd4d2369fe11c16ebf
[]
no_license
ledbagholberton/holbertonschool-higher_level_programming
be0b4423beb8331bd5915f065870a2cbcd8c6008
df937fd4888dc64470f0068323a9fa6ad400e56d
refs/heads/master
2021-06-12T15:16:57.812663
2019-10-01T06:00:34
2019-10-01T06:00:34
184,110,453
0
0
null
2021-04-30T21:18:08
2019-04-29T16:59:29
TSQL
UTF-8
Python
false
false
550
py
#!/usr/bin/python3 """ With request ask for header""" import requests import sys if __name__ == "__main__": url = "http://swapi.co/api/people/?all=true" if len(sys.argv) < 2: sys.exit(1) else: data = {'search': sys.argv[1]} html = requests.get(url, params=data) try: my_json ...
[ "789@holbertonschool.com" ]
789@holbertonschool.com
18f4edd212936a2d9ad07e7a58d32021e5000f79
cc619d6e81c39fe54d4875e3c6936e25bb8a7ebd
/Python/src/17 Scientific Python/SciKitImage/03_tablets.py
35e9a6bcf6f9bf53efee9a38eb2c8fe75f4f809d
[]
no_license
joshua4289/python3-examples
cb01060f649c7dc97185566b00fa0d59a1ffdca3
70c1fd0b1e5bf25e82697257fb9f92cd06e922b7
refs/heads/master
2020-12-19T08:19:13.310071
2017-04-28T13:48:01
2017-04-28T13:48:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,018
py
import numpy as np import scipy.ndimage as nd import matplotlib.pyplot as plt import skimage.morphology as morphology import skimage.feature as feature import PIL.Image as Image def load_image( infilename ) : img = Image.open( infilename ) img.load() data = np.asarray( img, dtype="int32" ) return data ...
[ "seddon-software@keme.co.uk" ]
seddon-software@keme.co.uk
6a300cad68c584580fc8f8d23564a9d3917e56de
73d9b5664d6949140b13e92d8b91a01e8502752a
/good_spot/images/migrations/0006_auto_20180313_1440.py
d6a7bce62944f54512cae8f23ae1618d32f2648b
[ "MIT" ]
permissive
jasmine92122/NightClubBackend
3ed46cce0f6b534b4b49829f53fe7cb6a42ae42e
7f59129b78baaba0e0c25de2b493033b858f1b00
refs/heads/master
2022-11-23T00:42:25.606762
2019-10-02T01:56:29
2019-10-02T01:56:29
212,234,882
0
0
MIT
2022-11-22T02:10:16
2019-10-02T01:47:52
JavaScript
UTF-8
Python
false
false
462
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-03-13 14:40 from __future__ import unicode_literals from django.db import migrations def reorder(apps, schema_editor): from django.core import management management.call_command('reorder', 'images.PlaceImage') class Migration(migrations.Migration...
[ "jasminegarcia111@outlook.com" ]
jasminegarcia111@outlook.com
20c0be5ceca17532092c08704ef8644540114ee4
936dc2666f27de7a7d1428c7ad2ded62a722b8fa
/src/geofr/tasks.py
cccc966051394561c8ed36e13ac6c969e30e66cd
[ "ISC" ]
permissive
MTES-MCT/aides-territoires
03451a32bdeaab3812b8593bfe3a27c1b1d9a182
af9f6e6e8b1918363793fbf291f3518ef1454169
refs/heads/master
2023-09-04T22:15:17.819264
2023-08-25T13:19:17
2023-08-25T13:19:17
124,301,398
21
11
NOASSERTION
2023-09-12T13:46:49
2018-03-07T22:19:11
Python
UTF-8
Python
false
false
206
py
from core.celery import app from django.core import management @app.task def count_by_department(): """Count backers and programs by department.""" management.call_command("count_by_department")
[ "noreply@github.com" ]
MTES-MCT.noreply@github.com
df71e788bcfd8b63c8f6aabc31fca3443c9f04b4
df716b2868b289a7e264f8d2b0ded52fff38d7fc
/tests/parsers/trendmicroav.py
a8f3cf80dcbcd5830b11ee17d920946a8d4d990f
[ "Apache-2.0" ]
permissive
ir4n6/plaso
7dd3cebb92de53cc4866ae650d41c255027cf80a
010f9cbdfc82e21ed6658657fd09a7b44115c464
refs/heads/master
2021-04-25T05:50:45.963652
2018-03-08T15:11:58
2018-03-08T15:11:58
122,255,666
0
0
Apache-2.0
2018-02-20T21:00:50
2018-02-20T21:00:50
null
UTF-8
Python
false
false
1,777
py
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the Trend Micro AV Log parser.""" from __future__ import unicode_literals import unittest from plaso.formatters import trendmicroav as _ # pylint: disable=unused-import from plaso.parsers import trendmicroav from tests import test_lib as shared_test_lib from t...
[ "onager@deerpie.com" ]
onager@deerpie.com
4d1e24b85cf62a6aab7cfc79383b9f0d1481768f
5b4fe473179b5fadaf59ec96d55b2ec4cb326f65
/src/graph_transpiler/webdnn/backend/webgl/optimize_rules/insert_channel_mode_conversion.py
121a0b3cbf32a9c693a52efa3c3fdef3de9bc1d1
[ "Zlib", "MIT" ]
permissive
TarrySingh/webdnn
13d3f1ec4936916abacfb67e270f48571e2fcff2
b31b19de0798d8ca198b78d19cb06e4fce1bc260
refs/heads/master
2021-05-07T02:24:47.500746
2017-11-13T13:00:24
2017-11-13T13:00:24
110,582,816
0
1
null
2017-11-13T18:03:46
2017-11-13T18:03:46
null
UTF-8
Python
false
false
2,948
py
from typing import Tuple from webdnn.backend.webgl.attributes.channel_mode import ChannelModeEnum, ChannelMode from webdnn.backend.webgl.attributes.texture_shape import TextureShape from webdnn.backend.webgl.operators.convert_r_to_rgba import ConvertRtoRGBA, convert_r_to_rgba from webdnn.backend.webgl.operators.conver...
[ "y.kikura@gmail.com" ]
y.kikura@gmail.com
cb0ecd20b0fdca9b9abf3647279afb77cc77ecbb
318270aeab9182a42482c33167f90b3e6bb8a77b
/Pattern exercise/pattern 8.py
69e53ceffc379c4d66b91586da5711cef2d1d07f
[]
no_license
Raj-kar/Python
b857214392384752855f6ab5d673b0218ce3ecd7
7eab4705eda566827ad01b3285095d253e55a7dc
refs/heads/master
2023-01-21T07:11:03.054162
2020-11-30T08:47:11
2020-11-30T08:47:11
286,132,816
3
11
null
2020-10-13T21:47:31
2020-08-08T23:09:42
Python
UTF-8
Python
false
false
428
py
# * * # ** ** # *** *** # **** **** # ***** ***** # ****** ****** # ************* num = int(input("Enter a range :: ")) symbol = input("Enter a symbol :: ") # user can enter any symbol for print ! num += 1 for i in range(1, num): for j in range(1, (num*2)-2): if j <= i or j >...
[ "rajkar921@gmail.com" ]
rajkar921@gmail.com
0346683d74959bf1bc9cf8400043c01c34de5b01
8200122ad875e73f627f5d1eca29c778167cb5fb
/tests/test_documenter.py
a9b851c1b0a4b51e81f69479b92cd72e904c4922
[ "ISC" ]
permissive
jaimergp/mkdocstrings
bb1a5ad2360f051e17e4af0c854119dcc6b652ac
895c3192cb9328d0800234a8732745ecae840d97
refs/heads/master
2021-02-17T17:47:03.476674
2020-03-04T20:30:36
2020-03-04T20:30:36
245,115,235
1
0
ISC
2020-03-05T09:05:19
2020-03-05T09:05:19
null
UTF-8
Python
false
false
862
py
from mkdocstrings.documenter import Documenter def test_getattr_dunder(): class Base: def __init__(self): pass def __getitem__(self, item): """Written docstring.""" return item class Child(Base): def __init__(self): super().__init__() ...
[ "pawamoy@pm.me" ]
pawamoy@pm.me
28a809f729a9e54614cfc5b64ccef5cd57046d51
5f73d71c47ecac793e2e1a1ce14ca5c24483d45a
/tools/vis_gt_stats.py
a64d6b583c3b35e1c28d921cf1f608683c3aa6c4
[]
no_license
GeeeG/sixd_toolkit
694db642c9f2a179353284dfcf7b16f45722aaae
ec914f3a9d2ced9a5b6d87722f342c6bef1b95b7
refs/heads/master
2021-08-08T13:32:29.018936
2017-11-10T12:10:36
2017-11-10T12:10:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,069
py
# Author: Tomas Hodan (hodantom@cmp.felk.cvut.cz) # Center for Machine Perception, Czech Technical University in Prague # Plots statistics of the ground truth poses. import os import sys import matplotlib.pyplot as plt sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from pysixd import in...
[ "tom.hodan@gmail.com" ]
tom.hodan@gmail.com
01986fb8b82dfc269f8acfe87fc88ab902ec5cd7
a9868b17ddc5f7f28911c57870e327238a2432d8
/python_Pandas_Numpy/Pandas/Pandas08_05_Oper_최윤종.py
8e68d21c628a7da3d95fdb66df283dc46f2a3a4d
[]
no_license
ChoiYoonJong/DataScience
439568a668307ed0cab0cffb688fd832b10047ab
3cab98eacecd8c1782e6f91b2b7ffa0ecefe4ed1
refs/heads/main
2023-06-07T02:56:08.335411
2021-07-09T13:23:58
2021-07-09T13:23:58
378,833,127
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
# coding: utf-8 # In[1]: import pandas as pd # In[2]: scientists = pd.read_csv('../data/scientists.csv') # In[3]: ages = scientists['Age'] print(ages.max()) # In[5]: print(ages + ages) # In[6]: print(ages * ages) # In[7]: print(ages + 100) # In[8]: print(ages * 2) # In[9]: print(pd.Seri...
[ "noreply@github.com" ]
ChoiYoonJong.noreply@github.com
18843cd91a77a4b123c23a31259d14bb5f63f9a9
f83934dd60d4961848c0a86f6d7fbe07b79a1d63
/examples/skybox.py
35338a6b839cf8d1a1925b6a5bd7f559fced491a
[]
no_license
brianholland/glumpy
2a31e2f5fd039d1debb30dd010ad36c458f329cf
a691082385e02db9b1d461847b9e36d8534630fa
refs/heads/master
2020-12-25T21:43:58.743259
2015-11-30T11:04:46
2015-11-30T11:04:46
46,670,630
0
0
null
2015-11-30T11:04:46
2015-11-22T17:10:24
Python
UTF-8
Python
false
false
2,225
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2014, Nicolas P. Rougier # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------...
[ "Nicolas.Rougier@inria.fr" ]
Nicolas.Rougier@inria.fr
8d14fad12f09747881d57daf744f6a3832bf66d5
f4d0c26d3aa27c77a7c27d9002a08465a0638cbb
/csv_schema/apps.py
cc68a34da948dcfb3886e8505753ddb7fcf4e90f
[]
no_license
uk-gov-mirror/nhsengland.NCDR-reference-library
3afe0711f47dc1b5fa25646bc870a806b3512ce5
cac30ee0787e81fb9868731576c242c7ea3dbde8
refs/heads/master
2023-04-03T15:10:19.320708
2017-11-03T15:03:27
2017-11-03T15:03:27
356,799,453
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class CsvSchemaConfig(AppConfig): name = 'csv_schema'
[ "fredkingham@gmail.com" ]
fredkingham@gmail.com
d41949b29005b96b1b15f022fe7c76b524793263
f5d3d2f2a79b07bf71a0f1bbbb50385f135f5dd3
/jina/peapods/runtimes/base.py
504d65cff495cf7ce2b57c50bf5d6701964b5b87
[ "Apache-2.0" ]
permissive
Rohitpandit021/jina
5ab9be96eebeb6ec1a7cfae78a47e9b71789158e
f3db4d5e480375d8dc3bceda814ac1963dee76d7
refs/heads/master
2023-06-02T14:46:16.445246
2021-06-21T10:18:01
2021-06-21T10:18:01
378,832,389
0
0
Apache-2.0
2021-06-21T10:22:10
2021-06-21T06:42:59
Python
UTF-8
Python
false
false
3,683
py
import argparse from ...logging.logger import JinaLogger class BaseRuntime: """A Jina Runtime is a procedure that blocks the main process once running (i.e. :meth:`run_forever`), therefore must be put into a separated thread/process. Any program/library/package/module that blocks the main process, can be...
[ "rajashree.patil@embold.io" ]
rajashree.patil@embold.io
0b283b8c8bf43055210cd3e22e33b88cdbe61862
e4428f7635a978e3e68f0a94b736c3626f0ea66d
/src/basic/server/server.py
e17e91830e4dfa9c9aceece4d5eb3c8a59fa0211
[]
no_license
rodrigoms2004/pythonWebSocketsNumpy
df297908f796dd5b9c7ff69d82cad3c06b240c46
353af18cc1303dfa0a0f2da7533eb603b7fe6bcb
refs/heads/master
2020-08-04T04:39:28.198215
2019-10-01T04:08:30
2019-10-01T04:08:30
212,009,424
1
0
null
null
null
null
UTF-8
Python
false
false
610
py
#!/usr/bin/env python # WS server example import asyncio import websockets import numpy as np from pickle import dumps, loads async def inverseMatrix(websocket, path): buffer_matrix = await websocket.recv() matrix = loads(buffer_matrix) print("Receiving matrix:\n", matrix) inverse = np.linalg.inv(m...
[ "rodrigoms2004@gmail.com" ]
rodrigoms2004@gmail.com
148085e914624bff502e11b0827994b9858b1877
7d98c95227ff36e7735eaf05857507baa8ecfaff
/myproject/settings.py
2521c71c6540df85adc9b41e75e259df36493067
[]
no_license
KANISHK-VERMA/Blogapp
55876b58f1a5cb9db252571ad0898fb92c1df85a
87e384139c453bff3e1487992449fed2e3e6d045
refs/heads/master
2022-11-11T13:25:57.291910
2020-07-02T17:35:53
2020-07-02T17:35:53
254,918,211
0
0
null
null
null
null
UTF-8
Python
false
false
3,326
py
""" Django settings for myproject project. Generated by 'django-admin startproject' using Django 2.1.5. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os ...
[ "you@example.com" ]
you@example.com
3bb3f731ef2c9152d232482fc1e57fa643925b8e
ca59d18e503ef22fbc920c6de48ffc8eac5a1443
/tools/Polygraphy/examples/api/02_using_real_data/example.py
c59a454b5dbe79668694119aaf766617c9d0051b
[ "Apache-2.0", "BSD-3-Clause", "ISC", "BSD-2-Clause", "MIT" ]
permissive
boh-inspur/TensorRT
9fc0ae0ad4e31da040d10728b63d9dc284852b67
e4d2f7f4406f1c8f4632cc67de33728cef90ca29
refs/heads/master
2023-04-13T21:24:13.912673
2021-04-23T09:55:18
2021-04-23T09:55:18
265,431,588
0
0
Apache-2.0
2021-04-23T09:55:19
2020-05-20T02:49:58
null
UTF-8
Python
false
false
2,068
py
#!/usr/bin/env python3 # # Copyright (c) 2021, NVIDIA CORPORATION. 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 # # ...
[ "rajeevsrao@users.noreply.github.com" ]
rajeevsrao@users.noreply.github.com
2a897f6362fbdff9b1df3a593a276ff405e2436c
b2e1d96c0551b6b31ef85353f9b6e5b6354d64e8
/datafaucet/spark/data.py
b701af9a518224f407232a2f190558970479dda2
[ "MIT" ]
permissive
SylarCS/datafaucet-1
8bd7b96cecc5592e153b61367892e2a63a96119d
a63074ba1fb1a6d15f06e2bfff05df754aaaa452
refs/heads/master
2020-09-15T06:04:31.999012
2019-11-18T20:00:55
2019-11-18T20:00:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
from pyspark.sql import DataFrame from datafaucet.data import _Data class Data(_Data): def collect(self, n=1000, axis=0): res = self.df.select(self.columns).limit(n).toPandas() return res.T if axis else res def _data(self): return Data(self) DataFrame.data = property(_data)
[ "natalino.busa@gmail.com" ]
natalino.busa@gmail.com
7c881f192f7bb5eea325cab96de8af8dd74bfdf8
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/cv/classification/Resnet50_Cifar_for_PyTorch/configs/_base_/models/regnet/regnetx_12gf.py
d0b11c71bd70e06fedb1869a0fa5f51e24fc5d1b
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer" ]
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
928
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