blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
6552dea2d2667854202895aec4f0df5259855cbc
b0f6dbd92c368bd68fa1aafd67fdde9c323ab1be
/config.py
578b0ee4e0b9ed526e8784e67ae9a7c91b5a685d
[ "Apache-2.0" ]
permissive
niezhongliang/InsightFace-v3
ac62cff7d4aeb957fac9189ccca26976f9a045e9
e10cefec3bf0c465c92c42980ecbdb32eacc6dd5
refs/heads/master
2020-09-15T20:36:16.087481
2019-11-23T00:23:46
2019-11-23T00:23:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,130
py
import logging import os import torch device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # sets device for model and PyTorch tensors # Model parameters image_w = 112 image_h = 112 channel = 3 emb_size = 512 # Training parameters num_workers = 8 # for data-loading; right now, only 1 works with h...
[ "liuyang12@focusmedia.cn" ]
liuyang12@focusmedia.cn
f9460bdd828edd3892ba9506260ad360ad7bfbad
ef3a7391b0a5c5d8e276355e97cbe4de621d500c
/venv/Lib/site-packages/thinc/neural/train.py
1a0492b1e6ef38288d5f82838d0e13063fc3efe1
[ "MIT", "Apache-2.0" ]
permissive
countBMB/BenjiRepo
143f6da5d198ea6f06404b4559e1f4528b71b3eb
79d882263baaf2a11654ca67d2e5593074d36dfa
refs/heads/master
2022-12-11T07:37:04.807143
2019-12-25T11:26:29
2019-12-25T11:26:29
230,090,428
1
1
Apache-2.0
2022-12-08T03:21:09
2019-12-25T11:05:59
Python
UTF-8
Python
false
false
1,862
py
# coding: utf8 from __future__ import unicode_literals import numpy.random from tqdm import tqdm from .optimizers import Adam, linear_decay class Trainer(object): def __init__(self, model, **cfg): self.ops = model.ops self.model = model self.L2 = cfg.get("L2", 0.0) self.optimizer...
[ "bengmen92@gmail.com" ]
bengmen92@gmail.com
85a20a5685d762ddec4eeda36978c63036c74206
6a01a9287a4c23c7f11b7c5399cfb96bbe42eba8
/python/scripts/make_id_table_with_diff_expr.py
314e25e631430921796b32ad7d8d52c104d61aff
[ "MIT" ]
permissive
xguse/gmm-to-gff-transcripts-vs-snps
3c25bf2752aee76174d5dab92060fe7269caf99f
75337135ab8ff6d840af3cfccfe6404a06777a54
refs/heads/master
2021-01-19T01:50:33.473897
2016-08-02T20:31:18
2016-08-02T20:31:18
54,731,430
0
0
null
null
null
null
UTF-8
Python
false
false
4,455
py
"""Describe here what this rule accomplishes.""" import pandas as pd import numpy as np # Settings edger_results_labels = snakemake.params.edger_results_labels cufflinks_results_labels = snakemake.params.cufflinks_results_labels # input edger_results = snakemake.input.edger_results cufflinks_results = snakemake.inp...
[ "wadunn83@gmail.com" ]
wadunn83@gmail.com
f258f81afafb2186624f0028d7416f7aca37869d
3114430ce15c18281117459e26eea4b774e3998a
/day4/accounts/models.py
1fd9d1bf8a13f354846f792bd07b42ea810b5486
[ "MIT" ]
permissive
Joseamica/Easily-written-Django
c02e7333e84ca2257b7b8bfae3f6732898c5000a
0b746638751702c453db9490fe29ef6d34e4a3bc
refs/heads/master
2021-05-27T20:25:41.341149
2014-05-25T08:25:53
2014-05-25T08:25:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
from django.db import models from django.contrib.auth.models import User import hashlib # Create your models here. class Account(models.Model): user = models.OneToOneField(User) def gravatar_url(self): return "http://www.gravatar.com/avatar/%s?s=50" % hashlib.md5(self.user.email).hexdigest() def ...
[ "carpedm20@gmail.com" ]
carpedm20@gmail.com
538fc3e6a7b554c75a45025f802bf9fb341dae19
d6e287bbba11be4906e599d1362c9ef89c4fb9de
/modules/utils/datasets/__init__.py
53671ef9604559f6da0848293411281007d9f83b
[ "MIT" ]
permissive
bityangke/WSDDN.pytorch-1
67d52f158238f2d5b234ddefeb7f05f06bf6b123
9a67323c80566cacc762c68021824aa80a82c524
refs/heads/master
2022-11-15T00:22:44.903418
2020-07-06T13:43:22
2020-07-06T13:43:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
'''import all''' from .Sampler import GroupSampler from .VOCDataset import VOCDataset from .Builder import buildDataloader '''define alll''' __all__ = ['GroupSampler', 'VOCDataset', 'buildDataloader']
[ "1159254961@qq.com" ]
1159254961@qq.com
826f60594002015e659cc80aca283bfe601d0b98
0c958692bb3abf99ecbd03bd75a605b202d4da5a
/CRAB/MuNu/synch/2014ocbr24/synchThree.py
0bc6084ab362fd99b029e74554cc6bfc9b96b5f1
[]
no_license
tmrhombus/UWAnalysis
a9ed18a7ba8726522c8d98fbdc018c77d80c5cc5
eb9e0794e1b847f36c660a55d3631176a39148e2
refs/heads/master
2021-01-23T20:46:41.578341
2017-05-01T08:26:57
2017-05-01T08:26:57
10,620,824
0
0
null
2014-10-21T11:21:16
2013-06-11T12:19:43
Python
UTF-8
Python
false
false
4,427
py
cut = 'C1_data_2014ocbr23_m12e10_smrGenNu_clnMu' #cut = 'C3_tt_2014ocbr23_m12e10_smrGenNu_clnMu' andreas_events = set([line.strip() for line in open('./comp/%s_and.txt'%(cut))]) jelenas_events = set([line.strip() for line in open('./comp/%s_jel.txt'%(cut))]) toms_events = set([line.strip() for line in open('./comp/%...
[ "tperry@cern.ch" ]
tperry@cern.ch
6d8ce22c751efd861956be268dafc8c2f00f3fbd
c0acf82a18b8e90cd38afedb02e45e53425a067e
/pyecharts/custom/overlap.py
e2cdd57622347e115a2fe03fcdc86c1ef34f05fd
[ "MIT" ]
permissive
caideyang/pyecharts
66b61d0400ea15b25ef7fb90f7305647343eea3a
c13f2fecece566359b2c881705bf96337c42ce40
refs/heads/master
2021-01-22T13:48:00.474761
2017-08-18T07:09:53
2017-08-18T07:09:53
100,685,801
1
0
null
2017-08-18T07:31:13
2017-08-18T07:31:13
null
UTF-8
Python
false
false
1,609
py
#!/usr/bin/env python # coding=utf-8 class Overlap(object): def __init__(self): self._chart = None def add(self, chart): """ :param chart: chart instance :return: """ if self._chart is None: self._chart = chart else: ...
[ "chenjiandongx@qq.com" ]
chenjiandongx@qq.com
003d9d838b7372a3284b30915aec63707830d821
ef20884169d10ec9ac4d1d3b77ee35245d248294
/practice/deep-learning-from-scratch-2/np_random_choice.py
9360dbb41512575e33d9d1d800f8a11e55fdeec2
[]
no_license
heaven324/Deeplearning
64016671879cdf1742eff6f374cfb640cfc708ae
a7a8d590fa13f53348f83f8c808538affbc7b3e8
refs/heads/master
2023-05-05T08:54:27.888155
2021-05-22T08:25:47
2021-05-22T08:25:47
188,010,607
1
0
null
null
null
null
UTF-8
Python
false
false
727
py
import numpy as np print(np.random.choice(10)) # 5 print(np.random.choice(10)) # 9 # words에서 하나만 무작위로 샘플링 words = ['you', 'say', 'goodbye', 'I', 'hello', '.'] print(np.random.choice(words)) # 5개만 무작위로 샘플링(중복 있음) print(np.random.choice(words, size = 5)) # 5개만 무작위로 샘플링(중복 없음) print(np.random.choice(words, size =...
[ "wjdtjdgh2005@gmail.com" ]
wjdtjdgh2005@gmail.com
778459e47142827e3629b6af6b3dbfc2ccc5d25e
ce990be34e8759efb96b890d9676da313fd2d9b4
/tests/python/contrib/test_ethosu/cascader/test_plan.py
ddc40b49ac8a8de119af6b9b19d208ef745f4899
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Zlib", "MIT", "Apache-2.0", "BSD-2-Clause" ]
permissive
tmoreau89/tvm
291c0b1beb13503e18b1e45f135aaf334660b68d
8136173a631bf6c7274d26285349225fcf6e495f
refs/heads/master
2022-11-23T08:36:24.853648
2022-11-21T07:36:57
2022-11-21T07:36:57
119,757,672
5
1
Apache-2.0
2019-03-22T23:06:53
2018-01-31T23:41:33
Python
UTF-8
Python
false
false
7,708
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
tmoreau89.noreply@github.com
b57aa04bb1157d20423de65671bee218d8715f6d
730b92e439dbb013950b8bbf417cfde1bb40f8b9
/Python/Add-Binary.py
8b8be13ae529418ef8672901ffeb760e078c1eb4
[]
no_license
yuede/Lintcode
fdbca5984c2860c8b532b5f4d99bce400b0b26d0
d40b7ca1c03af7005cc78b26b877a769ca0ab723
refs/heads/master
2021-01-13T04:14:32.754210
2015-08-22T13:15:54
2015-08-22T13:15:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
class Solution: # @param {string} a a number # @param {string} b a number # @return {string} the result def addBinary(self, a, b): # Write your code here pa = len(a) - 1 pb = len(b) - 1 s = "" d = 0 while pa >= 0 and pb >= 0: cur = d + int(a[pa...
[ "jiangyi0425@gmail.com" ]
jiangyi0425@gmail.com
97a5797d6b970d29dbea2c4c90e09131f13ca91c
e5efada3529d94875455c4230c8dabe27fb72a89
/apps/search/migrations/0015_advancedsearchpage_simplesearchpage.py
74a14dceeeef2ab60fb56655bb00ed68b2a72af6
[]
no_license
alexmon1989/uma
d8c321fb0ec9b1a9039b1c83aeaaff774f657416
5dea579d634eeb1c8103c21157299b33ca5590f0
refs/heads/master
2023-08-03T04:31:13.598577
2023-07-22T18:17:13
2023-07-22T18:17:13
154,835,498
0
0
null
2023-03-02T11:20:54
2018-10-26T13:02:12
Nunjucks
UTF-8
Python
false
false
1,712
py
# Generated by Django 2.1.3 on 2019-10-10 13:38 import ckeditor_uploader.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('search', '0014_auto_20190719_1155'), ] operations = [ migrations.CreateModel( name='AdvancedSear...
[ "alex.mon1989@gmail.com" ]
alex.mon1989@gmail.com
52980438ee437a5977680307d4b13bd673f3b1a3
6d7a67be5c2aa1bcebdcfd5bec855c0172c8f01f
/convert_weight.py
55566963e7439f9fb4e9649bdd289f5114337916
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "Apache-2.0" ]
permissive
JWHennessey/stylegan2-pytorch-1
19184e1713b9bcfce6404fb6d19478f1dbcc56ec
88852e3695d3ffd9281787690c3f8796dc1e225a
refs/heads/master
2020-12-11T17:17:04.082956
2020-01-14T18:44:39
2020-01-14T18:44:39
233,909,977
0
0
NOASSERTION
2020-01-14T18:37:33
2020-01-14T18:37:32
null
UTF-8
Python
false
false
6,849
py
import argparse import os import sys import pickle import math import torch import numpy as np from torchvision import utils from model import Generator, Discriminator def convert_modconv(vars, source_name, target_name, flip=False): weight = vars[source_name + '/weight'].value().eval() mod_weight = vars[sou...
[ "kim.seonghyeon@snu.ac.kr" ]
kim.seonghyeon@snu.ac.kr
782a5e2a11fe39696a75f0f5a033a5af024cc786
f8ffac4fa0dbe27316fa443a16df8a3f1f5cff05
/Python/Counting_Valleys.py
db3c7a3eda8be589ae74a986fadb83c8e44b2c00
[]
no_license
ankitniranjan/HackerrankSolutions
e27073f9837787a8af7a0157d95612028c07c974
e110c72d3b137cf4c5cef6e91f58a17452c54c08
refs/heads/master
2023-03-16T19:06:17.805307
2021-03-09T16:28:39
2021-03-09T16:28:39
292,994,949
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
import math import os import random import re import sys # Complete the countingValleys function below. def countingValleys(n, s): level=valley=0 for i in range(n): if(s[i]=='U'): level+=1 if(level==0): valley+=1 else: level-=1 return...
[ "noreply@github.com" ]
ankitniranjan.noreply@github.com
ab55393ddc0e46a0f229ce84b50466d0ac1cb266
65701888f7e09716b83ddbb965a50b7c62b0f287
/blocks/google/common_block.py
fb2ba923f68bc8aedfef5cc46a894ff664e758b9
[]
no_license
ColinKennedy/auto_docstring
6a4a27c16434cb6d94db435226758a09627d9252
dbca838630faf410a277069aedbecb82cfeedae9
refs/heads/master
2021-04-12T12:36:31.825008
2018-11-05T01:49:49
2018-11-05T01:49:49
89,107,892
1
0
null
null
null
null
UTF-8
Python
false
false
7,343
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # TODO : Just had an idea. Why not change the gross "if X.is_valid(obj): return X(obj) # into a single classmethod? That'd look way better and potentially be # easier to loop over # '''The classes and functions needed to parse the types of all astroid nodes. ...
[ "colinvfx@gmail.com" ]
colinvfx@gmail.com
9b5f678ee01f74948e3abe78205622ca733d1def
f6d96e9505103428402ea9772fdd0b48c4dff7e9
/tests/test_models/test_place.py
4bd8e6e2e665353886e8de7c111a98acd68c7add
[]
no_license
KarenCampo777/AirBnB_clone
8271a2a7f75c01ea875b9232a939f1f58f484705
95051e3c7c05837b89966caae55bb54eef81c95f
refs/heads/master
2023-03-14T03:41:18.367359
2021-02-24T22:32:17
2021-02-24T22:32:17
276,201,869
1
1
null
null
null
null
UTF-8
Python
false
false
2,527
py
#!/usr/bin/python3 """ Test module for place module """ from models.place import Place import models import unittest import os import datetime class TestPlace(unittest.TestCase): """ Testing an Place instance """ def setUp(self): """ Setting up the test instance """ self.my_...
[ "andresbaymon@gmail.com" ]
andresbaymon@gmail.com
ada10adc0bef6aee3f66cc6505c04af63ade6437
ca2818572d17285210792694ba1f07c99e11d9ad
/setup.py
209a4bd93203208084c183cf32cece8f76ddf3bd
[ "Apache-2.0" ]
permissive
tomzhang/codesnap
cc335e8a63af70ed0121b222eb4fc2e35841b0b0
04e11176888243052c46a6a04a1ba63a8f80d684
refs/heads/master
2022-11-29T16:23:05.625385
2020-08-09T07:11:58
2020-08-09T07:11:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
import setuptools from distutils.core import Extension with open("README.md") as f: long_description = f.read() setuptools.setup( name="codesnap", version="0.0.4", author="Tian Gao", author_email="gaogaotiantian@hotmail.com", description="A profiling tool that can visualize python code in flam...
[ "gaogaotiantian@hotmail.com" ]
gaogaotiantian@hotmail.com
33bada0a6ebc9c86ad48aa12cb5fff42acd3588a
3b43cf4cfc666798ebe85ed1db8858034b13d45c
/tests/universal_functions_tests/power_tests/normal.py
dab58c185239f89bab51ee55c80dbe61e5d4326a
[ "Apache-2.0" ]
permissive
Pandinosaurus/legate.numpy
5428b80a0a53ab882cd74b5dbf5fd86c7ee82199
896f4fd9b32db445da6cdabf7b78d523fca96936
refs/heads/master
2023-06-27T04:33:52.982601
2021-07-01T21:39:52
2021-07-01T21:39:52
358,820,941
0
0
Apache-2.0
2021-08-01T02:57:57
2021-04-17T08:06:05
C++
UTF-8
Python
false
false
1,000
py
# Copyright 2021 NVIDIA Corporation # # 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 wr...
[ "wonchanl@nvidia.com" ]
wonchanl@nvidia.com
8a4209560e01a9bb2625b02445afa69dcf3b28fc
e7ff2f9e21a94f2956b8c79f268dc6d45b41237b
/Frontend/node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi
b5962c025c83982c05fecf7c1819e71e4893c18a
[ "MIT" ]
permissive
vipul-07/MERN-Project
fcb4af686557b99b802404e8622905781e89bbc3
c0bdd3b5dfc73b2657b8563d069360e11466714a
refs/heads/master
2023-02-14T15:42:38.653627
2021-01-10T05:35:02
2021-01-10T05:35:02
317,460,195
0
0
null
null
null
null
UTF-8
Python
false
false
5,709
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "build_v8_with_gn": "false", "coverage": "false", "dcheck_al...
[ "apple@Apples-MacBook-Pro.local" ]
apple@Apples-MacBook-Pro.local
f32cc09e9b5e4191dae2fb825a128f8ca6aa38c6
2e2a02ec8323982975ace3d249b22a42d8b97a1f
/skipper.py
11171dc6ca97629b3d735b09f2921f679e80ed68
[]
no_license
datagovua/os-budget-ukraine
4e8c6d0373aead42890349befbd69bf8e8fef0a1
3a45f89c3872c9b9b45fb1206da445989b37b335
refs/heads/master
2021-01-13T02:49:03.608617
2016-12-22T20:59:14
2016-12-23T01:14:22
77,156,721
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
import logging from datapackage_pipelines.wrapper import ingest, spew _, datapackage, resource_iterator = ingest() def intTryParse(value): try: int(value) return True except ValueError: return False def process(res): for row in res: if intTryParse(row['1.0']): yield row ...
[ "vanuan@gmail.com" ]
vanuan@gmail.com
b0258289543572c3d2fd2b3d83991eb4e2d9f4dc
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/orchs/svcsencap.py
83b1a538fc7c72069845b02465a56b59e320b8da
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
8,108
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
80a7585e86a4e8633b65ccb5495c63da103934b7
8bbeb7b5721a9dbf40caa47a96e6961ceabb0128
/python3/216.Combination Sum III(组合总和 III).py
4c2a30d0cd8dad2c5c465ba3a4dfdb989f691e11
[ "MIT" ]
permissive
lishulongVI/leetcode
bb5b75642f69dfaec0c2ee3e06369c715125b1ba
6731e128be0fd3c0bdfe885c1a409ac54b929597
refs/heads/master
2020-03-23T22:17:40.335970
2018-07-23T14:46:06
2018-07-23T14:46:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,388
py
""" <div> <p>Find all possible combinations of <i><b>k</b></i> numbers that add up to a number <i><b>n</b></i>, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers.</p> <p><strong>Note:</strong></p> <ul> <li>All numbers will be positive integers.</li> <li>The solut...
[ "lishulong@wecash.net" ]
lishulong@wecash.net
c5daf96e1ec9ac90dc1db252619f073fb6d4df6d
179a0f995f5a3eb7a6005f8e96498ef21b2bf166
/docs/conf.py
45ccdf6d81b9baf63f859bf4fc96836c47707904
[ "MIT" ]
permissive
VB6Hobbyst7/pycatia
845052a4584318bf0cf0861512203ddd337a7bca
cff309fe2b4802ff2b2c5c984f8064747f81065d
refs/heads/master
2023-04-14T20:28:51.427101
2021-04-27T11:03:42
2021-04-27T11:03:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,936
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
[ "evereux@gmail.com" ]
evereux@gmail.com
8c1605776199c122465a2aa10d3dade49beec409
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02748/s229745856.py
07e6ff9b4f694f31ed7e0dfb26750d3f2b624a60
[]
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
232
py
_, _, M = map(int, input().split()) A = list(map(int, input().split())) B = list(map(int, input().split())) xyc = [tuple(map(int, input().split())) for i in range(M)] print(min([min(A)+min(B)]+[A[x-1]+B[y-1]-c for x, y, c in xyc]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
572938151b792f0f6e8e2bb10d5c6bd6a452af48
e5504d8c4880993b82d5583a11c5cc4623e0eac2
/Arrays/loopInCircularArray__IMP.py
768b8bdc06fdc4ba7a36f6287179bf3b4b92d756
[]
no_license
noorulameenkm/DataStructuresAlgorithms
e5f87f426fc444d18f830e48569d2a7a50f5d7e0
7c3bb89326d2898f9e98590ceb8ee5fd7b3196f0
refs/heads/master
2023-06-08T19:29:42.507761
2023-05-28T16:20:19
2023-05-28T16:20:19
219,270,731
2
0
null
null
null
null
UTF-8
Python
false
false
2,536
py
def circular_array_loop_exists(arr): # TODO: Write your code here for i in range(len(arr)): slow = fast = i is_forward = arr[i] >= 0 # if slow or fast becomes '-1' this means we can't find cycle for this number while True: # move one step for slow pointer slow = get_next_index(arr, is_f...
[ "noorul.km@people10.com" ]
noorul.km@people10.com
3aefb338c74473c31e9b8b9f5b57d93c9d53d0e5
5f957add3e3f7a1885d4f1b106de72e93c8fcb1a
/ExerciciosPython/ex072.py
a2215342cdcfa208efd442734fd5f94405993530
[ "MIT" ]
permissive
mpatrickaires/curso-python
6e32cf785a3bc0076bb3ea24cd6d896604f4e774
aba023648527d53bfe18833b91210a7e528a84d7
refs/heads/main
2022-12-27T00:57:07.467940
2020-10-14T00:48:09
2020-10-14T00:48:09
302,203,176
1
0
null
null
null
null
UTF-8
Python
false
false
698
py
extenso = ('zero', 'um', 'dois', 'três', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez', 'onze', 'doze', 'treze', 'catorze', 'quinze', 'dezesseis', 'dezessete', 'dezoito', 'dezenove', 'vinte') while True: numero = int(input('Digite um número entre 0 e 20: ')) while numero < 0 or numero > 2...
[ "mpatrickaires@gmail.com" ]
mpatrickaires@gmail.com
1114a68d8b2e5c4fd05992b6c8ee4ca498cc92af
755e4e6e966433fe887f0f28f14916696b1588d7
/code/exceptions/exceptions.py
7e62995995ecbc57b12ce62c9ad0de8d73a94b9e
[]
no_license
phildue/FingerspellingRecognition
f18518a6e2e29b769d131e5b54846f00213f3ff1
1b5236142734d7b50f0f4161ecc533b7d10347b8
refs/heads/master
2021-03-24T10:40:24.507766
2017-07-03T09:33:09
2017-07-03T09:33:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
class NotTrained(Exception): pass class NoRoiFound(Exception): pass class NoContoursFound(Exception): pass class DescriptorFailed(Exception): pass
[ "phild@protonmail.com" ]
phild@protonmail.com
d1684f57fb28491ecde85c741f45fcd4e4659cf8
ed9e4027cbd76fbac19598163b9673628cb07eea
/anjia/asgi.py
372aac7872de8b88fd3e438e294b71fb8dafce32
[ "BSD-2-Clause" ]
permissive
ankiwoong/python_kindergarten
3a1f9a486a32866b5f37ba4673dfc2135a85eec0
43b1e15969f0d35073e2f7fb1286d8c094fd80a8
refs/heads/master
2022-09-01T08:11:27.374802
2020-05-27T08:45:14
2020-05-27T08:45:14
258,760,014
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
""" ASGI config for anjia project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTING...
[ "ankiwoong@gmail.com" ]
ankiwoong@gmail.com
6a50f6dc840ad5ee463050db663639df9a8ea7dd
e8b12e314782bf68347838599c8168e4a8019373
/CompareAlternatives.py
0d80231eb7ed1c3ac5094ee2f446c2fa5eed2155
[]
no_license
HPM573/Lab_ParallelProcessing
0ce7e4b615afe9e2e2a281f79684e9067003aa1b
f2e6401f4a5dc057a150914653079c0284c92b4b
refs/heads/main
2023-05-12T06:03:15.275404
2023-05-02T13:58:18
2023-05-02T13:58:18
180,822,018
0
0
null
null
null
null
UTF-8
Python
false
false
1,908
py
import EconEvalInputData as D import ProbabilisticSupport as Support import ProbilisticParamClasses as P from ParallelClasses import ParallelMultiCohort N_COHORTS = 200 # number of cohorts if __name__ == '__main__': # this line is needed to avoid errors that occur on Windows computers # create a mu...
[ "reza.yaesoubi@yale.edu" ]
reza.yaesoubi@yale.edu
48b211d3ffc2fe351f125460bfa2de347c5ad89c
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/frenetic-lang_pyretic/pyretic-master/pyretic/tests/test_mac_learner.py
19c0e4482c157a77029346d963681440c374e52d
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
2,387
py
#!/usr/bin/python from mininet.net import Mininet from mininet.node import RemoteController import os, shlex, subprocess, utils, time from utils import init ### Module Parameters def get_controller(): return 'pyretic.modules.mac_learner' def run_mininet(): # mn = Mininet() # s1 = mn.addSwitch('s1') # ...
[ "659338505@qq.com" ]
659338505@qq.com
dc4ee8e84412fbe9e26fa41aea2ba61f0a80d687
3b11dc40c7d772fffeb4d8683e5c9791c41f6454
/custom/clients/ecobank/ecobank_inventory/models/inventory_account.py
54cf03c640a891acbae5ed78bf433efd0cd027f2
[]
no_license
Jacky-odoo/Ecobank
b986352abac9416ab00008a4abaec2b1f1a1f262
5c501bd03a22421f47c76380004bf3d62292f79d
refs/heads/main
2023-03-09T18:10:45.058530
2021-02-25T14:11:12
2021-02-25T14:11:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,139
py
from odoo import api, fields, models from odoo.exceptions import ValidationError class InventoryUser(models.Model): _name = 'inventory.account' _rec_name = 'name_and_code' name = fields.Char(string='Name', required=True) code = fields.Char(string='Code', required=True) name_and_code = fields.Char...
[ "francisbnagura@gmail.com" ]
francisbnagura@gmail.com
101e6d98e6ea5327b9632183ef8eb52de0c552e9
ff5eea95bb0827cb086c32f4ec1c174b28e5b82d
/gammapy/background/tests/test_ring.py
047cad9a887193d1551fbd48446204c72bfc2e9e
[]
no_license
pflaumenmus/gammapy
4830cc5506a4052658f30077fa4e11d8c685ede0
7b5caf832c9950c886528ca107203ce9b83c7ebf
refs/heads/master
2021-01-15T23:27:46.521337
2013-09-25T14:23:35
2013-09-25T14:23:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import division import unittest import pytest import numpy as np from numpy.testing import assert_almost_equal from astropy.io import fits from ..maps import Maps from ..ring import RingBgMaker, outer_ring_radius try: import scipy ...
[ "Deil.Christoph@gmail.com" ]
Deil.Christoph@gmail.com
ff31f03d357f8dd02d1fef1e8193bb092e608bea
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02708/s465285057.py
b9e8c08a651992f50a225309892a6784c1a1572f
[]
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
257
py
from itertools import accumulate N,K = map(int,input().split()) acc = list(accumulate(range(N+1), lambda x,y:x+y)) ans = 0 mod = 10**9+7 for i in range(K, N+1): r = acc[N] - acc[N-i] l = acc[i-1] ans = (ans+r-l+1) % mod ans += 1 print(ans % mod)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
38eaeac29ebaa70dc88d888b36fe8d2e3156dd76
083b3f5b0d23c269c6a9ff1ea413e70fb799a497
/Leetcode Challenge/09_September_2020/Python/Week 5/2_First Missing Positive.py
5daf39e470ef89206f9440b17c1cc1717578a4f7
[]
no_license
HectorIGH/Competitive-Programming
b2e02dff140d9ebb06c646f7be0b53ea0afe90c9
467058c63e8a7e76805feebe3020bac4d20516a6
refs/heads/master
2022-12-31T18:32:46.824626
2020-10-16T20:38:33
2020-10-16T20:38:33
279,733,136
0
0
null
null
null
null
UTF-8
Python
false
false
1,454
py
#Given an unsorted integer array, find the smallest missing positive integer. # #Example 1: # #Input: [1,2,0] #Output: 3 #Example 2: # #Input: [3,4,-1,1] #Output: 2 #Example 3: # #Input: [7,8,9,11,12] #Output: 1 #Follow up: # #Your algorithm should run in O(n) time and uses constant extra space. # # Hide Hint #1 #T...
[ "HectorIGH@users.noreply.github.com" ]
HectorIGH@users.noreply.github.com
21cc1ba23778a7ba76d8b97034ae2a2236266abf
864acf7235e330123c3d68ed14cdd8bf8eed800b
/crm/accounts/models.py
be98a7f2e0926b1e0b0ec5e7fd8a599dfe9597b2
[]
no_license
wahid999/djangostuff
83f0ae53df5c53d192603d7aaf7ee72f8665c240
c102edfb13b8ba39930e44069122c5e545ef00ee
refs/heads/main
2023-07-04T20:02:32.550831
2021-08-13T16:07:20
2021-08-13T16:07:20
399,344,439
0
0
null
null
null
null
UTF-8
Python
false
false
1,705
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Customer(models.Model): user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE) name = models.CharField(max_length=200, null=True) phone = models.CharField(max_length=200, null=True)...
[ "wahidhussainturi@gmail.com" ]
wahidhussainturi@gmail.com
7e06dd17c6c8f3382921b07d5a29bfd3f67c4817
846e642fd9b01d3b500d3efba4790761039eec24
/code/smtp.py
978b10738307ac891f4680f1e0a033f0d1ac1892
[]
no_license
sachinyadav3496/Machine_Learning_Workshop
ffea23799c0f8477d9b5cc19b98e7d33a6364390
37f433631d1ae4e4db37c4baae6cdc3a7619423e
refs/heads/master
2020-11-24T11:49:45.936367
2020-05-01T08:38:10
2020-05-01T08:38:10
228,130,385
5
2
null
null
null
null
UTF-8
Python
false
false
2,080
py
import smtplib import getpass def Main(): print("\n\n*************************welcome************************\n") print("\nWelcom to Email Service \n") print("Enter your login details - \n") gmail_user = input("\n\nUserName : ") gmail_password = getpass.getpass("Password : ") ...
[ "sachinyadav3496@gmail.com" ]
sachinyadav3496@gmail.com
ce3be2e0574e1ed136c469dfa1ef2ac357ed40cc
dfb8d3c365bd2ea27cef9af5cb00b7be1dae978d
/train.py
b23821e543d1b2a73205ead7e410f2b5b7bac887
[ "MIT" ]
permissive
Windstudent/IRM-based-Speech-Enhancement-using-DNN
dd0cedfd4150fed69c55d33a744d0a6520fdf2d5
27a6f73b5b7fa91a4796e093e6ea3e30508a5c15
refs/heads/master
2020-07-05T15:34:52.712226
2019-05-07T14:36:40
2019-05-07T14:36:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,823
py
import argparse import json import os import numpy as np import torch from torch.utils.data import DataLoader from data.test_dataset import TestDataset from data.train_dataset import TrainDataset from trainer.trainer import Trainer from utils.utils import initialize_config def main(config, resume): ...
[ "haoxiangsnr@gmail.com" ]
haoxiangsnr@gmail.com
93e0d1af53bc2b9efd06b47d2a1c4276bdb0b0bd
5390d79dad71ad0d9ff9d0777435dcaf4aad16b3
/chapter_06/favorite_number.py
124b9763eeac8593df0e93e0c0e845aa9bc3e5dd
[]
no_license
JasperMi/python_learning
19770d79cce900d968cec76dac11e45a3df9c34c
8111d0d12e4608484864dddb597522c6c60b54e8
refs/heads/master
2020-11-26T08:57:02.983869
2020-03-11T10:14:55
2020-03-11T10:14:55
218,935,548
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
favorite_numbers = { 'bob': 2, 'sarah': 6, 'martin': 8, 'katy': 9, 'tom': 10 } print('bob' + "'s favorite number is " + str(favorite_numbers['bob']) + ".") print('sarah' + "'s favorite number is " + str(favorite_numbers['sarah']) + ".") print('martin' + "'s favorite number is " + str(favorite_numbe...
[ "darmi19@163.com" ]
darmi19@163.com
b1f2bc27194e8f706625493989d95c5335783f9f
fc58366ed416de97380df7040453c9990deb7faa
/daoliagent/services/arp.py
7d9cf1622fdcd08505553150ef2cdef052d75232
[ "Apache-2.0" ]
permissive
foruy/openflow-multiopenstack
eb51e37b2892074234ebdd5b501b24aa1f72fb86
74140b041ac25ed83898ff3998e8dcbed35572bb
refs/heads/master
2016-09-13T08:24:09.713883
2016-05-19T01:16:58
2016-05-19T01:16:58
58,977,485
1
0
null
null
null
null
UTF-8
Python
false
false
4,005
py
from oslo.config import cfg from ryu.lib.packet import arp from ryu.lib.packet import ethernet from ryu.lib.packet import packet from ryu.lib import addrconv from ryu.ofproto import ether from daoliagent.services.base import PacketBase from daoliagent.lib import SMAX from daoliagent.openstack.common import log as log...
[ "wenxiang.wang1204@gmail.com" ]
wenxiang.wang1204@gmail.com
0b2c7b6c78f2f20e685b99106e28b2dcfabe7a03
9d852841463c64f75da8a8579c32cea856d2073d
/leetcode/validate_binary_search_tree.py
4931cdb9a7da506dea78bd8a759a89b592284296
[]
no_license
LarsIndus/algorithms-DS
2d94a5ba3e17de7c8d9e7ac4ace8eb70bb2a7331
32a64a4522f8474ab63421b06e945f6e44a441e1
refs/heads/master
2023-04-26T00:13:06.026785
2021-05-20T18:55:12
2021-05-20T18:55:12
243,239,680
0
0
null
null
null
null
UTF-8
Python
false
false
2,476
py
""" Leetcode Problem 98: Validate Binary Search Tree (Medium) Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as follows: - The left subtree of a node contains only nodes with keys less than the node's key. - The right subtree of a node contains on...
[ "test@test.com" ]
test@test.com
c394f35d81a2eb6ac4c455dd44b7add384a8b18b
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/84/usersdata/203/57032/submittedfiles/lista1.py
4fe9d85ddd31f1891fa346e0bba2e39623b993ce
[]
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
360
py
# -*- coding: utf-8 -*- n=int(input('tamanho da lista: ')) l=[] somai=0 qi=0 somap=0 qp=0 for i in range (1,n+1,1): a=int(input('elemento da lista: ')) l.append(a) for i in range (1,len(lista),1): if l(i)%2==0: somap=somap+l(i) qp=qp+1 else: somai=somai+l(i) qi=qi+1 print...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9166a5025b83503317fc99cf5620f56acadc063c
35fb652b0b20e7352cacdc078e23464fad40ccf3
/web/controllers/food/food.py
ed79027f6fa2230bee2cb9150725d18254385a43
[]
no_license
xiaoheng14/flask_wx_order
52f8fe01a473855c22a43c2651b102c291dbde04
be3314fdb0266eecf4ca7f5a55b2ea24078857c9
refs/heads/master
2020-08-23T03:59:19.006943
2018-11-19T12:21:25
2018-11-19T12:21:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
615
py
# _*_ coding: utf-8 _*_ """ __author__ = 'lawtech' __date__ = '2018/10/27 3:14 PM' """ from flask import Blueprint from common.libs.helper import ops_render route_food = Blueprint('food_page', __name__) @route_food.route("/index") def index(): return ops_render("food/index.html") @route_food.route("/info") de...
[ "584563542@qq.com" ]
584563542@qq.com
52fa7f6ab35d271fd30dbc1f96ddcee4a2df32b5
e74c2e5b85b9af58a6f9b4b6eea160fb66f6bb08
/aula11.py
a14bb8b989d099d4f7350a32cb0c4b75eb76c49b
[]
no_license
Nokutomi/AulaPython
670cc27986aa3a12e528f5d1602929a524b632fc
1e97e4821b12a0ad0a4438d682c1e4d61a10f61d
refs/heads/master
2022-11-15T08:38:47.401055
2020-07-08T02:49:54
2020-07-08T02:49:54
275,640,239
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
lista = [1,10] arquivo = open('teste.txt', 'r') try: texto = arquivo.read() divisao = 10 / 0 # numero = lista[3] # x = a # print('Fechando arquivo') # arquivo.close() except ZeroDivisionError: print('Nao e possivel realizar uma divisao por zero') except ArithmeticError: print('Houve um ...
[ "you@example.com" ]
you@example.com
a02a2341ab021509e596e6ab801c9b00af24f937
988385035443e5d46d29d96b15179509fd1c782e
/addToArrayForm.py
ea09a01733d9a2d3d3b61c25a1837f7b7368545e
[]
no_license
mwoitek/leetcode-python3
c120ee1b1eb8e17f3a301026f25c643be9852953
eb9989d3768eba82275a57243c99796e74ccdd48
refs/heads/master
2022-12-28T21:19:51.215210
2020-10-18T06:17:27
2020-10-18T06:17:27
301,295,054
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
class Solution: def addToArrayForm(self, A: List[int], K: int) -> List[int]: A_str = "".join([str(num) for num in A]) A_int = int(A_str) ans = A_int + K ans_list = [int(char) for char in str(ans)] return ans_list
[ "woitek@usp.br" ]
woitek@usp.br
7091c8bb4d092cb28c4a6f0d1fe1a329abcb2805
40b20d7e5f4381a64bd264a562c4ae6d6721b01c
/14-it-generator/sentence_gen.py
a17c48f6811da8c5180ec412bacbf4618080cabf
[ "MIT" ]
permissive
KyrieCham/example-code
7d2f0d5901bf80b49dd6b1e9ae1c37c9cb6df7f5
3dd11744d1c0b1f00860e985ee2a0761e73ef7e7
refs/heads/master
2020-04-18T00:56:06.384756
2019-01-22T19:27:43
2019-01-22T19:27:43
167,098,245
1
0
MIT
2019-01-23T01:52:48
2019-01-23T01:52:47
null
UTF-8
Python
false
false
446
py
""" Sentence: iterate over words using a generator function """ import re import reprlib RE_WORD = re.compile('\w+') class Sentence: def __init__(self, text): self.text = text self.words = RE_WORD.findall(text) def __repr__(self): return 'Sentence(%s)' % reprlib.repr(self.text) ...
[ "luciano@ramalho.org" ]
luciano@ramalho.org
c14cca36fd70f17c4adf7cf1050a549b485a5112
dd44e145ac547209f5f209bc9b1f09189bb8b5c7
/Python-OOP-July2021/04.Classes_and_objects-E/05.To-do-list/project/section.py
391f64c88e1e7f0db3acc9df9b8d20c2de06a156
[]
no_license
todorovventsi/Software-Engineering
e3c1be8f0f72c85619518bb914d2a4dbaac270f8
64ffa6c80b190e7c6f340aaf219986f769f175ab
refs/heads/master
2023-07-09T05:35:14.522958
2021-08-15T14:35:55
2021-08-15T14:35:55
336,056,643
2
1
null
null
null
null
UTF-8
Python
false
false
1,049
py
class Section: def __init__(self, name): self.name = name self.tasks = [] def add_task(self, new_task): if new_task not in self.tasks: self.tasks.append(new_task) return f"Task {new_task.details()} is added to the section" return f"Task is already in the ...
[ "todorov.ventsi@gmail.com" ]
todorov.ventsi@gmail.com
9999bf5d93fa20451f61973a2e0ae14307aded8d
4b1cf07275a8f2abf30943b975d443485ef897ff
/data_generator.py
3805e30c71100e78de5cec92ba0c561a77bb426d
[ "MIT" ]
permissive
gipsyblues/edge_ml_emotion_recognition
a0e1e0acc98d11f710542218b2603f72a8a93a4b
028e9a9264e7df5c48a047677b48f0c15e059e6c
refs/heads/master
2023-06-27T02:53:18.707806
2021-07-28T06:48:30
2021-07-28T06:48:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,108
py
import numpy as np import cv2 import os import imgaug as ia import logging from imgaug import augmenters as iaa from imgaug.augmentables.segmaps import SegmentationMapsOnImage from imgaug.augmentables.bbs import BoundingBox, BoundingBoxesOnImage def _create_augment_pipeline(): sometimes = lambda aug: iaa.Sometim...
[ "dmitrywat@gmail.com" ]
dmitrywat@gmail.com
ca9547928ab7a957dabd169f16fc201dc6d06efe
b83ff584bfcd9fce7a337ba1253287fc9afd03c7
/cmdline_fluency_countdown.py
c6564c0a2aa5dcf88e15805c147edba2570aebac
[]
no_license
houstonhunt/fluencycountdown
6166eaf625f6e348213dcd5be8045ee218159900
d555b83972e05d09e1caafca61ea465c4ca3770c
refs/heads/master
2021-01-23T23:12:17.392090
2015-05-23T18:48:24
2015-05-23T18:48:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,720
py
#!/usr/bin/python # cmdline_fluency_countdown.py import pickle # used to save user progress (currently supporting 1 primary user) import ConfigParser, os # used to parse language file def init(): state = 0 try: pickle.load(open("save.p", "rb")) print "SUCCESS: loaded save file!" state = 1 except: config...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
09db4be45d5d63793dcd85353daabc9d84d3ac5d
08ca7028e0488c420fff8c831e9d4fd3e32ee292
/models/wideresnet.py
59ba6496518eab9bc92f85bceb9a2459910e4762
[]
no_license
yogeshbalaji/Adversarial-training
0ee53fdbef2742788cbbc73ca592738347076fe2
3593c836f39c1313545fcc71e5ba8afa6f427326
refs/heads/master
2020-07-15T03:00:26.425582
2019-09-04T19:59:51
2019-09-04T19:59:51
205,464,494
12
4
null
null
null
null
UTF-8
Python
false
false
3,517
py
from collections import OrderedDict import torch from torch import nn import torch.nn.functional as F from utils import data_normalize def init_weight(*args): return nn.Parameter(nn.init.kaiming_normal_(torch.zeros(*args), mode='fan_out', nonlinearity='relu')) class Block(nn.Module): """ Pre-activated Re...
[ "yogesh22@ramawks95.umiacs.umd.edu" ]
yogesh22@ramawks95.umiacs.umd.edu
e34145873aede1b65f5e55265e1505cc6bde3391
387cf5f72ed6679a4d9e04bddd16998a190c4caf
/problems/programmers/lv3/pgs-67258-sweep-slow.py
6a3ef6ae150570c9680bfdc5e53635a2e6635517
[]
no_license
CodyBuilder-dev/Algorithm-Coding-Test
db4ee1e7565fbcef3140192225167eff42ad5c02
cca5c4ba8bc31679ab00aceccfd8d9d39c232f72
refs/heads/master
2021-07-24T00:34:41.888289
2021-07-21T14:29:00
2021-07-21T14:29:00
219,123,221
1
0
null
null
null
null
UTF-8
Python
false
false
1,347
py
""" 제목 :보석 쇼핑 아이디어 : """ def solution(gems): s = set(gems) hash = {} #interval_list = [] # 리스트에 넣고 저장 best_answer = [123456,456789] for i,gem in enumerate(gems): if gem not in hash: hash[gem] = 0 hash[gem] = i if len(hash) ==len(s): temp_answer = [mi...
[ "imspecial1@u.sogang.ac.kr" ]
imspecial1@u.sogang.ac.kr
c64f6276a76c1f9c5a452595cbcd25de501fd7f6
e65a448da4f82d6e7c95cfadc5e8dfd06ed05c62
/cinder/cinder/api/middleware/auth.py
cf898c9b07d780e57e877272a930772dd33360d5
[ "Apache-2.0" ]
permissive
bopopescu/devstack
7a9d11bcc37884f3686e7178ebc25c178a6da283
6b73b164af7e5895501f1ca5dafebbba90510846
refs/heads/master
2022-11-19T19:58:43.536574
2015-01-29T09:00:59
2015-01-29T09:00:59
282,101,378
0
0
null
2020-07-24T02:17:48
2020-07-24T02:17:47
null
UTF-8
Python
false
false
6,014
py
# Copyright 2010 OpenStack Foundation # 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 requ...
[ "swethapts@gmail.com" ]
swethapts@gmail.com
f6e400373186312a9fcf3e60bc466491e7ced87f
780b6cca690a213ac908b1cd5faef5366a18dc4e
/276_newbie_bite/save1_passed.py
7568b69b77be52f1d12ae46c2c3d5cec4cd7fba1
[]
no_license
katkaypettitt/pybites-all
899180a588e460b343c00529c6a742527e4ea1bc
391c07ecac0d92d5dc7c537bcf92eb6c1fdda896
refs/heads/main
2023-08-22T16:33:11.171732
2021-10-24T17:29:44
2021-10-24T17:29:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
# Hint: Don't forget the 4 leading spaces to # indicate your code is within the function. a = 10 b = 5 def multiply_numbers(a, b): return a * b def enter_name(): username = input("What is your name?") return username
[ "70788275+katrinaalaimo@users.noreply.github.com" ]
70788275+katrinaalaimo@users.noreply.github.com
9de698aabcd24e0d8e7b125ea53adbb5167b3d8b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02394/s366374910.py
34d6b2cc6782e5002623f9419f9f8a358a2dd94e
[]
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
142
py
w, h, x, y, r = map(int, input().split()) if 0 <= (x-r) and (x+r) <= w and 0 <= (y-r) and (y+r) <= h: print("Yes") else: print("No")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e2f80ae63c842ab915e70054164ea7ef16f417b2
15fb62305a2fa0146cc84b289642cc01a8407aab
/Python/119-pascalTriangle2.py
ca82b9b5ce299755fd88d42d79285542b566e463
[]
no_license
geniousisme/leetCode
ec9bc91864cbe7520b085bdab0db67539d3627bd
6e12d67e4ab2d197d588b65c1ddb1f9c52a7e047
refs/heads/master
2016-09-09T23:34:03.522079
2015-09-23T16:15:05
2015-09-23T16:15:05
32,052,408
1
0
null
null
null
null
UTF-8
Python
false
false
413
py
from math import factorial class Solution: # @param {integer} rowIndex # @return {integer[]} def getRow(self, rowIndex): res = [] f = factorial n = rowIndex for k in xrange(rowIndex + 1): res.append(f(n) / f(k) / f(n - k)) return res if __name__ ...
[ "chia-hao.hsu@aiesec.net" ]
chia-hao.hsu@aiesec.net
790f7806b7f537150ccb4a127bd799627afad0e4
1f8344813458f669bdf77059220290a3b2a3cdd0
/tutorials-docs/thinking-in-coroutines/8_run_in_default_executor.py
81a53d28f3690104d9512aac1b837e073a2f0b81
[]
no_license
gridl/asyncio-study-group
7c03e8640070ebe8d1103f27bc3c3da37a5a661f
1ba9cf90e21b5174518032d467e89526da219576
refs/heads/master
2020-07-02T07:03:12.364097
2017-12-26T20:55:09
2017-12-26T20:55:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
import time import datetime import asyncio def blocking_call(seconds): print(seconds, datetime.datetime.now()) time.sleep(seconds) if __name__ == '__main__': loop = asyncio.get_event_loop() loop.call_later(5, loop.stop) for i in range(1,4): #по умолчанию используется concurrent.futures.T...
[ "nataliya.samoylenko@gmail.com" ]
nataliya.samoylenko@gmail.com
8ba3ca416a5d385c1158274f46e71ad3750148eb
e7af30370e277b459e1c49edcc0562d5b5c32abc
/Learning_ScikitLearn/Model/Linear_Classification/LogisticRegression_Classification.py
68bb53cef0d25d1f7959af186211991c7beda251
[]
no_license
justgolikeme/My_MachineLearning
208ab766478662cf36ffa7f9202fed0ad6f0ad28
948a84684a2a6f1c9e613948ed246062468016bd
refs/heads/master
2022-05-13T05:02:48.488269
2020-01-03T07:27:50
2020-01-03T07:27:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,023
py
# -*- coding: utf-8 -*- # @Time : 2019/12/16 15:55 # @Author : Mr.Lin ''' 用于分类的线性模型 线性模型也广泛应用于分类问题。我们首先来看二分类。这时可以利用下面的公式进行 预测: ŷ = w[0] * x[0] + w[1] * x[1] + …+ w[p] * x[p] + b > 0 这个公式看起来与线性回归的公式非常相似,但我们没有返回特征的加权求和,而是为预 测设置了阈值(0)。如果函数值小于 0,我们就预测类别 -1;如果函数值大于 0,我们就 预测类别 +1。对于所有用于分类的线性模型,这个预测规则都是通用的。同样,有很多种 不同的方...
[ "2669093302@qq.com" ]
2669093302@qq.com
7ad47d35b8b6d618120876ea81cee10cd4498f0f
329b48089c64ebefe78d52f1c71c73bdadadd4b4
/ML/m02_3_xor.py
f054586220c6b7e9e2f5ec6da088dfde56b25a5d
[]
no_license
variablejun/keras__R
7f854570952ed97c48715047015786d873e512cb
9faf4814b46cda1ac0ddbf2a2f8236fa0394f144
refs/heads/main
2023-07-13T19:32:25.950500
2021-08-22T18:26:52
2021-08-22T18:26:52
398,870,548
1
0
null
null
null
null
UTF-8
Python
false
false
617
py
from sklearn.svm import LinearSVC import numpy as np from sklearn.metrics import accuracy_score #1 data x_data = [[0,0],[0,1],[1,0],[1,1]] y_data = [0,1,1,0] #2 model model = LinearSVC() #3 fit model.fit(x_data,y_data) #4 평가 y_predict = model.predict(x_data) print(x_data,' 의 예측값 : ',y_predict) results= model.s...
[ "crescendo0217@gmail.com" ]
crescendo0217@gmail.com
9d79f133ae46df0a2a814949bc56bb9b67709332
92754bb891a128687f3fbc48a312aded752b6bcd
/Algorithms/Python3.x/836-Rectangle_Overlap.py
109710852b3db1879f46f641e56714e64efbeca6
[]
no_license
daidai21/Leetcode
ddecaf0ffbc66604a464c3c9751f35f3abe5e7e5
eb726b3411ed11e2bd00fee02dc41b77f35f2632
refs/heads/master
2023-03-24T21:13:31.128127
2023-03-08T16:11:43
2023-03-08T16:11:43
167,968,602
8
3
null
null
null
null
UTF-8
Python
false
false
611
py
# Runtime: 32 ms, faster than 89.53% of Python3 online submissions for Rectangle Overlap. # Memory Usage: 13.9 MB, less than 8.33% of Python3 online submissions for Rectangle Overlap. class Solution: def isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool: return rec1[0] < rec2[2] and rec...
[ "daidai4269@aliyun.com" ]
daidai4269@aliyun.com
bfb211f64cb26ced576000456975b8ac4e62ba43
dab869acd10a3dc76e2a924e24b6a4dffe0a875f
/Laban/build/bdist.win32/winexe/temp/numpy.core.operand_flag_tests.py
abe53bfc427cda30a4fdef6d870c6ffe58b6c013
[]
no_license
ranBernstein/Laban
d82aff9b0483dd007e03a06e51f7d635f62ed05d
54c88afa9493deacbdd182904cc5d180ecb208b4
refs/heads/master
2021-01-23T13:17:51.777880
2017-02-14T09:02:54
2017-02-14T09:02:54
25,508,010
3
1
null
2017-02-14T09:02:55
2014-10-21T07:16:01
Tcl
UTF-8
Python
false
false
379
py
def __load(): import imp, os, sys try: dirname = os.path.dirname(__loader__.archive) except NameError: dirname = sys.prefix path = os.path.join(dirname, 'numpy.core.operand_flag_tests.pyd') #print "py2exe extension module", __name__, "->", path mod = imp.load_dynamic(__...
[ "bernstein.ran@gmail.com" ]
bernstein.ran@gmail.com
cde96ba8bed0f8a27d9a27fc09c79f90b37b0093
4781d9293b59a5072647bb179195b143c60621bd
/백준/3190_뱀/3190_뱀.py
466985fd6c7408c5d7d548c56da8c4c1f93da5da
[]
no_license
chriskwon96/Algorithm_codes
bf98131f66ca9c091fe63db68b220527800069c9
edb7b803370e87493dad4a38ee858bb7bb3fd31d
refs/heads/master
2023-08-15T18:48:26.809864
2021-10-12T13:43:21
2021-10-12T13:43:21
387,803,476
0
0
null
null
null
null
UTF-8
Python
false
false
1,488
py
di = [0, -1, 0, +1] dj = [+1, 0, -1, 0] N = int(input()) matrix = [[0]*N for _ in range(N)] K = int(input()) for _ in range(K): #사과위치 1로 지정 i, j = map(int, input().split()) matrix[i-1][j-1] = 1 L = int(input()) q = [(0,0)] #뱀 몸 X1, k, cnt = 0, 0, 0 flag = 1 for _ in range(L): X, C = input().split() fo...
[ "chriskwon96@naver.com" ]
chriskwon96@naver.com
a7556063e49aff2dda7e2b3cc964e43037048d34
6cb1d8f1416af7b7c5c83ab35cb6928ea9955aff
/ch07/rnnlm_gen.py
a30f1107227f403e0e15f919e3f9b09e39193409
[]
no_license
lee-saint/practice-nlp
f68ccc3140f725f3edcd7048c324b847583b7f20
19003fcd5f55f4f110417a3950a32bb5fba1850c
refs/heads/master
2020-12-01T20:05:15.014495
2020-01-21T09:22:18
2020-01-21T09:22:18
230,750,152
0
0
null
null
null
null
UTF-8
Python
false
false
2,799
py
import numpy as np from common.functions import softmax from ch06.RNNLM import Rnnlm from ch06.better_rnnlm import BetterRnnlm from dataset import ptb class RnnlmGen(Rnnlm): def generate(self, start_id, skip_ids=None, sample_size=100): word_ids = [start_id] x = start_id while len(word_ids...
[ "plutorian131@gmail.com" ]
plutorian131@gmail.com
f45d517a51288fdf1af81238bef427c053fc9fbe
f47863b3a595cbe7ec1c02040e7214481e4f078a
/plugins/scan/libsys/1530.py
7d4393ead3d8ab208722872e6653f54514040048
[]
no_license
gobiggo/0bscan
fe020b8f6f325292bda2b1fec25e3c49a431f373
281cf7c5c2181907e6863adde27bd3977b4a3474
refs/heads/master
2020-04-10T20:33:55.008835
2018-11-17T10:05:41
2018-11-17T10:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
#!/usr/bin/python #-*- encoding:utf-8 -*- # title:汇文libsys图书管理系统敏感信息泄露 #http://www.wooyun.org/bugs/wooyun-2010-0125785 def assign(service, arg): if service == "libsys": return True, arg def audit(arg): payload = 'include/config.properties' url = arg + payload code, head,res, errcode, _ = curl...
[ "zer0i3@aliyun.com" ]
zer0i3@aliyun.com
3a0aa4f6f46d50f9055d2000d1b39488f5c19f87
b341a8d120737297aa8fd394a23633dac9b5ccda
/accounts/migrations/0007_auto_20210122_1129.py
c7476e71ff6f0746f30db617c468bd59bbe23d1c
[]
no_license
Minari766/disney_side_stories
16d97cb02bf00aa5439d59f753abb9a4706a30aa
aa2d88b1b0fdd87a27f41318bd3ec7352229b6ff
refs/heads/main
2023-08-15T07:03:16.922579
2021-10-03T07:47:22
2021-10-03T07:47:22
306,496,250
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
# Generated by Django 2.2 on 2021-01-22 02:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0006_auto_20210122_0127'), ] operations = [ migrations.AlterField( model_name='customuser', name='icon', ...
[ "mina3.ryu0728@gmail.com" ]
mina3.ryu0728@gmail.com
436645c364f840999119d1e57184125dbceeca14
1f006f0c7871fcde10986c4f5cec916f545afc9f
/apps/ice/plugins/oxml/oxml_wordNumbering_test.py
9d73299a89601ac0dd3e3d023fcdc93ea3e7a208
[]
no_license
ptsefton/integrated-content-environment
248b8cd29b29e8989ec1a154dd373814742a38c1
c1d6b5a1bea3df4dde10cb582fb0da361dd747bc
refs/heads/master
2021-01-10T04:46:09.319989
2011-05-05T01:42:52
2011-05-05T01:42:52
36,273,470
0
0
null
null
null
null
UTF-8
Python
false
false
3,070
py
#!/usr/bin/env python # # Copyright (C) 2010 Distance and e-Learning Centre, # University of Southern Queensland # # 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 ...
[ "raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05" ]
raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05
9330cd3f6095c574c0fa566a8d69be0fec19b834
a62a87ad976e3d35ea7879671190faf950ebaf3b
/scrapys/t.py
47ae7f7a675a471d9db25b8bb6a431b20fa33406
[]
no_license
YangXiaoo/Django-web
144c8c1800d2a67bf8d1d203210aa351d31e8fb3
97903f309234fd1421a19a52a083f214172d6c79
refs/heads/master
2020-03-24T11:29:20.296017
2019-01-20T14:54:16
2019-01-20T14:54:16
142,687,045
0
0
null
null
null
null
UTF-8
Python
false
false
3,264
py
# -*- coding: utf-8 -*- import re import urllib2 import pandas as pd #获取原码 def get_content(page): headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36', 'Accept-Language': 'zh-CN,zh;q=0.8'} url ='http://search.51job....
[ "33798487+YangXiaoo@users.noreply.github.com" ]
33798487+YangXiaoo@users.noreply.github.com
91cf1bbafb30679fda22289ccab052d7605c72e6
503d2f8f5f5f547acb82f7299d86886691966ca5
/typical90/typical90_cf.py
f610d0f1035ed452bc7992ce2b7ed0d6160b139f
[]
no_license
Hironobu-Kawaguchi/atcoder
3fcb649cb920dd837a1ced6713bbb939ecc090a9
df4b55cc7d557bf61607ffde8bda8655cf129017
refs/heads/master
2023-08-21T14:13:13.856604
2023-08-12T14:53:03
2023-08-12T14:53:03
197,216,790
0
0
null
null
null
null
UTF-8
Python
false
false
937
py
# https://atcoder.jp/contests/typical90/tasks/typical90_cf # # def input(): return sys.stdin.readline().rstrip() # # input = sys.stdin.readline # from numba import njit # from functools import lru_cache # import sys # input = sys.stdin.buffer.readline # sys.setrecursionlimit(10 ** 7) N = int(input()) S = input() ans ...
[ "hironobukawaguchi3@gmail.com" ]
hironobukawaguchi3@gmail.com
b9edcccc00c10227f91be8740e4d744c0cea4347
2b8047e9e73a2f6fd43897cff19cb7e7c7c464d4
/docssrc/source/conf.py
5d48fbeb3fa4a5a1f8afc2bbac54d3f8fcfb3638
[ "MIT" ]
permissive
Peilonrayz/envee
548fe08330a3b43bee5da1d64a0e406c781b990e
66f5b6b1ff7f5966be794e1e3878418c560c1f65
refs/heads/master
2021-01-09T13:35:40.946529
2020-02-21T20:58:27
2020-02-21T20:58:27
242,321,085
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
import datetime import pathlib import sys try: import ConfigParser as configparser except ImportError: import configparser FILE_PATH = pathlib.Path(__file__).absolute() # Add documentation for tests TLD = FILE_PATH.parent.parent.parent sys.path.insert(0, str(TLD)) config = configparser.ConfigParser() config....
[ "peilonrayz@gmail.com" ]
peilonrayz@gmail.com
fbdea07de6f18420b99a57b116c79adf1f0463a1
eac52a8ae7c539acedaedf8744bd8e20172f0af6
/general/decode_ways.py
33c70cc775b271c21d0bb448684acae24e9ffa65
[]
no_license
mshekhar/random-algs
3a0a0f6e6b21f6a59ed5e1970b7a2bc2044e191f
7c9a8455f49027a754038b23aaa2df61fe5397ca
refs/heads/master
2020-03-26T16:29:42.694785
2019-07-18T20:57:55
2019-07-18T20:57:55
145,105,593
4
0
null
null
null
null
UTF-8
Python
false
false
2,895
py
# A message containing letters from A-Z is being encoded to numbers using the following mapping: # # 'A' -> 1 # 'B' -> 2 # ... # 'Z' -> 26 # Given a non-empty string containing only digits, determine the total number of ways to decode it. # # Example 1: # # Input: "12" # Output: 2 # Explanation: It could be decoded as ...
[ "mayank@moengage.com" ]
mayank@moengage.com
07a345dba33878564304037a609dba06de767c0c
36c00fe2afff4818c937e312ce0c6a79f35e2a77
/7-kyu/happy-birthday,-darling!/python/solution.py
ab407ea9bcebd79b2d18c37ed24e86ac2368a137
[]
no_license
p-lots/codewars
0a67b6ee4c91180ff78c648421b9d2d64463ddc3
535faeee475c6b398124d6f5002b0e111406e8bb
refs/heads/master
2023-08-23T22:14:33.635011
2023-08-23T13:30:37
2023-08-23T13:30:37
195,320,309
0
0
null
2023-05-09T19:25:50
2019-07-05T01:40:15
Python
UTF-8
Python
false
false
164
py
def womens_age(n): base = n // 2 if n % 2 == 0 else (n - 1) // 2 new_n = 20 if n % 2 == 0 else 21 return f"{n}? That's just {new_n}, in base {base}!"
[ "paul.calotta@gmail.com" ]
paul.calotta@gmail.com
d0c7805015d0990484841901a310a10805e00cf6
39be02fe4f8e8362a7acc005f3e30dd6fe47990e
/newdata/oylereader.py
5ebdae4fcc852f8c821d74ed40ee95c9b06e915b
[]
no_license
seferlab/geneexpress
e2f6fdaa49e40cd48d0572cd9ddb5d2f45566adb
ac35bde5ba52d24981ece74e532f46bbfff9019e
refs/heads/master
2022-12-19T08:33:16.925160
2020-09-29T13:51:30
2020-09-29T13:51:30
299,619,752
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
import os import sys import math fname1 = "127 LCM time course Data Not normalized.txt" fname2 = "127 LCM time course Quantile Normalized logbased 2 transformed.txt" with open(fname1,"r") as infile: for line in infile: line = line.rstrip() vals = line.split("\r") splitted = vals[1].split...
[ "70752445+seferlab@users.noreply.github.com" ]
70752445+seferlab@users.noreply.github.com
f0b3e6949b78c44d35bdedc65dcdd7d848eae7f3
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/10/33/17.py
b549582d467c3879831e6f099d36ecf18d3abe31
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,617
py
from itertools import count def board(rows): n = len(rows[0]) * 4 return [map(int, '{0:0{1}b}'.format(int(row, 16), n)) for row in rows] def squares(board): m, n = len(board), len(board[0]) #sq = {} for r in xrange(m): for c in xrange(n): if board[r][c] == 2: continue ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
238eb7c3a48a487377b765829fcb5eee86416ff5
24cf311c53c29e4e332cea01ee4de8196253a7b7
/accounts/urls.py
ca8992d712669175ee1ef3193b0ea2d6ab348261
[]
no_license
apengok/vsicravdoa
d017fe0c6a8606ef7bb74739354de1a2767b2a8a
e424b94007731189c2f14513798f2a9e9a45ba4c
refs/heads/master
2020-03-10T23:07:48.145583
2018-06-01T09:18:25
2018-06-01T09:18:25
129,634,250
1
0
null
null
null
null
UTF-8
Python
false
false
777
py
from django.conf.urls import url from .views import ( AccountHomeView, # AccountEmailActivateView, UserDetailUpdateView ) app_name = 'account' urlpatterns = [ url(r'^$', AccountHomeView.as_view(), name='home'), url(r'^details/$', UserDetailUpdateView.as_view(), na...
[ "apengok@163.com" ]
apengok@163.com
a20abcac99856f482d5e3f7ec4d5c5c93878dacd
98f505e8275ed888818d8d6f77d27a9c275b55d8
/face.py
a6d86359d258eda63f01fe71ba8a00892e28e706
[]
no_license
EHwooKim/telegram
13ac0afbd4ee5f91aa81b557183e9d8143fb1315
034ae64fa6283720fd55362b1b763cb3497ce4fc
refs/heads/master
2022-12-11T19:53:23.942523
2019-07-12T07:41:29
2019-07-12T07:41:29
196,533,974
0
0
null
2022-12-08T05:52:25
2019-07-12T07:48:30
Python
UTF-8
Python
false
false
959
py
import pprint import requests from decouple import config # 0. 이미지 파일 file_url = 'https://api.telegram.org/file/bot823224197:AAFwM03Ie4P8dBH45aKI75sMO0okZpcIqic/photos/file_2.jpg' response = requests.get(file_url, stream=True) image = response.raw.read() # 1. 네이버 API 설정 naver_client_id = config('NAVER_CLIENT_ID') nav...
[ "ehwoo0707@naver.com" ]
ehwoo0707@naver.com
52860b1da6917fcd830a4b178bd3d28e8c60bf70
99dfd25f07b748e0b9b04ac300e135dc20570e1c
/cart/urls.py
1731b6a31f6bbea06b4fcbb367549265a3127dd2
[]
no_license
suipingooi/tgc10-django-deploy-checkpointPAUL
1ec45e7135263703ff3472216f8fdcfdb379d7f3
46b62cdce8396c2b0cc57ec1fca4e77c0eee1e1a
refs/heads/master
2023-04-16T05:11:20.535480
2021-04-14T12:02:43
2021-04-14T12:02:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
from django.urls import path import cart.views urlpatterns = [ path('add/<book_id>', cart.views.add_to_cart, name="add_to_cart"), path('', cart.views.view_cart, name='view_cart'), path('remove/<book_id>', cart.views.remove_from_cart, name="remove_from_cart"), path('update_quantity/<b...
[ "chorkunxin@yahoo.com" ]
chorkunxin@yahoo.com
2ca6a41f705f6ef795834db9d2bcbec1c4e7da99
9d0195aa83cc594a8c61f334b90375961e62d4fe
/JTTest/SL7/CMSSW_10_2_15/src/miniAODJobs600toInf/nano4.py
1366df4f33cc6ad0c152e7cd8e25ea82efda4cf6
[]
no_license
rsk146/CMS
4e49592fc64f6438051544c5de18598db36ed985
5f8dab8c59ae556598b9747b52b88205fffc4dbe
refs/heads/master
2022-12-01T03:57:12.126113
2020-08-04T03:29:27
2020-08-04T03:29:27
284,863,383
0
0
null
null
null
null
UTF-8
Python
false
false
4,363
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: nanoAOD_jetToolbox_cff -s NANO --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --no_exec --conditions 102X_upgrade2018_realistic_v19 -...
[ "rsk146@scarletmail.rutgers.edu" ]
rsk146@scarletmail.rutgers.edu
fc521136d37bde83bf4b77d4966c06e6653d750b
3f6c16ea158a8fb4318b8f069156f1c8d5cff576
/.PyCharm2019.1/system/python_stubs/-1317042838/pandas/_libs/ops.py
a84d13f1d42b972f9af8b614b27048d38673cdb9
[]
no_license
sarthak-patidar/dotfiles
08494170d2c0fedc0bbe719cc7c60263ce6fd095
b62cd46f3491fd3f50c704f0255730af682d1f80
refs/heads/master
2020-06-28T23:42:17.236273
2019-10-01T13:56:27
2019-10-01T13:56:27
200,369,900
0
0
null
2019-08-03T12:56:33
2019-08-03T11:53:29
Shell
UTF-8
Python
false
false
2,829
py
# encoding: utf-8 # module pandas._libs.ops # from /var/www/newsbytes/CPP/venv/lib/python3.6/site-packages/pandas/_libs/ops.cpython-36m-x86_64-linux-gnu.so # by generator 1.147 # no doc # imports import builtins as __builtins__ # <module 'builtins' (built-in)> import operator as operator # /usr/lib/python3.6/operator....
[ "sarthakpatidar15@gmail.com" ]
sarthakpatidar15@gmail.com
ce3333447ac28a3d89c0757d6ada515e638e5bd2
8410bb5a2e8849bb3a554b95ddc713d88f3440c4
/aws-dev/awsdev9/venv/Lib/site-packages/dns/rdtypes/ANY/SOA.py
aec81cad8ac916e9bc71052ecbc4983cdabbd126
[ "MIT" ]
permissive
PacktPublishing/-AWS-Certified-Developer---Associate-Certification
ae99b6c1efb30e8fab5b76e3d8c821823a4cd852
b9838b4e038b42ad1813a296379cbbc40cab6286
refs/heads/master
2022-11-03T04:37:49.014335
2022-10-31T05:42:19
2022-10-31T05:42:19
219,964,717
13
11
MIT
2021-06-02T00:57:45
2019-11-06T09:54:09
Python
UTF-8
Python
false
false
4,597
py
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and ...
[ "sonalis@packtpub.com" ]
sonalis@packtpub.com
d8adcfa0328f753994b60200ace6ca4d145e0f23
3d5bcd57b893c95bbcbfafe77bbc33c65432c9ed
/Algorithms/LeetCode/L0079exist.py
c6486ef5bca5b6781c64631e90da4eed40b18976
[]
no_license
arunachalamev/PythonProgramming
c160f34c7cb90e82cd0d4762ff9dcb4abadf9c1c
ea188aaa1b72511aeb769a2829055d0aae55e73e
refs/heads/master
2021-06-04T03:50:37.976293
2020-11-12T19:52:28
2020-11-12T19:52:28
97,364,002
3
0
null
null
null
null
UTF-8
Python
false
false
702
py
def exist(board, word): m,n = len(board), len(board[0]) def search(i,j,word): nonlocal m,n if len(word) == 0: return True if i<0 or i==m or j <0 or j==n or board[i][j] !=word[0]: return False board[i][j] = '#' for di,dj in [(0,1),(0,-1),(1,0),(-1...
[ "arunachalamev@gmail.com" ]
arunachalamev@gmail.com
0bf7dd56ef9f8d3dc81a166b9e292152ff8911ac
2aba3c043ce4ef934adce0f65bd589268ec443c5
/AOJ/courses/ITP1/3_C.py
221621fc02dd16be341b7f831191bed733e02394
[]
no_license
kambehmw/algorithm_python
4f66593b77039d90515d1fcbecacdab8c811b92f
17222399dcc92fd8f908e5774a9883e2e89c486e
refs/heads/master
2020-06-02T12:44:11.322356
2020-05-18T13:22:05
2020-05-18T13:22:05
191,157,113
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
while True: x, y = map(int, input().split()) if x == 0 and y == 0: exit() else: if x < y: print(x, y) else: print(y, x)
[ "kanbe.hmw@gmail.com" ]
kanbe.hmw@gmail.com
8af8b1154126237b12e676c20db0981a5f9e3d8e
8a14a7724d00f1eb7791e53f8446e99ecc975605
/scripts/extract_features.py
95649f83351e38ae3501cff705bf80339edd1315
[ "Apache-2.0" ]
permissive
aschn/picolo
3fa7b26d079fc9687de9c3e1e34cae774bcf8416
1f8f50e0709fdaef31bc38045ef9fd0c46aae2b5
refs/heads/master
2020-04-30T01:37:36.587287
2013-07-19T00:32:05
2013-07-19T00:32:05
9,307,233
1
0
null
null
null
null
UTF-8
Python
false
false
2,229
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author Anna Schneider @version 0.1 @brief Typical script using picolo to extract features from point particles """ import picolo from shapes import shape_factory_from_values import argparse import os.path as path import time import csv # start timer start = time.tim...
[ "annarschneider@gmail.com" ]
annarschneider@gmail.com
1eadf13b44ed3ecced195ac1f6974c5866be1f8b
37efda4646f478b66674e384e1bc139e7874d972
/practice/RaodtoMillionaire.py
7677b54444573abaec9ffa4c8c2fa22f69a24b2b
[]
no_license
siberian122/kyoupuro
02c1c40f7c09ff0c07a1d50b727f860ad269d8b1
8bf5e5b354d82f44f54c80f1fc014c9519de3ca4
refs/heads/master
2023-04-04T02:45:29.445107
2021-04-20T07:37:47
2021-04-20T07:37:47
299,248,378
1
0
null
null
null
null
UTF-8
Python
false
false
380
py
n = int(input()) a = list(map(int, input().split())) b = [] for i in range(n-1): num = a[i]-a[i+1] b.append(num) now = 1000 stock = 0 for i in range(n-1): if b[i] > 0: # 売る now += stock*a[i] stock = 0 elif now > 0 and b[i] < 0: # 買う stock += now//a[i] now = now % a[i] ...
[ "siberian1000@gmail.com" ]
siberian1000@gmail.com
c96667e76a4d649fc180fffd2ee6abb688e027cb
d4fdbd68c42d6b9babe347cb3b65535e4d782172
/tensorflow_datasets/image/voc_test.py
1bbb9140e84808b1f66441b6ba103c2e8483ec03
[ "Apache-2.0" ]
permissive
thanhkaist/datasets
2809260c5e95e96d136059bea042d1ed969a6fcf
02da35c558ec8ea704e744a2008c5cecb2e7a0a1
refs/heads/master
2020-06-04T16:13:14.603449
2019-06-14T22:01:33
2019-06-14T22:02:54
192,097,735
2
0
Apache-2.0
2019-06-15T16:02:18
2019-06-15T16:02:18
null
UTF-8
Python
false
false
1,060
py
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets 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 appl...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
2fc48de98fbc2450366953e3be1285d20c36401a
ac8ffabf4d7339c5466e53dafc3f7e87697f08eb
/python_solutions/1080.insufficient-nodes-in-root-to-leaf-paths.py
4ba1ede95bb6688d9b4c3e860ddfe8e1d3dd646d
[]
no_license
h4hany/leetcode
4cbf23ea7c5b5ecfd26aef61bfc109741f881591
9e4f6f1a2830bd9aab1bba374c98f0464825d435
refs/heads/master
2023-01-09T17:39:06.212421
2020-11-12T07:26:39
2020-11-12T07:26:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,173
py
from collections import Counter, defaultdict, OrderedDict, deque from bisect import bisect_left, bisect_right from functools import reduce, lru_cache from typing import List import itertools import math import heapq import string true = True false = False MIN, MAX, MOD = -0x3f3f3f3f, 0x3f3f3f3f, 1000000007 # # @lc ap...
[ "ssruoz@gmail.com" ]
ssruoz@gmail.com
75a63b080058ba26e1aa2ae9b422c95c519a403c
3e93c3bbe35c24bf7f1a75c612ab300f37063621
/C1/L1_18_mappingnameseq_namedtuple.py
f393d21fd2cf887c699056da4973e6a7725476db
[]
no_license
rengokantai/orpycok3ed
5ac0195a48f02dcc5bbc720e812f637464215e8f
50ce744265dc6af0d1a4724ea52348faeb47764d
refs/heads/master
2021-01-10T05:05:53.477092
2016-03-12T20:04:45
2016-03-12T20:04:45
53,352,163
0
1
null
null
null
null
UTF-8
Python
false
false
693
py
__author__ = 'Hernan Y.Ke' from collections import namedtuple # memorize this syntax Me = namedtuple('Me',['first','last']) me = Me(1,2) print(me.first,me.last) she=[Me(3,4),Me(5,6)] #me = Me(first=1,last=2) # illegal! me = me._replace(first=3) print(me.first) # get namedtuple def get_num(tuplearr): res=0 ...
[ "yuriqiao@gmail.com" ]
yuriqiao@gmail.com
ca2e60ef61a63bcc4473f3bb4ca159430fb5c13a
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/intentions/PyAnnotateTypesIntentionTest/methodAfterConstructorCall.py
0cdc87e27827504a3baf5a3c8d4524a6604e3e8c
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
133
py
class MyClass: def __init__(self): pass def method(self, x): pass x = MyClass() foo = x.met<caret>hod(42)
[ "mikhail.golubev@jetbrains.com" ]
mikhail.golubev@jetbrains.com
55c2841b5ae6ddfc0e8c0cb6f34e33306f5fca3a
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/cirq_new/cirq_program/startCirq_pragma58.py
8e84b65dd9e10c0774f2965011964ccb0cbd933f
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,364
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=11 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np class Opty(cirq.PointOptimizer): def optimization_at( ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
8dd7a8369a2f7b352443bc0d36d23dd32bcc554e
bf576b059cbecb0cbb8a6c885dcfded5bd685399
/4.Python course/3.Expand course/1.Small windmill/Small windmill.py
18c56da878b1cb6a7ef0d38234ce809b1bea040f
[]
no_license
YahboomTechnology/Superbit-expansion-board
0d3c2fd06c5df9280d230af429931af2c48dc6d5
4df7e03426d486d2b2f8f649359eee2d62851083
refs/heads/master
2023-04-07T03:16:15.786669
2023-03-29T01:12:57
2023-03-29T01:12:57
206,778,307
13
8
null
null
null
null
UTF-8
Python
false
false
426
py
from microbit import * import superbit a = 135 display.show(Image.HEART) superbit.servo270(superbit.S1, 135) superbit.motor_control(superbit.M1, 255, 0) while True: if button_a.is_pressed(): a = a - 1 if a < 0: a = 0 superbit.servo270(superbit.S1, a) elif button_b.is_press...
[ "2448532184@qq.com" ]
2448532184@qq.com
0ab091f1bac3f6b3782abb3cf2f34ba686b858fc
6dcd5f4bb4c39e2d887e5d557e188ba4c8a75081
/src/UsersDB.py
3d3f2264fceef218c5169ec87a6f6ca4b65d695f
[]
no_license
Pella86/HappyRateBot
815653033593aedc22c779025d00bddec4614f46
f23f786a3c9dc19f2378958470d82974d018bd64
refs/heads/master
2020-03-22T00:16:38.670215
2018-07-22T11:50:53
2018-07-22T11:50:53
139,234,809
1
1
null
2018-07-22T06:41:21
2018-06-30T09:01:21
Python
UTF-8
Python
false
false
4,288
py
# -*- coding: utf-8 -*- """ Created on Wed Jun 20 12:10:14 2018 @author: Mauro """ #============================================================================== # Imports #============================================================================== # py imports import os import hashlib import string # my imports ...
[ "pigmeo127@gmail.com" ]
pigmeo127@gmail.com
9980f2825f02826d27018b266928c8e25ef4e7d6
978248bf0f275ae688f194593aa32c267832b2b6
/xlsxwriter/test/comparison/test_autofilter06.py
354f84b2a2f1d14959c2854587b7e266fc15c235
[ "BSD-2-Clause-Views" ]
permissive
satish1337/XlsxWriter
b0c216b91be1b74d6cac017a152023aa1d581de2
0ab9bdded4f750246c41a439f6a6cecaf9179030
refs/heads/master
2021-01-22T02:35:13.158752
2015-03-31T20:32:28
2015-03-31T20:32:28
33,300,989
1
0
null
null
null
null
UTF-8
Python
false
false
2,859
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
2f8c03f052351b799bfba46a92f2566cc993aedd
5181d3b3ef8fe301ea2d6b095260e9d327c2fd79
/scripts/dl/download_hrrr.py
dad9ed84e463252c8a1b7b4fff6d35e96c53d1d1
[]
no_license
danhreitz/iem
88113ef9c9c4a2918c9c2abdfd0510d5ca4ec819
ed490dcd6c2a8359f88cb805ccee8f6707566f57
refs/heads/master
2021-01-18T15:27:28.607250
2015-08-10T21:33:54
2015-08-10T21:33:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
""" Since the NOAAPort feed of HRRR data does not have radiation, we should download this manually from NCEP Run at 40 AFTER for the previous hour """ import urllib2 import sys import datetime import os def fetch(valid): """ Fetch the radiation data for this timestamp 80:54371554:d=2014101002:ULWRF:top of...
[ "akrherz@iastate.edu" ]
akrherz@iastate.edu
3b79ecee53bab652825699f9a829541d12808883
53d22468fb1c9e0f4b4710a31fb7ac638549b8a7
/src/episode_stats.py
8c746bbebadc8b8367d5a5f0ae15a6bda7162cea
[ "MIT" ]
permissive
binderwang/drivebot
768bcfe224d94b931c45c41ced2a1b0067c6417d
a8fb86731c52b7594dd135e8759622c29172b557
refs/heads/master
2020-12-14T09:48:59.857490
2016-05-03T03:17:58
2016-05-03T03:17:58
58,269,730
1
0
null
2016-05-07T14:33:18
2016-05-07T14:33:17
null
UTF-8
Python
false
false
261
py
#!/usr/bin/env python import json import sys episode_id = 0 for line in sys.stdin: episode = json.loads(line) rewards = [event['reward'] for event in episode] print "\t".join(map(str, [episode_id, len(episode), sum(rewards)])) episode_id += 1
[ "matthew.kelcey@gmail.com" ]
matthew.kelcey@gmail.com
f6b0c0ebfcfea1688b03ec725be8faebb3cbbbee
2598f255696842f043372dd68fe4d5fd48d1a41c
/Ofelia/expedient/src/python/expedient/clearinghouse/users/views.py
5bd342d561ba8106b5c71655fbdfedc0cbb0a6c3
[ "BSD-3-Clause" ]
permissive
zanetworker/C-BAS
8e5442df83626e95d9562497278869ee3c4fad51
695c6f72490a02bbb308d44526631dbf426ab900
refs/heads/master
2021-01-01T06:55:39.085086
2014-08-11T09:37:42
2014-08-11T09:37:42
22,351,372
1
0
null
2014-08-08T16:15:54
2014-07-28T17:28:44
Python
UTF-8
Python
false
false
7,668
py
''' Created on Dec 3, 2009 @author: jnaous ''' from django.shortcuts import get_object_or_404 from django.http import HttpResponseRedirect, HttpResponseNotAllowed from django.core.urlresolvers import reverse from expedient.clearinghouse import users from django.views.generic import create_update, simple from django.c...
[ "umar.toseef@eict.de" ]
umar.toseef@eict.de
8d637f9712aa8cd0fa725ea3c7b3285cb522f1da
be5a758c99f05c8ae8c224bf43335154114ee5f6
/kombu/compat.py
224f2e33e5d44865c3202047427a7e1c535ba30d
[ "BSD-3-Clause" ]
permissive
bradjasper/kombu
160ed1b5651f91a87752df40791d01c91ca1fe16
4c9ac1436eb0468508f8b2cf1bda997535e1326d
refs/heads/master
2021-01-16T00:23:17.928400
2010-07-28T17:25:32
2010-07-28T17:25:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,431
py
from itertools import count from kombu import entity from kombu import messaging def iterconsume(connection, consumer, no_ack=False, limit=None): consumer.consume(no_ack=no_ack) for iteration in count(0): if limit and iteration >= limit: raise StopIteration yield connection.drain_...
[ "askh@opera.com" ]
askh@opera.com
c3af127904d957a29958033e8898da66cbee1238
70ed82598c7ae19dc3de4a3a8400e9767b8a74b0
/Net/BaseNet/ResNet/fine_tuning_2.py
a5c28f115867e33b9eb23304dfaf71d8d7a0216b
[]
no_license
UpCoder/MedicalImage
f255922b988392cd4c3a90715fb945ee20edb3b4
34c11562658e6f362ee7eb53740ba96209a22d45
refs/heads/master
2021-01-19T16:59:13.251726
2017-12-04T14:55:32
2017-12-04T14:55:32
101,031,357
0
1
null
null
null
null
UTF-8
Python
false
false
6,832
py
# -*- coding: utf-8 -*- # 使用patch训练好的模型,来对ROI进行微调 from resnet import inference_small, loss import tensorflow as tf from Config import Config as sub_Config from Slice.MaxSlice.MaxSlice_Resize import MaxSlice_Resize from tensorflow.examples.tutorials.mnist import input_data from Tools import changed_shape, calculate_acc_...
[ "546043882@qq.com" ]
546043882@qq.com
efc54871703ecce3f1cb626bd1351abbdff392ef
34ef83114e02b173bd2d55eb53ad399e738a8e3c
/django/test_bootstrap/blog/models.py
b12d7ddd4b0a24411e62b4e99bf00bcafa60e565
[]
no_license
vavilon/Python3
e976a18eb301e4953696d1e3f4730ed890da015a
8c79729747ce51d60ad685e6a2e58292954ed7eb
refs/heads/master
2023-01-09T13:44:37.408601
2018-01-25T22:41:14
2018-01-25T22:41:14
100,892,055
0
1
null
2022-12-26T20:29:27
2017-08-20T22:23:06
Python
UTF-8
Python
false
false
506
py
from django.db import models # Create your models here. from django.utils import timezone class Post(models.Model): author = models.ForeignKey('auth.User') title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField( default=timezone.now) publishe...
[ "overon4ek@gmail.com" ]
overon4ek@gmail.com
3fac458c8f38d04e4724c1f19199c6c517b324b6
675b72eae65f8e258794decf9627e5fdf8b04559
/plugin_tests/examples_test.py
aa8ae4a0e021a3a57aefdf2dd02021e68f45841a
[ "Apache-2.0" ]
permissive
jbeezley/large_image
368f730ea6fe2c4b75a9c3412c08ce8f41be545a
ac4cbaff4ae2fbbde425d3cd1aee2ff03e6235c8
refs/heads/master
2021-01-11T06:15:48.687563
2016-10-24T17:09:08
2016-10-24T17:09:08
71,806,470
0
0
null
2016-10-24T16:04:04
2016-10-24T16:04:03
null
UTF-8
Python
false
false
1,695
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################## # Copyright Kitware 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 t...
[ "david.manthey@kitware.com" ]
david.manthey@kitware.com
434153e344fd51bbd477726190b6bffce6f42c4d
3de3dae722829727edfdd6cc3b67443a69043475
/edexOsgi/com.raytheon.uf.common.dataplugin.text/pythonPackages/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/subscription/request/SubscriptionRequest.py
237472774c674b7b8fb879656ce996c5d08db82a
[ "LicenseRef-scancode-public-domain", "Apache-2.0" ]
permissive
Unidata/awips2
9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb
d76c9f96e6bb06f7239c563203f226e6a6fffeef
refs/heads/unidata_18.2.1
2023-08-18T13:00:15.110785
2023-08-09T06:06:06
2023-08-09T06:06:06
19,332,079
161
75
NOASSERTION
2023-09-13T19:06:40
2014-05-01T00:59:04
Java
UTF-8
Python
false
false
1,268
py
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non...
[ "mjames@unidata.ucar.edu" ]
mjames@unidata.ucar.edu
d485028798e1c737f0af507daf3b21f679ec03ae
b55c368efdfe360123be1a2e7677cee53706d1f9
/VectorTrans/Main.py
7f33d97819742d7ae327669e60bb979628d2c4fb
[ "MIT" ]
permissive
ZzhiWang/DRImplicitVecXform
207cd6ef6edf5bc90b2abb1242e2d7bb3b322f95
2ec0c64fb098e29ce74929f5e19bce90b2f5791c
refs/heads/master
2023-03-17T14:51:34.755756
2020-08-01T09:26:35
2020-08-01T09:26:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,904
py
import numpy as np from Tools import Preprocess from VectorTrans.DRTrans import DRTrans from VectorTrans.MDSTrans import MDSTrans from VectorTrans.TSNETrans import TSNETrans from VectorTrans.PCATrans import PCATrans from VectorTrans.MDSTransPlus import MDSTransPlus from VectorTrans.TSNETransPlus import TSNETransPlus fr...
[ "sdu2014@126.com" ]
sdu2014@126.com
b9fc0ded63c3c6f0ff7857c261a68f18076d6d8e
9dc8c299ee7d4a225002127cc03b4253c8a721fd
/libs/unittest/live_related_condition.py
5604fdc9fc852993f3b40a2a692f9a1c3da1f49b
[]
no_license
namesuqi/strategy_corgi
5df5d8c89bdf7a7c465c438048be20ef16120f4f
557b8f8eabf034c2a57c25e6bc581858dd4f1b6e
refs/heads/master
2020-03-07T04:00:18.313901
2018-03-29T07:50:50
2018-03-29T07:50:50
127,253,453
0
0
null
null
null
null
UTF-8
Python
false
false
4,149
py
# !/usr/bin/python # coding=utf-8 # author: JinYiFan from config import * from libs.module.live_seeds import * import time def wait_for_second(wait_time): time.sleep(wait_time) def change_config(live_file_count, live_peer_count, rate_of_peer_and_file): """ 修改config文件的参数配置 :param live_file_count: 文件...
[ "suqi_name@163.com" ]
suqi_name@163.com
b8acc579b13a7bb35130f20698e3489073b14792
773deb7825ff84eec3e0cf6ae8266d07251df392
/CHAPTER05/bw41.py
c7231b7bd8d7d2ba190f52df2a0fa74e6f62a961
[]
no_license
kji0205/py
3ca9c2a351af05ce62d7c7c3c261ed98a7e8290d
b45ffb3424b7c0da8192d431cb7ad7933c60ef81
refs/heads/master
2021-01-20T18:57:51.603386
2016-06-23T14:24:57
2016-06-23T14:24:57
61,639,536
0
0
null
null
null
null
UTF-8
Python
false
false
905
py
# 진정한 병렬성을 실현하려면 concurrent.futures를 고려하자 import logging from pprint import pprint from sys import stdout as STDOUT from time import time def gcd(pair): a, b = pair low = min(a, b) for i in range(low, 0, -1): if a % i == 0 and b % i == 0: return i numbers = [(1963309, 2265973), (2030677, 3814172), (1551645...
[ "kji0205@gmail.com" ]
kji0205@gmail.com
ab12cc2538c903dfca478ff16c8508153a7312c9
994ea22f35c635fdf139af9282b0d3a3d86ea34a
/ud120-projects-intro_to_machine_learning/decision_tree/dt_author_id.py
667e184f992ddbc3679ee4787f6ce8ba6bcc894a
[]
no_license
zjyx147/Udacity
ac371fbc5b5b456e88b411657ef5a28c3b071c6c
d86fadd537dbacc6f8142b043e71527b0448bae3
refs/heads/master
2022-06-23T14:25:41.242353
2019-06-20T20:12:13
2019-06-20T20:12:13
191,207,247
0
0
null
2022-06-21T22:07:35
2019-06-10T16:42:18
DIGITAL Command Language
UTF-8
Python
false
false
1,128
py
#!/usr/bin/python """ This is the code to accompany the Lesson 3 (decision tree) mini-project. Use a Decision Tree to identify emails from the Enron corpus by author: Sara has label 0 Chris has label 1 """ import sys from time import time sys.path.append("../tools/") from email_preprocess im...
[ "zjyx147@gmail.com" ]
zjyx147@gmail.com