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
f925dec040d95821cef191779da6306070d8ebd1
74951991a9e1dbe92d4999da9060409a9492bdc3
/minimum-number-of-operations-to-move-all-balls-to-each-box/minimum-number-of-operations-to-move-all-balls-to-each-box.py
8b91d314c3fcf1107e5a03f5f58cacc5ca30453a
[]
no_license
drpuig/Leetcode-1
fd800ee2f13c7ce03fa57c8a1d10b3aa6976d7c0
4ee104f3069c380e1756dd65f6ff6004554e6c0e
refs/heads/main
2023-07-15T08:57:32.971194
2021-08-21T08:29:24
2021-08-21T08:29:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
756
py
class Solution: def minOperations(self, boxes: str) -> List[int]: # similar to 238. Product of Array Except Self and 42. Trapping Rain Water # example for leftCost: # input 11010 # leftCount 01223 # leftCost 01358 ans = [0]*len(boxes) leftCount, leftCost,...
[ "32110646+trungnguyencs@users.noreply.github.com" ]
32110646+trungnguyencs@users.noreply.github.com
f9adf60909c5eb13e5acb5e65c6af8986fc22867
28bf7793cde66074ac6cbe2c76df92bd4803dab9
/answers/Anuraj Pariya/Day 3/question 2.py
e1eb01c954fac70baaec7abeb51bcb72b21b949c
[ "MIT" ]
permissive
Codechef-SRM-NCR-Chapter/30-DaysOfCode-March-2021
2dee33e057ba22092795a6ecc6686a9d31607c9d
66c7d85025481074c93cfda7853b145c88a30da4
refs/heads/main
2023-05-29T10:33:31.795738
2021-06-10T14:57:30
2021-06-10T14:57:30
348,153,476
22
135
MIT
2021-06-10T14:57:31
2021-03-15T23:37:26
Java
UTF-8
Python
false
false
356
py
def uniqueCharacters(num): for i in range(len(num)): for j in range(i + 1,len(num)): if(num[i] == num[j]): return False return True num = input('enter no.') if(uniqueCharacters(num)): print("The String ", num," has all unique characters") else: print("The String "...
[ "noreply@github.com" ]
Codechef-SRM-NCR-Chapter.noreply@github.com
1e73fcf13b62a58f6664ed0b3991ee7998376d37
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02842/s205208232.py
ff1472f4186e61c2bc8dcd3915d423c7c49f881b
[]
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
211
py
import math n = int(input()) x = int(n/1.08) if math.floor(x*1.08) == n: print (x) elif math.floor((x-1)*1.08) == n: print (x-1) elif math.floor((x+1)*1.08) == n: print (x+1) else: print (":(")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
50e7908500919233f20330f73cca0b3ef23c2b71
6b045457b0ea97f950eaef8373f417617be0bdd6
/edexOsgi/com.raytheon.uf.edex.plugin.goesr/utility/common_static/base/derivedParameters/functions/satRgbRecipeDiff.py
45781926363996d2c0eb651e84109c0ed370a9dd
[]
no_license
Unidata/awips2-goesr
76228dda89e2d867318f2d6bffb10a897afe4083
61cc76f83643fea62dbfe59ba26d04e1ec9bc0ac
refs/heads/unidata_18.2.1
2023-09-04T06:36:35.949636
2023-05-02T18:59:52
2023-05-02T18:59:52
72,454,342
2
5
null
2023-05-02T18:59:53
2016-10-31T16:15:04
Java
UTF-8
Python
false
false
5,460
py
''' <!-- This is an absolute override file, indicating that a higher priority version of the file will completely replace a lower priority version of the file. --> <!-- TOWRdocs Header Derived Parameter Python file for implementing channel difference RGB recipes. --> <!-- TOWRdocs De...
[ "mjames@unidata.ucar.edu" ]
mjames@unidata.ucar.edu
e3c648df17473aa2c6ec699a3c3a228f309b458b
cc096d321ab5c6abf54fdcea67f10e77cd02dfde
/flex-backend/pypy/rpython/rctypes/achar_p.py
679fb44c613f75c7b294d3527c0d94da6c01241f
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
limweb/flex-pypy
310bd8fcd6a9ddc01c0b14a92f0298d0ae3aabd2
05aeeda183babdac80f9c10fca41e3fb1a272ccb
refs/heads/master
2021-01-19T22:10:56.654997
2008-03-19T23:51:59
2008-03-19T23:51:59
32,463,309
0
0
null
null
null
null
UTF-8
Python
false
false
1,100
py
from pypy.rpython.rctypes.implementation import CTypesCallEntry, CTypesObjEntry from pypy.annotation.model import SomeString from ctypes import c_char_p class CallEntry(CTypesCallEntry): "Annotation and rtyping of calls to c_char_p." _about_ = c_char_p def specialize_call(self, hop): string_repr...
[ "lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d" ]
lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d
6fbe95249a65618956af92f25e82a132dbcd9f39
2940f5416082dadd9c646cd9a46d2d0a99883efb
/venv/Lib/site-packages/scipy/_lib/tests/test_linear_assignment.py
5ba729dcac445604773fab01e74e2df735b11eb7
[ "BSD-3-Clause", "Python-2.0", "Qhull", "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-2-Clause", "GPL-3.0-or-later", "BSD-3-Clause-Open-MPI", "GCC-exception-3.1", "GPL-3.0-only" ]
permissive
tpike3/SugarScape
4813e4fefbfb0a701f5913d74f045fd0eaed1942
39efe4007fba2b12b75c72f7795827a1f74d640b
refs/heads/main
2021-06-20T03:55:46.288721
2021-01-20T17:06:35
2021-01-20T17:06:35
168,583,530
11
3
MIT
2021-01-20T17:19:53
2019-01-31T19:29:40
Jupyter Notebook
UTF-8
Python
false
false
3,420
py
from itertools import product from numpy.testing import assert_array_equal import numpy as np import pytest from scipy.optimize import linear_sum_assignment from scipy.sparse import csr_matrix, random from scipy.sparse.csgraph import min_weight_full_bipartite_matching # Tests that combine scipy.optimize.linear_sum_...
[ "tpike3@gmu.edu" ]
tpike3@gmu.edu
5d9ea69a2479861b2b8aeffb32b1e02a1968905c
4a81e33fe6d214f2efaeb97b03b5b05fae12b0d8
/demos/great-expectations/venv/lib/python3.8/site-packages/prometheus_client/metrics_core.py
77b3e446711a2d90ba41f6fb060b6e95520439fb
[]
no_license
franciscojavierarceo/Python
29aaea28642dde151255c5b4a813158e975a073d
02715ca6f19fd3c76cefa12de92deeae4ddf9684
refs/heads/main
2023-08-27T14:23:04.376095
2023-08-27T10:30:37
2023-08-27T10:30:37
33,146,755
7
9
null
2023-02-16T06:40:35
2015-03-30T20:38:00
Jupyter Notebook
UTF-8
Python
false
false
15,538
py
import re from typing import Dict, List, Optional, Sequence, Tuple, Union from .samples import Exemplar, Sample, Timestamp METRIC_TYPES = ( 'counter', 'gauge', 'summary', 'histogram', 'gaugehistogram', 'unknown', 'info', 'stateset', ) METRIC_NAME_RE = re.compile(r'^[a-zA-Z_:][a-zA-Z0-9_:]*$') METRIC_LABEL_NAM...
[ "arceofrancisco@gmail.com" ]
arceofrancisco@gmail.com
109b2be6ef02aea21c97f308754df2fdaeffe5d9
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-2603.py
1825fa8c36018790097910ebb46e5047bcf0ef5b
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
23,291
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
d8aacd22dc55729c0394ca6fdd998d7aef004f28
3bedfe030662300844861d8f4d0ba52c1e43f950
/fit_farquhar_model/plot_priors.py
af76c6018455b51fd775409540fd1529586fb42a
[]
no_license
shaoxiuma/FitFarquharModel
d200ae38d3fd6ab73b1db4910ef7c15fe16bb0f3
fd3766feaea65e80025df9bf5a9257e68805f696
refs/heads/master
2021-01-06T06:45:36.683836
2016-07-14T09:41:05
2016-07-14T09:41:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,978
py
import matplotlib.pyplot as plt import numpy as np from scipy.stats import truncnorm as tn import pymc #mu = 25.0 #sigma = 11.25 #a = 1.0 #b = 650.0 #vals = tn(a=a, b=b, loc=mu, scale=sigma) #plt.hist(vals.rvs(100000), bins=50) #plt.xlim(0, 100) #plt.show() N = 10000 Vcmax = [pymc.TruncatedNormal('Vcmax25', \ ...
[ "mdekauwe@gmail.com" ]
mdekauwe@gmail.com
ca06a6bb356622e06b1d115ea2cc65695ec2f9e8
ae80a18e9f834e0346d8ffeac0a6efad58bfa36f
/tensorflow/python/keras/engine/base_layer.py
f63fb4e69445c5ce95de80516cee59f52800f6e3
[ "Apache-2.0" ]
permissive
dangchaojin/tensorflow
4e248eb0dccb5e4fd2c4cf5fe4022b15953be7dc
d29b2faa5fe9c79679171bcafe930b819f74dca5
refs/heads/master
2020-04-17T07:44:53.714475
2019-01-18T09:03:42
2019-01-18T09:14:09
166,382,351
1
0
Apache-2.0
2019-01-18T09:47:33
2019-01-18T09:47:32
null
UTF-8
Python
false
false
73,430
py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
30bb5a8de099650a678bb641cbd91df19f7b70e5
edc1f1369794a4a1c499c6e9d5fe49a712657611
/algorithms/BAT-algorithms/Linklist/把链表分隔成 k 部分.py
b8bdcc1f196b6ec7dc476ed648423dfbb07a90aa
[]
no_license
williamsyb/mycookbook
93d4aca1a539b506c8ed2797863de6da8a0ed70f
dd917b6eba48eef42f1086a54880bab6cd1fbf07
refs/heads/master
2023-03-07T04:16:18.384481
2020-11-11T14:36:54
2020-11-11T14:36:54
280,005,004
2
0
null
2023-03-07T02:07:46
2020-07-15T23:34:24
Python
UTF-8
Python
false
false
1,148
py
""" 题目: 把链表分隔成 k 部分,每部分的长度都应该尽可能相同,排在前面的长度应该大于等于后面的。 示例: Input: root = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], k = 3 Output: [[1, 2, 3, 4], [5, 6, 7], [8, 9, 10]] """ from Linklist.utils import * def split_list_to_parts(root, k): cur = root count = 0 # 统计节点个数 while cur is not None: co...
[ "william_sun1990@hotmail.com" ]
william_sun1990@hotmail.com
3cba030978802e2c08627276829ad7783d3fa0b9
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/AaSXX4SKNdZ7mgqK7_17.py
be63a7e642493a1b3670a3c483d9fb9f2cc07103
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,821
py
""" Check the principles of minimalist code in the [intro to the first challenge](https://edabit.com/challenge/2XLjgZhmACph76Pkr). In the **Code** tab you will find a code that is missing a single character in order to pass the tests. However, your goal is to submit a function as **minimalist** as possible. Use the...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
f6fe6717319bec24fa325da576bb51eb891e8504
34652a47355a8dbe9200db229a1bbc62619de364
/Courses, Trainings, Books & Exams/PYTHON 3 - Scientific Training/5-1 Defining and Calling Functions -03.py
17586f32ac4d6ca197e6bf670f6a09aad7f612a0
[]
no_license
btrif/Python_dev_repo
df34ab7066eab662a5c11467d390e067ab5bf0f8
b4c81010a1476721cabc2621b17d92fead9314b4
refs/heads/master
2020-04-02T13:34:11.655162
2019-11-10T11:08:23
2019-11-10T11:08:23
154,487,015
0
1
null
null
null
null
UTF-8
Python
false
false
363
py
#!/usr/bin/python def parrot(voltage, state='a stiff', action='voom'): print("-- This parrot wouldn't", action,) print("if you put", voltage, "volts through it.",) print("E's", state, "!") # Define a dictionary d = {"voltage": "4.000.000", "state": "bleedin' demised", "action": "VOOM"} # call the functi...
[ "bogdan.evanzo@gmail.com" ]
bogdan.evanzo@gmail.com
3197e0ded1fcd0b9cbfc65013a98c0b902ec901a
becf6e96bd866e4a8ee964bc1901225e4fa3fb46
/thornoise/noise.py
264f7672212363d1214a68567be5297050cf0eaa
[ "MIT" ]
permissive
YannThorimbert/RpgMap
80be6a4aea9e8af41a8ff61657a8fcfddd12dd62
c8c4746e1c99930142d8742e0aa6975dde7efa90
refs/heads/main
2023-04-20T17:50:03.875740
2021-05-05T12:47:52
2021-05-05T12:47:52
354,846,610
0
0
null
null
null
null
UTF-8
Python
false
false
4,210
py
from __future__ import print_function, division import random, math import matplotlib.pyplot as plt def generate_constraints(n_octaves, S, chunk): """Generates random height constraints used by terrain generation. THIS IS NOT THE ACTUAL TERRAIN GENERATION FUNCTION.""" min_res = int(S / 2**(n_octaves-1)) ...
[ "yann.thorimbert@gmail.com" ]
yann.thorimbert@gmail.com
f948d2c486bf549cd835bfca0a5694c3e2e0688a
0f5c047bdb5cd8aee5b6aac3447e7cf75c6eedcc
/weighted/weighted_lev_gen.py
752dfb8ad94d66988658319bec58e4935880d9ff
[]
no_license
dengl11/CS166-Project
fcde43fe5a044757432faa53ef79dcaa4ed46132
f05c5de12a0cfe6939e55149cc69d82ceca41a1c
refs/heads/master
2020-03-18T23:13:56.963216
2018-06-13T22:21:19
2018-06-13T22:21:19
135,390,090
0
1
null
null
null
null
UTF-8
Python
false
false
2,569
py
import sys, os sys.path.append(os.path.join(os.path.abspath(__file__), "../")) from util import * from trie import * from levenshtein import * from match import * from generator import * from config import * from lev_dfa_gen import * from weighted_gen import * class WeighedLevTrieGenerator(LevTrieDFAGenerat...
[ "dengl11@stanford.edu" ]
dengl11@stanford.edu
eb87d7b2fc7943fe13c436379b5f7a34d0faaee1
356b5455a4fb86c49c800a6181323b7fabef2b08
/ppci/lang/llvmir/nodes.py
8b38582de2ec730e14e850ad41aa7fed34d291b8
[ "BSD-2-Clause" ]
permissive
obround/ppci
be7d1ce7832513629ee1301e7b67c0ceda38d668
ba0840bc5f4ffd889f882a814fb26f88cd854379
refs/heads/master
2023-02-11T13:47:35.439871
2021-01-05T22:33:08
2021-01-05T22:33:08
327,131,704
0
0
BSD-2-Clause
2021-01-05T22:08:23
2021-01-05T22:08:23
null
UTF-8
Python
false
false
15,154
py
""" LLVM-ir nodes """ class Module: """ Holds all information related to a module """ def __init__(self, context): self.context = context self.data_layout = DataLayout() self.functions = OwnedList(self) self.vmap = {} self.global_list = OwnedList(self) def add_glo...
[ "windel@windel.nl" ]
windel@windel.nl
a38ad724f73002d0f6a61cdd841bd780cfb1b1fc
6d7336a48936a15484798d59cb863d8419e9578c
/setup.py
84631162f58c4005edc139c3796016fad04db54b
[ "MIT" ]
permissive
bbengfort/cellular-automata
48f8f07925e1fb3b4466f090127f44f8f761c799
c58ab58773796037979da70806b9d19797a64926
refs/heads/master
2021-01-01T15:35:44.698790
2014-02-07T20:48:49
2014-02-07T20:48:49
16,409,041
5
7
null
null
null
null
UTF-8
Python
false
false
2,347
py
#!/usr/bin/env python # setup # Setup script for cellular-automata # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Fri Jan 31 09:15:08 2014 -0500 # # Copyright (C) 2014 Bengfort.com # For license information, see LICENSE.txt # # ID: setup.py [] benjamin@bengfort.com $ """ Setup script for cellular-...
[ "benjamin@bengfort.com" ]
benjamin@bengfort.com
55f1881da1b8b571d4ead59e470624bd417dde15
eb2df6020f5759feee3d6d78c5f8c78999454a09
/scheduled_jobs/trulight_energy/capacity_curves/read_capacity.py
7a06b2ec665d19e94399d9f1b55cf383d3f12c1f
[]
no_license
mywork-dragon/dave-energy
7a08f855d245c2d90a9c13aa85fc3b9f28ae9294
4b3430be6ef6957389ab05be3a17a0245f5d6662
refs/heads/master
2023-07-28T02:55:26.791724
2021-09-06T11:44:30
2021-09-06T11:44:30
365,872,455
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
from scheduled_jobs.trulight_energy.run import run from scheduled_jobs.trulight_energy.run import TrulightAPIType CAPACITY_CURVE_URL = "/api/CapacityCurve" if __name__ == "__main__": run(CAPACITY_CURVE_URL, TrulightAPIType.Capacity)
[ "dragonblueyounger@gmail.com" ]
dragonblueyounger@gmail.com
9b080ae18cafe06d4113940f5175b3baafc4f009
311c4dc3034b108049c0d21adad71144433c539d
/cars/tests.py
7215f9f9f078bb99be857970d1c462350d43c22c
[]
no_license
Osama-Yousef/cars-api-permissions-postgres
34acfd9fdc0545e147d07e821f767e1e414149f9
2292f10e6ae53b6da3f0848ed1832d1fe1346c4d
refs/heads/master
2022-12-22T07:21:24.926870
2020-09-28T15:00:47
2020-09-28T15:00:47
299,285,921
1
0
null
2020-09-28T15:00:48
2020-09-28T11:25:05
Python
UTF-8
Python
false
false
907
py
from django.test import TestCase from django.contrib.auth import get_user_model from .models import Car # Create your tests here. class BlogTest(TestCase): @classmethod def setUpTestData(cls): test_user = get_user_model().objects.create_user(username='testuser', password='password') test_user...
[ "osamawalidyousef@gmail.com" ]
osamawalidyousef@gmail.com
0ae56314edbd5ce6556f06888ff948ebbb88126a
abd65dd8249cd4c9d50c7dae9b572306d32c94dc
/crm_campaign_blog/__init__.py
822186dcd9a90c8bf4d7fd26462e7cb9034df31e
[]
no_license
intrepidux/odoo-marketing
17e74dda84fa4dac2f34503e2527e0639a84c922
192266a6748c09aeadec7a45f28288d3503fb836
refs/heads/master
2023-06-10T06:07:01.894348
2020-10-19T09:15:34
2020-10-19T09:15:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
12
py
import blog
[ "apollo_zhj@msn.com" ]
apollo_zhj@msn.com
4dd7ac5371dafbffb4120681c5a84bd01d820d3f
7860f554d0a51f8af87f71c0a927d12f618b2197
/all_topic/esay_topic/38. 外观数列.py
2ee250f25b470d91b81d208e631bc16b3aa019bd
[]
no_license
starrye/LeetCode
79586b5984a4c28b9a641a0108a41dccacd9375a
83c589464e0caad960679aea259681c965218d13
refs/heads/master
2022-07-26T21:05:42.616460
2022-06-23T10:10:38
2022-06-23T10:10:38
158,910,651
0
0
null
null
null
null
UTF-8
Python
false
false
2,603
py
#!/usr/local/bin/python3 # -*- coding:utf-8 -*- """ @author: @file: 38. 外观数列.py @time: 2020/8/10 16:15 @desc: """ from typing import List """ 给定一个正整数 n(1 ≤ n ≤ 30),输出外观数列的第 n 项。 注意:整数序列中的每一项将表示为一个字符串。 「外观数列」是一个整数序列,从数字 1 开始,序列中的每一项都是对前一项的描述。前五项如下: 1. 1 2. 11 3. 21 4. 1211 5. 111221 第一项是数字 1 描述前...
[ "hello-lwz@163.com" ]
hello-lwz@163.com
03a9735ba626fe96b762c8a33362a10ef2117c76
21e177a4d828f4e0a003e9424c4952dbc0b47d29
/testlints/test_lint_sub_ca_certificate_policies_marked_critical.py
fdded72a9b8ed872ca9ac65bd20ff499b974937f
[]
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,279
py
import sys sys.path.append("..") from lints import base from lints import lint_sub_ca_certificate_policies_marked_critical import unittest import os from cryptography import x509 from cryptography.hazmat.backends import default_backend class TestSubCaPolicyCrit(unittest.TestCase): '''test lint_sub_ca_certificate_...
[ "846468230@qq.com" ]
846468230@qq.com
7db12f0089bc848a4c09ea3a04ec1d7797dfce8a
675cdd4d9d2d5b6f8e1383d1e60c9f758322981f
/supervised_learning/0x11-attention/8-transformer_decoder_block.py
6297de99d6e9a896c8f3eaa4dd43d2e1acc22042
[]
no_license
AndresSern/holbertonschool-machine_learning-1
5c4a8db28438d818b6b37725ff95681c4757fd9f
7dafc37d306fcf2ea0f5af5bd97dfd78d388100c
refs/heads/main
2023-07-11T04:47:01.565852
2021-08-03T04:22:38
2021-08-03T04:22:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,821
py
#!/usr/bin/env python3 """ Tranformer decoder block""" import tensorflow as tf MultiHeadAttention = __import__('6-multihead_attention').MultiHeadAttention class DecoderBlock(tf.keras.layers.Layer): """ create an encoder block for a transformer: """ def __init__(self, dm, h, hidden, drop_rate=0.1): "...
[ "bouzouitina.hamdi@gmail.com" ]
bouzouitina.hamdi@gmail.com
ea1f2d359cf39f1aa47f4fd798f27d8dfcc65e11
f05e629875840e53e80f5b9f5ed954e44df20808
/knp_utils/models.py
46004f6b7e778d231b60f61c9a2cf249d5217fd9
[ "MIT" ]
permissive
fumankaitori/knp-utils-py
75ea6ab252a013dce7f7133073ac97d2eb410602
af1e0eb0990e6cdf1fb340407ebbe97f9044ab81
refs/heads/master
2020-06-25T18:36:16.162389
2019-01-06T06:06:24
2019-01-06T06:06:24
199,391,725
0
0
null
2019-07-29T06:26:20
2019-07-29T06:26:20
null
UTF-8
Python
false
false
29,696
py
#! -*- coding: utf-8 -*- # package module from knp_utils.logger_unit import logger # else from datetime import datetime import subprocess import traceback import six import re import shutil import pexpect import os import sys from typing import List, Dict, Any, Tuple, Optional from six import text_type import zlib # er...
[ "kensuke.mit@gmail.com" ]
kensuke.mit@gmail.com
57a43a810299204f78640312238dbe2c58d1d9a6
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/list_secrets_request.py
ec09eb7b62cb6671442582b7035c6ecf09abdefa
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
3,501
py
# coding: utf-8 import pprint import re import six class ListSecretsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
415113fb75120a82dfd4e56463217dc72faec19b
10abe784a87ce1f9b37383471af15c69db7087ed
/snippets/input_3.py
cc99892ca9e2792c2974c9f1a1221bbd023922d8
[]
no_license
The-Cooper-Union-CS102/Lesson-7-Introduction-To-Python
e5f27dadbea27dda83bde7893771d39c0d4cb064
e663bb2e5373b19fd79553757c0ab52e9600518a
refs/heads/main
2023-01-24T13:03:21.161831
2020-11-24T22:51:54
2020-11-24T22:51:54
303,213,874
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
opened_file = open('README.md') content = opened_file.read() print(f'Number of characters: {len(content)}') words = content.split() print(f'Number of words: {len(words)}') lines = content.split('\n') print(f'Number of lines: {len(lines)}') print(f'Number of unique words: {len(set(words))}') opened_file.close()
[ "cory.nezin@gmail.com" ]
cory.nezin@gmail.com
5c6af0f82f0c47d71d0ca32753a263aaa76c23a5
3784268a19831d75753392c726ed59118dde632d
/cifar/eval_all.py
cef8a0014979778f66cbd7f671d7f481776959c7
[ "MIT" ]
permissive
joaomonteirof/e2e_verification
d789399e026a9e6505395a7decae79da0057f3f4
867f7a2fbdb2ac9154c31e1e63762b9a58b32d7e
refs/heads/master
2022-12-08T13:24:03.653512
2020-09-02T03:28:42
2020-09-02T03:28:42
186,659,374
8
3
null
null
null
null
UTF-8
Python
false
false
5,461
py
from __future__ import print_function import argparse import torch from torchvision import datasets, transforms from models import vgg, resnet, densenet import numpy as np import os import sys import glob from utils import * if __name__ == '__main__': parser = argparse.ArgumentParser(description='Cifar10 - Evaluati...
[ "joaomonteirof@gmail.com" ]
joaomonteirof@gmail.com
34cd44260e0cfe1b01d0c68d5483e76202bc1907
92e3a6424326bf0b83e4823c3abc2c9d1190cf5e
/scripts/icehouse/opt/stack/heat/heat/openstack/common/db/exception.py
27987c57b6aeadb45b9547d26ff7820317516fa3
[ "Apache-2.0" ]
permissive
AnthonyEzeigbo/OpenStackInAction
d6c21cf972ce2b1f58a93a29973534ded965d1ea
ff28cc4ee3c1a8d3bbe477d9d6104d2c6e71bf2e
refs/heads/master
2023-07-28T05:38:06.120723
2020-07-25T15:19:21
2020-07-25T15:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,853
py
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
[ "cody@uky.edu" ]
cody@uky.edu
ae802470108ec86a3a76c105e3ae18dd8acbfab3
904fd519e3f10c8a21653d3fdea34915d2e708e2
/dat/migrations/0001_initial.py
586992533e52fb421a095ca0084fdeddfc2485fe
[ "Apache-2.0" ]
permissive
Kgermando/es-script
5d4c74996dd83a2e91fb462f3ceb4943c887811c
f1b10ecf2c805e8875a025e7033c724e236f6cd1
refs/heads/main
2023-06-26T00:54:31.351588
2021-07-26T15:40:14
2021-07-26T15:40:14
366,509,163
1
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
# Generated by Django 3.1.7 on 2021-06-11 05:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cont...
[ "katakugermain@gmail.com" ]
katakugermain@gmail.com
fc31d030779e0d6f5442220445962d8dc9cd3eaf
c0ca5fe06bce08f9ab739cd4bdcddd782b915898
/Python_tests/decoraror_kwargs/spookiplugins.py
6fcf735fc81f09b74b864cfc0566b0d1b31bdb8a
[]
no_license
PhilippeCarphin/tests
bac30ceb9d2d8135b34af3e520fe2a9030028044
9716f53a41ed025c2d346be90c19866c59a03daa
refs/heads/master
2023-07-06T15:09:53.048447
2023-07-04T23:52:43
2023-07-04T23:52:43
53,367,022
2
0
null
null
null
null
UTF-8
Python
false
false
4,215
py
from pyunix import make_unix_function # noinspection PyUnusedLocal @make_unix_function def decorated_arg_function(humeur=None, couleur=8, bonjour=False) -> IMO: """EXAMPLE SPECIFICATION : A function that doesn't do anything. # TODO The behavior will be tha...
[ "philippe.carphin@polymtl.ca" ]
philippe.carphin@polymtl.ca
bdc0db1a009ab22c4fed0cab30158cc6d04d80fb
dde0d75db42c19390f2625a7888586e4d2a14fd7
/devel/.private/cob_object_detection_msgs/lib/python2.7/dist-packages/cob_object_detection_msgs/msg/_TrainObjectResult.py
4334f1679464dd809bb35e2ddf81fa5c4c2cac43
[]
no_license
dhemp09/uml-robotics
16460efe8195a3f9a6a8296047f4fd4d9df0de80
862132e00e221b0a86bc283e7568efa984be673f
refs/heads/master
2020-03-26T09:44:04.033762
2018-08-15T18:11:18
2018-08-15T18:11:18
144,762,178
0
0
null
null
null
null
UTF-8
Python
false
false
2,963
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from cob_object_detection_msgs/TrainObjectResult.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class TrainObjectResult(genpy.Message): _md5sum = "d41d8cd98f00b204e980...
[ "dhemp09@gmail.com" ]
dhemp09@gmail.com
276311ba192111ad3852fba51761d00a98d969e2
e0a51ac08f13f4d3d89ccd770225a9ca0cecb80a
/seucorretor/cidades/admin.py
6d8a0d0175ea14209d65b26b1205eee421665a9c
[]
no_license
MarcosDihl/corretaza-buscador
8bbc94a81f7414a3cbc4a1b7ce7b841431209b1c
a3579059839f32c585dda05775fa525fdd34121e
refs/heads/master
2022-04-04T03:36:47.360708
2018-01-31T03:05:13
2018-01-31T03:05:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import from django.contrib import admin from .models import Cidade, Regiao, Bairro admin.site.register(Cidade) admin.site.register(Regiao) admin.site.register(Bairro)
[ "huogerac@gmail.com" ]
huogerac@gmail.com
d12d58a30488fa6fba934eb791e0ccbbffd9631b
ed63c99ccb0beebcfe9bff2ef68e9c86877fa7d8
/vocoder/train.py
b2449f66ffe8fcb05e7c7aeccb502f70c6c114b5
[ "MIT" ]
permissive
X-CCS/Real-Time-Voice-Cloning-1
d25588a852b87849f9a517d587a3a36d086bbae0
ae4aa2aa1605168d2f04275e1a45f6de2d88f3f0
refs/heads/master
2022-02-28T03:29:26.135339
2019-10-23T12:01:10
2019-10-23T12:01:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,376
py
from vocoder.models.fatchord_version import WaveRNN from vocoder.vocoder_dataset import VocoderDataset, collate_vocoder from vocoder.distribution import discretized_mix_logistic_loss from vocoder.display import stream, simple_table from vocoder.gen_wavernn import gen_testset from torch.utils.data import DataLoader from...
[ "red_wind@foxmail.com" ]
red_wind@foxmail.com
baf29f1497792eadf8baea08bff17463c2572a94
5f6c16e89cf58304c2e70f1e34f14110fcec636c
/python-swagger-sdk/test/test_secret_network_rest_api.py
67db62646ec81cd1341b284912b0e92b3292fe27
[]
no_license
mohammedpatla/secretapi
481c97901a5e92ca02e29470ab683df80ea0f26a
df420498bd0ae37fd1a152c3877a1342275a8f43
refs/heads/master
2022-12-25T01:55:18.038954
2020-10-04T23:13:54
2020-10-04T23:13:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
# coding: utf-8 """ API for Secret Network by ChainofSecrets.org A REST interface for state queries, transaction generation and broadcasting. # noqa: E501 OpenAPI spec version: 3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import imp...
[ "lauraweindorf@gmail.com" ]
lauraweindorf@gmail.com
62cb616462e647828c49ec52cc887a48020ea0e7
9398d8433fdb29ee630a6ee43a07bc36a2adbd88
/openstackclient/tests/compute/v2/fakes.py
ecf7f599ba8d1d43e321c07e2f7ed7f030142719
[]
no_license
bopopescu/OpenStack_Liberty_Control
ca5a21d0c32c55dc8c517f5c7c9938ce575a4888
0f6ec1b4d38c47776fdf8935266bcaef2464af4c
refs/heads/master
2022-12-03T10:41:53.210667
2016-03-29T06:25:58
2016-03-29T06:25:58
282,089,815
0
0
null
2020-07-24T01:04:15
2020-07-24T01:04:14
null
UTF-8
Python
false
false
9,083
py
# Copyright 2013 Nebula 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...
[ "tony.pig@gmail.com" ]
tony.pig@gmail.com
8566f9e75de89e699548243255089d570f8f980a
a59ec95fddc064ea9a554ad41e4ac8e82376701a
/myshop/orders/forms.py
85b29fe6f1e2dd581d3dc42576bb2d6f250431df
[]
no_license
Nicholas86/PythonDemos
449c08713c7c03633719a4ae7287b127783d7574
4f06639cc65a5e10cc993335d3d34e2d60aac983
refs/heads/master
2021-01-22T21:07:11.457179
2017-08-18T06:40:44
2017-08-18T06:40:44
100,681,216
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys reload(sys) sys.setdefaultencoding( "utf-8" ) from django import forms from .models import * # 创建模型表单,根据模型Order class OrderCreateForm(forms.ModelForm): class Meta: model = Order # 表单展示的字段,用户需要填写的内容 fields = ['fi...
[ "970649831@qq.com" ]
970649831@qq.com
58cb0959aa62afa5c2cbef4ea5407a68d55606ce
cceeb787cf02dfee98f6b913e0815a5250505a29
/special/special_m_CochranQ检验.py
9ec770271c99a0204bdee065914558bcfc190c82
[]
no_license
shandakangping/BioStat
4782bdf599ddc4b44dcb9c4ad100459edbd2d221
c2ecc1282bc12228b88eeba66551aec87d30fd8e
refs/heads/master
2022-03-28T05:37:50.322348
2019-12-05T04:20:17
2019-12-05T04:20:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,392
py
#CochranQ检验 https://spssau.com/front/spssau/helps/medicalmethod/cochranQ.html import pandas as pd from statsmodels.sandbox.stats.runs import cochrans_q def core(x): ''' x: pd.DataFrame() ''' n = len(x) freq = x.apply(lambda a:a.value_counts()).T perc = freq.apply(lambda a:a...
[ "shenwanxiang@tsinghua.org.cn" ]
shenwanxiang@tsinghua.org.cn
12a26396e8dab5f0018ea9c4f98927ab88a5a63b
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/pzQXHMqizBmaLDCHc_9.py
15c6a97cb23a0e43aaf7b064fe8045b18ba3fc93
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
""" It's a Pokemon battle! Your task is to calculate the damage that a particular move would do using the following formula (not the actual one from the game): damage = 50 * (attack / defense) * effectiveness * attack = your attack power * defense = the opponent's defense * effectiveness = the effectiven...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
294569d8a26a8235760f1210848bfc69ed7e87ec
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_242/ch150_2020_04_13_20_26_06_768478.py
39ac017bfbff2072d7991d338db44e25d37255e3
[]
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
178
py
import math def calcula_pi(n): contador=1 soma=0 while contador<=n: soma+=6/(contador**2) contador+=1 pi = math.sqrt(soma) return pi
[ "you@example.com" ]
you@example.com
b8e9300a6881004ad7de71e3459c045a7a356399
6cb25fcb5ce0e4f3b8cfb1165abe15d3de7fce82
/link/tasks.py
17747a2aee50b47ae5cd6eecc5882eb6e64a79f8
[]
no_license
RoodrigoRoot/bills_celery
4d3f904821f49629f2c024772899943e06042451
3ec5c5806c9b1ec75ff6ec3b287bf4d0a2537164
refs/heads/master
2022-12-24T09:04:46.917201
2020-02-10T22:41:55
2020-02-10T22:41:55
239,628,828
0
0
null
2022-12-08T03:35:29
2020-02-10T22:42:03
Python
UTF-8
Python
false
false
330
py
from celery import shared_task from ftplib import FTP @shared_task def get_bills_moth(): #month = "manual_en.pdf" #ftp = FTP("demo.wftpserver.com") #ftp.login("demo-user", "demo-user") #ftp.cwd("download") #ftp.retrbinary("RETR " + month ,open(month, 'wb').write) print("Factura descargada") ...
[ "roodrigoroot@gmail.com" ]
roodrigoroot@gmail.com
e0d214ad9218a623239cde1c8e194ac4ca8332fb
7d44d7e8b12263ed3f692fba4f19eaff0420c5c0
/earth/adventurers.py
d812355915f9774a05acd68bdb8c1dd2cbebff3e
[ "MIT" ]
permissive
ryltsev/earth
64a59b5af20477d0e9c1e2585d8772223d6b7421
2787eeb37692f1c82bc12cb24a4c1574826204a7
refs/heads/master
2023-08-18T15:37:25.506828
2019-05-26T09:11:40
2019-05-26T09:11:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,272
py
import time import typing import attr from .year import Months from .travel import fly, AirportProblem class Busy(RuntimeError): """Raised when Adventurer is busy.""" def pack(adventurer): print(f"{adventurer.profile} {adventurer.name} is packing 👜") @attr.s(auto_attribs=True, kw_only=True) class Adven...
[ "raphael@hackebrot.de" ]
raphael@hackebrot.de
dc2c6fac31db0f166a99c5899a1563edaf631d31
f682bf62d7de4afeeadf7c4f93dd51cfe51a78ec
/vikuraa/NumberDisplay.py
e781b41148dfc47b4834f3122482c00767f9e032
[]
no_license
aliaafee/vikuraa
1159d19573f043baa8401510888c22920d9edf04
df02493249b563c2f14ecd517ef8cbd09f1641a0
refs/heads/master
2020-05-29T13:13:35.554124
2017-02-20T18:21:48
2017-02-20T18:21:48
82,592,264
0
0
null
null
null
null
UTF-8
Python
false
false
2,457
py
import wx class NumberDisplay(wx.Panel): def __init__(self, parent, rows, first_row_big=True, size=wx.Size(-1,-1)): wx.Panel.__init__(self, parent, style=wx.SUNKEN_BORDER, size=size) self.SetBackgroundColour('WHITE') self.label = {} self.value = {} gs = wx.FlexGridSize...
[ "ali.aafee@gmail.com" ]
ali.aafee@gmail.com
2bd17aa550e72879b0baf592355a60b8120b372f
1f9611710ffaf5e0493799f716d3006c2f27b412
/tests/test_madlib.py
dea7c141a360f9b41dc1300064bd9d61a683a647
[]
no_license
majdalkilany/madlib-cli.1
2ea8d37cfe39e60151480c15ccad2841f58f53d8
48fb9e0b5aa1a9d29081e50304ff1e208ede3921
refs/heads/master
2022-12-02T19:14:57.538714
2020-08-22T14:39:52
2020-08-22T14:39:52
289,232,834
1
0
null
null
null
null
UTF-8
Python
false
false
752
py
from madlib_cli_1.madlib import read_file ,parse ,merge_and_write_file def test_read() : expected = open('assets/mad_file.txt').read().strip() received = read_file() assert expected == received def user_input_test () : accepted = 'please enter name >> ' actual = user_input(['name']) a...
[ "majdkilany92@gmail.com" ]
majdkilany92@gmail.com
8e338265078e527e3fb0019e38f7b755c53fe0fc
67f9452cc0511c3d5ed501b65c31d6e8a5e7576b
/set36thas.py
84906297a569828ec146edbd10ea10608db02ad9
[]
no_license
thasleem-banu/python
621bdc73722bcaa336bcbd95cd27d9aabfe7dd97
1003c3f32776d4ccf3ab1a1d98256c1158ca5670
refs/heads/master
2020-06-07T17:02:11.887671
2019-07-28T15:16:26
2019-07-28T15:16:26
193,060,927
2
3
null
null
null
null
UTF-8
Python
false
false
105
py
sou=int(input()) finl=list(map(int,input().split()[:sou])) finl.sort() for i in finl: print(i,end=" ")
[ "noreply@github.com" ]
thasleem-banu.noreply@github.com
452b9e305dc8e43d3f7fc84b3e781c57477f5b93
feb9d0e303dd6d45a160aef20c6f045871b56fcf
/networks/resnet.py
6c3733d5cd23ba7c2fc17c02a903f1bddedae73d
[]
no_license
TrendingTechnology/REFILLED
c0fe8bef1120668ca715c5dce7f819903ca66f49
c5e077f3b4708384908919253da6fdece08f1dab
refs/heads/master
2022-10-13T18:43:28.721174
2020-06-12T08:59:24
2020-06-12T08:59:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,537
py
# -*- coding: utf-8 -*- """ @Author: Su Lu @Date: 2019-07-15 15:21:44 """ import numpy as np import torch from torch import nn from torch.nn import init from torch.nn import functional as F def conv_init(m): """ Introduction of function ------------------------ This function init...
[ "noreply@github.com" ]
TrendingTechnology.noreply@github.com
4717ab086f2fef8ceb6be1f76e7cc08bce0871f3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02400/s039065215.py
adef60ad100287d511a75c9a9b9032286684a3a2
[]
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
72
py
import math r = input() print '%.10f %.10f' %(r*r*math.pi , r*2*math.pi)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
458e59de4379f587cb0638e512f274a0e96dade3
7efe824669f3d87fa48e775d13d2a0fb6e9c005e
/tensorflow/contrib/eager/python/datasets_test.py
2917eaac97c48d59f8e5857ec8daff994558ed57
[ "Apache-2.0" ]
permissive
codeteenager/tensorflow
1c90bc1acf22b28c648c41176d18c28179f59dc4
fc8118a853c26f0773145f2f1a3fba2fc968ea73
refs/heads/master
2020-03-25T01:41:40.765379
2018-08-02T06:18:03
2018-08-02T06:21:39
143,251,668
1
1
Apache-2.0
2018-08-02T06:25:59
2018-08-02T06:25:58
null
UTF-8
Python
false
false
14,389
py
# Copyright 2017 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
dbd591edba4b84e2c524efb869936b5da91baed6
692eceac2533150b86aa173b451698b7a12ff735
/PycharmProjects/lession4/hello7.py
d86e22fa46e409bec4414864c2e7482c6a4746b8
[]
no_license
linlufeng/LufengLearnPython
cb74f34926663dc9b7d4d6789e6e7e044dd73db3
bedcbf4fea6d048a3903a623a4386ac5d484a70d
refs/heads/master
2022-09-12T22:14:19.243757
2022-08-25T02:54:13
2022-08-25T02:54:13
200,183,327
2
0
null
null
null
null
UTF-8
Python
false
false
126
py
#!/usr/bin/python # -*- coding: UTF-8 -*- # Python Unicode 字符串 a = u'hello word' print a b = u'hello\u0020word' print b
[ "yuzhibo_8486@qq.com" ]
yuzhibo_8486@qq.com
51df05dbb475d3d601e27c671a0abd7bfd968318
a02789088ef6f7134d70b7235fa92ddcab9a667b
/eventsourcing/popo.py
62bf9a207f000983720a274e3360dcd1d0d436a9
[ "BSD-3-Clause" ]
permissive
bernardotorres/eventsourcing
89f4f6aaf62f321ce28f5ec9ddbb60712495aa8b
002077d185c261920f8ea8a397e292ab73a25319
refs/heads/main
2023-08-07T17:38:59.665618
2021-09-18T07:04:19
2021-09-18T07:04:19
407,116,568
0
0
BSD-3-Clause
2021-09-16T10:13:36
2021-09-16T10:13:35
null
UTF-8
Python
false
false
4,826
py
from collections import defaultdict from threading import Lock from typing import Any, Dict, Iterable, List, Optional from uuid import UUID from eventsourcing.persistence import ( AggregateRecorder, ApplicationRecorder, InfrastructureFactory, IntegrityError, Notification, ProcessRecorder, S...
[ "john.bywater@appropriatesoftware.net" ]
john.bywater@appropriatesoftware.net
456af233a7576621e75971e4b2de66322b1689c9
5a914243183e26f26e445c6f9d0bdf38eacde83a
/em/here_em1.py
b2054ec7f7c21d3da446dab1657a78cc4e948c56
[]
no_license
linafeng/KDD-demo
b95834a0c9ae3e0e08d1d2fb710bf421b9eda8d5
8648a69f49dd8b27060e8349d84d6cde8b070716
refs/heads/master
2022-06-16T02:08:10.140190
2020-05-07T10:04:23
2020-05-07T10:04:23
255,523,915
0
0
null
null
null
null
UTF-8
Python
false
false
1,922
py
# -*- coding: utf-8 -*- """ 用全部的特征值矩阵进行聚类训练 """ import pandas as pd import csv import matplotlib.pyplot as plt import seaborn as sns from sklearn.mixture import GaussianMixture from sklearn.preprocessing import StandardScaler # 数据加载,避免中文乱码问题 data_ori = pd.read_csv('./heros.csv', encoding='gb18030') features = [u'最大生命'...
[ "lina.feng@gentinghk.com" ]
lina.feng@gentinghk.com
b488e8f76122fb33075b71ea5447d66f8dab36ea
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2986/60705/264139.py
b726ef653c77a48cfa8e0baed697e3d4e6069ce1
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
485
py
word1 = input() word2 = input() m = len(word1) n = len(word2) line = [0 for i in range(0, n+1)] matrix = [line.copy() for i in range(0, m+1)] for i in range(0, m+1): matrix[i][0] = i for i in range(0, n+1): matrix[0][i] = i for i in range(1, m+1): for j in range(1, n+1): if word1[i-1] == word2[j-1]...
[ "1069583789@qq.com" ]
1069583789@qq.com
03d890f8f2dfbdcee709b7d5c2e90d16d30b8606
277f976227c7590f6de5e7991d8fbed23b6646fe
/euler/solution/p7.py
24b6e6d889b48270005e27956ac6af780eaa9deb
[]
no_license
domspad/euler
ca19aae72165eb4d08104ef7a2757115cfdb9a18
a4901403e442b376c2edd987a1571ab962dadab2
refs/heads/master
2021-01-17T14:04:39.198658
2016-07-25T23:40:10
2016-07-25T23:40:10
54,561,463
0
0
null
null
null
null
UTF-8
Python
false
false
959
py
# BRUTE Force - alg from p3... 10 mins # In [35]: %time p7() # 10 0 # 20 8 # 40 12 # 80 22 # 160 37 # 320 66 # 640 115 # 1280 207 # 2560 375 # 5120 685 # 10240 1254 # 20480 2312 # 40960 4288 # 81920 8009 # CPU times: user 1.05 s, sys: 24.2 ms, total: 1.07 s # Wall time: 1.1 s # Out[35]: 104743 from math import sqrt ...
[ "domspad@umich.edu" ]
domspad@umich.edu
abb757860c83b8d6040106470b0abcc1405c33f1
f3b233e5053e28fa95c549017bd75a30456eb50c
/bace_input/L4N/4N-4M_MD_NVT_rerun/set_3.py
e43d9b8429c088bc81e4ec4d4db05a1ba78a0721
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
import os dir = '/mnt/scratch/songlin3/run/bace/L4N/MD_NVT_rerun/ti_one-step/4N_4M/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_3.in' temp_pbs = filesdir + 'temp_3.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lam...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
b132f75964416e8fb6db865f13619d5a5d4feebc
ca41bc15576624f4be22c777833b6dbf80a3d5f9
/dolly/tarjetas/views.py
6f751f0cebaf9d47fe33c218daa4b79650d76b56
[]
no_license
aris-osorio/dolly
74840477e01a020dfaaaf3a4e94c4f95f48f690e
256042bae4d4253fbc93f50aa125047e5090b68c
refs/heads/main
2023-02-01T14:48:19.840785
2020-12-17T07:30:34
2020-12-17T07:30:34
321,873,299
0
0
null
2020-12-17T06:51:59
2020-12-16T04:58:55
Python
UTF-8
Python
false
false
309
py
from rest_framework import viewsets from django.shortcuts import render from tarjetas.models import Tarjeta from tarjetas.serializers import TarjetaSerializer # Create your views here. class TarjetasViewSet(viewsets.ModelViewSet): serializer_class = TarjetaSerializer queryset = Tarjeta.objects.all()
[ "aris.osorio@alumnos.udg.mx" ]
aris.osorio@alumnos.udg.mx
1783bd109902241c813c9e0a689496e14d5cedcc
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_089/ch48_2020_04_10_20_07_55_415960.py
44a694247dd0499ee9a39cc77edfd3fd0ea899fd
[]
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
295
py
def eh_crescente(x): numero = True i = 0 while numero: while (i + 1) < len(x): if x[i] < x[i+1]: i = i + 1 else: numero = False return(False) return(True)
[ "you@example.com" ]
you@example.com
a48aae75de72aac5915ef51f45e6d1a46a853b69
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/recoveryservices/v20201201/get_protection_container.py
f52c0b9299418c861bc4540e9f8abd775c160bd0
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
5,276
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
morrell.noreply@github.com
dc8f58995b56a74a71ab55bfcf0f407a1856b1e8
e21f7d14e564d7fb921277a329ff078e86ad86a2
/2020/day-02/day_02.py
77772c41380808b0f53d3cf39eedf829893ccbe2
[]
no_license
MrGallo/advent-of-code-solutions
31456a0718303cca6790cf1227831bcb14649e27
28e0331e663443ffa2638188437cc7e46d09f465
refs/heads/master
2022-07-07T08:49:30.460166
2020-12-17T17:22:24
2020-12-17T17:22:24
160,988,019
0
1
null
2022-06-21T22:26:19
2018-12-08T23:34:51
Python
UTF-8
Python
false
false
1,269
py
from typing import List, Tuple, Callable Password = Tuple[str, str, int, int] def main(): with open('input.txt', 'r') as f: lines = f.read().split("\n") passwords = [] for line in lines: password = line.split()[-1] # last 'word' colon_pos = line.index(':') minmax, letter...
[ "daniel.gallo@ycdsbk12.ca" ]
daniel.gallo@ycdsbk12.ca
76a65c84f9cf87f1a638d3ca4ab887975e058090
9bd1c702f6a764f1227bb92b3c25045e1270e6d7
/utility/queueUtility/queueFactory.py
2111478742d447159b4ed8236151ef2c58c2ba4a
[]
no_license
sdz7121211/Crawler
94b429d343165c959713ff1fffa40c54e41bcb57
6b3f1d0f78fed3027f2f075963e433d2c1c13bb8
refs/heads/master
2021-01-22T11:46:20.299124
2014-01-21T07:04:59
2014-01-21T07:04:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
#!/usr/bin/python # -*- coding: utf-8 -*- import Queue instanceList = {} def GetInstance(queue_id): return instanceList[queue_id] def CreatInstance(queue_id, maxNum = 0): obj = Queue.Queue(maxsize = maxNum) instanceList[queue_id] = obj ##!/usr/bin/python ## -*- coding: utf-8 -*- ##from queuesContr...
[ "sudazhuang1@163.com" ]
sudazhuang1@163.com
4e7a333cf591059236324b62a574244c81efc0c5
7bdf57cdb8d7a8dd0916e9263e63ef2d20723bec
/src/app/config.py
29b15c27ea5973e7184897e54f7bfe46ab9bfd75
[]
no_license
cyr1z/api-generate-table-image
085b855c6ec48f6b46f602f92cd21ec0f03391e3
d06e13eb6538ac4d2986903fba086140b11c3832
refs/heads/main
2023-07-13T20:50:01.146353
2021-08-30T06:03:10
2021-08-30T06:03:10
401,231,871
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
from os import getenv from dotenv import load_dotenv load_dotenv() class Config: port = getenv('PORT') production = getenv('PROD') project = getenv('PROJECT_NAME', 'default') base_url = getenv('BASE_URL') storage_dir = getenv('STORAGE_DIR') token = getenv('TOKEN')
[ "cyr@zolotarev.pp.ua" ]
cyr@zolotarev.pp.ua
dc077392fce96fd1e468c011306a5a12dc207654
f38496cf4d3f8dcf835adc63fbc4d1d975028c7e
/vae.py
464c73864e81a04ea9dde18e63799697f10bb07d
[]
no_license
Namenaro/Terau
c8c73ff585a01d296b4d334d01b6a1109022b38e
177f212e88ce3399330baf49b168a0d19be49d98
refs/heads/master
2021-01-01T16:29:08.724267
2017-08-02T14:24:34
2017-08-02T14:24:34
97,843,936
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
# -*- coding: utf-8 -* # Автоэнкодер n-1-n class VAE: def __init__(self): pass
[ "nanenaro@gmail.com" ]
nanenaro@gmail.com
31234163102d0defea9f5e52da692f3b32689513
dbbd9e8767f052ce499245fd2d1356b57c714eda
/aper.py
499f34e45fa2b04ec24075f472c60b0ece264486
[]
no_license
djbrout/pysmp
8ef67dbb303c848fdd641d97ca31e2b33c60089d
59ebed1c5aab1c920ae5a6eccc5219fb0736879f
refs/heads/master
2020-04-03T20:59:21.629614
2019-07-09T22:59:05
2019-07-09T22:59:05
59,670,805
0
1
null
null
null
null
UTF-8
Python
false
false
19,994
py
#!/usr/bin/env python #D. Jones - 1/15/14 #S. Rodney - 2014.07.06 """This code is translated from the IDL Astronomy Users Library example call: from PythonPhot import aper import numpy as np image = pyfits.getdata(fits_filename) xpos,ypos = np.array([1450,1400]),np.array([1550,1600]) mag,magerr,flux,fluxerr,sky,skyer...
[ "djbrout@gmail.com" ]
djbrout@gmail.com
47debde28beda902a0c661b99da718fe0df26f64
e2f7350e08784a793044e911670f50fdc560bcbc
/examples/population-annealing-qpu.py
5229bee006233aecdf36ffa1c65d186d6815a2fa
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
hsadeghidw/dwave-hybrid
7a5dc4dd9ce7d8544f9276309eb1a4e8b450a5f8
e667035b5623f122813795d433a40db6e520ff66
refs/heads/master
2020-08-21T21:31:19.708429
2019-09-19T16:59:50
2019-09-19T16:59:50
216,250,242
0
0
Apache-2.0
2019-10-19T18:12:07
2019-10-19T18:12:07
null
UTF-8
Python
false
false
2,194
py
#!/usr/bin/env python # Copyright 2019 D-Wave Systems 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 ...
[ "radomir@dwavesys.com" ]
radomir@dwavesys.com
1dfbf1e610adedc057bd7bcab7b89bb09b77db5e
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/covid_epidemiology/src/models/shared/feature_utils_test.py
9166d7a1d131f7f72dbf2916c7e3814c2dde998c
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
11,089
py
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
8dccce2cb401bc399d13979fc9d02d0db03644cd
cea3a0be3209626c11f3ec7c235b0a7f7fdbe256
/appengine_config.py
cad07b958597b5ca5a2a64641a75d268d1cd0720
[ "LicenseRef-scancode-public-domain" ]
permissive
snarfed/plusstreamfeed
56a2d1441097dd1660b9c5a46b546505ac8c2fa8
01362468594b820d9f57f4830a13df5f1aceaed1
refs/heads/master
2020-04-10T15:53:21.389755
2019-04-18T14:18:33
2019-04-18T23:18:43
41,272,334
3
1
null
null
null
null
UTF-8
Python
false
false
209
py
# Load packages from virtualenv # https://cloud.google.com/appengine/docs/python/tools/libraries27#vendoring from google.appengine.ext import vendor vendor.add('local') from granary.appengine_config import *
[ "git@ryanb.org" ]
git@ryanb.org
e26cbf3aa76e7ccbaad9ffdccf7b920147bf8c64
cd555725b300579d44c0bd3f6fc8f6a968912dfb
/UF1/Nieto_Alejandro_Gomez_Alejandro_PT15/Exercici2-2.py
847dc7532d4ef40f9f8a3a48b08218e721990879
[]
no_license
aleexnl/aws-python
2da5d8a416927f381618f1d6076d98d5e35b3b5e
03fce7744b443b2b59a02c261067ecae46ecc3d9
refs/heads/master
2022-11-24T08:58:24.686651
2020-04-18T15:58:32
2020-04-18T15:58:32
221,772,677
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
# Fem una tupla amb els dias que tenen cada mes dias_mes = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31) # Fem una altra on passarem una data. avui = (2018, 4, 11) # Guardamos los valores de la tupla en las variables a(any), m(mes) y d(dia) a, m, d = avui # Creem una tupla a la cual possarem el dia que es nadal (25 ...
[ "alex.nieto0027@gmail.com" ]
alex.nieto0027@gmail.com
e1edaf60e374412bee0cbbd1ef24f83c1c72e19a
0bdd797b3e95429e03108152cacfbb26069f1d76
/stack/ternaryexpression.py
da9bb4cd80a9007718dd489b83661c65f5fdbb77
[ "MIT" ]
permissive
mengyangbai/leetcode
3eda89470c933fdec5ffdfbf9cceb57e85c7e44d
e7a6906ecc5bce665dec5d0f057b302a64d50f40
refs/heads/master
2021-06-28T15:39:16.258564
2019-06-27T07:30:22
2019-06-27T07:30:22
142,398,571
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
class Solution(object): def parseTernary(self, expression): """ :type expression: str :rtype: str """ stack = [] expr = list(expression) while len(stack) > 1 or expr: tail = stack[-5:] if len(tail) == 5 and tail[3] == '?' and tail[1] ==...
[ "mengyang.b@exciteholidays.com" ]
mengyang.b@exciteholidays.com
2dc546f6dbc042377bebe95d64321e6f51650677
af57db915a3e0376a400511417c5750e180de3d5
/auto/forms.py
2a3709428dbab0f1cf9f461305895e35748bcd2a
[]
no_license
Aitodev/ais
a8377e572a7cbf902c0d2229e27465af01a202f3
a463dac02dde4be2586e4d3e77b58b7c0cb89f7e
refs/heads/main
2023-02-25T06:55:09.594195
2021-02-01T16:06:45
2021-02-01T16:06:45
335,005,826
0
0
null
null
null
null
UTF-8
Python
false
false
2,618
py
from django import forms from django.contrib.auth.models import User from .models import * from .models import Feedback class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) class UserRegistrationForm(forms.ModelForm): password = forms.CharField...
[ "guruitcompany@gmail.com" ]
guruitcompany@gmail.com
6fd84c7eaaf2f3f098c6eafed22ac366f1da98cb
5c59dd613315aefbdc26d2494efd9184c177f8a9
/langevin_thermostat.py
b23b17896f0ae28f3e6aabaf25bd74692e63de0b
[]
no_license
DuaneNielsen/odes
d7f4480e18a5044726e8faacf85eb2be67b08fb3
26735aad34d0658755f639464670cae0add3cd02
refs/heads/master
2022-12-28T15:34:19.014633
2020-10-10T17:43:05
2020-10-10T17:43:05
302,956,412
0
0
null
null
null
null
UTF-8
Python
false
false
1,126
py
from vpython import * import random ground = box(color=color.red, size=vector(22, 1, 1), pos=vector(0, -1.5, 0)) top = box(color=color.red, size=vector(22, 1, 1), pos=vector(0, 19.5, 0)) left = box(color=color.red, size=vector(1, 22, 1), pos=vector(-11, 9, 0)) right = box(color=color.red, size=vector(1, 22, 1), pos=ve...
[ "duane.nielsen.rocks@gmail.com" ]
duane.nielsen.rocks@gmail.com
f983b13f56d37aa51fd6fad03f39562f4d2a7fd3
9e2935a5186914e44a739989c9b5c1a89fef9f65
/dht11_no_sucess/2.py
7049346ef0a6743c5245a6eb104bb2cfb894eb16
[]
no_license
raspberrypitools/sensor
a36001f0eea6e423ea1659c7bb514e244a12bcf6
96e731416843c6cba04e3e549a59714123e665e6
refs/heads/master
2021-02-17T09:58:22.822618
2020-06-12T14:40:33
2020-06-12T14:40:33
245,087,406
0
0
null
null
null
null
UTF-8
Python
false
false
1,769
py
#!/usr/bin/python #-*- coding:utf-8 -*- import RPi.GPIO as GPIO import time channel =7 data = [] j = 0 GPIO.setmode(GPIO.BCM) time.sleep(1) GPIO.setup(channel, GPIO.OUT) GPIO.output(channel, GPIO.LOW) time.sleep(0.02) GPIO.output(channel, GPIO.HIGH) GPIO.setup(channel, GPIO.IN) print GPIO.input(channel),GPIO....
[ "you@example.com" ]
you@example.com
a891d1335f0277aed08bff930a81a3111785cbcd
5dd5d4f80a883459ece27066bb88a8a951b1f88a
/examples/volumetric/read_vti.py
bc37309bb1de11d7eca624cf3460946772df96b7
[ "MIT" ]
permissive
Gjacquenot/vtkplotter
428cd7c302ca50980a829aa274cf0c4165990267
dc865f28dec0c6f10de159dc1f8f20dd69ee74cf
refs/heads/master
2020-05-25T17:19:55.569739
2019-05-22T14:56:50
2019-05-22T14:56:50
170,382,207
0
0
MIT
2019-02-12T19:58:25
2019-02-12T19:58:24
null
UTF-8
Python
false
false
873
py
""" Using normal vtk commands to load a xml vti file then use vtkplotter to show the resulting 3d image. """ import vtk from vtkplotter import datadir # Create the reader for the data. reader = vtk.vtkXMLImageDataReader() reader.SetFileName(datadir+"vase.vti") reader.Update() img = reader.GetOutput() # specify the da...
[ "marco.musy@gmail.com" ]
marco.musy@gmail.com
7f4c31ff4d35f469ac39c66f2f9f5a3237164696
6929f9696a8f90b3778d449a199cee8891f3f739
/python_core/packages_test/package_described.py
9212ff4dd84afff229f7e04dd0d8c09253353576
[]
no_license
chemplife/Python
881d492a4271fb2b423f2dd611eaac53a0efdc34
7fdfbf442a915e4f41506503baad4345a52d1e86
refs/heads/master
2022-12-31T20:00:22.475985
2020-10-19T20:14:43
2020-10-19T20:14:43
305,503,403
0
0
null
null
null
null
UTF-8
Python
false
false
2,935
py
""" The directory this file is in, is now a python package. Package: It is a MODULE that has additional functionalities. - It can have more packages inside it - It can have module inside it. To make any directory a package recoganisable by python compiler, - There needs to be a __init__.py file in it. Eg: app...
[ "ratul.aggarwal@outlook.com" ]
ratul.aggarwal@outlook.com
03a69a90e7668a902e87e4659702760b40bab9f8
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/2553.py
33b08c886bcd825a1acedf643a39ec999814fd9f
[]
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,332
py
# function to flip def flip(s): if s == '+' : return '-' else: return '+' # function takes N as input and prints output def compare(f, s): return int(f) < int(s) def solution(N): result = None n = list(str(N)) i = len(n) - 1 while i > 0 : # print(i, le...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
73f04e629564a2b74fae518681395ab7581c4fe8
3649dce8b44c72bbfee56adf4e29ca6c5ba2703a
/code_up1290.py
b77336690c08f70b9c8eed863fcd139837ae78b0
[]
no_license
beOk91/code_up
03c7aca76e955e3a59d797299749e7fc2457f24a
ca1042ce216cc0a80e9b3d3ad363bc29c4ed7690
refs/heads/master
2022-12-06T08:23:00.788315
2020-08-20T11:21:59
2020-08-20T11:21:59
284,844,571
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
num=int(input()) sum1=0 for i in range(1,num): if num%i==0: sum1+=1 print(sum1)
[ "be_ok91@naver.com" ]
be_ok91@naver.com
46062115961e2560753e312d28159cdebeda7ca2
849cd35166a93259c8bf84f001a3c40d9fe18b98
/bomj.py
3ab89c246b9b4a91d31b4921845d35dac34a030e
[]
no_license
Larionov0/Group2-lessons
98c3d20d7532583ee66e766371235cfe888264c5
6426962e9b6766a9470ab1408b95486e63e4c2fa
refs/heads/master
2023-05-07T01:42:57.290428
2021-05-27T17:52:02
2021-05-27T17:52:02
334,012,422
0
0
null
null
null
null
UTF-8
Python
false
false
6,404
py
import random from time import sleep money = 1000 satiety = max_satiety = 10 satiety = 1 things = [ ['аксесуар', 'шорти', 0], ['аксесуар', "кепка", 0], ] store = [ ['аксесуар', 'тапки', 50], ['аксесуар', "телефон", 200], ['аксесуар', "спортивний костюм", 300], ['аксесуар',...
[ "larionov1001@gmail.com" ]
larionov1001@gmail.com
8cafb8dc6888632bb689dd46e15eb44721ac98d4
210b05500599fe0fbe165c1cd3056e9a11487b0d
/ico/cmd/refund.py
06da4a97c1ca722f174293455fb0c5996989f604
[ "Apache-2.0" ]
permissive
streamr-dev/token-launch-smart-contracts
b7fa04c9b33b5c2e371fc88dee1555b74334000e
209d574ded70b4c382894d09ea886a2704291ce0
refs/heads/master
2021-01-01T04:48:56.809663
2017-07-10T01:23:33
2017-07-10T01:23:33
97,254,821
11
4
null
null
null
null
UTF-8
Python
false
false
5,520
py
"""Distribute ETH refunds.""" import csv import datetime import json import os import time from decimal import Decimal import shutil import click from eth_utils import from_wei from eth_utils import is_checksum_address from eth_utils import to_wei from populus.utils.accounts import is_account_locked from populus impo...
[ "mikko@opensourcehacker.com" ]
mikko@opensourcehacker.com
32b5aa500d83bd14aee751d92265569351a866f2
e4066b34668bbf7fccd2ff20deb0d53392350982
/project_scrapy/spiders/fishpond.py
a505966943e5272cc2c64493bb9cf1f8f5c9e360
[]
no_license
sushma535/WebSites
24a688b86e1c6571110f20421533f0e7fdf6e1a8
16a3bfa44e6c7e22ae230f5b336a059817871a97
refs/heads/master
2023-08-18T09:09:16.052555
2021-10-11T00:41:50
2021-10-11T00:41:50
415,621,279
0
0
null
null
null
null
UTF-8
Python
false
false
2,545
py
import scrapy from scrapy.crawler import CrawlerProcess import os import csv from csv import reader import re total_data = {} class SimilarWeb(scrapy.Spider): name = 'SW' user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' start_url...
[ "sushmakusumareddy@gmail.com" ]
sushmakusumareddy@gmail.com
96c83faea4fa8fcd498552cfd69510ae95d4500b
368c66467b78adf62da04cb0b8cedd2ef37bb127
/BOJ/Python/15684_사다리조작.py
ad8c21b700f5ed8bafd0f746b37d65e039941596
[]
no_license
DJHyun/Algorithm
c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5
fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a
refs/heads/master
2020-07-30T16:32:49.344329
2020-02-25T07:59:34
2020-02-25T07:59:34
210,289,983
0
0
null
null
null
null
UTF-8
Python
false
false
1,413
py
# baekjoon source = "https://www.acmicpc.net/problem/15684" def check(x, y): if x < 0 or x > h : return False if y < 0 or y > n - 1: return False return True def make_ladder(a,b): pass def ladder(a, b): q = [[a, b]] visited = [[0] * n for _ in range(h +1)] while q: t = q.pop(0) ...
[ "djestiny4444@naver.com" ]
djestiny4444@naver.com
a179f9c4dfc6c25e8e7b9b0ebef9df266971e387
4911cc3eaadd536a234dc9e7e563ad0df8e7ba3c
/src/bd2k/util/test/test_d32.py
aaf9711801ab83db106c1de7ff75ea68a9b4ab52
[]
no_license
hschmidt/bd2k-python-lib
56ca4747e2b2cc3baf98c5f0efa343229018ea77
a662f3c5564299a6c2d86233e6bee741e9e44c3d
refs/heads/master
2020-06-28T06:04:27.265541
2016-11-18T07:22:44
2016-11-18T07:22:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,516
py
# Copyright (c) 2014 Dominic Tarr # Copyright (c) 2015 Hannes Schmidt # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to deal in the Software without # restriction, including without limitation the rights to use, co...
[ "hannes@ucsc.edu" ]
hannes@ucsc.edu
c0f861945d032cb15056a8e6d63ad54fa9f7c2b0
c10f20abec372f81dbd6468ead208543f60940f1
/learning/5.Package/5.2.stat.py
de809c5d862f6396d89748097203c556a8f6ae77
[]
no_license
alenzhd/meachineLearning
64876e7a6c0b8b39a63a9eb586d306a3489b4447
1b66ce2f73b226548f07e45c8537b8286635a048
refs/heads/master
2021-08-24T10:55:52.056439
2017-12-09T10:26:37
2017-12-09T10:26:37
112,688,163
1
0
null
null
null
null
UTF-8
Python
false
false
2,425
py
#!/usr/bin/python # -*- coding:utf-8 -*- import numpy as np from scipy import stats import math import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm def calc_statistics(x): n = x.shape[0] # 样本个数 # 手动计算 m = 0 m2 = 0 m3 = 0 ...
[ "zhanghd@asiainfo-mixdata.com" ]
zhanghd@asiainfo-mixdata.com
3f7fb0c976574d21edfe92fca912a67f210f5bfa
9a9788a67925ba563f835fac204e76dc6cabb5bd
/Products/CMFDefault/browser/discussion/tests/test_discussion.py
ca429f37cfe1f2a3600665d5f7040b2a8ec0931b
[ "ZPL-2.1" ]
permissive
zopefoundation/Products.CMFDefault
d8f5fe6754d90abfaa37460ee2a3b0314167e34a
a176d9aac5a7e04725dbd0f7b76c6ac357062139
refs/heads/master
2023-06-21T20:54:29.719764
2021-02-05T17:36:40
2021-02-05T17:36:40
36,096,105
0
4
NOASSERTION
2021-02-04T15:08:40
2015-05-22T21:29:53
Python
UTF-8
Python
false
false
950
py
############################################################################## # # Copyright (c) 2008 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
[ "charlie.clark@clark-consulting.eu" ]
charlie.clark@clark-consulting.eu
e7a1e8397a95a893a5775826d1166c55a55ea203
993ef8924418866f932396a58e3ad0c2a940ddd3
/Production/python/PrivateSamples/EMJ_UL16_mMed-1200_mDark-20_kappa-0p14_aligned-down_cff.py
6a4f474763f324fda07dff8fdc7a866ec6a434be
[]
no_license
TreeMaker/TreeMaker
48d81f6c95a17828dbb599d29c15137cd6ef009a
15dd7fe9e9e6f97d9e52614c900c27d200a6c45f
refs/heads/Run2_UL
2023-07-07T15:04:56.672709
2023-07-03T16:43:17
2023-07-03T16:43:17
29,192,343
16
92
null
2023-07-03T16:43:28
2015-01-13T13:59:30
Python
UTF-8
Python
false
false
1,972
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ 'root://cmseos.fnal.gov///store/gr...
[ "enochnotsocool@gmail.com" ]
enochnotsocool@gmail.com
96343d7dbf5cef604566654a976175dd9694d385
aaed251a860f6606fa826ccc057d5bbb13800fe1
/swagger_client/models/jvm_info.py
ca9db7012cb553c3b0715ee388d53a85989b7044
[]
no_license
japaniel/insightvm-python
707f0bd16f20302e99c117f3e562cd5dbf25359e
9bf8ae98b6d61c1d5c4ab2d8c6c810a68e16bf3d
refs/heads/main
2023-02-02T04:01:36.204154
2020-12-16T01:21:20
2020-12-16T01:21:20
320,130,684
1
0
null
2020-12-16T01:21:21
2020-12-10T01:57:52
Python
UTF-8
Python
false
false
6,254
py
# coding: utf-8 """ InsightVM API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 3 Contact: support@rapid7.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re ...
[ "dredington@artemishealth.com" ]
dredington@artemishealth.com
5e0de4bfd6bde7090acbcccc3bf5523f1cca16b6
75ec986d34d5391d46d6469c513626f69f5d978d
/Incepator/listcomprehensions/listcomprehensions1.py
68f786bc3bef3a729cc3f9c8b4b0748696eef5ee
[]
no_license
CatrunaMarius/python
d9f8dc221458e4b65c3f801daf3b59aa2b946358
d063bffb4eafa56ac1e205c2d39fc893ab50e992
refs/heads/master
2020-04-24T05:23:22.756002
2020-01-06T11:56:12
2020-01-06T11:56:12
171,703,482
0
0
null
2019-02-20T16:12:39
2019-02-20T15:59:08
null
UTF-8
Python
false
false
181
py
#fillind with random numbers from random import randint low = int(input("Entre min: ")) high = int(input("Entre max: ")) a= [randint(low, high) for i in range(10)] print(a)
[ "noreply@github.com" ]
CatrunaMarius.noreply@github.com
f039e27d9ed5f302d3c0eadb99c82005051d3598
66c9ce87b3462ec49caa8cd5286ffccc0e6f26ee
/dag.py
b415d17786098c013d11d9ce2e1e0304774e8779
[ "MIT" ]
permissive
kendricktan/dpim
e0b839f8ce9e65c48b020819b5cd96630ec66789
0b8c95f625c3b136f3b938ea7663c90bcb73c5e4
refs/heads/master
2020-03-12T03:25:16.904858
2018-04-21T08:43:45
2018-04-21T08:43:45
130,424,055
3
0
null
null
null
null
UTF-8
Python
false
false
5,979
py
import hashlib import crypto from collections import namedtuple MIN_WORK = '000' # directed acyclic graph primitives # OpenTx # params: # account => which blockchain account you trying to open # hash => hash of the opentx # work => work done to get the 'valid' txid (starts with X amount of zeros) OpenTx = namedtupl...
[ "kendricktan0814@gmail.com" ]
kendricktan0814@gmail.com
716ca38c7a15e1e3551f77c15814d1f2c1cf5fd2
caed98915a93639e0a56b8296c16e96c7d9a15ab
/Array and Strings/Contains Duplicate.py
40c416f92193371c87b997873aa6ff57e39222cc
[]
no_license
PiyushChandra17/365-Days-Of-LeetCode
0647787ec7e8f1baf10b6bfc687bba06f635838c
7e9e9d146423ca2c5b1c6a3831f21dd85fa376d5
refs/heads/main
2023-02-13T10:41:36.110303
2021-01-17T11:58:51
2021-01-17T11:58:51
319,974,573
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
class Solution: def containsDuplicate(self, nums: List[int]) -> bool: return len(nums) > len(set(nums))
[ "noreply@github.com" ]
PiyushChandra17.noreply@github.com
7d339ebc3f20cf56e6b20c247266259ba6e349f3
861db97defcdadae5f10263b9a6d41e7d0b85131
/ex111/utilidadescev/moeda/__init__.py
bd0def54dfeb7a94e37473fc89d39d79370bb5b3
[]
no_license
gguilherme42/CursoEmVideo_Python
0483f092fe6563bc97a260ca07c2d4f1f882ac61
54eec56e98ae71dbb2ba02eb6904cd236a42be70
refs/heads/master
2021-01-06T15:15:25.194038
2020-04-27T22:19:42
2020-04-27T22:19:42
241,374,850
4
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
''' Exercício 110: Crie um pacote chamado utilidadezCeV que tenha dois módulos internos chamados moeda e dado. Transfira todas as funções utilizadas nos desafios 107, 108 e 109 para o primeiro pacote e mantenha tudo funcionando. ''' def moeda(n=0, moeda='R$'): return f'{moeda}{n:.2f}'.replace('.'...
[ "anoobs@tutamail.com" ]
anoobs@tutamail.com
1ab177bf9094897a7f5e1adc529942f3e0d1ed73
ccfe4e0bb18b46b4dd5ce4503ae54b1eaae3bba5
/scripts/queue_splitter.py
3e43004ca4b1cfebde60515da52ec0887e608299
[ "ISC" ]
permissive
dimitri/skytools
5cb67f5f581ab16acd8b84d78ba5cc9e05b9cb56
37ec8fc09ba897b02a1ca871055eb69a00deceae
refs/heads/master
2021-01-15T18:05:21.396894
2011-10-17T15:06:18
2011-10-17T15:06:18
1,082,431
2
1
null
null
null
null
UTF-8
Python
false
false
1,438
py
#! /usr/bin/env python """Puts events into queue specified by field from 'queue_field' config parameter. Config parameters:: ## Parameters for queue_splitter # database locations src_db = dbname=sourcedb_test dst_db = dbname=destdb_test # event fields from where target qu...
[ "markokr@gmail.com" ]
markokr@gmail.com
1d42b34d4e6c6c75a0456bceecd8e91cee3bddd9
d17a8870ff8ac77b82d0d37e20c85b23aa29ca74
/lite/tests/unittest_py/op/test_split_op.py
fed2f35985a15d60758a08054cc66d10dbd122ef
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle-Lite
4ab49144073451d38da6f085a8c56822caecd5b2
e241420f813bd91f5164f0d9ee0bc44166c0a172
refs/heads/develop
2023-09-02T05:28:14.017104
2023-09-01T10:32:39
2023-09-01T10:32:39
104,208,128
2,545
1,041
Apache-2.0
2023-09-12T06:46:10
2017-09-20T11:41:42
C++
UTF-8
Python
false
false
9,754
py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
7c382b65690bd0980fec8ae8ef8a10b026cdc09a
098af073963b07bbf57156c7137fa874fed53e08
/PCApp/appset/appset/modules/lunar/algorithm.py
09dbc53183fc12743d2e50f1cec418324f2c09f8
[]
no_license
mornhuang/openprj
3917e9b9d4356ace62e23d8ec39c4e1960ac4a53
834f323c72c6c158d9eb9ebad439e6c7ed0dd297
refs/heads/master
2021-01-20T06:57:41.636542
2014-01-23T12:33:41
2014-01-23T12:33:41
16,172,121
2
0
null
null
null
null
UTF-8
Python
false
false
19,996
py
#!usr/bin/env python #-*- coding:utf-8 -*- """ Date: 2013-11-24 18:21 Algorithm for convert solar date to lunar date. """ import math import calendar _BEGINNING_YEAR = -849 # 记录从公元前850年开始 _MAX_YEAR = 2100 # 记录的最大年份 # 每个字符为一年的闰月数,起于-849年 _YEAR_LEAP = '0c0080050010a0070030c0080050010a0070030c...
[ "Morn.Huang@gmail.com" ]
Morn.Huang@gmail.com
3d8f5d713d82e1349cb2ac1a43f58dec0dd32a96
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/app/plugin/core/analysis/AnalysisTask.pyi
2450f5f4a1e96ac652add615aed51765563f62a3
[ "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
1,214
pyi
import ghidra.framework.cmd import ghidra.framework.model import ghidra.util.task import java.lang class AnalysisTask(ghidra.framework.cmd.BackgroundCommand): def __init__(self, __a0: ghidra.app.plugin.core.analysis.AnalysisScheduler, __a1: ghidra.app.util.importer.MessageLog): ... @overload def ap...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
84e01bd5afe8578563e994e94102bc3484de4101
61f921e1ee1d2461ba420ef33b854a53f2169c6f
/tests/test_designer.py
db1e8f9269f74adb0a3615adadb84e9a73b768fe
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jsheppard95/typhon
420ef80b8568dec76bb0551301354144d9bf18ea
072e3cd821068f7f148d9ed7bffe58abc5a4d7d4
refs/heads/master
2020-04-18T09:48:18.368334
2019-01-23T21:44:21
2019-01-23T21:44:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
from typhon.designer import TyphonSignalPanelPlugin def test_typhon_panel_plugin_smoke(): tpp = TyphonSignalPanelPlugin()
[ "trendahl@slac.stanford.edu" ]
trendahl@slac.stanford.edu
2327f182abd9ddab4db6d24bdc1284e162f57a56
8dae5a0fa4efcb3cdef596b58f0ebfcd7b73e315
/skidl/__init__.py
7ef3364ad1afd33243b357d244c0b49270544f98
[ "MIT" ]
permissive
andrewjaykeller/skidl
94c790b9ffaf3c6948b38569e890d29cfff73b12
89cb53dc142c51c620223a14164b158407685505
refs/heads/master
2020-05-17T21:50:03.570986
2019-04-19T19:55:39
2019-04-19T19:55:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
701
py
# -*- coding: utf-8 -*- """SKiDL: A Python-Based Schematic Design Language This module extends Python with the ability to design electronic circuits. It provides classes for working with: * Electronic parts (``Part``), * Collections of part terminals (``Pin``) connected via wires (``Net``), and * Groups of related n...
[ "devb@xess.com" ]
devb@xess.com
cf80ca5edffa2b7ae75c87fed73d72279668bf58
8b926cf341d6294deac60949e19716a1bccf80e3
/day3/functions/10.py
0fd509940291d6ab4dc6bc2c350e549de0843374
[]
no_license
shobhit-nigam/qberry
dc041ecb7468ef04545c761636cb605660105f8e
54d8988ddf9c1301174b23c9c02c3b3b9b3473c0
refs/heads/main
2023-08-07T02:39:19.426236
2021-10-07T12:53:00
2021-10-07T12:53:00
413,307,799
2
0
null
null
null
null
UTF-8
Python
false
false
210
py
def funca (la=55, lb=77, lc=66): return la+lb, la+lc, "hey", [la, lb, lc] u, v, w, x = funca(100, 22, 10) print("u =", u) print("v =", v) print("w =", w) print("x =", x) # error u, v = funca(100, 22, 10)
[ "noreply@github.com" ]
shobhit-nigam.noreply@github.com
36fd3ec3e343ef9210b2a247491bed58499851a0
9463d85666453fd8e57a0ce9e515e4765ae2b60a
/cwpoliticl/cwpoliticl/scraped_websites.py
1b5c36189affb30506c8ee8cbbc97f9b239d97d0
[ "MIT" ]
permissive
trujunzhang/djzhang-targets
dc6c3086553a5450fb239cc1cef5330a51a02e1f
c2e327acde9d51f0455e7243f17d93d74b579501
refs/heads/master
2021-01-09T20:52:31.258826
2016-07-16T13:18:53
2016-07-16T13:18:53
60,747,429
2
1
null
null
null
null
UTF-8
Python
false
false
3,909
py
from enum import Enum from cwpoliticl.extensions.dailyo_parser import DailyoParser from cwpoliticl.extensions.deccanchronicle_parser import DeccanchronicleParser from cwpoliticl.extensions.dnaindia_parser import DnaIndiaParser from cwpoliticl.extensions.firstpost_parser import FirstPostParser from cwpoliticl.extension...
[ "trujunzhang@gmail.com" ]
trujunzhang@gmail.com
65356e5dbd131f3cc166ec4c8ccf3afb28c990af
daa3498147304fe617b8b77a38bc96bb9a8f6d6c
/archs/core/wideresnet.py
75186cfbaa58b8ade7c484fc2bf077c0e9b12c14
[ "MIT" ]
permissive
gatheluck/archs
9a13050f0b217d8f24528d0e0743c63190fa3f0c
23adfd71ae3b1f73416c59e82af80698cb2e593e
refs/heads/master
2023-03-10T08:34:26.917271
2021-02-19T03:13:14
2021-02-19T03:13:14
333,693,669
0
0
MIT
2021-02-28T13:34:10
2021-01-28T08:27:24
Python
UTF-8
Python
false
false
5,584
py
import math from typing import Type, Union import torch from torch import nn from torch.nn import functional __all__ = ["wideresnet16", "wideresnet28", "wideresnet40"] class BasicBlock(nn.Module): def __init__( self, in_planes: int, out_planes: int, stride: int, droprate: float = 0.0 ) -> None: ...
[ "gatheluck+tech@gmail.com" ]
gatheluck+tech@gmail.com
75948801b21c5fbd376936925ab4134c3dfaedec
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02397/s703752111.py
c76263628dfd6c936ed83609679a4b2b18dfa38d
[]
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
190
py
for i in range(3000): a = input().split() x = int(a[0]) y = int(a[1]) if x + y == 0: break elif x < y: print(x,y) elif y < x: print(y,x) else: print(x,y)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7458d7f380e6667abd2fe6bb0b1909024baa0a30
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/40/usersdata/84/23549/submittedfiles/main.py
c42463e6d42fbe22f24ac4b3c428bb369aaa1b15
[]
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
291
py
# -*- coding: utf-8 -*- from __future__ import division import funcoes #COMECE AQUI m=input('digite o numero m de termos da formula de pi:') e=input('digite o epsilon para o calculo da razao aurea:') print('%.15f'%(funcoes.calcula_pi(m))) print('%.15f'%(funcoes.calcula_razao_aurea(m,e)))
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
cedd6424f3d86009eb50c26c71ae2df8dd7d90cd
c1fdff5522b65fbff697d5445ef018f5a4c4d39f
/src/profiles_project/profiles_api/urls.py
1570d40b697fc89f4ce5e8252b65c87fedc2fb79
[]
no_license
jimpalowski/2nd-REST
858f2ac4b38e59ec275cbcbb682a929bc8052a50
e7e51da345332b5a5f854076b46776677f2f7571
refs/heads/master
2021-04-26T23:53:44.496698
2018-03-05T06:44:51
2018-03-05T06:44:51
123,876,527
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
from django.conf.urls import url from django.conf.urls import include from rest_framework.routers import DefaultRouter from . import views router = DefaultRouter() router.register('hello-viewset', views.HelloViewSet, base_name='hello-viewset') router.register('profile', views.UserProfileViewSet) router.register('lo...
[ "palowskijim@gmail.com" ]
palowskijim@gmail.com
5a8205ea8bf4a13ab2b4978ff9aeb97f09467458
7b102f9c8f2e3f9240090d1d67af50333a2ba98d
/gbd_2017/nonfatal_code/congenital/custom/submit_denominator.py
07ac5a4861e1421a1304e8ff82527b617fbb3681
[]
no_license
Nermin-Ghith/ihme-modeling
9c8ec56b249cb0c417361102724fef1e6e0bcebd
746ea5fb76a9c049c37a8c15aa089c041a90a6d5
refs/heads/main
2023-04-13T00:26:55.363986
2020-10-28T19:51:51
2020-10-28T19:51:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,040
py
from __future__ import division import subprocess import numpy as np import pandas as pd import os import shutil import glob from db_queries import get_location_metadata username = 'USERNAME' root = "FILEPATH" error_path = "FILEPATH" output_path = "FILEPATH" if not os.path.exists(error_path): os.makedirs(error_pa...
[ "nsidles@uw.edu" ]
nsidles@uw.edu
0061ccf1ef26e200b24c73b71bbf35962c0f8378
77d4d5a1881297dce3003560e04a2e39a97d4465
/code_chef/BFTT.py
cc455f05d204c719300571a84d14da9bfe603165
[]
no_license
gomsterX/competitive_programming
c34820032c24532d62325a379590a22fa812159a
72ac1fe61604e5a5e41f336bb40377fd7e4738d7
refs/heads/master
2023-07-19T21:28:16.205718
2021-09-02T14:18:44
2021-09-02T14:18:44
271,074,320
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
#Problem ID: BFTT #Problem Name: Balsa For The Three for _ in range(int(input())): n = int(input()) n+=1 while True: if(str(n).count('3') >=3): break n+=1 print(n)
[ "mohamedmoussaa7@gmail.com" ]
mohamedmoussaa7@gmail.com