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
37a9412b0c05aad2df5750f5867d59e8503ff547
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/cv/semantic_segmentation/BiseNetV1_for_PyTorch/mmseg/models/utils/up_conv_block.py
66b791bd1273f1d50a4be3dd3a485d52e7da0db1
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
4,718
py
# Copyright (c) Facebook, Inc. and its affiliates. # Copyright 2020 Huawei Technologies Co., Ltd # # 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...
[ "chenyong84@huawei.com" ]
chenyong84@huawei.com
8540977184ba3295701e247f96338266003c6511
4809471274d6e136ac66d1998de5acb185d1164e
/pypureclient/flasharray/FA_2_6/models/software_installation_steps_get_response.py
bc24e395bfdad3209d473f8fec0ea2070935f13a
[ "BSD-2-Clause" ]
permissive
astrojuanlu/py-pure-client
053fef697ad03b37ba7ae21a0bbb466abf978827
6fa605079950765c316eb21c3924e8329d5e3e8a
refs/heads/master
2023-06-05T20:23:36.946023
2021-06-28T23:44:24
2021-06-28T23:44:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,907
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
[ "hubert.chan@purestorage.com" ]
hubert.chan@purestorage.com
3d3c8569caa8ada77de8b227992483d0f961e601
7e2a407fb226a5a051d825bd01d844bf459c602a
/try.py
46fb803201c93c26b5872846191b015de6098b94
[]
no_license
ishaan001/SPY-CHAT
07a93436574696ce6acfe155f12748ae83b0eeb7
0fecfea0a2f2bc6703d5f76317a6917ec50c2576
refs/heads/master
2021-07-06T15:25:51.395195
2017-09-30T17:22:31
2017-09-30T17:22:31
99,268,607
1
0
null
null
null
null
UTF-8
Python
false
false
293
py
import random ch=raw_input("guess a letter between EVAPORATE :") value=random.choice('EVAPORATE') print value if ch == value : print "guessed correctly" else: print "guessed incorrectly" i=raw_input("enter a phrase :") if i.strip(): i=i.strip() print i else: print "hie"
[ "you@example.com" ]
you@example.com
b47c7876e4431a90d7c5fb78c81be477f35a52fb
e6e81d0cd02223ca27f2c3f544b3c116e7617270
/LeetCodePremium/173.binary-search-tree-iterator.py
3c093a1e2fc52a96c94c872ef76619b49615f5a3
[]
no_license
ashjambhulkar/objectoriented
86166640b0546713095dd5d8804fc78d31782662
6f07b50590ceef231be38d6d7b8c73a40c1152e9
refs/heads/master
2022-05-03T23:28:38.674275
2022-04-26T21:37:31
2022-04-26T21:37:31
249,091,045
0
0
null
null
null
null
UTF-8
Python
false
false
852
py
# # @lc app=leetcode id=173 lang=python3 # # [173] Binary Search Tree Iterator # # @lc code=start # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class BSTIterator: def _...
[ "ashjambhulkar@hotmail.com" ]
ashjambhulkar@hotmail.com
0fe3ae1b2658aed929f049a59a38b1aba146f74f
9355c5f5467eb8407d2a8bf5f751d0a499f3e3a3
/대학원 파이썬 수업/수업/1027/sumlist.py
39f64d30678941aba99b6554c04e20ccc6a6b32c
[ "Apache-2.0" ]
permissive
minji-o-j/Python
724adc527c62e53b65261eeb1030ae22d32b97e8
6a252a259f304a7602052bb31b49aaa3d8fde6ee
refs/heads/master
2022-11-11T17:26:18.104866
2022-11-03T07:00:00
2022-11-03T07:00:00
231,886,250
0
0
null
null
null
null
UTF-8
Python
false
false
103
py
list_ = [4,10,9,-5,5,1,9,2,-2] sum_ = 0 for s in list_: if s%2 == 0: sum_ += s print(sum_)
[ "jminji98@gmail.com" ]
jminji98@gmail.com
111a683f9bed08e9ae9dc3d9d1408382ae5415de
05b0162d5ee7ab74f71ad4f21d5188a8735dfaef
/plugins/action/guest_user_deny.py
745295a5239a746cc3e1d203a4280440cee79200
[ "MIT" ]
permissive
steinzi/ansible-ise
567b2e6d04ce3ca6fbdbb6d0f15cd1913a1e215a
0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0
refs/heads/main
2023-06-25T15:28:22.252820
2021-07-23T14:21:40
2021-07-23T14:21:40
388,820,896
0
0
MIT
2021-07-23T14:03:07
2021-07-23T14:03:06
null
UTF-8
Python
false
false
2,555
py
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.action import ActionBase try: from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_validate import ( AnsibleArgSpecValidator, ) except ImportError: ANSIBLE_UTILS_IS_INST...
[ "wastorga@altus.co.cr" ]
wastorga@altus.co.cr
d30ad680849c26629bad093e62df654bc0da3eba
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_breathes.py
4f03677ed893ed3d7b9bbe2a70a43c5fd0a2f398
[ "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
226
py
#calss header class _BREATHES(): def __init__(self,): self.name = "BREATHES" self.definitions = breathe self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['breathe']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
d26261439ec0d55bf55f99287e4be923fb7a5479
4f21e3301c1a8699745528177b3210b4f1a1f1d5
/week10/Informatics/stepen'.py
a0ea34f305ef84fd49d711830f463ed74b43db88
[]
no_license
ndina/webdev2019
7fd0250b662b378d55e24e931f82d0b2538d63a5
eae4808e2f0bfcdd5a366fd4692c041b96faaa0b
refs/heads/master
2020-05-03T22:05:12.392913
2019-05-04T02:46:56
2019-05-04T02:46:56
167,550,783
0
1
null
null
null
null
UTF-8
Python
false
false
109
py
import math a = int(input()) i = 1 while i < a: i *= 2 if i == a: print("YES") else: print("NO")
[ "dbom12360@gmail.com" ]
dbom12360@gmail.com
5dc5afcaee348f5a2042a3620c4e5c37ab1b291c
948b0cf3a37632dbbc1a9cf34673e3834221a8cc
/code/BERT_NER/utils_preprocess/map_text_to_char.py
1023d0eece17fa628954699ba0a78fd4eea63031
[ "MIT" ]
permissive
chaojiang06/StackOverflowNER
a6d2a43079024c8399f42620509047bf5392b392
8598f3a0df9603c41996f5a6ba2c0b5ae01c71b6
refs/heads/master
2023-04-28T07:03:59.212555
2021-05-19T17:08:10
2021-05-19T17:08:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,005
py
import stokenizer #JT: Dec 6 def map_text_to_char(main_sent, tokens, offset): tokenized_sent=" ".join(tokens) # print("tokenized_sent: ", tokenized_sent) main_sent_iter=0 tokenized_sent_iter=0 tokenized_sent_actual_indices=[] while(tokenized_sent_iter<len(tokenized_sent)): if tokenized_sent_iter< len(tokeniz...
[ "jeniya.tabassum@gmail.com" ]
jeniya.tabassum@gmail.com
faa7c245284a58b87c14884963f81a64307d97cb
4418d9b0d9f2616c12921ee0ed0f994cebb24852
/appfood/migrations/0006_auto_20160717_1401.py
106e43f83f6cbce3f2398c77a7b7373c06767709
[]
no_license
KiaraRaynS/koquibilis
c63a133fe78f68eccbd4f79657ab9da51315cef9
75c5ece32335736b01a9b36bf0310ca557476f13
refs/heads/master
2021-01-17T20:01:49.778072
2016-08-17T07:36:40
2016-08-17T07:36:40
64,024,822
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-17 14:01 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('appfood', '0005_userpage_description'), ] operations = [ migrations.AlterFie...
[ "sherman.rayn@outlook.com" ]
sherman.rayn@outlook.com
07ae0b51bdc447fefd7452c0f643f56699b37bab
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/tests/test_cancel.py
780004a25335be72d400b95d9a2f773d3c0b2b29
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
22,033
py
import os import random import signal import sys import threading import _thread import time import pytest import ray from ray.exceptions import ( TaskCancelledError, RayTaskError, GetTimeoutError, WorkerCrashedError, ObjectLostError, ) from ray._private.utils import DeferSigint from ray._private....
[ "noreply@github.com" ]
ray-project.noreply@github.com
9a1e035a9c65d65fb03273a40e04fa6d25229b12
633944f913050debf0764c2a29cf3e88f912670e
/v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/sqlite3/test/dump.py
4e761a9292b18ac7932eaf31d69d2efad1b9811b
[ "BSD-3-Clause", "bzip2-1.0.6", "SunPro", "Apache-2.0" ]
permissive
bopopescu/V8-lgtm
0474c2ff39baf754f556ef57619ceae93e7320fd
da307e2f7abfca5fa0e860a809de6cd07fd1b72b
refs/heads/master
2022-02-16T19:10:54.008520
2019-09-25T07:51:13
2019-09-25T07:51:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
../../../../../.cipd/pkgs/2/_current/lib/python3.8/sqlite3/test/dump.py
[ "jundong.xjd@antfin.com" ]
jundong.xjd@antfin.com
04ecbd805d87656465a9d91fe03990945653ed56
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_3/models/array_connection_path_get_response.py
a5f5aa6302375f84a42daea6d00c29584834dd25
[ "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,284
py
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.3, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typ...
[ "ashahid@purestorage.com" ]
ashahid@purestorage.com
9aba86e68eda75bcc6f01dff983924ab25165ddb
b224c7413b7e6a1cb78dad60b4899674fefe8269
/openforce_relate/project/__init__.py
546195bbdd2e23328b076ed1185ef79ef8b2a593
[]
no_license
alessandrocamilli/7-openforce-addons
2ee00b712538a8eb433d0ce0c63cd12a861548e6
78fc164679b690bcf84866987266838de134bc2f
refs/heads/master
2016-08-03T11:58:12.730337
2014-07-03T10:29:56
2014-07-03T10:29:56
21,004,298
1
0
null
null
null
null
UTF-8
Python
false
false
928
py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2013 Alessandro Camilli # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Fr...
[ "alessandrocamilli@openforce.it" ]
alessandrocamilli@openforce.it
f45cf93db03514e8458c7916174ae092a8750f9e
c391cbccffb5057608a4823bdaf8e2fa39f2e2de
/ventas/migrations/0015_auto_20150622_1021.py
55643ec55b903c97974a5a7e2264a3c6f3869213
[]
no_license
wasuaje/fac1
66f797337a4091bd4a3581de6994e1fc9557a8da
07869baa7eff92faa89adc0f5e9cbe39738bf311
refs/heads/main
2023-03-26T22:26:39.549328
2021-03-26T16:48:19
2021-03-26T16:48:19
351,850,403
0
0
null
null
null
null
UTF-8
Python
false
false
1,199
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('ventas', '0014_caja_turno_turnodet'), ] operations = [ migrations.RenameField( model_name='caja', ol...
[ "wasuaje@gmail.com" ]
wasuaje@gmail.com
468c56ba43ffc1661437f244e2c042faedc7b05e
c243661d9d321b39256ad3dee4f5ce4b30a1fa93
/packages/dicom/python/itkwasm-dicom/itkwasm_dicom/structured_report_to_text.py
1a432dc9d86fa01843bc8a62cefe866b07fbe41a
[ "Apache-2.0" ]
permissive
InsightSoftwareConsortium/itk-wasm
409621ea9430065c51759e4398959fe0ea3ab64a
63369f1439583f27c77a4534ea2ef204c63dfa39
refs/heads/main
2023-08-31T13:31:27.333792
2023-08-30T04:20:30
2023-08-30T04:20:30
45,812,381
69
23
Apache-2.0
2023-09-11T21:09:22
2015-11-09T03:20:17
C++
UTF-8
Python
false
false
3,475
py
# Generated file. Do not edit. import os from typing import Dict, Tuple, Optional, List, Any from itkwasm import ( environment_dispatch, BinaryFile, TextStream, ) def structured_report_to_text( dicom_file: os.PathLike, unknown_relationship: bool = False, invalid_item_value: bool = False, ...
[ "matt.mccormick@kitware.com" ]
matt.mccormick@kitware.com
d7548f62739752924ce227f5ed2a8ef628d81c56
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/Quote16/HQ_16_118.py
7ae70aa48fef90829b52fa0521c2a9dd2a8b6128
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
1,485
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import time import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from log import * class HQ_16_118(xtp_test_case): def subTickByTick(self, Api, stk_info, case_name, rs_ex...
[ "418033945@qq.com" ]
418033945@qq.com
01b1722935b7954f3fb424b35942bad2f69fc88d
2b8d4e22d10ca118fba0100cc87af04f3939448f
/psail/odoo_shipping_service_apps/models/delivery_carrier.py
dafa7cc9bdc37538679ab2482e46d376d9781945
[]
no_license
ahmed-amine-ellouze/personal
f10c0a161da709f689a3254ec20486411102a92d
4fe19ca76523cf274a3a85c8bcad653100ff556f
refs/heads/master
2023-03-28T23:17:05.402578
2021-03-25T13:33:18
2021-03-25T13:33:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,803
py
# -*- coding: utf-8 -*- ################################################################################# # # Copyright (c) 2018-Present Webkul Software Pvt. Ltd. (<https://webkul.com/>) # You should have received a copy of the License along with this program. # If not, see <https://store.webkul.com/license.ht...
[ "hussnainsajid08@gmail.com" ]
hussnainsajid08@gmail.com
b2623287ed69fa4a3c45d6ece1b4cb09d9dd59e3
a27cbb1d30250af478e65567ce3b33f12a095f4d
/stigler_app/accounts/forms.py
fb6c44f700773e32cd7a6141b8699b8c345a0661
[]
no_license
LiamDGray/stigler_app
bd385072cd4d1cb3d1c2402078295aa397b2d73c
0d1fa27de498a1673ac62a1c5d9eb1b108286eaa
refs/heads/master
2023-01-02T00:40:35.655065
2020-10-25T10:41:51
2020-10-25T10:41:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
from django.forms import ModelForm from .models import Order, Customer from django.contrib.auth.forms import UserCreationForm from django import forms from django.contrib.auth.models import User class CustomerForm(ModelForm): class Meta: model = Customer fields = '__all__' exclude = ['user...
[ "phate09@hotmail.it" ]
phate09@hotmail.it
9f17e75cd0253ac03e4190a75f4f96adb0b432a1
f9cda59daef247498d1a9a9fccab10c5fd7d6973
/tlpipe/timestream/raw_timestream.py
4b143040494f9077be580fad40dd6c83583a2b69
[]
no_license
sshj/tlpipe
76e14eef9fb2c139374eafdcfd04bafcbcf182e0
d16919796b0df0494133ee62b308d76fd0eadcbc
refs/heads/master
2020-12-11T09:23:21.493475
2016-08-15T13:04:34
2016-08-15T13:04:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,283
py
import itertools import numpy as np import timestream_common import timestream from caput import mpiarray from caput import memh5 class RawTimestream(timestream_common.TimestreamCommon): """Container class for the raw timestream data. The raw timestream data are raw visibilities (the main data) and other dat...
[ "zuoshifan@163.com" ]
zuoshifan@163.com
40cca74273994965d81e5eece2f9b6d8c0a669e2
83efa0dfe22cd6cc01fb561ba2e79166574d580c
/okmoderation/views.py
053ee127efc5ca680d19f42d8bd6d58fa30e82c9
[]
no_license
finnishnetsolutions/otakantaa
a4e4bbe77ef72b42f1fc7d52f867ac663c30ae40
5842dbbc35d6bd668191f4d6ac81487aa27c0e89
refs/heads/master
2021-01-10T11:30:37.702009
2016-05-06T13:36:54
2016-05-06T13:36:54
55,126,662
0
0
null
null
null
null
UTF-8
Python
false
false
2,760
py
# coding=utf-8 from __future__ import unicode_literals from django.contrib import messages from django.db import transaction from django.db.utils import IntegrityError from django.utils import timezone from django.views.generic.base import View, TemplateResponseMixin from django.views.generic.edit import CreateView f...
[ "erno@fns.fi" ]
erno@fns.fi
1a9e0df7c8109752bc520fdda38bba074d77d4d6
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/INTERVIEW-PREP-COMPLETE/notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/CodeChef/DSA Learning Series/Contest 1/Lapindromes.py
37bb450d7164df8c5ddfeed31e7e35a5e0ed2019
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
362
py
from collections import Counter T = int(input()) while T: s = input() n = len(s) if n % 2 == 0: print("YES") if Counter(s[0 : n // 2]) == Counter(s[(n // 2) : n]) else print( "NO" ) else: print("YES") if Counter(s[0 : n // 2]) == Counter( s[(n // 2) + 1 :...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
b5006bb0d32688358ab360416ed9d889cb0b9255
b1c423170f2d897ef88ab93e17830b6fff91b4e3
/EasyPython/drProperty.py
9f4ebd633d906ee18afb19749fe5c7a2d8f32394
[]
no_license
walker8088/easyworld
55031dd0862b7bc0ffc8c5093875a93e935933e6
e6aaf18430aee1457f5d8228fb300cf4323bcb7f
refs/heads/master
2021-01-02T09:34:59.604820
2011-01-20T03:32:16
2011-01-20T03:32:16
33,644,143
0
0
null
null
null
null
UTF-8
Python
false
false
4,042
py
# Programmer: Daniel Pozmanter # E-mail: drpython@bluebottle.com # Note: You must reply to the verification e-mail to get through. # # Copyright 2003-2007 Daniel # Distributed under the terms of the GPL (GNU Public License) # # DrPython is free software; you can redistribute it and/or modify #...
[ "lidonglin8088@gmail.com@c3cacd82-1c91-3bdd-8267-0dbd049bf731" ]
lidonglin8088@gmail.com@c3cacd82-1c91-3bdd-8267-0dbd049bf731
69231100566985a3d164855059320a69aab8cca5
8e2a182278843c8440ac3711dcdfc1131fa496c1
/pyvisa-sim/serial.py
f169c613ceceec997cc1cd6fb1df3e1a9e2a7d1f
[ "MIT" ]
permissive
alexforencich/pyvisa-sim
8ca9c01f3bfb5cfd973ec2d257ed9760d6e8405f
7d1f55cf49b1005592d6eaad27cab4c8d7f4c2ad
refs/heads/master
2021-01-17T06:32:52.710631
2015-02-13T23:14:36
2015-02-13T23:14:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,638
py
# -*- coding: utf-8 -*- """ pyvisa-sim.serial ~~~~~~~~~~~~~~~~~ ASRL (Serial) simulated session class. :copyright: 2014 by PyVISA-sim Authors, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ from __future__ import division, unicode_literals, print_function, absolute...
[ "hernan.grecco@gmail.com" ]
hernan.grecco@gmail.com
f8cac9ba6867ecbe5af85c023e4bdafc604d61f6
e522c1606e06cd0a2ea82c57b72aac2e065ad429
/programming-team/First Semester/Seventh/numways.py
eacdc67ea6a12f05fc7d1dcc17fc48e3845ccc8c
[]
no_license
Nate8888/programming-contest-practice
80d17d7ccea9491f42ec0cccab7e0cfe80849f17
4c2496260c209190103d7bbef82d866ae4be09b6
refs/heads/master
2023-05-04T16:20:36.136598
2021-05-27T22:52:04
2021-05-27T22:52:04
293,109,179
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
def count(list_of_currency, change): dp = [0] * (change+1) dp[0] = 1 for x in range(0,len(list_of_currency)): for y in range(list_of_currency[x], change+1): dp[y] += dp[y - list_of_currency[x]] #print(dp) return dp[change] % (10 ** 9 + 7) amt = int(input()) for i...
[ "wilk.nathan@gmail.com" ]
wilk.nathan@gmail.com
78b3cc694cb7e113f7040cf3a4bc35e4ce3be39d
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/contourcarpet/_a0.py
056d4d4bb6d7a594a8f4685d4ca507ada433c35a
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
461
py
import _plotly_utils.basevalidators class A0Validator(_plotly_utils.basevalidators.AnyValidator): def __init__( self, plotly_name='a0', parent_name='contourcarpet', **kwargs ): super(A0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
[ "adam.kulidjian@gmail.com" ]
adam.kulidjian@gmail.com
633ba514555fa52bcefee5216d74bd26674c909b
d64b15f01374254c6628abaa0535186738dca6d3
/venv/lib/python3.6/enum.py
13da0459ea63444a9eb96e52cbb43ebb29314454
[]
no_license
dnguyen1196/SSVI-tensor-factorization
b3fa82c8967eb5a415c9d29dc2e290535ee8f41f
e371094de77bfa866d411bd84a7e65463e5a96f9
refs/heads/master
2020-03-15T14:37:25.008000
2018-05-17T16:02:06
2018-05-17T16:02:06
132,193,314
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
/home/duc/miniconda3/lib/python3.6/enum.py
[ "ducnguyenmanh96@gmail.com" ]
ducnguyenmanh96@gmail.com
7d2cb3c70d6309a0d5ea3dd59d4ebf13a48b896a
0485a490f466bd1d02eaae96d277888781208c0e
/tests/single_instruction_translation_validation/mcsema/memory-variants/cmovsl_r32_m32/Output/test-z3.py
ab6ba59350859669de476f55244c0e1abe1901da
[ "LicenseRef-scancode-unknown-license-reference", "NCSA" ]
permissive
Mthandazo42/validating-binary-decompilation
c0e2d54cd79e609bfa35802975bddfa52e646fad
c0fcd6f099e38195dcbbac9e8c13a825865c5cb5
refs/heads/master
2022-11-11T13:18:13.033044
2020-06-25T05:49:01
2020-06-25T05:49:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,082
py
############################################# ######## Auto Generated Proof Scripts ####### ############################################# import z3 import sys status=True test_name="UnK" if(len(sys.argv) > 1): test_name = sys.argv[1] def solve(msg, lvar, xvar, s): global status s.set("timeout", 60000) res =...
[ "sdasgup3@illinois.edu" ]
sdasgup3@illinois.edu
3efb154709a7c6bc94e0eaf9e638473d55aaf609
ca4c5be44a95bde4d8712177452419c6dc97c777
/snake_game/food.py
f4f0880fdd999dae37e6a0504ec7ee25ef739f0c
[]
no_license
IshaanBAgrawal/Day-20-and-21
47d96096e8c0f982fc3b6fa70f5a7405c5da1376
b35bcb1e163c917b2a0afefb5ab7a8b2636ae72e
refs/heads/master
2023-07-04T00:06:33.564901
2021-08-10T09:42:47
2021-08-10T09:42:47
394,599,159
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
from turtle import Turtle import random class Food(Turtle): def __init__(self): super().__init__() self.shape("circle") self.penup() self.shapesize(stretch_len=0.5, stretch_wid=0.5) self.color("cyan") self.speed("fastest") self.refresh() def refresh(sel...
[ "agrawalishaan115@gmail.com" ]
agrawalishaan115@gmail.com
283675efc3a36263c7ef2ae7af133ebc4fd6f0c4
b81000c5659378564e522904a09025c70dff5be5
/models/__init__.py
4e335625488f5ee755336916de1322109b4059c5
[]
no_license
xica369/AirBnB_clone
8c32e2ae239c948cd01a13e70775f56b9fe8188e
f3369baa6f882c613f447cc196f75accda3b775a
refs/heads/master
2020-06-12T14:12:16.744414
2019-07-21T00:18:33
2019-07-21T00:18:33
194,324,152
1
1
null
2019-07-09T19:51:23
2019-06-28T19:27:30
Python
UTF-8
Python
false
false
133
py
#!/usr/bin/python3 """ models Module """ from models.engine.file_storage import FileStorage storage = FileStorage() storage.reload()
[ "arleybri18@gmail.com" ]
arleybri18@gmail.com
40022ed7a4b84a267fc2bdb93a5c078e09bb32f3
d683a49752ba1eed514b960d16f6f9b0817f6383
/utils/context_processors.py
97285bde3fe3f9bfdb03de6706aca381bebbea45
[]
no_license
ViktorOgnev/gtd
1fd7821260ab805545b7ad3f83598d752362e989
adf0a6003ae323c303e83fee52f7a35cd4d1bf0d
refs/heads/master
2021-01-10T19:27:28.010344
2013-10-30T18:35:02
2013-10-30T18:35:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
from gtd import settings from django.contrib.sites.models import Site def project_constants(HttpRequest): site_name = Site.objects.get(id=settings.SITE_ID) return {'STATIC_URL': settings.STATIC_URL, 'IMG_UPLD_DIR': settings.IMG_UPLD_DIR, 'site_name': site_name }
[ "ognev.victor@gmail.com" ]
ognev.victor@gmail.com
42b2b8f341ef581e489a9f5944f142b68446b41c
c2e13dc74c7278c437144707451fbf18df22c330
/ML_Model.py
9769b061a08a5e875bd4fc6715fd61d1432e26f6
[]
no_license
Zhaofan-Su/Speech-Emotion-Recognition
b0034a3df7c54d75afc913a3953a35a6433df390
d7573e2b20fc0cfd01dcb27f6d357c0715f1d870
refs/heads/master
2020-05-19T17:26:32.888121
2019-05-05T06:37:28
2019-05-05T06:37:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,073
py
import pickle import sys import numpy from sklearn.neural_network import MLPClassifier from sklearn.svm import SVC from Common_Model import Common_Model class MLModel(Common_Model): def __init__(self, **params): super(MLModel, self).__init__(**params) ''' save_model(): 将模型以 model_name 命名存储在 /Mo...
[ "renovamenzxh@gmail.com" ]
renovamenzxh@gmail.com
2d4630b67da3e0a5e35025928f5cbc3d34e67e17
ab79f8297105a7d412303a8b33eaa25038f38c0b
/vit_account_invoice_detail/account_invoice_detail.py
3ea1e6b34b8058e821464cb4dad4436d32cf38c2
[]
no_license
adahra/addons
41a23cbea1e35079f7a9864ade3c32851ee2fb09
c5a5678379649ccdf57a9d55b09b30436428b430
refs/heads/master
2022-06-17T21:22:22.306787
2020-05-15T10:51:14
2020-05-15T10:51:14
264,167,002
1
0
null
2020-05-15T10:39:26
2020-05-15T10:39:26
null
UTF-8
Python
false
false
1,618
py
# -*- coding: utf-8 -*- from openerp.osv import fields, osv import openerp.addons.decimal_precision as dp from openerp.tools.translate import _ class account_invoice_line(osv.Model): _inherit = "account.invoice.line" def _amount_gross(self, cr, uid, ids, prop, unknow_none, unknow_dict): res = {} for line in se...
[ "prog1@381544ba-743e-41a5-bf0d-221725b9d5af" ]
prog1@381544ba-743e-41a5-bf0d-221725b9d5af
4dcdb5875b4e277c2dbb0e11dbe392b705670851
bc02e2c69f425e03b609f466b0a2d52a455765dc
/0712/2020-07-11/스타트 택시_제유빈.py
31866f7f63f3a07a9f541c5e125afa3293cb9739
[]
no_license
gaberani/AlgorithmStudy
d795f449fe185c3993df90173f27b7eb74e02366
6d9d20ac29446d22f2e0ef7037f131c4a2f48762
refs/heads/master
2023-02-03T03:24:45.039238
2020-12-22T12:53:52
2020-12-22T12:53:52
287,101,596
0
0
null
null
null
null
UTF-8
Python
false
false
4,641
py
# # dfs # import sys # # def min_dis(r, c, g_r, g_c, V, d): # global min_d, fuel, P # dr, dc = [1, -1, 0, 0], [0, 0, 1, -1] # if [r, c] == [g_r, g_c]: # # print(d, min_d) # if d < min_d: # min_d = d # return # elif d >= min(min_d, fuel): return # else: # f...
[ "khs0783@naver.com" ]
khs0783@naver.com
6c22e9186824cd701d214a9994f7c82d9358f3bd
4542d6866d3eaa55897acf4b292494299f68e103
/example/speech_recognition/singleton.py
16f129b410173061fa402f92e17c75de047cd40e
[ "Apache-2.0" ]
permissive
huangzehao/incubator-mxnet-bk
80631ed4dd071dfe553400ca5553cf66b1389571
59ba5956a135492e295431170db82c3f150869a5
refs/heads/master
2022-11-20T13:45:16.251713
2017-08-10T17:25:27
2017-08-10T17:25:27
100,241,760
2
3
Apache-2.0
2022-11-19T02:00:28
2017-08-14T07:46:32
Python
UTF-8
Python
false
false
922
py
import logging as log class Singleton: def __init__(self, decrated): log.debug("Singleton Init %s" % decrated) self._decorated = decrated def getInstance(self): try: return self._instance except AttributeError: self._instance = self._decorated() ...
[ "piiswrong@users.noreply.github.com" ]
piiswrong@users.noreply.github.com
5234ee8de03bc686b95d2fb4b83f4d2425f51ce9
2a54e8d6ed124c64abb9e075cc5524bb859ba0fa
/.history/1-Python-Basics/18-lists_20200413021948.py
452675ff9373c3f213ce892f4a0ef63985f3758d
[]
no_license
CaptainStorm21/Python-Foundation
01b5fbaf7a913506518cf22e0339dd948e65cea1
a385adeda74f43dd7fb2d99d326b0be23db25024
refs/heads/master
2021-05-23T01:29:18.885239
2020-04-23T19:18:06
2020-04-23T19:18:06
253,171,611
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
# creating a list li = [1,2,3,4,5] li2 = ['a', 'b', 'c', 'd'] li3 = [10, 23, 11, 'x', 'y', 'z', True] print(li3[1]) # list slicing amazon_phones = [ ]
[ "tikana4@yahoo.com" ]
tikana4@yahoo.com
bb92742ef5be4141534903d45038dab1acde336c
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/member/point_pipeline_people_friend.py
71a2f0efb9f915aa99a400e0faa0818fde149eae
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
28,594
py
package SDK; import java.io.File; import java.io.FileOutputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import java.util.concurrent.Future; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.A...
[ "soric.matko@gmail.com" ]
soric.matko@gmail.com
ecd9247c92666a35b10dbe9a6a3c32dc63e11549
411eff94020c192d5e5f657fa6012232ab1d051c
/extras/unused/unused/quest/QuestManagerBase.py
d1d950bff498c426296e426a363ee4a4df11aa38
[]
no_license
xMakerx/cio-src
48c9efe7f9a1bbf619a4c95a4198aaace78b8491
60b2bdf2c4a24d506101fdab1f51752d0d1861f8
refs/heads/master
2023-02-14T03:12:51.042106
2021-01-15T14:02:10
2021-01-15T14:02:10
328,268,776
1
0
null
2021-01-15T15:15:35
2021-01-09T23:51:37
Python
UTF-8
Python
false
false
1,008
py
######################################## # Filename: QuestManagerBase.py # Created by: DecodedLogic (18Jul16) ######################################## class QuestManagerBase: def __init__(self): self.quests = [] self.tier = 0 def addQuest(self, quest): self.quests.append(q...
[ "maverick.liberty29@gmail.com" ]
maverick.liberty29@gmail.com
020cb2699f5eb16b965170b2d2ac8a9f658288b0
5d0e76e3c741adc120ce753bacda1e723550f7ac
/703. Kth Largest Element in a Stream.py
7647fdb5cc7de9ae27ff4a3968e0103e1358fbec
[]
no_license
GoldF15h/LeetCode
d8d9d5dedca3cce59f068b94e2edf986424efdbf
56fcbede20e12473eaf09c9d170c86fdfefe7f87
refs/heads/main
2023-08-25T12:31:08.436640
2021-10-20T04:36:23
2021-10-20T04:36:23
392,336,347
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
class KthLargest: def __init__(self, k: int, nums: List[int]): self.l = nums self.k = k def add(self, val: int) -> int: self.l.append(val) self.l.sort() return self.l[-1*self.k] # Your KthLargest object will be instantiated and called as such: # obj = KthLargest(k, nu...
[ "todsapon.singsunjit@gmail.com" ]
todsapon.singsunjit@gmail.com
d38c04057c0e2c3d43cbdc3ecfbae4d66c4b5852
987390ca6481ec5aa2b9e0e0e849203b6c22ce62
/zkeco-core/adms/mysite/iclock/models/model_cmmdata.py
6a7e2e87d9c8f1e6940fa632f9edf875cbf66ad9
[]
no_license
alungboy/johan-doc
81b2363e7f2ad189d0623007eea66233a2e18f1c
7ced14577405caf6127df03007619fe9cfda3847
refs/heads/master
2020-04-03T18:01:08.531971
2013-08-13T04:26:42
2013-08-13T04:26:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,651
py
# -*- coding: utf-8 -*- import os import string from django.contrib import auth from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.core.cache import cache from dbapp.utils import * from django.utils.translation import ugettext_lazy as _ from django.contrib.cont...
[ "xiongjianhong@a5b1b082-b159-ab12-9a9e-d79e7dfc8adf" ]
xiongjianhong@a5b1b082-b159-ab12-9a9e-d79e7dfc8adf
515da568bc076c4b29a3ab746aa031d5f94915fc
56befbe23e56995f9772010f47dcbf38c8c150bc
/0x0B-python-input_output/5-save_to_json_file.py
f3a7ff34f00064dc1c062ca9f7d04280c0c6cd73
[]
no_license
lemejiamo/holbertonschool-higher_level_programming
a48175156816a856dba0ddc6888b76f6e04b7223
3f756ed3a907044bfc811f108d5ae98bb0e9802c
refs/heads/main
2023-08-14T13:22:13.481356
2021-09-28T04:09:50
2021-09-28T04:09:50
361,910,906
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
#!/usr/bin/python3 """ a function that writes an Object to a text file, using a JSON representation """ import json def save_to_json_file(my_obj, filename): """save in a file a json dump of object """ with open(filename, 'w') as json_file: json_file.write(json.dumps(my_obj))
[ "luismejia69@gmail.com" ]
luismejia69@gmail.com
5f012699c4e8110de97cf661a305beb10f2b6b5e
35f9def6e6d327d3a4a4f2959024eab96f199f09
/developer/lab/ipython/PyTorch/PyTorch/test/test_pruning_op.py
28f31aeabd70581f3664df16449e4f125aa40512
[ "CAL-1.0-Combined-Work-Exception", "CAL-1.0", "MIT", "CC-BY-SA-4.0", "LicenseRef-scancode-free-unknown", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
arXiv-research/DevLab-III-1
ec10aef27e1ca75f206fea11014da8784752e454
c50cd2b9154c83c3db5e4a11b9e8874f7fb8afa2
refs/heads/main
2023-04-16T19:24:58.758519
2021-04-28T20:21:23
2021-04-28T20:21:23
362,599,929
2
0
MIT
2021-04-28T20:36:11
2021-04-28T20:36:11
null
UTF-8
Python
false
false
3,596
py
import hypothesis.strategies as st from hypothesis import given import numpy as np import torch from torch.testing._internal.common_utils import TestCase import torch.testing._internal.hypothesis_utils as hu hu.assert_deadline_disabled() class PruningOpTest(TestCase): # Generate rowwise mask vector based on ind...
[ "noreply@github.com" ]
arXiv-research.noreply@github.com
7b669d81ad34dbc551814920dce703dda39db5b3
8e56938ce11968bd173092b28ca54f474239dbc5
/src/main.py
95be28e1d997bc2e757222b051901b2cc1f870c2
[]
no_license
Cheater-84/zombot
ed41dcdd6066de53cf2823aa110dfbfc72d1a31b
e4da0f404a686af2de142f80f7efb097427f0bc9
refs/heads/stable
2021-01-16T21:57:30.967369
2013-08-02T00:28:18
2013-08-02T00:28:18
36,483,328
0
1
null
2015-05-29T04:59:55
2015-05-29T04:59:54
Python
UTF-8
Python
false
false
2,481
py
#!/usr/bin/python # coding=utf-8 from game_engine import Game from connection import Connection from settings import Settings from sn import Site import logging import os import errno from user_interface import UserPrompt logger = logging.getLogger('main') BRANCH = 'stable' def mkdir_p(path): try: os.ma...
[ "vanuan@gmail.com" ]
vanuan@gmail.com
41e45aa86872524b06e28213ad2c3eb63d57f05f
b34be85804193005d56424276507d4e6f03cce75
/python/Cess.py
56a99048527c23de040e6896fde3612c8c5cf261
[]
no_license
drwanghan/RANS_Channel
253cbb682365eef58f62a00f0b395fd4991a4978
75ef472b5bc358f300822fbb4c9570ddce742ce8
refs/heads/master
2020-05-04T16:18:42.498746
2019-01-04T09:50:55
2019-01-04T09:50:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
#************************************************************************** # Implementation of the algebraic Cess model # Reference, # Cess, R.D., "A survery of the literature on heat transfer in # turbulent tube flow", Tech. Rep. 8-0529-R24, Westinghouse, 1958. # - Modified for channe...
[ "you@example.com" ]
you@example.com
32f52fb2ecabecc110efe18ccd0a01f018916b09
3cae7f23eb152cbfba789a5f49e61c2201963c32
/tests.py
fa8644917c66b403a1fbaba0f0cd070c358c90dd
[]
no_license
eldridgejm/umetric
57dd2e3706ab78b043617394c8fabe99152a8678
0dc88342c420276587692274d4f5c3345ff7a434
refs/heads/master
2016-09-05T16:19:16.472708
2014-10-13T20:03:51
2014-10-13T20:03:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,832
py
import unittest import umetric import networkx as nx import numpy as np class TestCore(unittest.TestCase): def setUp(self): self.dendrogram = nx.DiGraph() self.dendrogram.add_nodes_from([0,1,2,3,4], distance=0.0) self.dendrogram.add_nodes_from([5,6,7,8]) self.dendrogram.node[5]['...
[ "eldridgejm@gmail.com" ]
eldridgejm@gmail.com
20372d2a244b7694cdab44cac16b7c8e19e017fd
69d02492fba29e1c70fed1953e1fa084efead063
/2_5_Sum_Lists.py
a9cd5a642d28d3cb53272b9dfc2517b1ec81a373
[]
no_license
axd8911/CC189
aa06561b6719d788351a308f97975545a9c2c197
50c509388c9844f63dd8c2a4e31a7b6698d64fba
refs/heads/master
2020-05-02T02:40:12.719273
2019-04-22T03:35:55
2019-04-22T03:35:55
177,709,281
0
0
null
null
null
null
UTF-8
Python
false
false
2,509
py
''' Almost the same as Leetcode2 ''' class Node: def __init__(self,initdata): self.val = initdata self.next = None def getData(self): return self.val def getNext(self): return self.next def setData(self,newdata): self.data = newdata def setNext(self,newnext): self.next = newnext class Link...
[ "noreply@github.com" ]
axd8911.noreply@github.com
130ae16b62f1418ed620300bcec50f2569275938
a347c629adb9113395db13a0d674e4b5e6b9de24
/docs/conf.py
8d26a63bb78421c92dda15db9b9d8576ed4bc140
[ "MIT" ]
permissive
blueshed/liteblue
df543e0af924986742ea43a3a9a550b694e7835e
9c2fd09cc1449631c86cf6cdda745f884dc90dbd
refs/heads/master
2021-06-02T08:10:59.158232
2021-01-05T17:42:56
2021-01-05T17:42:56
254,319,106
0
0
null
null
null
null
UTF-8
Python
false
false
1,946
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
[ "pete@blueshed.co.uk" ]
pete@blueshed.co.uk
2c6fc91029803ceb5906fc0eaebf187204971dac
f39d82f717fdb7b82c3d4e4201ce4a46cfc9d580
/tests/test_middleware.py
2dd0298a55a7038e8dcd34880648994c1620690b
[ "MIT" ]
permissive
Bernardstanislas/django-graphql-jwt
9a887e91e7cc881d4a986a58a3f7007c2838a19b
cd4147a1d9ac7306f61076bdaa2bd92627cfc6b3
refs/heads/master
2020-03-18T03:29:16.275672
2018-05-21T13:45:03
2018-05-21T13:45:03
134,243,197
0
0
MIT
2018-05-21T13:45:04
2018-05-21T08:49:43
Python
UTF-8
Python
false
false
2,263
py
import json from django.http import JsonResponse from graphql_jwt.middleware import JSONWebTokenMiddleware from graphql_jwt.settings import jwt_settings from .compat import mock from .testcases import GraphQLJWTTestCase class MiddlewareTests(GraphQLJWTTestCase): def setUp(self): super(MiddlewareTests,...
[ "domake.io@gmail.com" ]
domake.io@gmail.com
b7e26bceefcc02f101c0bd2496de120ddd63a496
d021ab8dc8f6a5a7be295657e3ff2481e6b58ed7
/freedesktop_icons/theme.py
a0df57b7d12ed6a6ce2d24e5c7eaeb8be720c8c3
[ "MIT" ]
permissive
ashb/freedesktop-icons
aa80e559e74d90dbbe249f4b83f5223b7fb1772d
10737b499bff9a22c853aa20822215c8e059a737
refs/heads/main
2023-06-05T02:20:20.411233
2021-06-20T23:27:00
2021-06-21T08:47:09
319,328,048
0
0
MIT
2020-12-07T13:26:53
2020-12-07T13:26:52
null
UTF-8
Python
false
false
8,784
py
import configparser import sys from collections.abc import Iterator, Mapping, Sequence from functools import cache from pathlib import Path from typing import Optional import attr from attr.converters import pipe from . import icons, theme_search_dirs from .cache import GtkIconCache from .slots import slotted_cached_...
[ "ash_github@firemirror.com" ]
ash_github@firemirror.com
c0b451e52e051da080a4622e38786c087b7669c3
28656d01bb3fda34a6c3ace848c37f07f9cdeded
/venv/bin/pip3.6
e179816a5985e3db4c793378955215238128cfb0
[]
no_license
sreebash/djangoblog_practice
d20e7c13be4f1b33c976aba0dbcf092d144d3879
65151415a6cf773cad72c39bc3f75e3efff4e0e6
refs/heads/master
2020-05-16T04:29:50.016189
2019-04-22T12:22:55
2019-04-22T12:22:55
182,780,057
0
0
null
null
null
null
UTF-8
Python
false
false
412
6
#!/home/sreebash/PycharmProjects/djangoblog/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.6' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])...
[ "sreebashdas.1@gmail.com" ]
sreebashdas.1@gmail.com
4fcea43021aa6515ea74e35039b31fb7c69ac98c
59aa4adcebc5a33cab1694f9cac91d24193d71dd
/xltestview/CheckQualification.py
9712c3ac0e4827071b88ec9135bd7954d5771ee9
[]
no_license
bmoussaud/xlr-demo-ext
60a5d793ae0ac050c8b77442c7070f0e79f9a377
51ff836f3b412ee4cefb12f373b45757c1333560
refs/heads/master
2021-01-21T10:33:55.390124
2017-02-28T15:31:19
2017-02-28T15:31:19
83,450,326
1
0
null
null
null
null
UTF-8
Python
false
false
735
py
# # THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS # FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS. # import sys from xltestview.XLTest...
[ "bmoussaud@xebialabs.com" ]
bmoussaud@xebialabs.com
3be6c0fa5e1e67fac44569ab347c1e77fd012af1
7a3757a341fb1c5a06482e2e5cb066a967a6eff5
/tests/models/test_snapshot.py
a96395518be4ee7f176ccd1d5a5f490ccfe11002
[ "MIT" ]
permissive
ninoseki/uzen
4bff6080b9c0677dcf25abc0f104eca3fb92ed8a
2a0065aa57fe3891c46e1174c1dc9aab673e52a8
refs/heads/master
2023-09-02T01:59:18.893712
2022-08-28T09:49:12
2022-08-28T09:49:12
241,092,872
87
9
MIT
2023-06-01T01:08:05
2020-02-17T11:37:59
Python
UTF-8
Python
false
false
617
py
import pytest from app import models from tests.helper import make_snapshot_wrapper @pytest.mark.asyncio async def test_save_with_api_keys_and_tags(): api_key = models.APIKey() await api_key.save() tag_count = await models.Tag.count() assert tag_count == 0 tag_names = ["foo", "bar"] # crea...
[ "manabu.niseki@gmail.com" ]
manabu.niseki@gmail.com
9361dc3c94595a57c6ab86612751f711d531fc33
35d62f3ccf1c422b13b313c4e519a5ce335e934d
/leetcode/twoSum2.py
d525316f8fe21618f76e68f11c081f8f6c2232f7
[]
no_license
malaybiswal/python
357a074889299effe6a5fa2f1cd9c50ca35652d0
684d24d719b785725e736671faf2681232ecc394
refs/heads/master
2020-05-17T22:25:43.043929
2019-05-08T23:41:19
2019-05-08T23:41:19
183,999,871
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
#https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ def twoSum( numbers, target): low=0 high=len(numbers)-1 while(low<high): res=numbers[low]+numbers[high] if(res==target): return low+1,high+1 elif res>target: high-=1 else: low...
[ "malay.biswal@rackspace.com" ]
malay.biswal@rackspace.com
e1a10c97a99e35bc3ed574306c3f840d3a0b8b34
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_weals.py
6de43c16bf8acdda93da1dd83fa27e50583fe1ea
[ "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
224
py
from xai.brain.wordbase.nouns._weal import _WEAL #calss header class _WEALS(_WEAL, ): def __init__(self,): _WEAL.__init__(self) self.name = "WEALS" self.specie = 'nouns' self.basic = "weal" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
12114ac6d38580bf02531acb25e0a5bad8bc44ab
a66a828ef9c97e53ad7bad6235401a7bb89bdace
/douban/douban/spiders/movie_2.py
d3df733cdafcdceb7ca2832b97a1df395c18d892
[]
no_license
Pysuper/ScrapyProject
92c7110a81fd0a1a72093a9547d4a93b31aa7dba
2028638f43172ff2902aa571ad80a30f4cd9737f
refs/heads/master
2021-07-21T11:02:56.288995
2020-08-12T13:57:18
2020-08-12T13:57:18
202,978,439
0
0
null
null
null
null
UTF-8
Python
false
false
1,292
py
import json import scrapy from douban.items import DoubanItem class MovieSpider(scrapy.Spider): name = 'movie_2' allowed_domains = ['movie.douban.com'] start_urls = ['https://movie.douban.com/j/search_tags?type=movie&tag=%E7%BB%8F%E5%85%B8&source=', ] detail_url = 'https://movie.douban.com/j/search_su...
[ "1821764535@qq.com" ]
1821764535@qq.com
120d7781bb93f591b8b4ca08b63a6d34887ea647
a6a5ae108c06685ce86ba878906bc2c1838454ba
/apps/customer/migrations/0003_auto_20210517_2236.py
77f2329b76b029de0ef787e68946f17867207c59
[]
no_license
williamsko/sutura
bd8e1116492cb3cd5b4df811a3386317236520f2
1d21b655107c44703e2259a7770cff6fc75a77ab
refs/heads/main
2023-08-13T08:35:08.881261
2021-09-30T21:41:47
2021-09-30T21:41:47
355,569,208
1
1
null
null
null
null
UTF-8
Python
false
false
438
py
# Generated by Django 3.1.7 on 2021-05-17 22:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('customer', '0002_auto_20210517_2235'), ] operations = [ migrations.AlterField( model_name='customer', name='identifi...
[ "williamsko89@gmail.com" ]
williamsko89@gmail.com
733ed5bc6a0ea27d730a21a9c2df66cc6f448ab8
988bf6f95f9d74651189cd5e90024f86fbdab7fb
/form/models.py
69681ad02fed1dd498999ba5ce44529775b916e8
[]
no_license
thisLexic/test2
8f5e229c17e1a0672bcddb9e1edcffa5b890f26b
5fc497b18920b5f67f03eb9f887178e0ebccca26
refs/heads/master
2020-12-01T20:53:38.619579
2019-12-30T05:51:24
2019-12-30T05:51:24
230,766,638
0
0
null
null
null
null
UTF-8
Python
false
false
1,550
py
from django.db import models from django.core.validators import MinValueValidator # Create your models here. class Product(models.Model): name = models.CharField(max_length=64, unique=True) price = models.FloatField() cost = models.FloatField() description = models.CharField(max_length=128) def __str__(self): ...
[ "benvillabroza1999@gmail.com" ]
benvillabroza1999@gmail.com
fe16324527b9cba0c95b1ea1ea0b683b9aea6e0b
fb44a02cb437abe9b9bcd2832773ff76c6f58779
/trunk/python/rpc/www_server_my.py
bfc82151fd9c8c40f03001dcd464a855da3deb9f
[]
no_license
BGCX261/zoptimizer-svn-to-git
d519088fd74c08490306185d8c86bed1e504c949
bbb73d4dc1ea9a6f81306267ddb853c57cd15934
refs/heads/master
2020-05-20T05:29:36.168896
2015-08-25T15:20:13
2015-08-25T15:20:13
41,441,562
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
import errno import functools from tornado import ioloop import socket import iostream class HttpHandler(object): def __init__(self, sock): self.stream = iostream.IOStream(sock) self.resp = bytearray("HTTP/1.1 200 OK\r\nKeep-Alive: timeout=5, max=100\r\nConnection: Keep-Alive\r\nContent-Length: 121\r\n\r\nHe...
[ "you@example.com" ]
you@example.com
24494bfb18509c57111cbddcdd69555347a74eed
54d2887e3c910f68366bd0aab3c692d54245e22a
/others/bitFlyer/probD/main.py
8e251335b1486a358cb77c036d1b8b6f6d81820d
[]
no_license
Kevinrobot34/atcoder
7aec367fd2c6b589e9d583dae7b3c7520ce9fa12
482ea508f098f81e4f19522fe518dd22c781aca9
refs/heads/master
2022-07-10T23:44:45.290022
2022-06-29T11:30:26
2022-06-29T11:30:26
158,081,477
1
1
null
null
null
null
UTF-8
Python
false
false
1,088
py
h, w = map(int, input().split()) n, m = map(int, input().split()) a = [] for i in range(n): a.append(str(input())) ans = 0 left = m right = -1 for i in range(min(n, h-n)): for l in range(m): if l == left: break if a[i][l] == '#': left = l break for r in...
[ "kevinrobot34@yahoo.co.jp" ]
kevinrobot34@yahoo.co.jp
4f43a68a83fea509735a9766bce6e53b5b356907
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-vas/huaweicloudsdkvas/v2/model/task_service_config.py
0431f8d9759ae6a72519e82f16fa5f5b926fe2a6
[ "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,233
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class TaskServiceConfig: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
f927fe164b97b73aa6be2ceab0e55a527985ac3e
3b5cb00035a7eeb0602add81059e3b2dd91ff36e
/使用Flask构建微电影网站/app/admin/views.py
ddace7b732481599feb4b36773d39d945e14c837
[ "Apache-2.0" ]
permissive
MarTecs/FlaskFilmSite
83dc075d41db9f61637e77fa2f071ee74d32b77e
0126b1720477e5b1c45206845221e2bcf630b9df
refs/heads/master
2020-11-30T15:01:56.421364
2019-12-20T02:30:26
2019-12-20T02:30:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,289
py
# 3. 调用蓝图 from . import admin # flash是消息的闪现,用于提示密码错误,如果密码正确,那么我们就要保存,用到session会话 from flask import render_template, redirect, url_for, flash, session, request from app.admin.forms import LoginForm from app.models import Admin @admin.route("/") def index(): return render_template("admin/index.html") @admin.route(...
[ "yirufeng@foxmail.com" ]
yirufeng@foxmail.com
704ca19e80a9a3943c8b041404b105993d90e52c
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/batch_delete_cluster_cn_response.py
64e93781201f5a42d424c1f36122527903a25b6a
[ "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
3,260
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class BatchDeleteClusterCnResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name an...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
4c645d1cfcfd3a45ec0dc94851bdebd1b6aac6f3
1f98469f52d0fdcf5dafc974b520724ffa180ba8
/d3rlpy/ope/torch/fqe_impl.py
9e08584aaa3baf13babbdc9a09c625dd57b613fb
[ "MIT" ]
permissive
rainwangphy/d3rlpy
a35cf6b0a8a8fa6926721c109436f2957bba9ed6
f7c7e8e77282500e3d5602dc220b3efdcb901425
refs/heads/master
2023-08-23T05:45:44.069809
2021-11-03T14:52:48
2021-11-03T14:52:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,877
py
import copy from abc import abstractmethod from typing import Optional, Sequence import numpy as np import torch from torch.optim import Optimizer from ...algos.torch.base import TorchImplBase from ...algos.torch.utility import ( ContinuousQFunctionMixin, DiscreteQFunctionMixin, ) from ...gpu import Device fr...
[ "takuma.seno@gmail.com" ]
takuma.seno@gmail.com
03c7f7e8961fcf0dd7b7330b7333b53768163ca8
984f6e50c7dcd11fc18c46ff421b549d84fb0304
/contatos/admin.py
c6b49128199d3ce6ff10a2aea6e663db25e7114c
[]
no_license
joaocarlosdossantos/blog
685913aa842b6a0bc44d83c1a4fde5257756ba45
5f3dafc4600c9012a3c3da3cadfd2b3fe05cc5c6
refs/heads/master
2020-04-19T11:36:17.836084
2019-01-29T11:54:38
2019-01-29T11:54:38
168,113,847
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
from django.contrib import admin from .models import Contato class ContatoModelAdmin(admin.ModelAdmin): list_display = ["nome", "email", "updated", "timestamp"] list_display_links = ["nome"] list_filter = ["updated", "timestamp"] search_fields = ["nome", "content", "email"] class Meta: m...
[ "you@example.com" ]
you@example.com
0f5d0a7fd8ab9e97eac251bc6573c324547b9c85
70450f0c551adf47b450468e424f4f90bebfb58d
/icetray/resources/test/frame_merge_test.py
4670b123538b1ea06c45e893765d63e8ce0450ac
[ "MIT" ]
permissive
hschwane/offline_production
ebd878c5ac45221b0631a78d9e996dea3909bacb
e14a6493782f613b8bbe64217559765d5213dc1e
refs/heads/master
2023-03-23T11:22:43.118222
2021-03-16T13:11:22
2021-03-16T13:11:22
280,381,714
0
0
MIT
2020-07-17T09:20:29
2020-07-17T09:20:29
null
UTF-8
Python
false
false
1,188
py
#!/usr/bin/env python """ Test the I3Frame's merging/purging stuff """ from icecube.icetray import * import sys def makeframe(stream, key = None): if not key: key = stream frame = I3Frame(stream) frame[key] = I3Int(ord(stream)) return frame a = makeframe('a') assert 'a' in a assert 'a2' not...
[ "aolivas@umd.edu" ]
aolivas@umd.edu
6c4a113de3b89faba3427e4568f57dc068f87048
efaaf1486d05ed01a2df05e8765c1410531fca63
/Cluster_SIFT/kernel_test.py
00284e3cf2ec58b447fd73796f7784661f7aad57
[]
no_license
ZhengWenSEC2023/Image-Steganalysis
fbb44185e9657dc06b7349878cbb06e468a6c99d
8e93cd92fcd1586ffd94ba450a3cc575be8a6047
refs/heads/master
2022-12-14T00:19:04.709271
2020-09-18T02:40:02
2020-09-18T02:40:02
279,586,679
0
0
null
null
null
null
UTF-8
Python
false
false
4,286
py
import cv2 import matplotlib.pyplot as plt import numpy as np from Cluster_SIFT.pixelhop2 import Pixelhop2 from skimage.util import view_as_windows single_circle = cv2.imread(r"C:\Users\Lenovo\Desktop\square.png", 0) single_circle = cv2.resize(single_circle, (160, 160)) ret, single_circle = cv2.threshold(singl...
[ "buaawenz@gmail.com" ]
buaawenz@gmail.com
60781f1741b477debe6f5c9a80ff7a4c0e9988ba
d051f3fe9fda31b72fa0ddce67aa1f4293c7c37c
/learn/extend_jointgp_to_new_evs.py
36332cc40434a134bb6c50032189840f89138a32
[ "BSD-3-Clause" ]
permissive
davmre/sigvisa
4e535215b6623310d8f5da64258f6fa9a378f9fd
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
refs/heads/master
2021-03-24T10:24:52.307389
2018-01-05T19:33:23
2018-01-05T19:33:23
2,321,239
0
0
null
null
null
null
UTF-8
Python
false
false
11,463
py
import numpy as np from sigvisa import Sigvisa from sigvisa.source.event import get_event from sigvisa.infer.coarse_to_fine_init import ModelSpec, EventRunSpec, TimeRangeRunSpec, do_coarse_to_fine, initialize_from, do_inference, initialize_sg from sigvisa.graph.sigvisa_graph import SigvisaGraph, MAX_TRAVEL_TIME from s...
[ "dmoore@cs.berkeley.edu" ]
dmoore@cs.berkeley.edu
68578f3f3cd07291bcd4060c43baacd798594ea0
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/python_all/92_1.py
120169084910278b50a05493fb7faa4447404aa6
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
3,218
py
Python | Difference in Record Lists Sometimes, while working with data, we may have a problem in which we require to find the difference records between two lists that we receive. This is a very common problem and records usually occurs as a tuple. Let’s discuss certain ways in which this problem can be solve...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
9cbcaba64d107711e03fbeb368eb763a3b52a200
08ba157f3b5298b8e4ae7b0a4e90a846f7954bd5
/pandas/tests/window/moments/test_moments_expanding.py
3361ecab28669b5e7c0a46358298a2f1bad4a54a
[ "BSD-3-Clause" ]
permissive
mlline00/pandas
aa02a9a8facb4fe35bb5b4283f6c91dd996dbba6
fd7db9819b8c7dba86b2887bee33f670b2715afc
refs/heads/master
2020-12-02T12:29:38.999030
2019-12-30T22:13:39
2019-12-30T22:13:39
231,005,804
0
0
BSD-3-Clause
2019-12-31T01:41:56
2019-12-31T01:41:56
null
UTF-8
Python
false
false
14,809
py
import warnings import numpy as np from numpy.random import randn import pytest from pandas import DataFrame, Index, MultiIndex, Series, isna, notna from pandas.tests.window.common import ConsistencyBase import pandas.util.testing as tm class TestExpandingMomentsConsistency(ConsistencyBase): def setup_method(se...
[ "jeff@reback.net" ]
jeff@reback.net
a2dd9a30b9d555e87c469f1abdd9e3f7d85c95ff
6d34349fe7df77004451609f5c1f97b42f03fabe
/cloudfish/__init__.py
9b8f0151af7b030484e845b1a5c4da0d924c786e
[]
no_license
adoggie/cloudfish
2b6fd726d9b02fdeb1b5c8fe072e29e9776b172b
f2528fdd32d360226ac9848cfb721a697aede6c7
refs/heads/master
2020-06-12T14:02:07.050611
2016-12-26T08:42:09
2016-12-26T08:42:09
75,806,852
0
0
null
null
null
null
UTF-8
Python
false
false
32
py
__author__ = 'root' import base
[ "root@localhost.localdomain" ]
root@localhost.localdomain
e0a5adf103490da355f5ef41e2944ffe8c997070
0f78e8f0e09a7866d05ad16f222caa7c3094fda4
/python/spacetime/utils/utils.py
fdfd81b8637bea3b5e8bc8882913765439e9faee
[]
no_license
pridawn/spacetime
d501190b5113b7d48ed9af00b142d3c348d3bb84
0cd68f214acd0fcb06163826ffb4ea92b45d37f7
refs/heads/master
2020-04-24T00:15:49.967727
2019-02-05T23:24:56
2019-02-05T23:24:56
171,561,246
0
0
null
2019-02-20T03:46:00
2019-02-19T22:38:24
Python
UTF-8
Python
false
false
6,142
py
import logging import os import time from spacetime.utils.enums import Event from copy import deepcopy class _container(object): pass def get_logger(name): if not os.path.exists("Logs"): os.makedirs("Logs") logger = logging.getLogger(name) logger.setLevel(logging.INFO) #fh = logging.File...
[ "ra.rohan@gmail.com" ]
ra.rohan@gmail.com
044d48ba12e6ec5b8e83b92ebeb3d13e153ba0ba
2da8bcfb9a72e507812a8723e38ad6d030c300f1
/max_consecutive_ones_iii_1004.py
e6d303d2164cb5591f7dce15d0a3ab4cf5f4384b
[]
no_license
aditya-doshatti/Leetcode
1a4e0f391a7d6ca2d7f8fdc35e535f4ec10fb634
eed20da07896db471ea6582785335e52d4f04f85
refs/heads/master
2023-04-06T02:18:57.287263
2023-03-17T03:08:42
2023-03-17T03:08:42
218,408,346
0
0
null
null
null
null
UTF-8
Python
false
false
1,541
py
''' 1004. Max Consecutive Ones III Medium Given an array A of 0s and 1s, we may change up to K values from 0 to 1. Return the length of the longest (contiguous) subarray that contains only 1s. Example 1: Input: A = [1,1,1,0,0,0,1,1,1,1,0], K = 2 Output: 6 Explanation: [1,1,1,0,0,1,1,1,1,1,1] Bolded numbers wer...
[ "aditya.doshatti@sjsu.edu" ]
aditya.doshatti@sjsu.edu
ec67195d78070643cc42cb34e1f4bbc97c7c5056
795435350d2e4fe415acd1fb846abb1c0cf94911
/back end/tornado/tutorial/1/4/5/test2.py
63f1c5c057d5306bdce01cc1ee707cb003b306d2
[]
no_license
gaoxinge/network
c3575c7f0d95f7458a4ec74880ca5b8a0bff773e
68d307ec0756abff60914225fd38d69fa4b2a37c
refs/heads/master
2021-06-06T05:49:36.521243
2021-06-02T15:42:39
2021-06-02T15:42:39
84,033,128
0
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web import tornado.httpclient import tornado.gen import urllib import json import datetime import time from tornado.options import define, options define('port', default=8000, help='run on the given port', type=int) class IndexHandl...
[ "gaoxx5@gmail.com" ]
gaoxx5@gmail.com
432f85e5d1e15ffd9be997774c1d4869929845ef
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_Class2568.py
49101e3e75fcfb9a6db7179ac484b6ddeb5c83e1
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,238
py
# qubit number=4 # total number=40 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
338d90fcebc467b17086c960b522af056a8079ad
57874ede14f70f84306ab272b597c8052e824537
/orpheus/ml_scripts/classify.py
b76247f0fe2d3509607429b4ad94756c2f93d1b5
[]
no_license
shunr/orpheus
d5da02418e10ac20485b8184b19783c22f02a3d0
fb46c4eb04d4658d83731491dd49975fc283ec08
refs/heads/master
2020-06-27T13:08:03.980790
2017-07-18T16:05:06
2017-07-18T16:05:06
97,056,718
4
0
null
null
null
null
UTF-8
Python
false
false
1,657
py
import oll import os, sys, json, pickle conf = {} feature_mapping = {} with open('config.json') as config_file: conf = json.load(config_file) with open('feature_mapping.json') as feature_file: feature_mapping = json.load(feature_file) def load(path): with open(path, 'rb') as f: return pickl...
[ "shunyu.rao@gmail.com" ]
shunyu.rao@gmail.com
623d56316f49de9db7024da863acfc45386b31c8
b736e6d7e3baee4c971e8dd60dd82890935cc1bc
/lace/shapes.py
4a02a1e87ebc40ac6a55e1151ac46038b860a640
[ "MIT", "BSD-2-Clause" ]
permissive
lace/lace
e2d86f3c05da2cf2db774dd51c2b9894911aaa5b
3565475637937eaae21492f0ef956f5b4ce8866b
refs/heads/master
2023-02-07T18:15:56.392347
2023-02-03T18:46:37
2023-02-03T18:46:37
77,690,377
3
1
BSD-2-Clause
2023-02-03T18:46:40
2016-12-30T14:19:02
Python
UTF-8
Python
false
false
1,666
py
from polliwog import shapes def _shape_as_mesh(shape_factory_fn, *args, **kwargs): from lace.mesh import Mesh vertices, faces = shape_factory_fn(*args, ret_unique_vertices_and_faces=True, **kwargs) return Mesh(v=vertices, f=faces) def create_rectangular_prism(*args, **kwargs): ''' Return a Mesh ...
[ "noreply@github.com" ]
lace.noreply@github.com
e69945b30e0115bd63a3e9adb017c6ba8eb56d93
c97fc7658c39feb51c0ed42c04783797c8675b8a
/hfpython/day34/01 面向对象复习/07 类内部装饰器的使用.py
3233c3f8639fc491c2f78876352a747d734c9b72
[]
no_license
githubvit/study
8bff13b18bea4954e8ed1b4619a091b134b8ff97
845e19d1225f1aa51c828b15effac30be42fdc1b
refs/heads/master
2023-02-20T15:59:19.635611
2021-12-15T08:30:54
2021-12-15T08:30:54
241,928,274
1
1
null
2023-02-02T06:18:48
2020-02-20T16:08:06
Python
UTF-8
Python
false
false
1,367
py
#1、property: class People: def __init__(self,name,weight,height): self.__name=name self.wt=weight self.ht=height @property def bmi(self): return self.wt / (self.ht ** 2) @property def name(self): return self.__name @name.setter def name(self,obj): ...
[ "sgq523@163.com" ]
sgq523@163.com
5117e3583b686fd3d2db527798a26103d59db7b2
f4b60f5e49baf60976987946c20a8ebca4880602
/lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/l3ext/rtbdtoout.py
109cb5461688d78649819b713248830a5e918a61
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
4,865
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "collinsctk@qytang.com" ]
collinsctk@qytang.com
34b9cb79c8e7a6828287b253fe8b489700cb9ca3
d01d4fe61ff5161cfc00ff85fc0abc616b82f78e
/Python Details/Python Project/Vending Machines/venv/Scripts/pip3.7-script.py
8b69eefbbe87de30a61a5e2868c2e30c297a130f
[]
no_license
Susama91/Project
8f14feadea104b6e258f9a3c4678e67da65c24ba
a580c29bf92403fc84c99514e918d8994126f7b1
refs/heads/master
2020-05-15T01:56:11.035480
2019-04-19T07:13:43
2019-04-19T07:13:43
182,039,791
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
#!"D:\Python Pragrams\Python Details\Python Project\Vending Machines\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script...
[ "susama00@gmail.com" ]
susama00@gmail.com
7216b83db8eb848a670fee4a7a8d150cd68d028f
99280ee4672420b43bdcedb9c6f5c93a5fe182f0
/django_1/mb_project_original/mb_project_original/asgi.py
4c3a06d13c7a67120470c1bf8f326c1f8e69e7ef
[]
no_license
kamral/test_1
f8674a075d51fc94630df7d6a5cf55b11d086db0
a10ce3337463d1cb9b56876d0566798740c0b42f
refs/heads/master
2023-08-06T23:50:45.519935
2020-06-07T09:27:43
2020-06-07T09:27:43
265,688,683
0
0
null
2021-09-22T19:23:15
2020-05-20T21:21:21
Python
UTF-8
Python
false
false
415
py
""" ASGI config for mb_project_original project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('...
[ "kamral010101@gmail.com" ]
kamral010101@gmail.com
e0a977248a1229611d4c4cbba593becb972f9bbc
2c8d3e341e813c1b1b88ae824edeaadb366aec0a
/Parser/SW4/SW4/bin/Debug/smo2-24-path-106.py
b173234989dcae164534d5acc4a89cdf9f2b9557
[]
no_license
kiriphorito/MoveAndTag-Manticore
2e24a958f4941556b2d2714563718069cc5b208f
d07a3d8c0bacf34cf5f433384a6fd45170896b7a
refs/heads/master
2021-01-20T11:40:49.232449
2017-02-26T14:08:48
2017-02-26T14:08:48
82,548,310
0
0
null
null
null
null
UTF-8
Python
false
false
34,024
py
#!/usr/bin/python # -*- coding: utf-8 -*- u""" @brief: Path Planning Sample Code with Randamized Rapidly-Exploring Random Trees (RRT) @author: AtsushiSakai @license: MIT """ import shapely from shapely.geometry import Polygon, LineString, Point, MultiPoint, GeometryCollection import matplotlib.pyplot as plt from as...
[ "zcabwhy@ucl.ac.uk" ]
zcabwhy@ucl.ac.uk
220b146078fcc64abc074ea83c680eb304c8b749
162eed4191aef4431f94a0db1ad4185b6daa6f67
/math/0x04-convolutions_and_pooling/4-convolve_channels.py
72b9845ca548270521403c09056a6589134244cc
[]
no_license
giovannyortegon/holbertonschool-machine_learning
d6897bfb492f9d266302930927416637be3c172d
8cd5e0f837a5c0facbf73647dcc9c6a3b1b1b9e0
refs/heads/master
2022-12-31T15:34:20.489690
2020-10-24T03:37:01
2020-10-24T03:37:01
279,656,017
1
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
#!/usr/bin/env python3 """ Strided Convolution """ import numpy as np def convolve_channels(images, kernel, padding='same', stride=(1, 1)): """ convolve_channels performs a convolution on images images: containing multiple grayscale images kernel: containing the kernel for the convolution paddin...
[ "ortegon.giovanny@hotmail.com" ]
ortegon.giovanny@hotmail.com
cd0a82f7a68c435a960b78e189ad2145e4027a33
df8466745f40b2966c69744a78dce62e46e69503
/AULA9/exemplos/MySQL/mySQL_brute_v1.py
7ba496d1d97353481d8e8f560f4532db4df09e1c
[]
no_license
sandromelobrazil/YELLOW_aula1
42f0e8ffa673a5f95d6ee6330ef1d2b894339a14
c078fbe235979f365f72c6f160462b394a44765c
refs/heads/master
2023-02-05T00:52:43.719881
2021-08-10T16:00:03
2021-08-10T16:00:03
300,909,573
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
#!/usr/bin/python3.7 import MySQLdb fail = '\033[91m[-]\033[0m' ok = '\033[92m[+]\033[0m' app = '\033[92m[*]\033[0m' att = '\033[93m[!]\033[0m' green = '\033[92m' nocolor= '\033[0m' msg_ok=" BINGO - Username: " msg_fail=" FAIL - Username: " msg_pass=" Password: " username="root" wordlist="wordlist.txt" target='1...
[ "sandromelo.brazil@gmail.com" ]
sandromelo.brazil@gmail.com
227eec1e2fb7b3efb94670eacc0c995eb1eb0564
2e876d2757f8fea283305760f0f334860089451f
/catkin_ws/src/pointcloud_to_laserscan/src/laser2jpg.py
2cd281e6958bb558a5a0b85577ccc50d0e397aad
[]
no_license
allenyh/argbot
00e7ec2e21ade37cd5fcba4edcc883fc2d27cd74
2b5cbf5eade7f9a9772e07bada3befd5d1e4ed41
refs/heads/master
2020-04-28T21:31:07.908393
2019-03-23T06:59:28
2019-03-23T06:59:28
175,584,986
0
0
null
2019-03-14T09:00:59
2019-03-14T09:00:58
null
UTF-8
Python
false
false
2,413
py
#!/usr/bin/python import roslib; #roslib.load_manifest(PKG) import rosbag import rospy import cv2 import numpy as np import glob, os import tf import struct import math import time from sensor_msgs.msg import Image, LaserScan from sensor_msgs.msg import CameraInfo from geometry_msgs.msg import PoseArray from visuali...
[ "bicycleboy323@gmail.com" ]
bicycleboy323@gmail.com
dfa666d6acff5faa74b4719cdfc710376740c274
9c5abcd43318ef7553be95a95a859a0f3e41a467
/examples/tutorials/04_polygon.py
824b2dcc090f7cc5bbe8d9fdbd9dafd4cfc9755d
[ "BSD-3-Clause" ]
permissive
xzy103/PyEasyGraphics
d66da503f601868fe39d404a77b3b8d0a43a2e52
16bd6f21dd6f3d76edaab2b533500e9aa789c6b2
refs/heads/master
2020-05-19T07:31:22.005958
2019-02-25T09:54:41
2019-02-25T09:54:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
""" Draw a polygon """ if __name__ == "__main__": from easygraphics import * init_graph(400, 300) set_color(Color.DARK_BLUE) set_fill_color(Color.LIGHT_MAGENTA) draw_polygon(50, 50, 350, 250, 50, 150) pause() close_graph()
[ "royqh1979@gmail.com" ]
royqh1979@gmail.com
c3bbc2d5a1bc1c1a9c43e01871d0adc558a58b90
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_real_time_info_of_meeting_response.py
5df92b647063da4f816153562e228f554d353a09
[ "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
5,040
py
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ShowRealTimeInfoOfMeetingResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attrib...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
743d14526788cac4e6c9d60d4a4ec8ccae229e68
eb6c6c0285abdf3dedd4ac978a193486fbd62b03
/2004/0418/boj 1759 암호 만들기.py
44f41cf264c104c3217623a7706bc8a8c9858f92
[]
no_license
ttppggnnss/CodingNote
4a57631a4f0ef1add915dbbf051d80ad5425dbee
c211f9f0b168de0dc2def74a90bab17c13608425
refs/heads/master
2022-12-17T21:09:48.091735
2020-09-15T15:06:55
2020-09-15T15:06:55
241,315,123
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
import sys sys.stdin=open('../input.txt','r') def combi(arr,start,r): if r<1 or not arr: return [[]] for i in range(start, len(arr)-r+1): if r==1: yield [arr[i]] else: for j in combi(arr,i+1,r-1): yield [arr[i]]+j L,C = map(int,input().split()) strs=[*in...
[ "kimsae123@naver.com" ]
kimsae123@naver.com
875a9ca0b0373c11aa765e7fb740a9a42878d116
c45cd89f27b2b9ac1073e6e2bc03f79a8ec45319
/0x08-python-more_classes/4-rectangle.py
8aa1b8cb90a84113e37da4cebdefcb880be872f7
[]
no_license
martinmsaavedra/holbertonschool-higher_level_programming
1cfef3fb719a40a8c87875ce31ce96b8f65cc745
02dd6637ffc59cfc8140f6359df5069f824d8d02
refs/heads/main
2023-04-29T12:42:22.067159
2021-05-12T20:58:02
2021-05-12T20:58:02
319,318,429
1
1
null
null
null
null
UTF-8
Python
false
false
2,155
py
#!/usr/bin/python3 """Module about Rectangle Class""" class Rectangle: """Rectangle Class""" def __init__(self, width=0, height=0): """Init constructor""" if type(width) != int: raise TypeError("width must be an integer") if type(height) != int: raise TypeError(...
[ "martin@bildung.uy" ]
martin@bildung.uy
2086c185100d75b01a64ee5c8ded318517ac4183
ef54d37f8a3303013ca7469871a320d303957ed7
/robo4.2/fusion/tests/wpst_crm/feature_tests/TBIRD/OVF3111_carbon32_Advanced_features/data_variables.py
c5405ee1ebfd1dd4d89b5209fed3bf9e9f6b3e70
[]
no_license
richa92/Jenkin_Regression_Testing
d18badfcf16bda682dfe7bcbbd66f54a9a27a58d
24a74926170cbdfafa47e972644e2fe5b627d8ff
refs/heads/master
2020-07-12T10:01:59.099137
2019-08-27T12:14:53
2019-08-27T12:14:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
158,932
py
import os import sys def make_range_list(start, end, prefix='net_', suffix=''): rlist = [] for x in xrange(start, end + 1): rlist.append(prefix + str(x) + suffix) return rlist def execute_windows_commands(ip, username, passwd, wcmd): ''' Execute the diskSPD tool Command ''' try: ...
[ "akul@SAC0MKUVCQ.asiapacific.hpqcorp.net" ]
akul@SAC0MKUVCQ.asiapacific.hpqcorp.net
7386a3818836bd98bc83627cf2f88f9248e7d7e6
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_580.py
c9715eecb9e7a98d17d4c01d3a26055042a6d8d1
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
# Using list comprehensions and exceptions? for
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
89d60fd0193cddc71cee70cfbed46deec29245af
00c6ded41b84008489a126a36657a8dc773626a5
/.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnalysisPD_20210712181643.py
1a79ced3840747be1d770bb849506a3a055f1bb7
[]
no_license
12libao/DEA
85f5f4274edf72c7f030a356bae9c499e3afc2ed
1c6f8109bbc18c4451a50eacad9b4dedd29682bd
refs/heads/master
2023-06-17T02:10:40.184423
2021-07-16T19:05:18
2021-07-16T19:05:18
346,111,158
0
0
null
null
null
null
UTF-8
Python
false
false
12,697
py
# author: Bao Li # # Georgia Institute of Technology # import sys import os sys.path.insert(0, os.getcwd()) import numpy as np import matplotlib.pylab as plt import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse import Sizing_Method.Aer...
[ "libao@gatech.edu" ]
libao@gatech.edu
05cb3bd488b49eb28ae6ca224995bd723d648fc2
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_satisfaction_dimensions_request.py
49967e3d2873f6682e614b690c38f3c922972832
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,098
py
# coding: utf-8 import re import six class ListSatisfactionDimensionsRequest: """ 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 value...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
710b563c617cfaffbd499a205c3514b251f8b0eb
61b475c33745dbe11d88ea288cbdee279f89c610
/src/izi/apps/dashboard/ranges/app.py
870c81ebd9f50ef477b960fbf3bed039dcedfafa
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
izi-ecommerce/izi-core
a092ea285d0dbd83d17427de3157a9f1e77d6c51
21176be2d41f0cf54ca954f294209c585f643dba
refs/heads/master
2020-03-30T08:37:39.045514
2018-10-08T02:58:46
2018-10-08T02:58:46
151,029,291
0
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
from django.conf.urls import url from izi.core.application import DashboardApplication from izi.core.loading import get_class class RangeDashboardApplication(DashboardApplication): name = None default_permissions = ['is_staff', ] list_view = get_class('dashboard.ranges.views', 'RangeListView') creat...
[ "diepdt@izi.asia" ]
diepdt@izi.asia
a7d38f309065a2cb8628097bc0f972f994619c5f
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/cctbx_project/mmtbx/nci/hbond.py
b5c1246f657188c2eda5e2ad016ca0aa08fed34e
[ "BSD-3-Clause-LBNL", "BSD-3-Clause" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
22,250
py
from __future__ import absolute_import, division, print_function import iotbx.pdb import mmtbx.model import math, sys, os from libtbx import group_args from scitbx.array_family import flex from libtbx.test_utils import approx_equal from libtbx.utils import null_out import libtbx.load_env from libtbx import easy_pickle ...
[ "jorge7soccer@gmail.com" ]
jorge7soccer@gmail.com
754503c0311e3b862750599843fe1cb43ac0c0eb
84ee2c8fc224d1a4bdfc9f331718fb96aee3c674
/services/learner-inferences/clear_all_learners.py
adc0a87016beb4b3978589229b55fbfbe6143a94
[ "MIT" ]
permissive
soartech/fluent
310f5d07dc8e08977460a596e215bbda91e8c6e0
67604e54fdf22623d20ad4b00304c0cc8a02a71b
refs/heads/master
2021-07-13T05:31:03.914178
2019-02-04T18:14:31
2019-02-04T18:14:31
145,762,170
2
0
null
null
null
null
UTF-8
Python
false
false
1,472
py
import requests import sys import json # IMPORTANT NOTE: Ruben has noted that we also need to delete the "activity_attempt_calculator.pkl" file, and should also restart the service after this is run. lis_endpoint = "insertIPAddr/learner-inferences/learners" # The object to overwrite the learner with. patchObject = {...
[ "austin.brehob@soartech.com" ]
austin.brehob@soartech.com
7b4b3d09b453167fb214639781785f9e6e64e018
f7719066ca2e8abdfc38e69d3747ffabe62d774a
/Music/sms/workspace/f0_male_singing.py
320bf49efabb5564d4e33a6f8ce94f1a3894bd89
[]
no_license
wubinbai/2020
2ca5dfaee85d80621631ed034135429daf7bc025
bd99f5cf495f8a17532c1939aef7782b7f8e629f
refs/heads/master
2021-08-15T18:51:19.036470
2021-07-24T09:14:29
2021-07-24T09:14:29
231,207,351
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import librosa from f0_util import * meows = librosa.util.find_files('/home/wb/5050/processed_50_50/Male_singing') samples_dir = meows #all_files = librosa.util.find_files(samples_dir,recurse=True) all_files = meows #print(all_files) for f in all_files[10+10:20+10]: print(f) visualize_f0(f)
[ "wubinbai@yahoo.com" ]
wubinbai@yahoo.com
fc9e9ee5af6503130d473e9889a65e6bb821c7bc
b68c855198c944a5dcc4b543f7609058f1d8db53
/logdeep/dataset/session.py
e09a455fc3f0edfe505374a61119f80c5dd44147
[]
no_license
forallx94/logbert
c4dab9d04386c5a716f946410ba10794d0cba379
77a5c37676731ade41495daf58ae038db37d6c63
refs/heads/main
2023-08-22T16:24:48.730343
2021-09-27T07:39:05
2021-09-27T07:39:05
407,034,672
0
0
null
2021-09-16T05:37:19
2021-09-16T05:37:19
null
UTF-8
Python
false
false
3,335
py
#see https://pinjiahe.github.io/papers/ISSRE16.pdf import os import pandas as pd def session_window(): pass def sliding_window(raw_data, para): """ split logs into sliding windows/session :param raw_data: dataframe columns=[timestamp, label, eventid, time duration] :param para:{window_size: secon...
[ "ghaixan@163.com" ]
ghaixan@163.com
5a25fabc0a57547a6d8b33bc0857b59a6d2ad0b2
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/dxtbx/format/FormatSMVADSCSN445.py
fb66561c21f2e928b37ef03574dc90bee55fa138
[ "BSD-3-Clause" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
2,283
py
""" An implementation of the SMV image reader for ADSC images. Inherits from FormatSMVADSC, customised for example on ALS beamline 8.2.1 from back in the day which had it's own way of recording beam centre. """ from __future__ import absolute_import, division, print_function from dxtbx.format.FormatSMVADSCSN import F...
[ "jorge7soccer@gmail.com" ]
jorge7soccer@gmail.com
cb56e236d4c80eddccf28216de2517e8d2f7ab35
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/2268.py
d49b680a2ff3575e19784e57cdaf565eec397b08
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,515
py
#! /usr/bin/python import sys import pprint PP = pprint.PrettyPrinter(indent=4).pprint def tail_call_optimized(g): def function(*args, **kwargs): f = sys._getframe() if f.f_back and f.f_back.f_back \ and f.f_back.f_back.f_code == f.f_code: raise Exception(args, kwargs) else: while 1: ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
802eeb392faef9d7833d9a981fbc5d8efdc97bb1
eb8b5cde971573668800146b3632e43ed6e493d2
/python/oneflow/nn/modules/flatten.py
cf4beae9a365746321a8bd6beddd8355a616a15e
[ "Apache-2.0" ]
permissive
big-data-ai/oneflow
16f167f7fb7fca2ce527d6e3383c577a90829e8a
b1c67df42fb9c5ab1335008441b0273272d7128d
refs/heads/master
2023-07-08T21:21:41.136387
2021-08-21T11:31:14
2021-08-21T11:31:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,294
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" ]
big-data-ai.noreply@github.com