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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05e638b1e752730d3c6a30eb23e1ac03086663f2 | 3c750d4d60660fdf6ef84d7b7ab9663fb76d0fa1 | /tests/test_numeric/test_eulerian_grid_ops/test_stencil_ops_3d/test_vorticity_stretching_timestep_3d.py | 24a857eb4e2d7fcc072e58444c99f3f3a395da29 | [
"MIT"
] | permissive | SophT-Team/SophT | 25d157a17734600e9aa4f522b4574bfefe202bc7 | 99a094e0d6e635e5b2385a69bdee239a4d1fb530 | refs/heads/main | 2023-08-31T21:14:10.304592 | 2023-08-31T17:00:38 | 2023-08-31T17:00:38 | 498,451,510 | 2 | 2 | MIT | 2023-09-12T15:37:31 | 2022-05-31T18:25:12 | Python | UTF-8 | Python | false | false | 5,618 | py | import numpy as np
import psutil
import pytest
from sopht.numeric.eulerian_grid_ops import (
gen_vorticity_stretching_timestep_euler_forward_pyst_kernel_3d,
gen_vorticity_stretching_timestep_ssprk3_pyst_kernel_3d,
)
from sopht.utils.precision import get_real_t, get_test_tol
from tests.test_numeric.test_euler... | [
"bhosale2@illinois.edu"
] | bhosale2@illinois.edu |
5ceed187bfe9e2dea96c184345c5b38f419bd914 | 52c88ad025a142e27f39f34318a541814d97d0b4 | /calibrate.py | a136625677c95c8571dc76cf425e19635c67689a | [
"MIT"
] | permissive | igorfed/stereocalib | c91d47252970397acb07931938fe9f85cfaf719f | cb0a48ce77b3f191dc96fa3ed7bff8532ccc0382 | refs/heads/master | 2020-04-07T21:00:54.436391 | 2017-08-07T11:06:33 | 2017-08-07T11:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,137 | py | #!/usr/bin/env python
#
# OpenCV calibration example with changes by Emaneule Ruffaldi SSSA 2015
# - Improved argument mechanism, exposed parameters
# - Match by filename not order
#
#
# TODO: use camera_info from rostopic echo
# TODO: fix intrinsics (only mapping)
# TODO: don't recompute chessboard
import numpy as np
... | [
"emanuele.ruffaldi@gmail.com"
] | emanuele.ruffaldi@gmail.com |
a710930a29d0f075721ea3754b40dc24bc48c70a | 48523e13b15451542aa51ece14d2b3c6c4bb1b99 | /Django_apps/school/migrations/0023_auto_20181017_0913.py | f5a1449d0f19e7ee72605d73fa33bd91a5eeb25e | [] | no_license | ss-8y0/SchoolSystem | c7c64695b5ed7979e2d530941f4fbd178d95ca64 | 63298fa495a98c45175904da2820bcfce4a582a4 | refs/heads/master | 2023-03-15T11:07:38.665758 | 2019-05-27T02:52:56 | 2019-05-27T02:52:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # Generated by Django 2.1.1 on 2018-10-17 09:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0022_auto_20181017_0913'),
]
operations = [
migrations.AlterField(
model_name='schoolinfo',
name='main_cam... | [
"414804000@qq.com"
] | 414804000@qq.com |
419755da54639b284149cffffc8f924a2fd42413 | 1734fd26a9adf7d2580f8bd981babda861944ebd | /location/wifi_simple_model_64_optimize.py | 63bd1e6f936db12bbd92b0defbf5340ad9377733 | [] | no_license | tangzhuochen/Python_ML_Code | 420f4d80552a901b41e368e4e66a06f51ea1b29f | b418fd6a431a77838447ab4736bdf24019276309 | refs/heads/master | 2020-03-28T11:44:50.853941 | 2018-02-08T06:59:31 | 2018-02-08T06:59:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,424 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 28 16:16:39 2017
@author: 麦芽的香气
"""
import pandas as pd
import numpy as np
from sklearn import preprocessing
import xgboost as xgb
import lightgbm as lgb
import sys
# make a copy of original stdout route
stdout_backup = sys.stdout
# define the log file that receives yo... | [
"1002937942@qq.com"
] | 1002937942@qq.com |
682dbacceb765cf5e388a02872c740bee4acb1e2 | 999f3f3da1cb70cb5872f99a09d65d7c4df71cf7 | /src/data/228.py | bda3b44723bf35f482d7f5bf153f8edc3cd06343 | [
"MIT"
] | permissive | NULLCT/LOMC | 0f0d1f01cce1d5633e239d411565ac7f0c687955 | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | refs/heads/main | 2023-07-27T17:03:46.703022 | 2021-09-04T08:58:45 | 2021-09-04T08:58:45 | 396,290,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import sys
sys.setrecursionlimit(10**8)
N, Q = map(int, input().split())
roads = [[] for _ in range(N)]
for i in range(N - 1):
a, b = map(int, input().split())
a -= 1
b -= 1
roads[a].append(b)
roads[b].append(a)
dist = [-1] * N
dist[0] = 0
def count_dist(i):
for j in roads[i]:
if dis... | [
"cockatiel.u10@gmail.com"
] | cockatiel.u10@gmail.com |
3ad9a66b805a0bef9476afb16461e9381739d1ab | 4c9ef500432116da5321c934f35514e82c40e70c | /Selection/test/dibosonBatchConfig.py | 53367b19261744ef2ac23042580d2b94e9a06139 | [] | no_license | wulsin/AnaFwkTest | bed13dec5c21aeb94cbfd7590f06cc901f035c33 | 31daa8bb4c53c2f0d4f200f3e1a69e66e4828072 | refs/heads/master | 2021-01-10T01:52:47.042773 | 2015-07-01T09:07:04 | 2015-07-01T09:07:04 | 36,930,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | #!/usr/bin/env python
# to be run with submitToCondor.py -l protoBatchConfig.py
# import the definitions of all the datasets on the T3
from OSUT3Analysis.Configuration.configurationOptions import *
# specify which config file to pass to cmsRun
config_file = "dibosonConfig_cfg.py"
# choose luminosity used for MC no... | [
"wulsin.1@osu.edu"
] | wulsin.1@osu.edu |
3b604a7ca5b00cc1100c32d72de4275b024fc68c | 8ddda8fb6e5853126dcdafa3281c75071ada45c1 | /vyperlogix/ai/__init__.py | a3ff3ccda86f73d8986b256466990e83ee6d4e69 | [
"CC0-1.0"
] | permissive | raychorn/chrome_gui | a48f3f9d931922a018e894f891ccd952476cd1ee | f1fade70b61af12ee43c55c075aa9cfd32caa962 | refs/heads/master | 2022-12-19T19:46:04.656032 | 2020-10-08T14:45:14 | 2020-10-08T14:45:14 | 299,167,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | __all__ = ['BackPropagationNeuralNetworks'] | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
1b6ce28079f09101e455a69b894a774a5f3b43fc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03346/s845937103.py | 3ee2d126dc789b41cf26ef9af1e42c212fed349b | [] | 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 | 258 | py | N = int(input())
P = [int(input()) for _ in range(N)]
dp = [0]*N
for i in range(N):
if P[i] == 1:
dp[P[i]-1] = 1
else:
if dp[P[i]-2] == 0:
dp[P[i]-1] = 1
else:
dp[P[i]-1] = dp[P[i]-2]+1
print(N-max(dp)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4e8dd419459beca2373f3d1e257b87ab06b03896 | 7109eecfb78e0123b534ef960dbf42be38e49514 | /x7-src/engine/plugins/xenserver/networking/etc/xensource/scripts/ovs_configure_vif_flows.py | dcf848b21b742babb78aa3124771bbb06f049f02 | [
"Apache-2.0"
] | permissive | wendy-king/x7_compute_venv | a6eadd9a06717090acea3312feebcbc9d3925e88 | 12d74f15147868463954ebd4a8e66d5428b6f56d | refs/heads/master | 2016-09-06T16:58:13.897069 | 2012-01-31T01:26:27 | 2012-01-31T01:26:27 | 3,310,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,261 | py | #!/usr/bin/env python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 X7 LLC.
# 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://... | [
"king_wendy@sina.com"
] | king_wendy@sina.com |
3f255fd4bb0ef1185f198c7b141666ddc6f9d4b3 | 262b630234a0c7b058a40e24f354fbb72224f7c3 | /Datastructures/recursion/sierpinski.py | 1f674f26ed3ece78367d79b000b493fcccc72ee1 | [] | no_license | cmwaura/DataStructures | 5bdd30080b80c1ddfff65de7edfc839f82239ff6 | be7b0a3ed6056e69c610298119a151a42e643758 | refs/heads/master | 2021-01-10T13:06:22.445186 | 2017-02-28T21:24:16 | 2017-02-28T21:24:16 | 55,702,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | import turtle
def drawTriangle(points, color, myTurtle):
myTurtle.fillcolor(color)
myTurtle.up()
myTurtle.goto(points[0][0], points[0][1])
myTurtle.down()
myTurtle.begin_fill()
myTurtle.goto(points[1][0], points[1][1])
myTurtle.goto(points[2][0], points[2][1])
myTurtle.goto(points[0][0]... | [
"cmmwaura@ucdavis.edu"
] | cmmwaura@ucdavis.edu |
0d52d05242e2d025d8794b25f81dd63d117eac11 | 22fe6ed51715486ebbc09e404504ed4d7a28c37d | /python-katas/EdabDayYear.py | 35047392aea6c4e11d56e2bbdac9438b202f6b7a | [] | no_license | Jethet/Practice-more | 1dd3ff19dcb3342a543ea1553a1a6fb0264b9c38 | 8488a679730e3406329ef30b4f438d41dd3167d6 | refs/heads/master | 2023-01-28T14:51:39.283741 | 2023-01-06T10:14:41 | 2023-01-06T10:14:41 | 160,946,017 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Create a function that takes the month and year (as integers) and returns
# the number of days in that month.
def day_amount(month, year):
if (year % 4 == 0) and (year % 100 != 0) or (year % 400 == 0) or (year == 1000):
if month == 2:
return 29
if month in [1,3,5,7,8,10,12]:
retur... | [
"henriette.hettinga@gmail.com"
] | henriette.hettinga@gmail.com |
7cf47b39d6412adc32b8d1092e83e7ae0056a083 | 29623d43b2ab99e55a5d102e8d718015053073a3 | /aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/QueryAnnotationJobListRequest.py | 1f5803a3b09cc156726cf208a0eeaf81ccbee82e | [
"Apache-2.0"
] | permissive | zxsted/aliyun-openapi-python-sdk | ed41e1d93c63557ecfbcffb6c84f87d4ed2a7f59 | a539d6e268fc07f314c5114c21ced4c8ead51dee | refs/heads/master | 2021-05-13T19:58:10.000697 | 2018-01-09T11:16:55 | 2018-01-09T11:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
1eb2997775df7e77eb6a9a38219b6cf7d64c550e | 9259591e4794aecd85c199b645ffb05ccbebd993 | /vendor/celery/contrib/testing/manager.py | 4fff6a779b6878e0e7ff347aa15710e4f5d0102d | [
"Apache-2.0"
] | permissive | swdotcom/swdc-sublime | 000e20b2d2d9fa214480d2a94fcb97a88b83f67f | eab2007ab408e44d38163a121bf95c5d2018d6e4 | refs/heads/main | 2022-03-10T05:57:44.701151 | 2022-03-09T23:53:14 | 2022-03-09T23:53:14 | 127,207,312 | 14 | 5 | Apache-2.0 | 2022-03-09T23:53:15 | 2018-03-28T22:47:16 | Python | UTF-8 | Python | false | false | 7,795 | py | """Integration testing utilities."""
from __future__ import absolute_import, print_function, unicode_literals
import socket
import sys
from collections import defaultdict
from functools import partial
from itertools import count
from kombu.utils.functional import retry_over_time
from celery import states
from celery... | [
"bo@software.com"
] | bo@software.com |
f26b8bad99cfc00452d3dfb619d6f781de753c30 | 1b3c73cfd2c183861942d821b5f7b87cfde05687 | /ChannelSelection.py | caa6b2e8bbd7f30274c364db66ce9637aabead67 | [] | no_license | Cheereus/MathModel2020 | d0e77d199701fe752298d3998578be58409c9ce3 | 752811a5550ff3d6ec4dc21f4880986e3fcf08f7 | refs/heads/master | 2023-04-27T15:00:28.332328 | 2021-04-27T02:56:52 | 2021-04-27T02:56:52 | 296,013,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,305 | py | import numpy as np
import joblib
from sklearn import svm
def cos_sim(vector_a, vector_b):
vector_a = np.mat(vector_a)
vector_b = np.mat(vector_b)
num = float(vector_a * vector_b.T)
d = np.linalg.norm(vector_a) * np.linalg.norm(vector_b)
cos = num / d
sim = 0.5 + 0.5 * cos
return sim
# 获... | [
"fanwei1995@hotmail.com"
] | fanwei1995@hotmail.com |
9dbedf4127dfe0438525f6989583270626bd7d36 | 5897efdedf50f74b0c577c392e17f2561ba09e2b | /manage.py | b3f88b345317837d5a071ec6e456fafe1b12e32a | [] | no_license | Beketx/Expertonica | f499a6ae82ed130030b6e7c102b4083989bc3753 | 00ae76c534bf7e8e4818828fe605caf38ab7fecd | refs/heads/master | 2023-04-20T10:45:31.960019 | 2021-06-01T19:53:46 | 2021-06-01T19:53:46 | 370,845,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'parseme.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"beketsk@gmail.com"
] | beketsk@gmail.com |
ef957ad698541e32888c90d7cf3a60cab55dd4ee | f1becb34f4e9a873fac6dbe6b3e8cc6d0cc4add6 | /django_app/conf/settings/_installed_apps.py | 527da0e2b060e2dacb86fadd6803eca3341037aa | [] | no_license | assigdev/test_market_place | ca92005281dfa61333f35215a9bc3c9e734c341a | 6fc7862d508e7adac991dc808f8462695b78a719 | refs/heads/master | 2020-04-18T13:27:23.817994 | 2019-01-25T22:46:28 | 2019-01-25T22:46:28 | 167,562,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Application definition
DJANGO_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
]
MY_APPS = [
'ad',
]
INSTALLED_APPS = [
'cities_li... | [
"assigdev@gmail.com"
] | assigdev@gmail.com |
ccb7d28b032aa29db5f4b3f69a7deb043e0014e3 | ac8ffabf4d7339c5466e53dafc3f7e87697f08eb | /python_solutions/517.super-washing-machines.py | 6ac251a7cb77827e3e2801f37975fd97073412df | [] | no_license | h4hany/leetcode | 4cbf23ea7c5b5ecfd26aef61bfc109741f881591 | 9e4f6f1a2830bd9aab1bba374c98f0464825d435 | refs/heads/master | 2023-01-09T17:39:06.212421 | 2020-11-12T07:26:39 | 2020-11-12T07:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | from collections import Counter, defaultdict, OrderedDict, deque
from bisect import bisect_left, bisect_right
from functools import reduce, lru_cache
from typing import List
import itertools
import math
import heapq
import string
true = True
false = False
MIN, MAX, MOD = -0x3f3f3f3f, 0x3f3f3f3f, 1000000007
#
# @lc ap... | [
"ssruoz@gmail.com"
] | ssruoz@gmail.com |
7a617b1b8e749f979fd83f656b8592a71c76f287 | c838c53ec5de94af57696f11db08f332ff2a65d8 | /disposition/migrations/0004_auto_20180628_0650.py | 21e927bfefdb63ede3f8c68037e328998fdd6c1e | [] | no_license | memobijou/erpghost | 4a9af80b3c948a4d7bb20d26e5afb01b40efbab5 | c0ee90718778bc2b771b8078d9c08e038ae59284 | refs/heads/master | 2022-12-11T14:47:59.048889 | 2019-01-28T02:30:40 | 2019-01-28T02:30:40 | 113,774,918 | 1 | 1 | null | 2022-11-22T02:02:41 | 2017-12-10T18:53:41 | Python | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-06-28 04:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('disposition', '0003_employee_truck'),
]
operations = [
migrations.AlterFiel... | [
"mbijou@live.de"
] | mbijou@live.de |
95f4f537e0544459b917ced9efb2b56ba14cc74e | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/3995/codes/1798_2565.py | 47479039705870bf249aea5d34bb94b4deab966e | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from numpy import*
m=array(eval(input("medias:")))
p=array(eval(input("presenca:")))
v3=int(input("carga horaria:"))
ap=0
rf=0
rn=0
v=zeros(3, dtype=int)
for i in range(size(m)):
y=v3*75/100
if(m[i]>=5 and p[i]>=y):
ap+=1
elif(m[i]<5):
rn=rn+1
elif(p[i]<y):
rf=rf+1
v[0]=ap
v[1]=rn
v[2]=rf
print(v)
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
e69f96ef23b2ff73b585f55fd9d14c0c5606a002 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_393/ch17_2020_09_29_18_07_09_762127.py | 6942221a9a751230cc884d67bacbcc874019e797 | [] | 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 | 205 | py | def eh_bissexto(x):
if x%4 == 0:
return True
elif x%100 == 0:
if x%400 == 0:
return True
else:
return False
else:
return False
| [
"you@example.com"
] | you@example.com |
23a0f42a8687230d7edfccb664ca77653b1c4dfe | 7bf406ae36aa39cd28c24f47d0e3cd63762411a2 | /gui.py | 8f536809d4db3b9e78eea010ca9727ca195de7fa | [] | no_license | vinsmokemau/PSB | c7f5fdaa6ddca3bd3bd3ca749f2131d4cf184935 | fc6be1ef75add6b2fa8ba24f8b63585eec4e86b2 | refs/heads/master | 2022-07-13T10:09:33.078420 | 2019-08-12T21:14:43 | 2019-08-12T21:14:43 | 201,720,501 | 0 | 0 | null | 2022-06-21T22:30:16 | 2019-08-11T05:13:17 | Python | UTF-8 | Python | false | false | 1,544 | py | """Gui for show Sin and Cos."""
import tkinter as tk
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
import numpy as np
root = tk.Tk()
canvas1 = tk.Canvas(root, width=1000, height=350)
canvas1.pack()
button1 = tk.Button(root, text='Exit Application', command=ro... | [
"maumg1196@gmail.com"
] | maumg1196@gmail.com |
f8d4a23e2566c7005c8252fc9b1e40b368eef7b5 | 296132d2c5d95440b3ce5f4401078a6d0f736f5a | /homeassistant/components/bluetooth/__init__.py | 8386178f45951029e51d7f57a57cb0cca3f7e1ae | [
"Apache-2.0"
] | permissive | mezz64/home-assistant | 5349a242fbfa182159e784deec580d2800173a3b | 997d4fbe5308b01d14ceabcfe089c2bc511473dd | refs/heads/dev | 2023-03-16T22:31:52.499528 | 2022-12-08T02:55:25 | 2022-12-08T02:55:25 | 68,411,158 | 2 | 1 | Apache-2.0 | 2023-03-10T06:56:54 | 2016-09-16T20:04:27 | Python | UTF-8 | Python | false | false | 11,359 | py | """The bluetooth integration."""
from __future__ import annotations
import datetime
import logging
import platform
from typing import TYPE_CHECKING
from awesomeversion import AwesomeVersion
from bluetooth_adapters import (
ADAPTER_ADDRESS,
ADAPTER_HW_VERSION,
ADAPTER_MANUFACTURER,
ADAPTER_SW_VERSION,
... | [
"noreply@github.com"
] | mezz64.noreply@github.com |
46ebf440669f9d4606753af30621a5d29663ccea | 2f898bb332097d11f321186207e94f6d156587f3 | /audio/fourier_an_audio.py | 0dee9f6934a78fe0648c438df34f1250fe720e5b | [
"MIT"
] | permissive | miltonsarria/teaching | ad2d07e9cfbfcf272c4b2fbef47321eae765a605 | 7a2b4e6c74d9f11562dfe34722e607ca081c1681 | refs/heads/master | 2022-01-05T05:58:13.163155 | 2019-05-02T20:45:46 | 2019-05-02T20:45:46 | 102,375,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | #Milton Orlando Sarria
#analisis espectral de sinusoides
#generar audio de forma artificial para simular un instrumento musical
from pandas import Series
import matplotlib.pyplot as plt
import numpy as np
from fourierFunc import fourierAn
import wav_rw as wp
from scipy.signal import get_window
import sounddevice as sd
... | [
"miltonsarria@gmail.com"
] | miltonsarria@gmail.com |
7ae3459ff4210cbc4278c6c3a7438426aece4fec | 3ca7bf2e01a85b3647fcd1c7b6b81838490d42f1 | /aldryn_newsblog/__init__.py | 1ea02362332ade7590eedaaa0b75fdcbd3fdf7ee | [] | no_license | aerialmonitor/aldryn-newsblog | 40dc8e54a6394dc4f2ef44f021fce04f392783e8 | 0920a2309aa7a6cf09bb0ad6dc121ecf8f3a85dc | refs/heads/master | 2021-01-18T17:19:35.299535 | 2016-01-10T02:07:58 | 2016-01-10T02:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__version__ = '1.0.11'
| [
"mkoistinen@gmail.com"
] | mkoistinen@gmail.com |
2efc25165727a35d18e217eede7ba2abe510e7ac | fa0ae8d2e5ecf78df4547f0a106550724f59879a | /project1,2/dict/client_bck.py | 21c0722e330ee5d84f58f63d4cdb9c715a3152b9 | [] | no_license | Polaris-d/note | 71f8297bc88ceb44025e37eb63c25c5069b7d746 | 6f1a9d71e02fb35d50957f2cf6098f8aca656da9 | refs/heads/master | 2020-03-22T17:51:49.118575 | 2018-09-06T03:36:00 | 2018-09-06T03:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | #!/usr/bin/env python3
#coding=utf-8
from socket import *
import sys
import traceback
import getpass
#主控制流程函数
def main():
if len(sys.argv) < 3:
print('argv is error')
return
host = sys.argv[1]
port = int(sys.argv[2])
s = socket()
try:
s.connect((host,port))
except ... | [
"610079251@qq.com"
] | 610079251@qq.com |
77b634419151be8446a7887c1190714ac514af6e | 72ef41a1066257559c19d7a7760601c3a6fd1b4b | /jpeg_stream.py | e2b127430ed5e178d0dadc7f8a2db2bac0ab0a3f | [] | no_license | sti320a/stream_with_flask | 11705bad97b34a2b78fb40ca353f0b5e5c4145ed | 62966cfd65599cad862585421d628a06530f1908 | refs/heads/master | 2020-04-12T23:19:18.164366 | 2018-12-24T13:24:53 | 2018-12-24T13:24:53 | 162,815,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | from flask import Flask, render_template, Response
# from camera import Camera
# VideoCameraに変更
from camera import VideoCamera
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
def generate(camera):
while True:
frame=camera.get_frame()
yield (b'--frame\... | [
"sti320a@gmail.com"
] | sti320a@gmail.com |
ba71387ae3d9091863f67d9e61f5595d92c4edb2 | 7b798a55cf7bd42ab5d2d423ab77814c2564bd44 | /Explore_Google/Longest Substring with At Most Two Distinct Characters.py | b7543e281bfbf41ec7326e16e2f18e1ef24d8b47 | [] | no_license | addherbs/LeetCode | d933839eb0a2eb53c192f76c42152c6f3a6ef3f2 | cadd48225d93aa69745a94a214e55e7751996e19 | refs/heads/master | 2021-04-15T05:12:26.855696 | 2021-02-27T05:53:42 | 2021-02-27T05:53:42 | 126,174,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | """
Longest Substring with At Most Two Distinct Characters
Solution
Given a string s , find the length of the longest substring t that contains at most 2 distinct characters.
Example 1:
Input: "eceba"
Output: 3
Explanation: t is "ece" which its length is 3.
Example 2:
Input: "ccaabbb"
Output: 5
Explanation: t is ... | [
"addherbs@gmail.com"
] | addherbs@gmail.com |
efe80dcd087178856170cb5fb9e1b5b44d125081 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/MuonSpectrometer/MuonCalib/CscCalib/CscCalibAlgs/share/CscCalcPedMon.py | d51b03feaeeb7cf1f491be7986f3a74d74dbce23 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,258 | py | #**************************************************************
#
# Csc Pedestal Calibration
#
#==============================================================
runNumber = 2147483647
#Input files:
#prelimDir = "/raid01/lampen/testarea/Calib/August09CosmicRun/data/preliminaryData/"
#AugustRunDir = "rfio:/castor/... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
9104cc773715e32c6bd21810fe2e8cbefcfa4955 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-imageprocess/aliyunsdkimageprocess/request/v20200320/RunCTRegistrationRequest.py | 88480b6a21d30cfbf5174c1079e3d48d48061dfd | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,692 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
922c45b1f5aec49507b2cde8dcf1b4d2ba1b7547 | 47434a10c598d2ea0e5faed4df29c755242c662e | /Set_2/04.py | 80e96dbb65163529581c66bb464f81cb661cfb5a | [] | no_license | ShakilAhmmed/Problem_Solve | 566b5a5370723932a50cf34c97ac9f229df8b511 | 6864958ee892ba0aa90f6788fc7b7c16baf41716 | refs/heads/master | 2021-06-22T19:41:07.624863 | 2021-03-07T16:10:25 | 2021-03-07T16:10:25 | 200,253,202 | 2 | 0 | null | 2020-06-16T19:52:43 | 2019-08-02T14:56:30 | Python | UTF-8 | Python | false | false | 91 | py | take_input = [x for x in input().split()]
print("List Is Empty" if not take_input else '')
| [
"shakilfci461@gmail.com"
] | shakilfci461@gmail.com |
283e6958f935b87396e6abe02091ef1bc19e01a4 | 056cb597216e8c1eab12f3a7efb188242f49cf5e | /tests/test_rtcrtpreceiver.py | 98b8271ff5203187afb45627779355515394d5b0 | [
"BSD-3-Clause"
] | permissive | MatejLach/aiortc | 92c558b90b94a06731d6f4bb6ab6bad4d1352a23 | ba9b4725cff0b16abdf24491616e7d012ae55ded | refs/heads/master | 2020-03-20T15:06:25.675821 | 2018-06-12T20:00:21 | 2018-06-12T20:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | import asyncio
from unittest import TestCase
from aiortc.codecs import PCMU_CODEC
from aiortc.exceptions import InvalidStateError
from aiortc.mediastreams import AudioFrame
from aiortc.rtcrtpparameters import RTCRtpParameters
from aiortc.rtcrtpreceiver import RemoteStreamTrack, RTCRtpReceiver
from aiortc.rtp import Rt... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
463f0003bf7b612c451d8a8173e5ebaf5f81f48b | 9c337ea179ce44d1570219647b60b78c84ed54a7 | /accounts/migrations/0022_auto_20190318_2040.py | 6c7f266b6b8fc2d351f47540c56b1e3f05b00fdf | [] | no_license | timshin43/donaddcom | aa9cb5616907f145b388f290429dd9d1fd61f73b | d372b6677a15d699abc634f8f49581b8aa23f9a0 | refs/heads/master | 2022-12-10T10:10:26.494884 | 2020-12-08T02:10:48 | 2020-12-08T02:10:48 | 180,018,996 | 0 | 0 | null | 2022-12-08T02:31:05 | 2019-04-07T20:20:16 | Python | UTF-8 | Python | false | false | 584 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-03-19 03:40
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('accounts', '0021_auto_20190318_2022')... | [
"timshin.sergei@gmail.com"
] | timshin.sergei@gmail.com |
b9b164e6ca605072a2cfc10b02a0a3dc74703211 | b3dc53182ab10dbb32c6ac5ee406c19a23400356 | /scripts/data_processing/extract_relevant_info_from_extra_user_tweets.py | 469f1e83c4d295a1055bae7db280855c4fd1c8d0 | [] | no_license | ianbstewart/catalan | 765ea756d49688aba1c1a413e30251b9542ce887 | 9d2b09662643cb8e1d64b1f1f73870d6d794f3b7 | refs/heads/master | 2021-12-14T18:41:34.892708 | 2021-12-13T21:27:23 | 2021-12-13T21:27:23 | 128,650,277 | 3 | 1 | null | 2021-12-13T21:26:37 | 2018-04-08T14:35:59 | Jupyter Notebook | UTF-8 | Python | false | false | 2,536 | py | """
Extract username, text, hashtags, and pro/anti label
for all extra user tweets.
"""
import pandas as pd
from langid import classify
import re
from argparse import ArgumentParser
import codecs
import json
def main():
parser = ArgumentParser()
parser.add_argument('--user_tweet_file', default='../../data/twee... | [
"istewart6@gatech.edu"
] | istewart6@gatech.edu |
e1a468915ce7d57a55f0df81fded1f791dbf1cd4 | 07f837d8c5236fe5e75ef510cd296814452370ce | /py/testdir_single_jvm_fvec/test_exec2_ternary_phrases.py | 36457edce9509d4408be78d65eb52a0b594b90df | [
"Apache-2.0"
] | permissive | vkuznet/h2o | 6f9006a5186b964bac266981d9082aec7bc1067c | e08f7014f228cbaecfb21f57379970e6a3ac0756 | refs/heads/master | 2021-08-28T11:37:52.099953 | 2021-08-10T22:43:34 | 2021-08-10T22:43:34 | 20,032,996 | 0 | 0 | Apache-2.0 | 2021-08-10T22:43:35 | 2014-05-21T18:46:27 | Java | UTF-8 | Python | false | false | 4,449 | py | import unittest, random, sys, time
sys.path.extend(['.','..','py'])
import h2o, h2o_browse as h2b, h2o_exec as h2e, h2o_hosts, h2o_import as h2i
initList = [
('r.hex', 'r.hex=i.hex'),
]
DO_COMPOUND = False
phrasesCompound = [
# not going to allow lhs assigns in the ternary clauses
# "a=!0; x=!0",... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
1e168378dcde9249fa54ca8d1c69013576f6ac2a | c46260c40054c0499e0a6871e4d3fe2d6d8aa9c0 | /Pdf2txt/fd_Acemap.py | c6bef0e6ba5a37fb7317a1e0c6101996b169f2dc | [] | no_license | iiot-tbb/learngit | 1d6f5c234f1c36016be5489c7ec605f666bbba16 | dfa3106d05bcbb0da39b9bf71f7a0698322130f7 | refs/heads/master | 2020-08-30T01:30:07.632602 | 2019-12-07T13:09:59 | 2019-12-07T13:09:59 | 218,225,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | #!/usr/bin/env python
# coding=utf-8
import json
import requests
#import test_extra_word
from test_extra_word import extract_keys
from DataBaseConn import database_filtered_chinese
class findyou:
def __init__(self):
self.dic = {}
self.person=[]
self.personDict={}
self.personChinese... | [
"247687157@qq.com"
] | 247687157@qq.com |
571556673d587157c9eba75ab978dbeeb0ca3f50 | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/labbook/tasks/preferences.py | 14ae3986fcfc448bd4c1ccf12880461d380e2573 | [] | no_license | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | # ===============================================================================
# Copyright 2014 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
3cfc490cc8e03e781098363ecb87fcdd79354341 | c3d0a0b6336a3ff73724fe1615eb1809dbdaaed8 | /DataBase Forsk/Database_MySQL_Cloud (2).py | 11d5f09a60d93a83a3595349a5377eb32cd50ae5 | [] | no_license | Silentsoul04/FTSP_2020 | db0dae6cd9c371f3daa9219f86520dfa66348236 | 7e603af918da2bcfe4949a4cf5a33107c837894f | refs/heads/master | 2022-12-21T20:44:32.031640 | 2020-09-20T12:29:58 | 2020-09-20T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 7 16:30:22 2020
@author: Rajesh
"""
"""
Database handling using MySQL on Cloud
Relational DB Vs NoSQL DB
"""
"""
https://www.db4free.net
https://www.db4free.net/phpMyAdmin/
MySQL Host Name : db4free.net
Port : 3306
MySQL database name: rajesh_forsk
MySQL username: sharm... | [
"sharma90126@gmail.com"
] | sharma90126@gmail.com |
07560f3592cd8da6e46653f99f4bc47a1fc40eae | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/learn_python_dm2039/ch6/ch6_4.py | d36e75827f7c77dfaae2d31504eab0c90d9c5b2a | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | # ch6_4.py
james = [23, 19, 22, 31, 18] # 定義james串列
print("列印james第1-3場得分", james[0:3])
print("列印james第2-4場得分", james[1:4])
print("列印james第1,3,5場得分", james[0:6:2])
| [
"terranandes@gmail.com"
] | terranandes@gmail.com |
e52ef67d2cffcae2a4652db7193e23c58d440f2c | 285da89e35406402bdb954a9af0c27f948ab33df | /anchore/cli/toolbox.py | 3974a4c98f595ee909c5f7c1629ef3af4207f657 | [
"Apache-2.0"
] | permissive | neilsoman/anchore | 197a6c35eaa4452ca4987f057ac748df31faeca4 | df585d9a9af2f4887c4b15a62f1a0ba33918d4f1 | refs/heads/master | 2021-01-15T19:35:17.134635 | 2016-06-23T19:08:40 | 2016-06-23T19:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,326 | py | import sys
import os
import re
import shutil
from textwrap import fill
import click
from anchore.cli.common import anchore_print, anchore_print_err
from anchore import visualizer, navigator, anchore_utils
from anchore.util import contexts
config = {}
imagelist = []
@click.group(short_help='Useful tools and operation... | [
"nurmi@anchore.com"
] | nurmi@anchore.com |
7ab22b0767c88a15cf50013c63c854f67d501cda | 54d2887e3c910f68366bd0aab3c692d54245e22a | /abc/abc_126_211/abc127/d.py | 1797393a7d7e9ad9e6b49614c617617a4737082d | [] | no_license | Kevinrobot34/atcoder | 7aec367fd2c6b589e9d583dae7b3c7520ce9fa12 | 482ea508f098f81e4f19522fe518dd22c781aca9 | refs/heads/master | 2022-07-10T23:44:45.290022 | 2022-06-29T11:30:26 | 2022-06-29T11:30:26 | 158,081,477 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from operator import itemgetter
n, m = map(int, input().split())
a = list(map(int, input().split()))
op = [list(map(int, input().split())) for _ in range(m)]
op.sort(key=itemgetter(1), reverse=True)
a.sort()
idx = 0
ans = 0
for i in range(n):
if idx < m and op[idx][1] > a[i]:
ans += op[idx][1]
else:
... | [
"kevinrobot34@yahoo.co.jp"
] | kevinrobot34@yahoo.co.jp |
a693095753d9a73cff17596d666b433b003c37f1 | 64ff8e45e2a0afb1cea4da11a6d0b461865f6881 | /0x03-caching/0-basic_cache.py | 3de08f1b583b07226d6c7a89282766d47c2e9a9d | [] | no_license | Caroll1889/holbertonschool-web_back_end | 0e5289002b10fb4c379bdb0204cf5ace526147ab | 970dcead135d8072afb45e120078c209d769a49e | refs/heads/master | 2023-06-07T22:26:43.471102 | 2021-06-26T17:58:55 | 2021-06-26T17:58:55 | 305,270,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/env python3
""" Basic dictionary
"""
from base_caching import BaseCaching
class BasicCache(BaseCaching):
"""Basic Cache"""
def put(self, key, item):
""" Add an item in the cache """
if key is not None and item is not None:
self.cache_data[key] = item
def get(self, ... | [
"diahancaroll@hotmail.com"
] | diahancaroll@hotmail.com |
fe0e99292d14d32c5bb8f541ba1f6f9aba1a06f2 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008.2/applications/admin/sysstat/actions.py | 173e9ab8ea0481963a28097ab124438715678c85 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008 TUBITAK/UEKAE
# 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 get
def setup():
autotools.configure("conf_di... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
7e8fd10ea22e579d683a3ebbe9311baf32409eb7 | f92b17990c03970dbbe35529d5598cf51ddf36ae | /modules/miscutils.py | d163f6dff62f9926839a6a2a21b2a318cb252d14 | [] | no_license | sutt/fastai-tmp | 0efa3f2be273ac1c6113dc933294e3a201919b1a | 0a6d4ac9561640b21ff2efa33a536ad8bb4c0a8c | refs/heads/master | 2020-05-04T17:34:30.390181 | 2019-05-05T20:00:42 | 2019-05-05T20:00:42 | 179,316,732 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,375 | py | import os, sys, json, copy, random, shutil, subprocess, time
import pandas as pd
import numpy as np
import fastai
''' misc utils '''
def fastai_version(min_version=None, allow_dev=True, print_minor_v=False):
''' check fastai version we're using; default return True if min_version met'''
try:
v = fasta... | [
"wsutton17@gmail.com"
] | wsutton17@gmail.com |
7739e5cb0d9792d63f1f083e7d91bd793dfddda2 | bfa100593b7fc67ae65593bdddb357fa3d9e27cf | /home/migrations/0004_auto_20190324_1119.py | dc95fc89ec1e72a61180e746321287f17db4cba6 | [] | no_license | wall-e-08/medigap-wagtail | e2342631004de047a4b3d09571dd88f2a6fc2286 | 1d7b77759f071eec89e29591e814523d4c433655 | refs/heads/master | 2020-05-20T17:27:43.966094 | 2019-04-30T06:25:58 | 2019-04-30T06:25:58 | 185,688,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # Generated by Django 2.1.7 on 2019-03-24 11:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0003_auto_20190324_1058'),
]
operations = [
migrations.RemoveField(
model_name='homepage',
name='qt_heading'... | [
"debashis.buet08@gmail.com"
] | debashis.buet08@gmail.com |
90f86962b74ff387fa1e744c48a80ed4856df45b | c4cc78739f1719dea2162ceeb81b1888e14f6f02 | /more-complex/one.py | b6bfe31a35a31093c0a11ed89db8372860a64a96 | [] | no_license | nazaninsbr/Turtle-Drawings | 8161945460ea6bed4adf2b525c483bff60b8f4d3 | e021ca6cc1fe908baed1fbfc86ff69a39eb8f9e3 | refs/heads/master | 2020-03-13T14:10:19.912868 | 2018-05-17T08:49:45 | 2018-05-17T08:49:45 | 131,153,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from turtle import *
from random import randint
speed(0)
bgcolor('black')
colormode(255)
x = 1
while x < 400:
r = randint(0,255)
g = randint(0,255)
b = randint(0,255)
pencolor(r,g,b)
fd(50 + x)
rt(90.911)
x = x+1
exitonclick() | [
"nazanin.sabrii@gmail.com"
] | nazanin.sabrii@gmail.com |
2125110bc19fd202caa6096d784afb0002a2b4c1 | 65e076e4fcc00a67faa0932b3f3a3d3a3a11e2aa | /sdk/python/pulumi_google_native/datamigration/v1/get_migration_job.py | f1da005048c81c9ee8ed906ee396d2d1b835c322 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | TheJaySmith-Google/pulumi-google-native | 816babe5c7316724e02d5b8b9d789df00262bb8e | 566c295a39fe8c3dd16e4a7894ff6de72423e5da | refs/heads/master | 2023-06-05T06:45:19.979837 | 2021-06-23T11:42:27 | 2021-06-23T11:42:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,030 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | TheJaySmith-Google.noreply@github.com |
725c96c69f20029386fdda0a8ef5d28a2579efd9 | d6952f048727add5b54a521d04f6c9b5889bcd35 | /test/test_run_list.py | 753460fff5fa410a2578aa278cf40c4fe4be8a93 | [] | no_license | TfedUD/python-sdk | bf719644041c2ab7b741af9c7fb8e5acfe085922 | 7ddc34611de44d2f9c5b217cf9b9e7cec27b2a27 | refs/heads/master | 2023-08-10T21:13:45.270193 | 2021-06-21T14:48:36 | 2021-06-21T14:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.13.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
ae6832fb40a236b9d5fa657afbd1a8952c23513d | 23392f060c85b5fee645d319f2fd5560653dfd5c | /03_Data Science/3. Statistics/Applications_Chap05/test.py | befbd95434e7610527686c47bca7ceaa69db37bd | [] | no_license | heyhello89/openbigdata | 65192f381de83e4d153c072ff09fa7574f003037 | b35ff237c32013c3e5380eee782085a64edb9d80 | refs/heads/master | 2021-10-22T04:29:00.852546 | 2019-03-08T02:14:34 | 2019-03-08T02:14:34 | 125,938,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from datetime import date, datetime
date1 = date.today().strftime('%m/%d/%Y')
date2 = 12/22/2014
diff = str(datetime.strptime(date1, '%m/%d/%Y')-datetime.strptime(date2, '%m/%d/%Y')).split()[0]
print(diff) | [
"heyhello89@hanmail.net"
] | heyhello89@hanmail.net |
7c68e757a0eb5455a1a90895385437dd192d8ece | 0fabfa32965da9afda0929f6ca89d2022e5f71ad | /tasks/01/02_drive_and_turn.py | ab5aaf8f59694d4a0178d75b5ccada7ff7ce43dd | [] | no_license | skyrockprojects/cozmo | 787ae44bf78ff83a1aafc70a862c0ed3123222bb | 139d22374ab47fe22ca95deda46835944797180d | refs/heads/master | 2020-05-02T02:49:47.852849 | 2019-04-20T12:20:29 | 2019-04-20T12:20:29 | 177,713,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/env python3
import cozmo
from cozmo.util import degrees, distance_mm, speed_mmps
def cozmo_program(robot: cozmo.robot.Robot):
robot.drive_straight(distance_mm(150), speed_mmps(50)).wait_for_completed()
robot.turn_in_place(degrees(90)).wait_for_completed()
cozmo.run_program(cozmo_program)
| [
"astephanerasmus@gmail.com"
] | astephanerasmus@gmail.com |
db140cbeb409dd8b7c99b44bc9c24b45c1370409 | 5d573c2e3a90e8c4e3b884d54aacd4a44d5d0b87 | /Python/python_stack/myEnviroments/DjangoEnv/lib/python2.7/site-packages/twilio/rest/sync/v1/service/sync_map/sync_map_item.py | 3fa30f3aa07e8703d85fdbf60d64b5d06e794792 | [] | no_license | RubenDuran/DojoAssignments | 42d12088feabee09eb1874da010e594b0eb7da18 | aa691ae2c41a35f632fa082fbf2eae60ea1f4601 | refs/heads/master | 2021-01-19T20:57:31.962140 | 2018-02-13T01:40:07 | 2018-02-13T01:40:07 | 88,580,713 | 0 | 2 | null | 2017-06-07T22:01:32 | 2017-04-18T04:14:30 | Python | UTF-8 | Python | false | false | 17,081 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import serialize
from twilio.base import values
from twilio.base.exceptions import TwilioException
from twilio.base.instance_context import Instanc... | [
"rd@rubenduran.net"
] | rd@rubenduran.net |
6385ea5a2b688777989c6d2b3cd6f02bc7fe6e89 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/GEM_REGISTER/YW_GEM_REGISTERMM_SZSJ_339.py | a80d47a9c36af72825a87e87d6bf64a85e8ff1a0 | [] | 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,116 | 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 |
7ca3693c3cac48f235a5f9f27493547e9c4cd6b6 | 7049e6036189fdb8aa1eb6ab2c0653a718e51269 | /pages/views.py | 536f599f682fe19bbc85b8f3927f8d0559a9c24c | [] | no_license | bolanebyla/lets_dance_irk | 0284204b66051895f9bf30ef1836998053f8cecc | f97fcfd9aa0c310b3106640bee88272714fb4cbe | refs/heads/master | 2021-08-07T01:38:40.106806 | 2020-06-09T02:11:02 | 2020-06-09T02:11:02 | 250,764,863 | 0 | 0 | null | 2021-06-02T02:03:03 | 2020-03-28T10:19:59 | CSS | UTF-8 | Python | false | false | 8,554 | py | # -----------------------------------------------------------------------------------#
#
# pages/views.py
# ===================
# 1. Главная
# 2. Успешная запись на занятие
# 3. Категории методических матриалов
# 4. Методические материалы
# 5. Одна статья
# 6. Новости
# 7. Одна новость
# 8. Галерея
# 9. Фотографии одно... | [
"alexleskov2000@gmail.com"
] | alexleskov2000@gmail.com |
1c0cb21ba14592a966b82ab72e98490412f31dca | 01abb5fe2d6a51e8ee4330eaead043f4f9aad99d | /Repo_Files/Zips/plugin.video.streamhub/resources/lib/ssources/ddls.py | 513197c68cb238b763aad11406f4bddb3ea1df37 | [] | no_license | MrAnhell/StreamHub | 01bb97bd3ae385205f3c1ac6c0c883d70dd20b9f | e70f384abf23c83001152eae87c6897f2d3aef99 | refs/heads/master | 2021-01-18T23:25:48.119585 | 2017-09-06T12:39:41 | 2017-09-06T12:39:41 | 87,110,979 | 0 | 0 | null | 2017-04-03T19:09:49 | 2017-04-03T19:09:49 | null | UTF-8 | Python | false | false | 4,186 | py | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any l... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
f34cd4b33e4980289e01a28ed9096f83595a4167 | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/unittest/test_track.py | b591f15235226f497781b8edc34f8732bb872307 | [] | no_license | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,787 | py | # TestCase for lib.Track
import math
import os.path
import sys
import unittest
runningScriptPath = sys.argv[0]
unittestPath = os.path.dirname(runningScriptPath)
import lib.Track
class TrackTest(unittest.TestCase):
def setUp(self):
"""
Create a test Track and other test data
"""
self.testMintp = 1
self.... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
b4f6b9f3bdfa647aa28d665f7195496eefda8378 | 06e0c89781ae9c07a55090c43d8609e9dfefbb6f | /School_17/staff/migrations/0004_student_admission_date.py | e60a4d316eb98075a56ab38586bda4589f46ea8b | [] | no_license | mfarzamalam/django | d6d4302910301ae3e135a95a9982f3bd01218260 | 935a60d3ac874b7adb4287b4c2d172b89c6551b9 | refs/heads/master | 2023-04-10T21:06:11.601436 | 2021-04-27T21:31:47 | 2021-04-27T21:31:47 | 345,129,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # Generated by Django 3.1.7 on 2021-04-19 02:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('staff', '0003_teacher'),
]
operations = [
migrations.AddField(
model_name='student',
name='admission_date',
... | [
"mfarzamalam@gmail.com"
] | mfarzamalam@gmail.com |
06bd89f11d5fbdfe59bac5a414dfed5530ebdf84 | 74c9e0e09cc6f00fb91cffa70bbafdb8d87a0693 | /awegan/simple_dcgan.py | 7fca8a9f9f349fec9ffb0d9340b30652c72af74d | [
"MIT"
] | permissive | Real798/EnhanceIMG | 0f1461311e2db587795e2f73cc373ba1faba3b86 | 8c009fbb6c5461ff6d7f30bdacec72232639c7f2 | refs/heads/main | 2023-06-04T13:58:45.429277 | 2021-06-25T03:11:57 | 2021-06-25T03:11:57 | 463,097,575 | 1 | 0 | MIT | 2022-02-24T10:06:05 | 2022-02-24T10:06:04 | null | UTF-8 | Python | false | false | 11,585 | py | """Ref: https://github.com/eriklindernoren/PyTorch-GAN"""
import argparse
import os
import os.path as osp
import numpy as np
import math
import time
import random
from torchvision import datasets
import torchvision.transforms as transforms
from torchvision.utils import save_image
import torch
import torch.nn as nn
i... | [
"atomicoo95@gmail.com"
] | atomicoo95@gmail.com |
c3c6c66326d261d85fadd7a7f48bebf87d40048b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04031/s181507678.py | 3ee07de3e08871e00d0ada61e07d1f8d8da0918f | [] | 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 | 291 | py |
def main():
n = int(input())
a_s = list(map(int,input().split()))
answer = 999999999999999999999999999999999
for i in range(-100,101):
temp = sum([(a-i) ** 2 for a in a_s ])
answer = min(answer,temp)
print(answer)
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
55e619db96d62c79004c013ff6321968eda3af14 | 8bb42e1d483f1896cdfb6e09b2dceac130be52ed | /fasta_GC_per_record.py | c0616514b6681d1b1c3cc3958337d72e761a1d48 | [] | no_license | brianjohnhaas/HAASUTIL | a1fb9f4226984a2760b78e1763cc9ee519e4a78e | 4646d50ab7f9a3689caeac7ed3bdb9fbdd3e4885 | refs/heads/master | 2023-03-15T20:16:19.057135 | 2023-03-10T22:11:23 | 2023-03-10T22:11:23 | 66,492,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | #!/usr/bin/env python
import os, re, sys
import collections
usage = "\n\n\tusage: {} seqs.fasta\n\n".format(sys.argv[0])
if len(sys.argv) < 2:
sys.stderr.write(usage)
sys.exit(1)
def main():
fasta_file = sys.argv[1]
acc = None
seq = ''
with open(fasta_file) as fh:
for line in fh:
... | [
"brianjohnhaas@gmail.com"
] | brianjohnhaas@gmail.com |
c06d5b8d6154f9075c8dfacb09e9dae7442e3cc0 | 93ba28a7808ed5a406753748fedbdbaea5f3c8b2 | /compareSignalMassPoints.py | 6a43ea8ed4994ea913538a6afa2932aa10b8897c | [] | no_license | zaixingmao/samples-plots | 7a55005abab1e7644296d1eb2e76f603d160a37b | bb2371c7f664a84c454189ec648bb55630cb7565 | refs/heads/master | 2020-05-21T23:27:34.390427 | 2017-07-14T14:59:52 | 2017-07-14T14:59:52 | 24,139,867 | 0 | 0 | null | 2015-10-23T16:00:22 | 2014-09-17T10:17:08 | Python | UTF-8 | Python | false | false | 2,864 | py | #!/usr/bin/env python
import ROOT as r
import tool
import array
r.gStyle.SetOptStat(0)
r.gROOT.SetBatch(True) # to suppress canvas pop-outs
lvClass = r.Math.LorentzVector(r.Math.PtEtaPhiM4D('double'))
l1 = lvClass()
l2 = lvClass()
jet = lvClass()
met = lvClass()
def getVarValue(l1, l2, met, varName):
if "m_ef... | [
"zaixing.mao@cern.ch"
] | zaixing.mao@cern.ch |
5674c01441ae2680fdc6a2e3f87779db48e7e90d | dce4a52986ddccea91fbf937bd89e0ae00b9d046 | /jni-build/jni-build/jni/include/tensorflow/contrib/metrics/python/ops/metric_ops_util_test.py | 6c5c0b2aba5d7895b2df4b8a45af5e0bf0d6682a | [
"MIT"
] | permissive | Lab603/PicEncyclopedias | 54a641b106b7bb2d2f71b2dacef1e5dbeaf773a6 | 6d39eeb66c63a6f0f7895befc588c9eb1dd105f9 | refs/heads/master | 2022-11-11T13:35:32.781340 | 2018-03-15T05:53:07 | 2018-03-15T05:53:07 | 103,941,664 | 6 | 3 | MIT | 2022-10-28T05:31:37 | 2017-09-18T13:20:47 | C++ | UTF-8 | Python | false | false | 5,614 | py | # Copyright 2016 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... | [
"super_mr.z@hotmail.comm"
] | super_mr.z@hotmail.comm |
f268a4ac3269cecb2fd573a9e569b15137a7132c | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/home/enterprise/sdm/v1/enterprise-sdm-v1-py/google/home/enterprise/sdm_v1/types/smart_device_management_service.py | 1df3a2d378972d2959574214cf6da61ab2051ec4 | [
"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 | 7,738 | 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 |
706132db78163eea23f4147a9ee37631e36712e6 | 41342d00358ce96ad44cbdb9ee84fb87c4b314d6 | /Other Python/brainfuck.py | e43b5a4a308750b321f99a054ef41375bb0d3564 | [] | no_license | plasmatic1/archived-projects | 4ca1fedaf952565c7a4f73f011f2281f9a1d14db | 7e3ef8fb2b8b8e9ed8c97e8f24800b25ddb0e0e4 | refs/heads/master | 2022-12-12T08:58:45.335886 | 2019-05-23T13:55:31 | 2019-05-23T13:55:31 | 157,481,583 | 0 | 0 | null | 2022-12-07T16:55:12 | 2018-11-14T02:57:32 | Python | UTF-8 | Python | false | false | 3,050 | py | #imports
import os
import re
#constants
U_LIMIT=2**31-1
L_LIMIR=
#globals
array=[]
ptr=0
output=[]
program_input=None
program_end=None
program_curr=0
program_queue=[]
labels=[]
#actions
def inc_ptr():
global ptr
ptr+=1
def dec_ptr():
global ptr
ptr-=1
def inc_val():
global array, ptr
array[ptr]+... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
6a22e0238dfb468ecb949b22aeb2349262dd831b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03131/s000771863.py | 8668da55c3cc2ee6f88d381b2ec9802116ba47a4 | [] | 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 | 158 | py | k, a, b = map(int, input().split())
k += 1
cnt = k - (a + 2)
if b - a > 2 and cnt >= 0:
ans = b + (b - a)*(cnt//2) + cnt%2
else:
ans = k
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5c7cd1115c351c320e15d99541ac0240cba86f7c | e05e2d26e38ce80530e3458ce3c8e02f16e5cbe6 | /lineupSolver/hgg_utils.py | df1973f7dbf027925752e95d11ade66578d74172 | [] | no_license | jegutman/hearthstone_decks | 96acca7e040cb9b89253a867217655ce8cdf2756 | 95d4563c46618a9efccc10dbb34094258ec5bce7 | refs/heads/master | 2020-12-25T08:16:29.892068 | 2019-09-12T05:28:16 | 2019-09-12T05:28:16 | 102,289,609 | 3 | 0 | null | 2018-07-06T22:35:17 | 2017-09-03T19:40:44 | Python | UTF-8 | Python | false | false | 592 | py | from shared_utils import *
import itertools
def win_rate(decks_a, decks_b, win_pcts):
res = pre_ban(decks_a, decks_b, win_pcts)
return max(res.items(), key=lambda x:x[1])
def ban_3(decks_a, decks_b, pool_a, pool_b):
pass
def eval_final(decks_a, decks_b, win_pcts):
total = 0.0
count = 0
for i... | [
"jegutman@gmail.com"
] | jegutman@gmail.com |
a5fb09f4f7833e98334246ceb17539ae69a8f4c2 | 4e0ee2b68398a90b0986975f645350033a624558 | /tests/matrix_max_pool/test_matrix_max_pool_int32_ksize3_stride2.py | 13a7ba6069274a887c3654845037af058cd82eb7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kindsenior/nngen | 697b80b32cf2b33e7f2c64e4d1a27eb2d739b30c | 301b19b35e50174d8abb1a757b061ae80cdfe612 | refs/heads/master | 2022-09-21T05:53:34.565461 | 2020-05-03T14:58:19 | 2020-05-03T14:58:19 | 269,007,213 | 0 | 0 | Apache-2.0 | 2020-06-03T06:26:43 | 2020-06-03T06:26:42 | null | UTF-8 | Python | false | false | 1,575 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__)))))
import nngen as ng
import veriloggen
import matrix_max_pool
act_... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
93d8412f681f10ada009580cefc61059e6a08c32 | eec267b544295bccb2ab88b13b221ff4fd3d2985 | /make_modem_files_mb.py | e94019279d97b74ecf5b501e528176b9cd526f87 | [] | no_license | ralfcam/sandbox_scripts | dda368dcf8b8d01147660dedc6d0fcae2d15f80c | 6fa53a63152c4a00396b38fb92ae7dc6f72d6b90 | refs/heads/master | 2022-05-29T02:02:24.849913 | 2020-05-01T02:23:57 | 2020-05-01T02:23:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 25 17:17:14 2016
@author: jpeacock
"""
import os
import numpy as np
import mtpy.modeling.modem_new as modem
#==============================================================================
# Inputs
#=======================================================================... | [
"peacock.jared@gmail.com"
] | peacock.jared@gmail.com |
a8199492a968b2afa9075d2895b94b6666e5c79c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_grounds.py | 40982bc7180957b50ce9931e6a9a1ed595b968cc | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from xai.brain.wordbase.nouns._ground import _GROUND
#calss header
class _GROUNDS(_GROUND, ):
def __init__(self,):
_GROUND.__init__(self)
self.name = "GROUNDS"
self.specie = 'nouns'
self.basic = "ground"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1d0f40f64c95416e26259a66b062c5d08eab2d0b | b8afaded9fbe51ad314d8320c2a1e940592bb881 | /tests/test_datetime.py | 72862ac8b3503c5e60156cdf00dd5b83155fe35f | [] | no_license | vrthra/pygram | 446be78f1ea04abc3f870a06dd276f67341422a8 | 9abb4451323286ea175b8a9865d406759e24d944 | refs/heads/master | 2021-01-23T21:13:32.356079 | 2017-10-19T15:41:34 | 2017-10-19T15:41:34 | 102,887,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | from datetime import datetime
import induce
import collections
import random
random.seed(0)
def test_dateparse1():
date_lines = '''
Jun 1 2005 1:33PM|%b %d %Y %I:%M%p
'''[1:-1]
grammar = '''
$START ::= $@._STRPTIME_DATETIME:DATA_STRING|$@._STRPTIME_DATETIME:FORMAT
$@._STRPTIME_DATETIME:DATA_STRING ::= $@._ST... | [
"rahul@gopinath.org"
] | rahul@gopinath.org |
4638c18e952fc2446bd4de96926b96eef2cfc2a4 | d13220bf42cfa12d9665b0528dce25e7a4fc4cea | /utils/audio_vad.py | 12f40e4788f40cf1c5b555f1856756cc05cadd34 | [
"Apache-2.0"
] | permissive | A-New-Eruption/PaddlePaddle-DeepSpeech | adcc89289ce6c07521cca2c5422ddf93475d3422 | af64690d1d68397fc36c1e8729febec58e3f93d7 | refs/heads/master | 2023-07-27T16:32:21.400661 | 2021-09-07T06:30:38 | 2021-09-07T06:30:38 | 404,183,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,433 | py | import collections
import contextlib
import os
import wave
import webrtcvad
def read_wave(path):
"""Reads a .wav file.
Takes the path, and returns (PCM audio data, sample rate).
"""
with contextlib.closing(wave.open(path, 'rb')) as wf:
num_channels = wf.getnchannels()
assert num_chann... | [
"yeyupiaoling@foxmail.com"
] | yeyupiaoling@foxmail.com |
1a6904656bf11790597dfac5833f734f952ea2ec | 95255a27a22d16cdb4a365b2794f8c95377e7e71 | /test_605/test_port_email/sendmail.py | 08f72218b15d691eee368d48979babb8c86a9b49 | [] | no_license | lijule168/python_test_web | 9cc23c42e9f1a0392466131234598c8805c0cf62 | 3e51e9e80e9778540c8cc1c799fed402f2469ae8 | refs/heads/master | 2023-06-04T14:49:45.533518 | 2021-06-12T08:05:51 | 2021-06-12T08:05:51 | 376,212,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
__author__ = 'YinJia'
import os,sys
from email.header import Header
from email.mime.text import MIMEText
import smtplib
from email.mime.image import MIMEImage
# 创建邮件对象
from email.mime.multipart import MIMEMultipart
def send_mail():
"""
定义发送邮件
:param file_... | [
"lijule168@163.com"
] | lijule168@163.com |
3d5236db92f103d7f581352ae6f8d1c5d3814368 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/databoxedge/v20200901preview/_inputs.py | e556e108de7dd74de2ec1f8e6ddebdf88b940650 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,814 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
a7ccc134996a08c62111b4fd7b2d59aa7e3fd93b | 11018bba25adeedeaa7304f58d90cac65d08a62a | /machine/admin.py | 9e7e27639e50637ed67c9a251dfa959a6db72bba | [] | no_license | chutchais/uerp | 642283053caf3c8758a8e192a8f3711bc4a9cfad | 40c46b97e03bf3eddd60fcb7729c6fe4bb9e8262 | refs/heads/master | 2021-06-18T10:02:34.635278 | 2019-12-10T16:28:07 | 2019-12-10T16:28:07 | 190,201,826 | 0 | 0 | null | 2021-06-10T21:34:54 | 2019-06-04T12:58:32 | Python | UTF-8 | Python | false | false | 1,248 | py | from django.contrib import admin
# Register your models here.
from .models import Machine
# For Export Data
from import_export import resources
from import_export.admin import ImportExportModelAdmin
from import_export.admin import ImportExportActionModelAdmin
class MachineResource(resources.ModelResource):
class M... | [
"chutchai.s@gmail.com"
] | chutchai.s@gmail.com |
8712953551e7804da775edb92104c7ee0724a8e7 | db57094349de63766daf70a2e6bdb06bf3af09cf | /Cap01_Elementos_sintaxe_especifica/04_Decorators/12_cache.py | 9b6a3038a1e07a57164e01e4e2b5bfb7f28c13af | [] | no_license | frclasso/turma1_Python_Modulo2_2019 | 2f9e9aebc48c1c0b92b684ad92958bc557866cde | 0b7f0fac0a1de4a2dbe4ff4fb2985fbfee89ed33 | refs/heads/master | 2020-04-17T19:36:07.545787 | 2019-06-10T15:29:10 | 2019-06-10T15:29:10 | 166,871,517 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #!/usr/bin/env python3
import functools
@functools.lru_cache(maxsize=4)
def fibonacci(num):
print(f'Calculating Fibonacci ({num})')
if num < 2:
return num
else:
return fibonacci(num -1) + fibonacci(num - 2)
fibonacci(10)
print('-' * 30)
fibonacci(5)
print('-' * 30)
fibonacci(8)
print('-... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
858b737d5f2cef784d1094d45bd7fc8f19c3b706 | b69b5f12893488fc42030075dae3e372c5a6998c | /examples/table.py | 8ee1e8e84297ad3f0d5b99c2769bbe70fd36086a | [
"MIT"
] | permissive | nunofernandes-plight/rich | 2d82c56caf5479c8965876e132fe1467cff61ca6 | fb1a69c923b192f7c380bd0f0cc18afd26b6a457 | refs/heads/master | 2023-03-08T15:20:09.260608 | 2020-06-19T15:55:40 | 2020-06-19T15:55:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | """
Demonstrates how to render a table.
"""
from rich.console import Console
from rich.measure import Measurement
from rich.table import Table
table = Table(title="Star Wars Movies")
table.add_column("Released", style="cyan", no_wrap=True)
table.add_column("Title", style="magenta")
table.add_column("Box Office", jus... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
b36c75d9e1784c67b96da46da181a616d596c556 | ce6ace34704e74c2a53e9b38b2630876d9cd52e2 | /mdias_addons/metro_park_dispatch/__manifest__.py | 28b8d336b73ab033aa45f2a1487f177e3b319ef9 | [] | no_license | rezaghanimi/main_mdias | e3cfd8033204d8e7e484041f506892621a3e3479 | 13b428a5c4ade6278e3e5e996ef10d9fb0fea4b9 | refs/heads/master | 2022-09-17T20:15:42.305452 | 2020-05-29T05:38:35 | 2020-05-29T05:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # -*- coding: utf-8 -*-
{
'name': "metro_park_dispatch",
'summary': """调度计划""",
'description': """
调度计划
""",
'author': "crax",
'website': "http://www.funenc.com",
'category': 'funenc',
'version': '1.0',
'depends': ['base',
'metro_park_base',
... | [
"619851623@qq.com"
] | 619851623@qq.com |
e31a40fbb8210e78bb9ead588471e7981c5bd9cd | b08f5367ffd3bdd1463de2ddc05d34cbfba6796e | /strings/phone_mnemonic.py | 700b4ece14b9ed54b3e6c4d92187d8d6a7fcffc1 | [] | no_license | uohzxela/fundamentals | cb611fa6c820dc8643a43fd045efe96bc43ba4ed | 6bbbd489c3854fa4bf2fe73e1a2dfb2efe4aeb94 | refs/heads/master | 2020-04-04T03:56:44.145222 | 2018-04-05T01:08:14 | 2018-04-05T01:08:14 | 54,199,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | MAPPING = ["0", "1", "ABC", "DEF", "GHI", "JKL", "MNO", "PQRS", "TUV", "WXYZ"]
def phone_mnemonic(num):
mnemonics = []
phone_mnemonic_(num, [], mnemonics, 0)
return mnemonics
def phone_mnemonic_(num, s, mnemonics, i):
if i > len(num)-1:
mnemonics.append("".join(s))
return
for c in MAPPING[int(num[i])]:
s.a... | [
"uohzxela@gmail.com"
] | uohzxela@gmail.com |
15e0689fe558ef7c0caad30b2a25b0a4b07d0e45 | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /tests/unit/cfngin/lookups/handlers/test_dynamodb.py | b55962260cd0ea49c8302cf2b651cd55e9a24b40 | [
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 8,117 | py | """Tests for runway.cfngin.lookups.handlers.dynamodb."""
import unittest
import boto3
import mock
from botocore.stub import Stubber
from runway.cfngin.lookups.handlers.dynamodb import DynamodbLookup
from ...factories import SessionStub
class TestDynamoDBHandler(unittest.TestCase):
"""Tests for runway.cfngin.lo... | [
"noreply@github.com"
] | troyready.noreply@github.com |
2dc95df2e797765d4a74f94921ccecf535ec32ca | ba4b9a3cd48fe8a7b8b9b0629b5cb634baff7a28 | /graab/althws/make_hwextra.py | f1c3ab1645e0ca9709385267b7fcd86d7d2636b2 | [] | no_license | sanskrit-lexicon/GRA | 20ad9a58beb1a9fa468430ba22e8a6d35ff6ee39 | 351770fa27584baa41eb9b1b9d8e6feff4f48e08 | refs/heads/master | 2023-07-24T19:47:10.940559 | 2023-07-12T02:04:07 | 2023-07-12T02:04:07 | 24,602,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #-*- coding:utf-8 -*-
""" make_hwextra.py
"""
from __future__ import print_function
import sys,re,codecs
def read_lines(filein):
with codecs.open(filein,encoding='utf-8',mode='r') as f:
lines = [x.rstrip('\r\n') for x in f]
return lines
def extract(lines):
# non-comment
ans = [line for line in lines if not li... | [
"funderburkjim@gmail.com"
] | funderburkjim@gmail.com |
deb58fcdf5c224f6b93267f1ee17552ef63e31ee | d79008636318dd2102aa7090dcc68f0d942eb5cd | /web_211_dev_7962/wsgi.py | 7fbf9707ed93e8acdd31377c7ba2d19eb40e5473 | [] | no_license | crowdbotics-apps/web-211-dev-7962 | 793c12e2535330eafd8a6fe6d93b30a79a050efa | 821e0f8e5e4f86346a7fcea1338efa5305742218 | refs/heads/master | 2022-11-19T11:55:26.451292 | 2020-07-21T14:48:42 | 2020-07-21T14:48:42 | 281,425,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for web_211_dev_7962 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2839d1bd39f40c643d5b2b1ee5904be4dcadd121 | a1396f6c7cd2cbcf9e6babc3e94385ba287494a3 | /103_Core_Windows_Controls/ListCtrl/ListCtrl_edit.py | 630f8122524a304440b8972803ccae026f67f4c3 | [] | no_license | Willianjesusdasilva/wxPython-Sample-Apps-and-Demos | 0397c2588ab022dec6fcb9687fd71d7515ae834c | 3832731e6110503946119d81a53e25c631ba1aa0 | refs/heads/master | 2020-11-25T10:47:40.267775 | 2018-11-12T02:49:19 | 2018-11-12T02:49:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,156 | py | #!/usr/bin/env python
#------------------------------------------------------------------------------
# Name: ListCtrl_edit.py
# Purpose: Testing editing a ListCtrl
#
# Author: Pim van Heuven
#
# Created: 2004/10/15
# Copyright: (c) Pim Van Heuven
# Licence: wxWindows license
#---------... | [
"metaliobovinus@gmail.com"
] | metaliobovinus@gmail.com |
cf6c19f2a54235a0249b96665c485042ca4962f8 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/eqpt/ingrbyteshist1h.py | e19a8654f2aa99cf3083620d25c31499ae16b4ca | [] | 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 | 39,252 | 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 |
3d6a3e400d7e9fa69f13e5a982bb15f229bc44aa | 868ac4e558cf5fe945e8b557564f34f79b3ad01e | /purity_fb/purity_fb_1dot10/models/certificate_use.py | ef795b6e31a836d0cf33cb739fc6da02cd1a4a16 | [
"Apache-2.0"
] | permissive | mabdelhafez/purity_fb_python_client | f4253ce8497fb3cff648e0a0cd1e567f48129fa7 | a9856875b3df43b4302a2e4addd1a6b71f51f5ce | refs/heads/master | 2022-04-20T09:24:22.031408 | 2020-04-20T22:11:32 | 2020-04-20T22:15:44 | 257,372,596 | 0 | 0 | NOASSERTION | 2020-04-20T18:40:24 | 2020-04-20T18:40:23 | null | UTF-8 | Python | false | false | 5,707 | py | # coding: utf-8
"""
Pure Storage FlashBlade REST 1.10 Python SDK
Pure Storage FlashBlade REST 1.10 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.10
Contact... | [
"mabdelhafez@purestorage.com"
] | mabdelhafez@purestorage.com |
d5a4a9a40ed00f53dabd6e7f356e493e89980ded | 2e1d4accc82624346a8289f9714900478b0768f1 | /src/word_recog_multicpu.py | 35e65493f3c3775bcb6a7c6b61885df1681c9d9e | [
"MIT"
] | permissive | justrypython/utils | 2bd1759508369d7e24972b0e17ae29568469e06c | bb02520599b7faa1d9bae6bc4a718d27404014cb | refs/heads/master | 2021-05-05T10:49:21.343208 | 2019-02-24T03:38:25 | 2019-02-24T03:38:25 | 118,086,466 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,627 | py | #encoding:UTF-8
#!/usr/bin/python
#author:justry
import os
import json
import time
import string
import pickle
import numpy as np
import multiprocessing
from ks_nature_scene_ocr.line_recog.infer import line_recog_v1
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
class ProccessEnqueuer(object):
def __init__(self,... | [
"kerzhao@163.com"
] | kerzhao@163.com |
37f8db8f1f65268ff40aa2c335b98ca8cabc398e | ecad2803537295a24fe8274f99dfb85ead3a7191 | /debian/python-nova/usr/share/pyshared/nova/api/openstack/compute/contrib/certificates.py | ccc6b84a2e068efc591300677513ae183a16f0ba | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/stacklab-nova | 98400585ec3b4e3e94269dcb41578fffe7e2c8c1 | 4ab1698659b663ef222255610d1a5c042706dd65 | refs/heads/master | 2022-11-20T12:07:18.250829 | 2012-12-13T04:43:00 | 2012-12-13T04:43:00 | 282,166,345 | 0 | 0 | Apache-2.0 | 2020-07-24T08:31:57 | 2020-07-24T08:31:56 | null | UTF-8 | Python | false | false | 3,687 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 OpenStack, 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... | [
"yuanotes@gmail.com"
] | yuanotes@gmail.com |
0e8cbf4990d45df52eb06fdb810405930a294b04 | 12e7851ecd977c465858a582d666182644b42d66 | /kansha/services/search/query.py | 4908315eb38d79ded8944534f5e71d408fa2df77 | [] | no_license | ygravrand/kansha | 779bef17594a65fa8d06c3ac9be72bb02714eaa7 | 7d730673c703af0fc1d4c6f66ce6121935c4e4cd | refs/heads/master | 2020-12-07T13:40:43.751706 | 2015-05-21T12:52:40 | 2015-05-21T12:52:40 | 36,468,137 | 1 | 0 | null | 2015-05-28T21:50:00 | 2015-05-28T21:50:00 | null | UTF-8 | Python | false | false | 2,346 | py | # -*- coding:utf-8 -*-
#--
# Copyright (c) 2012-2014 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
#--
"""
Abstract Query expressions.
Queries are not tied to a search engine. The... | [
"romuald.texier-marcade@net-ng.com"
] | romuald.texier-marcade@net-ng.com |
c419efd5cfdea2413ac5bc3bab1a23a44bf61990 | db7aac75e31d35c4a18c966170b46f269d015d0b | /webgl_canvas_gadget/apps/projects/migrations/0047_auto_20161112_2310.py | bd0a197db66a1909c846e069b9c7d1d1bd13e2a7 | [] | no_license | jjpastprojects/Django | 12fbf3cf27a9230db98a21cc1013216aeadaae1e | c55562be7226f29b4ec213f8f018b6c2dd50c420 | refs/heads/master | 2022-12-12T22:15:49.493289 | 2017-09-05T12:51:20 | 2017-09-05T12:51:20 | 101,995,798 | 0 | 0 | null | 2022-12-07T23:21:46 | 2017-08-31T11:55:00 | JavaScript | UTF-8 | Python | false | false | 955 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-11-12 17:10
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('canvas_gadget', '0011_remove_projectrequest_project'),
... | [
"sam.noreaksey@outlook.com"
] | sam.noreaksey@outlook.com |
7830caca92fc5cd3b9edce6172d1ef00bd8972ae | 60b3d133f54921b86baf6ff3b44e97d3683bb77e | /script_bunch.py | 3868df17720f6a2258038d67b067d0a832bab949 | [
"MIT"
] | permissive | tgquintela/CooperativeGames | 0f1b9f0ca83cb406357d7de930a763f9a6470dff | 7803164281ffc1dbaae70028f448f0250d60fab3 | refs/heads/master | 2020-05-27T02:49:44.281530 | 2019-04-25T18:11:37 | 2019-04-25T18:11:37 | 29,885,456 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py |
"""
TODO
----
ignore zeros
"""
import pandas as pd
import numpy as np
from cooperativegames import shapley_index, banzhaf_index
def parse_csv(path, win_thrs, outpath=None):
"""Parse csv of some elections results.
Parameters
----------
path: str
the path of the file to read.
win_thrs: f... | [
"tgq.spm@gmail.com"
] | tgq.spm@gmail.com |
d114d8fada6b551d0d8fda374b0020ace3195d2f | 1a5a9bfa6ee62c328fc6ab828ad743c555b0f23a | /ch09/0840-range-sum-query-mutable.py | b04b8ad4d13bf7cda8444987c52c5a1e326af676 | [] | no_license | zzy1120716/my-nine-chapter | 04b3e4d43a0d8086e5c958b81a3dc4356622d65f | c7bf3eed366b91d6bdebb79d0f11680cf7c18344 | refs/heads/master | 2020-03-30T03:07:14.748145 | 2019-05-15T13:07:44 | 2019-05-15T13:07:44 | 150,670,072 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | """
840. 可变范围求和
Given an integer array nums, find the sum of the elements between
indices i and j (i ≤ j), inclusive.
The update(i, val) function modifies nums by updating the element
at index i to val.
样例
Given nums = [1, 3, 5]
sumRange(0, 2) -> 9
update(1, 2)
sumRange(0, 2) -> 8
注意事项
1.The array is only modifiable... | [
"zzy1120716@126.com"
] | zzy1120716@126.com |
83021874c3ae42216bb83de406555543d2632bf5 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/parental_status_type.py | 9e55440d04d99da659e21c4c9aa4c070fd8d946f | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | 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 or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
f4fbe95c3d13cd63e44e7914c4f04758621bf188 | 2306ffd77011cbdae2465bb79c41ebafe513a8e2 | /chapter-four/absolute_difference.py | 27e42a9f6b3ebdcc999aa4cd44f50e83cf3b96fd | [] | no_license | JasoSalgado/algorithms-with-python | 7cda9fb8d11a35b65eca0a1249be14170467c30e | e4036c704a2708134cc79eb0ec7e788def518022 | refs/heads/master | 2023-03-01T21:28:33.947784 | 2021-02-08T15:47:08 | 2021-02-08T15:47:08 | 333,567,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | """
Absolute difference
"""
from random import randrange
seq = [randrange(10**10) for i in range(100)]
dd = float('inf')
for x in seq:
for y in seq:
if x == y: continue
d = abs(x-y)
if d < dd:
xx, yy, dd = x, y, d
print(xx, yy)
| [
"jaso_98@hotmail.com"
] | jaso_98@hotmail.com |
4de9aae7291d3761cc03fd5ee787136acceae7f3 | e0c378f27462cb00b656473cbe0b172886741818 | /src/flash/graph/classification/input_transform.py | 66a0134f00c1a2058caa490f50c0823cba5b9ff9 | [
"Apache-2.0"
] | permissive | Lightning-Universe/lightning-flash | d0c955d7fdf962175750d154b3a369a483b8d188 | fc6c97a43d65b49561c896bf05bc1c75536d0dc0 | refs/heads/master | 2023-08-17T12:03:52.563905 | 2023-08-14T12:35:10 | 2023-08-14T12:35:10 | 333,857,397 | 58 | 12 | Apache-2.0 | 2023-09-11T14:43:06 | 2021-01-28T18:47:16 | Python | UTF-8 | Python | false | false | 1,716 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | Lightning-Universe.noreply@github.com |
062641509c378be9747a7622bf8eaf3b4b5ed1be | b6d8049568e8068422bc4ac2b957972dc1ee0ab7 | /ui_extensions/new_relic/new_relic_scripts.py | cb8102b83ef12267f518a64cefa694bc003b87f8 | [
"Apache-2.0"
] | permissive | CloudBoltSoftware/cloudbolt-forge | a6dffd52bd074ad48a61527502fcddf8113508ff | a5584a84841be49bea69df506a91d18cb3f215d8 | refs/heads/master | 2023-08-11T08:08:07.730807 | 2023-08-10T11:40:07 | 2023-08-10T11:40:07 | 39,207,603 | 37 | 44 | Apache-2.0 | 2023-09-14T20:06:44 | 2015-07-16T16:18:02 | Python | UTF-8 | Python | false | false | 1,821 | py | DOWNLOAD_NEW_RELIC_AGENT_FOR_WINDOWS = r"""
$WebClient = New-Object System.Net.WebClient
$Is64Bit = [Environment]::Is64BitProcess
if($Is64Bit -eq 'True') {
$URL = "https://download.newrelic.com/infrastructure_agent/windows/newrelic-infra.msi"
}else{
$URL = "https://download.newrelic.com/infrastructure_agent/wi... | [
"klaratta@cloudboltsoftware.com"
] | klaratta@cloudboltsoftware.com |
15ff5dfcceee838c32cbd0ebb64dc8eb3984b97e | 31596558d227ca10911a776023aeef1a7eb0d2c9 | /Other groups/ShowY/Yesterday wo Utatte [BD]/yesterday_04.py | b71e169de399f09ae69a51ec4665caa0e4f2f692 | [
"MIT"
] | permissive | Ichunjo/encode-scripts | 914a113093670f7d07e652ef50f6f04d09cc58b1 | 389a9f497e637eaade6f99acee816636856961d4 | refs/heads/master | 2022-05-03T00:48:54.543905 | 2022-03-17T17:43:02 | 2022-03-17T17:43:02 | 220,536,158 | 45 | 8 | null | 2019-11-08T21:25:59 | 2019-11-08T19:41:14 | Python | UTF-8 | Python | false | false | 5,077 | py | """Yesterday wo Utatte script"""
__author__ = 'Vardë'
import sys
import os
import subprocess
from typing import NamedTuple
from pathlib import Path
from acsuite import eztrim
import debandshit as dbs
import vardefunc as vdf
import mvsfunc as mvf
import G41Fun as gf
import xvs
from vsutil import depth, get_y
import l... | [
"ichunjo.le.terrible@gmail.com"
] | ichunjo.le.terrible@gmail.com |
89e289efe918514b9ae4ff6b0b6f552ed19b4f21 | 28bf7793cde66074ac6cbe2c76df92bd4803dab9 | /answers/Aryan Goyal/Day 8/Que 2.py | 89aa0b417a0c22c0c2037dc73bbf618d039b1145 | [
"MIT"
] | permissive | Codechef-SRM-NCR-Chapter/30-DaysOfCode-March-2021 | 2dee33e057ba22092795a6ecc6686a9d31607c9d | 66c7d85025481074c93cfda7853b145c88a30da4 | refs/heads/main | 2023-05-29T10:33:31.795738 | 2021-06-10T14:57:30 | 2021-06-10T14:57:30 | 348,153,476 | 22 | 135 | MIT | 2021-06-10T14:57:31 | 2021-03-15T23:37:26 | Java | UTF-8 | Python | false | false | 195 | py | class Solution:
def arrayPairSum(self, nums: List[int]) -> int:
l=[]
s1=0
nums.sort()
for i in range(0,len(nums),2):
s1+=nums[i]
return s1
| [
"noreply@github.com"
] | Codechef-SRM-NCR-Chapter.noreply@github.com |
4a793fbb4f669dd49e6539027bc1d4cf5a9d7a8e | 77e6c998c3147356544023beaa709ad791fc70cf | /src/maggma/cli/distributed.py | e8b6b320e8fd84f02ca3db769c25fcdd7609156d | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-hdf5",
"BSD-2-Clause"
] | permissive | mkhorton/maggma | fbf63e1becaafa1af416f9264a69fc0938abc68f | 7eca4d56eb75b766dc9dd68ee4328f320c5cd8c4 | refs/heads/master | 2023-03-10T20:16:34.847068 | 2021-07-11T15:39:13 | 2021-07-11T15:39:13 | 94,479,730 | 0 | 0 | NOASSERTION | 2023-03-06T02:58:36 | 2017-06-15T21:19:55 | Python | UTF-8 | Python | false | false | 3,367 | py | #!/usr/bin/env python
# coding utf-8
import json
from asyncio import wait
from logging import getLogger
from socket import socket
from typing import List
from monty.json import jsanitize
from monty.serialization import MontyDecoder
from pynng import Pair1
from maggma.cli.multiprocessing import multi
from maggma.core... | [
"shyamd@lbl.gov"
] | shyamd@lbl.gov |
579442acfdddf18a20e59d10c0eedd78ff8ccac0 | d22cceed81c8d214c099eae91284c1da9724cbe0 | /docs/source/_themes/sphinx_rtd_theme/__init__.py | c8203c0d6cbdfa15e0283f9005990d1c603a1adc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | trbritt/uedinst | dff71674b1c8d8d5de5f484c0c4f6048b01814a6 | e9fe1379b762be97b31ffab86a2cb149cb6291da | refs/heads/master | 2020-09-04T18:08:06.862955 | 2019-11-06T14:12:52 | 2019-11-06T14:12:52 | 219,844,588 | 0 | 0 | BSD-3-Clause | 2019-11-05T20:30:10 | 2019-11-05T20:30:10 | null | UTF-8 | Python | false | false | 326 | py | """Sphinx ReadTheDocs theme.
From https://github.com/ryan-roemer/sphinx-bootstrap-theme.
"""
import os
__version__ = "0.2.5b1"
__version_full__ = __version__
def get_html_theme_path():
"""Return list of HTML theme paths."""
cur_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
return cu... | [
"laurent.decotret@outlook.com"
] | laurent.decotret@outlook.com |
664da15456dc398e5011ebc07d63848995a707a4 | ffa6a9ef1a8ad9940fa59f8ac206e334e8f1f821 | /Variables.py | f461e9f35b9f0a48007a539c5aa2291918fde936 | [] | no_license | CodeKul/Python-Dec-2018-CrashCourse | 11a7f7bb3d237418c913bf56d57c0517bf597a52 | c7cb749e3b42ef273e5c2dfd4c1e90e67302cf91 | refs/heads/master | 2020-04-08T18:51:26.588806 | 2018-12-11T08:17:39 | 2018-12-11T08:17:39 | 159,628,027 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # Hello World program in Python
# single line comment
"""
This is
Multiline
comment
"""
var = 10
var = "Codekul"
var = 'Codekul'
var = '''"'Codekul'"
The "Gurukul" for Coders!'''
print(var)
x = 20
print(x)
a = 10
b = 20
d = 10.20
c = a + b
CONST = 100
print(CONST)
print(c)
c = a + d
print(c)
e = Fal... | [
"varun.kudalkar@gmail.com"
] | varun.kudalkar@gmail.com |
f9462b1da221a0506eb9799f426f1ef4ff8baf38 | 2fa015412becfd85d2271324a67272dee94b926f | /src/panoramic/cli/husky/core/tel/result.py | a467e5f62a7b92145947129e16fd78696f0b5ffd | [
"MIT"
] | permissive | panoramichq/panoramic-cli | f12219e045948412800abf81c5125a0f4c331621 | 210f037280793d5cb3b6d9d3e7ba3e22ca9b8bbc | refs/heads/master | 2023-03-15T02:31:49.775703 | 2021-03-16T18:48:51 | 2021-03-16T18:48:51 | 285,609,917 | 5 | 3 | MIT | 2021-03-16T18:48:52 | 2020-08-06T15:45:12 | Python | UTF-8 | Python | false | false | 13,873 | py | from typing import Any, Dict, List, Optional, Set
from snowflake.sqlalchemy.snowdialect import SnowflakeDialect
from sqlalchemy import literal_column, null
from sqlalchemy.engine import default
from sqlalchemy.sql import ClauseElement
from panoramic.cli.husky.core.sql_alchemy_util import compile_query, safe_identifie... | [
"noreply@github.com"
] | panoramichq.noreply@github.com |
f93a14f288c6c86112d878ba8e1d0cc980d9fd38 | 582ffc028085cacb1d69315889e611fb31a23f98 | /ch12-email/asgi.py | 96e6251f9fa02a55db958c6ec9fd6a2b2b219375 | [
"MIT"
] | permissive | balazskiss1985/djangoforbeginners | af04e0d441414e777b952325fdf62339e1b4c2c8 | 827b1b11592e851a6c4948d849ae8815f9c138c7 | refs/heads/master | 2022-12-05T13:48:01.648379 | 2020-08-24T14:09:02 | 2020-08-24T14:09:02 | 289,945,354 | 0 | 0 | MIT | 2020-08-24T14:07:22 | 2020-08-24T14:07:21 | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for config project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"will@wsvincent.com"
] | will@wsvincent.com |
f4959fac9ebfc93072011072921aa0b6962c2d84 | 69698589b1962608cb0fa6099aeafd8eb263ddc4 | /降维/SVD分解和特征值分解/餐馆菜肴推荐_推荐未尝过的菜肴.py | 3672766fd24191464b0057634b1e9260ab6aaf09 | [] | no_license | haibiyu/Machine-Learning-Action | de7e18aeb31c48340566d1ab4550d4864094b409 | 3ff16b6881393c1230f5c06dba632651e5d444e0 | refs/heads/master | 2022-07-01T13:47:15.923282 | 2020-05-11T09:49:44 | 2020-05-11T09:49:44 | 259,905,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,138 | py | # !/usr/bin/env python
# -*-coding:utf-8 -*-
"""
# File : 餐馆菜肴推荐_推荐未尝过的菜肴.py
# Time :2020/3/18 16:04
# Author :Yan You Fei
# version :python 3.6
# Description:能够寻找用户没有尝过的菜肴,然后通过SVD减少特征空间并提高推荐的效果
"""
import numpy as np
def loadExData():
return [[1, 1, 0, 2, 2],
[0, 0, 0, 3, 3],... | [
"haibiyu@163.com"
] | haibiyu@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.