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
692da999c2b06adfee50cf10ed6fcc7a977ca421
70aa3a1cefde69909fd9a2ede9a4bdfbb7e434ad
/sobel.py
36ea7cd7ce655d9c20410d4d2e870acffa768b1a
[]
no_license
cflin-cjcu/opencvttt
512cf2ba70cc9d30cb97e733172d94396cfff56f
07add34638fc043d02f09459246aa47975c5a9c7
refs/heads/master
2023-06-27T16:00:20.070365
2021-07-30T08:54:14
2021-07-30T08:54:14
389,538,395
0
2
null
null
null
null
UTF-8
Python
false
false
455
py
import cv2 as cv import numpy as np from matplotlib import pyplot as plt img = cv.imread('./images/test1.jpg',0) sobel = cv.Sobel(img,cv.CV_8U,1,1,ksize=3) sobelx = cv.Sobel(img,cv.CV_32F,1,0,ksize=3) sobely = cv.Sobel(img,cv.CV_32F,0,1,ksize=3) sobel2 = cv.Sobel(img,cv.CV_8U,1,1,ksize=5) cv.imshow('img',img) cv.imsho...
[ "cflin@mail.cjcu.edu.tw" ]
cflin@mail.cjcu.edu.tw
75a918045d1c47fb55559cf79ac0ec0d1def950c
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/Ablation4_ch016_ep003/Gather2_W_fixGood_C_change/train/pyr_1s/L4/step10_a.py
bc3f9d3b9536723a08c7bd94f59d700f75d14a81
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
8,830
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
7dd64a3c50ed789c5881b6291252c71d5b8ced14
91d7987874dcfa0d8dbbd9a3a3831ed9b67691f8
/yamaxun/yamaxun/pipelines.py
8013054e6fa3e4bd1a8179243b752ee656e01dd5
[]
no_license
lsz1995/amazon
c9388cc78f8465804b53e8759940ebc9625cbdd6
e648ff21f642632e30925ffab1d3a4608eb201ca
refs/heads/master
2020-03-19T05:55:23.726649
2018-06-04T05:31:22
2018-06-04T05:31:22
135,974,959
0
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html from pymongo import MongoClient from yamaxun.items import YamaxunItem class YamaxunPipeline(object): def process_item(self,...
[ "qqlsz87@126.com" ]
qqlsz87@126.com
ed5ee8aa6d39cf4b84696afef021cd774a662000
edfb435ee89eec4875d6405e2de7afac3b2bc648
/branches/os_x_native_events/py/selenium/webdriver/firefox/webdriver.py
bcd92df9ba2c6fe70e1a5d3cb1a663660412ab26
[ "Apache-2.0" ]
permissive
Escobita/selenium
6c1c78fcf0fb71604e7b07a3259517048e584037
f4173df37a79ab6dd6ae3f1489ae0cd6cc7db6f1
refs/heads/master
2021-01-23T21:01:17.948880
2012-12-06T22:47:50
2012-12-06T22:47:50
8,271,631
1
0
null
null
null
null
UTF-8
Python
false
false
4,145
py
# Copyright 2008-2009 WebDriver committers # Copyright 2008-2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
[ "simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9" ]
simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9
9e4b4043b10db5279e165da2fd0224214758405e
8b2e795c3040a2ef1d3f0c21752bec57a0614bd6
/venv/Scripts/pilfont.py
bbb82dc78d2a2729dce7cbeafae8e6fb6cfc97ae
[]
no_license
harshit8858/NHDO
c75e244dfdc91817b3047d65c7be610f3e18aba3
6a5ea2de4ba607c20c0b9bd241e6b1c82090eba9
refs/heads/master
2023-01-06T20:18:33.795898
2018-01-03T07:39:04
2018-01-03T07:39:04
105,629,451
1
3
null
2022-12-20T22:32:34
2017-10-03T08:26:57
Python
UTF-8
Python
false
false
1,057
py
#!c:\users\harshi~1\nhdo\venv\scripts\python.exe # # The Python Imaging Library # $Id$ # # PIL raster font compiler # # history: # 1997-08-25 fl created # 2002-03-10 fl use "from PIL import" # from __future__ import print_function import glob import sys # drivers from PIL import BdfFontFile from PIL import PcfFo...
[ "harshit8858@gmail.com" ]
harshit8858@gmail.com
df9a72c962406e7277fb7cc77a71ebf225417ea8
635e0b896b75b7d496f60368ae4e1a8b8b41546a
/api/v1/views/index.py
703b0f26519138ec448b84b06203f7aa84340147
[ "LicenseRef-scancode-public-domain" ]
permissive
SimonBr017/AirBnB_clone_v3
3add07db83b11b606084c27ce271ece9f5e255ff
9427f89680c12fdc9f2b4b30f3a7a2ad2405cbb4
refs/heads/main
2023-08-28T10:29:58.841924
2021-09-20T17:57:33
2021-09-20T17:57:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
#!/usr/bin/python3 """ Blueprint routes """ from api.v1.views import app_views from flask import jsonify from models import storage @app_views.route('/status', strict_slashes=False) def status(): """ Return the status in JSON format """ return jsonify({'status': 'OK'}) @app_views.route('/stats', strict_slas...
[ "etiennebrxv@gmail.com" ]
etiennebrxv@gmail.com
43363719bdcfc095aafb427a6bd230358c843e28
8b53a8b9803d92003f3a3a9e1b08def7642ba35d
/TALLERES/TAL3_while_for_20210217_cur/2_while_1hastan.py
61c8e9c8dec335c9e77d6c5eca291edc005ba68a
[]
no_license
smarulan613/fundamentos_prog_20211_sebasmc
637cdf9e1f61de0f876fe74530df4e6a5b40d6a6
0a87d81dae2bd5656a3e6a521585da661efe6cf6
refs/heads/main
2023-05-02T04:26:47.035698
2021-05-27T03:37:05
2021-05-27T03:37:05
356,059,108
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
# -*- coding: utf-8 -*- """ Created on Wed Feb 17 19:38:09 2021 @author: R005 """ #Codificar un programa que solicite la carga de un valor positivo y nos muestre desde #1 hasta el valor ingresado de uno en uno n=int(input("Ingrese el valor final:")) x=1 while x<=n: print(x) x=x+1 ...
[ "noreply@github.com" ]
smarulan613.noreply@github.com
b19873da3ddd42c1513de7fe80fb969ef2c415d5
db6b79665d35eb6a44c81c68b01e947b534e308d
/code/setup.py
ca4507f4acf8084c73ad663dd5573ebaa1eae431
[]
no_license
davidwhogg/crushinator
ffe4536b04a1239dcf04334ea6975d367c2ac0ca
4f0f11503af6bab5ee4498cb6981ddf8b8307339
refs/heads/master
2018-12-29T00:38:20.145527
2014-01-11T19:47:42
2014-01-11T19:47:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
# python setup.py build_ext --inplace --rpath=... import os from distutils.core import setup, Extension from Cython.Distutils import build_ext ext = [Extension('interpolation', ['./crushinator/interpolation.pyx'], libraries=['gsl', 'gslcblas'], library_dirs=['/home/rfadely/local/lib/...
[ "rossfadely@gmail.com" ]
rossfadely@gmail.com
81235696795943f3e5ef158eb7bd4a9ec3eacb3f
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_145/ch14_2019_04_02_21_19_13_573782.py
c234f51f74eed63be62398e7514723c6cd5a63bd
[]
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
65
py
def calcula_volume_da_esfera(r):\n return (4*math.pi*(r**3))/3
[ "you@example.com" ]
you@example.com
2367b8d14a26b5f8da01129ea04dcd71079fae39
6aab2d11b3ab7619ee26319886dcfc771cbcaba5
/0x08-python-more_classes/2-rectangle.py
c7653413c47b30e26a5abc2a2c2a3e0c806a6936
[]
no_license
IhebChatti/holbertonschool-higher_level_programming
ef592f25eb077e182a0295cb5f2f7d69c7a8ab67
ca58262c6f82f98b2022344818e20d382cf82592
refs/heads/master
2022-12-18T10:06:30.443550
2020-09-24T17:31:30
2020-09-24T17:31:30
259,174,423
1
1
null
null
null
null
UTF-8
Python
false
false
2,085
py
#!/usr/bin/python3 """Defining a rectangle """ class Rectangle: """Rectangle """ def __init__(self, width=0, height=0): """initializing a Rectangle Keyword Arguments: width {int} -- [width of rectangle] (default: {0}) height {int} -- [height of rectangle] (default:...
[ "iheb.chatti@holbertonschool.com" ]
iheb.chatti@holbertonschool.com
5ea3fa316976d2ea5d4af97f47e4e3e72025754f
5a424888b89eb2b480cbe1bc484e5ed95427f2e1
/plot/a_dzliu_code_Plot_CSFRD.py
07a6c14b8fb5e0fb20988373719e910d55cf8b27
[]
no_license
1054/DeepFields.GalaxyModelling
07f7d33b987613d01a900126d4720f96b3964414
5cd31e80782f079040577d94d046ab0728f0c3bc
refs/heads/master
2023-01-01T09:18:27.188092
2020-10-25T22:48:33
2020-10-25T22:48:33
107,806,446
0
0
null
null
null
null
UTF-8
Python
false
false
6,771
py
#!/usr/bin/env python # import os, sys, re, json, numpy, astropy, matplotlib, subprocess #matplotlib.use('Qt5Agg') from astropy.table import Table from astropy import units as u from matplotlib import pyplot as plt from matplotlib import ticker as ticker import numpy as np from pprint import pprint from astropy.co...
[ "liudz1054@gmail.com" ]
liudz1054@gmail.com
74829d12c11a421f95e3ecf384bad58b864b91f5
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/api/serviceusage/v1/api-serviceusage-v1-py/google/api/serviceusage_v1/services/service_usage/async_client.py
c232f03d5b647b99931e9c785a407f0a231cc235
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,868
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 o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
fd846adca759b0c9b2a65e2e835dc49ca3f384b1
0bb4e169444ae71b3d64522f94141a7a00054111
/userid_to_slug.py
2b7b1f25806f1a8740f94cc3c660ca6b7d14e5ad
[ "CC0-1.0" ]
permissive
riceissa/ea-forum-reader
5cf02f52f767c28417a64b4b76fc57c07ab0f011
4c8b76b8947b41bc8f3b3067e75ef7870eb4fa6b
refs/heads/master
2022-05-05T22:21:48.011316
2022-03-12T19:01:36
2022-03-12T19:01:36
156,928,401
11
3
NOASSERTION
2018-11-24T07:06:07
2018-11-09T23:16:13
Python
UTF-8
Python
false
false
308
py
#!/usr/bin/env python3 import sys import util # For some reason, the Algolia search result JSON only has the user ID and # username, not the user slug. So to be able to link to the user page from # search results, we need to conver the userid to a user slug. print(util.userid_to_userslug(sys.argv[1]))
[ "riceissa@gmail.com" ]
riceissa@gmail.com
f2ca82e1a1bd182480593aac57fe76d0675b56f5
e45d2faad9389886a82ff5176853b1ff6e37caae
/argparse/047_argparse_conflict_handler.py
4098c31734537ec1c7e84ff61f17359e57119df6
[]
no_license
allenmo/python_study
6320aa4cd80fe46ccf73076015c67bdcb6338d30
7aff5d810ca6e791d62235d57c072a8dc14457ca
refs/heads/master
2021-03-24T12:00:33.079530
2016-11-22T23:35:58
2016-11-22T23:35:58
55,770,379
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
import argparse parser = argparse.ArgumentParser(prog='PROG', conflict_handler='resolve') parser.add_argument('-f', '--foo', help='old foo help') parser.add_argument('--foo', help='new foo help') parser.print_help()
[ "allen02403@gmail.com" ]
allen02403@gmail.com
65daa93551bf2b8891afdd05edfb2d723e291f96
f188379dc9c1e5b63e432d434c782a4d6997872b
/5_List Advanced/Lab/03. Palindrome Strings.py
59d10bcd5a3064551f8fafa8f18d719c67768992
[]
no_license
GalyaBorislavova/SoftUni_Python_Fundamentals_January_2021
39d7eb8c28f60ff3c293855b074c49ac622a6036
7d479fd6c8e4136fb07b765458cc00088e09767a
refs/heads/main
2023-06-15T04:16:17.084825
2021-06-30T18:05:42
2021-06-30T18:05:42
381,785,764
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
words = input().split(" ") searched_palindrome = input() palindromes = [p for p in words if p == p[::-1]] print(palindromes) print(f"Found palindrome {palindromes.count(searched_palindrome)} times")
[ "galyaborislavova888@gmail.com" ]
galyaborislavova888@gmail.com
db618d8285a21d6d5d76d68ec2af44087c421572
1725fddc758271af6ce911dfe7dcca3f2bb3233d
/service/workflow/workflow_custom_notice_service.py
e8f59ece0a9ac0dd4f12bc77c9fbd59998e0775c
[ "MIT" ]
permissive
blackholll/loonflow
7948018324664d6a88df0616275ad4ce28400745
b0e236b314286c5f6cc6959622c9c8505e776443
refs/heads/master
2023-08-22T21:32:08.223136
2023-06-04T13:39:27
2023-06-04T13:39:27
120,720,556
1,864
733
MIT
2023-07-05T23:24:18
2018-02-08T06:26:53
Python
UTF-8
Python
false
false
5,191
py
import json from django.db.models import Q from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from apps.workflow.models import CustomNotice from service.base_service import BaseService from service.common.constant_service import constant_service_ins from service.common.log_service import auto_log ...
[ "blackholll@163.com" ]
blackholll@163.com
483133ff3733c8c7954f199313fc21a841f27a54
ad38b9a924911b3249b9ffec01d78a2b1048fa0d
/动态调试/Immunity Debugger v1.73/Lib/test/test_class.py
97e262adbfbd6054364005f392020d097da930ce
[]
no_license
h3len/HackerToolBox
77c5a45553784d20104db21ac5fe8f840ca519a6
4397b0c25cfd0eb3f92484f396745cc664af2531
refs/heads/master
2020-04-04T22:57:47.376773
2018-10-10T15:43:06
2018-10-10T15:50:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,813
py
"Test the functionality of Python classes implementing operators." from test.test_support import TestFailed testmeths = [ # Binary operations "add", "radd", "sub", "rsub", "mul", "rmul", "div", "rdiv", "mod", "rmod", "divmod", "rdivmod", "pow", ...
[ "redleavessun@gmail.com" ]
redleavessun@gmail.com
326b022cdca18e93633916731c94410b1b38a0bb
984b7f3efe488e09080b96fa45a92e8d3396c86a
/ELFMiner.py
9cc6e0028b4fd74c2063430d0c39f29a9c40760a
[ "MIT" ]
permissive
zychia/ELF-Miner
c0ee995a17b41e559ac6ff7914c2f26be38ed337
438b9dcd65a3d7a79ef830c1a5517891e12cfa7e
refs/heads/master
2021-02-08T00:26:49.991431
2018-12-21T13:50:53
2018-12-21T13:50:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,965
py
from readelf3 import * import sys import subprocess from subprocess import call import pandas as pd import csv import os features = [] headers = [] final_report = "a.txt" section_list_size = 0 def prepare_headers(): headers.extend(["Name", "Identification", "MachineType", "ELFVersion", "EntryPointAddress", "ProgramH...
[ "shreyansh.pettswood@gmail.com" ]
shreyansh.pettswood@gmail.com
307765967f950baa6009e7ca57e4b343db27a692
17f122497a3fb90105cb35b08b8ba4d2379831b5
/papyrobot/utils/answer.py
799e31d5ed4b7e2f9affa095110742d0a317dc8e
[]
no_license
Zepmanbc/oc_dapython_pr7
198084d7e9c37a8949186c3ff4f89d59eaf54d2f
dc2d38ba2164669167423c80d94b52d7257a548e
refs/heads/master
2020-04-25T17:39:01.008881
2019-04-17T20:33:16
2019-04-17T20:33:16
172,956,325
0
1
null
null
null
null
UTF-8
Python
false
false
1,121
py
#! /usr/bin/env python """Random Answer module""" import json from random import randint class Answer(): """Answer class. answer = Amswer() print(answer.response(category)) return: str Categories: intro introduce_story no_result sentences are in 'papyrob...
[ "zepman@gmail.com" ]
zepman@gmail.com
55efff42900bca69bb0bc655f601a04c0d1dff87
48c522df53c37a7b9bea3d17f403556e01eeb24c
/ubuntu-20-04-scripts/build_ubuntu_dataset/build_ubuntu_dataset_with_radare2.py
78619e21c78a2a8f938b82eba161cdf9b8d04242
[]
no_license
flobotics/func_sign_prob
32ee8a8e4d1e33bec9253cd21e7609827d370fc9
18000e04ea108fb2530a50a9de4f8996cde398f0
refs/heads/master
2023-02-10T19:08:01.536243
2021-01-02T23:25:38
2021-01-02T23:25:38
292,960,645
1
0
null
null
null
null
UTF-8
Python
false
false
38,267
py
import subprocess import os import tensorflow as tf #from tensorflow import keras #from tensorflow.keras.preprocessing.text import Tokenizer import pexpect import numpy as np import pickle import getopt import sys from multiprocessing import Pool ### amazon cloud aws path user_home_path = os.path.expanduser('~') base_...
[ "ubu@ubu-VirtualBox" ]
ubu@ubu-VirtualBox
df182ed949bc897da31a5f60c843f4350b9ca785
9d7d69178c6f1f1db6ed6767e0af32bfe836549c
/new_workspace/Gumtree_Workspace/UsefulPythonScripts/plexi_flux_v_lambda.py
9ddf49092d9dae358e8d1a007d8d733b52982742
[]
no_license
Gumtree/Quokka_scripts
217958288b59adbdaf00a9a13ece42f169003889
c9687d963552023d7408a8530005a99aabea1697
refs/heads/master
2023-08-30T20:47:32.142903
2023-08-18T03:38:09
2023-08-18T03:38:09
8,191,387
0
0
null
null
null
null
UTF-8
Python
false
false
4,517
py
from time import sleep from gumpy.commons import sics ##driveAtt(270) sics.drive('nvs_lambda', 4.505) sleep(0.1) print 'start scanning for ' quokka.scan("time", 120) sleep(0.1) sics.drive('nvs_lambda', 4.6) sleep(0.1) print 'start scanning for ' quokka.scan("time", 120) sleep(0.1) sics....
[ "quokka@DAV1-QUOKKA.nbi.ansto.gov.au" ]
quokka@DAV1-QUOKKA.nbi.ansto.gov.au
0685786ef1c40ebd5e6c8ea6eed8236dd947972b
5e7cacad2e9c0b6cc8677412b8d1bce92d01f197
/realefforttask/pages.py
47cd26df58797bd8b62258f2483729039e32b526
[]
no_license
chapkovski/real-effort-several-rounds
3acb55a8396aae82a8e8609641f38e16e546df64
8df230066aa4d085b7d1dfcc36774749348bf038
refs/heads/master
2018-12-24T17:30:44.617345
2018-05-10T16:06:20
2018-05-10T16:06:20
117,924,197
1
0
null
null
null
null
UTF-8
Python
false
false
360
py
from otree.api import Currency as c, currency_range from . import models from ._builtin import Page, WaitPage from .models import Constants class WorkPage(Page): timer_text = 'Time left to complete this round:' timeout_seconds = Constants.task_time def before_next_page(self): self.player.dump_tas...
[ "chapkovski@gmail.com" ]
chapkovski@gmail.com
6c4ba86895231e56bc3c8162d45342e283b07bdb
0a1f8957a798006deaa53d10d09f733fab1e6b05
/analysis_tools/iFAB/psu_python_library/ifab_cost_surrogate_steel.py
707fafbbb492bfb3fb23b3c9e4ed5146c8fd1915
[ "LicenseRef-scancode-other-permissive" ]
permissive
metamorph-inc/meta-core
a89504ccb1ed2f97cc6e792ba52e3a6df349efef
bc7a05e04c7901f477fe553c59e478a837116d92
refs/heads/master
2023-03-07T02:52:57.262506
2023-03-01T18:49:49
2023-03-01T18:49:49
40,361,476
25
15
NOASSERTION
2023-01-13T16:54:30
2015-08-07T13:21:24
Python
UTF-8
Python
false
false
756
py
import json from sys import argv from sys import stderr try: with open("testbench_manifest.json", "r+") as j: manifest = json.load(j) except IOError: manifest={"Parameters":[], "Metrics":[]} mass = None for param in manifest["Parameters"]: if param["Name"] == "MassInput": mass...
[ "kevin.m.smyth@gmail.com" ]
kevin.m.smyth@gmail.com
6432db83cc0fcd16c5619e9d4e0a4e53f18d699b
ffbfb86db9dac89c1cc24e648b199a8d3db9850f
/python/python_split.py
5c303afc89c76d0523735efbb2f7ea483c3279d4
[]
no_license
attikis/programming
e7ecef5c2bf2af71a3e89e6156a4a934fb2ed724
4b6215021d6ca1effd0f18ecfe8afc67056b7098
refs/heads/master
2021-05-09T21:51:40.425627
2019-02-19T07:22:56
2019-02-19T07:22:56
118,735,207
1
0
null
null
null
null
UTF-8
Python
false
false
1,646
py
#!/usr/bin/env python # Permissions : chmod +x fileName.py # To launch : python fileName.py OR ./fileName.py # Definition : split() command used to split up a string string1 = "pt1,pt2,pt3,pt4" print "+++ string1 = ", string1 print '+++ string1.split(",") = %s' % (string1.split(",")) print string2 = "pt1|pt...
[ "attikis@cern.ch" ]
attikis@cern.ch
aa0d66c01f0be4c0d50611c31202aace994fbf91
af1a5e8245a34cb205216bc3e196045bb53f27d1
/cottonformation/res/iot1click.py
d98e42c947b1cd8c141e081d45cdb562140d59d3
[ "BSD-2-Clause" ]
permissive
gitter-badger/cottonformation-project
b77dfca5679566fb23a63d94c0f56aebdd6f2508
354f1dce7ea106e209af2d5d818b6033a27c193c
refs/heads/main
2023-06-02T05:51:51.804770
2021-06-27T02:52:39
2021-06-27T02:52:39
380,639,731
0
0
BSD-2-Clause
2021-06-27T03:08:21
2021-06-27T03:08:21
null
UTF-8
Python
false
false
11,103
py
# -*- coding: utf-8 -*- """ This module """ import attr import typing from ..core.model import ( Property, Resource, Tag, GetAtt, TypeHint, TypeCheck, ) from ..core.constant import AttrMeta #--- Property declaration --- @attr.s class ProjectDeviceTemplate(Property): """ AWS Object Type = "AWS::IoT1Clic...
[ "husanhe@gmail.com" ]
husanhe@gmail.com
695a3b083fd4b572001864fc33c6a61d4be8573d
b523cbb45c34e9c0f1d94fce9f03d654e18f57ab
/instance_manager.py
bef0fed7e98b69508cc10e4b5957e689b5b26358
[]
no_license
brittainhard/gpuci-scripts
0d2d27156486724dbe80a73f31b5076bcef4324b
27429a89b3a3564acf372fe30d6de2f59c9997c0
refs/heads/master
2020-03-26T00:16:38.664253
2018-08-29T17:29:19
2018-08-29T17:29:19
144,313,163
0
0
null
null
null
null
UTF-8
Python
false
false
5,250
py
import os, json, argparse, time import datetime, dateutil from jenkinsapi import jenkins import requests import boto3 NON_GPU_JOBS = [ "goai-docker-container-builder", "gpu-instance-manager", "gpu-instance-spawner" ] def get_instances(): return list(rs.instances.iterator()) def instance_is_runnin...
[ "brittainhard@gmail.com" ]
brittainhard@gmail.com
7aea99a375d5f22517415ab30c8a1a7ada5ba817
58aade23413d23f0d4666d7da3766ccbf820d0e1
/bk/script/summarize_script/summary_phs.py
1f480209775dfd6bf6a9fff5eb203d679377c5dc
[]
no_license
friend1ws/PDL1_pipeline
661837ad4f3c791439fcbae3ca32db47b2b6e8a2
79bb55297dac04c808577d51f8714a34fe9dad74
refs/heads/master
2020-04-15T02:32:43.931129
2016-05-04T06:47:20
2016-05-04T06:47:20
41,615,248
2
2
null
null
null
null
UTF-8
Python
false
false
1,183
py
#! /usr/bin/env python import sys, glob sampleList = sys.argv[1] expDir = sys.argv[2] fusionDir = sys.argv[3] hIN = open(sampleList, 'r') for line in hIN: F = line.rstrip('\n').split('\t') sample = F[0] targetExpDir = glob.glob(expDir + "/" + sample + "*") targetFusionDir = glob.glob(fusionDir + "/"...
[ "friend1ws@gmail.com" ]
friend1ws@gmail.com
a2f660894a3d10df1c7a71e0782ffb017a97f802
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/2972.py
2fd708180642ad8b97474fbea1db1b2ae25b8eec
[]
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
751
py
def yz(s, stalls): g = len(stalls) l = 0 r = 0 while True: if s+r+1 >= g: break if stalls[s+r+1] == 0: r += 1 else: break while True: if s-l-1 < 0: break if stalls[s-l-1] == 0: l += 1 else: break return (min(l,r), max(l,r)) for _ in range(int(in...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
cf7c207170b97bd72c6456a05b66eb280835a058
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/follow302_status_body.py
609f30a679e4f7051de995d36eec1c97b7acb914
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,938
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class Follow302StatusBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The ke...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
74e4a49f5cc0b6f968eed7f58149de37464fd37b
f5fa77d99d31d4e8fef2648b83e9d988123be118
/hanser/models/detection/gfocal.py
841fdaa8c0c56a3fb85d366cebad9e3746961704
[]
no_license
sbl1996/hanser
6ff5362f6909c4ba717c10b5f7baf31a41b70531
21c6f9470dd21a5b2e7a18318f40314a34053822
refs/heads/master
2022-06-04T03:46:39.034645
2022-05-21T03:34:08
2022-05-21T03:34:08
197,355,428
12
2
null
null
null
null
UTF-8
Python
false
false
3,415
py
import numpy as np import tensorflow as tf from tensorflow.keras import Sequential from tensorflow.keras.initializers import RandomNormal, Zeros from hanser.ops import safe_softmax, top_k from hanser.models.layers import Linear from hanser.models.detection.detector import SingleStageDetector from hanser.models.detect...
[ "sbl1996@126.com" ]
sbl1996@126.com
e8aa80bf6d288ff8e7a87cbdf26ee0b74daf3509
d094ba0c8a9b1217fbf014aa79a283a49aabe88c
/env/lib/python3.6/site-packages/sympy/physics/units/systems/natural.py
124392e550ae5effd4ffc8ef3c5ef72af017eec4
[ "Apache-2.0" ]
permissive
Raniac/NEURO-LEARN
d9274e0baadd97bb02da54bdfcf6ca091fc1c703
3c3acc55de8ba741e673063378e6cbaf10b64c7a
refs/heads/master
2022-12-25T23:46:54.922237
2020-09-06T03:15:14
2020-09-06T03:15:14
182,013,100
9
2
Apache-2.0
2022-12-09T21:01:00
2019-04-18T03:57:00
CSS
UTF-8
Python
false
false
931
py
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- """ Naturalunit system. The natural system comes from "setting c = 1, hbar = 1". From the computer point of view it means that we use velocity and action instead of length and time. Moreover instead of mass we use energy. """ from __future__ import division from sympy...
[ "leibingye@outlook.com" ]
leibingye@outlook.com
95e03440d89285f10df39b55be1fd06e80e3332f
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/enums/types/user_list_type.py
64bb9c0c18d0075bb477ea405690a9c7d7888bd2
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,201
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
f07ab92ea930bbe7555bfa5f6e2cbebf127da184
81b0e6fe7a6e56ed8a91748499b81ddd3f2e45f8
/GAN/mnist_inforgan.py
ae5cfe025134b4efad95451acb734d8a7928f906
[]
no_license
shieldforever/DeepLearning
cfef817602b9677df4df4c1b87e60c5e91f2315a
b8080938a4b22395379be9032266df36cb5491e6
refs/heads/master
2021-01-05T14:12:26.110888
2019-10-29T11:23:06
2019-10-29T11:23:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,069
py
# -*- coding: utf-8 -*- """ Created on Mon May 20 19:39:36 2019 @author: Administrator """ import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from scipy.stats import norm import tensorflow.contrib.slim as slim from tensorflow.examples.tutorials.mnist import input_data mnist=input_data.read_da...
[ "870407139@qq.com" ]
870407139@qq.com
e97dfd3726227b91404d69a2d8fec5bbd24c4630
0550c08cee19be891fde34fa109b5a4ad9f07e3a
/findingshared/findingshared.py
d97a6a0b84b2d5e368e82c243576bb1cbec62235
[]
no_license
bendavidsteel/rosalind-solutions
92653c49d8ef938306ac1289ccb4e4cfe4b8d3ae
0749f2662efcac62383a8476ce13fcdd039928b1
refs/heads/master
2020-03-28T04:17:00.959446
2018-09-06T21:32:06
2018-09-06T21:32:06
147,705,059
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
maxlen = 2 maxstring = "" def jloop with open('sample.txt') as stringfile: data = stringfile.read().split('\n')[1::2] for i in range(len(min(data, key=len))): for n in range(maxlen, len(min(data, key=len))): for j in range(1, len(data)): print(j) print(data[0][i:i+n]) ...
[ "bendavidsteel@gmail.com" ]
bendavidsteel@gmail.com
357746ec09b140827b2d7be08c9a9f27e7a7f71f
fce76a80bafa84b188fd9761d769f79dd712d79c
/JH_RestAPI/jobapps/migrations/0012_jobapplicationnote.py
695d6185dc04b277ff8709a9c32c427aca09ecbf
[]
no_license
komal14prasad/backend
547110ddb16f4ad16be7f3aebd87ad2cea52ee2f
4a915f2e744c5697d8a90a59e358c1ce94b47d69
refs/heads/master
2020-05-22T02:34:21.237812
2019-05-12T03:36:22
2019-05-12T03:36:22
186,200,468
0
0
null
2019-05-12T02:03:13
2019-05-12T02:03:12
null
UTF-8
Python
false
false
912
py
# Generated by Django 2.1.5 on 2019-03-18 03:05 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('jobapps', '0011_auto_20190210_1053'), ] operations = [ migrations.CreateModel( ...
[ "sdemirci55@gmail.com" ]
sdemirci55@gmail.com
e6cb8f8f82846c0b57397552dae31ee75edf7f6f
5e2dddce9c67d5b54d203776acd38d425dbd3398
/spacy/lang/ca/__init__.py
d25d40e257fd706cc679a013ba3733ee90462e07
[ "MIT" ]
permissive
yuxuan2015/spacy_zh_model
8164a608b825844e9c58d946dcc8698853075e37
e89e00497ab3dad0dd034933e25bc2c3f7888737
refs/heads/master
2020-05-15T11:07:52.906139
2019-08-27T08:28:11
2019-08-27T08:28:11
182,213,671
1
0
null
2019-04-19T06:27:18
2019-04-19T06:27:17
null
UTF-8
Python
false
false
2,297
py
# coding: utf8 from __future__ import unicode_literals from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .stop_words import STOP_WORDS from .lex_attrs import LEX_ATTRS # uncomment if files are available # from .norm_exceptions import NORM_EXCEPTIONS # from .tag_map import TAG_MAP # from .morph_rul...
[ "yuxuan2015@example.com" ]
yuxuan2015@example.com
616e6e51eee2039efa70734239b813e32f6858b0
b46c889743320f084485ab1a38dfc28416171d6a
/airflow/serialization/serialization.py
0173fa89d7fb40f9511aef89cbf823ffba3bbf64
[ "Apache-2.0", "BSD-3-Clause", "MIT", "BSD-2-Clause", "Python-2.0" ]
permissive
jasonfry89/incubator-airflow-prefix
61541be0c0ee5feb9dfba7e5061904f9c8bbe3cd
4bd87f4dfe7a27c7c6456e2fa946464f7e428a61
refs/heads/master
2023-01-22T10:07:43.542723
2019-10-24T22:15:16
2019-10-24T22:15:16
83,245,336
1
1
Apache-2.0
2023-01-13T23:40:57
2017-02-26T22:28:42
Python
UTF-8
Python
false
false
10,629
py
# -*- coding: utf-8 -*- # # 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 #...
[ "kaxilnaik@gmail.com" ]
kaxilnaik@gmail.com
61004a97a2ccdbbd703c0335da0142a4d4b5ed9e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_glazed.py
4b9d651bd336809ed5c8db024f25696635fdae74
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
#calss header class _GLAZED(): def __init__(self,): self.name = "GLAZED" self.definitions = glaze self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['glaze']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
c2e58269c8af68e51587b23ce08e779eb9fc0c3e
4b9f2d543755cf5ab9e1ddeab46e123b5a3e73ee
/lect05_52-week_saving_challenge/money_challenge_v4.0.py
3d6c292351487772efecae124d9eeac25207b03a
[]
no_license
guolikai/mypython
ff8e3bbc22e346d90126b551b945909d64c4bb3e
7c4003e5a70d306b34a102b3b32c667898c5e9c8
refs/heads/master
2022-12-25T06:52:06.253960
2020-09-30T13:53:09
2020-09-30T13:53:09
82,179,405
1
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
""" 作者:GuoLikai 功能:52周存钱挑战 版本:3.0 日期:05/08/2018 2.0增加功能:记录每周的存款数 3.0增加功能:使用循环直接计数 4.0增加功能:灵活设置每周的存款数,增加的存款数及存款周数 """ import math def save_money_in_n_weeks(money_per_week, increase_money, total_week): """ 计算n周内的存款金额 """ money_list = [] # 记录每周存款数的列表 ...
[ "glk73748196@sina.com" ]
glk73748196@sina.com
cbd162117e95a560810e5d1c96b3b9c5300777c2
52b5773617a1b972a905de4d692540d26ff74926
/.history/fish1_20200804200900.py
7517919c0ab14ea3f149b1054c468da0ce11e9e1
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
def fish(A,B): # where A represent the size of fish and B represents the direction of fish aliveFish = len(A) bigFish = 0 indexFish = None j = 0 while j < len(B)-1: if B[j] == 1 and B[j+1] !=1: if A[j] > A[j+1]: if A[j] > bigFish: b...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
a3d019059a08c7f50daa263ad9a29b74d90f96d7
49663ea34b41c8180d7484f778f5cad2e701d220
/tests/dualtor/test_server_failure.py
07c2bf67601fef2bf59b1e15b84bc027badc9c60
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
stepanblyschak/sonic-mgmt
ed08c98e7bff1615b057daa8711686aa5986073d
a1ae1e0b4e9927e6f52916f76121780d19ec3e54
refs/heads/master
2023-04-07T01:30:11.403900
2023-03-29T10:16:52
2023-03-29T10:16:52
135,678,178
0
0
NOASSERTION
2023-03-29T16:13:55
2018-06-01T06:41:49
Python
UTF-8
Python
false
false
3,378
py
import pytest from tests.common.dualtor.mux_simulator_control import toggle_simulator_port_to_upper_tor, \ simulator_flap_counter, simulator_server_down # noqa F401 from tests.common.helpers.assertions import pytest_assert, pytest_require from tests.common.dualt...
[ "noreply@github.com" ]
stepanblyschak.noreply@github.com
7e79e805f44cd3ea15b84a2b395d30fbdc293fdd
e569aaa98d90ebfed429da9f1e8697b6122c66f9
/ecoroofs/locations/migrations/0008_add_point_obscured_to_location_model.py
fd5dab8a0eab3b0b2cab506c1d8508d2dfc692c2
[]
no_license
PSU-OIT-ARC/ecoroofs
4f4a5df0b15faf8d4442155e7a70104a2c25b44f
e7acf776dbd19e90e22635424808c8c6807d7572
refs/heads/develop
2020-05-21T16:16:48.799309
2017-11-08T21:31:36
2017-11-08T21:31:36
64,701,178
0
3
null
2017-07-24T19:06:49
2016-08-01T20:59:05
Python
UTF-8
Python
false
false
422
py
import django.contrib.gis.db.models.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('locations', '0007_add_year_built_to_location_model'), ] operations = [ migrations.AddField( model_name='location', name='point_obs...
[ "wbaldwin@pdx.edu" ]
wbaldwin@pdx.edu
5a89b194f60aa6e8e7016670b169d895bdfd01e1
c5458f2d53d02cb2967434122183ed064e1929f9
/sdks/python/test/test_spending_proof.py
c58e33d52c302a1ce178f05e03d2ef9822171fd3
[]
no_license
ross-weir/ergo-node-api-sdks
fd7a32f79784dbd336ef6ddb9702b9dd9a964e75
9935ef703b14760854b24045c1307602b282c4fb
refs/heads/main
2023-08-24T05:12:30.761145
2021-11-08T10:28:10
2021-11-08T10:28:10
425,785,912
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
""" Ergo Node API API docs for Ergo Node. Models are shared between all Ergo products # noqa: E501 The version of the OpenAPI document: 4.0.15 Contact: ergoplatform@protonmail.com Generated by: https://openapi-generator.tech """ import sys import unittest import openapi_client from openapi_cli...
[ "29697678+ross-weir@users.noreply.github.com" ]
29697678+ross-weir@users.noreply.github.com
d23250f1b6b7e554bdf137997e2f02efa56feb70
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/63/usersdata/230/28357/submittedfiles/swamee.py
e5f429c7808c600df6e2cb6d975c9662a428b88e
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
# -*- coding: utf-8 -*- import math #COMECE SEU CÓDIGO AQUI f = float(input('Digite o valor de f: ')) L = float(input('Digite o valor de L: ')) Q = float(input('Digite o valor de Q: ')) DeltaH = float(input('Digite o valor de DeltaH: ')) v = float(input('Digite o valor de v: ')) g = 9.81 E = 0.000002 D = (8*f*L*(Q**2)/...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
d3264668c412aae9c2b8f4a274600bcaf638fa2c
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-1657.py
e668c238fd53a248f5ab3ab63f60e886d9c08853
[]
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,276
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
db4640a338afe81eaf782bac82394116670bbc95
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02804/s938106196.py
e07f2d428fc7a4fa2bbc75241a67288a2325428b
[]
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
143
py
n,k,*l=map(int,open(0).read().split());l.sort();c,a,M=1,0,10**9+7 for i in range(k-1,n):a+=c*(l[i]-l[~i]);c=c*-~i*pow(i-k+2,M-2,M)%M print(a%M)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
96a81c995e6509af66ced54e9cbf02b096b0225e
f3b233e5053e28fa95c549017bd75a30456eb50c
/CDK2_input/L1Q/1Q-17_MD_NVT_rerun/set.py
4968dfce41158d47dc9301795d22f2f25b4657d4
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
import os dir = '/mnt/scratch/songlin3/run/CDK2/L1Q/MD/ti_one-step/1Q_17/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi.in' temp_prodin = filesdir + 'temp_prod.in' temp_pbs = filesdir + 'temp.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
7f52f11801e3fffbfe661b3083bf80ff6d892b55
65329299fca8dcf2e204132624d9b0f8f8f39af7
/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/global_/nsr/config/__init__.py
9a12221583f320c26938511e05c9621d25059fca
[ "Apache-2.0" ]
permissive
darylturner/napalm-yang
bf30420e22d8926efdc0705165ed0441545cdacf
b14946b884ad2019b896ee151285900c89653f44
refs/heads/master
2021-05-14T12:17:37.424659
2017-11-17T07:32:49
2017-11-17T07:32:49
116,404,171
0
0
null
2018-01-05T16:21:37
2018-01-05T16:21:36
null
UTF-8
Python
false
false
9,296
py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from decimal import Decimal from bitarray import bitar...
[ "dbarrosop@dravetech.com" ]
dbarrosop@dravetech.com
6ad574210aec5d9ae894dd168817de91af980274
482ed16cd1c8d721e98a9c460555802f7cce8906
/run-tests/t032.py
4caff0dd44dcf916fb563b60fce4a4dcec25511d
[ "MIT" ]
permissive
forkcodeaiyc/skulpt_parser
ea2347b2a452476854cf03412474fae63bca31c0
dd592e9b91bcbbe0c5cfdb5c2da0fb5ae604a428
refs/heads/master
2023-09-04T11:32:09.760317
2021-10-11T22:58:18
2021-10-11T22:58:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
22
py
print(("1234"[-3:3]))
[ "albert-jan.nijburg@babylonhealth.com" ]
albert-jan.nijburg@babylonhealth.com
e3b56cb7ad8f137d9438e36fdcaa4d4aeb773562
0a089d954518ef4a8f6aecf7097af8124e425d7e
/everest/tests/complete_app/resources.py
3b0e03d850c91b76cc8b9fb22d05059d17c439e1
[ "MIT" ]
permissive
papagr/everest
b13c06834ae38a5d441a9fd1c938d495ceca6e20
70c9b93c3061db5cb62428349d18b8fb8566411b
refs/heads/master
2021-05-28T16:55:23.021924
2015-02-17T09:21:03
2015-02-17T09:21:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,060
py
""" This file is part of the everest project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Created on Dec 1, 2011. """ from everest.resources.base import Member from everest.resources.descriptors import attribute_alias from everest.resources.descriptors import collection_attribute from...
[ "fogathmann@gmail.com" ]
fogathmann@gmail.com
d83c4645ef7cc9f79a7c70d11198e76aad49ad85
9eaa17f50df49e5c6d204a7a7ece52f94c10b30b
/d3rlpy/algos/torch/utility.py
f431a78d8326da7fcd4c9ff7492d1147190162df
[ "MIT" ]
permissive
mchetouani/d3rlpy
08d452ea2c8735b679a02474a3ae512caf91250a
53ccf604298568b3a8322bb6f38bc33c0ac04ca2
refs/heads/master
2023-02-03T15:19:23.620608
2020-11-29T02:25:34
2020-11-29T02:25:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,435
py
import torch import numpy as np from inspect import signature def soft_sync(targ_model, model, tau): with torch.no_grad(): params = model.parameters() targ_params = targ_model.parameters() for p, p_targ in zip(params, targ_params): p_targ.data.mul_(1 - tau) p_targ....
[ "takuma.seno@gmail.com" ]
takuma.seno@gmail.com
612311f401562e6479a566b357190ad038ebd82e
a303cea3e4a5b9d774700111954b837e11ce8f64
/Werkgroep API beveiliging/Implementaties/poc-oauth-python/web/woco_irma/woco_irma/wsgi.py
910342af165b65cd78403f3a1559593c0eb7855a
[]
no_license
HenriKorver/KP-APIs
ee639ad9409b12710f6296e6cbf5d861b6d91571
3dde9bebf63c35b036145771ebf22d0851a5378c
refs/heads/master
2021-06-12T05:22:10.712394
2021-06-09T14:55:41
2021-06-09T14:55:41
174,525,243
0
0
null
2019-05-16T15:06:41
2019-03-08T11:24:08
HTML
UTF-8
Python
false
false
395
py
""" WSGI config for woco_irma project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
[ "sergei@maykinmedia.nl" ]
sergei@maykinmedia.nl
1d8e81008f94de9bc956344891d46ea12658172d
bbed0e21b241c6a39341fed7d058563c30e2e0a4
/tests/trainer/warnings_tests/test_flow_warnings.py
f5328d44020d717de90fa564f4c03c177fc40aa4
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
haven-jeon/pytorch-lightning
656917a6cace5c3723d951f84515e8cb74a0ec79
6b9362bb73ada4c8702def43fe8f27eb3c382540
refs/heads/master
2023-02-23T18:29:08.298601
2021-01-28T07:42:14
2021-01-28T07:42:14
325,184,155
2
0
Apache-2.0
2021-01-28T07:42:15
2020-12-29T04:19:44
Python
UTF-8
Python
false
false
1,453
py
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "noreply@github.com" ]
haven-jeon.noreply@github.com
630f388259ee71dd9d1b0b441c0117db73ee9b8d
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_9/frnpau013/question2.py
71396f2476198ce3175c7385e66de6c4fc587b0d
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,745
py
def line_maker(string, length): if len(string) > length: line = string[0:length] if line[-1] != " " and string[len(line)] != " ": while line[-1] != " ": line = delete_till_space(line) line = line[:-1] return line, string[len(line) + 1:] ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
0da64247f2f05b4d47521f6362ed1d6f94bae56f
725ac5a0bf72829be627bf8dc82fdc51ba0f94ae
/Text_Classification/multi_label_classify_bert/inference.py
6517992e9a21b0f516d22a671658ec98435a63c4
[]
no_license
shawroad/NLP_pytorch_project
fa14b6e4a156229765e1d552901d0492d8e1def3
1272fed2dc8fef78a9ded0f1ae1644d613a3b57b
refs/heads/master
2023-06-25T02:37:35.503251
2023-06-12T10:57:11
2023-06-12T10:57:11
229,694,655
530
104
null
2020-12-08T09:21:47
2019-12-23T06:54:29
Python
UTF-8
Python
false
false
2,940
py
""" @file : inference.py @author : xiaolu @email : luxiaonlp@163.com @time : 2021-06-23 """ import torch from tqdm import tqdm import pandas as pd from model import Model from config import set_args from torch.utils.data import Dataset, DataLoader from transformers.models.bert import BertTokenizer class MyDatase...
[ "luxiaonlp@163.com" ]
luxiaonlp@163.com
de909440434b4cb133fa34f8573d268118fd1143
fa889d051a1b3c4d861fb06b10aa5b2e21f97123
/kbe/src/lib/python/Lib/ssl.py
d3c18ed1b7936b1eea54635f05cf51c62b1d99b0
[ "MIT", "LGPL-3.0-only", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-python-cwi", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "Python-2.0" ]
permissive
BuddhistDeveloper/HeroLegendServer
bcaa837e3bbd6544ce0cf8920fd54a1a324d95c8
8bf77679595a2c49c6f381c961e6c52d31a88245
refs/heads/master
2022-12-08T00:32:45.623725
2018-01-15T02:01:44
2018-01-15T02:01:44
117,069,431
1
1
MIT
2022-11-19T15:58:30
2018-01-11T08:05:32
Python
UTF-8
Python
false
false
34,420
py
# Wrapper module for _ssl, providing some additional facilities # implemented in Python. Written by Bill Janssen. """This module provides some more Pythonic support for SSL. Object types: SSLSocket -- subtype of socket.socket which does SSL over the socket Exceptions: SSLError -- exception raised for I/O erro...
[ "liushuaigeq@163.com" ]
liushuaigeq@163.com
113d33a1c0aa203a0c29d4de06bc864d0cef03be
c725fc58d217f6730687a565fbf85fcf174e8009
/txt_figs/pre_pkoffset_correction/test_miscen_nfw_Delt_L.py
97d45749662802d0049715673d2352a0b96024dd
[]
no_license
Kein-Cary/Intracluster-Light
6faca2bd0413244765474beeffd53cfaa401eef2
ffcb2d6ea10be45422c7e73408fc6ff6cadf3a85
refs/heads/master
2023-03-18T04:51:06.539453
2023-03-12T02:48:01
2023-03-12T02:48:01
160,816,520
1
0
null
null
null
null
UTF-8
Python
false
false
18,203
py
import matplotlib as mpl # mpl.use('Agg') import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import h5py import numpy as np import pandas as pds import emcee import corner import astropy.constants as C import astropy.units as U from astropy import cosmology as apcy from scipy import signal from sc...
[ "cxkast@gmail.com" ]
cxkast@gmail.com
e0ae3f8df1d6dacc769316b76657cf29b105ce4a
eaf2b6edff6d1020cf24028cf1d2f1df42b5a263
/420-strong-password-checker/strong-password-checker.py
ec3726dbb2c42aaff8d8787e5b69e2cfdbaaf1a6
[]
no_license
zhangoneone/leetcode
1ac1a960d7aff5b6b8ddb85a48efc4f6c49c582c
3f8632e5b436293c304e6df6326adc556be6b842
refs/heads/master
2020-04-21T06:57:47.415724
2018-12-20T01:33:58
2018-12-20T01:33:58
169,380,067
2
0
null
2019-02-06T09:17:31
2019-02-06T09:17:31
null
UTF-8
Python
false
false
1,950
py
# -*- coding:utf-8 -*- # A password is considered strong if below conditions are all met: # # # It has at least 6 characters and at most 20 characters. # It must contain at least one lowercase letter, at least one uppercase letter, and at least one digit. # It must NOT contain three repeating characters in a ...
[ "foreverbonfy@163.com" ]
foreverbonfy@163.com
92b27e668bf00bfed941b76018d92906c856691a
9f1039075cc611198a988034429afed6ec6d7408
/tensorflow-stubs/contrib/boosted_trees/estimator_batch/custom_loss_head.pyi
9cfa47bc65db82426ee6bf56237e1355c15c69f7
[]
no_license
matangover/tensorflow-stubs
9422fbb1cb3a3638958d621461291c315f9c6ec2
664bd995ef24f05ba2b3867d979d23ee845cb652
refs/heads/master
2020-05-23T12:03:40.996675
2019-05-15T06:21:43
2019-05-15T06:21:43
186,748,093
0
0
null
null
null
null
UTF-8
Python
false
false
675
pyi
# Stubs for tensorflow.contrib.boosted_trees.estimator_batch.custom_loss_head (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from tensorflow.contrib.learn.python.learn.estimators import head as head_lib from tensorflow.python.framework import dtypes as dtypes from tensorflow.p...
[ "matangover@gmail.com" ]
matangover@gmail.com
27de0f4f9000039cfce3979c024fc9b34b2c29a8
0859a864b1270164fe44a878ab12cfb3302c36bf
/abc161/c.py
aeae10de769322ffec461b483cc07e0c0f9ec2d3
[]
no_license
wataoka/atcoder
f359d49ab6e0db39c019d9f6d2e8b92d35f723c4
b91465dd5f655d05b89485fc7ad222283c5958f5
refs/heads/master
2021-04-15T06:02:59.593965
2020-05-11T04:38:23
2020-05-11T04:38:23
126,754,342
0
0
null
2020-02-28T02:31:03
2018-03-26T00:51:12
Python
UTF-8
Python
false
false
82
py
n, k = map(int, input().split()) can = n%k print(min(abs(can-k), abs(k-can), can))
[ "wataoka@stu.kobe-u.ac.jp" ]
wataoka@stu.kobe-u.ac.jp
d29e818b1a22fbe66308e12cac57776e2206777c
d94b78aeb8f7ea79545397f15b8b6d5a4b3e1635
/test5.py
916f2676d49ac4604269084f64e1708bedd82ce1
[]
no_license
levylll/leetcode
6a32c547c6a0d5aa07126a2ddc46b03b998ae5ad
319f73e931b081fbf817769da5596c8eefd830a3
refs/heads/master
2021-06-19T01:30:03.113632
2021-06-11T07:46:02
2021-06-11T07:46:02
174,638,986
1
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
class Solution(object): def gen_p1(self, idx, s): tmp_max = s[idx] move = 1 while True: if idx - move >= 0 and idx + move < len(s) and s[idx-move] == s[idx+move]: tmp_max = s[idx-move] + tmp_max + s[idx+move] move += 1 else: ...
[ "levylll@163.com" ]
levylll@163.com
17c670a09a49ec13333d28a5078af3403e9357e3
72765a898e97d308c50a8b309b049d568fbbb622
/examples/bio2bioes.py
184bb58b88326fc54511acdb064c7ad1b0c3e6b6
[]
no_license
gswyhq/bert4keras
95a2fbdfbe49edb55ff56e8b1d75fd0432c440fb
e71a3acdc89b76f90e4d45527d228cc423f7cf1e
refs/heads/master
2020-08-14T00:50:16.613380
2020-04-13T12:57:48
2020-04-13T12:57:48
215,066,934
0
0
null
2019-10-14T14:34:37
2019-10-14T14:34:37
null
UTF-8
Python
false
false
2,114
py
#!/usr/bin/python3 # coding: utf-8 import os import sys import unicodedata def generator_load_data(data_path): # print('读取文件:{}'.format(data_path)) with open(data_path, "r") as f: text = f.readline() while text: text = unicodedata.normalize('NFKD', text).strip() if '/' ...
[ "gswyhq@126.com" ]
gswyhq@126.com
f9d1ff55ba1de3c5bd0d2a7619b945862ecc9e1f
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/model/create_task_request.py
363ab85585e3ef85232d5c1955b7bd770a145264
[ "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
4,181
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateTaskRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
11da6a73feea9cad9d0a412ebabf156cad4d81c4
193b35f8acaae37b43fe680bf9a6a3111db3b9c7
/myPython/class/__hook__.py
d28d28c64b8393a75ad01283dd5c8b737bb64977
[]
no_license
zerosum99/python_basic
6726d0d5210fdff1e22f452470b515478f64b7cb
4b9e2b3478472830d901748bd6a2ac84c3dcc684
refs/heads/master
2021-05-23T05:41:01.742846
2021-05-16T09:16:39
2021-05-16T09:16:39
94,850,543
4
3
null
null
null
null
UTF-8
Python
false
false
1,427
py
# -*- coding: utf-8 -*- """ Created on Wed Apr 06 16:41:23 2016 @author: 06411 """ import abc def interface(*attributes): def decorator(Base): def checker(Other): return all(hasattr(Other, a) for a in attributes) def ins_checker(Other): if type(Other) == Base : ...
[ "myjlms99@gmail.com" ]
myjlms99@gmail.com
52e0cb686f4865a2dfb100dd8c5a022744cba825
26fc334777ce27d241c67d97adc1761e9d23bdba
/tests/django_tests/tests/auth_tests/test_forms.py
b1d55c9749b35ad4afa79a1747f7e39ee9719130
[ "BSD-3-Clause" ]
permissive
alihoseiny/djongo
1434c9e78c77025d7e0b3330c3a40e9ea0029877
e2edf099e398573faa90e5b28a32c3d7f1c5f1e9
refs/heads/master
2020-03-27T23:27:02.530397
2018-08-30T14:44:37
2018-08-30T14:44:37
147,317,771
2
1
BSD-3-Clause
2018-09-04T09:00:53
2018-09-04T09:00:53
null
UTF-8
Python
false
false
41,955
py
import datetime import re from importlib import reload from unittest import mock import django from django import forms from django.contrib.auth.forms import ( AdminPasswordChangeForm, AuthenticationForm, PasswordChangeForm, PasswordResetForm, ReadOnlyPasswordHashField, ReadOnlyPasswordHashWidget, SetPassw...
[ "nesdis@gmail.com" ]
nesdis@gmail.com
86c71b01760e5102eb4d6243cbb87d4644df51c8
bb88122fc4978b14e8a9b02d8c11f1ce67ea17d0
/03_ML/m31_smote2_wine_quality.py
0910ec5b43d9b87466d0691c7f65f194c02a62e3
[]
no_license
star10919/Keras_
c2c8a6f3d0e1a7ceba9e81dbc51ecfd12bd5fe78
f3156b7db6e12feea075b46e94b09157f43a141c
refs/heads/main
2023-08-17T22:44:54.324315
2021-10-24T02:47:00
2021-10-24T02:47:00
390,066,491
0
0
null
null
null
null
UTF-8
Python
false
false
3,003
py
### 데이터 증폭(smote 사용) - acc보다 F1 score가 높아짐 # y 라벨 개수 가장 큰 거 기준으로 동일하게 맞춰줌 ### k_neighbors 의 디폴트 5 : 각 라벨의 개수가 5보다 커야 증폭(smote) 가능해짐! / 아니면 k_neighbors의 값을 낮춰주면 됨 # => k_neighbors 값 줄이면 score 떨어짐(연산수 줄기 때문에) from imblearn.over_sampling import SMOTE from sklearn.datasets import load_wine import pandas as pd from xgbo...
[ "star10919@naver.com" ]
star10919@naver.com
4abb72769c2e36fbb784efbff26050fd95f05cd0
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/Ablation4_ch016_ep010/Gather3_W_fix3blk_C_change/train/pyr_1s/L3/step10_a.py
87b968c1551be20f7e6be09c21dabb3bcba21dce
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
8,310
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
624b8b66742a21f03a4eaf8cd8f640fc0054d3f3
f7be1846da14366ca8277dc3edc207766de838f0
/ICPC Practice/minimum-distances.py
0fdc9b8546501ad63e61fac9a7b45f125161e1d2
[]
no_license
IsThatYou/Competitive-Programming
d440f9e78f8a982cd60aa8c81833b9e10208b29e
a924ac7087654402c7f7c4b62374c377178061ad
refs/heads/master
2020-07-19T16:31:32.492635
2019-01-27T02:45:21
2019-01-27T02:45:21
73,759,128
2
0
null
null
null
null
UTF-8
Python
false
false
287
py
length = int(input().strip()) A = [int(A_temp) for A_temp in input().strip().split(' ')] lowest = 2000 for i in range(length): for j in range(i + 1, length): if A[i] == A[j]: dis = abs(j - i) if dis < lowest: lowest = dis if lowest != 2000: print(lowest) else: print(-1)
[ "junlinwang18@gmail.com" ]
junlinwang18@gmail.com
af2ab744148c104fa9b235621f90b30107208a7a
8c2de4da068ba3ed3ce1adf0a113877385b7783c
/hyperion/bin/pack-wav-rirs.py
0017798894270af755bafa05e4a9b4fd9b86d2b2
[ "Apache-2.0" ]
permissive
hyperion-ml/hyperion
a024c718c4552ba3a03aae2c2ca1b8674eaebc76
c4c9eee0acab1ba572843373245da12d00dfffaa
refs/heads/master
2023-08-28T22:28:37.624139
2022-03-25T16:28:08
2022-03-25T16:28:08
175,275,679
55
20
Apache-2.0
2023-09-13T15:35:46
2019-03-12T18:40:19
Python
UTF-8
Python
false
false
1,865
py
#!/usr/bin/env python """ Copyright 2020 Jesus Villalba (Johns Hopkins University) Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """ import sys import os from jsonargparse import ( ArgumentParser, ActionConfigFile, ActionParser, namespace_to_dict, ) import time import logging import math ...
[ "jesus.antonio.villalba@gmail.com" ]
jesus.antonio.villalba@gmail.com
4bacc7bb356d16649339adbe3f7ae44936cef97b
b1cf54e4d6f969d9084160fccd20fabc12c361c2
/leetcode/longest_substring.py
e189bb5bcce062b5ff99c66cba029c56af0f6dd4
[]
no_license
zarkle/code_challenges
88a53477d6f9ee9dd71577678739e745b9e8a694
85b7111263d4125b362184df08e8a2265cf228d5
refs/heads/master
2021-06-10T11:05:03.048703
2020-01-23T06:16:41
2020-01-23T06:16:41
136,668,643
0
1
null
2019-02-07T23:35:59
2018-06-08T21:44:26
JavaScript
UTF-8
Python
false
false
1,746
py
# https://leetcode.com/problems/longest-substring-without-repeating-characters/ # https://leetcode.com/problems/longest-substring-without-repeating-characters/solution/ # runtime 640 ms, 12.5%; memory 13.1 MB, 5.5% class Solution: def lengthOfLongestSubstring(self, s: str) -> int: if not s: re...
[ "beverly.pham@gmail.com" ]
beverly.pham@gmail.com
082a6d27401dee260c30ad1efb445313ff63bd21
c9d81b5d0b258b57a06a99f43a79dc1ecd219488
/Test_1.py
6b0a1b0fdce78cf79cfec3ab37a0739d156c579e
[]
no_license
babiswas/Python-Design-Patterns
4f4851cc55ae1bee8828f099f2c2610a36f4e8d5
ea6e417880bab26bded60c67188a12623f74639f
refs/heads/master
2020-07-30T05:28:10.030541
2019-09-26T17:54:21
2019-09-26T17:54:21
210,102,717
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
from abc import ABC,abstractmethod class Pet: @abstractmethod def speak(self): pass @abstractmethod def having_food(self): pass class Cat(Pet): def __init__(self,name): self.name=name def speak(self): print(f"{self.name} Mew Mew") def having_food(self): ...
[ "noreply@github.com" ]
babiswas.noreply@github.com
78b2e5ad6eda0389d08f76cb7f95ff272be8fc13
152b74ed7d60d75a9d70f6637c107fff9b064ff9
/Chapter03/MalGan/MalGAN_gen_adv_examples.py
0289a0a9a76912a65061cdd41fbacd0dab425a1f
[ "MIT" ]
permissive
PacktPublishing/Machine-Learning-for-Cybersecurity-Cookbook
1d7a50fb79b5da8c411eda9dc9cface4d0f78125
19b9757020cbcb09d9bb4249605fbb9c7322d92b
refs/heads/master
2023-05-12T08:29:13.569598
2023-01-18T10:19:07
2023-01-18T10:19:07
222,411,828
250
164
MIT
2023-05-01T20:11:44
2019-11-18T09:33:53
Jupyter Notebook
UTF-8
Python
false
false
2,075
py
from sklearn.neighbors import NearestNeighbors from keras import backend as K import MalGAN_utils from MalGAN_preprocess import preprocess import numpy as np def gen_adv_samples(model, fn_list, pad_percent=0.1, step_size=0.001, thres=0.5): ### search for nearest neighbor in embedding space ### def emb_searc...
[ "dineshchaudhary@packtpub.com" ]
dineshchaudhary@packtpub.com
cc45fdbbddc41768ecf333b33f0e6b2c01dcbd95
42c48f3178a48b4a2a0aded547770027bf976350
/google/ads/google_ads/v3/services/ad_schedule_view_service_client_config.py
90efc7090c35efbde8f0c9a47c102453d887ece9
[ "Apache-2.0" ]
permissive
fiboknacky/google-ads-python
e989464a85f28baca1f28d133994c73759e8b4d6
a5b6cede64f4d9912ae6ad26927a54e40448c9fe
refs/heads/master
2021-08-07T20:18:48.618563
2020-12-11T09:21:29
2020-12-11T09:21:29
229,712,514
0
0
Apache-2.0
2019-12-23T08:44:49
2019-12-23T08:44:49
null
UTF-8
Python
false
false
815
py
config = { "interfaces": { "google.ads.googleads.v3.services.AdScheduleViewService": { "retry_codes": { "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" ], "non_idempotent": [] }, "retry_params": { "default": { "initial_retry_delay_...
[ "noreply@github.com" ]
fiboknacky.noreply@github.com
4464dc2f4c00b362193e2739b6b2a68359b658c1
3f3156337011c4b6cdc56f4eb5122b5132f510bd
/object-oriented.py
e4a7c468b8ebad2bd8a89f39f3ca4b86bf9067e9
[]
no_license
KEHANG/Programming-Style-Examples
620022ba73eb04e189a517d70330ccc9884e190b
f02833d72c5859db450a43f9724f66cdb0d81012
refs/heads/master
2020-12-03T06:45:49.922488
2014-11-14T00:57:05
2014-11-14T00:57:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
# Print out all the state names from the csv # Coded in the "object-oriented" style from electiondata import ElectionResults filename = '2012_US_election_state.csv' results = ElectionResults(filename) results.load() print "Opened file:" state_names = results.states() for state in state_names: print " "+state p...
[ "kehanghan@gmail.com" ]
kehanghan@gmail.com
7da40b77085e8a9aff24f6e4855a7b4fee264fef
373c0cc659e0c77739ff87f01b159ab3969bce72
/pca/pca5.py
a80b3a04c841b8406b5da0159da05a9db468a7bd
[]
no_license
c1a1o1/cancer
75da16ab43d4925f849fc0c84a98d69d46e3aea1
268f8e1553f1237fc2d0d0d3d7c13f664792aa92
refs/heads/master
2021-01-20T04:17:09.858006
2017-02-24T16:53:35
2017-02-24T16:53:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,139
py
#from numpy import mean, cov, cumsum, dot, linalg, size, flipud, argsort #from pylab import imread, subplot, imshow, title, gray, figure, show, NullLocator, imsave import numpy as np import matplotlib.pyplot as plt def princomp(A, numpc=0): # computing eigenvalues and eigenvectors of covariance matrix M = (A - np.me...
[ "senenbotello@gmail.com" ]
senenbotello@gmail.com
053874357b8792fc6cb4e9a3cb44ce28e06e37f3
8d6d19a97370a331eb60cb63423ca580a2ff821c
/cross_link/__init__.py
152551c4fbbdc2fd8142e8ff378c026b677e7504
[ "BSD-3-Clause" ]
permissive
brucewxh/IntraArchiveDeduplicator
6e61b124beea8d4b57849a30c47ac6b7262d8045
7b0c07cc9fffa75e1b7be285f42b0a8fad42dcfb
refs/heads/master
2020-06-13T16:57:41.285069
2019-07-01T18:22:02
2019-07-01T18:22:02
194,722,731
0
0
BSD-3-Clause
2019-07-01T18:19:00
2019-07-01T18:18:59
null
UTF-8
Python
false
false
12
py
# Tests init
[ "something@fake-url.com" ]
something@fake-url.com
822d0722fc6c480872f5f0a209984e64e0d29091
597f847f0bd2112e45ca50979acec403a5f969cf
/python/day06/exercise/test2.py
f2ef95420fe5500c69f3b2906f06ca1a0d91a442
[]
no_license
wangyuhui12/AID1804
e5d26aa6d505655cd885784cc0645c9ea8323df5
7291fc9411b541d17e540dd829166e64887fd9f7
refs/heads/master
2022-09-11T23:10:47.631426
2022-08-03T09:01:13
2022-08-03T09:01:13
136,152,631
2
0
null
null
null
null
UTF-8
Python
false
false
648
py
# 2、有一些数存在于列表L中,如: # L = [1, 3, 2, 1, 6, 4, ..., 98, 82] # (此数据自己定义) # 将列表L中的数存入于另一个列表L2中(要求,重复出现多次的数字只在L2列表中保留一份) L = [] while True: n = input("请输入一个整数:") if not n: break n = int(n) L.append(n) # for i in L: # if L.count(i) > 1: # j = L.count(i) # for x...
[ "noreply@github.com" ]
wangyuhui12.noreply@github.com
c1d153362cd6ae47be10bb825b009ce4fa2a7ef9
204ec78fcebcea9e1e1da4905cf3fad0a514b01f
/pyocd/target/builtin/target_MPS3_AN522.py
c8d9dd2265ca1de7624831c0ec1156619eb87e21
[ "Apache-2.0" ]
permissive
ARMmbed/pyOCD
659340bf8753aa8e15a72890b8bea64dff2c2f42
d4cdcf7e532cae17caad866839287bbe1e0d952b
refs/heads/master
2023-05-31T13:45:15.797588
2020-10-12T13:55:47
2020-10-12T13:55:47
190,203,829
3
1
Apache-2.0
2019-07-05T11:05:40
2019-06-04T13:09:56
Python
UTF-8
Python
false
false
1,492
py
# pyOCD debugger # Copyright (c) 2020 Arm Limited # SPDX-License-Identifier: Apache-2.0 # # 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 # # ...
[ "flit@me.com" ]
flit@me.com
737661d6a037d5d33ce44173209f72af25276344
efa2d7ad4ad9da185d3b168793d92d8b02d8e1cc
/doc_src/conf.py
b48bd49c4ae28cc2bb8f2036b07d76019381ad8c
[ "BSD-3-Clause" ]
permissive
justquick/google-chartwrapper
5f003de140769ea288b0ac7cf60c1ae5f5033a7f
25d0f88bba4cf30da5b40ba07d647e703453d9bd
refs/heads/master
2016-09-05T14:13:29.210254
2014-06-28T07:36:54
2014-06-28T07:36:54
1,617,083
7
3
null
2014-06-28T07:36:54
2011-04-15T01:37:45
Python
UTF-8
Python
false
false
6,307
py
# -*- coding: utf-8 -*- # # app documentation build configuration file, created by # sphinx-quickstart on Wed Oct 21 13:18:22 2009. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All con...
[ "justquick@gmail.com" ]
justquick@gmail.com
b141ab2597ba820e82b8091ee4334bd5218daa59
d2fdd6b10b0467913971d1408a9a4053f0be9ffb
/datahub/metadata/migrations/0015_add_iso_to_country.py
891f31f2965cb861506230efd7bb9f663ed86b23
[]
no_license
jakub-kozlowski/data-hub-leeloo
fc5ecebb5e4d885c824fc7c85acad8837fcc5c76
7f033fcbcfb2f7c1c0e10bec51620742d3d929df
refs/heads/master
2020-05-18T13:29:14.145251
2019-04-30T12:12:50
2019-04-30T12:12:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
# Generated by Django 2.1.2 on 2018-10-30 17:24 from pathlib import PurePath from django.core.management import call_command from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('metadata', '0014_investmentprojectstage_exclude_from_investment_flow'), ] ...
[ "info@marcofucci.com" ]
info@marcofucci.com
ddbc45e6681b12728108ffcd2a027d6639b8f7a3
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/eventhub/azure-eventhub/azure/eventhub/_buffered_producer/_buffered_producer_dispatcher.py
7bad79bead6409a6e962b5d0e80ddaf2063c179e
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
7,290
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
3eb5675cb98630a1417a7a99e8ead5bfe8caf461
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/show_member_detail_request.py
b7d02e8b454b32351aa7f4f4af4a67e39d3cac14
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
3,456
py
# coding: utf-8 import pprint import re import six class ShowMemberDetailRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
f2e6beef9ab524d5325b345c9e2d1affa0b1a47d
022228249a7892e1efeaa11f0d445ba7cb115891
/product/api/serializers_site.py
e33b258e12bf2a82306d4ebbae1db3f0c1ac77f0
[]
no_license
angaradev/django-vue-interface
bacef985b9f9cbd4379992133168c9278b4f707b
2e55d217b12bcda3c54acbb90cd3466bca955c5a
refs/heads/master
2022-12-01T09:24:29.788368
2022-11-22T07:09:44
2022-11-22T07:09:44
241,351,571
0
2
null
2022-11-22T07:09:45
2020-02-18T12:08:14
JavaScript
UTF-8
Python
false
false
3,167
py
# -*- coding: utf-8 -*- # from rest_framework_recursive.fields import RecursiveField from product.models import Cross from rest_framework import serializers from product.models import ( Product, ProductImage, Category, Units, CarModel, CarMake, CarEngine, Country, BrandsDict, Pr...
[ "angara99@gmail.com" ]
angara99@gmail.com
a270f8f89e241c78f56752aad9c4849cf7d66f8c
15c016140f03bb476549fa4bf20d4f52077783a6
/ecl/module_loader.py
faf271acdef9b3503ee8c94a5b92d083abcd53f0
[ "Apache-2.0" ]
permissive
nttcom/eclsdk
5cbb3f0067d260d257f7366d18e0f554d8f17cb3
c2dafba850c4e6fb55b5e10de79257bbc9a01af3
refs/heads/master
2023-08-09T06:24:53.466570
2022-12-01T02:44:48
2022-12-01T02:44:48
86,663,654
5
15
Apache-2.0
2023-09-06T02:39:01
2017-03-30T05:45:19
Python
UTF-8
Python
false
false
989
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ "h.ohta@ntt.com" ]
h.ohta@ntt.com
872bb43358fa79c7700cf6626f0e22339467ce80
43f78a4d51f441b4dbbc1a84537804123201a246
/dataaccess/dataexporter.py
b764c20af14dd42baafd8605f4af24b491277d9b
[]
no_license
shmyhero/data-process
28d5bfb27999cb0d462453d4663f01f43a649386
63dac65b41333d6e81bf32ecaa6533b28975c985
refs/heads/master
2021-03-22T00:11:51.373193
2019-10-22T06:27:28
2019-10-22T06:27:28
98,510,392
1
1
null
null
null
null
UTF-8
Python
false
false
1,050
py
import os from utils.logger import Logger from common.configmgr import ConfigMgr from common.pathmgr import PathMgr from optionskewdao import OptionSkewDAO from vixdao import VIXDAO class DataExporter(object): def __init__(self, daily_raw_path=None): self.logger = Logger(__name__, PathMgr.get_log_path())...
[ "elwin.luo@tradehero.mobi" ]
elwin.luo@tradehero.mobi
e959b8a741f902b0414e1f40c0253495b77e7b9d
f6bba50fccc6fb0dae2f046193434cfb4b9d32d5
/54/A.py
ebcd9d660e8171e1ea4e24847f3e19f299254c40
[]
no_license
seven320/AtCoder
4c26723d20004fe46ce118b882faabc05066841c
45e301e330e817f1ace4be4088d3babe18588170
refs/heads/master
2021-11-22T22:57:32.290504
2021-10-24T09:15:12
2021-10-24T09:15:12
162,827,473
2
0
null
null
null
null
UTF-8
Python
false
false
492
py
# encoding:utf-8 import copy import random import bisect #bisect_left これで二部探索の大小検索が行える import fractions #最小公倍数などはこっち import math import sys mod = 10**9+7 sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000 A,B = map(int,input().split()) if A==B: ans = "Draw" else: if A == 1: ans = "Alice" elif B == ...
[ "yosyuaomenw@yahoo.co.jp" ]
yosyuaomenw@yahoo.co.jp
fcc98bedd3a0869fa161e82145679045adc49903
5fd4707876cac0a4ca3b14af9a936301c45b5599
/10_序列的修改、散列和切片/fp_04_了解__getitem__和切片的行为.py
49d7c6d581010d434f3c5d183befc6c6beade33c
[]
no_license
xuelang201201/FluentPython
5b0d89bfc6ee1238ad77db9955ec7e8417b418b8
7cbedf7c780c2a9e0edac60484f2ad4c385e1dbd
refs/heads/master
2022-04-26T21:49:16.923214
2020-04-27T01:27:50
2020-04-27T01:27:50
258,290,957
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
class MySeq: def __getitem__(self, index): return index # 在这个示例中,__getitem__直接返回传给它的值。 s = MySeq() print(s[1]) # 单个索引,没什么新奇的。 print(s[1:4]) # 1:4 表示法变成了 slice(1, 4, None)。 print(s[1:4:2]) # slice(1, 4, 2) 的意思是从 1 开始,到 4 结束,步幅为 2。 print(s[1:4:2, 9]) # 神奇的事发生了:如果 [] 中有逗号,那么 __getitem__ 收到的是元组。 print(s[...
[ "xuelang201201@gmail.com" ]
xuelang201201@gmail.com
c78a2ef8cec79fb675dc42ec24e873d4b11a4064
0bc777a57e39c466a9482af9a6eda698ab3c1437
/HeavyIonsAnalysis/JetAnalysis/python/jets/ak4PFJetSequence_pPb_mb_cff.py
81e576a2ba7b5558d9b7a70a41dde21cfc4cb589
[]
no_license
stahlleiton/cmssw
3c78d80b9372fdf2a37f424372504b23c9dc4f78
fcfda663dc8c315b505eb6bcc7e936401c01c4d1
refs/heads/EWQAnalysis2017_8030
2023-08-23T13:50:40.837198
2017-11-09T17:45:31
2017-11-09T17:45:31
45,795,305
0
3
null
2021-04-30T07:36:28
2015-11-08T19:28:54
C++
UTF-8
Python
false
false
14,296
py
import FWCore.ParameterSet.Config as cms from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import * from RecoJets.JetPr...
[ "marta.verweij@cern.ch" ]
marta.verweij@cern.ch
bbd4dc7142151d3c378e11906357393635ccc0eb
01a682ab349df2690fd7ae6e918cb8e68b7aca44
/train.py
b71c77dc926e16074db73763b62597aa42f95d5e
[ "MIT" ]
permissive
misads/torch_image_template
4ecbeaa8c28764cab90b73101fb0309ae2856c8d
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
refs/heads/master
2020-09-22T09:18:48.737332
2020-01-07T13:36:47
2020-01-07T13:36:47
225,135,127
5
0
null
null
null
null
UTF-8
Python
false
false
7,387
py
""" PyTorch Image Template Author: xuhaoyu@tju.edu.cn File Structure: . ├── train.py :Train and evaluation loop, errors and outputs visualization (Powered by TensorBoard) ├── test.py :Test │ ├── network │ ├── Model.py ...
[ "523131316@qq.com" ]
523131316@qq.com
86310d2d1dae7fc2062f1ed8485374c8c5c31c55
744c3b66611b08782fcdd9d66261c4d55b00d426
/examples/pybullet/gym/pybullet_envs/minitaur/agents/baseline_controller/torque_stance_leg_controller.py
87ebed4587aec4165966fa11f806621f140c7eea
[ "Zlib" ]
permissive
erwincoumans/bullet3
4ff9e0aa64b641c65b57b26f415dd69dbfb12256
6d181d78a5c7be8714c74055cddcf63d5ccef70a
refs/heads/master
2023-03-10T14:58:18.072562
2023-02-24T18:32:53
2023-02-24T18:32:53
31,621,748
103
29
NOASSERTION
2019-02-25T17:31:00
2015-03-03T21:15:54
C++
UTF-8
Python
false
false
8,595
py
# Lint as: python3 """A torque based stance controller framework.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import logging from typing import Any, Sequence, Tuple import gin import numpy as np from pybullet_envs.minitaur.agents.b...
[ "erwin.coumans@gmail.com" ]
erwin.coumans@gmail.com
24eca094d917207229a1b23a1435763f5d8d962d
a84e1ed67ef2592cf22f7d19cdddaf16700d6a8e
/graveyard/web/VNET/branches/vnf/content/actors/obsolete/vaspPhon.odb
0b915dda2a74f0472b61de90044a53085518ebfd
[]
no_license
danse-inelastic/inelastic-svn
dda998d7b9f1249149821d1bd3c23c71859971cc
807f16aa9510d45a45360d8f59f34f75bb74414f
refs/heads/master
2016-08-11T13:40:16.607694
2016-02-25T17:58:35
2016-02-25T17:58:35
52,544,337
1
2
null
null
null
null
UTF-8
Python
false
false
558
odb
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2005 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~...
[ "jbrkeith@gmail.com" ]
jbrkeith@gmail.com
a5678355479cffd9ab84a011fd49e713ecd02ad5
177c090fffc3baba54db88fd51f4f21c74f6acb3
/manage.py
334c2decfb81708d1bd7a6599be5ddd095d697d7
[]
no_license
Deep-sea-boy/iHome
d68dcd196c204d63766fc75bdc214fbd8fa6177c
0cb9a23e864e9b8b82126db6e6bedf62a52b73d7
refs/heads/master
2020-03-11T02:52:39.851372
2018-04-23T02:31:10
2018-04-23T02:31:10
130,633,039
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
#coding:utf-8 from flask_migrate import Migrate,MigrateCommand from flask_script import Manager from iHome import get_app,db app = get_app('dev') # # 在迁移时让app和db建⽴关联 Migrate(app,db) manager = Manager(app) # 将迁移脚本添加到脚本管理器 manager.add_command('db',MigrateCommand) if __name__ == "__main__": print app.url_map m...
[ "youremail@example.com" ]
youremail@example.com
b29ec90a8c342083bb1c9315e24d1a38f21f3c5d
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Projects/twilio/build/lib/twilio/rest/conversations/v1/configuration/__init__.py
662c9c24e4e32fe46eca6dd20efe791d972d6ff9
[ "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:462dd494db244faa218d38ab9f086e0defd945bc165b5d99f3410b331d22010e size 11015
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
d1dd441e212f6b5630bf450ef5d17cd930f65e8f
0e94b21a64e01b992cdc0fff274af8d77b2ae430
/function/最大逆向匹配.py
7bbeb95f5295f34cf11bb6d1a625805a4c92e954
[]
no_license
yangnaGitHub/LearningProcess
1aed2da306fd98f027dcca61309082f42b860975
250a8b791f7deda1e716f361a2f847f4d12846d3
refs/heads/master
2020-04-15T16:49:38.053846
2019-09-05T05:52:04
2019-09-05T05:52:04
164,852,337
0
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
# -*- coding: utf-8 -*- """ Created on Tue Jan 8 11:37:30 2019 @author: natasha_yang @e-mail: ityangna0402@163.com """ #分词方法,逆向最大匹配 class RMM(): def __init__(self, dict_path): #prepare dictionary self.dictionary = set() self.maximum = 0 with open(dict_path, 'r', encoding='utf-8')...
[ "ityangna0402@163.com" ]
ityangna0402@163.com
0c42f661e88b5e9e2c9be1f70ac0b4dd7b1fbd0d
08296e4f0139bd23ec73836996e3637eda666a68
/modelsFormsDemo/modelforms/forms.py
ad6e17a28c64283db488cff139dd2c04020dd4f9
[]
no_license
146789/projects
4589efd8f2f11a1beb487ef06a7556d49ed95c72
a288e39cd088ea2717017285fd68d8b42cf4d493
refs/heads/main
2023-02-02T13:54:34.360222
2020-12-19T08:16:11
2020-12-19T08:16:11
322,798,535
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
from django import forms from modelforms.models import Project class projectForm(forms.ModelForm): class Meta: model = Project fields = '__all__'
[ "34913079+146789@users.noreply.github.com" ]
34913079+146789@users.noreply.github.com
d78b64e291c878941f42ce614f2374cf3d1e5db0
060967fa3e6e390ac0504172e6dea8421ffb9d98
/2022/python2022/tests/test_day05.py
6e3cdc045d3b37efe23b317fb4ef6d05472cd6dd
[]
no_license
mreishus/aoc
677afd18521b62c9fd141a45fec4b7bc844be259
e89db235837d2d05848210a18c9c2a4456085570
refs/heads/master
2023-02-22T12:00:52.508701
2023-02-09T04:37:50
2023-02-09T04:39:44
159,991,022
16
3
null
2023-01-05T10:00:46
2018-12-01T22:00:22
Python
UTF-8
Python
false
false
609
py
#!/usr/bin/env python3 """ Test Day05. """ import unittest from aoc.day05 import Day05 class TestDay05(unittest.TestCase): """Test Day05.""" def test_part1(self): """Test part1""" self.assertEqual(Day05.part1("../inputs/05/input_small.txt"), "CMZ") self.assertEqual(Day05.part1("../in...
[ "mreishus@users.noreply.github.com" ]
mreishus@users.noreply.github.com
254f2622c359329e542c446d230344005908e2cf
0bd7c1f7bf6da5ef92b9013e1d913140f0249dfa
/cecilia-python/company-title/alibaba/2020/LongestStringNote.py
bb33251577054be3950acdf1f824040773ccc3af
[]
no_license
Cecilia520/algorithmic-learning-leetcode
f1fec1fae71c4cf7410122f5ce969e829f451308
32941ee052d0985a9569441d314378700ff4d225
refs/heads/master
2022-05-02T03:00:57.505672
2022-03-19T09:51:28
2022-03-19T09:51:28
229,673,810
7
1
null
2022-03-19T09:34:57
2019-12-23T04:04:04
Python
UTF-8
Python
false
false
2,909
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : LongestStringNote.py @Contact : 70904372cecilia@gmail.com @License : (C)Copyright 2019-2020 @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/3/30 22:09 cecilia 1.0 最长字符串音符...
[ "cc15572018516@163.com" ]
cc15572018516@163.com
1448d856879ce5cf3724a82a93410eb12c35ce47
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_abominating.py
cf50c6ad0533dcdabbfe02cae9118aac20902ad1
[ "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
236
py
#calss header class _ABOMINATING(): def __init__(self,): self.name = "ABOMINATING" self.definitions = abominate self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['abominate']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
aca024609ff1a5d1f0412312402ccbc8796917f4
c191c82ca5b67d2caf447e16e6d2368404fb6730
/collegeproject/faculty/forms.py
03a3c44e6c8587059cf6254f5dcdbfbf8acccb71
[]
no_license
arunthankachan07/DjangoProjects
070457fe0afeaea0633ab674b311f220fa6bec83
08bd1925ff2d882876b79bc0d8820f033dde3bb3
refs/heads/master
2023-04-22T07:26:19.444894
2021-05-10T06:36:38
2021-05-10T06:36:38
361,839,558
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
from django import forms class FacultyRegistrationForm(forms.Form): firstname=forms.CharField(max_length=120) username=forms.CharField(max_length=120) password=forms.CharField(max_length=100) class FacultyLoginForm(forms.Form): username=forms.CharField(max_length=120) password=forms.CharField(max...
[ "arunkaripuzha07@gmail.com" ]
arunkaripuzha07@gmail.com
f145fc7349b8ccd698ec345a9ddca5d0ea75c128
d8fd66452f17be82b964f9a93577dbaa2fa23451
/movie/loader.py
7cfb7a39dc2d8145dffa36be1475b34d9e244423
[]
no_license
Dawinia/gp_DA_movie
8b7575a54502896f5658538563f3f1f8cfe38772
e0253cc8bc16daf1d32b9c861f7fcb03510937f6
refs/heads/master
2023-05-25T11:49:39.422657
2021-12-14T03:26:35
2021-12-14T03:26:35
233,504,205
3
0
null
2023-05-22T22:44:11
2020-01-13T03:33:48
Python
UTF-8
Python
false
false
106
py
# encoding: utf-8 from scrapy.loader import ItemLoader class BoxOfficeItemLoader(ItemLoader): pass
[ "dawinialo@163.com" ]
dawinialo@163.com