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
2ffa97dd0cdc7445f2d8b22a44b850c4c88178f4
c8ed3e3997475ffb27c82ee5902def1b7b6753d0
/src/mdscripts/insertprotein.py
012bb07cc6c6db5f117ba6f5578effb0c4a616b2
[ "BSD-3-Clause" ]
permissive
awacha/mdscripts
b6174c0791ad50bfae1abacdae1f5865560bb889
831bda06557fa2d5f0899fc2f6552c9e49146cef
refs/heads/master
2020-03-22T10:05:49.910710
2019-09-27T07:30:52
2019-09-27T07:30:52
74,377,374
0
0
null
null
null
null
UTF-8
Python
false
false
7,762
py
#!/usr/bin/env python import argparse import os import re import subprocess import sys def get_areaperlipid(areafile): with open(areafile, 'rt', encoding='utf-8') as f: total, upperleaflet, lowerleaflet = f.readline().split() return float(total), float(upperleaflet), float(lowerleaflet) def shrink(...
[ "awacha@gmail.com" ]
awacha@gmail.com
e2d092698c224e507ea31bfb207d4ece530bab92
9b3c4a6035f137015b0f3a4836ac1ed5a83e6047
/test/_bsd.py
03915b1ba004cc8bf192b23e5deda6cf39a9c99d
[ "BSD-3-Clause" ]
permissive
goodtiding5/psutil
8b1b5e9bc439aad7f730290e8ff697006fd9bfd9
6892e9e0a841cba62f64e55aff6b4f8c807e314f
refs/heads/master
2021-01-18T06:55:51.823760
2016-02-04T21:04:58
2016-02-04T21:04:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,758
py
#!/usr/bin/env python # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # TODO: (FreeBSD) add test for comparing connections with 'sockstat' cmd. """Tests specific to all BSD platforms. These are implic...
[ "g.rodola@gmail.com" ]
g.rodola@gmail.com
f271b8ae35a2d87f5a6edfd3a2164f29bfca683e
5781bda84c1af759e7b0284f0489d50e68044c89
/app/model/network.py
0fd902e34350e3e8251d9ad86c8abc47d54292d6
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
Stanford-PERTS/triton
43306a582630ac6ef8d2d14c8b2a56279335a7fb
5a4f401fc7019d59ce4c41eafa6c5bda822fae0a
refs/heads/master
2022-10-17T11:51:10.220048
2020-06-14T17:37:54
2020-06-14T17:37:54
272,251,410
0
0
null
null
null
null
UTF-8
Python
false
false
5,984
py
""" Network =========== Network, one-to-one with its team, with all classroom's students participating, comprised of growth conditions. """ import logging import string from model import SqlModel, SqlField as Field import mysql_connection import os_random class InvalidNetworkAssociation(Exception): """Provided ...
[ "chris@perts.net" ]
chris@perts.net
d369343fe06ed20b429fd4ebd62c24898d09f1c2
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/3/hm-.py
053741f131237b8d1e07af0c35648012df4dd241
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
46134b5c30ca0b532262f67addad92fdbd03a9eb
1a1b7f607c5e0783fd1c98c8bcff6460e933f09a
/core/lib/password_lib.py
6cb7556dd99b92dd6678be4ca31f740a93006b5b
[]
no_license
smrmohammadi/freeIBS
14fb736fcadfaea24f0acdafeafd2425de893a2d
7f612a559141622d5042614a62a2580a72a9479b
refs/heads/master
2021-01-17T21:05:19.200916
2014-03-17T03:07:15
2014-03-17T03:07:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,452
py
import crypt import random import re import types import random def getPasswords(_count,_type,_len): """ generate _count password of _type, and return a list of Password instances _type(integer): password contains 1: alphabets only, 2: digits only, 3:alphabets + digits """ if _type==1: chars="abcdefghij...
[ "farshad_kh" ]
farshad_kh
7292c8b2f5ac0b7e96916f04b5a65237836d49e9
766ca0a00ad1df5163306d2d5a6f722bc67002d3
/mailviews/tests/manage.py
1549d37fb3ba441106c14033ab25cfa33112d0f1
[ "Apache-2.0" ]
permissive
agroptima/django-mailviews
8999746eff926661635160eee7b743331737f0bc
b75fabadad66a697592abb98a417f6efec55a88d
refs/heads/master
2021-01-24T12:03:52.787509
2019-11-13T13:49:15
2019-11-13T13:49:15
123,114,820
1
0
Apache-2.0
2019-11-13T13:49:17
2018-02-27T10:43:48
Python
UTF-8
Python
false
false
396
py
#!/usr/bin/env python import logging import sys from mailviews.tests import settings logging.basicConfig(level=logging.DEBUG) if __name__ == "__main__": try: from django.core.management import execute_manager execute_manager(settings) except ImportError: from django.core.management i...
[ "ted@kaemming.com" ]
ted@kaemming.com
17c8fd8389e918362c50a26cc24b9369815a1a80
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/examples/asr/asr_hybrid_transducer_ctc/speech_to_text_hybrid_rnnt_ctc_bpe.py
2de150c7132853121bcc899167c134fc7ffb54d0
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
3,432
py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
NVIDIA.noreply@github.com
426c7c71d941de6f532c6347173a111373cc4734
99052370591eadf44264dbe09022d4aa5cd9687d
/build/cwru/cwru_base/cwru_maps/catkin_generated/pkg.installspace.context.pc.py
e51fe9087a3ee4cec49b7015d1ee43de6bdeda45
[]
no_license
brucemingxinliu/ros_ws
11b1a3e142132925d35b3adf929f1000392c5bdc
45f7e553ea20b79e3e93af5f77a1b14b64184875
refs/heads/master
2021-01-24T03:36:47.043040
2018-02-26T00:53:37
2018-02-26T00:53:37
122,892,702
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "cwru_maps" PROJECT_SPACE_DIR = "/home...
[ "mxl592@case.edu" ]
mxl592@case.edu
bece9a5234650c40fc71e3cf6f5df1b6f1412b8e
dcba6985b2b0d4743c2eefa44ecd0ff6dfb0e280
/day7/note/demo_窗口滚动.py
ea934a97838f987855545fff7c0c918b1893d2a4
[]
no_license
liyaozr/web_auto
3c16da295ff5d6c33303f0c6176acf53f8a8cbd6
5a33365bfac3fc6afe07a93f9ef7935c30bc3f56
refs/heads/master
2021-04-13T21:49:29.677090
2020-04-11T07:22:17
2020-04-11T07:22:17
249,192,474
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC driver = webdriver.Chrome(executable_path=r"d:\chromedriver.exe") # 添加隐士等待 driver.implicitly_wait(30) ...
[ "lyz_fordream@163.com" ]
lyz_fordream@163.com
bc79a71833358f39c5740b9166e50e24b73bacfe
ccefb5c0a121509963c0f5e8b21567b527eee210
/src/djangoflix/urls.py
b6c7948bad15eb7f6d4ec89961a110ea2e9f8cd3
[ "MIT" ]
permissive
susilthapa/DjangoFlix
841c0a8aae21cb0eb41e7c5a19f11d86e83fc1ec
f4c544826a072c04b9a93e9929e327cfd130a360
refs/heads/main
2023-03-14T16:41:57.935530
2021-03-20T22:25:06
2021-03-20T22:25:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
"""djangoflix URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/dev/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
[ "hello@teamcfe.com" ]
hello@teamcfe.com
e000bcf1bfe5e0f03b0cc8a584f325a2051a6376
b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e
/neural/neural-005/neunet.py
14c865c2367af10d1782c0e97d545ba6a6697690
[]
no_license
pglen/pgpygtk
4d1405478a714f003984cf3e3db04ff1f767470b
33f58010e304f1a312f2356de453ecedb7aa21ef
refs/heads/master
2021-01-22T01:18:52.238415
2019-01-01T01:37:24
2019-01-01T01:37:24
102,215,955
0
0
null
null
null
null
UTF-8
Python
false
false
6,780
py
#!/usr/bin/env python # ------------------------------------------------------------------------ # Neural network import sys from neulev import * # ------------------------------------------------------------------------ # Globals verbose = 0 pgdebug = 0 def pn(num): return "%+0.3f" % num # ----------------...
[ "peterglen99@gmail.com" ]
peterglen99@gmail.com
003afde634b2dbdf9963104880cecb922fe56bfa
c6818c06aacb1eca1fffa8bbc51b6f3aac25c177
/acre/settings.py
039fa2a786d7f1bc584f1052a125472bea4cb0ef
[]
no_license
Acon94/ACRE
2d0769780c9f81eba05085ffd8b0af225666d6de
73622a6dc4ba0f30e8d3e90b02d23c8efd14a5e1
refs/heads/master
2022-08-02T02:07:53.004308
2020-05-29T15:25:50
2020-05-29T15:25:50
267,840,531
0
0
null
null
null
null
UTF-8
Python
false
false
3,898
py
""" Django settings for acre project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ from django.con...
[ "andrew@Andrews-MacBook-Pro.local" ]
andrew@Andrews-MacBook-Pro.local
14583aca318c99b89df9bdf4a06f82d336f413bd
e3e5a0618b91fe58318763f2186422b95e6edd10
/baidupcs_py/baidupcs/api.py
68e6ac5e0ad2875ab752460896b24e449357f92e
[ "MIT" ]
permissive
hfh1999/BaiduPCS-Py
ddd66ff4d33d0e609021280a1edc040d51654940
4cf77bba7afbc8c82e0bc6ecd4ffc4a66aab1c71
refs/heads/master
2023-02-20T06:02:08.897248
2021-01-26T08:56:37
2021-01-26T08:56:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,950
py
from typing import Optional, Dict, List, Tuple, Callable from io import BytesIO import datetime from baidupcs_py.common.io import RangeRequestIO from baidupcs_py.baidupcs.pcs import BaiduPCS, BaiduPCSError, M3u8Type from baidupcs_py.baidupcs.inner import ( PcsFile, PcsMagnetFile, PcsSharedLink, PcsSha...
[ "dfhayst@gmail.com" ]
dfhayst@gmail.com
944ba56ff7aca83e2eb127f4da13c740715ee035
f57e34d0a708ea1139f80f8e5b968c55f6fd2621
/dassl/utils/logger.py
9b37774ef48a52e330761d229098b3e3627aa44b
[ "MIT" ]
permissive
MohammadJavadD/Dassl.pytorch
bfdac8f28781af5f198eb7a1318043e04dc544d3
5e83fdce6fb51d8d4fbe0441a016eade2ebda423
refs/heads/master
2022-07-06T06:33:53.655489
2020-05-11T20:55:24
2020-05-11T20:55:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,723
py
import os import sys import time import os.path as osp from .tools import mkdir_if_missing __all__ = ['Logger', 'setup_logger'] class Logger(object): """Write console output to external text file. Imported from `<https://github.com/Cysu/open-reid/blob/master/reid/utils/logging.py>`_ Args: ...
[ "k.zhou@surrey.ac.uk" ]
k.zhou@surrey.ac.uk
3b973ffb45eaa591cd1b658a60bc480604c2573e
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2227/60668/288820.py
84a8ef21d2e2f35a0dcb5b7d7fa5bc722b3f800e
[]
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
448
py
def nums_6_CodeSec(n,k): seen = set() ans = [] def dfs(node): for x in map(str, range(k)): nei = node + x if nei not in seen: seen.add(nei) dfs(nei[1:]) ans.append(x) dfs("0" * (n - 1)) if n == 1 and k == 2: pri...
[ "1069583789@qq.com" ]
1069583789@qq.com
b37a8243749b1cbb1fb274960fb8cc5a20a84f1b
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r10p1/Gen/DecFiles/options/14195637.py
19a1f73398d726879f251757b9c3658f6d49a240
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/14195637.py generated: Wed, 25 Jan 2017 15:25:33 # # Event Type: 14195637 # # ASCII decay Descriptor: [B_c+ => (D*_s+ => (D_s+ -> K- K+ pi+) gamma) (D*(2007)~0 => (D~0 -> K+ pi-) pi0) ]CC # from Configurables import Generation Generation().EventType = ...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
625e3de4d65d7963f766548a6552be5ceb7e07ad
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/types/mobile_device_constant_service.py
3cc926700a80a75c7dc7e1493076bc54422a080b
[ "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
1,303
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
d78dae8aa293992ac876084340178bc18620f645
9b617418cfadc6b6deb10c675723485ae49fb221
/code/resources/users.py
86659c752c29c1bed0415d2aab2b25db6338b7ac
[ "MIT" ]
permissive
borko81/flask_udemy
455a555b3892da6d9fee04ba53ea2408dfe23f2b
e8f9192feda1458d1ea44b62d2485e911f16acef
refs/heads/main
2023-08-07T14:33:47.697962
2021-10-08T14:01:13
2021-10-08T14:01:13
411,242,125
0
0
null
null
null
null
UTF-8
Python
false
false
1,374
py
import sqlite3 from flask_restful import Resource, reqparse from models.user import UserModel class UserRegister(Resource): """ Register class, usinf reqparse from flask_restful :validation from unique username in form and db too """ parser = reqparse.RequestParser() parser.add_argu...
[ "bstoilov81@gmail.com" ]
bstoilov81@gmail.com
64183ac4cc465a42829ec69748f9176d1f426207
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Algorithms/Match makers/test.py
e518e3812e5879cbd0b0cddd6bd1e2e5c19ffda8
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
606
py
import io import unittest from contextlib import redirect_stdout from unittest.mock import patch class TestQ(unittest.TestCase): @patch('builtins.input', side_effect=[ '2', '4', '1 6 9 12', '4 12 3 9', '4', '2 2 2 2', '2 2 2 2', ]) def test_case_0(se...
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
2590c023d108e24d8b87283bf38c9ad7246bd708
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_testifying.py
54d585fa8f0db28a02a10621604b7a87579812f2
[ "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
249
py
from xai.brain.wordbase.verbs._testify import _TESTIFY #calss header class _TESTIFYING(_TESTIFY, ): def __init__(self,): _TESTIFY.__init__(self) self.name = "TESTIFYING" self.specie = 'verbs' self.basic = "testify" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
072e40a242d378c1a17f9f2a3f62a08178177a55
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_202/64.py
65c7985126860c68e994a7482a5134f0be8da6ab
[]
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
2,998
py
q = int(input()) for case in range(1,q+1): n,m = [int(x) for x in input().split()] cols = [0]*n rows = [0]*n firstrow_plus = [0]*n orgmatrix = [[0]*n for _ in range(n)] matrix = [[0]*n for _ in range(n)] backwards = [0]*(2*n-1) forwards = [0]*(2*n-1) points = 0 ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
cf8a4e8ee9ab5bec84107722532d44c30bb836ac
0494c9caa519b27f3ed6390046fde03a313d2868
/commit-queue/tests/buildbot_json_test.py
561e59a3ca46c6615888e6b6922332b1b8423227
[ "BSD-3-Clause" ]
permissive
mhcchang/chromium30
9e9649bec6fb19fe0dc2c8b94c27c9d1fa69da2c
516718f9b7b95c4280257b2d319638d4728a90e1
refs/heads/master
2023-03-17T00:33:40.437560
2017-08-01T01:13:12
2017-08-01T01:13:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,606
py
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unit tests for buildbot_json.py.""" import json import logging import os import cStringIO import StringIO import sys import uni...
[ "1990zhaoshuang@163.com" ]
1990zhaoshuang@163.com
1cc1d640e21ab0f100c76bc623beac7409d3eb4f
2b01f8f7ee7e841f64629f88896478d3b4221480
/flatpages_i18n/middleware.py
70654537b556fffc508c62e7155e802524587996
[ "BSD-3-Clause" ]
permissive
PragmaticMates/django-flatpages-i18n
fde6821774419c1a3cbafe317c5c3c91730339a5
434903e60518e0c1a54f0aea24e1d3e8eb0449bd
refs/heads/master
2023-06-09T18:13:11.192887
2023-06-05T07:32:10
2023-06-05T07:32:10
6,462,420
16
19
BSD-3-Clause
2019-07-12T07:03:15
2012-10-30T18:40:25
Python
UTF-8
Python
false
false
817
py
# from django.conf import settings # from django.http import Http404 # from django.utils.deprecation import MiddlewareMixin # # from flatpages_i18n.views import flatpage # # # class FlatpageFallbackMiddleware(MiddlewareMixin): # def process_response(self, request, response): # if response.status_code != 404...
[ "erik.telepovsky@gmail.com" ]
erik.telepovsky@gmail.com
0feb26db0b3e1ad462a9a055b1f25937d285fe82
3f327d2654b85b922909925b9f475315d78f4652
/Backend/newsapi/lib/python2.7/site-packages/newsapi/sources.py
a2865f6348bc04ca28a13159efcf5462a1d5167c
[ "MIT" ]
permissive
brianwang1217/SelfImprovementWebApp
8db45914027537aee9614f9d218c93cc08dc90f8
7892fc4ee5434307b74b14257b29a5f05a0a0dd7
refs/heads/master
2022-12-13T15:01:08.595735
2018-06-23T04:46:06
2018-06-23T04:46:06
137,548,289
1
1
MIT
2022-05-25T01:28:29
2018-06-16T02:48:52
Python
UTF-8
Python
false
false
4,265
py
from newsapi.base_news import BaseNews class Sources(BaseNews): def __init__(self, API_KEY): super(Sources, self).__init__(API_KEY) self.endpoint = "https://newsapi.org/v1/sources" self.sources = [] self.sources_base_info = {} self.sources_id_info = {} sel...
[ "talk2shreyas@gmail.com" ]
talk2shreyas@gmail.com
c8742c451b8f04a368affdf326423791bc8e12b1
92237641f61e9b35ff6af6294153a75074757bec
/Algorithm/programmers/lv1_약수의 합.py
efcd4bdb217f84c5119f9de34b91c09be9bd7a7f
[]
no_license
taepd/study
8ded115765c4f804813e255d9272b727bf41ec80
846d3f2a5a4100225b750f00f992a640e9287d9c
refs/heads/master
2023-03-08T13:56:57.366577
2022-05-08T15:24:35
2022-05-08T15:24:35
245,838,600
0
1
null
2023-03-05T23:54:41
2020-03-08T15:25:15
JavaScript
UTF-8
Python
false
false
513
py
""" 문제 설명 정수 n을 입력받아 n의 약수를 모두 더한 값을 리턴하는 함수, solution을 완성해주세요. 제한 사항 n은 0 이상 3000이하인 정수입니다. 입출력 예 n return 12 28 5 6 입출력 예 설명 입출력 예 #1 12의 약수는 1, 2, 3, 4, 6, 12입니다. 이를 모두 더하면 28입니다. 입출력 예 #2 5의 약수는 1, 5입니다. 이를 모두 더하면 6입니다. """ def solution(n): return sum([i for i in range(1, n//2+1) if n % i == 0]) + n
[ "taepd1@gmail.com" ]
taepd1@gmail.com
14f52a34bc9255f5bb49c7dae494fd7834405746
1c6283303ceb883add8de4ee07c5ffcfc2e93fab
/Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/ancprange_5c7b16a33b225110a96fb24def386cf1.py
c5c1d643faab09f0a08e0e592081cf841b68970c
[]
no_license
pdobrinskiy/devcore
0f5b3dfc2f3bf1e44abd716f008a01c443e14f18
580c7df6f5db8c118990cf01bc2b986285b9718b
refs/heads/main
2023-07-29T20:28:49.035475
2021-09-14T10:02:16
2021-09-14T10:02:16
405,919,390
0
0
null
null
null
null
UTF-8
Python
false
false
123,256
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, ...
[ "pdobrinskiy@yahoo.com" ]
pdobrinskiy@yahoo.com
79a1d1b99544c0df6ff3fa556be040c933b22cd8
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/4AtqpqKdXAFofa566_16.py
ea18541665d34bf4ba2b25fbe302826b6e09da0e
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,005
py
""" Create a function that takes in a _number as a string_ `n` and returns the number **without trailing and leading zeros**. * **Trailing Zeros** are the zeros _after_ a decimal point which _don't affect the value_ (e.g. the _last three_ zeros in `3.4000` and `3.04000`). * **Leading Zeros** are the zeros _be...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
f36ffffea1f4374ec233376ec27a22b0aaeb5bf5
43c24c890221d6c98e4a45cd63dba4f1aa859f55
/test/tests/thread_contention_test.py
518e5dcd40cd8122d86907338a77f8d5d156ebea
[ "Python-2.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
jmgc/pyston
c8e4df03c33c6b81d20b7d51a781d9e10148238e
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
refs/heads/master
2020-12-11T07:51:58.968440
2020-09-11T14:38:38
2020-09-11T14:38:38
39,242,644
0
0
NOASSERTION
2020-09-11T14:38:39
2015-07-17T08:09:31
Python
UTF-8
Python
false
false
416
py
from thread import start_new_thread import time work = [] done = [] def run(num): for i in xrange(num): t = work.pop() work.append(t - 1) done.append(num) print "starting!" nthreads = 2 N = 100000 for i in xrange(nthreads): work.append(N) for i in xrange(nthreads): t = start_new_threa...
[ "kmod@dropbox.com" ]
kmod@dropbox.com
37e9be961201df01808e80969b39de4b082dcbb1
c4b87e23c0ca100fe42a3f63ddf5ae0f914b08d6
/utils/feedparser.py
92419bc4d0729ac2e923e9876c8d333470a48f7d
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
TinLe/NewsBlur
4cfc14952b03ff207b00ca85cf59a804a53d0179
881e558071bbd0048a65ed67d63d4366ee05cbe8
refs/heads/master
2023-05-27T02:35:16.183150
2022-11-22T16:09:05
2022-11-22T16:09:05
98,898,911
0
0
MIT
2023-05-22T21:41:15
2017-07-31T14:37:45
Python
UTF-8
Python
false
false
160,115
py
"""Universal feed parser Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Visit https://code.google.com/p/feedparser/ for the latest version Visit http://packages.python.org/feedparser/ for the latest documentation Required: Python 2.4 or later Recommended: iconv_codec <http://cjkpython.i18n.org...
[ "samuel@ofbrooklyn.com" ]
samuel@ofbrooklyn.com
227c8e7d7c7faf708582ddde5050af8f34a85ecd
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_4/models/smtp_server_get_response.py
b9d7c1f33db6e8adf4bc96d6abeba9d4958fb2b7
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
4,221
py
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.4, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typ...
[ "tlewis@purestorage.com" ]
tlewis@purestorage.com
dbe872211a4755d36304647f012be4e14b572c81
8da76aabcf9cfea3478f56037edbb5fa1513140b
/maisemapaikka/dev_jt_01/maisemapaikka/apps/geomaps/widgets.py
c1ab884dc936bd34d6cf3c3c038d530f9564201b
[]
no_license
mikanyman/.virtualenvs-legacy
039479f31f2ca9f9a3d3544d8837429ddd0a7492
5486128b5b3b7ddb9ec81d43e3bb601a23b4025a
refs/heads/master
2020-12-31T07:10:07.018881
2017-02-01T02:16:55
2017-02-01T02:16:55
80,566,220
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
from django import forms from django.db import models from django.conf import settings class LocationPickerWidget(forms.TextInput): class Media: css = { 'all': ( settings.ADMIN_MEDIA_PREFIX + 'css/location_picker.css', ) } js = ( 'htt...
[ "mika.nyman@synapse-computing.com" ]
mika.nyman@synapse-computing.com
46b43aae14e1edbb429984d0ea5f710a308d5c7d
7433bb9a3e3a1ea89314c05a0ca22f52323eb33a
/task_LSTM_inbuild/step3_evaluate_line.py
a40d65169d18b78db2ed6db0a1619992e589b2ea
[ "Apache-2.0" ]
permissive
tianyunzqs/text_classifier_tasks
685a70c70216865c28204d48bdbf9a1239edea86
444ac6676547f4e3ee0ccd5fb36439e8e02f56a9
refs/heads/master
2022-11-05T00:31:09.070088
2022-10-17T02:46:38
2022-10-17T02:46:38
175,388,072
10
6
null
null
null
null
UTF-8
Python
false
false
3,879
py
# -*- coding: utf-8 -*- # @Time : 2019/7/26 10:18 # @Author : tianyunzqs # @Description : import os import sys import numpy as np import tensorflow as tf sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from task_LSTM_inbuild.data_helper import Vocab, CategoryDict from task_L...
[ "qszhu@fiberhome.com" ]
qszhu@fiberhome.com
f9c790eb2cc47ba5039ad06c28c4aece60bbd206
8e0149f00f82f57216584b53180ec02870dee7e8
/python/linked_list/heap/lc23.py
80140fd3c24babfcf1832732796fa94aec1ba01e
[]
no_license
chao-ji/LeetCode
5880e0fa91d84ad70b5abd47e24ac75646fdcdf9
69a960dd8f39e9c8435a3678852071e1085fcb72
refs/heads/master
2020-12-13T03:35:42.009204
2019-06-15T04:45:38
2019-06-15T04:45:38
51,043,575
1
0
null
null
null
null
UTF-8
Python
false
false
4,748
py
"""23. Merge k Sorted Lists Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: 1->1->2->3->4->4->5->6 """ import heapq # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): #...
[ "chocobo1985@gmail.com" ]
chocobo1985@gmail.com
e6cdba46aeece3e020f759b8414108b144310136
255dc7ff8fb676027021a674bd624fb6587fa2f7
/compiler/tests/22_sram_func_test.py
3a7ff5a3e9521545a1be95c25171bfa119148a16
[ "BSD-3-Clause" ]
permissive
orbe7947/OpenRAM
80b40462fb7c1044fdacf34908432820b71f6092
29c5ab48f0a82972337f4b17ee90695ff1f8f825
refs/heads/master
2021-08-16T11:35:10.528368
2017-11-14T21:24:14
2017-11-14T21:24:14
110,760,794
0
0
null
2017-11-15T00:14:12
2017-11-15T00:14:12
null
UTF-8
Python
false
false
1,788
py
#!/usr/bin/env python2.7 """ Run a regresion test on various srams """ import unittest from testutils import header import sys,os sys.path.append(os.path.join(sys.path[0],"..")) import globals import debug import calibre OPTS = globals.get_opts() #@unittest.skip("SKIPPING 21_timing_sram_test") class sram_func_test...
[ "mrg@ucsc.edu" ]
mrg@ucsc.edu
1da2e624120594b03a58fd0253262dd9d3ce45bb
cb836bde47c790c7ad990d44d86d60c13f43a2a0
/markdown_it/token.py
0c03ac1fc8f64c41339533f0ce672a0994fe315f
[ "MIT" ]
permissive
iooxa/markdown-it-py
133028a981af715ce244554e26b92b16fc4443ac
21837dfa0ce9be249de372bb10733a534f8e0a50
refs/heads/master
2022-11-19T14:23:23.618106
2020-07-20T15:57:16
2020-07-20T15:57:16
281,160,226
0
0
MIT
2020-07-20T15:57:17
2020-07-20T15:50:02
null
UTF-8
Python
false
false
5,690
py
from typing import List, Optional, Tuple, Union import attr @attr.s(slots=True) class Token: # Type of the token (string, e.g. "paragraph_open") type: str = attr.ib() # html tag name, e.g. "p" tag: str = attr.ib() # Level change (number in {-1, 0, 1} set), where: # - `1` means the tag is ope...
[ "chrisj_sewell@hotmail.com" ]
chrisj_sewell@hotmail.com
b6723850310e650934ca18886791a71dee495084
2fd8f1cafdabfdf9507a1a7e232e13ac7756767f
/data/data_models.py
ca393ea6ffc156bcc2ffa70f40a7fab6b96bb7a7
[]
no_license
dewmal/fx_agent_sma
34f3571fe37bfc18c72b8f9ec101dbbe5610a0bb
7ecec6ab432d8d43daa6d9cb4a838b1ade1e0c13
refs/heads/master
2020-06-16T10:16:20.359791
2019-07-17T06:09:52
2019-07-17T06:09:52
195,536,550
0
0
null
null
null
null
UTF-8
Python
false
false
3,508
py
import datetime from utils import round_time class TickStream: __type__ = "tick_stream" symbol: str ask: float bid: float quote: float epoch: int value: float def __init__(self, tickId, symbol, ask, bid, quote, epoch, version="1.0") -> None: super().__init__() self.ti...
[ "dewmalnilanka@gmail.com" ]
dewmalnilanka@gmail.com
3d817787469b94efb5701656e528c260991baace
d5751e2f2b2128079d3473cf14b02c67515dba72
/flask_fundamentals/2.form_test/server.py
e5183bece53a77565141c9f57f8e5f49966d5057
[]
no_license
seymakara/dojo_python
814ed49b561703e3a993a1ade0f084c234e82b13
ff8a56020d9ab337d930ec4ce4039f0bca2cfead
refs/heads/master
2021-05-13T20:44:27.327035
2018-01-10T06:32:27
2018-01-10T06:32:27
116,917,393
0
0
null
null
null
null
UTF-8
Python
false
false
655
py
from flask import Flask, render_template, request, redirect app = Flask(__name__) # our index route will handle rendering our form @app.route('/') def index(): return render_template("index.html") # this route will handle our form submission # notice how we defined which HTTP methods are allowed by this route @app....
[ "seymakara88@gmail.com" ]
seymakara88@gmail.com
6aaab26b75b53923e8a74876b16f34d30fbe0c44
3c5657492c401994eaaebcf16c2b13a5ebc0efd8
/cresthh/tools/reduceSWW.py
768a6bf1a89c6bb4c6c7d17e1ebe895143fd9d7a
[]
no_license
peggypan0411/CREST-iMAP
0b01d1123f7be7806971ead4835ea2e7f61f81a9
b2d80e2c3eb3fb575c678915fd89a96bdb30dbde
refs/heads/master
2023-07-16T08:11:26.736833
2021-04-14T21:44:02
2021-04-14T21:44:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,949
py
#!/home/ZhiLi/CRESTHH/python2/bin/python2 ''' A command line tool to get reduced geotiffs quickly __author__: Zhi Li __Date__: 2021/02/07 ''' import argparse import numpy as np import sys sys.path.append('/home/ZhiLi/CRESTHH') from cresthh.anuga.file_conversion.sww2dem import sww2dem from cresthh.anuga import SWW_plo...
[ "chrimerss@gmail.com" ]
chrimerss@gmail.com
3622942b7c93de7b6819004d190c5034570c3137
eb33957e7b140c762fb77e5c83e5bba14aaeb8d3
/jam/server/api/v1/namespace.py
67e81b1ea025c04385aaeeced47b442bdb4acd19
[]
no_license
AndrewSallans/jamdb
8a4a9d5ec03ca77bd0ad45404f8031b558898270
6eb4c0b465034e7ef5a648873be2353c4093c863
refs/heads/develop
2021-01-15T11:19:59.679368
2016-03-04T23:37:02
2016-03-04T23:37:02
53,345,931
0
0
null
2016-03-07T17:46:52
2016-03-07T17:46:49
HTML
UTF-8
Python
false
false
2,996
py
import operator import functools from jam import Q from jam import NamespaceManager from jam.auth import Permissions from jam.server.api.v1.base import View from jam.server.api.v1.base import Serializer from jam.server.api.v1.base import Relationship class NamespaceView(View): name = 'namespace' plural = 'n...
[ "chriskseto@gmail.com" ]
chriskseto@gmail.com
cd94742c9c7694054d5b7b202660c0becf1c5052
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_136/1700.py
4c068771cbd023f47f2d94b37f052921066dddfa
[]
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
603
py
def data(filename): fi = open(filename,'r') o = open(filename+".out",'w') tests = fi.readline().strip() a = fi.readlines() for i in range(0,int(tests)): c,f,x = map(float,a[i].strip().split()) nf = 1 t1 = x/2 t2 = c/2+x/(2+nf*f) while (t1-t2 > 10**-7...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
d2c0be537b266e7b741920df715f2b942cf343bb
3437f523434b86af02476fc0056030a67feaa9a5
/examples/mpc_linear_svm/launcher.py
d88a1d33341b60a05cf1faa29f11c82ceea9e982
[ "MIT" ]
permissive
facebookresearch/CrypTen
481d0bfc94582eedef8b3510d91fd6b3ce253097
99c3a046b705c9d69d7a10fcab59a444ffbee39a
refs/heads/main
2023-09-04T21:10:29.331999
2023-08-25T22:11:00
2023-08-25T22:11:00
202,443,088
1,388
323
MIT
2023-09-01T16:34:22
2019-08-15T00:00:31
Python
UTF-8
Python
false
false
2,518
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ To run mpc_linear_svm example in multiprocess mode: $ python3 examples/mpc_linear_svm/launcher.py --multiprocess ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e9dbfe8104201e8d10606f7234b30f1427f85c8c
c39f999cae8825afe2cdf1518d93ba31bd4c0e95
/PYME/DSView/LUT/__init__.py
ad67a04cf4d26dc2ca675547218211dd1692f45c
[]
no_license
WilliamRo/CLipPYME
0b69860136a9b2533f2f29fc29408d7471cb934d
6596167034c727ad7dad0a741dd59e0e48f6852a
refs/heads/master
2023-05-11T09:50:58.605989
2023-05-09T02:17:47
2023-05-09T02:17:47
60,789,741
3
1
null
2016-06-17T08:52:44
2016-06-09T16:30:14
Python
UTF-8
Python
false
false
1,089
py
#!/usr/bin/python ################## # __init__.py # # Copyright David Baddeley, 2009 # d.baddeley@auckland.ac.nz # # 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 Licen...
[ "willi4m@zju.edu.cn" ]
willi4m@zju.edu.cn
333f6a2ec3a9229e86c9318beb30008c51908041
591a1a5b334efc878d890c2492a2f1b6cf475b6c
/fixJobAccountant.py
41d6c79ffadfea61bdaa333e5338c42660fc5f43
[]
no_license
amaltaro/ProductionTools
b827fa8a80006443b00004f90658791fdea4fc26
df85a4d4ae35e4f4c7523fcba9b22a1300329e06
refs/heads/master
2023-06-08T22:59:19.377928
2023-05-24T18:04:26
2023-05-24T18:04:26
22,791,862
0
3
null
2021-03-22T11:41:18
2014-08-09T17:55:03
Python
UTF-8
Python
false
false
2,519
py
""" __fixJobAccountant.py__ Fixes Report.pkl files when JobAccountant crashes reporting that TaskName does not exist in the FJR. Created on Oct 15, 2014. @author: amaltaro """ import sys, os, subprocess import threading import logging import time from pprint import pprint from optparse import OptionParser try: f...
[ "alan.malta@cern.ch" ]
alan.malta@cern.ch
38059ca498d3f9141b84156a522fd5bca676ddfa
0afc72deeb8928e6d488a1c3cb762ed0c4bd73fc
/scripts/02.transform/02.encode.py
da3e9cc96bd537a4a9ab5f8a61a53ebb8d4cb6cf
[]
no_license
Asky-M/dscnf-06
cb5cd4a402938bcc53723dbc7bbf4e95b548c0f0
cbe021d568c94b14929759e905592a11cefc7626
refs/heads/master
2023-03-27T03:28:05.390087
2021-04-03T06:30:51
2021-04-03T06:30:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
# encode/decode base64 with codecs import codecs s = b"Satria Ady Pradana" t = codecs.encode(s, "base64") print(t) u = codecs.decode(t, "base64") print(u) # encode/decode base64 with base64 import base64 s = b"Satria Ady Pradana" t = base64.b64encode(s) print(t) u = base64.b64decode(t) print(u) # encode/decode...
[ "me@xathrya.id" ]
me@xathrya.id
72abe96e55888b2f816aee1fbf0a969dc95b4989
ba602dc67ad7bb50133aeb312f3c6c54627b3dec
/data/3919/AC_py/508160.py
e46139c365eab6e0455d028613d93c2cc248b297
[]
no_license
Dearyyyyy/TCG
0d21d89275906157372d775f33309ce337e6bc95
7b80de16de2d3f5d95a7c4ed95d45a9e38882e67
refs/heads/master
2020-12-27T23:19:44.845918
2020-02-04T01:59:23
2020-02-04T01:59:23
238,101,032
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
# coding=utf-8 import sys while True: a,b,c=map(int,input().split()) if(a+b>c and a+c>b and b+c>a): if a==b and b==c: print("DB") else: if a==b or b==c: print('DY') else: if b*b+c*c==a*a or a*a+c*c==b*b or a*a+b*b==c*c: ...
[ "543271544@qq.com" ]
543271544@qq.com
988e4a4ea56c347a5b6641d6283315ce241c7248
884a128552b5f7e698194de22e4a8b4fd43e5db6
/setup.py
f89439a6f5392e8b10d0a0504621730a8a2d2e6d
[ "Apache-2.0" ]
permissive
naivenlp/naivenlp-legacy
b3057bdeb54bc54b1df3de8fd3eb5a1af909690b
dbe0d6ac3b422618fe41a763c256077b27f75347
refs/heads/master
2022-11-25T11:48:18.411506
2020-07-22T08:01:25
2020-07-22T08:01:25
269,890,191
1
0
null
null
null
null
UTF-8
Python
false
false
1,163
py
import os import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="naivenlp", version="0.0.9", description="NLP toolkit, including tokenization, sequence tagging, etc.", long_description=long_description, long_description_content_type="text/mar...
[ "zhouyang.luo@gmail.com" ]
zhouyang.luo@gmail.com
8353cc7bb8452e9ef9ae1467ef3f8ec6c9d9f34e
2a24dba82767419cf7d2269875bf0a297f41580c
/vispy/app/backends/_pyside.py
00949a4951a577f056a9c62b2874f44b3055f725
[ "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
shjoshi/vispy
58b300d23486b7478b786977b3548dd7225de847
2f3d169aa60c738467e766c59096f51570483d6f
refs/heads/master
2020-12-25T12:40:36.545768
2014-08-06T22:59:35
2014-08-06T22:59:35
22,704,584
0
0
null
null
null
null
UTF-8
Python
false
false
940
py
# -*- coding: utf-8 -*- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ PySide proxy backend for the qt backend. """ import sys from .. import backends try: # Try importing from PySide import QtGui, QtCore, QtOpenGL # noqa except E...
[ "almar.klein@gmail.com" ]
almar.klein@gmail.com
b528bfb1f19e47d8bd43f86d689eaa069c15b2e7
ac34cad5e20b8f46c0b0aa67df829f55ed90dcb6
/src/assets/ba_data/python/baclassic/_store.py
8caf49500330f885ef7fe97f84c4efa66d039832
[ "MIT" ]
permissive
sudo-logic/ballistica
fd3bf54a043717f874b71f4b2ccd551d61c65008
9aa73cd20941655e96b0e626017a7395ccb40062
refs/heads/master
2023-07-26T19:52:06.113981
2023-07-12T21:32:56
2023-07-12T21:37:46
262,056,617
0
0
null
null
null
null
UTF-8
Python
false
false
23,317
py
# Released under the MIT License. See LICENSE for details. # """Store related functionality for classic mode.""" from __future__ import annotations import logging from typing import TYPE_CHECKING import babase import bascenev1 if TYPE_CHECKING: from typing import Any class StoreSubsystem: """Wrangles clas...
[ "ericfroemling@gmail.com" ]
ericfroemling@gmail.com
d33c3d0bc0f509999dd2ca1132e50bf6291c76f8
4ebdc7053d9341ce7ad45f1e859ff86ef1455177
/52_global.py
e2b5ca2d678a6f222101e9a4cc221547301aa89d
[]
no_license
daikiante/python
1f4d55e1fd04eef22702b364148b8e1a2beea2d3
9d604b8dcd9e3cbe8b4db24ef16c5c969f6f894f
refs/heads/master
2020-09-17T00:14:24.034179
2019-12-02T09:03:25
2019-12-02T09:03:25
223,928,994
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
# global ''' def関数の中(local)ではglobal変数は使えない。 global変数を使う場合はlocalの中でglobal変数宣言をして使う。 ''' name = 'lohit' age = 20 def person(): global age print('my age is',age) per = 'lohit badiger' print('my name is',per) person() print('global name are',name) print('global age is',age) # Exsample num1 = 1...
[ "daikiante@gmail.com" ]
daikiante@gmail.com
b113e7e6e71c42480977c18e82a7bf4d3ecbfc8a
2e10314f0a6a32cbfdce6b80c7767b84de421741
/精品真题/精品-one.py
e2135999ef9f92009ca10a79d4df38384cd13fdb
[]
no_license
tang1323/Ing_Interview
06a9cb19c932b2852dd55655b0d46b814ffa9095
a1068d3739d2088a2edcf8314e18659e0e9003f8
refs/heads/master
2023-04-06T14:17:37.757618
2021-04-14T14:14:01
2021-04-14T14:14:01
357,929,558
1
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
# def add_Run(L=None): # if L is None: # L = [] # L.append('Run') # return L # add_Run() # add_Run() # print(add_Run(['Lying'])) # ds = {'av':2, 'vr':4, 'ls':9, 'path':6} # print(ds.popitem(), len(ds)) # with open('D:/Py-Project/Ing_Interview/精品真题/txt/a', 'r') as f: # print(f.read().split(...
[ "1171242903@qq.com" ]
1171242903@qq.com
737ec987dfe8f44ec60ce95839fb21130c803793
2a1a175efc9c482db0e6d96569f92b9583990acc
/eventex/subscriptions/tests/test_view_new.py
351daeb6ab3b8abda88f2861141510e7c1378d8c
[]
no_license
mazulo/wttd_eventex
2e97e3724f2b8396b8cc73175d15defd09b4a86b
691008562d2143cc57c8b4bb5042aa2c1fdc6602
refs/heads/master
2021-01-10T07:29:20.343157
2016-03-16T18:21:10
2016-03-16T18:21:10
48,304,195
0
0
null
null
null
null
UTF-8
Python
false
false
3,017
py
from django.core import mail from django.test import TestCase from django.shortcuts import resolve_url as r from eventex.subscriptions.forms import SubscriptionForm from eventex.subscriptions.models import Subscription class SubscriptionsNewGet(TestCase): def setUp(self): self.resp = self.client.get(r('...
[ "pmazulo@gmail.com" ]
pmazulo@gmail.com
327bf3ff951ee285a77e0a2dfa30a0a852ac1426
cceb97ce3d74ac17090786bc65f7ed30e37ad929
/server/newfirst/migrations/0005_auto_20201024_0316.py
baaa7f017786874e8c0a9b6e7a9c50db448d3ef2
[]
no_license
Catxiaobai/project
b47310efe498421cde794e289b4e753d843c8e40
76e346f69261433ccd146a3cbfa92b4e3864d916
refs/heads/master
2023-01-08T04:37:59.232492
2020-11-10T12:00:34
2020-11-10T12:00:34
291,014,545
1
4
null
2020-11-09T01:22:11
2020-08-28T10:08:16
Python
UTF-8
Python
false
false
424
py
# Generated by Django 3.1.1 on 2020-10-23 19:16 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('newfirst', '0004_scenes'), ] operations = [ migrations.RemoveField( model_name='item', name='item_date', ), ...
[ "2378960008@qq.com" ]
2378960008@qq.com
91db8116494945ac4447f2c14fec8b83a4d5f470
66d184a2b36ab1db564305ea36be891aaf0e236b
/py/Python_Crash_Course/project2/two_d8.py
52743e7fbb2329663e1615be5f979d1fb0082ff0
[]
no_license
joyDDT/python_code
bef57936a1167fa65e28b6c52ab7857b34dc74a8
3aae56c51660579a4eaaa087ac2459c9bf2f2e23
refs/heads/master
2021-10-30T10:22:21.328633
2019-04-26T04:45:01
2019-04-26T04:45:01
112,004,435
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
import pygal from die import Die #创建两个个D8 die_1 = Die(8) die_2 = Die(8) #投掷色子多次,并将结果储存在一个列表中 results = [ ] for roll_num in range(1000): result = die_1.roll( ) + die_2.roll( ) results.append(result) #结果分析 frequencies = [ ] max_num = die_1.num_sides + die_2.num_sides for value in range(2, max_num+1): frequ...
[ "15894500833@163.com" ]
15894500833@163.com
dd481a8700e475bd2c82b82241d3ad689f39f95f
56b60cb4e3dfa065839ce0dce5a50e163a4f9f3a
/api_part/__init__.py
fe26d15ead612aa115e93e6bb3c25e8b71983fcf
[]
no_license
Humbertzhang/DocTrans
8acdd6634361130cb4f0d960baabd2a28de07332
242c0efbdbb660325df0de33910449566148bdb5
refs/heads/master
2021-01-20T05:13:58.521265
2017-08-31T08:07:11
2017-08-31T08:07:11
101,422,930
3
0
null
null
null
null
UTF-8
Python
false
false
70
py
from ._init_ import __init__content from .static import static_content
[ "504490160@qq.com" ]
504490160@qq.com
05f3cbf560213a1004237cd81daf92637628f3b9
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/panpanpandas_ultrafinance/ultrafinance-master/deprecated/example/usTradingStrategy.py
ed1e6d309c7080a44956603b6c80661f73986aa1
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
216
py
''' Created on July 17, 2010 @author: ppa ''' from ultrafinance.processChain.processChain import runProcessChain if __name__ == '__main__': configFile1 = 'usTradingStrategy.ini' runProcessChain(configFile1)
[ "659338505@qq.com" ]
659338505@qq.com
819c11fb2ff6e9bbda0cb03380c26525458095b7
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=2.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=35/sched.py
a3b742d5b6b87242902b200cb99b1c50add5a6e7
[]
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
267
py
-X FMLP -Q 0 -L 3 120 400 -X FMLP -Q 0 -L 3 93 400 -X FMLP -Q 0 -L 3 80 400 -X FMLP -Q 1 -L 2 73 400 -X FMLP -Q 1 -L 2 63 250 -X FMLP -Q 2 -L 1 55 200 -X FMLP -Q 2 -L 1 45 400 -X FMLP -Q 3 -L 1 35 125 -X FMLP -Q 3 -L 1 35 150 22 100 21 100
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
8799587af23d45f613e72c763c6650d93bba8f46
ecee6e84ba18100b621c7e06f493ae48e44a34fe
/devel/lib/python2.7/dist-packages/costmap_2d/cfg/VoxelPluginConfig.py
ca382f3ac25f62dda8cec625bd10f2ab8217430e
[]
no_license
theleastinterestingcoder/Thesis
6d59e06b16cbe1588a6454689248c88867de2094
3f6945f03a58f0eff105fe879401a7f1df6f0166
refs/heads/master
2016-09-05T15:30:26.501946
2015-05-11T14:34:15
2015-05-11T14:34:15
31,631,628
0
0
null
null
null
null
UTF-8
Python
false
false
4,597
py
## ********************************************************* ## ## File autogenerated for the costmap_2d package ## by the dynamic_reconfigure package. ## Please do not edit. ## ## ********************************************************/ from dynamic_reconfigure.encoding import extract_params inf = float('inf') ...
[ "quanzhou64@gmail.com" ]
quanzhou64@gmail.com
917db0f72decd79edcafec2875bee0865c643e64
26d6c34df00a229dc85ad7326de6cb5672be7acc
/msgraph-cli-extensions/v1_0/identitydirmgt_v1_0/azext_identitydirmgt_v1_0/vendored_sdks/identitydirmgt/aio/_identity_directory_management.py
8f6baa89e013ef5e2e83f0e742393afc730fc7cf
[ "MIT" ]
permissive
BrianTJackett/msgraph-cli
87f92471f68f85e44872939d876b9ff5f0ae6b2c
78a4b1c73a23b85c070fed2fbca93758733f620e
refs/heads/main
2023-06-23T21:31:53.306655
2021-07-09T07:58:56
2021-07-09T07:58:56
386,993,555
0
0
NOASSERTION
2021-07-17T16:56:05
2021-07-17T16:56:05
null
UTF-8
Python
false
false
9,603
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 may ...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
e330b2c4ec0d709e389aa70c7b230a248e40cdff
500b03fa6cb776c1d51db4a3a3aa252ddf5a50e6
/book_exercise/py_intro/basics/Chapter 3: Numbers/name_random.py
f71fc4d460bda5325b87858fc9109a256951f46c
[]
no_license
carloslvm/learning-python
b3796a0a5b751baae8c551a9f6fe262f98980691
07f885454cf21b7d215a58da7fcb907715e546bd
refs/heads/master
2022-07-27T21:39:11.937801
2022-07-09T17:47:56
2022-07-09T17:47:56
163,447,616
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
#!/usr/bin/python3 # Printing a name randomly between 1 and 10. from random import randint for name in range(randint(1, 10)+ 1): name = 'David' print(name)
[ "cvaldez553@gmail.com" ]
cvaldez553@gmail.com
2c3b054d93f45003c87f98cb0129da2c90a07b02
5551361c02ee4a78036e2452fea615fc912f406b
/tut4.py
465358ee61083a2301be6d3e8df1a5bc8be26084
[ "MIT" ]
permissive
Demfier/cs116-tut-solns
3d93752e4ca2d3debbb36c901a13e7201e5bf0fe
8277dae848ebf66522245fe15492ab91e48dac93
refs/heads/master
2020-12-13T13:32:52.551815
2020-02-14T05:25:45
2020-02-14T05:25:45
234,433,306
2
1
null
null
null
null
UTF-8
Python
false
false
3,503
py
# This file contains solutions to CS116, Tutorial 4 import math import check # CQ1: E) def create_cards(values, suits): """ Purpose, Contracts & Requirements, and Examples go here """ return list(map(lambda x, y: [x, y], values, suits)) def create_cards_alt(values, suits): """ Purpose, Cont...
[ "sahu.gaurav719@gmail.com" ]
sahu.gaurav719@gmail.com
2cc437f24c473125f7825b073b35dbc910657b40
963cac9e78c4b742f7e7800200de8d1582799955
/lib/veetou/pzh/pzhmodel_.py
fe393d78cc1da6d7aec46d2741a126f14b156e44
[]
no_license
ptomulik/veetou
c79ceb3ca3d7ef7b261b2219489b6f0a7a83e1fa
b30be2a604f4426f832ec9805547ecd6cc9083fe
refs/heads/master
2021-01-22T17:28:57.271251
2019-01-05T01:46:43
2020-05-04T16:23:44
85,016,513
0
1
null
null
null
null
UTF-8
Python
false
false
2,677
py
# -*- coding: utf8 -*- """`veetou.pzh.pzmodel_` Defines data model for pzh (Protokół Zaliczeń - HTML) """ from veetou.model import * __all__ = ( 'PzHReport', 'PzHPreamble', 'PzHTr', 'PzHSummary', 'PzHDataModel' ) ##def strn(s=None): ## if s is None: ## retur...
[ "ptomulik@meil.pw.edu.pl" ]
ptomulik@meil.pw.edu.pl
02afa1f3ac1912f2e42968b1a9f8c171135d839e
fa795af74cda4d92604fa3332179ba939460a9b5
/JUBioactivities/QSARDB/Papa_Property_pkNO3_Degradation_by_NO3_radicals_as_logkNO3/__init__.py
ed8bd3df2d2321a9d042e6cc65b02e98c183d8a1
[]
no_license
JenniferHemmerich/JUBioactivities
7329a89db0e2790aff9bcfe153ab4dcd2c19a489
87054ac135d91e034dcfb6028562b4a7930a3433
refs/heads/master
2020-04-26T03:56:36.177955
2019-03-07T13:08:08
2019-03-07T13:08:08
173,284,341
1
1
null
null
null
null
UTF-8
Python
false
false
1,003
py
import os.path import glob import pandas as pd import numpy as np from ... import utils __data_src__ = list(sorted(glob.glob(os.path.join(__path__[0], "compounds/0*.mol")))) __data_src__ += [os.path.join(__path__[0], "properties/pkNO3.txt")] def read_data(raw=False): df = pd.DataFrame({'pkNO3_Index_Papa': np.l...
[ "jennifer.hemmerich@univie.ac.at" ]
jennifer.hemmerich@univie.ac.at
c0d9310f0cd5790e4e0888b620c63cf325dc4d58
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_log_items_response.py
4e3d6377a22a133cbef0e053c955f2b4d0817543
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
5,115
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListLogItemsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the va...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
fc80dafb1d1d6e219b60357d8bd2a5f407c26ca4
228ebc9fb20f25dd3ed2a6959aac41fd31314e64
/google/cloud/aiplatform_v1beta1/types/index.py
289ef763b8977f8503af013acbc9cfaa2abd7f63
[ "Apache-2.0" ]
permissive
orionnye/python-aiplatform
746e3df0c75025582af38223829faeb2656dc653
e3ea683bf754832340853a15bdb0a0662500a70f
refs/heads/main
2023-08-03T06:14:50.689185
2021-09-24T03:24:14
2021-09-24T03:24:14
410,091,957
1
0
Apache-2.0
2021-09-24T20:21:01
2021-09-24T20:21:00
null
UTF-8
Python
false
false
5,038
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...
[ "noreply@github.com" ]
orionnye.noreply@github.com
a0b4d2b6558019c0e406f1ef097a97fcefb6b50f
e5f49057eac43349a7fa999d90cb951e49617440
/filter/docclass.py
e6a113f9f13d3049b9b891fe7adaa77184535832
[]
no_license
Hsingmin/CI_py2.7
2ae9464c687a1ecfadc7928c6e4915d828ffc10e
ef2906755d498a054beec20a99c4784351816cce
refs/heads/master
2021-08-30T06:23:09.630058
2017-12-16T13:01:19
2017-12-16T13:01:19
110,184,772
1
0
null
null
null
null
UTF-8
Python
false
false
3,701
py
# docclass.py import re import math def sampletrain(c1): c1.train('Nobody owns the water.', 'good') c1.train('the quick rabbit jumps fences', 'good') c1.train('buy pharmaceuticals now', 'bad') c1.train('make quick money at the online casino', 'bad') c1.train('the quick brown fox jumps', 'good') de...
[ "alfred_bit@sina.cn" ]
alfred_bit@sina.cn
86aa8e4a31017d6d63b19ac4cd3b040d922f3902
353def93fa77384ee3a5e3de98cfed318c480634
/.history/week01/homework02/maoyanspiders/maoyanspiders/spiders/movies_20200628181659.py
ef1424ea237252dfb40fa01bde4bf24ab2c06ba7
[]
no_license
ydbB/Python001-class01
d680abc3ea1ccaeb610751e3488421417d381156
ad80037ccfc68d39125fa94d2747ab7394ac1be8
refs/heads/master
2022-11-25T11:27:45.077139
2020-07-19T12:35:12
2020-07-19T12:35:12
272,783,233
0
0
null
2020-06-16T18:28:15
2020-06-16T18:28:15
null
UTF-8
Python
false
false
2,603
py
# -*- coding: utf-8 -*- import scrapy from maoyanspiders.items import MaoyanspidersItem import lxml.etree from bs4 import BeautifulSoup as bs class MoviesSpider(scrapy.Spider): name = 'movies' allowed_domains = ['maoyan.com'] start_urls = ['http://maoyan.com/board/4'] header = { 'Content-Ty...
[ "31039587+ydbB@users.noreply.github.com" ]
31039587+ydbB@users.noreply.github.com
42c55265daabb2470cae40ea23ca66ff4211931f
94567834d7ca69fba178a9d2d0ae89a73f813741
/analyses/monthly_time_series/China_prmsl/plot_ts.py
630af662e02fee6a55708d2f481b49b4f71496c9
[]
no_license
philip-brohan/Yangtze_floods
41b6d655fd4f06f8129c4e5c10d51d5e74d6cec4
8ad376328f5b7866d82dd3613e6157cfa31abea1
refs/heads/master
2021-09-07T23:56:51.250070
2021-08-23T16:43:58
2021-08-23T16:43:58
243,798,164
0
0
null
null
null
null
UTF-8
Python
false
false
1,964
py
#!/usr/bin/env python # 20CRv3 time-series: Monthly average, regional average. # Each ensemble member as a seperate line. # Uses pre-calculated time-series. import os import iris import numpy import datetime import pickle import matplotlib from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas...
[ "philip@brohan.org" ]
philip@brohan.org
a7a89e0b98c823da3182800cda0c3e9b0acfaecc
09a1d8a920ddb9193dfcc9b05ddd842b83b18e0d
/aerosandbox_legacy_v0/examples_legacy_v0/vlm4_conventional.py
6d4ece711f7bb8d718aaa5d3f6e9995720f1a915
[ "MIT" ]
permissive
aqreed/AeroSandbox
8564b6adb1f297e94aec96872b55f59171ae8ac1
a0c5f3b2760fcddee28cff2715eeddcb8bcbe655
refs/heads/master
2021-03-24T21:02:14.881986
2020-03-15T22:43:55
2020-03-15T22:43:55
247,564,677
1
0
MIT
2020-03-15T22:46:25
2020-03-15T22:46:24
null
UTF-8
Python
false
false
3,281
py
from aerosandbox import * glider = Airplane( name="Conventional", xyz_ref=[0, 0, 0], # CG location wings=[ Wing( name="Main Wing", xyz_le=[0, 0, 0], # Coordinates of the wing's leading edge symmetric=True, xsecs=[ # The wing's cross ("X") sections ...
[ "peterdsharpe@gmail.com" ]
peterdsharpe@gmail.com
920bde8494004fccb4a049249d10f17b7726fe68
f0181afd2eea9b086ce9487fb8d7fd949282140a
/bin/countgenbank.py
173a4ff2ea62bc564b9bd89f321a8135b513e0b3
[ "MIT" ]
permissive
linsalrob/EdwardsLab
4a571676859c8b7238e733a0d3ad98ceb2e83c63
3c466acc07f1a56b575860ad26c92f900b272a53
refs/heads/master
2023-08-20T17:13:35.466103
2023-08-17T09:17:36
2023-08-17T09:17:36
25,702,093
36
25
MIT
2020-09-23T12:44:44
2014-10-24T18:27:16
Python
UTF-8
Python
false
false
1,679
py
""" Count features in a genbank file or directory of files """ import os import sys import argparse from roblib import message, genbank_seqio __author__ = 'Rob Edwards' __copyright__ = 'Copyright 2020, Rob Edwards' __credits__ = ['Rob Edwards'] __license__ = 'MIT' __maintainer__ = 'Rob Edwards' __email__ = 'raedwards...
[ "raedwards@gmail.com" ]
raedwards@gmail.com
4079d5185261835ffa9df17e29142566cf46c3bd
dece3eb22be792aeac65ea12a1f183dd73498add
/coding/Mysql/1.py
10119b94c419e57e3114923e1eb5292e80410ffd
[]
no_license
santanu5670/Python
352515ad82f94157e7f74467c5e7dedd6c9069c8
48c2779ccf934588f2bfce7cd322088acec04080
refs/heads/master
2023-06-24T09:22:49.925654
2021-07-22T15:17:34
2021-07-22T15:17:34
387,683,810
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
import mysql.connector mydb=mysql.connector.connect(host='localhost',user='nsec',password='nsec',database='mysql') print(mydb) if(mydb): print('Connection successful') else: print('Connection Unsuccessful')
[ "santanu2539@gmail.com" ]
santanu2539@gmail.com
0ae5aa472863f78daed685a05bb3eafc6c6f559c
fb6e7922df3da2e9cdc37a00150d6d7663e907ff
/environment/rtfm/dynamics/item/weapon/tridents.py
7f513dd0c963025c039f762d29b6e88477da154d
[ "Apache-2.0" ]
permissive
Spiph/GTG
c54a587002c42a032c89e8eceb5ec638f6c8c05f
4a45032290d0c1364e4398684582c51094b245f5
refs/heads/main
2023-09-02T14:44:14.946624
2021-10-27T12:29:05
2021-10-27T12:29:05
393,086,007
0
0
Apache-2.0
2021-08-05T15:09:07
2021-08-05T15:09:07
null
UTF-8
Python
false
false
465
py
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from .base_weapon import Weapon from ... import dice as D, material as M class BaseTrident(Weapon): pass class Trid...
[ "jzyjiangzhengyao@gmail.com" ]
jzyjiangzhengyao@gmail.com
259e794cad0040bcd4708de22d5d229d14681030
c085b06c9eb220eb40b5ada840886c09a152f053
/Libros de Python/web/web/ejer/tema-01/compose1.py.txt
d8040cca2291387aa8843870ff3af3f23cb0674a
[]
no_license
thanggc/libros
7d3bf564c5a227f08390fbcc6721a0aed160e3e0
430c03fe97544d263b5c3a665327b527d9c223a8
refs/heads/master
2020-12-25T13:23:38.527089
2013-04-29T23:14:08
2013-04-29T23:14:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
139
txt
def compose (*funcs): def composed (x): for f in reversed (funcs): x = f (x) return x return composed
[ "mini.guero@hotmail.com" ]
mini.guero@hotmail.com
6ee20a4a8435db0bfc40638cceef71df51f88e65
4e4c5827ed94024d499982279ce611b893c03572
/Azure Firewall/Script - Migrate Checkpoint config to Azure Firewall Policy/chkp2azfw.py
3d99c0cb6d834b73264997c9c8125e14c234c1a6
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/Azure-Network-Security
19a51076e5eda76e9808845792421b82ea5afb84
32141bb734518d5ae51bed5f7ca824a01b04ab49
refs/heads/master
2023-08-30T20:53:07.435480
2023-08-28T15:55:12
2023-08-28T15:55:12
215,905,001
690
264
MIT
2023-09-11T06:38:17
2019-10-17T23:46:28
Python
UTF-8
Python
false
false
43,780
py
import argparse import json import re import os import sys import copy # https://docs.python.org/3/library/ipaddress.html import ipaddress # Helper functions # Arguments parser = argparse.ArgumentParser(description='Generate an ARM template to create a Rule Collection Group from a Checkpoint ruleset exported with the...
[ "noreply@github.com" ]
Azure.noreply@github.com
1f9f4decc5db879cfc598fe5c9b819fbed4f43a3
b79bce0cf363d2b6dd11371d378d78d48e973270
/kashgari/tasks/classification/base_model.py
7000ff01695ba716d958546221c048d0d0394381
[ "Apache-2.0" ]
permissive
CharlotteSean/Kashgari
2d9338761b16d9804fb81ff92ce2ab1d256c80a7
ab9970ecf6c0164416bfbbec1378c690b0f00d76
refs/heads/master
2022-01-22T03:52:12.284458
2019-07-17T03:48:04
2019-07-17T03:48:04
197,900,673
2
0
Apache-2.0
2019-07-20T08:15:03
2019-07-20T08:15:03
null
UTF-8
Python
false
false
8,165
py
# encoding: utf-8 # author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: base_classification_model.py # time: 2019-05-22 11:23 import random import logging import kashgari from typing import Dict, Any, Tuple, Optional, List from kashgari.tasks.base_model import BaseModel, BareEmbedding...
[ "eliyar917@gmail.com" ]
eliyar917@gmail.com
ea87058f0b89ef2986d354a4d11d9415fbf9a678
f5ad59e9ebdd65e00b8a9c1a740bb6eef878fe99
/utils/augmentations.py
a7ef530c764d19f4b9771ac5b8ccbda6a16f0894
[ "MIT" ]
permissive
xiaobingchan/ssd.pytorch
8c506c7cf6cc8e29cd548b9c561a7b1bf258a4ae
31df8460f49cfb59d545500af7d92d36e7d643b3
refs/heads/master
2023-03-22T02:13:04.155628
2021-03-13T03:10:15
2021-03-13T03:10:15
347,259,018
0
0
null
null
null
null
UTF-8
Python
false
false
13,485
py
# -*- coding: utf-8 -*- import torch from torchvision import transforms import cv2 import numpy as np import types from numpy import random def intersect(box_a, box_b): max_xy = np.minimum(box_a[:, 2:], box_b[2:]) min_xy = np.maximum(box_a[:, :2], box_b[:2]) inter = np.clip((max_xy - min_xy), a_min=0, a_m...
[ "you@example.com" ]
you@example.com
02650d3908ac10b7a8f2d51dad07cac1493b5748
2eb779146daa0ba6b71344ecfeaeaec56200e890
/python/oneflow/compatible/single_client/ops/layers.py
1f64355013b6e7f7ad79cbd2282b85e7c29c16d5
[ "Apache-2.0" ]
permissive
hxfxjun/oneflow
ee226676cb86f3d36710c79cb66c2b049c46589b
2427c20f05543543026ac9a4020e479b9ec0aeb8
refs/heads/master
2023-08-17T19:30:59.791766
2021-10-09T06:58:33
2021-10-09T06:58:33
414,906,649
0
0
Apache-2.0
2021-10-09T06:15:30
2021-10-08T08:29:45
C++
UTF-8
Python
false
false
63,471
py
""" Copyright 2020 The OneFlow 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 law or agr...
[ "noreply@github.com" ]
hxfxjun.noreply@github.com
4887675c21970c73fbb8d10f2891370c490380cb
387587c753e76d98a6a0401327766c45561d5109
/ros_catkin_ws/devel_isolated/roslaunch/lib/python2.7/dist-packages/roslaunch/__init__.py
8752f22becaf4ebc75be508c7fbdbba3736db545
[ "MIT" ]
permissive
letrend/neopixel_fpga
7a4819a566fab02bd602c3338b8aaa0ddf4bee85
d9247417a9d311eceebad5898571846c6e33a44a
refs/heads/master
2021-01-23T01:00:55.290431
2017-05-30T20:15:38
2017-05-30T20:15:38
92,855,363
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
# -*- coding: utf-8 -*- # generated from catkin/cmake/template/__init__.py.in # keep symbol table as clean as possible by deleting all unnecessary symbols from os import path as os_path from sys import path as sys_path from pkgutil import extend_path __extended_path = "/root/ros_catkin_ws/src/ros_comm/roslaunch/src"...
[ "simon.trendel@tum.de" ]
simon.trendel@tum.de
ad0b0295d9ea1ffea7f3b2b7763f265e7b92aa1a
0f923a810256cfccac6c0642383638accaa8c83d
/terminal.py
aa7f6ccc6415275cf20270726ab7f148281295b2
[ "MIT" ]
permissive
overvenus/terminal-tools
7aca04bb4aca7122e821216ba53727d760f6bdb3
2db36334f9df068a30b42adfe270117f7ac5ae0d
refs/heads/master
2021-01-12T12:09:50.676607
2015-12-16T12:22:45
2015-12-16T12:22:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,883
py
#!/usr/bin/env python import json import urllib import urllib2 # Authentication def setup_credentials(utoken, atoken, credsfile): if utoken is None and atoken is None: try: creds = json.load(open(credsfile, 'r')) utoken = creds['user_token'] atoken = creds['access_token'...
[ "admin@example.com" ]
admin@example.com
a63d008f4a88eae9d409a21dec51ccc26b7b1055
0946fc233478fec9eac9eb247d45667c3b3989e8
/reassignment.py
ab002343bf6d67cf8ea6059c7d08a196ae10471d
[]
no_license
hoinx/music-processing-experiments
0da954e268d6a7120729cb3b012f53d836cd1dc7
bdd76fa8a8e1b90c8d4e610dcd3a6beadc2e7b1d
refs/heads/master
2020-04-30T13:00:35.283119
2015-11-02T19:54:46
2015-11-02T19:54:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,545
py
import os import matplotlib.pyplot as plt import numpy as np import scipy from files import load_wav from spectrogram import real_half, create_window from analysis import split_to_blocks from tuning import pitch_to_freq, freq_to_pitch, pitch_bin_range, quantize_freqs_to_pitch_bins def cross_spectrum(spectrumA, spectr...
[ "bohumir.zamecnik@gmail.com" ]
bohumir.zamecnik@gmail.com
6aaeff9c56d64847c2c21f107e952413f161274a
c8bdd4dc2153b77498bc5b9f7f2208712a556ea1
/mb_aligner/dal/section.py
7bec24c75c75c218863de3cb19530da9a5c11784
[ "MIT" ]
permissive
adisuissa/mb_aligner
ac0b9d567a7da70dcc60d570505080e3b75cec32
1c92ce7df862908ebaab9ded54985c2413b9d2c5
refs/heads/master
2023-07-19T21:08:56.716304
2019-09-11T13:49:58
2019-09-11T13:49:58
203,250,865
0
3
MIT
2023-07-06T21:05:45
2019-08-19T21:11:58
Python
UTF-8
Python
false
false
13,527
py
from collections import defaultdict import os import json from mb_aligner.dal.tile import Tile from mb_aligner.dal.mfov import Mfov import csv import numpy as np import cv2 import subprocess class Section(object): """ Represents a single section (at least one mfov) in the system """ def __init__(self,...
[ "adisuis@seas.harvard.edu" ]
adisuis@seas.harvard.edu
aa58c72a61686c3fcbfc652c3ea34db79cf29d43
ec5c35ac5163c4e81262a81a6a6c46667c01733d
/server/auth.py
b279dc4faf0008a333cb253cdb50ed329e219f6b
[]
no_license
kotawiw/bytedance-exercise-2
27b32d81aa7e8040c1c8448acbe9c4ff20ff5b26
8db190487a6490ec852d8418d93ba62251a5437f
refs/heads/master
2022-12-24T00:04:53.047395
2020-09-23T11:48:13
2020-09-23T11:48:13
297,948,510
0
0
null
null
null
null
UTF-8
Python
false
false
1,925
py
import functools from flask import Blueprint from flask import g from flask import request from flask import session from flask import abort from flask import jsonify from server.models.users import User bp = Blueprint("auth", __name__, url_prefix="/api/auth") def login_required(view): @functools.wraps(view) ...
[ "you@example.com" ]
you@example.com
0053a7079faf9fa027992cb3f4a7f048e6e8bee4
0e2768a4a21367c4c2f89976f2dadd5c94fec09b
/StarGAN/age_test.py
b6cf116b145149480910e3303ec1f6fc45ca770a
[]
no_license
xogus1107/Capstone
1dcea5d7fd1d603c8b31133d7a64325fee8b72ed
e84fd5a2e5419da969a8013a4ee0b98b4c1d22cf
refs/heads/master
2020-03-30T03:47:23.028610
2018-12-11T02:53:33
2018-12-11T02:53:33
150,708,066
1
1
null
2018-12-11T02:53:34
2018-09-28T08:16:27
Python
UTF-8
Python
false
false
3,984
py
import os import argparse from solver import Solver from data_loader import get_loader from torch.backends import cudnn def str2bool(v): return v.lower() in ('true') def main(config): # For fast training. cudnn.benchmark = True # Create directories if not exist. if not os.path.exists(config.log_...
[ "lkjim0757@naver.com" ]
lkjim0757@naver.com
b3aa4d9fb003f4ac0049040ec5cd7a6d3f657b93
2c4a2790457a2c16c9c92bc2e6feeb6cc9271994
/laptop/catkin_ws/build/turtlebot3/turtlebot3_pointop/catkin_generated/pkg.installspace.context.pc.py
2bf9e1ccc9e204260bada0f003da4a1983ed2144
[]
no_license
Zoltan3057/skalman
df37e6f376665363b6ea73c6c16fe8312e473e07
0e4cead39f6328c74622dd11688837b77152ff17
refs/heads/master
2021-09-22T22:26:07.265321
2018-09-17T20:47:05
2018-09-17T20:47:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "rospy;geometry_msgs".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "turtlebot3_pointop...
[ "fregu856@student.liu.se" ]
fregu856@student.liu.se
50c6172473e34cff7b5a5a941eb2be17cd93f182
b4e4ce76c56652a41b7f89070e20168851152ed1
/core/solver_ddpg.py
6bc6f0cef9f448ff783fd97c48097fbf80417cf7
[ "MIT" ]
permissive
electryone/deeprl
acb6a21b517344e353c9776e600e8bc0ac4d962b
449a2f6e31b0e03b60a465d241cca953a0bd9598
refs/heads/master
2020-03-28T20:28:31.849650
2017-08-30T20:08:56
2017-08-30T20:08:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,569
py
# -------------------------------------------------------------------# # Released under the MIT license (https://opensource.org/licenses/MIT) # Contact: mrinal.haloi11@gmail.com # Enhancement Copyright 2017, Mrinal Haloi # -------------------------------------------------------------------# import tensorflow as tf impo...
[ "mrinal.haloi11@gmail.com" ]
mrinal.haloi11@gmail.com
1ccb569c8cd950c90ba8af01abc664229472ddcc
172c5da69ed8914dc899f65be8716e0fac55249b
/surveys/views.py
d8838fa92b0dc94e0cbbf96fee6d71ae1036af1a
[]
no_license
TheProrok29/django_questionnaires
cd75f0271e3b1012351c94b0fde4cb87f795ef5c
2e62bf2e96fa58f96b80c84c04d08825dfb9ac37
refs/heads/master
2020-05-01T05:11:52.268230
2019-04-07T19:44:30
2019-04-07T19:44:30
177,295,076
0
0
null
null
null
null
UTF-8
Python
false
false
7,222
py
from django.shortcuts import render, HttpResponseRedirect from .models import Survey, Question, Answer from django.contrib.auth.decorators import login_required from . import forms from django.urls import reverse from django.contrib import messages @login_required def surveys(request): kwargs = {} kwargs['sur...
[ "tomaszdbogacki@gmail.com" ]
tomaszdbogacki@gmail.com
73e4c6bd217f7949adbe8e395dd344f590caaa88
57e37e1df9596cdaf86d3dc81cfbe15c5303157f
/SocialMediaenv/social_media/login_app/migrations/0007_auto_20200625_0059.py
b85ab48b079026324aa416a8e4f4f1f51ed52538
[]
no_license
Tanzin-Ul-Islam/Django_Social_Media
45d9240b25456768b4cc1976f4971c7921a6ceae
7578aeb98702bbbb6ae820de11c2c5a4c237243a
refs/heads/master
2022-11-29T11:37:07.949118
2020-08-10T20:15:45
2020-08-10T20:15:45
286,519,157
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
# Generated by Django 3.0.7 on 2020-06-24 18:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('login_app', '0006_auto_2...
[ "tanzin.cse@gmail.com" ]
tanzin.cse@gmail.com
90593ff711ea932ec1a2f7a1ec6b49f285920849
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_75/1267.py
24da43f932ff6c1352b5a0a632af37122acf1eab
[]
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
2,444
py
import unittest def cut(s, size): for i in range(0, len(s), size): yield s[i:i + size] def parse_combining(s): d = {} for mom, dad, kiddo in cut(s, 3): d[frozenset((mom, dad))] = kiddo return d def parse_opposing(s): l = [] for mom, dad in cut(s, 2): l.a...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
a3e3b87d073f41bae0250078bf35cd961afc03ef
49f61714a6f78d984fd2194d6064d84e891bc5b7
/2019-1/230/users/3356/codes/1599_842.py
15af2a9064e98315942e60e03b8d7ff9b43b637d
[]
no_license
psbarros/Variaveis3
b5c4e1517e7d94a846ee03791d25d5821a1c651c
3dcf6f810709ce03c78335acf9533e008a2ae125
refs/heads/master
2023-06-13T07:05:00.878430
2021-07-06T17:51:37
2021-07-06T17:51:37
383,549,597
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
# Teste seu codigo aos poucos. # Nao teste tudo no final, pois fica mais dificil de identificar erros. # Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo. n = int(input()) soma = 0 while (n > 0): resto = n % 10 n = n // 10 soma = soma + resto print(soma)
[ "psb@icomp.ufam.edu.br" ]
psb@icomp.ufam.edu.br
a23d0a0133f0e15711d6f9797955758dc75ae16e
4148260054c2cf4605dacb8bdef3605c82eca470
/temboo/Library/Wordnik/Words/RandomWords.py
682599bdf169426d581dbe717544f4ca5ebb9bb6
[]
no_license
wimsy/actuarize-web
0f23d5f00afe3d36d430621cdb497d2e64998416
5f43af3019da6fb08cafeec9ff0a89df5196b864
refs/heads/master
2021-03-12T19:38:21.887681
2012-12-19T01:13:50
2012-12-19T01:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,155
py
# -*- coding: utf-8 -*- ############################################################################### # # RandomWords # Retrieves a list of random words. # # Python version 2.6 # ############################################################################### from temboo.core.choreography import Choreography from te...
[ "mike.wimsatt@gmail.com" ]
mike.wimsatt@gmail.com
2fec48c9bc4689497d616c4fab84161b86faed78
ef61c5f177ee44ac08325335fc28a12f3fccbb58
/resource_management/tests/interactors/test_create_resource.py
2c7bedc0881b90bbee655ebca9a3137cfff9d3c2
[]
no_license
bammidichandini/resource_management-chandini
3c11c7b2eb5e2f8d3df5b55e4d3ee86a27ed5c3a
aa4ec50f0b36a818bebc2033cb39ee928e5be13c
refs/heads/master
2022-12-01T19:59:25.366843
2020-07-23T09:10:42
2020-07-23T09:10:42
269,610,045
0
0
null
null
null
null
UTF-8
Python
false
false
1,920
py
import pytest from unittest.mock import create_autospec #from resource_management.exceptions.exceptions import UserCannotManipulateException from django_swagger_utils.drf_server.exceptions import Forbidden from resource_management.interactors.storages.resources_storage_interface import StorageInterface from resource_ma...
[ "chandini.bammidi123@gmail.com" ]
chandini.bammidi123@gmail.com
a3078ed764f5a832bc8be4f0ed37f7616cbcaff7
a52b63889017a7f099a2575abf251bfadc672349
/main.py
40f0b0bd54fb73bd86e5354c476a419e1fd0ed16
[]
no_license
602p/siscalc
cda58454a10780cceb018d0405377dbd49444911
0c82d1e1acdb0c1c99a09a7d02f47367ef036989
HEAD
2016-09-01T15:45:22.996359
2016-03-19T06:18:09
2016-03-19T06:18:09
54,244,235
0
0
null
null
null
null
UTF-8
Python
false
false
3,419
py
import browser class Category(object): def __init__(self, *a, **k): self.container=browser.html.DIV() self.assignments_container=browser.html.DIV() self.percent=browser.html.INPUT(readonly=True) self.weight=browser.html.INPUT(type="number") self.add=browser.html.BUTTON("Add ...
[ "louis@goessling.com" ]
louis@goessling.com
9006a9071155da1ddc1db98dd44bc61448f755f0
7374204324f6326663d12b3dd1fecc5bebb6854e
/algorithm-pattern/binary_op/136.py
8443de71e568342720ea162d84e376931fc2706a
[]
no_license
KevinChen1994/leetcode-algorithm
c18b58df398027078b0c0f468c4c873e9419433b
1bcf3206cd3acc428ec690cb883c612aaf708aac
refs/heads/master
2023-02-07T11:35:47.747207
2023-01-29T11:08:49
2023-01-29T11:08:49
230,386,123
2
0
null
null
null
null
UTF-8
Python
false
false
546
py
# !usr/bin/env python # -*- coding:utf-8 _*- # author:chenmeng # datetime:2020/7/17 13:51 ''' solution: 使用异或运算,两个数相同为0,不同为1;因为异或操作满足交换律,例如:1^2^2=2^2^1=0^1=1(0异或任意数是等于任意数本身) ''' class Solution: def singleNumber(self, nums): result = nums[0] for num in nums[1:]: result = result ^ num ...
[ "346521888@qq.com" ]
346521888@qq.com
cf253b4a79d908574d1f8ec1b551a5b8cb92373c
1825283527f5a479204708feeaf55f4ab6d1290b
/leetcode/python/546/original/546.remove-boxes.0.py
4414c0fc7ebe8b59905309e520e365b774e2b427
[]
no_license
frankieliu/problems
b82c61d3328ffcc1da2cbc95712563355f5d44b5
911c6622448a4be041834bcab25051dd0f9209b2
refs/heads/master
2023-01-06T14:41:58.044871
2019-11-24T03:47:22
2019-11-24T03:47:22
115,065,956
1
0
null
2023-01-04T07:25:52
2017-12-22T02:06:57
HTML
UTF-8
Python
false
false
1,077
py
# # @lc app=leetcode id=546 lang=python3 # # [546] Remove Boxes # # https://leetcode.com/problems/remove-boxes/description/ # # algorithms # Hard (37.29%) # Total Accepted: 8.4K # Total Submissions: 22.4K # Testcase Example: '[1,3,2,2,2,3,4,3,1]' # # Given several boxes with different colors represented by differen...
[ "frankie.y.liu@gmail.com" ]
frankie.y.liu@gmail.com
cf3ff688eca559e72b7a03c95a74663b58dfad04
83a506a501561602ad3b259341225ddfbddab160
/GameServer/socket_server/server/factorys/tornadoFactory.py
287f7c09b26205ca9792a3d77952117fda7e9526
[]
no_license
daxingyou/SouYouJi_Game
9dc5f02eb28b910efb229653a8d0bffe425a7911
7311a994c9aba15b7234331709975ebc37e8453d
refs/heads/master
2023-03-28T01:36:48.955107
2020-04-05T01:24:17
2020-04-05T01:24:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,412
py
# -*- coding:utf-8 -*- # !/bin/python """ Author: Winslen Date: 2019/10/15 Revision: 1.0.0 Description: Description """ import traceback import tornado import tornado.httpserver import tornado.ioloop import tornado.log import tornado.options import tornado.web from typing import * from define.defi...
[ "ronnyzh@yeah.net" ]
ronnyzh@yeah.net
ac7db187efbe323fedbbcc02c5b41ba4416264b0
57ec8eff01275cdae43243900a422b87836b807b
/arithmetic.py
bc77393ea397e581d0238d878fc231f7fe59759a
[]
no_license
Ihyatt/calculator-1
15624b997c1c19a6bf30ac422f55669838ea7115
43f5d63eb81398aff3cf10e3d2d77c4296bdddc8
refs/heads/master
2021-01-10T16:29:56.063120
2016-04-06T19:54:49
2016-04-06T19:54:49
55,635,046
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
def add(num1, num2): """ This is function will add two numbers """ return num1 + num2 def subtract(num1, num2): """ This function will subtract two numbers """ return num1 - num2 def multiply(num1, num2): """ This function will multiply two numbers """ return num1 * num2 def divide(num1, num2): """ This...
[ "info@hackbrightacademy.com" ]
info@hackbrightacademy.com
2cf45b3d2a4735668005b263d62b610abb28794a
d897c2bc4ba9a84e7e8a2fe3e998d78cd116f920
/max_seq/gen/generatore
64aabc5dc9d2141313929567a4aedb167fe56ad7
[]
no_license
romeorizzi/problemsCMS_for_LaboProg
8907622744bc89752391024f24025a7e9706501b
027b1b204efe602461e93d8b1c194a09eb6526cd
refs/heads/master
2020-04-03T17:33:52.384915
2020-03-25T07:10:17
2020-03-25T07:10:17
155,449,755
0
0
null
null
null
null
UTF-8
Python
false
false
745
#!/usr/bin/env python2 from limiti import * from varie import * from sys import argv, exit, stderr import os from numpy.random import random, randint, seed as nseed from random import choice, sample, shuffle, seed as rseed usage="""Generatore di "prova". Parametri: * N (numero) * S (seed) Constraint: * 1 <= N <= %d...
[ "romeo.rizzi@univr.it" ]
romeo.rizzi@univr.it
014cc680e5166aca9a5e8d59a1954d04e1b5f948
175e4e031471e5cdbc9bcaee2df10f5ec44871d3
/LESSON2b/.history/backend/app_20200608192133.py
7e3f3287df3fda92cff8bcebf4818814b899ee30
[]
no_license
hiyacins/uma_study
c329d29a9c3899ab4feca21b9c47ef546b69b0bd
067e66f258a0c89f7670c645dd7c40feee8536fa
refs/heads/master
2023-01-23T06:40:12.435047
2020-06-17T15:59:34
2020-06-17T15:59:34
239,077,726
0
0
null
2023-01-06T08:36:26
2020-02-08T05:56:52
Python
UTF-8
Python
false
false
16,842
py
# from flask import Flask, render_template from HiyaLib import * # DBのテーブルを表現するクラスの基底クラス class DBTable(): # columns と column_names から要素をひとつずつ取り出したのがvalue , nameとして、 # それを 生成したDBTable派生型のオブジェクトに setattr(object,name,value)する。 # columns:カラムの値が格納されている。 # column_names:カラム名が格納されている。 # 返し値:recordオブジェクト...
[ "hiyacins@gmail.com" ]
hiyacins@gmail.com
f2f2a7316f41e31019494e9057e0c5e91b6b7285
117f066c80f3863ebef74463292bca6444f9758a
/api/4min/search/python-flask-server/swagger_server/test/test_search_controller.py
81b88eb6a8b94cfdb820b62714ac0fb1f63005a0
[]
no_license
cottrell/notebooks
c6de3842cbaeb71457d270cbe6fabc8695a6ee1b
9eaf3d0500067fccb294d064ab78d7aaa03e8b4d
refs/heads/master
2023-08-09T22:41:01.996938
2023-08-04T22:41:51
2023-08-04T22:41:51
26,830,272
3
1
null
2023-03-04T03:58:03
2014-11-18T21:14:23
Python
UTF-8
Python
false
false
1,402
py
# coding: utf-8 from __future__ import absolute_import from swagger_server.models.search_request import SearchRequest from swagger_server.models.search_response import SearchResponse from . import BaseTestCase from six import BytesIO from flask import json class TestSearchController(BaseTestCase): """ SearchCon...
[ "cottrell@users.noreply.github.com" ]
cottrell@users.noreply.github.com
cb4bee84110b580c390815e435c430ed3a233fd9
d5f75adf5603927396bdecf3e4afae292143ddf9
/python/paddle/fluid/tests/unittests/test_norm_all.py
c65bff3a7bb397ea896da928581078f9b6a1e6c5
[ "Apache-2.0" ]
permissive
jiweibo/Paddle
8faaaa1ff0beaf97ef7fb367f6c9fcc065f42fc4
605a2f0052e0ffb2fab3a4cf4f3bf1965aa7eb74
refs/heads/develop
2023-07-21T03:36:05.367977
2022-06-24T02:31:11
2022-06-24T02:31:11
196,316,126
3
2
Apache-2.0
2023-04-04T02:42:53
2019-07-11T03:51:12
Python
UTF-8
Python
false
false
21,615
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
jiweibo.noreply@github.com
2d590385ddba87310af206021f891c91aea028ef
df7b40e95718ac0f6071a0ba571b42efc81cf6de
/configs/deeplabv3/deeplabv3_r101-d16-mg124_512x1024_80k_cityscapes.py
de4a8a5e9f030f1e8a8802596885186163f23eed
[ "Apache-2.0" ]
permissive
shinianzhihou/ChangeDetection
87fa2c498248e6124aeefb8f0ee8154bda36deee
354e71234bef38b6e142b6ba02f23db958582844
refs/heads/master
2023-01-23T20:42:31.017006
2023-01-09T11:37:24
2023-01-09T11:37:24
218,001,748
162
29
Apache-2.0
2022-11-03T04:11:00
2019-10-28T08:41:54
Python
UTF-8
Python
false
false
368
py
_base_ = './deeplabv3_r50-d8_512x1024_80k_cityscapes.py' model = dict( pretrained='open-mmlab://resnet101_v1c', backbone=dict( depth=101, dilations=(1, 1, 1, 2), strides=(1, 2, 2, 1), multi_grid=(1, 2, 4)), decode_head=dict( dilations=(1, 6, 12, 18), sampler=d...
[ "1178396201@qq.com" ]
1178396201@qq.com