blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
864ceef09f60b62a0a11649678e819700f532179 | 535fe1b2b746e096c2a39c61792dffe702024841 | /ch5_client/4_10mTestWithThread.py | 09750dedd80a510c622f3c7f13e932617d0013b9 | [] | no_license | AstinCHOI/book_thisIsRedis | bad890a7570767da3661069aba55b604a2c1284f | 9ec10df7a757e05e7459f003fadfcc4eab892a3b | refs/heads/master | 2020-03-11T18:16:06.826665 | 2018-05-22T03:00:02 | 2018-05-22T03:00:02 | 130,172,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import time
import threading
import redis
TOTAL_OP = 10000000
THREAD = 5
def redis_thread(pool, idx):
r = redis.Redis(connection_pool=pool)
for i in range(TOTAL_OP):
if i % THREAD == idx:
key = value = "key" + str(100000000 + i)
r.set(key, value)
pool = redis.BlockingC... | [
"asciineo@gmail.com"
] | asciineo@gmail.com |
891c2662d78dca4bb7636a77a59d30e31e8a9460 | 6ace7e15e3191d1b8228ad7922a8552ca84f84e7 | /.history/image_detector_20200614200237.py | 41ec32060b2f3b5048ad6b999ba4dbbdd054c16f | [] | no_license | mehmetaliarican/Similar-Image-Finder | f72e95be50c51aa03fc64954a03124b199ca64b1 | a9e0015c443b4a73394099cccf60329cfc4c7cef | refs/heads/master | 2022-10-27T00:57:43.173993 | 2020-06-14T18:02:16 | 2020-06-14T18:02:16 | 272,256,295 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | from skimage.metrics import structural_similarity as ssim
from imutils import paths
import matplotlib.pyplot as plt
import numpy as np
import cv2
import glob
import os
import argparse
ap = argparse.ArgumentParser()
ap.add_argument("-t", "--threshold", type=float, default=0.9,
help="threshold")
ap.add_a... | [
"m.ali.arican@gmail.com"
] | m.ali.arican@gmail.com |
90fce63be2d2ea67ff71cb83ce336991d16670c6 | 94f8d393536a38136420b299555a47989cb95e06 | /tengxunzhaopin123/tengxunzhaopin123/middlewares.py | a406fda992e2fc64e8c8f5e26f48c0662c6ef797 | [] | no_license | nolan0536/weizhiBigDataPython | 9164ddc50cd0b850ec7536270d690dd0848b9f06 | ef4ab9d749159166fcfe48883d680ac058b12425 | refs/heads/main | 2023-04-21T21:15:11.235258 | 2021-05-08T01:28:51 | 2021-05-08T01:28:51 | 361,971,771 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class Tengxunzhaopin123SpiderMidd... | [
"1552696515@qq.com"
] | 1552696515@qq.com |
a1ccfcb82ab8dd810185bd40e65365e3fa67a304 | e5a511e346f5be8a82fe9cb2edf457aa7e82859c | /Python/cppsecrets.com/program 14.py | 7072f9e819a92b61e186cb3ff5e5ff835dad44e7 | [] | no_license | nekapoor7/Python-and-Django | 8397561c78e599abc8755887cbed39ebef8d27dc | 8fa4d15f4fa964634ad6a89bd4d8588aa045e24f | refs/heads/master | 2022-10-10T20:23:02.673600 | 2020-06-11T09:06:42 | 2020-06-11T09:06:42 | 257,163,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | """Python Program to Count the Occurrences of Each Word in a Given String Sentence"""
from collections import Counter
text = input()
occur = Counter(text)
print(occur) | [
"neha.kapoor070789@gmail.com"
] | neha.kapoor070789@gmail.com |
3701c020b39c94cf68bd19271c90cc4e2b9b1579 | bfe9c678726a53421f26a7cfdc1447681624c4f2 | /bast/graphics/mesh/sub_mesh.py | 6bc0a14c7930c25239866280f4636279921bb430 | [] | no_license | adamlwgriffiths/bast | df983cf0322b320efdc8ef4ba0207214ebd31ef6 | a78186e9d111a799581bd604b4985467638b0b10 | refs/heads/master | 2021-01-19T20:18:27.558273 | 2015-05-02T03:41:22 | 2015-05-02T03:41:22 | 31,202,746 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | from __future__ import absolute_import
from OpenGL import GL
from ...common.object import DescriptorMixin
from ..buffer.vertex_array import VertexArray
from ..buffer.buffer_pointer import BufferPointer
class SubMesh(DescriptorMixin):
def __init__(self, material, indices=None, primitive=GL.GL_TRIANGLES, **pointers... | [
"adam.lw.griffiths@gmail.com"
] | adam.lw.griffiths@gmail.com |
42a947cc4062cb659223ccf9afbd8090f7fdc4aa | 74060c5771ae3904e99cda84ef3d1ead58940917 | /app.py | 0dd8b44dd6721d70dd36f820ac10c849c3f26655 | [] | no_license | claraj/river-level | 423f34027287f03b0b10a79bddc6cce17d1c4226 | 8a8aed77382337de58af6b694b01c210ea3d6a72 | refs/heads/main | 2023-06-03T07:47:46.025175 | 2021-06-11T02:10:57 | 2021-06-11T02:10:57 | 375,766,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,273 | py | from flask import Flask, abort
from flask.json import jsonify
import requests
from datetime import datetime
app = Flask(__name__)
@app.errorhandler(400)
def not_found(e):
return jsonify({'Error': 'Bad request. Ensure you use a valid river code, and the number of days must be between 1 and 365.'}), 404
@app.er... | [
"10088152+claraj@users.noreply.github.com"
] | 10088152+claraj@users.noreply.github.com |
acd5eaa9f9e459be6493fb13f20f229d7bb22132 | a94c446a0d9ce77df965674f63be54d54b2be577 | /raspy/invalid_operation_exception.py | 619a77c7c483963df689e25c8c88f7cc472685e5 | [
"MIT"
] | permissive | cyrusbuilt/RasPy | 3434e02c2bff09ef9f3ff4995bda14edc781c14b | 1e34840cc90ea7f19317e881162209d3d819eb09 | refs/heads/master | 2020-03-18T20:19:27.426002 | 2018-08-03T17:07:25 | 2018-08-03T17:07:25 | 135,207,376 | 0 | 0 | MIT | 2018-08-03T17:07:26 | 2018-05-28T20:42:17 | Python | UTF-8 | Python | false | false | 297 | py | """This module contains the InvalidOperationException exception class."""
class InvalidOperationException(Exception):
"""Invalid operation exception.
The exception that is thrown when an operation is attempted on an object
whose current state does not support it.
"""
pass
| [
"cyrusbuilt@gmail.com"
] | cyrusbuilt@gmail.com |
5a691fd91db8702bd66b8e9e3d63005f7c6f009d | 489814a9008e482eb1098c3c97aac23ff037b3cf | /www/rabota/context_processors.py | 7227e85af53f954205996ae8e27a574bcda14bb5 | [] | no_license | boogiiieee/Delo70 | f70fcb92c91f96348513d415b120aad3b4507721 | 5c48371a513b4b1bdd6068c90895a9bda126d88c | refs/heads/master | 2021-09-04T03:10:13.362897 | 2018-01-15T03:57:48 | 2018-01-15T03:57:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # -*- coding: utf-8 -*-
from rabota.forms import SearchMinForm
from geo.models import CustomLocation
##################################################################################################
##################################################################################################
def custom_proc(r... | [
"shalyapinalexander@gmail.com"
] | shalyapinalexander@gmail.com |
c755e9e0d94bb5396ef7140478ebd01d23417626 | a566cb316ab93aeadd366b148f5110c327c7eb2b | /chp3/test.py | 12ac2e4c8da6cf7e5fd81b79f352b6ddc085af59 | [] | no_license | piochelepiotr/crackingTheCode | 4aeaffd2c46b2761b2f9642107292d0932731489 | 163ff60f723869a7096b330965d90dc1443d7199 | refs/heads/master | 2021-06-20T21:30:56.033989 | 2021-01-13T08:44:57 | 2021-01-13T08:44:57 | 172,414,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | import unittest
import ex2
import ex3
import ex4
import ex5
import ex6
import stack
class Testing(unittest.TestCase):
def test_s(self):
s = stack.Stack()
s.push(3)
s.push(4)
self.assertEqual(4, s.pop())
self.assertEqual(3, s.pop())
def test_min_s(self):
s = ex2.... | [
"piotr.wolski@telecom-paristech.fr"
] | piotr.wolski@telecom-paristech.fr |
421a92abcac080c140990d2ba04f70ef50b6473d | de3b77cb0927f28cbd85e9142c2dfd7c8be7c27e | /tests/migrations/024_add_updated_at_to_endpoint_params_down.py | 293af995a4fa50583d125154ddd7dc3ad812b296 | [
"MIT"
] | permissive | LoansBot/database | f3dcbccde59fdb80c876d2612f250662946588e6 | eeaed26c2dcfdf0f9637b47ebe15cd1e000d8cc4 | refs/heads/master | 2021-07-02T22:07:18.683278 | 2021-06-02T04:09:38 | 2021-06-02T04:09:38 | 239,400,935 | 0 | 1 | MIT | 2021-06-02T04:14:31 | 2020-02-10T01:06:53 | Python | UTF-8 | Python | false | false | 690 | py | import unittest
import helper
class DownTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.connection = helper.setup_connection()
cls.cursor = cls.connection.cursor()
@classmethod
def tearDownClass(cls):
cls.cursor.close()
cls.connection.rollba... | [
"noreply@github.com"
] | LoansBot.noreply@github.com |
e98a5646e95ea0a4833b1b0150b72feea5dc1830 | c9aca558963537ae10e87b791cc878f8f6a33d77 | /Chapter02/Simple_linear_regression.py | bff0e3c4dfc7ca91098e85038dc360cdf9cb04ec | [
"MIT"
] | permissive | PacktPublishing/TensorFlow-1x-Deep-Learning-Cookbook | d1f8fe311fa127346122aee1a8cc12a85ef4cc8a | 9e23044b0c43e2f6b9ad40a82023f7935757d3d0 | refs/heads/master | 2023-02-05T09:27:15.951141 | 2023-01-30T09:49:25 | 2023-01-30T09:49:25 | 114,516,232 | 91 | 84 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | """
"""
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
def normalize(X):
mean = np.mean(X)
std = np.std(X)
X = (X - mean)/std
return X
# Data
boston = tf.contrib.learn.datasets.load_dataset('boston')
X_train, Y_train = boston.data[:,5], boston.target
#X_train... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
88e1bce19a600e0c2c679c6e5cda236a8c2c4e07 | cd4d0df26a8cd40b01872e892dca7204aa66aa1e | /storescraper/bin/celeryconfig/defaults.py | 31d6f1ec02656232b0614147fc23ef99adf4d7f3 | [] | no_license | SoloTodo/storescraper | f3486782c37f48d1b8aac4dc5fa6fa993711382e | b04490f5f3db21a92e9ad7cb67c4030a69e51434 | refs/heads/develop | 2023-08-30T21:43:16.725320 | 2023-08-30T19:36:27 | 2023-08-30T19:36:27 | 95,259,334 | 47 | 23 | null | 2023-08-03T15:34:41 | 2017-06-23T21:56:48 | Python | UTF-8 | Python | false | false | 174 | py | import sys
sys.path.append('../..')
broker_url = 'amqp://storescraper:storescraper@localhost/storescraper'
result_backend = 'rpc://'
imports = (
'storescraper.store'
)
| [
"vkhemlan@gmail.com"
] | vkhemlan@gmail.com |
c44c0c145082573453dda43fc2c47dbb33847365 | 9955a91c6193f28bc2a47fb0ab3955a0a0f525f8 | /model/medical_inpatient_medication_log.py | 90147c432e8c7b46743c6e85b82bd58456195df1 | [] | no_license | asop-source/Klinik- | 77372049fe6cdf2b2c922f093464980fea01bfc5 | a7ab1ca80c73e62178e577a685be888ff6c370da | refs/heads/master | 2020-12-11T06:38:11.765622 | 2020-01-14T08:14:51 | 2020-01-14T08:14:51 | 233,790,453 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # -*- coding: utf-8 -*-
# Part of BrowseInfo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields, api, _
from datetime import date,datetime
class medical_inpatient_medication_log(models.Model):
_name = 'medical.inpatient.medication.log'
admin_time = fields.Datetime(str... | [
"asopkarawang@gmail.com"
] | asopkarawang@gmail.com |
72f0fc5d92d6a4e25fec8d241b1e74159b598da8 | cced1f1ad18c6d9c3b96b2ae53cac8e86846f1f5 | /Blog/comment/views.py | 7d2183dd9347af2c83f7990348ea803cb88433de | [] | no_license | sug5806/portfolio | a3904be506a3746e16da57bba5926c38743783ad | b943955a52c622094a58fb9124323298261ae80a | refs/heads/master | 2022-12-10T06:23:38.472893 | 2019-07-05T04:56:59 | 2019-07-05T04:56:59 | 190,156,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | from django.shortcuts import render
from .forms import CommentForm
from .models import Comment
from django.shortcuts import redirect
from django.urls import resolve
from urllib.parse import urlparse
from django.contrib import messages
def add_comment(request):
if not request.user.is_anonymous:
comment_fo... | [
"sug5806@gmail.com"
] | sug5806@gmail.com |
660031d63690e79aa8df1ed183d32e387b29d77b | 5f5256284d4aa1c3d88dd99301024ba8fa04955e | /weis/multifidelity/test/test_trust_region.py | 3fb88e17c210bb3135a5e410645a1c3a2b75c1d9 | [
"Apache-2.0"
] | permissive | dousuguang/WEIS | 15fbff42dc4298d7592871b961c0f43fcd24feb7 | 1e4dbf6728050f75cee08cd483fe57c5614488fe | refs/heads/master | 2023-07-08T15:46:45.508489 | 2021-05-18T22:46:55 | 2021-05-18T22:46:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | import unittest
import numpy as np
from weis.multifidelity.models.testbed_components import (
simple_2D_high_model,
simple_2D_low_model,
simple_1D_high_model,
simple_1D_low_model,
)
from weis.multifidelity.methods.trust_region import SimpleTrustRegion
class Test(unittest.TestCase):
def... | [
"johnjasa11@gmail.com"
] | johnjasa11@gmail.com |
a2eb28539aed3f9f4c023b85fe772c3742d174f8 | f569978afb27e72bf6a88438aa622b8c50cbc61b | /douyin_open/Oauth2UserToken/__init__.py | 57234d8fe6e43dd02aeb32d856adc28f5132d285 | [] | no_license | strangebank/swagger-petstore-perl | 4834409d6225b8a09b8195128d74a9b10ef1484a | 49dfc229e2e897cdb15cbf969121713162154f28 | refs/heads/master | 2023-01-05T10:21:33.518937 | 2020-11-05T04:33:16 | 2020-11-05T04:33:16 | 310,189,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # coding: utf-8
# flake8: noqa
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import a... | [
"strangebank@gmail.com"
] | strangebank@gmail.com |
24a5685809e52808904bdcc90e982bc708d4cf22 | 6ff318a9f67a3191b2a9f1d365b275c2d0e5794f | /python/day26/复习面向对象.py | 528ff46caa2096b7158566b26e0dedf26620f292 | [] | no_license | lvhanzhi/Python | c1846cb83660d60a55b0f1d2ed299bc0632af4ba | c89f882f601898b5caab25855ffa7d7a1794f9ab | refs/heads/master | 2020-03-25T23:34:00.919197 | 2018-09-13T12:19:51 | 2018-09-13T12:19:51 | 144,281,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,391 | py | # class OldboyStudent:
# school='Oldboy'
# def choose_course(self):
# print('is choosing course')
# print(OldboyStudent.__dict__)
# print(OldboyStudent.__dict__['school'])
# print(OldboyStudent.school)
# print(OldboyStudent.choose_course)
# OldboyStudent.choose_course(1)
# OldboyStudent.country='English... | [
"1541860665@qq.com"
] | 1541860665@qq.com |
d864a4a18f26361ad7c9a9e508e92e54f8250bc2 | d8b5aba2a1f53fbf3fcfc388c26e547afa76b13f | /modules/andForensics/modules/utils/android_sqlite3.py | 455f93e4b7c5cde1330befb1977acbfd3297ff38 | [
"GPL-3.0-only",
"Apache-2.0"
] | permissive | dfrc-korea/carpe | e88b4e3bcb536355e2a64d00e807bccd631f8c93 | f9299b8ad0cb2a6bbbd5e65f01d2ba06406c70ac | refs/heads/master | 2023-04-28T01:12:49.138443 | 2023-04-18T07:37:39 | 2023-04-18T07:37:39 | 169,518,336 | 75 | 38 | Apache-2.0 | 2023-02-08T00:42:41 | 2019-02-07T04:21:23 | Python | UTF-8 | Python | false | false | 2,933 | py | #-*- coding: utf-8 -*-
import sqlite3
import logging
import sys
logger = logging.getLogger('andForensics')
class SQLite3(object):
def execute_fetch_query_multi_values_order(query, query2, db):
try:
con = sqlite3.connect(db)
except sqlite3.Error as e:
logger.error("SQLite open error. it is an invalid file:... | [
"jbc0729@gmail.com"
] | jbc0729@gmail.com |
487ea60364bea7fbadc50bc1b2fd1c36512a6d7c | e9c8094407c351919cc765990dc2b4907d7dc986 | /CRC/check_district_functionality.py | ad1b478d278355540dd1826145d71c1e27efd42a | [] | no_license | chetandg123/System_Test | 343991e37d90c9ae25dbdd9ea06944483e071f33 | 5c8875e298f31dd3feb0726d3967bca7a7daea0a | refs/heads/master | 2022-10-11T13:42:32.537274 | 2020-06-04T16:45:12 | 2020-06-04T16:45:12 | 269,412,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import time
import unittest
class CRC(unittest.TestCase):
def setUp(self):
time.sleep(15)
def test_query(self):
print("District Functionality is selected")
def tearDown(self):
time.sleep(15) | [
"sdevaraja85@gmail.com"
] | sdevaraja85@gmail.com |
31c69697e3c23566e5008b2f757956ca5be41372 | d725d4909a144f3218067c78e0339df781ba8145 | /src/plot_utils.py | cadda8ff609970ad7cbbf8f12682808aac707c01 | [
"Apache-2.0"
] | permissive | dhermes/phd-thesis | 05b101aa93c9d8aa72cc069d29ba3b9d3f2384dc | 732c75b4258e6f41b2dafb2929f0e3dbd380239b | refs/heads/master | 2021-06-13T04:22:37.265874 | 2019-11-16T16:35:22 | 2019-11-16T16:35:22 | 139,187,875 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
568db6eb13884c292c10227362bb121ed53af89d | 4e4c22dfabb1a0fa89f0f51f58737273412a30e0 | /audit/backend/ssh_interactive.py | 41119aecffd21653ed1bf7b9824da53cc1eeb199 | [] | no_license | shaoqianliang/fort_machine | 4cb271d5ef29c924c09172ff397e2af8562ee4ba | cf7e3d4c6682831ce04bcde478930ab7e85abb01 | refs/heads/master | 2020-04-28T15:24:02.056674 | 2019-04-12T23:50:35 | 2019-04-12T23:50:35 | 175,372,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | #!/usr/bin/env python
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.... | [
"1132424753@qq.com"
] | 1132424753@qq.com |
6b886ff3e8ceaf9a22c3d83ecd4644649ed20e2b | d6411d6d766adf97490b5229780952a23a3ec93e | /exportToBox2D.py | 520e5c8b2251d0a95da09748a244b69b76da98c3 | [] | no_license | NCCA/Box2DExport | 22db2dfa4d934a3cb19cb8ca3dc6e98d4c8f5f70 | a81d2a6c02aae0cc45ff573fb8ab625c9cd5454d | refs/heads/main | 2022-11-18T20:23:52.118572 | 2022-11-16T17:03:02 | 2022-11-16T17:03:02 | 24,465,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | import maya.OpenMaya as OM
import maya.OpenMayaAnim as OMA
import maya.OpenMayaMPx as OMX
import maya.cmds as cmds
import sys, math
structure="""
typedef struct
{
std::string name;
float tx;
float ty;
float width;
float height;
b2BodyType type;
}Body; \n
"""
def exportBox2D() :
# basicFilter = "*.b2d"
# file=c... | [
"jmacey@bournemouth.ac.uk"
] | jmacey@bournemouth.ac.uk |
7c579b4d5629b63b895546455d32a4745a7ba2ee | 35351364eef7f058b358141aca6f3b74717841b8 | /src/taxpasta/infrastructure/application/kraken2/kraken2_profile_standardisation_service.py | 3d1268f8a406dc1afb07d7f990d8d53b7e29b3f8 | [
"Apache-2.0"
] | permissive | taxprofiler/taxpasta | 75f59c4bb234be9e93418d7eeaadfd73865e0df3 | 98713deaeec2e92b2f020860d264bccc9a25dbd1 | refs/heads/dev | 2023-08-31T15:04:17.971556 | 2023-08-24T20:01:50 | 2023-08-24T20:01:50 | 499,589,621 | 21 | 8 | Apache-2.0 | 2023-09-10T07:49:26 | 2022-06-03T17:06:44 | Python | UTF-8 | Python | false | false | 1,871 | py | # Copyright (c) 2022 Moritz E. Beber
# Copyright (c) 2022 Maxime Borry
# Copyright (c) 2022 James A. Fellows Yates
# Copyright (c) 2022 Sofia Stamouli.
#
# 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 Li... | [
"midnighter@posteo.net"
] | midnighter@posteo.net |
0275e902be4106106025a6572c63ae75e2419353 | 21b5ad37b812ed78799d4efc1649579cc83d32fb | /career_advice/migrations/0005_merge_20200412_0918.py | da2433e841795a5ffac4c98c6ade0117d9040f76 | [] | 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 | 285 | py | # Generated by Django 3.0.3 on 2020-04-12 09:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('career_advice', '0004_auto_20200406_0429'),
('career_advice', '0004_auto_20200408_0830'),
]
operations = [
]
| [
"rashed@ishraak.com"
] | rashed@ishraak.com |
5f5e3209d2fceeaecaa1b2c52f3cb5efe5bf924d | cdd33a31d5b57a4a02803dded5e96a815fbb06d7 | /examples/dagster_examples_tests/test_examples.py | 502cc68abe72b5555628b27e6a1738166a9790cd | [
"Apache-2.0"
] | permissive | david-alexander-white/dagster | 4f177c167150316a5056901aa2522ab778d1d163 | 1c341500bb2380e14873b59b7e25503270188bda | refs/heads/master | 2020-12-07T04:40:02.676080 | 2020-01-06T17:37:40 | 2020-01-07T22:19:01 | 232,633,648 | 1 | 0 | Apache-2.0 | 2020-01-08T18:42:28 | 2020-01-08T18:42:27 | null | UTF-8 | Python | false | false | 679 | py | from __future__ import print_function
from click.testing import CliRunner
from dagster.cli.pipeline import execute_list_command, pipeline_list_command
from dagster.utils import script_relative_path
def no_print(_):
return None
def test_list_command():
runner = CliRunner()
execute_list_command(
... | [
"s@thupukari.com"
] | s@thupukari.com |
40816b4509834099df0a36e835300937d0875954 | 63e0b2a87237df482f559e428c068fb0bdae3786 | /python/tts_aksk_demo.py | 49a804c8c915b5d56eab9d7353895a66a8047692 | [
"Apache-2.0"
] | permissive | liwenxiang/ais-sdk | b547a16de630073e7552aad7425405d1b91d1a7e | 76240abc49795e914988f3cafb6d08f60dbdcb4c | refs/heads/master | 2020-05-13T21:54:56.771333 | 2019-04-04T10:06:58 | 2019-04-04T10:06:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # -*- coding:utf-8 -*-
from ais_sdk.utils import decode_to_wave_file
from ais_sdk.tts import tts_aksk
import json
if __name__ == '__main__':
#
# access text to speech,post data by token
#
app_key = '*************'
app_secret = '************'
# call interface use the default config
result ... | [
"17091412@qq.com"
] | 17091412@qq.com |
82c96800c7360a392e36d9f829b797033956880b | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/MEDIUM/YW_ZXBMM_SZXJ_097.py | 3725e08c3c5e6aebcbf3e46bfbad955ec13ddc7d | [] | 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,073 | 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 |
51f1669223491d79b767c54eee33c490e7696ab8 | a06b1f68a43622c21b1dbdd8680f21d588a45219 | /theory/espim/2D/plate/FSDT/transverse_shear_edge_based/stiffmatrices.py | 560948f4d2b1b61c7f3a8349af531c9f91bf3667 | [
"BSD-2-Clause"
] | permissive | i5misswrong/meshless | 6eac7e7ddbe51160ee37358ce36525b26b6c6843 | 27f9729050cedec2d7c1a716104d068608827c0f | refs/heads/master | 2021-01-15T22:51:33.502229 | 2017-07-05T13:59:17 | 2017-07-05T13:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,528 | py | import sympy
from sympy import Matrix
from meshless.sympytools import print_as_sparse, print_as_array, print_as_full
sympy.var('nx1, ny1')
sympy.var('nx2, ny2')
sympy.var('nx3, ny3')
sympy.var('nx4, ny4')
sympy.var('f11, f12, f13, f14')
sympy.var('f21, f22, f23, f24')
sympy.var('f31, f32, f33, f34')
sympy.var('f41, f... | [
"saullogiovani@gmail.com"
] | saullogiovani@gmail.com |
afdbe16747b31d11aa6ffd23da8bdb456945b5a7 | c36b028acbcb8c7416c13e011dd1f6fef3825a6b | /treehand.py | 12c71618d86a403dd284c85d8930b837919e52bd | [] | no_license | pglen/dbgui | 32184e1bd27dad001e52d93bb5a3feb088168921 | 790a9dd3fe9d30399550faef246d2e83467636bd | refs/heads/master | 2023-01-21T08:46:05.598868 | 2023-01-10T15:21:34 | 2023-01-10T15:21:34 | 153,726,394 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | #!/usr/bin/env python
from __future__ import print_function
import os, sys, getopt, signal
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GObject
from gi.repository import GLib
class TreeHand():
def __init__(self, tree_sel_row)... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
b2eec97a9e55d61e6b24331daca7712bdc299e93 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /accelbyte_py_sdk/api/ugc/operations/public_channel/public_create_channel.py | ede3403280ff18ce2acd0694c96810b63b78a3ae | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 8,118 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: ags_py_codegen
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint:... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
81cdfcc0b542f443cf22c5b6650f06961619aecb | 4979df3343d7b99a9a826bd1cb946ae79fac260c | /tests/core/test_compiler.py | 4c31895384c81437789919e69b48a45af242ea1f | [
"BSD-3-Clause"
] | permissive | e-calder/enaml | 753ff329fb8a2192bddbe7166581ed530fb270be | 8f02a3c1a80c0a6930508551c7de1d345095173d | refs/heads/master | 2021-07-30T01:18:29.222672 | 2021-07-27T08:51:50 | 2021-07-27T08:51:50 | 206,089,494 | 0 | 0 | NOASSERTION | 2019-09-03T13:52:44 | 2019-09-03T13:52:44 | null | UTF-8 | Python | false | false | 1,467 | py | #------------------------------------------------------------------------------
# Copyright (c) 2020, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"marul@laposte.net"
] | marul@laposte.net |
4aae37809f53da42d03a976e5a6283a33bae61c8 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/terraform/checks/resource/azure/AzureDefenderOnContainerRegistry.py | 4a4d616fcf8b8cf44c547f290b395ec7d758874c | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 994 | py | from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
from typing import List
class AzureDefenderOnContainerRegistry(BaseResourceCheck):
def __init__(self):
name = "Ensure that Azure Defender is set to On fo... | [
"noreply@github.com"
] | schosterbarak.noreply@github.com |
54a8323ed3240105110fca78f0cb928d7777c030 | 2234300b2316bc0e7b9fcc28de567c62c98a55b5 | /setup.py | b91c43d560eae77a6cfb609534438a62739b253a | [
"MIT"
] | permissive | PierrePaul/ABToast | 9f96249c1f3987421c1a68c81af084bd1a914d85 | edf65f0e86aace18a33a624c13c8ce936c5940eb | refs/heads/master | 2020-07-21T03:08:14.356334 | 2016-11-14T19:00:44 | 2016-11-14T19:00:44 | 73,740,655 | 0 | 0 | null | 2016-11-14T19:41:40 | 2016-11-14T19:41:40 | null | UTF-8 | Python | false | false | 468 | py | # _*_ coding: utf-8 _*_
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-abtoast',
version='1.0.3',
author='Hiten Sharma',
author_email='sharmahiten3@gmail.com',
packages=find_packages(),
url='https://github.com/htadg/ABToast',
license='MIT License',... | [
"sharmahiten3@gmail.com"
] | sharmahiten3@gmail.com |
894cf0ded218d4c3ec26f8fe45a2c3b61bbc23e9 | 27cd4886e5d08cca23bf36e24339ff1155b7db10 | /generators/splash/BagModules/adc_sar_templates_fdsoi/capdac_7b.py | ff152c65df1d3c87f87af13dd87f33d543d0924c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ucb-art/laygo | 8539accac6e9888122e8e0afd160d294ffb56bfc | 8f62ec1971480cb27cb592421fd97f590379cff9 | refs/heads/master | 2021-01-11T08:49:24.306674 | 2020-06-18T15:01:50 | 2020-06-18T15:01:50 | 194,750,788 | 24 | 9 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | # -*- coding: utf-8 -*-
########################################################################################################################
#
# Copyright (c) 2014, Regents of the University of California
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are... | [
"richards@eecs.berkeley.edu"
] | richards@eecs.berkeley.edu |
b30ddcdc45696a58718f254483b7b0596091e699 | 334bb5c9d948287d8746e81f0438ac5f3ef4c7c8 | /examples/full-screen/simple-demos/colorcolumn.py | b81bcabe0e43a48b686372e51b64a9271c64eedf | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | davidtavarez/python-prompt-toolkit | fc6629694cfdaa227c5c908f7cdb0b73b9eedd1a | ceeed2bb4cb8467cefc112987121b3afd37d773a | refs/heads/master | 2020-04-02T23:39:50.099817 | 2018-10-25T20:50:02 | 2018-10-25T20:50:02 | 154,874,871 | 1 | 0 | BSD-3-Clause | 2018-10-26T18:08:46 | 2018-10-26T18:08:46 | null | UTF-8 | Python | false | false | 1,906 | py | #!/usr/bin/env python
"""
Colorcolumn example.
"""
from __future__ import unicode_literals
from prompt_toolkit.application import Application
from prompt_toolkit.buffer import Buffer
from prompt_toolkit.key_binding import KeyBindings
from prompt_toolkit.layout.containers import HSplit, Window, ColorColumn
from prompt_... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
aa7a716385760f45fec52d6192485a83cb9b1531 | f9369134d8d12e4b542e5529d4283abbda76c07e | /BSTconstruction.py | d890ae7ee8b26bdb2eaca0fc823aa50b9a8cac78 | [] | no_license | yash921/leetcode-questions | 10fdaae874075ddb20331ccbf39dd82d10a9bb11 | f3fa3d3b5843a21bb86f91711105ae2751373e9c | refs/heads/main | 2023-03-27T01:28:13.986142 | 2021-03-20T06:23:40 | 2021-03-20T06:23:40 | 349,645,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 6 18:50:47 2020
@author: yash
"""
import pygame
class BST:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
# Average: O(log(n)) time | O(1) space
# W... | [
"yashdixit921@gmail.com"
] | yashdixit921@gmail.com |
25e6bd086f9b240c5225f9b752696fa71aab17ae | 5a281cb78335e06c631181720546f6876005d4e5 | /cloudkitty-9.0.0/cloudkitty/rating/noop.py | bcd23ab7f2e824e0c756b0c453b0e82d1fcdd194 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 1,398 | py | # -*- coding: utf-8 -*-
# Copyright 2014 Objectif Libre
#
# 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 ... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
7acbd3f06c296e7b9c504e668609619e1dc8f852 | 1aed14713ddc1a3cea120cb4c8d0d9f79cf62a77 | /test_classification.py | 2ecaf428745589ce698cc0d20d2a4930f9687c77 | [
"MIT"
] | permissive | dazzag24/ResumeParser | 16aa577548f6b300eab758ffb94aacce920b9566 | 06a105f587dd20dd47a9ac81c37e5f4b47d83d9f | refs/heads/master | 2020-04-12T06:55:17.931441 | 2018-12-19T14:21:10 | 2018-12-19T14:21:10 | 162,351,604 | 0 | 0 | MIT | 2018-12-18T22:17:24 | 2018-12-18T22:17:24 | null | UTF-8 | Python | false | false | 7,218 | py | # from glob import glob
# import os
# import pandas as pd
# import matplotlib.pyplot as plt
# import numpy as np
# import json
# from collections import defaultdict
# base_json = 'dataset/resume_dataset.json'
# def pop_annot(raw_line):
# in_line = defaultdict(list, **raw_line)
# if 'annotation' in in_line:
# ... | [
"omkarpathak27@gmail.com"
] | omkarpathak27@gmail.com |
d3551bbf0e9586456be42b46aba252c03480d773 | 39b0d9c6df77671f540c619aff170441f953202a | /PYTHON LIBRARY/SUB_3/linecache_getline.py | a046ab4287da9bd8bc46a9515c5c9027ab555e45 | [] | no_license | yeboahd24/Python201 | e7d65333f343d9978efff6bf86ce0447d3a40d70 | 484e66a52d4e706b8478473347732e23998c93c5 | refs/heads/main | 2023-02-06T10:24:25.429718 | 2020-12-26T01:08:04 | 2020-12-26T01:08:04 | 306,487,550 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | import linecache
from linecache_data import *
filename = make_tempfile()
# Pick out the same line from source and cache.
# (Notice that linecache counts from 1.)
print('SOURCE:')
print('{!r}'.format(lorem.split('\n')[4]))
print()
print('CACHE:')
print('{!r}'.format(linecache.getline(filename, 5)))
cleanup(fil... | [
"noreply@github.com"
] | yeboahd24.noreply@github.com |
986ea4fb769b25b6b526c57c670df265c47eca64 | 7172ed9a83a2d3d9a61918bbb9db89a4641f862a | /tests/test_resource_list.py | 89ea147c8912fc597230c055b7c325d2c07f16f3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | giorgiobasile/resync | e7bb49661b32a7789248eabf3a640c327c37b343 | c4734648a6ca93e985164450b85f387a349adee2 | refs/heads/master | 2021-01-13T13:39:49.865944 | 2016-05-06T22:33:37 | 2016-05-06T22:33:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,643 | py | import unittest
try: #python2
# Must try this first as io also exists in python2
# but in the wrong one!
import StringIO as io
except ImportError: #python3
import io
import re
from resync.resource import Resource
from resync.resource_list import ResourceList, ResourceListDupeError
from resync.sitemap i... | [
"simeon.warner@cornell.edu"
] | simeon.warner@cornell.edu |
ba713802b829240da77702cbc404256e8622c024 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /mas_nitro-python-1.0/sample/system_version.py | f30d7ea2bffb3a8239bf8a2d6c1e2d8bf5d973eb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 3,023 | py | #!/usr/bin/env python
'''
* Copyright (c) 2008-2015 Citrix Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
3e8bd385f8e17649c7021b1e65085eb5bb3cf686 | d41c15b9c68ab2ee70740044d25d620e6b90a09e | /app/mod_cmd/commands/login.py | c37dcd065386da1d5e8778f595de2e190332b205 | [
"Apache-2.0"
] | permissive | jaycode/Arthur.workspace | 9093b54cda983d2e8b6745b894403b5fa1282b56 | 7a581104141ee5f556e058b1276b4087a2921dfc | refs/heads/master | 2021-01-10T10:36:35.599700 | 2016-03-21T19:37:49 | 2016-03-21T19:37:49 | 55,436,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | """Login
"""
def run(project = None, args = [], **kwargs):
"""(todo) Login
login [username]
Args:
username: Do I need to explain this?
"""
return [project, instruction] | [
"teguhwpurwanto@gmail.com"
] | teguhwpurwanto@gmail.com |
40f6e5873c826d97e8e486bb641cd1a516f4eb39 | 8b1c47d1ee06bfd2642305bc8c6723ccbe7f9f0d | /pdot.py | 8daa9401b64244dc5827d08408e8b9371a91b5da | [] | no_license | tribeiro/DRATools | 6e594e3e0a497be9aa439c0cc76aa4923c7a5def | 8b73bd50e8cde0ab4225df495970c4199f5f1f1b | refs/heads/master | 2016-08-03T17:44:20.505742 | 2016-02-05T15:44:20 | 2016-02-05T15:44:20 | 6,463,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,562 | py | #! /usr/bin/env python
'''
Calculates Pdot for a O-C time of eclipses, considering Pdot constant over time.
'''
import sys,os
import numpy as np
import pylab as py
######################################################################
def main(argv):
'''
Main function. Reads input parameters and run iteractive pr... | [
"tiago.astro@gmail.com"
] | tiago.astro@gmail.com |
568d1d5d130d876efb8e9236f37533fd74439534 | feba3c32aac7f17d8fbaf6ef7bb4d229844f8247 | /machine_learning/clustering/spectral_clustering/SpectralClustering/main.py | 4478a211b938139541a188e35d40ad5479bc2d81 | [] | no_license | lisunshine1234/mlp-algorithm-python | d48aa1336ae7c4925a0e30f4f09fa6de21f83d0e | 898359a10f65f16e94f3bb27cc61f3837806ca68 | refs/heads/master | 2023-05-01T11:11:47.465491 | 2021-05-24T13:53:40 | 2021-05-24T13:53:40 | 291,934,886 | 0 | 0 | null | 2021-05-24T13:42:15 | 2020-09-01T08:00:17 | Python | UTF-8 | Python | false | false | 5,872 | py | import numpy as np
import run as r
'''
[id]
144
[name]
SpectralClustering
[input]
x_train 训练集 训练集标签数据集 二维数组 必须 定数
y_train 测试集 测试集数据集 二维数组 必须 定数
n_clusters 簇数 默认为8,投影子空间的尺寸,可选整数,整数 字符串 不必须 定数
eigen_solver eigen_solver 默认为None,使用特征值分解策略。 AMG需要安装pyamg。在非常大且稀疏的问题上,它可能会更快,但也可能导致不稳定,可选'lobpcg','amg','arpack' 字符串 不必须 定数
n... | [
"178513111@qq.com"
] | 178513111@qq.com |
b5e44acdf849d67dd76df15fee9528740e2d4810 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_price_response.py | 319556bbd2c00ca7611e5913f4d058e565a6f5bc | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,007 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowPriceResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
ba15ea6b6a8de11aca7e0fee71fc5594b4862c2b | c4a0669126f2fbf757ac3b33a8279ef32305bbd7 | /Python Crash Course/Chapter 13/13.1 Stars/main.py | d13a05bea7ad0b6f82c5294c2a451c874c0f822f | [] | no_license | ezeutno/PycharmProject | 822b5a7da05729c5241a03b7413548a34b12e4a5 | bdb87599885287d2d7cd5cd703b62197563722b8 | refs/heads/master | 2021-07-18T20:55:08.605486 | 2017-10-24T03:14:10 | 2017-10-24T03:14:10 | 105,782,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import pygame
from settings import Settings
from pygame.sprite import Group
import game_fuction as gf
def main():
pygame.init()
ai_settings = Settings()
screen = pygame.display.set_mode((ai_settings.screen_width, ai_settings.screen_height))
pygame.display.set_caption('Stars')
stars = Group()
gf... | [
"ivan.suratno@gmail.com"
] | ivan.suratno@gmail.com |
e0493a95982145e381c01ff67d16292c6a0349f0 | d191a04a3ded41175ea84ae88ebddb4f262b7fb1 | /Company test/nvidia.py | c4986c711e53efb20d3e34f2e58950269a5d26df | [] | no_license | YLyeliang/now_leet_code_practice | ae4aea945bae72ec08b11e57a8f8a3e81e704a54 | 204d770e095aec43800a9771fe88dd553463d2f7 | refs/heads/master | 2022-06-13T20:22:51.266813 | 2022-05-24T05:29:32 | 2022-05-24T05:29:32 | 205,753,056 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | x=int(input())
y=int(input())
z=int(input())
A=[]
B=[]
for _ in range(x):
A.append(list(map(int,input().split())))
for _ in range(y):
B.append(list(map(int,input().split())))
C=[['']*z for _ in range(x)]
for i in range(x):
for j in range(z):
C[i][j]=str(sum([A[i][k]*B[k][j] for k in range(y)]))
f... | [
"k87974@163.com"
] | k87974@163.com |
8e5a1d8fbec942a0e35a39675415f7e7b2f42cd4 | 3a18b8ba06a58231f4ecb2c1a231722cdf862e6b | /python_code/dillonsCode/websites_folder/todo_tutorial/venv/lib/python3.8/site-packages/werkzeug/middleware/proxy_fix.py | 2a7af0cdfe43370cd52976eac8ac734c1585167c | [] | no_license | dillonallen92/codeStorage | 98dd7f5a8ecb062e37313a1323aacd362ffc44c7 | 23351e0b3348de922283f6494762db9f291579d6 | refs/heads/master | 2023-07-07T10:32:40.428607 | 2023-06-26T23:26:47 | 2023-06-26T23:28:13 | 141,781,205 | 0 | 1 | null | 2023-02-12T00:21:58 | 2018-07-21T04:30:51 | Mathematica | UTF-8 | Python | false | false | 7,161 | py | """
X-Forwarded-For Proxy Fix
=========================
This module provides a middleware that adjusts the WSGI environ based on
``X-Forwarded-`` headers that proxies in front of an application may
set.
When an application is running behind a proxy server, WSGI may see the
request as coming from that server ... | [
"dillon.allen.92@gmail.com"
] | dillon.allen.92@gmail.com |
d69b9f745e9ad17b53c5384804fdd18190e526a7 | f82bfba767a44bc15557eb2d2ae2558c83cfb0e1 | /catkin_ws/src/tracking/src/diagnose.py | 808ad7f138ea91084f29763cd4647e031bf82b90 | [] | no_license | championway/argbot | 4d89a233541a38cd8c8293c55f981b78aad276b6 | a2c49a4a9df28675063aeb8d8ff6768f424526a1 | refs/heads/master | 2020-04-04T14:39:04.156209 | 2020-01-01T17:06:54 | 2020-01-01T17:06:54 | 156,006,637 | 8 | 2 | null | 2019-03-30T12:36:06 | 2018-11-03T17:24:24 | Jupyter Notebook | UTF-8 | Python | false | false | 4,534 | py | #!/usr/bin/env python
import numpy as np
import cv2
import roslib
import rospy
import tf
import struct
import math
import time
from sensor_msgs.msg import Image, LaserScan
from sensor_msgs.msg import CameraInfo, CompressedImage
from geometry_msgs.msg import PoseArray, Pose, PoseStamped, Point
from visualization_msgs.ms... | [
"cpwearth.eed03@g2.nctu.edu.tw"
] | cpwearth.eed03@g2.nctu.edu.tw |
08c90ebe0b76a7df4692e61b1223d169fa34fbe2 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /095_os_and_sys/_exercises/exercises/Programming_Python/04_File and Directory Tools/04_012_os.open mode flags.py | 2336e6e88475b4379afd36620f42eff0ea5e9cbc | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,564 | py | # _______ __
# fdfile _ __.o... _'C:\temp\spam.txt', __.O_R.. | __.O_B..
# __.r... ? 20
# # b'Hello stdio file\r\nHe'
# # ######################################################################################################################
#
# __.ls.. ? 0 0 # go back to start of file
# __.r... ? 100 # binary mode reta... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
62ab7743a9f1074052811f9d7645e054d1514cc3 | e3fc83e77e218f7b8df4b14b0753fd65afd4b923 | /downloaded_kernels/house_sales/converted_notebooks/kernel_121.py | 36d0e7d411d81763309cb78183e37fd1f9b83211 | [
"MIT"
] | permissive | jupste/wranglesearch | 982684fdaa7914af59758880fdc3a4ff3346477f | a6978fae73eee8ece6f1db09f2f38cf92f03b3ad | refs/heads/master | 2023-06-18T04:46:34.474046 | 2021-07-15T23:43:24 | 2021-07-15T23:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,981 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import matplotlib.pyplot as plt
plt.figure(figsize=(20, 5))
from sklearn.model_selection import train_test_split
from sklearn import tree
from sklearn import linea... | [
"jcamsan@rhino.csail.mit.edu"
] | jcamsan@rhino.csail.mit.edu |
c2c571d1543df3e9ae04c706f4659fbe4e3352ec | 9a181799f7b87aace15f0db9afedd861259a48c2 | /At least 1 edge between any 2 vertexes in directed graph.py | 65caf712b4e55b9f6fc994149d45f68c162b02bd | [] | no_license | D-Katt/Coding-examples | 77bea4cf1099019b12bbafd967c1c017adf4e9b8 | 81e8b47857513b7961cab4c09b8c27c20b8b8081 | refs/heads/master | 2021-12-25T05:01:05.026469 | 2021-12-17T13:43:57 | 2021-12-17T13:43:57 | 226,685,637 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | # Ориентированный граф называется полуполным, если между любой парой
# его различных вершин есть хотя бы одно ребро. Для заданного списком ребер
# графа проверьте, является ли он полуполным.
# Сначала вводятся числа n ( 1 <= n <= 100) – количество вершин в графе
# и m ( 1 <= m <= n(n - 1)) – количество ребер. Затем... | [
"noreply@github.com"
] | D-Katt.noreply@github.com |
6e0790e32d260b990eddc5aac28a8e17cb474c33 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5630113748090880_0/Python/musicman3320/argus.py | 5443e0aafb386bdc58fc19821a2d13ddc2e2698f | [] | 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 | 593 | py | fin = open('B-small-attempt0.in', 'r')
fout = open('B-small-attempt0.out','w')
numtests = int(fin.readline().rstrip())
for test in range(numtests):
N = int(fin.readline().rstrip())
heightCounts = [0]*2501
for i in range(2*N-1):
page = [int(h) for h in str(fin.readline().rstrip()).split(" ")]
for h in page:
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
98ae99df2b35e5c0d48d6310c4502d8027b57ff4 | 4314b77d958174db744ae29cd914d24435246cd0 | /sparse_ll.py | 5bf449c07b0c7a2b6a45ecffee23624d0ea43e35 | [] | no_license | danieljtait/solid-sniffle | 87aa262a2281be831c4408e6e06871d8affeb65a | 31abbe1387468100708e7d13baa166f97e094af8 | refs/heads/master | 2021-01-11T00:39:22.628372 | 2016-10-17T08:22:00 | 2016-10-17T08:22:00 | 70,501,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py |
import numpy as np
import matplotlib.pyplot as plt
from main import init_dbw_example,potential,Hamiltonian,pStationary,HJacobi_integrator
from main import pTransition
from scipy.interpolate import UnivariateSpline
X = np.loadtxt('dbwData1.txt',delimiter=',')
T = 0.5
tt = np.linspace(0.,T,50)
# For now fix diffusi... | [
"tait.djk@gmail.com"
] | tait.djk@gmail.com |
07a3b814581a863498fc66da22f05128fbf8aa7d | 59b3dce3c770e70b2406cc1dd623a2b1f68b8394 | /python_3/lessons/Properties/src/test_teacher.py | f4f1839acbf9975d7e2d0791f8b5ab9b6c999217 | [] | no_license | patrickbeeson/python-classes | 04ed7b54fc4e1152a191eeb35d42adc214b08e39 | b5041e71badd1ca2c013828e3b2910fb02e9728f | refs/heads/master | 2020-05-20T07:17:36.693960 | 2015-01-23T14:41:46 | 2015-01-23T14:41:46 | 29,736,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | import unittest
from teacher import Teacher
class TestTeacher(unittest.TestCase):
def setUp(self):
self.teacher = Teacher('steve',
'holden',
'63',
['Python 3-1','Python 3-2','Python 3-3'],
... | [
"patrickbeeson@gmail.com"
] | patrickbeeson@gmail.com |
6794f14678710d8ace89c78a28304ab8181c1c25 | d0002c42833f416d13c2452e3aaf31e34e474231 | /Multibox-FHD-Skin-4ATV/usr/lib/enigma2/python/Components/Renderer/AMBCicontrol.py | 2e7cb609b6a9bb4740eb067d30931f6eb66d2c69 | [] | no_license | stein17/Skins-for-openATV | b146b9d62a1c3149b02af09253a225db43783768 | ad67a0336e8cdba54bf6c5fda42cb12e2b820b05 | refs/heads/master | 2023-08-14T21:31:18.530737 | 2022-08-29T00:35:44 | 2022-08-29T00:35:44 | 94,653,168 | 12 | 18 | null | 2022-04-26T06:02:50 | 2017-06-17T22:47:47 | Python | UTF-8 | Python | false | false | 1,832 | py | #by Nikolasi and jbleyel
from Components.Renderer.Renderer import Renderer
from enigma import ePixmap, eDVBCI_UI, eDVBCIInterfaces, eEnv
from Tools.Directories import fileExists
from Components.Converter.Poll import Poll
class AMBCicontrol(Renderer, Poll):
searchPaths = [eEnv.resolve('${datadir}/enigma2/Multibox/%s/'... | [
"lutz.f.kroll@gmail.com"
] | lutz.f.kroll@gmail.com |
f697416ba21ad9c5bf52caaad7472d1afcf3e15f | fc678a0a5ede80f593a29ea8f43911236ed1b862 | /575-DistributeCandies.py | 4fa220fe6385d42dd5572d2b3e9528ca85753fa5 | [] | no_license | dq-code/leetcode | 4be0b1b154f8467aa0c07e08b5e0b6bd93863e62 | 14dcf9029486283b5e4685d95ebfe9979ade03c3 | refs/heads/master | 2020-12-13T15:57:30.171516 | 2017-11-07T17:43:19 | 2017-11-07T17:43:19 | 35,846,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | class Solution(object):
def distributeCandies(self, candies):
"""
:type candies: List[int]
:rtype: int
"""
return min(len(candies) / 2, len(set(candies))) | [
"dengqianwork@gmail.com"
] | dengqianwork@gmail.com |
f0f572dd9a8b601278b6a14b38b8ab2ede39f5d8 | e60487a8f5aad5aab16e671dcd00f0e64379961b | /python_stack/Algos/list_comprehension/interview2.py | 88cd08b39166faf1fc9acacbb6ec43f53c1757b6 | [] | no_license | reenadangi/python | 4fde31737e5745bc5650d015e3fa4354ce9e87a9 | 568221ba417dda3be7f2ef1d2f393a7dea6ccb74 | refs/heads/master | 2021-08-18T08:25:40.774877 | 2021-03-27T22:20:17 | 2021-03-27T22:20:17 | 247,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # LIST COMPREHENSIONS
# 1. return a list of numbers between (1-100)
# 2. List - I want n for each n in nums[1,2,3,4,5,6,7,8,9,10] -(even/odd)
# 3. List of dictionary- return list of brand and models for year>2000
# cars=[
# {'brand':'Ford','model':'Mustang','year':1964},
# {'brand':'Ford','model':'Ranger','yea... | [
"reena.dangi@gmail.com"
] | reena.dangi@gmail.com |
c1f8bb3be62c97ced5dc256c82611d9584b30bc9 | 960b3a17a4011264a001304e64bfb76d669b8ac5 | /mstrio/modeling/schema/__init__.py | 01d0f898ac0d5d563da16c9addf1e2a2610c83f7 | [
"Apache-2.0"
] | permissive | MicroStrategy/mstrio-py | 012d55df782a56dab3a32e0217b9cbfd0b59b8dd | c6cea33b15bcd876ded4de25138b3f5e5165cd6d | refs/heads/master | 2023-08-08T17:12:07.714614 | 2023-08-03T12:30:11 | 2023-08-03T12:30:11 | 138,627,591 | 84 | 60 | Apache-2.0 | 2023-07-31T06:43:33 | 2018-06-25T17:23:55 | Python | UTF-8 | Python | false | false | 323 | py | # flake8: noqa
from .attribute import *
from .fact import *
from .helpers import *
from .schema_management import (
SchemaLockStatus,
SchemaLockType,
SchemaManagement,
SchemaTask,
SchemaTaskStatus,
SchemaUpdateType,
)
from .table import *
from .transformation import *
from .user_hierarchy import... | [
"noreply@github.com"
] | MicroStrategy.noreply@github.com |
a1224e592c6abcd25d41d21b5503c12b326683c4 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/170_8.py | 8e5e0f599ffbaa4d32d8dfe5afc7b1f9031f152f | [] | 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 | 2,392 | py | Python | Check if list is strictly increasing
The test for monotonic sequence is a utility that has manifold applications in
mathematics and hence every sphere related to mathematics. As mathematics and
Computer Science generally go parallel, mathematical operations such as
checking for strictly increasing se... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
55ba0ca91879be3c1ad97a693770b8fd4d88b8bc | cf0779621df542169096d73476de493c0eb7eecd | /setup.py | 9454c7f1200e950f028e3ec48532a413397f72cd | [
"MIT"
] | permissive | aixpact/microservices-api | e16884d204dbcc63e1f49a1feb707e5980bdbeec | 639725be630f4f049cef9251cb5946dfd846d234 | refs/heads/master | 2020-05-20T02:55:32.561419 | 2019-05-08T07:21:47 | 2019-05-08T07:21:47 | 185,343,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from setuptools import setup
setup(
name='HelloApp-CLI',
version='1.0',
packages=['cli', 'cli.commands'],
include_package_data=True,
install_requires=[
'click',
],
entry_points="""
[console_scripts]
hello_app=cli.cli:cli
""",
)
| [
"frank@aixpact.com"
] | frank@aixpact.com |
416b80855f6461627677d64403c3f36b99959cfc | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v11/enums/types/conversion_origin.py | 636cddf2770b73e0085cb89f0705b9b6c383f762 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,240 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
efd46d8641ce515dc35ba0086dd38668077077c3 | 986a8c5de450fc436897de9aaff4c5f737074ee3 | /剑指offer/字符串/正则表达式匹配.py | aebcc76c678aad65e62c9dd65bc9248eb931a8d6 | [] | no_license | lovehhf/newcoder_py | 7a0ef03f0ea733ec925a10f06566040f6edafa67 | f8ae73deef1d9422ca7b0aa9f484dc96db58078c | refs/heads/master | 2020-04-27T18:20:19.082458 | 2019-05-24T15:30:13 | 2019-05-24T15:30:13 | 174,564,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | # -*- coding:utf-8 -*-
__author__ = 'huanghf'
"""
题目描述
请实现一个函数用来匹配包括'.'和'*'的正则表达式。模式中的字符'.'表示任意一个字符,而'*'表示它前面的字符可以出现任意次(包含0次)。
在本题中,匹配是指字符串的所有字符匹配整个模式。例如,字符串"aaa"与模式"a.a"和"ab*ac*a"匹配,但是与"aa.a"和"ab*a"均不匹配
"""
class Solution:
def match(self, s, p):
"""
# s, pattern都是字符串
dp[i][j]: s的前i个字符与... | [
"853885165@qq.com"
] | 853885165@qq.com |
72c5c0b01ae2c2fd37c6514e631e20eaf84a2f41 | 0cfd2faf3f52af67888f082bd9dc29f34ffdc810 | /python/2_0/watchdog.py | e434d9b6e239ae27fd1be2db6b4b5b98b0e61458 | [] | no_license | rsprenkels/kattis | 28bd078a797a9cfa76509145e39db77fe6a895cd | 7d51e8afb841c4bd4debaf5aef0c37f6da6f3abd | refs/heads/master | 2023-08-11T00:07:06.308151 | 2023-07-29T22:04:04 | 2023-07-29T22:04:04 | 69,284,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | import math
from typing import Tuple, Sequence
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
def __add__(self, other):
return Point(self.x + other.x, self.y + other.y)
def __sub__(self, other):
return Point(self.x - other.x, self.y - other.y)
... | [
"ron.sprenkels@gmail.com"
] | ron.sprenkels@gmail.com |
697c6ce021892e01d425df78101ae11b6bfd2b4f | c418bd9d730bc17653611da7f0642bdd25cba65f | /djangosite/users/forms.py | 55126f872392526a2768044a49fa73651634d1de | [] | no_license | ErDeepakSingh/Ajax-State-City | ae18a4f4b8ef8e90932d8aed74553897d7ac9b3b | 72a31424bd9402ef2c76198ee80934ac399fccf9 | refs/heads/master | 2020-08-16T02:29:36.081445 | 2019-10-16T02:51:22 | 2019-10-16T02:51:22 | 215,443,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserChangeForm
class UserUpdateForm(UserChangeForm):
password = None
class Meta:
model = User
fields = ['first_name', 'last_name', 'email']
# exclude = ['first_name']
| [
"deepakthakur755@gmail.com"
] | deepakthakur755@gmail.com |
4e3fac772aa2d67c2aab6d3965c3ef63863ca614 | 574e874ebd7889c23a6292705dcd89594567bae8 | /code/Scheduler_Class.py | 3e9aa38a4a331038c83d92063010e9f28ec5c2e7 | [] | no_license | hammadhaleem/Switching-Fabric-Simulator | 6bb9c65b983c7a23b11fd60f5e6472bc269878c9 | 279a22c349d02fd061bc52fd77e4c6be223041b7 | refs/heads/master | 2021-01-17T06:28:08.162967 | 2015-05-08T08:52:18 | 2015-05-08T08:52:18 | 34,894,625 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | from Queue_Class import *
import time
class StandardScheduler(object):
def __init__(self, number_of_queue,data):
super(StandardScheduler, self).__init__()
self.number_of_queue = number_of_queue
self.input_queue_object = SuperMultiQueue(int(self.number_of_queue))
self.output_queue_object = SuperMultiQueue(int... | [
"hammadhaleem@gmail.com"
] | hammadhaleem@gmail.com |
6d6487a513d54348666f0ce244513f8c0b0773b1 | 58f095f52d58afa9e8041c69fa903c5a9e4fa424 | /examples_UQ/TEST2.py | 3519916d32cf9db375c1fa916e9fb27bb71fdba2 | [
"BSD-3-Clause"
] | permissive | cdeil/mystic | e41b397e9113aee1843bc78b5b4ca30bd0168114 | bb30994987f36168b8f09431cb9c3823afd892cd | refs/heads/master | 2020-12-25T23:18:52.086894 | 2014-08-13T14:36:09 | 2014-08-13T14:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,723 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 2009-2014 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
############################... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
5fdfc19ffacd51059a30914512e970f4bc922a3d | d1742451b25705fc128acc245524659628ab3e7d | /Codeforces with Python/1144B. Parity Alternated Deletions.py | 928f29fb4554e6e84745a2c4f5cd70b8baf7e179 | [] | no_license | Shovon588/Programming | ebab793a3c97aedddfcad5ea06e7e22f5c54a86e | e4922c9138998358eed09a1be7598f9b060c685f | refs/heads/master | 2022-12-23T18:29:10.141117 | 2020-10-04T17:29:32 | 2020-10-04T17:29:32 | 256,915,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | n=int(input())
a=list(map(int,input().split()))
codd=0;ceven=0;odd=[];even=[]
for i in a:
if i%2==0:
ceven+=1
even.append(i)
else:
codd+=1
odd.append(i)
even.sort(reverse=True)
odd.sort(reverse=True)
if abs(codd-ceven)<=1:
print(0)
else:
if ceven>codd:
... | [
"mainulislam588@gmail.com"
] | mainulislam588@gmail.com |
62d61a289e5ed0d3b6b96274a6af852f57c89682 | 6b29d66ba7927129b68bc00db769f0edf1babaea | /SoftLayer/CLI/image/list.py | 74de2d02dfd63f8749ad77dcae506a180c1ccca1 | [
"MIT"
] | permissive | tdurden82/softlayer-python | 65f42923c347a164995dfc267829721032de261d | 0eed20fa4adedd3228d91d929bb8befb1e445e49 | refs/heads/master | 2021-01-17T10:01:48.087450 | 2015-10-19T18:38:53 | 2015-10-19T18:38:53 | 46,301,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | """List images."""
# :license: MIT, see LICENSE for more details.
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
from SoftLayer.CLI import image as image_mod
from SoftLayer import utils
import click
@click.command()
@click.option('--public/--private',
is_fl... | [
"k3vinmcdonald@gmail.com"
] | k3vinmcdonald@gmail.com |
93d181edc316819ffb8293d1f14bd6c16374f7a0 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/rectanglebinpack/all/conanfile.py | f77182eff1815c5c7427bd8ec64b4c03ec271b88 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 3,295 | py | import os
from conan import ConanFile
from conan.tools.build import check_min_cppstd
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, load, save
required_conan_version = ">=1.53.0"
class RectangleBinPackCona... | [
"noreply@github.com"
] | conan-io.noreply@github.com |
aaf71114a0ea633a8470abae97853ce02b109f69 | 365c85a280596d88082c1f150436453f96e18c15 | /Python/Interview/电梯与爬楼.py | 40bfb9e1b5e9d4195c9faf6bda94d32585345960 | [] | no_license | Crisescode/leetcode | 0177c1ebd47b0a63476706562bcf898f35f1c4f2 | c3a60010e016995f06ad4145e174ae19668e15af | refs/heads/master | 2023-06-01T06:29:41.992368 | 2023-05-16T12:32:10 | 2023-05-16T12:32:10 | 243,040,322 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import sys
class Solution:
def find_floor(self, floor, nums):
res = [0 for i in range(floor)]
min_res, min_index = sys.maxsize, 0
for i in range(floor):
for j in range(len(nums)):
res[i] += abs(i - nums[j])
if min_res > res[i]:
min_... | [
"zhaopanp2018@outlook.com"
] | zhaopanp2018@outlook.com |
56087d81dafd62bf5c993992aa00023609074dce | acc7137e34fdc950fbb2593b2c4b0355c975faa3 | /diffy_api/schemas.py | 4efb43587c24a360186b0e9ac3a5e8e8c37271bb | [
"Apache-2.0"
] | permissive | kevgliss/diffy | ba8b01b2c0daa81faa39d69e1380eea16b84d732 | 681d5edd4a72e47a924d4b1b1136d40efa52b631 | refs/heads/master | 2020-03-14T20:10:21.797782 | 2018-05-01T22:09:16 | 2018-05-01T22:09:16 | 131,772,394 | 0 | 0 | null | 2018-05-01T23:10:15 | 2018-05-01T23:10:14 | null | UTF-8 | Python | false | false | 1,166 | py | """
.. module: diffy.schemas
:platform: Unix
:copyright: (c) 2018 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>
"""
from marshmallow import fields
from diffy.schema import (
TargetPluginSchema,
Persistenc... | [
"kevgliss@gmail.com"
] | kevgliss@gmail.com |
697bac709aa09a2bdbb3d97f1417cfb4bbcc306d | f4b011992dd468290d319d078cbae4c015d18338 | /Array/Container_With_most_Water.py | 1c1adf9cf2aa2c41e70c6b93616bcd5d35dbfaf5 | [] | no_license | Neeraj-kaushik/Geeksforgeeks | deca074ca3b37dcb32c0136b96f67beb049f9592 | c56de368db5a6613d59d9534de749a70b9530f4c | refs/heads/master | 2023-08-06T05:00:43.469480 | 2021-10-07T13:37:33 | 2021-10-07T13:37:33 | 363,420,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | def container(li):
max = 0
for i in range(len(li)-1):
for j in range(i+1, len(li)):
a = j-i
b = min(li[i], li[j])
c = a*b
if max < c:
max = c
print(max)
n = int(input())
li = [int(x) for x in input().split()]
container(li)
| [
"nkthecoder@gmail.com"
] | nkthecoder@gmail.com |
f78f2203b461289608061f69e6fbe921db6e52b3 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /GIT-USERS/TOM-Lambda/CSEU2-Graphs-gp/src/challenge2/isl.py | ac24bdb92ca489c6b326e7896af3ef9e3e78d855 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 2,689 | py | from util import Queue
<<<<<<< HEAD
# island count problem
def island_counter(arr):
rows = len(arr)
cols = len(arr[0])
count = 0
for i in range(rows):
for j in range(cols):
if arr[i][j] == 1:
deleteOnes(arr, i, j, rows, cols)
count += 1
return count
def deleteOnes(grid, i, j, ... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
97b2ab61542ae094603a2691a04ef0fffc95cf21 | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/eBay/Trading/EndItem.py | 87aa0de2ea3a105cb636525193a819e0e0d694df | [
"MIT",
"Apache-2.0"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 4,780 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# EndItem
# Ends the specified item listing before the date and time that it is scheduled to end per the listing duration.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the A... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
65261f757b8d466feca4479d5346beec5a78e31b | e6d862a9df10dccfa88856cf16951de8e0eeff2b | /Core/worker/python-aiohttp/api_server/models/worker_performance_event_duty_details.py | f29762066c70ea15c67959153241105705c85d5b | [] | no_license | AllocateSoftware/API-Stubs | c3de123626f831b2bd37aba25050c01746f5e560 | f19d153f8e9a37c7fb1474a63c92f67fc6c8bdf0 | refs/heads/master | 2022-06-01T07:26:53.264948 | 2020-01-09T13:44:41 | 2020-01-09T13:44:41 | 232,816,845 | 0 | 0 | null | 2022-05-20T21:23:09 | 2020-01-09T13:34:35 | C# | UTF-8 | Python | false | false | 3,121 | py | # coding: utf-8
from datetime import date, datetime
from typing import List, Dict, Type
from api_server.models.base_model_ import Model
from api_server import util
class WorkerPerformanceEventDutyDetails(Model):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
D... | [
"nigel.magnay@gmail.com"
] | nigel.magnay@gmail.com |
0f79ee95751b41818a702247f7f40d6f88f71c80 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/1220.0_Count_Vowels_Permutation.py | 01e3682d75f3280c9a127e70607bc6363f6959ee | [] | 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 | 709 | py | '''
执行用时:120 ms, 在所有 Python3 提交中击败了63.64% 的用户
内存消耗:15.1 MB, 在所有 Python3 提交中击败了59.09% 的用户
通过测试用例:43 / 43
'''
class Solution:
def countVowelPermutation(self, n: int) -> int:
'''
a -> e
e -> a/i
i -> a/e/o/u
o -> i/u
u -> a
'''
MOD = 10 ** 9 + 7
a... | [
"laoxing201314@outlook.com"
] | laoxing201314@outlook.com |
f19f605ddf8db8b480c00c74ed23b523b12ed70d | 319d3dfc79d6249bf6d6dab1c51a7d5d0af3c860 | /tests/test_line_set_data.py | 00aa7bc5bec56fa3340c23db28ff5477fc06cb6e | [
"MIT"
] | permissive | jameshensman/matplotlib2tikz | 1d365b6a9e91453492a17ec28c5eb74f2279e26e | 450712b4014799ec5f151f234df84335c90f4b9d | refs/heads/master | 2023-01-24T07:59:53.641565 | 2022-02-28T11:27:51 | 2022-02-28T11:27:51 | 169,421,478 | 1 | 0 | MIT | 2019-02-06T14:47:09 | 2019-02-06T14:47:08 | null | UTF-8 | Python | false | false | 320 | py | # from <https://github.com/nschloe/tikzplotlib/issues/339>
import matplotlib.pyplot as plt
def plot():
fig = plt.figure()
line = plt.plot(0, 0, "kx")[0]
line.set_data(0, 0)
return fig
def test():
from .helpers import assert_equality
assert_equality(plot, "test_line_set_data_reference.tex")
| [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
b56d1a4f34a8e9cc9ae7192fc5b710a3e1a0ee47 | c3523080a63c7e131d8b6e0994f82a3b9ed901ce | /django/hello_world/hello_world_project/my_app/views.py | 93892aad6dc8f05c979061a01916dbfbfe83c670 | [] | no_license | johnlawrenceaspden/hobby-code | 2c77ffdc796e9fe863ae66e84d1e14851bf33d37 | d411d21aa19fa889add9f32454915d9b68a61c03 | refs/heads/master | 2023-08-25T08:41:18.130545 | 2023-08-06T12:27:29 | 2023-08-06T12:27:29 | 377,510 | 6 | 4 | null | 2023-02-22T00:57:49 | 2009-11-18T19:57:01 | Clojure | UTF-8 | Python | false | false | 655 | py | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
import datetime
def index(request):
return HttpResponse(
"Hello, World!"
"<a href='secret'>secrets</a>"
"<a href='geeks_view'>geeks_view</a>"
"<a href='template'>template</a>"
)
... | [
"github@aspden.com"
] | github@aspden.com |
7b1190e83ad63f84b348c940915312eff30c3b58 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/nlp/gpt2/src/utils/metric_method.py | 721d3f0619b1251f5d85a89639ac74cfe067a333 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 6,095 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
8c77d762715a190f6a21873d09291edc7d9199dd | 491c1e520a64e3ebd5349130f35047aaed1e70ec | /stack/monotonic_stack/739 dailyTemperatures.py | c8944e497eca5d5c03af42c94c50ed5f70a3e33b | [] | no_license | pangyouzhen/data-structure | 33a7bd7790c8db3e018114d85a137f5f3d6b92f8 | cd46cf08a580c418cc40a68bf9b32371fc69a803 | refs/heads/master | 2023-05-26T12:02:30.800301 | 2023-05-21T08:07:57 | 2023-05-21T08:07:57 | 189,315,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | from typing import List
class Solution:
# 暴力解法
def dailyTemperatures_(self, temperatures: List[int]) -> List[int]:
if not temperatures:
return []
l = len(temperatures)
res = [0] * l
for i in range(l):
for j in range(i + 1, l):
... | [
"pangyouzhen@live.com"
] | pangyouzhen@live.com |
301c10bb286366de50022142a49a5e4c3d4219c9 | c80b3cc6a8a144e9858f993c10a0e11e633cb348 | /plugins/gateway-acl/acl/api/group.py | a647f836086fc9940457cbd96486ebaae5fd5068 | [] | no_license | cristidomsa/Ally-Py | e08d80b67ea5b39b5504f4ac048108f23445f850 | e0b3466b34d31548996d57be4a9dac134d904380 | refs/heads/master | 2021-01-18T08:41:13.140590 | 2013-11-06T09:51:56 | 2013-11-06T09:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | '''
Created on Aug 7, 2013
@package: gateway acl
@copyright: 2012 Sourcefabric o.p.s.
@license: http://www.gnu.org/licenses/gpl-3.0.txt
@author: Gabriel Nistor
API specifications for access group.
'''
from .domain_acl import modelACL
from acl.api.acl import IAclPrototype
from acl.api.compensate import ICompensatePro... | [
"gabriel.nistor@sourcefabric.org"
] | gabriel.nistor@sourcefabric.org |
9377ca1d4e1a8f7e874803665efdc587668509ce | 4bc19f4dd098ebedcb6ee78af0ae12cb633671fe | /rekvizitka/templatetags/signin_tags.py | 8226953cbaa61707f115f701fe9c2a6a61ba2593 | [] | no_license | StanislavKraev/rekvizitka | 958ab0e002335613a724fb14a8e4123f49954446 | ac1f30e7bb2e987b3b0bda4c2a8feda4d3f5497f | refs/heads/master | 2021-01-01T05:44:56.372748 | 2016-04-27T19:20:26 | 2016-04-27T19:20:26 | 57,240,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # -*- coding: utf-8 -*-
from django import template
from rek.rekvizitka.forms import SigninForm, SignupForm
register = template.Library()
@register.inclusion_tag("includes/navigation/index.html", takes_context=True)
def signin_form(context):
result = {}
for d in context:
result.update(d)
... | [
"kraevst@yandex.ru"
] | kraevst@yandex.ru |
430c29e62b60c6a030c6eebfbbf4f5c8806ae29f | f48f9798819b12669a8428f1dc0639e589fb1113 | /office/misc/zekr/actions.py | 7f611db22f147aa0500f55fdb6215f5233806360 | [] | no_license | vdemir/PiSiPackages-pardus-2011-devel | 781aac6caea2af4f9255770e5d9301e499299e28 | 7e1867a7f00ee9033c70cc92dc6700a50025430f | refs/heads/master | 2020-12-30T18:58:18.590419 | 2012-03-12T03:16:34 | 2012-03-12T03:16:34 | 51,609,831 | 1 | 0 | null | 2016-02-12T19:05:41 | 2016-02-12T19:05:40 | null | UTF-8 | Python | false | false | 1,131 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2011 TUBITAK/BILGEM
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
... | [
"kaptan@pisipackages.org"
] | kaptan@pisipackages.org |
30d47c3b4db546a33d6f8b9cc2e181c424689c59 | 23e0629881270a881e68b2b07c6b8bc8b53c4127 | /glmtools/test/residual_test_int_scaling_nc.py | 746dcf06ef19d887e7e25f87429c712f3319eb1e | [
"BSD-3-Clause"
] | permissive | fluxtransport/glmtools | 7a78ed697ef3515869fa5c46afa9cd1b03700514 | ae17d95b61af011cf966392ba94863c5928053b7 | refs/heads/master | 2022-09-12T00:20:31.378392 | 2020-06-05T16:25:48 | 2020-06-05T16:25:48 | 266,206,763 | 1 | 1 | BSD-3-Clause | 2020-05-22T21:02:06 | 2020-05-22T21:02:06 | null | UTF-8 | Python | false | false | 1,655 | py | """
This set of tests reads the GLM data two ways, one by applying the unsigned integer conversion
manually, and the other by using the automatic method implemented in the library.
It was used to test PR #658 developed in response to issue #656 on the unidata/netcdf4-python library.
The second, full-auto method should... | [
"eric.bruning@gmail.com"
] | eric.bruning@gmail.com |
165573a4fe8aadb00a0a2ffec9a278040aa43dc8 | 3c8c2af952f2a785ca648c44954961a198c2ac6b | /tensorflower/Examples/NeuralNetworkExample/simple_neural_network_with_eager.py | a0be16daa338f9e52c6f3ae4318fdfcd600cdaf4 | [] | no_license | SCismycat/TensorFlowLearning | 0b8db07ca24f6a7ac75ddc9a91f7a13c71709104 | e5fe6359e2ae9fdfc6a6824efdfc2660c7a9d061 | refs/heads/master | 2020-11-25T18:30:55.859591 | 2020-01-03T12:45:24 | 2020-01-03T12:45:24 | 228,793,975 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Leslee
# @Email : leelovesc@gmail.com
# @Time : 2019.11.27 14:05
import tensorflower as tf
tf.enable_eager_execution()
tfe = tf.contrib.eager
# Import MNIST data
from tensorflower.examples.tutorials.mnist import input_data
mnist = input_data.read_data_s... | [
"leelovesc@gmail.com"
] | leelovesc@gmail.com |
65949528935c33a7194c89fc9126372595d6568f | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/python/wtforms.py | d5f3bc0b4cb6ebf88755c2e29ac9acc1dcd3dcdf | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from .base import PipBaseRecipe
class WTFormsRecipe(PipBaseRecipe):
def __init__(self, *args, **kwargs):
super(WTFormsRecipe, self).__init__(*args, **kwargs)
self.sha256 = 'ffdf10bd1fa565b8233380cb77a304cd' \
'36fd55c73023e91d4b803c96bc11d46f'
self.name = 'wtforms'
... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
fb2ae029326cdc5260c2c34c847575975d292b52 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03449/s515079577.py | ed708e8b8f9b546f606183d8cdb3a5cc6cd6ae6f | [] | 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 | 929 | py | import math
from math import gcd,pi,sqrt
INF = float("inf")
MOD = 10**9 + 7
import sys
sys.setrecursionlimit(10**6)
import itertools
import bisect
from collections import Counter,deque
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): retu... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3a60fe79b32100607536ae6536cd91c46be9e2ed | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/mediatranslation/v1beta1/mediatranslation-v1beta1-py/noxfile.py | 235477334e1e16d28e4cf484fb7e4a2071eaf77b | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
7b2e484e63c5fc45c04b1b476c54ad6f48df39f1 | a34b9c6cb03e13e0b13f55f3fcd23e974187a19b | /ample/utils.py | c31b1cbbbeb76b55ddb36918d3661cf0b51c3a1e | [
"MIT"
] | permissive | hhcho/ample | a9496e18943da1116a804cee27a2759905ce29a1 | cdb28d1ff1d285d851350e0446d0dc5e48a7a561 | refs/heads/master | 2020-04-10T19:08:10.569231 | 2018-12-12T17:42:03 | 2018-12-12T17:42:03 | 161,224,274 | 0 | 0 | MIT | 2018-12-12T17:42:04 | 2018-12-10T19:14:06 | Python | UTF-8 | Python | false | false | 1,633 | py | import errno
from fbpca import pca
import datetime
import numpy as np
import os
from sklearn.random_projection import SparseRandomProjection as JLSparse
import sys
# Default parameters.
DIMRED = 100
def log(string):
string = str(string)
sys.stdout.write(str(datetime.datetime.now()) + ' | [ample] ')
sys.st... | [
"brianhie@mit.edu"
] | brianhie@mit.edu |
9206f7deeac420809be8a7ba2e64e36170b26ce7 | 254f1c347c1c9412b8e7d2c41d4b53eae57e8ead | /analysis/hchii_candidates.py | e69ab1aa3cec535cb56308252e05a014f131f73c | [] | no_license | keflavich/MGPS | 16d9b2343e4e78609d77c9138341c04273d62b10 | a9f9dbaead132c42dd74de9915d2996c1fb0cf02 | refs/heads/master | 2021-06-03T06:33:49.335347 | 2020-11-04T01:21:45 | 2020-11-04T01:21:45 | 136,971,627 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | from dendrocat.aperture import Circle, Annulus
from astropy import wcs
from astropy.io import fits
from astropy.stats import mad_std
from astropy.convolution import convolve_fft, Gaussian2DKernel
from astropy import units as u
from astropy import coordinates
from astropy.table import Column, Table
import regions
import... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
3bcaece774afadaf9337a2966e2f51dc0850ba20 | cb25407fc1480f771391bb09e36dad123ec9fca2 | /bin/backupz.py | 48644d780bc7d83d269ca55a769e30ee3e83314d | [] | no_license | prataprc/zeta | f68925c9dfbf70331eae59ff5cf173956d249696 | 9c3bc88c56c67d0fff5c0790d768ad6cac79642f | refs/heads/master | 2021-01-20T01:51:20.194893 | 2017-04-25T08:07:41 | 2017-04-25T08:07:41 | 89,334,343 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | #! /usr/bin/env python
# This file is subject to the terms and conditions defined in
# file 'LICENSE', which is part of this source code package.
# Copyright (c) 2009 SKR Farms (P) LTD.
# Gotcha :
# Notes :
# * The back-up direcotry structure,
# <bkpdir>
# |---<name>
# |---<... | [
"prataprc@gmail.com"
] | prataprc@gmail.com |
963002037c164929ea7727c36d3bf9cd05df3dd9 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories/126714/kaggle-avazu-master/script/rare.py | 43114a58f77b0a7a3318461e834e50e3edd2f92b | [
"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 | 870 | py | import marshal
def stat(input,isTest):
f = open(input)
line = f.readline()
count = 0
while True:
line = f.readline()
if not line:
break
count += 1
if count % 100000 == 0:
print count
lis = line.split(",")
index = 11
if isT... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
ffc88f94db44f760091df1a143e9f2971d8b52db | 3700369b3c560e47dbc27c8b059b6f000a361f83 | /webapp/models.py | 9dc630d78b90b422702a3c3562405d4fb3819577 | [] | no_license | Aitmatow/instagram | 0a44bc05db6308ccb4648d55932613d1377915d1 | 2b8e19e899316720d1f0626a7587f1b895c77a6f | refs/heads/master | 2022-11-23T00:14:05.189119 | 2019-12-16T08:47:42 | 2019-12-16T08:47:42 | 227,972,959 | 1 | 0 | null | 2022-11-22T04:54:20 | 2019-12-14T05:46:03 | Python | UTF-8 | Python | false | false | 929 | py | from django.db import models
QUOTE_NEW = 'new'
QUOTE_APPROVED = 'approved'
QUOTE_STATUS_CHOICES = (
(QUOTE_NEW, 'Новая'),
(QUOTE_APPROVED, 'Подтверждена')
)
# Create your models here.
class Quote(models.Model):
text = models.TextField(max_length=2000, verbose_name='Текст цитаты')
created_at = models.D... | [
"aitmarowd@gmail.com"
] | aitmarowd@gmail.com |
cd94f45eb0dc8a9695b7edda556ed08c23785c4f | 663d89c6d26b66673d2df136366dab6f36f17ee9 | /audiovisual/indico_audiovisual/blueprint.py | f281f0bd19160c861bf5b607ed314e0150b5c730 | [
"MIT"
] | permissive | rama270677/indico-plugins-cern | 1a0a421bd45ce3f8bcea60d04ab4edca92fc5421 | 4ab66be5d633f31922be1ee8fd9d3a0905610924 | refs/heads/master | 2022-12-01T04:44:28.861197 | 2020-08-21T14:35:13 | 2020-08-21T14:35:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # This file is part of the CERN Indico plugins.
# Copyright (C) 2014 - 2020 CERN
#
# The CERN Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License; see
# the LICENSE file for more details.
from __future__ import unicode_literals
from indico.core.plugins i... | [
"adrian.moennich@cern.ch"
] | adrian.moennich@cern.ch |
34f23e5d5803c1e8ef372ec6d8a00f6416b33083 | d5ba475a6a782b0eed5d134b66eb8c601c41421c | /terrascript/data/docker.py | e4f799274d97d85094ebb96f999803db056d4c25 | [
"BSD-2-Clause",
"Python-2.0"
] | permissive | amlodzianowski/python-terrascript | ab42a06a5167e53ad8093b656a9bf14a03cb031d | 142b1a4d1164d1012ac8865d12fdcc72f1e7ae75 | refs/heads/master | 2021-05-19T11:59:47.584554 | 2020-03-26T07:13:47 | 2020-03-26T07:13:47 | 251,688,045 | 0 | 0 | BSD-2-Clause | 2020-03-31T18:00:22 | 2020-03-31T18:00:22 | null | UTF-8 | Python | false | false | 225 | py | # terrascript/data/docker.py
import terrascript
class docker_registry_image(terrascript.Data):
pass
class docker_network(terrascript.Data):
pass
__all__ = [
"docker_registry_image",
"docker_network",
]
| [
"markus@juenemann.net"
] | markus@juenemann.net |
f5ebb98bb66da12d55b669a91f4934411791b362 | 629f2bcdfb0902e013c16792184d4d809e40b775 | /notebooks/tests/group_images_by_cycle_for_panoramic_stitching/test_group_images_by_cycle.py | f438b251676b15c959701135a2187adec3264157 | [
"BSD-3-Clause"
] | permissive | neutronimaging/python_notebooks | 7d7a1df33300c4b952873efdfb358098a658896d | 70a43a76eaf08f4ac63db3df7fbfb2e5cdb1216e | refs/heads/next | 2023-08-30T20:05:20.225198 | 2023-07-05T16:38:10 | 2023-07-05T16:38:10 | 99,945,953 | 8 | 7 | BSD-3-Clause | 2022-11-03T12:03:30 | 2017-08-10T16:56:26 | Jupyter Notebook | UTF-8 | Python | false | false | 4,106 | py | from pathlib import Path
from notebooks.__code.group_images_by_cycle_for_panoramic_stitching.group_images_by_cycle import GroupImagesByCycle
import glob
class TestGroupImagesByCycle:
def setup_method(self):
data_path = Path(__file__).parent.parent
self.data_path = str(data_path)
tiff_pat... | [
"bilheuxjm@ornl.gov"
] | bilheuxjm@ornl.gov |
294de16b645cac37a71d2da6cad69031b535576e | 274563cbc93b8dfb93eb574babc4ab5109a20de2 | /basic/simple_draw_text.py | b0220f9f159a97fc9bc3f69992c39cab7a2cb8b9 | [] | no_license | land-pack/opencv-example | ed349cc4196b017ecfadc20d3419542dbb580111 | bef764c31e7fb3aaaa91fdceddc4617d5c9baedd | refs/heads/master | 2021-09-12T19:42:41.570268 | 2018-04-20T07:01:55 | 2018-04-20T07:01:55 | 109,978,004 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import numpy as np
import cv2
img = np.zeros((512, 512, 3), np.uint8)
font = cv2.FONT_HERSHEY_SIMPLEX
cv2.putText(img, 'Frank AK', (10, 500), font, 4, (255, 255, 255), 2, cv2.LINE_AA)
cv2.imshow('Text', img)
cv2.waitKey(0)
cv2.destroyAllWindows()
| [
"landpack@sina.com"
] | landpack@sina.com |
bc9e7e89d2e6baf54b81ba09c4a086e283f0e331 | d67bd00f8fe819bd3011ce154c19cbc765d59f1d | /branches/4.0_buildout/openlegis/sagl/skins/cadastros/auxiliares/tipo_norma_juridica/titulo_salvar_pysc.py | 74f5c0d14c877874fc08a3e7eefbbd31d9f42463 | [] | no_license | openlegis-br/sagl | 90f87bdbbaa8a6efe0ccb5691ea8424575288c46 | eabf7529eefe13a53ed088250d179a92218af1ed | refs/heads/master | 2023-08-31T12:29:39.382474 | 2023-08-29T16:12:01 | 2023-08-29T16:12:01 | 32,593,838 | 17 | 1 | null | 2023-08-29T06:16:55 | 2015-03-20T16:11:04 | Python | UTF-8 | Python | false | false | 376 | py | ## Script (Python) "titulo_salvar_proc"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=id, title
##title=
##
if hasattr(context.sapl_documentos.modelo.norma,id):
arquivo = getattr(context.sapl_documentos.modelo.norma,id)
arqui... | [
"contato@openlegis.com.br"
] | contato@openlegis.com.br |
89659d4b65962b9ea76b4d78d503da8bc52d4d1e | 9fa490196c2f7b2e102ed1b3c512403a9a5655e3 | /src/examples/lookup_example.py | 518da3720badec9cef9a519de4d0c031e807af3f | [] | no_license | TRomijn/EMAworkbench | 742d29d997e05d8dce4150dc09207d2b1fe10e95 | 02a211f95c1e0a634aba1d1cadadbeba33b1e27e | refs/heads/master | 2021-01-18T20:49:47.501239 | 2017-03-10T13:31:00 | 2017-03-10T13:31:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,657 | py | '''
Created on Oct 1, 2012
This is a simple example of the lookup uncertainty provided for
use in conjuction with vensim models. This example is largely based on
`Eker et al. (2014) <http://onlinelibrary.wiley.com/doi/10.1002/sdr.1518/suppinfo>`_
@author: sibeleker
@author: jhkwakkel
'''
from __future__ import (div... | [
"j.h.kwakkel@tudelft.nl"
] | j.h.kwakkel@tudelft.nl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.