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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc94576c94c792df77ee28ae73dd6f41f0c2d08b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_065/ch59_2020_03_04_19_22_17_952459.py | c7342597c4c20377297e4677c63dc63c883b744b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | def asteriscos(n):
result = '*' * n
return result | [
"you@example.com"
] | you@example.com |
96b751bafee5bfec57c1900b3f0737d33f666c7b | 729ee5bcb31708a82b08509775786597dac02263 | /coding-challenges/week09/day05/ccQ1.py | 01507bc127c3a7c3790250ee8b5756ef255aa621 | [] | no_license | pandey-ankur-au17/Python | 67c2478316df30c2ac8ceffa6704cf5701161c27 | 287007646a694a0dd6221d02b47923935a66fcf4 | refs/heads/master | 2023-08-30T05:29:24.440447 | 2021-09-25T16:07:23 | 2021-09-25T16:07:23 | 358,367,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | """
Q-1 ) Squares of a Sorted Array:(5 marks) (easy)
https://leetcode.com/problems/squares-of-a-sorted-array/
Given an integer array nums sorted in non-decreasing order, return an array of the
squares of each number sorted in non-decreasing order.
Example 1:
Input: nums = [-4,-1,0,3,10]
Output: [0,1,9,16,100]
Explanati... | [
"ankurpandey131@gmail.com"
] | ankurpandey131@gmail.com |
feed39e1f437c4d336656b405b1148f3b07bb364 | cfc7eed97d4987dbe80026205b7a127f89974d51 | /ebcli/controllers/codesource.py | 6fc3968ac2ad924babbabd2783fc67143c6b4fbd | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | stefansundin/awsebcli | bf71872328c4d94f073d5d0ae0740a0316d56fcf | 8e17c8ad3d24e3c4cef9a4c5dfc6cae61bd7066d | refs/heads/main | 2022-12-06T06:34:52.601029 | 2022-02-04T05:40:53 | 2022-11-20T01:38:26 | 230,182,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | # Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file... | [
"aws-eb-cli@amazon.com"
] | aws-eb-cli@amazon.com |
c7fbb95fa05343cc561f50c34178cda5f263255f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_363/ch18_2020_09_16_12_12_05_478212.py | d5e7f259a6b779b713536a1cdce9be08e76ba7cf | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | def testa_maioridade(idade):
if idade >= 21:
return 'Liberado EUA e BRASIL'
else:
if idade >= 18:
return 'Liberado BRASIL'
else:
return 'Não está liberado'
print(testa_maioridade(17))
print(testa_maioridade(20))
print(testa_maioridade(21)) | [
"you@example.com"
] | you@example.com |
85dd60d1a0c3316bda5a5dcf3306e7bf740b7417 | b07c4f4b99a46689a650d52bf1bd1d32160f06d3 | /tests/test_cps324.py | f14fcdd50b208eaae6ee51e93dfb35fd723dfb9a | [] | no_license | nuxeo-cps/products--CPSUpgradeTests | 2d67652c26fc212c9ec9864a76b0a7b1f819e2c9 | e3b1f94eaf78278b529561b2384ea3a3479123b3 | refs/heads/main | 2023-01-22T00:46:51.434789 | 2006-09-02T08:22:30 | 2006-09-02T08:22:30 | 317,994,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | # Upgrade from CPS 3.2.4
DB_NAME = 'cps324'
import os
import unittest
# Warning, nifty tapdance ahead:
# When you import testing, it sets testing home to
# $SOFTWARE_HOME/lib/python/Testing
import Testing
# But we want it to be in a directory with our custom_zodb.py, so we set it,
# but only after importing Testi... | [
"devnull@localhost"
] | devnull@localhost |
8c09c475eebebeba17d6965c5c16882309111a9f | b8441dc1987be9e64fa3081d456b2a3060ec44d1 | /mars/core/graph/builder/tileable.py | ddfbf93711c35982d8d457f21204d791adbbb977 | [
"BSD-3-Clause",
"MIT",
"ISC",
"Apache-2.0",
"CC0-1.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mars-project/mars | f99fefbce999d58a9249bc72046787a9731c9c73 | c36c53fa22e10ef9477d9c454401a2f281375f31 | refs/heads/master | 2023-07-23T00:23:55.133015 | 2023-07-03T11:44:54 | 2023-07-03T11:44:54 | 160,543,708 | 2,704 | 362 | Apache-2.0 | 2023-09-11T07:57:35 | 2018-12-05T16:04:03 | Python | UTF-8 | Python | false | false | 1,230 | py | # Copyright 1999-2021 Alibaba Group Holding 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 a... | [
"noreply@github.com"
] | mars-project.noreply@github.com |
e38060a8c7d9bb18f3deb109b85e49558db91fda | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/147/61122/submittedfiles/testes.py | 06774e42c5ec729f01f08e760f84be3690f8d627 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
n=int(input('digite n:'))
x1=n//1000
b=n//1000
b2=b%100
x2=b2//100
print(x1)
print(x2)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
48fd13cd46e26454f058944a362e8996ca192344 | 2edf3a0d21117c65dffe87c3da81365c77d66679 | /dfirtrack_main/tests/system/test_system_importer_file_csv_config_based_forms.py | baa1cddf83741025adb6aacefe2ee628c2689cb3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | fxcebx/dfirtrack | 003748305aa412aa9ec043faa98dac45d3053b5c | 20acf4e508aeef9faf2ed1d2195918b6640c1307 | refs/heads/master | 2022-12-10T02:25:47.676855 | 2020-09-24T23:15:42 | 2020-09-24T23:15:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | from django.core.files.uploadedfile import SimpleUploadedFile
from django.test import TestCase
from dfirtrack_main.importer.file.csv_importer_forms import SystemImporterFileCsvConfigbasedForm
class SystemImporterFileCsvConfigbasedFormTestCase(TestCase):
""" system importer file CSV config-based form tests """
... | [
"mathias.stuhlmacher@gmx.de"
] | mathias.stuhlmacher@gmx.de |
7c34356fc7693cae881d92047c8d025ff83373d7 | 41f548fc3052d4cd3a94e3171a0e2120705ed760 | /Gomine_DOC_Unicode/Old_crawl/shiye/shiye/items.py | ecb978c4f13f93ff5406aee5a8d1ec921ae69426 | [] | no_license | SuperShen9/Scrapy | 806f972bcd05d85bf02349c5ee7711af550c8568 | cbe141f697596d5a384bb968d7343194236a541f | refs/heads/master | 2021-01-19T13:04:19.957911 | 2018-06-27T23:47:21 | 2018-06-27T23:47:21 | 88,060,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ShiyeItem(scrapy.Item):
# define the fields for your item here like:
name = scrapy.Field()
code=scrapy.Field()
url=scrapy.Field()
... | [
"675153178@qq.com"
] | 675153178@qq.com |
e984ed448f3a0a8dc1424728498e0d9e98beb857 | 0032c98333ffc0efdb920ecca31ab224378880e5 | /rpi-tutorial/Servo2.py | a25b57ffaefc303c79cc41c4e84ef8fd55d8d646 | [] | no_license | raspibrick/install | bd1c6f9a8cb524f2ab5a2c17ad8c5463b768dffa | 96288d6ca21abd8fb993cc376e37c16473b54dd5 | refs/heads/master | 2021-01-10T05:00:39.159879 | 2019-07-25T09:46:04 | 2019-07-25T09:46:04 | 40,703,681 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | # Servo2.py
# Two servo motors driven by PCA9685 chip
from smbus import SMBus
from PCA9685 import PWM
import time
i2c_address = 0x40
fPWM = 50
channel = 1
a = 8.5
b = 3
def setup():
global pwm
bus = SMBus(1) # Raspberry Pi revision 2
pwm = PWM(bus, i2c_address)
pwm.setFreq(fPWM)
def setDirection(dir... | [
"a2015@pluess.name"
] | a2015@pluess.name |
d0585631be5a98578e7397c70df0b3441eda5577 | 72d6b3ab3fc2c7014967a156de082d1c617cbf0f | /操作数据库/使用Flask连接MySQL_将话务数据入库.py | 04fe27cd42ae98af04094148fdc468a3a171760e | [] | no_license | fengmingshan/python | 19a1732591ad061a8291c7c84e6f00200c106f38 | b35dbad091c9feb47d1f0edd82e568c066f3c6e9 | refs/heads/master | 2021-06-03T08:35:50.019745 | 2021-01-19T15:12:01 | 2021-01-19T15:12:01 | 117,310,092 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,285 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 1 10:16:45 2020
@author: Administrator
"""
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
import pandas as pd
import os
work_path = 'd:/_python/python/操作数据库/'
os.chdir(work_path)
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_U... | [
"fms_python@163.com"
] | fms_python@163.com |
211f00020a05944b181487ed9873e302b77af690 | 818afe5e04bcba8b8dfcd37c17a797d5a677725d | /baselines/cifar/data_utils.py | 260fe8f7100e8b11845eba45f58022f4ef5c8180 | [
"Apache-2.0"
] | permissive | nizamphoenix/uncertainty-baselines | 01614eea136603def0dc2a942c83b6fb1df589f2 | 0a7fbbac463788533cc5f26109e616971573dd2e | refs/heads/master | 2023-01-31T16:01:18.397839 | 2020-12-14T22:19:15 | 2020-12-14T22:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,699 | py | # coding=utf-8
# Copyright 2020 The Uncertainty Baselines 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 ap... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
341214ce0a249bddd010f09c10ca7e03d99e3426 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-core/Examples/Scripts/wmEnable.py | df5e11a37bc3d66f12b37c05d46dbc5fd132e7d2 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | #!/usr/bin/pythonw
"""
This is an evil undocumented SPI hack that shows how to enable GUI operation
from a console application.
BUNDLES ARE RECOMMENDED, USE THIS AT YOUR OWN RISK!!
"""
import os
import sys
import objc
from Foundation import *
def S(*args):
return b"".join(args)
OSErr = objc._C_SHT
OUTPSN = b"o... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
23431939ada901e854bbd6ac06687c0c52e512f9 | 23a3c76882589d302b614da5f4be0fc626b4f3cd | /python_modules/dagster/dagster/core/definitions/trigger.py | ac2193f821092157e9e91f5367bb6b2bc68ba5d4 | [
"Apache-2.0"
] | permissive | DavidKatz-il/dagster | 3641d04d387cdbe5535ae4f9726ce7dc1981a8c3 | 7c6d16eb8b3610a21020ecb479101db622d1535f | refs/heads/master | 2022-12-20T13:08:36.462058 | 2020-09-14T18:12:12 | 2020-09-14T22:43:26 | 264,703,873 | 0 | 0 | Apache-2.0 | 2020-06-16T09:49:00 | 2020-05-17T15:56:57 | Python | UTF-8 | Python | false | false | 4,312 | py | from collections import namedtuple
from dagster import check
from dagster.core.instance import DagsterInstance
from dagster.utils.backcompat import experimental_class_warning
from .mode import DEFAULT_MODE_NAME
class TriggeredExecutionContext(namedtuple("TriggeredExecutionContext", "instance")):
"""Trigger-spec... | [
"prha@elementl.com"
] | prha@elementl.com |
8344d1a9044d83a7d0867f09887cb1d7af8c0729 | 3259ffe73a1b2f1a17f0cf0512452d47f47f441d | /Leet Code/268_missing_number.py | f3cae5afa7eb9cf57fddd9e5bb12c9d9ea15054c | [
"MIT"
] | permissive | aayushmaru18/Competitive-Programming | a9160509afe32ee3eced0b7d830c33d62ba6f146 | 0ef237a140901005371a792eea4676b5386c7c50 | refs/heads/master | 2023-05-04T22:03:01.224426 | 2021-06-01T08:37:19 | 2021-06-01T08:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | class Solution:
def missingNumber(self, nums: List[int]) -> int:
n = len(nums)
s = n*(n+1)//2
for i in nums:
s -= i
return s
| [
"keshav.sm@somaiya.edu"
] | keshav.sm@somaiya.edu |
ffc3e0a708efdb334677d8fcea0d1a1dc4ef2f87 | 81c8beba79c93c50df57ae9654ed23a6b5a1546f | /more/highrest/model.py | 539ab0b21c09af56c5c1161765d2bf3524b4d785 | [] | no_license | morepath/more.highrest | d80a0f3813b246ce636e63b3bf62954ac899ee2f | c15b700b647cd59f4a4dc8bb422e8eb7f9574c4d | refs/heads/master | 2021-01-23T03:21:27.649821 | 2017-03-24T16:41:56 | 2017-03-24T16:41:56 | 86,072,014 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | class CollectionBase(object):
def clone(self, offset, limit, *args, **kw):
raise NotImplementedError()
def add(self, data):
raise NotImplementedError()
def query(self):
raise NotImplementedError()
@staticmethod
def load(request):
raise NotImplementedError()
de... | [
"faassen@startifact.com"
] | faassen@startifact.com |
0603a3669f5e124d892ba55d02f5e796c270385f | e46f56cc1ffa52dee7da4efc718a09405a323a4e | /COT/commands/tests/test_edit_hardware.py | 0f68e914fafb800190f595e04ffbdf89335ad945 | [
"MIT"
] | permissive | harrisonfeng/cot | b8f8a7610c73c3154f7428c576b29d9c3795a97c | 532a6263c5b0462aa290a2852d27317fcc76d576 | refs/heads/master | 2020-12-31T04:15:57.133565 | 2017-04-03T18:27:12 | 2017-04-03T18:27:12 | 56,671,341 | 0 | 0 | null | 2016-04-20T08:51:56 | 2016-04-20T08:51:55 | null | UTF-8 | Python | false | false | 86,299 | py | #!/usr/bin/env python
#
# edit_hardware.py - test cases for the COTEditHardware class
#
# December 2014, Glenn F. Matthews
# Copyright (c) 2013-2017 the COT project developers.
# See the COPYRIGHT.txt file at the top-level directory of this distribution
# and at https://github.com/glennmatthews/cot/blob/master/COPYRIGH... | [
"glenn@e-dad.net"
] | glenn@e-dad.net |
27f37a64fd56abf5c84a6de0d251780d79d6574c | f889bc01147869459c0a516382e7b95221295a7b | /swagger_client/models/body_19.py | c3a0a50364961c0b3731d25640fcee6a6b0617c9 | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,764 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
f4bac242f4ebcee19ff5f95406e835f40256a054 | 6118f2fa2be32a1b1d50a0965f7fa3e137b408bc | /examples/increment.py | 63228df71029b9ba4cb0701f57bd88b8a8616fee | [
"MIT"
] | permissive | eerimoq/mqttools | 66f296c3c76b4909c86d5d287e4a96b6b755bd44 | a28c86e89af0852249a5d6f33f9e67036c3eb8fe | refs/heads/master | 2021-12-27T04:35:33.868653 | 2021-12-24T12:15:01 | 2021-12-24T12:15:01 | 184,444,451 | 58 | 13 | MIT | 2021-11-30T19:04:53 | 2019-05-01T16:15:41 | Python | UTF-8 | Python | false | false | 799 | py | import asyncio
import mqttools
HOST = 'localhost'
PORT = 1883
async def main():
client = mqttools.Client(HOST, PORT)
await client.start()
print(f'Connected to {HOST}:{PORT}.')
await client.subscribe('/mqttools/incrementer/value/request')
print('Subscribed to topic /mqttools/incrementer/value/re... | [
"erik.moqvist@gmail.com"
] | erik.moqvist@gmail.com |
5c41edc54e8e9283a6870f5b3623e2c2ac088296 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayOpenPublicTopicModifyResponse.py | 6966bb50727abcc86c30bc3aab8df6044201e7f2 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayOpenPublicTopicModifyResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenPublicTopicModifyResponse, self).__init__()
def parse_response_content(self, re... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
c0501cb9929bcf12f787d370a8a1d9c9a0509d34 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/4/usersdata/133/2972/submittedfiles/swamee.py | 8bc3612585f4c89c2b305dc9bb6a96027440b5e3 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#COMECE SEU CÓDIGO AQUI
f=input('Digite o valor de f:')
l=input('Digite o valor de l:')
q=input('Digite o valor de q:')
deltah=input('Digite o valor de deltah:')
v=input('Digite o valor de v:')
D = ((8*f*l*(q*q))/(((math.pi)**2)*9.81*deltah))**0.2
Rey... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9a6213180a3b7206990f12a3342fc9c1ae19a54d | 01733042e84a768b77f64ec24118d0242b2f13b8 | /uhd_restpy/testplatform/sessions/ixnetwork/quicktest/traffictest_9709f3566877e5d5fb6ae115268058c6.py | 4aff724fb98589bc548a121034ccba351b540266 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 13,531 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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 without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
9d5268559b9f20871c0835f6a0a9edd415c007c8 | 280019d1106e6dd887f1c0fe020bcd433790d8e1 | /capture_tag/templatetags/capture_tags.py | 0b5e7b45174cd019e0a95bd44634aada96d9f16d | [
"Apache-2.0"
] | permissive | edoburu/django-capture-tag | 41af5dea34ec791791e03a95e2e52b88dd8c3ea8 | f63533dd1a5ce3926c36e5795a3767ab4d7eb6fc | refs/heads/master | 2023-08-14T05:05:00.023501 | 2021-11-16T22:04:50 | 2021-11-16T22:04:50 | 56,684,352 | 19 | 4 | Apache-2.0 | 2023-07-11T08:20:29 | 2016-04-20T12:19:46 | Python | UTF-8 | Python | false | false | 2,445 | py | from django.template import Library, Node, TemplateSyntaxError
register = Library()
@register.tag(name="capture")
def do_capture(parser, token):
"""
Capture the contents of a tag output.
Usage:
.. code-block:: html+django
{% capture %}..{% endcapture %} # output in {{ cap... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
7f50743de0d5d46bbfdc8495e78fe260fec55f25 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py | aea980942a7dfffee1131dd715df6326a604aeac | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 11,317 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import pyt... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
07c86867c6a6240b881b7799c91f53d202d3a79c | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/media/v20200201preview/_enums.py | 60f247261361ebfece18ad62df164c9d945509e3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | 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! ***
from enum import Enum
__all__ = [
'MediaGraphRtspTransport',
]
class MediaGraphRtspTransport(str, Enum):
"""
Underlying RTSP transport. ... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
872530536f3f6682b50288fc140a34b61bc5ebd4 | 566754f63c0d665af01bdad8814873468f8be888 | /python/learn/numpy/boolean.py | c40817a9576b6a15190233b89e8ef2a9284a34e1 | [
"MIT"
] | permissive | qrsforever/workspace | 7f7b0363649b73e96526745f85a22e70b1c749c9 | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | refs/heads/master | 2022-05-04T18:58:41.562544 | 2020-05-25T04:07:00 | 2020-05-25T04:07:00 | 82,469,335 | 2 | 0 | MIT | 2022-04-12T21:54:15 | 2017-02-19T15:36:43 | Jupyter Notebook | UTF-8 | Python | false | false | 1,015 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import numpy as np
import numpy.random as rand
def test1():
"""
& | 布尔运算
"""
arr = np.zeros((16, 16)) + 3
# 从第4行(列)到倒数第4行(列)
arr[4:-4, 4:-4] = 6
arr[7:-7, 7:-7] = 9
# print(arr)
index1 = arr > 2
index2 = arr < 6
compound_index = ... | [
"lidong8@le.com"
] | lidong8@le.com |
340d4560fceeb7f8f5ce6df9db6f28fa1f292720 | 2d4240a03bfa47386677a78250df220c55a7bf6c | /PythonCookbookLearning/chapter8/8.7.3.py | 52c8d9a319d86872ad3ba20726dd89ad240dfb57 | [] | no_license | Falonie/Notes | c7976e9e7514e5d7cddf918c3c54442a89532aab | 38e980cb5170a696626085b72795a096679e972b | refs/heads/master | 2022-02-13T11:20:39.613115 | 2019-09-02T01:07:27 | 2019-09-02T01:07:27 | 99,218,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | class Base(object):
def __init__(self):
print('Base.__init__')
class A(Base):
def __init__(self):
super().__init__()
print('A.__init__')
class B(Base):
def __init__(self):
super().__init__()
print('B.__init__')
class C(A, B):
def __init__(self):
supe... | [
"541002901@qq.com"
] | 541002901@qq.com |
98a4f5409336a01c4f7a38567ca2dfcdf5371cbc | c28783b279c89ea98967064304eb3d883940b193 | /src/di_replication/repl_read_top_row/repl_read_top_row.py | b024ae54582d3a03c023813d070c989e91a29ca5 | [
"MIT"
] | permissive | thhapke/di_replication | c7784f7c60dee527c5498e99f66d390e94db8645 | f23e48d60c0d76603eec5071ea57d0646a44389e | refs/heads/master | 2023-02-14T14:22:54.876677 | 2021-01-14T11:40:55 | 2021-01-14T11:40:55 | 277,468,734 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | import sdi_utils.gensolution as gs
import sdi_utils.set_logging as slog
import sdi_utils.textfield_parser as tfp
import sdi_utils.tprogress as tp
import subprocess
import logging
import os
import random
from datetime import datetime, timezone
import pandas as pd
try:
api
except NameError:
class api:
... | [
"53856509+thhapke@users.noreply.github.com"
] | 53856509+thhapke@users.noreply.github.com |
e7cb9d3d626b68c0e92c3fbeda2d26d8d2812576 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py | 686c9dc622990d21ec56f8dc1e20569d14958b9b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 6,058 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
fccdf002d3624704682080cfcfad0a8da497660d | 2be8a9f06d4003d12c0a727fb83d284c31a53050 | /HoudiniHotBox17.0/lib/mantrasurface.py | 14fd36488357f5ba0316020a601a4c3c65b4e2c7 | [] | no_license | LiuLiangFx/SmileHotBOX | 7551d9578b2defe612950cb8e3bffdb85024cede | 8bd8eac69b3c2a9824b9aa4488ca77789bea8d85 | refs/heads/master | 2021-01-01T10:22:26.959731 | 2020-02-09T03:16:32 | 2020-02-09T03:16:32 | 239,236,801 | 0 | 0 | null | 2020-02-09T02:47:18 | 2020-02-09T02:47:18 | null | UTF-8 | Python | false | false | 138 | py | import hou
class mantrasurface:
def run(self):
node = hou.node("/shop")
node.createNode("mantrasurface")
| [
"change52092@yahoo.com"
] | change52092@yahoo.com |
086a8df0c8339b236cf7ca37ad68644942a570e2 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_2203.py | d82b9273211c6488b6c4ed00ac417bea5f7bc2fb | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | # I want the actual file name that is returned by a PHP script
urllib.urlretrieve(URL, directory + "\\" + filename + "." + extension)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
c208e65a004c73d0f48559a896158d1e95398217 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/EDataServer/SourceAutocompletePrivate.py | 1de46992f4fdcbcee66390bb6885068da4e6eb42 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,505 | py | # encoding: utf-8
# module gi.repository.EDataServer
# from /usr/lib64/girepository-1.0/EDataServer-1.2.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attrib... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
2a5b864a3ebcf588854fa0df2b2e9e32ddbee910 | 3fd6e85c36a7e9e4f9ddec163a55f3602ccfb98c | /hw/gimbal/firmware/site_scons/site_tools/arm_none_eabi.py | 1ed9fbfb9debd2019a680a3816a74982f6a83789 | [
"Apache-2.0"
] | permissive | SiChiTong/mjmech | acc5da4ac6edd9f1446cc13e471aedeea3e1c419 | a71f35e6ad6bc9c1530a0a33d68c45d073390b79 | refs/heads/master | 2020-03-20T03:44:13.276650 | 2018-05-06T02:59:55 | 2018-05-06T03:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | # Copyright 2015 Josh Pieper, jjp@pobox.com. 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 ap... | [
"jjp@pobox.com"
] | jjp@pobox.com |
e62bb40c823f97a4d88b9ee4884e3edb00c40a0d | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/dhcp/clientaddr.py | 134e0b93623bfb9ff57a9db85dbee07038399b49 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 3,567 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
b8d9f5ee64570bdf0c15ab55e124cd7e677cb144 | be429a1e5e4903616a4532c1bf238df20fea75c0 | /6.14/127.单词接龙.py | 3f21e478f21ed4a7dfac01e5e07586b2c193a049 | [] | no_license | pythonnewbird/LeetCodeSolution | ccc8cc17df4cea3109d84b0c347ae91c1bc33a28 | 2447f760f08fb3879c5f03d8650e30ff74115d3d | refs/heads/master | 2020-03-19T05:06:06.681429 | 2018-07-01T12:39:09 | 2018-07-01T12:39:09 | 135,899,944 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | class Solution(object):
def ladderLength(self, beginWord, endWord, wordList):
"""
:type beginWord: str
:type endWord: str
:type wordList: List[str]
:rtype: int
"""
wdset=set(wordList)
if endWord not in wdset:
return 0
lts="abcdefghi... | [
"21637007@zju.edu.cn"
] | 21637007@zju.edu.cn |
512a43263d45f6d4fbf19a27ad961a1de09eba30 | fa5cb3cb27132a330673650afa1d68dd35f15251 | /newrelic/core/thread_utilization.py | fd57ba9f86fc98a03d51ad739747f385a68950b0 | [
"Apache-2.0"
] | permissive | jbeveland27/newrelic-python-agent | 95b4fdf253915100bc62bbd143066f589efc3ab9 | 86c78370ace1eba18e05de5e37aadb880f5f3ac4 | refs/heads/main | 2023-07-12T06:40:58.741312 | 2021-08-19T23:37:14 | 2021-08-19T23:37:14 | 398,122,410 | 1 | 0 | Apache-2.0 | 2021-08-20T01:38:35 | 2021-08-20T01:38:33 | null | UTF-8 | Python | false | false | 4,451 | py | # Copyright 2010 New Relic, 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 required by applicable law or agreed to in writ... | [
"opensource@newrelic.com"
] | opensource@newrelic.com |
badc3f499d4497e8cb855a63837126b58ed27f20 | 758b475451f96bb63b0fd4922beb7b6e1ed40137 | /PyCalendar/branches/server-stable/src/pycalendar/vtodo.py | 9dbe55e934316b748a5ee5e034cfe4f1126faa63 | [
"Apache-2.0"
] | permissive | svn2github/calendarserver-raw | da9f0bfa94d8080a9803eab5e4630be21645b329 | 37edd10248e8c13dc13f65ff52c72df1783e3499 | refs/heads/master | 2023-01-11T00:51:40.137861 | 2015-01-07T00:07:46 | 2015-01-07T00:07:46 | 14,276,537 | 1 | 0 | null | 2022-12-21T13:08:16 | 2013-11-10T13:09:44 | Python | UTF-8 | Python | false | false | 10,786 | py | ##
# Copyright (c) 2007-2011 Cyrus Daboo. 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
#
... | [
"cyrusdaboo@e27351fd-9f3e-4f54-a53b-843176b1656c"
] | cyrusdaboo@e27351fd-9f3e-4f54-a53b-843176b1656c |
bf84a23ac25841aaf18ddc5f2a8785a878f6e123 | 3313419e883041b04bd09f7e905dc9fb24cd8ec8 | /multi_kmeans_group_line_chart.py | 7559a28604b94a194b5308ec440890374719a7d0 | [] | no_license | xiaosean/preprocess_py | d6d46a91be0d31c3ac082c4dc21587b27b34bf11 | fa480a0f8401c4ccff61ea8215bcf40802b2ba36 | refs/heads/master | 2023-06-23T17:30:19.296637 | 2017-11-06T23:12:02 | 2017-11-06T23:12:04 | 90,627,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,789 | py | import numpy as np
import pandas as pd
from time import time
from sklearn.cluster import KMeans
from pandas.computation import expressions as expr
from bokeh.charts import Line, show, output_file, save
import pprint as pp
import sys
from bokeh.palettes import Spectral11, Category10
# set configure
# path = "./CDR_NORM... | [
"xiaosean5408@gmail.com"
] | xiaosean5408@gmail.com |
9ee8c45a0a1b6322c5d70c2a111aabf4840f4924 | 40a8d8c2c2bb98b6a27dd62825a601597e2970c5 | /home/management/commands/load_initial_data.py | 7fac54795d1eb102cf1db3da1f3040d1d30edc49 | [] | no_license | crowdbotics-users/elmedina3crowdboticsc-643 | 24dba124e00a7bef109cadebd9b5f07c4545c886 | 59274ebe30f52bab5455b4d853b4a75d6bd97c66 | refs/heads/master | 2020-04-16T04:51:54.804699 | 2019-01-11T17:36:08 | 2019-01-11T17:36:08 | 165,283,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py |
from django.core.management import BaseCommand
from home.models import CustomText, HomePage
def load_initial_data():
homepage_body = """
<h1 class="display-4 text-center">dj-app-160</h1>
<p class="lead">
This is the sample application created and deployed from the crowdbotics slack a... | [
"sp.gharti@gmail.com"
] | sp.gharti@gmail.com |
a47d8415c94513aab2c7019425699a484a4715b5 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/list_child_issues_v4_response.py | 3c616232bd4fb42bfe7dfe5c4fc8ea0de1d33c81 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ListChildIssuesV4Response(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7b25d3a0b38ecf71f28ab8ade8d455c4f755784e | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/redreader/testcase/firstcases/testcase8_000.py | 487ccbe5525b05345cc0e3f99e97b78ace629218 | [] | 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,361 | 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 |
c74462826047dc31ce78bc75478dd40b6448f120 | ef9cb55b02ababca58ce6880b575120c4f28fdb9 | /blog/models.py | acf0d8f124a21c803016a1554c92811cf188da95 | [] | no_license | mikohan/portfolio | dc6226f3aee73b5af181a0ecc9a13668dde2fe4e | 51fda71a4fecec77ff207eb94e514f6924eaf44e | refs/heads/master | 2020-05-30T09:11:51.866902 | 2019-06-04T05:29:27 | 2019-06-04T05:29:27 | 189,637,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from django.db import models
class Blog(models.Model):
title = models.CharField(max_length=255)
pub_date = models.DateTimeField()
body = models.TextField()
image = models.ImageField(upload_to='images/')
def __str__(self):
return self.title
def cut(self):
split = self.body.spl... | [
"angara99@gmail.com"
] | angara99@gmail.com |
6a6cb216fa9aee4db2182b77261d6d65dfd2fed7 | d7d524d1c0ba1cf62cdbc2f9bf5b9c66fa56726b | /armstrong interval.py | 626c90c1598da113f54258b1c5f678f4dccdac20 | [] | no_license | ramyasutraye/pythonproject | d997ca5ada024e211b6bf087d0d56684daf9df8b | 38975a99eb3ee1ad9e79a9efd538cc992d249fc3 | refs/heads/master | 2020-04-23T19:30:10.128774 | 2018-05-25T06:18:53 | 2018-05-25T06:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | a = int(input("Enter lower range: "))
b = int(input("Enter upper range: "))
for num in range(a, b + 1):
order = len(str(num))
sum = 0
temp = num
while temp > 0:
digit = temp % 10
sum += digit ** order
temp //= 10
if num == sum:
print(num)
| [
"noreply@github.com"
] | ramyasutraye.noreply@github.com |
6b5991808844bf4bf53bb9ef1f2ba289ed0cbe2d | 6846a0469efc79b89edc8f856944d5a8005d7244 | /id_0123.py | 8f711263e8087edcc8d3178a22f25e1d21fd0249 | [] | no_license | CGenie/project_euler | 42cb966e13645339490046eb44a729660ae0c092 | cc90edd061b0f4d9e076d5a684b842c202a6812a | refs/heads/master | 2020-06-05T00:41:49.266961 | 2014-01-13T19:11:31 | 2014-01-13T19:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | #!/usr/bin/python
# #####################################################################
# id_0123.py
#
# Przemyslaw Kaminski <cgenie@gmail.com>
# Time-stamp: <>
######################################################################
from helper_py3 import memoize
def gen_primes():
lst_primes = [2]
yield 2
... | [
"cgenie@gmail.com"
] | cgenie@gmail.com |
6a22e8f4dffd272e12fba138916e4c7de47b0cfc | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v1/model/geomap_widget_definition.py | a47dba11739a217d6ebe6cc92133fe5fc63bbc9e | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 5,014 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import List, Union, TYPE_CHECKING
from ... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
09b0bfd7ba89b753adde15365a1674b25fb38d71 | 1488955228c48cbaff586e2a8d86249a47645d0d | /app/main/views.py | ec63c98a0f7b5aab3d87e02ab569d663a4452b22 | [] | no_license | vincentouma/watchlist | a286c9d09bb06b18edfa4bc8883e9ec7f302bd01 | 329f90c23e373e14a29f1764cb8958adbbb02279 | refs/heads/master | 2020-06-28T11:00:17.353435 | 2019-08-02T10:19:16 | 2019-08-02T10:19:16 | 198,234,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,956 | py | from flask import render_template,request,redirect,url_for,abort
from . import main
from ..requests import get_movies,get_movie,search_movie
from ..models import Review, User
from .forms import ReviewForm,UpdateProfile
from flask_login import login_required,current_user
from .. import db,photos
import markdown2... | [
"vinceoumah@gmail.com"
] | vinceoumah@gmail.com |
da6cc4d0465295d7dfc8e71959ada0bb8de28a93 | 87706e10023b027bf6b4ef9146242a99c0ebbea2 | /docs/conf.py | 1fe4bd3668497bf382483451a6823a64d9af1fb9 | [
"Unlicense"
] | permissive | Kadantte/anime-downloader | 206dc7b9850d6494135ee143c4069df024e500d0 | 24de83d4ef392e17f39710cc9054ff90e3602533 | refs/heads/master | 2022-09-24T02:16:30.770196 | 2022-09-12T11:12:28 | 2022-09-12T11:12:28 | 168,595,085 | 8 | 0 | Unlicense | 2022-09-12T15:01:57 | 2019-01-31T20:54:19 | Python | UTF-8 | Python | false | false | 5,643 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"appukuttancr@gmail.com"
] | appukuttancr@gmail.com |
a31238640d5eae14cbeb79d20eede97d6bcd4516 | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/Toontown2016/toontown/parties/DistributedPartyCatchActivity.py | e776ef0b7ed00871035165e64ae831b02d97636a | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,123 | py | from pandac.PandaModules import Vec3, Point3, Point4, TextNode, NodePath
from pandac.PandaModules import CollisionHandlerEvent, CollisionNode, CollisionSphere
from direct.distributed.ClockDelta import globalClockDelta
from direct.interval.IntervalGlobal import Sequence, Parallel
from direct.interval.IntervalGlobal ... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
afd81f81f1f1b883587446ae90c0eef7fe9119b6 | 7d02813987b49c2a69d92b9b2fdf5148af37274f | /case/Recommend/testAccountBind.py | bfa36a597587e27610642247da283901f0f4eb06 | [] | no_license | xgh321324/api_test | 29e01cbe5f0b7c2df25fb7e781cedf8031140c72 | 2575495baac3ab90adab7a7a85904c38a78dd4b7 | refs/heads/master | 2022-07-23T19:54:39.320828 | 2022-07-02T09:13:35 | 2022-07-02T09:13:35 | 129,185,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | #coding:utf-8
from common.login_lanting import auto_login_by_UID
import requests,unittest,time,json
from common.logger import Log
from common.Hash import get_digit,get_sign
from common.Excel import Excel_util
class Account(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.s = requests.session()... | [
"34511103+xgh321324@users.noreply.github.com"
] | 34511103+xgh321324@users.noreply.github.com |
56cfe94c34974098be5441d30e82c556d53a814e | 86a017dd4c8d4d77c511cc598190aaa9dc0ae3e8 | /data structure/mine_linked_list.py | 92ff136a59524e8fa5ebb2031ddd83e8e998da40 | [] | no_license | sungguenja/studying | fd7459eb9faa6488d7b63bf3884a92513daf3c54 | 719f4dfbda211c34de2a0c8cf3b9d3001f29fcec | refs/heads/master | 2023-08-17T13:46:44.343780 | 2023-08-10T11:55:15 | 2023-08-10T11:55:15 | 232,306,053 | 0 | 0 | null | 2022-12-16T10:53:26 | 2020-01-07T11:00:28 | Python | UTF-8 | Python | false | false | 1,711 | py | import mine_node
class LinkedList:
def __init__(self):
self.head = None
def isEmpty(self):
return self.top == None
def clear(self):
self.top = None
def push(self,item):
now_node = mine_node.Node(item,self.top)
self.top = now_node
def size(self)... | [
"59605197+sungguenja@users.noreply.github.com"
] | 59605197+sungguenja@users.noreply.github.com |
4724d5aa9415a81ce783f5bab5bea5842e84c4e9 | 217440fcc3a91e4ad1a8e008bd315128de7d571a | /day11/08-常见类的函数.py | 9a1178d3e15539060839c925447403eea8ccf73c | [] | no_license | zhangbo111/0102-0917 | a6af056ce9c9a8ab9500e8d016846dc6c50ec1c6 | 1631ea402612e82ae62b093749e2c4f19a021c63 | refs/heads/master | 2020-04-18T16:55:41.675156 | 2019-02-12T01:48:25 | 2019-02-12T01:48:25 | 167,643,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | class Father:
pass
class Mother:
pass
class Laowang:
pass
class Son(Father, Mother):
pass
# 检测一个类是否是另外一个类的子类 如果是返回True 否 False
result1 = issubclass(Son, Father)
result2 = issubclass(Son, Mother)
result3 = issubclass(Son, Laowang)
# 检测Son类是否是Mother类或者Laowang类的子类 满足一个就可以
result4 = issubclass(Son, (Mother,... | [
"13349949963@163.com"
] | 13349949963@163.com |
5f7a6e0094d7dff4e2a88f1833c2b9afbec85264 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/rtdmc/ajpfilterpol.py | 2d8941c96e207a74adc8b90ad0b1cdbcb211fabc | [] | 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 | 4,481 | 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 |
e2a0d3c0ad23256cde4b53012bff5b0474c41b96 | 56014da6ebc817dcb3b7a136df8b11cf9f976d93 | /Python基础笔记/05-读写文件及办公文档自动化/05.04-OS模块.py | 09d813dea42521efecdd3acd34a51b2e3b7f6223 | [] | no_license | sunday2146/notes-python | 52b2441c981c1106e70a94b999e986999334239a | e19d2aee1aa9433598ac3c0a2a73b0c1e8fa6dc2 | refs/heads/master | 2022-01-12T22:55:45.401326 | 2019-01-18T03:18:26 | 2019-01-18T03:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | import os
"""
os:包含了普遍的操作系统的功能
"""
#nt---windows系统 posix---linux,Unix或Mac OS X
#获取操作系统 类型
print(os.name)
#print(os.unname)--打印操作系统详细的信息,windows不支持
#获取操作系统中的环境变量
print(os.environ)
#获取指定环境变量
print(os.environ.get("appdata"))
#获得当前目录 ./a/
print(os.curdir)
#获取当前工作目录,即当前python脚本所在的目录
print(os.getcwd())
#以列表的形式返... | [
"964640116@qq.com"
] | 964640116@qq.com |
2e9229b24034579de5a50820f63ba0a844cc8d76 | 765b765c7b25cd9e6fa7513794a639ecbd210c95 | /powerapi/test_utils/__init__.py | 582930c5a980fc9c881f27d276ff8838ca81f53b | [
"BSD-3-Clause",
"Python-2.0",
"Apache-2.0"
] | permissive | PierreRustOrange/powerapi | 80df09dc72bf248a999216a9f5e0a167b8ea4e5e | 400ee58d3dc9f3bb6706b12571cb10afd8a91787 | refs/heads/master | 2022-02-13T06:15:22.576416 | 2021-10-28T12:01:17 | 2021-10-28T12:01:17 | 244,576,648 | 0 | 0 | BSD-3-Clause | 2020-03-03T08:05:07 | 2020-03-03T08:05:06 | null | UTF-8 | Python | false | false | 1,569 | py | # Copyright (c) 2021, INRIA
# Copyright (c) 2021, University of Lille
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, thi... | [
"arthur.d-azemar@inria.fr"
] | arthur.d-azemar@inria.fr |
a71eaf902c6b63983c91e8caf7675b99dd64e78b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/303/80291/submittedfiles/testes.py | f8fdf8b73bca451bb6d4e647f3f675e329669678 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # -*- coding: utf-8 -*-
n= int(input('Digite um numero:'))
if n%3==0 and n%7==0:
print(' O numero é divisivel por 3 e por 7')
else:
print(' o numero nao é divisivel por 3 e por 7')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9885653186d1619aaa626651335b51322f938b13 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02754/s775628525.py | c08aa17fa27593932f995ed4aa58535828193f96 | [] | 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 | 222 | py | if __name__ == '__main__':
n,a,b = map(int,input().split())
tmp1 = (n // (a + b)) * a
if tmp1 == 0:
tmp2 = min(n,a)
else:
tmp2 = n % (a + b)
tmp2 = min(a,tmp2)
print(tmp1+tmp2) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
94607147cb6a428256583d99cca352c265328f80 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02595/s086135640.py | 10579db5c1e5ef2a5300d80b183a84bc3668641d | [] | 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 | 149 | py | n,d = map(int,input().split())
cnt = 0
md = d**2
for _ in range(n):
a,b = map(int,input().split())
if md >= (a**2+b**2):
cnt += 1
print(cnt)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
183f7b8c55dcea8984a0f890ca6d83b8360ce420 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/Summer20UL17/TTGamma_Hadronic_TuneCP5_13TeV-madgraph-pythia8_cff.py | 19be89904fdebd86931dd97d867f4863815778f5 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 27,922 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISummer20UL... | [
"noreply@github.com"
] | TreeMaker.noreply@github.com |
b37b2e218d9b6497281ffcb42383e42614c8930c | f0a5ad7b8aa39f51f233391fead0da3eabecc4ee | /.history/toolbox/abreFile_20191127163354.py | 2da87cf946b4539934df6748b231c06528e4165f | [] | no_license | OseiasBeu/webScrapping | e0a524847e55b24dbbd3d57bbe7fa43b4e101f48 | 1e72c7551aea355a891043baecfcbab8a89e719a | refs/heads/master | 2022-10-25T18:12:50.858653 | 2020-06-18T01:29:24 | 2020-06-18T01:29:24 | 224,681,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | import pandas as pd
import os
def abreFile():
oldAddres = 'C:/Users/beuo/Documents/Demandas/AtualizaMiddleIntegrationVtex/files/'
newFile = 'C:/Users/beuo/Documents/Demandas/AtualizaMiddleIntegrationVtex/files/extract.xlsx'
def encontraArquivosEmPastaRecursivamente(pasta, extensao):
arquivos... | [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
3855a95c8084c4bb4923ae0522d68b3251d55a9c | bfb1db9b58064f63ed8040b50d5fe3b4664adc01 | /wechat_django/decorators.py | 689644e5a65f53d8e12040fa0cf847b3d445f9e8 | [
"MIT"
] | permissive | hvv1616/wechat-django | 74947d7ea126e507d649cb152af1a66d68593a8f | 5599f237bc1781a594102ce7ff491086f8cf69d2 | refs/heads/master | 2020-04-30T07:22:38.427671 | 2019-03-18T12:56:20 | 2019-03-18T12:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from functools import wraps
from six import text_type
__all__ = ("message_handler", )
def message_handler(names_or_func=None):
"""自定义回复业务需加装该装饰器
被装饰的自定义业务接收一个``wechat_django.models.WeChatMessageInfo``对象
并且返回一个``wechatpy.replies.BaseReply``... | [
"13599838712@hotmail.com"
] | 13599838712@hotmail.com |
db8cdad93128a19ba84640c54d3a3bcf21458506 | dc798f062b15e6ad060a5cfb731db5f286e2088b | /lesson7/task4/tests.py | 0dc1cb67e0b5856510c204ea5431b442ee148c04 | [] | no_license | DmitryTsybulkin/stepik-python | dce78c4fe616fe3f5bd26e0dad9c80bc5c5c4ab2 | 0726346f43e21623a1200aa76b9c7e9ff5476844 | refs/heads/master | 2020-04-27T22:28:33.695541 | 2019-09-13T14:03:28 | 2019-09-13T14:03:28 | 174,738,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from test_helper import check_samples
if __name__ == '__main__':
check_samples(samples=[["480\n1\n2","9\n2"],["475\n1\n55","9\n50"]]) | [
"tsydimasik@gmail.com"
] | tsydimasik@gmail.com |
68cdea4e70011e9f6aed99dc512556fe7e0e6826 | b81668a2cc43654cf6a3ed952d781310876838f9 | /venv/Lib/site-packages/thinc/backends/ops.py | 838ae8c0ffa67b6b448fc765e4e95f30422fb0bd | [] | no_license | gowthamr1999/docbot-1 | 6a8b873407f15035fb8b30b69ed66ded343bd1e4 | 3119958d68e95673b4c9187d58d8cad5c18a6b2c | refs/heads/master | 2023-04-07T02:16:55.574750 | 2021-04-16T02:52:38 | 2021-04-16T02:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,936 | py | from typing import Optional, List, Tuple, Sequence, Union, cast, TypeVar
from typing import Iterator, overload
import numpy
import itertools
from ..types import Xp, Shape, DTypes, DTypesInt, DTypesFloat, List2d, ArrayXd
from ..types import Array2d, Array3d, Floats1d, Floats2d, Floats3d, Floats4d
from ..types import Fl... | [
"42891786+kiranm211@users.noreply.github.com"
] | 42891786+kiranm211@users.noreply.github.com |
e07d63a1fbeffe6c57894e08f9d8cb4e1e015a6f | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/operations/_default_security_rules_operations.py | 1845d2fdfbb4b739407b79adfc58bf53747e21ea | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 8,956 | 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"
] | paultaiton.noreply@github.com |
cc5efee86d9bd9204bbc9ff243e80878e33ea5a6 | ae4be4a17468f89e06975a402cddd7dabf692ec9 | /ABC/137/C/source.py | 5da7bff89fd85a546813bb268e62e676e9596f88 | [] | no_license | naru380/AtCoder | 95ae61230d3182dc2a317a77f8e9300c68443199 | 296d071d6a91ea7e061ee3923b5c26b0c7536119 | refs/heads/master | 2020-09-20T02:12:29.405393 | 2020-05-31T09:58:08 | 2020-05-31T09:58:08 | 224,354,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | import itertools
from collections import Counter
import math
N = int(input())
def generate_prime_numbers():
search_range = 150
search_list = [True for i in range(0, search_range+1)]
search_list[0] = False
search_list[1] = False
search_list[2] = True
for i in range(2, search_range+1):
f... | [
"naruhey1211guitar.m@gmail.com"
] | naruhey1211guitar.m@gmail.com |
3b30c93eabcd27038c83049c2ee79ddeb97f9bac | f8e8e365c9cf58b61d72655bc2340baeaed5baff | /Leetcode/Python Solutions/Binary Search/FirstBadVersion.py | 65537ce9473dd531e132bb495f34504fa9fb26fb | [
"MIT"
] | permissive | Mostofa-Najmus-Sakib/Applied-Algorithm | 39a69f6b9ed113efe4a420d19cad79e0aa317637 | bc656fd655617407856e0ce45b68585fa81c5035 | refs/heads/master | 2023-08-31T19:54:34.242559 | 2021-11-05T03:43:35 | 2021-11-05T03:43:35 | 412,263,430 | 0 | 0 | MIT | 2021-09-30T23:45:29 | 2021-09-30T23:45:25 | null | UTF-8 | Python | false | false | 806 | py | """
LeetCode Problem 278. First Bad Version
Link: https://leetcode.com/problems/first-bad-version/
Written by: Mostofa Adib Shakib
Language: Python
Time Complexity: O(logn)
Space complexity: O(1)
"""
# The isBadVersion API is already defined for you.
# @param version, an integer
# @return a bool
# def isBadVersion(v... | [
"adibshakib@gmail.com"
] | adibshakib@gmail.com |
678256f0e9251afdae873f233eb56b60123f7369 | b0c02d7ca86c1ef84af18a8c701702e8bb212b64 | /display-stuff/neopixels/ColorSynthesis/Neopixel Color Synthesis/colorsynthesis1.py | dc3e92458492203c89b292ad1f19f38abeac0e08 | [] | no_license | flashypepo/myMicropython-Examples | 24fa2f372e68742abe0f74913df000dfe64a9e55 | b2b63df865b5ad471b351ca5f279135025859f5d | refs/heads/master | 2021-09-24T18:52:18.083444 | 2018-10-13T11:59:19 | 2018-10-13T11:59:19 | 98,223,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | # Micro/CircuitPython NeoPixel Color Synthesis Experiments pt. 1
import machine
import time
import math
import neopixel
NEOPIXEL_PIN = machine.Pin(15, machine.Pin.OUT)
NEOPIXEL_COUNT = 8 * 4 #12
def seconds():
return time.ticks_ms()/1000 # MicroPython code for current seconds
# Setup NeoPixels
pixels = neopix... | [
"peter@pepo.nl"
] | peter@pepo.nl |
78544477f1980b8197bbeb6369a8c22371a2db77 | a6203ce0f7f871ccd8fd341af6254795c938232b | /easy/power-of-two/solution.py | 08541ea6db52d29b1ee3005fc763fdc7559eb622 | [] | no_license | hsuanhauliu/leetcode-solutions | 542590de9b1dd4480bd582850363f71487dd37d0 | c14d8829c95f61ff6691816e8c0de76b9319f389 | refs/heads/master | 2021-03-31T00:31:18.489947 | 2019-10-21T03:51:10 | 2019-10-21T03:51:10 | 124,963,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | class Solution:
def isPowerOfTwo(self, n: int) -> bool:
if n <= 0:
return False
while n != 1:
# keep dividing
if n % 2:
return False
n //= 2
return True | [
"hsuanhal@usc.edu"
] | hsuanhal@usc.edu |
fa2426367d7e331041c267f0caa9af5a01f702f0 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /psutil_example/get_win_services.py | 26361ecb1fd9c3ae7b2481a9ed2b4502e0765fd2 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 853 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
# pip install psutil
import psutil
from psutil._pswindows import WindowsService
def get_win_services() -> list[WindowsService]:
return list(psutil.win_service_iter())
if __name__ == "__main__":
win_service_list = get_win_services()
... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
5f34b64d875d3784f0e1740ec07bff206fac3a41 | 555eb9c234f86911df70188914d45c358c67bb62 | /tensorflow/python/keras/engine/base_layer_utils.py | b97326eea6a28ba9f1e466c1d59a43c7108bba19 | [
"Apache-2.0"
] | permissive | obeshor/tensorflow | 64b99bfec161e8680535104e7e90834b1060c5c3 | 0fd570848f7cd08904907640111d435dcb7fba8a | refs/heads/master | 2020-05-18T09:44:13.516187 | 2019-04-30T20:33:02 | 2019-04-30T21:32:19 | 184,335,557 | 2 | 1 | Apache-2.0 | 2019-04-30T21:43:01 | 2019-04-30T21:43:00 | null | UTF-8 | Python | false | false | 24,570 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
80ecbb277308e7fb1010e5ec65eb4683e140c3fe | feba3c32aac7f17d8fbaf6ef7bb4d229844f8247 | /machine_learning/clustering/hierarchical_clustering/AgglomerativeClustering/main.py | c44aad4338e74004ce5203e18522385184a3123b | [] | 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 | 4,604 | py | import numpy as np
import run as r
'''
[id]
145
[name]
AgglomerativeClustering
[input]
x_train 训练集 训练集标签数据集 二维数组 必须 定数
y_train 测试集 测试集数据集 二维数组 必须 定数
n_clusters 簇数 默认为2,要查找的集群数。如果'None'不是'distance_threshold',则必须为'None',可选整数 整数 不必须 定数
affinity 亲和力 默认为'euclidean',用于计算链接的度量。可以是'euclidean','l1','l2','manhattan','cosine'... | [
"178513111@qq.com"
] | 178513111@qq.com |
1d90ee6dc0cce81b7ee6e5ebc395a18ae771e9a8 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/navigation/__init__.pyi | 50c892e49919e06c449a9ea0c91e410ecd8bb2e3 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 195 | pyi | from .GoToAddressLabelDialog import GoToAddressLabelDialog as GoToAddressLabelDialog
from .GoToQuery import GoToQuery as GoToQuery
from .GoToServiceImpl import GoToServiceImpl as GoToServiceImpl
| [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
a0a362fb3cf297d127447c05947dad5d44f76ce3 | ebee11af2d66615a2c5c97b4dbffcfc142ee40bb | /torchgen/static_runtime/config.py | bfcab625e2e366812c0a4ece160deff367cf4487 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | timgates42/pytorch | e600e945a366223232ff4d4ddcafe659fdefc0cf | a25df29cc4a64bfc75cf3415cb941ae66ef22201 | refs/heads/master | 2023-03-15T17:57:17.622007 | 2022-07-13T17:01:11 | 2022-07-13T20:24:37 | 227,502,054 | 0 | 0 | NOASSERTION | 2019-12-12T02:22:11 | 2019-12-12T02:22:11 | null | UTF-8 | Python | false | false | 13,607 | py | from torchgen.model import NativeFunctionsGroup, NativeFunctionsViewGroup
from typing import Dict, Union
def func_name_base_str(g: Union[NativeFunctionsGroup, NativeFunctionsViewGroup]) -> str:
if isinstance(g, NativeFunctionsGroup):
return str(g.functional.func.name.name.base)
else:
return s... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
6f7c3eebdf06407cee5d8e9e62976c7a454ff836 | e3a25b40812b6b70f10b52a6f66f9348dcc251a6 | /algorithm/0402codeAD/구슬고르기복습.py | ae0fd9e3bf77bee8c5bdacf9d2e3d4790c8f7305 | [] | no_license | yoonwoo123/python101 | 75643cb5dcf411c9ddcf988bf09bb88e4523206c | 637dce64a6320a6f46eb941e33e8e9f6ee41c910 | refs/heads/master | 2020-04-14T11:30:43.018126 | 2019-07-25T08:28:31 | 2019-07-25T08:28:31 | 163,815,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | import sys
sys.stdin = open("구슬고르기_input.txt")
# 김은경 샘 코드
def DFS1(n): # 중복순열
if n>N:
for i in range(1, N+1): print(arr[i], end=' ')
print()
return
for i in range(1, 7):
arr[n]=i
DFS1(n+1)
def DFS3(n): # 순열
if n>N:
for i in range(1, N+1): print(arr[i], end='... | [
"lkkjasd@korea.ac.kr"
] | lkkjasd@korea.ac.kr |
8f5b53674caa26cd827c4943842f96a981027ade | 386a5b505d77c9798aaab78495d0f00c349cf660 | /python/function/harmonic.py | f23e439bde8eccf7c61bf23d64a8e3c28998c89d | [] | no_license | namratarane20/MachineLearning | 2da2c87217618d124fd53f607c20641ba44fb0b7 | b561cc74733b655507242cbbf13ea09a2416b9e2 | refs/heads/master | 2023-01-20T18:54:15.662179 | 2020-03-09T14:12:44 | 2020-03-09T14:12:44 | 237,597,461 | 0 | 0 | null | 2023-01-05T12:37:12 | 2020-02-01T10:22:20 | Python | UTF-8 | Python | false | false | 431 | py | #this program is used print the nth harmonic value
from data import functional
try:
value = int(input("enter the value: "))
if value > 0: # if value is more than 0 it will run the method
functional.harmonic(value)
else:print("enter more than 0")
except ValueEr... | [
"namrata.ashok@impelsys.com"
] | namrata.ashok@impelsys.com |
b97cffb7e0a43919de823cb6cf823479aa0bc268 | a2ee667a402d821831ce1532c3a2e62305624388 | /extras/sample_site/sample_site/urls.py | b391adc051ec60ccb38c358017504169712765ab | [
"MIT"
] | permissive | cltrudeau/django-flowr | 9c1c7c8a43d881f962e8dd58ca424daa3ee1348a | ea2d69fda94d1998f48301954f8dc69f0b553553 | refs/heads/master | 2023-07-05T20:28:05.370538 | 2023-06-29T19:36:41 | 2023-06-29T19:36:41 | 40,761,586 | 3 | 0 | MIT | 2022-12-26T19:50:47 | 2015-08-15T13:37:23 | Python | UTF-8 | Python | false | false | 185 | py | from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^flowr/', include('flowr.urls')),
]
| [
"ctrudeau@arsensa.com"
] | ctrudeau@arsensa.com |
b4be61d8b86b193478f3cf286e713cde26bb27d9 | 7e7a1a1c7f5a2069b50b90b247d89faef17b7eef | /test/unit/test_make.py | 32d6c20acbcdafa123544c60d5ce8704b4b77154 | [
"BSD-3-Clause"
] | permissive | JulianVolodia/bfg9000 | e1d13e07ef43577ce871cbdf28d7854eaad9985e | c04867cd7fc4861bc67fe38f9ca47ee6cc43edef | refs/heads/master | 2021-01-11T12:16:38.842893 | 2016-12-11T21:16:52 | 2016-12-12T01:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,162 | py | import os
import unittest
from six.moves import cStringIO as StringIO
from bfg9000 import path
from bfg9000 import safe_str
from bfg9000.backends.make.syntax import *
from bfg9000.platforms import platform_name
esc_colon = ':' if platform_name() == 'windows' else '\\:'
def quoted(s):
return "'" + s + "'"
clas... | [
"jporter@mozilla.com"
] | jporter@mozilla.com |
858c51c8c9f563c0c5054b8d8466a2f7140398c7 | 52d9c6d005b2e91f489fdd817059b1217efd711d | /_downloads/8591a6f0671d02c692445320b45c6776/date_demo_rrule.py | 56d2ebf97b135046b79231488af7e5385b733588 | [] | no_license | yuhaihaiyu/matplotlib.github.com | 2a785654d4a0e4a9b6d1876b0aae96b6b5d20fc5 | fbe748c706e92f9ccb660eab656deaebe179a6af | refs/heads/master | 2023-07-31T08:04:16.716267 | 2021-10-02T06:00:49 | 2021-10-02T06:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | ../../stable/_downloads/8591a6f0671d02c692445320b45c6776/date_demo_rrule.py | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
751baeeaf78e31e7c30ff0263dce2e8a7717fb44 | 48517a9b7ec7b0f0bf0a03291b7d1e3def751c0a | /Pibow/corner_to_corner_3_v2.py | 4b9f958fcb0bdf6453d970f0e489ffbcd7e54229 | [
"MIT"
] | permissive | Breakfast-for-Pigeons/Unicorn-HAT | 1ae033bf11c05b9cc739b1eacfc77665506e0bc8 | 9ff1388ee627a8e81f361929e9e9b708db4e2832 | refs/heads/master | 2021-06-06T12:22:48.162031 | 2020-10-22T17:31:51 | 2020-10-22T17:31:51 | 74,648,524 | 1 | 0 | null | 2018-10-02T17:37:31 | 2016-11-24T07:28:23 | Python | UTF-8 | Python | false | false | 7,514 | py | #!/usr/bin/python3
"""
Corner to Corner 3 version 2- Pibow
Moves a square from the lower right corner to the upper left corner.
Instead of cycling through all the colors, a specific color must be sent
to the function as an argument.
....................
Author: Paul Ryan
This program was written on a Raspberry Pi ... | [
"noreply@github.com"
] | Breakfast-for-Pigeons.noreply@github.com |
4a625cc49e2d484363ea090f357a0e45dc2e536a | 9e28200b71d43de1e122a964e88f1b547bfde465 | /question_leetcode/702.py | e39791835a7143e971e1b37e879656148c9a064b | [] | no_license | paul0920/leetcode | 6f8a7086eefd3e9bccae83752ef41cbfee1acaea | 474886c5c43a6192db2708e664663542c2e39548 | refs/heads/master | 2023-08-19T14:10:10.494355 | 2021-09-16T20:26:50 | 2021-09-16T20:26:50 | 290,560,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | # """
# This is ArrayReader's API interface.
# You should not implement it, or speculate about its implementation
# """
# class ArrayReader(object):
# def get(self, index):
# """
# :type index: int
# :rtype int
# """
class Solution(object):
def search(self, reader, target):
"... | [
"39969716+paul0920@users.noreply.github.com"
] | 39969716+paul0920@users.noreply.github.com |
fec9af424e5192af1a758a4184341390bd59a6f7 | b47fb5884e25ec189ab123c620fc651702774e61 | /assets/migrations/0001_initial.py | 4c5e27db2ad79e50e511e7dbbf26e703ea3e135a | [] | no_license | cs4224485/CMDB | e4782ac81b8c8394a1445c4a9f85777f7859354d | 41710e97fc79ae228f9f654fc5879910e91e1e25 | refs/heads/master | 2020-09-20T18:16:41.479379 | 2019-11-28T02:49:57 | 2019-11-28T02:49:57 | 224,557,148 | 0 | 0 | null | 2019-11-28T02:52:40 | 2019-11-28T02:49:28 | JavaScript | UTF-8 | Python | false | false | 19,877 | py | # Generated by Django 2.1.1 on 2019-06-28 02:36
from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_... | [
"414804000@qq.com"
] | 414804000@qq.com |
0242ad91656a9be579908b441d9b94af3542b343 | ef821468b081ef2a0b81bf08596a2c81e1c1ef1a | /Programming Basics/Nested_Loops-LAB/Cinema_Tickets.py | 7dae726c936e27321845167e1b72d8edcf1c7c38 | [] | no_license | Ivaylo-Atanasov93/The-Learning-Process | 71db22cd79f6d961b9852f140f4285ef7820dd80 | 354844e2c686335345f6a54b3af86b78541ed3f3 | refs/heads/master | 2023-03-30T20:59:34.304207 | 2021-03-29T15:23:05 | 2021-03-29T15:23:05 | 294,181,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | movie = ''
free_seats = 0
ticket_type = ''
sold_seats = 0
student = 0
standard = 0
kids = 0
total_tickets = 0
flag = False
while not flag:
movie = input()
if movie == 'Finish':
break
free_seats = int(input())
while ticket_type != 'End':
ticket_type = input()
if ticket_type == '... | [
"ivailo.atanasov93@gmail.com"
] | ivailo.atanasov93@gmail.com |
6b9966fd76928a69a7d63ecd8c2b9856b2bfa4c9 | a46825af0830a0f84f426547fba1b1f45fb97b3f | /backend/apps/area/urls.py | ce30e18f5bcb945d04fae1d297b2a0b9a011ea19 | [] | no_license | szshysj/Digital_marketing_web | 47544c7b9e0c425a78b0d51195ac245fdaef0503 | 86b31f261158b4c8d130c64ae7e573b8316c8bc4 | refs/heads/master | 2020-08-29T21:26:23.402279 | 2020-03-18T07:55:27 | 2020-03-18T07:55:27 | 218,178,158 | 0 | 0 | null | 2019-12-05T10:16:02 | 2019-10-29T01:26:07 | Vue | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2019/10/14 23:28
# @Author : 孔祥旭
# @Email : d90159@163.com / 351469076@qq.com
from tornado.web import url
from apps.area.handler import GetAreaHandler
urlpatten = [
# 获取所有可投放地域列表
url('/get/area/', GetAreaHandler)
]
| [
"d90159@163.com"
] | d90159@163.com |
2d322f049fa8f8f91dfb80709a634df823f3de47 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/RelativeRanks.py | d749965e66f0cfbeff330cd167f3bbe034cf128d | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | """
Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Silver Medal" and "Bronze Medal".
Example 1:
Input: [5, 4, 3, 2, 1]
Output: ["Gold Medal", "Silver Medal", "Bronze Medal", "4", "5"]
Explanation: The first three athlet... | [
"here0009@163.com"
] | here0009@163.com |
a5d7d1e55d35d5dc95e02c6e501613df521f4fb6 | 3873b03ac81354d4ed24e94df5fa8429e726bbd2 | /titles/101. 对称二叉树.py | 9236ac01422c19b4ad9190406e21e379f2b5f6e8 | [] | no_license | lichangg/myleet | 27032f115597481b6c0f3bbe3b83e80b34c76365 | 3d5a96d896ede3ea979783b8053487fe44e38969 | refs/heads/master | 2023-03-21T15:50:14.128422 | 2021-03-16T09:58:07 | 2021-03-16T09:58:07 | 286,616,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from utils.util_funcs import Tree
# 这个测试用例[1,2,2,None,3,None,3]过不了,本地能过
#
class Solution:
FLAG=True
def isSymmetric(self, root) -> bool:
l = root.left
r = root.right
stack = [l,r]
while stack and all(stack):
nums = []
... | [
"lcg@ichunt.com"
] | lcg@ichunt.com |
d7cf184777adc0f7980c16fcc2f6eabb750712be | 6c14069181f313e84eeb524dd495e3882156ef50 | /samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-mpls-ldp-oper/nc-read-xr-mpls-ldp-oper-10-ydk.py | 1e872ab64c188f2aa654c40dc1d1d96d25dd113a | [
"Apache-2.0"
] | permissive | decolnz/ydk-py-samples | dde0fd64fd4df12a215588766a0f1fb8baf07fcd | 7fa3f53c4d458c3332d372fb2fe3c46c5e036f07 | refs/heads/master | 2021-01-19T03:24:19.877929 | 2017-04-04T17:16:46 | 2017-04-04T17:16:46 | 87,310,389 | 1 | 0 | null | 2017-04-05T13:06:57 | 2017-04-05T13:06:57 | null | UTF-8 | Python | false | false | 2,714 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco 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 required by applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
a406e2a620162230e1e7cc273a3998b61cf94a92 | 74926d4145b9cd91bd040a7887d6baef838865d3 | /autoencoder/metrics.py | 3ad28ecd5bf3da0615cf6a06bd1ac56acd7e6403 | [
"MIT"
] | permissive | Elaine0/Anomaly-Detection | 3837b602c6c8ba12fb2df7170292ebded893bbe0 | 45ab34235fd865006292a6645bbf2fc8bed9e959 | refs/heads/master | 2023-06-16T16:27:12.675954 | 2021-07-13T09:06:19 | 2021-07-13T09:06:19 | 282,931,372 | 0 | 0 | null | 2020-07-27T15:02:17 | 2020-07-27T15:02:17 | null | UTF-8 | Python | false | false | 455 | py | import tensorflow as tf
from tensorflow import keras
import keras.backend as K
def ssim_metric(dynamic_range):
def ssim(imgs_true, imgs_pred):
return K.mean(tf.image.ssim(imgs_true, imgs_pred, dynamic_range), axis=-1)
return ssim
def mssim_metric(dynamic_range):
def mssim(imgs_true, imgs_pred):... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
c5b06264124b13023d9bd904c223f6a20f2da8ab | d49cfe38764aa35992ba5cf65655a6a45d9487c8 | /旋转图像.py | 1660cfd80a5903f2b51d956378ca51aa57d5f90a | [] | no_license | getabear/leetcode | fc0797f664ab4052aa2635341f4bbe40b74ec2b8 | 4af6608166f2e4cdfcfb0bbb92133b4a0f90ea34 | refs/heads/master | 2021-07-15T11:05:23.049235 | 2020-11-15T12:57:14 | 2020-11-15T12:57:14 | 224,601,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from typing import List
class Solution:
def rotate(self, matrix: List[List[int]]) -> None:
if not matrix:
return
m,n=len(matrix),len(matrix[0])
dp=[[0]*n for _ in range(m)]
for h in range(m):
for x in range(n):
dp[x][m-h-1]=matrix[h][x]
... | [
"1874178998@qq.com"
] | 1874178998@qq.com |
e97231aa59386188f10462edf9ebb223d62915b0 | 7d99c16d3222dd09d2358dac17d693deb7ed8dfd | /mwk_converters/mwk_to_sqlite3.py | a662445947c9bf94dfd56abd7f356d3172ba54b1 | [] | no_license | afcarl/mw_data_analysis_helpers | 55c287daa06ef398e25ee9a8ecb290fc1f58c4dc | 88e8eaae3b26f2ce7c482585414340c8e59f6ed2 | refs/heads/master | 2020-03-17T14:56:10.483526 | 2011-07-26T17:50:01 | 2011-07-26T17:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,031 | py | #!/usr/bin/env python
import logging, os, sys
import sqlite3
import json
#import mwk
import mworks.data as mwk
def mwk_to_sqlite3(inFile, outFile, blacklist=[]):
m = mwk.MWKFile(inFile)
m.open()
# fix codec
codec = m.codec
codec[0], codec[1], codec[2], codec[3] = ('#codec', '#systemEvent', '#comp... | [
"graham@rowland.harvard.edu"
] | graham@rowland.harvard.edu |
30d71a0f811024388f46fa160a7fb991a7429ec3 | 76e9afdf16eabcc9e1a3facd308e56362112efc4 | /20210222_ls/auto_chmod.py | 84ae38d02246d5ec3b8c66e17a9fcebb764dc397 | [] | no_license | rerejii/pwb_work_2021 | c65c5e787ad98b7d847cb63ebadc24a02f001e90 | 8ecfb2a98d9d396ed505ecc939e384cf6400412d | refs/heads/main | 2023-03-30T10:43:18.115386 | 2021-03-24T05:38:41 | 2021-03-24T05:38:41 | 350,954,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import time
import sys
import os
# args = sys.argv
path = '/nas-homes/krlabmember/hayakawa/binary/20210115'
while True:
os.chmod(path, 0o755)
time.sleep(10) | [
"hayakawa.shinya.kochi@gmail.com"
] | hayakawa.shinya.kochi@gmail.com |
7cd8898e0e3005975525306f1622e0d54d94136b | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/PyQt5/Chapter13_Running Python Scripts on Android and iOS/demoMultipleSelection.py | 96a2d86b0e8e60e19544ee49d3e46b244fb8b9fb | [] | 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 | 573 | py | import android
app = android.Android()
app.dialogCreateAlert("Select your food items")
app.dialogSetMultiChoiceItems(['Pizza', 'Burger', 'Hot Dog'])
app.dialogSetPositiveButtonText('Done')
app.dialogShow()
app.dialogGetResponse()
response = app.dialogGetSelectedItems()
print(response)
selectedResult=response[1]
n=len... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
a3976a033b050da9d584f2ee555049bc57e48660 | 5fe194b477ba8af8acc846db2dfc961ad2a57013 | /.metadata/.plugins/org.eclipse.core.resources/.history/5/c0e3511f98fb001611e7bcc2e467e756 | 55afe0616ecc9457ecdb14d257b97cdcb7536b33 | [] | no_license | robotanica/ExcavatorROS | 6a129e302f0a288d198e3f720a78610e6333f7d3 | db0bdf0f9988ebf910f832e22f46f679e936cdcb | refs/heads/master | 2023-03-17T23:49:58.762691 | 2017-09-29T16:31:33 | 2017-09-29T16:31:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | #!/usr/bin/python
'''
Created on Feb 21, 2017
@author: yutak
'''
import rospy
import sensor_msgs.msg as smsg
import exp_excavator.msg as cmsg
class JoyMsgManager:
def __init__(self):
rospy.init_node('joy_msg_manager', anonymous=True)
self.test = rospy.get_param('~test', False)
... | [
"filippos.sotiropoulos@gmail.com"
] | filippos.sotiropoulos@gmail.com | |
44260eaf54611020edd327e194c75925b182f899 | d1a5e15463623d75560659481e8277a516a8e280 | /Website_Project/mysite/account/views.py | c6f37f13125fb41f2acb3bc18dc0c8c6497fd11f | [] | no_license | LeeSungRyul/KD_AI | fac54863d6eb49fa8fe96dbb700e9279d2a1f0fb | 560e4c2e777ab5f5ee6a2a31f17372f58ea483ef | refs/heads/master | 2023-06-27T00:06:47.433793 | 2021-07-27T14:59:25 | 2021-07-27T14:59:25 | 339,369,278 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.contrib.auth.hashers import make_password, check_password
from .models import Account
# Create your views here.
def register(request): # 회원가입 페이지를 보여주기 위한 함수
if request.method == "GET":
return render(request, '... | [
"airtrack03@naver.com"
] | airtrack03@naver.com |
f8720cb40162973a04d2461826c550fb6a66e68e | 9672e0b45f72261c069aa8140a01e861b8f8db45 | /query/migrations/0005_auto_20150526_1736.py | 970fbb78131ebda45f4baae6af990612482e6cf4 | [] | no_license | KeleiAzz/SCRC_server | 40882c0d5804b0488dd31f4d4db353616d318e48 | 669d45e4d5059cfc766a2a0852d23522d2af7d84 | refs/heads/master | 2020-04-06T10:18:40.817298 | 2016-12-04T06:07:53 | 2016-12-04T06:07:53 | 35,839,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,782 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('query', '0004_evidence'),
]
operations = [
migrations.AlterField(
model_name='evidence',
name='h1',
... | [
"kgong@ncsu.edu"
] | kgong@ncsu.edu |
0d5d76ef5b074b1347fd493018487bfa5c02aa7b | 0019ea5621577ab9a9a694e3ef91d913e981a28e | /dataset_builder/feature_extractor/test_sub2vec_model_creator.py | ee9c0388664fcada20f99ab062229fd46de862ec | [] | no_license | sungc1/fake-news-framework_Py3 | 676710b3bf7b8feb4c237ffed7d1d280f4967890 | e3552b5bc2a30dbd52ad893ce8dd29aa2242f864 | refs/heads/main | 2023-01-19T23:42:13.294446 | 2020-12-01T18:38:31 | 2020-12-01T18:38:31 | 428,178,049 | 1 | 0 | null | 2021-11-15T08:18:23 | 2021-11-15T08:18:23 | null | UTF-8 | Python | false | false | 9,808 | py | import random
from unittest import TestCase
import networkx as nx
import pandas as pd
import numpy as np
from DB.schema_definition import DB, AuthorConnection, Author, Post
from dataset_builder.feature_extractor.sub2vec_model_creator import Sub2VecModelCreator
from dataset_builder.sub2vec_feature_generator import Sub2V... | [
"aviade@post.bgu.ac.il"
] | aviade@post.bgu.ac.il |
1049caf450a5e4ca1eedc4aec81d6fe28ca216eb | bca6e5728aa041d348482e4265fd2c6f1f4a67d3 | /ucsmsdk/mometa/storage/StorageSasPort.py | 6a17becbc5ebeaadbdf5cee82300824e1e91d16c | [
"Apache-2.0"
] | permissive | psterdale/ucsmsdk | fc7c519ea1a43c5e77a015e3605bc2acfe3c917a | 821b805c18ad7652a79d4f581f4695558f17e943 | refs/heads/master | 2020-12-03T08:11:54.382427 | 2017-06-28T12:46:52 | 2017-06-28T12:46:52 | 95,667,187 | 1 | 0 | null | 2017-06-28T12:33:27 | 2017-06-28T12:33:27 | null | UTF-8 | Python | false | false | 3,873 | py | """This module contains the general information for StorageSasPort ManagedObject."""
from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class StorageSasPortConsts:
LC_ALLOCATED = "allocated"
LC_AVAILABLE = "available"
LC_DEALLOCATED = "... | [
"vijayvikrant84@gmail.com"
] | vijayvikrant84@gmail.com |
4b655608f8398692c28ca98e39291340429ff692 | ba949e02c0f4a7ea0395a80bdc31ed3e5f5fcd54 | /problems/greedy/Solution621.py | bbd433a5a095fd0e364fc666dd13252734d0de78 | [
"MIT"
] | permissive | akaliutau/cs-problems-python | 6bc0a74064f6e9687fe58b13763da1fdf2e1f626 | 9b1bd8e3932be62135a38a77f955ded9a766b654 | refs/heads/master | 2023-05-11T22:19:06.711001 | 2021-06-04T11:14:42 | 2021-06-04T11:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | """ Given a characters array tasks, representing the tasks a CPU needs to do,
where each letter represents a different task. Tasks could be done in any
order. Each task is done in one unit of time. For each unit of time, the CPU
could complete either one task or just be idle.
However, there is a non-n... | [
"aliaksei.kaliutau@gmail.com"
] | aliaksei.kaliutau@gmail.com |
18ed09fbe425c6e23a807270720e517c0825097d | 9dbe69085827de6c24e6315ee49c7f462ae9aa1c | /www/manage.py | b24a3a2e84ea3548cd50a6485a8d6ab59a903d4a | [] | no_license | Ggzzhh/LearnPython | f15d5c65a25f48fb8a9a43934227a455e195c541 | 397bf4e44a5595954c459883878c00cf4ee60307 | refs/heads/master | 2021-01-20T14:15:15.518408 | 2017-07-23T08:28:56 | 2017-07-23T08:28:56 | 88,743,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | #!/usr/bin/env python3
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "learning_log.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure th... | [
"471992509@qq.com"
] | 471992509@qq.com |
46938072fdd88d92a0daec7ee0a0b4f408d355c2 | 1498148e5d0af365cd7fd16197174174a7fa9800 | /t000766_2.py | d782134c3d7d1053b4073e2e8647e4a5474ab4d1 | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import time
time1 = time.time()
h01 = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
h1 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
h2 = ["11", "22", "33", "44",
"55", "66", "77", "88", "99"]
hx3 = ["1x1", "2x2", "3x3", "4x4", "5x5",
"6x6", "7x7", "8x8", "9x9"]
hx4 = ["1xx1", "2xx2", "3xx3"... | [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
923176b05b13547f26b54b29c28090ef780edb2a | 017a57c810ad08ecff84652a252656afa3173e17 | /odin/utils/shape_calculation.py | d2740e55a36f13457b42b10d7a8e3a26cad4ac51 | [
"MIT"
] | permissive | SmartArduino/odin | 0189e0b71ccac311887f0fda6bafb96ca9c53a88 | 1706c91c2fbafd23018ce98bf87b3928935b2466 | refs/heads/master | 2021-01-17T08:22:48.073115 | 2017-03-04T12:15:03 | 2017-03-04T12:15:03 | 83,890,654 | 0 | 0 | null | 2017-03-04T12:07:20 | 2017-03-04T12:07:20 | null | UTF-8 | Python | false | false | 7,382 | py | from __future__ import print_function, division, absolute_import
from math import ceil
import numpy as np
# ===========================================================================
# Shape calculation for Pooling
# Contain code from theano: theano/tensor/signal/pool.py
# Copyright (c) 2008--2016, Theano Developme... | [
"nickartin13@gmail.com"
] | nickartin13@gmail.com |
a3cee10d2c3fa7bcdffc20880585935069d651fc | 4910c0f3d03935fc8ee03f1e9dc20dfdb2c7c04b | /Codigos estudiantes por lenguaje/PY/Bryann Valderrama/Algoritmos de Busqueda/DifferencePairSearch.py | 6c885a6c2d463ae002f1c7a54ec826b5b9e9f0a1 | [] | no_license | roca12/gpccodes | ab15eeedc0cadc0735651262887b44f1c2e65b93 | aa034a3014c6fb879ec5392c51f9714bdc5b50c2 | refs/heads/master | 2023-02-01T13:49:27.563662 | 2023-01-19T22:50:58 | 2023-01-19T22:50:58 | 270,723,328 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | '''Dado un arreglo y un numero n, buscar si existe un par cuya
diferencia es n.
- Complejidad Tiempo: O (n logn)
'''
from sys import stdin, stdout
rl = stdin.readline
wr = stdout.write
def findPair(arr, n):
size = len(arr)
i, j = 0, 1
while i < size and j < size:
if i != j and arr[j] - a... | [
"noreply@github.com"
] | roca12.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.