blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
2210ae26b179ba05004cd58b2a1d034630f3c058
0d55bde6f4784f6dea9e8e6945d05bbf627e1e7d
/Packs/CortexXpanse/Integrations/CortexXpanse/CortexXpanse_test.py
e5e1f54f5d007d64c3a3a149c6753ca5a12fdbdf
[ "MIT" ]
permissive
crestdatasystems/content
d7040415431b5d06d1569433a49869afcb0292bd
5f0f00840c39f028dca8377551bbd725d8ee8a2d
refs/heads/master
2023-08-16T19:35:38.150912
2023-07-11T05:59:59
2023-07-11T05:59:59
280,669,011
2
1
MIT
2023-03-10T16:00:35
2020-07-18T14:06:44
Python
UTF-8
Python
false
false
11,965
py
""" Tests module for Cortex Xpanse integration. """ def test_format_asm_id_func(requests_mock): """Tests format_asm_id helper function. Given: - Mock JSON pre-formatting from the list_asset_internet_exposure_command function When: - Sending JSON to format_asm_id function. ...
8f7769ef093d5beca0d0d32a1807271d4d0060da
761dbc29537f2271d7cac5ee55bf818cf3d94ee3
/solver_methods.py
6b2949e8036f047c4f0b16af10481ba7603d3b16
[]
no_license
k-off/Rubik_brute_force
ee5d78d22ff72ecd312129787571635cd1f6d3fe
8688a9e66f8b2d40afe46a449a2b830c5b461e6e
refs/heads/master
2022-03-07T10:43:56.580884
2019-10-22T08:09:32
2019-10-22T08:09:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,791
py
#******************************************************************************# # # # :::::::: # # solver_methods module :+: :+: ...
76d96db4057deeca5c0be5158343d8ae8cd74e65
e281ce2330656a6a0a7f795f535f78881df8b5ba
/Web/HelloWorld/Web1.py
e2342cf62a0c93cdd44e45b46e6c6ee836e8d8c8
[]
no_license
sunruihua0522/SIG-PyCode
70db0b57bbf9ce35dc42bd8de62c5bb56a2e888e
483a67bf679f54ab7405c2362d9cfe47daa2bc0f
refs/heads/master
2020-07-12T14:46:32.588227
2020-04-02T04:37:02
2020-04-02T04:37:02
204,842,675
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
from flask import Flask, Request app =Flask(__name__) @app.route('/') def HelloWold(): return 'Hello World' @app.route('/login/') def Login(): return 'Login......' @app.route('/login/<int:id>/') def LoginWithVar(id): return '<h1>Welcome %d to my world !</h1>'%id @app.route("/foo/<string:username>/") d...
[ "--global" ]
--global
71f98b5c6f7a6e09c70a177a86d013d601ea80b4
8f1137592d670ce134821106f736e231b03ead87
/mmdet/models/backbones/__init__.py
bed1d549993cacc78bc9d11bcb4b03efddd934ac
[ "MIT" ]
permissive
mousecpn/DMC-Domain-Generalization-for-Underwater-Object-Detection
fa426c834fa2a5cd2fe98c50dd4dfeda64fcdc79
133797cfb7553557fb81a37e3c99c88154a13765
refs/heads/master
2023-05-23T16:49:34.795363
2023-02-13T02:23:31
2023-02-13T02:23:31
501,597,077
16
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
# Copyright (c) OpenMMLab. All rights reserved. from .csp_darknet import CSPDarknet from .darknet import Darknet from .detectors_resnet import DetectoRS_ResNet from .detectors_resnext import DetectoRS_ResNeXt from .hourglass import HourglassNet from .hrnet import HRNet from .mobilenet_v2 import MobileNetV2 from .pvt im...
9eb0eefa8a96b1ade59c85a7d02aab823056e1af
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/119/usersdata/239/27344/submittedfiles/al1.py
6c815196c1dc7bc1a3f761f112f9ee81f7fa36b9
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
# -*- coding: utf-8 -*- print("Programa de conversão de temperatura: °C -> °F")#Nome de apresentação do aplicativo print("") C = float(input("Digite a temperatura em °C:"))#Declarando a entrada F = ((9*C)+160)/5#Processamento print("O valor em °F é: %.2f"%F)#Linha para apresentar a saída
b650ce40f2448c5bb65139c22519be4c58cbe7dc
2af9c17cf29a9bba3f3e714c861e8f89ee5fc488
/python code/HR33_itertools_product.py
f9633579a94bd1807b00e7a86ee8e8966bd4a1e5
[]
no_license
Binay28/Binay-s_Code
9df3315bf9433d62a3b2228ea3f87be93917e5b3
7e05c39a753fab79a4518119d41953827dba10c9
refs/heads/master
2022-11-18T16:00:19.325948
2020-07-16T12:16:38
2020-07-16T12:16:38
198,006,791
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
from itertools import product A=list(map(int,input().split())) B=list(map(int,input().split())) print(*product(A,B)) #product(A, B) returns the same as ((x,y) for x in A for y in B)
d0f753d2a8be20ef8fd60993a5117e1ad9ed3bfe
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/zulip/2016/12/forms.py
b2be52e7bd7ffa58c1133a0a90f5faa3a8bbd5a4
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
9,035
py
from __future__ import absolute_import from django import forms from django.conf import settings from django.contrib.auth.forms import SetPasswordForm, AuthenticationForm, \ PasswordResetForm from django.core.exceptions import ValidationError from django.core.urlresolvers import reverse from django.db.models.query...
548e6b996617ab7253f3a41fa7c7838b9df2aad1
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/qeyinsjZHCPEddbfe_3.py
101cca3e7846d04b82b150f8b95efd2e70cbf0e5
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
def dice_game(lst): result = [0 if x == y else x + y for x, y in lst] if 0 in result: return 0 else: return sum(result)
52d55eaa96a718f0192d07bd30328853a449ba83
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02419/s944531801.py
0470606a21cac3803c17734548ec73c240969efd
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
W=raw_input() T=[] while 1: x=raw_input() if x=="END_OF_TEXT": break T+=[v.lower() for v in x.split()] print T.count(W)
058384b59e30522de87ae1f0a3b05a247b264dd1
c0ba52c370f3c41471308588d49ae75f975d9b49
/qa/rpc-tests/addressindex.py
bf539ced19ceecddb492dd85fbce51b93697576f
[ "MIT" ]
permissive
mirzaei-ce/core-aghilbit
7f318a7487675ef7a38280d7b19284c3227cea52
4a4ce7b0da3fe01246f300a6809cda68d0708ef6
refs/heads/master
2021-07-12T08:21:29.796955
2017-10-16T16:56:05
2017-10-16T16:56:05
107,156,816
0
0
null
null
null
null
UTF-8
Python
false
false
14,755
py
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test addressindex generation and fetching # import time from test_framework.test_framework import Ag...
735d9569094b48a1a43aa0a6385db04c3775a9d5
29b5345df054c92fd7bdc116d5ddd326c024f4e3
/tensorflow/contrib/bayesflow/python/ops/monte_carlo.py
dbfa3611ba0962322f06e5219c7feb2b6087cd24
[ "Apache-2.0" ]
permissive
RMORIOKA/tensorflow
13beebfd9a7a64e32e52933f08fe1387b1147876
6886eb9c73940fd3b4dfadc3d6964ae9aa71eef6
refs/heads/master
2022-11-01T01:41:42.914151
2016-11-18T16:20:41
2016-11-18T16:20:41
74,143,763
0
1
Apache-2.0
2022-10-08T00:42:05
2016-11-18T15:50:00
C++
UTF-8
Python
false
false
11,628
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
f18e2900ad229eb69539225ff1271712780b26b1
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/Quote18/HQ_18_042.py
4520798521b4e456949b24bbd5c72a4af4a40a7b
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
1,258
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import time import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from log import * class HQ_18_042(xtp_test_case): def subMarketData(self, Api, stk_info, case_name, rs_ex...
c8e514cf6371ba34c6915c2a4fa7d98162c04ef5
387ad3775fad21d2d8ffa3c84683d9205b6e697d
/testsuite/trunk/epath/set_ep_loc_012.py
78a9160027aee4ca102953bb975b8d0cbcdb9901
[]
no_license
kodiyalashetty/test_iot
916088ceecffc17d2b6a78d49f7ea0bbd0a6d0b7
0ae3c2ea6081778e1005c40a9a3f6d4404a08797
refs/heads/master
2020-03-22T11:53:21.204497
2018-03-09T01:43:41
2018-03-09T01:43:41
140,002,491
0
0
null
null
null
null
UTF-8
Python
false
false
1,928
py
#!/usr/bin/env python """ (C) Copyright IBM Corp. 2008 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed under a BSD style license. See the Copy...
[ "suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26" ]
suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26
b257b9fbad4c6e99eb47fc7e4b63508036ae8fe7
6257b3d146ecff251aabb4dc78cf66bc69d2ab31
/component/struts/struts2016.py
980725069fe7fafe8cd96a756da7fe407fcc2015
[ "MIT" ]
permissive
bigbigx/PocCollect
39549107f01d313656b451bafe7657cb8c61f410
6b0f438e6e6005bd0adbdf3bcc97a2d808c6f9ea
refs/heads/master
2021-06-04T15:48:04.790219
2021-04-06T11:24:54
2021-04-06T11:24:54
63,687,713
0
0
MIT
2021-04-06T11:24:55
2016-07-19T11:19:43
Python
UTF-8
Python
false
false
2,355
py
#!/usr/bin/env python # encoding: utf-8 from t import T import requests class P(T): def __init__(self): T.__init__(self) keywords=['struts'] def verify(self,head='',context='',ip='',port='',productname={},keywords='',hackinfo=''): target_url='' target_url = 'http://' + ip + ':' ...
8110ddd0dde5af6e6d8fb80a917983c1ae137518
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/hoxv8zaQJNMWJqnt3_1.py
111f3aa56f45f561eaf1e5c385c12cc977867642
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
def is_heteromecic(n,i = 0): if n == i * (i + 1): return True if n < i * (i +1): return False i+=1 return is_heteromecic(n, i)
0a1045f155f346fcd6be4db7820ecffde97a490b
eef285b8c4530a7dc1187e08292bf246e3732915
/chat_project/chat_backend/chat_backend/user/admin.py
24c2b5b4d4948b6624de91964a94edf55e80a494
[]
no_license
wlgud0402/making_projects
32ba45817e48c3d21b174c823177d96af10d9a20
6d86d09c61eb70339423f33d6e42ca0cdff391a6
refs/heads/master
2023-03-21T09:45:25.600251
2021-03-22T13:02:26
2021-03-22T13:02:26
338,810,583
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
from django.contrib import admin from .models import User # Register your models here. # admin.site.register(User) @admin.register(User) class UserAdmin(admin.ModelAdmin): list_display = ('email', 'nickname', 'user_type', 'room_id', 'created_at',)
17ca38843edb8b4672e8f653c45f1cec4881a059
f7ff0b17e010abb7a2545e6583b8210959861a10
/jupytext/version.py
aafb0cd4af6aefaa1dcb2cfdbae7b1294f5092d0
[ "MIT" ]
permissive
IanEdington/jupytext
d0b7f61c69ad003eea5fd77283a1b47f689351d3
bc1b15935e096c280b6630f45e65c331f04f7d9c
refs/heads/master
2022-11-06T19:51:17.822602
2020-06-23T20:59:08
2020-06-25T12:37:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
59
py
"""Jupytext's version number""" __version__ = "1.5.1-dev"
5df7bbb123a2779a847aa9762e9a98f01c792d2e
ce55c319f5a78b69fefc63595d433864a2e531b5
/前端+数据分析/套接字/闭包.py
3471e3e269632f386dfa8ff19ab2bb59ac4d02c1
[]
no_license
Suijng/1809_data
a072c875e8746190e3b715e53f1afe3323f4666b
45f8a57089f5c30ccc1a3cddb03b76dc95355417
refs/heads/master
2022-12-21T12:38:30.458291
2019-09-27T01:14:41
2019-09-27T01:14:41
211,207,071
0
0
null
2022-11-22T03:16:18
2019-09-27T00:55:21
HTML
UTF-8
Python
false
false
89
py
x = 300 def test1(): x = 200 def test2(): global x print('--1--')
a81fb81b960fc04f18e1042929aa6c944cfb1007
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/networkx/algorithms/flow/capacityscaling.py
9a6a5c7270f10e7645babe83c8286a14cb73b66f
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:0ba80a661465f023b9da7444cd18a123358f4112509665b5d25721a9fb176ec0 size 14535
11942764d3444e239ed6702bca9c874ab630237e
f41bd639f249ef6029e310bee84c6ef03f5d6f19
/databundles/partitions.py
b4ecea0136dac5ddfa498ccb0c0969a76a298626
[]
no_license
kball/databundles
5e3d478c1977a0481d77131dd573c8f199e2c95d
142f20705c8be6cb136adef3a94c8fa7b7119b88
refs/heads/master
2021-01-21T03:30:32.822333
2014-01-23T23:57:57
2014-01-23T23:57:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,722
py
"""Access classess and identity for partitions. Copyright (c) 2013 Clarinova. This file is licensed under the terms of the Revised BSD License, included in this distribution as LICENSE.txt """ import os from partition import PartitionIdentity from sqlalchemy.orm.exc import NoResultFound class Partitions(object): ...
03c5e284066da9d303f45f391c6d39151fb59a4b
6be2b9c3a7dcc95ed04ce8a5af912014833b769a
/app/main/views.py
7bd0437c264b1feb1213cb896371a4b80751cd1f
[ "MIT" ]
permissive
MaryMbugua/Newshighlighttwo
05219428c9e568122cb59f7a2ea90b758edf8c76
143fd75b7c0e36a48e25240ff150d10781c77470
refs/heads/master
2020-03-08T19:47:28.086076
2018-04-23T08:50:25
2018-04-23T08:50:25
128,363,872
0
1
null
null
null
null
UTF-8
Python
false
false
3,157
py
from flask import render_template,request,redirect,url_for from . import main from ..requests import get_sources,get_articles from ..models import Newsarticle,Newssources #views @main.route('/') def index(): ''' view root page function that returns the index page and its data ''' title = 'Home - Welco...
aa49d86c34cb6af174c81aed810cf64c87dfa51a
5b1cd15a172e5a458f60506c76c8a303656f6a4c
/test/quantization/test_workflow_module.py
5e0b3e2db6d66e8d8540246746bd4ef2e7dce193
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
georgeSkoumas/pytorch
8350b446968a3dc6ed0eccacdffafae60bc1d17b
d39cb84f1fffbb9a1b909be7b203e673c046cca1
refs/heads/master
2022-12-01T21:53:49.847675
2020-08-13T12:11:44
2020-08-13T12:14:21
287,285,967
1
0
NOASSERTION
2020-08-13T13:21:15
2020-08-13T13:21:15
null
UTF-8
Python
false
false
69,044
py
# Torch import torch from torch.quantization import ( MinMaxObserver, PerChannelMinMaxObserver, MovingAverageMinMaxObserver, MovingAveragePerChannelMinMaxObserver, MinMaxDynamicQuantObserver, HistogramObserver, RecordingObserver, FakeQuantize, default_debug_qconfig, default_obser...
576e761485b9b3fbcdc1ce8d9b9405d34e242c90
a1ad2715e306fd4e7eaeda5348e00e1a363e7884
/leetcode/concepts.py/houserobber2.py
d7ea4c294868b76061a7f6960164e761560f91cc
[]
no_license
MayankMaheshwar/DS-and-Algo-solving
cef54a800b3e8a070a707f97b4f30fccaa17d5c6
ac6ea8f880920242a55d40c747368d68cb6f7534
refs/heads/master
2022-12-07T07:55:08.380505
2022-12-05T09:32:14
2022-12-05T09:32:14
237,103,468
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
def robberse(self, nums): def simple_rob(nums, i, j): rob, not_rob = 0, 0 for idx in range(i, j): num = nums[idx] rob, not_rob = not_rob + num, max(rob, not_rob) return max(rob, not_rob) if not nums: return 0 elif len(nums) == 1: retu...
196a8d28085738fdda38ea2f078b8fb542ec2300
189c99816118ac6334fb65f1ef611c71eb756ead
/0x08-python-more_classes/6-rectangle.py
76a2c927a7745e18c819895c16ccb3f69c5e9f0f
[]
no_license
MadmanSilver/holbertonschool-higher_level_programming
4d51e308636ccc37271869dd830f700d8201948e
09e47b319d9bd674519b13263a74822198d5932c
refs/heads/master
2022-12-18T23:40:37.862157
2020-09-25T02:41:01
2020-09-25T02:41:01
259,349,627
0
0
null
null
null
null
UTF-8
Python
false
false
2,083
py
#!/usr/bin/python3 """ Contains the Rectangle class. """ class Rectangle: """ Defines a rectangle. """ number_of_instances = 0 def __init__(self, width=0, height=0): """ Sets up the rectangle instance. """ self.width = width self.height = height Rectangle.number_of_instan...
abd67ca206bbbefe8db51c4120f1011c9b6a16a1
bc441bb06b8948288f110af63feda4e798f30225
/webshell_sdk/model/collector_service/alias_metric_with_one_original_metric_pb2.py
4cb5fc609cbe47718128bc79d754b117d6e91800
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
true
9,177
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: alias_metric_with_one_original_metric.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _me...
181a25b998b188559a7c17997e8ce525d68a3cf4
f4b60f5e49baf60976987946c20a8ebca4880602
/lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fv/aeppconfissues.py
c23c2662a913b2fdb31f332c39cb53a959687641
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
6,453
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
97208d08e04cecb91c78591585387c2390b581fd
90333a3140dc20036ad1ae88aaeec4b72a93914b
/tensorflow/example04.py
8c309c32db68466a1c8c20d8d572042450f9d5a6
[]
no_license
jw0831/AI-Study
1f026acbc46a5f133921efc3c07d233ec1e8e284
02a2bd7469691facc5b6b283aa5edb8e90841456
refs/heads/master
2023-05-12T13:05:55.499517
2021-06-13T14:32:19
2021-06-13T14:32:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,679
py
#(4) example04 #import tensorflow and numpy import tensorflow as tf import numpy as np #[feather, wing] x_data = np.array( [[0, 0], [1, 0], [1, 1], [0, 0], [0, 0], [0, 1]]) #[etc, mammal, bird] #one-hot encoding(label) y_data = np.array([ [1, 0, 0], #etc [0, 1, 0], #mammal [0, 0, 1], #bird [1, ...
daf6a6648337c20c1e3b7fc6492df080328c9231
32e55bf28b9f22265bcbc1d8c0ebf52a3608187d
/303. Range Sum Query - Immutable.py
0c4562b35da42903720903add0d94136f25c38aa
[]
no_license
Garacc/LeetCode
9f843672a18701d032f36769c9025761199d8caf
215d12703b2cac4c1ad49d5a0e1060948fbbacd2
refs/heads/master
2018-10-10T03:37:48.889898
2018-09-17T08:38:22
2018-09-17T08:38:22
120,304,202
0
0
null
null
null
null
UTF-8
Python
false
false
939
py
class NumArray: ''' def __init__(self, nums): """ :type nums: List[int] """ self.nums = nums def sumRange(self, i, j): """ :type i: int :type j: int :rtype: int """ ans = 0 for idx in range(i, j + 1): ans +=...
8c567d804437e17644ed5f3c11c0cd3e47b52c03
56b63ee537f872af0fc028016d1508b4c1dd5c60
/school/migrations/0284_auto_20210507_1155.py
e0f316d5d0463336216b57b0e361ecb8d4b458c7
[]
no_license
jacknjillsolutionsrevanth/EMS1
01fc571120f765b0fbfe3aa654b15ff578d6e9b9
db14d8e6c15669b5938aa9276c5e22006218814a
refs/heads/main
2023-08-03T19:40:50.073133
2021-10-01T07:02:37
2021-10-01T07:02:37
410,202,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,734
py
# Generated by Django 3.1.2 on 2021-05-07 06:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('school', '0283_auto_20210430_1342'), ] operations = [ migrations.AddField( model_name='rpt_consolidatedreport', name...
384210d95788ab27a35cabd3c957edf150bc29d4
b4134236292aff9dc7dc7ae0f54ad46bae791ccf
/PythonNLP/C05.py
d594e50cab7154f30f8e7f0d448fac78bd25c658
[]
no_license
dandanloveJM/NLTK-Python-CN
ac0567da4d517d8e03c2921a4998dd1843cf26b3
d0036f25baca18003ddf3d5790cd9a8d76d0345e
refs/heads/master
2020-08-17T11:32:05.991795
2019-10-17T14:21:59
2019-10-17T14:21:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
26,044
py
# Ch5 分类和标注词汇 # 词性标注(parts-of-speech tagging,POS tagging):简称标注。 # 将词汇按照它们的词性(parts-of-speech,POS)进行分类并对它们进行标注 # 词性:也称为词类或者词汇范畴。 # 用于特定任务标记的集合被称为一个标记集。 import nltk import pylab from nltk import word_tokenize from nltk.corpus import brown brown_words = brown.words(categories='news') brown_tagged_words = brown.tagged_wo...
e9d7a998d87c612243828fe66e6007202c86f686
0b40232eb2395c27353c892ef4ccb5c604bb75be
/Hash Table/Find_the_difference.py
7428e82614a50c081c15dbd870c2e3841fab9f12
[]
no_license
HareshNasit/LeetCode
971ae9dd5e4f0feeafa5bb3bcf5b7fa0a514d54d
674728af189aa8951a3fcb355b290f5666b1465c
refs/heads/master
2021-06-18T07:37:40.121698
2021-02-12T12:30:18
2021-02-12T12:30:18
168,089,751
5
0
null
null
null
null
UTF-8
Python
false
false
371
py
def findTheDifference(self, s, t): """ :type s: str :type t: str :rtype: str """ map_s = collections.defaultdict(int) for i in s: map_s[i] += 1 #Automatically adds any missing value to the dictionary. for j in t: map_s[j] -= 1 ...
b04e5ea723f86e59d1873259177661d9672e62f6
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_examples/_algorithms_challenges/pybites/advanced/050_make_pybites_search_engine_feedparser/save4_nopass.py
8dbd7f2c13334bb8bd7ec12ff179a1105f74a635
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
5,865
py
from datetime import datetime from collections import namedtuple from time import mktime from feedparser import parse import re import xml.etree.ElementTree as ET # FEED = 'https://bites-data.s3.us-east-2.amazonaws.com/all.rss.xml' Entry = namedtuple('Entry', 'date title link tags') class AttrDict(dict): """fe...
5516c3e347802f4b350ee2dbcccabaeb477b3a74
9447fc5874b2edbc5d50d97d1415459d7c0a9a23
/env/bin/rstpep2html.py
80e9bd3423e0ff556c539c40519718befa2fd10f
[]
no_license
ivan-podorozhnyi-tr/flask_zappa
b9d11976a2b5d1a315258984ffde6199b4013576
aba4c482d90ceb5161010e4e4edb9b63feb00735
refs/heads/master
2022-11-02T04:11:20.531599
2019-10-10T10:31:03
2019-10-10T10:31:03
214,153,564
0
1
null
2022-10-10T20:02:44
2019-10-10T10:28:49
Python
UTF-8
Python
false
false
701
py
#!/home/ivan/projects/flask_zappa/env/bin/python3 # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <[email protected]> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML from PEP (Python Enhancement Proposa...
1ecb741be63c3d4f4cf27a1f9a5077afa206c9e7
587bd3458aadb1f06bd576aab46a7d294d6a0ee2
/session47.py
cba6a34daa4a8c2c7d7d7bcde7ea6d8900069b81
[]
no_license
Shimpa11/PythonTutorial
913635dbbd1f8ed6e2331614040a4f76d22ebacf
5e5dfe003e5ccf84d4e9754d3192e43009c20c56
refs/heads/master
2020-12-13T16:48:12.093667
2020-05-08T12:21:27
2020-05-08T12:21:27
234,344,530
0
0
null
null
null
null
UTF-8
Python
false
false
3,587
py
""" overfitting and underfitting->regression line does not fit # predicted values # good fit / robust fit # DT limitations # computationally expensive to train # carry big risk if overfitting ENSEMBLE LEARNING Supervised learning where no of models are combined for prediction BOOSTING->grp of algos that utilizes wei...
fd673bb693206262ce291422603e04587290cc7c
5686d1a31b87a47a4774270c00cd141c221cf065
/axonius_api_client/api/json_api/assets/history_dates_human.py
35f27f8e20051c05403c10b6c37ebc27af60b4a1
[ "MIT" ]
permissive
Axonius/axonius_api_client
e7eec0845eee9e1b314446121551c584655c2631
be49566e590834df1b46494c8588651fa029b8c5
refs/heads/master
2023-08-19T04:43:13.717989
2023-08-10T18:49:40
2023-08-10T18:49:40
194,601,817
17
22
MIT
2023-08-30T18:45:15
2019-07-01T04:52:21
Python
UTF-8
Python
false
false
7,266
py
# -*- coding: utf-8 -*- """Models for API requests & responses.""" import dataclasses import datetime import logging import typing as t from ....exceptions import ApiError from ....tools import coerce_int, dt_now, dt_parse from ..base import BaseModel LOGGER = logging.getLogger(__name__) @dataclasses.dataclass clas...
b53f31bab239e974a44b18dc9a112a5067df68ee
00687ee434e9ff98d452c8ca69897d503eecdbc7
/caffe2/python/operator_test/torch_integration_test.py
628512953dcae9cc9091baba095ea34250a78002
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
ajliu/pytorch
8a7bc45c027a8783705d8aa8a308d7647b8a4494
7d809f5d8e93cb6d332297ece071083845e30e26
refs/heads/master
2022-12-27T11:53:12.876850
2020-10-02T20:08:49
2020-10-02T20:37:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
39,509
py
import caffe2.python.hypothesis_test_util as hu import hypothesis.strategies as st import numpy as np import struct import torch import unittest from caffe2.python import core, workspace from hypothesis import given, settings from scipy.stats import norm def generate_rois(roi_counts, im_dims): assert len(roi_c...
1c47c9fdf8a8c8a97a85e511d2f728033d298a81
b4c6200590a093b805036a822b7889c058494b9f
/Datasets/Terrain/us_ned_chili.py
8d66c58338f961fef2e597316c2d216fac9c958f
[ "MIT" ]
permissive
spoddar-JNPR/earthengine-py-notebooks
2109a52a49357c19f803b76ed635e022ee486ac6
ff1b5754785d5e25cb11acdbd52b0f31711d061f
refs/heads/master
2022-12-25T10:34:44.895717
2020-10-01T05:38:16
2020-10-01T05:38:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,897
py
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Datasets/Terrain/us_ned_chili.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target...
4d9e7f2b00593771459ae1d452b172e575e963f1
4a2c9299dfd009a614934ee82910adaa17ff3186
/app/tasks/models.py
75bc9c44588e8100eca8370379fc0d70e88d4cfe
[ "MIT" ]
permissive
sampathweb/blueprint_app
be8ab9c5bd956bc393b61542158c325ad27fffed
149225db4291519a6de56d8930e3a36ff9cd7888
refs/heads/master
2016-09-06T08:30:25.918934
2013-10-24T22:48:52
2013-10-24T22:48:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
from datetime import datetime from app import db class Task(db.Model): """A Task list.""" __tablename__ = 'tasks' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(50), unique=True, nullable=False) description = db.Column(db.String(255)) active = db.Column(db.Boolean, de...
3228263fc72105b309bff70782b154f4301ebf3d
457286f32a360c36da04f47fc4e7456dc07ee1df
/apps/log_measure/handlers/metrics.py
d51099943bd9c36c0f3352117243835c1e7264b5
[ "MIT" ]
permissive
jiazhizhong/bk-log
2fad422022f02569acf6e8668bb548cb76fcd8ca
85107762102ba2c72dcfb30fcf8986e146c03889
refs/heads/master
2023-08-21T02:01:08.911894
2021-10-22T08:52:22
2021-10-22T08:52:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,051
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-LOG 蓝鲸日志平台 is licensed under the MIT License. License for BK-LOG 蓝鲸日志平台: ------------------------------------------------...
025de780542a4de0d528fb37ec990d44996cca19
fa571a842f04bcbc77ff203a5ed6f6ee776eed6d
/keywords/codes/defkeyword.py
ee484d5db4128adb54ec86a4adb8116bafe3b444
[]
no_license
krishna-rawat-hp/PythonProgramming
b25c0916475724e6d2de4b7d59cf40b5b5e8330b
d24df17ca6aff9271c44ef8c73b80c00cd065ded
refs/heads/master
2023-03-11T19:24:34.529059
2021-02-27T14:09:22
2021-02-27T14:09:22
282,611,873
0
0
null
2020-07-26T10:38:54
2020-07-26T08:52:49
null
UTF-8
Python
false
false
93
py
def my_func(a,b): # def is used to define a function c = a+b print(c) my_func(15,35)
7cf821bf15a32a637688390b90127482667b71d9
fe6eaa2f3656dedcb2c1e937cc1363d19a0d3ec1
/leetcode_python/231.power-of-two.py
6c402eec05c33366e999760635c0f1d508c79f71
[]
no_license
toyijiu/my_code
4619ac6bc06c5032e01d5c215dbae516bbc4fe77
dd163cc47e2c706504aba1d42322167fb93dd9e9
refs/heads/master
2020-08-31T14:49:18.188393
2019-11-27T08:57:55
2019-11-27T08:57:55
218,714,791
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
# # @lc app=leetcode id=231 lang=python3 # # [231] Power of Two # # https://leetcode.com/problems/power-of-two/description/ # # algorithms # Easy (41.63%) # Total Accepted: 213.5K # Total Submissions: 512.8K # Testcase Example: '1' # # Given an integer, write a function to determine if it is a power of two. # # Ex...
7d31cb5286fe189f97049fbbe823e25ef89ce2d5
7a596dc0e121054fe5f05fae6c78774a57cf94ac
/setup.py
c6a683babc0762c4c1be30bfcd7d184061c327bb
[ "MIT" ]
permissive
nhoffman/swarmwrapper
8fffae5ed5824313f054fd7edb1ed2d3897b9c02
b62f955f843c76c4696320e2b2a14ce2b80e1807
refs/heads/master
2021-01-17T07:20:15.826516
2018-03-14T18:21:32
2018-03-14T18:21:32
42,473,732
3
1
null
2016-06-07T18:33:22
2015-09-14T20:00:11
Python
UTF-8
Python
false
false
1,038
py
import os import subprocess from setuptools import setup, find_packages subprocess.call( ('mkdir -p swarmwrapper/data && ' 'git describe --tags --dirty > swarmwrapper/data/ver.tmp' '&& mv swarmwrapper/data/ver.tmp swarmwrapper/data/ver ' '|| rm -f swarmwrapper/data/ver.tmp'), shell=True, stderr=...
f6b85844ae241476a94fc75c33793cf360b02aa6
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/batch_set_objects_response.py
1e18f86df848790e44e33d3a24e185439a9fa96c
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,672
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class BatchSetObjectsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key i...
556cc3314b023aaab5a462d23db49fc1d46593c8
bfe6c95fa8a2aae3c3998bd59555583fed72900a
/MyCircularQueue.py
cc36333e54e793ae307e426135a9c5b28f28d8dd
[]
no_license
zzz136454872/leetcode
f9534016388a1ba010599f4771c08a55748694b2
b5ea6c21bff317884bdb3d7e873aa159b8c30215
refs/heads/master
2023-09-01T17:26:57.624117
2023-08-29T03:18:56
2023-08-29T03:18:56
240,464,565
0
0
null
null
null
null
UTF-8
Python
false
false
1,165
py
class Node: def __init__(self, val): self.val = val self.next = None class MyCircularQueue: def __init__(self, k: int): self.size = k self.front = Node(-1) p = self.front for i in range(k): p.next = Node(-1) p = p.next p.next = s...
0d9157411e4013eb8d23e1592693f64f4d2340c9
282e6905cbcdc7795f5bd145f5310d4eef4d199d
/Dog Walking/Python-Solution.py
a3e0fd05d8058ce6172de8cfe0c2f836dd633d76
[]
no_license
Lizonghang/IEEEX
d9e41d7ba00dc73706afe4ae8aca9dae2d10ee37
8e5998820f9e0ba600e1b3f0366981f30e391ae1
refs/heads/master
2021-07-15T00:37:39.099411
2017-10-17T09:42:24
2017-10-17T09:42:24
105,604,511
1
0
null
null
null
null
UTF-8
Python
false
false
301
py
# Enter your code here. Read input from STDIN. Print output to STDOUT T = input() for t in xrange(T): N, K = map(int, raw_input().strip().split()) w = [] for i in xrange(N): w.append(int(input())) w.sort() d = [] for i in xrange(1, N): d.append(w[i] - w[i - 1]) d.sort() print sum(d[:N-K])
862c4269fd260804df4f1319bae80e4d6604e0b0
d48ddc1e4c4b1e379ed1c1971c84aa3c104edff2
/pymachinetalk/application/constants.py
1ab9e927720c09d627c62449d2566163a69b1225
[ "MIT" ]
permissive
machinekit/pymachinetalk
1b66e472f364c2d3fe6206823d6a50e41effce9e
be4bffd011ea76039407f043553552b8a0b69f2d
refs/heads/master
2021-01-12T19:19:52.051968
2020-09-22T19:40:52
2020-09-22T19:40:52
44,979,021
6
7
MIT
2020-09-22T19:40:54
2015-10-26T15:47:57
Python
UTF-8
Python
false
false
1,505
py
# coding=utf-8 # protobuf import machinetalk.protobuf.types_pb2 as types import machinetalk.protobuf.motcmds_pb2 as motcmds # noinspection PyUnresolvedReferences from machinetalk.protobuf.status_pb2 import * ORIGIN_G54 = types.ORIGIN_G54 ORIGIN_G55 = types.ORIGIN_G55 ORIGIN_G56 = types.ORIGIN_G56 ORIGIN_G57 = types....
bced46d25207d88a5d9ef827366a418030296c94
4e62fcb385d9e8a6af0c6c9ec315f803d6ea190b
/testsuite/modulegraph-dir/trivial-script
f52375825ebb81241b0cf11123498021f581e29b
[ "MIT" ]
permissive
ronaldoussoren/modulegraph2
8d8a18b472574acc158c5c293ae4ed7b88f06ba9
227954f5037e291edc91e666f21bda44fd66fcb2
refs/heads/master
2023-09-01T05:16:44.873049
2023-04-09T10:28:19
2023-04-09T10:28:19
231,953,118
12
7
MIT
2023-04-09T10:29:06
2020-01-05T17:36:35
C
UTF-8
Python
false
false
98
#!/usr/bin/env python3 print("What is your name?") name = input() print("Hello {}".format(name))
ca7dc3b58354ec5f7b8177aa40ae4f2f1c8c1694
242086b8c6a39cbc7af3bd7f2fd9b78a66567024
/python/PP4E-Examples-1.4/Examples/PP4E/Internet/Web/dev/PyMailCGI_2.1/cgi-bin/onEditPageSend.py
aaeda84076959bbddb4003c8c1a90814ed51323b
[]
no_license
chuzui/algorithm
7537d0aa051ac4cbe9f6a7ca9a3037204803a650
c3006b24c4896c1242d3ceab43ace995c94f10c8
refs/heads/master
2021-01-10T13:05:30.902020
2015-09-27T14:39:02
2015-09-27T14:39:02
8,404,397
4
4
null
null
null
null
UTF-8
Python
false
false
2,772
py
#!/usr/bin/python ############################################################### # On submit in edit window--finish a write, reply, or forward; # in 2.0, we reuse the send tools in mailtools to construct # and send the message, instead of older manual string scheme; # we also now inherit attachment composition from th...
[ "zui" ]
zui
ae9e86029763d737b183b2caf5231f0d4f50921d
11211916f39b9d98027b64d778e52743d0c519a1
/L3/doc/assignments/download/code/tmp/mindmap.py
79dfe6970ede18578894c3180bb23a782b56c190
[]
no_license
mantasruigys3000/Group-Task
87baf1bc2747323c0508f6f32ef733c3f4b50978
6790d74ae7fa0fe6b13733efcd75a9f4aca70ab0
refs/heads/master
2020-04-23T20:54:09.696659
2019-02-22T01:29:53
2019-02-22T01:29:53
171,454,102
0
0
null
2019-02-19T10:31:09
2019-02-19T10:31:08
null
UTF-8
Python
false
false
113
py
Ipsum sed tempora magnam quisquam porro tempora. Username: Sid Password: bungle Quiquia modi sit dolore quiquia.
cf48693e97cb38f9ccb91a41e55b51a294037776
7cf119239091001cbe687f73018dc6a58b5b1333
/datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_CJXW_ZYCJ/ZX_CJXW_ZYCJ_BQW_YW.py
ba8ecd5014776a7fa8dbfac0a2059a57780b2dab
[ "Apache-2.0" ]
permissive
ILKKAI/dataETL
0f5b80c3482994f735f092a1e01fa1009bac4109
32f7ec3aaaf32b5074536a615cb9cd5c28bd499c
refs/heads/master
2022-04-04T19:27:05.747852
2020-02-28T11:17:48
2020-02-28T11:17:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
# -*- coding: utf-8 -*- from database._mongodb import MongoClient def data_shuffle(data): return data if __name__ == '__main__': main_mongo = MongoClient(entity_code="ZX_CJXW_ZYCJ_BQW_YW", mongo_collection="ZX_CJXW_ZYCJ") data_list = main_mongo.main() for data in data_list: re_data = data_s...
92f76a6b89288b8b5be0af93b98b5c77b5bd1dad
b88ec36f31099bad6e6e647d2ea58c9ae9431368
/manage.py
3303836579406baa22be1d625ba3c1c0b62c1594
[]
no_license
crowdbotics-apps/golfworld2020-21545
6365f3d3c057b0f664c57bf1e4ddc511429b02e8
c4b0cfc85e1488792de4274c25c6f86b10558d73
refs/heads/master
2023-01-03T08:59:19.955215
2020-10-15T20:32:40
2020-10-15T20:32:40
304,441,435
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'golfworld2020_21545.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
599b2f6f2bda0dc8ed7f1276ca0b9a3c34c3d5df
200a7e17f51f7a2b959e6b0313b76effd9edb2ea
/image_classification/valid_resnet152.py
2f26314780c2291382dd4996d630e4bf1bb0bec8
[ "Apache-2.0", "MIT" ]
permissive
ZhiangChen/tornado_ML
43f243c0e8371830a104afa5b177deebfc14440d
d8bded61a6a234ca67e31776bc8576c6c18f5621
refs/heads/main
2023-04-29T04:40:05.850645
2021-05-20T04:50:32
2021-05-20T04:50:32
358,980,904
1
0
null
null
null
null
UTF-8
Python
false
false
4,370
py
""" training.py Zhiang Chen, April 2020 """ import torch import torch.utils.data import torchvision.datasets import torch.nn as nn import torchvision.transforms as transforms from utils import * import torchvision.models as models from data import EurekaDataset import os model_names = sorted(name for name in models._...
71f6171f7aaed83d059577c3d31fc17bf81f12e2
2a4a17a67b9069c19396c0f8eabc8b7c4b6ff703
/BGP3D/Chapter10/Examples/InputManagerClass_01.py
692c2663e7045b2d047b6e25f1ff8cc495719df4
[]
no_license
kaz101/panda-book
0fa273cc2df5849507ecc949b4dde626241ffa5e
859a759c769d9c2db0d11140b0d04506611c2b7b
refs/heads/master
2022-12-19T09:36:05.794731
2020-09-16T19:04:10
2020-09-16T19:04:10
295,784,057
0
0
null
null
null
null
UTF-8
Python
false
false
4,187
py
''' InputManager Class The purpose of this class is to have an object that will record user input and retain that information for use by other classes. ''' from direct.showbase.DirectObject import DirectObject from pandac.PandaModules import * class InputManager(DirectObject): def __init__(self): self....
c6a4ab92e7015536946f440f0ffb7bc101b5570f
214230d0796377be0bfdda286c2c389b92a19555
/Codegate/2022 Quals/nft/monitor.py
4922b3db2a6b542e3d5b30e586133eea5016c4fd
[ "Unlicense" ]
permissive
Qwaz/solved-hacking-problem
fa5ebfeb98ec979cf57dac1470a651199f2dc50d
cda0db4888322cce759a7362de88fff5cc79f599
refs/heads/master
2023-08-24T03:45:12.481496
2023-07-16T12:38:08
2023-07-16T12:38:08
49,208,719
100
28
null
2022-03-24T00:51:04
2016-01-07T14:18:18
HTML
UTF-8
Python
false
false
604
py
import json import time from account import * from web3 import Web3 url = "http://13.124.97.208:8545" provider = Web3(Web3.HTTPProvider(url)) with open("abi.json") as f: nft_abi = json.load(f) nft = provider.eth.contract(TARGET_ADDRESS, abi=nft_abi) while True: print( { "Balance": prov...
dceb561fd9b18dfb85b1c5185bbee23385340b30
cd9e707df25dd641163c0f89f33bdbcaa4f11a0c
/app/launcher.py
35b960fefa33b4f16d990cbfd903bb0ea5170691
[]
no_license
depixusgenome/libanalysis
80e50953d4fad1654091bbaf59f181803671a242
3565db8c0e42d62c1adee1d664846227499f1302
refs/heads/master
2020-09-24T08:40:10.498554
2019-11-29T13:03:31
2019-11-29T13:03:31
225,716,577
0
0
null
null
null
null
UTF-8
Python
false
false
7,795
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- "Updates app manager so as to deal with controllers" from contextlib import closing from typing import Dict, Any import sys import asyncio import socket import random from tornado.platform.asyncio import AsyncIOMainLoop from bokeh.application import Applic...
150f246e7cffd52c4816f26c2ce92dcb16d63e69
bfe6c95fa8a2aae3c3998bd59555583fed72900a
/trapRainWater.py
90bf3bb91de30cedf3d4da4078594bb04fe33a9b
[]
no_license
zzz136454872/leetcode
f9534016388a1ba010599f4771c08a55748694b2
b5ea6c21bff317884bdb3d7e873aa159b8c30215
refs/heads/master
2023-09-01T17:26:57.624117
2023-08-29T03:18:56
2023-08-29T03:18:56
240,464,565
0
0
null
null
null
null
UTF-8
Python
false
false
3,026
py
from heapq import heappop, heappush from typing import List class Solution: def trapRainWater(self, heightMap: List[List[int]]) -> int: m = len(heightMap) n = len(heightMap[0]) heap = [] water = [[12345678] * n for i in range(m)] for i in range(m): heappush(hea...
9c767873c7d94a6b7c04e62f428978616df72b28
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/P/pinakighosh/state18.py
8edcffd229b35ac73c3e1e4c249b99569bd7806f
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,650
py
import scraperwiki import mechanize # added by Usha import re # added by Usha import lxml.html url="http://censusindia.gov.in/Census_Data_2001/Village_Directory/List_of_Villages/List_of_Villages_Alphabetical.aspx?cki=&State_Code=18" import string #create list of upper case alphabets l=list(string.ascii_uppercase) #crea...
20786461b76ff1f1326b20fb8848a9ae5e46f159
007e187c7d91702fc900b75f771a2470e1c091e1
/tests/test_docker.py
28b67c058bb792d1b640d3f6bcd6e4c2eb60caf8
[]
no_license
bibi21000/janitoo_raspberry_i2c_ht16k33
bb3d05bdb395a29862c4e6bbb57c5e369aaca1e8
3dbb883cdc3439fd164edff21ffc0a0da7ee160f
refs/heads/master
2021-01-21T04:42:30.553870
2018-01-01T23:43:29
2018-01-01T23:43:29
55,532,142
0
0
null
null
null
null
UTF-8
Python
false
false
1,899
py
# -*- coding: utf-8 -*- """Unittests for Janitoo-common. """ __license__ = """ This file is part of Janitoo. Janitoo 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 3 of the Licens...
ea84847a897152e526e739c1b328a0e72c02ca0e
7fdac5209f86de756b9a8123a0911b70738eceeb
/pySDC/playgrounds/other/plots_overresolve_iter.py
74944e603d1cf9c88e95f665c70286392dffcc72
[ "BSD-2-Clause" ]
permissive
Parallel-in-Time/pySDC
edc66e399f6066effc5aaa376883e88e06b5332b
1a51834bedffd4472e344bed28f4d766614b1537
refs/heads/master
2023-08-30T23:17:56.017934
2023-08-30T05:42:00
2023-08-30T05:42:00
26,165,004
30
31
BSD-2-Clause
2023-09-14T06:40:13
2014-11-04T10:56:53
Jupyter Notebook
UTF-8
Python
false
false
2,099
py
import pySDC.helpers.plot_helper as plt_helper def beautify_plot(nprocs, fname): plt_helper.plt.grid() plt_helper.plt.legend(loc=2) plt_helper.plt.xlabel('Number of parallel steps') plt_helper.plt.ylabel('Theoretical speedup') plt_helper.plt.xlim(0.9 * nprocs[0], 1.1 * nprocs[-1]) plt_helper....
76359312a5bbde79e5804a8ff7620d844d4189e4
ebacefb163f31b3dd43f15ebdc91c5b76f6b703b
/lib/github/tasks.py
c6dd31a374dbbdae389ee01476928217efdc4fde
[ "MIT" ]
permissive
xyzlat/django-htk
a0180d3104c7e716cb07e075408acc14702abbc2
051256698ce7a593a8a9365c36ad9d265c6e0d80
refs/heads/master
2023-04-29T18:48:23.205203
2021-05-22T04:15:13
2021-05-22T04:15:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,373
py
# HTK Imports from htk.constants.time import ( BUSINESS_HOURS_START, ISOWEEKDAY_WEEKDAYS, MORNING_HOURS_END, ) from htk.tasks import BaseTask from htk.utils.text.transformers import get_symbols # isort: off class GitHubReminderTask(BaseTask): def __init__(self): from htk.lib.github.cachekeys...
df817cfce618305f6504307136b261cf76332d27
6d8915634102167d7515648e792a692a405dadc0
/documentation/Tutorial_Modules/Machine_Learning_and_Feature_Extraction_Tutorial/Preprocessing_Tutorial/Kaggle_Preprocessing.py
e129f02cd48840985c5bbbcb06a3de5932425d5f
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
LiaoPan/qtim_tools
6b2e43563c74ef9f6a29fd924d2d2bde0d97768a
92bd15ec7a81c5eda70d11a015f74538f3c41e22
refs/heads/master
2020-04-02T05:31:56.851236
2018-09-24T16:10:50
2018-09-24T16:10:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,181
py
# coding: utf-8 # # Prerequisites # # Welcome to class! # # The following tutorial was written by Guido Zuidhoff, and can be seen as originally published at https://www.kaggle.com/gzuidhof/data-science-bowl-2017/full-preprocessing-tutorial/discussion. It is being rehosted at https://github.com/QTIM-Lab/qtim_tools/t...
d55ebe60b8e0bcc0a970d6ad2f7b180ce8ffd6f3
6702a014d58a70808214f4ad0ce32aef11c106fe
/manage.py
ae7fa45b3669d123f62de0eb07941bf87d9f5b4f
[]
no_license
histuckyi/Django_tutorial
cb3373521b90d3505dc20abed3642aeb9a1e32ee
3a63cfae2173e0e44701b23c2aca5f314228655f
refs/heads/master
2020-06-11T06:17:00.400223
2019-06-26T10:12:49
2019-06-26T10:12:49
193,873,436
0
0
null
null
null
null
UTF-8
Python
false
false
573
py
#!/usr/bin/env python import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_tutorial.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you su...
fcaccd3bf997e4178ad0a6a92d0e8fd872093ed1
e838ea567fe5216bd83b72d5cc549363a666ac3d
/registry/serializers/data_category.py
1513f6a2ef2eb029d60b448425a25df85bfe014e
[]
no_license
iuriramos/swim-registry
f7ffee9a57b92021e7066820249092d1558a944d
7c71d294b5aa7cb40e01ed559e2fcb81d2e1f43a
refs/heads/master
2021-09-13T20:22:29.624535
2018-05-03T21:30:26
2018-05-03T21:30:26
85,312,675
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
from registry.models.data_category import DataCategory from rest_framework import serializers, viewsets class DataCategorySerializer(serializers.HyperlinkedModelSerializer): class Meta: model = DataCategory fields = ('pk', 'name', ) class DataCategoryViewSet(viewsets.ModelViewSet): queryset ...
084e8d38f2a41afdbacc05279be12f974947234b
b72f9d9f0769265cdea2b8caff145af9c532ea09
/rcl_contest_2020_final/a.py
8f28af7d879a8f73eacf82b2b20564e09dc9ba94
[]
no_license
ritzcr/AtCoder
3335fefa8fb1989a0f9da80fe6d0902b46aa2d1f
15097b0c2568ace653e5080d789047531e50edde
refs/heads/master
2021-02-12T19:16:41.757421
2020-07-05T06:30:57
2020-07-05T06:30:57
244,620,726
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
N, M = map(int, input().split()) dice = [1, 2, 3, 4, 5, 6] dice[0] = 6 output = " ".join(map(str, dice)) print(output) for _ in range(M): d, v, x = map(int, input().split()) dice[1] = 6 output = " ".join(map(str, dice)) print(output)
019d0099a757ba400b6c6c8ff733026d56b60154
79e5a3733b261f11cf13526460c39d3d722744dd
/strawberry/types/datetime.py
7abbf73d51ab32343b67f6c505b81f80fa1f7cc7
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
yngvarsh/strawberry
73cc0e0a862dc4796549f925ac167ec6768d5ade
96b8c701caaa0510e7118928e9e3c00d4ef5a05c
refs/heads/master
2020-12-11T13:13:57.579007
2020-01-15T11:50:17
2020-01-15T11:50:17
233,857,471
0
0
MIT
2020-01-14T14:17:58
2020-01-14T14:17:57
null
UTF-8
Python
false
false
663
py
import datetime import aniso8601 from ..custom_scalar import scalar def _serialize_isoformatted(value): return value.isoformat() Date = scalar( datetime.date, name="Date", description="Date (isoformat)", serialize=_serialize_isoformatted, parse_value=aniso8601.parse_date, ) DateTime = scal...
bacb702adf0fd1d047d9ffe824ab720ad30d31ad
2eaade99a8073faaf68c46eac48d8826b351fe17
/main.py
0ae913ee6b2c31ee876af199db61f9af08dd795d
[]
no_license
StevenMaharaj/traderv1
30ebb6f0242d986aace29ebc6e956bd78e68f02b
a1edab9722c2735302126d23ad1c9cd107152635
refs/heads/main
2023-07-22T21:56:37.266832
2021-09-08T05:34:50
2021-09-08T05:34:50
400,120,846
0
0
null
null
null
null
UTF-8
Python
false
false
1,381
py
from executionHandlers.execution import ExecutionHandler from queue import Queue from threading import Thread from dataHandlers.deribit import DeribitTOB import sys from event import Event, SignalEvent from accountHandlers.deribit import DeribitOrder from executionHandlers.deribit import DeribitExecutionHandler from da...
[ "=" ]
=
0c82b151fa1b84f52808f5d9cba3874637a21ab4
7e0f0662faee84f49794fb342199a59e570d4d15
/env/bin/mako-render
480cddd311d240ca506dd3dfdd95adb94f717789
[]
no_license
Samkanja/headline
03cfed21a21d71e91d9e37edf821c5d3d1a432c4
be792d6ac7e23ba04fbcacbfec84ea659ba67e32
refs/heads/master
2023-06-19T14:01:21.431839
2021-07-08T13:28:37
2021-07-08T13:28:37
380,808,352
0
0
null
null
null
null
UTF-8
Python
false
false
248
#!/home/kskanja/stuff/down/headline/env/bin/python3.9 # -*- coding: utf-8 -*- import re import sys from mako.cmd import cmdline if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(cmdline())
0adafa647dec796abb4b3232bac173145bced8c4
c71c8dc74cc70b06c0c703ef409363496f95871e
/src/agents/migrations/0001_initial.py
f1028782e91e944b84f19f2fc9b109c26bd8daea
[]
no_license
l3h4ng/test1
76e882882f8f8a5e0f87088abff13eeac90f33f3
870583fdc6107e16abf04434d83c285f273215f3
refs/heads/master
2020-04-08T07:18:18.315397
2018-11-26T08:57:27
2018-11-26T08:57:27
159,134,139
0
0
null
null
null
null
UTF-8
Python
false
false
20,451
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-03-22 02:37 from __future__ import unicode_literals import django.contrib.postgres.fields import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import time class Migration(migrations.Migration...
848cbab84018f841b970a1feb2b51d070c619871
2afc3ec1dae42403c2b208a21045e402636ca336
/models.py
28fa465795448218958b3af0e1a68d65f42181c9
[]
no_license
Jagadishbommareddy/myapp
6a5227f33ff5093eaf38f93ce9d69341e9ae6024
972b245c0fd33a4242ba17d3562f3e30acb20771
refs/heads/master
2021-01-22T13:52:49.093137
2017-08-18T09:14:59
2017-08-18T09:14:59
100,020,240
0
0
null
null
null
null
UTF-8
Python
false
false
1,100
py
from django.db import models from .validators import * class ContactInfo(models.Model): mobile_no = models.CharField(max_length=15,validators=[validate_mobile_no]) phone_no = models.CharField(max_length=15, validators=[validate_phone_no]) email_id = models.EmailField(max_length=50) class Address(mod...
e4eee8eb36da949a57ccfad7303d36932864ac6a
496419c3802640fda626241b313d15499747c451
/model_gravity_interactions.py
de84416634f6bd5a2ac930e9fbbc68dea580a9ac
[ "MIT" ]
permissive
simberaj/interactions
edf37bdf889f80e49032284621a2f0e38be99af8
8c7a29e97bc8f8d49901f6bdc406471f940c494e
refs/heads/master
2021-01-17T13:13:14.414343
2016-05-28T12:13:29
2016-05-28T12:13:29
42,062,951
1
0
null
2015-09-22T14:24:35
2015-09-07T16:16:49
Python
UTF-8
Python
false
false
2,739
py
import arcpy, common, modeling, loaders REPORT_TEMPLATE = u'''Interaction gravity modelling analysis Input interactions: %s Interaction selection query: %s Origin mass field (m1): %s Destination mass field (m2): %s Interaction real strength field: %s Interaction length field (d): %s Output model strength field: %s O...
59dc9eb4875328342d35aa350be38f2fd480157f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02988/s646336284.py
b26f4503b3a987d425115b8af58ec10880ae0e19
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
n = int(input()) P = [int(i) for i in input().split()] ans = 0 for i in range(1, n-1): if P[i-1] < P[i] < P[i+1]: ans += 1 elif P[i-1] > P[i] > P[i+1]: ans += 1 print(ans)
3b3ca2bace9cc78bd6f70523ff06faf3a1e3b10e
8d1264d9257eba418f92dbbbc8aac6773c4ec715
/core/signals/handlers.py
fe560bf24bf5e2578f83b7ab830653fd8a1cdd46
[ "MIT" ]
permissive
aldwyn/effigia
5f3e9e37eb7d169983034b61c7455baedc2d8817
eb456656949bf68934530bbec9c15ebc6d0236b8
refs/heads/main
2023-02-18T00:09:53.905711
2021-06-10T22:04:51
2021-06-10T22:04:51
96,387,903
1
1
MIT
2023-02-15T20:04:00
2017-07-06T04:21:09
HTML
UTF-8
Python
false
false
1,259
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import factory from django.contrib.auth import get_user_model from django.core.files.base import ContentFile from django.db.models.signals import post_save from django.dispatch import receiver from django.utils.text import slugify from core.models import...
69758bba6726950a002212f930181c065e9e2d13
175e4e031471e5cdbc9bcaee2df10f5ec44871d3
/LESSON2b/.history/test/webapitest/app_20200606195359.py
714e72278231784e6b0e68430eaf0ccb9e8fd6b3
[]
no_license
hiyacins/uma_study
c329d29a9c3899ab4feca21b9c47ef546b69b0bd
067e66f258a0c89f7670c645dd7c40feee8536fa
refs/heads/master
2023-01-23T06:40:12.435047
2020-06-17T15:59:34
2020-06-17T15:59:34
239,077,726
0
0
null
2023-01-06T08:36:26
2020-02-08T05:56:52
Python
UTF-8
Python
false
false
714
py
from flask import Flask, jsonify, request import json app = Flask(__name__) number = [] # クライアント側からPostされてくる @app.route('/incomes') def get_incomes(): return jsonify(number) # postされてきた情報を追加する。No Contentの場合のみ返す。 @app.route('/incomes', methods=['POST']) def add_income(): number.append(request.get_json()) ...
d544c2e7c9d241f40063ad8f91244d2f6b777aee
e7e74b72d5367ad03adcf20b3220620baddcc113
/gore/signals.py
d6cca88cbbe184fe91d588a1ddd42b337042da80
[ "MIT" ]
permissive
akx/gentry
be044a51d0b4d3dd875e320c5ecc3c02c0bc249c
5a550e34ced37f8f83a10001a3ef0b1480983781
refs/heads/master
2023-02-21T21:42:55.205987
2022-07-05T22:34:27
2022-07-21T11:46:46
98,209,171
4
1
MIT
2023-02-15T20:41:40
2017-07-24T16:02:32
Python
UTF-8
Python
false
false
62
py
from django.dispatch import Signal event_received = Signal()
779cddc46f1d979f1b14262ace1f13380aa72d7e
88ae8695987ada722184307301e221e1ba3cc2fa
/native_client/tests/unittests/shared/platform/build.scons
bfeb276a5229c844b09fb3c0810f6fc5f369a80a
[ "BSD-3-Clause", "Zlib", "Classpath-exception-2.0", "BSD-Source-Code", "LZMA-exception", "LicenseRef-scancode-unicode", "LGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-philippe-de-muyter", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-intel-osl-1993", "HPND-sell-var...
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
959
scons
# -*- python -*- # Copyright 2008 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. Import('env') nacl_thread_create_joinable_test_exe = env.ComponentProgram( 'nacl_thread_create_joinable_test', 'nacl_thread_c...
1559621c54b1ff6ac69648ec2eb3bf4ef28bfa19
c9a8bbc9068983d0fdeec0591baada54097199a9
/realesrgan/utils.py
06b2261df8e9a441ef8dea2fde9f321b133d6c5e
[ "BSD-3-Clause", "Python-2.0" ]
permissive
BookerDeWitt/Real-ESRGAN
041188784c8e1f842a443229643cb3065edc2272
5745599813f64c60b98048251ac421f199b4c034
refs/heads/master
2023-07-07T13:19:32.780848
2021-08-08T08:41:50
2021-08-08T08:41:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,470
py
import cv2 import math import numpy as np import os import torch from basicsr.archs.rrdbnet_arch import RRDBNet from torch.hub import download_url_to_file, get_dir from torch.nn import functional as F from urllib.parse import urlparse ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) class RealE...
5d3905192683a5c50a7325311d5ace07612a462d
14be8bcd7e66aad90b98d7c76a78fdb94c7c4f65
/l06/class6.py
7bbaa747c2aab0de8091ab7eb6f5675803a36373
[]
no_license
alexbyz/HW070172
f6231d7ccd0fb06a88db9bd6b0c718ed70ce62a2
e0e4946f82ba71b4d3860c570fadb9cd96a6c9a1
refs/heads/main
2023-03-03T06:16:17.630740
2021-02-09T09:55:04
2021-02-09T09:55:04
305,626,086
0
0
null
null
null
null
UTF-8
Python
false
false
1,304
py
import regex recordIdealtype = { "recodType": "recordType", "citationKey": "citationKey", "title": "title", "author": "author", "date": "date", "location": "location" } def readFile(): #reads in the file infile = input("inputfile: ") infile = open(infile, "r", encoding="UTF-8") ...
054f36bcdf826e08a8f89aaa7f004b02e8e37953
5bb2bfb2b15d2fd1c481181e028445da9c999d4a
/scripts/p63scan_gui.py
ba238ab6d96117f0882f83b287f5a4ff7f570947
[ "MIT" ]
permissive
Cesibarcaroli/p53scan
a482fe7a126b52468212f81834b30645af3d50d2
d73230e108db36fbcb7bb478f0622fe10cddd9df
refs/heads/master
2021-01-21T20:06:50.508594
2017-05-15T11:14:14
2017-05-15T11:14:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,315
py
#!/usr/bin/env python import sys import string import os from Tkinter import * import tkFileDialog import tkSimpleDialog import tkMessageBox from PftScan.Fasta import Fasta from PftScan.core import scan # Constants NAME = "p63scan" VERSION = "1.05" DESCRIPTION = """%s - Version %s p63scan (http://www.ncmls.nl/bioinfo/...
ebd10a0a4af3d11227b8cc8c42118b2079ceeef1
31f56a696a0a5ada4aa2d583f8b340201696b3c7
/nabu/neuralnetworks/classifiers/__init__.py
42fc49fb14a326860f2012974c7b5b9d567b6e93
[ "MIT" ]
permissive
DavidKarlas/nabu
6d7fcdcd46f97b8886382079d04251b6862203db
fb530cf617ff86fe8a249d4582dfe90a303da295
refs/heads/master
2020-12-30T13:29:38.735236
2017-04-28T14:50:57
2017-04-28T14:50:57
91,229,041
1
0
null
2017-05-14T08:09:03
2017-05-14T08:09:03
null
UTF-8
Python
false
false
172
py
'''@package classifiers Contains the neural net classifiers (e.g. dnn) and their components (e.g. layers) ''' from . import activation, classifier, layer, asr, lm
73e5dbdc975e9d650c27382bce182c16f1722617
a8f275638f6bab07644b6b6d2ff4a1eabc4a3b4b
/class-Animal.py
aba9a9201900ff4e823d33444234c6b42432f825
[]
no_license
evamaina/OOP
1bfd49706365f3d297f2383ffd995b2159ade283
b1623cf76896c21a4ac49526070d8f4ebd3b90a8
refs/heads/master
2021-08-17T20:44:47.516263
2017-11-21T17:22:12
2017-11-21T17:22:12
107,859,002
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
"""Inheritance provides a way to share functionality between classes. This similarity can be expressed by making them all inherit from a superclass Animal, which contains the shared functionality""" class Animal: def __init__(self, name, color): self.name = name self.color = color class Cat(Animal): def...
f10d7333e8172120f845c6ba2d0052fc407fff29
2aa9432798d681a9a21535397bf3414d04bf014e
/test/loggingDemo.py
ec95bf2285c991a9c4e84eaa52b2932ef7680438
[]
no_license
RaunakJalan/Selenium_Automation
babd426e9a12b3cfffe28a34af6486fcce57ce23
47d4faa275590b8f9c2d6922689275c13d3650c2
refs/heads/master
2023-03-14T14:42:40.308146
2021-03-09T16:29:16
2021-03-09T16:29:16
346,070,967
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
import logging logging.basicConfig(filename="test.log", format='%(asctime)s: %(levelname)s: %(message)s', datefmt="%m/%d/%Y %I:%M:%S %p" ) logger = logging.getLogger() logger.setLevel(logging.DEBUG) logger.debug("This is a debug message") logger.info("This ...
9eee040f0ac6b5d1d6039900ac3d403d046bf926
cf7b827958166c8569eb58deb511cc3f07567741
/in_Python_v2/1074 Number of Submatrices That Sum to Target.py
e3b4d58aa31bd7bded1a018b1d37e2c0dae32354
[]
no_license
YangLiyli131/Leetcode2020
e4e36eb36b1983f73b0e733455b4a7953dfebe6d
20623defecf65cbc35b194d8b60d8b211816ee4f
refs/heads/master
2023-08-22T06:00:55.924112
2021-09-18T19:04:15
2021-09-18T19:04:15
251,426,203
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
from collections import defaultdict class Solution(object): def numSubmatrixSumTarget(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: int """ row, col = len(matrix), len(matrix[0]) ps = [[0] * (col + 1) for _ in rang...
7601d4d19e420178a28cc601c74ab7d5147f8d3c
a6a2997ecc7dd8406f4e190d357cba1d301489c3
/users/admin.py
531bc47e3dd64703dae1fc4ae821ee05804a0ffb
[]
no_license
Shatki/itreactor
de306bd0a06d9b498645eeb76e191cfa70cdca04
a657ad7fb4a9051f9ab845539a7369fe0da17d26
refs/heads/master
2023-02-21T15:29:00.840747
2021-01-28T05:37:15
2021-01-28T05:37:15
317,347,004
0
0
null
null
null
null
UTF-8
Python
false
false
2,236
py
#!/usr/bin/python # -*- coding: utf-8 -*- from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import Group from .forms import UserCreationForm, UserChangeForm from .models import User, Feedback @admin.register(User) class UserAdmin(BaseUser...
a3de30095b503bfe0aca308080e3d8f013346b36
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p2DJ/New/program/cirq/startCirq407.py
4cd57412338a48432208219d046554ef403b1008
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,268
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=2 # total number=20 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
ddca45160dbe21af63be36d6a989d3787788a108
29145db13229d311269f317bf2819af6cba7d356
/january circuits/equalSub.py
379cf14defb37168832a4605de814de52080f970
[]
no_license
rocket3989/hackerEarth2019
802d1ca6fd03e80657cbe07a3f123e087679af4d
42c0a7005e52c3762496220136cc5c1ee93571bb
refs/heads/master
2021-07-05T01:32:42.203964
2020-12-22T03:40:20
2020-12-22T03:40:20
211,607,143
1
0
null
null
null
null
UTF-8
Python
false
false
440
py
N = int(input()) K = int(input()) A = [int(x) for x in input().split()] maxOf = A[0] l, r = 0, 1 sumEl = A[0] maxLen = 1 while r < N + 1: if sumEl + K < maxOf * (r - l): sumEl -= A[l] if A[l] == maxOf: maxOf = max(A[l + 1:r]) l += 1 continue maxLen ...
198932798010531a6e5ee431ea85d0f3e5ca76b1
c9642233f1de71f1a61ae28c695c2d9228825156
/echecs_hall/app/views/mj_hall_api/good.py
9ff47539c15f03ae8f000dca757f3e9985f69aac
[ "AFL-3.0" ]
permissive
obespoir/echecs
d8314cffa85c8dce316d40e3e713615e9b237648
e4bb8be1d360b6c568725aee4dfe4c037a855a49
refs/heads/master
2022-12-11T04:04:40.021535
2020-03-29T06:58:25
2020-03-29T06:58:25
249,185,889
16
9
null
null
null
null
UTF-8
Python
false
false
2,325
py
# coding=utf-8 from app.views.base_handler import BaseHandler from app.controller.mj_hall_controller import good_controller from app.controller.mj_hall_controller import login_hall_controller import json from . import mj_hall from app.share.error_code import * import time from app.extensions.common import md5 from torn...
a40038fb0b6957d262599096d21a59dd2890bc91
e526543920e4974504cb62802c393d5bc46559db
/python-repos/python_repos.py
cddc2b416e8f6a10ff5f96a8cd45f8641eb00818
[]
no_license
mare-astrorum/python-crash-course-practice
b843f2067208b749558c4423556498e643c5fa42
47423808902b75af9d7888d4f9fa9f083bce88f4
refs/heads/master
2020-09-06T19:02:09.837740
2019-11-08T17:30:52
2019-11-08T17:30:52
220,516,919
0
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
import requests import sys import pygal from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS # Make an API call and store the response. url = 'https://api.github.com/search/repositories?q=language:python&sort=stars' r = requests.get(url) print("Status code:", r.status_code) # Store API response in ...
e017100cb679bf6f1ae3e8f315b984bb2e457cfb
6375b7e4dfe11ced7dcd3fad1a7a2de9a504910d
/excel/xlutils_demo.py
d4506129814db5dc73782bc3726332f7f72f039b
[]
no_license
yaowenqiang/lpthw
b65e6b8ce576e7caa5cfba5570550e546d1e0549
4bbd7ebb4e8c570a39bf9c55df9bd97e4f86e1e5
refs/heads/master
2020-04-01T10:57:32.959389
2019-05-01T09:27:25
2019-05-01T09:27:25
153,140,026
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
import xlwt import xlrd import xlutils # 打开excel文件 workbook = xlrd.open_workbook("myexclee.xls") worksheet = workbook.sheet_by_index(0) data = worksheet.cell_value(0,0) wb = xlwt.Workbook() # 新建excel wb = xlwt.Workbook() sh = wb.add_sheet('Sheet1') sh.write(0,0,'data') wb.save('myexcel.xls')
0050e58aa4d71e43e495f50afeae7d51b46087dc
b457be31ac024f2a80ad553068544779d0680f48
/dnawf/templates/clean_template.py
5f1b01683a55986af6a84efe60413edbf363fd6e
[]
no_license
daxm/dnac-api-demo
9ef0782b9d780aad7ece1112814dbe3a794d687c
dbf8432c84d9e47255b184310df69af48d1f1fee
refs/heads/master
2022-11-03T14:42:26.021264
2020-06-16T20:00:32
2020-06-16T20:00:32
271,582,024
0
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
#!/usr/bin/env python # -*- coding: utf- import json from argparse import ArgumentParser import glob import os import pprint def clean_template(template): pprint.pprint(t) # template.pop('id') template.pop('createTime') template.pop('lastUpdateTime') template.pop('parentTemplateId') templ...
408abd329ed3059c69067f2e8937a82c4abe1a53
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-alertsmanagement/azure/mgmt/alertsmanagement/operations/alerts_operations.py
fd15f46bc8175cab9e2229c9c9919072c07c3b6a
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
27,563
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 ...
aed0c98fbf2de2b3457c2d0a458ec85581b0f37b
0b4f8d15b3c0d8e878ef8ec2d0e060499286714f
/myvenv/bin/django-admin.py
5697592d38a1797b795f9d80e8d0d31ecbd6c707
[]
no_license
kyounginbaek/Openarena_website
0f25da947add8a9119c3877b32470f75ba614da5
818acce8c9def5f5673cd8dbc8e8d8fff6b1a1ce
refs/heads/master
2022-10-01T18:45:16.123631
2017-07-08T09:21:42
2017-07-08T09:21:42
62,291,671
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
#!/Users/baekkyoungin/myvenv/bin/python from django.core import management if __name__ == "__main__": management.execute_from_command_line()
637b6f1e6ec46f1d584c268016837a63e14fff30
52b5773617a1b972a905de4d692540d26ff74926
/.history/get_20200810155009.py
13e9a436036562052c378984fa398589f08fdc7a
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
def produce(num1,num2): totalValue = 0 for i in range(abs(num1)): totalValue +=abs(num2) if num1 < 0 and num2 > 0: str1 = str(totalValue) newStr = "-"+ str1 return int(newStr) elif num1 > 0 and num2 < 0: str1 = str(totalValue) newStr = ...
54a008ec6f6fc4fcd11984a6970366a36a1b055b
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/0/oz.py
6e46cf0a68992802596650c2ce6e38fe9a41e517
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
485
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
ac725be804118071e93d65cfe070174d556c8388
bcc7011cb121e653d831e77206e541675e348337
/Global_and_Local_Inversions.py
17fc67eb30ac3008140d41569fefa9ea03994983
[]
no_license
Built00/Leetcode
2115c20bf91e9f9226ce952293132bc7a852fe86
ec3c0d4bd368dd1039f0fed2a07bf89e645a89c3
refs/heads/master
2020-11-24T09:12:08.172973
2018-03-27T01:23:08
2018-03-27T01:23:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,416
py
# -*- encoding:utf-8 -*- # __author__=='Gan' # We have some permutation A of [0, 1, ..., N - 1], where N is the length of A. # The number of (global) inversions is the number of i < j with 0 <= i < j < N and A[i] > A[j]. # The number of local inversions is the number of i with 0 <= i < N and A[i] > A[i+1]. # Return tr...
f1585623443f7ec42f32fddf1b27b2354e75a163
297497957c531d81ba286bc91253fbbb78b4d8be
/third_party/python/aiohttp/aiohttp/payload.py
eb38c7cdbc403922eef2eec74dd4c0d01c3bdbb3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
marco-c/gecko-dev-comments-removed
7a9dd34045b07e6b22f0c636c0a836b9e639f9d3
61942784fb157763e65608e5a29b3729b0aa66fa
refs/heads/master
2023-08-09T18:55:25.895853
2023-08-01T00:40:39
2023-08-01T00:40:39
211,297,481
0
0
NOASSERTION
2019-09-29T01:27:49
2019-09-27T10:44:24
C++
UTF-8
Python
false
false
12,804
py
import asyncio import enum import io import json import mimetypes import os import warnings from abc import ABC, abstractmethod from itertools import chain from typing import ( IO, TYPE_CHECKING, Any, ByteString, Dict, Iterable, Optional, Text, TextIO, Tuple, Type, Union,...
c0e0ba14f5b0d6553e0ab8ea2c7ab3c584612b90
b65c1f6000af4ddeb7280e7d93bf861fbf1964bc
/docs/conf.py
f738f1816dbe005da47a911e42eba2c58f773d96
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
EricSchles/calc
ef00aaddfec010321867a8287db0a565dbb7985e
eaa1ab227a5a07f5f4f7d2c64a278977cd43cb18
refs/heads/develop
2021-01-25T14:33:58.124300
2017-10-11T19:29:20
2017-10-11T19:29:20
72,668,485
1
0
null
2016-11-02T18:17:57
2016-11-02T18:17:57
null
UTF-8
Python
false
false
5,864
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # CALC documentation build configuration file, created by # sphinx-quickstart on Fri Feb 10 12:27:23 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
18b7044e434e0878ff4a74e4acebf367bfd3596e
1ea36bc61aed79d9ae198350e221c8d6a7073b08
/venv/Lib/site-packages/pip/_internal/resolution/resolvelib/requirements.py
813792d12ff37cacd53a4186dfedd722b748684d
[]
no_license
RicardoAltamiranoSanchez/Proyecto_Tienda_virtual_API_7-Sunburts
f3f0b7f166520d3d91832ac13aa0686d7b5211d8
4c95220415277f8561740a8da78ef68ff576f1d6
refs/heads/master
2023-04-25T23:40:43.804848
2021-05-15T16:50:44
2021-05-15T16:50:44
324,892,630
0
0
null
null
null
null
UTF-8
Python
false
false
5,180
py
from pip._vendor.packaging.utils import canonicalize_name from pip._internal.utils.typing import MYPY_CHECK_RUNNING from .base import Requirement, format_name if MYPY_CHECK_RUNNING: from pip._vendor.packaging.specifiers import SpecifierSet from pip._internal.req.req_install import InstallRequiremen...
800e01d96d0377b922a3b2148405d4d37c964fa3
531caac957596fc623e534bce734ef6b45be0b07
/tests/operators/vector/test_floor_001.py
350c04c90cd1257905c6cfa67ca849dde2b97a12
[ "Apache-2.0", "Zlib", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-2-Clause" ]
permissive
wxyhv/akg
02e64d81bbb84472e0bf1c57a691b688ea743d6e
fc9b6f5b6fa024da89bf90466a815359ca54015d
refs/heads/master
2023-03-11T02:59:18.472826
2021-02-23T07:44:16
2021-02-23T07:44:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,368
py
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
fadc77c7549de3d2eee4a4343e2f9d1d1c73a6b8
1bba82345900327ed1c128e8046dc91f90a0ccb5
/tax_debts/apps.py
0f0af72642fe3c3364064a1e06acab7be13c0dc7
[ "MIT" ]
permissive
dchaplinsky/ragoogle
40bd093682e41d1ee2a77f446c69d09e82bb3948
dccb3d29334c3220ea12c46c725c443c8bd725c0
refs/heads/master
2021-06-11T10:07:41.142843
2020-10-12T10:30:39
2020-10-12T10:30:39
136,800,715
3
3
MIT
2021-03-19T23:20:02
2018-06-10T10:51:30
CSS
UTF-8
Python
false
false
682
py
from abstract.apps import AbstractConfig from .loader import TaxDebtsLoader from .elastic_models import ElasticTaxDebtsModel, tax_debts_idx class TaxDebtsConfig(AbstractConfig): name = "tax_debts" verbose_name = "Податковий борг" short_name = "ДФС" loader_class = TaxDebtsLoader @property def...
84e37ca82405d9435b0a64bdc32f81f785b186e4
5f9e0c226c6f99f04446d60cd21282e7e6b05d2c
/sequence.py
4def0862fac63ace7d5d9b90c17358bee744d122
[]
no_license
JONNY-ME/my-kattis-solution
867ac267dbb5faa6f7c2af35b435498a22ae269d
51c70e0fd25f1f369cdcd2ce49a54d5d0df2358e
refs/heads/main
2023-06-17T20:04:04.701038
2021-07-16T09:35:35
2021-07-16T09:35:35
386,583,581
0
1
null
null
null
null
UTF-8
Python
false
false
167
py
from math import log, ceil k = log(int(input()), 2) if k == int(k): k = int(k)+1 else: k = ceil(k) print(k) for i in range(k): print(2**i, end=' ') print()