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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24da100dd2dcfb1fbf2dc0f990d2db5cecb40f9e | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py | 0d43959e0413d45f681583c3efd5aacfe3752027 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 13,580 | 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"
] | scbedd.noreply@github.com |
0e10c4dc821d92d19a19781c29184f2c21a3a2f8 | a2e0e03e31f892454e537df32e3e1e1d94764fa0 | /virtual/bin/gunicorn_paster | a5acb6c5f33e8c0f85c1fc0f5f42198bd48c6b30 | [
"MIT"
] | permissive | MichelAtieno/Instagram-Clone | 557272585a3fff6f7a7c552b08cc5ef5e2c129da | 7250579e4f91084ad9bf8bd688df3f556dfef64a | refs/heads/master | 2020-03-30T16:23:19.351522 | 2018-10-09T09:42:05 | 2018-10-09T09:42:05 | 151,406,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/home/michel/Desktop/Python-Django/Instagram/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"mishqamish@gmail.com"
] | mishqamish@gmail.com | |
3a4c7f9d712049cf02648c56d53ff66b940cd9fb | 05d692469305dd1adb9ebc46080525bb4515b424 | /Exception handling/tryfinally5.py | 7a605945006ab61d29eedb42aaf62afea001654d | [] | no_license | rajdharmkar/pythoncode | 979805bc0e672f123ca1460644a4bd71d7854fd5 | 15b758d373f27da5680a711bf12c07e86758c447 | refs/heads/master | 2020-08-07T18:30:55.575632 | 2019-10-14T12:46:09 | 2019-10-14T12:46:09 | 213,551,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | try:
fob = open ( 'test.txt', 'w' )
fob.write ( "It's my test file to verify try-finally in exception handling!!"
)
print 'try block executed'
finally:
fob.close ()
print 'finally block executed'
| [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
6893b1b04629476fddf2845af7cfe5908b9cb720 | 72e11a80587342b3f278d4df18406cd4ce7531e8 | /hgdemandimport/demandimportpy3.py | e2ea27fa0f1166fc55324efb1bbdaf6c4a5029c6 | [] | no_license | EnjoyLifeFund/Debian_py36_packages | 740666f290cef73a4f634558ccf3fd4926addeda | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | refs/heads/master | 2021-08-24T02:17:24.349195 | 2017-12-06T06:18:35 | 2017-12-06T06:18:35 | 113,167,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,498 | py | # demandimportpy3 - global demand-loading of modules for Mercurial
#
# Copyright 2017 Facebook Inc.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
"""Lazy loading for Python 3.6 and above.
This uses the new importlib finder/load... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
68b377124eb26ae187dc04f00fc3c6cc81fed129 | a21d2fb3f111f30b842a4c3a5c6940d1a003b94d | /Python3/Foundation/Day 8/进程 join.py | 883a86cf1f1208853b0f0f2f71b0dd2e70e1d4ae | [] | no_license | hygnic/MyPython | 438f16206770a006a3b7bcf2ada9150c71ce8af9 | 26aaa57728ad545af5920ff2015eae258712d077 | refs/heads/master | 2021-07-01T02:10:15.810495 | 2021-02-26T08:07:54 | 2021-02-26T08:07:54 | 220,612,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | # User: hygnic
# Date: 2018/9/8
# User: hygnic
# Date: 2018/9/8
import os
import time
from multiprocessing import Process
# help(os)
def func1(args):
print(args)
time.sleep(2)
print('son process: ', os.getpid())
def func2(filename, content):
with open(filename, 'w') as content_wp:
content_w... | [
"hygnic@outlook.com"
] | hygnic@outlook.com |
52339edf02f3ab2499baae92bfcd98d8aca6a7e2 | e86de5af089798890fae230fad381ca5a84fa562 | /rssant_feedlib/reader.py | 4b3ef65d52ba94cb18dbc3e72c7a306030e97ffe | [
"BSD-3-Clause"
] | permissive | RustamYasaviev/rssant | 853508adfbb269d3ce91d4b4a122b8c65537ee51 | 25a66e136a6154b4ce3ef4004e562c7d0be67ec0 | refs/heads/master | 2022-12-30T23:57:42.546833 | 2020-10-23T11:08:26 | 2020-10-23T11:08:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,566 | py | import re
import socket
import ssl
import ipaddress
import logging
from urllib.parse import urlparse
from http import HTTPStatus
import requests
from rssant_common.dns_service import DNSService, DNS_SERVICE
from .response import FeedResponse, FeedResponseStatus
from .response_builder import FeedResponseBuilder
from .... | [
"guyskk@qq.com"
] | guyskk@qq.com |
d070ea5b57e7c9f251743e491b019532adcef562 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_indispositions.py | fabc644b17f9f752e045cebb4233bf3276caa5da | [
"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 | 250 | py |
#calss header
class _INDISPOSITIONS():
def __init__(self,):
self.name = "INDISPOSITIONS"
self.definitions = indisposition
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['indisposition']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
11b3528b2e69e8e20b3ffec5e3cabb26665f60f8 | 7653ddbbc2256fae9cc62251f0241d0e9696df7d | /pyshtools/spectralanalysis/cross_spectrum.py | 5b48e4b63cf25c38d0ad3ff3a882735c27d890b2 | [
"BSD-3-Clause"
] | permissive | SHTOOLS/SHTOOLS | c3415b38da290805ecdfd59699587e5ac5233cc8 | 93e77dcc6b36b2363f07d79d07ec47d86e6cba65 | refs/heads/master | 2023-08-31T01:35:49.211882 | 2023-08-28T10:50:08 | 2023-08-28T10:50:08 | 24,725,612 | 315 | 117 | BSD-3-Clause | 2023-08-28T10:50:10 | 2014-10-02T15:53:36 | Python | UTF-8 | Python | false | false | 6,773 | py | import numpy as _np
from scipy.special import factorial as _factorial
def cross_spectrum(clm1, clm2, normalization='4pi', degrees=None, lmax=None,
convention='power', unit='per_l', base=10.):
"""
Return the cross-spectrum of the spherical harmonic coefficients as a
function of spherical... | [
"mark.a.wieczorek@gmail.com"
] | mark.a.wieczorek@gmail.com |
b9c464b3bef52750e1eb2aeee448f5b6b3831cf5 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/acl/acl.py | 3d4dcafee709a227b8b3d2212c124493b9b78f7a | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 3,907 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
97538fec829806a6dc0663c869c8d080db247647 | f62aa26461e381435c86019ca2f502d10ff75b88 | /catalog/migrations/0006_auto_20170121_1008.py | aa8cfe9522994670ffaf090ae699983f1dd31edd | [] | no_license | viktortat/CAP | edb2aef09169d9bcf04b541682d8dcb067edf1c6 | 60221d8fa1d1ccb209e40001554cb004480dd2d5 | refs/heads/master | 2021-06-12T13:03:33.917809 | 2017-04-30T19:58:38 | 2017-04-30T19:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-21 07:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('catalog', '0005_auto_20170113_0259'),
]
operations = [... | [
"l2maximum@mail.ru"
] | l2maximum@mail.ru |
a7cab9582745010178a2ff7a604325a6acc85ace | f2d961fe88b67f9d1eb52170d4df7c0363fae073 | /paper/plottraces_wt.py | 0f6fb632d5797568f4da3376d5ce5e68dd5a2795 | [] | no_license | acvmanzo/mn | 12ffbf1aae9c8088a8461bb2e7f4823e31329338 | c1d52e65e0bdec504d4e3954ad02ffe91f7f31ad | refs/heads/master | 2021-01-23T04:23:47.366109 | 2014-06-08T11:05:11 | 2014-06-08T11:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,820 | py | import mn.dftf.dftf as dftf
import os
import matplotlib.pyplot as plt
import numpy as np
import operator
from mn.cmn.cmn import *
import matplotlib
import pickle
import matplotlib as mpl
# Plots raw traces on one graph from the movies specified below.
# Run from the 'data' folder; in the 'data' folder are individual m... | [
"acvmanzo@gmail.com"
] | acvmanzo@gmail.com |
e98b22fa6ef267f696bb0d745c79f47d0d9e171b | 20f16917c9245aae71cb50fcc4b3e34e1e2a5006 | /LessonThree/Python07/src/Story_start.py | bf42f5f5399b21892641b105ca409e6280efa206 | [] | no_license | yinsendemogui/Alex | f4bce794efb5cacdf547c420d7a3a3c5d27be5c8 | eeb230b9028ced5c7fc0f293c1d4d7b98c521721 | refs/heads/master | 2020-06-11T19:17:41.397658 | 2017-01-07T15:50:48 | 2017-01-07T15:50:48 | 75,628,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,646 | py | #!usr/bin/env python
# -*- coding:utf-8 -*-
# auther:Mr.chen
# 描述:
import time,os,sys
sys.path.append('..')
from lib import common
# from lib.Players_model import players_Model
DIR = os.path.dirname(__file__)
DIR = DIR.replace('src','db/')
TAG = True
def Pre_chapter(user):
time.sleep(2)
title = """
... | [
"215379068@qq.com"
] | 215379068@qq.com |
c46422aa62a585b2fef203ad5395901b118ea3da | d1cd97730d5ed4f7bec147d237cfe9ac9b2f6134 | /app.py | 9ef7c1d9e2022174e85c07cdc30742e823d87014 | [] | no_license | tsungic/MVP-backend | b5354c6fb13bfdfbc33ad7d85b98b195c90a1be1 | 2c371f4a10e36799c8c26cac933b55caff86ff72 | refs/heads/master | 2023-04-01T20:35:46.341005 | 2021-04-14T22:17:31 | 2021-04-14T22:17:31 | 349,769,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,489 | py | from flask import Flask, request, Response
from flask_cors import CORS
import dbcreds
import mariadb
import json
import secrets
app = Flask(__name__)
CORS(app)
@app.route("/api/users", methods=["GET","POST","PATCH","DELETE"])
def users():
if request.method =="GET":
user_id = request.args.get("userId")
... | [
"you@example.com"
] | you@example.com |
cc20d5ddabeb4b62b1d598fca3a72d742feb2a74 | 202bb7c5e37d3f117315e8bba3bd21e84b48fe6b | /alpha/WHSZIWHEN11.py | 2ee339eed264849e5d11f95226f1fdd2cfbb9e8e | [] | no_license | haishuowang/work_whs | 897cd10a65035191e702811ed650061f7109b9fa | b6a17aefc5905ad9c11dba4d745591ed92b1e386 | refs/heads/master | 2020-07-03T10:30:14.231858 | 2020-06-09T08:47:18 | 2020-06-09T08:47:18 | 201,877,822 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 74,134 | py | import numpy as np
import pandas as pd
import os
import sys
from itertools import product, permutations, combinations
from datetime import datetime
import time
import matplotlib.pyplot as plt
from collections import OrderedDict
import sys
sys.path.append("/mnt/mfs/LIB_ROOT")
import open_lib.shared_paths.path as pt
fro... | [
"1612255875@qq.com"
] | 1612255875@qq.com |
d6f5168e7ed6ddd0d588ee89ae179faafdae37c6 | d78dfc5089717fc242bbd7097f507d811abb4260 | /USA/script.icechannel.Thevideome.settings/default.py | b7d904cce475928faec807af89e23a0002229f7a | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 169 | py | addon_id="script.icechannel.Thevideome.settings"
addon_name="iStream - Thevideome - Settings"
import xbmcaddon
addon = xbmcaddon.Addon(id=addon_id)
addon.openSettings()
| [
"ke.xiao@netxeon.com"
] | ke.xiao@netxeon.com |
57adbfd2865b7cf8540897ff6ca3685bbaf4dfb0 | 164457b943d0b426e9a5e2eb57779e4e37f2d1bb | /the_tale/accounts/workers/accounts_manager.py | 84d4482f67e8a0b8ffab01b81c7cb415dffd6c34 | [
"BSD-2-Clause-Views"
] | permissive | lshestov/the-tale | 64334fd99a442ad736d9e8a38e8f0fb52d0ebab6 | 6229edfec6420307975269be9926c68ecdefb930 | refs/heads/master | 2021-01-18T08:38:44.147294 | 2015-10-27T18:43:10 | 2015-10-27T18:43:10 | 50,228,827 | 0 | 0 | null | 2016-01-23T07:38:54 | 2016-01-23T07:38:54 | null | UTF-8 | Python | false | false | 3,166 | py | # coding: utf-8
import time
import datetime
from dext.settings import settings
from the_tale.common.utils.workers import BaseWorker
from the_tale.common import postponed_tasks
from the_tale.accounts.prototypes import AccountPrototype, RandomPremiumRequestPrototype
from the_tale.accounts.conf import accounts_settings... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
7cf3515e7f6034a2c7c8f4d75546e29fa79cc092 | 1e58c8aaff5bb1273caaa73c49c07fd61ebd4439 | /wavencoder/__init__.py | ff0dd47ac2d71605c97213e27e6d38be784f8314 | [
"MIT"
] | permissive | samsudinng/wavencoder | 9870d6dd86cb126b170c9a6af93acee4acbbd633 | a64e16444ed25b5491fd2ba0c9f1409671e12e5e | refs/heads/master | 2023-03-01T22:42:42.477643 | 2021-02-08T11:23:00 | 2021-02-08T11:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | __version__ = '0.0.6'
from wavencoder.models.wav2vec import Wav2Vec
from wavencoder.models.wav2vec2 import Wav2Vec2Model
from wavencoder.models.sincnet import SincNet, SincConvLayer
from wavencoder.models.lstm_classifier import LSTM_Classifier
from wavencoder.models.lstm_classifier import LSTM_Attn_Classifier
from w... | [
"shangethrajaa@gmail.com"
] | shangethrajaa@gmail.com |
70456061b62a6c44867abca2486de5c1e3cbbd30 | 2316ce8a21d44a5d09284968ef42530633dc10d2 | /sample_code/ep264/rev04/t.py | bb11896bd80b2ae0441665c1f237b272afbbc397 | [] | no_license | AlexanderWinkelmeier/explains | 160de2c41fc5fc0156b482b41f89644dc585c4f3 | d47ec53e384e4303a2d8e71fab9073a1a8d2d6bc | refs/heads/master | 2023-07-30T04:55:31.234482 | 2021-09-15T02:59:42 | 2021-09-15T02:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import os.path
import tempfile
SOME_FILE = 'foo.txt'
fd, temp_path = tempfile.mkstemp(dir=os.path.dirname(SOME_FILE))
try:
with open(fd, 'w') as f:
f.write('these are the new contents\n')
os.replace(temp_path, SOME_FILE)
except BaseException:
os.remove(temp_path)
raise
| [
"int3l@users.noreply.github.com"
] | int3l@users.noreply.github.com |
ac47410c081854dcc9bc0251f7925ae5e152c61f | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fv/poddhcpserverinfo.py | 578744b8cd584e1c2bc24ce6e7cb39c73bd5bc04 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 7,213 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
675e01ef775c7565dc433efce7f5f97e1b532ad7 | d5966d109ace494481513304439a0bd738565dc9 | /tornado/test/web_test.py | 137516fb99023461f1167ad5f9d98a13df903e2f | [
"Apache-2.0"
] | permissive | nottombrown/tornado | 33dc9ed845ae9288e2226d06f8a872f4880eb596 | d2b05aea0b68338ab21279ced867cb637df0ffae | refs/heads/master | 2021-01-17T22:04:25.014115 | 2011-08-04T18:08:44 | 2011-08-04T18:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,433 | py | from tornado.escape import json_decode, utf8, to_unicode, recursive_unicode, native_str
from tornado.iostream import IOStream
from tornado.template import DictLoader
from tornado.testing import LogTrapTestCase, AsyncHTTPTestCase
from tornado.util import b, bytes_type
from tornado.web import RequestHandler, _O, authenti... | [
"ben@bendarnell.com"
] | ben@bendarnell.com |
7ad34a71cf548ff1303f903e8c1a5ba7ad27e6e8 | 631b074ba6b901ba5fb709f8e24acb84a596e777 | /cinder/tests/api/openstack/volume/test_volumes.py | 9563989a91bfa3d21b06cacf38d01659d5bf1120 | [
"Apache-2.0"
] | permissive | matiu2/cinder | 5ee188a834eea06883103ab97cee50a9ee3a21bb | 1c52fb3041df5661756246705942c60b4b1448d5 | refs/heads/master | 2021-01-18T13:54:34.159533 | 2012-05-04T04:45:20 | 2012-05-04T04:45:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,490 | py | # Copyright 2013 Josh Durgin
# 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 a... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
0457cef64ea7b68406f6e46a7669f6fc1dce58d8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2518/49823/278350.py | 2cb366ad69dc313778213eda8c71db7c66cfe53f | [] | 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 | 407 | py | def al(a,b):
l=[]
a=sorted(a)
b=sorted(b)
p,r=0,0
for i in range(len(a)):
while(b[p]<a[i] and p<len(b)-1):
p+=1
if(p==0):
d=abs(b[p]-a[i])
else:
d=min(abs(a[i]-b[p-1]),abs(b[p]-a[i]))
r=max(r,d)
print(r)
if __name__ == '__main_... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
87d5ac6dbfe5558297a98172e06f7a77e461a57f | cb56e1554f43ef93b470019e5a36ddc26680d837 | /DjangoAyushh/first_site/first_site/wsgi.py | 2ae3b1b5a0a4a9042a3af49b19677cd72ff23d53 | [] | no_license | Ayush900/initiating-django | 6790ed4fde82a18af661922a7e3f7165a6d10b98 | ea7a2c3f3467dc92f229468fb3de274e1143a3c8 | refs/heads/master | 2020-07-05T20:52:05.169025 | 2019-08-16T18:14:49 | 2019-08-16T18:14:49 | 202,770,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for first_site 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/dev/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"ayush.mehrotra900@gmail.com"
] | ayush.mehrotra900@gmail.com |
3b368f4bde0884863f26ff8302e96f97e0254648 | 5897a1b176f9c404fe421c61342f20820f685c07 | /RIS/OSL/zbrush/normalMap.py | 0d231757d9fd9b6a6e7b2b9114f427cc59a996c7 | [] | no_license | NCCA/Renderman | d3269e0c7b5e58a69d8744051100013339516ad0 | ebf17298e0ee56899a3288a3ff8eb4c4a0f806e8 | refs/heads/master | 2023-06-09T07:51:29.251270 | 2023-05-25T11:13:37 | 2023-05-25T11:13:37 | 51,373,926 | 17 | 11 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | #!/usr/bin/python
import prman
# import the python functions
import sys
sys.path.append("../../common")
from functions import drawTeapot
import Obj
from Camera import Camera
from Vec4 import Vec4
from Transformation import *
import random
ri = prman.Ri() # create an instance of the RenderMan interface
filename = ... | [
"jmacey@bournemouth.ac.uk"
] | jmacey@bournemouth.ac.uk |
53e96ad958d483b7b85fb9c3119b9e98031ef73c | 922b6d67ca8dcc1573bddd0aa7193107f42b6207 | /dms/web/base.py | 4d5a1c7e76049df5a818300081908190a9e6437b | [
"MIT"
] | permissive | zhmsg/dms | 40c91ea3945fd8dfcd0b056f4bcf324774c4e88c | a1ae1430893d9dde8f45bba0e50818f0224fcd8a | refs/heads/master | 2023-09-03T23:00:44.615748 | 2023-08-25T00:13:59 | 2023-08-25T00:13:59 | 42,572,830 | 0 | 2 | MIT | 2022-07-06T19:54:32 | 2015-09-16T07:50:17 | JavaScript | UTF-8 | Python | false | false | 3,419 | py | # !/usr/bin/env python
# coding: utf-8
from flask import Blueprint, g, Response, jsonify, redirect
from flask_login import login_required
import functools
from flask_helper.view import View as OView
from dms.utils.log import getLogger
from dms.utils.manager import Explorer
__author__ = 'zhouhenglc'
class RegisterD... | [
"zhouhenglc@inspur.com"
] | zhouhenglc@inspur.com |
6dd5e90c13cbc8921188a2a55e954bfeb8c45d71 | 21b5ad37b812ed78799d4efc1649579cc83d32fb | /pro/migrations/0007_auto_20200222_1157.py | 4b4329dc3c21c4faddc276aeb4688a4472386e24 | [] | no_license | SaifulAbir/django-js-api | b6f18c319f8109884e71095ad49e08e50485bb25 | fbf174b9cde2e7d25b4898f511df9c6f96d406cf | refs/heads/master | 2023-02-12T16:09:21.508702 | 2021-01-14T09:05:15 | 2021-01-14T09:05:15 | 329,713,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # Generated by Django 3.0.3 on 2020-02-22 11:57
from django.db import migrations, models
import p7.validators
class Migration(migrations.Migration):
dependencies = [
('pro', '0006_merge_20200222_1117'),
]
operations = [
migrations.RenameField(
model_name='professional',
... | [
"rashed@ishraak.com"
] | rashed@ishraak.com |
0663ca2468470dd94deb42af8ca3dab1a2cc3333 | 8e97cb7c8668a9061683ea3ba893dab32029fac9 | /pytorch_toolkit/person_reidentification/data/datamanager.py | 75b80c905990d162e028c8e00d6e2abce522f5de | [
"Apache-2.0"
] | permissive | DmitriySidnev/openvino_training_extensions | e01703bea292f11ffc20d50a1a06f0565059d5c7 | c553a56088f0055baba838b68c9299e19683227e | refs/heads/develop | 2021-06-14T06:32:12.373813 | 2020-05-13T13:25:15 | 2020-05-13T13:25:15 | 180,546,423 | 0 | 1 | Apache-2.0 | 2019-04-15T13:39:48 | 2019-04-10T09:17:55 | Python | UTF-8 | Python | false | false | 5,895 | py | """
MIT License
Copyright (c) 2018 Kaiyang Zhou
Copyright (c) 2019 Intel Corporation
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
Unles... | [
"48012821+AlexanderDokuchaev@users.noreply.github.com"
] | 48012821+AlexanderDokuchaev@users.noreply.github.com |
6383995e35ee51c384da1285d358de91724811e2 | 2432996ac1615cd36d61f0feeff8a359d2b438d8 | /env/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-rdflib.py | 1ef29499af98b492b37a7bc902fb9532e1abc901 | [
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | Parveshdhull/AutoTyper | dd65d53ece7c13fbc1ead7ce372947483e05e2e3 | 7fabb30e15b770d790b69c2e4eaf9bbf5a4d180c | refs/heads/main | 2023-05-08T14:10:35.404160 | 2023-05-07T20:43:15 | 2023-05-07T20:43:15 | 315,415,751 | 26 | 18 | Apache-2.0 | 2023-05-07T20:43:16 | 2020-11-23T19:13:05 | Python | UTF-8 | Python | false | false | 539 | py | # ------------------------------------------------------------------
# Copyright (c) 2020 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE.GPL.txt, distributed with
# this software.
#
# SPD... | [
"parvesh.dhullmonu@gmail.com"
] | parvesh.dhullmonu@gmail.com |
cf1e3075185cefc817f86f6636ba6ca84b9a73ae | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve/devtools/script/behaviortools/clientdebugadaptors.py | 2a22a85a0875ed2b83664cddb9e4a59eb4130b2b | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,637 | py | #Embedded file name: eve/devtools/script/behaviortools\clientdebugadaptors.py
import logging
from brennivin.messenger import Messenger
import eve.common.script.net.eveMoniker as moniker
from eve.devtools.script.behaviortools.debugwindow import BehaviorDebugWindow
import uthread2
logger = logging.getLogger(__name__)
EVE... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
e60c607287bab75ad3c8bd40437cacd67838444e | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/streamanalytics/v20200301/input.py | 3a86e730433d5039270923b5be2f82279ac23e72 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 10,175 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
237f1bd2dc487fe60a3de9660c545f74da8c252b | c4702d1a06640555829b367852138cc93ba4a161 | /dym_report_other_receivable/report/dym_report_xls.py | e815ff128933ca57add0dc5c6cc764a60b2f11eb | [] | no_license | Rizalimami/dym | 0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26 | af1bcf7b77a3212bc8a8a0e41e6042a134587ed4 | refs/heads/master | 2020-04-08T10:56:43.605698 | 2018-11-27T06:44:08 | 2018-11-27T06:44:08 | 159,287,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,005 | py | import xlwt
from datetime import datetime
from openerp.osv import orm
from openerp.addons.report_xls.report_xls import report_xls
from openerp.addons.report_xls.utils import rowcol_to_cell, _render
from .dym_report import dym_report_other_receivable_print
from openerp.tools.translate import translate
import logging
_lo... | [
"rizal@portcities.net"
] | rizal@portcities.net |
f410057cae7ae8e1339c8dac17c74dc88a9d8708 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /decoding/GAD/fairseq/data/audio/raw_audio_dataset.py | 1d92e4966bddce95d492eae411952a4a9ca2c9bd | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 5,267 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
import os
import sys
import numpy as np
import torch
import torch.nn.functional as F
from .. import FairseqDataset
logger ... | [
"tage@microsoft.com"
] | tage@microsoft.com |
8a0079e3aa82f90784eb504cb7938500429a6149 | 1221b8856b9faddb5bcf7beebbfed119ead4704e | /doxygen/test/test_contents.py | 6b93c0b220761428511142961e174786410322ed | [
"MIT"
] | permissive | mikezackles/m.css | 985582ac54b6a9d2af3ded372bf9270f000381e7 | 30bd87036d10b0590f0589dbbccbd283b710a711 | refs/heads/master | 2020-03-29T01:19:01.434881 | 2019-03-03T21:23:22 | 2019-03-03T21:23:22 | 149,382,787 | 0 | 0 | MIT | 2018-09-19T02:47:54 | 2018-09-19T02:47:54 | null | UTF-8 | Python | false | false | 20,832 | py | #
# This file is part of m.css.
#
# Copyright © 2017, 2018 Vladimír Vondruš <mosra@centrum.cz>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including witho... | [
"mosra@centrum.cz"
] | mosra@centrum.cz |
5bd1c4c635fe32c3791141e9bc42704f35a43e4b | 06ae8168b7067c8f77f06a48a22d158af1657651 | /models.py | 98bc2e3f49a110d63721b232a0145760a06b1461 | [] | no_license | Jiangjao/teaProject | 61e3cab41fab4b1aa8d2b1cfd6c6337c01196497 | 9f14d59d974bf82158a43d19c42b977b393857d2 | refs/heads/master | 2023-08-12T11:38:56.561815 | 2021-10-11T06:30:17 | 2021-10-11T06:30:17 | 347,795,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | from django.db import models
class Chemistry(models.Model):
cid = models.IntegerField(blank=True, null=True)
structure = models.CharField(max_length=255, blank=True, null=True)
molecularformula = models.CharField(primary_key=True, max_length=255)
molecularweight = models.CharField(max_length=255, blan... | [
"918718278@qq.com"
] | 918718278@qq.com |
b246744037954e4d56a3d62e35f360a31c14f200 | 787022de03a2dd6998c1518673830395b389e3df | /migration/migrator/migrations/system/20190708143708_add_submitty_admin_json.py | bbd3ab8fcc84b2fbfb1be63377cd4a2f875ea629 | [
"BSD-3-Clause",
"MIT"
] | permissive | Submitty/Submitty | e6b8731656291a025aa77f928eb067bc9a307540 | b223d9e952bcdb8664721a55593bc75e0e3c8c4f | refs/heads/main | 2023-08-31T23:56:11.291752 | 2023-08-31T19:12:18 | 2023-08-31T19:12:18 | 16,236,118 | 592 | 727 | BSD-3-Clause | 2023-09-13T05:36:08 | 2014-01-25T17:43:57 | PHP | UTF-8 | Python | false | false | 715 | py | """
Migration for the Submitty system.
adds submitty admin json
"""
from pathlib import Path
import shutil
import json
import os
def up(config):
submitty_admin_filename = str(Path(config.submitty['submitty_install_dir'], 'config', 'submitty_admin.json'))
if not os.path.isfile(submitty_admin_filename):
... | [
"bmcutler@users.noreply.github.com"
] | bmcutler@users.noreply.github.com |
e11c58e1dcc7848596649d5524206b7ba632f80d | a732c1380c8dc829df5ba57b67456a9b603b0cf4 | /model.py | b9386587de7cded1f73f81a5ce43913598a42395 | [] | no_license | ilkaynazli/job-search-planner | 1266433ce6bb8c249c65dfcdb1d01e4a8d97095d | 6ac5f3c82de1c33d564eea627468e54c99daf968 | refs/heads/master | 2020-04-15T07:59:26.225728 | 2019-01-19T05:16:40 | 2019-01-19T05:16:40 | 164,510,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,025 | py | """
the database model of job search planner web app
"""
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
"""Import SQLAlchemy object from flask_sqlalchemy library and make the
connection to PostgreSQL"""
db = SQLAlchemy() #create an instance of SQLAlchemy object
class User(db.Mode... | [
"ilkayncelik@gmail.com"
] | ilkayncelik@gmail.com |
cad6221319320a99ab923752183f8b1cd72f2d3c | bfdab27f224d9cac02e319fe55b53172fbf8d1a2 | /motion_editor_core/data/atlas_old/positions/arm/vi_r_arm16.py | 5b8f8c2d722682feff71311b3a7e3510d0fcdcca | [] | no_license | tu-darmstadt-ros-pkg/motion_editor | c18294b4f035f737ff33d1dcbdfa87d4bb4e6f71 | 178a7564b18420748e1ca4413849a44965823655 | refs/heads/master | 2020-04-06T12:37:30.763325 | 2016-09-15T14:11:48 | 2016-09-15T14:11:48 | 35,028,245 | 2 | 3 | null | 2015-05-05T13:20:27 | 2015-05-04T10:18:22 | Python | UTF-8 | Python | false | false | 69 | py | { 'vi_r_arm16': [1.9635, -1.7167, 0.2953, -1.4274, -0.132, -0.8095]}
| [
"martin.sven.oehler@gmail.com"
] | martin.sven.oehler@gmail.com |
402e1a0cedc16d41ef05c7910420031fb8ab7d1d | 872f24199d847f05ddb4d8f7ac69eaed9336a0d5 | /gcwrap/python/scripts/plotcomp.py | 4f41b9a4beaac8ff3b4fc52744c0b37fdf46759a | [] | no_license | schiebel/casa | 8004f7d63ca037b4579af8a8bbfb4fa08e87ced4 | e2ced7349036d8fc13d0a65aad9a77b76bfe55d1 | refs/heads/master | 2016-09-05T16:20:59.022063 | 2015-08-26T18:46:26 | 2015-08-26T18:46:26 | 41,441,084 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,008 | py | from taskinit import casalog, metool, qa, smtool, tbtool
from simutil import simutil
import pylab as pl
import os
import shutil
import tempfile
import matplotlib
def plotcomp(compdict, showplot=True, wantdict=False, symb=',',
include0amp=False, include0bl=False, blunit='', bl0flux=0.0):
"""
Given... | [
"darrell@schiebel.us"
] | darrell@schiebel.us |
ba9793454b72cf6087c048cea652467469da0dc2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_vagrant.py | 25425a414477258cae648761022543eca0a49624 | [
"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 | 336 | py |
#calss header
class _VAGRANT():
def __init__(self,):
self.name = "VAGRANT"
self.definitions = [u'a person who is poor and does not have a home or job: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
retur... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d8725cc5ae912b35641e0abbed0cff0095ee939b | a1119965e2e3bdc40126fd92f4b4b8ee7016dfca | /trunk/node_monitor/node_monitor_log_parser.py | babf691c9d4f4de5f349def2f23d6aa61954ef67 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SeattleTestbed/attic | 0e33211ddf39efdbcf5573d4fc7fa5201aa7310d | f618a962ce2fd3c4838564e8c62c10924f5df45f | refs/heads/master | 2021-06-10T23:10:47.792847 | 2017-05-15T12:05:43 | 2017-05-15T12:05:43 | 20,154,061 | 0 | 1 | null | 2014-10-16T17:21:06 | 2014-05-25T12:34:00 | Python | UTF-8 | Python | false | false | 22,218 | py | """
<Program Name>
node_monitor_log_parser.py
<Started>
April 14, 2011
<Author>
Steven Portzer
<Purpose>
Loads and processes logs created by node_monitor.py.
<Notes>
The methods in this library use lists and dictionaries containing the
following two data structures:
event: a dict which correspond t... | [
"USER@DOMAIN"
] | USER@DOMAIN |
9bc4cb5d38e560f98cf8e7fd5812eddb7adfb613 | b6c09a1b87074d6e58884211ce24df8ec354da5c | /1637. 两点之间不包含任何点的最宽垂直面积.py | ca285a4325e0ec01f5b84e4b3523ea887d7501c8 | [] | no_license | fengxiaolong886/leetcode | a0ee12d67c4a10fb12d6ca4369762ab5b090cab1 | 4c0897bc06a297fa9225a0c46d8ec9217d876db8 | refs/heads/master | 2023-03-18T22:16:29.212016 | 2021-03-07T03:48:16 | 2021-03-07T03:48:16 | 339,604,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """
给你 n 个二维平面上的点 points ,其中 points[i] = [xi, yi] ,请你返回两点之间内部不包含任何点的 最宽垂直面积 的宽度。
垂直面积 的定义是固定宽度,而 y 轴上无限延伸的一块区域(也就是高度为无穷大)。 最宽垂直面积 为宽度最大的一个垂直面积。
请注意,垂直区域 边上 的点 不在 区域内。
"""
def maxWidthOfVerticalArea(points):
points.sort()
res = 0
n = len(points)
for i in range(1, n):
# print(points[i][0])
... | [
"xlfeng886@163.com"
] | xlfeng886@163.com |
ade449d196c2f24f481058c91a30d29132d82299 | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1_service_reference.py | 819f741043d5bbd68d7c07a9e9013f4996efcf56 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
97079f55849044be1ccbccb9e0557c71c60e4b04 | ba5e590578a9be8f8942eade9a8466872bf4c2bb | /hezkuntza/wizard/upload_education_teacher.py | 27fb3fab5f64e08e947cc0437d20f949f21eb84e | [] | no_license | babarlhr/hezkuntza_education-12.0 | e0c57285651659906fddf07701c60809f77fa9de | 6b0a75638a667961f7d3fabb294307ddc9a82dd5 | refs/heads/master | 2022-04-06T08:01:25.099591 | 2019-12-13T16:19:39 | 2019-12-13T16:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,164 | py | # Copyright 2019 Oihane Crucelaegui - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from ._common import _read_binary_file, _format_info,\
_convert_time_str_to_float
from eagle import _, exceptions, fields, models
from datetime import datetime
class UploadEducationTeacher(models.... | [
"rapidgrps@princegroup-bd.com"
] | rapidgrps@princegroup-bd.com |
c1fe45b3e7445a6563381aa858ccbee35fc7fb33 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007/programming/languages/perl/XML-SAX/actions.py | 5573fe066768c8ff99b6aad789159fe54b90d0fb | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import pisitools
from pisi.actionsapi import perlmodules
def setup():
perlmodules.configure()
def build()... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
9cb597f1e7850ac04cafc87043fdb422489ce144 | 335944885d937316236102a80f76a696b48b51e1 | /scripts/segmentation_pipeline/lifted_features.py | d07d668c6b6cd5f4aa9b74a9dc94ef84ed3125cd | [
"MIT"
] | permissive | chaubold/nifty | b33153c3ba2dd7907c1f365b76a31471f9313581 | c351624a7f14278eb241fb730f44bdd275563dec | refs/heads/master | 2021-01-11T17:43:23.443748 | 2017-01-22T12:48:21 | 2017-01-22T12:48:21 | 79,821,703 | 0 | 3 | null | 2017-12-22T10:47:30 | 2017-01-23T16:16:55 | C++ | UTF-8 | Python | false | false | 7,996 | py | import vigra
import nifty
import nifty.graph
import nifty.graph.rag
import nifty.graph.agglo
import numpy
import h5py
import sys
nrag = nifty.graph.rag
nagglo = nifty.graph.agglo
from reraise import *
from tools import *
@reraise_with_stack
def multicutFromLocalProbs(raw, rag, localProbs, liftedEdges):
u = ... | [
"thorsten.beier@iwr.uni-heidelberg.de"
] | thorsten.beier@iwr.uni-heidelberg.de |
b5b422227dabc1bfe8fc6b9334c87ba02f816f48 | 5abdbe26ad89d50761e505d02c35ea184d79f712 | /users/views.py | a97471d6b3ea8fef81e3388ad3b5f6e8a24fd6db | [] | no_license | liyongjun-brayan/xuexi | 5c00abaeadb46caa4a63fdcd316fabd2d1ebdb15 | b5356a5115b34dc1d5f627215aef780d7d5a0693 | refs/heads/master | 2021-06-25T10:25:12.602434 | 2019-08-27T02:27:23 | 2019-08-27T02:27:23 | 204,632,981 | 1 | 0 | null | 2021-06-10T21:54:15 | 2019-08-27T06:16:39 | Python | UTF-8 | Python | false | false | 1,128 | py | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import UserCreationForm
def logout_view(request):
"""注销用户"""
logou... | [
"johndoe@example.com"
] | johndoe@example.com |
823fbcd52596c818081a713b22fef9460caaa729 | 0abcbbac1efc95877f159c65d6f898e749b1bf09 | /MyMusicApp/blog/migrations/0002_auto_20190913_2052.py | ccada31f79d7ce09bbd01e6324ea7b32fcd3506e | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"bzip2-1.0.6",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"Python-2.0",
"TCL",
"LicenseRef-scancod... | permissive | kells4real/MusicApp | 5055e465b46c39e0687c98b7a8adbb2203ac9156 | 4e4ba065c4f472243413551f63dc4e9eddf7f4a7 | refs/heads/master | 2022-10-07T15:49:38.406106 | 2019-10-24T19:55:52 | 2019-10-24T19:55:52 | 197,428,434 | 0 | 1 | MIT | 2022-10-02T02:23:26 | 2019-07-17T16:48:16 | Python | UTF-8 | Python | false | false | 637 | py | # Generated by Django 2.2.2 on 2019-09-13 19:52
import blog.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='image',
... | [
"kells4real@gmail.com"
] | kells4real@gmail.com |
ef65cb5846d5c0c185b517fe86785d6f5e79bb80 | 84290c584128de3e872e66dc99b5b407a7a4612f | /Writing Functions in Python/More on Decorators/Print the return type.py | 5e5dcd69342c2f3687cdaafabdcedb9d3637648a | [] | no_license | BautizarCodigo/DataAnalyticEssentials | 91eddc56dd1b457e9e3e1e3db5fbbb2a85d3b789 | 7f5f3d8936dd4945ee0fd854ef17f04a04eb7b57 | refs/heads/main | 2023-04-11T04:42:17.977491 | 2021-03-21T19:05:17 | 2021-03-21T19:05:17 | 349,784,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | def print_return_type(func):
# Define wrapper(), the decorated function
def wrapper(*args, **kwargs):
# Call the function being decorated
result = func(*args, **kwargs)
print('{}() returned type {}'.format(
func.__name__, type(result)
))
return result
# R... | [
"78171986+BautizarCodigo@users.noreply.github.com"
] | 78171986+BautizarCodigo@users.noreply.github.com |
672ab02fe434eb1a41749a43cc63853910b29c5f | a19275ff09caf880e135bce76dc7a0107ec0369e | /catkin_ws/src/robot_python/nodes/send_single_cmd_gaebo_node.py | 0e95c32d3222631780ea123c1986f759e3d06a86 | [] | no_license | xtyzhen/Multi_arm_robot | e201c898a86406c1b1deb82326bb2157d5b28975 | 15daf1a80c781c1c929ba063d779c0928a24b117 | refs/heads/master | 2023-03-21T14:00:24.128957 | 2021-03-10T12:04:36 | 2021-03-10T12:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,747 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
#本文档用于发送关节角度
#程序员:陈永厅
#版权:哈尔滨工业大学
#日期:初稿:2019.11.6
import rospy
from std_msgs.msg import Float64MultiArray
from std_msgs.msg import Float64
import os
import numpy as np
from robot_python import FileOpen
def talker():
#建立节点
pub1 = rospy.Publisher("armc/joint1_effort_... | [
"qyz146006@163.com"
] | qyz146006@163.com |
ff78462a33b2ecb3dd40c291fb4d19cfd65795d3 | 50639b8c539b9d69539f9b9016527f831cee213d | /LC/LC17-LetterCombinationsOfPhoneNumber.py | 2031ec7bbc8fc07ceae9ae08c38a89b1b4edec00 | [] | no_license | yaelBrown/pythonSandbox | fe216b2c17d66b6dde22dd45fe2a91f1315f2db4 | abac8cabeb7a2b4fbbe1fc8655f7f52a182eaabe | refs/heads/master | 2023-08-10T09:42:26.249444 | 2023-08-03T21:54:37 | 2023-08-03T21:54:37 | 194,980,832 | 0 | 1 | null | 2023-05-02T18:01:41 | 2019-07-03T04:42:16 | Jupyter Notebook | UTF-8 | Python | false | false | 800 | py | """
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.
A mapping of digits to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters.
"""
class Solution:
def let... | [
"yaelrbrown@gmail.com"
] | yaelrbrown@gmail.com |
60c2e8e9ff8c5b9bd21b22fa945733c893bb0522 | 3e0e674e07e757dfb23e18ba30dbb440c0966848 | /树二.py | d983ceabbf739253db8b0bd723fcaccfa61ffb57 | [] | no_license | Jasonmes/Algorithm--Advanced | 0bfaa844127ff146997d2dd19b4943be29467fad | 3f29b07b6d55197c5d21f44a474f6e96021cd5b0 | refs/heads/master | 2020-03-27T12:34:49.537881 | 2018-08-29T06:26:38 | 2018-08-29T06:26:38 | 146,554,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Jason Mess
Tree = [['a', 'b'], ['c'], ['b', ['e', 'f']]]
print(Tree[0][1])
print(Tree[2][1][0])
| [
"wow336@163.com"
] | wow336@163.com |
7e506f8c9cc581c152b857ffffa4687b27b09798 | eb9c56cff249c767d351a6a18ebd100e8343b874 | /algorithms/OR_ELM.py | c1d4e204c239bbd9b2ed953a2abcb8458a0343df | [] | no_license | lyzl2010/Online-Recurrent-Extreme-Learning-Machine | cb95dc406f2c2b67adec5cde626600178bcadf5d | 5597402e6970a16d09537df3d38e60ac96229fae | refs/heads/master | 2020-05-23T06:10:25.112686 | 2018-08-02T02:26:23 | 2018-08-02T02:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,459 | py | # ----------------------------------------------------------------------
# Copyright (c) 2017, Jin-Man Park. All rights reserved.
# Contributors: Jin-Man Park and Jong-hwan Kim
# Affiliation: Robot Intelligence Technology Lab.(RITL), Korea Advanced Institute of Science and Technology (KAIST)
# URL: http://rit.kaist.ac.... | [
"jmpark@rit.kaist.ac.kr"
] | jmpark@rit.kaist.ac.kr |
6020e117613f6469e3277ef47d4851fe57e51de7 | f64aaa4b0f78774464033148290a13453c96528e | /generated/intermediate/ansible-module-sdk/azure_rm_eventgrideventsubscription_info.py | 5c9b8504415906ae504d64819ed9b7b0e9b86732 | [
"MIT"
] | permissive | audevbot/autorest.cli.debug | e8996270a6a931f243532f65782c7f8fbb1b55c6 | a507fb6e2dd7826212537f27d583f203aac1c28f | refs/heads/master | 2020-06-04T05:25:17.018993 | 2019-08-27T21:57:18 | 2019-08-27T21:57:18 | 191,876,321 | 0 | 0 | MIT | 2019-08-28T05:57:19 | 2019-06-14T04:35:39 | Python | UTF-8 | Python | false | false | 17,488 | py | #!/usr/bin/python
#
# Copyright (c) 2019 Zim Kalinowski, (@zikalino)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"audevbot@microsoft.com"
] | audevbot@microsoft.com |
6ddae08c21df8c42e44f5e6d4404af25f79849a0 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/64_2.py | 5b45ab1e95ee997b47876fb571f3e9db42c2eeed | [] | 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,023 | py | Python program to print Calendar without calendar or datetime module
Given the month and year. The task is to show the calendar of that month and
in the given year without using any module or pre-defined functions.
**Examples:**
**Input :**
mm(1-12) :9
yy :2010
... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
243b00fb792df0d908725a77d369f7a886e958ca | 7319bdc1aa1edd9e37424da47264882753dda919 | /monitor_nomina.py | fde617e7fa6aa3fb079d6c0dc9c7e6ee000411ae | [] | no_license | njmube/satconnect | 4ff81ac132811d2784d82a872be34590f53021db | de421f546a6f7f4cc5f247d1b2ba91ac272bdcb9 | refs/heads/master | 2023-03-18T12:58:18.379008 | 2017-10-24T07:14:05 | 2017-10-24T07:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # -*- coding: utf-8 -*-
from LibTools.filesystem import Carpeta
from slaves import SentinelNomina
import settings
if __name__ == '__main__':
carpeta = Carpeta(settings.folder_nomina)
sentinela = SentinelNomina(carpeta)
sentinela.start_Monitoring()
| [
"="
] | = |
7091475a03d37a18e9d953f65307c93e950ce3ad | fee71dd79c16f8e4aa4be46aa25863a3e8539a51 | /ear/core/bs2051.py | 058eefc981611aa995294b0783b491c5ba08e367 | [
"BSD-3-Clause-Clear"
] | permissive | ebu/ebu_adm_renderer | d004ed857b3004c9de336426f402654779a0eaf8 | ef2189021203101eab323e1eccdd2527b32a5024 | refs/heads/master | 2023-08-09T09:13:06.626698 | 2022-12-07T12:22:39 | 2022-12-07T12:22:39 | 123,921,945 | 61 | 13 | BSD-3-Clause-Clear | 2023-08-30T17:17:05 | 2018-03-05T13:15:36 | Python | UTF-8 | Python | false | false | 1,791 | py | import pkg_resources
from ..compatibility import load_yaml
from .geom import PolarPosition
from .layout import Channel, Layout
def _dict_to_channel(d):
position = PolarPosition(azimuth=d["position"]["az"],
elevation=d["position"]["el"],
distance=1.0)
... | [
"tom@tomn.co.uk"
] | tom@tomn.co.uk |
bb98f35adc8e0f2ec79f4ea7a0b2314a9ec8bec0 | 0a85e9ecb51c89110794aeb399fc3ccc0bff8c43 | /InterviewCake/Practice Problems/reverse_string_inPlace.py | 482b60e1d1415f53519182dd35b2f0e7cd6af001 | [] | no_license | jordan-carson/Data_Structures_Algos | 6d246cd187e3c3e36763f1eedc535ae1b95c0b18 | 452bb766607963e5ab9e39a354a24ebb26ebaaf5 | refs/heads/master | 2020-12-02T23:19:11.315890 | 2020-09-15T01:23:29 | 2020-09-15T01:23:29 | 231,147,094 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py |
STRING = ['a', 'b', 'c', 'd']
def reverse_string(string_list):
left_index = 0
right_index = len(string_list) - 1
while left_index < right_index:
string_list[left_index], string_list[right_index] = \
string_list[right_index], string_list[left_index]
left_index += 1
r... | [
"jordanlouiscarson@gmail.com"
] | jordanlouiscarson@gmail.com |
7b35ac2384529e8bb902194f56b1d0d824520edc | 016109b9f052ffd037e9b21fa386b36089b05813 | /hashP4.py | 559f024f058f63f9e587e9c5a8b7a38c51b5ec47 | [] | no_license | nsshayan/DataStructuresAndAlgorithms | 9194508c5227c5c8c60b9950917a4ea8da8bbab2 | 2f7ee1bc8f4b53c35d1cce62e898a9695d99540a | refs/heads/master | 2022-09-29T21:15:33.803558 | 2022-09-08T17:14:59 | 2022-09-08T17:14:59 | 73,257,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | A,k = map(int,raw_input().rstrip().split(" "))
nos = map(int,raw_input().rstrip().split(" "))
hashMap = [0 for y in range(1000002)]
for i in range(A):
hashMap[nos[i]] += 1
left = 0
right = 1000001
flag = 0
while left < right:
if hashMap[left] == 0 or hashMap[right]==0:
while hashMap[left]==0:
... | [
"nsshayan89@gmail.com"
] | nsshayan89@gmail.com |
1628b9d704c430771ffe07895f60f69d5d03c21c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nntwelv.py | 4e1af148e299d47bb87a0be2b829ebcc80cee86d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 2,600 | py | ii = [('CookGHP3.py', 8), ('LyelCPG2.py', 4), ('MarrFDI.py', 2), ('RogePAV2.py', 11), ('CoolWHM2.py', 20), ('KembFFF.py', 1), ('GodwWSL2.py', 22), ('RogePAV.py', 4), ('SadlMLP.py', 6), ('WilbRLW.py', 15), ('WilbRLW4.py', 9), ('RennJIT.py', 15), ('ProuWCM.py', 4), ('AubePRP2.py', 28), ('CookGHP.py', 6), ('ShawHDE.py', 6... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
2d04eb4a6d7119cd114da0714ffeaa23551be0a1 | ad5ad404d24f1ef195d069b2e9d36b1a22cfd25d | /kde/applications/kiten/kiten.py | 68d4236f5c283e083b03af733ec7b7b92ed78a0d | [
"BSD-2-Clause"
] | permissive | arruor/craft-blueprints-kde | 6643941c87afd09f20dd54635022d8ceab95e317 | e7e2bef76d8efbc9c4b84411aa1e1863ac8633c1 | refs/heads/master | 2020-03-22T17:54:38.445587 | 2018-07-10T11:47:21 | 2018-07-10T11:47:21 | 140,423,580 | 0 | 0 | null | 2018-07-10T11:43:08 | 2018-07-10T11:43:07 | null | UTF-8 | Python | false | false | 1,228 | py | import info
class subinfo(info.infoclass):
def setTargets(self):
self.versionInfo.setDefaultValues()
self.description = "Kiten"
def setDependencies(self):
self.runtimeDependencies["virtual/base"] = "default"
self.buildDependencies["kde/frameworks/extra-cmake-modules"] = "defa... | [
"vonreth@kde.org"
] | vonreth@kde.org |
7c5e77e8e8708914b94c95c7da9fc3574ad25c8c | a14795a79fd8f39cede7fa5eb86f9717b5c289c2 | /backend/course/api/v1/serializers.py | 977b3866deffb183b0133225485e9b022f8b7e3e | [] | no_license | crowdbotics-apps/dearfuturescientist-21123 | fcdbe95a9cd9e8713198b6accbeeb56aa5b0b2d4 | 5b282411ebaf39580b938f6678afc8a36e34aba4 | refs/heads/master | 2022-12-30T20:23:25.888830 | 2020-10-05T19:00:56 | 2020-10-05T19:00:56 | 301,510,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | from rest_framework import serializers
from course.models import (
Recording,
Event,
Subscription,
Course,
Group,
Module,
PaymentMethod,
SubscriptionType,
Enrollment,
Lesson,
Category,
)
class LessonSerializer(serializers.ModelSerializer):
class Meta:
model = Le... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
94495ae9bda52bd44a846dc64ca184a3dab2436d | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/KISS/testcase/firstcases/testcase9_006.py | 61760f5dab43c2ef13a77980e6ed785b691254ad | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
263ca80ed3ebdcc465692fef40cd71b494ac004c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03807/s835726532.py | c603899438bd501bb5871b424daa8724dfe35dfc | [] | 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 | 164 | py | N = int(input())
a = list(map(int,input().split()))
odd = 0
for i in range(N):
if a[i] % 2:
odd += 1
if odd % 2:
print('NO')
else:
print('YES') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fcb2745a3b28acb9bdab55a49b61a805e5d2198f | 55493112595d303d39b90ca9112e1d0a52f435e4 | /WorkforceManagement/views/Computer_View.py | 4fc447fa4d1e6adaa0a611f92c7069d1ab909d56 | [] | no_license | NSS-Spontaneous-Spoonbills/Sprint2 | a06c2ea08dbe58289984591b5ef412242924f86f | 7fd603ee531556b32b100c5a9f109b0e9207f369 | refs/heads/master | 2020-03-25T11:38:55.449223 | 2018-08-13T21:00:35 | 2018-08-13T21:00:35 | 143,741,505 | 0 | 1 | null | 2018-08-13T21:26:08 | 2018-08-06T14:38:30 | Python | UTF-8 | Python | false | false | 1,944 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from WorkforceManagement.models import Computer
from WorkforceManagement.forms import *
def Computer_List_View(request):
"""Displays all computers in the database
Author: Erin Meaker
"""
computers = Comp... | [
"erinmeaker@gmail.com"
] | erinmeaker@gmail.com |
0f20818aacacd277b492468e80b7128771cc7584 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/1704.py | 2ef79a2cad74434c186149c67d373ceeab96e152 | [] | 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 | 837 | py | def areRecycled(number1, number2):
recycled = False
numero1 = number1
for i in range(len(number2)):
numero1.insert(0,numero1.pop())
if numero1 == number2:
return True
return False
archi = open("C-small-attempt2.in","r")
cant = open("output.dat","w")
cases = int(archi.r... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4d7ab7bfcefd8572eb06e3978ebf7097d6c4a4f4 | 232fc2c14942d3e7e28877b502841e6f88696c1a | /dizoo/multiagent_particle/config/cooperative_navigation_collaq_config.py | 59f41109f0f514f61ca8866df2a01ca581003b23 | [
"Apache-2.0"
] | permissive | shengxuesun/DI-engine | ebf84221b115b38b4b3fdf3079c66fe81d42d0f7 | eb483fa6e46602d58c8e7d2ca1e566adca28e703 | refs/heads/main | 2023-06-14T23:27:06.606334 | 2021-07-12T12:36:18 | 2021-07-12T12:36:18 | 385,454,483 | 1 | 0 | Apache-2.0 | 2021-07-13T02:56:27 | 2021-07-13T02:56:27 | null | UTF-8 | Python | false | false | 2,129 | py | from easydict import EasyDict
n_agent = 5
num_landmarks = n_agent
collector_env_num = 4
evaluator_env_num = 2
cooperative_navigation_collaq_config = dict(
env=dict(
n_agent=n_agent,
num_landmarks=num_landmarks,
max_step=100,
collector_env_num=collector_env_num,
evaluator_env... | [
"niuyazhe@sensetime.com"
] | niuyazhe@sensetime.com |
984769b8bfd917b7f3a450664dda8ca833caabdc | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /components/safe_browsing/content/web_ui/DEPS | c4dfe28ac40a5b9fd60086f5f0bb2d45f1b6d99f | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 409 | include_rules = [
"+components/enterprise/common/proto/connectors.pb.h",
"+components/grit/components_resources.h",
"+components/password_manager/core/browser/hash_password_manager.h",
"+components/user_prefs",
"+components/safe_browsing/core/proto/csd.pb.h",
"+components/strings/grit/components_strings.h",... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
699b7062a1c9a0e705a481a5c8cf42e5a18dc7f6 | ef20884169d10ec9ac4d1d3b77ee35245d248294 | /practice/first_step_with_tensorflow/kmean_create_data.py | b95cc97c8c9d36f85fbdcbe9af721f29fd09ec7d | [] | no_license | heaven324/Deeplearning | 64016671879cdf1742eff6f374cfb640cfc708ae | a7a8d590fa13f53348f83f8c808538affbc7b3e8 | refs/heads/master | 2023-05-05T08:54:27.888155 | 2021-05-22T08:25:47 | 2021-05-22T08:25:47 | 188,010,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import numpy as np
num_points = 2000
vectors_set = []
for i in range(num_points):
if np.random.random() > 0.5:
vectors_set.append([np.random.normal(0.0, 0.9), np.random.normal(0.0, 0.9)])
else:
vectors_set.append([np.random.normal(3.0, 0.5), np.random.normal(1.0, 0.5)])
# 난수 생성 확인
#print(vect... | [
"wjdtjdgh2005@gmail.com"
] | wjdtjdgh2005@gmail.com |
83c63b60c22628725f344b1bf4635e30bbf5aae9 | 577fd6f5ce00ba4b530937e84f3b426b30cd9d08 | /Checkiolearn/Polygon/sun_angle.py | ecd226f204d9bf718eb6cd5d5451c14c7f50b0f1 | [] | no_license | YxiangJ/Python | 33e2d0d4c26ce35ccd3504b73de15e45adb6946c | bcb1a0ace39fbcbe868a341652085c0ddf307c17 | refs/heads/master | 2018-09-24T08:24:13.692535 | 2018-06-07T01:11:00 | 2018-06-07T01:11:00 | 126,120,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def sun_angle(time):
# replace this for solution
l = time.split(':')
result = (int(l[0]) - 6) * 15 + int(l[1]) / 4
if int(l[0]) > 18 or int(l[0]) < 6:
return "I don't see the sun!"
else:
return result
if __name__ == '__main__':
print("Example:")
print(sun_angle("07:00"))
... | [
"284953505@qq.com"
] | 284953505@qq.com |
c14d81b13ff0bfca027e09587f8f586914771894 | 8051c715e86095c1a0f2d6dcee78150417562d00 | /app/api/response_api.py | 8ea2f772957ae7aa5d8b6a8b84bed6bcac25e956 | [
"BSD-3-Clause"
] | permissive | minkione/Apfell | 45bd47249afa59389ab8237558c52d3f083cae29 | 096b6524c44b0673f11d18bd2388193d074380d6 | refs/heads/master | 2020-03-28T12:22:37.741190 | 2018-09-10T02:42:06 | 2018-09-10T02:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | from app import apfell, db_objects
from sanic.response import json
from app.database_models.model import Task, Response
import base64
from sanic_jwt.decorators import protected, inject_user
from app.api.file_api import create_filemeta_in_database_func, download_file_to_database_func
import json as js
# This gets all ... | [
"codybthomas@gmail.com"
] | codybthomas@gmail.com |
e3e25ce23370e068912110921559d559bca593e6 | 1a5c27bc6e2d39a258dd517d2dc3570c13e42a70 | /flaskext/utils.py | ff2d1dcf02a01b52fcfe2121292f09a4dde4989a | [
"MIT"
] | permissive | fumingshih/flask-peewee | 0f8e169ca7ab2d7ab437a5620a2ff2f082d668dd | 4f44ec5583abba5099880a2a2af76404223a594b | refs/heads/master | 2021-01-18T11:00:19.120283 | 2011-11-09T14:36:02 | 2011-11-09T14:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | import math
import random
import re
import sys
from hashlib import sha1
from flask import abort, request, render_template
from peewee import Model, DoesNotExist, SelectQuery
def get_object_or_404(query_or_model, **query):
try:
return query_or_model.get(**query)
except DoesNotExist:
abort(404)... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
ba897465ddc7bea4ef33e45bb292ec6dcdea5381 | 392495a85f77e72e7c3562576aa362d7860c17ee | /backend/setup.py | 244a73c8d40ebb0836da93cb7d08757fdc76199d | [] | no_license | messa/aiohttp-nextjs-graphql-demo-forum | ef51c26720a6f67a36f08d5caeba4e2d9bef0332 | 38fb66d011faec881b184e132aa7347517ee99e6 | refs/heads/master | 2020-04-16T22:38:08.171305 | 2019-02-04T02:18:35 | 2019-02-04T02:18:35 | 165,976,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='forum-backend',
version='0.0.1',
packages=find_packages(exclude=['doc', 'tests*']),
install_requires=[
'aiohttp',
'aiohttp-graphql',
'pyyaml',
],
entry_points={
'console_scripts': [
... | [
"petr.messner@gmail.com"
] | petr.messner@gmail.com |
410aa5e90d452ce0c150cc25c78df4ee555a14c6 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc094/arc095_a/7981214.py | 7f6c3dcab7bd1fb3884adf64c039c5841bf608cf | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | N=int(input())
a=list(map(int,input().split()))
b=sorted(a)
ans=[b[N//2],b[(N//2) -1]]
for i in range(N):
if a[i] >= ans[0]:
print(ans[1])
else:
print(ans[0])
| [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
8e8516567da050393095124d42c7601023b8cc02 | 70eef679af91823579963dfb33eb94358353da87 | /evennia/utils/inlinefunc.py | 8cc14a95895b753b1f9faddf1c1a673ef8191dc1 | [
"BSD-3-Clause"
] | permissive | Pinacolada64/evennia | 17e68f4f6b7ddcb4891256ceab2fbf02d185b9db | ed1b3ee8195cb93cd3382625d8d20d83d63c5322 | refs/heads/master | 2020-04-30T01:39:53.499431 | 2016-02-26T11:02:20 | 2016-02-26T11:02:20 | 52,920,172 | 1 | 0 | null | 2016-03-02T00:15:02 | 2016-03-02T00:15:02 | null | UTF-8 | Python | false | false | 8,450 | py | """
Inlinefunc
**Note: This module is deprecated. Use evennia.utils.nested_inlinefuncs instead.**
This is a simple inline text language for use to custom-format text in
Evennia. It is applied BEFORE ANSI/MUX parsing is applied.
To activate Inlinefunc, settings.INLINEFUNC_ENABLED must be set.
The format is straightf... | [
"griatch@gmail.com"
] | griatch@gmail.com |
63bd83adcb7f9700378098678b26a5b39b3d7a86 | 719853613b5b96f02072be1fde736d883e799f02 | /server/intrinsic/management/commands/intrinsic_import_ec2.py | a6bd9aeef70b6ccd8ad1fe6dbb896cfbc53d5e39 | [
"MIT",
"CC-BY-2.0"
] | permissive | anmolkabra/opensurfaces | 5ba442123586533a93eb29890fa1694e3efdbfe8 | a42420083a777d7e1906506cc218f681c5cd145b | refs/heads/master | 2020-03-20T01:11:05.182880 | 2018-06-13T14:55:45 | 2018-06-13T14:55:45 | 137,068,945 | 0 | 0 | MIT | 2018-06-12T12:32:53 | 2018-06-12T12:32:52 | null | UTF-8 | Python | false | false | 1,615 | py | import glob
import time
import timeit
from django.core.management.base import BaseCommand
from intrinsic.tasks import import_ec2_task
class Command(BaseCommand):
args = ''
help = 'Import image algorithms run on ec2'
def handle(self, *args, **options):
indir = '/vol/completed-tasks'
sched... | [
"sbell@cs.cornell.edu"
] | sbell@cs.cornell.edu |
509ca1afcbfe5bbdeb744ed4f48259dbb9978d9f | 775d3690f09f34347e2a7918b060f9dd9f83c10d | /research/vrgripper/vrgripper_env_models.py | 36c7825380aeab82828057bd703230deea3186e6 | [
"Apache-2.0"
] | permissive | HK2-D/tensor2robot | aa0ccc9a997ba72447a48d0dc3acf71d2f4af827 | 58d71467eecf02d3a1646d26cc9011f81753f560 | refs/heads/master | 2023-02-04T03:18:22.863436 | 2020-12-24T01:20:50 | 2020-12-24T01:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,221 | py | # coding=utf-8
# Copyright 2020 The Tensor2Robot Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
7c0088fc02afdb9058cbb4fdf743efb97e73fad2 | f76f83dcdfdbfe254ab67e26b244475d2e810819 | /conttudoweb/inventory/migrations/0016_auto_20200723_1607.py | 3116c549689509a9211c9601d3096006c7d686c2 | [] | no_license | ConTTudOweb/ConTTudOwebProject | fda13ece406e1904d6efe4c3ceebd30e3d168eae | 18c3b8da1f65714eb01a420a0dbfb5305b9461f3 | refs/heads/master | 2022-12-14T22:05:00.243429 | 2021-03-15T23:32:41 | 2021-03-15T23:32:41 | 138,349,067 | 1 | 3 | null | 2022-12-08T07:49:21 | 2018-06-22T21:19:03 | Python | UTF-8 | Python | false | false | 436 | py | # Generated by Django 3.0.8 on 2020-07-23 19:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0015_auto_20200723_1600'),
]
operations = [
migrations.AlterField(
model_name='product',
name='descript... | [
"sandrofolk@hotmail.com"
] | sandrofolk@hotmail.com |
1b78135398abeca244e835d6de11727d963c8134 | 49ee49ee34fa518b0df934081f5ea44a0faa3451 | /study-crow-framework/crow/examples/example_test.py | d252df0b805e995dadd5e2d37ab2bed1e000c5f6 | [
"BSD-3-Clause",
"MIT",
"ISC"
] | permissive | kingsamchen/Eureka | a9458fcc7d955910bf2cefad3a1561cec3559702 | e38774cab5cf757ed858547780a8582951f117b4 | refs/heads/master | 2023-09-01T11:32:35.575951 | 2023-08-27T15:21:42 | 2023-08-27T15:22:31 | 42,903,588 | 28 | 16 | MIT | 2023-09-09T07:33:29 | 2015-09-22T01:27:05 | C++ | UTF-8 | Python | false | false | 1,401 | py | import urllib
assert "Hello World!" == urllib.urlopen('http://localhost:18080').read()
assert "About Crow example." == urllib.urlopen('http://localhost:18080/about').read()
assert 404 == urllib.urlopen('http://localhost:18080/list').getcode()
assert "3 bottles of beer!" == urllib.urlopen('http://localhost:18080/hello... | [
"kingsamchen@gmail.com"
] | kingsamchen@gmail.com |
0a7c0934e651558320e4ccc999fab5b29f046a66 | 3e54f3ad08a8d3e4f17b77394491e3f625672fbe | /hybrid_AC_DC_networks/optimal_power_flows/optimal_power_flow_hybrid_AC_DC_networks.py | 56a26c844b511870eb9ff1ffdc9e590e8acb8383 | [
"MIT"
] | permissive | shubhampachori12110095/EnergyManagementSourceCodes | ccb6f38c155e955624330a0f20b9ed2f4941b08a | 1ea824941fe87528622ec7aa8148024752a3947c | refs/heads/master | 2023-08-01T23:57:45.271895 | 2021-09-26T04:55:05 | 2021-09-26T04:55:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,158 | py | """
Optimal power flow models for hybrid AC/DC microgrids
@author: Tianyang Zhao
@email: zhaoty@ntu.edu.sg
Something should be noted for the hypothesis.
1) The energy losses on the bi-directional converters is modelled simply as used in
[1]Concerted action on computer modeling and simulation
[2]Energy management and o... | [
"matrixeigs@gmail.com"
] | matrixeigs@gmail.com |
152e6de373d3950907e1041d754d5e444fc78569 | c71e5115b895065d2abe4120799ffc28fa729086 | /procon-archive/atcoder.jp/abc129/abc129_c/Main.py | 7e58a42e6fbe088cfc45aa4987d551c677b95895 | [] | no_license | ken0105/competitive-programming | eb82f92a7b7ad0db601ea341c1441de6c6165064 | f918f85a0ea6dfbe9cac3ef835f80503bb16a75d | refs/heads/master | 2023-06-05T09:55:25.264731 | 2021-06-29T14:38:20 | 2021-06-29T14:38:20 | 328,328,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from bisect import bisect, bisect_right, bisect_left
if __name__ == "__main__":
n,m = map(int,input().split())
a = set()
for i in range(m):
a.add(int(input()))
dp = [0] * (n + 1)
dp[0] = 1
for i in range(1,n+1):
if i not in a and i >= 2:
dp[i] = (dp[i-1] + dp[i-2])
... | [
"iwata.kenaaa@gmail.com"
] | iwata.kenaaa@gmail.com |
8fb3f79b350977c88931c3266b2db486922dcec9 | ffad717edc7ab2c25d5397d46e3fcd3975ec845f | /Python/pyesri/ANSWERS/countwords.py | 3cb94d4482bdf35763fd40b40028fc5136cad2d1 | [] | no_license | shaunakv1/esri-developer-conference-2015-training | 2f74caea97aa6333aa38fb29183e12a802bd8f90 | 68b0a19aac0f9755202ef4354ad629ebd8fde6ba | refs/heads/master | 2021-01-01T20:35:48.543254 | 2015-03-09T22:13:14 | 2015-03-09T22:13:14 | 31,855,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/python
import sys
if len(sys.argv) < 3:
print "Syntax: countwords.py PATTERN FILE ..."
sys.exit()
pattern = sys.argv[1]
for fname in sys.argv[2:]:
count = 0
with open(fname) as f:
for line in f:
if pattern in line:
count += 1
print ... | [
"shaunakv1@gmail.com"
] | shaunakv1@gmail.com |
2c14b342ece31335f536bac793332b879a2c8b94 | 7f54637e347e5773dfbfded7b46b58b50544cfe5 | /8-1/chainxy/settings.py | 0f222740778cd9f63c7bbb6304924cd66e17b44f | [] | no_license | simba999/all-scrapy | 5cc26fd92b1d03366b74d4fff58c4a0641c85609 | d48aeb3c00fa2474153fbc8d131cf58402976e1d | refs/heads/master | 2021-01-25T14:24:04.715550 | 2018-03-03T13:43:13 | 2018-03-03T13:43:13 | 123,695,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | # -*- coding: utf-8 -*-
# Scrapy settings for chainxy project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/e... | [
"oliverking8985@yahoo.com"
] | oliverking8985@yahoo.com |
58e695680127bb42f2f78903fc84e26e9f79b012 | 7822e658e88f3f948732e6e3e588ca4b2eb5662a | /guias/2012-2/octubre-17/torneos.py | 3cc64246b4e91ed046f843aea8d045bff0ea5db2 | [] | no_license | carlos2020Lp/progra-utfsm | 632b910e96c17b9f9bb3d28329e70de8aff64570 | a0231d62837c54d4eb8bbf00bb1b84484efc1af2 | refs/heads/master | 2021-05-28T06:00:35.711630 | 2015-02-05T02:19:18 | 2015-02-05T02:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | def contar_partidos(partidos):
return len(partidos)
def obtener_equipos(partidos):
equipos = set()
for local, visita in partidos:
equipos.add(local)
equipos.add(visita)
equipos = list(equipos)
equipos.sort()
return equipos
def obtener_fechas(partidos):
fechas = set()
fo... | [
"rbonvall@gmail.com"
] | rbonvall@gmail.com |
958bffbcef5c0c35574ec6229d4eb3360c9cde5e | 9d9fcf401bb47ccaaa6c3fd3fe7a8be255762855 | /libs/numpy/sort/argsort.py | 2725c26fb628d43f78413d5fa7ac417f25fcd07d | [] | no_license | hanhiver/PythonBasic | f05ef9fe713f69610860c63e5223317decee09ad | 8e012855cce61fb53437758021416e5f6deb02ea | refs/heads/master | 2022-10-11T22:57:47.931313 | 2020-12-30T12:32:44 | 2020-12-30T12:32:44 | 148,477,052 | 0 | 3 | null | 2022-10-01T05:35:03 | 2018-09-12T12:29:33 | Python | UTF-8 | Python | false | false | 187 | py | import numpy as np
a = np.random.randint(0, 10, (4, 5))
print(a, '\n')
index = np.argsort(a, axis=0)
print(index, '\n')
index_3 = index[..., 3]
print(index_3, '\n')
print(a[index_3]) | [
"handongfr@163.com"
] | handongfr@163.com |
385dc29e8a96a82daa9709d0c22d2c368662202c | be0d83dde6b499b60f36c14c961a125581f36a57 | /preprocess_files/mv_img.py | 592114d7036909b48ede59be9b6dcca5df06b54f | [] | no_license | zhengziqiang/gan_learning | 4acaf18f452fed0e2eeb0ddb45d861e9d10af835 | d9ffb1c18e592715b62df684e23a362f8d07ac41 | refs/heads/master | 2021-01-01T13:35:28.696378 | 2017-10-29T13:42:51 | 2017-10-29T13:42:51 | 97,583,619 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import os
import glob
# d={}
# for files in glob.glob('/home/zzq/research/windows_file/IIIT-CFW1.0/tmp/*.jpg'):
# filepath, filename = os.path.split(files)
# # print filename
# l=filename.split('.')
# # print l[0]
# my_namee=filter(str.isalpha, l[0])
# print my_namee
# if d.has_key(my_namee)... | [
"1174986943@qq.com"
] | 1174986943@qq.com |
9813d2f1469dc08e215edac52165f3615023264d | 3b2940c38412e5216527e35093396470060cca2f | /top/api/rest/AlibabaOpendspAdgroupsAddRequest.py | ecc347df1177f0300f8f99e6b18777f4d00cdb29 | [] | no_license | akingthink/goods | 842eb09daddc2611868b01ebd6e330e5dd7d50be | ffdb5868a8df5c2935fc6142edcdf4c661c84dca | refs/heads/master | 2021-01-10T14:22:54.061570 | 2016-03-04T09:48:24 | 2016-03-04T09:48:24 | 45,093,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | '''
Created by auto_sdk on 2015-01-20 12:44:32
'''
from top.api.base import RestApi
class AlibabaOpendspAdgroupsAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
def getapiname(self):
return 'alibaba.opendsp.adgroups.add'
| [
"yangwenjin@T4F-MBP-17.local"
] | yangwenjin@T4F-MBP-17.local |
cf634701ce51fc3cb9c14499ec878f065f7baad4 | 427cb811a465677542172b59f5e5f102e3cafb1a | /python/classes/subClass.py | 2244d735db508c992121644c9b9e179b8a63ef61 | [] | no_license | IzaakWN/CodeSnippets | 1ecc8cc97f18f77a2fbe980f322242c04dacfb89 | 07ad94d9126ea72c1a8ee5b7b2af176c064c8854 | refs/heads/master | 2023-07-26T21:57:10.660979 | 2023-07-20T20:35:59 | 2023-07-20T20:35:59 | 116,404,943 | 18 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | # http://www.jesshamrick.com/2011/05/18/an-introduction-to-classes-and-inheritance-in-python/
# https://stackoverflow.com/questions/2843165/python-how-to-inherite-and-override
# http://blog.thedigitalcatonline.com/blog/2014/05/19/method-overriding-in-python/
# https://docs.python.org/2.7/library/functions.html#super
... | [
"iwn_@hotmail.com"
] | iwn_@hotmail.com |
b5f7b40cdab61e773d1bec1c144966fc8c019ad5 | b9878c92b857f73ff0452fc51c822cfc9fa4dc1c | /watson_machine_learning_client/libs/repo/swagger_client/models/connection_object_target_experiments.py | f8548c105d870dc07cfbde41d0896b443cf3f175 | [] | no_license | DavidCastilloAlvarado/WMLC_mod | 35f5d84990c59b623bfdd27369fe7461c500e0a5 | f2673b9c77bd93c0e017831ee4994f6d9789d9a1 | refs/heads/master | 2022-12-08T02:54:31.000267 | 2020-09-02T15:49:21 | 2020-09-02T15:49:21 | 292,322,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | # coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in comp... | [
"dcastilloa@uni.pe"
] | dcastilloa@uni.pe |
68740806ca9fdcb8c924b5a4b88a4c98f0efd8d7 | 3b831eedb7afede666088b6e018c829219938a93 | /Grouping_Values.py | d73419177b17ac18330e2f7223561e75e54c044e | [] | no_license | joydas65/GeeksforGeeks | f03ed1aaea88d894f4d8ac0d70f574c4cd78a64b | e58c42cb3c9fe3a87e6683d8e3fda442dc83b45b | refs/heads/master | 2023-01-12T02:19:54.967779 | 2023-01-10T17:28:41 | 2023-01-10T17:28:41 | 161,937,667 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | class Solution:
def isPossible(self, N, arr, K):
# code here
d = dict()
for i in arr:
if i in d:
d[i] += 1
else:
d[i] = 1
for i in d:
... | [
"noreply@github.com"
] | joydas65.noreply@github.com |
773663c4df0ccd2fbf185f8bbedf2977848846c9 | 3c8b1a4d9e7d53fd643e02dabae50298a8122763 | /tests/__init__.py | 6ae0126758f6be63f55461a5786077a39670ba77 | [
"MIT"
] | permissive | greyli/fanxiangce | f0866ed5dfd32a2cd795db92dec9e8785833d480 | c6eb8410867c7a743d1ede920b0858158fec961c | refs/heads/master | 2021-09-18T10:35:02.317823 | 2018-07-13T02:32:25 | 2018-07-13T02:32:25 | 67,604,143 | 79 | 40 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | # -*-coding: utf-8-*- | [
"withlihui@gmail.com"
] | withlihui@gmail.com |
752c131107a11c4cca9973aa5a08f2fc22b37083 | 25a565679443dc00be245c00cd68dde43601df50 | /workrobot/libs/region/class_regionmatcher.py | 4dff7eae558942da43aac12cab870177c1aa13fc | [] | no_license | plutoese/workrobot | 2d4e929a05be5aea1d6679769ac8c30aa42a1595 | 097571be9d61a120dd676464941cb9d0618963f6 | refs/heads/master | 2020-04-12T06:45:18.737553 | 2017-04-18T17:40:24 | 2017-04-18T17:40:24 | 63,757,855 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,751 | py | # coding=UTF-8
"""
=========================================
区域匹配类
=========================================
:Author: glen
:Date: 2016.10.26
:Tags: region
:abstract: 对区域进行匹配
**类**
==================
RegionMatcher
区域匹配类
**使用方法**
==================
**示范代码**
==================
"""
import re
from libs.imexport.c... | [
"glen.zhang7@gmail.com"
] | glen.zhang7@gmail.com |
bfe6eb6e9734dbfe24074e1964400cdb06a23cc3 | fce1b262820539e8574e5476692096f599ca2b27 | /luffycity_s8/luffy/views/article.py | fecd0d8cf009734ca9798d3523d3afb6d261806e | [] | no_license | iyouyue/green_hand | 9386082a0589ee6e1805aafe189ee38e823c8202 | 7b80e8cc0622e4d8e9d07dde37c72ac7d6e3261c | refs/heads/master | 2020-03-26T14:39:02.224727 | 2018-08-16T14:27:57 | 2018-08-16T14:27:57 | 144,997,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | from rest_framework.views import APIView
from rest_framework.viewsets import GenericViewSet
from rest_framework.response import Response
from rest_framework.renderers import JSONRenderer, BrowsableAPIRenderer
from django.core.exceptions import ObjectDoesNotExist
from luffy import models
from luffy.response.base... | [
"iyouyue@qq.com"
] | iyouyue@qq.com |
16632e1cfd929360e81b6b66540741a40107d618 | 113d9082d153adbccd637da76318b984f249baf5 | /setup.py | b2cce85ef433c74f9b005df1a6e7c62d9261ca91 | [
"BSD-3-Clause"
] | permissive | jorcast18462/django-applepodcast | bebb6f85d4c3ed98c96e6628443ece613898ca32 | 50732acfbe1ca258e5afb44c117a6ac5fa0c1219 | refs/heads/master | 2023-03-21T13:05:08.576831 | 2018-10-06T22:19:12 | 2018-10-06T22:19:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | from __future__ import unicode_literals
import os
from setuptools import find_packages, setup
setup(
name='django-applepodcast',
version='0.3.7',
description='A Django podcast app optimized for Apple Podcasts',
long_description=open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rs... | [
"richardcornish@gmail.com"
] | richardcornish@gmail.com |
a9340662bebfa1cdd1adef79408712eb2e5883fd | 7188e4eca6bb6ba03453e5c1d9e3134e9ef1b588 | /apps/clndr/apps.py | 29d6fb8f53be320b7e1c8a59f9267f426baf18ea | [] | no_license | mitshel/ghc_yapokaju | c85eb2c3cbfd9802f6fac16a6d6192ae85ad2511 | d70b53235223dc935792aac3838678cb1b4d2b2e | refs/heads/master | 2020-05-15T21:50:15.646729 | 2019-04-21T08:48:31 | 2019-04-21T08:48:31 | 182,509,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.apps import AppConfig
class ClndrConfig(AppConfig):
name = 'apps.clndr'
verbose_name = 'The calendar'
def ready(self):
from . import signals
| [
"mitshel@mail.ru"
] | mitshel@mail.ru |
23d6a04e73cb64a8b99b1049956a491e698cfc84 | 86dc81e21f5b9e784dd087666d4d980c34781536 | /udp_bro_send.py | 596343dd578225cf7d1f4e55544f7bb7e2be5825 | [] | no_license | sheltie03/udp_python | 37b4e1f3377979c26e247a020efb958b3dfc28e5 | cb0551fc4026a3baff968e81b758ea4d7d7e5fd6 | refs/heads/master | 2021-07-09T15:37:46.684924 | 2017-10-02T08:06:25 | 2017-10-02T08:06:25 | 105,496,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # -*- coding: utf-8 -*-
import socket
import time
def main():
host = ''
port = 4000
# local_addr = '192.168.10.255'
local_addr = '255.255.255.255'
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
sock.bind((host, port))
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a0f8f7b8b1b8309bccf987e46c698b39e152970c | 9c56151ff0c981f4d24aaaefd8896893225be8c2 | /fotochest/apps/administrator/__init__.py | 01dce1499601edfe311a5b67dd72fabd730a6561 | [
"MIT"
] | permissive | ginking/fotochest | 9da4c34abb7df758e29f5f3284c93e3cd6933bcc | 0f9e6e72c7b587dec91cd5a0c3b081e28d056c62 | refs/heads/master | 2021-01-18T02:45:14.377309 | 2015-04-16T02:58:47 | 2015-04-16T02:58:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | default_app_config = 'fotochest.apps.administrator.apps.AdminConfig' | [
"dstegelman@gmail.com"
] | dstegelman@gmail.com |
a8664286f8358d03bcf8e11702b53d8ee5865ef0 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/matplotlib/2018/8/axes3d.py | efbaedfef284ed36e1b8f3d87fbaaf0aa8ba1c71 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 103,008 | py | """
axes3d.py, original mplot3d version by John Porter
Created: 23 Sep 2005
Parts fixed by Reinier Heeres <reinier@heeres.eu>
Minor additions by Ben Axelrod <baxelrod@coroware.com>
Significant updates and revisions by Ben Root <ben.v.root@gmail.com>
Module containing Axes3D, an object which can plot 3D objects on a
2... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
c261a3aa2393582101930b0d509c572623981a2b | 29eacf3b29753d65d8ec0ab4a60ea1f7ddecbd68 | /lightly/openapi_generated/swagger_client/models/docker_run_scheduled_priority.py | 8f59946a24631b8670f78eced6e272cd1b4e2588 | [
"MIT"
] | permissive | lightly-ai/lightly | 5b655fe283b7cc2ddf1d7f5bd098603fc1cce627 | 5650ee8d4057139acf8aa10c884d5d5cdc2ccb17 | refs/heads/master | 2023-08-17T11:08:00.135920 | 2023-08-16T12:43:02 | 2023-08-16T12:43:02 | 303,705,119 | 2,473 | 229 | MIT | 2023-09-14T14:47:16 | 2020-10-13T13:02:56 | Python | UTF-8 | Python | false | false | 1,014 | py | # coding: utf-8
"""
Lightly API
Lightly.ai enables you to do self-supervised learning in an easy and intuitive way. The lightly.ai OpenAPI spec defines how one can interact with our REST API to unleash the full potential of lightly.ai # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: ... | [
"noreply@github.com"
] | lightly-ai.noreply@github.com |
2613f41ca4dc3a52d8a9eba8b22d5db1b4f73c1e | 04d9ee05feb6dddf19b9f7653f4dd9e9ce3ee95c | /rbtools/commands/install.py | 03724c98f41a1da2e2262344e0806a96951d6e81 | [
"MIT"
] | permissive | pbwkoswara/rbtools | 2fa44ade1c60b4f076198bb8206a5d624dd40cd2 | 8ea5ff8843d2a3d44056ad4358d75c81a066cf28 | refs/heads/master | 2021-07-17T22:22:20.906220 | 2017-10-20T22:11:03 | 2017-10-25T17:05:21 | 108,022,324 | 0 | 0 | null | 2017-10-23T18:26:30 | 2017-10-23T18:26:30 | null | UTF-8 | Python | false | false | 7,398 | py | from __future__ import division, print_function, unicode_literals
import hashlib
import logging
import os
import shutil
import tempfile
import zipfile
import tqdm
from six.moves.urllib.error import HTTPError, URLError
from six.moves.urllib.request import urlopen
from rbtools.commands import Command, CommandError
fro... | [
"trowbrds@gmail.com"
] | trowbrds@gmail.com |
20b361ed82e3c4f5ca631042f72ead83915be1a7 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/clientclientarena.py | 694ad470a4f1b89adc4300277077ab1452ac612e | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,496 | py | # Embedded file name: scripts/client/ClientArena.py
import Math
import BigWorld
import ResMgr
import ArenaType
from items import vehicles
import constants
import cPickle
import zlib
import Event
from constants import ARENA_PERIOD, ARENA_UPDATE, FLAG_STATE
from PlayerEvents import g_playerEvents
from debug_utils import ... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.