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
1d1b78db722c6280f4266071cd6bb65075151339
0a0b75df10cb4643a2a9124750239f85bb0abadf
/training/scripts/models/bart_deep.py
050eda1736d01687ef1a60a5c054e2aaa2d446b3
[ "MIT" ]
permissive
baotg080599/passage-ordering
1d8eaac939c08f21c398425af819f49544af809d
f63b993dfd5b7e6475e7fb8950c23c3f22951979
refs/heads/main
2023-09-05T21:04:05.172285
2021-11-22T11:18:26
2021-11-22T11:18:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,137
py
from dataclasses import dataclass from typing import Dict, List, Optional, Tuple import numpy as np import torch import torch.nn.functional as F from torch import Tensor, nn from torch.nn import CrossEntropyLoss from transformers import PretrainedBartModel, BartModel, BartConfig from transformers.modeling_outputs imp...
[ "remi.calizzano@gmail.com" ]
remi.calizzano@gmail.com
066b7d778529e2823f3f9a4ac9a20dd06bcb06dd
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-cc/huaweicloudsdkcc/v3/model/list_network_instances_response.py
f397c0080037b7fef6d610b9ad0c9ca72b2d1ed3
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
5,358
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListNetworkInstancesResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name an...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
3eb6721812ac57c6b30133edda84905a3376aefd
7713cabbddd22eb4ccfdb757c3820def721e3c07
/runners/summarize_GO_terms_md_fix.py
18fc108a6333446c13fc6c5519d52106c411890a
[]
no_license
hag007/nn_sb
bb652ba3adee503d7ecf272ced565165c5d9bea4
3b491efb648006b03ae04f603eb8c972e141271d
refs/heads/master
2021-06-20T15:31:09.066580
2021-03-03T08:39:22
2021-03-03T08:39:22
168,480,686
3
0
null
null
null
null
UTF-8
Python
false
false
1,433
py
import sys sys.path.insert(0, '../') import utils.add_GO_terms_metadata_fix import pandas as pd import numpy as np import os import constants datasets=["TNFa_2","HC12", "SHERA", "ROR_1", "SHEZH_1", "ERS_1", "IEM"] # , "IEM" , "IES", "ROR_2", "SHEZH_1", "SHEZH_2", "ERS_1", "ERS_2"] # "SOC" algos=["jactivemodules_greedy...
[ "hagai.levi.007@gmail.com" ]
hagai.levi.007@gmail.com
526e44f538e69e097d344dc18b3eeee78a83173b
53ab530408135b31dce247ec76d5c70d143cae69
/commands/deviot_select_boards.py
50017008c4269806715008787cf51e502d71a301
[ "Apache-2.0" ]
permissive
hoat23/Deviot
d3ede1b5884cb421fa17832cc7fe56dcc598ce44
77a9e08059f9226ebf23a216b00c6ebb5b1cd054
refs/heads/master
2021-07-22T20:25:07.840839
2017-10-07T19:53:21
2017-10-07T19:53:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
from sublime_plugin import WindowCommand from ..libraries.quick_menu import QuickMenu class DeviotSelectBoardsCommand(WindowCommand): def run(self): QuickMenu().quick_boards()
[ "guillermoepd@hotmail.com" ]
guillermoepd@hotmail.com
9d1128d2601b79a37527ce71cc07fb05beb0a1bb
9977e4a5cb94760b380bd0de0faab9c04a3d94db
/mtw/tests/test_mtw.py
2c5da73649f68b35a823a4fe09b672881dff4921
[]
no_license
vishalbelsare/mtw
82e76826f1382b9602eadad835a9b6355923505c
e15e918774bb5b1e020c5b87572004a552eb571e
refs/heads/master
2022-11-28T18:57:55.045921
2019-08-07T21:55:16
2019-08-07T21:55:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,818
py
from mtw.examples_utils import generate_dirac_images, gaussian_design import numpy as np from numpy.testing import assert_allclose from mtw import MTW, utils import pytest from itertools import product @pytest.mark.parametrize("positive, alpha, epsilon", product([False, True], [10., 0.], [5.,...
[ "hicham.janati@inria.fr" ]
hicham.janati@inria.fr
5e5412e83e136d9071118c07c8745c96f9e52b4e
1cbcf8660d3ea833b0a9aa3d36fe07839bc5cfc5
/apps/sources/apis/partner.py
9f64a801ea68a1ca0dbb409fc900e36a9156f8e1
[]
no_license
zhanghe06/migration_project
f77776969907740494281ac6d7485f35d4765115
0264b292873b211bfeca0d645cc41abc9efe883f
refs/heads/master
2022-12-12T10:55:43.475939
2019-09-29T09:19:13
2019-09-29T09:19:13
185,584,884
0
1
null
2022-12-08T05:04:58
2019-05-08T10:31:57
Python
UTF-8
Python
false
false
2,876
py
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: partner.py @time: 2019-04-26 00:25 """ from libs.db_orm_id import DbInstance from apps.databases.db_source import source_db from apps.models.db_source.aa_partner import AAPartner db_instance = DbInstance(source_db) def get_part...
[ "zhang_he06@163.com" ]
zhang_he06@163.com
dd91440cc5a2451ef99409d8c36c99b7bcea8afa
583b97d48b06488ee6be4555a989816d06012915
/001-025/euler005.py
aaf8effa3ed818182ca9945a5256aeed77de6fd6
[]
no_license
mn113/projecteuler-solutions
fa362869a5f32399a63cc8aac382dcd45f8579f8
5710dc2e31069530ecf6e6a885eb8e5d7298ce7c
refs/heads/master
2021-01-12T12:58:45.101621
2016-11-21T13:28:19
2016-11-21T13:28:19
69,765,688
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
#2*2*5 19 #2*3*3 17 #2*2*2*2 #3*5 #2*7 13 #2*2*3 11 #2*5 3*3 2*2*2 7 #2*3 5 #2*2 #3 2 n = 2 * 5 * 7 * 8 * 9 * 11 * 13 * 17 * 19 print n
[ "recyclebing+github@gmail.com" ]
recyclebing+github@gmail.com
8b4e6d16c1ada64e12ecb818a7dde3446f307c8d
9b722ca41671eb2cea19bac5126d0920639261bd
/.history/app_20201124122040.py
e0d213e84be4bf15ad9633bac70f373cd68ab848
[]
no_license
thawalk/db_flask_server
7928fd481f99d30bdccc60d97f02db78324cfdbe
cd55f1c9bf84c734457ee02d9f64a6833e295fad
refs/heads/master
2023-01-25T02:40:19.097457
2020-12-06T07:45:50
2020-12-06T07:45:50
314,229,480
0
0
null
null
null
null
UTF-8
Python
false
false
5,685
py
import json import pymongo from flask import Flask, jsonify, url_for, request, redirect,Response,Request import pymongo from bson.json_util import dumps import mysql.connector from werkzeug.serving import run_simple import os from dotenv import load_dotenv import datetime import time app = Flask(__name__) test_collec...
[ "akmal_hakim_teo@hotmail.com" ]
akmal_hakim_teo@hotmail.com
77cc50dfe2ee2ed1ab0d4282fe3e9480e3c36edf
38efe804f2a070737984b5f4306ef9f09cbdf9c2
/Class_TRY.py
9ea7d3d8d49147cf10f8352fd15fcfc4ac48f317
[]
no_license
krm9c/HierarchicalDimensionReduction
0bd59248035159c3d9fb8c9c407a3cecba7635d8
6af1455be32abf2e06667e7c264f52c76329ffee
refs/heads/master
2020-05-27T21:10:03.027472
2018-02-04T22:49:25
2018-02-04T22:49:25
83,605,507
0
0
null
null
null
null
UTF-8
Python
false
false
2,772
py
import operator def bayes_classifier(x_vec, kdes): """ Classifies an input sample into class w_j determined by maximizing the class conditional probability for p(x|w_j). Keyword arguments: x_vec: A dx1 dimensional numpy array representing the sample. kdes: List of the gausssian_kde (ker...
[ "krm9c@mst.edu" ]
krm9c@mst.edu
ddd59fc3fb7e31a5d22e1450fb1d300170e7d6a7
06c54acbc3d93601182170eef1c8f69396644003
/glTools-master/utils/__init__.py
7afbd86083045caae0ef385258712015158640cb
[]
no_license
moChen0607/pubTool
bfb05b7ba763c325b871a60d1a690bd67d6ad888
16337badb6d1b4266f31008ceb17cfd70fec3623
refs/heads/master
2021-05-31T17:59:06.840382
2016-06-06T07:11:42
2016-06-06T07:11:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
import attach import attribute import base import blendShape import colorize #import component import constraint import curve import curveConstraint import deformer import geometry import ik import joint import mathUtils import matrix import mesh import nDynamics import resolution import skinCluster import string impor...
[ "auqeyjf@163.com" ]
auqeyjf@163.com
95f1e1b3ca67f84b3c35eb7a93102c9300ec26d6
78d35bb7876a3460d4398e1cb3554b06e36c720a
/sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_04_01/aio/_monitor_management_client.py
b23f3b73ad1abc333d0c31e4bac5ab3728ba94c0
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
catchsrinivas/azure-sdk-for-python
e35f59b60318a31b3c940a7a3a07b61b28118aa5
596227a7738a5342274486e30489239d539b11d1
refs/heads/main
2023-08-27T09:08:07.986249
2021-11-11T11:13:35
2021-11-11T11:13:35
427,045,896
0
0
MIT
2021-11-11T15:14:31
2021-11-11T15:14:31
null
UTF-8
Python
false
false
4,057
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
catchsrinivas.noreply@github.com
269455119dd4bc1a0334425f96dda18c6dcfed4b
38b6a57fee837e2e502c7d6bc2f708aa1cd772a8
/distribution/views.py
fb49237aa520e0e7b24a8c63b6c9354602d081ed
[]
no_license
ArtusU/ecf_store
54c5479efa5fe4c85ae3084b74ce7fcceaf94c89
c94edea13cf2515426890362df4937a1aebbaea9
refs/heads/master
2023-05-03T13:15:43.034031
2021-05-06T13:22:54
2021-05-06T13:22:54
354,247,685
0
0
null
2021-04-22T14:48:14
2021-04-03T09:14:04
CSS
UTF-8
Python
false
false
3,666
py
from django.db.models import Q from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import get_object_or_404, redirect, render from django.views import generic from cart import models from distribution.models import OrderDistribution from cart.models import Order, Payment from distribution....
[ "artusrock@hotmail.com" ]
artusrock@hotmail.com
a6016c17a3c2a93cdcb03fad7d92f076fac155c0
18ed8b732dda8c4c0bd2b652f9cf3b06e956262d
/setup.py
814d98b17e5a06803ad1fd320517c9c6783531ec
[ "MIT" ]
permissive
skurhse/aturan-calendar-bot
1466fbafffbf56a4afbb65d69dd93a335e050c64
4854aa4af17da16aec8ac4cc11de09bffe2e7238
refs/heads/master
2023-03-10T17:11:01.067909
2021-02-23T21:54:41
2021-02-23T21:54:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,816
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import os import sys from shutil import rmtree from os.path import basename from os.path import splitext from glob import glob from setuptools import find_packages, setup, Command f...
[ "sauerc@gmail.com" ]
sauerc@gmail.com
878afc85eaa089a4251ba342ca42aba2a9bee392
ea7d954416194417121a2772bc6f8e91de2cd43e
/virtual/bin/django-admin.py
5c072dc370c29f19fc7a9d57355215494e5a7abf
[ "MIT" ]
permissive
JamesMusyoka/Neighborhood-IP2
ab9319b377e32d1cf3ec70a46eee60c491b38bcf
6f4f63f5a2374fdf1b386bc332c895e012f34513
refs/heads/master
2020-04-30T21:46:50.277579
2019-03-26T07:03:46
2019-03-26T07:03:46
177,102,053
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
#!/home/moringaschool/Neighborhood-IP2/virtual/bin/python3.6 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "jamesmu475@gmail.com" ]
jamesmu475@gmail.com
ad023965a7185e82612c4adfc51e391b7f1009e5
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2209/61406/285378.py
501a7499b1c07cf3fa50b5fc3ddf92d278d98f0b
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
972
py
L = int(input()) source = input() arr = "" for i in range(0,len(source)): arr = arr+"1" lists = [] listlen = [] for a in range(0,L): word = input() lists.append(word) listlen.append(len(word)) count = 0 loopnum = 0 flag = False while not flag: length = max(listlen) index = listlen.index(length) ...
[ "1069583789@qq.com" ]
1069583789@qq.com
4d72a69120786117811fc686e577de399d82656b
5e9bda2d6082f62d889df1c28973436af905faaa
/demo/TreeCtrl.py
4b7ceb545a762c70b8220d050957654c31336b89
[]
no_license
FXCMAPI/Phoenix
cab74db4e8f141f4d27b4b2e3d5bab06994b2e52
040763282f04a5b98f89c054b254993d1a8ca618
refs/heads/master
2020-03-16T15:42:10.660845
2018-05-09T01:41:51
2018-05-09T01:45:33
132,755,174
1
1
null
2018-05-09T12:41:54
2018-05-09T12:41:53
null
UTF-8
Python
false
false
7,761
py
#!/usr/bin/env python import string import wx import images #--------------------------------------------------------------------------- class MyTreeCtrl(wx.TreeCtrl): def __init__(self, parent, id, pos, size, style, log): wx.TreeCtrl.__init__(self, parent, id, pos, size, style) self.log = log...
[ "robin@alldunn.com" ]
robin@alldunn.com
5058bd224c5adb98b577c7541ebba8517d36228a
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/4/k4l.py
39ca2f2d9378cc58e8ae0c13db6b3eb9c6427145
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
474b2f8538426e83b74762ef7e0925a0b3bb3d23
bcf6a8d1282dd95191501840b34609a932d83933
/seahobo/settings/base.py
d56000c6691235aa086cfe977f9f8958785a8b65
[]
no_license
reinbach/seahobo
db08bcb7710669e6f9ba183c71a979386ec40ff1
f48af6e06f7282a27e6d82816927623cb3671f13
refs/heads/master
2021-01-23T08:10:37.204533
2013-05-08T22:22:28
2013-05-08T22:22:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,824
py
import os SETTINGS_DIR = os.path.dirname(__file__) PROJECT_ROOT = os.path.abspath(os.path.dirname(SETTINGS_DIR)) DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( ('greg', 'greg@reinbach.com'), ) MANAGERS = ADMINS TIME_ZONE = None LANGUAGE_CODE = 'en-us' SITE_ID = 1 USE_I18N = True MEDIA_ROOT = os.path.realpat...
[ "greg@reinbach.com" ]
greg@reinbach.com
7fd39a7a4806f86d3a483d3dda4979991185941f
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_offline_request.py
76e5094518bbb31a851323267854e8a92820c49a
[ "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,935
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class BatchOfflineRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribut...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
9dfeb051329b90fc5c66cb25e7675547037df129
68002ae9f124d808395b51944b616da298068b62
/Data_Visualization/Plot/Matplotlib/FT748/Ch15/Ch15_5_2.py
7481bd228f0756c2b17fb3827bae1b00491fa83c
[]
no_license
supergravity/PythonLearning-
b4dd51205470f27e1ba92ec19b1fa1c967101545
eb53b048650a7272819b45943d3dd40fa91d2297
refs/heads/master
2023-01-04T23:15:59.945385
2020-11-06T13:35:15
2020-11-06T13:35:15
82,797,936
0
0
null
null
null
null
UTF-8
Python
false
false
1,062
py
from bokeh.plotting import figure, output_file, show from bokeh.plotting import ColumnDataSource from bokeh.models import HoverTool import pandas as pd df = pd.read_csv("Kobe_stats.csv") data = pd.DataFrame() data["Season"] = pd.to_datetime(df["Season"]) data["PTS"] = df["PTS"] data["AST"] = df["AST"] data["...
[ "liamlin@Liams-MacBook-Pro.local" ]
liamlin@Liams-MacBook-Pro.local
438e6457e9264a3214f630c25db9dee214b11e99
ef1458fae5fbd6b7a9281ccd4d9bc8289f3dd38b
/examples/constraint1_example01.py
45326b8560ad0759e8d38c85a0a6a730cc4e2cf9
[ "BSD-3-Clause" ]
permissive
vt100/mystic
a42910537c3de90d1c2a5637bad5d866308e8863
7589eee4b9a7cb6056114ee6770579d173d9007b
refs/heads/master
2021-01-17T22:28:57.743493
2015-07-17T15:25:35
2015-07-17T15:25:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,202
py
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 1997-2015 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/mystic/browser/mystic/LICENSE """ Example: - Minimize R...
[ "mmckerns@968178ea-60bd-409e-af13-df8a517b6005" ]
mmckerns@968178ea-60bd-409e-af13-df8a517b6005
f61a078b113ee0d1c2e36e95cb338a9890e78873
00c6ded41b84008489a126a36657a8dc773626a5
/.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210714192248.py
4b327317a1cd0036c4b04fa03da706b4d53dfc2c
[]
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
9,751
py
# author: Bao Li # # Georgia Institute of Technology # import sys import os sys.path.insert(0, os.getcwd()) import numpy as np import matplotlib.pylab as plt import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse import Sizing_Method.Aerodynamics.Ae...
[ "libao@gatech.edu" ]
libao@gatech.edu
33a7638b67755cc06542e66c3b6fd04fbf74fc3a
163bad17c2ba0aeeb05e29d1a7f870e675ee28eb
/hikyuu/flat/SpotList.py
8475b0629bab4fcfac47dba505166eb096cdb890
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
fasiondog/hikyuu
8b7bc4fd99ff915c621586a480c3663ef3fae464
86b0fa5b0e847d9a04905bca93660a7a33fc9fc2
refs/heads/master
2023-09-03T15:04:33.983389
2023-09-03T11:17:46
2023-09-03T11:17:46
5,103,141
1,884
547
MIT
2023-09-06T16:53:51
2012-07-18T23:21:42
C++
UTF-8
Python
false
false
1,643
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: flat import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class SpotList(object): __slots__ = ['_tab'] @classmethod def GetRootAsSpotList(cls, buf, offset): n = flatbuffers.encode.Get(...
[ "fasiondog@163.com" ]
fasiondog@163.com
9b74a72f158fbbc4a9fb981b3cfdabe4c52c5899
5407e718bf2e688d1335fe0cafaa8abd33e628ff
/gameserver/Daemonize.py
09ced687ebf763d96271b5808656c21e328de9d3
[ "MIT" ]
permissive
cash2one/assignment1
0bd6582963f6a6a843c270cb2235c624ae5beccb
56923b4afa8a10e61b339fbea5cfb49279023f81
refs/heads/master
2021-01-12T16:51:09.894575
2015-01-25T18:33:40
2015-01-25T18:33:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
# Copyright (c) 2015 SpinPunch. All rights reserved. # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file. import os import sys def daemonize(): if os.fork() > 0: sys.exit(0) os.setsid() fd = os.open('/dev/null', os.O_RDWR) os.dup2(fd, 0) os...
[ "dmaas@spinpunch.com" ]
dmaas@spinpunch.com
4c0505b29e8b011cc717c2e7f2f023020058346f
9f7c9201b86128d2459e463d3bb1c60b7e434a78
/deep_cloud/layers/query.py
c06a9fa3ad89f4e4a6e148c1ce09d1a2e2b60750
[]
no_license
jackd/deep-cloud
b4a171a290c22a113b8a6dd3a49c875afae84b93
9adb25bfcdfd1f2faf3820378cc27a952aa90f9d
refs/heads/master
2020-07-05T19:32:38.824051
2019-10-25T04:04:43
2019-10-25T04:04:43
202,748,871
0
0
null
null
null
null
UTF-8
Python
false
false
1,642
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from deep_cloud.ops import query as qops from more_keras.ragged.layers import ragged_lambda def _query_pairs(args, **kwargs): if isinstance(args, tf.Tensor): args = args, ...
[ "thedomjack@gmail.com" ]
thedomjack@gmail.com
784a47efa22789630f5e2e48fba8c8ca0a920202
f4c33584169ac671215de4797ee9849ce0583e2e
/kzcapi/urls.py
dedeb5111fa9cc57e022a8fcbd4fe16a77425302
[]
no_license
baliguan163/FlaskDemo
c479c7ae262a059b21ffb4a7ef65e7d8f2547563
28b096b9f99de8827d084325e539981c55abdf2a
refs/heads/master
2020-03-06T22:33:52.744604
2018-03-28T08:24:54
2018-03-28T08:24:54
127,106,417
0
0
null
null
null
null
UTF-8
Python
false
false
1,578
py
from django.conf.urls import url from kzcapi import BatchCode, PlasticBox, BatteryShell from . import views urlpatterns = [ # url(r'^ccddata/$', views.ccddata, name='ccddata'), # # url(r'^datasave/$', views.datasave, name='datasave'), #-------------------------------------------------------------- ...
[ "baliguan163@163.com" ]
baliguan163@163.com
c8e5923b6ceab95b8e0ac6eb08509d7e469242b3
85ef27cfe69bf8f4c65ecf4a382742984d91ae12
/Python/Strings/split_method.py
dfdd56fefbaadfc5324394a195e28ad9ef1455d5
[]
no_license
SenthilKumar009/100DaysOfCode-DataScience
7fc0d404e486b2aa1da3a242def0a307fec50f47
dd2d44363960c9078b73956b6587961de0185f16
refs/heads/master
2023-07-17T04:38:21.404964
2021-08-27T12:56:55
2021-08-27T12:56:55
191,664,483
1
0
null
null
null
null
UTF-8
Python
false
false
725
py
def mysplit(strng): #newlst = [strng.split(' ')] newlst = [] start = 0 if strng.isspace(): return newlst for i in range(len(strng)): if strng[i] == ' ': space = i word = strng[start:space] newlst.append(word) start = space + 1 ...
[ "senthilkumark.nitt@gmail.com" ]
senthilkumark.nitt@gmail.com
0a13e95361e35e07d185a75ce6a388ab4010df83
7125dc225b692bfe961b5cb431397341abb3f644
/biosteam/units/_molecular_sieve.py
3143c3f9b329e8572e67008bd7470330d335445a
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "NCSA" ]
permissive
yonghe1979/biosteam
9048e67055ea18201f36d0aef16171a2ba5b8661
874efdc4ff978a3943d7348ffbce5a8cb2612a88
refs/heads/master
2023-02-27T22:58:22.370513
2021-01-25T00:46:03
2021-01-25T00:46:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,847
py
# -*- coding: utf-8 -*- # BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules # Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com> # # This module is under the UIUC open-source license. See # github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt # for license details. """...
[ "yoelcortes@gmail.com" ]
yoelcortes@gmail.com
a167cebf1b04559f38f41fd33baf774706e59343
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/TSZLMM_bak/YW_GPMM_SHXJ_072.py
8eec5de875d918556a8eefba769f9d04c84c524d
[]
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
3,293
py
#!/usr/bin/python # -*- encoding: utf-8 -*- 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 ServiceConfig import * from mainService import * from QueryStkPriceQty import * from log import * sys.path.append("/h...
[ "418033945@qq.com" ]
418033945@qq.com
933e3e43a3667fa5ad8c129dcc364f00955fe9ed
4273f162abb12ef1939271c2aabee9547ac6afee
/studio_usd_pipe/gui/asset_push.py
8cc880afc32369c14be45dd8cb8abfcc992d7520
[]
no_license
xiyuhao/subins_tutorials
2717c47aac0adde099432e5dfd231606bf45a266
acbe4fe16483397e9b0f8e240ca23bdca652b92d
refs/heads/master
2023-07-28T13:42:41.445399
2021-09-12T11:02:37
2021-09-12T11:02:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,159
py
#!/usr/bin/python import sys from PySide2 import QtWidgets from studio_usd_pipe.resource.ui import asset_push reload(asset_push) def show_window(standalone=True): if not standalone: from studio_usd_pipe.core import smaya reload(smaya) from studio_usd_pipe.api import studioMaya...
[ "subing85@gmail.com" ]
subing85@gmail.com
ba689e22dcb1d66564f51d1f4b4b81b2788988a0
3e8a962fb414880b0e06ccbd55edf52861c98600
/c7n/resources/health.py
753c31f7781f79c8902a7118a33481e7a3c77312
[ "Apache-2.0" ]
permissive
cliffpracht/cloud-custodian
6e62669445cf63e008e011e658ae74f2fe87a72f
3965c550d0197d8ffef99e241c1644dda6e79015
refs/heads/master
2020-03-14T17:01:30.887778
2018-05-12T13:12:20
2018-05-12T13:12:20
131,710,551
0
0
Apache-2.0
2018-05-09T17:15:36
2018-05-01T12:27:38
Python
UTF-8
Python
false
false
5,023
py
# Copyright 2017 Capital One Services, 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 agreed to in...
[ "kapilt@gmail.com" ]
kapilt@gmail.com
990fe733d33c7dbe633b4899e10131304dca3370
3eee551ab3d4cfdfe82eff48ec5984ed19e794a4
/source/DoublyLinkedListTest.py
39274051485fab810cf4c65ebd29402451b7bda2
[]
no_license
matthewharrilal/CS-3-Core-Data-Structures
56d308ab76185f66d8afea5bfbd4d59358f47dd7
cd3245c0c87e0e7a7f9ab2b3dc5df84a4d4bd391
refs/heads/master
2021-05-13T17:47:31.681259
2018-02-14T22:18:38
2018-02-14T22:18:38
116,835,776
0
0
null
2018-01-09T15:44:01
2018-01-09T15:44:01
null
UTF-8
Python
false
false
1,906
py
from doubly_linked_list import Doubly, Binary_Node import unittest class DoublyLinkedListTest(unittest.TestCase): def test_delete(self): ll = Doubly(['A', 'B', 'C']) ll.delete('A') assert ll.length_of_linked_list() == 2 assert ll.head.data == "B" assert ll.is_empty() == Fals...
[ "matthewharrilal@gmail.com" ]
matthewharrilal@gmail.com
6592f32e951954065cc21c17eae30a4ea5a7557d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03371/s495494567.py
e8d19753d647fb4043ac7e8316b62b0b9c6d6a83
[]
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
447
py
a,b,c,x,y = map(int,input().split()) smallestSum = 0 tempSum = 0 smallestSum = a * x + b * y if x < y: tempSum = c * x * 2 + b * (y - x) if tempSum < smallestSum: smallestSum = tempSum tempSum = c * y * 2 if tempSum < smallestSum: smallestSum = tempSum else: tempSum = c * y * 2 + a * (x - y) if tempSum < s...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a0471b72d7ec92b4d4353b4846c89e3fbe8b0905
218c0813fae1e347b9db748e3b51dce38105ef1c
/appprofile/apps.py
ef4710f730ff2b7b21585e567878c51407535f20
[]
no_license
ECellNitrr/ECellWeb2k18
f39ab71924555cf2ff412cae9f8477f8fa66da60
d249a8f4b60f758506fc77ee14363a52a4b4b669
refs/heads/master
2021-06-11T07:39:53.146879
2019-07-19T07:59:50
2019-07-19T07:59:50
133,259,196
2
6
null
2018-08-19T11:38:57
2018-05-13T17:25:59
Python
UTF-8
Python
false
false
130
py
from django.apps import AppConfig class AppprofileConfig(AppConfig): name = 'appprofile' verbose_name = ("App Profile")
[ "pisdak79@gmail.com" ]
pisdak79@gmail.com
4313b08c8fdae9f3d8fd12621b162a3d19778529
16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3
/docs/jnpr_healthbot_swagger/test/test_tlive_kafka_ocs_schema.py
f381222d9e122ce5c690812452de5999a9b05899
[ "Apache-2.0" ]
permissive
Juniper/healthbot-py-client
e4e376b074920d745f68f19e9309ede0a4173064
0390dc5d194df19c5845b73cb1d6a54441a263bc
refs/heads/master
2023-08-22T03:48:10.506847
2022-02-16T12:21:04
2022-02-16T12:21:04
210,760,509
10
5
Apache-2.0
2022-05-25T05:48:55
2019-09-25T05:12:35
Python
UTF-8
Python
false
false
956
py
# coding: utf-8 """ Healthbot APIs API interface for Healthbot application # noqa: E501 OpenAPI spec version: 1.0.0 Contact: healthbot-hackers@juniper.net Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagge...
[ "nitinkr@juniper.net" ]
nitinkr@juniper.net
d283c8d1c9118a7bbb93bc240a32809cc7594451
0bd7669af05d3a99488ea22acd9149df2931c466
/tests/test_shortcuts.py
965742e3b5b2b33c4c6c7a4019a930c15e10daf2
[ "MIT" ]
permissive
xflr6/csv23
210170c8c6dd783644282893b659ff127f394d4d
e7d6bdbcb10d1d79be7bd83f61a1dc999c58506e
refs/heads/master
2023-09-05T09:49:18.530184
2023-07-22T08:59:59
2023-07-22T08:59:59
117,450,268
6
4
MIT
2020-05-28T18:19:27
2018-01-14T17:15:07
Python
UTF-8
Python
false
false
10,814
py
import contextlib import functools import hashlib import io import os import sys import zipfile import pytest if pytest.csv23.PY2: import argparse pathlib = argparse.Namespace(Path=lambda x: x) else: import pathlib from csv23.shortcuts import read_csv, write_csv ROWS = [[u'sp\xe4m', 'eggs']] STRING = ...
[ "sebastian.bank@uni-leipzig.de" ]
sebastian.bank@uni-leipzig.de
9e26ede40185851713380a001f430e25af9220cc
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/request/AntMerchantExpandShopQueryRequest.py
868f64fb5d151c421b1b0d219fd276e34de9a84b
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
3,955
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AntMerchantExpandShopQueryModel import AntMerchantExpandShopQueryModel class AntMerchantExpandShopQueryRequest(object): def __i...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
3bc698e8e6c95b0b77c2e1e5f95b2fd8c1727071
f89b293d210f119f7d2c09c31e251a341157ab1c
/Courses/the-python-mega-course/1- Introduction/1- Basics/15. Type Attributes, 16. How to Find Out What Code You Need/basis (builtin methods).py
5c31648b0bfa1f9b4678d6baaa3e32cf13005381
[]
no_license
NicolasRementeria/university-institute-and-courses
b59a70e3a7f64ebabc69887596a4e72af5979284
04cb5e1fc5a15c34e0366e4580d0197c9a3751a3
refs/heads/master
2023-07-12T01:02:16.600342
2021-08-19T13:53:36
2021-08-19T13:53:36
393,551,998
0
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
# To check all built in methods that python 3. offers in a nutshell dir(__builtins__) #['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError...
[ "nicolas.rementeria@gmail.com" ]
nicolas.rementeria@gmail.com
93d48be004dd4b9552f14cd4f80519278487aa15
e767702a56a8aaa3df8d301ca7c453e53a1a0cea
/orch/city_map.py
9dae95dcfac28cecb433b73762b1fb5147be87e9
[ "Apache-2.0" ]
permissive
Shifuddin/edge_orchestrator
510a79689a99a55f26cc5f4d6bfea319ce2985e0
aa8ae7334f8d0e806eb27c24c902a9f1c828d2e3
refs/heads/master
2020-03-22T07:23:11.939607
2018-07-14T16:48:21
2018-07-14T16:48:21
139,696,965
1
0
null
null
null
null
UTF-8
Python
false
false
3,499
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Jul 8 15:38:54 2018 @author: shifu """ graph_adjacency_list_80805 = {'Alte Heide 1': set([ 'Alte Heide 2', 'Frottmaninger Str 1']), 'Alte Heide 2': set(['Alte Heide 1', 'Alte Heide 3', 'Frottmaninger Str 2']), 'Alte Heide 3': set(['Alt...
[ "shifuddin.masud@gmail.com" ]
shifuddin.masud@gmail.com
696d8bfabecf95a90f801ea40ee31fbf6b6eb182
89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04
/third_party/WebKit/Source/core/inspector/inspector.gyp
16e0332c9ac578eef5c89d56312e4edbc4652997
[ "BSD-3-Clause", "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0" ]
permissive
bino7/chromium
8d26f84a1b6e38a73d1b97fea6057c634eff68cb
4666a6bb6fdcb1114afecf77bdaa239d9787b752
refs/heads/master
2022-12-22T14:31:53.913081
2016-09-06T10:05:11
2016-09-06T10:05:11
67,410,510
1
3
BSD-3-Clause
2022-12-17T03:08:52
2016-09-05T10:11:59
null
UTF-8
Python
false
false
8,270
gyp
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'includes': [ '../../platform/inspector_protocol/inspector_protocol.gypi', ], 'variables': { 'blink_core_output_dir': '<(SHARED_INTERMEDIATE_...
[ "bino.zh@gmail.com" ]
bino.zh@gmail.com
abeb699cfc90eb856b470248567094dc35f55206
1c962341f3b580f2be0529a2d5804d49804470f6
/judge_1113.py
ebf569edaabec4031e70bb5c042852d81d27b21f
[]
no_license
andersonmarquees/-uri_python
7bc14b50198bd238f9594b37a86553ecfb277f76
379518cd17433725d6a859526de356162b26aa40
refs/heads/master
2020-05-05T09:08:51.483638
2019-04-14T16:42:24
2019-04-14T16:42:24
179,892,376
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
while True: entrada = input().split() x = int(entrada[0]) y = int(entrada[1]) if x == y: break if x > y: print("Decrescente") else: print("Crescente")
[ "anderson_fisico@yahoo.com.br" ]
anderson_fisico@yahoo.com.br
c5afb3250ba8887349ab62a349b8d21a00af7404
bfc25f1ad7bfe061b57cfab82aba9d0af1453491
/data/external/repositories_2to3/137656/blundercheck-master/prepare_run.py
8c8f809da6f4d71fdb7f502d2cd7c09d825f9045
[ "MIT" ]
permissive
Keesiu/meta-kaggle
77d134620ebce530d183467202cf45639d9c6ff2
87de739aba2399fd31072ee81b391f9b7a63f540
refs/heads/master
2020-03-28T00:23:10.584151
2018-12-20T19:09:50
2018-12-20T19:09:50
147,406,338
0
1
null
null
null
null
UTF-8
Python
false
false
1,884
py
#!env python import chess.pgn, urllib.request, urllib.parse, urllib.error, boto, time, json import sys def write_batch(pgn_string, inputs_bucket, batch_name, batch_num): games_key = '%s/%d.pgn' % (batch_name, batch_num) results_key = '%s/%d.txt' % (batch_name, batch_num) key = inputs_bucket.new_ke...
[ "keesiu.wong@gmail.com" ]
keesiu.wong@gmail.com
fbceec47274b72488692b65ba1c1ed4a634dee26
c5104aebf83409c63ba7352a87f3deaa204ee164
/saliences_23807/wsgi.py
736641e07a43fd67f012ce418d9257e65bbb1318
[]
no_license
crowdbotics-apps/saliences-23807
0aec93f525e7704284de2591550beb0822646bdf
151bd14ec36ae00df5a910cb7d365def994e467e
refs/heads/master
2023-02-11T06:09:38.220703
2021-01-13T09:48:51
2021-01-13T09:48:51
329,260,628
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
""" WSGI config for saliences_23807 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
cc20830a93ffa896e82481abfb537c58435f03d8
9c911b15cc174a314572a8d74f4bd00fceb6c987
/detect.py
9ab9122c6ee2c42ba3c690f60c46dab14b343001
[]
no_license
abhinavjha98/Python_Image_OpenCV
f5b007953a05f695c38ca68a5762ef2362cfc159
86fff5a1c565a3e4dd0236cb6a5bc522b2db5726
refs/heads/master
2023-02-16T17:01:02.012137
2021-01-13T17:21:06
2021-01-13T17:21:06
326,019,512
1
0
null
null
null
null
UTF-8
Python
false
false
1,496
py
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('12.jpg',0) hist = cv2.calcHist([img],[0],None,[256],[0,256]) # Area occupied by black region black_area = np.true_divide(hist[0],np.prod(img.shape))[0]*100 # extract no black parts thresh = cv2.threshold(img,60,255,cv2.THRESH_BINARY...
[ "abhinavjha98ald@gmail.com" ]
abhinavjha98ald@gmail.com
191550ac4d61086e366c05fff9b259c9e42ce066
ae381913c23385f004b82161624097645ba8c4c8
/results_analysis/plot_two_vs_three_stage_decomposer_svr.py
7994d17c3aa20b77032b817f7332eb2424bc3bf4
[ "MIT" ]
permissive
zjy8006/MonthlyRunoffForecastByAutoReg
aa37910fdc66276d0df9d30af6885209d4a4ebfc
661fcb5dcdfbbb2ec6861e1668a035b50e69f7c2
refs/heads/master
2020-12-12T05:25:48.768993
2020-08-20T07:21:12
2020-08-20T07:21:12
259,588,564
7
3
null
null
null
null
UTF-8
Python
false
false
23,251
py
import matplotlib.pyplot as plt plt.rcParams['font.size']=10 import pandas as pd import numpy as np import os root_path = os.path.dirname(os.path.abspath('__file__')) # root_path = os.path.abspath(os.path.join(root_path,os.path.pardir)) graphs_path = root_path+'/graphs/' import sys sys.path.append(root_path) from resul...
[ "zuojianyi@outlook.com" ]
zuojianyi@outlook.com
eb48189b75e08d53020aed4db3570decb69023a0
37027d31595171b7fbdaeec33dab261719553001
/android/pdk/apps/CameraITS/tests/test_param_tonemap_mode.py
40002920f8995c25c92b740ada1c7cd66e01d75c
[ "Apache-2.0" ]
permissive
hqctfl/BPI-A20-Android-4.4
00aa341659dc0b3a07759e7808b0d5436b4810a1
8fe0d48d9ddc84b9821dc767f064edea403e1145
refs/heads/master
2022-06-02T15:10:33.870424
2018-06-25T03:06:04
2018-06-25T03:06:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,213
py
# Copyright 2013 The Android Open Source Project # # 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 a...
[ "mingxin.android@gmail.com" ]
mingxin.android@gmail.com
b9c79a06a98863cc6a75f6cd65f31d548a12444d
60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24
/IronPythonStubs/release/stubs.min/Autodesk/Revit/DB/__init___parts/ListType.py
ef3884d0b1a23a03c7516d3975f4f67378af8396
[ "MIT" ]
permissive
shnlmn/Rhino-Grasshopper-Scripts
a9411098c5d1bbc55feb782def565d535b27b709
0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823
refs/heads/master
2020-04-10T18:59:43.518140
2020-04-08T02:49:07
2020-04-08T02:49:07
161,219,695
11
2
null
null
null
null
UTF-8
Python
false
false
1,135
py
class ListType(Enum,IComparable,IFormattable,IConvertible): """ An enumerated type indicating the style of list item for paragraphs that are part of ordered or unordered lists in FormattedText. enum ListType,values: ArabicNumbers (3),Bullet (2),LowerCaseLetters (4),Mixed (0),None (1),UpperCaseLetters (...
[ "magnetscoil@gmail.com" ]
magnetscoil@gmail.com
d706397557ea4811177f9e33e7a628ca007d47ac
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/nemo/collections/nlp/models/dialogue/dialogue_gpt_generation_model.py
602c15a50c761898e1111516e76462104f190e80
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
18,822
py
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # Copyright 2019 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
[ "noreply@github.com" ]
NVIDIA.noreply@github.com
c5150b5cea16411ed84160982627aea4529a5521
55f60b7ec448eb48b75118b01b3878c8345242bb
/tests/env/packages/env_test_sphinxcontrib-mermaid.py
98a74c13ae8b9657e5eeea44e255488e36cfc448
[ "BSD-3-Clause", "CC-BY-4.0" ]
permissive
dd-rrc-ps/foxbms-2
cd8d272afa24187c85c6fa747226bebed4cefc5e
555704a9c4af3dd1c2213e6f0be9860f34e2b1b3
refs/heads/master
2023-08-18T13:49:42.503755
2021-10-21T12:15:09
2021-10-21T12:15:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,753
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # # Redistribution and use in source and binary forms, with or without # modification, are permitted provid...
[ "info@foxbms.org" ]
info@foxbms.org
80d13ce621d16d707a64d68649198da71f19ec9f
f4c041e7e3b4a9f6649093a774e7b9038645b77d
/dataviso_sequencer/lib/data.py
a7ad36c2b98c79f8d235de49f813887a398ec8b2
[]
no_license
radeksvarz/datapumps_isolated
dc90e061492a0551dc2ce878096a4e5100407c3e
913c52716b42735f53cba42cf9e3a3192163e5d7
refs/heads/master
2016-09-05T18:54:37.574946
2015-10-22T19:41:24
2015-10-22T19:41:24
35,110,417
1
0
null
2015-06-09T10:58:34
2015-05-05T16:16:13
Python
UTF-8
Python
false
false
4,833
py
# -*- encoding: utf-8 -*- # ! python2 """ All data base classes. """ from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import import abc from ..types.types import LogSeverity class File(object): """ File created during: - step execution;...
[ "vaclav.dohnal@gmail.com" ]
vaclav.dohnal@gmail.com
f3902c6a3900862b67c3db50210d1ef6703bad70
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/eventgrid/azure-mgmt-eventgrid/generated_samples/event_subscriptions_get_for_custom_topic_storage_queue_destination.py
5465ecff972f6f309a8b1a1a3cd86a244239dec1
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,768
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
3bbaa3c5b35862c4147ffeabe9abf7c1d1a699c5
c0f72a4c87794df5c4c239ddfc0392f7b9295d3f
/top/api/rest/WlbNotifyMessageConfirmRequest.py
aa35f7443239147fab289f7feb3a3bf6edfb6eb6
[ "MIT" ]
permissive
chenluzhong150394/taobao-top-python3_version
c37ec2093726212b49a84598becd183b9104bd99
61b262c46e48504754a9427986595bce0ae0e373
refs/heads/master
2020-11-27T16:28:46.526318
2020-06-29T14:32:16
2020-06-29T14:32:16
229,528,970
2
2
null
null
null
null
UTF-8
Python
false
false
319
py
''' Created by auto_sdk on 2013-06-03 16:32:57 ''' from top.api.base import RestApi class WlbNotifyMessageConfirmRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.message_id = None def getapiname(self): return 'taobao.wlb.notify.message.confirm'
[ "18438128833@163.com" ]
18438128833@163.com
def11e4971334d3fbda3903782c2ae7ebca36a84
46f44f80d63c13fcb61dacf7e08d072fb85b58dc
/MostCommonQuestions/33.minStack.py
5cc0ed5a2effff85d8979457249bdd12c0218d89
[]
no_license
bzamith/MySDEInterviewStudies
ef6d7add97596bded460023a74ba8b77dcebf350
9eea12cc8da3f51532140ed9423ce2a8be9fbdfa
refs/heads/master
2023-02-25T11:41:28.877263
2021-02-01T10:51:48
2021-02-01T10:51:48
265,734,795
12
3
null
2020-10-05T22:21:57
2020-05-21T02:25:15
Python
UTF-8
Python
false
false
1,060
py
# Source: https://leetcode.com/problems/min-stack/submissions/ # Problem: "Min Stack" # Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. # push(x) -- Push element x onto stack. # pop() -- Removes the element on top of the stack. # top() -- Get the top element....
[ "noreply@github.com" ]
bzamith.noreply@github.com
146ce10470d977abd8092d9ebcaf4263c08b8613
7deda455ff08b2a539da64c3a02d4d8079b5e9e3
/niftynet/utilities/user_parameters_regex.py
337dbdcc1bd4d0f44f9ecad3d848a09b6695d8d4
[ "Apache-2.0" ]
permissive
12SigmaTechnologies/NiftyNet-1
f66a4b068a482a6ddeaa6b44d9346ca53a315425
84dd0f85c9a1ab8a72f4c55fcf073379acf5ae1b
refs/heads/12Sigma_niftynet4
2020-04-04T08:32:47.162234
2019-03-05T20:47:40
2019-03-05T20:47:40
155,785,358
2
1
Apache-2.0
2019-01-29T18:15:50
2018-11-01T22:51:24
Python
UTF-8
Python
false
false
2,230
py
# -*- coding: utf-8 -*- """ regular expressions to match tuples from user inputs kindly provided by Luis Carlos Garcia Peraza Herrera <luis.herrera.14@ucl.ac.uk> """ from __future__ import unicode_literals import re INT = r'(?:[-+]?\d+)' FLOAT = r'(?:[-+]?\d*\.\d+|' + INT + r')' LITERAL = r'(?:[-_a-zA-Z0-9 \\:\.]+)' ...
[ "wenqi.li@ucl.ac.uk" ]
wenqi.li@ucl.ac.uk
08a913f272e6b46c73b0e346606505625344746d
dc86c45b40cde90fa6fc0604f4dca8b5ae56d6cb
/foodshop/accounts/views.py
c234839ef5cfb3d9dfbb4227e49255fbbf4dd188
[]
no_license
ayoub-smayen/fooddjangoshoppy
6d1973e3ef413c7d8b998dec226425d46d28c025
9e88d3893ba849e7aa7a8bcd96ad29ac650c93a2
refs/heads/master
2023-06-17T16:35:21.077353
2021-07-21T17:14:21
2021-07-21T17:14:21
388,190,340
0
0
null
null
null
null
UTF-8
Python
false
false
1,455
py
from django.shortcuts import render, redirect from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import login, logout from .forms import NewUSerForm from customers.models import Profile def signup_view(request): if request.method == 'POST': form = NewUSerForm(request.POST) ...
[ "ayoubjobs.2019@gmail.com" ]
ayoubjobs.2019@gmail.com
b92987331b695c9db283edc015bc5ff119559ccb
33e006f5ae711d44d796a0e3ca384caefe1ec299
/Wprowadzenie do algorytmow - ksiazka/rozdzial 15/bottom-up-cut-rod.py
f4d34e9d5efb45b17a796c0b17f1020a0e78fc7a
[]
no_license
Cozoob/Algorithms_and_data_structures
959b188f8cef3e6b7b1fd2a6c45a5e169d8f41fe
f786a397964f71e2938d9fd6268d3428e3ed7992
refs/heads/main
2023-08-05T02:23:43.565651
2021-09-17T10:52:14
2021-09-17T10:52:14
407,532,105
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
# cosik nie dziala xd def bottom_up_cut_rod(p, n): r = [0 for _ in range(n + 1)] r[0] = 0 for j in range(1, n + 1): q = -1 if j == 1: q = max(q, p[j] + r[0]) for i in range(1, j + 1): if i == len(p): break q = max(q...
[ "kozubmarcin10@gmail.com" ]
kozubmarcin10@gmail.com
2fe4fd0cef0c7e6650cc56bcc1258468b84d33ec
7a9f6e01c0450173a0a45bd70816a4be38021eda
/utiles/serializers.py
ccc81c3bbbc43769cef74fc3f8b078993347e563
[]
no_license
ryujiin/lovizdigital
6137726349e6bd1de866054ce37de90f783a3b38
9f14c83b976e1e47a2558b508396139145b67bf2
refs/heads/master
2021-01-10T03:54:41.460708
2016-10-14T02:10:32
2016-10-14T02:10:32
45,559,176
1
0
null
null
null
null
UTF-8
Python
false
false
228
py
from rest_framework import serializers from models import * class ColorSerializer(serializers.ModelSerializer): class Meta: model = Color class TallaSerializer(serializers.ModelSerializer): class Meta: model = Talla
[ "ryujiin22@gmail.com" ]
ryujiin22@gmail.com
01a1815afb1f71084672a9addc621806157576f0
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5708921029263360_0/Python/CptLemonZ/test.py
34b429e299647cd829ddbdbe8a3723ac6c2fe981
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
733
py
infile = open('C-small-attempt5.in', 'r') outfile = open('test.out', 'w') T = int(infile.readline()) for t in range(1, T+1): J, P, S, K = map(int, infile.readline().split(' ')) jp_table = [[0]*P for j in range(J)] ps_table = [[0]*S for p in range(P)] sj_table = [[0]*J for s in range(S)] s_lst = [] ...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
b29cc4a9228dfa37b071b99dd3a515d53f2db0a8
9930f08717594022e0f7fde2a96baaa7fcfce784
/assginment8_to count occurrences of a substring in a string.py
7b5bdd9621320fdd3952c5f15de1537d47df629b
[]
no_license
dinesh5555/python_assignments
72bd2d1cc35a92a01826536eeb4107953d8d73c7
33fbcbe1de8f92bd6ffe07fa66640ce1ab84a756
refs/heads/master
2022-11-11T18:42:41.621053
2020-07-03T09:12:49
2020-07-03T09:12:49
276,854,185
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
#!/usr/bin/env python # coding: utf-8 # In[5]: string = 'hello world' print() print(string.count("world")) print()
[ "noreply@github.com" ]
dinesh5555.noreply@github.com
7788e4b642c8ef26cce9cf5cbb349bba877dd726
4bab98acf65c4625a8b3c757327a8a386f90dd32
/ros2-windows/Lib/site-packages/rqt_py_common/rqt_ros_graph.py
1f48f1a3cfd8b1c8b3c4c675182751c36cbd2772
[]
no_license
maojoejoe/Peach-Thinning-GTRI-Agricultural-Robotics-VIP
e2afb08b8d7b3ac075e071e063229f76b25f883a
8ed707edb72692698f270317113eb215b57ae9f9
refs/heads/master
2023-01-15T06:00:22.844468
2020-11-25T04:16:15
2020-11-25T04:16:15
289,108,482
2
0
null
null
null
null
UTF-8
Python
false
false
5,506
py
# Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above...
[ "aidencfarrar@gmail.com" ]
aidencfarrar@gmail.com
3fc7c86760348b1930c089e4dae2017d00b53f5a
f90be265a7f0f1ea5ee35f30d90a283290c455fd
/Playground/compile.py
60ae4c8ddb969767e7649ba23df2a6d14416b945
[]
no_license
sparshjaincs/codingalphasproduction
c65e986217bab18d566ba11a162ef5dec8a1a644
012d33c4040e5a69859197ad8206c55c10670894
refs/heads/master
2023-03-05T10:17:38.166690
2021-02-02T04:46:32
2021-02-02T04:46:32
333,665,467
1
0
null
2021-02-03T03:09:21
2021-01-28T06:20:26
JavaScript
UTF-8
Python
false
false
1,255
py
import subprocess class Python: def __init__(self): pass def process(self,lang): proc = subprocess.Popen(['python',"python_run.py"],stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,encoding="utf-8") val = proc.communicate() return val ...
[ "sparshjaincs@gmail.com" ]
sparshjaincs@gmail.com
4cb1ca808a40e97d20f37817c15b7f467d28b439
491bd7a305859b380d777f3420b099d4790ca807
/pumpwerk/food/migrations/0049_auto_20201026_1346.py
b4806e987ac4f0917491c83887b2a8f20139807d
[ "MIT" ]
permissive
bruecksen/pumpwerk
65103eb741c49691b203b419e9752dad996fd089
e76df6bedee3e338b10106565f0f6139fa63994c
refs/heads/master
2023-05-31T20:59:24.721234
2022-11-16T15:20:36
2022-11-16T15:20:36
251,088,621
0
0
MIT
2023-05-10T01:56:30
2020-03-29T17:17:49
Python
UTF-8
Python
false
false
496
py
# Generated by Django 2.2.11 on 2020-10-26 12:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('food', '0048_auto_20201008_1400'), ] operations = [ migrations.RemoveField( model_name='bill', name='is_notified', ...
[ "hi@brueck.io" ]
hi@brueck.io
bc8070b309880e2770b3455022ce3b5e1fba1f5d
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/322/77643/submittedfiles/testes.py
69bdec64f286b1aa5e34c5c0cec4c3e14cb5cfb6
[]
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
90
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO a=10 b=21.0 texto= ('amor') print("%.10f" %b)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
343da4ea472c4d4ddedd8d24b35d67813541e370
11ab3ef01059d9f27f204fa5cc491b0da2f82934
/Project3/code/breast_cancer/breast_lda_EM_kmeans.py
6c6ad9948e203008581de4486b0ff798630faa3a
[]
no_license
melisandezonta/ML_CS7641
c2b5c8e84144277f0544a70bc4fcac87d156b5bb
54cffb53b70e6f814e32f17377cdb54b00448735
refs/heads/master
2020-04-03T13:19:37.830775
2019-06-19T06:26:48
2019-06-19T06:26:48
155,281,571
0
0
null
null
null
null
UTF-8
Python
false
false
5,711
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #username : mzr3 """ Created on Sat Apr 1 01:25:23 2017 @author: melisandezonta """ from sklearn import datasets, mixture, decomposition, discriminant_analysis import KMeansTestCluster as kmtc import EM as em import pandas as pd import matplotlib.pyplot as plt import n...
[ "melisande.zonta-roudes@gatech.edu" ]
melisande.zonta-roudes@gatech.edu
9cad478da5205ed7341fc6e1713ed36396bc5886
f30aeed63989ff76b72c2dde4acd621ee5b20652
/carmd/__init__.py
df295e3cd8e0ac5643c904911458295dee18deed
[ "MIT" ]
permissive
irahorecka/python-carmd
a8191d68330956926baac873cb72cf91a05d4abd
07ec3160a7cb732d066fc660204ca31799d0e77b
refs/heads/master
2023-03-15T18:12:22.654421
2023-03-03T23:53:39
2023-03-03T23:53:39
249,275,903
5
0
MIT
2023-01-20T15:04:11
2020-03-22T21:29:57
Python
UTF-8
Python
false
false
130
py
"""python-carmd is a python package for querying data from the CarMD API.""" from . import carmd from .carmd import ( CarMD, )
[ "ira89@icloud.com" ]
ira89@icloud.com
abb13e58c905b7bc0b7495881730c7f2daaca5ab
79ec8c0c3d03eba1eb02e2e1df831b07fd7c0023
/HeavyIonsAnalysis/JetAnalysis/python/jets/ak2CaloJetSequence_PbPb_mc_cff.py
df074b65333ea314464418f12e6c9630baf68154
[]
no_license
enazarova/cmssw
a1febaae0e0d39a1ca3c625ee2cdec56830d10ed
fab2e599665c334ab8c8d0bac8f931c71fa4becb
refs/heads/master
2021-01-16T22:02:12.424115
2013-12-18T13:42:50
2013-12-18T13:42:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,312
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import * from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * ak2Calomatch = patJetGenJetMatch.clone( src = cms.InputTag("ak2CaloJets"), matched = cms.InputTag("ak2HiGenJetsCleaned") ) ak2Calopar...
[ "yetkin.yilmaz@cern.ch" ]
yetkin.yilmaz@cern.ch
7f4486326f60903af0493050fc3096ff2fb2260b
1b41900aab915769868135e6cc27f72c8fd01692
/__main__.py
48242cca6024a4538cbb5400f9cf73cff39583ca
[]
no_license
mattdanbrown/NanoBot
222e6865924292ef226f3ecedf0d4e80d9e3b73b
1a929451ffe58d46a78ad84782712d07ee6276c7
refs/heads/master
2021-01-17T15:50:47.931530
2015-09-20T03:48:47
2015-09-20T03:48:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
#!/usr/bin env python2 from NanoBot import * # Global stuff # Enforce UTF-8 if sys.version_info < (3, 0): reload(sys) sys.setdefaultencoding('utf8') else: raw_input = input # Main function when run on the command line if __name__ == '__main__': # Master entity that is the nano; Initi...
[ "nanodano@devdungeon.com" ]
nanodano@devdungeon.com
747f739c0a76c5229d15025991a826f81390590d
14be8bcd7e66aad90b98d7c76a78fdb94c7c4f65
/l04/ch5/ex7.py
4f946e6bb212cf64b284a348b6f34789a63be306
[]
no_license
alexbyz/HW070172
f6231d7ccd0fb06a88db9bd6b0c718ed70ce62a2
e0e4946f82ba71b4d3860c570fadb9cd96a6c9a1
refs/heads/main
2023-03-03T06:16:17.630740
2021-02-09T09:55:04
2021-02-09T09:55:04
305,626,086
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
#ex 7 ch 5 #ceasar chipher def main(): print("This programm is a ceaser chipher n") name = (input("enter a Name\n")).lower() key = int(input("Key: ")) newN ="" for ch in name: newN = newN + chr((ord(ch)+key)) print(newN) main()
[ "huber.alexander1993@gmail.com" ]
huber.alexander1993@gmail.com
8d945d221d2d40ad59a1abd37edd624f36e1e935
4cdc2f8d5323f135fe9ce1c82c09abb2714b2eff
/stats/views.py
2af5d914dc55a6f608487402f53853165fc732c6
[ "BSD-2-Clause-Views" ]
permissive
kgdunn/lti-groups-brightspace
c7ff9df2898288114bb1477911c4aaf7281f3cc8
572b994e94041ae5a8f6a7dfcaeebb06c4173877
refs/heads/master
2021-02-08T10:05:42.763572
2017-04-25T14:01:25
2017-04-25T14:01:25
244,140,091
0
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
# Our models from .models import Logging def get_IP_address(request): """ Returns the visitor's IP address as a string given the Django ``request``. """ # Catchs the case when the user is on a proxy ip = request.META.get('HTTP_X_FORWARDED_FOR', '') if ip == '' or ip.lower() in ('unkown', ): ...
[ "kgdunn@gmail.com" ]
kgdunn@gmail.com
8fa126ce0fa1347e3d7d19f07d8a497efe151547
709b56d4b045d9dc671a922bf95e4477def3aa51
/Python-3.8.7/Lib/unittest/test/testmock/testasync.py
e84c66c0bdd05e5a00e446840fc4e50e173527c6
[ "MIT", "GPL-1.0-or-later", "Python-2.0", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "0BSD", "LicenseRef-scancode-free-unknown" ]
permissive
Gizmotronn/django-start
1240ba3e3050f618364654e53a0f69f65c5c1f52
f2046e04655d9040f4a55f3c771f87e323e33313
refs/heads/master
2023-03-19T12:23:19.980979
2021-01-28T22:08:30
2021-01-28T22:08:30
274,297,608
4
2
MIT
2021-03-20T05:50:25
2020-06-23T03:16:15
Python
UTF-8
Python
false
false
37,335
py
import asyncio import inspect import re import unittest from unittest.mock import (ANY, call, AsyncMock, patch, MagicMock, Mock, create_autospec, sentinel, _CallList) def tearDownModule(): asyncio.set_event_loop_policy(None) class AsyncClass: def __init__(self): pass ...
[ "noreply@github.com" ]
Gizmotronn.noreply@github.com
78b71172bf6d86aa2c983be0df782084777222f2
372c02c57e32bd7d5f097a042b32dff7b9891ff1
/tests/test_case/test_test_case_utils.py
87b745bf3aa9b7f1a9332c1df2c66442ad84269a
[ "CC0-1.0", "MIT" ]
permissive
biosimulators/Biosimulators_test_suite
efd937f113b84fff21a2e8025810233f5a5b85b8
5683d1799042245ae8b440e026ef70e382e269cd
refs/heads/dev
2023-08-05T08:57:35.206888
2023-07-26T05:26:09
2023-07-26T05:26:09
276,450,564
7
2
MIT
2023-07-26T05:27:02
2020-07-01T18:12:41
Python
UTF-8
Python
false
false
1,500
py
from biosimulators_test_suite.test_case.utils import reduce_array_shape, are_array_shapes_equivalent import unittest class TestCaseUtilsTestCase(unittest.TestCase): def test_reduce_array_shape(self): self.assertEqual(reduce_array_shape([1, 2, 3]), [1, 2, 3]) self.assertEqual(reduce_array_shape([3,...
[ "jonrkarr@gmail.com" ]
jonrkarr@gmail.com
3128cd89fa0338d97eb8a82b2ec5c001e588d146
289da5146b8991942ba22eefe948289ee024d3ff
/sheng/tutorial/L2基础类型控制语句/6判断类型.py
a5fcf950a07aa4b75d7f56d3c6046fb0c419b699
[]
no_license
a1424186319/tutorial
263585961ab40e7a9a55405263d80057a88298d4
909bfc9f850118af7892a7ba4b0f7e3d0798db8a
refs/heads/master
2022-12-09T01:05:36.063099
2019-02-18T12:12:52
2019-02-18T12:12:52
166,967,437
0
0
null
2021-06-01T23:20:20
2019-01-22T09:38:51
Python
UTF-8
Python
false
false
432
py
# 判断变量类型 #类型不同,input()返回字符串 # '1'+3 '小明考了+90 报错 #type() 判断变量类型 a=1 b=1.5 c='hello' d = True type(a) #<class 'int'> type(b) #<class 'float'> type(c) #<class 'str'> type(d) #<class 'bool'> #isinstance(值,类型) #如果值属于类型的话返回True isinstance(1,int) #True isinstance(1,float) #True isinstance('小明',fl...
[ "1424186319@qq.com" ]
1424186319@qq.com
bfe6aae7f274a314790e72236939b1ba541ade66
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-CoreData/PyObjCTest/test_nsmanagedobjectcontext.py
1ee31c51ea5814bf8fa4d1e7a31a6298fe662ce0
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
5,373
py
import CoreData from PyObjCTools.TestSupport import TestCase, min_os_level class TestNSManagedObjectContext(TestCase): def test_enum_types(self): self.assertIsEnumType(CoreData.NSManagedObjectContextConcurrencyType) @min_os_level("10.12.4") def testConstants10_12_4(self): self.assertIsIns...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
fd74eb70697631a2fb806af0f5fc114c357bcb39
db0e8aa3a92a30c9b1cc8da03725e951ff64f3f1
/lenv/lib/python3.6/site-packages/django/contrib/gis/gdal/libgdal.py
022aa945d75985f09652d4a41f7cc4c11bb5a7d3
[ "BSD-3-Clause" ]
permissive
shrey-c/DataLeakageDjango
ffeef61caa347520747fc70cf3f7f8b84a9610cf
a827c5a09e5501921f9fb97b656755671238dd63
refs/heads/master
2022-11-30T03:30:12.313025
2020-07-12T06:47:44
2020-07-12T06:47:44
242,569,637
6
1
BSD-3-Clause
2022-11-22T05:20:22
2020-02-23T18:33:04
Python
UTF-8
Python
false
false
3,658
py
from __future__ import unicode_literals import logging import os import re from ctypes import CDLL, CFUNCTYPE, c_char_p, c_int from ctypes.util import find_library from django.contrib.gis.gdal.error import GDALException from django.core.exceptions import ImproperlyConfigured logger = logging.getLogger('django.contri...
[ "shreyansh.chheda@gmail.com" ]
shreyansh.chheda@gmail.com
0e48db6d79772bfbc9400feb673ad0cf480214c2
70811da75f0f38719703e02c9f99e2ce09e21d2a
/HMM/hmm_for_baxter_using_only_success_trials/hmm_online_service/state_classification_process.py
50e5d4e49697f576ad70e09e857fa170d803159b
[ "BSD-3-Clause" ]
permissive
HongminWu/time_series_anomaly_detection_classification_clustering
9d5e555c9bf37ee72770e127588f61f15139bd4e
548b3799389ec7a96fc56c51360a6de89e0502a1
refs/heads/master
2020-03-11T04:44:00.113684
2018-08-16T06:38:57
2018-08-16T06:38:57
129,783,614
15
6
null
null
null
null
UTF-8
Python
false
false
1,860
py
class HMMThreadForStateClassification(threading.Thread): def __init__(self, model_save_path, state_amount): threading.Thread.__init__(self) model_group_by_state = {} for state_no in range(1, state_amount+1): model_group_by_state[state_no] = joblib.load(model_save_path+"/model_...
[ "hongminwu0120@gmail.com" ]
hongminwu0120@gmail.com
570c40a5f60eb138149339725b1b26b9f4798e31
cd073757b17465635da3fd30f770bbd8df0dff99
/tests/pytests/unit/modules/test_solarisipspkg.py
6bd8b5372f1d0bd5edaeb8b05eb9a9d3c6d514bf
[ "MIT", "Apache-2.0", "BSD-2-Clause" ]
permissive
marmarek/salt
cadc939ecbda915e2f4246f198d72f507c9c1960
974497174252ab46ee7dc31332ffb5b2f8395813
refs/heads/master
2022-11-19T14:05:28.778983
2021-03-12T00:30:45
2021-05-06T16:45:38
160,296,073
0
1
Apache-2.0
2018-12-04T04:19:43
2018-12-04T04:19:41
null
UTF-8
Python
false
false
15,214
py
import logging import pytest import salt.modules.solarisipspkg as solarisipspkg from tests.support.mock import MagicMock, call, patch log = logging.getLogger(__name__) class ListPackages: def __init__(self, iteration=0): self._iteration = iteration def __call__(self): pkg_lists = [ ...
[ "megan.wilhite@gmail.com" ]
megan.wilhite@gmail.com
c9e98a0c2c8196975d3bf8fd2e3c10f84d2c3c02
7950c4faf15ec1dc217391d839ddc21efd174ede
/leetcode-cn/0765.0_Couples_Holding_Hands.py
6ff66fc466c8e094a2c9ade61ac6c228120bb0b9
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
883
py
''' approach: Greedy Time: O(N ^ 2) Space: O(1) ref: https://leetcode-cn.com/problems/couples-holding-hands/solution/tan-xin-suan-fa-by-good_guy-c3ol/ 执行结果: 通过 显示详情 执行用时:20 ms, 在所有 Python 提交中击败了73.68%的用户 内存消耗:12.9 MB, 在所有 Python 提交中击败了68.42%的用户 ''' class Solution(object): def minSwapsCouples(self, row): ...
[ "lixiang@rxthinking.com" ]
lixiang@rxthinking.com
f886e142eda43da3c73cc0df63292f14efec90d4
8e4611f6c51fc294eec168dfd76294abed0faa81
/nsmf-pdusession/flaskConnexion-python2/swagger_server/models/dnn_selection_mode.py
baeb5131729d862876bc197b41b61ce86536a83d
[]
no_license
zh597588308/5GCORE
f7e56d84daf3de836bdb8b74d8e41968c25bc54a
0a36d13d4ba769aa3d480893608b847677578471
refs/heads/master
2021-01-09T15:26:09.399154
2019-10-02T14:21:57
2019-10-02T14:21:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
895
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class DnnSelectionMode(Model): """NOTE: This class is auto generated by the sw...
[ "41372370+attilajak@users.noreply.github.com" ]
41372370+attilajak@users.noreply.github.com
3f0a302daf52b97f7390edb9ec53c0ab10950818
949268c1af03b32449f17233cb27b01cf80201d2
/chroma/measure.py
c3ec42023d1471357fbd4f98240e335084af7c7b
[]
no_license
LSSTDESC/chroma
0a0ea08230ce5b3240d9c2da1788cf6c73082234
64fc123a065334b307654f29b3bea52885b46ec8
refs/heads/master
2022-07-23T00:27:17.885946
2017-08-28T00:06:47
2017-08-28T00:06:47
9,252,853
3
0
null
null
null
null
UTF-8
Python
false
false
4,492
py
import lmfit import numpy as np try: import astropy.io.fits as fits except: import pyfits as fits import galsim import chroma class EllipMeasurer(object): """ Abstract base class for ellipticity measurer, which measures the ellipticities of ring test target images, and optionally writes best-fit image...
[ "jmeyers314@gmail.com" ]
jmeyers314@gmail.com
24e7f415e8b099d160be1d6b909bf0dba747ab5a
9d454ae0d5dd1d7e96e904ced80ca502019bb659
/611_triangleNumber.py
99b88d2dd750ca9ba8f12eab16843a2f276650da
[]
no_license
zzz686970/leetcode-2018
dad2c3db3b6360662a90ea709e58d7facec5c797
16e4343922041929bc3021e152093425066620bb
refs/heads/master
2021-08-18T08:11:10.153394
2021-07-22T15:58:52
2021-07-22T15:58:52
135,581,395
3
0
null
null
null
null
UTF-8
Python
false
false
851
py
from typing import List import bisect def triangleNumber(nums: List[int]) -> int: n = len(nums) nums.sort() ans = 0 for i in range(len(nums)-1): for j in range(i+1, len(nums)): idx = bisect.bisect_left(nums, nums[i]+nums[j]) if idx <= n and idx > j: ans ...
[ "1564256031@qq.com" ]
1564256031@qq.com
ed5bf2f48465806ada0f385a3e858f9aacd0b3e3
f281d0d6431c1b45c6e5ebfff5856c374af4b130
/DAY001~099/DAY71-BOJ6757-팰린드롬진법/minji.py
4875f0cae2c769824d5579565cd9c88f9bc555e9
[]
no_license
tachyon83/code-rhino
ec802dc91dce20980fac401b26165a487494adb4
b1af000f5798cd12ecdab36aeb9c7a36f91c1101
refs/heads/master
2022-08-13T09:10:16.369287
2022-07-30T11:27:34
2022-07-30T11:27:34
292,142,812
5
6
null
null
null
null
UTF-8
Python
false
false
493
py
import sys def sol(): s = set([]) m = 0 for i in range(2, int(x**0.5)+2): d, n = [], x while n > 0: d.append(n % i) n //= i if d == list(reversed(d)): s.add(i) m = i for i in range(m, 0, -1): if x % i == 0: b = x ...
[ "noreply@github.com" ]
tachyon83.noreply@github.com
dd75b57fb06f777639e799d002871a2e27cdac59
f3eef36c7a2e2088b505eff7b6930a07513fed02
/wadodo_crawlers/wadodo_crawlers/utils/flickr.py
1104548e8d79b2205ff71a53982f6f6d72cd6ba3
[]
no_license
Kami/wadodo-crawlers
c6ddf2da0b435479f35709b1ccb47c3473f8d2bd
accb2a437c0bbb68d20a0dbe7906120bec70af70
refs/heads/master
2020-04-11T03:00:08.048305
2013-08-16T18:08:56
2013-08-16T18:08:56
10,308,380
0
0
null
null
null
null
UTF-8
Python
false
false
1,808
py
import json import flickrapi __all__ = [ 'get_images_for_term' ] PER_PAGE = 40 # http://www.flickr.com/services/api/flickr.photos.licenses.getInfo.html LICENSES = [4, 5, 6, 7] CONTENT_TYPES = [1] SORT = 'relevance' BASE_URL = 'http://farm%(farm_id)s.staticflickr.com/%(server_id)s/%(id)s_%(secret)s_b.jpg' FLICKR...
[ "tomaz@tomaz.me" ]
tomaz@tomaz.me
48195024f5ab570366aaf494d1cad4990097170a
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_0/models/admin_get_response.py
0c942e1ec259a2d304acde1541a0af965a25dd2a
[ "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,236
py
# coding: utf-8 """ FlashBlade REST API Client A lightweight client for FlashBlade REST API 2.0, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six imp...
[ "asun@purestorage.com" ]
asun@purestorage.com
cc2e68c1564aa725d67625119167a56e0c4d5c5d
acff427a36d6340486ff747ae9e52f05a4b027f2
/main/desktop/kde/graphics/kphotoalbum/actions.py
6cf46a9818bf14ca2144fa44e195b00756bf14cc
[]
no_license
jeremie1112/pisilinux
8f5a03212de0c1b2453132dd879d8c1556bb4ff7
d0643b537d78208174a4eeb5effeb9cb63c2ef4f
refs/heads/master
2020-03-31T10:12:21.253540
2018-10-08T18:53:50
2018-10-08T18:53:50
152,126,584
2
1
null
2018-10-08T18:24:17
2018-10-08T18:24:17
null
UTF-8
Python
false
false
522
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/copyleft/gpl.txt from pisi.actionsapi import kde5 from pisi.actionsapi import pisitools # if pisi can't find source directory, see /var/pisi/kphotoalbum/work/ and: # WorkDir="kphotoa...
[ "erkanisik@yahoo.com" ]
erkanisik@yahoo.com
a973bde6ec2e0cdd3a05ef6b0c7b5b4b832448bf
54149d6485bfc32f424db73868f7c6d6be164e98
/selia/views/create_views/items/select_sampling_event.py
d5ae51f812102ac073fd95ad6756a20e249d0e0b
[ "BSD-2-Clause" ]
permissive
CONABIO-audio/selia
b76b1ab4b0b18afa57d7dafc3409d35d465a93fc
9863c32cd45db13053a1d2add67f5bdc1871b791
refs/heads/master
2022-12-11T14:58:13.458200
2020-09-26T02:02:09
2020-09-26T02:02:09
219,807,645
0
2
BSD-4-Clause
2022-12-08T10:54:53
2019-11-05T17:50:15
HTML
UTF-8
Python
false
false
1,924
py
from irekua_database.models import SamplingEvent from irekua_database.models import Collection from irekua_filters.sampling_events import sampling_events as sampling_event_utils from irekua_permissions.items import items as item_permissions from selia.views.utils import SeliaList from selia.views.create_views import ...
[ "santiago.mbal@gmail.com" ]
santiago.mbal@gmail.com
8eef536d85fcd3182c979338e3061b64c4d287d0
30c820b171447ab772e58f04ac0dc55c4d5ffbdf
/archive/code/PhaseII/data.py
2d727831cc343033a71cf7edd86e4a08621cf767
[]
no_license
TransactiveSCC/TRANSAX
3b58cff757fb646a825872dc243e04eea3d0b712
13c45a1254cb14607d1bfa86267dbde9e61fd538
refs/heads/main
2023-05-13T10:50:20.868093
2021-05-15T02:45:53
2021-05-15T02:45:53
316,015,185
0
1
null
null
null
null
UTF-8
Python
false
false
3,143
py
import sys from datetime import datetime filename=sys.argv[1] data=open(filename).readlines() #find buyers # buyerID = None # for line in data: # if 'postBuyingOffer' in line: # buyerID = line.split('(')[1].split(',')[0] # print (buyerID, end='') # break # if 'postSellingOffer' in line...
[ "eiselesr@gmail.com" ]
eiselesr@gmail.com
bcdd8846ee96fec17d26ec6b13f56f7daaccdae0
6312ae52fb81f68ca80ad5c607148d011052850d
/sos_payroll/wizard/attendance/rep_pss_attendance_wizard.py
65e0e291a93829eaae461cae9d381621cd700bec
[]
no_license
cokotracy/sos_guards
e88b95026185aaf1d622b223d39afd5e60a60ee9
84242b484cbd9a4296d3083747b4e31f2ebb3e73
refs/heads/master
2022-06-14T05:36:27.971635
2019-10-07T07:01:58
2019-10-07T07:01:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
840
py
import time import pdb from odoo import api, fields, models class SOSPSSAttendanceWizard(models.TransientModel): _name = "sos.pss.attendance.wizard" _description = "PSS Attendance Report" date_from = fields.Datetime("Date From",default=lambda *a: time.strftime('%Y-%m-01')) date_to = fields.Datetime("Date To",...
[ "sarfraz_g2009@yahoo.com" ]
sarfraz_g2009@yahoo.com
a3dc7a5e9f0728a31359c90e3303dc3e7e0ee800
fac4c2fa64e6a22d0a80eec7b65c93d7a6236b7f
/xlnet-module/modeling.py
c03c72e12b87bc3e74bdb0b5eae76210c5ed61fb
[ "Apache-2.0" ]
permissive
zouning68/nlp-transfer-learning
ec2b9e91f4b3bb9d77bf88dd78282f6ff5aaa4fd
e9b1544b55905ceb2235471f036abc1d7c4160db
refs/heads/master
2023-04-13T18:25:22.206475
2020-01-15T02:36:19
2020-01-15T02:36:19
228,514,893
2
0
Apache-2.0
2023-03-24T23:36:35
2019-12-17T02:21:15
Python
UTF-8
Python
false
false
28,514
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf def gelu(x): """Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: x: float Tens...
[ "noreply@github.com" ]
zouning68.noreply@github.com
ccc39e516223cab882eec5576f73ab8f36fa2ca3
aa0bb590ed4efa8bf9f20ffeab7004190d0e1f12
/API/server.py
f3c7b1dbe02af5682f2f3ac7b0be6bb5085cdd63
[]
no_license
Pratyush2703/ExtendingBoardGames
6e10309aae1b57478117a76562a19a95b3fd3d1b
e086eb9d1ca06bf3ba1a545a442974d55fc3ae72
refs/heads/master
2020-04-15T04:32:50.161824
2019-01-07T05:48:32
2019-01-07T05:48:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,608
py
# import the necessary packages from PIL import Image import numpy as np import flask import io import constants, configurations, chess_board_segmentation, utils # initialize our Flask application and the Keras model app = flask.Flask(__name__) # TODO: move to Redis cache existing_board = [] @app.route("/digitize_...
[ "anuragchatterjee92@gmail.com" ]
anuragchatterjee92@gmail.com
b94aaa7296cd9da910fffca4ede067b7ade261e7
a4fa88659d749c1e32d70d4f0d309dcbcce40aa9
/4/4a.py
c4c79f16872ad3d502e92ae08f52c079349322cc
[]
no_license
pe-ge/aoc2018
91fd5af6374855f6787114d4e64d86d08793d41c
571aea49caca1fe18cc67c9c403f8107baef4169
refs/heads/master
2020-04-12T10:07:06.144536
2018-12-25T08:42:17
2018-12-25T08:42:17
162,419,750
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
from datetime import datetime data = [] with open('4.txt') as f: # with open('4-example.txt') as f: for line in f.readlines(): splitted = line.split('] ') date = datetime.strptime(splitted[0], '[%Y-%m-%d %H:%M') event = splitted[1][:-1] data.append((date, event)) data = list(sorte...
[ "gergelp@gmail.com" ]
gergelp@gmail.com
0382344d5a54fa9e5e594b6871543a2a05f29a3a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_006/ch20_2020_03_19_16_26_56_270828.py
3a58299ad7d4fb14702d5bf85d463e6105982ecb
[]
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
133
py
distancia=float(int("Que distancia vc deseja percorrer?")) preco=distancia*0.5 + (distancia-200)*0.45 print= "{0:.2f}".format(preco)
[ "you@example.com" ]
you@example.com
2e1a5359508ed8f99ba6e174345923f913ecfbf8
e22e03d9761f5c6d581b5af2e77343e8ee4b201d
/edk2/BaseTools/Source/Python/UPT/BuildVersion.py
c72bc79cb854e0f01e901ee0c95e831b27c8b568
[ "OpenSSL", "BSD-2-Clause" ]
permissive
SamuelTulach/SecureFakePkg
759975fcc84d62f05ac577da48353752e5334878
f34080a6c0efb6ca3dd755365778d0bcdca6b991
refs/heads/main
2023-08-17T07:51:22.175924
2021-10-01T10:46:14
2021-10-01T10:46:14
410,938,306
94
14
null
null
null
null
UTF-8
Python
false
false
661
py
## @file # # This file is for build version number auto generation # # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> # # This program and the accompanying materials are licensed and made available # under the terms and conditions of the BSD License which accompanies this # distribution. The ful...
[ "samtulach@gmail.com" ]
samtulach@gmail.com
997a8d5f2dbba0a8e99adbb3568cdbc29a0d77a1
a1ea8997e330bfcf4b6e61432e45d71ff98e2ba4
/workspace_tools/build_api.py
847e9cedc9d6e89abd6560a3796550fed602d6ef
[ "Apache-2.0" ]
permissive
teddokano/mbed
61b738b485e7a63d7861881ca44918051c858e07
1781d582495f839296c8e2216e31485184c8f475
refs/heads/master
2021-01-17T06:03:09.713089
2013-07-22T06:13:13
2013-07-22T06:13:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,163
py
from os.path import join, exists, basename from shutil import rmtree from types import ListType from workspace_tools.utils import mkdir from workspace_tools.toolchains import TOOLCHAIN_CLASSES, Resources from workspace_tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_API, MBED_HAL, MBED_COMMON from workspace...
[ "emilmont@gmail.com" ]
emilmont@gmail.com
d13e9cc1d86def3e18a6a8e3987e157e31967afe
d8cf93900e6d86240ceb7643fd78bd2841b38152
/test/regex_match_G/regular_get_chinese.py
b2eca90b2ee3d0ac2dc85d5da96d08089669a864
[]
no_license
Onebigbera/Daily_Practice
165cee0ee7883b90bcf126b23ff993fed0ceffef
8f1018a9c1e17c958bce91cbecae88b0bb3c946b
refs/heads/master
2020-04-09T01:20:48.857114
2019-01-03T03:24:59
2019-01-03T03:24:59
159,900,636
1
0
null
null
null
null
UTF-8
Python
false
false
509
py
# -*-coding:utf-8 -*- """ 需求:从文本中取出所有的中文字符串 """ import sys import re __author__ = 'George' __date__ = '2018/11/14' import re # 过滤掉除了中文以外的字符 str = "hello,world!!%[545]你好234世界。。。" str = re.sub("[A-Za-z0-9\!\%\[\]\,\。]", "", str) print(str) # 提取字符串里的中文,返回数组 pattern = "[\u4e00-\u9fa5]+" regex = re.compile(pattern) ...
[ "2578288992@qq.com" ]
2578288992@qq.com
52a7e527eb84b6944216c3c0bf3d90c51d43fb72
7faec044392fd92cb826bc9117f60e8614b3755a
/threadDemo.py
9862eb8414d3ae4d147d72033416a3e6fe6fdbd5
[]
no_license
freeCodeCampDelhi/college-projects
1eefc7d0681d996d7e3c38bb5f01f2502527805d
3e7d33ece514eb61b04699b929acee802c4d99ed
refs/heads/master
2021-08-24T10:08:41.780711
2017-12-09T05:37:43
2017-12-09T05:37:43
113,662,667
2
2
null
2017-12-09T10:58:21
2017-12-09T10:58:21
null
UTF-8
Python
false
false
203
py
import threading, time print ('Start of program') def takeANap(): time.sleep(5) print('Wake up!') threadObj = threading.Thread(target=takeANap) threadObj.start() print('End of program.')
[ "9654263057akashkandpal@gmail.com" ]
9654263057akashkandpal@gmail.com
17ed5fda57e4bab4cc39d4bb17658d4b3ef38b7d
b5402b40b69244380bc0d3f85ff65483d0505181
/msghandle/botcmd/command/help.py
ccc12b19f357934325d9e13293d0efde59642e93
[ "MIT" ]
permissive
RxJellyBot/Jelly-Bot
ea7b6bd100431736732f9f4cc739858ec148e3e2
c7da1e91783dce3a2b71b955b3a22b68db9056cf
refs/heads/master
2023-08-29T20:41:01.813945
2021-10-20T05:27:21
2021-10-20T05:27:21
189,347,226
5
1
MIT
2020-09-05T00:50:41
2019-05-30T04:47:48
Python
UTF-8
Python
false
false
914
py
from django.utils.translation import gettext_lazy as _ from flags import BotFeature from msghandle.models import TextMessageEventObject, HandledMessageEventText from ._base import CommandNode cmd = CommandNode( codes=["help"], order_idx=1000, name=_("Help"), description=_("See the documentation or bot relate...
[ "raenonx0710@gmail.com" ]
raenonx0710@gmail.com
e266dfdcbdf078ea92cf1a699f5185b5064ab126
c78462b12374561c5bbe90e9e1f8bb801365219a
/do_an/cao_quyen/parallel/concurrent_thread2.py
95c301f9589f7cbba60796e5094fda0bf1474a7f
[ "MIT" ]
permissive
thieu1995/ai
46bf4cb74acad539691ee48cbb68d2767d2ac124
e43255e38153faa01e2a9c16a2bd0a4338820686
refs/heads/master
2023-03-15T07:21:07.203774
2019-09-08T11:40:54
2019-09-08T11:40:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,070
py
from concurrent.futures import ThreadPoolExecutor from queue import Queue import pandas as pd from sklearn.model_selection import ParameterGrid from model.fl_gann import Model as FLGANN from utils.Setting import param_grid_test as param_grid # parameters data_index = [5] list_idx = [(6640, 0, 8300)] queue = Queue()...
[ "nguyenthieu2102@gmail.com" ]
nguyenthieu2102@gmail.com
dc31edad7d0c9aafb6b825bed9b481f87a98767c
610871dc49eb8ee3ae33026212e024f7e00d6aa8
/enhancement.py
1e81d2332fd46355429fcc23918d80e9b1c81fe3
[ "MIT" ]
permissive
XiongMaoXia/Wave-U-Net-for-Speech-Enhancement
1854f61c2f9a2393a8d5a7233015cacec26c5e4c
f3f10fb8287a96cd7c80e99b80513bc641f3b127
refs/heads/master
2021-01-27T19:25:16.609487
2020-02-14T13:13:50
2020-02-14T13:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,152
py
import argparse import json import os import librosa import torch from torch.utils.data import DataLoader from tqdm import tqdm from utils.utils import initialize_config, load_checkpoint """ Parameters """ parser = argparse.ArgumentParser("Wave-U-Net: Speech Enhancement") parser.add_argument("-C", "--...
[ "haoxiangsnr@gmail.com" ]
haoxiangsnr@gmail.com
efe69e5558dca8dc2119ac9110fab2ef1699c47f
6c62ba9e1c307a1fc62ccc06bf19ac20992f8b93
/src/bluenotepad/settings.py
c41616883dc8f43af213deddc3b8db0b216bbec5
[]
no_license
klangner/bluenotepad
2094d73f6a5b9306d818b8e586a682b19d0d406c
81e19c768c55d7865f3b2af3a274ea810b426f35
refs/heads/master
2020-12-24T15:40:22.157553
2014-04-09T06:16:31
2014-04-09T06:16:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,721
py
# -*- coding: utf-8 -*- # Django settings for bluenotepad project. from local_settings import LOCAL_DATABASES, LOCAL_DEBUG, LOCAL_FILE_STORAGE, LOCAL_SECRET_KEY, LOCAL_EMAIL_PASSWORD import os DEBUG = LOCAL_DEBUG DATABASES = LOCAL_DATABASES FILE_STORAGE = LOCAL_FILE_STORAGE TEMPLATE_DEBUG = DEBUG ADMINS = ( ('A...
[ "klangner@gmail.com" ]
klangner@gmail.com
abb510fe4fa66bf5b14905af7357acbd3142a7ef
f434e38948ea98a9b9fbec45c0a459e4d277361d
/sandbox/samples/load_linkages.py
1e5a46cbf8cfdc446eb935eec871555c23223c4d
[]
no_license
diegoami/DA_NLP_Sandbox
21ea454c19f050f9a3caadf6a4865ccd144e5785
65970f853f18daf85799d0a2850e41c7238b1c7d
refs/heads/master
2021-07-18T14:19:42.396061
2017-10-27T07:36:11
2017-10-27T07:36:11
106,388,489
2
0
null
null
null
null
UTF-8
Python
false
false
3,230
py
import sklearn import nltk import re import numpy as np if __name__ == "__main__": stopwords = nltk.corpus.stopwords.words('english') # load nltk's SnowballStemmer as variabled 'stemmer' from nltk.stem.snowball import SnowballStemmer stemmer = SnowballStemmer("english") num_clusters = 10 ...
[ "diego.amicabile@gmail.com" ]
diego.amicabile@gmail.com