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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a88c325b9283e08c350f9e2d585d2e6bef8876f6 | 92a6b3dfbaa5ee932b7ecebcb5dad66c878163d5 | /tensorflow_all_code/RNN_tf.py | 8eeb0d3d2689379c878b7c8e11d7ec0b218c318c | [] | no_license | Color4/2017_code_updata_to_use | c99e9cf409904531813e69e5106b4650a1863979 | a531d2b61d6984b4101af68bf1e54783d5e0843b | refs/heads/master | 2020-03-31T20:14:34.366303 | 2018-10-08T04:58:10 | 2018-10-08T04:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,747 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
# set random seed for comparing the two result calculations
tf.set_random_seed(1)
# this is data
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
# hyperparameters
lr = 0.001
training_iters = 100000
batch_size = 128
n_in... | [
"zhangp@origimed.com"
] | zhangp@origimed.com |
4e6fc669eee1d908cb8b58702dd9991fae0ad964 | 857fc21a40aa32d2a57637de1c723e4ab51062ff | /FishCDailyQuestion/ex001-010/Python3_008/008_05.py | 3d4903f05506c73039c6cca6466ba4b87575d105 | [
"MIT"
] | permissive | YorkFish/git_study | efa0149f94623d685e005d58dbaef405ab91d541 | 6e023244daaa22e12b24e632e76a13e5066f2947 | refs/heads/master | 2021-06-21T18:46:50.906441 | 2020-12-25T14:04:04 | 2020-12-25T14:04:04 | 171,432,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!/usr/bin/evn python3
# coding:utf-8
from math import sqrt
def is_prime_num(num):
for i in range(2, int(sqrt(num))+1):
if num % i == 0:
return False # 非素数,返回 False
return True # 是素数,返回 True
count = 0
for i in range(100, 201):
if is_prime_num(i):
print(i, end=' ')
c... | [
"18258788231@163.com"
] | 18258788231@163.com |
bf568aeeb84e2762929c38c271b9b41462240c12 | 95c6d7e2c5d3b9068d252214662a6980a53590fa | /python3/91.decode-ways.295655288.ac.py | 180810c9ae3f2ef1969889aaf2ba22eb92ca7b85 | [
"MIT"
] | permissive | Diego-Zulu/leetcode_answers | ec0f944b776c3eb5deb7897565d8609bf879af98 | ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4 | refs/heads/master | 2022-07-13T02:35:51.202284 | 2020-05-17T16:00:34 | 2020-05-17T16:00:34 | 264,072,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | #
# @lc app=leetcode id=91 lang=python3
#
# [91] Decode Ways
#
# https://leetcode.com/problems/decode-ways/description/
#
# algorithms
# Medium (24.05%)
# Likes: 2368
# Dislikes: 2594
# Total Accepted: 372.5K
# Total Submissions: 1.5M
# Testcase Example: '"12"'
#
# A message containing letters from A-Z is being ... | [
"diego_i_zuluaga@outlook.com"
] | diego_i_zuluaga@outlook.com |
94bca3917e46b8385cb1f7c41ec664000db6526a | 8163d8f03aea22cb4fa1e60d809781049fff4bb4 | /authentication/first/urls.py | 61dc1e8b76e2fda024057ad534b7211c76f2c068 | [] | no_license | shubham454/Django-Devlopment | 694b973d31a82d2ded11f95138bd766130d7d3c9 | 43a2c3b98dbe9f582f2394fcfb3beb133c37b145 | refs/heads/master | 2022-12-04T14:34:05.093402 | 2020-08-13T18:35:33 | 2020-08-13T18:35:33 | 287,353,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.urls import path
from first import views
urlpatterns=[
path('register/',views.user_register),
path('empregister/',views.emp_register),
path('login/',views.authenticate_user),
path('emplogin/',views.auth_employee),
]
| [
"moreshubham203@gmail.com"
] | moreshubham203@gmail.com |
73652d720da020085a5a118ddeb2a9f019d3d8e7 | 35bb910c187b6e846e01dc9d955d538515d7a457 | /insta/settings.py | d9979e37e1103ef8cdff1e9ed81c259154673a67 | [
"MIT"
] | permissive | Kihara-tony/Instagram | 26a2703a38348bbc86956f76ffc22e73b6789350 | 467a9aded66480878d5a68df77079eb9dda5fc3a | refs/heads/master | 2022-12-21T14:37:11.804045 | 2019-08-07T10:11:41 | 2019-08-07T10:11:41 | 198,766,540 | 0 | 0 | null | 2022-12-08T05:56:51 | 2019-07-25T05:55:24 | Python | UTF-8 | Python | false | false | 4,648 | py | """
Django settings for insta project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
imp... | [
"tonykiharatonkin@gmail.com"
] | tonykiharatonkin@gmail.com |
5eefc06dcabed4d3f462bff1e48cc9e75c5dea17 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2540/60623/314123.py | 70e32ad367cecf06dc9874bfa2a43185dad75e42 | [] | 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 | 275 | py | a=input().split()
size=int(a[0])
l=[]
for i in range(size):
t=input()
l.append(t)
if l==['1 5 2', '13 14 1', '5 8 3']:
print(6)
elif l==['1 5 2', '13 14 1', '5 8 3', '8 14 2', '14 15 1', '9 12 1', '12 15 2', '4 6 1']:
print(13)
print(a)
else:
print(l) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
26243ee07542c749d35816708db0e5b1a43b5ffa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03059/s632640098.py | 45a311ff0ff5d3192904a348f29145a64fdf7295 | [] | 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 | 57 | py | a,b,t = map(int, input().split())
n = int(t/a)
print(n*b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fdbda6d04fd02cf877fbe54da06b57634d32d4dc | ca8b840405601e4cde66ec9b98854f829f1bdd5c | /homeschool/notifications/models.py | 350e9ee2b13c95a5545b605b5238046ce510de76 | [
"MIT"
] | permissive | mblayman/homeschool | 5689f02fb4ef30286145d48688bd780f00bc0fd6 | ebc4ae4812d4128e5e79d0885767c8620f7b1c6a | refs/heads/main | 2023-08-07T19:24:48.367045 | 2023-08-03T03:22:00 | 2023-08-03T03:22:00 | 219,647,036 | 219 | 58 | MIT | 2023-09-11T22:39:48 | 2019-11-05T03:10:35 | Python | UTF-8 | Python | false | false | 1,125 | py | from django.conf import settings
from django.db import models
class Announcement(models.Model):
"""For making product announcements"""
class AnnouncementStatus(models.IntegerChoices):
PENDING = 1
ANNOUNCED = 2
status = models.IntegerField(
choices=AnnouncementStatus.choices, defa... | [
"matthewlayman@gmail.com"
] | matthewlayman@gmail.com |
43f85fe0f5bf275a7d3a3a8d6ddf0c6cc0344536 | 92af0d7e1d0c6b17e80ee249bb133d8e1f1c7852 | /ABC121/B.py | 31e914a4e15b023409ca82797aff7dfcf3094e44 | [] | no_license | ohshige15/AtCoder | 6157089f4672d8497789db02db3bfce334ec0152 | c0d1e979631d9df62e70a2b1066bc670fccae1ec | refs/heads/master | 2020-04-23T03:25:43.325538 | 2019-09-19T11:18:57 | 2019-09-19T11:18:57 | 170,878,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | N, M, C = map(int, input().split())
B = list(map(int, input().split()))
As = [list(map(int, input().split())) for _ in range(N)]
num = 0
for A in As:
s = sum([a * b for a, b in zip(A, B)]) + C
if s > 0:
num += 1
print(num)
| [
"satoshi.o.xxx@gmail.com"
] | satoshi.o.xxx@gmail.com |
a9d1bab3a8f173b71660fa46ef198e658cd2e779 | 0eb599c3bbfa6e5b31516913b88cc9db3a1311ce | /ABC_6q/abc135c.py | 6c541b1523549d5e47917bfe2e2d6882b3cce0a0 | [] | no_license | Linus-MK/AtCoder | 5b84dc88c2d2773d0f97ed18265d303290da7879 | a587e89a9e0c2ab4d36b09176bcc95e901e14326 | refs/heads/master | 2022-11-25T05:37:12.148722 | 2022-11-17T16:04:10 | 2022-11-17T16:04:10 | 169,840,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | n = int(input())
aa = list(map(int, input().split()))
bb = list(map(int, input().split()))
ans = 0
for i in range(n):
t1 = min(aa[i], bb[i])
aa[i] -= t1
bb[i] -= t1
ans += t1
t2 = min(aa[i+1], bb[i])
aa[i+1] -= t2
bb[i] -= t2
ans += t2
print(ans) | [
"13600386+Linus-MK@users.noreply.github.com"
] | 13600386+Linus-MK@users.noreply.github.com |
7754cb3618149b39bbd1c1edd8ea3e5ed1bd50ee | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /Codeforces/CR587/probA.py | 1c79df83bc8b76670a7399151e0f6041c75611af | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | N = int(input())
S = list(input())
k = N//2
ans = 0
T = ''
for i in range(k):
if S[2*i] == S[2*i+1]:
ans += 1
T += 'ab'
else:
T += S[2*i] + S[2*i+1]
print(ans)
print(T) | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
def6d1559a5b854a03e9482c48f1851a3b8216bf | 8702ccb740ec58eef0dabb4f88b491ce72a1d29e | /src/ims/store/export/test/__init__.py | 5c2a50a7b63d5e41c0d7c99eef1a0ad9533cef74 | [
"Apache-2.0"
] | permissive | burningmantech/ranger-ims-server | fc08ff01f4b77b82e20cea3a6df179221df01021 | b3f9e8ab5731ba395a5c935b3df38da1b7801070 | refs/heads/master | 2023-09-04T07:34:57.764114 | 2023-08-17T01:16:37 | 2023-08-17T01:16:37 | 21,069,603 | 30 | 7 | Apache-2.0 | 2023-09-11T03:58:08 | 2014-06-21T13:53:58 | Python | UTF-8 | Python | false | false | 733 | py | # -*- test-case-name: ranger-ims-server.store.sqlite -*-
##
# See the file COPYRIGHT for copyright information.
#
# 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/... | [
"wsanchez@wsanchez.net"
] | wsanchez@wsanchez.net |
8adccaa959d9bda69938171f8b0fe0efe9a1c79c | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/brennivin/nicenum.py | cbc43e1f64c190fcf3b37e8cc35fa597c43b9801 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,832 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\brennivin\nicenum.py
import math as _math
def format(num, precision):
accpow = _math.floor(_math.log10(precision))
if num < 0:
digits = int(_math.fabs(num / pow(10, accpow) - 0.5))
else:
dig... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
b8877d215d517d17fef587fca6c84f971775cb87 | c5631add230ed1a5b90c7fdcfeeabd91abadb76a | /tests/test_base.py | d2daf065e9634e69839de3de54dd941b96ece1b6 | [
"BSD-2-Clause"
] | permissive | gitter-badger/stories-1 | 323394d3ba9caa522414fbfdb9e778a3af4f1452 | f5970eb70a2862b129cc783010ac75be018dc228 | refs/heads/master | 2020-04-04T20:51:59.052787 | 2018-10-30T08:03:56 | 2018-10-30T08:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,805 | py | import examples
import pytest
from stories import Failure, Result, Skip, Success
from stories.exceptions import FailureError
def test_empty():
result = examples.Empty().x()
assert result is None
result = examples.Empty().x.run()
assert result.is_success
assert not result.is_failure
assert re... | [
"proofit404@gmail.com"
] | proofit404@gmail.com |
545fd656f87d827ca3c51ee9147fd42fe798d8ac | 8ce645a48278740002a4226fdb7209c214c2b182 | /Internet/Stack+Queues+Heaps/queue.py | 3edbbcb31915f23b570df5afb566bd0a6515f4bd | [] | no_license | mohammedjasam/Coding-Interview-Practice | 52add41c419ef6d985c026c266a047e17b062102 | 485f99dc52c6a90b1ed961f2ec5da4aac6a9e998 | refs/heads/master | 2021-08-19T07:21:09.452228 | 2017-11-25T05:49:23 | 2017-11-25T05:49:23 | 106,201,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | class queue:
q = []
def lenq(self):
return len(self.q)
def enq(self, a):
self.q.append(a)
def deq(self):
if self.lenq() >= 1:
x = self.q[0]
del self.q[0]
return x
else:
print("No more elements")
q = queue()
print(q.lenq(... | [
"mnqnd@mst.edu"
] | mnqnd@mst.edu |
8cd89a0ecf7d04d35d6cf808dce99e339f56081f | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/redhatopenshift/latest/_inputs.py | 0411394e9774b0471cd017165e33c02732a6085b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 14,804 | 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
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
fa1a1195d4bc0128c652b301aedfa640bfd934cd | 696e35ccdf167c3f6b1a7f5458406d3bb81987c9 | /content/test/gpu/gpu_tests/pixel_test_pages.py | a89697c8ed92b8b2b127bce3746302b5226b543e | [
"BSD-3-Clause"
] | permissive | mgh3326/iridium-browser | 064e91a5e37f4e8501ea971483bd1c76297261c3 | e7de6a434d2659f02e94917be364a904a442d2d0 | refs/heads/master | 2023-03-30T16:18:27.391772 | 2019-04-24T02:14:32 | 2019-04-24T02:14:32 | 183,128,065 | 0 | 0 | BSD-3-Clause | 2019-11-30T06:06:02 | 2019-04-24T02:04:51 | null | UTF-8 | Python | false | false | 42,957 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
class PixelTestPage(object):
"""A wrapper class mimicking the functionality of the PixelTestsStorySet
from the old-style GPU tests.
"""
d... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
7f2825d96af1e6c8340a3c8717b0c4f9df571f50 | ea048a527a9930800090ee3dd4b311fc169e2f3e | /src/jpl/labcas/__init__.py | a95a548d81b7e3ab4a6d7a139639e1d1adcc74d8 | [
"Apache-2.0"
] | permissive | EDRN/labcas-downloader | 4d8de4deeae8f55b79b64ec0986b68c345101d43 | 2138ef62cccf5e4f20e8675eaef4f3b81995099c | refs/heads/main | 2023-08-16T06:20:33.564863 | 2021-10-14T00:24:08 | 2021-10-14T00:24:08 | 416,937,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | # encoding: utf-8
'''🔬 LabCAS namespace.'''
__import__('pkg_resources').declare_namespace(__name__)
| [
"kelly@seankelly.biz"
] | kelly@seankelly.biz |
f6a2fe57511ccd88624b4d8fa9fc5b93e14ee86d | 8537ecfe2a23cfee7c9f86e2318501f745078d67 | /Practise_stuff/loops/o_for_loop_with_range.py | 60de1e1223784b9a4d562620b96996b23056ba79 | [] | no_license | oolsson/oo_eclipse | 91d33501d9ed6c6b3c51bb22b635eb75da88e4e1 | 1828866bc4e1f67b279c5a037e4a6a4439ddb090 | refs/heads/master | 2021-01-01T20:17:12.644890 | 2015-11-30T09:49:41 | 2015-11-30T09:49:41 | 23,485,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | '''
Created on Dec 25, 2011
@author: oo
'''
for i in range(-3,3):
if i == -1:
print(i, 'pythons')
elif i < 3:
print(i, 'pyts')
| [
"o.h.olsson@gmail.com"
] | o.h.olsson@gmail.com |
d55e6566299c8b068f8c8e99fffe69de82c6138b | 487a06977d1bebe81ed48ebc9d05b71ae7ecaa2e | /scripts/ClusterMarkerGraphEdgeOrientedReads.py | 93d95b2f81627c0f5687a979e1d758f4ce34a941 | [
"BSD-3-Clause-Open-MPI",
"MIT",
"Zlib",
"LicenseRef-scancode-public-domain"
] | permissive | rlorigro/shasta | c0da406bdb84f3ad77115095f4a151d8b21db2cc | 0a8b4439f5ce2e134a94da3ee6376b41fbf44a1c | refs/heads/master | 2022-05-06T18:21:51.163415 | 2022-04-07T18:53:51 | 2022-04-07T18:53:51 | 157,905,061 | 2 | 2 | MIT | 2018-11-16T18:17:04 | 2018-11-16T18:17:04 | null | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/python3
import shasta
import GetConfig
import argparse
parser = argparse.ArgumentParser(
description='Cluster the oriented reads of a marker graph edge based on their sequence.')
parser.add_argument('edgeId', type=int)
parser.add_argument('errorRateThreshold', type=float)
arguments = parser.parse_args(... | [
"paoloczi@users.noreply.github.com"
] | paoloczi@users.noreply.github.com |
a474bc65a8ef50fb90d5eb3ed8327d78ce3af361 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /2nx4JCytABfczdYGt_11.py | d83c10a980dbfd2be15ec0ff3414bd288a3c70b2 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py |
def conjugate(verb, pronoun):
def get_pronoun(num):
prodict = {1 : "Io",2 : "Tu" ,3 : "Egli" ,4 : "Noi",5 : "Voi",6 : "Essi"}
return prodict.get(num)
def get_suffix(num):
sufdict = {1 : "o",2 : "i" ,3 : "a" ,4 : "iamo",5 : "ate",6 : "ano"}
return sufdict.get(num)
body = verb[:-3]
if body[-1] ==... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
658f30ab74debb8c2cc6b7c653f501c83e52939b | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn12 - krozisca/M-17065-2465.py | d4d1e45dd5aa6adb1ef0f30207adbfcdfaa9956e | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,234 | py | def preberi(ime_datoteke):
krozisca = {}
with open(ime_datoteke, 'r') as datoteka:
for index, vrstica in enumerate(datoteka.readlines()):
index += 1
elementi = [int(element) for element in vrstica.strip().split(' ')]
krozisca[index] = elementi
... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
21b4bbfcffb75194adb2534b39237ab694677e35 | 4855a73f552c79f9123990a66b4fd29f829cd07d | /JZOffer/JZOffer32_3.py | 33bcca9bfc0927d1063495082b696ebf33aec0d8 | [] | no_license | EmlynQuan/Programming-Python | e2d47de71c4d5981b79bba3b4bf9ac9cf7115484 | 11bbc8aa58b5f16d7cfadd30c7eea241e6dd7bdd | refs/heads/master | 2023-06-24T06:50:27.255834 | 2021-07-29T15:47:50 | 2021-07-29T15:47:50 | 362,500,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # coding=utf-8
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def levelOrder(root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
if root == None:
return []
ret = [[]]
queue = [root]
counter, ne... | [
"2569627904@qq.com"
] | 2569627904@qq.com |
c477c1f39eaf74b3c12478e27e37a07f77f1b5aa | 60a1405cd6343ab55c1c85f20c80e6f771f93dac | /main.py | 69ffa74a3a18eef091da0e74f494f6a1a0e487f6 | [] | no_license | handwriter/pra-pra-chrest | eb27c76c8b6d400322cb3d0b2d1c8224b32b5207 | 7c2a24cd8118c07a8ff429080b05f5957c8f2322 | refs/heads/master | 2021-04-05T00:26:48.458466 | 2020-03-19T13:10:38 | 2020-03-19T13:10:38 | 248,506,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | import pygame
a = input('Первым ходит (x, o): ')
pygame.init()
size = width, height = 600, 800
screen = pygame.display.set_mode(size)
running = True
screen.fill((0, 0, 0))
class Board:
def __init__(self, width, height, rect, pos, first_step):
self.width = width
self.step = first_st... | [
"62296664+handwriter@users.noreply.github.com"
] | 62296664+handwriter@users.noreply.github.com |
4113a3572bd4cdd6d9c8f87caae5ad57c85beffb | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2631/60793/277750.py | 68e6abf387470e9d3b3d79c70bb15d0cd520ef57 | [] | 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 | 1,274 | py | def max_nums(ls0: list) -> list:
max_num = -999
result1 = []
for j in range(0, len(ls0)):
if ls0[j] > max_num:
result1 = [j]
max_num = ls0[j]
elif ls0[j] == max_num:
result1.append(j)
return result1
def diff_elem_num(ls1: list, ls2: list) -> int:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d95d2f3fd951afc502cb17966a742defc8909dec | 9a8ac4e1f1990cbd5cb7d76fc6768b26280c124a | /keras/layers/preprocessing/benchmarks/bucketized_column_dense_benchmark.py | 84f7927e18b060cc2d62e5190bdfecddb8509957 | [
"Apache-2.0"
] | permissive | harishsg99/keras | 638123cee88309bdc0da8e297cf63a401db2dd35 | 323567d2ffa766b9a2515d22f04519db1cb047dd | refs/heads/master | 2023-07-15T01:47:44.919895 | 2021-08-24T08:43:39 | 2021-08-24T08:43:39 | 399,004,570 | 0 | 0 | NOASSERTION | 2021-08-23T07:01:27 | 2021-08-23T07:01:05 | null | UTF-8 | Python | false | false | 2,761 | py | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
58a027f594699eb8884c95cd67ce81203763ba4f | f4885370e8350411d2bdf6639b2df5cd6f39c77b | /project_name/settings/base.py | e3c0c600d72cc561b51e98a3f6ac1c03942cee08 | [
"MIT"
] | permissive | vituocgia/django-project-template | 1c9b3f8ed6f64a4a2341e7da1fbf7becc8841333 | 31f549b49d9f97725eb2c3496004d4cb27a5722a | refs/heads/master | 2022-12-08T21:10:08.626926 | 2018-04-06T06:44:56 | 2018-04-06T06:44:56 | 128,358,450 | 0 | 0 | MIT | 2022-12-07T23:45:40 | 2018-04-06T06:44:31 | Python | UTF-8 | Python | false | false | 4,926 | py | """
Project main settings file. These settings are common to the project
if you need to override something do it in local.pt
"""
from sys import path
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
# PATHS
# Path containing the django project
BASE_DIR = os.path.dirname(os.path.dirna... | [
"dotiendiep@gmail.com"
] | dotiendiep@gmail.com |
58f5886c42506ec024b465f7a61fb89838ec455a | 97181bd72f65cb348a5331858d0e5e6708d1ffd9 | /__main__.py | cf417f63b1ff3534f234316ab6b61f0ea1fb9bd7 | [] | no_license | wangyibin/TDGP | 965adeb1d747b949e4e21080dd99408cdb84ba82 | 0b137d7b5fe4d26dac89e91f43583c69b943b1f8 | refs/heads/master | 2022-10-04T05:40:06.089546 | 2022-09-05T07:20:35 | 2022-09-05T07:20:35 | 187,630,451 | 4 | 5 | null | 2021-04-16T07:13:39 | 2019-05-20T11:49:48 | Python | UTF-8 | Python | false | false | 199 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
TDGP, the libraries of Three Dimension Genome Pipeline.
"""
from .apps.base import dmain
if __name__ == "__main__":
dmain(__file__, 'module')
| [
"738339463@qq.com"
] | 738339463@qq.com |
d73fdb7704ec511b66f7511b66176a6f2206a55c | 809441b9755cb9bdb723f06aa58318e121c659ff | /Alpha/Alpha/hotel.py | 1011912c5f50aaab4e369edad4b98e89c73462a7 | [] | no_license | Jia-Jingnan/AwesomePython | c99898bb2a79ad759cee41412654b46a4da8cca6 | 96f9f0df702086fb37467cf24be955c875be9b34 | refs/heads/main | 2023-06-14T04:40:38.080297 | 2021-07-13T10:07:30 | 2021-07-13T10:07:30 | 377,259,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # coding=UTF-8
# while控制循环
# 语法:while 条件表达式:
# 代码块
# 执行规律:先判断while 后面的条件表达式是否成立
# 如果为true 执行代码块,执行完毕之后,继续判断,如果为true,执行代码块
# 否则不进入代码块
# 条件,空数据为false,非空数据为true
i = 0
sum = 0
while i < 101:
sum += i
i += 1
print(sum)
# while与if搭配使用, break ,contiue
| [
"875480307@qq.com"
] | 875480307@qq.com |
3291380442f55479f6a5b0ec0e118935a7b89738 | da8ed0e5044261998a1e70df99041b09edea872a | /enlp/lexicon/liu.py | 7d7f5642b928edb3ee73a9f378638a1fb7a24417 | [] | no_license | pengyuange/opminreplicability | f18a59828566c942fc61ed4b5f9e375060ce4da1 | 622693f7fb3daa01b1062f2fef61af2b66b64e89 | refs/heads/master | 2021-06-14T20:08:28.161093 | 2017-03-23T08:14:43 | 2017-03-23T08:14:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from os import path
from ..settings import CORPORA_PATH
OPINION_LEXICON_PATH = path.join(CORPORA_PATH, 'lexicon')
class LexiconWord(object):
def __init__(self, string, orientation):
self.string = string
self.orientation = orientation
class OpinionLexic... | [
"edison_marrese@hotmail.com"
] | edison_marrese@hotmail.com |
562b07ce9379c8f49a542f2a30dea5c1db6410bd | c632e6ba36598f34e6336d1cb5e2411c1e571da8 | /r3ndom-67k/grader.py | 05a072289ebf64785cbce548d7383ae2bc35e719 | [] | no_license | adbforlife/easyctf-2017-problems | 0f7e229d884d6d66c3d0ae1226e2e2e1826d4c17 | c19872a88080845fa4c5ac51a45ddaffbf40690b | refs/heads/master | 2021-01-22T23:34:09.525637 | 2017-03-21T03:30:53 | 2017-03-21T03:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | def grade(random, key):
if key.find("double_you_tee_eff?so_mAny_b1ns") != -1:
return True, "Correct!"
return False, "Nope." | [
"failed.down@gmail.com"
] | failed.down@gmail.com |
abda27eda0350008d0fde4e7939b987c15e11b12 | 5c13e8098e957038086ae6f85a2f116383b21372 | /manage.py | 4f3e815250b01dad027e81346069f845285643af | [] | no_license | shahrukh-alizai/test-model-rename-24 | 1f83e67f82c4a1587e6539c25ed7ddfecc7d5a6c | d4a3dd030df3ef110aa00ea2dac199a9a04e56d5 | refs/heads/master | 2022-12-03T02:54:25.724933 | 2020-08-11T11:30:14 | 2020-08-11T11:30:14 | 286,391,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_model_rename_24.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"shah@crowdbotics.com"
] | shah@crowdbotics.com |
1e9c05760576656dcc78f08f3609ac6cbf315b07 | 67553d46a257631810f394908013b82c337e0fbd | /goat/chapter05/5.3/local_function_test.py | 9ff50bc021f24988d93e61266964d11d847d7bbe | [] | no_license | bopopescu/goat-python | 3f9d79eb1a9c2733345d699c98d82f91968ca5fa | c139488e2b5286033954df50ae1ca834144446f5 | refs/heads/master | 2022-11-21T11:25:27.921210 | 2020-03-06T01:02:57 | 2020-03-06T01:02:57 | 281,066,748 | 0 | 0 | null | 2020-07-20T09:00:08 | 2020-07-20T09:00:08 | null | UTF-8 | Python | false | false | 761 | py | # coding: utf-8
# 定义函数,该函数会包含局部函数
vdef get_math_func(type, nn) :
# 定义一个计算平方的局部函数
def square(n) : # ①
return n * n
# 定义一个计算立方的局部函数
def cube(n) : # ②
return n * n * n
# 定义一个计算阶乘的局部函数
def factorial(n) : # ③
result = 1
for index in range(2, n + 1) :
r... | [
"34465021+jwfl724168@users.noreply.github.com"
] | 34465021+jwfl724168@users.noreply.github.com |
0d22b2e755379b5a6a7af98abbbd36d0831ba977 | f282599a4e08c16ebf873963cdb9fd967bca9f48 | /Events/Eventos/models/eventos.py | 20d774eddcdefe9beaeeaa071b6bf60c6b4c4c89 | [] | no_license | EventsAPI/API | 1086ae3bf4dc42c9e84f493d1f121ee7ee53f1c2 | e3fb66e9a90e8866d5e4d9ebec2bceba287acba8 | refs/heads/recu | 2021-01-14T02:38:31.995301 | 2020-06-12T04:39:46 | 2020-06-12T04:39:46 | 242,570,820 | 0 | 2 | null | 2020-06-18T01:12:43 | 2020-02-23T18:41:07 | Python | UTF-8 | Python | false | false | 1,016 | py | from django.db import models
class Eventos (models.Model):
ACTIVO = 1
INACTIVO = 3
ESTADO = (
(ACTIVO, 'Evento activo'),
(INACTIVO, 'Evento inactivo')
)
afiche = models.ImageField(
'afiche del evento',
upload_to='eventos/afiche/',
blank=True,
... | [
"luisrijhn09@gmail.com"
] | luisrijhn09@gmail.com |
abfdf93fe2a27fa23b73adeb7d02ce5e2fe48279 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_whitings.py | 6cba1b6244e6149c73b384526922ced8233d744c | [
"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 | 226 | py |
#calss header
class _WHITINGS():
def __init__(self,):
self.name = "WHITINGS"
self.definitions = whiting
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['whiting']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c0bc69057e8397b598dc35e5c1c79950cdb36fe3 | 67be8d282abd8d7abb92f8227a09cb636f4e4cad | /DM_RFGAP_4/From ~2/RFGap.py | d26a17802dd9f29ee5e0be274f1ce778a1cf8d89 | [] | no_license | iABC2XYZ/abc | 3b6b1e9fc7c9a472aa6fc8c0bb71188061fb89e0 | 13386cf2079113127a6f44d53beb9153b252fe9a | refs/heads/master | 2020-12-30T11:03:07.611408 | 2017-12-04T04:42:01 | 2017-12-04T04:42:01 | 98,806,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 31 22:10:38 2017
Author: Peiyong Jiang : jiangpeiyong@impcas.ac.cn
Function:
RFGap
__________________________________________________
K,dE=RFGap()
"""
from InputBeam import qParticle,massMeV,mParticle
from Constants import pi
from BetaG... | [
"jiangpeiyong10@mails.ucas.ac.cn"
] | jiangpeiyong10@mails.ucas.ac.cn |
fa772a5697d61459fa8eba580f300a7cdadf6f8c | f47863b3a595cbe7ec1c02040e7214481e4f078a | /plugins/scan/xuezi_ceping/2378.py | c0ac3aab5fe7d9c800526d9e27d616ccf9f83c87 | [] | no_license | gobiggo/0bscan | fe020b8f6f325292bda2b1fec25e3c49a431f373 | 281cf7c5c2181907e6863adde27bd3977b4a3474 | refs/heads/master | 2020-04-10T20:33:55.008835 | 2018-11-17T10:05:41 | 2018-11-17T10:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | #!usr/bin/env python
# *-* coding:utf-8 *-*
'''
name: 学子科技诊断测评系统多处未授权访问
author: yichin
refer: http://www.wooyun.org/bugs/wooyun-2010-0138025
description:
http://**.**.**.**/ceping/HouAdmin/GLComUser.aspx
http://**.**.**.**/ceping/HouAdmin/GL_Shitileibie.aspx
http://**.**.**.**/ceping/HouAdmin/GL_PingFen.as... | [
"zer0i3@aliyun.com"
] | zer0i3@aliyun.com |
c1a8d0bc798b077ab5ca202ef635b359ae12f66e | 09a86cc4041a7104f4c57b3e6f83537fa7928f77 | /week2/demo/demo/settings.py | b53744a53c99bd8f07f6a9f696353486182a3171 | [] | no_license | bobur554396/BFDjango2018FALL | 8a13d57e2937942d3f6a0d307ec443da44b368c8 | 7bbbaf6bed38f9b3844e9480991939a546e71a5e | refs/heads/master | 2021-08-20T09:48:28.694021 | 2018-11-19T03:45:17 | 2018-11-19T03:45:17 | 147,153,107 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | """
Django settings for demo project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
431a231980ad6609ba0fe68ea6908d3d14aeabc4 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/ilenok/c.py | c354f4f042d63d4762c7bb365b5156f98f9b6f49 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 753 | py | from math import *
def to_base(s, b):
res = 0L
for c in s:
res = res * b + int(c)
return res
inf = open("c.in", 'r')
outf = open("c.out", 'w')
t = int(inf.readline())
for tc in xrange(0, t):
outf.write("Case #" + str(tc + 1) + ":\n")
n, j = map(int, inf.readline().split())
min_k = 1L
for i in xrange(1... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
ba05bd06d916d8e2a71c810c5fd4c457edaf367f | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WW/FullRunII/Full2017_v9/jetpt1/cuts.py | b81682cc2ee30ba4e5bbbc26778cface347caa93 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 1,052 | py | # cuts
supercut = ' mll>12 \
&& Lepton_pt[0]>25 \
&& Lepton_pt[1]>20 \
&& (nLepton>=2 && Alt$(Lepton_pt[2],0)<10) \
&& abs(Lepton_eta[0])<2.5 && abs(Lepton_eta[1])<2.5 \
&& ptll>30 \
&& PuppiMET_pt > 20 \
&& (Lepton_pdgId[0]*Lepton_pd... | [
"Susan.Dittmer@cern.ch"
] | Susan.Dittmer@cern.ch |
3c05512991b627cd332b7b6bea7378784c1dc73f | b0dd7779c225971e71ae12c1093dc75ed9889921 | /tools/build/v2/test/core_update_now.py | e067616d55e501c039eb782e5392fd9715514e6b | [
"LicenseRef-scancode-warranty-disclaimer",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | blackberry/Boost | 6e653cd91a7806855a162347a5aeebd2a8c055a2 | fc90c3fde129c62565c023f091eddc4a7ed9902b | refs/heads/1_48_0-gnu | 2021-01-15T14:31:33.706351 | 2013-06-25T16:02:41 | 2013-06-25T16:02:41 | 2,599,411 | 244 | 154 | BSL-1.0 | 2018-10-13T18:35:09 | 2011-10-18T14:25:18 | C++ | UTF-8 | Python | false | false | 3,480 | py | #!/usr/bin/python
# Copyright 2011 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
import BoostBuild
import os
def basic():
# Basic test
t = BoostBuild.Tester(pass_toolset=0, pass_d0=... | [
"tvaneerd@rim.com"
] | tvaneerd@rim.com |
76cb6528bfd60957c4692b603dc01fa48af3dbe4 | 7490d63c07eaf24a4427dbb9154ad1a3faf97af3 | /experiments/paper/compare_inference.py | abbf9cca19c43435b8116fba88d0e92673792fe2 | [
"MIT"
] | permissive | wesselb/gpcm | 123913cc5e280d85f94437264d07bca98b2e4f7c | 03e176f35947df6966823d0966631b65c6c35632 | refs/heads/master | 2023-03-16T10:14:01.907453 | 2023-03-06T20:50:41 | 2023-03-06T20:50:41 | 231,431,643 | 6 | 1 | MIT | 2023-02-11T00:40:19 | 2020-01-02T17:48:35 | Python | UTF-8 | Python | false | false | 6,158 | py | import time
import lab as B
import matplotlib.pyplot as plt
import numpy as np
import wbml.out as out
from gpcm import GPCM
from gpcm.approx import _fit_mean_field_ca
from stheno import EQ, GP
from varz import minimise_l_bfgs_b
from wbml.experiment import WorkingDirectory
from wbml.plot import tweak, pdfcrop, tex
cl... | [
"wessel.p.bruinsma@gmail.com"
] | wessel.p.bruinsma@gmail.com |
351176faa16660daef4258e91d7540c49e70c6b0 | ec1fad1e16d24f51987acba26c1b4014cbed0e96 | /python/kfserving/kfserving/models/__init__.py | 7a65b966d202c056388eaa51b3848f83891ac062 | [
"Apache-2.0"
] | permissive | Jeffwan/kfserving | 4127b811fd9b778903c0c7572b0bc687e1997efd | 47a6303173dab27b157ca77c72d62b847d099d21 | refs/heads/master | 2020-06-05T03:06:11.606236 | 2019-10-06T01:47:10 | 2019-10-06T01:47:10 | 192,292,123 | 0 | 0 | Apache-2.0 | 2019-06-17T06:59:43 | 2019-06-17T06:59:41 | null | UTF-8 | Python | false | false | 2,510 | py | # Copyright 2019 kubeflow.org.
#
# 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,... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
94021aaba6947335a295564738b9ffd61a2f53d9 | 62e9fb33329fbefa89287e5bc343cb9c120306a1 | /spinoffs/oryx/oryx/core/primitive.py | b5ba7f1561ee5d70a54297d472cf9c2126b939ff | [
"Apache-2.0"
] | permissive | npfp/probability | 3c103d4b9d7a72d3d16eb79b1e4f648afbaca057 | 3911f4463cdcca6cc118633742430885fb0c88cb | refs/heads/master | 2022-05-01T14:23:40.504258 | 2022-04-07T20:08:45 | 2022-04-07T20:10:58 | 246,853,846 | 0 | 0 | Apache-2.0 | 2020-03-12T14:23:04 | 2020-03-12T14:23:03 | null | UTF-8 | Python | false | false | 8,156 | py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
76112989b1e3ea0102086052f6044fb614dc6d38 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /dp_transfer/train_linear_regression.py | 53e3b1a389643d8eee6b95c6c8019f80e55c946e | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 4,169 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
61144509481279b612118b5ce47f35b3e6ca3861 | ebcea394905df8222c257c8c6c469627a6e48095 | /PyQt5/object_detection/inference/detection_inference_test.py | 1ad6ced22917a6ed7c04c823e25db4b7f33db9ee | [] | no_license | valiok98/Python-Qt5-Tensorflow | 2773cfc2a0e569ed53cf3d90066885f17abe8c6a | e03ccc2884b687a36fbe47f5ff320837be3e217a | refs/heads/master | 2021-09-17T20:41:01.908602 | 2018-03-31T12:42:25 | 2018-03-31T12:42:25 | 103,644,683 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,404 | py | # Copyright 2017 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... | [
"valentin1998v@gmail.com"
] | valentin1998v@gmail.com |
1b1a602444416e097bda781c0655907472a963b1 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/sympy-1.0-py27_0/lib/python2.7/site-packages/sympy/polys/tests/test_injections.py | 813496419bd1fae36eeae04c1be430bc1160bec2 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,795 | py | """Tests for functions that inject symbols into the global namespace. """
from sympy.polys.rings import vring
from sympy.polys.fields import vfield
from sympy.polys.domains import QQ
from sympy.utilities.pytest import raises
# make r1 with call-depth = 1
def _make_r1():
return vring("r1", QQ)
# make r2 with cal... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
fdeeed7aa1768114a53fa0ca3c2a713af455d5d0 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/trafficselection_66888b2c9836f5766eaff6c15fe99c52.py | c7821b63b03f1b69a4d613e0ad713a5e6351d9ca | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,427 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
ef29a783d16001fbe2e8226d3186c5b64a230b69 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_earshot.py | fe91558435b163a74713c80667be94ffc542a27c | [
"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 | 379 | py |
#calss header
class _EARSHOT():
def __init__(self,):
self.name = "EARSHOT"
self.definitions = [u'the range of distance within which it is possible to be heard or to hear what someone is saying: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
d... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4e0ee6abf5f767a960c5a84509e85c9fdb526f6d | 373752bfcf8e71b1c08807149397ec9ff5dc887f | /picker/tests/games2015.py | f416d38665dfb8b61076cdd1a11d2984fc10828d | [
"MIT"
] | permissive | mkoistinen/picker | 63023a242a9bbae4d479a9f99077438497fedb81 | 345dffaac781f81490cfa207fb9b6e49f7ea7a85 | refs/heads/master | 2021-01-17T01:24:54.423711 | 2016-07-28T20:40:19 | 2016-07-28T20:40:19 | 64,621,838 | 0 | 0 | null | 2016-07-31T23:55:58 | 2016-07-31T23:55:58 | null | UTF-8 | Python | false | false | 23,090 | py | season = {
'season': 2015,
'schedule': [
[1, 'PIT', 'NE', (2015, 9, 10, 20, 30), 'NBC', 'Gillette Stadium, Foxboro'],
[1, 'GB', 'CHI', (2015, 9, 13, 13, 0), 'FOX', 'Soldier Field, Chicago'],
[1, 'KC', 'HOU', (2015, 9, 13, 13, 0), 'CBS', 'NRG Stadium, Houston'],
[1, 'CLE', 'NYJ', ... | [
"dakrauth@gmail.com"
] | dakrauth@gmail.com |
58f21a740f15d39082a8d7d16e4610aa63ba4cc7 | dfa1a1a263eab3ac8bbcb2a00297da7fc82bccfd | /src/binary-trees/construct-binary-tree-from-inorder-and-postorder-traversal-106.py | 0e1e4a420793a1b075765b7e97f623edfbc1a026 | [] | no_license | monpro/algorithm | 07e79e7a85ca9fe86fac0b3c740de2f2037f5e89 | a330e92191642e2965939a06b050ca84d4ed11a6 | refs/heads/master | 2021-07-01T03:49:59.040611 | 2020-08-25T12:36:54 | 2020-08-25T12:36:54 | 143,118,129 | 102 | 0 | null | 2020-05-31T04:22:46 | 2018-08-01T07:12:45 | Python | UTF-8 | Python | false | false | 593 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def buildTree(self, inorder, postorder):
if len(postorder) == 0 or len(inorder) == 0:
return None
root = TreeNode(postor... | [
"monproshen@gmail.com"
] | monproshen@gmail.com |
a1e42247ce5b1882b708cb4f047f51b1b0cfd949 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02384/s537454197.py | 60b9761d473b2cc18fa631763e5957a821cfd698 | [] | 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 | 455 | py | dice = list(map(int, input().split()))
mask = {
'N': (1, 5, 2, 3, 0, 4),
'R': (0, 2, 4, 1, 3, 5)
}
for i in range(int(input())):
a, b = map(int, input().split())
lim = 0
while dice[0] != a:
dice = [dice[x] for x in mask['N']]
lim += 1
if lim == 4:
dice = [d... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5626ebdbbb653bb20f2ad740bd80158fa3825c51 | fec36e7493a78575cd0320bf31c5080649863a06 | /src/factories/token.py | 7cd41ca33d7a0182cec841b70b5aec1ac0d832fc | [] | no_license | teimurjan/eye8-backend | 6f44e830dd17dcac8b23acc3b66b9918357f643b | bf0a4c894a5b3770fada269d8b4d7d72367ab1ba | refs/heads/master | 2023-06-30T01:34:38.358903 | 2021-06-23T10:06:29 | 2021-06-23T10:06:29 | 273,144,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | import datetime
from time import mktime
from src.models.user import User
import jwt
from flask import current_app as app
ACCESS_TOKEN_TYPE = "access"
REFRESH_TOKEN_TYPE = "refresh"
SIGNUP_TOKEN_TYPE = "signup"
class TokenFactory:
@staticmethod
def create(type_, entity: User):
if type_ == ACCESS_TOKEN... | [
"teymurgg321@gmail.com"
] | teymurgg321@gmail.com |
880a15c6116fec6cb78383f8db229c3072312745 | 973ac85842b01e373c48d161bf46c7c7e0e50227 | /Game7/Dinosaur.py | 321631f4d62e36b16b386d5e643cb80eb14f905f | [
"MIT"
] | permissive | splin85/Games | b652a050b905a2922849df21ff1262f8dedba6f1 | 41ebdf73e5523be15830334afc12f013b1d60323 | refs/heads/master | 2020-03-28T12:38:45.987129 | 2018-09-11T10:21:39 | 2018-09-11T10:21:39 | 148,318,954 | 1 | 0 | MIT | 2018-09-11T13:09:02 | 2018-09-11T13:09:02 | null | UTF-8 | Python | false | false | 2,382 | py | # 恐龙类
# 作者: Charles
# 公众号: Charles的皮卡丘
import pygame
# 恐龙类
class Dinosaur(pygame.sprite.Sprite):
def __init__(self, WIDTH=640, HEIGHT=500):
pygame.sprite.Sprite.__init__(self)
self.HEIGHT = HEIGHT
self.WIDTH = WIDTH
# self.imgs = ['./images/dinosaur/wait.png', './images/dinosaur/afraid.png', './images/dinosa... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
4f388f9a9c5c04b2c1787f357d6152b73c4453bd | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/check_point/mgmt/plugins/modules/cp_mgmt_install_software_package.py | 0915141ea5b36d5dea5150ec7cee8e720c8075cf | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 3,843 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Ansible module to manage CheckPoint Firewall (c) 2019
#
# Ansible 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 op... | [
"sifang@cisco.com"
] | sifang@cisco.com |
7e89a5e217806afe04d4df51de9b49d367f57861 | c6320735f140944d2c282729c008a7cf7cf1e98f | /python/kfserving/test/test_kfservice_client.py | b7b00adb9905b96bd469e641d84e2015db767011 | [
"Apache-2.0"
] | permissive | gipster/kfserving | 66d2dffd8917ba9029ca2e96f199e1f56df6e41b | bbd3da47a708403fb2a203e28955d5454bc2a1d5 | refs/heads/master | 2020-06-10T18:43:57.148347 | 2019-08-19T00:24:03 | 2019-08-19T00:24:03 | 193,709,786 | 0 | 0 | Apache-2.0 | 2019-06-25T13:08:50 | 2019-06-25T13:08:49 | null | UTF-8 | Python | false | false | 2,375 | py | from unittest.mock import patch
from kubernetes import client
from kfserving import V1alpha1ModelSpec
from kfserving import V1alpha1TensorflowSpec
from kfserving import V1alpha1KFServiceSpec
from kfserving import V1alpha1KFService
from kfserving import KFServingClient
KFServing = KFServingClient()
mocked_unit_resul... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
82a7df668eaf63976f33483eb46502591f46c260 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/dynatrace/azure-mgmt-dynatrace/generated_samples/monitors_get_vm_host_payload_minimum_set_gen.py | 39a5661d05d48e768f83902ae1a29e032c2edf70 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,642 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9fcd53a0c412aea97e8873c23190c021e703c4a1 | 99b784550a6d306147c022c8d829800b0fbb8c68 | /Part_1_Basics/Chapter_10_Files_Exceptions/exercise10_5.py | 4a2cdd918499a41bde1a4d0d9922b24ad1032df1 | [] | no_license | apuya/python_crash_course | 116d6598f656d8fed0b4184edbce8e996cd0f564 | 0b2e8a6e9849a198cfb251706500a919d6f51fe7 | refs/heads/main | 2023-06-03T22:41:03.203889 | 2021-06-16T04:07:28 | 2021-06-16T04:07:28 | 367,812,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # Python Crash Course: A Hands-On, Project-Based Introduction To Programming
#
# Name: Mark Lester Apuya
# Date:
#
# Chapter 10: Files And Exceptions
#
# Exercise 10.5 Programming Poll:
# Write a while loop that asks people why they like programming. Each time someone enters a reason, add their reason to
# a file that... | [
"contact@mapuya.com"
] | contact@mapuya.com |
2989af1f699159e7ede03df5fc8d58c187d937ed | 6208ab5ea0de51e1350c99f59c9ae7538909ded6 | /website/migrations/0013_remove_resource_logo_filename.py | 2c469c5e4c50b595e097b6eb193ee7ac65264376 | [] | no_license | katur/gunsiano | 1bc4f3b262889e963c787a4c1be83d0ace4dad5b | 8c16a2670fbb02360042a40bed4ab9831acaee1e | refs/heads/master | 2020-12-25T17:36:05.242981 | 2016-08-16T23:19:31 | 2016-08-16T23:19:31 | 9,655,637 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-26 16:57
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0012_resource_logo'),
]
operations = [
migrations.RemoveField(
... | [
"katherine.erickson@gmail.com"
] | katherine.erickson@gmail.com |
9c541ffb7edbc82eece5d15a9edf4ffe6bb3c9d7 | 645050387b6d65986490045696a23b99484bfb07 | /week-11/mixins/serializers.py | 91fbcf1e2d78e6fbbe912db3aa46fe18c3587f36 | [] | no_license | ViktorBarzin/HackBulgaria-Python | 73fd36299afd3fcbf5601c4a932780252db90001 | 7bae4528ded8ca3a33bb12c2a67123cc621d8b8f | refs/heads/master | 2020-12-25T15:08:23.345972 | 2017-06-07T01:19:36 | 2017-06-07T01:19:36 | 67,701,776 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | import json
import xml.etree.ElementTree as ET
class Jsonable(object):
serializable_types = (int, float, str, bool, None, list, tuple)
def to_json(self, indent=4):
data = self.__dict__
result = {'classname': type(self).__name__,
'data': {}}
for k, v in data.items():
... | [
"vbarzin@gmail.com"
] | vbarzin@gmail.com |
bb714875a5dc73f5966de83a6daf249563a1d1ba | d74abd04070f3397dbf08bd224afdc6540dfd2a5 | /word2vec/train_word2vec.py | 88ae5fd990e0cdc2a7219c9cf7be86009b90f9bb | [] | no_license | gombru/insFash | f92a447ffffbe717d1fcd35ae34c1fc1b6db7c6a | c557b4f45f4c63f8503020c83e73ac49465ce851 | refs/heads/master | 2021-08-30T00:58:21.957430 | 2017-12-15T12:55:13 | 2017-12-15T12:55:13 | 113,850,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py | from nltk.tokenize import RegexpTokenizer
from stop_words import get_stop_words
import gensim
import string
import glob
import multiprocessing
import json
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
cores = multiprocessing.cpu_count()
finetune = False
if... | [
"raulgombru@gmail.com"
] | raulgombru@gmail.com |
0527698f2e6caa528a85711fe3e3393fc45be88c | d315d2f2f206a3071333fad5cdccb10532d5d44e | /LSTM/utils.py | f6aecfbccde49ae16257955299ad7c4ed4062cc6 | [] | no_license | cycle13/RadarEnhancement | 681bac291431b5b6b0a975de625064c5871ae1d0 | 7de4d89d122f2734d60ccdde62cdd8df5a1ecba5 | refs/heads/master | 2023-03-17T10:04:30.762745 | 2019-06-16T06:45:44 | 2019-06-16T06:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | import torch
import numpy as np
import torch.nn.functional as F
from torch.autograd import Variable
from numba import jit
from math import exp
def cal_stat(train, real):
train[train*255.<0.5]=0
real[real*255.<0.5]=0
@jit(nopython=True)
def loop(train, real):
bsize, tsize, _, h, w= train.shape
a=0;... | [
"chrimerss@gmail.com"
] | chrimerss@gmail.com |
53b307e6a1ed4f3071435f052c602170d89b0bad | 7b6377050fba4d30f00e9fb5d56dfacb22d388e1 | /bin/processURR.py | ef348d75630714922f8bdec59273c3fe6c1dbc77 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/fudge | 0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370 | 6ba80855ae47cb32c37f635d065b228fadb03412 | refs/heads/master | 2023-08-16T21:05:31.111098 | 2023-08-01T22:09:32 | 2023-08-01T22:09:32 | 203,678,373 | 21 | 4 | NOASSERTION | 2023-06-28T20:51:02 | 2019-08-21T23:22:20 | Python | UTF-8 | Python | false | false | 5,036 | py | #! /usr/bin/env python3
# <<BEGIN-copyright>>
# Copyright 2022, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
import numpy
import argparse
from fudge import GNDS_file
from fudge import GNDS_formatVersion as GN... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
20962f0a6d062834a43d855c8f8b70dc63f615e0 | bf21b25c7efb433a00cddccb1a3bc0e11131944f | /hu_authzproxy/authz_proxy_validation_info.py | 65de8b7583fd0be6ab05c89d228d3e185cea2b23 | [] | no_license | raprasad/Django-HU-Pin-Auth | 8068abef4d0baf2aa3b4ed71ac9aee4134a564c9 | 006a1e8e7466bb0b982251922f5d04f33558a259 | refs/heads/master | 2021-03-12T19:24:06.937948 | 2013-12-06T16:03:21 | 2013-12-06T16:03:21 | 3,137,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py |
class AuthZProxyValidationInfo:
"""
Container for information needed to check an AuthZProxy url
request = Django request object containing the url as well as the client IP address
app_names = Registered app name or names to check. Use a list in case more than one legit app. e.g. ['FAS_DEPT_DB_... | [
"raman_prasad@harvard.edu"
] | raman_prasad@harvard.edu |
be9af32521ae69f584198299f4b8e20fbeff8d0e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03456/s810169054.py | 45696dff3e711b4369fa493305bd4b9ea0dfa4a9 | [] | 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 | 99 | py | ab = int("".join(input().split()))**0.5
if ab.is_integer():
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5ab396163b37c3f11cea50511d6456939001bdfd | 9e61ec2d50e0496183e5ec3fcfc7ccbf2c59880d | /tests/test_w3c_suite.py | 973117c3a074a75c1db61cd8a3c3d49292bef215 | [
"MIT"
] | permissive | rmr1154/xmlschema | e57dc1c6b0360109bb3db7d5c0929a4752693646 | acf21357088a7694f1dee4d65a22d65fdd5b4384 | refs/heads/master | 2022-10-12T02:51:17.533451 | 2020-06-12T16:27:36 | 2020-06-12T16:27:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,058 | py | #!/usr/bin/env python
#
# Copyright (c), 2016-2020, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Da... | [
"brunato@sissa.it"
] | brunato@sissa.it |
38a4e11306a084cf2ff88faf746edfe94684dff3 | c7e382b0738e762de4bc259787da5dc2b29c91f9 | /flappybird.py | 357dd81e0329ca0f4f2b516a5a6cb765ae8879fd | [] | no_license | HungManh642001/FlappyBird_Pygame | 87c19fc798326de035c29a4a3480fbadf31374ae | 344dddf756d171cb3942e24b085c460d63e683c1 | refs/heads/main | 2023-07-03T15:09:36.948171 | 2021-08-05T11:27:58 | 2021-08-05T11:27:58 | 393,009,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,667 | py | import pygame
from random import randint
pygame.init()
screen = pygame.display.set_mode((500, 600))
pygame.display.set_caption('Flappy bird')
GREY = (120, 120, 120)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
BLUE = (0, 0 , 255)
clock = pygame.time.Clock()
background_img = pygame.image.load('images/background.png')... | [
"="
] | = |
7489c62be0f6ab4525e2863eb8ddaadac36a6317 | 3d4ee6d45aeea45a871a906319c87a37e58ab6e0 | /samples/cloud-client/snippets/noxfile.py | e129dca59254defd05f0348948f1e1c80791ff83 | [
"Apache-2.0"
] | permissive | googleapis/google-auth-library-python | f004e920fa60b48c422f330f3a139d09d11caa12 | 7d453dc6408b908e24312a7bd3dc380ad43220be | refs/heads/main | 2023-09-04T08:59:25.209079 | 2023-08-31T21:38:16 | 2023-08-31T21:38:16 | 69,199,387 | 530 | 304 | Apache-2.0 | 2023-09-11T18:55:45 | 2016-09-26T00:38:59 | Python | UTF-8 | Python | false | false | 1,399 | py | # Copyright 2019 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 agreed to in writing, ... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
8a7c62fcb35970a4371b66bbccad24eb378f1080 | 8d35b8aa63f3cae4e885e3c081f41235d2a8f61f | /discord/ext/dl/extractor/lovehomeporn.py | cd1fcf81b1dca26bdb38aedfed0f949c2fd2b5a1 | [
"MIT"
] | permissive | alexyy802/Texus | 1255f4e54c8d3cc067f0d30daff1cf24932ea0c9 | c282a836f43dfd588d89d5c13f432896aebb540f | refs/heads/master | 2023-09-05T06:14:36.217601 | 2021-11-21T03:39:55 | 2021-11-21T03:39:55 | 429,390,575 | 0 | 0 | MIT | 2021-11-19T09:22:22 | 2021-11-18T10:43:11 | Python | UTF-8 | Python | false | false | 1,150 | py | from __future__ import unicode_literals
import re
from .nuevo import NuevoBaseIE
class LoveHomePornIE(NuevoBaseIE):
_VALID_URL = r"https?://(?:www\.)?lovehomeporn\.com/video/(?P<id>\d+)(?:/(?P<display_id>[^/?#&]+))?"
_TEST = {
"url": "http://lovehomeporn.com/video/48483/stunning-busty-brunette-girlf... | [
"noreply@github.com"
] | alexyy802.noreply@github.com |
f6a447cb8f320bf6c2fd9e41d45f6c0c0cd1042d | b81fe5fdc3267af0648d665b9a855e9f6852af21 | /wallp/source/google.py | e27375657a759ba2fd42dc0c22f03e7e2b1006a4 | [
"MIT"
] | permissive | amol9/wallp | 724bad747fdfaccba2d3069ce1f8959d68c5d879 | 14211492f0ab9247f67c92be4d3ef680c309eddf | refs/heads/master | 2022-12-14T23:00:28.248726 | 2022-12-01T15:39:27 | 2022-12-01T15:39:27 | 32,454,219 | 18 | 6 | null | 2016-11-06T14:50:15 | 2015-03-18T11:11:07 | Python | UTF-8 | Python | false | false | 3,624 | py | import json
from redlib.api.web import HtmlParser
from six.moves.urllib.parse import urlencode, urlparse, parse_qs
from ..util import log
from ..db.app.query_list import QueryList
from ..util.printer import printer
from .base import SourceError, SourceParams, Source
from .images import Images
from .http_helper import... | [
"babaiscool@gmail.com"
] | babaiscool@gmail.com |
6c4c952f3e5838f6db7fe3a7fedc51b61b03cb69 | 44802f7e587fb08372cb7064b971ec30c74a8003 | /Loop's/Q.24.py | 0deacea7dbb92c6fe67d11d345fb6d0f08b361bb | [] | no_license | Abhirvalandge/Python-Practice-Programs | 195bcc466082d56f0df88a03c993f1f94cecf68d | 14e975d28159a996ece917ef3838978db5f79508 | refs/heads/main | 2023-03-19T23:29:49.458619 | 2021-03-06T07:08:49 | 2021-03-06T07:08:49 | 345,029,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | # Print the numberfro 10 to 1
for x in range(10,0,-1):
print(x) | [
"abhirvalandge@gmail.com"
] | abhirvalandge@gmail.com |
1623bef449e9e0204a571f3da855f56cfe964845 | 98b0d740346ad9aecd228b9a8ebb8e818908ce03 | /iter-gen.py | 0e1970c6371331e43d7bbfde9da886d8d4510dd1 | [] | no_license | alexisbellido/python-examples | 8c63156a2800a584a8aff0909325e38acbe49163 | e6a4f61d9cd18588987430007e28ef036971764b | refs/heads/master | 2022-10-16T08:28:15.312916 | 2022-09-30T15:55:31 | 2022-09-30T15:55:31 | 240,379,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | # iterators and generators
def factors(n):
results = []
for k in range(1, n+1):
if n % k == 0:
results.append(k)
return results
def factors_generator(n):
for k in range(1, n+1):
if n % k == 0:
yield k
def factors_generator_2(n):
"""
only test up to squa... | [
"alexis@ventanazul.com"
] | alexis@ventanazul.com |
c56b90d83cf868f67e8f9bd1af2e3e75a86c4dce | 91d7a3f6056b9112f5dd4d0725e8ab5353f2fe64 | /0.9-0beta2+r2418-1/trac/versioncontrol/svn_fs.py | 3e85aef33c14484deebc12ee1307fa3a90fdb959 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | omunroe-com/tracdebdev | 2cd35f66ec7567bda7ac6e78d01e00d80f954c9e | 4577f5e4c919dad886f5a3e9c7c592199b3fbc24 | refs/heads/master | 2020-04-04T21:24:33.910105 | 2006-11-09T10:35:25 | 2006-11-09T10:35:25 | 156,284,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,572 | py | # -*- coding: iso8859-1 -*-
#
# Copyright (C) 2005 Edgewall Software
# Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.e... | [
"otavio@af82e41b-90c4-0310-8c96-b1721e28e2e2"
] | otavio@af82e41b-90c4-0310-8c96-b1721e28e2e2 |
09c67940808fdfa2112251e6b53522c6b5e603cb | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/compute/target_http_proxies/update.py | fe50ae1482feb262fce66c99da001d7f3ffbec7d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 2,423 | py | # Copyright 2014 Google Inc. 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 applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
1f7b25eccfe4f68b9e63e6746158f045727f6082 | 25bf0d5ed033006074eaec207358d11943ba9936 | /spider/tmall/tmall/settings.py | 171a290ac9a21933d086acd73daad50fa4b27cb7 | [] | no_license | wanglanfeng/Distributed-crawler | 0c7f90ea684da14ad7c33e8824f00b5df04e4745 | 36ce154562d022ebf1b06e507824786cb670d358 | refs/heads/master | 2020-03-16T23:41:00.866080 | 2018-02-24T11:37:20 | 2018-02-24T11:37:20 | 133,087,133 | 1 | 0 | null | 2018-05-11T20:46:47 | 2018-05-11T20:46:47 | null | UTF-8 | Python | false | false | 5,413 | py | # -*- coding: utf-8 -*-
# Scrapy settings for tmall project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"hepansos@126.com"
] | hepansos@126.com |
13817bc2740075b565132e202fddc2fae7eeb523 | 5bf393c1b876ca064a1e6c767f58f0e41af1bcca | /tests/test_compat.py | ccb491383ebb0c89f536ab09fd8b34e3194e0d5c | [
"MIT"
] | permissive | sethmlarson/socksio | 12c093ce59426df12b15d1239c58627208ee8fe1 | bad06ab5d8581797196ecf2eae1d8776c997567e | refs/heads/master | 2023-08-16T08:58:11.642334 | 2022-03-23T17:24:21 | 2022-03-23T17:24:21 | 205,901,200 | 36 | 5 | MIT | 2023-08-13T16:23:15 | 2019-09-02T17:01:33 | Python | UTF-8 | Python | false | false | 630 | py | import pytest
from socksio.compat import singledispatchmethod
def test_singledispatchmethod():
class Foo:
@singledispatchmethod
def bar():
raise NotImplementedError() # pragma: nocover
@bar.register(str)
def _(self, arg: str) -> None:
return f"<< {arg} >>... | [
"sethmichaellarson@gmail.com"
] | sethmichaellarson@gmail.com |
667cd88da809b61e686a65d228d377c84f682a2b | 36821b9fcdbefe88a60f584e7d39695ca5fe6177 | /codeforces/58/A.py | a90c44d5d86271bcd5437057a16dbf76a0547bc9 | [] | no_license | shubham409/CodeSubmits | 231fc40a64ad97323e558ba2fa252c62f34c7809 | 5da4d9cc87d4ac8f54175723c2acf77fc5784f21 | refs/heads/master | 2023-06-26T06:17:30.255973 | 2021-06-03T18:24:00 | 2021-07-29T20:35:01 | 329,399,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | s=iter(input());print('NYOE S'[all(c in s for c in 'hello')::2]) | [
"sm091274@gmail.com"
] | sm091274@gmail.com |
804bbffb69279f740259ee541f18f4ac7f4baca0 | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /tests/components/zwave_js/test_discovery.py | 1840e4d798004c31c57234937c9796401c6bb328 | [
"Apache-2.0"
] | permissive | konnected-io/home-assistant | 037f12c87bb79e19220192eb918e49db1b1a8b3e | 2e65b77b2b5c17919939481f327963abdfdc53f0 | refs/heads/dev | 2023-05-11T08:57:41.891518 | 2023-05-07T20:03:37 | 2023-05-07T20:03:37 | 109,931,626 | 24 | 10 | Apache-2.0 | 2023-02-22T06:24:01 | 2017-11-08T05:27:21 | Python | UTF-8 | Python | false | false | 4,951 | py | """Test discovery of entities for device-specific schemas for the Z-Wave JS integration."""
import pytest
from homeassistant.components.zwave_js.discovery import (
FirmwareVersionRange,
ZWaveDiscoverySchema,
ZWaveValueDiscoverySchema,
)
from homeassistant.components.zwave_js.discovery_data_template import ... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
b946f34bcae8387b344e4c058e20edef81128e2a | 7e98a8b31cc2fecf8384f4590f27540f7280659a | /v1/Arrays/array_group_anagrams.py | 47d16ec7da5b7461d97f47d954213f312ebc4dce | [] | no_license | darraes/coding_questions | 62a07a6ede884fd0e3596f3dac8f50e11fd8676e | 70dcc3b859db673c39c3cf55aeb463d2bd822ed9 | refs/heads/master | 2021-01-21T07:21:18.033321 | 2020-06-15T16:25:11 | 2020-06-15T16:25:11 | 91,611,595 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # http://www.careercup.com/question?id=5733320654585856
def is_anagram(w1, w2):
return sorted(w1) == sorted(w2)
# Not so good. We can just hash the sorted values and use a hash table to
# keep count
def anagram_buckets(words):
buckets = []
buckets.append([words[0]])
for i in range(1, len(w... | [
"daniel.arraes@gmail.com"
] | daniel.arraes@gmail.com |
d99ff7c88528015fbd4fd669ac63397939930cc6 | d77af24d09dc00a4b7d3e0bdc14b7d2727c96495 | /RouToolPa/Tools/MultipleAlignment/__init__.py | 638553df16bc21148ff8f375e26d88696267d09e | [] | no_license | mahajrod/RouToolPa | 14ee0f7fce78c53e8639e770caa6ffb0dfd82fce | 9b0cd0f0817a23cd3f37b3a55f83ce2d8abc71d8 | refs/heads/master | 2023-08-19T19:15:49.876175 | 2023-08-12T12:27:39 | 2023-08-12T12:27:39 | 181,844,151 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | __author__ = 'mahajrod'
from RouToolPa.Tools.MultipleAlignment.GUIDANCE2 import GUIDANCE2
from RouToolPa.Tools.MultipleAlignment.PRANK import PRANK
from RouToolPa.Tools.MultipleAlignment.MAFFT import MAFFT
from RouToolPa.Tools.MultipleAlignment.SWAMP import SWAMP
PRANK = PRANK()
MAFFT = MAFFT()
SWAMP = SWAMP()
GUIDA... | [
"mahajrod@gmail.com"
] | mahajrod@gmail.com |
9d04893b31584731a38b2a4442e0dc176fb5cdaf | 61aa319732d3fa7912e28f5ff7768498f8dda005 | /src/base/Graphics.py | c444bb9f8512270f5a0c64f4f4ff3a934da0e8d0 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | TeCSAR-UNCC/gem5-SALAM | 37f2f7198c93b4c18452550df48c1a2ab14b14fb | c14c39235f4e376e64dc68b81bd2447e8a47ff65 | refs/heads/main | 2023-06-08T22:16:25.260792 | 2023-05-31T16:43:46 | 2023-05-31T16:43:46 | 154,335,724 | 62 | 22 | BSD-3-Clause | 2023-05-31T16:43:48 | 2018-10-23T13:45:44 | C++ | UTF-8 | Python | false | false | 2,271 | py | # Copyright (c) 2017 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality o... | [
"sroger48@uncc.edu"
] | sroger48@uncc.edu |
9b3d597333e1f59f29ca7a285a0c80bdd7d9ea29 | c97fc7658c39feb51c0ed42c04783797c8675b8a | /hfpython/day34/02 socket编程/客户端.py | f55ebc9775ea75b9377041f5af8218358b37a9ac | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 261 | py | import socket
client=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client.connect(('127.0.0.1',8080))
while True:
msg=input('>>: ').strip()
client.send(msg.encode('utf-8'))
data=client.recv(1024)
print(data.decode('utf-8'))
client.close() | [
"sgq523@163.com"
] | sgq523@163.com |
23f7109aed347e01120c565b684b98e0ec8b0e8c | 3724a1b95e95e611cdd793d1af685f72dfea6b3e | /metatests/cloudcafe/blockstorage/volumes_api/v2/models/response_tests.py | 5eb680867aa8c14a329be7c67ed45b1440439111 | [
"Apache-2.0"
] | permissive | kurhula/cloudcafe | 1b1e41994959cf959a49e19fea5cbda893d9c9df | 7d49cf6bfd7e1a6e5b739e7de52f2e18e5ccf924 | refs/heads/master | 2021-01-20T22:45:27.425724 | 2015-02-20T16:49:35 | 2015-02-20T16:49:35 | 31,156,531 | 0 | 1 | null | 2015-02-22T07:56:08 | 2015-02-22T07:56:07 | null | UTF-8 | Python | false | false | 19,688 | py | """
Copyright 2013 Rackspace
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
dist... | [
"jose.idar@rackspace.com"
] | jose.idar@rackspace.com |
81cdfb108def0fddc13a38b0bd72d73ec18ab0f7 | f3e45801c602cfe5e8d9f2649260bc306453886f | /src/bael/hatak/tasks.py | e9c0e19532da3c46bb76d86992d85e1ed50b0904 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | msabramo/hatak | 0c3f4e1d2a64ab686b3036200b42e1b3b1a66cf9 | 957451870e2e076b3fd5798af4c7db81078628d8 | refs/heads/master | 2023-06-09T13:58:56.012171 | 2015-02-01T20:38:48 | 2015-02-01T20:51:49 | 30,458,246 | 0 | 0 | null | 2015-02-07T14:32:55 | 2015-02-07T14:32:55 | null | UTF-8 | Python | false | false | 3,495 | py | from os import mkdir, path
from bael.project.virtualenv import VirtualenvTask
from baelfire.application.commands.init.models import InitFile
from baelfire.dependencies import (
AlwaysRebuild,
FileDoesNotExists,
)
from baelfire.task import Task
class CreateDataDir(Task):
name = 'Creating data directory'
... | [
"msocek@gmail.com"
] | msocek@gmail.com |
1fd248e0612e62f129a0add73ebcccd325822c76 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02821/s694807806.py | 99f61ced51aa6c2b2e40cb2ce1f91e675be7f254 | [] | 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,014 | py | import sys,queue,math,copy,itertools,bisect,collections,heapq
def main():
LI = lambda : [int(x) for x in sys.stdin.readline().split()]
N,M = LI()
A = LI()
a = sorted(A,reverse=True)
high = a[0] * 2 + 1
low = 0
while high > low + 1:
mid = (high + low) // 2
cnt = 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5e278749859e6ed97188db5d84408e7b8208a9c6 | a0c00de0b858afec162817eb18644e15a43aa132 | /corpus/encode/corpus.py | 79bd8bb82ebf103d7facc42a37124006053af799 | [] | no_license | GiovanniCassani/discriminative_learning | 2babb522e6ef1f8045cf4920f120841cc143eead | 6336ae084317178c4552afedb6f2363fa464c3b2 | refs/heads/master | 2021-03-30T16:42:44.730328 | 2018-07-10T11:38:34 | 2018-07-10T11:38:34 | 117,959,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,756 | py | __author__ = 'GCassani'
"""Function to encode the full corpus"""
import json
import numpy as np
from time import strftime
from corpus.encode.item import encode_item
from corpus.encode.words.phonology import get_phonetic_encoding, concatenate_phonological_representations
# from corpus.encode.words.morphology import ge... | [
"cassani.giovanni@gmail.com"
] | cassani.giovanni@gmail.com |
6cdeb84a695620b8d500a7eaf7e3cb2100dffb13 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/catapult/telemetry/third_party/web-page-replay/third_party/dns/update.py | 7d4263689170574fdde5df4cfed2bf0b20556df8 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"ISC",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 9,902 | py | # Copyright (C) 2003-2007, 2009, 2010 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED ... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
812b0c18e9dd9a503bf77f3bb810d43635068de2 | bd4535b2ff5fc80234eed709f46da53b9ab260cf | /Packs/illuminate/Integrations/Analyst1/Analyst1.py | 2789314a325fd2db8ce6ed4b1ac899300777e2cf | [
"MIT"
] | permissive | vibhuabharadwaj/content | 0641284c862668b577e82e32e2daecdb9fabb39a | 518da763814fefce538379560282ff8c2ce661b9 | refs/heads/master | 2023-03-07T21:36:31.768989 | 2022-09-28T15:50:46 | 2022-09-28T15:50:46 | 202,795,410 | 1 | 0 | MIT | 2023-03-06T17:25:01 | 2019-08-16T20:30:23 | Python | UTF-8 | Python | false | false | 14,680 | py | import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
''' IMPORTS '''
import requests
import traceback
from typing import Dict, Optional, List, Any, Callable, Collection
# Disable insecure warnings
requests.packages.urllib3.disable_warnings()
''' CONSTANTS '''
# Integrat... | [
"noreply@github.com"
] | vibhuabharadwaj.noreply@github.com |
c0257c956a994e968e6a0cf062e4ee6b189908db | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2715/60648/244504.py | 9f5645a7bf745bb513777176b6c3670f98e28ed9 | [] | 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 | 1,152 | py | import collections
class Solution(object):
def removeStones(self, stones):
graph = collections.defaultdict(list)
for i, x in enumerate(stones):
for j in range(i):
y = stones[j]
if x[0]==y[0] or x[1]==y[1]:
graph[i].append(j)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
183a60d90864c2c61ed0502fdc2a27d15659a1fb | 8a780cb47eac9da046bdb5d6917f97a086887603 | /problems/maximum_points_you_can_obtain_from_cards/solution.py | edac37dbc7ad0a5d3e4b21c38963448957806b65 | [] | no_license | dengl11/Leetcode | d16315bc98842922569a5526d71b7fd0609ee9fb | 43a5e436b6ec8950c6952554329ae0314430afea | refs/heads/master | 2022-12-20T03:15:30.993739 | 2020-09-05T01:04:08 | 2020-09-05T01:04:08 | 279,178,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | class Solution:
def maxScore(self, cardPoints: List[int], k: int) -> int:
presum = [0]
for x in cardPoints:
presum.append(presum[-1] + x)
n = len(cardPoints)
return presum[-1] - min(presum[i + n-k] - presum[i] for i in range(k+1))
| [
"ldeng1314@gmail.com"
] | ldeng1314@gmail.com |
e4f433753123949ad9affde243bc0de8561d1abc | 46d2a73deb63f81554c478822459a41f09d8519c | /github/abc/deletable.py | d982e43546c0fe46d3370c7c4d76d900127fea6f | [
"Apache-2.0"
] | permissive | ByteMeDirk/github.py | ad036aef661adc4d9a06239f52b79acd5230c430 | 14b14f857fb85c35b5d14ba073afc36e339199b9 | refs/heads/master | 2023-08-10T17:40:52.783117 | 2020-08-13T23:54:55 | 2020-08-13T23:54:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | """
/github/abc/deletable.py
Copyright (c) 2019-2020 ShineyDev
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 requir... | [
"contact@shiney.dev"
] | contact@shiney.dev |
833cd90132ba5b20bf8f2056416dc710d53f78ef | 38731eef292db3525b5c7f5ce5c108e5bcd5bead | /algorithms/graph.py | 60346014017dcce95db85c447cebdaf57f8eb9a4 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | arvin580/jcvi | de45a6e1d9c80918cc43832f3a0b1bbcb1ec1523 | dca442672e786350eb2db6f8c9113f353b6032c1 | refs/heads/master | 2020-12-11T09:23:21.408929 | 2015-12-01T17:54:16 | 2015-12-01T17:54:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,072 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Wrapper for the common graph algorithms.
"""
import sys
import logging
import networkx as nx
from collections import deque
from string import maketrans
from jcvi.utils.iter import pairwise
from jcvi.formats.base import must_open
"""
Bidirectional graph.
"""
dirs =... | [
"tanghaibao@gmail.com"
] | tanghaibao@gmail.com |
7493cb46d981b2dbf5f4bbe969a8356b3b9ec120 | 9985415e46a58baa139580ac5b57f689fecb1c89 | /08_面向对象基础/hm_08_str方法.py | 59cfa9ae4979d387fbe1709be131af6b52ede3fd | [] | no_license | 462548187/python | 9b0159e0445b69fd25a918d9ece7d6b59ea1f459 | b2cca8858667a26e69bf6688b0aba9536a7cf8eb | refs/heads/master | 2021-03-10T12:49:08.051248 | 2020-04-22T02:54:32 | 2020-04-22T02:54:32 | 246,454,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author : Sandy
@Version :
----------------------------------
@File : hm_08_str方法.py
@Description :
@CreateTime : 2020/3/12 9:31 下午
@Software : PyCharm
-----------------------------------
@Mo... | [
"462548187@qq.com"
] | 462548187@qq.com |
3c49455dfa9c3d901137587dda14d0e622597d9a | a6a02c9a9c336d87995b6b5014e3bf8391d651d6 | /tests/settings.py | 884bb61d0d9192e4efdd2bfc3452ca73147fbbc7 | [] | no_license | cyberdelia/manifesto | 4bf7efc702deb80ed3348c4bbc70f28d91e9400e | 0f4b34aa803545fe85f999db569757a38b223e6a | refs/heads/master | 2021-01-17T11:40:23.312528 | 2019-12-31T06:12:45 | 2019-12-31T06:12:45 | 2,101,879 | 16 | 9 | null | 2019-12-31T06:12:46 | 2011-07-25T15:49:05 | Python | UTF-8 | Python | false | false | 444 | py | import os
local_path = lambda path: os.path.join(os.path.dirname(__file__), path)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'TEST_NAME': ':memory:'
}
}
ROOT_URLCONF = "manifesto.urls"
SITE_ID = 1
INSTALLED_APPS = [
'django.contrib.contenttypes',
'django.contr... | [
"timothee.peignier@tryphon.org"
] | timothee.peignier@tryphon.org |
2cd365da08f6e29fce971809dd025e043ff46df8 | 39689ee725bc7183d5d59fb34f7d2ffe5fd6ad36 | /ABC_B/ABC116B.py | 005c967638566b3e30be52574427ad10501c8152 | [] | no_license | yu5shi8/AtCoder | b6eb920a9046bdfa98012dd3fc65f75f16214ffe | f9ca69001ece8379e3a70c993c44b540f8be2217 | refs/heads/master | 2021-06-15T17:58:07.027699 | 2021-03-20T14:04:03 | 2021-03-20T14:04:03 | 177,757,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # -*- coding: utf-8 -*-
# B - Collatz Problem
# https://atcoder.jp/contests/abc116/tasks/abc116_b
s = int(input())
a = [s]
i = 0
while a.count(a[i]) != 2:
if a[i] % 2 == 0:
a.append(a[i]//2)
else:
a.append(3*a[i] + 1)
i += 1
ans = len(a)
print(ans)
# 8:37 - 9:04
| [
"royal_unicorn411@hotmail.co.jp"
] | royal_unicorn411@hotmail.co.jp |
b5a0a43b6a4c4484dddc59ec4e0df10f59acbec5 | 4a81e33fe6d214f2efaeb97b03b5b05fae12b0d8 | /demos/great-expectations/venv/lib/python3.8/site-packages/great_expectations/datasource/data_connector/sorter/date_time_sorter.py | 9b5a2758a4f32e416ca93fe8e48cd8beedc3e533 | [] | no_license | franciscojavierarceo/Python | 29aaea28642dde151255c5b4a813158e975a073d | 02715ca6f19fd3c76cefa12de92deeae4ddf9684 | refs/heads/main | 2023-08-27T14:23:04.376095 | 2023-08-27T10:30:37 | 2023-08-27T10:30:37 | 33,146,755 | 7 | 9 | null | 2023-02-16T06:40:35 | 2015-03-30T20:38:00 | Jupyter Notebook | UTF-8 | Python | false | false | 1,581 | py | import datetime
import logging
from typing import Any
import great_expectations.exceptions as ge_exceptions
from great_expectations.core.batch import BatchDefinition
from great_expectations.core.util import datetime_to_int, parse_string_to_datetime
from great_expectations.datasource.data_connector.sorter import Sorter... | [
"arceofrancisco@gmail.com"
] | arceofrancisco@gmail.com |
f1a6ce93a6cb484d1dab1fafbf9c5705abc8dcd6 | 0760fb4901a75766921a205b55686d6d6f049b30 | /release/rllib_tests/learning_tests/run.py | 35b959ad8f57bef8afeff93e899a7dbf7db22de2 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ray-project/ray | a4bb6940b08b59a61ef0b8e755a52d8563a2f867 | edba68c3e7cf255d1d6479329f305adb7fa4c3ed | refs/heads/master | 2023-08-31T03:36:48.164405 | 2023-08-31T03:20:38 | 2023-08-31T03:20:38 | 71,932,349 | 29,482 | 5,669 | Apache-2.0 | 2023-09-14T21:48:14 | 2016-10-25T19:38:30 | Python | UTF-8 | Python | false | false | 2,057 | py | """Learning regression tests for RLlib (torch and tf).
Runs Atari/MuJoCo benchmarks for all major algorithms.
"""
import json
import os
from pathlib import Path
from ray.rllib.utils.test_utils import run_learning_tests_from_yaml
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
b11bf98b007d6fbe87642264ed766fa74fba6880 | 60a012d9613032b5e8b990854053f34ea5b43e7b | /pulsar/apps/data/stores/couchdb/__init__.py | 9f83227b4984fcc0c4a1739c9d207379efbf8664 | [
"BSD-3-Clause"
] | permissive | azziel149/pulsar | bda27d81295c112ecc3afde9ae57f6c7b608c416 | dc67eb48f8fdd764820be48a279dda524e956795 | refs/heads/master | 2020-12-25T04:27:37.563248 | 2014-07-07T16:37:24 | 2014-07-07T16:37:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from .query import CouchDbError, CouchDbNoDbError
from .store import CouchDBStore
# from .search import CouchDBLuceneSearch
from pulsar.utils.config import Global
class CouchDbServerTestOption(Global):
name = 'couchdb_server'
flags = ['--couchdb-server']
meta = "CONNECTION_STRING"
default = 'http+cou... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
912fe08bc7a0b55624a125c7f1c74b68b0ababa0 | 70ad3badf3fa6e2edf1889d8640f25a7ec0d9db1 | /ros_catkin_ws/build_isolated/shape_msgs/catkin_generated/generate_cached_setup.py | 952f5c574f60bda91ed215a4a93995e820df8e78 | [] | no_license | MathieuHwei/OldGaitMaven | 758a937dfda2cf4f1aee266dbbf682ef34989199 | 873f7d9089c5d1c0772bd3447e2b0a31dac68b70 | refs/heads/main | 2023-06-17T18:40:06.230823 | 2021-07-19T23:08:20 | 2021-07-19T23:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"giahuy050201@gmail.com"
] | giahuy050201@gmail.com |
d565876d423e4e20591e3dcacc6ec445edbf4764 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /7yo5FJX4xFbNxim5q_18.py | ddf3e81087b7aa24bc62ad43d0784a65ddcf8775 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | """
Harry is a postman. He's got a post office with a size of `n*m(a matrix / 2D
list)`. Each slot at the 2D list represents the number of letters in that
spot. Harry can only go right and down. He starts at (0, 0), and ends at (n-1,
m-1). `n` represents the height, and `m` the length. Return the maximum amount
of l... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.