blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
132e2992317c4be95ec5e084b122faf57bdb6871
8e647469ee4851dd76fa2d1104e9e99bb102d10f
/autotest/Library/update_library.py
c0a655dbe41875ef4d9a619e978ac6a85acc99c9
[]
no_license
sunyn95123/Rf_autoRequest
0e1c4b2e4bcf3844d6b8d65ad00460d503f5a351
5945a57464bcca0f6ed2cc357c1e108608035734
refs/heads/master
2020-07-09T11:30:40.183285
2019-08-28T07:47:22
2019-08-28T07:47:22
203,958,339
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
# -*- coding: utf-8 -*- import shutil,os from distutils.sysconfig import get_python_lib; python_library_dir=get_python_lib() BASE_DIR = os.path.split(os.path.realpath(__file__))[0] def update_library(name): try: shutil.rmtree(python_library_dir+'/'+name+'/') except: pass try: ...
[ "839500300@qq.com" ]
839500300@qq.com
d7e949f538a3a780aa931750ee78faf99c3e1323
1a166165ab8287d01cbb377a13efdb5eff5dfef0
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/operations/_ddos_protection_plans_operations.py
d971927ea9d9c040f54655faee5d8e8cf1f6edd5
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
manoj0806/azure-sdk-for-python
7a14b202ff80f528abd068bf50334e91001a9686
aab999792db1132232b2f297c76800590a901142
refs/heads/master
2023-04-19T16:11:31.984930
2021-04-29T23:19:49
2021-04-29T23:19:49
363,025,016
1
0
MIT
2021-04-30T04:23:35
2021-04-30T04:23:35
null
UTF-8
Python
false
false
30,324
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" ]
manoj0806.noreply@github.com
1c53597309aa94040b5fb54133d52910d63bde90
c2beeb4fe6f64f4f2037644c9c80b93dd4e8abe0
/Burst and Quantum Time Prediction/thl.py
b7f8e41c921cb19241637ad60caee89e30d6c136
[]
no_license
lkcbharath/OS-Project
911edff1cc51ab47b68a257d42d25b754874741b
b615b5c277f128a1e58c1cb818a03bc82633f871
refs/heads/master
2020-05-23T15:39:19.099395
2019-04-09T06:45:11
2019-04-09T06:45:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,579
py
# -*- coding: utf-8 -*- """ Created on Fri Mar 22 13:01:19 2019 @author: arpit """ import numpy as np import random X_train = [ None for i in range (1000)] for i in range(1000): X_train[i]=[ None for j in range(10)] for i in range(1000): for j in range(10): X_train[i][j] = random.randrange(1,100) ...
[ "arpitjadiya@gmail.com" ]
arpitjadiya@gmail.com
5f72be1926571bac7dedf1727ab410771ab5ef6a
f1d2073c23d247ea16ca4c696639a73f4eaa788c
/tests-trio/eth2/eth1-monitor/test_deposit_data_db.py
02e28f340714ee104c8a8cd32b750cf3beb4747b
[ "MIT" ]
permissive
gengmoqi/trinity
58edacd549667e7d0f5553278d784dacc1225dd9
2df1be3bc22b9d8de08711e5692a051d8dfc4d11
refs/heads/master
2022-11-26T22:06:18.314721
2020-07-22T22:16:47
2020-07-27T10:57:28
282,907,384
1
0
MIT
2020-07-27T13:32:28
2020-07-27T13:32:27
null
UTF-8
Python
false
false
3,917
py
import pytest from trinity.components.eth2.eth1_monitor.db import ( BaseDepositDataDB, ListCachedDepositDataDB, ) from trinity.components.eth2.eth1_monitor.exceptions import DepositDataDBValidationError from trinity.components.eth2.eth1_monitor.factories import ( DepositDataDBFactory, DepositDataFactor...
[ "kevin.mh.chia@gmail.com" ]
kevin.mh.chia@gmail.com
fccc5e04254af51c2fc4a03cdf992b81f31a1d28
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/sql/v20190601preview/__init__.py
82b3a2004814746567987c5300774fdd220485e0
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,559
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from ._enums import * from .database import * from .get_database import * from .get_managed_database import...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
8ce1689b4605bab929cceaf30bd0e1e4bc9293a9
b40d1a26ea04a19ec0da7bf55db84b7ee36cc898
/leetcode.com/python/1007_Minimum_Domino_Rotations_For_Equal_Row.py
974ee558096c8fe9a393d9b91f507186e8e356d7
[ "MIT" ]
permissive
partho-maple/coding-interview-gym
5e8af7d404c28d4b9b52e5cffc540fd51d8025cf
20ae1a048eddbc9a32c819cf61258e2b57572f05
refs/heads/master
2022-09-11T16:36:01.702626
2022-03-14T08:39:47
2022-03-14T08:39:47
69,802,909
862
438
MIT
2022-08-18T06:42:46
2016-10-02T14:51:31
Python
UTF-8
Python
false
false
2,177
py
# Source: https://tinyurl.com/v3zqer7 # Approach 1 class Solution(object): def minDominoRotations(self, A, B): """ :type A: List[int] :type B: List[int] :rtype: int """ result = float("inf") for domino in range(1, 7): # Since each domino can have only 1 to 6 ...
[ "partho.biswas@aurea.com" ]
partho.biswas@aurea.com
49ca3426c5822ee4c4b4e67e340cb352471922c5
da327862940b303918d29989ba3f08f7b84ed81e
/search_operation/search_operation/asgi.py
c2d87bebe2609a82b331f6cc39393670633a8751
[ "Apache-2.0" ]
permissive
DingLi23/COEN6311_super
f5044c32de9c0dba2298e348d09fb18f3a2ae1c6
a48c14999fe53cd2a780c98eabf605f4a2eccbba
refs/heads/main
2023-09-06T02:09:38.858760
2021-11-25T18:58:06
2021-11-25T18:58:06
406,982,729
0
1
Apache-2.0
2021-11-25T18:58:06
2021-09-16T01:55:08
Vue
UTF-8
Python
false
false
409
py
""" ASGI config for search_operation project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJA...
[ "ding.li@mail.concordia.ca" ]
ding.li@mail.concordia.ca
8dca8b20ef143c405cdd0d90dfba7321b13722d0
c3797ced6b4d0a691a219debd977bd992027292c
/ner_training/training_data/all/prodotti.py
8758486568324c5689cea7b358843a4abc6186cf
[]
no_license
marcomoauro/twitter
edef7fa7d384fbe8709302c24629e6071a34b232
c74e03487b046c7b7191bb4a9a0fea271ac19a0f
refs/heads/master
2023-03-07T03:43:37.987280
2021-02-22T20:30:48
2021-02-22T20:30:48
303,747,371
0
0
null
null
null
null
UTF-8
Python
false
false
1,771
py
import re def filler_it(infobox_df, key_value): d = {} for index, row in infobox_df.iterrows(): if row['Property'] != key_value: continue values = row['Value'].split(':')[0].replace('_', ' ').replace('\\', "").replace('(mass media)', "").split('n*') for value in values: ...
[ "marcomoauro@hotmail.it" ]
marcomoauro@hotmail.it
327135d687d1b7e2e6a791d235e80b8e8c08dc69
14d8821a32bc8d1bade0e2d07652d811534862e8
/spring1718_assignment2_v2/cs231n/optim.py
1ef1d38c1279e65d091993d82c5703211ed74cc0
[]
no_license
zouhanrui/cs231nAssignment_2
7973af1b8d2f4e90b0fa1cb62369c8b2d5b1271b
afb06d12c404f53711196c9bd049278e87daa62c
refs/heads/master
2020-03-22T05:05:31.452114
2018-07-05T16:39:29
2018-07-05T16:39:29
139,541,591
1
0
null
null
null
null
UTF-8
Python
false
false
6,671
py
import numpy as np """ This file implements various first-order update rules that are commonly used for training neural networks. Each update rule accepts current weights and the gradient of the loss with respect to those weights and produces the next set of weights. Each update rule has the same interface: def updat...
[ "zouhanrui@gmail.com" ]
zouhanrui@gmail.com
a963765aa5a55bd302f57ef62a9abee6b95fc4a4
3671ab5562659dddd9deaf1ad09a576663ceaf8e
/pos-system_step1.py
034067308ba5f8cd132efb22e44ad237cc7d8b05
[]
no_license
xxxicemanxxx/study-04-pos-system-01-master_end
107b230416382d8954eed27815727af4e41d73fa
1562c27e6162ad19f8e0e6e092f53ccd1007ea03
refs/heads/main
2023-03-20T21:33:52.432671
2021-02-28T09:19:29
2021-02-28T09:19:29
343,063,965
0
0
null
null
null
null
UTF-8
Python
false
false
1,491
py
### 商品クラス class Item: def __init__(self,item_code,item_name,price): self.item_code=item_code self.item_name=item_name self.price=price def get_price(self): return self.price ### オーダークラス class Order: def __init__(self,item_master): self.item_order_list=[] ...
[ "noreply@github.com" ]
xxxicemanxxx.noreply@github.com
df21e317ceb61c338a1fa5912cc06bf5acc616da
03ff7c5f41cde72b285944e454550b9a6e33200e
/core/models/model_abstract.py
74d18f7ca387daaa6b7bf992b3303eb3c4527792
[]
no_license
hungdng/djang_skeleton
03604777a55f5e45dfd205ed672ce6da495d39bb
6dfb8b6b20add6c3c083732cbf71d53d950d3416
refs/heads/master
2022-12-10T02:54:14.301275
2019-03-22T04:36:14
2019-03-22T04:36:14
166,770,164
2
0
null
2022-12-08T01:33:14
2019-01-21T07:45:50
Python
UTF-8
Python
false
false
464
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models class TimestampedModel(models.Model): created_by = models.IntegerField(blank=True, null=True) created_date = models.DateTimeField(auto_now_add=True) updated_by = models.IntegerField(blank=True, null=True) upd...
[ "hungdng.92@gmail.com" ]
hungdng.92@gmail.com
712121c38d64a3f28e3a885b2d91a38da3391ebc
bc60447abf65fbe9882e9b66a8adff371cd12bd5
/xgb_model/scripts/my_model/cpmodule/orf_extraction.py
37001a4305bec079b017ce1eb1e2cac35c6a631f
[]
no_license
fogside/lncRNA
03bb74af705f25947353dc3234a389be6a79f820
780b57db25969d1d7e17470c4a617abd6ef55de8
refs/heads/master
2020-02-26T15:55:41.575331
2017-07-17T00:37:37
2017-07-17T00:37:37
70,860,801
2
1
null
null
null
null
UTF-8
Python
false
false
1,797
py
import numpy as np class ORFFinder: def __init__(self, seq): self.seq = seq.upper() def _find_start(self, seq, start=0): for i in range(start, len(seq), 3): if seq[i:i + 3] == 'ATG': return i return -1 def _find_stop(self, seq, start=0, stop_codons=['...
[ "cheskidova@phystech.edu" ]
cheskidova@phystech.edu
2b6dbf579ae37711f46b26057e43ff7b642659e2
77c8c500d4077ad733fbfe2c6a85a1dd47bd3cb5
/chelseashin/ProblemSolving/2156_포도주시식.py
940cea71221cff29f679eb73ae27638dc45e2bad
[]
no_license
chelseashin/AlgorithmStudy2021
786f03c4c17bc057518d428481e7d710d24ec98e
1a4744a621ed25715fc9060c5224f0b1092d9c00
refs/heads/master
2023-06-22T22:27:47.289806
2021-07-28T02:54:22
2021-07-28T02:54:22
326,441,667
1
5
null
2021-06-29T01:27:40
2021-01-03T15:44:16
Python
UTF-8
Python
false
false
848
py
# 참고 : https://pacific-ocean.tistory.com/152 # https://claude-u.tistory.com/204 # dp[i]의 최댓값을 구하는 것은 세 가지 방법에 의해 결정된다. # 1) OXOO: 연속 두 개 # 2) OXO: 하나 띄고 한 개 # 3) X: i 번째를 마시지 않는 경우 from sys import stdin input = stdin.readline n = int(input()) a = [0] + [int(input()) for _ in range(n)] dp = [0, a[1]] if n > 1: dp....
[ "chaewonshin95@gmail.com" ]
chaewonshin95@gmail.com
acefbcfd99b052440436e61cd90374c4d20f9db7
1311acbc58cbe0d28ff984c75a5c7d37387e2ebf
/project1_1/venv/bin/easy_install
6c77c1299e966ca7c769e30dd7bd32c5469b41cf
[]
no_license
kasu207/cs50x
6718bd0ba82ebf8259654a3f182fe6084af20d15
d1590a29bfd3d43fd60d8d4226a14659088c8f68
refs/heads/master
2020-08-13T02:26:36.400144
2019-10-18T14:31:58
2019-10-18T14:31:58
214,889,718
1
0
null
null
null
null
UTF-8
Python
false
false
298
#!/Users/philipprichter/Downloads/P_Projekt_Workspace/project1_1/venv/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "pr@cce-factory.de" ]
pr@cce-factory.de
a354f004938c6bbb37e415100f48ee081223cee6
a682419ca9862ff33b18a30a7599ad64f892e24d
/modules/soupsieve/css_match.py
b7ec67e95b731588b2df279b52772ba0b69095f3
[]
no_license
lasanjin/corona-swe
1dd3449a973fa9ece0fc39b125235ea0b31a7069
ad21a7e717d666fa679aa5896e24138dcddfead4
refs/heads/master
2021-05-18T17:28:09.292155
2020-06-08T21:42:53
2020-06-08T21:42:53
251,337,604
0
0
null
null
null
null
UTF-8
Python
false
false
52,243
py
"""CSS matcher.""" from datetime import datetime from . import util import re from .import css_types as ct import unicodedata # Empty tag pattern (whitespace okay) RE_NOT_EMPTY = re.compile('[^ \t\r\n\f]') RE_NOT_WS = re.compile('[^ \t\r\n\f]+') # Relationships REL_PARENT = ' ' REL_CLOSE_PARENT = '>' REL_SIBLING = '...
[ "sanjinslavnic@gmail.com" ]
sanjinslavnic@gmail.com
90c47ae4f35e9cfdd36566a5dcfdace8cb271d97
1b0317f8b8de13dc071ee3d8ee9cc2c12c88aad9
/src/searchers/__init__.py
6f712186e7a19c9b9415bd146b188eb3dc7d3db1
[ "MIT" ]
permissive
jesseward/stagehand
3182203c5cf49cf8671a61edbe8b971eedb18063
63ffd9a33f82d57039193e666e84b3b43982aa4e
refs/heads/master
2021-01-16T22:07:10.308245
2012-05-13T23:56:34
2012-05-13T23:56:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
py
from __future__ import absolute_import import logging import re import kaa from ..utils import load_plugins from ..config import config from .base import SearcherError log = logging.getLogger('stagehand.searchers') plugins = load_plugins('searchers', globals()) @kaa.coroutine(progress=True) def search(progress, seri...
[ "tack@urandom.ca" ]
tack@urandom.ca
59ab5667a34c44fdb895072c8f91f93182bc126b
acf314ab0fa399018764b2ebd96e33c66362994e
/0x0F-python-object_relational_mapping/1-filter_states.py
3db5e1107d420d574d6614b5ae1f741eb6da16ad
[]
no_license
glyif/holbertonschool-higher_level_programming
98f9c2da0b71a4e9e2dd9f6fde755875e9015f34
14c02d79e2008db1b992b08f9faa55b20dbe0691
refs/heads/master
2021-01-20T06:53:16.179354
2017-09-28T18:14:12
2017-09-28T18:14:12
89,939,980
0
1
null
null
null
null
UTF-8
Python
false
false
975
py
#!/usr/bin/python3 """ mysqldb filter states """ import sys import MySQLdb def db_connection(user_name, password, db_name, host="localhost"): """ db_connection - connects to db :param user_name: username :param password: password :param db_name: database name :param host: host - default to lo...
[ "122@holbertonschool.com" ]
122@holbertonschool.com
ead92cae183577bac7b20e6db878d3f9acdcc363
721d06b9b63b647a199e0c83635d2eb036bd6a5b
/teams/migrations/0003_auto_20160813_1911.py
af168de8e01f6e57b0135f814f1bc2fd7f000b50
[]
no_license
thekthuser/matador
e5f7063539a47f30383ae8e1265fbaad70781c50
56861b7075bbe8ef9fe087cacaab1345b4e1ff66
refs/heads/master
2020-12-07T13:25:43.153243
2016-08-18T22:59:00
2016-08-18T22:59:00
66,030,517
0
0
null
null
null
null
UTF-8
Python
false
false
948
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-13 19:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('teams', '0002_auto_20160813_0142'), ] operations = [ migrations.RemoveField( ...
[ "thekthuser@thekthuser.com" ]
thekthuser@thekthuser.com
713b13337285a49c5be9aad3361e48e0a44c225b
b4d49c9aab4942bd1041577467295cc472525d70
/Similar sypmtoms/Utils/get_severity.py
4422c2b8ab2bb5e1136aefe79f16e141d86a91a1
[]
no_license
smritika-sadhukhan/health_chatbot
92842985112a93e36b492390a4a35f5fe346a9cd
d6052773c4246953c84e85099c65de471477b76b
refs/heads/main
2023-05-02T17:06:12.913202
2021-05-24T10:29:37
2021-05-24T10:29:37
370,313,278
1
0
null
null
null
null
UTF-8
Python
false
false
1,491
py
import csv class GetSeverityDict: def getSeverityDict(self) -> dict: ''' [SUMMARY]: Extract the score wrt symptomsfrom the file Arguement: Return: severityDictionary : dictionary with keys as symptoms and values as scores ''' ...
[ "noreply@github.com" ]
smritika-sadhukhan.noreply@github.com
af3c4c05de8dadde3e803145348c565650a8bd18
14ba224c43cf3a5c9a792ecb9a6d1d8086a13a7a
/API/predict_assemble.py
7fcab493f684a2e34670b7ba5645442804847c26
[]
no_license
adimajo/MLitw
74ef6951513c1604e596781ed033f0a7e725931e
1cdaded885efacf34a9fdcc565b7d1fd7369e662
refs/heads/master
2022-12-18T21:22:29.574052
2020-08-18T14:35:18
2020-08-18T14:35:18
279,025,051
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
import numpy as np def predict_assemble(X, models, weights): """ Prediction from ASSEMBLE model :param numpy.ndarray X: features of samples to predict :param models: list of weak learners :param weights: weights for each weak learner :return: class prediction for each point """ if len...
[ "ztech1.25@gmail.com" ]
ztech1.25@gmail.com
64eee566526221275418f7edcba051489bb669c0
17463c8428ac4e34cad25a6377760e65a59bd19c
/chess/migrations/0001_initial.py
5670a552d2c6547167595554f16068a7909f64e8
[]
no_license
khoshraftar/online-chess
4ab10feb1c4c60ead7dd7f1dfe784599d604ee32
647d66e0260bafccb9c857d098dfce8bc664d298
refs/heads/master
2021-01-11T17:45:12.501974
2017-02-14T15:54:26
2017-02-14T15:54:26
79,835,773
0
0
null
null
null
null
UTF-8
Python
false
false
767
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-01 13:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='users'...
[ "khoshraftar.hossein@gmail.com" ]
khoshraftar.hossein@gmail.com
0324dd3dc62f88495cb95ea7424deef660c43536
e2e39726195c7bc075b9bd56e757acd136527d5c
/typings/vtkmodules/vtkIOXML/__init__.pyi
5a9a78845d01dba6a9f4391c9438656d0f13da23
[ "BSD-3-Clause" ]
permissive
gen4438/vtk-python-stubs
a652272183d2d1ee48d4639e86bcffc1ac454af0
c9abd76362adf387af64ce5ddbd04c5d3bebe9da
refs/heads/main
2023-04-04T02:13:15.459241
2021-04-15T10:47:28
2021-04-15T10:53:59
358,224,363
1
0
null
null
null
null
UTF-8
Python
false
false
3,682
pyi
""" This type stub file was generated by pyright. """ import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore import vtkmodules.vtkCommonExecutionModel as __vtkmodules_vtkCommonExecutionModel import vtkmodules.vtkIOXMLParser as __vtkmodules_vtkIOXMLParser from .vtkXMLReader import vtkXMLReader from .vtkXMLDataRe...
[ "g1e2n04@gmail.com" ]
g1e2n04@gmail.com
3c81c3f89b94937881d22e2ef06540a9c2752999
63626432d54708bb895c102c564847397a7ddb87
/ListenerApi2Events.py
beb93db675eca274fd5f2613f4e8eb19766f542d
[]
no_license
mikaukora/robotframework-listener-api-events
fb6f4279a4a27a9f3351e2896e17684331033f53
28584b8073516df05f8f921778e04b6f78e71ba7
refs/heads/master
2022-12-13T16:18:48.771586
2020-09-07T06:54:24
2020-09-07T06:54:24
293,446,319
8
0
null
null
null
null
UTF-8
Python
false
false
2,622
py
from websocket import create_connection import json class ListenerApi2Events(): ROBOT_LISTENER_API_VERSION = 2 def send_message(self, event, name=None, attrs=None, message=None, path=None): ws = create_connection("ws://localhost:5678/") info = {} info["event"] = event if name:...
[ "mkaukoranta@robocorp.com" ]
mkaukoranta@robocorp.com
26f00db3c32d9d29465643d06dc02532c017e608
8d9318a33afc2c3b5ca8ac99fce0d8544478c94a
/Books/Casandra DB/opscenter-5.1.0/lib/py-debian/2.6/i386/twisted/python/_inotify.py
c002674f122a6bd2a9e80aa2344b47edeff20f78
[]
no_license
tushar239/git-large-repo
e30aa7b1894454bf00546312a3fb595f6dad0ed6
9ee51112596e5fc3a7ab2ea97a86ec6adc677162
refs/heads/master
2021-01-12T13:48:43.280111
2016-11-01T22:14:51
2016-11-01T22:14:51
69,609,373
0
0
null
null
null
null
UTF-8
Python
false
false
51
py
../../../../../py-unpure/twisted/python/_inotify.py
[ "tushar239@gmail.com" ]
tushar239@gmail.com
a5f074b4c3dbcf95ececa07a42d1e17cdd081b40
1953ad2d8cc8a36e29d3d48e5458aeb69bf17bdd
/[2206]벽부수고 이동하기.py
96b44a27cedd966ef19ce8c5d99d396647b7cf34
[]
no_license
wookkl/backjoon-problemsolving
8b75ac4575ffdc15615bc5672f1d5358ac3016a4
fbe7e051c7513f52b2ac26472dfc34955013549d
refs/heads/master
2023-04-10T22:33:49.614340
2021-04-25T00:50:47
2021-04-25T00:50:47
219,535,847
0
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
from collections import deque dx=[1,-1,0,0];dy=[0,0,1,-1] def bfs(): q=deque([[0,0,False]]) cnt=0 vstd[0][0][0]=True while q: for _ in range(len(q)): r,c,b=q.popleft() if [r,c]==[n-1,m-1]:return cnt+1 for i in range(4): x=r+dx[i];y=c+dy[i] ...
[ "wjddnr315@gmail.com" ]
wjddnr315@gmail.com
af41a271f525131b50329d7c85145af2a2f0fe15
0f07fa3dbbd91ab8c38605f7d4f7f4fe49138f25
/budget/test/test_url.py
4e39de1f03dcc53fb10038214ce6bac984f29810
[]
no_license
akshay2424/django-testing-example
fe7fa4d81489840828fe82bcb66acbdc4653834b
77e6a27230d4034a345c300e35710996337e1276
refs/heads/master
2023-08-13T01:54:02.210965
2021-09-16T12:00:29
2021-09-16T12:00:29
404,025,449
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
from django.test import SimpleTestCase from django.urls import reverse, resolve from budget.views import project_list, project_detail, ProjectCreateView class TestUrls(SimpleTestCase): def test_list_url_resolves(self): url = reverse('list') self.assertEquals(resolve(url).func, project_list) ...
[ "demo@gmail.com" ]
demo@gmail.com
9a50a114a51d30f2c76516fd25e221f73c1435c6
2c716b9fac8d47d392b910e861bb738f47e3fdca
/try_tensorflow/alignment/util.py
6209de19a03e000b915f1ce5bb7ef05aed9ae8db
[]
no_license
easonnie/master-tensor
1eb3a043fea814e44c25d4e463f17b01c9c45d07
8cb2583f7634d1c03838e5e1bf8e03cbece1926a
refs/heads/master
2020-02-26T14:53:49.448212
2016-08-10T04:42:33
2016-08-10T04:42:33
62,082,239
1
0
null
null
null
null
UTF-8
Python
false
false
5,072
py
import tensorflow as tf def get_mask(input_len, max_time, batch_size): """ :param input_len: A tensor [batch_size] specify the input length of each Batch :param max_time: Max time step :param batch_size: Batch Size :return: A mask for 1d sequence inputs [batch, max_time] """ lengths_trans...
[ "nyixin318@gmail.com" ]
nyixin318@gmail.com
63203f447c110e2a884bbe8afcb0e393270b4256
ed0e0b3ceb3ca5f885d056a94d8d78c0926f4d97
/Tests/Unit/test_service_layer/test_services.py
e00e07dd050e7f21ce7661e546125e8e84989e3b
[]
no_license
JC-09/CS235FlixSkeleton-part-3
9bd6c0603f774fefa9f47ef7d15192b94d9b5ec8
cbc7e5723779825575d2fff05d5945986cb8e2fa
refs/heads/master
2023-01-01T14:14:56.947000
2020-10-25T07:55:50
2020-10-25T07:55:50
303,101,409
0
0
null
null
null
null
UTF-8
Python
false
false
11,766
py
from datetime import date import pytest from CS235Flix.authentication.services import AuthenticationException from CS235Flix.movies import services as movies_services from CS235Flix.authentication import services as auth_services from CS235Flix.movies.services import NonExistentMovieException, NonExistentActorExceptio...
[ "jonathancen0906@gmail.com" ]
jonathancen0906@gmail.com
3c03e2c9fad0a62cf6af453b96f9f41fd1acb4c2
29f3cb23d6c93c12ea1faeedc4a452e9f5b5ab19
/feedbackApp/migrations/0001_initial.py
b003421cd56b02ab5b0061917970cb85c4af2e50
[]
no_license
Kinga-penjor/jamyang-prj
205581c14b718c8a004515ee9f43d2699eeaa8a6
6e5e7b3f452cdce5a42703ae4536b60ffc2ea895
refs/heads/main
2023-06-08T19:21:18.037525
2021-06-28T21:06:46
2021-06-28T21:06:46
381,152,942
0
0
null
null
null
null
UTF-8
Python
false
false
1,745
py
# Generated by Django 3.1.5 on 2021-06-11 18:11 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
[ "noreply@github.com" ]
Kinga-penjor.noreply@github.com
e51206efcea2772f6ee55662e1707dd87a46f65b
8bd8a3ed654c47415cf0aa116e6feca21ca2e0c5
/grace/sermons/migrations/0003_auto_20171018_1015.py
50df3106f3fcb02dab2f23adc5cd24137c1f7c19
[]
no_license
VladGavrilooff1234/grace
833e6f3397a76ee551bdc2549f31efe0dbc580ef
05590324501de5889b8749ed29cfc7610ff9ea6f
refs/heads/master
2020-04-07T20:19:14.029685
2019-05-06T14:47:11
2019-05-06T14:47:11
158,683,472
0
0
null
2018-11-22T10:39:22
2018-11-22T10:39:22
null
UTF-8
Python
false
false
888
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-18 07:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sermons', '0002_auto_20171016_1508'), ] operations = [ migrations.AddField(...
[ "alexei.aksenov@gmail.com" ]
alexei.aksenov@gmail.com
479b5fb210e7fc41e00c6c7a392d78bddbf19cfe
4098a6519676431356ad879c27d032f2b3f8b3d0
/idiom_game.py
15882a1550dd116a7bac3c0d9fc99daf34a373ca
[]
no_license
Gzephyr/Idiomwinat-solitaire
ca5e4f1899559208256c77cbea8752ac21ed0c77
e15b39c5bff3d14eb8836d6b2f4587067d6ef3fd
refs/heads/main
2023-05-26T02:59:43.319126
2021-06-16T11:12:50
2021-06-16T11:12:50
377,467,713
0
0
null
null
null
null
UTF-8
Python
false
false
2,489
py
# -*- coding: utf-8 -*- """ Created on Sun Jun 6 20:53:16 2021 @author: 86181 """ import random import copy all_idiom = [] rand_all_idiom = [] memory = set() # 记忆集合,用于判断成语是否被重复使用 #set()函数创建一个无序不重复元素集,进行关系测试,删除重复数据 #将成语数据集读入 def readall(): global all_idiom, rand_all_idiom with open('idiom....
[ "noreply@github.com" ]
Gzephyr.noreply@github.com
2ae309ab7516c2e17c6d104bf77aa92bce5dbd7d
26e91aead18d0fad6f5ce8fc4adf7d8e05a2f07f
/byceps/services/board/models/topic.py
ddc5451016c5f326ba92595817d09bd24677a035
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
leathe/byceps
40c1f8a1aab3521fcac45d88eab6364d448d4e67
cd0c618af63fed1cd7006bb67da46eac0ddbb1c7
refs/heads/master
2020-12-02T09:02:51.087511
2019-12-14T17:00:22
2019-12-14T17:00:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,529
py
""" byceps.services.board.models.topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from datetime import datetime from sqlalchemy.ext.associationproxy import association_proxy from ....blueprints.board.authorization import ( B...
[ "homework@nwsnet.de" ]
homework@nwsnet.de
1f5c2bd6304a0c9d074d8c9541a0eb810b6bf790
45006b78675997765c2248ce2944aa24c9cd3787
/tf_agents/bandits/policies/policy_utilities.py
9d39be6fd7480a0e6372bfa270c35c47d4db578c
[ "Apache-2.0" ]
permissive
ymodak/agents
43d2105965db763b07233139c0b87896c956547a
a6ab65605a6910cb3130a500614d006c9271157b
refs/heads/master
2022-09-24T03:47:05.815845
2020-05-18T18:02:40
2020-05-18T18:03:03
265,031,865
0
0
Apache-2.0
2020-05-18T18:50:52
2020-05-18T18:50:51
null
UTF-8
Python
false
false
8,891
py
# coding=utf-8 # Copyright 2018 The TF-Agents 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...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
be8eb5971f2b8e1e26457e6d656cc20a49cc56d9
e6be04e3683f9ea2e6acea7662871ce2891dbb72
/assignment1-training1.py
fbbf882fdfe3808421b687e78003c6e2ef6a7903
[]
no_license
amiralimoghadamzadeh/assignments1-3
fb5f5b69f654cd4a38da0d067fb7b6a0886cd171
4cbaa9e934e12ce16d7ad3d504f95c50e2a6c214
refs/heads/main
2023-09-04T09:47:35.059973
2021-11-07T11:50:56
2021-11-07T11:50:56
425,489,142
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
first_name = input("enter your first name") last_name = input('enter last name') s1 = int(input('whats your first score?')) s2 = int(input('whats your second score')) s3 = int(input('what is your third score?')) avg = int((s1 + s2 + s3) / 3) if avg << 10: print(first_name,last_name,'mashroot') elif 10 << av...
[ "noreply@github.com" ]
amiralimoghadamzadeh.noreply@github.com
2478a4b7c246b5b1f9e6e2b017c98a41b9d31ff9
6d92a12a9e4627d447deeee2b2a804191568681d
/day18.py
3a491f9880b4e64124e38b2d4b991b1eccb042ed
[]
no_license
mayojava/adventOfCode2020
704093ebff5eb1045842b4d46240232752f029f0
efbc6450354ec7c14c8f40117c681cdef3d30e4a
refs/heads/main
2023-02-06T04:34:10.207563
2020-12-25T10:56:48
2020-12-25T10:56:48
324,337,879
0
0
null
null
null
null
UTF-8
Python
false
false
1,900
py
def main(): f = open('day18.txt', 'r') sm = 0 for line in f: line = line.strip() stack = [] for i in range(0, len(line)): current = line[i].strip() if len(current) == 0: continue if current == '(': stack.append('(')...
[ "mayox4ever2006@gmail.com" ]
mayox4ever2006@gmail.com
f5b2ea2f20edbedb90a3351960045e897c52f2c3
db98aeb4883d2aa9969970d353b9d6212c7dbde2
/lectures/07-python-dictionaries/examples/dna9.py
f71e08b870a9f5ce84946e6c88096ad74de04bfa
[ "MIT" ]
permissive
qianwenluo/biosys-analytics
cec7e84477e01f9aa17e30c1fd8286710deed617
f936095931fa8f237de8bdf058b960db86effa49
refs/heads/master
2020-04-15T20:19:25.669143
2019-05-07T17:52:17
2019-05-07T17:52:17
164,988,099
0
1
MIT
2019-01-10T04:12:20
2019-01-10T04:12:20
null
UTF-8
Python
false
false
478
py
#!/usr/bin/env python3 """Tetra-nucleotide counter""" import sys import os from collections import defaultdict args = sys.argv[1:] if len(args) != 1: print('Usage: {} DNA'.format(os.path.basename(sys.argv[0]))) sys.exit(1) arg = args[0] dna = '' if os.path.isfile(arg): dna = ''.join(open(arg).read().spl...
[ "kyclark@gmail.com" ]
kyclark@gmail.com
90cfe023a486800c522f045b7b3674252d5bfa76
eaa10dda27889d451c205fee9aa8139bf68c6e4d
/coder.py
2bfd93f7d4a151d69d4fb1faff3d90339a46ecaa
[]
no_license
difranco/DREAM5-inference
581c0152745f4c1fb6a5186afdae79afa91aee34
ee09b35f78969296121724114b3d94d7dc031ddc
refs/heads/master
2020-06-15T17:36:09.370485
2016-12-12T08:48:37
2016-12-12T08:48:37
75,275,013
2
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
from collections import defaultdict from sys import intern class Coder: """ Creates sequential ids for objects and keeps track of them useful e.g. for filling out a matrix with info related to objects and translating back and forth between matrix indices and the objects """ def next_id(self): ...
[ "di.franco@gmail.com" ]
di.franco@gmail.com
073b6b152e0805dbc16dce1d402482e505bd9770
9d5723c09148cc353e5339a706ba582a162dceec
/hunkim/lab12-5.py
822c653469deeadaddde45a16a92e53b9bc3eaab
[]
no_license
SilverQ/dl_study
424bce279c059c290a4c766e87fadb150fff82da
663b432abc5afd0eed278368a5fea19ece6a383c
refs/heads/master
2022-11-14T08:27:10.937535
2020-07-02T10:05:04
2020-07-02T10:05:04
82,505,280
0
0
null
null
null
null
UTF-8
Python
false
false
6,120
py
''' The original script shows how to predict the next day's closing stock prices using a basic RNN https://github.com/hunkim/DeepLearningZeroToAll/blob/master/lab-12-5-rnn_stock_prediction.py At first, let's understand the original code and prior arts completely ''' import tensorflow as tf import numpy as np import ma...
[ "scor9947@hanmail.net" ]
scor9947@hanmail.net
36cc5a4f3b24b18cffd92d7046c81ced4ac397e1
75089d61a7f985fc23a3e29e6517a744c1b5c76b
/data/__init__.py
ce8ecdf19bf474e1e68babbf0bdf5d154c34d3d5
[]
no_license
KUR-creative/data-warehouse
e4e85ffa7cd0ec416bb67c62aef624bca6323370
e1e4720f8ad529291f2c36b1c284a6e4b15ac637
refs/heads/master
2023-01-21T14:21:54.533736
2020-12-03T06:34:20
2020-12-03T06:34:20
288,881,020
0
0
null
null
null
null
UTF-8
Python
false
false
27
py
from . import ( raw, )
[ "rhdnfka94@gmail.com" ]
rhdnfka94@gmail.com
e07ee181de234248ff9216f45bdb1340e32fea69
d6b3bc97fec0237e5a367674aeb94ee292400d81
/graph.py
d56dc59e4997b7b485ab869350f3665671c8bbaa
[]
no_license
bilaer/Algorithm-And-Data-Structure-Practices-in-Python
e75c63cfcae9939f14b87aeae293c83d575e0225
c031d299db8e112c3ffa0c21157bd677da8c4c33
refs/heads/master
2021-01-01T06:57:04.506788
2017-07-19T16:54:36
2017-07-19T16:54:36
97,559,184
0
0
null
null
null
null
UTF-8
Python
false
false
3,210
py
import queue import copy class Vertex(object): def __init__(self, vertexId): self.vertexId = vertexId self.vertexList = set() self.vertexCost = dict() def hasAdjVertex(self): return len(self.vertexList) != 0 def addAdjVertex(self, v, weight): self.vertexList.add(v)...
[ "wliao@andrew.cmu.edu" ]
wliao@andrew.cmu.edu
ee9cee9c908ac3278c8545a66f4d96149faae702
7ce05272d21c903abc85ebc74544009aacd80c82
/Advance_Python/Python_Database_Programming/Other/add_user_in_bank.py
5c2f984a2d9a435280b32ffcf34ffcf45b74ed87
[]
no_license
sachinyadav3496/PythonInternBatch2018
8899a866f60a39b4c7eff4f5bc79ec2586833403
8e2610ad80c39ea747e8a6547ebe540e7b019a79
refs/heads/master
2021-06-26T09:18:58.178457
2020-10-03T09:49:32
2020-10-03T09:49:32
136,880,809
18
34
null
2020-10-03T09:49:33
2018-06-11T05:56:26
Jupyter Notebook
UTF-8
Python
false
false
548
py
import pymysql as sql db = sql.connect(host='localhost',port=3306,user='bank_app',password='redhat',database='bank_app') c = db.cursor() f = open('bank_data.csv') data = [] for line in f : d = line.split(',') d[2] = float(d[2][:-1]) data.append(d) f.close() for var in data : name = var[0] p...
[ "sachinyadav3496@gmail.com" ]
sachinyadav3496@gmail.com
6f991dee711262f4d305164906f281370d56dcc8
4122761aa8fa29a57248d5cc6efa09c3aec22012
/utility/textpredictor.py
76724dd12ea355c163e292831b6614803c1cc42d
[]
no_license
DeltaSierra4/SLFYCare
004b08cfee6b2a8a416e1dcf5f45e2c4f27c8bb4
625f83ff7830d29a9f0123e62c2bce0295757b1a
refs/heads/master
2020-12-27T06:07:55.625759
2020-02-02T15:22:26
2020-02-02T15:22:26
237,789,461
0
0
null
null
null
null
UTF-8
Python
false
false
2,411
py
#!/usr/bin/env python # coding: utf8 """Train a convolutional neural network text classifier on the IMDB dataset, using the TextCategorizer component. The dataset will be loaded automatically via Thinc's built-in dataset loader. The model is added to spacy.pipeline, and predictions are available via `doc.cats`. For mor...
[ "noreply@github.com" ]
DeltaSierra4.noreply@github.com
fbcf2765ede98d3822c8da95a849902cd2e9b39e
21f34c61ce7f3ca154b37aeb5dfd32d9ac3236e5
/leetcode/1295_even_digits.py
2c89087622b25c5c3070ce4b92b1df0c2ba97b2b
[]
no_license
codingbbq/python-katas
b3b5fa15419766b37390e40e864ce90be2664f55
44241dae4394939f963787aab08d5e7c290dbb9a
refs/heads/master
2021-06-27T15:28:57.775778
2021-01-05T10:17:53
2021-01-05T10:17:53
184,697,423
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
# 1295. Find Numbers with Even Number of Digits # https://leetcode.com/problems/find-numbers-with-even-number-of-digits/ from typing import List class Solution: def findNumbers(self, nums: List[int]) -> int: count = 0 for x in nums: if self.countDigit(x) % 2 == 0: count...
[ "codingbbq@gmail.com" ]
codingbbq@gmail.com
908d6b9bdd11c832f27b876675752c230f0dd8e9
901bfc797cc369c0bea21167ac471d0311cb93ac
/e3/DiffieHellman.py
bf11a36e45a5949541a91c675a66430dd0b9b984
[ "MIT" ]
permissive
NigrumAquila/subject_cryptographic_protection
022216fd1481febc3a010efdfd11ab3398c73d00
2b4015b3c1b6d57391e866a70d308e78e5cab719
refs/heads/master
2021-03-17T15:58:10.590822
2020-05-01T06:30:54
2020-05-01T06:30:54
247,001,657
3
0
null
null
null
null
UTF-8
Python
false
false
858
py
import __main__ if __main__.__file__ != 'main.py': exit('run main.py') from .DHlib.DHalg import encrypt, decrypt, getSharedSecret, printAllKeys, printParams from lib.colors import * from lib.duty import * key = getSharedSecret() printAllKeys() while True: printParams(); message = typedText('Enter me...
[ "kononenko-1999@bk.ru" ]
kononenko-1999@bk.ru
7e077f1e8b1f141b4fccb4ab0ce5ff8a66be4fa0
b6ab4693aa077097a8b503aeacafb53c8761aeaf
/src/falconpy/_endpoint/_falconx_sandbox.py
fa14f3158ccb5c07da33b520f35d12c0559f2b68
[ "Unlicense" ]
permissive
woodtechie1428/falconpy
36bd2ed85f629b43e7644c2c29d369eda3800ff7
fcbec209f04a8d2340c66a5bea5c27c421f550d1
refs/heads/main
2023-08-03T09:14:10.930495
2021-09-10T15:58:39
2021-09-10T15:58:39
406,604,183
0
0
Unlicense
2021-09-15T03:44:50
2021-09-15T03:44:48
null
UTF-8
Python
false
false
13,381
py
""" _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | |: 1 | |::.. ...
[ "noreply@github.com" ]
woodtechie1428.noreply@github.com
c73480ee59b61505ed6d24fb36af2b8ebb8a8f45
a0cf17db6095722c88b2e2d605c6ccf4e7a364dd
/consensuscluster/tests/test_get_ax_size.py
d36cbd97940f5f9bfe2830f0d3899d901a344cfc
[]
no_license
GolLight/Single-cell-cluster-recognition-system
25aae8e671a85191e80fb12968009020060fc226
077885baf552393395c9a43449e3a105efe5c53b
refs/heads/master
2021-05-17T14:51:01.394256
2020-05-25T08:32:31
2020-05-25T08:32:31
250,829,627
5
1
null
null
null
null
UTF-8
Python
false
false
5,240
py
"""Contains unit tests for the function _get_ax_size. There are a lot of moving parts involved in writing these tests, so I felt it was best to encapsulate them all in their own file. The reason there's so much going on here is that we want to test a whole bunch of combinations of: * Various Figure-sizes * Various DPI...
[ "44321573+GolLight@users.noreply.github.com" ]
44321573+GolLight@users.noreply.github.com
ceebf67a85fa9c0b8a799faca28119ca339f27b9
7242e2b2e2bdb54944ac965f3f39ff69e7b806e3
/featureeng/Filter.py
e17c2bded3cb2b7bc9abb449cddc396e873040e9
[]
no_license
roshanmadhushanka/Yahoo
917090ae6dcd3e87ef4af0bcf267f853b80422a2
47c9586781f5c929697d58cf0761fe2f0e2902aa
refs/heads/master
2020-06-12T05:54:16.279668
2016-12-08T01:56:56
2016-12-08T01:56:56
75,601,588
0
0
null
null
null
null
UTF-8
Python
false
false
5,621
py
import numpy as np import pandas as pd def threeSigma(series, threshold=3): ''' Identify anomalies according to three sigma rule Three Sigma Rule ---------------- std = standard deviation of data mean = mean of data if abs(x - mean) > 3 * std then x is an outlier :param threshold: 3 ...
[ "roshan alwis" ]
roshan alwis
8c29871ccc383ff4fb417ccd8d0b558894d55db8
26ec8ef7f5ebba126d59ac88d0f026b0a936c539
/4_hard_findMedianSortedArrays.py
800a06f39fbdee5f11c913a170287a91a4137929
[]
no_license
JohnnySu-SJTUer/LeetCodeLearning
d5187819e1ee7982f349bf901d43d80088c86f2d
bedf04fc1d1bdf6f775725151e1c2a98705ce737
refs/heads/master
2020-04-16T07:50:40.443027
2019-03-28T15:15:10
2019-03-28T15:15:10
165,401,418
1
0
null
null
null
null
UTF-8
Python
false
false
917
py
class Solution: def findMedianSortedArrays(self, nums1: 'List[int]', nums2: 'List[int]') -> 'float': l = len(nums1)+len(nums2) if l%2 == 1: return self.kth(self, nums1, nums2, l//2) else: return (self.kth(self, nums1, nums2, l//2)+self.kth(self,nums1,nums2,l//2-1))/2 ...
[ "Johnny.wySu@sjtu.edu.cn" ]
Johnny.wySu@sjtu.edu.cn
eaa3899de8a8f9ae7d1a85242e4f65dffb9305e0
ce00a7dcaa15b510aa9d2f639d7e4a94ee05a8a7
/virtualenviron/lib/python3.6/sre_constants.py
f0d376fda8e6cb44cd7d970470308e766ebeb872
[]
no_license
karthikgr23/my-first-blog
102e8eb3827f49b1c7bfae41c9a5d2ef99619e72
8a5016338f7650d231f0b0418814dee2b4b427f2
refs/heads/master
2021-04-26T22:16:07.005499
2018-03-06T12:50:13
2018-03-06T12:50:13
123,902,613
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
/home/karthikgr/anaconda3/lib/python3.6/sre_constants.py
[ "karthik.1rn14cs040@gmail.com" ]
karthik.1rn14cs040@gmail.com
9179bc2056bb20944f1a658cd714cd709d8fbea2
75467b6481708e8f1eeb62da92bb6a028aa8477c
/AD/apps.py
c70ba505f4157b6d318b5183bcae08f5e3bf2518
[]
no_license
hossein-76/radio_javan
a19936f55b40592acec75329fc448306f05cf98b
c520ea7cc464c79f9b448904b97b6c3e27800964
refs/heads/master
2022-12-20T20:29:52.162084
2019-07-26T16:09:52
2019-07-26T16:09:52
199,034,705
1
0
null
2022-12-08T01:22:48
2019-07-26T14:52:00
Python
UTF-8
Python
false
false
81
py
from django.apps import AppConfig class AdsConfig(AppConfig): name = 'ADs'
[ "hossein76rahimi@gmail.com" ]
hossein76rahimi@gmail.com
a4315be2234838908f42b3d2d0d042647f384c92
a80884040ce1c178274a3068d216f440dd541844
/tests/regression/test_tee_map_completion.py
07635a9b627669bb5320d9242fc4ef3be123bf53
[ "MIT" ]
permissive
maki-nage/rxsci
a4aae51edc1ef684b55df22e34c11aa1d54ef740
915e59ebf593c4b313265bb87cf0e1209ec2ee0f
refs/heads/master
2023-01-19T14:32:11.638497
2023-01-17T08:06:35
2023-01-17T08:06:35
242,592,973
9
2
MIT
2022-11-08T21:54:16
2020-02-23T21:23:56
Python
UTF-8
Python
false
false
464
py
import rx import rx.operators as ops import rxsci as rs def test_completion(): data = [1, 2, 3] actual_data = [] actual_completed = [] rx.from_(data).pipe( rs.ops.tee_map( ops.count(), rs.math.sum(reduce=True), ) ).subscribe( on_next=actual_data.app...
[ "romain.picard@oakbits.com" ]
romain.picard@oakbits.com
1c932818631a21d3047779106c52d81d12e86a87
799510a1bf8a271e4dbdc7bf1548881e67b3eb84
/p-99/p09.py
267494664c368af52196b375b3dde44ae398e4db
[]
no_license
foodhype/practice
a5b434cd64604f0d6b1cf013a9c49866b61b4207
0cf77cfd26b3d5cc71f80afdcfbf8046923c84fa
refs/heads/master
2021-01-10T19:44:33.185046
2015-03-05T23:48:26
2015-03-05T23:48:26
15,242,836
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
def pack(li): packed = [] running_elem = None current_run = None for element in li: if element == running_elem: current_run.append(element) else: running_elem = element current_run = [running_elem] packed.append(current_run) return packed def main(): li = ['a', 'a', 'a', 'a...
[ "brianschmitz.main@gmail.com" ]
brianschmitz.main@gmail.com
6967ee97c749445740d9a111355532bd09a8007b
80dca48156a080f8f0e25c79f86b78c6dff95fc4
/apps/core/views.py
d9cb2954d5c83540d9bfc8328ce1b412681cd87d
[]
no_license
gaguilarmi/react-firebase-reflux
7b18ff60a91b7db8440d6f1d21a12990900779dc
9e625dd9d316172f0bc2edbfe95c2bdc02150ccf
refs/heads/master
2020-12-24T16:14:53.540732
2015-07-08T14:58:54
2015-07-08T14:58:54
38,760,356
1
0
null
null
null
null
UTF-8
Python
false
false
138
py
# -*- coding: utf-8 -*- from django.views.generic import TemplateView class IndexView(TemplateView): template_name = 'core/index.html'
[ "gaguilar@mediainteractiva.net" ]
gaguilar@mediainteractiva.net
c25ffc67fbe5a254079333e36cdc5e64b0ab3001
af019c9443958d2f2497468e38e3e3a5a63c05bc
/main.py
e5ac0e580a4fe39d5e56022860fa55fb966cae82
[]
no_license
jackieallam/day11-blackjack
c3679609e58b56e19de8efef242969b3da1879f6
14f12dbf632d5b7d18f90513b85c8b30fe8ae430
refs/heads/master
2023-06-15T15:06:40.781296
2021-06-29T15:02:31
2021-06-29T15:02:31
328,802,266
0
0
null
null
null
null
UTF-8
Python
false
false
2,797
py
# ############## Blackjack Project ##################### import random from art import logo from os import system # system("clear") play_again = True cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10] end_message = { "win_bj": "Win with a Blackjack 😎", "lose_bj": "Lose, opponent has Blackjack 😱", "win...
[ "jackieannallam@gmail.com" ]
jackieannallam@gmail.com
3e348edb55816858db38924bb78bde6527da1d9b
867abdb2cd546e9ecfd92c8cf02bc928714603b6
/src/segment.py
eec347cbf81b5c84b662773a38fdc136a5824dec
[]
no_license
sonatamint/pydevTest
985d414b14aaa321c54e561134a91e6b12408465
c517d7c8225fa15698b3398b18458a8fe57d716a
refs/heads/master
2020-04-22T00:29:41.625973
2019-02-10T13:31:24
2019-02-10T13:31:24
169,981,378
0
0
null
null
null
null
UTF-8
Python
false
false
852
py
#encoding=utf-8 import os import jieba import re inglist = open('C:/facts/ingList.txt', 'r', encoding="utf-8") alllines = re.sub("\s+|\r\n", " ", inglist.read()) for wd in alllines.split(' '): if len(wd)==1: print(wd) ''' jieba.add_word(wd) outfile = open('C:/facts/ingredients.txt', 'w') for r...
[ "songbo.sch@gmail.com" ]
songbo.sch@gmail.com
8d0e3b733f372a26073bb0aadd788b781e5a8715
d59db8f77bb046e298cd56a8ca4be8530937d19e
/LinkedList.py
a1c377353e5d041c5e020a1345ad485aa58aafbf
[]
no_license
Kobyadu1/Class-Projects
de3006ae40e9e407adff754df00829f60dc4f97a
31afb26f50a3ba8de861d2e176b4a4807525aaf9
refs/heads/master
2022-12-11T23:32:55.278585
2020-09-05T18:26:05
2020-09-05T18:26:05
293,130,353
0
0
null
null
null
null
UTF-8
Python
false
false
2,646
py
class ListNode: prev = None next = None data = None def __init__(self, prev, next, data): self.prev = prev self.next = next self.data = data class LList: head = ListNode(None,None,None) tail = ListNode(None,None,None) def __init__(self, startdata): ...
[ "noreply@github.com" ]
Kobyadu1.noreply@github.com
d60d8e14e831c0191ef2510644b7bc3cce6a9b07
b11c263432483e2bea42f14c35e71e6a75e0f038
/jasper/client/modules/Weather.py
1797ca07ab340c27f671ca34a04864e157ae5622
[ "MIT", "LicenseRef-scancode-other-permissive" ]
permissive
pyroesque/jasper_home_automation
69f02e142d92e790f0e9b4dba0920b1c9730eb28
36abb590a876f986d0cebe5c1281ca9616a6d5d2
refs/heads/master
2020-05-31T14:25:15.735664
2015-09-02T19:50:22
2015-09-02T19:50:22
41,823,500
0
0
null
null
null
null
UTF-8
Python
false
false
3,390
py
import re import datetime import feedparser from app_utils import getTimezone from semantic.dates import DateService WORDS = ["WEATHER", "TODAY", "TOMORROW"] def replaceAcronyms(text): """Replaces some commonly-used acronyms for an improved verbal weather report.""" def parseDirections(text): words ...
[ "cdjones42@gmail.com" ]
cdjones42@gmail.com
2ed5006395d6e55cc012484b9d82f09f074e11cf
8fc2ab3d29a30e603e19b30bb9517928de529167
/hackerank_whatsnext.py
2d44363c21597514612dc972cc035e6441f66752
[]
no_license
rushilchugh/Practise
35a9861bec6786580dc0a440eb25d78e43cb7bc9
98fd593b95dad641bef1d519c6c6ed1daaae630f
refs/heads/master
2020-03-13T21:14:14.013604
2018-04-27T12:23:50
2018-04-27T12:23:50
131,291,684
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
__author__ = 'Rushil' #SetCount(x) - Number of ones in an binary number x #Johnny wants to find a binary number, D, that is the smallest binary number >B where setCount(B) = setCount(D) #He then wants to compress D into an array of integers,C (in the same way that integer array A contains the compressed form of bi...
[ "noreply@github.com" ]
rushilchugh.noreply@github.com
1735148bff67a24d8a32629ee813a3ceab208dcd
fc66ee8b51974e23d8931ed0bef895d42c5a806d
/Reversi.py
9e639ee60964aff6a0197f481f1de32399c4dec8
[]
no_license
sirigowda/Reversi-Game
d87434f11420935b235acd93f8d88d24e2c46611
d44a6f83a42a27149f9cf20fa5e9eb822339d24b
refs/heads/master
2021-01-21T22:54:52.437683
2017-09-20T01:03:09
2017-09-20T01:03:09
102,177,005
0
0
null
null
null
null
UTF-8
Python
false
false
14,876
py
import copy import constants import Pawn class Reversi: moves_made = [] state = [[]] moves = "" moves_list = [] # start game def __init__(self, intialstate, startplayer, maxdepth): self.state = intialstate self.maxdepth = maxdepth self.startplayer = startplayer ...
[ "siri.m.gowda@gmail.com" ]
siri.m.gowda@gmail.com
fcf8a3b00da21365dc2045c95a6867034dcee9d5
f3d63f6138d389e1309d0ab979df2fd12722ced6
/sound2h.py
e37868951682c889610b931639715e61ecc93481
[ "MIT" ]
permissive
TrashRobotics/HalloweenPumpkin
43b2199cc2876294f8f9e4259be6c9f75f997592
4ee6217512a527123efe528d72fc2c5feda60e7c
refs/heads/main
2023-08-23T22:00:04.137899
2021-10-22T08:42:50
2021-10-22T08:42:50
417,945,007
1
0
null
null
null
null
UTF-8
Python
false
false
628
py
import re fileName = 'test.raw' name = "sound" #re.split('\.|/', fileName)[-2] fin = open(fileName, 'rb') fout = open(name + ".h", "wt") audioLen = 0 audioData = '\t' count = 0 byte = fin.read(1) while byte: audioData += hex(ord(byte)) + ', ' audioLen += 1 count += 1 if count >= 8: audioDat...
[ "trashrobotics.ch@gmail.com" ]
trashrobotics.ch@gmail.com
28d7d37773b000b74a0651e75715b1992064c925
5d5f6ba3bdcb52b4750a5f28afa8a1a1019bfc9e
/python_basics/python_fundamentals/functionsIntermediate/functionsIntermediate1.py
d4c0b59e7de7fe8d6ba8eb493267361224b8c5de
[]
no_license
eDiazGtz/pythonLearning
06e96f2f5a6e48ac314cb815cf9fbf65d0b7c2c8
57d7b2292cf5d9769cce9adf765962c3c0930d6c
refs/heads/master
2023-06-18T02:16:09.293375
2021-05-03T18:09:52
2021-05-03T18:09:52
335,090,531
0
0
null
2021-05-03T18:09:53
2021-02-01T21:35:24
Python
UTF-8
Python
false
false
1,200
py
import random # random.random() returns a random floating number between 0.000 and 1.000 # random.random() * 50 returns a random floating number between 0.000 and 50.000 # random.random() * 25 + 10 returns a random floating number between 10.000 and 35.000 # round(num) returns the rounded integer value of num 0.5 roun...
[ "ediaz-gutierrez@hotmail.com" ]
ediaz-gutierrez@hotmail.com
4387b314fbbb54d13628a3b5b6aa324d95f2a407
1521fac676bca12a994e48f4145fe7e7184a822d
/blog/migrations/0009_employees_gender.py
43ca33a6bbeadca00bfc89c955bbed30e75858ae
[]
no_license
foovaa/ie_project
b0dc67b10edb229544233189b118c2dfa1482e05
18e3402d8639c0f2e78d83806ec71475c74f92f2
refs/heads/master
2021-07-10T12:33:52.628215
2021-02-13T10:10:04
2021-02-13T10:10:04
230,398,034
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
# Generated by Django 3.0 on 2019-12-24 17:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0008_employees_age'), ] operations = [ migrations.AddField( model_name='employees', name='gender', ...
[ "fedo@localhost.localdomain" ]
fedo@localhost.localdomain
8863ba9a0134655bdf9da3eb44538128cf32f2d2
62e1ca03e2afa0fcaa386b075ad514e3dcaa8b6f
/I0320039_soal2_tugas3.py
e89f72e7590aff9bec249cdc069ff918f6511d54
[]
no_license
Fahruddinari/Fahruddin_Ari_Wicaksono_I0320039_Andhika_Tugas3
852230856180d578ddc7dbb64471d594b7e6b4d2
6cc707c2f4eb62e7e893954881d36b19439717a1
refs/heads/main
2023-03-22T23:07:59.090902
2021-03-19T10:53:24
2021-03-19T10:53:24
349,378,660
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
#Membuat program dictionary biodata = {'nama': 'Fahruddin Ari', 'hobi1':'ngegame', 'hobi2':'lari', 'hobi3':'bermain bulu tangkis', 'sosmed1':'uddinaja_', 'sosmed2':'uddinsukamamba', 'sosmed3':'lambe_moba', 'lagu1':'balonku ada 5', '...
[ "insyafri@gmail.com" ]
insyafri@gmail.com
f7435178ccc683de1d2885f05319ad9cdb3527a9
64f6fc569ccace5a8fd3fa837d8d3815936b1cca
/len.py
4d5a492ed9ff17b1ffafb876684ca4415dedf00f
[]
no_license
odairpedrosojunior001/Udacity_IPND
80cbf8031de74661202bd9420a33b3b16af8b08b
1306eb1417288fac09b45782597e018e7a3e8046
refs/heads/master
2020-03-29T07:27:21.948928
2019-02-05T00:24:02
2019-02-05T00:24:02
149,665,780
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
test_string_1 = "This is a good NOUN to use when you VERB your food" print len(test_string_1)
[ "noreply@github.com" ]
odairpedrosojunior001.noreply@github.com
d57f83bffdfb4d3b6a1515261b2d121eadb2561f
8ed86b8e9c451abcb2ce0ddf2f2067c11f3993d8
/osmnx/simplify.py
9a7f930496b164cd592daeb1d16d9989edec354f
[ "MIT" ]
permissive
surfcao/osmnx
65830096c21b8353a536f776dfedba7de20eac4c
51c9addb42425657fa6b11c7442f79f10b9e3e22
refs/heads/master
2021-01-19T23:32:40.068378
2017-04-19T20:22:01
2017-04-19T20:22:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,568
py
################################################################################################### # Module: simplify.py # Description: Simplify and correct network topology # License: MIT, see full license in LICENSE.txt # Web: https://github.com/gboeing/osmnx #########################################################...
[ "gboeing@berkeley.edu" ]
gboeing@berkeley.edu
aa0c4ed9935283356909351e267db22a24e3bf0b
913e24ea110f839c73363bc1aac9673e561fa5f8
/gym_environments/widowx_env/envs/v41_widowx_pybullet_env_fixedGoal_actionStepCoeff25_noBounds_1joint_reward16.py
08772e2ee4242328bac40c5c52cdb93a98e9dff2
[ "MIT" ]
permissive
PierreExeter/WidowX-reacher
24e2b3f72e9aec24a9a61e6a8958c200e0dbe893
560c6779dc91a887191f344c43de24926ba75b4d
refs/heads/master
2023-03-06T13:48:12.810858
2021-02-22T15:36:52
2021-02-22T15:36:52
264,480,232
4
0
MIT
2021-02-22T15:27:44
2020-05-16T16:36:53
Python
UTF-8
Python
false
false
17,140
py
import gym from gym import error, spaces, utils from gym.utils import seeding from numbers import Number from collections import OrderedDict import pybullet as p import pybullet_data import os import numpy as np import random # ENVIRONMENT CONFIGURATION NEUTRAL_VALUES = [0.015339807878856412, -1.4839419194602816, ...
[ "pierre.aumjaud@gmail.com" ]
pierre.aumjaud@gmail.com
6ddfdae3b363584b1b4840702b657f759e0c0da3
697e341ee6c0641cb8699ab88129ad343dcc9fde
/docx_fanyi.py
0f0ed65d183bcf0e04f5e62c4aca2a3b59182bd0
[]
no_license
PANBOHE/googleTranspy3.6
944aad7d3f351b8e65e6ba72bb856b49a6687e13
783b1fa7fc846e5ee45809f596f9fe1b523e9747
refs/heads/master
2020-04-24T01:55:53.243035
2019-02-20T06:57:51
2019-02-20T06:57:51
171,617,894
0
0
null
null
null
null
UTF-8
Python
false
false
1,993
py
# -*- coding: utf-8 -*- # @File : docx_fanyi.py # @Author: Panbo # @Date : 2019/2/20 # @Desc : import time import os import traceback import docx from docx import Document from googletrans import Translator g_log = None g_trans = Translator(service_urls=[ 'translate.google.cn', ]) def translate_buff(bu...
[ "hepb@chinaunicom.cn" ]
hepb@chinaunicom.cn
79544c774dc44900e7a3b50b31cd598892ed8018
ad9261738cd35560b3bcad7ef90edf6f4763c7a7
/Flags.py
3d9d8bf7f9250354cb24f696e64c36a53c6e897e
[ "MIT" ]
permissive
hackerYM/codility-sample-code
a0c33f68b22c933abce448c3ab01f07c4c8126ef
de08519118a079eac1ed4cdfc566fe1f0fc0fe9b
refs/heads/master
2023-03-20T09:50:20.735641
2021-03-14T10:19:53
2021-03-14T10:19:53
175,593,644
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
def solution(A): peaks = [idx for idx in range(1, len(A)-1) if A[idx-1] < A[idx] > A[idx+1]] if len(peaks) < 3: return len(peaks) nexts = [] for peak in peaks: nexts += [peak] * (peak - len(nexts) + 1) max_flag = [i for i in range(len(A)) if i * (i-1) <= peaks[-1] - peaks[0]][-1] ...
[ "hacker.yenming@gmail.com" ]
hacker.yenming@gmail.com
63d70140049c304b134777030f178f040cf88238
d0ecb327aa4f51b78a26434b5ac321aa1d4b7adf
/small.py
adbd1219a9a2d7b1450b377772853a715b168196
[ "MIT" ]
permissive
CrownCrafter/School
853cd0297739c9e6b0e1fecb9d2820a625136ec3
488810b223ad746d7d1b396e609ce8f90f25662c
refs/heads/main
2023-03-06T22:50:52.462224
2021-02-16T13:45:54
2021-02-16T13:45:54
327,005,394
0
1
MIT
2021-02-06T10:03:43
2021-01-05T13:21:32
Python
UTF-8
Python
false
false
191
py
#!/usr/bin/env python3 lis = [] while(True): x = int(input("Enter number ")) lis.append(x) i = input("Finished? ") if(i == 'y'): break print(min(lis)) print(max(lis))
[ "ayush.mudunuru@gmail.com" ]
ayush.mudunuru@gmail.com
2276a5e908cbc0767016fa9235b0889ad1a2b7b8
504a44be2a37170137139596c4ef34c27b6242e4
/app/admin/Customer/playground/config/wsgi.py
d2399f7a8c05118c77c0f1403ee1adc31d672abc
[]
no_license
princessjacob/Finals-Webtek-Lab
7ad915eaa4a6d9c1ec9905c7aa45af49f6e59443
979f558070ad7d1a5483501828d9ceb7bfeeb228
refs/heads/master
2021-01-19T20:11:50.353926
2017-05-19T13:56:23
2017-05-19T13:56:23
88,492,569
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" WSGI config for petkovetmo project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
[ "jacobprincess27@gmail.com" ]
jacobprincess27@gmail.com
a6da7c02ce3322c5d0e085019208ee3f4c9c7d5a
5f8b1beafc1a293f21d45a30247348cfc6f99299
/gigasecond/gigasecond.py
d863071267eb095e9f1a10ee1756c62cc8487719
[]
no_license
vineel96/PythonTrack-Exercism
aca3d16b0ca352060a7ab16c2627f44695f6b855
c756cf38e39aa6347199cf3143f8b401345ad832
refs/heads/master
2020-06-20T17:43:48.972591
2019-07-30T06:54:51
2019-07-30T06:54:51
197,196,771
1
0
null
null
null
null
UTF-8
Python
false
false
110
py
from datetime import datetime , timedelta def add(moment): return moment + timedelta(seconds=pow(10,9))
[ "vineel_abhi96@yahoo.com" ]
vineel_abhi96@yahoo.com
dcf32321584fe37884e0f4817db5a71e31b2c2c1
b0c2f67b2878a312c6e6ffa5fe4158bd55dad69c
/chap4/exp4.1.py
55fe517c4d14c71d71fb13cf69c53d6a324056ee
[]
no_license
loukey/pythonDemo
efda51be07beede0be2a8cdaae9b7e153bc790bc
9e6f64908ccba64d32ffc58edbb8d6f8ab6bf68d
refs/heads/master
2021-01-20T04:39:24.054749
2017-05-19T05:41:00
2017-05-19T05:41:00
89,711,134
3
0
null
null
null
null
UTF-8
Python
false
false
270
py
# -*- coding: utf-8 -*- #例4.1简单地打印数字 #很有趣的是,Python没有do..while以及while..until #但是我们也可以强行实现 while True: print 'Please enter a number:' number = input() print number if number==0: break print 'List Ended'
[ "529768926@qq.com" ]
529768926@qq.com
4dc51f42988c513bc9bc2fb8d13879f74bde8ad0
e1aead4168d0e09ac86b45988137408aa0fa8be6
/src/main.py
b769316f7e634571af5aa308028e8819c06d50a9
[]
no_license
BreenC/Projet2
1b08f1e4c207bf7ede3cb609293a2286815c9384
b3ebc7bca5896e620bccdc2745bc2711d2a03eb9
refs/heads/master
2020-04-07T14:19:16.773410
2018-12-07T18:09:50
2018-12-07T18:09:50
158,442,423
0
0
null
null
null
null
UTF-8
Python
false
false
2,230
py
""" Projet2 - Résolution de problèmes industriels """ import argparse from src.Centrale import Centrale from src.Parser import Parser class Main: def __init__(self): pathqtot = "C:/Users/camil/Documents/Polytech/UQAC/trimestre 1/Optimisation/Projet 2 code/Projet2/data/qtot.txt" #pathqtot = "C:...
[ "camille.breen@etu.univ-tours.fr" ]
camille.breen@etu.univ-tours.fr
a185967613d1e7eee7bce678e95b4793e1843f84
17792e118f537be0b02fd3eb515f77363ecdefed
/vod_webapp/vod_webapp/settings.py
9bf41884743379ad61ce04fceed2c1c2ffc9d153
[]
no_license
hizni/dj-vod
380c5d174bda6d99f59c81ba1d11f9a352987b0a
ba77a5cb5331d6f170313dd48be71ba0e5aa7c9f
refs/heads/master
2021-01-01T16:38:51.755601
2017-07-21T14:22:36
2017-07-21T14:22:36
97,883,692
1
0
null
null
null
null
UTF-8
Python
false
false
2,983
py
""" Django settings for vod_webapp project. Generated by 'django-admin startproject' using Django 1.8.3. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build p...
[ "hizni.salih@gmail.com" ]
hizni.salih@gmail.com
55bdca8cf8a2c528a2289905984cbaea270cd012
6c6d0666de6087f173530023e2f2fb622023e1c1
/gothonweb/helpblock.py
4f9c4bf9440f3d2ae455ad07ff2332b7c376d907
[]
no_license
BoroGor/gothonweb
40b49176c7c72225528a51a2f522fa9ce67aca39
e67f6c13d60953576b2e20a8f629655795c3f07c
refs/heads/master
2023-08-25T13:12:44.831612
2021-09-14T05:45:34
2021-09-14T05:45:34
401,238,863
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
tips = {'Central Corridor': ['shoot', 'dodge', 'tell a joke'], 'Laser Weapon Armory': ['ZERO ONE TREE TWO'], 'The Bridge': ['throw the bomb', 'slowly place the bomb'], 'Escape Pod': ['2'], } def help(roomname): return tips.get(roomname)
[ "boro.egor@ya.ru" ]
boro.egor@ya.ru
4af6502a710b7d7100d9f5e384a09128caf93cb0
576cc83449e10fd3f98281970c46016ea7a5aea2
/Cameo/filter.py
90ff87c95582c437a4e823c03071524feb09e16e
[]
no_license
HotView/PycharmProjects
215ab9edd341e3293daebcf86d97537f8cd28d75
61393fe5ba781a8c1216a5cbe7e0d06149a10190
refs/heads/master
2020-06-02T07:41:53.608742
2019-11-13T08:31:57
2019-11-13T08:31:57
191,085,178
3
2
null
null
null
null
UTF-8
Python
false
false
46
py
import cv2 import numpy as np import dateutil
[ "864773190@qq.com" ]
864773190@qq.com
e8cb6b230d208935d065fedcf70f0c591e8ba666
8bdd86dd0ae6b6f7aae17ff0ef2d887afd06d2fa
/examples/sharecuts.py
e78cac870e69efa96b9030c63a0ef69e72d5fb6a
[ "MIT" ]
permissive
shuxiaokai/looter
b0504600e4d5730eff2aab27fbe19d2fd5fb1f18
2be094576e31fd13123719ca94e42cb31475dffa
refs/heads/master
2023-04-18T01:19:51.827004
2020-05-17T08:11:28
2020-05-17T08:11:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
""" 捷径社区的捷径排行榜 """ from pprint import pprint import requests import looter as lt domain = 'https://sharecuts.cn' total = [] def crawl(url): items = requests.get(url, headers=lt.DEFAULT_HEADERS).json() for item in items: data = {} data['name'] = item['name'] data['category'] = item['Ca...
[ "2582347430@qq.com" ]
2582347430@qq.com
c8770ff0014c49e8aef32a4df572380d038204df
23f3349e8b50f0cb3e461bbd65c1ea8dec792d0b
/2_semestr/lec_05.py
683d1a2c6fabbc138893e0adaa2d19cb1db944a8
[]
no_license
JacobLutin/Python_bmstu
d17866dbab0e74f0f9d600c4dbd9d53eb5c5b7be
66fd8679de7556978b9cd1e9fd8646a8d7d6daa8
refs/heads/master
2020-05-29T14:40:09.310602
2017-03-27T05:18:58
2017-03-27T05:18:58
64,742,311
0
0
null
null
null
null
UTF-8
Python
false
false
1,240
py
import numpy as np a = np.arange(12) a1 = np.copy(a) print("Исходная матрицы") a2 = np.reshape(a1, (3, 4)) print(a2, '\n') a2 = a2.T print("Транспонированная матрица") print(a2, '\n') #min, max, sum, сортировка b = np.array([[2, 8, 0], [6, 1, 3], [4, 7, 5]]) print("Новая исходная матрица\n", b, '\n') dsum = b.sum...
[ "jacoblutin@gmail.com" ]
jacoblutin@gmail.com
d588e6478802c54e8e6dc92004a337bcbaa10169
2f8de36f19a8269aacf696b88e71e662e97eb3d8
/auctions/models.py
e02f3e3950c5b4e83b6a04d90e14af3afc8abd51
[]
no_license
Tomnowell/cs50w-commerce
30906ba6fadcdf94a8820173b99b70e325fd925c
41631f98e24715389c04ce2a951b8d2bcd77cfac
refs/heads/main
2023-02-24T14:09:40.593241
2021-01-29T12:38:45
2021-01-29T12:38:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,607
py
from django.contrib.auth.models import AbstractUser from django.db import models from django.core.validators import MinValueValidator from datetime import datetime, timedelta from django.utils import timezone class User(AbstractUser): def __str__(self): return f"{self.username}" class Category(models.Mod...
[ "calumabell@googlemail.com" ]
calumabell@googlemail.com
d6bf727ab1080c6cce9f88f40e0ccb9579e448d1
5822e3c41edeee70b77965dc5da5ddf07a0b4c86
/0x13-bit_manipulation/practice/7-rectangle.py
abe39c86bb8f644f3c1ea353d06b7eaaecafba5e
[]
no_license
alishabelle/holbertonschool-low_level_programming
4b7afee35344136213cee5bab0f6350112bb0d31
9f3a5bff185488410736464c8abec63f26835fc2
refs/heads/master
2020-04-21T09:23:56.284061
2019-09-27T06:25:12
2019-09-27T06:25:12
169,447,181
1
1
null
null
null
null
UTF-8
Python
false
false
820
py
class Rectangle: def width(self): self.__width = width def width(self, value): if not isinstance(width, int): raise TypeError("width must be an integer") if width < 0: raise ValueError("width must be >= 0") @property def height(self): ...
[ "alishabelle@gmail.com" ]
alishabelle@gmail.com
e7d61fbec6bfa61be24a55df9f6df6c2562cbe86
74234aa26532edad7ace5a6513ae02ab8ef00593
/the prototype code from part a/part_a_OLS_of_fifth_order_with_ND_bootstrap.py
cb859ae7d50888c82695dc1419a57fe3e39ed51f
[]
no_license
sheputis/Machine_learning_project_1
9b4ae563a0b837256ec4fe3b826c1019cfc6b2a1
d5f28c3d90245599300fdb9e441787e569556336
refs/heads/master
2020-03-31T02:29:45.255061
2018-10-06T09:51:25
2018-10-06T09:51:25
151,826,445
0
0
null
null
null
null
UTF-8
Python
false
false
8,239
py
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import numpy as np from random import random, seed from sklearn.preprocessing import PolynomialFeatures from sklearn.metrics import mean_squared_error, r2_sco...
[ "arnoldas@student.matnat.uio.no" ]
arnoldas@student.matnat.uio.no
780debb8110d8c3798abbe8dcd8dd86a68ae8057
ee379267ca10990edcb7eaf6322219018dd60dc7
/test.py
aa99e5e2bf03e996cdcf21686ee5499b9556b3bf
[]
no_license
tiago939/target
33105b66f598851a05a95a20b49490ba0ed3741b
ea11719a9ce7ceb095e4e7a57a5908f68ed1d266
refs/heads/master
2020-04-01T18:17:48.387317
2018-12-04T21:26:33
2018-12-04T21:26:33
153,483,519
3
3
null
null
null
null
UTF-8
Python
false
false
1,654
py
import numpy as np import main, pickle #load the data from the main script norm = main.data()[0] test_data = main.data()[3] test_labels = main.data()[4] total = main.data()[6] hot_label = main.data()[7] #load the parameters from the main script net = main.network()[0] #activation function def f(z): if z>100.0: ...
[ "tiago939@gmail.com" ]
tiago939@gmail.com
8efd667bb6de1041e779d62e066a81e2e8baf1fc
092ba02a9ec08c0ab6d115a30f7204d791ad1c20
/paddlenlp/ops/optimizer/adamw.py
fd343172dd68178adba08b311579c675f5510ba3
[]
no_license
kevinng77/blenderbot_paddle
ade96551bd4b92531a9b82442b4df9a767c9f506
af8aa66703915aa5be3e820f2016bf02bea1fa2e
refs/heads/master
2023-08-27T03:03:30.050700
2021-11-01T10:23:19
2021-11-01T10:23:19
393,221,853
12
3
null
null
null
null
UTF-8
Python
false
false
15,329
py
# Copyright (c) 2020 PaddlePaddle 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 appli...
[ "417333277@qq.com" ]
417333277@qq.com
6075bf7ba52d2c689ce7e8d799b2bdfa2bb43e1b
4ad06bae18751fd71df145d126e3624ea90e05e6
/flat_sharp/interpolation.py
b8f5c77d79fd72a53d69363fa13955e41a1408be
[]
no_license
daniellengyel/flat_sharp
04d82399e44d178e52c56acf1ba2ff3a75e4c27f
4a1e3f4abbebc7a5342aaa63080493b77aff5677
refs/heads/master
2021-04-22T16:14:26.238625
2020-07-09T13:03:44
2020-07-09T13:03:44
249,861,447
0
0
null
null
null
null
UTF-8
Python
false
false
5,933
py
import numpy as np from utils import * from data_getters import * from postprocessing import * import copy import torch def interpolate_models(model1, model2, beta): params1 = model1.named_parameters() params2 = model2.named_parameters() new_model = copy.deepcopy(model2) new_params = new_model.named...
[ "daniel.lengyel@berkeley.edu" ]
daniel.lengyel@berkeley.edu
7539ce848cc1fae5940a0471597cdd1ae47d939a
fd49fb2d491691a542d5586f7ff913d23666ae13
/caspar_desk/settings_base.py
55b7beb624167aa228f3fc534421d629e353ab5f
[]
no_license
kiloreven/caspar-desk
0c4d74c0c8a70c87b081ab2948a48ac6e3f2d966
180b89c3848fa857004f89bde7595b27b2612e9f
refs/heads/master
2021-01-10T08:26:46.685275
2015-10-12T19:47:04
2015-10-12T19:47:04
43,375,025
2
0
null
null
null
null
UTF-8
Python
false
false
2,780
py
""" Django settings for django_admin project. Generated by 'django-admin startproject' using Django 1.8.4. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build...
[ "kfh@kaylee.tla.wtf" ]
kfh@kaylee.tla.wtf
3c2914aeeb137940e884af34f7f4ae1b9a1cb124
306d2a92fb331aec6ddf0794b538d6e3385a0df9
/app/api/news/views.py
4821c74644481851dbbc7b49363e6c122d7dddf6
[]
no_license
Zarinabonu/ForceApp
f343d3a52aee08890230c5425c9e238df99c5a7f
13f8e8613999c4850fc6f0bfcec66f897eecbe4a
refs/heads/master
2020-12-10T08:00:25.072289
2020-01-20T13:14:07
2020-01-20T13:14:07
233,540,795
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
from rest_framework.generics import ListAPIView from app.api.news.serializers import NewsSerializer from app.model import News class NewsListAPIView(ListAPIView): serializer_class = NewsSerializer def get_queryset(self): qs = News.objects.all() v = self.request.GET.get('-views') l_se...
[ "zarinabonu199924@gmail.com" ]
zarinabonu199924@gmail.com
5791864f4d06a853c419176969321e88ec54e05f
2efdecc7f104e723bab92e530d39bec89a9632fc
/ud_graph.py
7b58f25c072c45bf5d74421f6816f4ca6e7ee162
[]
no_license
IanFonzie/graph-implementation
f5c77f1d56df28be9c31689343885edc8b64573f
faaf1933e9c5cdf0f6a1dc70e23c5d08307138d5
refs/heads/master
2023-08-28T05:33:05.811863
2021-06-11T20:10:57
2021-06-11T20:10:57
425,970,543
0
0
null
null
null
null
UTF-8
Python
false
false
13,875
py
# Course: CS261 - Data Structures # Author: Ian Fonberg # Assignment: Graph Implementation (Portfolio Assignment) # Description: UndirectedGraph with implementations for add_vertex(), # add_edge(), remove_edge(), remove_vertex(), get_vertices(), # get_edges(), is_valid_path(), dfs(), bfs(), # ...
[ "fberg_i@hotmail.com" ]
fberg_i@hotmail.com
fa4627fc540dc0fe3e22751b5e32ea7167da0399
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc029/B/4327177.py
e0009a3dbc5483db0e2de0f6c57fab864e879af1
[]
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
264
py
from collections import Counter input() A=list(map(int,input().split())) A.sort(reverse=True) C=Counter(A) ans=0 for a in A: if C[a]==0: continue C[a]-=1 t=2**a.bit_length()-a if C[t]: C[t]-=1 ans+=1 print(ans)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
bac598ef7573c63aeb9e39fc13f67f09c8edb748
747f759311d404af31c0f80029e88098193f6269
/addons/training_doc/training_doc.py
e31f2e4105271968edebb810aead63d83aef037f
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
66
py
/home/openerp/production/extra-addons/training_doc/training_doc.py
[ "geerish@omerp.net" ]
geerish@omerp.net
40ac13a7d56e1369c096d6b0d9a77961d16430bf
443585e4fc146308b18bc2f9234d0947da38d3e5
/input_output/2.py
8e66671a1fb57677c88f36c9a0d41923421258d1
[]
no_license
ggyudongggyu/20201208commit
b524c4a7fb241cacaacffa5882c55d1d0ccba11f
fbb58a8ed06f454a2a79a9b8c75deabaec62b317
refs/heads/master
2023-02-02T21:59:51.518218
2020-12-24T14:32:21
2020-12-24T14:32:21
319,578,473
0
0
null
null
null
null
UTF-8
Python
false
false
31
py
in_str = input() print(in_str)
[ "donggyu0219@gmail.com" ]
donggyu0219@gmail.com
d5b2d0a9e571234c680d803851735c7c32986bee
62912bea20c56093f27fb2826e0f5f4a26a3ed0b
/symphony/cli/pyinventory/api/user.py
26b7cb869b430045ee70020b452c8fdb9a7edcd2
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
sijad/magma
5c2b6520e207f05c29f29248627b90629f1f4088
78b5f16432d7070a84da74b90d4f1e3f8348fa37
refs/heads/master
2021-04-09T06:34:15.295104
2020-03-20T19:28:42
2020-03-20T19:31:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,129
py
#!/usr/bin/env python3 # Copyright (c) 2004-present Facebook All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from typing import List from ..client import SymphonyClient from ..consts import Entity, User from ..exceptions import EntityNotFoundE...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
849db7158f590c4e5a37537eff1e8f8126ff98d2
85f39176fb8bb79e9e575a3d7a5db9cc429dbfc4
/utils/model_utils.py
23764da1fc831b04f43364a3af8c3c41891827b8
[]
no_license
zhihuikaicheng/pytorch-reid-lite
a5b47984da94c55221fdf59fa5242445f7e9d51c
6d01b376d9bc4fccea50d235f7da715c7452d73a
refs/heads/master
2020-04-06T10:15:38.833155
2018-11-14T09:29:07
2018-11-14T09:29:07
157,373,657
0
0
null
2018-11-13T12:03:32
2018-11-13T12:03:32
null
UTF-8
Python
false
false
2,938
py
import torch import os import logging from collections import OrderedDict torch_ver = torch.__version__[:3] def save_and_evaluate(net, config, evaluate_func, save_ckpt=True): config["best_eval_result"] = 0.0 if "best_eval_result" not in config\ else config["best_eval_result"] state_dict = net.state...
[ "xulie@tuputech.com" ]
xulie@tuputech.com
72bac7b08239d55cf7dd0fdc3d8e913c5245edcf
5143ba1a0014ea42f4606c9b073b622699e6ddb0
/problem26.py
45145b9bd5e11ff595c654f9d8e63019d9431b85
[ "MIT" ]
permissive
lewisemm/euler
97fdf2cd62555d8819fbf44569ae0676cff903b9
6b33896724d3f7115b400cc0ce95fac8cd653c8c
refs/heads/master
2023-01-11T07:45:41.604006
2020-10-26T11:54:59
2020-10-26T11:58:12
282,627,026
0
0
null
null
null
null
UTF-8
Python
false
false
1,381
py
from datetime import datetime from decimal import Decimal, getcontext def get_recurring(fraction): fraction = str(fraction)[2::] fraction_length = len(fraction) counter, offset = 0, 0 copy1, copy2, index, length = '', '', 0, -1 while counter < fraction_length: copy1 += fraction[counter] ...
[ "lewisemm@users.noreply.github.com" ]
lewisemm@users.noreply.github.com
b339e85221fe2425dddcdea65fc66cab099da14e
6f7440cc4bc3054138f423cf27bc11f7b471e8e6
/py/vocab_filter_0113.py
c1a9a0876fdf8b430690c5ef84569c08d9121a12
[ "Apache-2.0" ]
permissive
Peratham/word2vec
2590822eccf675cc671a0af9ce19efd0964ffa03
c88e3b804242961072215db65c0d6bbb6a1598eb
refs/heads/master
2020-12-30T17:11:51.067221
2016-01-31T18:50:15
2016-01-31T18:50:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,695
py
"""Filters vocabulary according to user's specification. Usage: $0 input_vocab output_file_prefix output_vocab = intersection(desired_vocab, input_vocab) desired_vocab is specified below """ import sys input_file = sys.argv[1] output_prefix = sys.argv[2] desired = ['king queen man woman his her he she men women', ...
[ "riemann.si.umich.edu" ]
riemann.si.umich.edu
5a50f463abe0ed27c652cf9283ca5fbb489593a5
ebefbc9fab052700e6b913056ae3d45e0902ed78
/WEBSITE/get_tweets.py
4daa8fd7f1cc315fba1ce7a61158d39ee9ec028a
[]
no_license
tanyagarg2509/Virago_MLProject
36e69f27c59090348c93006c8d144bad798a4f47
05520a998f7e2c501afc56bba99558678b974442
refs/heads/master
2022-12-06T19:54:05.367965
2020-08-10T09:08:02
2020-08-10T09:08:02
279,497,946
2
2
null
2020-08-01T09:09:16
2020-07-14T06:08:12
Jupyter Notebook
UTF-8
Python
false
false
1,041
py
import tweepy import time import pandas as pd pd.set_option('display.max_colwidth', 1000) # api key consumer_key = 'Tan0zgQRjQxjyubOPCbERip1p' consumer_secret = 'Rcjd0sID7brrcH682RVDFNjc8yxBuEHI6Kq5PQlhVPiskVi6ri' access_token = '261123310-nhpBB26oASCDw2HdQA7Hoxui7f0jpMaPOr068b9W' access_token_secret = 'gWQ41E4bfc4Eal...
[ "tanyagarg2509@gmail.com" ]
tanyagarg2509@gmail.com
955d81f88ec11f246f6d9dcdd6f9b8a4d2744fe8
c8dc80a0082b2d59de0e1df24b25483f55510c57
/0x0F-python-object_relational_mapping/11-model_state_insert.py
55472dd9df2fb8c159784fb95664ea3259b05a3a
[]
no_license
Daransoto/holbertonschool-higher_level_programming
51d81fac1dc3a6bd0799283332a3bcf5e2480330
4fa5f95b462f0e22b1e87189d162f0cb8c5625b6
refs/heads/master
2020-07-22T23:03:01.184032
2020-02-13T21:36:18
2020-02-13T21:36:18
207,358,507
0
4
null
null
null
null
UTF-8
Python
false
false
605
py
#!/usr/bin/python3 """ Inserts Louisiana state. """ import sys from sqlalchemy import create_engine from model_state import Base, State from sqlalchemy.orm import sessionmaker if __name__ == "__main__": engine = create_engine('mysql+mysqldb://{}:{}@localhost/{}' .format(sys.argv[1], sys....
[ "901@holbertonschool.com" ]
901@holbertonschool.com
08f86a84c521a7399eb73771bf38c269b6da22fc
ce6318753653fe34c62e5d28930b7313a68542a9
/addressbook/__init__.py
700e8c8e4a6bd50694abc90396c553349d0aac14
[ "MIT" ]
permissive
kctzstyle/python-gui-addressbook
8b7f8d91440a7a455155fc647b799cfce4835ed4
0bd07a3e4c8181959d249a8272d890d19e44ceb6
refs/heads/main
2023-02-22T06:40:19.812963
2021-01-30T09:05:19
2021-01-30T09:05:19
332,575,633
3
0
null
null
null
null
UTF-8
Python
false
false
57
py
__version__ = '1.0.0' __all__ = ['models', 'db', 'app']
[ "kctzstyle@gmail.com" ]
kctzstyle@gmail.com
1efec071da06320c1872e14f52945c7996e3daaa
6a16e5e56f38ff4ed1fc02b5a6497a8ac28e51f0
/_Scripts/Python_codes/send_all_the_instructions_to_arduino.py
5b982398cd395edad1097b0aa12fd5ba765d24eb
[]
no_license
aslinurtaskin/SHEDIO
32a3e9a927432e376e8ec38e279dd61bbc5050ce
659a768ed985843d8499340bfbbb06474945dc69
refs/heads/master
2023-03-23T04:49:13.914458
2021-03-20T13:02:08
2021-03-20T13:02:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,204
py
import serial import time ser = serial.Serial("COM4",9600) max_timeout_ack = 10 max_timeout_done = 50 #L system test commands = ['D','D','F10','F10','R90','F10','L90','F10','R90','F10','R90','F10','F10','F10','F10','R90','F10','L90','F10','R90','F10','R90','F10','F10','R90','F10','F10','R90','F10','L90','F10','R90','F...
[ "juan.eduardo.ojeda@students.iaac.net" ]
juan.eduardo.ojeda@students.iaac.net
8cfc1028ad38075dcb2db3428de7837cfef3caa5
5cc2e06c01b621959c89cfe0f7b6b818c4d8ac60
/Source/Player.py
98925b907d90905647aacc6b8e108df925c2dcff
[]
no_license
JimmyLord/PythonFramework
96a6dbe145168193fd3e39fa654d40b3fb2be159
2015de06b1a2f6a6f352af314cbd8394383cf89e
refs/heads/master
2021-06-19T08:00:42.450789
2021-06-11T16:00:51
2021-06-11T16:00:51
135,480,826
0
3
null
null
null
null
UTF-8
Python
false
false
1,509
py
import pygame import imgui import GameObject class Player(GameObject.GameObject): def __init__(self, position, sprite, texture): super().__init__( position, sprite, texture ) def onEvent(self, event): super().onEvent( event ) # Inputs will set the direction the player is moving. ...
[ "jimmylord@gmail.com" ]
jimmylord@gmail.com
3ccac70f2fe05cd2ec090c926330b1774bbfe340
47f24b482656bc9c3224a8f4b37ac0a1af5149f7
/Assignment_4/lab4-rollno/kmeans.py
1669d8cdf141b0c0747bb53a805ef03f9aad0ce3
[]
no_license
anshuln/CS_335_Assignments_2020
55bc38cfae011c56c3566ff385149709626d8a0e
2fdab9e8da03d3ede3ea1d220269e614be7a4ba4
refs/heads/master
2023-01-30T10:37:56.591146
2020-12-18T09:53:30
2020-12-18T09:53:30
285,848,441
1
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
import argparse import numpy as np import matplotlib.pyplot as plt np.random.seed(5927) class KMeans(): def __init__(self, D, n_clusters): self.n_clusters = n_clusters self.cluster_centers = np.zeros((n_clusters, D)) def init_clusters(self, data): ### TODO ### Initialize cluster_centers using n_clusters po...
[ "soumyac1999@gmail.com" ]
soumyac1999@gmail.com