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
ecd026d56597f11f74e7f2a7536212ceb9dec196
5e110bf97200f3e1e4af762eef14521ea6775811
/pelican-plugins/m/components.py
ebbb823bfa8e6f39ff64177a030aa66fdd11f2be
[ "MIT" ]
permissive
gotchafr/m.css
8704415b94220888a1828809f36753d80ea2b153
08cfe0a94f808cbbe491930f664b92c3ab4d6ff7
refs/heads/master
2021-07-25T18:28:48.224227
2017-11-05T16:22:27
2017-11-05T16:22:27
109,490,079
0
0
null
2017-11-04T12:27:26
2017-11-04T11:40:37
CSS
UTF-8
Python
false
false
10,706
py
# # This file is part of m.css. # # Copyright © 2017 Vladimír Vondruš <mosra@centrum.cz> # # 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 lim...
[ "mosra@centrum.cz" ]
mosra@centrum.cz
2a2177ba2b68b5c3a2b30b1831af2e11a42dc3ba
f5fbdb4080a38e20e7a165e07b8328cbb37270cb
/swimercamp0/comments/api/views.py
0216d157def2e70dabe7dfeae3ad52c2b5034c49
[]
no_license
ayoub-smayen/socialswimerv2
390d3742d0282c3ff7eee405f4fffd6adf8e69dc
536b6c1b7f51e2f6ac449657a38a89cf49be7094
refs/heads/master
2023-06-29T16:42:07.153060
2021-08-01T20:05:48
2021-08-01T20:05:48
391,725,131
0
0
null
null
null
null
UTF-8
Python
false
false
1,253
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from rest_framework.generics import DestroyAPIView, ListCreateAPIView from rest_framework.permissions import IsAuthenticatedOrReadOnly from comments.models import Comment from .permissions import IsCommenterOrReadOnly from .serializers import CommentSerializer ...
[ "ayoubjobs.2019@gmail.com" ]
ayoubjobs.2019@gmail.com
a43a969728aee7978c20c1b5837c35a2d4ae1a82
3603f8f76ff81ea75bfc916888bdcfa55b7f12e4
/alds/alds1_1_a.py
046cab5b22c208d596b9d533fe95bb2477be5b31
[]
no_license
kimotot/aizu
4de0319959a3b166b8c2c4940ab7b701b6ee3395
315be1240cff733e1c6a7cd98942a95b3bd7ec96
refs/heads/master
2021-07-24T12:37:41.935302
2021-03-10T09:05:05
2021-03-10T09:05:05
91,927,321
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
def insertSort(a): for i in range(len(a)): v = a[i] j = i - 1 while j >= 0 and a[j] > v: a[j + 1] = a[j] j -= 1 a[j + 1] = v print(" ".join([str(x) for x in a])) if __name__ == '__main__': n = int(input()) a = [int(x) for x in input().spl...
[ "god4bid@hear.to" ]
god4bid@hear.to
3b6d79b9ee68bad6addcb58240ff42d44e26a17d
95267d92a6438665cf7848de229bea691d537f81
/test-ferma.py
e3ddda4936707d0ac1667ad55c095f48566657bb
[ "MIT" ]
permissive
webkadiz/olympiad-problems
2874eb1846c59778e70bcdc9550b3484bc3aa9cc
b3a8a3e83d0930947a89ec42e86e3058f464ea40
refs/heads/master
2022-11-15T23:48:39.854546
2022-11-04T12:55:48
2022-11-04T12:55:48
228,297,097
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
import random import math n = int(input()) def test_ferma(n): if n <= 1: return False r = 10 ** 6 i = 0 while i < 100: rand = random.randint(1, r) if math.gcd(n, rand) != 1: continue if rand ** (n - 1) % n != 1: return False i += 1 return True print(test_ferma(n))
[ "webkadiz@gmail.com" ]
webkadiz@gmail.com
77d43c895d8261cd3250fe1f93016943f6510254
fc6f709f916fcd201938157990c77fa9202eefa7
/model/blocks.py
a8214bf0f365bf07fe53f47d212bcfbe73e31d14
[ "MIT" ]
permissive
chenchy/StyleSpeech
441ffd6d71ac0269d205ad66c9536fe00cb5267c
e0e4ad25681f9ecc2a01ba1b87cbe0c59472b792
refs/heads/main
2023-05-27T21:39:04.790584
2021-06-13T10:32:03
2021-06-13T11:26:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,042
py
import torch import torch.nn as nn import numpy as np from torch.nn import functional as F class Mish(nn.Module): def forward(self, x): return x * torch.tanh(F.softplus(x)) class StyleAdaptiveLayerNorm(nn.Module): """ Style-Adaptive Layer Norm (SALN) """ def __init__(self, w_size, hidden_size, ...
[ "keonlee9420@gmail.com" ]
keonlee9420@gmail.com
2a83480c6739ebf70ec159aa58c09e4f4c732008
9b9b6a7aa1de1092a8480771f2b08ffa0972218d
/python/foo/lambda/filter.py
71efd0608d9c3078d544f9c1b2016a4d61a7fb8e
[ "WTFPL" ]
permissive
lijiansong/lang
c42ca757306b38f37a26fef841b2460f05a13af6
27ffecd9afe67ddac003fc4d6333e06e2cc20434
refs/heads/master
2023-02-25T17:36:01.221720
2023-02-14T14:10:29
2023-02-14T14:10:29
149,586,739
1
1
null
null
null
null
UTF-8
Python
false
false
353
py
#!/usr/bin/env python if __name__ == '__main__': fibonacci = [0,1,1,2,3,5,8,13,21,34,55] odd_numbers = list(filter(lambda x: x % 2, fibonacci)) print(odd_numbers) even_numbers = list(filter(lambda x: x % 2 == 0, fibonacci)) print(even_numbers) even_numbers = list(filter(lambda x: x % 2 -1, fib...
[ "lijiansong@ict.ac.cn" ]
lijiansong@ict.ac.cn
76ce7f008366b7ae6851bacf9174433b87f39e21
b9aeae1212f153e73ad034cda3bc0057b97ce893
/signbank/tools.py
f62254b4c41ac0b93e6fdb1198450d2154e54755
[ "BSD-3-Clause" ]
permissive
ISOF-ITD/FinSL-signbank
e76e412d01db5ee0a59b7d962a4c0d62b8b528ca
439fad48c67d3df031e479f2f71c1d6765d7e1f5
refs/heads/master
2022-11-29T13:46:10.733880
2018-06-15T09:45:33
2018-06-15T09:45:33
129,242,415
0
0
BSD-3-Clause
2018-04-12T11:44:26
2018-04-12T11:44:26
null
UTF-8
Python
false
false
5,174
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os from django.contrib.auth.decorators import permission_required from django.contrib import messages from django.shortcuts import render from django.db.models import Prefetch, Q from django.db import connection from django.urls import reverse from...
[ "henri.nieminen@gmail.com" ]
henri.nieminen@gmail.com
645470f573687f31c228c23124361b222ec571f9
457305c1f270aaa0ab3ba31316562da0e4efb8e1
/api/views.py
c22f526a562f1f83b8eec54053436eb4e7a8303f
[]
no_license
uxlsl/gooseeker_test
a009b59bab0c3b110b31f51027f4c5636dcf8263
6298aed97646b8f78ac91bd7bc55b6c2dde42b52
refs/heads/master
2021-05-13T21:29:28.464372
2018-01-06T07:55:13
2018-01-06T07:55:13
116,464,967
4
0
null
null
null
null
UTF-8
Python
false
false
2,388
py
from django.http import HttpResponse def pokeserverv7(request): if 'HTTP_AUTHORIZATION' in request.META: html = ''' <response> <message>ok</message> </response> ''' response = HttpResponse(html, content_type="text/xml;charset=UTF-8") response['comp_version']...
[ "songlin.lin@yundata.com" ]
songlin.lin@yundata.com
b2cad08801464da5483622face487b998edb56d8
023d436179478be876d33d906e4b44923ff30c78
/psf/make_explist.py
4e750402afb1e657cbeb4ebe64910d3580082b91
[]
no_license
rmjarvis/DESWL
424fb339ddc01c55c9a3d996a7ee73c5e1684e1e
7c5058772f3296f346460b4d47195c2f4696b380
refs/heads/master
2022-12-24T01:33:23.704770
2022-12-15T23:01:09
2022-12-15T23:01:15
17,381,717
7
8
null
null
null
null
UTF-8
Python
false
false
1,387
py
import os, glob import fitsio meds_dir = '/astro/u/mjarvis/DES/meds' meds_tag = 'y3v02a' dirs = [ os.path.join(meds_dir, meds_tag) ] outfile = meds_tag bands = ['g','r','i','z','Y'] #bands = ['r'] all_exps = set() for b in bands: out_b = outfile + '_' + b print out_b exps = set() for dir in dirs: ...
[ "michael@jarvis.net" ]
michael@jarvis.net
94787bbaa4dd617a73114c93bb6f0b6ee5f7a544
0e1e64bd49cce6e94543ba473edc69fb2547905b
/deepneuro/models/progressive_growing_gan.py
9388295da16d8122ce8d4e79e91802ccab816ff1
[ "MIT" ]
permissive
medical-projects/DeepRad
ab967577695c657d181adba933c2e1af81c26fab
96b16aac873089e0d766fea34ed428a59c9e9080
refs/heads/master
2021-09-22T23:09:36.208120
2018-09-12T08:53:42
2018-09-12T08:53:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,220
py
"""This is a vanilla implementation of a generative adversarial network. It includes the Wasserstein Gradient-Penalty by default. """ import math import numpy as np import tensorflow as tf import os import imageio import keras import scipy from tqdm import tqdm from deepneuro.utilities.util import add_parameter fro...
[ "andrew_beers@alumni.brown.edu" ]
andrew_beers@alumni.brown.edu
744bba4df8fcce97608429295791d820e9424467
e23a4f57ce5474d468258e5e63b9e23fb6011188
/120_design_patterns/020_state/_exercises/templates/state_001.py
2ef77ec310d0aeddf3816f1a9838370e70966df9
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,945
py
# #!/usr/bin/env python # # -*- coding: utf-8 -*- # # """ # Implementation of the state pattern # # http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/ # # *TL;DR80 # Implements state as a derived class of the state pattern interface. # Implements state transitions by invoking methods from the patter...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
2cb8cb7e5215d58fbe082caaf60a64056b15d643
9b827240ffe3fc51f021b845b61162862944b308
/tests/functional_tests.py
aae3ea0d2058c0040bcfe0edcc1d851ae52ef0a8
[ "BSD-3-Clause" ]
permissive
JasonLLu/PyTorch-BigGraph
1d94200e7921c1b588f908a158959e8fb7a9ff46
d611570f058cdad2012140ee25f51633498d869e
refs/heads/master
2020-05-16T07:37:59.352016
2019-04-29T22:34:49
2019-04-29T22:34:49
182,429,335
1
0
NOASSERTION
2019-04-22T21:46:32
2019-04-20T16:32:32
Python
UTF-8
Python
false
false
23,282
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import json import logging import os.path import random import time from multiprocessing ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
c9833de285b7a6a60acf23bd82fa802ffbfefdb8
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/1870.py
09a82b95cc01c7f5d3208fd0e8a993c6282edf71
[]
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,514
py
#!/usr/bin/python -tt import sys import math #Parse datas def parseInput(fileName): f = open(fileName, 'rU') contentFile = f.readlines() f.close() nbCase = int(contentFile.pop(0)) testCaseList = [nbCase] for i in range(nbCase): minMax = contentFile.pop(0).replace('\n', '').split(' ') testCaseList.appen...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c2a74e0eb8cecf41cf7e626855428a1f68f28092
5f845e784106ad48b3b0dddb3016eeafa9f4810b
/test/travis_tests.py
fb47dab4028a5ba12fab40fb9e42f7a541a326f9
[]
no_license
robertej19/utils
d787a3d93e8be59b84ffe5f01fb1ca5b5e028604
a78d32f257a71db6c3ca0dcc8b5db46466c049b0
refs/heads/master
2023-06-03T05:01:47.277087
2021-06-24T14:47:26
2021-06-24T14:47:26
265,590,605
1
0
null
2020-05-20T14:26:02
2020-05-20T14:26:01
null
UTF-8
Python
false
false
2,154
py
import subprocess import os import readtests def test_function(command): process = subprocess.Popen(command.command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = process.communicate() if command.expect_out != '0': if stdout == command.expect_out: return(stdout,stderr) else: err_...
[ "robertej@mit.edu" ]
robertej@mit.edu
b55a268e68090b5bca90142d3bcd799a5f5f42d1
e06909502244ce808673b5a6d951f9cebbe1b638
/CW2/ex4.py
a0f4a40ce527e8ca7f910bbf53c4f1f2df06932c
[]
no_license
tasneemab/RailsProject
a7bfb00c6f50d3729ece9964e648198417da3236
24786ecf3f3b7e88bc1cb0b199c7da6f6d32ddd3
refs/heads/master
2020-07-30T06:59:57.322791
2019-09-25T13:29:36
2019-09-25T13:29:36
210,126,320
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
from datetime import datetime #not finished yet!! def report(f1, f2): data = f1.readlines() days = dict def main(): f1 = open('input.txt', 'r+') f2 = open('output.txt', 'w+') report(f1, f2) if __name__ == '__main__': main()
[ "tasneim.ao@gmail.com" ]
tasneim.ao@gmail.com
29a153005e191440645425666fbd7fd33511a99a
2d5a972218be09f4f544cc6ef4ff21b94e2b4823
/magenta/music/mfcc_mel_test.py
a3d83f1071a6a9a52c68a7babc18f07a1c63467f
[ "Apache-2.0" ]
permissive
uchiiii/magenta
e13ef3b63a36dbf08077d95c9eb9c0a3deece25f
276f372f2c4d56ce3c59fed8ca40e59a2d33c19f
refs/heads/master
2022-10-02T15:40:12.059034
2020-06-05T19:03:44
2020-06-05T19:04:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,970
py
# Copyright 2020 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
e885f5f315975f8651f24b364c13cacafb31e988
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/others/CLIP_for_PyTorch/transformers/tests/marian/test_modeling_marian.py
c2382dd132e5e3762fd847680b01ed647d7f249c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
32,607
py
# coding=utf-8 # Copyright 2021, The HuggingFace Inc. team. 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 ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
76285abcdd962627566757918feb0b26222b3b5b
29a4c1e436bc90deaaf7711e468154597fc379b7
/modules/predicates/doc/is_even.py
4c5640849c00aa82ee0b977898da031df8ea24f5
[ "BSL-1.0" ]
permissive
brycelelbach/nt2
31bdde2338ebcaa24bb76f542bd0778a620f8e7c
73d7e8dd390fa4c8d251c6451acdae65def70e0b
refs/heads/master
2021-01-17T12:41:35.021457
2011-04-03T17:37:15
2011-04-03T17:37:15
1,263,345
1
0
null
null
null
null
UTF-8
Python
false
false
2,984
py
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '1', 'call_types' : [], 'ret_arity' : '0', 'rturn' : { 'default' : 'typename nt2::meta::logical<T>::type', }, 'simd_types' : ['real_'], 'special' : ['predicate'], ...
[ "jtlapreste@gmail.com" ]
jtlapreste@gmail.com
fdd255fd0401fa2efcab14ecd4062eb704b3fb6d
f3e51466d00510f1dae58f1cb87dd53244ce4e70
/LeetCodes/facebook/Valid Number.py
72d2663600ba19a8b6eb08fd10c011ab40ece041
[]
no_license
chutianwen/LeetCodes
40d18e7aa270f8235342f0485bfda2bd1ed960e1
11d6bf2ba7b50c07e048df37c4e05c8f46b92241
refs/heads/master
2022-08-27T10:28:16.594258
2022-07-24T21:23:56
2022-07-24T21:23:56
96,836,652
0
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
''' We use three flags: met_dot, met_e, met_digit, mark if we have met ., e or any digit so far. First we strip the string, then go through each char and make sure: If char == + or char == -, then prev char (if there is) must be e . cannot appear twice or after e e cannot appear twice, and there must be at least one d...
[ "tianwen.chu@fedcentric.com" ]
tianwen.chu@fedcentric.com
382c4c27bafd19a9694f53b2b071b6a3381f7b57
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02388/s476704029.py
1d47e854da582f0bc9807852039279b4ae2eba86
[]
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
36
py
x = input() n = int(x) print(n*n*n)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
647c779b66ed9d8442e9da4c93c82e6ba1de6079
b500b05ae5cbd3be12a6308baccc61a3f5fdbc81
/adafruit_ble_adafruit/adafruit_service.py
274293a5cb9f7e8a384b2a6c22de2baf530590c5
[ "MIT" ]
permissive
dglaude/Adafruit_CircuitPython_BLE_Adafruit
fb54a1898d4c3bffcc6fdc87fbc115d7db3bda36
ecd36c4f747cbb729fda57e79b2d1489d903cd2d
refs/heads/master
2022-12-11T22:11:33.174069
2020-08-17T19:13:36
2020-08-17T19:13:36
291,056,354
0
0
null
2020-08-28T13:40:19
2020-08-28T13:40:18
null
UTF-8
Python
false
false
4,412
py
# The MIT License (MIT) # # Copyright (c) 2020 Dan Halbert for Adafruit Industries LLC # # 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 ...
[ "halbert@halwitz.org" ]
halbert@halwitz.org
fe75249c1452e36df7494cb510a154a856ca29ba
ecb50d1628ed70d3d5c041c091e3c41bbecdc758
/node_scripts/edgetpu_human_pose_estimator.py
1c5d07c1f16c1fe8a9cb868c0dc754d91f8be007
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
geometrikal/coral_usb_ros
67f0be90fe0566996cede5543d7b9108c8d90347
46341a30ec91d887f631353f1e7b26680d75e8d1
refs/heads/master
2022-11-06T16:34:50.426617
2020-07-03T04:43:23
2020-07-03T04:43:23
275,991,331
0
0
NOASSERTION
2020-06-30T03:51:22
2020-06-30T03:51:22
null
UTF-8
Python
false
false
5,004
py
#!/usr/bin/env python import matplotlib matplotlib.use("Agg") # NOQA import matplotlib.pyplot as plt import numpy as np import os import sys # OpenCV import for python3.5 sys.path.remove('/opt/ros/{}/lib/python2.7/dist-packages'.format(os.getenv('ROS_DISTRO'))) # NOQA import cv2 # NOQA sys.path.append('/opt/ros/{...
[ "shingogo@hotmail.co.jp" ]
shingogo@hotmail.co.jp
5e836e61951a7039eb57b3750d56a0af699f18e0
3222a9f99dc04eae93442f27a49259f2c74320a9
/uninas/optimization/hpo/pymoo/result.py
47419a410e3913b9d745d1848e1f86a11b62b3fa
[ "MIT" ]
permissive
Light-Reflection/uninas
55a754c997b6d7a48aa6ee93fc4f1211c9a35740
b5727308b48b2fe399cc9b5d5732f3f5fd913b35
refs/heads/main
2023-02-20T11:48:06.815664
2021-01-25T09:42:43
2021-01-25T09:42:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,557
py
import numpy as np import matplotlib.pyplot as plt from pymoo.performance_indicator.hv import Hypervolume from pymoo.model.result import Result from pymoo.optimize import minimize from uninas.utils.loggers.python import Logger, log_in_columns class SingleResult: def __init__(self, x: np.array, f: np.array, g: np....
[ "kevin.laube@uni-tuebingen.de" ]
kevin.laube@uni-tuebingen.de
15c2595fa02234f622223f3712ecc3c110661343
294a88c940d95b8810f5387f720d9ce006bb68c8
/获取请求参数.py
35d1c87dc5350516321f619b40be957242828231
[]
no_license
KingsleyDeng/PythonFlask
5bbd484cfbbe25854e112fd5e6ba89b02d472ee2
e5d35173636334500820d100e11c7e73a167dab4
refs/heads/master
2021-03-15T02:30:28.077495
2020-04-16T09:19:30
2020-04-16T09:19:30
246,817,283
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
# coding utf-8 # __author__:KingsleyDeng from flask import Flask, request app = Flask(__name__) @app.route("/indexs", methods=["GET", "POST"]) def index(): # request 中包含了前端发送过来的所有请求数据 # form和data是用来提取请求体参数 # request.form 可以直接提取请求体中的表单格式的数据 # 通过get方式只能拿到多个同名参数的第一个 name = request.form.get("name") ...
[ "460556933@qq.com" ]
460556933@qq.com
80485ce718500ca358be8d48737f12d0e00ff2f8
a4830a0189c325c35c9021479a5958ec870a2e8b
/routing/api/serializers.py
fa0faff2e2395300d719b22e0799136c9f3972b2
[]
no_license
solutionprovider9174/steward
044c7d299a625108824c854839ac41f51d2ca3fd
fd681593a9d2d339aab0f6f3688412d71cd2ae32
refs/heads/master
2022-12-11T06:45:04.544838
2020-08-21T02:56:55
2020-08-21T02:56:55
289,162,699
0
0
null
null
null
null
UTF-8
Python
false
false
6,379
py
# third party from rest_framework import serializers from rest_framework.reverse import reverse, reverse_lazy from rest_framework.serializers import raise_errors_on_nested_writes from rest_framework.utils import model_meta # local from routing import models class RecordSerializer(serializers.ModelSerializer): url...
[ "guangchengwang9174@yandex.com" ]
guangchengwang9174@yandex.com
452d304cd0cb7e229c461780f1c01c85f3b2c965
349f39b27a7c3157a1f3db65f35b96bcdb2f5919
/03/xx/07-sklearn/03-recommender/b-recommendation/pearson_score.py
02025c50814123b47e96f25d161de7074e4efb5a
[]
no_license
microgenios/cod
5f870c9cefbb80d18690909baa4c9d8b9be463c2
0805609cc780244c640963dc4c70052e3df57b4e
refs/heads/master
2022-12-08T20:10:11.742940
2020-02-29T10:37:10
2020-02-29T10:37:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
#!/usr/bin/python import json import numpy as np def pearson_score(dataset, user1, user2): # Returns the Pearson correlation score between user1 and user2 if user1 not in dataset: raise TypeError("User " + user1 + " not present in the dataset") if user2 not in dataset: raise TypeError("User "...
[ "githubfortyuds@gmail.com" ]
githubfortyuds@gmail.com
bbed1ebfc657a7bd31707d042032e151e0d8b263
b7125b27e564d2cc80a2ce8d0a6f934aa22c8445
/.history/display_board_20201108144538.py
8c3ab1d47bf55d8eb809b950e026da2567220fac
[]
no_license
JensVL96/Puzzle-solver-for-fun
4c15dcd570c3705b7ac555efb56b52913e81083c
6d8a4378a480372213a596a336a4deca727a00fc
refs/heads/master
2021-07-15T05:19:42.185495
2020-11-08T13:59:49
2020-11-08T13:59:49
224,855,888
1
0
null
null
null
null
UTF-8
Python
false
false
10,512
py
from config import * import pygame as pg class Display_board(): def __init__(self, screen): self.screen = screen self.font_num = pg.font.SysFont("comicsans", NUMBER_SIZE) self.font_cdt = pg.font.SysFont("comicsans", CANDIDATE_SIZE) def draw_val(self, val, x, y): text1 = self....
[ "jle040@uit.no" ]
jle040@uit.no
702d1ef1af4bc8885ca91c57de10eca08084906c
cccc9fa74b16cc4a2ae37dfb2449d6dc1ce215cd
/ontological_comparison/cluster/ranges-vs-binary/5.classification_framework.py
ab11325643f0b3c16a0b503df5f6907008eac16f
[]
no_license
nagyistge/brainmeta
611daf90d77432fa72a79b30fa4b895a60647536
105cffebcc0bf1c246ed11b67f3da2fff4a05f99
refs/heads/master
2021-05-30T06:44:40.095517
2016-01-11T23:21:50
2016-01-11T23:21:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,169
py
#!/usr/bin/python from glob import glob import numpy import pickle import pandas import os base = "/share/PI/russpold/work/IMAGE_COMPARISON/ONTOLOGICAL_COMPARISON" data = "%s/data" %base # mostly images scores_folder = "%s/individual_scores" %(data) # output folder for individual scores likelihood_pickles = g...
[ "vsochat@stanford.edu" ]
vsochat@stanford.edu
2f0773b8c5d46f6bd230c06c7196562bbf16b9e1
9e204a5b1c5ff4ea3b115ff0559b5af803ab4d15
/165 Compare Version Numbers.py
1f61ba3654b784b4d7c93411d075ff1403b616d0
[ "MIT" ]
permissive
Aminaba123/LeetCode
178ed1be0733cc7390f30e676eb47cc7f900c5b2
cbbd4a67ab342ada2421e13f82d660b1d47d4d20
refs/heads/master
2020-04-20T10:40:00.424279
2019-01-31T08:13:58
2019-01-31T08:13:58
168,795,374
1
0
MIT
2019-02-02T04:50:31
2019-02-02T04:50:30
null
UTF-8
Python
false
false
1,337
py
""" Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assume that the version strings are non-empty and contain only digits and the . character. The . character does not represent a decimal point and is used to separate num...
[ "zhangdanyangg@gmail.com" ]
zhangdanyangg@gmail.com
fffc07050ea3893fe210204e4620ee236ef47575
bc14b7d58665f813ec4ff160f63d972989bd9d33
/Hackerrank/Find_Digits.py
b5cac2f65b6d958dd26a5cc6312f6844fb8edd9f
[]
no_license
Dhrumil-Zion/Competitive-Programming-Basics
4f2a7dba7740c2b11c0739fa541d3f2fc651c01e
31d52f35ade0a99e32f933b37712654e025cb584
refs/heads/main
2023-05-31T23:19:58.159508
2021-07-05T17:45:32
2021-07-05T17:45:32
343,542,404
2
0
null
2021-05-26T14:13:50
2021-03-01T20:06:52
Python
UTF-8
Python
false
false
184
py
def findDigits(n): t=n c=0 while n!=0: temp = n%10 n=int(n/10) if temp ==0: continue if t%temp==0: c+=1 return c
[ "dhrumilg699@gmail.com" ]
dhrumilg699@gmail.com
e0347c43c947ac2e36a49b166a3a183a273c1f17
c29de7ce2d91f572aeb4da56801de7a1dc034054
/lds/lds/mnist/cnn_model_004.py
2f75bceb8d0da18df607934f36ec89e04a36dc75
[]
no_license
kzky/works
18b8d754bfc2b1da22022926d882dfe92ea785e6
b8708c305e52f924ea5a7071e0dfe5f2feb7a0a3
refs/heads/master
2021-01-10T08:04:44.831232
2018-03-01T15:09:47
2018-03-01T15:09:47
54,316,791
0
0
null
null
null
null
UTF-8
Python
false
false
8,149
py
"""Models Resnet Encoder and Decoder. The residual block consists of three convolutions. """ import numpy as np import chainer import chainer.variable as variable from chainer.functions.activation import lstm from chainer import cuda, Function, gradient_check, report, training, utils, Variable from chainer import data...
[ "rkzfilter@gmail.com" ]
rkzfilter@gmail.com
e0740789c350a5f1de0471f47487fe3b782556a5
3474b315da3cc5cb3f7823f19a18b63a8da6a526
/scratch/KRAMS/src/ibvpy/core/rtrace_eval.py
5e23d0423eb8c743c760e9158c686a89c459eee9
[]
no_license
h4ck3rm1k3/scratch
8df97462f696bc2be00f1e58232e1cd915f0fafd
0a114a41b0d1e9b2d68dbe7af7cf34db11512539
refs/heads/master
2021-01-21T15:31:38.718039
2013-09-19T10:48:24
2013-09-19T10:48:24
29,173,525
0
0
null
2015-01-13T04:58:57
2015-01-13T04:58:56
null
UTF-8
Python
false
false
1,796
py
from enthought.traits.api import Array, Bool, Callable, Enum, Float, HasTraits, \ Instance, Int, Trait, Str, Enum, Callable, List, TraitDict, Any, \ Dict, Property, cached_property, WeakRef, Delegate from enthought.traits.ui.api import Item, View, HGrou...
[ "Axel@Axel-Pc" ]
Axel@Axel-Pc
0130f25ca5518d95374b2a3401a3593824f8ed97
a2c90d183ac66f39401cd8ece5207c492c811158
/Solving_Problem/과제 스크립/동철이의 일 분배.py
8bf7ad523e7629e6c0c26ac7ac9ecaabc0ec2576
[]
no_license
kwoneyng/TIL
0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a
c6fbaa609b2e805f298b17b1f9504fd12cb63e8a
refs/heads/master
2020-06-17T11:53:38.685202
2020-03-18T01:29:36
2020-03-18T01:29:36
195,916,103
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
def find(flr=0, rs=1): global mx, n if flr == n : if rs > mx: mx = rs return 0 if rs <= mx: return 0 for i in range(n): if not vis[i]: vis[i] = 1 find(flr+1, rs*bd[flr][i]) vis[i] = 0 for T in range(int(input())): n...
[ "nan308@naver.com" ]
nan308@naver.com
187eca160dde7235ce4bbe8976e8f0277e668721
03615d7cde58bbddfc730995adbe0c77227dcef2
/ch9-blog-viewsets-routers/django_project/urls.py
fdad2dba7a7570deac95e7a910abbba45515bec6
[ "MIT" ]
permissive
wsvincent/restapiswithdjango
90afd007ad8878ebdaeebbfd159ce2b815f6d3a9
4a12e5289beeb00308f2d8ceefa343666fa11c05
refs/heads/master
2023-05-24T19:34:37.406604
2022-03-22T17:52:41
2022-03-22T17:52:41
129,749,663
416
153
MIT
2023-08-31T21:50:04
2018-04-16T13:41:43
JavaScript
UTF-8
Python
false
false
411
py
from django.contrib import admin from django.urls import include, path urlpatterns = [ path("admin/", admin.site.urls), path("api/v1/", include("posts.urls")), path("api-auth/", include("rest_framework.urls")), path("api/v1/dj-rest-auth/", include("dj_rest_auth.urls")), path( "api/v1/dj-re...
[ "will@wsvincent.com" ]
will@wsvincent.com
f3b4e5eeeb88564db6687904ed3257f8e14dd87b
5672737d1ff34bebfeb408426e52ed49df8be3bb
/graphgallery/attack/untargeted/pytorch/__init__.py
6d7db7f5b462049c7f29ea5e2e2f4bd0f6ab3c3c
[ "MIT" ]
permissive
sailfish009/GraphGallery
5063ee43340a6ca8da9f2d7fb3c44349e80321b2
4eec9c5136bda14809bd22584b26cc346cdb633b
refs/heads/master
2023-08-24T19:19:59.714411
2021-10-16T10:10:40
2021-10-16T10:10:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
from .metattack import Metattack from .pgd import PGD
[ "cnljt@outlook.com" ]
cnljt@outlook.com
c1766c6250a95ab43b20efc846afeef7dc1d4483
97aa1181a8305fab0cfc635954c92880460ba189
/caffe2/python/model_helper.py
a26bf844f2de39765cf696d501d74a83de3cfa67
[ "BSD-2-Clause" ]
permissive
zhujiang73/pytorch_mingw
64973a4ef29cc10b96e5d3f8d294ad2a721ccacb
b0134a0acc937f875b7c4b5f3cef6529711ad336
refs/heads/master
2022-11-05T12:10:59.045925
2020-08-22T12:10:32
2020-08-22T12:10:32
123,688,924
8
4
NOASSERTION
2022-10-17T12:30:52
2018-03-03T12:15:16
C++
UTF-8
Python
false
false
23,661
py
## @package model_helper # Module caffe2.python.model_helper from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, scope, workspace from caffe2.python.helpers.db_input import db_input from caf...
[ "zhujiangmail@hotmail.com" ]
zhujiangmail@hotmail.com
1baf81ac8088ea1dced86c42e60fa16eb6218d0b
6b9865a42a86c538cff987b3079da5b644137b37
/0x0D-python-almost_a_circle/models/square.py
ae2143a7039e2fc75c4b9f7cf23bdbcee70e5b7b
[]
no_license
zahraaassaad/holbertonschool-python
099072b0350f594adf30b47eb18fcdce0375546d
83d7d185f14f44ea4481538ab1e04463a9b62739
refs/heads/master
2023-01-09T03:34:48.082352
2020-11-20T17:54:05
2020-11-20T17:54:05
291,666,802
0
0
null
null
null
null
UTF-8
Python
false
false
1,500
py
#!/usr/bin/python3 """ This is a module for Square class. """ from models.rectangle import Rectangle class Square(Rectangle): """A square class.""" def __init__(self, size, x=0, y=0, id=None): """Initialize square class.""" super().__init__(size, size, x, y, id) def __str__(self): ...
[ "zahraa.asaad8@gmail.com" ]
zahraa.asaad8@gmail.com
350c96888ce439b1ab37f0968fc302796998be00
d2871878756ce2b4dbcfc538bcc0ba7a5900c769
/ODE/ode_oop/ode_class/function/functions.py
fe067edc0c41e0b6c4a626f9c08f65ff7735add1
[]
no_license
Ziaeemehr/cpp_workshop
75934095eb057d0643d0b59db3712e83fba053d6
5752356aa7aa571c107f2fa042332ebb04ad37f1
refs/heads/master
2022-01-18T18:51:29.398280
2022-01-03T14:10:35
2022-01-03T14:10:35
170,557,736
5
0
null
null
null
null
UTF-8
Python
false
false
14,591
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2, 6, 0): def swig_import_helper(): from os.path imp...
[ "a.ziaeemehr@gmail.com" ]
a.ziaeemehr@gmail.com
50dc2692084c7d3f075076afbc6f0c949da83d9b
32ccef68538ddb8e7aeb4c8958b5810ed9230fd7
/SQL.py
40c35a0112cadf2dc5fa4c01727a41c05500992a
[]
no_license
Vutsuak16/cricket_crawler
977cd778806ca8f2937da3aaecb072223e20c569
025f852768c1a1f720f0fcfdc259f54b3169b162
refs/heads/master
2021-01-10T15:22:58.454174
2015-12-30T14:15:52
2015-12-30T14:15:52
46,099,702
0
0
null
null
null
null
UTF-8
Python
false
false
5,993
py
__author__ = 'kasutuv' import MySQLdb def insert_db(data): try: conn = db = MySQLdb.connect("localhost","root","","cricket_crawler" ) cur = conn.cursor() data1,s,country,data2=modify(data) print data print s cur.execute( "CREATE TABLE IF NOT EXISTS cric_...
[ "vutsuak96@gmail.com" ]
vutsuak96@gmail.com
10e861e97fb393497526eeecdf883da17d4c4adf
22bf2e01d86dbb69efffc6e7365ac952f0692ac5
/tests/s3_spec.py
3ed4d75f0b5d62cb3d4d95b922aa7159b32dc9b4
[ "ISC" ]
permissive
uk-gov-mirror/dwp.dataworks-corporate-storage-coalescence
8da3f141601865de5fd2292834acef5e92a9a618
8b1c19874d55dffdd77a86a3a6e83217c4089a09
refs/heads/master
2023-03-28T21:34:30.679722
2021-04-12T16:45:12
2021-04-12T16:45:12
356,707,693
0
0
null
null
null
null
UTF-8
Python
false
false
4,585
py
import unittest from functools import reduce from unittest.mock import Mock, MagicMock, call, ANY from botocore.exceptions import ClientError from botocore.response import StreamingBody from utility.s3 import S3, s3_client class S3Spec(unittest.TestCase): def setUp(self): self.bucket = 'bucket' de...
[ "noreply@github.com" ]
uk-gov-mirror.noreply@github.com
9266fb8c63b4fbbc68441b1ae6b7faa657d25ca9
e13a648f8b431ca9d1a1daf0b7f5e7d387e0f1c2
/w1d2/03_fastcampus.py
39e3443a8b4f85474df90abb0ccd67275a72e10b
[]
no_license
firstock/data_camp_wcr
7a1a355929ce822f5c6a748652156850fab841fa
5724183fb1bac20f9f5ca98b95d67e35a91dab32
refs/heads/master
2020-03-08T13:21:17.506470
2017-12-09T01:34:47
2017-12-09T01:34:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
import requests from bs4 import BeautifulSoup as bs req = requests.get('http://www.fastcampus.co.kr/category_data_camp/') html = req.text soup = bs(html, 'lxml') # 이렇게 전부 써줄 수도 있지만 # lecture_list = soup.select( # '#page-section-6 > div.page-section-content.vc_row-fluid.mk-grid > ' # 'div.mk-padding-wrapper >...
[ "latheledusjp@gmail.com" ]
latheledusjp@gmail.com
79d002fabb504c286b851cc736422bbcefc17157
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5634697451274240_1/Python/jbryan/B.py
e9e36e04b058ba7c4625dc7929a20c6bad5aa7f5
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
766
py
from math import * from itertools import accumulate input_file = open('B-large.in.txt','r') raw_input = input_file.read() lines = raw_input.split('\n') num_cases = int(lines[0]) case_num = 1 output_text = '' output_file = open('B.txt','w') debug=0 ################### while case_num<=num_cases: cakes=lines[ca...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
65414c9a8923df74182a820f39f9309e7c3a36c5
80301f1cffc5afce13256e2ecab6323c5df00194
/en.fc/py/T3105.py
5a858704f83e459ee35e38a10acd718180042907
[]
no_license
ZhenjianYang/SoraVoiceScripts
c1ddf7c1bbcb933243754f9669bd6b75777c87b9
94a948090aba0f63b10b2c69dc845dc99c822fc4
refs/heads/master
2023-04-18T04:54:44.306652
2023-04-06T11:15:17
2023-04-06T11:15:17
103,167,541
43
11
null
2021-03-06T08:52:54
2017-09-11T17:36:55
Python
UTF-8
Python
false
false
95,918
py
from ED6ScenarioHelper import * def main(): SetCodePage("ms932") # 蔡斯 CreateScenaFile( FileName = 'T3105 ._SN', MapName = 'Zeiss', Location = 'T3105.x', MapIndex = 1, MapDefaultBGM = "ed60084", Flags ...
[ "zj.yang@qq.com" ]
zj.yang@qq.com
3052b18c72078d3049a7a7493df32914f60f7452
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2908/61519/254691.py
8524e718a75692e7ed55f02a3cb9d57579194c65
[]
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
242
py
num=int(input()) list1=[] for i in range(0,num): word=input() list1.append(word) for i in range(0,num): list1[i]=sotred(list1[i]) sorted(list1) out=1 for i in range(1,num): if list1[i]!=list1[i-1]: out=out+1 print(out)
[ "1069583789@qq.com" ]
1069583789@qq.com
5c96b58e262196b5db5709bda8f16d0841f77157
1abcd4686acf314a044a533d2a541e83da835af7
/backjoon_level_python/1182.py
9f82a17a948aac594e6209c5743d6fbbb5330ab1
[]
no_license
HoYoung1/backjoon-Level
166061b2801514b697c9ec9013db883929bec77e
f8e49c8d2552f6d62be5fb904c3d6548065c7cb2
refs/heads/master
2022-05-01T05:17:11.305204
2022-04-30T06:01:45
2022-04-30T06:01:45
145,084,813
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
answer = 0 # 29380KB, 728ms # def dfs1(depth, before_sum, before_idx): # global answer # # if depth != 0 and before_sum == S: # answer += 1 # # for idx in range(before_idx, N): # if visited[idx] is False: # visited[idx] = True # dfs(depth + 1, before_sum + numbers[i...
[ "empire1641@gmail.com" ]
empire1641@gmail.com
d688e8495bf49144f428d3e4467bcb2c91411bcd
45c142c3e3dc8d3211a86c77385ecfdd10d28fb9
/dstore/engine/procedures/pm_AlphabetizeCharacValues_Ad_pb2.py
4625e02b0b9f4434019d96529454a8cdbf8cd76b
[]
no_license
dstore-io/dstore-sdk-python
945d64995c8892af18fab26c90117245abec64a4
8494d12ac77c3c3cc6dd59026407ef514ad179fc
refs/heads/master
2020-06-14T13:07:08.181547
2017-01-26T11:19:39
2017-01-26T11:19:39
75,177,794
0
0
null
null
null
null
UTF-8
Python
false
true
9,398
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: dstore/engine/procedures/pm_AlphabetizeCharacValues_Ad.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message f...
[ "b.dolkemeier@dbap.de" ]
b.dolkemeier@dbap.de
eb347de9d326a8d909e87762c69e2c73016485c3
1d182c8cf1ce19019e0b1cba4a16ee1a2a49751e
/scripts/cornernet/demo_cornernet.py
62b247f95a35e38703776622b5d517394d78c8be
[ "MIT" ]
permissive
zxt881108/pytorch-cv
e30ac8638a8819b637c6bbef717f733264229126
6f2d1760f12c9a56a3e7b19ba74bc41451ea284c
refs/heads/master
2020-06-18T18:16:09.741626
2019-04-29T14:11:06
2019-04-29T14:11:06
196,396,348
5
0
null
2019-07-11T13:06:29
2019-07-11T13:06:28
null
UTF-8
Python
false
false
2,061
py
# TODO unfinish # import os # import sys # import argparse # import cv2 # import numpy as np # import matplotlib.pyplot as plt # import torch # # cur_path = os.path.dirname(__file__) # sys.path.insert(0, os.path.join(cur_path, '../..')) # from model.model_zoo import get_model # from utils.viz.bbox import plot_bbox # # ...
[ "tinyshine@yeah.net" ]
tinyshine@yeah.net
66586acab2e4ceb2137ca2e5476a3bb6afe4a3a8
3a6a211ea0d32405497fbd6486c490bb147e25f9
/third_party/gsutil/gslib/utils/rsync_util.py
fc9bd57cbb3aa86f53f3b9eadda5d7151f6c83f5
[ "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
1,885
py
# -*- coding: utf-8 -*- # Copyright 2018 Google Inc. 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 require...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
5d2fc932a1405456a7fe7ee2557687cb735578e7
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/uv_align_distribute/align_operations.py
268ccc7a769e354564ad48310b6c18c818a17cd2
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,366
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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; version 2 # of the License. # # This program is distributed in the hope that it will be useful, # bu...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
b57a86919dbcf8460279490a88f7f13eaf696b48
890b089c87b247cb06613530277c04d0eb6e3e91
/pymusas/taggers/rules/rule.py
e25d66e8ff1ccfb007bfe3e2225b150457e7f594
[ "Apache-2.0" ]
permissive
UCREL/pymusas
e5978a400f1bbe783dbda5c736fce2dd546f0416
2afc3e919f0ffb1de42fda169c18fa757db0307a
refs/heads/main
2023-09-03T15:52:38.396275
2023-08-17T22:34:46
2023-08-17T22:34:46
405,042,010
22
8
Apache-2.0
2023-05-10T13:15:59
2021-09-10T10:26:50
Python
UTF-8
Python
false
false
1,605
py
from abc import abstractmethod from typing import List from pymusas.base import Serialise from pymusas.rankers.ranking_meta_data import RankingMetaData class Rule(Serialise): ''' An **abstract class** that defines the basic method, `__call__`, that is required for all :class:`Rule`s. A Rule when cal...
[ "andrew.p.moore94@gmail.com" ]
andrew.p.moore94@gmail.com
85e9c06d68f300859300816e96de5d257ba51870
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_scurvy.py
1f76884d7d5e6a459982bd8304f7acafaa46dd20
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
#calss header class _SCURVY(): def __init__(self,): self.name = "SCURVY" self.definitions = [u'an illness of the body tissues that is caused by not having enough vitamin C'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [],...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
3584e07d9cf1564c26308f7c88978562513a52d7
28badfbfa1e1325ffb9da62e92e0b524e747f8e1
/48. Rotate Image/48.py
11c295917af85558d331f3ec875692967abe99c3
[]
no_license
saransappa/My-leetcode-solutions
b53fab3fc9bcd96ac0bc4bb03eb916820d17584c
3c5c7a813489877021109b152b190456cdc34de6
refs/heads/master
2021-08-16T13:52:33.230832
2021-07-30T11:54:06
2021-07-30T11:54:06
217,449,617
1
0
null
null
null
null
UTF-8
Python
false
false
426
py
class Solution: def rotate(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. """ ans = [] for i in range(len(matrix[0])): k = [] for j in matrix: k.append(j[i]) k ...
[ "saran.sappa@gmail.com" ]
saran.sappa@gmail.com
e349b49a91155b446788b8a00c135dc6f791b236
7a09af404f29389504742a3d5f1727bfbe562750
/TrekBot2_WS/build/uuid_msgs/catkin_generated/pkg.installspace.context.pc.py
c171e755d8e4801a98dbf8e963993060f3f8aa61
[ "MIT" ]
permissive
Rafcin/TrekBot
4baa2ed93b90920b36adba0b72384ac320d2de01
d3dc63e6c16a040b16170f143556ef358018b7da
refs/heads/master
2020-03-30T02:15:35.361254
2018-12-14T03:30:25
2018-12-14T03:30:25
150,622,252
1
0
null
null
null
null
UTF-8
Python
false
false
526
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/xavier_ssd/TrekBot/TrekBot2_WS/install/include;/usr/include".split(';') if "/xavier_ssd/TrekBot/TrekBot2_WS/install/include;/usr/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime;std_ms...
[ "Rafcin.s@gmail.com" ]
Rafcin.s@gmail.com
998a1bad65764646a0b50b6a81cff2971f680824
ba54b70f93fe7f9d114623d76b1ad3f88309d66f
/main/collectors/domofond.py
ab9dab05103947cb73249cca732a768fe042939b
[]
no_license
loobinsk/newprj
9769b2f26092ce7dd8612fce37adebb307b01b8b
c6aa6a46973fb46375f4b05a86fe76207a8ae16d
refs/heads/master
2023-05-07T00:28:44.242163
2021-05-25T08:22:05
2021-05-25T08:22:05
370,617,690
0
0
null
null
null
null
UTF-8
Python
false
false
25,409
py
#-*- coding: utf-8 -*- from lxml import html, etree from lxml.html import fromstring from lxml.html import tostring import requests import re from datetime import datetime import time import traceback from main.collectors.base import Collector from main.models import Town, Advert, UserImage, Blacklist, clear_tel, clear...
[ "root@bazavashdom.ru" ]
root@bazavashdom.ru
c4a83520a803ec589f6f377a1a6858de6f3607d7
0129b016055daa1aaa1e9e0911f271fa7b38e27e
/programacao_estruturada/20192_166/Bimestral2_166_20192/Parte_1/Laiane sousa/1questão.py
32ecce1262bb203d49e56e3d1df54d48d06e2537
[]
no_license
rogeriosilva-ifpi/teaching-tds-course
7c43ff17d6677aef7b42071929b3de8361748870
771ccdc4dc932d0ef5ce6ba61a02b5ee11920d4c
refs/heads/master
2022-04-04T01:08:45.157185
2020-01-30T19:36:57
2020-01-30T19:36:57
206,439,119
1
0
null
null
null
null
UTF-8
Python
false
false
342
py
def programa(): nota1 = input('Digite nota: ') nota2 = input('Digite nota: ') nota3 = input('Digite nota:') nota4 = input('Digite nota: ') media_escola = input('digite media') media = (nota1 + nota2 + nota3 + nota4) / 4 if media >= media_escola: return aprovado else: r...
[ "rogerio.silva@ifpi.edu.br" ]
rogerio.silva@ifpi.edu.br
e7680f7fe8adcd7d86910a0bf028f65b592e152a
904b4b7cd6b1709e9aded92737766a3b5a978838
/mult_naive_corr.py
64fb0afa069a3f25dfa64338cce179baf4d45034
[]
no_license
NicolasLagaillardie/Python
3ec7aa6eb21ffa86fad33060bb53e42cb7957dc9
a30037d688d8f11a195d7fa611347528c313d71b
refs/heads/master
2020-03-30T13:48:27.038592
2018-10-02T16:54:42
2018-10-02T16:54:42
151,288,608
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
def mult_naive_cor(poly1,poly2): c=[0 for i in range(0,len(poly1)+len(poly2)-1)] for i in range(0,len(poly1)): for j in range(0,len(poly2)): c[i+j]=c[i+j]+poly1[i]*poly2[j] return c
[ "lagaillardie.nicolas@live.fr" ]
lagaillardie.nicolas@live.fr
84078cae2e8fffe1e5f906bfa882e054f145980c
e6d862a9df10dccfa88856cf16951de8e0eeff2b
/VMS/provisioning/python-aiohttp/api_server/controllers/provisioning_controller.py
48fe6b4ef1c1144406318cebbad7dcd6558f9146
[]
no_license
AllocateSoftware/API-Stubs
c3de123626f831b2bd37aba25050c01746f5e560
f19d153f8e9a37c7fb1474a63c92f67fc6c8bdf0
refs/heads/master
2022-06-01T07:26:53.264948
2020-01-09T13:44:41
2020-01-09T13:44:41
232,816,845
0
0
null
2022-05-20T21:23:09
2020-01-09T13:34:35
C#
UTF-8
Python
false
false
1,073
py
from typing import List, Dict from aiohttp import web from api_server.models.structure_provision import StructureProvision from api_server.models.user_provision import UserProvision from api_server import util async def provision_structure(request: web.Request, id, body) -> web.Response: """provision_structure ...
[ "nigel.magnay@gmail.com" ]
nigel.magnay@gmail.com
86bca72dbf6f5a0ffed15d6f53116cc782bcc563
b9806499e8ae050fe1be511e19c8e48f441ca0ae
/cache_test.py
da73433cb3f3f9cc46ddd1aafbc4f845148e7f33
[]
no_license
renato145/sanic-test
9fc36c3df5a95d87ef6d6ae33f483b58329b99c0
0961109fa4413aabc124873bdbf3e8158454d675
refs/heads/master
2021-01-12T19:16:54.925620
2017-09-15T02:15:58
2017-09-15T02:15:58
81,355,354
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
import asyncio import aioredis from time import time from sanic import Sanic from sanic.response import text app = Sanic(__name__) loop = None redis = None async def init(sanic, _loop): global loop global redis loop = _loop redis = await aioredis.create_redis(('localhost', 6379), loop=loop) @app.rout...
[ "renato145@hotmail.com" ]
renato145@hotmail.com
6ff5e05f78cf6526867df884061e44b5d80a591e
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=93/sched.py
a3740e38f901709b5d26464ba2f889af2c75b968
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
-S 0 -X RUN -Q 0 -L 2 79 250 -S 1 -X RUN -Q 0 -L 2 67 250 -S 0 -X RUN -Q 0 -L 2 61 200 -S 0 -X RUN -Q 0 -L 2 54 175 -S 4 -X RUN -Q 1 -L 1 53 300 -S 4 -X RUN -Q 1 -L 1 46 175 -S 4 -X RUN -Q 1 -L 1 45 200 -S 4 -X RUN -Q 1 -L 1 40 300 -S 3 -X RUN -Q 2 -L 1 38 400 -S 3 -X RUN -Q 2 -L 1...
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
c641795fd34a5bd1003b3220cfb8746843f598fb
28e8ab381a8c1b4321cd83acff6aa33468166d6b
/python3.4Smartforest/lib/python3.4/site-packages/django/conf/locale/eo/formats.py
ff19360b76b2c00bf62746598f20706d7a9912b5
[ "MIT" ]
permissive
letouriste001/SmartForest_2.0
343e13bc085d753be2af43aecfb74a5fffaa5e3b
109b78bf1e8c8404800f377ab969395ccbb617be
refs/heads/master
2020-12-21T16:54:22.865824
2016-08-11T14:17:45
2016-08-11T14:17:45
59,734,259
0
0
null
null
null
null
UTF-8
Python
false
false
2,335
py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = r'j\-\a \d\e F Y' # '26-a ...
[ "aubert.christophe.pro@gmail.com" ]
aubert.christophe.pro@gmail.com
5c9b17fd1062662ce49999d4b63af1224c5a5139
9b79dc0b4b2f13dea85a1d29177e5eb266b6e7f7
/var/lib/python-support/python2.6/rdflib/sparql/bison/PreProcessor.py
5f80194bada345f831acfd8e48b6b53b84861647
[]
no_license
haniokasai/netwalker-rootfs
0bc87efc0ae478338b6326fd9118befcbcc5cd06
d08f7bf370a82b6970387bb9f165d374a9d9092b
refs/heads/master
2021-01-10T11:04:34.436513
2016-01-12T06:09:50
2016-01-12T06:09:50
36,504,146
2
1
null
null
null
null
UTF-8
Python
false
false
75
py
/usr/share/python-support/python-rdflib/rdflib/sparql/bison/PreProcessor.py
[ "htek@haniokasai.com" ]
htek@haniokasai.com
65bb5288f6ead36cafd9eaf032a06b362dd1f7fb
a281d09ed91914b134028c3a9f11f0beb69a9089
/great_expectations/core/expectation_configuration.py
971a8d63fb9ab06dc2f8732758e03598c757a162
[ "Apache-2.0" ]
permissive
CarstenFrommhold/great_expectations
4e67bbf43d21bc414f56d576704259a4eca283a5
23d61c5ed26689d6ff9cec647cc35712ad744559
refs/heads/develop
2023-01-08T10:01:12.074165
2022-11-29T18:50:18
2022-11-29T18:50:18
311,708,429
0
0
Apache-2.0
2020-11-10T15:52:05
2020-11-10T15:52:04
null
UTF-8
Python
false
false
57,466
py
from __future__ import annotations import copy import json import logging from copy import deepcopy from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union import jsonpatch from marshmallow import Schema, ValidationError, fields, post_dump, post_load from pyparsing import ParseResults from great_expectati...
[ "noreply@github.com" ]
CarstenFrommhold.noreply@github.com
55743a73e88bf0e11f5b2e0fa31f1544b5e2a1de
8fc2ab3d29a30e603e19b30bb9517928de529167
/BFS.py
d62fa20aa9eb7a17b0a83d2a8afc67a255daff76
[]
no_license
rushilchugh/Practise
35a9861bec6786580dc0a440eb25d78e43cb7bc9
98fd593b95dad641bef1d519c6c6ed1daaae630f
refs/heads/master
2020-03-13T21:14:14.013604
2018-04-27T12:23:50
2018-04-27T12:23:50
131,291,684
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
__author__ = 'Rushil' from Code2.graphs import adj_list def BFS(adj_list, S): parent = {S: None} level = {S: 0} i = 1 nodes_to_visit = [S] while nodes_to_visit: next_nodes = [] for u in nodes_to_visit: neighbors = adj_list[u] for v...
[ "noreply@github.com" ]
rushilchugh.noreply@github.com
7d76263797bee0fc78ec2a6dac5d090721a25371
4c0328c7fa7805cdd196cf890695ec1a8a438a5f
/devel/lib/python2.7/dist-packages/pal_navigation_msgs/srv/_SafetyZone.py
f9c797e60943901e9fe13a45dcffd0bfa454b731
[]
no_license
SebsBarbas/iRob_KTH
d98dfce8692bdd4d32ce3a4d72daa8d022976c0a
c164c9d12efcab56b4871fc5bb5538df5849a42e
refs/heads/main
2023-01-23T10:49:59.073113
2020-12-04T18:49:53
2020-12-04T18:49:53
318,595,723
0
0
null
null
null
null
UTF-8
Python
false
false
10,079
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from pal_navigation_msgs/SafetyZoneRequest.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class SafetyZoneRequest(genpy.Message): _md5sum = "269cbb74525b0bd07e71e2ec94...
[ "ssbl@kth.se" ]
ssbl@kth.se
b0cfd0335feb733dd26d296aaeeb8f6e927a5dc3
6a63a3b241e161d1e69f1521077617ad86f31eab
/python/ray/tune/tests/test_sample.py
7fbeffd846b61385f4368447b8874c223471f451
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
jovany-wang/ray
47a9df67e8ea26337517d625df50eb0b8b892135
227aef381a605cb1ebccbba4e84b840634196a35
refs/heads/master
2023-09-03T23:53:00.050619
2022-08-20T21:50:52
2022-08-20T21:50:52
240,190,407
1
1
Apache-2.0
2023-03-04T08:57:04
2020-02-13T06:13:19
Python
UTF-8
Python
false
false
73,246
py
""" If you ever run into issues like https://gist.github.com/xwjiang2010/13e6df091e5938aff5b44769bec8ffb8, change your pytest running directory to ray/python/ray/tune/tests/ """ from collections import defaultdict from unittest.mock import patch import numpy as np import unittest import ray import ray.tune.search.sa...
[ "noreply@github.com" ]
jovany-wang.noreply@github.com
82a9dd120753f5851366c83fce712240441c5ca5
3fb0ce33f00b96ae3808a32da44de3e887434afb
/.提出一覧/AtCoder/abc182/c/main.py
c11d5278fa03a2153f4e29ca8f88f439d4aa3e09
[]
no_license
Yukikazari/kyoupuro
ca3d74d8db024b1988cd0ff00bf069ab739783d7
343de455c4344dbcfa4524b492f7f6205c9db26f
refs/heads/master
2023-02-21T01:53:52.403729
2021-01-27T03:55:01
2021-01-27T03:55:01
282,222,950
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
#!/usr/bin/env python3 #import #import math #import numpy as np #= int(input()) N = input() dic = {i: 0 for i in range(3)} for n in N: nn = int(n) dic[nn % 3] += 1 t = (dic[1] + dic[2] * 2) % 3 if t == 0: print(0) elif len(N) > 1 and t == 1 and dic[1] > 0: print(1) elif len(N) > 1 and t == 2 and dic...
[ "haya_nanakusa793@yahoo.co.jp" ]
haya_nanakusa793@yahoo.co.jp
f52d7c5cd77ef629f03ff51153d8f00534c6303e
562d4bf000dbb66cd7109844c972bfc00ea7224c
/addons-clarico/clarico_customer_carousel/__manifest__.py
fc405b4009c00a937f09251d4ac642c8ca63d450
[]
no_license
Mohamed33/odoo-efact-11-pos
e9da1d17b38ddfe5b2d0901b3dbadf7a76bd2059
de38355aea74cdc643a347f7d52e1d287c208ff8
refs/heads/master
2023-03-10T15:24:44.052883
2021-03-06T13:25:58
2021-03-06T13:25:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
678
py
{ # Theme information 'name' : 'Clarico Customer Carousel', 'category' : 'Website', 'version' : '1.0', 'summary': 'Showcase your Customers using clarico Customer Carousel', 'description': """""", # Dependencies 'depends': [ 'clarico_carousel','clarico_snippets' ], # Vie...
[ "root@vmi414107.contaboserver.net" ]
root@vmi414107.contaboserver.net
1b4b74da262ce3b8d32231582e15ae363e57dbf0
3d8aae8aa43e0fbd8a8cffc4fa2cd67419059d66
/module_PyQt/tech_lecture_codetorial/ex510/ex516_QDateEdit.py
a3d7f7f22fdec26289d7bcf1ec40d3f62df26fcd
[]
no_license
onitonitonito/k_mooc_reboot
b8273b7e9fa3fc5958bca57c39f2f3a9108964f1
68c8c6a94adc99005fb0fc8c38c416f902d37888
refs/heads/main
2021-07-21T22:32:26.080330
2021-07-04T02:22:08
2021-07-04T02:22:08
109,581,972
0
0
null
2020-05-05T22:28:26
2017-11-05T13:30:03
Python
UTF-8
Python
false
false
1,573
py
""" # Ex 5.16_QDateEdit.py - SpinBox to Edit Date http://codetorial.net/pyqt5/widget/qdateedit.html """ # https://doc.qt.io/qt-5/qdateedit.html # ... # - QCalendarWidget # - QSpinBox # - QDoubleSpinBox # - QDateEdit * # - QTimeEdit # - QDateTimeEdit # - QTextBrowser # - QTextBrowser (Advanced) # - QTextEdit p...
[ "nitt0x0@gmail.com" ]
nitt0x0@gmail.com
e8967149ac768480655eb91b081ef04ccc4b7543
3d7aa41fc75257173cbd89d8999340bfd8e870d8
/hw3/PLot_Bottom_Frames.py
63542292bf9059c469a2147c61081e523a377a2c
[]
no_license
nbren12/numerical_methods2
eeadc6be2b957bada39f59af30ab8a2393c1f2b0
5223ced886ed54a49d5860d707012ef2fd71f4e6
refs/heads/master
2021-01-10T19:38:45.660122
2014-05-13T21:18:20
2014-05-13T21:18:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,316
py
# Python 2.7.x file for Assignment 3 of Numerical Methods II, Spring 2014 # http://www.math.nyu.edu/faculty/goodman/teaching/NumericalMethodsII2014/index.html # The author gives permission for anyone to use this publically posted # code for any purpose. The code was written for teaching, not research # or commercia...
[ "nbren12@gmail.com" ]
nbren12@gmail.com
588262143c5c81fa4413ec3ec3571683457ed78c
d063684dd03293eb0f980568af088d26ab087dbe
/debadmin/migrations/0104_states.py
3db4e98a7fdda2ed70782791263b560a2d5237cd
[]
no_license
abhaysantra/debscientific
ce88e5ef44da8d6771c3652ed0ad02900ccd8ed2
88ec65616fd24052bbdbba8b00beba85493f5aea
refs/heads/master
2020-11-26T22:09:33.820247
2019-12-20T07:58:43
2019-12-20T07:58:43
229,213,810
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
# Generated by Django 2.2.6 on 2019-12-09 12:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('debadmin', '0103_countries'), ] operations = [ migrations.CreateModel( name='states', fields=[ ...
[ "abhay.santra@gmail.com" ]
abhay.santra@gmail.com
48f7bc44719da8793806c54089dc465262a30f40
09ae6b04c4bb7c8f725c37b187cfe63937ace7cd
/src/eventhubs/azext_eventhub/eventhub/version.py
36d453c94947b1ba771e08312a256e2d1ffb0684
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
elastacloud/azure-cli-extensions
4a4c57c6db4f15d8f7dfd7322bfed6a72734db81
543252eb78107a98e22dcf9fdb64ab1e5887bf9f
refs/heads/master
2020-03-08T04:36:11.206331
2018-03-15T21:39:19
2018-03-15T21:39:19
127,926,842
0
1
null
2018-04-03T15:10:33
2018-04-03T15:10:33
null
UTF-8
Python
false
false
492
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "debekoe@microsoft.com" ]
debekoe@microsoft.com
f2d6047367dda9b27db1c899a7cadc60f883e2f6
6cf82bbb8c17bdede1951856494949486aead76c
/Chapter_04/src/04_stringslice.py
71038a43f6e1835ce465ff75ec748028a68f86b3
[]
no_license
archeranimesh/DiveIntoPython03
db8449c319e8dcbf0770d8514c4a3bb1f7f7c042
8753427fca99db130d76131800480b50c2bc25c8
refs/heads/master
2021-01-21T19:39:28.919800
2017-06-05T10:03:52
2017-06-05T10:03:52
92,146,145
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
a_string = "My alphabet starts where your alphabet ends." print("a_string:: ", a_string) print("a_string[3:11]: ", a_string[3:11]) print("a_string[3:-3]: ", a_string[3:-3]) print("a_string[0:2]: ", a_string[0:2]) print("a_string[:18]: ", a_string[:18]) print("a_string[18:]: ", a_string[18:])
[ "animeshb@archerimagine.com" ]
animeshb@archerimagine.com
99deb50dd9a7a80a26654a5d26fabac2f313f656
e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67
/azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/web/models/vnet_info.py
9df73b4a463b71c766423675621007237a5f1a1d
[ "MIT" ]
permissive
EnjoyLifeFund/macHighSierra-cellars
59051e496ed0e68d14e0d5d91367a2c92c95e1fb
49a477d42f081e52f4c5bdd39535156a2df52d09
refs/heads/master
2022-12-25T19:28:29.992466
2017-10-10T13:00:08
2017-10-10T13:00:08
96,081,471
3
1
null
2022-12-17T02:26:21
2017-07-03T07:17:34
null
UTF-8
Python
false
false
2,406
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "Raliclo@gmail.com" ]
Raliclo@gmail.com
bedb3ee139e556e1e6b6f28508af6fbeb04ba3f6
901944f407f4a06a4c4027d6139ce21165976857
/Variational_Inference/correlated_samples/distribution_approx.py
247232f221b2e90e53bb95997f2ce85e766b00a4
[]
no_license
chriscremer/Other_Code
a406da1d567d63bf6ef9fd5fbf0a8f177bc60b05
7b394fa87523803b3f4536b316df76cc44f8846e
refs/heads/master
2021-01-17T02:34:56.215047
2020-05-26T13:59:05
2020-05-26T13:59:05
34,680,279
7
4
null
null
null
null
UTF-8
Python
false
false
7,984
py
import numpy as np import torch from torch.autograd import Variable import torch.optim as optim import torch.nn as nn import torch.nn.functional as F import matplotlib.pyplot as plt import math def plot_isocontours(ax, func, xlimits=[-6, 6], ylimits=[-6, 6], numticks=101, cmap=None, alpha=...
[ "chris.a.cremer@gmail.com" ]
chris.a.cremer@gmail.com
a651261ed93cdd2601148a23c41040636ad51445
c571c0ae641eb5b2e8b87a77be4c8180e21846f6
/prompt_toolkit/contrib/regular_languages/validation.py
7dbd4e59f4002c75f7227d38a673fcb939d22ae4
[]
no_license
RyannDaGreat/rp
e3f5feec809b3bee3fd9d514ac0d0debe02a582e
c269bbf02bec92ef109096c6cd83a9fd90f4250c
refs/heads/master
2023-08-09T13:27:23.370148
2023-08-05T08:36:32
2023-08-05T08:36:32
225,253,287
4
0
null
null
null
null
UTF-8
Python
false
false
2,065
py
""" Validator for a regular langage. """ from __future__ import unicode_literals from rp.prompt_toolkit.validation import Validator, ValidationError from rp.prompt_toolkit.document import Document from .compiler import _CompiledGrammar __all__ = ( 'GrammarValidator', ) class GrammarValidator(Validator): ""...
[ "sqrtryan@gmail.com" ]
sqrtryan@gmail.com
187cb0f9510dcae98801879866fdeac69464ef56
493c81d7ab8cec7b5d5db5e4b0ecc8684d582f02
/[03]신경망/01_activation function/01_step-function.py
5eaff997904914eb37f54ef58a430f348d89d4b2
[]
no_license
PresentJay/Deep-Learning-from-Scratch
874b55069d338070f1e9f79233c1c4105839ef99
5a5f37f9fbd185c6770e0656f72b69c2ffb0b959
refs/heads/master
2023-02-10T15:40:17.776379
2021-01-12T11:58:45
2021-01-12T11:58:45
326,636,580
0
0
null
null
null
null
UTF-8
Python
false
false
1,109
py
import numpy as np import matplotlib.pylab as plt def step_function(x): # if you implement like below code, you can't use numpy object. """ if x>0: return 1 else: return 0 """ # then, you can make it like this below code. y = x > 0 # numpy array's inequality ope...
[ "presentj94@gmail.com" ]
presentj94@gmail.com
b6af520251bdbeabdc1142f4b453573dfd5fe4c3
ea731d7a1d51da390452bee08f1c941ca8fab432
/backend/base/serializers.py
32b4aa8caff736e9f6693d6f54480344f0f32881
[ "MIT" ]
permissive
omar115/ecommerce-django-react
007575905af2c78880e4ccd71026572907f82481
551b99dcdc9c014b1f9bc76555c0463116b61975
refs/heads/main
2023-04-07T12:52:07.607948
2021-04-05T19:58:23
2021-04-05T19:58:23
346,705,168
0
0
MIT
2021-04-06T22:16:44
2021-03-11T13:07:32
Python
UTF-8
Python
false
false
375
py
from django.db import models from django.db.models import fields from rest_framework import serializers from django.contrib.auth.models import User from .models import Product class ProductSerializer(serializers.ModelSerializer): class Meta: model = Product #Product model to serialize fields =...
[ "omarhasan115@gmail.com" ]
omarhasan115@gmail.com
8091a505803238ba469903f562743ed60ffd2652
2ffc147f67ab5dab745b4a33c55c515f456dcffd
/planegeometry/structures/quadtree.py
3bb2bc3644649429478e6f94dcdd8b6cb40ba0da
[ "BSD-3-Clause" ]
permissive
ufkapano/planegeometry
f2cc637ab53085adeeb38e5dd54697cc1a809bd9
93417f2de3ec1694b5a63b1d77b96138bf8db20d
refs/heads/master
2023-05-28T05:31:58.674598
2023-04-29T07:57:32
2023-04-29T07:57:32
223,356,276
1
0
null
null
null
null
UTF-8
Python
false
false
5,692
py
#!/usr/bin/env python3 class QuadTree: """The class defining a quadtree. https://en.wikipedia.org/wiki/Quadtree """ def __init__(self, rect, capacity=4): """Make a quadtree.""" self.rect = rect # area for points self.capacity = capacity self.point_list = [] ...
[ "andrzej.kapanowski@uj.edu.pl" ]
andrzej.kapanowski@uj.edu.pl
1a67ab4b5d557d027babb9feb13a7571a4ebfa74
bfd2e76748334eaabcd00b984eb91bfe884f76b2
/tests/testPixelTransformer.py
6a5b2c6595c28a4b4449c8ce6acd8e17b3e0c67e
[]
no_license
rmjarvis/sims_coordUtils
52ae427bcee66a3bacd3f047c67ea97b54b7ea2a
567e106573fa4239a4435782a881f3786cc9daf0
refs/heads/master
2020-03-31T11:38:49.229751
2018-10-03T23:19:30
2018-10-03T23:19:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,307
py
import unittest import numpy as np import lsst.utils.tests from lsst.sims.coordUtils import DMtoCameraPixelTransformer from lsst.sims.coordUtils import lsst_camera from lsst.sims.coordUtils import pupilCoordsFromPixelCoords from lsst.afw.cameraGeom import FOCAL_PLANE, PIXELS def setup_module(module): lsst.utils....
[ "scott.f.daniel@gmail.com" ]
scott.f.daniel@gmail.com
2e3afb6b03f2e8a1cfc4eb67adf3e2fe3bca3d37
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03993/s616663731.py
edeacf223eb393ec2250d3db413f2e353a68d1d3
[]
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
175
py
import numpy as np n = int(input()) a = list(map(int, input().split())) a = np.array(a) - 1 ans = 0 for i in range(n): if a[a[i]] == i: ans += 1 print(ans // 2)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
53a42978bfc72e7751bf3b8189a7e5db3afc19f5
9b78bc34a80e4137da15648b094196bfce144091
/Pantallas/Calidad/editarTrabajosControlados.py
c6198d8c709b1fc600ad2492389339226213c16a
[]
no_license
AlemFernandez786/Scabox
a3cb3bc16e0bcc95dda7671c19ca9b2fab11247e
733efd788451b2ce914a5773f71789fbe246d027
refs/heads/master
2022-03-02T05:27:39.097097
2019-11-07T22:52:33
2019-11-07T22:52:33
202,450,306
0
0
null
null
null
null
UTF-8
Python
false
false
2,601
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'editarTrabajosControlados.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): ...
[ "gustavorojas.1403@gmail.com" ]
gustavorojas.1403@gmail.com
d0e8c346e451f2d2b6b3573672539c8a00f7a4a0
c804db17b29c5929c87768b7fa6ebb28f937fc36
/eu113.py
2ba92551724e93eaa87233d85e67ca78414998e6
[]
no_license
ishandutta2007/ProjectEuler-2
a1f07329fd895828e740d0cf71b0b0a4de261b4c
29265e4e3dccc67d05ef8d6129363cea1705d970
refs/heads/master
2023-03-17T03:19:35.220761
2019-04-18T13:39:40
2019-04-18T13:39:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,882
py
# ----------------------------------------- Non-bouncy numbers ------------------------------------------------ # # # # Working from left-to-right if no digit is exceeded by the digit to its left it is ca...
[ "roee.sefi@gmail.com" ]
roee.sefi@gmail.com
d004cdebc1cd29616ee134f510b0518b84309611
df0c4875b45e68c106dd1e2ba397f71a10794327
/src/pifetcher/data_fetchers/base_data_fetcher.py
0a6335f0d499280ebf6b6e68c65a7af2f3e268a1
[ "MIT" ]
permissive
gavinz0228/pifetcher
c28b407cf4965852af67ffe619a55ee90fa49a72
c8419ae153eefed04e0e8b239cf1a9226fa91c29
refs/heads/master
2021-07-04T20:26:41.973408
2020-11-22T16:57:38
2020-11-22T16:57:38
203,682,327
1
0
null
2019-08-24T17:04:59
2019-08-22T00:06:58
Python
UTF-8
Python
false
false
3,381
py
import json from abc import ABC, abstractmethod from os import path, getcwd, get_exec_path from bs4 import BeautifulSoup from pifetcher.core import Config from pifetcher.utilities import DataUtils, SysUtils from selenium import webdriver from selenium.webdriver.chrome.options import Options from sys import pl...
[ "gavinz0228@gmail.com" ]
gavinz0228@gmail.com
6804348abdbb9c1e0f2db1fb04909833732d0d9b
3f84f51751c4191bb81c9df7094578461fb12a2d
/AtcoderProblems/ABC/ABC144/A.py
3f078cee2e43f9833180838fad98b7f603acc1bd
[]
no_license
rikukawamura/atcoder
7ff49f1bd8534b99d87fe81ef950e1ba77eee8b8
09c0cfe3ce25be56d338614a29e996f4106117cd
refs/heads/master
2023-08-13T21:21:19.058219
2021-09-28T10:02:42
2021-09-28T10:02:42
329,206,601
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
def int_sp(): return map(int, input().split()) def li_int_sp(): return list(map(int, input().split())) def trans_li_int_sp(): return list(map(list, (zip(*[li_int_sp() for _ in range(N)])))) import pdb A, B = int_sp() if 1<= A <= 9 and 1<= B <= 9: print(A*B) else: print(-1)
[ "49993650+rikukawamura@users.noreply.github.com" ]
49993650+rikukawamura@users.noreply.github.com
0cd50a67a458d0e8860a4e3d42b10ed10e8c8ede
aad9c55e42eeda22bdee2148f0fbc00bf2a3083f
/curly/utils.py
b9a6a16ae55b525e6be717a4ad5e873fa00fcefa
[ "MIT" ]
permissive
9seconds/curly
38c7799987bc36eee3413fdad0992432139eb3f5
b948f96001d25a866d1acdfe91f8bc48684fc1d1
refs/heads/master
2020-12-31T00:11:57.940075
2017-05-16T07:43:01
2017-05-16T07:43:01
86,548,765
4
0
null
null
null
null
UTF-8
Python
false
false
4,738
py
# -*- coding: utf-8 -*- """A various utilities which are used by Curly.""" import re import shlex import textwrap from curly import exceptions def make_regexp(pattern): """Make regular expression from the given patterns. This is just a trivial wrapper for :py:func:`re.compile` which sets a list of def...
[ "nineseconds@yandex.ru" ]
nineseconds@yandex.ru
b27fb6b963dea24cc58d5e13a59c6b34dcad9971
12ff124f0689134f393714e97849c3d1d44db91c
/Chapter2_面试需要的基础知识/08_二叉树的下一个节点.py
33c354b09f872350aa6adff0e37fe9e95cd045a7
[]
no_license
yuanyuanzijin/Offer-in-Python
8a596150c6bf09db7eb38b0aaedf064385795c55
b70bdc3855c37d3212f95261778a7eb389a9bded
refs/heads/master
2020-03-25T06:56:51.724102
2018-10-08T14:30:11
2018-10-08T14:30:11
143,533,492
6
1
null
null
null
null
UTF-8
Python
false
false
1,103
py
## 题目描述:给定一个二叉树和其中的一个结点,请找出中序遍历顺序的下一个结点并且返回。注意,树中的结点不仅包含左右子结点,同时包含指向父结点的指针。 ## 如果有右子树,则为右子树的最左子节点,否则看下一条 ## 如果该节点没有父节点(即为根节点),则没有结果,否则看下一条 ## 如果该节点是父节点的左子节点,则为它的父节点,否则看下一条 ## 逐层向上,直到当前节点为父节点的左子节点时,得到答案,答案为它的父节点 class Solution: def GetNext(self, pNode): # write code here if pNode.right: p...
[ "jinluyuan@vip.qq.com" ]
jinluyuan@vip.qq.com
25742688bc397ae683ac98b742ff7858432c6cbb
97c79f584f8378622cb0c9744409bc5816a86ac4
/encoder-decoder-train_4.py
aa246765ae87f2b3f11e3f18ab58ec27efcfdf3b
[ "MIT" ]
permissive
kapitsa2811/uTAB
2e5178ca9c5d0a77dce177af4c21ec503db6f855
5915c43db521575693181bc040cebce2f10c1158
refs/heads/master
2020-06-11T01:26:20.078151
2019-09-02T13:45:16
2019-09-02T13:45:16
193,815,381
0
0
null
null
null
null
UTF-8
Python
false
false
9,668
py
''' This basic code works well for text segmentation for images Input for this code are entite images containing text and segment to experiment with sliding window new copy of it created encoder-decoder-train_5.py to experiment with architecure newly created copy is encoder-decoder-train_6.py ''' import numpy as ...
[ "noreply@github.com" ]
kapitsa2811.noreply@github.com
bcc02a3496045361f8febc0a20d5984a92971168
58a82d4b72e8c83d8c93a3d3639aa65fbdc9fcbd
/BCPrompt/bc_command_dispatch.py
4c160634346799346ef82d0593aa85fefd985f95
[]
no_license
8Observer8/myblendercontrib
4de9b880da56a909b3da19c732e32557ab48400b
71aa26457c50622cf5646a7aa39fbe11491f3e7b
refs/heads/master
2021-01-15T15:33:13.133667
2015-10-14T15:38:48
2015-10-14T15:38:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,975
py
import bpy from console_python import add_scrollback, get_console from .bc_package_manager import in_bpm_commands from .bc_utils import ( set_keymap, vtx_specials, test_dl_run, remove_obj_and_mesh, github_commits, get_sv_times, get_sv_times_all, bcp_justbrowse, throw_manual, center...
[ "Develop@Shaneware.Biz" ]
Develop@Shaneware.Biz
3e785713fdee8ab7744bc783f0f19b46996e77f8
220dd5d666b85b716d5762097fb2d320bb8587fd
/sorting_searching/sorted_matrix_search.py
e352e0533bbef86772fb240750ae70fc0cc77025
[]
no_license
bensenberner/ctci
011946a335396def198acaa596d2b5902af7b993
1e1ba64580ee96392c92aa95904c4751e32d4e30
refs/heads/master
2021-01-10T14:09:01.698323
2020-09-06T04:17:53
2020-09-06T04:17:53
45,659,115
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
""" Naive solution: [] """ def binary_search(arr, element): n = len(arr) low_idx, exclusive_end_idx = 0, n while low_idx < exclusive_end_idx: mid_idx = (low_idx + exclusive_end_idx) // 2 if arr[mid_idx] == element: return mid_idx if arr[mid_idx] > element: e...
[ "benlerner95@gmail.com" ]
benlerner95@gmail.com
5a3ca236bb270b1fe715053250bbb4573e5d9fb5
ad4299d34d75f4cf346c08d1971fff0555923b7a
/test/test_by_primary_type_facet.py
79d2acce745d3cfb12ae719c3bde54c05832e7b8
[ "MIT" ]
permissive
nodeum-io/nodeum-sdk-python
16ab0b4e6dcff05c4a06829d263d27f3b66a41be
205536491bff507dea7be44af46202c17e7121d9
refs/heads/master
2021-07-13T19:38:24.863671
2020-09-01T09:56:30
2020-09-01T09:56:30
201,425,025
0
0
null
null
null
null
UTF-8
Python
false
false
4,823
py
# coding: utf-8 """ Nodeum API The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http...
[ "thomas.chandelle@mt-c.com" ]
thomas.chandelle@mt-c.com
ed5715285f59c0db0247a1e1127c5cc98bf8e867
77311ad9622a7d8b88707d7cee3f44de7c8860cb
/res_bw/scripts/common/lib/idlelib/run.py
232e77394c13361a7caa7753b0e1d0eadb3dbccd
[]
no_license
webiumsk/WOT-0.9.14-CT
9b193191505a4560df4e872e022eebf59308057e
cfe0b03e511d02c36ce185f308eb48f13ecc05ca
refs/heads/master
2021-01-10T02:14:10.830715
2016-02-14T11:59:59
2016-02-14T11:59:59
51,606,676
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
11,577
py
# 2016.02.14 12:48:34 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/idlelib/run.py import sys import io import linecache import time import socket import traceback import thread import threading import Queue from idlelib import CallTips from idlelib import AutoComplete from idlelib import RemoteDe...
[ "info@webium.sk" ]
info@webium.sk
44a0a7a2d59f68b12f7c533e6a8135a889d87e6e
148ba38e84919b7a44fa193e2899993051fdb542
/commands/request_history.py
7385cf62688df39fd67b53ce86f58df78d11cf3c
[ "MIT" ]
permissive
igor-kupczynski/Requester
e8e76f8f421558638439083d4863445d3b6ad5db
93fd2673cf69a97b0e0d49a2411abe6148326f41
refs/heads/master
2022-03-05T21:10:59.099429
2019-11-12T14:06:58
2019-11-12T14:06:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,857
py
import sublime import sublime_plugin import os import json from time import time from urllib import parse from collections import OrderedDict from ..core.helpers import truncate def load_history(rev=True, as_dict=False): """Returns list of past requests. Raises exception if history file doesn't exist. "...
[ "kylebebak@gmail.com" ]
kylebebak@gmail.com
9eec419e2b91bc07ee71e1d888e944b71026840c
befa2a3f95980606b99c6dd82e44339dbb9f437b
/bluebottle/accounting/migrations/0003_auto_20160523_1525.py
e0c9c759e3dcd867ea9de7495edf48a35a2d5ece
[ "BSD-2-Clause" ]
permissive
jfterpstra/bluebottle
73a9b863f3a1880f2965e87c4dfc1730c7a6023e
6812a376a48272fcb03fd5c9ea2ab9a6d4bf0fd8
refs/heads/develop
2020-12-25T05:35:31.002404
2016-06-15T14:58:11
2016-06-15T14:58:11
40,589,066
0
0
null
2015-08-12T08:24:29
2015-08-12T08:24:29
null
UTF-8
Python
false
false
1,521
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-05-23 13:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('payouts', '0001_initial'), ('acc...
[ "ernst@onepercentclub.com" ]
ernst@onepercentclub.com
9b24d6467ba6e0f25a9254040bc48f7b9cbf0bb1
747f759311d404af31c0f80029e88098193f6269
/extra-addons/account_banking/sepa/__init__.py
e2e843ef101f849fbdd2989df74bf9d0bdd2e8d8
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
979
py
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2009 EduSense BV (<http://www.edusense.nl>). # All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licens...
[ "geerish@omerp.net" ]
geerish@omerp.net
4e1f8f97976ea77aa4877eed39e6511a9d5a4d6b
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/ads/googleads/v7/googleads-py/tests/unit/gapic/googleads.v7/services/test_asset_service.py
01b9f58950381e40b632a387ac0b1cb3da30ecee
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
35,122
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
958a5930d92ff8bddb9def5002da531735df668a
8f221959842e81ecb8fbcf134218f0746bbec59f
/venv/Lib/site-packages/cls/__init__.py
3b2e7e5b73b57ef812df09daa05eff16f614ad17
[]
no_license
pluto-er/api-test
989de8c9d48b20d8712f8dfacb4703138b619bc5
4d1d9385e40c2a7420076cdb7ad397e2d9942ed0
refs/heads/master
2020-06-15T00:29:09.487345
2019-07-04T03:39:59
2019-07-04T03:39:59
195,163,614
1
1
null
null
null
null
UTF-8
Python
false
false
789
py
#!/usr/bin/env python import inspect import public def _validate(cls): if not inspect.isclass(cls): raise ValueError("%s not a class" % cls) def _is_attr(value): return not inspect.ismethod(value) and not isinstance(value, property) @public.add def attrs(cls): """return a list with class attrs...
[ "1357282015@qq.com" ]
1357282015@qq.com
02d0c7bf68087f21b801cf714302de48015ea5bd
f83f1c69d9eb58cc58d07fdb43f9a8b2a33d54bb
/Indexingdataframes.py
1557adec0713580f708e3ef5e452892986bb9f5a
[]
no_license
baibhab007/Python-Pandas-HandsOn
0b7217beeea003bf50d99b657a9918e6b4f0bc52
59a4fe8e91065cadc03a375e724e4629ea16d81c
refs/heads/master
2020-07-04T01:40:47.912646
2019-09-03T14:05:07
2019-09-03T14:05:07
202,111,865
0
0
null
null
null
null
UTF-8
Python
false
false
1,334
py
#### Task 1 Create an index named dates representing a range of dates starting from 1-Sep-2017 to 15-Sep-2017. Note: Use the date_range method of pandas. Print the 3rd element of the created DateTimeIndex. #### import datetime import numpy as np import pandas as pd dates = pd.date_range(start='9/1/2017', end='9/15/20...
[ "noreply@github.com" ]
baibhab007.noreply@github.com
bd1cf2a3db6685468db99c3b091bc8c5c44efa68
cc6e7f63eaf4b3570771c46fb8b24b88e6e1f59e
/beginner/168/C.py
8b101fbf2011d9eee0ebc6951865eb0e55a01777
[]
no_license
kamojiro/atcoderall
82a39e9be083a01c14445417597bf357e6c854a8
973af643c06125f52d302a5bc1d65f07a9414419
refs/heads/master
2022-07-12T00:14:38.803239
2022-06-23T10:24:54
2022-06-23T10:24:54
161,755,381
1
0
null
null
null
null
UTF-8
Python
false
false
260
py
#import sys #input = sys.stdin.readline from math import pi, cos, sqrt def main(): A, B, H, M = map( int, input().split()) ans = A**2 + B**2 - 2*A*B*cos((M/60 - (H/12+M/(12*60)))*2*pi) print(sqrt(ans)) if __name__ == '__main__': main()
[ "tamagoma002@yahoo.co.jp" ]
tamagoma002@yahoo.co.jp
f943e3c28c8e7d969268739a41947bd3e94da15f
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_creeks.py
cadafd87ceec361778f878ddc50d64aa4bd02bef
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
#calss header class _CREEKS(): def __init__(self,): self.name = "CREEKS" self.definitions = creek self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['creek']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
beaf787a79db6257760dc02bc15f62bc7f9118d9
e638e9fda0e672fa9a414515d0c05a24ab55ad38
/BestTimeToBuyAndSellStockIV.py
abc489e6bf529489cc1aa57e612c5c0e94a96380
[]
no_license
zjuzpz/Algorithms
8d1c7d50429aa5540eb817dc5495a20fc3f11125
2df1a58aa9474f2ecec2ee7c45ebf12466181391
refs/heads/master
2021-01-21T05:55:48.768728
2020-08-04T22:44:08
2020-08-04T22:44:08
44,586,024
2
0
null
null
null
null
UTF-8
Python
false
false
1,319
py
""" 188. Best Time to Buy and Sell Stock IV Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most k transactions. Note: You may not engage in multiple transactions at the same time (ie, you must sell the stock b...
[ "zjuzpz@gmail.com" ]
zjuzpz@gmail.com