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
5ab5578bf208327a1eff085990fe8f1e60f3c230
05abb78c60a69422ae3e00a542bbd4573faf8174
/exercicios-pythonBrasil/estrutura-de-decisao/ex4.py
af8c4d8e04260c01583f8f17167d8136b44e919b
[]
no_license
xuting1108/Programas-de-estudo
72b812d52f5b130a95103c38dbe9e471dc5aa6f9
01fe21097055d69c2115cff3da2199429e87dead
refs/heads/master
2022-10-20T17:06:14.517643
2019-04-08T11:16:12
2019-04-08T11:16:12
179,678,721
0
1
null
2022-10-09T13:13:57
2019-04-05T12:38:23
Python
UTF-8
Python
false
false
228
py
#Faça um Programa que verifique se uma letra digitada é vogal ou consoante. letra = input('digite uma letra: ') vogal = ['a','e','i','o','u'] if letra in vogal: print('a letra é vogal') else: print('a letra é consoante')
[ "xuting1108@hotmail.com" ]
xuting1108@hotmail.com
09b99da8cdfe5943e6af2c2b2a60573ceaa7b344
446688fabdd0f2932ff4d23a41221b21277cae38
/tests/nodes/styles/test_manager.py
356d5c7f4010f497bffe8f0de251ed102e62a0ee
[]
no_license
eyelidsup/Houdini-Toolbox
529f5a8c135dfdc6996085149ebb5f4aa71ceafd
f5e8729c2d9ac7dd296ec3aaa6cac702e37b8100
refs/heads/master
2020-12-08T06:20:26.310716
2020-01-09T15:16:45
2020-01-09T15:16:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
47,850
py
"""Tests for ht.nodes.styles.module module.""" # ============================================================================= # IMPORTS # ============================================================================= # Standard Library Imports import imp import os # Third Party Imports import pytest # Houdini Toolb...
[ "captainhammy@gmail.com" ]
captainhammy@gmail.com
6f0e82c805b291ff0a194472a3145feebdb5cd8f
d0c0c46bade87640425b5587cc984f24f74cad24
/entrofy/utils.py
86f6959c8707d44b06c324229b95896f41e2c0f6
[]
no_license
dhuppenkothen/entrofy
4b3b28d66321ee29e2bfa9516cc2bf681b81ee7b
d0789a9f84147f623746efabb28721dd2dc4c141
refs/heads/master
2023-05-26T03:59:03.695720
2023-05-03T17:04:12
2023-05-03T17:04:12
43,324,813
83
26
null
2023-05-03T16:52:11
2015-09-28T20:21:10
Jupyter Notebook
UTF-8
Python
false
false
861
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- '''Utilities for entrofy''' import numbers import numpy as np # The following is borrowed from scikit-learn v0.17 def check_random_state(seed): """Turn seed into a np.random.RandomState instance If seed is None, return the RandomState singleton used by np.random...
[ "brian.mcfee@nyu.edu" ]
brian.mcfee@nyu.edu
88e1a352c0787e8f9703d43896d59f0e0f868906
c81ea73e93df307d35191ab184a85d6c67c57112
/dockers/rotnet/my_classify_modelnet.py
07c915271beed83cd0979c75243fd37e5b149e2e
[]
no_license
BlenderCN-Org/diplomka
8d0503fc5902dfede8317aed84f5a17f691f687f
575fe3f2436b9c511496c1dc019d9cc3423ba5f0
refs/heads/master
2020-05-22T15:42:00.143738
2019-05-07T07:37:46
2019-05-07T07:37:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
31,136
py
import numpy as np import os import sys import argparse import glob import time ang = np.zeros([60,20],dtype=int) ang[ 0 ][ 0 ] = 0; ang[ 0 ][ 1 ] = 1; ang[ 0 ][ 2 ] = 2; ang[ 0 ][ 3 ] = 3; ang[ 0 ][ 4 ] = 4; ang[ 0 ][ 5 ] = 5; ang[ 0 ][ 6 ] = 6; ang[ 0 ][ 7 ] = 7; ang[ 0 ][ 8 ] = 8; ang[ 0 ][ 9 ] = 9; ang[ 0 ][ 10 ]...
[ "miroslavkrabec@seznam.cz" ]
miroslavkrabec@seznam.cz
3208c332acc55b368ab94bdf44b3b9837d19ccc6
7298d1692c6948f0880e550d6100c63a64ce3ea1
/catalog-configs/Vocab/oly_residue_feature_residue_range_granularity_term.py
2a6871af85b0c4d5dfc6549841f414bf74e6de31
[]
no_license
informatics-isi-edu/protein-database
b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d
ce4be1bf13e6b1c22f3fccbb513824782609991f
refs/heads/master
2023-08-16T10:24:10.206574
2023-07-25T23:10:42
2023-07-25T23:10:42
174,095,941
2
0
null
2023-06-16T19:44:43
2019-03-06T07:39:14
Python
UTF-8
Python
false
false
6,309
py
import argparse from attrdict import AttrDict from deriva.core import ErmrestCatalog, get_credential, DerivaPathError from deriva.utils.catalog.components.deriva_model import DerivaCatalog import deriva.core.ermrest_model as em from deriva.core.ermrest_config import tag as chaise_tags from deriva.utils.catalog.manage.u...
[ "carl@isi.edu" ]
carl@isi.edu
2459f55cbfc596a0348544e1082025d1c74df70f
5d22d9b2cb5cad7970c1055aeef55d2e2a5acb8e
/leetcode/medium/Single_Number_II.py
add9ece16433795ee1263f81466aec110f3a062b
[ "MIT" ]
permissive
shhuan/algorithms
36d70f1ab23dab881bf1a15573fbca7b2a3f4235
2830c7e2ada8dfd3dcdda7c06846116d4f944a27
refs/heads/master
2021-05-07T14:21:15.362588
2017-11-07T08:20:16
2017-11-07T08:20:16
109,799,698
0
1
null
null
null
null
UTF-8
Python
false
false
2,869
py
# -*- coding: utf-8 -*- """ created by huash06 at 2015-04-14 09:08 Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? 本题目抄袭网上解答 http://blog.csdn.net/u011...
[ "shuangquanhuang@gmail.com" ]
shuangquanhuang@gmail.com
5639785d939846e909c75cbee27aa23627cd0be5
ff60aaabe366ebd8f60b8e0e66a86896553f32a3
/3)printrepeatedterm.py
6f2a348d23c6f7fac53e93f03f6698939d5cb112
[]
no_license
ramyasutraye/Python-6
cb2f55339f6b74dffe6f73551f3554703e17b673
1cc1c8a9f0045b72e1d55ef1bb3cf48d8df8612c
refs/heads/master
2020-04-12T02:05:21.861754
2018-09-21T19:02:29
2018-09-21T19:02:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
b=[] c=[] n=int(input("n")) if(1<=n<=100000): d = 0 for i in range(0,n): a=int(input("a")) b.append(a) if(i==b[i]): if(i>1): c.append(i) d=d+1 if(d>0): for i in range(0,d): print(c[i],end='') else: ...
[ "noreply@github.com" ]
ramyasutraye.noreply@github.com
2632cd2dc9be90088cf3c9cb11bca712c914b92d
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_17718.py
ecbea9a552d27059af7d9e0f0c3939276c87fda1
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
82
py
# Django Admin image upload not saving on database super(Categorias, self).save()
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
1803103160982a7a1919f6e7222975837423e07b
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_74/906.py
6098eb329012ba22538c600f690fc3242f5cc393
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,750
py
f=open("A-large.in.txt","r") seq=f.readlines() f.close() N=eval(seq[0]) resultats=[] for i in range(1,N+1): print("Case #"+str(i)) l=seq[i].split() n=eval(l[0]) j=1 tabO=[] tabB=[] ordre=[] while j!=len(l): letter=l[j] j=j+1 num...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
a0b9911f771263a3ccb57196cec783570a84af37
a83bafc38b514a0339a5991be15870551ac49681
/test/test_size.py
fa8c40e84c918eb4dedd5c56839a82898118cc61
[]
no_license
bimdata/python-api-client
4ec2f81e404ef88d3a7e4d08e18965b598c567a2
c9b6ea0fbb4729b2a1c10522bdddfe08d944739d
refs/heads/master
2023-08-17T13:38:43.198097
2023-08-09T12:48:12
2023-08-09T12:48:12
131,603,315
0
4
null
2022-10-10T15:21:26
2018-04-30T14:06:15
Python
UTF-8
Python
false
false
850
py
""" BIMData API BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501 The version of the OpenAPI document: v1 (v1) Contact: support@bimdata.io...
[ "infra@bimdata.io" ]
infra@bimdata.io
7cd2ab7936c6d68d7f3f14fd20b81bad6a522aee
4dd6a8d8024a72a3e2d8e71e86fd34888a149902
/keras/keras31_GRU.py
6f2d253b30f0ee9f5173859af80147f7d052dc83
[]
no_license
KOOKDONGHUN/study
d483b125d349956b325bc5f4d99a4a95dd80ccbc
517effbb19ddc820d53f0a6194463e7687467af6
refs/heads/master
2023-01-14T09:13:48.346502
2020-11-20T09:03:25
2020-11-20T09:03:25
259,818,381
0
0
null
null
null
null
UTF-8
Python
false
false
887
py
from numpy import array from keras.models import Sequential from keras.layers import Dense, LSTM, GRU # 1. 데이터 x = array([[1,2,3],[2,3,4],[3,4,5],[4,5,6]]) # x = x.reshape(x.shape[0], x.shape[1], 1) # y = array([4,5,6,7]) # print(x.shape) # print(y.shape) # # 2. 모델구성 model = Sequential() model.add(GRU(17,acti...
[ "dh3978@naver.com" ]
dh3978@naver.com
a98edef9f2a80afb42119e0f7f8ae31e94f83631
50f16b7cfa04a71d6d3f0d525d964eb217f419d0
/mi/instrument/wetlabs/fluorometer/flort_d/test/test_driver.py
338aea75349b8cb19d62eff5fab6cf207397685b
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cameron55445/mi-instrument
25a7dd35cfedf68b4dd04fc2a7d837036e768752
1a74ebf7c31131c856fc06d91bef7c72fcfadb54
refs/heads/master
2021-01-18T16:53:25.208318
2015-08-05T00:15:56
2015-08-05T00:15:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
41,337
py
""" @package mi.instrument.wetlabs.fluorometer.flort_d.test.test_driver @file marine-integrations/mi/instrument/wetlabs/fluorometer/flort_d/driver.py @author Art Teranishi @brief Test cases for flort_d driver USAGE: Make tests verbose and provide stdout * From the IDK $ bin/test_driver $ bin/test_dri...
[ "petercable@gmail.com" ]
petercable@gmail.com
f94e6cb886df4a274d453c097a89b73b77ba8d77
36d2fcfee8932c2ce75fefe2bc9d53e4a19f88a5
/tensorflow/contrib/distribute/python/minimize_loss_test.py
16541c7a1e342f5636e238a301d0946d3e0c4bc4
[ "Apache-2.0" ]
permissive
Gongxuping/tensorflow
54a82b73b2df13056da33182c101f873350236e7
cd174ffdb7b47cb27b22c6a96050e962eb9c2c99
refs/heads/master
2020-04-30T06:22:56.972721
2019-03-20T03:48:05
2019-03-20T03:54:03
176,650,065
1
0
Apache-2.0
2019-03-20T04:00:34
2019-03-20T04:00:34
null
UTF-8
Python
false
false
20,055
py
# Copyright 2018 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...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
26efc3cce877f299cf32012575f07145b63c0430
dda618067f13657f1afd04c94200711c1920ea5f
/scoop/user/views/sitemap.py
56f977aedeaf09d8b4316a0d943c922d7c04de75
[]
no_license
artscoop/scoop
831c59fbde94d7d4587f4e004f3581d685083c48
8cef6f6e89c1990e2b25f83e54e0c3481d83b6d7
refs/heads/master
2020-06-17T20:09:13.722360
2017-07-12T01:25:20
2017-07-12T01:25:20
74,974,701
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
# coding: utf-8 from django.conf import settings from django.contrib.sitemaps import Sitemap from scoop.user.models.user import User class ProfileSitemap(Sitemap): """ Sitemap des profils utilisateurs """ limit = getattr(settings, 'SITEMAPS_ITEMS_PER_PAGE', 10000) # Getter def items(self): ""...
[ "steve.kossouho@gmail.com" ]
steve.kossouho@gmail.com
393ec2cbe1fca2ff890772f6098dac1b3cc965e2
c397b704f6a18e5db90ef29325ee6d0564243c23
/dashboard/templatetags/tag.py
0ac21c9b270bdc07cb70bdcd725b394ffa58e0f5
[]
no_license
Raza046/Learning-management-System
47f112b3a05c3581675ff6d11f2bf95598b97b50
2bf29f2caff6247ca7a23cf041ca52f4f311b9b4
refs/heads/master
2023-02-23T14:42:27.815725
2021-01-29T10:25:55
2021-01-29T10:25:55
334,098,818
1
0
null
null
null
null
UTF-8
Python
false
false
332
py
from django import template register = template.Library() @register.filter def to_str1(value1): v = value1.split(":")[0] print("Str1 --> " + str(v)) return int(v) @register.filter def last_str(value): v2 = value.split(":")[1].split("-")[1] print("Str2 --> " + str(v2)) retu...
[ "rulmustafa22@gmail.com" ]
rulmustafa22@gmail.com
6b91fcb254bfed2355e297e9b6d8373cda8ba3cd
1faf6ad07b7ed8c58577517803d7e26e97e71a7b
/setup.py
31a093f80d58d10e4f455b5cf4c785619af955cc
[]
no_license
pizzapanther/Django-Permissions-Keeper
d6b668b1926d2c0df39617c1adacec2350a63114
3f77332f74d58c67464a38d960050dba31d50e17
refs/heads/master
2021-01-22T03:39:03.654842
2012-05-04T21:43:40
2012-05-04T21:43:40
4,229,019
0
1
null
null
null
null
UTF-8
Python
false
false
510
py
import sys from setuptools import setup, find_packages setup( name = "permkeep", version = '12.05.1', description = "Easy way to keep group permissions in sync between Development and Production environments.", url = "https://github.com/pizzapanther/Django-Permissions-Keeper", author = "Paul Baile...
[ "paul.m.bailey@gmail.com" ]
paul.m.bailey@gmail.com
220633df6985c7f48707704ceff0d82d9b9de024
9508879fcf1cff718f3fe80502baff8b82c04427
/python_domain/strings/the_minion_game.py
90bbaa4f8b053286f8a6493f0de4ace47d978aa8
[]
no_license
davidozhang/hackerrank
e37b4aace7d63c8be10b0d4d2bffb4d34d401d55
bdc40d6ff3e603949eb294bbc02a1e24a4ba5b80
refs/heads/master
2021-05-04T11:31:59.110118
2017-11-15T09:17:27
2017-11-15T09:17:27
47,906,672
1
0
null
null
null
null
UTF-8
Python
false
false
647
py
#!/usr/bin/python VOWELS = set(['A', 'E', 'I', 'O', 'U']) def main(): cons_indices, vowel_indices, cons_count, vowel_count = [], [], 0, 0 word = raw_input() length = len(word) for i in xrange(length): cons_indices.append(i) if word[i] not in VOWELS else vowel_indices.append(i) for j in cons...
[ "davzee@hotmail.com" ]
davzee@hotmail.com
2c28c51ebc9ab2af80770363f29a38e35845b4eb
987a68b9c196f39ba1810a2261cd4a08c35416a3
/BitManipulation/477-total-hamming-distance.py
d72e1cdc9fb4e1437904f0b57379eaa8d1614906
[]
no_license
xizhang77/LeetCode
c26e4699fbe1f2d2c4706b2e5ee82131be066ee5
ce68f5af57f772185211f4e81952d0345a6d23cb
refs/heads/master
2021-06-05T15:33:22.318833
2019-11-19T06:53:24
2019-11-19T06:53:24
135,076,199
0
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
# -*- coding: utf-8 -*- ''' The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find the total Hamming distance between all pairs of the given numbers. Example: Input: 4, 14, 2 Output: 6 Explanation: In binary representation, the 4 ...
[ "xizhang1@cs.stonybrook.edu" ]
xizhang1@cs.stonybrook.edu
e514d3ebe05555c553230d7c7194e58ed12483ee
735a315ea82893f2acd5ac141f1a9b8be89f5cb9
/pylib/mdsplus/widgets/mdsplusonoff.py
e81302052652ef5f273b89179e660d88e9edca3e
[]
no_license
drsmith48/pppl-mdsplus-python
5ce6f7ccef4a23ea4b8296aa06f51f3a646dd36f
0fb5100e6718c8c10f04c3aac120558f521f9a59
refs/heads/master
2021-07-08T02:29:59.069616
2017-10-04T20:17:32
2017-10-04T20:17:32
105,808,853
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
import gtk import gobject from mdspluswidget import MDSplusWidget class MDSplusOnOff(MDSplusWidget,gtk.CheckButton): __gtype_name__ = 'MDSplusOnOff' __gproperties__ = MDSplusWidget.__gproperties__ def reset(self): try: self.set_active(not self.getNode().state) except Exc...
[ "drsmith8@wisc.edu" ]
drsmith8@wisc.edu
b0ad84988b762ee1b062b2341ef5f74ca5aa6e21
beea74a2a1f2445b107af411197e8b6300e715e6
/supervised_learning/0x01-classification/18-deep_neural_network.py
c0b59e9055452ecf800ba4ef9300a59b1bbc3e1d
[]
no_license
95ktsmith/holbertonschool-machine_learning
0240d8fa8523b06d3353c2bffa74205b84253be8
2757c8526290197d45a4de33cda71e686ddcbf1c
refs/heads/master
2023-07-26T16:02:26.399758
2021-09-09T15:57:57
2021-09-09T15:57:57
310,087,776
0
0
null
null
null
null
UTF-8
Python
false
false
2,595
py
#!/usr/bin/env python3 """ Deep Neural Network """ import numpy as np class DeepNeuralNetwork: """ Class representing a deep neural network """ def __init__(self, nx, layers): """ Init nx is the number of input features nx must be a positive integer layers is a ...
[ "95ktsmith@gmail.com" ]
95ktsmith@gmail.com
6f030a71946122b5dda42fcbca479ce4f90632ec
2614f223ad9aecddaca4358d51910e036bf0c2ff
/archived/asap/count_asap.py
7981d5311e807c7e01362783a836046a0c2a45e3
[]
no_license
cff874460349/tct
d615efb7485e5de3de66e2d02fff5ce9b33350a3
5bb4b16c4fad03a470243dd7db807a6a733d02e5
refs/heads/master
2021-03-14T00:55:51.556468
2019-06-28T03:56:54
2019-06-28T03:56:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,174
py
# count the number of annotations in each category import os import csv import collections from xml.dom.minidom import parse import xml.dom.minidom import xlsxwriter def scan_files(directory, prefix=None, postfix=None): files_list = [] for root, sub_dirs, files in os.walk(directory): for special_file i...
[ "yuli00986081@gmail.com" ]
yuli00986081@gmail.com
d674af227aff1f94b7c80bd78974fba9c40fc93f
32cf94c304c2c832595a28b49c7d9e0361d50950
/test/re2/unicode_test.py
a88a3ad5a4bd5c1ae59908c3aef9b84135ee98f9
[ "MIT" ]
permissive
oudream/ccxx
11d3cd9c044c5f413ebc0735548f102a6f583114
26cecfb02e861ce6b821b33350493bac4793e997
refs/heads/master
2023-01-29T11:20:12.210439
2023-01-12T06:49:23
2023-01-12T06:49:23
47,005,127
46
11
MIT
2020-10-17T02:24:06
2015-11-28T01:05:30
C
UTF-8
Python
false
false
6,720
py
#!/usr/bin/python2.4 # # Copyright 2008 The RE2 Authors. All Rights Reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. """Unittest for the util/regexp/re2/unicode.py module.""" import os import StringIO from google3.pyglib import flags from google3.testing...
[ "oudream@126.com" ]
oudream@126.com
a6321682c22d998495daa7c30cf51f69ad8cfdcd
fbe0d8ceb2d753596d61f948939999499767abcd
/selectivechat_project/asgi.py
07e8be94cc5c78874d1fc5c2106161cf867f541d
[ "MIT" ]
permissive
calixo888/selectivechat
ac0929ecbdb99e7e76fdbf8e5e037de20d418e64
2acbabe2355590986ea838348013d6ae7ddc6210
refs/heads/master
2022-05-03T02:40:23.329969
2020-10-25T23:18:26
2020-10-25T23:18:26
238,330,840
0
0
MIT
2022-04-22T23:00:33
2020-02-04T23:49:05
JavaScript
UTF-8
Python
false
false
215
py
import os import django from channels.routing import get_default_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "selectivechat_project.settings") django.setup() application = get_default_application()
[ "calix.huang1@gmail.com" ]
calix.huang1@gmail.com
1a68aeae4a81ff86a15a5dc3c037aa863c913cbc
a4cab19f70365d1d5fba31f7d93ecd315ccc6268
/0x01-python-if_else_loops_functions/8-uppercase.py
6b69d971831179f43a3140e150e24617959a7914
[]
no_license
cmmolanos1/holbertonschool-higher_level_programming
c2154022cb868caccb7759812c292106c3654b41
a58c4fb3659d520b4d78631c6a00c6301f79522d
refs/heads/master
2020-07-22T23:54:31.275115
2020-04-11T00:46:00
2020-04-11T00:46:00
207,374,519
0
2
null
null
null
null
UTF-8
Python
false
false
210
py
#!/usr/bin/python3 def uppercase(str): for i in range(len(str)): char = ord(str[i]) if 97 <= char <= 122: char = char - 32 print("{:c}".format(char), end='') print()
[ "926@holbertonschool.com" ]
926@holbertonschool.com
e89f9593303b5bb1ecd95e569dd8df7c44645932
c2d2b22edac0b3c0b021ad28ad638dece18c2549
/Python/Problems/Knapsack_Problem/solution.py
208187de85cbc3228edbb5207e7f8c0bec3a934a
[]
no_license
dileepmenon/GeeksForGeeks
248c69065d947f760f054dd4681063f21ca9be23
9b5f8955a02cae27e4677b2c3fa1578e6ad1c545
refs/heads/master
2021-05-23T05:24:58.876414
2017-12-04T05:58:47
2017-12-04T05:58:47
95,201,250
1
0
null
null
null
null
UTF-8
Python
false
false
618
py
#!bin/python3 def KP(w_l, p_l, W): if not w_l: return 0 if W == 0: return 0 try: return d[(p_l[0], len(p_l), W)] except: if W-w_l[0] >= 0: s = max(p_l[0] + KP(w_l[1:], p_l[1:], W-w_l[0]), KP(w_l[1:], p_l[1:], W)) else: s ...
[ "dileepmenon92@yahoo.com" ]
dileepmenon92@yahoo.com
91242f64a3dda3056dd978c5cd6248e143e8a1d6
3f642957664a470897b10b15ab29734bf53ffd9c
/config/settings/prod.py
9bdb2635999a4209e918ea4ff182fcec05d179f1
[]
no_license
birkoss/walleteur-api
da276de50f2d976bae9d749da98f80f3f6c45518
bc16f2e5801ccddf90bff1cf1eb867c697fb9d71
refs/heads/master
2023-03-28T16:59:23.678986
2021-04-11T00:13:06
2021-04-11T00:13:06
354,413,671
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
from .base import * ALLOWED_HOSTS = ['api.walleteur.app'] DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': get_secret('DATABASE_NAME'), 'USER': get_secret('DATABASE_USER'), 'PASSWORD': get_secret('DATABASE_PASSWORD'), 'HOST': 'localhos...
[ "admin@birkoss.com" ]
admin@birkoss.com
f6f3db537ccc13b21749242df396539920dc9396
3f2847f499878ea2a42cffea6f312ebe5fc14098
/aiosmb/dcerpc/v5/common/even6/resultset.py
46f925c1d14ad1eb0f7059f73a16c8520df23bf1
[]
no_license
rvrsh3ll/aiosmb
a924b2d2be3e60b44a1522db52a1d2316fc3ba6f
a00a7d32f43e91746e74f5d72cd8f2ff4a4e8ea6
refs/heads/master
2023-06-07T15:33:14.701529
2023-05-30T16:02:35
2023-05-30T16:02:35
203,462,354
0
0
null
2023-05-31T07:45:14
2019-08-20T22:15:30
Python
UTF-8
Python
false
false
1,258
py
import io # https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-even6/762528ba-f36a-4d17-ba2b-0f0244a45f2f class RESULT_SET: def __init__(self): self.totalSize = None self.headerSize = None self.eventOffset = None self.bookmarkOffset = None self.binXmlSize = None self.eventData = None self...
[ "info@skelsec.com" ]
info@skelsec.com
581191e94f960c99a337ad22746bd5278f4755a0
bc108434d5f485a5ca593942b0fbe2f4d044ebda
/nn/pdll-v1.0/nn/functional.py
3ad6c9bd8a6e6f47a937446ab2845ff6bcf68e11
[]
no_license
js-ts/AI
746a34493a772fb88aee296f463122b68f3b299d
353e7abfa7b02b45d2b7fec096b58e07651eb71d
refs/heads/master
2023-05-29T16:19:03.463999
2021-06-22T05:49:44
2021-06-22T05:49:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,814
py
import math from typing import Tuple, Union import operator import functools from pdll.backend import Tensor, np from pdll.autograd import Function, Variable, register from .utils import im2col, col2im class _Sigmoid(Function): """sigmoid """ def forward(self, t: Tensor) -> Tensor: self.out = 1. ...
[ "wenyu.lyu@gmail.com" ]
wenyu.lyu@gmail.com
e0e63584b29b38b3bbf8b8c4aae8e8e2e55f8837
13d222bc3332378d433835914da26ed16b583c8b
/tests/challenge90/test_challenge90.py
888f1e85cb508d5239b468228512fd72a0fa717a
[]
no_license
mattjhussey/pemjh
c27a09bab09cd2ade31dc23fffac07374bea9366
2ebb0a525d2d1c0ee28e83fdc2638c2bec97ac99
refs/heads/master
2023-04-16T03:08:59.390698
2023-04-08T10:54:00
2023-04-08T10:54:00
204,912,926
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
""" Tests for challenge90 """ from robber import expect from pemjh.challenge90 import main def test_challenge90(): """ Regression testing challenge90 """ expect(main()).to.eq(1217)
[ "matthew.hussey@googlemail.com" ]
matthew.hussey@googlemail.com
36362d5255285a4d5af86585e2249648aeeb2fe9
eadde35af2b82fe3de7bc2f1cbc579af0a1a8816
/bookstore/migrations/0005_auto_20180910_1302.py
aca3b8ea2a485fa9413c77f0abf75b52ecb84281
[]
no_license
hdforoozan/Shop
425a2371d2f96baca29db0948294edb31a4504b8
776d36149733a38bda26715bc3b16c03f0d53a9c
refs/heads/master
2020-04-24T06:22:14.033290
2019-02-20T22:51:49
2019-02-20T22:51:49
171,762,724
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
# Generated by Django 2.1 on 2018-09-10 08:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bookstore', '0004_auto_20180909_1735'), ] operations = [ migrations.AlterField( model_name='book', name='price', ...
[ "hdforoozan@gmail.com" ]
hdforoozan@gmail.com
ad362b8979bb63891013b3da09d9a8e8c9d0f089
0fe9717ee13b33f0a39af1a86f9a08da111f8dee
/notebooks/CharacterisingFunctions.py
0846d356b0e8dc562122f7bae35af8aa28d641bc
[]
no_license
julieweeds/oldbailey-corpling
6bea1ef9daec87c089fc0061652301e480260061
101fa6bff0e43cf91c863922159374713e04e66a
refs/heads/master
2021-01-20T17:06:18.142997
2018-02-09T09:58:47
2018-02-09T09:58:47
90,863,654
0
0
null
null
null
null
UTF-8
Python
false
false
14,514
py
#taking the code out of CharacteristicWords.ipynb and analysis.ipynb to make available elsewhere import matplotlib.pyplot as plt import numpy as np import operator import math # For a given set of corpora, find the frequency distribution of the k highest frequency words # Output total size of corpus and sorted lis...
[ "julie.weeds@gmail.com" ]
julie.weeds@gmail.com
d08de54d6bc59e78633d8e6b4a520fc80e51009c
909bb1b51213e47424ac9ccf3c3ca83764a5c04b
/semestre01/exercises_university_uri/1282.1.py
27d805f65a4be6aee16bc016ef4043a431a27604
[ "MIT" ]
permissive
alaanlimaa/impactaADS
07e5d74c88ca0ec85c96960fadc2e22cbb67269b
307d0b2c7831a5038184592afae7a825b2774498
refs/heads/main
2023-07-23T20:36:06.045907
2021-08-30T15:45:02
2021-08-30T15:45:02
387,860,398
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
def txt(msg): print('-' * len(msg)) print(msg) print('-' * len(msg)) qtdCanais = int(input()) lista = [] for c in range(1, qtdCanais + 1): num = input() if ' ' in num: numE = num.replace(' ', '-') numE = numE.replace(';', ' ').split() lista.append(numE) else: nu...
[ "alanlimabusiness@outlook.com" ]
alanlimabusiness@outlook.com
60c39f0052992c31c1a7d737ffd1a39b574e54e5
a742bd051641865d2e5b5d299c6bc14ddad47f22
/algorithm/leetcode/greedy/02-无重叠区间.py
74158138c6e570b1e20ea082b1bcb41d0e108c23
[]
no_license
lxconfig/UbuntuCode_bak
fb8f9fae7c42cf6d984bf8231604ccec309fb604
3508e1ce089131b19603c3206aab4cf43023bb19
refs/heads/master
2023-02-03T19:10:32.001740
2020-12-19T07:27:57
2020-12-19T07:27:57
321,351,481
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
""" 给定一个区间的集合,找到需要移除区间的最小数量,使剩余区间互不重叠。 """ from typing import List class Solution: def eraseOverlapIntervals(self, intervals: List[List[int]]) -> int: def OverlapIntervals(intervals: List[List[int]]) -> int: if not intervals: return 0 items = sorted(intervals,...
[ "525868229@qq.com" ]
525868229@qq.com
57938b46b9880b0ecc3b834e564bc5fe379aef20
bd1281d7da02ace6b50aeb267b9a0cd8876eea11
/badwolf/log/views.py
c31fb6ed5e556649a9a6c522df649952389c2021
[ "MIT" ]
permissive
bosondata/badwolf
6ebde680df6d3e7e7e0a7d295ce7cf6944a93d3d
c693785af101f68505769cd712bbf13e37423587
refs/heads/master
2023-03-08T04:51:36.911524
2019-07-11T02:44:22
2019-07-11T02:44:22
67,678,705
95
15
MIT
2018-12-19T09:05:49
2016-09-08T07:18:49
Python
UTF-8
Python
false
false
3,039
py
# -*- coding: utf-8 -*- import os import logging import deansi from flask import Blueprint, current_app, send_from_directory, request, abort, Response from docker import DockerClient logger = logging.getLogger(__name__) blueprint = Blueprint('log', __name__) FOLLOW_LOG_JS = '''<script type="text/javascript"> var ob...
[ "messense@icloud.com" ]
messense@icloud.com
a4e5dd0c35c7a3cb860b83cb9f710b863ad829b1
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_206/1034.py
37a51eca5168bb24b1adf080e12fe5ea12ac91a4
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
import os input_file = open("input_large.in", "r") output_file = open("output_large.out", "w") cases = int(input_file.readline()) for i in range(cases): params = input_file.readline().split(" ") full_dist = float(params[0]) num_horses = int(params[1]) h_distances = [] h_speeds = [] ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
0ca58964ef93d7904fda1f224bdc824f1998133f
fd180ada22150a08106fba3258ed671940e7db25
/torch/fx/graph_module.py
bbc5c26a818213e074e424d5c8dca146f88cc453
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
xta0/pytorch
004d1f6c9a1e59c5d9cb7d827609a0cd98eacf71
adc21c6db278829797161ff23a92e40068f0db5c
refs/heads/master
2022-12-21T09:31:34.213078
2020-10-05T18:41:12
2020-10-05T18:43:28
198,114,372
0
0
NOASSERTION
2019-07-21T23:17:39
2019-07-21T23:17:38
null
UTF-8
Python
false
false
8,911
py
import torch import torch.overrides import linecache from typing import Type, Dict, List, Any, Union from .graph import Graph import copy # normal exec loses the source code, however we can patch # the linecache module to still recover it. # using exec_with_source will add it to our local cache # and then tools like T...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
84cde06244cc011a3a7ae182d30b956383dc9e3b
4cd4e5c39523f5889efb676414c5f4e58bc38991
/point_clouds/aux.py
1875110bb05ac37092d93f63297800da5c1efd46
[ "MIT" ]
permissive
optas/geo_tool
84a63c8dd9e9881234737a816a2a5b119e4368eb
7eda787b4b9361ee6cb1601a62495d9d5c3605e6
refs/heads/master
2022-02-26T18:03:09.930737
2022-01-23T03:19:46
2022-01-23T03:19:46
67,737,034
7
3
null
null
null
null
UTF-8
Python
false
false
3,712
py
''' Created on Aug 21, 2017 @author: optas ''' import warnings import numpy as np from sklearn.neighbors import NearestNeighbors from scipy.sparse.linalg import eigs from numpy.linalg import norm from .. fundamentals import Graph from .. utils.linalg_utils import l2_norm def greedy_match_pc_to_pc(from_pc, to_pc): ...
[ "optas@stanford.edu" ]
optas@stanford.edu
2286d2a45d3515907c5f7eb59c5add02b7a6e530
76f59c245744e468577a293a0b9b078f064acf07
/79.word-search.py
632b1ff08a943956d5e83bffd8706832f9f80968
[]
no_license
satoshun-algorithm-example/leetcode
c3774f07e653cf58640a6e7239705e58c5abde82
16b39e903755dea86f9a4f16df187bb8bbf835c5
refs/heads/master
2020-07-01T10:24:05.343283
2020-01-13T03:27:27
2020-01-13T03:27:27
201,144,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
# # @lc app=leetcode id=79 lang=python3 # # [79] Word Search # from typing import List # @lc code=start class Solution: def exist(self, board: List[List[str]], word: str) -> bool: if not word: return True leading = word[0] for y in range(len(board)): for x in range(...
[ "shun.sato1@gmail.com" ]
shun.sato1@gmail.com
8668ef75a42f540aed1ffddd722eedfa41397b39
5e0e3d05918154f1b30b6ab54f564720494f8c17
/Hetionet/venv/Lib/site-packages/cassandra/__init__.py
96cc537663ce8a695b16988403dafb89b0af5951
[ "MIT" ]
permissive
TusharMalakar/Machine-learning-using-BigData
fc3697b3e114474c5d4d70cfda4237edaa446652
d8cd334d122662f59ca111459071a16cc74b169f
refs/heads/master
2023-05-25T06:11:26.131265
2019-12-26T20:12:14
2019-12-26T20:12:14
205,404,326
0
2
MIT
2022-11-11T07:48:47
2019-08-30T15:02:05
Python
UTF-8
Python
false
false
19,004
py
# Copyright DataStax, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
[ "35859780+TusharMalakar@users.noreply.github.com" ]
35859780+TusharMalakar@users.noreply.github.com
771095473e3066ad09df7493a6581d7bb5843b18
78b01cc5249504f067ed9a53063037818c4a2663
/main.py
79c4c87baff9be781702595bc7afbc06ad51483e
[ "MIT" ]
permissive
toshikurauchi/chopro_book
4fae592b261a74b2e97782346348bba7df809879
73e7d1e4cd540457a1609959a4e912eba5e8278e
refs/heads/master
2021-06-24T15:20:18.442808
2019-03-17T03:30:41
2019-03-17T03:30:41
135,749,123
0
0
null
null
null
null
UTF-8
Python
false
false
7,004
py
#!/usr/bin/python3 import sys import re from unicodedata import normalize from pathlib import Path from flask import Flask, render_template, request, redirect, url_for from flask_sqlalchemy import SQLAlchemy from chopro import ChoPro from config import * SHORT_LIMIT = 100 app = Flask(__name__) app.config['SQLALCHE...
[ "andrew.kurauchi@gmail.com" ]
andrew.kurauchi@gmail.com
9d3f971d92a6f6e1cd18b6d14d0e39c203776983
a8c76e503df527445b14163f74faa8aca7e90ecd
/examples/cardless_credit_example.py
9b76216fa16aa9281bbd570ee1371176ada29324
[ "MIT" ]
permissive
baseup/xendit-python
c2a4f0766886f6124a86810e0831653e1ca1e1f4
8b677fbbad5fe3bbcd0a2b93e30e8040543b8f61
refs/heads/master
2023-03-09T02:56:53.513101
2021-03-04T08:06:44
2021-03-04T08:06:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,442
py
import time from print_running_function import print_running_function # Hackish method to import from another directory # Useful while xendit-python isn't released yet to the public import importlib.machinery loader = importlib.machinery.SourceFileLoader("xendit", "../xendit/__init__.py") xendit = loader.lo...
[ "adyaksa.wisanggeni@gmail.com" ]
adyaksa.wisanggeni@gmail.com
3c4bf638f60768a4555ee438fa275702572a60bd
fd6af2839be96a7966925d2d4c47a5af6dffd938
/ratatosk/pipeline/__init__.py
35d6ef55b865e5f3ca00702f832ebc8b84f18c4c
[ "Apache-2.0" ]
permissive
percyfal/ratatosk
429ce423100ddbf4008b51df66db99c5205f8def
71ee4741952219c1fccf9cb6c172a354610d499c
refs/heads/master
2020-05-16T22:43:33.212506
2013-09-24T11:24:13
2013-09-24T11:24:13
8,706,433
7
4
null
2013-04-08T16:27:07
2013-03-11T15:25:44
Python
UTF-8
Python
false
false
1,231
py
import os import ratatosk from ratatosk.pipeline import align, seqcap, haloplex # Define configuration file locations and classes for predefined workflows config_dict = { 'ratatosk' : {'config':os.path.join(ratatosk.__path__[0], os.pardir, "config", "ratatosk.yaml"), 'cls':None}, 'Align' : {...
[ "per.unneberg@scilifelab.se" ]
per.unneberg@scilifelab.se
19e193b4a359c9f87d1a73dafa8fd757f7da437c
a352b01827b6b8b4cd4ae7b2d4a7427513e3326a
/ceph/datadog_checks/ceph/__about__.py
3a5935a2d01e4ca14d98640702b7667bef2c2caa
[]
permissive
kloudfuse/integrations-core
8e52ac61464325b297f3e62c0405cccc4a4663ac
f78a61f9898bf1c26dd70407c23267514fac0d53
refs/heads/master
2023-03-24T00:10:05.259573
2021-03-29T16:44:06
2021-03-29T16:51:38
351,222,055
0
0
BSD-3-Clause
2021-03-29T16:51:39
2021-03-24T21:01:55
Python
UTF-8
Python
false
false
22
py
__version__ = "2.3.1"
[ "noreply@github.com" ]
kloudfuse.noreply@github.com
211e74285c92d6c731fea774cb7f83a564920a4a
412b699e0f497ac03d6618fe349f4469646c6f2d
/env/lib/python3.8/site-packages/websockets/http11.py
0754ddabb5fcba68671de81516c8c494cbe83f76
[ "MIT" ]
permissive
EtienneBrJ/Portfolio
7c70573f02a5779f9070d6d9df58d460828176e3
6b8d8cf9622eadef47bd10690c1bf1e7fd892bfd
refs/heads/main
2023-09-03T15:03:43.698518
2021-11-04T01:02:33
2021-11-04T01:02:33
411,076,325
1
0
MIT
2021-10-31T13:43:09
2021-09-27T23:48:59
HTML
UTF-8
Python
false
false
10,688
py
import re from typing import Callable, Generator, NamedTuple, Optional from .datastructures import Headers from .exceptions import SecurityError MAX_HEADERS = 256 MAX_LINE = 4110 def d(value: bytes) -> str: """ Decode a bytestring for interpolating into an error message. """ return value.decode(er...
[ "etiennebrxv@gmail.com" ]
etiennebrxv@gmail.com
fed848079573db2088199105182feb85233e4b34
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Numerical_Eng_Python/example10_1.py
865e519667c1c0de4e2117143d9072094cfc3225
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
355
py
## example10_1 from goldSearch import * def f(x): lam = 1.0 # Constraint multiplier c = min(0.0, x) # Constraint function return 1.6*x**3 + 3.0*x**2 - 2.0*x + lam*c**2 xStart = 1.0 h = 0.01 x1,x2 = bracket(f,xStart,h) x,fMin = search(f,x1,x2) print "x =",x print "f(x) =",fMin raw...
[ "bb@b.om" ]
bb@b.om
dfea637a01c7fc7e2e04fa69d41f970d90bacc01
f569978afb27e72bf6a88438aa622b8c50cbc61b
/douyin_open/StarAuthorStarAuthor/models/inline_response2001_data.py
f80ce93b78c4d3185af47d06639fa3ee35248320
[]
no_license
strangebank/swagger-petstore-perl
4834409d6225b8a09b8195128d74a9b10ef1484a
49dfc229e2e897cdb15cbf969121713162154f28
refs/heads/master
2023-01-05T10:21:33.518937
2020-11-05T04:33:16
2020-11-05T04:33:16
310,189,316
1
0
null
null
null
null
UTF-8
Python
false
false
11,780
py
# coding: utf-8 """ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class InlineRe...
[ "strangebank@gmail.com" ]
strangebank@gmail.com
1ec53720543cc85475eddd02f15984d387c04f94
e095a91a3424ecc364c4532e8fc705b728a0d1b1
/book/python_package/__init__.py
532fd71b77070d6596ac341fb324f4c6c6ff81c6
[]
no_license
Anakinliu/PythonProjects
caed257e71d2e52f691abc5095c4aca5c052feb2
2246794a88d06eaa381db1b3a72e9bc54a315dd7
refs/heads/master
2021-06-03T05:51:09.319613
2021-01-26T02:35:38
2021-01-26T02:35:38
101,546,309
2
0
null
null
null
null
UTF-8
Python
false
false
20
py
#from . import test
[ "gugeliuyinquan@gmail.com" ]
gugeliuyinquan@gmail.com
caa93679d4f88d255d29bee7432afb478a73f857
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/SFE4q5pFTi8TBwj76_12.py
c1a8e0e344559ea11eaa899093dd2bb0d00074f6
[]
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
90
py
def get_vote_count(votes): return votes.get(list(votes)[0])-votes.get(list(votes)[1])
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
63c121a05dfeb948f6e5c1fa84cafc4740c8d4dd
1b4abb5e310c7ae1b2928f9ea80a6b3a8c2fb8ed
/model/ml/infrastructure/parameter_search.py
065cd4b1f932cd37ca710d1d220b8003732a721f
[]
no_license
zhang-198/ExampleDrivenErrorDetection
2e2c708665f2b57b6ac7c785604a2ac6234f7ba9
ae8bc24fc441957d9a29e5fa4cc247f1805d8b4d
refs/heads/master
2023-05-23T14:49:29.628520
2020-04-09T14:02:28
2020-04-09T14:02:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,479
py
import os import glob import shutil import json import numpy as np import sys def evaluate_check_point_json(checkpoint_json_file): with open(checkpoint_json_file) as data_file: data = json.load(data_file) loss_history = data['val_loss_history'] checkpoint_pointer = data['val_loss_history_it'] ...
[ "neutatz@googlemail.com" ]
neutatz@googlemail.com
cf142b9f2fd1fb5e8cf3857fad308b0fa5003c56
dd256415176fc8ab4b63ce06d616c153dffb729f
/aditya-works-feature-python_programming (1)/aditya-works-feature-python_programming/24-Jul-2019/nested_class_example/inner_class_1.py
ff91fb3904a8d4af0d622839083cff7ca1336443
[]
no_license
adityapatel329/python_works
6d9c6b4a64cccbe2717231a7cfd07cb350553df3
6cb8b2e7f691401b1d2b980f6d1def848b0a71eb
refs/heads/master
2020-07-24T17:15:39.839826
2019-09-12T07:53:28
2019-09-12T07:53:28
207,993,516
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
class Outer: def __init__(self): self.inner = self.Inner() def reveal(self): self.inner.display("Calling Inner class function from outer class") class Inner: def display(self,msg): print(msg) outer = Outer() outer.reveal() ## both method is right inner = outer.I...
[ "aditya.patel@1rivet.local" ]
aditya.patel@1rivet.local
18def03de92ac213dcf488baf0b20ef2ea65a3b1
b475baab9cdc73b104c077d48ab7053094040068
/torchbiggraph/converters/export_to_tsv.py
49cbff0b999d5de9eac4e65970863799a581535a
[ "BSD-3-Clause" ]
permissive
king2727/PyTorch-BigGraph
91008349eb92d32283ced6a29d60b39229b0d276
e3de4a3df84e4d7994477bbaa76d828592110a87
refs/heads/main
2023-08-26T00:32:43.912575
2021-10-27T14:32:52
2021-10-27T14:34:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,783
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE.txt file in the root directory of this source tree. import argparse from typing import Iterable, TextIO from torchbiggraph.checkpoint_ma...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
64a76e03201f2dd54989a72856ef55fb03fd7f1c
e197cbe92104a328ac87c201569724b6142c34ce
/workshop1/settings.py
2353d21f77d7fe92e0b3303f1ff34fb19057af63
[]
no_license
chepe4pi/workshop1
877654782dee2f0a0d5d26aabd19356225fad59a
e744ec0520071beba3549519a04d3d728b61c0a0
refs/heads/master
2021-07-14T02:53:52.473856
2017-10-18T15:04:47
2017-10-18T15:04:47
105,813,167
2
0
null
null
null
null
UTF-8
Python
false
false
3,485
py
""" Django settings for workshop1 project. Generated by 'django-admin startproject' using Django 1.11.5. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import ...
[ "chepe4pi@gmail.com" ]
chepe4pi@gmail.com
550dd7c6a02182f25d9f4efb8462999eb0161fe3
3ad8887aca54daa74b1fe446cb35cd0902e1e9bd
/jackdaw/gatherer/ldap/agent/common.py
9dbba6051d5737ff4460fb9c6620d25d4d1ef4b7
[]
no_license
huangzccn/jackdaw
6ea5f3f7901c1c64b469ea4c25de0e77a3fc49a2
1a9800152fb8f19d5db43fcd235f45f6db2e3878
refs/heads/master
2023-08-29T11:44:46.692776
2021-10-23T20:00:36
2021-10-23T20:00:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,288
py
import enum class LDAPAgentCommand(enum.Enum): SPNSERVICE = 0 SPNSERVICES = 1 USER = 2 USERS = 3 MACHINE = 4 MACHINES = 5 OU = 6 OUS = 7 DOMAININFO = 8 GROUP = 9 GROUPS = 10 MEMBERSHIP = 11 MEMBERSHIPS = 12 SD = 13 SDS = 14 GPO = 15 GPOS = 16 TRUSTS = 17 SCHEMA = 18 EXCEPTION = 99 SPNSERVICES_FI...
[ "info@skelsec.com" ]
info@skelsec.com
816c4461ef4bd6c6665cc240da911eecc02460b1
bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd
/neekanee/job_scrapers/plugins/com/icims/oasispetroleum.py
02b50cd3371124e8785267ca1f23c53926380bbc
[]
no_license
thayton/neekanee
0890dd5e5cf5bf855d4867ae02de6554291dc349
f2b2a13e584469d982f7cc20b49a9b19fed8942d
refs/heads/master
2021-03-27T11:10:07.633264
2018-07-13T14:19:30
2018-07-13T14:19:30
11,584,212
2
0
null
null
null
null
UTF-8
Python
false
false
584
py
from neekanee.jobscrapers.icims.icims2 import IcimsJobScraper COMPANY = { 'name': 'Oasis Petroleum', 'hq': 'Houston, TX', 'home_page_url': 'http://www.oasispetroleum.com', 'jobs_page_url': 'https://jobs-oasispetroleum.icims.com/jobs/intro?in_iframe=1', 'empcnt': [201,500] } class OasisPetroleumJ...
[ "thayton@neekanee.com" ]
thayton@neekanee.com
68bca719f51fa8be7d0b4bbe77de46f4e3f08e4a
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/others/Vaecf_ID2903_for_PyTorch/cornac/eval_methods/base_method.py
1c7a05cdd6297ea47d19a7b33daedcc6023b3f63
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
26,942
py
# Copyright 2018 The Cornac 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 applicable ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
863046733c83dda48b2b4afcc90be17c2f9b0841
7ff0077a55f6bf4a74704e430f354aeabaae3e0b
/tensorflow_probability/python/bijectors/weibull_test.py
c1289dbf4e865ef6940993c305076a246fcf7033
[ "Apache-2.0" ]
permissive
markaduol/probability
50a1d97810d11c747bd9546f977b2937c9e04d78
8af21dff96502a5bdc01b1be2c595043a3efc5d1
refs/heads/master
2020-03-29T20:50:26.001297
2018-09-25T21:51:10
2018-09-25T21:51:50
150,333,784
0
1
Apache-2.0
2018-09-25T21:54:49
2018-09-25T21:54:49
null
UTF-8
Python
false
false
2,768
py
# Copyright 2018 The TensorFlow Probability 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 o...
[ "copybara-piper@google.com" ]
copybara-piper@google.com
2854d57257d3db636fb50901650e1de302aeb079
562522946c03d168569cd79f43140c8326441fb4
/nn.py
c6f15358a68cd1305fd4f5a439e748f625d64abd
[]
no_license
hackingmath/puzzles
3d5f17d037f97767e14d1c1be51e352dc35928c7
a3fd8cc976759b655b9eb13db173c461d8ced5ca
refs/heads/master
2021-06-08T12:55:03.290076
2021-06-07T16:43:55
2021-06-07T16:43:55
159,741,819
9
2
null
null
null
null
UTF-8
Python
false
false
2,596
py
"""DIY Neural Net Sept. 26, 2019""" import math from matrix import Matrix,transpose,multiply def sigmoid(x): return 1 / (1 + math.exp(-x)) def dsigmoid(y): return y * (1 - y) class NeuralNetwork(object): def __init__(self, input_nodes,hidden_nodes,output_nodes, lea...
[ "noreply@github.com" ]
hackingmath.noreply@github.com
9ebe38d95dfb57e6e17ff420add16b4fcaac2ebe
effed4b460230e0559619e083902754fc24aae24
/books/urls.py
58c8958f70ab90ad40b76013cf6030790b12f86e
[]
no_license
wgoode3/books
4a65d24fa09aad350138bce5cfcd416880843298
452b916880c560b9c06a690e752e11f89d311f8f
refs/heads/master
2021-09-05T08:55:10.998792
2018-01-25T20:28:59
2018-01-25T20:28:59
118,942,117
1
0
null
null
null
null
UTF-8
Python
false
false
791
py
"""books URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
[ "wgoode3@gmail.com" ]
wgoode3@gmail.com
93e56287fee314f5e72515d1053e8119aadf4c05
96e38b89fa057fa0c1cf34e498b4624041dfc6e2
/BOJ/DFS/Python/16946.py
9a1a8a8cdd3697ecee32131f3f4d4f30a7f49492
[]
no_license
malkoG/polyglot-cp
66059246b01766da3c359dbd16f04348d3c7ecd2
584763144afe40d73e72dd55f90ee1206029ca8f
refs/heads/master
2021-11-24T13:33:49.625237
2019-10-06T07:42:49
2019-10-06T07:42:49
176,255,722
2
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
dx = [-1, 0, 1, 0] dy = [0, -1, 0, 1] area = [0] * 1010101 def dfs(field, component, x, y, max_x, max_y, num_of_components): component[y][x] = num_of_components area[num_of_components] += 1 for i in range(4): next_x = x + dx[i] next_y = y + dy[i] if next_x > 0 and next_x <= max_x a...
[ "rijgndqw012@gmail.com" ]
rijgndqw012@gmail.com
ab8a90598939065d1f8b2310c5f55e53c90d42aa
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/util/LaunchErrorDialog.pyi
1f4a30077675a4950e0f64dfed58bf2573bfe952
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
21,780
pyi
from typing import List import java.awt import java.awt.dnd import java.awt.event import java.awt.im import java.awt.image import java.beans import java.io import java.lang import java.util import javax.accessibility import javax.swing class LaunchErrorDialog(javax.swing.JDialog): def __init__(self, url: java...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
74a377f3bcaf26e2e0c06cefce6c53b6c4ade061
42186fa6507999ce60d334a0f04d9ae2127579cd
/安恒杯10月/ezshop/payment/urls.py
6c40abef29cdd96038a297c075c72985a8be4cf7
[]
no_license
Imtinmin/CTF_Challenge
ef8b62b3a4a1741d814d989f795a243257ff6f2b
ea276596f9effdbe0cf9ef4457e2e676e652bb74
refs/heads/master
2022-12-21T12:40:40.625562
2020-04-30T03:27:56
2020-04-30T03:27:56
158,999,004
18
3
null
2022-12-10T04:34:27
2018-11-25T04:53:04
PHP
UTF-8
Python
false
false
140
py
from django.urls import path from .views import checkPayment app_name='payment' urlpatterns = [ path('check', checkPayment, name='check') ]
[ "954093370@qq.com" ]
954093370@qq.com
6cbfd50513a334de077f90cd3336baae3b057561
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_log_webtrends_filter.py
bc99eab7084734fe6f4b2deb0b596cead378d899
[ "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
13,893
py
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of th...
[ "sifang@cisco.com" ]
sifang@cisco.com
7dde5a888030c37e55eb6f400d27220026f4bf54
9d16c9badcc3d30ec7eb1c3caa73f3ecd2d8161e
/blog_project/settings.py
6466a803a5d69312122aebf75c641987bc947d10
[]
no_license
Jordan-Rob/dj-blog
aca34eb2cd737ee3fd806eb360b615ceceedc9c4
81a1414c1213dd3c8731c1195a11f7c456b973d6
refs/heads/master
2021-09-27T18:55:48.685682
2020-02-19T07:57:49
2020-02-19T07:57:49
241,149,581
0
1
null
2021-09-22T18:38:44
2020-02-17T16:04:21
Python
UTF-8
Python
false
false
3,540
py
""" Django settings for blog_project project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import ...
[ "jordanrob709@gmail.com" ]
jordanrob709@gmail.com
7a46a14e687412faa1f5cc1ed42e79d9948cbd85
db69daa1b517b539d78e4ab79691c33fdb410e8f
/check_friend.py
d31cd515ec1cdaad92e1d1894ae6181aa6afd5ee
[ "MIT" ]
permissive
team55/vkbot
4cd49faefda81db4aae7db6c0bb6d2204097494f
34705106560dbf6d96eee8b21cfd6d78e05646ef
refs/heads/master
2021-01-21T01:39:28.846429
2016-06-26T11:16:15
2016-06-26T11:16:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,694
py
import time import config import accounts fields = 'photo_50,country,last_seen' s = open(accounts.getFile('allowed.txt'), encoding='utf-8').readlines() noadd = set(map(int, open(accounts.getFile('noadd.txt')).read().split())) allowed = set(s[0] + ' ') s = s[1].split() offline_allowed = config.get('check_friend.offli...
[ "kalinochkind@gmail.com" ]
kalinochkind@gmail.com
7f8182d84f68de9ced11511734d8a10f9cf0764e
9c5116ab446a0fba4dfaaa1685cbd3a1042dc054
/kubernetes/test/test_v1_subject_rules_review_spec.py
e302de4235058403d19052db7541b474def21908
[ "Apache-2.0" ]
permissive
caruccio/client-python
fc11a354ce15507c94308e35b6790b6776e01e6e
cb65186027ce68beedcd7752c488b8e3b5c0968e
refs/heads/master
2021-01-25T08:18:45.601502
2017-06-08T13:14:06
2017-06-08T13:14:06
93,747,698
0
0
null
2017-06-08T12:37:32
2017-06-08T12:37:32
null
UTF-8
Python
false
false
4,236
py
# coding: utf-8 """ OpenShift API (with Kubernetes) OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is...
[ "mateus.caruccio@getupcloud.com" ]
mateus.caruccio@getupcloud.com
97b226cbbe0e31725743a250e4d4740cda6c9572
5c3ae39ce3964fab73959052cdece57c263ad52c
/tests/unit/test_payment_method_gateway.py
786d846ab0f5ab21b7ff22d5d911bae42ad6b95f
[ "MIT" ]
permissive
maneeshd/braintree_python
bb072f8db300797338cf3ccbfa755a45eabb0db2
4aa3f4b8a376ea81bf16a053d840efe55ae13675
refs/heads/master
2023-08-31T12:04:24.420050
2020-02-29T06:40:34
2020-02-29T06:48:49
243,717,955
0
0
MIT
2020-10-02T20:21:05
2020-02-28T08:50:21
Python
UTF-8
Python
false
false
6,835
py
from tests.test_helper import * from braintree.payment_method_gateway import PaymentMethodGateway if sys.version_info[0] == 2: from mock import MagicMock else: from unittest.mock import MagicMock class TestPaymentMethodGateway(unittest.TestCase): def test_create_signature(self): actual_signature = ...
[ "code@getbraintree.com" ]
code@getbraintree.com
6408cc3a3d782a6b3d7e64ff7926e7380008c136
16631cf7cd4a70f2cd2750851649d3eff5e17724
/2019/day02/part2.py
ec6da2e434b6d2de88016e4776ea6087928eb9f4
[]
no_license
kynax/AdventOfCode
1dd609a3308d733f2dd7d4ea00508d2da73180b9
36a339241dd7a31ebe08a73e5efa599e5faeea1a
refs/heads/master
2022-12-21T13:32:52.591068
2022-12-16T22:41:30
2022-12-16T22:41:30
48,439,585
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
import sys from intcode import * m = [int(l) for l in sys.stdin.readline().split(',')] for verb in range(100): for noun in range(100): c = IntCode() c.mem_init(m) c.mem_set(1, noun) c.mem_set(2, verb) c.run() if c.result() == 19690720: print(100...
[ "guilemay@gmail.com" ]
guilemay@gmail.com
a91390aea6a8dc9e7b2c54cfb9d54260053f026d
3a784e3d612cfc58d73eb017b2f1b068a570d55c
/z3/fancy.py
1bad9d13f5828658b4960d33dcd6715690aa6461
[]
no_license
DialloMamadou/PPC
23f527671007952b0b7707716a367aa47b709842
03e508a2b2f3314fbb40eab345506b62fcb8e1da
refs/heads/master
2020-05-23T15:06:43.588228
2019-05-05T19:33:09
2019-05-05T19:33:09
186,819,656
2
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
#!/usr/bin/python -u # -*- coding: latin-1 -*- # # Mr Greenguest puzzle (a.k.a fancy dress problem) in Z3 # # Problem (and LPL) code in # # http://diuflx71.unifr.ch/lpl/GetModel?name=/demo/demo2 # # """ # (** Mr. Greenfan wants to give a dress party where the male guests # * must wear green dresses. The following rul...
[ "hakank@gmail.com" ]
hakank@gmail.com
1b3d67978f6b4b17f7e6bd2541a0308600324518
aa9aa0868d857d64603e7b0e9e8cff0e2bbdf189
/server/migrations/0059_machine_report_format.py
dd178bc844c43e713743a8291a09c6e2fc397df5
[ "Apache-2.0" ]
permissive
haribert/sal
2ecafa7d5b7c812f860465f7f4511209d8916526
9c80cf9b063ba1cb1fb7649dc6aba7f032de261b
refs/heads/master
2021-09-06T05:07:46.868175
2018-02-02T16:12:44
2018-02-02T16:12:44
112,587,211
0
0
null
2017-11-30T08:44:43
2017-11-30T08:44:43
null
UTF-8
Python
false
false
557
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-09-30 12:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('server', '0058_auto_20170822_1430'), ] operations = [ migrations.AddField( ...
[ "graham@grahamgilbert.com" ]
graham@grahamgilbert.com
a84b044c4ec14bb86cb2f2cf4cafa93abd776f37
bc6b561958649c391c159d4dd3363c60eeabc7e4
/mayan/apps/file_caching/tests/test_events.py
f64952560df1b1a38aab02077d4856121e0f301a
[ "Apache-2.0" ]
permissive
chrisranjana/Mayan-EDMS
37deb105cda268768fea502491ae875ff905e0e9
34b414ce49a2eb156e27dc1a2915e52121c9d1b7
refs/heads/master
2020-12-22T13:50:41.263625
2020-01-28T18:45:24
2020-01-28T18:45:24
236,804,825
0
1
NOASSERTION
2020-01-28T18:12:53
2020-01-28T18:12:52
null
UTF-8
Python
false
false
1,096
py
from __future__ import unicode_literals from actstream.models import Action from mayan.apps.common.tests.base import BaseTestCase from ..events import event_cache_created, event_cache_purged from ..models import Cache from .mixins import CacheTestMixin class CacheEventsTestCase(CacheTestMixin, BaseTestCase): ...
[ "roberto.rosario@mayan-edms.com" ]
roberto.rosario@mayan-edms.com
a346ab92b72621f5e8966b5d8b20365ea9816590
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02854/s614017761.py
93c7fca03d5483bad4cda9f6e10005518c14e660
[]
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
166
py
n = int(input()) a = list(map(int,input().split())) r = ans = sum(a) l = 0 ans = float('inf') for i in a: r -= i l += i ans = min(ans,abs(r-l)) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b3ca48aa937f678d46460cb290f303d6d3d024ae
d11a77c7230880973fc48cb64f86f621b642b3e9
/solutions/video_similarity_search/quick_deploy/server/src/operations/search.py
3087edb4814e19e9ab7cc1f6b9f0f15189c46203
[ "Apache-2.0" ]
permissive
parsa-ra/bootcamp
22bd6082948aad13b14537582b321ae570b4dc7a
f881a562751c673f45eaba063803adcb472fc1da
refs/heads/master
2023-08-10T19:50:15.334127
2021-09-18T07:16:16
2021-09-18T07:16:16
407,830,782
0
0
Apache-2.0
2021-09-18T10:36:49
2021-09-18T10:36:48
null
UTF-8
Python
false
false
838
py
import sys from logs import LOGGER sys.path.append("..") from config import TOP_K from config import DEFAULT_TABLE def do_search(host, table_name, img_path, model, milvus_client, mysql_cli): if not table_name: table_name = DEFAULT_TABLE try: feat = model.resnet50_extract_feat(img_path...
[ "shiyu.chen@zilliz.com" ]
shiyu.chen@zilliz.com
e1bfb943e312a2e57db0c78c33fa8d0db2f45f44
81f999d6f8e622542212e6fc2b5e328b06ced75d
/admin/post.py
b02de7c9f90fe7b52e9071d0c01a5cb86bcc7e90
[]
no_license
lujinda/zjypan
37beab246b1ceb84ae24330b742d3a9bf7a635a5
fcc2a8ff221eeaebaced84735b3e12b3584efc8c
refs/heads/master
2021-01-01T20:49:04.984315
2015-07-12T08:25:33
2015-07-12T08:25:33
29,416,929
1
0
null
null
null
null
UTF-8
Python
false
false
1,806
py
#!/usr/bin/env python #coding:utf8 # Author : tuxpy # Email : q8886888@qq.com # Last modified : 2015-02-22 21:56:00 # Filename : admin/post.py # Description : from .base import AdminHandler from page.do import write_post, get_post_list, get_post, del_post from public.do import swith_tim...
[ "q8886888@gmail.com" ]
q8886888@gmail.com
4a5864386c1107faa4a2a4a9a3af41fecc137e9c
82cba93ed3339150dcbccc1e3a245f7284edb8ed
/t.py
7c820b15876f323d1c459455ba089bdd030e14be
[]
no_license
boyi880322/python
c10ca906cb6db7e143071f7c830eb9d9741ee05b
375e6d532f229f5a508ca8396b6cd1aa77aa6c46
refs/heads/main
2023-02-12T13:42:29.393617
2021-01-12T02:24:35
2021-01-12T02:24:35
325,202,820
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
name = input("姓名:") while name != "": h = float(input("身高(公尺):")) w = int(input("體重(公斤):")) BMI = w / h ** 2 print("{}的BMI是:{}".format(name, BMI)) name = input("姓名:")
[ "skynet.tw@gmail.com" ]
skynet.tw@gmail.com
a0545f0e647e3e695ae19d66971e2bec4f38d109
832b4121b7d49b56ce9446cb1437b401a037b43f
/python/part03-scripts/save_the_world_v1.py
a19df8f23e84963a54b2391eedf291aad34aa769
[]
no_license
dleehr/gcb-academy-python
407ad2fef3f73d7e2485c7839b20c0cf53050e07
3a2d191ac33b8e08c2380856e01bbc65b5fd5eec
refs/heads/master
2021-01-18T14:01:53.320240
2015-02-03T19:05:02
2015-02-03T19:05:02
29,843,584
0
0
null
2015-02-02T18:56:08
2015-01-26T03:38:36
Python
UTF-8
Python
false
false
479
py
import fileinput import re for line in fileinput.input(): match = re.search('^(.*)\t(20\d\d)-(\d\d)-(\d\d)\t(\d+\.?\d*)$', line) if match: fields = [ match.group(2), # year match.group(3), # month match.group(4), # day match.group(1), # site ...
[ "whitews@gmail.com" ]
whitews@gmail.com
c38311c336acbeb73379afa6ba0e49ecee97a5c4
04875545151aa1ef547c2c47ae36b9c90254317b
/example/SyntheticParameterized/basis.py
0b99aa22b0201ff5e38f543e5a7992c74b0cc8a5
[ "MIT" ]
permissive
treverhines/PSGI
5a49da0a24e2460350b280f2437229de51ea3364
356ca2208fc24d51062417126807d79dd79df73c
refs/heads/master
2021-03-12T19:57:37.642196
2015-11-14T02:08:20
2015-11-14T02:08:20
39,227,339
1
0
null
null
null
null
UTF-8
Python
false
false
6,683
py
#!/usr/bin/env python # # This script defines variables and functions which are needed for # plotting purposes and for using WriteRegularization.py which forms a # regularization matrix by collocation # # Variables in all caps are required for other scripts to run and # this script must also define the slip and fluidi...
[ "treverhines@gmail.com" ]
treverhines@gmail.com
27369ce439c746edb215195782810276fff77a6f
e389ca9d52230140038082e3111ce41db1c00514
/SocialMedia_API/settings.py
ee05062973c3aadfdaccfa3fcdaaf56a19f68cc0
[]
no_license
DharmendraB/SocialMedia_API
dbd94af3fb71ae1db6dbdaf25bb429bc4648399f
9cc134525b90f3fbba31b7442688fc7baf41c0e1
refs/heads/main
2023-03-29T04:15:25.286277
2021-04-04T04:59:08
2021-04-04T04:59:08
354,458,714
0
0
null
null
null
null
UTF-8
Python
false
false
4,197
py
""" Django settings for SocialMedia_API project. Generated by 'django-admin startproject' using Django 3.0.1. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ impo...
[ "ghldharmendra@gmail.com" ]
ghldharmendra@gmail.com
ef7fdd81b5556be3d11abd7c8ad2872d3efcf5dc
713f9168a7ba68740bb9b4ea6994e853a56d2d5c
/python/2019-10-07/shout.py
075131c1205615b5f917df669e9b52537c71c00b
[]
no_license
marko-knoebl/courses-code
ba7723c9a61861b037422670b98276fed41060e2
faeaa31c9a156a02e4e9169bc16f229cdaee085d
refs/heads/master
2022-12-29T02:13:12.653745
2022-12-16T09:21:18
2022-12-16T09:21:18
142,756,698
16
10
null
2022-03-08T22:30:11
2018-07-29T11:51:04
Jupyter Notebook
UTF-8
Python
false
false
321
py
def shout(phrase, end="!"): """Prints a phrase in capital letters. A second optional parameter can mark the end. """ # .upper() is a string function that converts the # string to uppercase upper = phrase.upper() print(upper + end) shout("hello") # HELLO! shout("hey") shout("hi", ".") # HI....
[ "marko.kn@gmail.com" ]
marko.kn@gmail.com
0fc4a06e03869a0850aefd5b5e8684092faaa024
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_108/ch31_2020_03_23_21_09_21_287563.py
ae11e5f03385199948261d80790e123dffe6af98
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
def eh_primo(n): if n < 2: return False elif n == 2: return True for x in range(2,n) if n % x == 0: return False return True
[ "you@example.com" ]
you@example.com
30efbcca2190039ffec2e1304db5a08d4fe6ba75
0103046cd77e9f86ccde477736de36bba766ceb6
/tests/sentry/integrations/test_issues.py
9869431375b09aa5b193f0373502d1f44001c9f0
[ "BUSL-1.1", "Apache-2.0" ]
permissive
kaozdl/sentry
ad41ada649a20300e9f2fe69050200cfbf738a63
63d698f5294f64a8c206b4c741e2a11be1f9a9be
refs/heads/master
2021-06-21T18:24:21.713064
2021-03-04T19:45:20
2021-03-04T19:45:20
198,681,569
0
0
BSD-3-Clause
2019-07-24T17:32:29
2019-07-24T17:32:28
null
UTF-8
Python
false
false
9,031
py
from sentry.integrations.example.integration import AliasedIntegrationProvider from sentry.models import ( ExternalIssue, Group, GroupStatus, GroupLink, Integration, OrganizationIntegration, ) from sentry.testutils import TestCase class IssueSyncIntegration(TestCase): def test_status_sync_...
[ "noreply@github.com" ]
kaozdl.noreply@github.com
feb9dd83d3dcf1efadf822ae27bb091c2b222382
b8c373c2265e894c2f6097457051290152caedc3
/project_ini/questionnaire/migrations/0004_auto_20170312_2344.py
52f1cb82be650eeb6d908c2d59af33d73dc22b12
[]
no_license
alikhundmiri/ini_alpha
b17b8d4c7e6064a5c538d279453e53bbae2c042a
ef3a558287e9de8d01ddda354d850d03226a9bf4
refs/heads/master
2021-01-19T09:59:54.817258
2017-04-10T12:34:17
2017-04-10T12:34:17
87,807,752
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-12 23:44 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('questionnaire', '0003_auto_20170312_23...
[ "salikhundmiri@gmail.com" ]
salikhundmiri@gmail.com
9e45a9a79b2f82434136ae93f6a234460d3ce2c8
816232db2f21e193612eaa60eda0d5897d31caaf
/Inflearn/2일차-코드구현 능력/5.py
75ab790ecc133625aaf2085bb608b959feb78934
[]
no_license
Juyoung4/StudyAlgorithm
a60bfa7657eac57f59200bfa204aff1ad27c79f8
4b190e0bfeb268bef4be00ae9bedd9ca8946fbd6
refs/heads/master
2023-08-31T04:37:07.422641
2021-09-27T08:38:09
2021-09-27T08:38:09
282,757,306
0
0
null
null
null
null
UTF-8
Python
false
false
1,529
py
# 점수 계산 """ [문제] 여러 개의 OX 문제로 만들어진시험에서 연속적으로 답을 맞히는 경우에는 가산점을 주기 위해서 다음과 같이 점수 계산을 하기로 하였다 - 1번 문제가 맞는 경우에는 1점으로 계산한다. - 앞의 문제에 대해서는 답을 틀리다가 답이 맞는 처음 문제는 1점으로 계산한다. - 연속으로 문제의 답이 맞는 경우에서 두 번째 문제는 2점, 세 번째 문제는 3점, ..., K번째 문제는 K점으로 계산한다. - 틀린 문제는 0점으로 계산한다. (ex) 10 개의 OX 문제에서 답이 맞은 문제의 경우에는 1로 표시하고, 틀린 경우에는 ...
[ "vallot7@naver.com" ]
vallot7@naver.com
bac92da3627b53e8162cbf94250ccf181fff620b
21e177a4d828f4e0a003e9424c4952dbc0b47d29
/lints/lint_sub_cert_province_must_appear.py
0232e7991a8e0921aca00c46582fb7e3dd8ac4e6
[]
no_license
846468230/Plint
1071277a55144bb3185347a58dd9787562fc0538
c7e7ca27e5d04bbaa4e7ad71d8e86ec5c9388987
refs/heads/master
2020-05-15T12:11:22.358000
2019-04-19T11:46:05
2019-04-19T11:46:05
182,255,941
1
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
from lints import base from cryptography import x509 from cryptography.x509.oid import NameOID from util.time import Time from util import ca ''' ''' class subCertProvinceMustAppear(base.LintInterface): def Initialize(self): return 0 def CheckApplies(self,c): return ca.IsSubscriberCert(c) ...
[ "846468230@qq.com" ]
846468230@qq.com
af39a1bf1eb073451ed5e06bcf042d850a88ea85
edcc2f90e91cc781ed6e305daa5f6cb539533897
/dataset/py150/utils/ast/child_only.py
b412d1e5a9d1e1bc4ae53d064ec6d2eb17c75efd
[ "MIT" ]
permissive
keiouok/naturalcc
d364639700d137720242a32b74b3ac48d0e94b76
7bab9a97331fafac1235fb32de829ff8d572320f
refs/heads/master
2023-06-03T10:38:42.481107
2021-06-20T00:52:52
2021-06-20T00:52:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,323
py
import sys from ncc.data.constants import ( PAD, SBT_LEFT_PARENTHESE, SBT_RIGHT_PARENTHESE, ) from ncc.data import tokenizer_funcs from ..constants import ( RECURSION_DEPTH, MAX_SUBTOKEN_LEN, NODE_TMP, ) from copy import deepcopy # ignore those ast whose size is too large. Therefore set it as a...
[ "yanghece96@gmail.com" ]
yanghece96@gmail.com
73f09faf8526f34d6d9fda58789407a5e7cc3123
5e255ad1360c90478393744586663741a9569c21
/linebot/v3/audience/models/audience_group_type.py
02893782b733c181cd30b2473e4ee4459e95ae99
[ "Apache-2.0" ]
permissive
line/line-bot-sdk-python
d76268e8b542060d6eccbacc5dbfab16960ecc35
cffd35948238ae24982173e30b1ea1e595bbefd9
refs/heads/master
2023-08-31T22:12:31.698183
2023-08-28T01:10:09
2023-08-28T01:10:09
70,553,423
1,898
1,181
Apache-2.0
2023-09-11T05:14:07
2016-10-11T03:42:26
Python
UTF-8
Python
false
false
1,017
py
# coding: utf-8 """ LINE Messaging API This document describes LINE Messaging API. # noqa: E501 The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ import json import pprint import re # noqa: F401 from...
[ "noreply@github.com" ]
line.noreply@github.com
21ea2e613c180d34f365b8fba3bcd8715f8abe8c
e7f814227f64aae9ea30dd7c878a9406d0c2380f
/optuna_dashboard/search_space.py
1f740fde7e59881d31fdf4846bb86acbb835e07e
[ "MIT" ]
permissive
tktran/optuna-dashboard
8bf5c106cc3c96470c9e281bcb28bd6c92138627
38e56010bf9230f8b27c7eeeb7f01a2f65cda7ac
refs/heads/main
2023-03-31T09:54:14.289445
2021-04-04T06:26:46
2021-04-04T06:26:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,230
py
import copy import threading from typing import Dict, List, Optional, Set, Tuple from optuna.distributions import BaseDistribution from optuna.trial import TrialState, FrozenTrial SearchSpaceSetT = Set[Tuple[str, BaseDistribution]] SearchSpaceListT = List[Tuple[str, BaseDistribution]] # In-memory search space cache ...
[ "contact@c-bata.link" ]
contact@c-bata.link
9f706d9d26452ede0c1df501a6d6ac04541e0c77
ef29c31ef26815a237445b9359da00c4323717d0
/django/orm/manytomany/models.py
56c410dff6f951f6196132a5d64b33a8807bbe6a
[]
no_license
gvg4991/TIL-c9
3fe59bfe114e3af7f56a9163fa9e7ec83b3f97f0
2e4d6b99de2523ac4540cac2acd40342bbd6f9e3
refs/heads/master
2020-04-17T17:18:04.146013
2019-05-09T06:59:19
2019-05-09T06:59:19
166,777,138
0
0
null
null
null
null
UTF-8
Python
false
false
1,754
py
from django.db import models # Create your models here. # 병원에 오는 사람들을 기록하는 시스템을 만드려고 한다. # 필수적인 모델은 환자와 의사이다. # 어떠한 관계로 표현할 수 있을까? class Doctor(models.Model): name = models.TextField() # patients = models.ManyToManyField(Patient, through='Reservation') #아래 doctors와 둘 중 하나만 적기! # patient1.doctor_set.all()...
[ "14.73oo6o19@gmail.com" ]
14.73oo6o19@gmail.com
f73e6a719077834333f26688c0cefb3ca7a0773e
d6aed520d16b5c6d1b36ef4e21e4c0d895b751fe
/blog/models.py
9a14f374ba058b002c2f20a38cc4888f3bd28990
[ "MIT" ]
permissive
CoderLambert/DjangoBlog
22bd71ed29af37847cd17542d21e1f2253975469
a29290aadc5ace070976dd934a530c9e6fe3bb56
refs/heads/master
2021-05-06T02:58:57.162849
2017-12-16T18:11:38
2017-12-16T18:11:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,636
py
from django.db import models from django.core.urlresolvers import reverse from django.conf import settings from uuslug import slugify from django.contrib.sites.models import Site from DjangoBlog.utils import cache_decorator, logger, cache from django.utils.functional import cached_property from django.utils.timezone i...
[ "liangliangyy@gmail.com" ]
liangliangyy@gmail.com
f0e798f0316e955e18f9b5b9ff48d942cad9ac7e
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/218dae7f9abb4ae5803d0c739a05c8b6.py
44d656f33ebed779c4fc9b02201c0d8f51e2d108
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
245
py
# # Skeleton file for the Python "Bob" exercise. # def hey(input): if input.strip() == "" : return "Fine. Be that way!" if input.isupper() : return "Whoa, chill out!" if input[-1:] == '?': return "Sure." return "Whatever."
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
27e92f18dd67804249725b15beb456cb9386f2b0
298dac85fcea57a7bcdd05355e85b0f154606563
/task_openpose_reimplement/html.py
fd862f609131f96c77713a229e6f8da8a430cadf
[ "MIT" ]
permissive
liruilong940607/image-processing-pytorch
a99a094a292daa0ac596eb810faa61468bf98e37
535ff7160b680af727e95c74f22d402a1741e9de
refs/heads/master
2020-03-15T03:11:58.752906
2018-05-03T03:26:33
2018-05-03T03:26:33
131,936,600
0
0
null
null
null
null
UTF-8
Python
false
false
8,533
py
import dominate from dominate.tags import * import os import base64 import numpy as np from io import BytesIO from PIL import Image import argparse import random import cv2 ''' ## Simple Usage from html import * html = MYHTML('./web', 'simple') lists = get_filenames('/home/dalong/data/coco2017/train2017/') html.add_li...
[ "397653553@qq.com" ]
397653553@qq.com
93e8ea6d2bca6946873359d86dfb0118ce399dff
9095c1a0da8c6ffe914ee6dd9c4708062fd95c9a
/vtpl_api/models/gender.py
c4712ee17882c6e19c587c76af25f03479537928
[ "MIT" ]
permissive
vtpl1/vtpl_api_py
2e5338bd08677f12fc7304fb6ac7a32f32af1c93
d289c92254deb040de925205c583de69802a1c6b
refs/heads/master
2020-09-10T23:34:21.828350
2019-11-15T07:26:53
2019-11-15T07:26:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
# coding: utf-8 """ Engine api Engine APIs # noqa: E501 The version of the OpenAPI document: 1.0.4 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Gender(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: htt...
[ "monotosh.das@videonetics.com" ]
monotosh.das@videonetics.com
3df4a905da8f0e35b240d9567e50007b3ff14528
ef1bf421aca35681574c03014e0c2b92da1e7dca
/examples/modes/extended_selections.py
9609014cb98132afba108e9cc0cccf699b92feb4
[ "MIT" ]
permissive
pyQode/pyqode.core
74e67f038455ea8cde2bbc5bd628652c35aff6eb
0ffabebe4f0397d53429024f6f44db3fe97b0828
refs/heads/master
2020-04-12T06:36:33.483459
2020-01-18T14:16:08
2020-01-18T14:16:08
7,739,074
24
25
MIT
2020-01-18T14:16:10
2013-01-21T19:46:41
Python
UTF-8
Python
false
false
631
py
""" Minimal example showing the use of the ExtendedSelectionMode. """ import logging logging.basicConfig(level=logging.DEBUG) import sys from pyqode.qt import QtWidgets from pyqode.core.api import CodeEdit from pyqode.core.backend import server from pyqode.core.modes import ExtendedSelectionMode if __name__ == '__ma...
[ "colin.duquesnoy@gmail.com" ]
colin.duquesnoy@gmail.com
15e97e0097131cf3461a92612e34e80735c8233d
556e88a954cf031460ea7fdf3791eb968ca4fbdd
/fluent_python/chapter_16/ch16_coroaverager0.py
4d18e28584350ad23568d896475d11f306ac2cae
[]
no_license
feng-hui/python_books_examples
c696243fcb8305be495f44d1a88a02e7f906b7bd
e38542db7be927cdaa5d85317a58a13b3a13ae25
refs/heads/master
2022-03-07T00:37:29.311687
2019-09-28T15:15:20
2019-09-28T15:15:20
122,941,867
1
0
null
null
null
null
UTF-8
Python
false
false
541
py
#!/usr/bin/python3 # -*- coding:utf-8 -*- # @author FH # @email: capricorn12032126.com # @time: 2018/12/24 20:55 def averager(): """ execute at terminal example: from chapter_16.ch16_coroaverager0 import averager coro_avg = averager() next(coro_avg) coro_avg.send(10) -> 10.0 coro_avg....
[ "982698913@qq.com" ]
982698913@qq.com
1acf4cb9ad9106bd17384777aa04d54b258c868f
5016d6d2eb0b66b5d1417001a40a9ec10c983e32
/python-puka/rpc_client.py
3ddbf03e07844cb48c3088e911794f338bf83afe
[ "Apache-2.0" ]
permissive
PoeBlu/rabbitmq-tutorials
6466e463d5ed4e3de8ef9c3ef19ba0768d0857bd
be8f5dd34be04bb31c30d17598bb1cc0b458a2d6
refs/heads/master
2023-05-02T03:21:49.824907
2015-04-28T17:03:41
2015-04-28T17:03:41
70,755,760
0
0
Apache-2.0
2023-04-14T15:25:35
2016-10-13T01:11:04
C#
UTF-8
Python
false
false
1,291
py
#!/usr/bin/env python import puka import uuid class FibonacciRpcClient(object): def __init__(self): self.client = client = puka.Client("amqp://localhost/") promise = client.connect() client.wait(promise) promise = client.queue_declare(exclusive=True) self.callback_queue = c...
[ "majek04@gmail.com" ]
majek04@gmail.com
79a64e807ffc1a3e3cf0a52eb76fe385806de058
a8b37bd399dd0bad27d3abd386ace85a6b70ef28
/airbyte-ci/connectors/pipelines/pipelines/__init__.py
371bafaa1370e03bd1b7464db2f095b34966388c
[ "LicenseRef-scancode-free-unknown", "MIT", "Elastic-2.0" ]
permissive
thomas-vl/airbyte
5da2ba9d189ba0b202feb952cadfb550c5050871
258a8eb683634a9f9b7821c9a92d1b70c5389a10
refs/heads/master
2023-09-01T17:49:23.761569
2023-08-25T13:13:11
2023-08-25T13:13:11
327,604,451
1
0
MIT
2021-01-07T12:24:20
2021-01-07T12:24:19
null
UTF-8
Python
false
false
727
py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # """The pipelines package.""" import logging import os from rich.logging import RichHandler from . import sentry_utils sentry_utils.initialize() logging.getLogger("requests").setLevel(logging.WARNING) logging.getLogger("urllib3").setLevel(logging.WARNING)...
[ "noreply@github.com" ]
thomas-vl.noreply@github.com
1889a20824f9d1897607d0c56bd84f23b17c9ae4
8a2c6e45cd64ee04d8c02ea579e3396cc21f7309
/PartitionList.py
325957f56423ab9f55cad10c360a65764aee48f5
[]
no_license
Danyshman/Leetcode
e665ece38cb0b22d6b5b19f15d6a73e73da1710e
aa2799e7512ea389f6dc18448da7c2b4cda75e47
refs/heads/master
2021-07-06T17:44:45.243915
2020-10-05T04:55:03
2020-10-05T04:55:03
191,697,327
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def partition(self, head: ListNode, x: int): l1 = l1_head = ListNode(0) l2 = l2_head = ListNode(0) if head is None or head.next is None: return head node = head ...
[ "danyshman.azamatov@gmail.com" ]
danyshman.azamatov@gmail.com
f3c58bb4f225970c8017b3ca0bf7fc03919b3db9
fd529ba6ade52cd2a3dab94da01252d7ea90398d
/0528/foddddddppdpdoodd.py
5014c1cbe98b6709533621c6e604f53676c551df
[]
no_license
fjfhfjfjgishbrk/AE401-Python
4a984deb0281542c205d72695285b35c7413338f
ee80fa4588b127cff2402fd81e732ede28a66411
refs/heads/master
2022-06-13T13:49:39.875567
2022-05-28T12:40:51
2022-05-28T12:40:51
251,178,163
0
0
null
null
null
null
UTF-8
Python
false
false
1,757
py
from selenium import webdriver from bs4 import BeautifulSoup from selenium.webdriver.chrome.options import Options import time import datetime import requests now = datetime.datetime.now() dateNow = now.strftime("%Y-%m-%d") chrome_options = Options() #chrome_options.add_argument('--headless') chrome = webdriver.Chrome...
[ "59891511+fjfhfjfjgishbrk@users.noreply.github.com" ]
59891511+fjfhfjfjgishbrk@users.noreply.github.com
352ce6bbbcce97cc0658ecd29193cba7bd06a0c6
111bb07459d59e16fe4ccff773c51426fdc4e3bc
/public/pages/qdsIndexPage.py
cf4cd6b2c543e872931a38346c4424ca547d9c60
[]
no_license
Pactortester/UItestframework-master
65486d2708a26fdd78d009bab4bdef0334a98d22
3f41da16e62a1ea181eca45ed33120842a324a69
refs/heads/master
2020-03-26T15:48:13.752371
2018-08-17T10:30:00
2018-08-17T10:30:00
145,065,346
0
0
null
null
null
null
UTF-8
Python
false
false
1,853
py
#coding=utf-8 from public.common import basepage from public.common import mytest import time class DDSIndexPage(basepage.Page): def into_qds_page(self): """打ads首页""" self.dr.open('https://new.quandashi.com/') def return_title(self): """返回该页面的title""" return self.dr.get_title...
[ "1456470136@qq.com" ]
1456470136@qq.com
df54030576bca2ec55e311a0961ecbcba5fed0a7
d5dd2ade4671b237c747b592d3635c1bc2852ca8
/0x16-api_advanced/1-top_ten.py
47611769b7e33e0060ef3c1b8b44200d25381a9d
[]
no_license
emna7/holberton-system_engineering-devops
ce14780a6d091ca1da37fbe26e70534081195bcb
ed4bee21409f12c12afd8d28acd121de67643789
refs/heads/master
2020-07-24T02:07:42.844728
2020-07-07T21:58:19
2020-07-07T21:58:19
207,769,072
1
0
null
null
null
null
UTF-8
Python
false
false
440
py
#!/usr/bin/python3 """contains 1 function: top_ten""" import requests def top_ten(subreddit): user = {"User-Agent": "custom"} request = requests.get("https://www.reddit.com/r/{}/hot.json" .format(subreddit), headers=user) try: for i in range(10): print(reque...
[ "bhmemna7@gmail.com" ]
bhmemna7@gmail.com
c657cb2b615bc1a8d1d93d8440095c8dc3bab44a
57aed4644e21ec53e9b3c577bc4faa6b7610d79c
/test_duration.py
7ba8f3fab4d55ca9fedf7fc9e0c21758297860ea
[ "MIT" ]
permissive
ec500-software-engineering/exercise-2-ffmpeg-JiaruiJin
1b9277a4ac8c0b4d09236946c0d127f07016b262
1b2f99a1b530c3db54c70e44f2cf09bc6c9e0c5f
refs/heads/master
2020-04-24T21:56:37.027254
2019-02-28T21:40:13
2019-02-28T21:40:13
172,295,010
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
from pytest import approx import subprocess import json def ffprobe(file) -> dict: """ get media metadata """ meta = subprocess.check_output(['ffprobe', '-v', 'warning', '-print_format', 'json', '-show_streams', ...
[ "noreply@github.com" ]
ec500-software-engineering.noreply@github.com