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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61eff0a727bdd3045b71d675425dd7569b9382d9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/1343.py | a7bc0214962bdf300c3bac3924b2cfec686b73dc | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | import sys
from heapq import *
sys.stdin = open('input.in', 'r')
sys.stdout = open('output.txt', 'w')
for _ in xrange(1,input()+1):
print 'Case #' + str(_) + ':',
n, k = map(int,raw_input().split())
a = []
heappush(a,-n)
l,r = n,n
for i in xrange(k):
j = abs(heappop(a))
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a1fc9c3fe30dee377eaf83e5c8771168f84b9106 | 836c40808b7d03342eee186345f49864262482c6 | /tests/test_pytorch_sparse_grad_adj_matching.py | c376094ce65345e1505f626218c5806eccd909f8 | [
"MIT"
] | permissive | rubenstern/torchkbnufft | 858de59f78d71d8d16f4e0ce71316a840a4323b1 | 497bf1914996f3c9436c223267f0cecc60561aa6 | refs/heads/master | 2020-09-20T14:31:28.156663 | 2019-11-23T00:43:56 | 2019-11-23T00:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,188 | py | import sys
import numpy as np
import torch
from torchkbnufft import (AdjKbNufft, AdjMriSenseNufft, KbInterpBack,
KbInterpForw, KbNufft, MriSenseNufft)
from torchkbnufft.nufft.sparse_interp_mat import precomp_sparse_mats
norm_tol = 1e-9
devices = [torch.device('cuda'), torch.device('cpu')]
... | [
"matt.muckley@gmail.com"
] | matt.muckley@gmail.com |
f4842eff580a5743f9baaff5e6394874ef46b8d8 | 7cd60f2dff31715dda5b972355d9f70e1e696d34 | /docs/conf.py | 029ae00cb76562b199d9550cd83af86c738ce666 | [
"Apache-2.0"
] | permissive | huangweiboy2/kompute | bfd7191497f265663159ab3faa119fa227112838 | 99be70a1f5aa6dec4225b57c56268d3437b7ffe9 | refs/heads/master | 2023-07-25T18:01:14.600840 | 2021-09-01T05:50:27 | 2021-09-01T05:50:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
... | [
"axsauze@gmail.com"
] | axsauze@gmail.com |
4eab7b76a47390fc5595358083005f5c66941d16 | 21a92e72448715510d509ab0ec07af37f388013a | /canReach.py | 3258b4a9798bd97902ddb6c537400756204c7796 | [] | no_license | chlee1252/dailyLeetCode | 9758ad5a74997672129c91fb78ecc00092e1cf2a | 71b9e3d82d4fbb58e8c86f60f3741db6691bf2f3 | refs/heads/master | 2023-01-22T02:40:55.779267 | 2020-12-03T15:01:07 | 2020-12-03T15:01:07 | 265,159,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | from typing import List
class Solution:
def canReach(self, arr: List[int], start: int) -> bool:
n = len(arr)
q = [start]
while q:
node = q.pop(0)
# check if reach zero
if arr[node] == 0:
return True
if arr[node] < 0:
... | [
"chlee1252@gmail.com"
] | chlee1252@gmail.com |
c74528038cbad454e6499ce7e1cb337dbe677fbe | c8098e3907f39210ac159cf78f66cd871440fc10 | /vagrant/lesson 4/exercise 3.py | 2004a1268b8307f43133004d0d1ad4878a9318e0 | [] | no_license | jaapdejong/fullstack-nanodegree-vm--ud088 | e297dbc421d19df61499a16ae87ca572426228df | ba383a9ab7a315279e4acd0425bbca1e25ba943a | refs/heads/master | 2021-06-11T23:14:37.669565 | 2017-01-22T11:59:55 | 2017-01-22T11:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | #!/usr/bin/python
from flask import Flask, render_template, url_for
app = Flask(__name__)
#Fake Restaurants
restaurant = {'name': 'The CRUDdy Crab', 'id': '1'}
restaurants = [] #[{'name': 'The CRUDdy Crab', 'id': '1'}, {'name':'Blue Burgers', 'id':'2'},{'name':'Taco Hut', 'id':'3'}]
#Fake Menu Items
items = [ {'n... | [
"jaap.dejong@nedap.com"
] | jaap.dejong@nedap.com |
1ec605f1bba5b748397582f13a7ab15fca3a1369 | 730a0291d90bf220d162791287e422bc4225d164 | /samples/Marquee/LoadFirst.py | c29f1326248481262f948300b1b296f9a23eb512 | [
"BSD-3-Clause"
] | permissive | jon-jacky/PyModel | 27442d062e615bd0bf1bd16d86ae56cc4d3dc443 | 457ea284ea20703885f8e57fa5c1891051be9b03 | refs/heads/master | 2022-11-02T14:08:47.012661 | 2022-10-16T09:47:53 | 2022-10-16T09:47:53 | 2,034,133 | 75 | 36 | NOASSERTION | 2021-07-11T21:15:08 | 2011-07-12T04:23:02 | Python | UTF-8 | Python | false | false | 260 | py | """
Scenario control for Marquee, load once at the beginning then keep shifting
"""
from Marquee import Load, Shift
initial = 0
accepting = (0,1)
graph = ((0, (Load, (), None), 1), # empty args here, match any pattern
(1, (Shift, (), None), 1))
| [
"jon@u.washington.edu"
] | jon@u.washington.edu |
4d3f88619fbe693eb79eef77d51c5e47213cebba | ce0f8956c4c308c67bd700d31fe8d5a17b16ac08 | /Python3/src/23 Miscellaneous Topics/Documentation/Sphinx/mylib/package1/package2/ModuleC.py | 2916eb0b5f2d4d6e4d012dbbc6f01e4576f6edc2 | [] | no_license | seddon-software/python3 | 795ae8d22a172eea074b71d6cd49d79e388d8cc6 | d5e6db1509a25c1a3040d5ae82d757539a2ff730 | refs/heads/master | 2021-07-10T15:48:31.893757 | 2020-07-16T20:29:22 | 2020-07-16T20:29:22 | 175,872,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | ############################################################
#
# ModuleC
#
############################################################
'''This is ModuleC'''
class C:
'''class A contains 3 methods'''
def f(self):
print("this is C.f() ...")
def g(self):
print("this is C.g() ..... | [
"seddon-software@keme.co.uk"
] | seddon-software@keme.co.uk |
76d1a5199100476afef392607907e21bec946007 | 6f184ea6e9eab1cdb4eeb8ffcee96cfd15dda09a | /portfolio/migrations/0001_initial.py | f1a9fbda778aa0cf091b0c38e6da9ed2d8562544 | [] | no_license | FMularski/portfolio-page | 84d7e598b9059ea2b9bdb63e63128d023b082e62 | 0ae3b68bee1a2d9c59e96bb65554cc2b41b5298b | refs/heads/main | 2023-08-22T03:26:15.837780 | 2021-10-07T12:35:17 | 2021-10-07T12:35:17 | 406,893,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,873 | py | # Generated by Django 3.2.7 on 2021-09-15 19:04
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_m... | [
"mularskif@gmail.com"
] | mularskif@gmail.com |
140192a98e5687fa092f708786c5996346192fcb | 70d929497cbd70bb40ed939f3aa0ce56c3f7d816 | /pandas/core/indexes/range.pyi | c965a140a9ba2c9c0d2e1b0a20a25e89a2c35141 | [
"MIT"
] | permissive | matangover/python-type-stubs | abd4bc46f9841d0a2c44e1597055019d21f9ee70 | 15285c6b88dc684d9de9bfdaf8b72d4eb7c3e257 | refs/heads/main | 2023-07-13T04:19:03.481222 | 2021-08-05T20:26:18 | 2021-08-05T20:26:18 | 399,435,272 | 0 | 0 | MIT | 2021-08-24T11:11:57 | 2021-08-24T11:11:56 | null | UTF-8 | Python | false | false | 1,869 | pyi | import numpy as np
from pandas.core.indexes.numeric import Int64Index as Int64Index
from typing import Union
class RangeIndex(Int64Index):
def __new__(cls, start: Union[int, RangeIndex] = ..., stop: int = ..., step: int = ..., dtype = ..., copy: bool = ..., name = ...): ...
def __init__(self, start: Union[int,... | [
"gram@geekraver.com"
] | gram@geekraver.com |
b5491af1fd7b3fb78b4f2ccb2f18c91d00d8a691 | 04a6eb4f70f78da7f40954f4d0120c3f01c160f6 | /engine/crypt.py | 1bae56d29dd262f1e42777b408f503c73e465785 | [
"MIT"
] | permissive | pitzer42/micro-tcg | 52417dd040ea708611c0ec01e41250a2608fc083 | eec416fb3b7b992a206ab900f3d85d172f494103 | refs/heads/master | 2021-06-23T02:16:39.892066 | 2019-08-04T23:14:09 | 2019-08-04T23:14:09 | 189,917,723 | 0 | 1 | MIT | 2021-02-26T02:30:58 | 2019-06-03T01:56:31 | Python | UTF-8 | Python | false | false | 279 | py | import bcrypt
def encrypt(value) -> bytes:
encoded = str(value).encode()
salt = bcrypt.gensalt()
return bcrypt.hashpw(encoded, salt)
def equals_to_encrypted(value, encrypted_value):
value = str(value).encode()
return bcrypt.checkpw(value, encrypted_value) | [
"arthurpitzer@id.uff.br"
] | arthurpitzer@id.uff.br |
5cfe8928f8c3caeb98f738aeeabb4e523ee23be2 | 39ab7a24ebc303208538c789f92fe28d087888b5 | /examples/color_2.py | 508e801ae50d224cfe095a4ccad505510a2631e8 | [
"MIT"
] | permissive | BhosaleAkshay8055/tkinter-examples | 8818799ccbc8bce11d60e985ccd1e519ff06feb3 | 5f6b0f1aa4d5f3e892ab968b2572cd54797f5acb | refs/heads/master | 2023-07-23T23:45:00.450296 | 2021-08-28T14:42:41 | 2021-08-28T14:42:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from tkinter import *
import colorsys
#操作后的响应函数
def update(*args):
'color'
r, g, b = colorsys.hls_to_rgb(h.get() / 255.0,
l.get() / 255.0,
s.get() / 255.0)
r, g, b = r * 255, g * 255, b * 255
rgb.configure(text='RGB:(%d, %d, %d)' % (r... | [
"doudoudzj@sina.com"
] | doudoudzj@sina.com |
39fb4f9c182c34a47d05680f07cfc7b45e9f23a2 | 87495f876501ec67a6ca7bf6da925e5e34f9959b | /src/posts/urls.py | baa3305c2f17c5fa8b6c3f7a7a254b96d704cde4 | [] | no_license | kishanpython/Blog | bfc9923f773a6126413ee6c3565e78a8bb2bcdd9 | 8fa8ae36288924091489d010a01d77e2e8b25846 | refs/heads/master | 2022-10-28T19:22:12.200245 | 2019-08-30T14:57:33 | 2019-08-30T14:57:33 | 205,371,585 | 1 | 1 | null | 2022-10-13T14:40:53 | 2019-08-30T11:46:33 | Python | UTF-8 | Python | false | false | 455 | py | from django.conf.urls import url
from django.contrib import admin
from .views import (
post_list,
post_create,
post_detail,
post_delete,
post_update,
)
urlpatterns=[
url(r'^$',post_list,name="list"),
url(r'^create/$',post_create,name="post_create"),
url(r'^(?P<slug>[\w-]+)/$',post_detail,name="details"),
ur... | [
"kishanyadav3223@gmail.com"
] | kishanyadav3223@gmail.com |
534bd3b951100aab54db2c4ad8bdd4c4e611f898 | 892dd32ee0be7135cd33c875b06dcc66307dcc99 | /automation/NfsRegressionSuite/updateVolumeSize.py | b3b35f32cf74ae2b5ff0d49a48020aa3d2351ded | [] | no_license | cloudbytestorage/devops | 6d21ed0afd752bdde8cefa448d4433b435493ffa | b18193b08ba3d6538277ba48253c29d6a96b0b4a | refs/heads/master | 2020-05-29T08:48:34.489204 | 2018-01-03T09:28:53 | 2018-01-03T09:28:53 | 68,889,307 | 4 | 8 | null | 2017-11-30T08:11:39 | 2016-09-22T05:53:44 | Python | UTF-8 | Python | false | false | 3,467 | py | import sys
import json
import requests
from cbrequest import configFile
def sendrequest(url, querystring):
#print url+querystring
response = requests.get(
stdurl+querystring, verify=False
)
return(response);
def filesave(loglocation,permission,content):
f=open(loglocation,permission)
f.w... | [
"karthik.s@cloudbyte.com"
] | karthik.s@cloudbyte.com |
cc62884e95f34d7d6f1d6118b45ae74968c6111a | a1ad2715e306fd4e7eaeda5348e00e1a363e7884 | /leetcode/gcdexample.py | 7d712499a5994b744bf55b3887b44e64925bbdd0 | [] | no_license | MayankMaheshwar/DS-and-Algo-solving | cef54a800b3e8a070a707f97b4f30fccaa17d5c6 | ac6ea8f880920242a55d40c747368d68cb6f7534 | refs/heads/master | 2022-12-07T07:55:08.380505 | 2022-12-05T09:32:14 | 2022-12-05T09:32:14 | 237,103,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from fractions import gcd
class Solution:
def hasGroupsSizeX(self, deck: List[int]) -> bool:
from fractions import gcd
vals = collections.Counter(deck).values()
return reduce(gcd, vals) >= 2
| [
"mayank.maheshwari625@gmail.com"
] | mayank.maheshwari625@gmail.com |
2b608ec238727ce2e320bcf966296a21ebf178c2 | f3693916a8b118bf139364604dac3f51235ed613 | /functional/Components/PathfinderEdgeGlobalConfiguration/PathfinderEdgeGlobalConfiguration_PATCH/test_TC_45523_1_PathfinderEdgeGlobalConfiguration_PATCH_Ve_Global_Config_Http_Del_Service_Protocol.py | ead16d4900514254b85485f72292ab01be5ea4e8 | [] | no_license | muktabehera/QE | e7d62284889d8241d22506f6ee20547f1cfe6db1 | 3fedde591568e35f7b80c5bf6cd6732f8eeab4f8 | refs/heads/master | 2021-03-31T02:19:15.369562 | 2018-03-13T02:45:10 | 2018-03-13T02:45:10 | 124,984,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,039 | py | # -*- coding: UTF-8 -*-
"""PFE Component Tests - Pathfinder_Edge_Global_Configuration.
* TC-45523 - Pathfinder_Edge_Global_Configuration PATCH:
Verify that user is able to update deliveryServiceProtocol on providing value 'http' or 'https' for VideoEdge Global configuration using request PATCH /devices/veGlobalCon... | [
"mbehera@qumu.com"
] | mbehera@qumu.com |
760b9b06d8c0068515ee1bc885dab23ac8b7274b | 56d97e3841d189f2c35ef0cde8bfda63211dff68 | /python week 8/warmup-2/string_match.py | 4d36b6a4b037b46a332fc0118a951dfecb9ab018 | [] | no_license | NazerkeY/Web-Development | 651e8ececbe5ab007f956a98460f0e0430f08fe8 | 74f20c5caf7ec23532f088268b587308204d9c35 | refs/heads/master | 2023-01-14T00:44:27.986839 | 2020-04-28T19:53:02 | 2020-04-28T19:53:02 | 239,349,138 | 0 | 0 | null | 2023-01-07T23:00:37 | 2020-02-09T18:02:13 | Python | UTF-8 | Python | false | false | 183 | py | def string_match(a, b):
minimum = min(len(a), len(b))
cnt = 0
for i in range(minimum-1):
sub1 = a[i:i+2]
sub2 = b[i:i+2]
if sub1 == sub2:
cnt += 1
return cnt | [
"nazerke_5@inbox.ru"
] | nazerke_5@inbox.ru |
8403248c6a2e2ebc755e1842bf967230d0408d67 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_299/ch2_2020_03_09_13_07_35_099815.py | f6e67e7286b81e16b8fd986132364f7ff28abc65 | [] | 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 | 58 | py | def calcula_velocidade_media(d, t):
v=d/t
return v | [
"you@example.com"
] | you@example.com |
29b2604a8a5e97094790a80dee4e0c5e3ff4b240 | 1a7c3532b3052d5f1e8c31edd0b88bed990cb009 | /venv3.6/bin/odf2mht | 30a2e4b6b01166549a0e77d8064abf09636f1834 | [] | no_license | leolvcl/leo_typeidea | ac153303a2f348cd5fe1699328a44fcee253c41b | 664c807ed71bb08281a849e559fe30e3714d2c5b | refs/heads/master | 2020-07-13T00:03:00.391677 | 2019-09-22T15:01:35 | 2019-09-22T15:01:35 | 204,941,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | #!/home/leo/PycharmProjects/lvcl01/venv3.6/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2006 Søren Roug, European Environment Agency
#
# This is free software. You may redistribute it under the terms
# of the Apache license and the GNU General Public License Version
# 2 or at your option any later version.
#
# T... | [
"lvclleo@gmail.com"
] | lvclleo@gmail.com | |
66199c555c36a68d45b475c1abbfad7ada381d3e | cd99fe697ce43e30a64df9cc1df9470d1b0712ab | /jsuarez/MPIUtils.py | 4a16610e990af86131080a26abedf4b4dc18ac62 | [
"MIT"
] | permissive | openai/neural-mmo | ecde7382aa06123b9951cd78712e5eb1497204aa | 38fd0310bc784de9b86e5144d0e78f4d31005e6b | refs/heads/v1.0 | 2023-08-05T02:48:18.988444 | 2019-09-13T23:46:13 | 2019-09-13T23:46:13 | 173,154,826 | 1,607 | 203 | MIT | 2023-07-21T13:04:40 | 2019-02-28T17:17:24 | Python | UTF-8 | Python | false | false | 1,731 | py | #Author: Joseph Suarez
from pdb import set_trace as T
import sys, builtins
import numpy as np
from mpi4py import MPI
from mpi4py.MPI import COMM_WORLD as comm
MASTER = 0
SILENT = 1
ALL = 2
class LoadBalancer:
def __init__(self, cores):
self.nCores = len(cores)
self.cores = cores
self.loa... | [
"sealsuarez@gmail.com"
] | sealsuarez@gmail.com |
7d019dcab3011e74084bd792ba632e21097b60ca | 4e958672a47409ebafd41704a30de781450f60e5 | /Nitesh1/course/urls.py | f88842bedb8573e8b9048eb6f7ff13c9372cc0a3 | [] | no_license | Nitesh-Singh-5/Understanding-Django-from-scratch | 7f704a2c0101d1e4a535c61a447a4e3775539b52 | b941151bdc2bee555b590f90e4a4c17e2a83db96 | refs/heads/master | 2022-12-28T20:23:03.042537 | 2020-10-13T15:10:55 | 2020-10-13T15:10:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from django.urls import path
from . import views
urlpatterns = [
path('study/', views.study),
path('learn/', views.learn),
]
| [
"67116285+nitesh5801@users.noreply.github.com"
] | 67116285+nitesh5801@users.noreply.github.com |
c8dd955621c4f656e0f58b86490668e8db43da77 | 2287f1ae8a05e72f78c72108e1b2f8ffe9a151d2 | /scrapy/contrib/pipeline/fileexport.py | 6e2109d01895b2568eefcf730cffc0eeb46602b3 | [
"BSD-3-Clause"
] | permissive | trepca/scrapy | e0643f0542dda47fac23f8ea2ffbbf88845cae66 | bdb1ca13b86e199bcef5de55af4930ba54402db8 | refs/heads/master | 2021-01-21T01:39:30.044164 | 2010-08-24T00:28:32 | 2010-08-26T10:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | """
File Export Pipeline
See documentation in docs/topics/item-pipeline.rst
"""
from scrapy.xlib.pydispatch import dispatcher
from scrapy.core import signals
from scrapy.core.exceptions import NotConfigured
from scrapy.contrib import exporter
from scrapy.contrib.exporter import jsonlines
from scrapy.conf import setti... | [
"pablo@pablohoffman.com"
] | pablo@pablohoffman.com |
4291684abb0e2500240faba7b0d1b44d874f7a0c | dc1df09e627fd5155d4b4eae8915a40d94b2fcf3 | /code/script_testing_encoder_decoder.py | e0d5a7296c511011de28fb2892c676130d48005d | [] | no_license | menorashid/gross_pain | 0a2145e3b912f23788e22bc4eda6978a65e481fa | 2dbebc596a15e54fb3af0cfca2185f901e78a72d | refs/heads/master | 2021-07-09T07:45:52.457667 | 2020-11-10T01:32:26 | 2020-11-10T01:32:26 | 198,445,713 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 13,216 | py | import os
from helpers import util, visualize
import numpy as np
import pandas as pd
import numpy as np
import imageio
import torch
import sklearn.manifold
import sklearn.preprocessing
from test_encode_decode_new import IgniteTestNVS
from rhodin.python.utils import datasets as rhodin_utils_datasets
from rhodin.python.... | [
"mhnrashid@gmail.com"
] | mhnrashid@gmail.com |
886a1680bcc1e159afd4d657ee7506a6664428d1 | f048068920ea00a76b667d338964d3c69c74c2b6 | /src/readstdout.py | ccc62dd8895a09b4033d5824cef6777905a91a9c | [] | no_license | h4nyu/python_examples | 5e3f4f1601e797667a9ffbfe80a8526161a43bf7 | 1a4e3f8ff67eaaf96dd63869099a1b805278d2d9 | refs/heads/master | 2020-05-21T18:54:37.561103 | 2017-03-11T14:08:34 | 2017-03-11T14:08:34 | 84,645,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import subprocess
import time
proc = subprocess.Popen(['python', './stdout.py'], stdout=subprocess.PIPE)
print "ready"
while True:
time.sleep(0.3)
line = proc.stdout.read(1)
if line:
print(line)
else:
break
queue.put(line)
| [
"yao.ntno@gmail.com"
] | yao.ntno@gmail.com |
7e79a477ec3fa49fd82c3dab963cf434be2a87cd | 6ed034d0a5e239d7b0c528b287451409ffb4a494 | /tests/test_onnx.py | c0179c2765af9dedc85dcf797500f3813432b5ab | [
"Apache-2.0"
] | permissive | ViTAE-Transformer/ViTPose | 8f9462bd5bc2fb3e66de31ca1d03e5a9135cb2bf | d5216452796c90c6bc29f5c5ec0bdba94366768a | refs/heads/main | 2023-05-23T16:32:22.359076 | 2023-03-01T06:42:22 | 2023-03-01T06:42:22 | 485,999,907 | 869 | 132 | Apache-2.0 | 2023-03-01T06:42:24 | 2022-04-27T01:09:19 | Python | UTF-8 | Python | false | false | 767 | py | # Copyright (c) OpenMMLab. All rights reserved.
import os.path as osp
import tempfile
import torch.nn as nn
from tools.deployment.pytorch2onnx import _convert_batchnorm, pytorch2onnx
class DummyModel(nn.Module):
def __init__(self):
super().__init__()
self.conv = nn.Conv3d(1, 2, 1)
self.... | [
"annblessus@gmail.com"
] | annblessus@gmail.com |
fb04d7130569114cb2faf0b8ce198d4fc4a4c1d8 | c90b3ac3e5ad11cb93d4e6b76b9b9c4a19d0f512 | /.history/copytest_20200430000820.py | e910574e45ca1e2000e9260baea374208f9d9ca8 | [] | no_license | rbafna6507/passwordstorageproject | 6465585e36c81075856af8d565fe83e358b4a40a | 480c30e358f7902ac0ef5c4e8d9556cb1d6d33f4 | refs/heads/master | 2022-11-25T12:05:02.625968 | 2020-07-27T21:33:38 | 2020-07-27T21:33:38 | 283,021,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | import pickle
import cryptography
from cryptography.fernet import Fernet
def encrypt(message: bytes, key: bytes) -> bytes:
return Fernet(key).encrypt(message)
def decrypt(token: bytes, key: bytes) -> bytes:
return Fernet(key).decrypt(token)
key = Fernet.generate_key()
username = input("Username: ")
password... | [
"35872545+rbafna6507@users.noreply.github.com"
] | 35872545+rbafna6507@users.noreply.github.com |
6fb13f2cc800302e2a8aa6b73a65fbbd8f8a36d3 | d07b022b318e4cfedd12bde85495d942a1de28c1 | /setup.py | 81cb8b428832968530086e15e8c74bc3470b6645 | [
"MIT"
] | permissive | JudeLee19/linear-attention-transformer | c3600b8755e8ac57b240d7f7a4842e8f053d0b5f | 5190577f438da04958dbc18e84914f528a220456 | refs/heads/master | 2022-11-14T20:55:13.402124 | 2020-07-08T17:32:30 | 2020-07-08T17:32:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from setuptools import setup, find_packages
setup(
name = 'linear_attention_transformer',
packages = find_packages(exclude=['examples']),
version = '0.10.3',
license='MIT',
description = 'Linear Attention Transformer',
author = 'Phil Wang',
author_email = 'lucidrains@gmail.com',
url = 'https://github.c... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
97a2c9fa2477be51742cc45ea979f74d2a28965d | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/pdb2/pdbreader/symbol/HLSLRegisterType.pyi | 172bc3497ad1734d73fd4a741529dbbdd9aac09c | [
"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 | 5,805 | pyi | from typing import List
import ghidra.app.util.bin.format.pdb2.pdbreader.symbol
import java.lang
class HLSLRegisterType(java.lang.Enum):
CONSTANT_BUFFER: ghidra.app.util.bin.format.pdb2.pdbreader.symbol.HLSLRegisterType = CONSTANT_BUFFER
CYCLE_COUNTER: ghidra.app.util.bin.format.pdb2.pdbreader.symbol.HLSLRegi... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
ca5ef7a9f44b9d02e8ce5b5ae17e8e8cb46f6351 | 6d7741839ec5ef033cad043d2e42b520d0fe2600 | /src/model.py | 3e43d46c5d5273037b9527a13592c64dfd62b6c6 | [
"MIT"
] | permissive | andi611/AC-Actor-Critic-SlitherIO-Tensorflow | dc1547a594ebf2e3862b20b05ffeea2b0e6e0cdb | 81dcabc2755c1ee7a898914dfdad3758f2d93648 | refs/heads/master | 2020-04-01T13:05:42.096824 | 2018-12-12T08:08:41 | 2018-12-12T08:08:41 | 153,236,603 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | #--------------------------------------------------------------#
import tensorflow as tf
#--------------------------------------------------------------#
"""""""""""""""
model structure:
Conv-32x7x7-s2
Conv-64x7x7-s2
MP-3x3-s2
Conv-128x3x3-s1
MP-3x3-s2
Conv-192x3x3-s1
FC-1024
"""""""""""""""
def CNN(inputs, n_feature... | [
"tingweiandyliu@gmail.com"
] | tingweiandyliu@gmail.com |
43d5c346abe5cfe2b3682505bd17696aee21a176 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/TTSemiLep/nanoAODv7/2016/StackNew_comb/configuration_Top_pTrw_M2T4.py | a66573b14b14a3dd416242b0a20c6ddb4ff276bc | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 671 | py | ##Just set below things##
tag='2016_SKIM7_Top_pTrw_M2T4'
variablesFile='variables_Top_pTrw.py' ##what variables to draw
cutsFile='cuts.py' ## event selection##region selection
plotFile='plot_Top_pTrw_M2T4.py' ##color code and some format-related things
samplesFile = 'samples_2016_Top_pTrw_M2T4.py'
lumi=35.92
#out... | [
"bh.oh@cern.ch"
] | bh.oh@cern.ch |
d0d9d113884224077f3944f2ffb3d712df6de075 | 5ae2d0217ff66f387742aff66ee7c95cb480daab | /python/www/dash/layout/card.py | 574928f3890734524dcba5b376d365f2b385299e | [
"MIT"
] | permissive | Pandinosaurus/jetson-inference | ce1aabf7e9fe07032f6f1d30e16f1436dccfdd7e | 3d0d0f8d779cbf88ea1519bf0253e10cf2b86ac9 | refs/heads/master | 2023-08-08T11:44:06.287709 | 2023-07-27T17:41:23 | 2023-07-27T17:41:23 | 213,068,895 | 0 | 0 | MIT | 2023-08-30T06:02:48 | 2019-10-05T20:45:03 | C++ | UTF-8 | Python | false | false | 6,557 | py | #
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
#
# 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,... | [
"dustinf@nvidia.com"
] | dustinf@nvidia.com |
78f1cb1c7bfc965325bc6889de72052944f10e80 | 99df40595f37a65fa5c062af6e29050b44c387fa | /ukpsummarizer-be/summarizer/single_iteration_pipes.py | 2f0d42f909592c310871bb7aaf3b8c481fbc5601 | [
"Apache-2.0"
] | permissive | AIPHES/vldb2018-sherlock | fba7c9554761989a1e0fe7b5347c817ea239de16 | 3746efa35c4c1769cc4aaeb15aeb9453564e1226 | refs/heads/master | 2020-04-05T00:48:22.951462 | 2018-11-16T16:34:03 | 2018-11-16T16:34:03 | 156,411,181 | 1 | 0 | Apache-2.0 | 2018-11-16T16:34:05 | 2018-11-06T16:12:55 | Python | UTF-8 | Python | false | false | 5,184 | py | from __future__ import print_function, unicode_literals
import argparse
import datetime
from os import path
from web.single_iteration_runner import SingleTopicRunner
from web.gridsearch import GridSearch
import logging
import logging.config
def add_args(parser):
# -- summary_len: 100, 250, 400
parser.add_a... | [
"avinesh@aiphes.tu-darmstadt.de"
] | avinesh@aiphes.tu-darmstadt.de |
7667e2243105f1350a1e9797ff709fc0dfe0c93e | cf9afa19f1a57a4e5672d2f39a68202e9a625bc9 | /3_DataAnalysis/0_Feature_engineering/101_My_Learn/99_My_Ensemble/3_Boosting/1_AdaBoosting.py | dd908fc84dd9c6effd6126a6106f96f95a1b8175 | [] | no_license | BarryZM/zoubo | 4042604540740d87a61fd082cb821bd89a4f8ecc | 7c93c7d3e9ad6c80c76dbc78a8f1fb034d5e61d8 | refs/heads/master | 2023-03-19T23:08:42.990312 | 2020-05-18T01:49:02 | 2020-05-18T01:49:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import pandas as pd
import matplotlib.pyplot as plt
from sklearn import datasets
X, y = datasets.make_moons(n_samples=500, noise=0.3, random_state=42)
plt.scatter(X[y==0,0], X[y==0,1]) # X[y==0,0]取随机数:X[y==0]得到一行,再取第0个元素
plt.scatter(X[y==1,0], X[y==1,1])
plt.show()
from sklearn.model_selection import train_test_sp... | [
"397353721@qq.com"
] | 397353721@qq.com |
f66029b8e942c4770ffe9d164d91679a356a428b | 5e45f1d1d9f58aa1456777b0d75334d6efd43840 | /challenges/contests/project_euler/8_greatest_multiply/python/greatest_multiply.py | 8aa0e7af34861e773d3c463c9ba1991ceaf7160f | [] | no_license | missingdays/nerdy.school | 604953dc9b3c38a0f71793f066ce2707aa980dae | 051673e0ebc54bc2f7e96a6477697d1d528dc45c | refs/heads/master | 2021-01-17T08:10:19.558851 | 2016-06-06T15:29:01 | 2016-06-06T15:29:01 | 59,897,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | n = int(input())
def multi(number):
mult = 1
for digit in number:
mult = mult * int(digit)
return mult
for i in range(n):
loop = int(input().split()[1])
number = input()
m = 0
for i in range(len(number)-loop+1):
a = multi(number[i:i+loop])
print(number[i:i+loop]... | [
"rebovykin@gmail.com"
] | rebovykin@gmail.com |
c8f1ae9219f252b31d3b22685e21420b6bc303ac | 7e84f6f2f23055c3648dd88ab0364c393b3ce320 | /poleno/mail/transports/mandrill/apps.py | 0d625db5af310e336b20d274691ceb737b7b2b6c | [] | no_license | DominikJakub/chcemvediet | 5d177342c7d309e9a301c0d4ecac33c91abb4889 | 95d04e398f4a825f9175851885b9b9d98ae9543e | refs/heads/master | 2020-04-17T23:21:09.573077 | 2015-08-20T07:53:10 | 2015-08-20T07:53:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # vim: expandtab
# -*- coding: utf-8 -*-
from django.apps import AppConfig
class MandrillConfig(AppConfig):
name = u'poleno.mail.transports.mandrill'
def ready(self):
from . import signals
| [
"martin@github.ksp.sk"
] | martin@github.ksp.sk |
e214197fdc117b865efba51d71fbe2ec0bdba42a | 3507a2d646ab0f729c717d5239633d70508d32b1 | /dh_abstracts/app/abstracts/management/commands/clean_hanging.py | 04a625ac2a39473729bcb2ed5b754fdb40ccd12d | [
"MIT"
] | permissive | cmu-lib/dhweb_app | 26c22055afc7685153dd588e1ebabceb9cb782f7 | 8779fb1d6d52a8fb26a955b06b8589d5708589f6 | refs/heads/master | 2023-04-29T13:28:51.233931 | 2022-09-02T00:28:54 | 2022-09-02T00:28:54 | 146,502,577 | 4 | 0 | MIT | 2023-04-21T21:45:46 | 2018-08-28T20:23:16 | Python | UTF-8 | Python | false | false | 733 | py | from django.core.management.base import BaseCommand
from abstracts import models
from django.db import transaction
from django.db.models import Q
class Command(BaseCommand):
help = "Erase hanging records"
def handle(self, *args, **options):
models.Author.objects.exclude(authorships__isnull=False).all... | [
"matthew.d.lincoln@gmail.com"
] | matthew.d.lincoln@gmail.com |
bd9257b520f85897b35e27fea38dadb7487d2d96 | 39a616e021d379be612afcee1c65b868ec1a5ac3 | /tests/func/regressions/test_issue73.py | edf31da5f1bfaababc177343c30bb449729831ad | [
"MIT",
"Python-2.0"
] | permissive | igordejanovic/parglare | ead2384421fbee25dfbbd34ebeb45e871bd05af1 | aac5f31abadaa1ca639cfc0491d48ba61b1aa252 | refs/heads/master | 2023-04-16T01:06:02.995615 | 2023-04-07T16:22:00 | 2023-04-07T16:22:00 | 76,740,212 | 126 | 36 | MIT | 2022-07-12T14:59:41 | 2016-12-17T18:32:27 | Python | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
# Tests for issue #73 (see https://github.com/igordejanovic/parglare/issues/73)
from parglare import Grammar, Parser
def test_recursive_rule():
grammar = r"""
s: as;
as: as "a" | EMPTY;
"""
g = Grammar.from_string(grammar)
parser = Parser(g)
parser.parse('aaa')
d... | [
"igor.dejanovic@gmail.com"
] | igor.dejanovic@gmail.com |
ecc2cee42543809a94d4f22a0f9a5c1a393b62b3 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-py/tests/testdir_algos/rf/pyunit_constant_response_rf.py | aaf34a86ea32ae8196da7cdac12f21b3d5dcd229 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 682 | py | from builtins import range
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.random_forest import H2ORandomForestEstimator
def constant_col_rf():
train = h2o.import_file(path=pyunit_utils.locate("smalldata/iris/iris_wheader.csv"))
train["constantCol"] = 1
... | [
"noreply@github.com"
] | h2oai.noreply@github.com |
558c3cf07ee02a91113b5fd5ade274f1e34aef1d | 161d9c1d44db426dd67785b6c03be63abc7701c5 | /hash_dict/__init__.py | fc9dc3621394219b868a359293cec16d7b2cf071 | [
"MIT"
] | permissive | Cologler/hash-dict-python | 2fb238cf136ab1a66652d59165e8c51197be4f46 | bf483cb2365ae9545c207830e6b726b6712c5de1 | refs/heads/master | 2020-05-21T15:59:53.502131 | 2019-05-27T08:37:56 | 2019-05-27T08:37:56 | 186,104,112 | 0 | 0 | MIT | 2019-05-27T08:37:57 | 2019-05-11T07:54:20 | Python | UTF-8 | Python | false | false | 278 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2019~2999 - Cologler <skyoflw@gmail.com>
# ----------
#
# ----------
from .hash_dict import HashDict
from .hash_set import HashSet
from .comparer import (
IEqualityComparer,
ObjectComparer, AnyComparer,
StringComparers,
)
| [
"skyoflw@gmail.com"
] | skyoflw@gmail.com |
9c1dab7634c7dfa4cbb199068f15c99e0a24b74c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/aba4e23081f84c88a201f749fc75036a.py | 3b1d3abb048902d89bf03218a876dc52dd8391b5 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 484 | py | def is_silence(message):
return message == "" or message.isspace()
def is_shouting(message):
return any((s.isalpha() for s in message)) and\
message.upper() == message
def is_question(message):
return message == "" or message[-1] == '?'
def hey(message):
if is_silence(message):
ret... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
3250cd7898149506e9e7b68779b6b9a1776df77d | 25d081c82bf9adc2a8d96c254df0239a9f982a71 | /museum_site/migrations/0026_auto_20190307_0205.py | dc7dbb97c1a3ab51a75f1152dd7e1f4bfc099b86 | [
"MIT"
] | permissive | asiekierka/z2 | f102de582aaa9fc51b6b598a1fb07c58be4f540f | d926408423dc98d71d5e7fc2fda3202c03c309de | refs/heads/master | 2021-06-15T15:09:41.614135 | 2021-02-23T02:44:54 | 2021-02-23T02:44:54 | 146,348,922 | 1 | 0 | MIT | 2018-08-27T20:14:46 | 2018-08-27T20:14:46 | null | UTF-8 | Python | false | false | 1,193 | py | # Generated by Django 2.1.7 on 2019-03-07 02:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('museum_site', '0025_auto_20181209_0608'),
]
operations = [
migrations.RemoveField(
model_name='... | [
"doctordos@gmail.com"
] | doctordos@gmail.com |
aa6ed9d08c5f5cdaf1d1562d1365f6b561603d13 | 236ded75aefcf965c582538f1b56d21b161cd3c5 | /ethpki-Criptografado/testDir/callct805.py | ed309bbfce76ebf754aad8f1f6f953907ecb2e5f | [] | no_license | rogerioita/ICPChain | 7fc1c7c5df289ed31fd2ad71cee400eac3d253cb | 87f2b001f5297396be6cb3aa9dd0c42236587038 | refs/heads/master | 2023-03-10T20:57:49.479052 | 2021-02-16T16:27:23 | 2021-02-16T16:27:23 | 336,806,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | #!/usr/bin/env python
import os
os.system('node ct805.js')
| [
"rogerio.santos@ga.ita.br"
] | rogerio.santos@ga.ita.br |
e8a9e5dc714d5ab6c764df278cfcd778d55fb5d7 | e2e39726195c7bc075b9bd56e757acd136527d5c | /typings/vtkmodules/vtkCommonDataModel/vtkCellIterator.pyi | 49dc651338cef41d73e46677c120adf0a22a38fa | [
"BSD-3-Clause"
] | permissive | gen4438/vtk-python-stubs | a652272183d2d1ee48d4639e86bcffc1ac454af0 | c9abd76362adf387af64ce5ddbd04c5d3bebe9da | refs/heads/main | 2023-04-04T02:13:15.459241 | 2021-04-15T10:47:28 | 2021-04-15T10:53:59 | 358,224,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,765 | pyi | """
This type stub file was generated by pyright.
"""
import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore
class vtkCellIterator(__vtkmodules_vtkCommonCore.vtkObject):
"""
vtkCellIterator - Efficient cell iterator for vtkDataSet topologies.
Superclass: vtkObject
vtkCellIterator prov... | [
"g1e2n04@gmail.com"
] | g1e2n04@gmail.com |
626440745488d6f8774d06860a87422b773c1b96 | c98d8014861e4afbde501e5384a7f6211b861e62 | /tests/benchmarks/constructs/CallCompiledFunctionPosArgsConstant.py | 1240d925a5509e9fb6c3cd597fc05a4c29785b24 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | pwFoo/Nuitka | 3ce1f7af5605c0565bf81e8e7243eab40b92c345 | 479ed94720815918ed11fb070ef6d1a6454f4a3a | refs/heads/master | 2023-02-14T03:51:26.129166 | 2021-01-10T12:17:10 | 2021-01-10T12:17:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | # Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
188cc09153db609a4d0ef5056ee6be341058971b | 74837368ece5c26474bce922d9a3f1c2d74e23f1 | /树/leetcode110_平衡二叉树.py | b1d4f884d33dac636d200d0138e63f28879860bb | [] | no_license | houhailun/leetcode | 5a2e8a5a23b3a63f1a32a39b42bf195861292d70 | 1ca58b87e5edfa8db389f14e3a9105e92b4ae85f | refs/heads/master | 2021-06-11T08:17:45.506361 | 2021-03-30T02:22:24 | 2021-03-30T02:22:24 | 158,809,894 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
给定一个二叉树,判断它是否是高度平衡的二叉树。
本题中,一棵高度平衡二叉树定义为:
一个二叉树每个节点 的左右两个子树的高度差的绝对值不超过1。
示例 1:
给定二叉树 [3,9,20,null,null,15,7]
3
/ \
9 20
/ \
15 7
返回 true 。
示例 2:
给定二叉树 [1,2,2,3,3,null,null,4,4]
1
/ \
2 2
/ \
3 3
/ \
4 4
返回 false 。... | [
"hailun.hou@dmall.com"
] | hailun.hou@dmall.com |
22f89fa0a8acd9ffa2c705c73fec674667c5f41b | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/l2/mpbd.py | 09a9ec52f4696371b701a52155e2d2623fda3cc4 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,271 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
76b1e41c105cd8e85d040360730399216ae76312 | 5785d7ed431b024dd910b642f10a6781df50e4aa | /revise-daily/google/educative/dp/1_longest_common_subsequence.py | 25f8b054f443f3f6623d0321c254d22cfdcecbd2 | [] | no_license | kashyapa/interview-prep | 45d77324446da34d99bf8efedb3544b367b5523e | 7060c090c40602fb9c4778eace2078e1b51e235b | refs/heads/master | 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | def longest_common_subsequence(s1, s2):
def rec(i1, i2):
if i1 == len(s1) or i2 == len(s2):
return 0
if s1[i1] == s2[i2]:
return 1 + rec(i1+1, i2+1)
return max(rec(i1+1, i2), rec(i1, i2+1))
return rec(0,0)
def longest_common_subsequence_dp(s1, s2):
dp = [[... | [
"schandra2@godaddy.com"
] | schandra2@godaddy.com |
fff7b32fc09f4b26372e6707d5306a758fdd472f | da97d5ef948e86c0c33d35498a6ef4738f9e6529 | /jsonhome/tests/test_resource.py | 1dc26c81ddfe55e0ff823b72f8f4bf754a2145a2 | [
"Apache-2.0"
] | permissive | jamielennox/jsonhome | b473e7e7442986895fff311ab9e800d42ea0acef | b886b7167a57370707473b0535e03d0356b40b3e | refs/heads/master | 2021-01-10T10:35:09.068149 | 2015-07-25T03:04:55 | 2015-07-25T03:04:55 | 36,725,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"jamielennox@redhat.com"
] | jamielennox@redhat.com |
8fba4d26cad96419253be81366bd428409fc1f5b | 6f21929d29d00b5fdfd777c1259543164f45ae12 | /removeDuplicatesFromSortedArray_2.py | 90a5797c71a3197dba44f299ec80e3b02dd1c196 | [] | no_license | Success2014/Leetcode | 0a3f3b587a387884d0197b2559a87e796bc30ce4 | 0f631afe2d80da30a5e1cacedd9698d1d850981a | refs/heads/master | 2016-08-05T06:17:53.726004 | 2015-09-02T22:37:04 | 2015-09-02T22:37:04 | 37,785,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 08 16:54:57 2015
@author: Neo
"""
class Solution:
# @param {integer[]} nums
# @return {integer}
def removeDuplicates(self, nums):
n = len(nums)
if n <= 1:
return n
j = 0
for i in xrange(1,n):
if... | [
"neogoyeah@gmail.com"
] | neogoyeah@gmail.com |
f5df161ba2dd7c172b7bac61192851d55789849a | ea0bf09e000b063f7578b4dc769d5628a043973c | /ml_pitfalls_exp/pitfalls.py | 8acb6210b3633bb722029272630d84fb7f5d62ff | [] | no_license | HaiQW/Python | 01110f0ea09d105cc1a46751163c2c096fd9070f | 7c7f5e22301679a25a4950c828c452937d042a58 | refs/heads/master | 2016-09-10T01:39:24.643949 | 2015-04-18T03:14:50 | 2015-04-18T03:14:50 | 31,580,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,733 | py | # Corpwrite : HaiQW
# URL = http://blog.yhathq.com/posts/measuring-model-performance-1.html
# Decription : "How good" can mean a lot of things and it varies over domain
# and problems sets. But it is the developer's responsibility to provide a fair
# measurement in the first place. That task is surprisingly easy to mes... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
756ddbfa13e5466f0d2c5303ef386c4483f2c721 | 3d1cec5bb7fe8a80722eec447da157cc43c690c2 | /ejplugins/qespresso.py | 2fd34c0f6a81b5119ec4280ab7fd5314d9b7ff41 | [
"MIT"
] | permissive | chrisjsewell/ejplugins | deaaf8cf5f330ba7f01c3871f866e2812310272e | 4b731f756a4fbc32226336eaa0eeb89e1e1c9e0a | refs/heads/master | 2021-07-06T18:49:14.230683 | 2019-03-04T14:35:56 | 2019-03-04T14:35:56 | 104,327,695 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,969 | py | # -*- coding: utf-8 -*-
"""
adapted from: https://github.com/lmmentel/ase-espresso
Original work Copyright (C) 2013-2015 SUNCAT
Modified work Copyright 2015-2017 Lukasz Mentel
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
"""
import warnings
from datetime import dateti... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
0400f09d1c89f47e2daf35f62ebd3dcd6efc7843 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03450/s825560359.py | d51c6672197809c5fa345cb87db7b541d29c8f3e | [] | 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 | 786 | py | # Union Find 木
from sys import setrecursionlimit
def find(parent, i):
t = parent[i]
if t < 0:
return i
t = find(parent, t)
parent[i] = t
return t
def pos(x, i):
j, k = x[i]
if i == j:
return i, 0
l, m = pos(x, j)
x[i] = (l, m + k)
return x[i]
setrecursionlim... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d81ef822c02ae64adb7575a22d840854a9947863 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_197/ch56_2020_04_06_20_08_35_001074.py | d828d231779c51a72d0990595ee4c9d707b43711 | [] | 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 | 106 | py | def calcula_norma(lista):
soma=0
for i in lista:
soma+=i**i
return soma**1/2
| [
"you@example.com"
] | you@example.com |
548afa1c766805fccfe151c7120dc86ba47e55d6 | 31a08ba0c152c50ee9c897cbd9b934f19a885ac5 | /backend/m_23_oct_dev_13919/urls.py | 84424fb85d7dfb752b35a6b87f7c85be5be02302 | [] | no_license | crowdbotics-apps/m-23-oct-dev-13919 | 4343ff6630e878ee4b5f815cbec22795062bec60 | 9872bd6b01aaaf4d7dc0c1d6f79fc2f1c2f12959 | refs/heads/master | 2023-06-29T18:50:40.615827 | 2020-10-23T13:47:57 | 2020-10-23T13:47:57 | 306,535,485 | 0 | 0 | null | 2021-08-02T12:08:59 | 2020-10-23T05:12:55 | JavaScript | UTF-8 | Python | false | false | 2,076 | py | """m_23_oct_dev_13919 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
907ddc70b96e5a0fea162f8a643972b138efeb3c | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/queue_place_4.py | 59d45dcbe326bc175de6160dc708949c25c8ebce | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 1,080 | py | from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.queue_selector_4 import QueueSelector4
__NAMESPACE__ = "http://www.travelport.com/schema/common_v37_0"
@dataclass
class QueuePlace4:
"""
Allow queue placement of a PNR at the time of booking to be used for Prov... | [
"chris@komposta.net"
] | chris@komposta.net |
8a3ad1d89cebf30fc24aa998f4bb36f04792b765 | cc7ad1a2aa5d691c15ff7838d1e5126ab2c2bee0 | /teacher_vocab_container/urls.py | 9e3eedf15481b8b089f18c5be0cc252a1f365836 | [] | no_license | demirantay/lingooapp | 9632be8a7d3dd00e7a4ac13618f32975da389729 | c842bb032668ef1bd5e7f4282acd4990843c8640 | refs/heads/master | 2023-03-14T08:00:37.681334 | 2021-01-09T09:36:48 | 2021-01-09T09:36:48 | 285,181,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from django.urls import path
from . import views
urlpatterns = [
# teacher vocab container OVERVIEW
path(
"teacher/vocab/container/overview/",
views.teacher_vocab_container_overview,
name="teacher_vocab_container_overview"
),
# teacher vocab container EDIT WORD
path(
... | [
"demir99antay@gmail.com"
] | demir99antay@gmail.com |
a2c99045e70e5dfddade4ea389e66a3168f0886c | 66e58cba20414214ebca7bb4a035796d379f57f1 | /Django/Survey_Form/apps/surveys/urls.py | 18267906fc24ec3036088d0943bbe286a593ab2f | [] | no_license | NathanHaberman/Python-Flask-Django-CodingDojo | 08623db1c1fa9076cd90901fed39678b2a8b795a | c6013c9e8133a7e2b70bfc357c3364edf3992d1c | refs/heads/master | 2021-01-23T17:09:25.703718 | 2017-09-21T21:09:03 | 2017-09-21T21:09:03 | 102,763,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django.conf.urls import url
from views import *
urlpatterns = [
url(r'^$', index),
url(r'^surveys/process', process),
url(r'^result', result),
] | [
"na.haberman@gmail.com"
] | na.haberman@gmail.com |
2242ad5af6744dc59f7ddb89d10e41b923201674 | 7426522061b222e8d3336b18ff941bb98ff9626c | /qtoggleserver/peripherals/peripheral.py | 726585a76954f23656bceb1a0a5171f668c2f4a3 | [
"Apache-2.0"
] | permissive | DigitEgal/qtoggleserver | 82833aaeb6f0bdad5f28243f132a639f4b406001 | 54b6ac53742af9529fd349d4fc207b0dc8a38d3b | refs/heads/dev | 2023-05-07T14:49:11.273023 | 2021-04-30T20:40:08 | 2021-04-30T20:40:08 | 360,039,836 | 0 | 0 | Apache-2.0 | 2021-04-21T05:18:08 | 2021-04-21T05:13:07 | null | UTF-8 | Python | false | false | 5,454 | py |
import abc
import asyncio
import functools
import inspect
import logging
from typing import Any, Callable, Dict, List, Optional, Type, Union
from qtoggleserver.core import ports as core_ports
from qtoggleserver.utils import asyncio as asyncio_utils
from qtoggleserver.utils import logging as logging_utils
logger = ... | [
"ccrisan@gmail.com"
] | ccrisan@gmail.com |
2a48a124bcf79279e964cb8a764dfca834ac5bf0 | f2889a13368b59d8b82f7def1a31a6277b6518b7 | /68.py | b12e55c1cbcf3f8ce8e9ec5a3e6c3a27fd725830 | [] | no_license | htl1126/leetcode | dacde03de5c9c967e527c4c3b29a4547154e11b3 | c33559dc5e0bf6879bb3462ab65a9446a66d19f6 | refs/heads/master | 2023-09-01T14:57:57.302544 | 2023-08-25T15:50:56 | 2023-08-25T15:50:56 | 29,514,867 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | # ref: https://discuss.leetcode.com/topic/25970/concise-python-solution-10-lines
class Solution(object):
def fullJustify(self, words, maxWidth):
"""
:type words: List[str]
:type maxWidth: int
:rtype: List[str]
"""
res, cur, num_letter = [], [], 0
for w in wo... | [
"b93902098@ntu.edu.tw"
] | b93902098@ntu.edu.tw |
e4a618f042c2d54c340ae8d680fe8e0e69fe5edc | 6c58da2c54a3d35273e7984313d181f1da9981fc | /Random_Word_Generator/djangoEnv/bin/wheel | a462e9d103ef5d00837a33485582b3412e1c4c98 | [
"MIT-0"
] | permissive | py1-10-2017/rgero215_PY1-10-2017 | e582cb12cc63f84b1c0c14d09a922cb6cb228016 | f455b335ec9c8c850571f3a75dcd95759b4cfdad | refs/heads/master | 2021-09-04T03:23:48.062326 | 2018-01-14T21:07:26 | 2018-01-14T21:07:26 | 105,612,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | #!/Users/RGero13/Desktop/rgero215_PY1-10-2017/Random_Word_Generator/djangoEnv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rgero215@gmail.com"
] | rgero215@gmail.com | |
1c907cc56eb27d260b3d24629d2f9dfe18dbe829 | 7c99ea5b1ffe089c97615336daf4b6ceed9a5b00 | /Configurations/monoHWW/SemiLep/Full2017_v7/darkHiggs/nuisances.py | 1ec4b09297a14b777ac8f83f651c90c807645c9c | [] | no_license | flaviacetorelli/PlotsConfigurations | 948faadba356e1d5e6f546dc11dd8dacfe1c1910 | aa5cf802c86902378617f566186bc638e69f9936 | refs/heads/master | 2022-05-02T00:37:56.070453 | 2022-03-18T10:14:23 | 2022-03-18T10:14:23 | 235,580,894 | 0 | 1 | null | 2020-01-22T13:37:30 | 2020-01-22T13:37:29 | null | UTF-8 | Python | false | false | 25,079 | py | # nuisances
#nuisances = {}
# name of samples here must match keys in samples.py
# imported from samples.py:
# samples, treeBaseDir, mcProduction, mcSteps
# imported from cuts.py
# cuts
from LatinoAnalysis.Tools.commonTools import getSampleFiles, getBaseW, addSampleWeight
def nanoGetSampleFiles(inputDir, Sample):
... | [
"senne.vanputte@student.uantwerpen.be"
] | senne.vanputte@student.uantwerpen.be |
06b2fb04651cd3b04a52a95e073aa75d9753583b | 5f0355bc3795a496932e3a5c1e9575cc67b492ba | /input_op.py | cc52a68a25d1d21b5bfa536eceaf378ba6adc6a6 | [] | no_license | pohanchi/PixelDTGAN-pytorch | 4685e0afa60e947d38f62246a4c959865bff33fa | d4a06df22ac5b489d88c5acb33050b8497c9bfda | refs/heads/master | 2020-04-10T11:39:43.125584 | 2019-04-13T03:55:55 | 2019-04-13T03:55:55 | 160,999,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,053 | py | import os
import numpy as np
import random
from PIL import Image
from os import listdir
from os.path import isfile, isdir, join
import os
import random
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torch.utils.data
impor... | [
"aapp1420@gmail.com"
] | aapp1420@gmail.com |
6596ae62194aad8460834bdf55d7f82f864c9266 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/graph_objs/scattergl/_marker.py | 3d182d8b9756aaf54c463cb1674d84a41546ebfc | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 49,035 | py | from plotly.basedatatypes import BaseTraceHierarchyType
import copy
class Marker(BaseTraceHierarchyType):
# autocolorscale
# --------------
@property
def autocolorscale(self):
"""
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette de... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
c460f51469c990627cd7eae32158892a79f8a9d6 | 16516732031deb7f7e074be9fe757897557eee2d | /AtCoder/code thanks festival 2014 B日程/A - 朝食.py | 0308a51751b681b5b62ef1d7e82b61fa5344c6da | [] | no_license | cale-i/atcoder | 90a04d3228864201cf63c8f8fae62100a19aefa5 | c21232d012191ede866ee4b9b14ba97eaab47ea9 | refs/heads/master | 2021-06-24T13:10:37.006328 | 2021-03-31T11:41:59 | 2021-03-31T11:41:59 | 196,288,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | # 2019/07/11
print(max(map(int,input().split()))) | [
"calei078029@gmail.com"
] | calei078029@gmail.com |
5cfad08f5c82a60575ad74c1037278dcbd55e3b9 | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Easy/1185.day-of-the-week.py | a758044fd85c9a5fc5582e62aa552c97ac43e142 | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | #
# @lc app=leetcode id=1185 lang=python3
#
# [1185] Day of the Week
#
# https://leetcode.com/problems/day-of-the-week/description/
#
# algorithms
# Easy (63.93%)
# Total Accepted: 23.6K
# Total Submissions: 37K
# Testcase Example: '31\n8\n2019'
#
# Given a date, return the corresponding day of the week for that da... | [
"kevin.wkmiao@gmail.com"
] | kevin.wkmiao@gmail.com |
dabf24659a5f8db535dea1b2d48886c367ad0174 | 33c4d72750f432ab4a0caf8c5e605885fd068576 | /scenario3.py | d66f9265174851b062c0684338822af0b32826f9 | [] | no_license | chanokin/genn_distance_dep_connector | d35bc128c1e666477836a856679fbd73f32ceab1 | 7ac35df96847b08bbcba13bd613a44d511c96ffb | refs/heads/master | 2022-12-03T00:30:26.321999 | 2020-08-06T15:32:15 | 2020-08-06T15:32:15 | 284,944,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,616 | py | # encoding: utf-8
from nose.tools import assert_equal, assert_raises, assert_almost_equal
from numpy.testing import assert_array_equal, assert_array_almost_equal
from pyNN.utility import assert_arrays_equal, assert_arrays_almost_equal
from nose.plugins.skip import SkipTest
from pyNN.utility import init_logging
from p... | [
"chanokin@gmail.com"
] | chanokin@gmail.com |
f5ec9ae021adb56e4de6739eca7cb98ca50eb79a | b4ec14583ce0f7560441a4ee58981439cc13c659 | /SwarmSim/MultiSwarmSim.py | 7c8942a5bb6189a093d9c5310ae069f03872f73d | [] | no_license | wpower12/DroneSimV2 | 024a6c8b74ec507c536dc16cbcfe112e76be16e5 | 5ab6aae52ee094dc71775005c5f498bd6a966b68 | refs/heads/master | 2020-09-15T13:54:01.541722 | 2020-02-13T17:25:03 | 2020-02-13T17:25:03 | 223,467,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | from . import Swarm as S
from . import Wind as W
from . import MultiSwarmAnimator as A
class MultiSwarmSim():
def __init__(self, swarms, rnd_seed, animate=True):
# Assuming swarms holds a list of swarms:
# [[num_drones, type, plot_color, inital_position, target],..,[...]]
self.swarms = []
for s in swarms:
... | [
"willpowe@gmail.com"
] | willpowe@gmail.com |
f5c799c8700118a2b19f835731eb463a65f9cda4 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py | 95146472146cd0b51e3482dd3f0a65233bf829d2 | [
"MIT",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"Apache-2.0"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 13,191 | py | # Copyright (C) 2010 Google Inc. All rights reserved.
# Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Szeged
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of so... | [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
1d08b3fd19cf0d46de83767671146e5939bb72d1 | d7dc0bf114a9cf97e76f49739d4d9986eebeb89a | /Kyrs Mai/02.Conditional Statements - Exercise/04.mertik_converter.py | d8b249452c17c9606126f3f32b0a8770c9df4b53 | [] | no_license | Mazev/Python-Basics | 6f300529fa1e86ed48beea708018563a5902c2df | 86fc99d62230f30a6e55005e91d4dc7fe46d52fd | refs/heads/master | 2023-02-19T13:44:52.770161 | 2021-01-19T19:50:30 | 2021-01-19T19:50:30 | 330,723,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | number = float(input())
convert_from = input()
convert_to = input()
converter_to_meters = 0
if convert_from == 'mm':
converter_to_meters = number / 1000
elif convert_from == 'cm':
converter_to_meters = number / 100
else:
converter_to_meters = number
rezults = 0
if convert_to == 'mm':
rezults = convert... | [
"77510376+Mazev@users.noreply.github.com"
] | 77510376+Mazev@users.noreply.github.com |
aa1ec4589f4a9febf92ca555c953271d98b586cf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04029/s181022705.py | 1a19cfc40920efbaf1ec7af6837a966f0d5cf4e1 | [] | 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 | 70 | py | N = int(input())
result = N * (N + 1) // 2
print('{}'.format(result))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f1dd184fab4820203a5c6d871c0a5133cacf042e | b21b5467286381a1b4db49f305af587e5e2fded1 | /按照特定的長度分割.py | 00d94bec695de312eff40cd84974ed6a17224f46 | [] | no_license | anlaganlag/Funcs | 76be59400fee66e1269942aaf653bf4bdb8908e7 | 76fc2992164c85ad6edcb01e1d4a9570ce7ce1ac | refs/heads/master | 2021-06-30T17:05:25.169029 | 2021-03-26T03:19:21 | 2021-03-26T03:19:21 | 227,739,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py |
"""
566. 重塑矩阵
在MATLAB中,有一个非常有用的函数 reshape,它可以将一个矩阵重塑为另一个大小不同的新矩阵,但保留其原始数据。
给出一个由二维数组表示的矩阵,以及两个正整数r和c,分别表示想要的重构的矩阵的行数和列数。
重构后的矩阵需要将原始矩阵的所有元素以相同的行遍历顺序填充。
如果具有给定参数的reshape操作是可行且合理的,则输出新的重塑矩阵;否则,输出原始矩阵。
示例 1:
输入:
nums =
[[1,2],
[3,4]]
r = 1, c = 4
输出:
[[1,2,3,4]]
解释:
行遍历nums的结果是 [1,2,3,4]。新的矩阵是 1 * 4 矩阵, 用之前的元素值一... | [
"tanjhu@163.com"
] | tanjhu@163.com |
b4e240b00213567ccebfff6677656c5e823bc0c2 | 41499f73e807ac9fee5e2ff96a8894d08d967293 | /FORKS/Python/smmap/tree/smmap/test/test_mman.py | c8b9c703e32bfd9f5cab5efd07f1fb2d8bc91114 | [
"WTFPL",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | lordnynex/CLEANUP | c9f3058ec96674696339e7e936170a8645ddc09b | 77e8e3cad25ce740fefb42859d9945cc482e009a | refs/heads/master | 2021-01-10T07:35:08.071207 | 2016-04-10T22:02:57 | 2016-04-10T22:02:57 | 55,870,021 | 5 | 1 | WTFPL | 2023-03-20T11:55:51 | 2016-04-09T22:36:23 | C++ | UTF-8 | Python | false | false | 9,752 | py | from __future__ import print_function
from .lib import TestBase, FileCreator
from smmap.mman import (
WindowCursor,
SlidingWindowMapManager,
StaticWindowMapManager
)
from smmap.util import align_to_mmap
from random import randint
from time import time
import os
import sys
from copy import copy
class Te... | [
"lordnynex@gmail.com"
] | lordnynex@gmail.com |
1750f204567162d19ae784b978042ffb80cfc917 | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/test_fmax_op.py | 608d97b68ac22acd8a9a672b4bf27d058834c986 | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 7,948 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | sandyhouse.noreply@github.com |
18c005016ba798a11db8660dd0793a18bba6e401 | 983f77449bbea7ae1993a93d7f4431f0f07193f0 | /basics/pixel_helpers.py | 9028922646309dd15dd490eece610f5798d3b5ac | [] | no_license | johnholl/TDnets | 09d45f2bab138639e3be107d2e44df01533c10c3 | 00afc8a5ad412047c658deed2f487a98f062788b | refs/heads/master | 2020-06-19T06:41:42.159903 | 2017-03-13T13:02:11 | 2017-03-13T13:02:11 | 74,916,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | import numpy as np
def check_valid_split(im, num_cuts):
rem1 = len(im[0]) % num_cuts
rem2 = len(im[1]) % num_cuts
if rem1+rem2 == 0:
return True
else:
return False
def split_image(im, num_cuts):
cells = np.reshape(im, newshape=[num_cuts, num_cuts, len(im[0])/num_cuts, len(im[1])... | [
"johnholl@umich.edu"
] | johnholl@umich.edu |
89e95fb52aaef72eaf8afaf098fae63722e0afa4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02411/s403847529.py | a81ca239448997e3dc7d6da14a566826ce28cce7 | [] | 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 | 483 | py | ret = []
while True:
m, f, r = map(int, raw_input().split())
if (m,f,r) == (-1, -1, -1):
break
if m == -1 or f == -1:
ret += 'F'
elif 80 <= m + f:
ret += ['A']
elif 65 <= m + f < 80:
ret += ['B']
elif 50 <= m + f < 65:
ret += ['C']
elif 30 <= m + f < 5... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
90a3d72ff5f822b205c1defa4fe78d340ec256d8 | 3fde7eae5391795834b28dced75d607ec00302d1 | /tests/test_radial_resolution.py | 02df85022f1446659550f5f67e2193e78ea2ddb0 | [
"MIT"
] | permissive | nlaurance/pyscad | 047c16aa7e57f3e883b886b29d7f96a6dff66efa | 3530285011c757fbfbbb36201b8e40ce4cf16c49 | refs/heads/master | 2021-05-30T18:42:48.377218 | 2016-02-25T18:58:33 | 2016-02-25T18:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from boiler import *
class TestRadialResolution(unittest.TestCase):
def test_cylinder_radial_resolution_scad(self):
c = Cylinder(h=10, r=20, fn=10, fa=1)
answer = "cylinder(r=20.0, h=10.0, center=false, $fn=10.0);"
code_compare(c.render_scad(), answer)
c.fn = 0
answer = "cyl... | [
"giles@polymerase.org"
] | giles@polymerase.org |
36bc2ece69063a2a75678829f68a7f99bf33f024 | de40d3fa8d8af0030556d27d6833f6a1a0e7700c | /baekjoon/2178py/a.py | 56d2975776626891fcde1e62826b3e5e94d88187 | [] | no_license | NeoMindStd/CodingLife | cd6a627209c0353f4855f09fd5dfef8da4bbfef6 | bcb6c3752f472e6a4f3b8f158d02bc3599dfcda3 | refs/heads/master | 2022-12-24T10:42:45.390085 | 2022-12-11T16:27:16 | 2022-12-11T16:27:16 | 191,797,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | import collections
n, m = map(int, input().split())
maze = [[0]*(m+2)]
for _ in range(n):
maze.append([0]+list(map(int, " ".join(map(str, input())).split()))+[0])
maze += [[0]*(m+2)]
Q = collections.deque([])
deQ = Q.popleft
enQ = Q.append
visitFlag = [[False]*(m+2) for _ in range(n+2)]
class Pos:
def __i... | [
"dwj1996@naver.com"
] | dwj1996@naver.com |
82edb09745b6e156f14f649778f67c7c333e3486 | 008c065391d766fec2f2af252dd8a5e9bf5cb815 | /Chef and Card Game.py | 08f0f4aba68926d28d0160dd829d805074a3efa0 | [] | no_license | 22Rahul22/Codechef | b261ab43ff5ff64648a75ad1195e33cac2cfec52 | 1f645c779a250a71d75598e1eabad7e52dd6b031 | refs/heads/master | 2022-11-29T21:51:09.578798 | 2020-08-19T06:20:23 | 2020-08-19T06:20:23 | 288,650,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | def digit(x):
s = 0
while x > 0:
r = x % 10
s += r
x = x // 10
return s
t = int(input())
for _ in range(t):
n = int(input())
chef = 0
morty = 0
for i in range(n):
a, b = map(int, input().split())
sum1 = digit(a)
sum2 = digit(b)
if sum... | [
"rahulbhl22@gmail.com"
] | rahulbhl22@gmail.com |
e87edadd18704545ee2040646bbb8f15be4e4456 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7335.py | 10d022db676a551cc384932084f84e63c2e37f50 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,754 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b7092d83351d6b5fddc5cf8dbd5e5a642e83309a | e6e5141787917abdb07308f832a36a467cc664f6 | /source/caseTool/writeJavaFromExcel/script/Field.py | 53423954ae6df68f48b795942aad2532f93c1de2 | [] | no_license | temp9999gi/projectautomation | a34ef13dc371c018bbb5808e0d8dec285e396dc9 | 4e1f3eed5fb481956d045019034d5fb4bd5828dd | refs/heads/master | 2020-05-17T10:58:45.758691 | 2007-08-21T14:36:14 | 2007-08-21T14:36:14 | 33,873,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | # start
#from DbAndJavaTypeMapper import *
from CommonUtil import *
class Field:
def setAttributes(self, fieldVisibility, fieldType, fieldName):
#fieldEng, fieldKor, fieldType, fieldVisibility, key, colSeq
self.fieldVisibility = fieldVisibility
self.fieldType = fieldType
self.fieldName ... | [
"kusung25@40af2166-402a-0410-87ae-1d88bcb22c19"
] | kusung25@40af2166-402a-0410-87ae-1d88bcb22c19 |
2e6676ef30a18319ac524a762ecfc74708c28aee | 8434d27ef3bd82987e9c1174dd053092d5ddd7ea | /rotkehlchen/data_migrations/migrations/migration_10.py | a2e25ed3fb40bb1504a4dc1184141fc2106d3ee9 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LefterisJP/rotkehlchen | dae96d368d59cb387aabd0b792d94126e98aa8f3 | 496948458b89afc41458f19d1cba0e971ab67c8b | refs/heads/master | 2023-09-04T00:56:32.204156 | 2023-08-23T13:52:30 | 2023-08-23T14:46:41 | 127,209,257 | 0 | 0 | BSD-3-Clause | 2020-11-04T13:34:15 | 2018-03-28T23:11:50 | Python | UTF-8 | Python | false | false | 2,749 | py | import logging
from typing import TYPE_CHECKING
from rotkehlchen.db.updates import UpdateType
from rotkehlchen.globaldb.handler import GlobalDBHandler
from rotkehlchen.logging import RotkehlchenLogsAdapter
from rotkehlchen.types import ApiKey, ExternalService, ExternalServiceApiCredentials
if TYPE_CHECKING:
from ... | [
"lefteris@refu.co"
] | lefteris@refu.co |
fbbc78b73a28ba835700a127c9d58fa6aa38e0b3 | 74983098c5de53007bde6052a631845c781b5ba8 | /sin_two/sin_two42/sin_two.py | 6d57a790a4f40a1c49c1ea72ce09c878ea54da34 | [] | no_license | numairmansur/Experiments | 94ccdd60f4c2cf538fab41556ac72405656c9d77 | 592f39916461c7a9f7d400fa26f849043d1377ed | refs/heads/master | 2021-04-29T12:39:16.845074 | 2017-02-15T07:36:47 | 2017-02-15T07:36:47 | 78,043,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import numpy as np
import sys
import math
import time
import csv
from hpolib.benchmarks.synthetic_functions import SinTwo
from time import gmtime, strftime
def main(job_id, params):
print '!!! Entered Main !!!'
print 'Anything printed here will end up in the output directory for job #:', str(job_id)
print params... | [
"numair.mansur@gmail.com"
] | numair.mansur@gmail.com |
5fba937a296ab48deeba7382d4c59306b74e0942 | ab9196b6356e3c0af7baf7b768d7eb8112243c06 | /Python&DataBase/5.13/제목 없음2.py | 2a527864c31f908dc8a13e60ee747b4edab2ed84 | [] | no_license | wngus9056/Datascience | 561188000df74686f42f216cda2b4e7ca3d8eeaf | a2edf645febd138531d4b953afcffa872ece469b | refs/heads/main | 2023-07-01T00:08:00.642424 | 2021-08-07T02:10:25 | 2021-08-07T02:10:25 | 378,833,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py |
a = int(input("숫자 : ")
b = 0
for i in range(2,a):
if a % i == 0:
b = 1
if b == 0:
print("소수")
else:
print("아님")
| [
"noreply@github.com"
] | wngus9056.noreply@github.com |
9f4078154da9742e743bdc728270cbf9e809d923 | a829617f9ad158df80a569dd02a99c53639fa2c6 | /test/hep/hist/error2.py | fe2d832dc26645558b24c887f4389379fe52d338 | [] | no_license | alexhsamuel/pyhep | 6db5edd03522553c54c8745a0e7fe98d96d2b7ae | c685756e9065a230e2e84c311a1c89239c5d94de | refs/heads/master | 2021-01-10T14:24:08.648081 | 2015-10-22T13:18:50 | 2015-10-22T13:18:50 | 44,745,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | #-----------------------------------------------------------------------
# imports
#-----------------------------------------------------------------------
import hep.hist
from hep.test import compare
from math import sqrt
#-----------------------------------------------------------------------
# test
#----------... | [
"alex@alexsamuel.net"
] | alex@alexsamuel.net |
2701e532eecc61efcfee277337b31f3b3c8a00c2 | 700749ca999114439f391ad5e985adb8e4e5e61d | /003 Array Pair Sum.py | dace3c3db4849437b75aad878de9f57c712e1fab | [] | no_license | savadev/Leetcode-practice | 8b525d99b900732d000105025b8713afaa842e68 | 38f2833a51cb6af6a5123dfeab66cf44293b2359 | refs/heads/master | 2020-12-31T22:38:41.102247 | 2020-01-30T08:32:04 | 2020-01-30T08:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | '''
Problem
Given an integer array, output all the unique pairs that sum up to a specific value k.
So the input:
pair_sum([1,3,2,2],4)
would return 2 pairs:
(1,3)
(2,2)
NOTE: FOR TESTING PURPOSES< CHANGE YOUR FUNCTION SO IT OUTPUTS THE NUMBER OF PAIRS
Solution
The O(N) algorithm uses the set data structure. We ... | [
"noreply@github.com"
] | savadev.noreply@github.com |
f21c1b70099a65bb7d1015d484b993736af02f96 | b38072fb1429afb6958d8e782971c86e22fb6811 | /persistance/keyValDocuments/MetaDict.py | 4c3d65d351a7a115e11444122d3a3c17eaca851a | [
"BSD-3-Clause"
] | permissive | bossiernesto/onyx | d58688208dbd534f8c459fc0a39c96a258f8edba | 6a02a7d87af653dfafaa313e9386c3123c4534de | refs/heads/master | 2016-08-03T02:41:51.389769 | 2014-01-27T23:13:31 | 2014-01-27T23:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | from config.AppContext import appContext,ONYX_ROOT,getAppContext
from config.AppContext import MASTER_CATALOG,DOCUMENTAL_DB
from onyxexceptions import ConfigError
documents_entities = []
DEFAULT_FILE='DocumentalFile'
appC=getAppContext()
def getContainerSection():
return appC.get(CONTAINER_SECTION,)
class Docum... | [
"bossi.ernestog@gmail.com"
] | bossi.ernestog@gmail.com |
5100a62936d2465458d5da0d3a4e30e7d19e1966 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/ip/rsroutetoroutedef.py | 5bbceae74e78153e729ed931542693f9aadda688 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,838 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
b05b7d7073e9ea89f4303fb01223756d2afdd693 | 21e177a4d828f4e0a003e9424c4952dbc0b47d29 | /lints/lint_subject_contains_noninformational_value.py | 43e106e9ad8dc2514f5933b11694d2e98de0c4be | [] | no_license | 846468230/Plint | 1071277a55144bb3185347a58dd9787562fc0538 | c7e7ca27e5d04bbaa4e7ad71d8e86ec5c9388987 | refs/heads/master | 2020-05-15T12:11:22.358000 | 2019-04-19T11:46:05 | 2019-04-19T11:46:05 | 182,255,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | from lints import base
from cryptography import x509
from cryptography.x509.oid import ExtensionOID,NameOID
from util.time import Time
from util import ca
from urllib.parse import urlparse
'''
BRs: 7.1.4.2.2
Other Subject Attributes
With the exception of the subject:organizationalUnitName (OU) attribute, optional attri... | [
"846468230@qq.com"
] | 846468230@qq.com |
f5f45fb35cd151da0e1d795c0d48723f91b4f969 | 593aaf81822938b561f9e3fc73b86d4adf3a83c4 | /emp_project/migrations/0002_auto_20211003_2121.py | 5b7a8286eeade86be390aae719b196bd6efff7ae | [] | no_license | toncysara17/employeeproject | 9008d61d70211d5979f587bbe26fcc7f5464d1e7 | 9a2cea5e6f57c579f751701be29f32441a3ca4ec | refs/heads/master | 2023-08-26T07:55:15.166627 | 2021-10-04T12:32:38 | 2021-10-04T12:32:38 | 413,413,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # Generated by Django 3.2.3 on 2021-10-03 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('emp_project', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Login',
fields=[
('id'... | [
"toncysara12@gmail.com"
] | toncysara12@gmail.com |
9a75fdd10b57e5da7093a83364b01c65d8a9feb1 | 5946112229fe1d9a04b7536f076a656438fcd05b | /dev_env/bin/jupyter-troubleshoot | 8459bbbc8bfe4db2c83f7f558ee5b99629d08be0 | [] | no_license | Gear-Droid/openCV_study_project | 3b117967eb8a28bb0c90088e1556fbc1d306a98b | 28c9a494680c4a280f87dd0cc87675dfb2262176 | refs/heads/main | 2023-05-14T14:27:42.284265 | 2021-06-05T00:16:09 | 2021-06-05T00:16:09 | 307,807,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/home/vlad/Документы/OpenCV/Курсач/prj/dev_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.troubleshoot import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Vladi003@yandex.ru"
] | Vladi003@yandex.ru | |
5749742d389aa3e74c72432b5ee96d0195ce9112 | 4126110927eee1d629f03fb861d0db4df7844574 | /solusos/system.py | 8f7d66ed28355b2bab5120634ab3f4f47a2de83b | [] | no_license | iuim/build-services | b7df64bd617cc8e6f7bb4165da6fe0052a3a31e4 | 1a968a097127d189ddfcc319cc3808dfc86d66fd | refs/heads/master | 2021-01-16T01:02:51.951047 | 2013-10-24T08:03:45 | 2013-10-24T08:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | import os
import os.path
from solusos.console import *
import urllib2
import subprocess
def sizeof_fmt(num):
for x in ['bytes','KB','MB','GB']:
if num < 1024.0:
return "%3.1f%s" % (num, x)
num /= 1024.0
return "%3.1f%s" % (num, 'TB')
def execute... | [
"ikey@solusos.com"
] | ikey@solusos.com |
4e2300be3379c8fb6ebd1139255083ca5f66b2c9 | 52b2e3470cd4b91975b2e1caed8d1c93c20e5d05 | /lib/python/test/testsieve.py | b7281e1516d1f431a0d4399be6afa20e93cbecc6 | [] | no_license | xprime480/projects | c2f9a82bbe91e00859568dc27ae17c3b5dd873e3 | 3c5eb2d53bd7fa198edbe27d842ee5b5ff56e226 | refs/heads/master | 2020-04-27T03:51:29.456979 | 2019-04-12T14:34:39 | 2019-04-12T14:34:39 | 174,037,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | #!/usr/bin/env python3
import unittest
from sieve import sieve
#
# taken from http://astrospiker.com/MATHCOACH/primes.html
#
small_primes = [
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41,
43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101,
103, 107, 109, 113, 127, 131, 137, 139, 1... | [
"mi.davis@sap.com"
] | mi.davis@sap.com |
c35b454322285177d2d4d1bb550bce97688fa7b6 | c5d7763fff7144dc7078f7c3a8df91aed6d04ec1 | /mlh_twitter_api.py | 760c006ac54176c0fba63b19e760cb6157b2bbeb | [
"MIT"
] | permissive | RadCon/Part-3 | 93358d8337ea613cd3a39a6682e183e8659a2cda | 2552957b0ef13c4cbf762e29cc5db4301096c7f1 | refs/heads/master | 2022-12-12T13:42:16.602862 | 2020-04-06T23:31:59 | 2020-04-06T23:31:59 | 253,639,458 | 0 | 0 | MIT | 2021-06-02T01:23:31 | 2020-04-06T23:30:55 | Python | UTF-8 | Python | false | false | 1,125 | py | import http.client, urllib.request, urllib.parse, urllib.error, base64
import urllib.request
import config
import tweepy
import json
# fetch tweets from our twitter-api
def get_user_tweets(twitter_handle):
url = config.MLH_TWITTER_API + "/api/tweets/" + twitter_handle
req = urllib.request.Request(url)
res... | [
"none"
] | none |
22247f30bbfdd27cec8d4536f2ad49725bd844b4 | d7b5092a7503b716080ba23ad763b61a0b437e12 | /template.py | 98d398d2814f16e8eb00cfee64985cc7a142605a | [
"Apache-2.0"
] | permissive | lidan233/BlenderToolbox | ab3ae069a1d3cf63d9bda32d05810be89e858e7b | 18e1f343958c96472570aa044212e05bc48c3264 | refs/heads/master | 2023-09-02T19:15:36.407691 | 2021-11-14T20:26:54 | 2021-11-14T20:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,238 | py | import sys
sys.path.append('/Users/hsuehtil/Dropbox/BlenderToolbox/') # change this to your path to “path/to/BlenderToolbox/
import BlenderToolBox as bt
import os, bpy, bmesh
import numpy as np
cwd = os.getcwd()
'''
RENDER AN IMAGE STEP-BY-STEP:
1. copy "template.py" to your preferred local folder
2. In "template.py":... | [
"hsuehtil@cs.toronto.edu"
] | hsuehtil@cs.toronto.edu |
4d416c04bbcc33d88c3ac45957e5e3e915b0758b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s219469968.py | 17d82c4c7dbe53aeba8adb6d452d9c959fb6b785 | [] | 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 | 1,248 | py | import math
import collections
import copy
import sys
n = int(input())
a = list(map(int,input().split()))
limit = 10 ** 6
sCheck = math.gcd(a[0],a[1])
if n == 2:
if sCheck == 1:
print("pairwise coprime")
else:
print("not coprime")
sys.exit()
else:
for i in range(2,n):
sCheck ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c70beac2a918f8dfafef2d37fd6effd585ac5403 | f5b5a6e3f844d849a05ff56c497638e607f940e0 | /capitulo 04/capitulo 04/04.03 - Carro novo ou velho, dependendo da idade.py | ba072d94c0ae7435ded2c29b0b7a79807337c1b0 | [] | no_license | alexrogeriodj/Caixa-Eletronico-em-Python | 9237fa2f7f8fab5f17b7dd008af215fb0aaed29f | 96b5238437c88e89aed7a7b9c34b303e1e7d61e5 | refs/heads/master | 2020-09-06T21:47:36.169855 | 2019-11-09T00:22:14 | 2019-11-09T00:22:14 | 220,563,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2017
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Primeira reimpressão - Outubro/2011
# Segunda reimpres... | [
"noreply@github.com"
] | alexrogeriodj.noreply@github.com |
20bf997cb90e8719ff00ebad9395449022a26b00 | 4a4579254118db40fb008439d18ad8c573e8fc1a | /build/jsk_common_msgs/speech_recognition_msgs/catkin_generated/pkg.develspace.context.pc.py | a041884919e78bb3fef48314880e18c4c96f0599 | [] | no_license | amilearning/AD_mpc_ws | 86ff6ef9e61c6cc5aae6e12f20c2c875b1930d41 | 1fc2d385f281e00c16aff688948f7296e02cbd3a | refs/heads/master | 2023-06-24T13:54:59.759921 | 2021-07-16T01:08:52 | 2021-07-16T01:08:52 | 386,465,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/hmcl/shared_dir/mpc_ws/devel/include".split(';') if "/home/hmcl/shared_dir/mpc_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "std_msgs;message_runtime".replace(';', ' ')
PKG_CONFIG_LIB... | [
"hojin.projects@gmail.com"
] | hojin.projects@gmail.com |
9d62e641cdc35959e8b40ebd25b264635509e7e6 | cf945fb7c961376bfcff37c80fe50312d4f32290 | /Projects/Reptile/Tools/E3_GenerateCode.py | 6ccf10ab4e2ef7fa507332ee9b53dc851e66b34e | [] | no_license | lizhenQAZ/code_manage | faa1e805326cc8da8463e0f8820c9d092a04dddb | f98977d58a9febb8212652846314418bba37bfc7 | refs/heads/master | 2020-12-03T00:00:52.205238 | 2018-12-19T16:00:48 | 2018-12-19T16:00:48 | 95,968,266 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | # coding: utf-8
# 定义验证码功能
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
from PIL import ImageFilter
import random
import os
# 绘制随机字符
def generate_random_string():
# 随机字符串
chars = 'abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
# 随机产生4个不同字符
random_chars = "".... | [
"www.516960831@qq.com"
] | www.516960831@qq.com |
c163ed75071f33f3c08479877555e9468fad11ad | 24f0aba57f4393200a9327e3f3605a906859ae4b | /bot/wikidata/claim_templates.py | 404b389a300d6503a242e3aaea117f1e97e2077e | [] | no_license | Sadads/toollabs | 0b8b68adc9ca4cb21c785341cf8f3e901298d55c | 31dcd44616e6dafefdd35bbc4d09c480738a9d44 | refs/heads/master | 2020-03-18T15:43:55.774106 | 2018-05-20T11:48:04 | 2018-05-20T11:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,866 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Bot to add the first claim (statement) to items on Wikidata.
The bot works on lists linked from https://www.wikidata.org/wiki/Wikidata:Database_reports/without_claims_by_site like
for example https://www.wikidata.org/wiki/Wikidata:Database_reports/without_claims_by_site/nl... | [
"maarten@mdammers.nl"
] | maarten@mdammers.nl |
0eaceff507455db69fa440c9bd3559e086503d56 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2357/60799/235779.py | d12e670ece29540c5b8c83aa1ddf903db832a95a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | T = int(input())
for hhh in range(0, T):
n = int(input().split()[2])
uList = [int(i) for i in input().split()]
vList = [int(i) for i in input().split()]
res = [(u, v) for u in uList for v in vList if u + v == n]
res.sort()
if not res:
print(-1)
for i in res:
print(' '.join(st... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2bb6bafa4374c6283118e5280316bda126b77deb | 9030481ef925278a174cbbf58c74bc5058e8d302 | /qa/rpc-tests/test_framework/mininode.py | c86069db4c39dfdafcb8d8d8369fdccfad7c53ca | [
"MIT"
] | permissive | hideoussquid/aureus-13-gui | 1b8f85f262cbc1970c3d8072b064956073bc4182 | 8865c958ba1680d4615128dabcc3cc4d47a24c51 | refs/heads/master | 2021-01-19T08:22:45.795165 | 2017-04-26T07:34:19 | 2017-04-26T07:34:19 | 87,622,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,142 | py | #!/usr/bin/env python3
# Copyright (c) 2010 ArtForz -- public domain half-a-node
# Copyright (c) 2012 Jeff Garzik
# Copyright (c) 2010-2016 The Aureus Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# mininode.py... | [
"thesquid@mac.com"
] | thesquid@mac.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.