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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58d376d3367d7cfedfaf99bdc751de58dab70808 | 92925ea36a241156c923262f7aeea86ce53cb356 | /dashboard/util/portUtil.py | 9c6ffecc993fd7b79932efa7da439e1ac78cf942 | [] | no_license | greshem/openstack_bootstrap_dashboard | c839bfb86f8b1f0b8fee602c1363f061ca65ef55 | 7dfda640740507199b291d01cb8304df570f2664 | refs/heads/master | 2021-07-10T00:44:10.875699 | 2017-10-08T15:39:43 | 2017-10-08T15:39:43 | 106,177,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | # -*- coding:utf-8 -*-
'''
Created on 2016年9月28日
@author: greshem
'''
from dashboard import api
LIMIT=10
def getFix(floating_ip_port):
if floating_ip_port and floating_ip_port.fixed_ips:
fixed_ip_address=''
for fixed_ip in floating_ip_port.fixed_ips:
if fixed_ip_address:
... | [
"qianzhongjie@gmail.com"
] | qianzhongjie@gmail.com |
37febc9f6f533839d641d1f61607e948b3e04e2c | 57e28d8afbaae31052c1b11f111806f306b59815 | /mylink/utils.py | 0d728ccd0252e1dd1940e160aa6f277446aae707 | [] | no_license | rizaksp/monitorbl | 5d98edba5b88894499e179010b08c0278a6f0dd5 | 82d8d3047b18c56e0c78b35ef6f81519b83e43e6 | refs/heads/master | 2020-04-16T04:58:24.345227 | 2017-12-15T10:54:39 | 2017-12-15T10:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | import requests
from bs4 import BeautifulSoup as BS
def updateData(list_data):
for d in list_data:
try :
r = requests.get(d.url())
html = BS(html.text)
text_terjual = html.select('.qa-pd-sold-value')[0].text
text_price = html.select('.c-product-detail-price'... | [
"anderi.setiawan@gmail.com"
] | anderi.setiawan@gmail.com |
f561ff5c597b606b63bdee9ea6330a3a6e6aae3c | d7753137a13c068cb0484bdc9a8237a36378db1b | /Target Offer/20. 表示字符的字符串.py | 149b9fd834147e23da6caf47d7c09cc97643a4ae | [] | no_license | alexkie007/offer | 740b1e41b9d87de3b31df961c33371a5e3430133 | 85ceaf8f3da0efd66b4394ef16669ea673218265 | refs/heads/master | 2021-04-12T11:56:49.779558 | 2018-11-03T05:26:51 | 2018-11-03T05:26:51 | 126,163,525 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | '''
将一个字符串转换成一个整数,
要求不能使用字符串转换整数的库函数。
数值为0或者字符串不是一个合法的数值则返回0
'''
class Solution:
def StrToInt(self, s):
try:
return float(s)
except:
return 0
s = Solution()
print(s.StrToInt('121332313e3'))
| [
"alexkie@yeah.net"
] | alexkie@yeah.net |
624f669081672f2cbb9bbb34d9d33c446d34e093 | 51ea2be2a164e90a6f6c327ccedc95b5492a5329 | /HackerEarth/Algorithms/Bubble Sort/Easy_Going.py | 7a3881bd13c7b63d7f2b94a8c19fa39bbdfd5a43 | [
"MIT"
] | permissive | hanzohasashi33/Competetive_programming | 081c30d248d54cdf488d36d1c965b0f184296562 | b609972ada1c7177f182665e998beaa0c1eba514 | refs/heads/master | 2021-06-30T07:21:12.625721 | 2021-02-01T12:54:56 | 2021-02-01T12:54:56 | 216,160,136 | 22 | 23 | MIT | 2022-05-30T16:13:36 | 2019-10-19T06:28:39 | C++ | UTF-8 | Python | false | false | 394 | py | # Write your code here
test = int(input())
while test > 0 :
n,m = [int(x) for x in input().split()]
l = list(map(int,input().split()))
for i in range(n - 1) :
for j in range(n - i - 1) :
if l[j] > l[j+1] :
l[j],l[j+1] = l[j+1],l[j]
minsum = sum(l[:n-m])
l = l... | [
"noreply@github.com"
] | hanzohasashi33.noreply@github.com |
90ee957a496298a7665fdc3308064f8cc85ed46e | 170864b6ec66be48138f231fe8ac3381481b8c9d | /python/BOJ_1300.py | cd1ecd5758903055010f02d2391854ff702cd7f4 | [] | no_license | hyesungoh/AA_Algorithm | 5da3d8312d035d324dfaa31eef73f01a238231f3 | d68f52eaa29cfc4656a8b5623359166779ded06e | refs/heads/master | 2023-06-09T14:49:01.402456 | 2021-06-28T10:10:09 | 2021-06-28T10:10:09 | 272,701,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | N, K = int(input()), int(input())
start, end = 1, K
while start <= end:
mid = (start + end) // 2
temp = 0
for i in range(1, N+1): temp += min(mid//i, N)
if temp >= K:
answer = mid
end = mid - 1
else: start = mid + 1
print(answer)
| [
"haesungoh414@gmail.com"
] | haesungoh414@gmail.com |
66395652670f678c53d0e1dc7cdb16fac82a1e56 | e3ae1d6d9eb399b39578a8ede123c44f24c2805e | /lab/tests/TESTSET | 54f09afdfccc7f774cd6a4afac90fa9b88ba0281 | [] | no_license | AI-comp/Orientation2016Problems | 5c23fa542ab84091711e085a3efb288e77c667af | 382d2644e41c80d92cfe48b237bd9bf9ca1dcec5 | refs/heads/master | 2021-03-24T10:08:20.873080 | 2017-05-24T00:15:23 | 2017-05-24T00:15:23 | 56,775,930 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 615 | # -*- coding: utf-8; mode: python -*-
## Input generators.
#c_generator(src='generator.c')
#cxx_generator(src='generator.cc')
java_generator(src='Generator.java', encoding='UTF-8', mainclass='Generator')
#script_generator(src='generator.py')
## Input validators.
#c_validator(src='validator.c')
#cxx_validator(src='val... | [
"k0223.teru@gmail.com"
] | k0223.teru@gmail.com | |
a01689e6c9737a2d967a83c23f428ad5eff3cf55 | 307e52d79c9068a2648ae82bbe11cd58733bba37 | /calib/Time_calib/main_calib.py | 329a4801a7626b2db19263cdfe920f2a2065782a | [] | no_license | greatofdream/Recon1t | 0aa775c43dcfa5b3da7b5894e2567fbe8e7b2991 | 80e58ba3c2c23f1efa962d02fcb2205a95aa716f | refs/heads/master | 2022-11-09T14:12:55.747488 | 2020-06-09T02:43:24 | 2020-06-09T02:43:24 | 263,953,536 | 0 | 0 | null | 2020-05-14T15:31:27 | 2020-05-14T15:31:26 | null | UTF-8 | Python | false | false | 14,423 | py | import numpy as np
import scipy, h5py
import tables
import sys
from scipy.optimize import minimize
from numpy.polynomial import legendre as LG
import matplotlib.pyplot as plt
def Calib(theta, *args):
ChannelID, flight_time, PMT_pos, cut, LegendreCoeff = args
y = flight_time
T_i = np.dot(LegendreCoeff, the... | [
"839566105@qq.com"
] | 839566105@qq.com |
4037042e2ff02f6b3e312553ecaece52824376b2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_280/ch31_2020_03_23_13_43_05_520764.py | a29a813955c0c004e6a616cb57363631e056690b | [] | 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 | 276 | py | def eh_primo (x):
if x==2:
return True
elif x==0 or x==1:
return False
elif x%2==0:
return False
else:
n = 3
while n < x:
if x%n==0:
return False
n += 2
return True | [
"you@example.com"
] | you@example.com |
d78118766c4a5d0fedb4fd52f1d98f8f6c11c26d | 51e77e985d9b6c6bb0972ccee14b867e289aae61 | /fundamentalsOfComputing/interactiveProgramming/practice_distance_calculation.py | 9657fc2cddf33da73187de6dde47df3907f530e9 | [] | no_license | ErhardMenker/MOOC_Stuff | 7c397059f62ba39f21a877c7fcf71a97751dda4b | 7cdd581e9f9dcdd0b0c27dbbb9216bc76df8fff5 | refs/heads/master | 2021-01-17T10:38:06.805197 | 2017-03-29T23:50:18 | 2017-03-29T23:50:18 | 84,018,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | """ Create Function to calculate distance from a point to the closest edge of a circle with radius r and center c """
# Initialize Globals
p = [4, 7]
c = [2, 9]
r = 2
# Define function
import math
def distance_nearest(p, c, r):
val = math.sqrt((p[0] - c[0]) ** 2 + (p[1] - c[1]) ** 2) - r
return val
pri... | [
"ejmenker@gmail.com"
] | ejmenker@gmail.com |
d9d0870cfeb2b56752fdf2aff70155d659cc208d | 11ff5d1651b1a3972de8d7fe369943166cb1e8dd | /project/backend_squares/squares/squares_app/serializers/__init__.py | e84de52f553ff83a10716ffd1694caa5d5a979ca | [] | no_license | ilyalevushkin/computer_networks | b0eb4fa1d20a381480b6b278c01a753a98bf23ee | 3fc63850ef27779404b8d3fd054f194b78c7ee21 | refs/heads/main | 2023-05-25T11:19:06.055725 | 2021-06-16T12:58:12 | 2021-06-16T12:58:12 | 316,938,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from .user import UsersSerializer, UsersSignInSerializer, UsersUpdateSerializer
from .friend import FriendsSerializer, FriendsUpdateSerializer
from .pull import PullPlayersSerializer
from .game import GamesSerializer, GamesResponseSerializer, GameStatesUpdateSerializer
from .file_upload import FileSerializer
| [
"ilyalyov@mail.ru"
] | ilyalyov@mail.ru |
0b76f1575bd29440f1c45ba52e19ad1f2b21a2e8 | 395fa3e20505a521db323f95ade65f01934a4eb5 | /matorage/data/attribute.py | 166b6547fe98bdc49cc3c60402f8c032df58d5c5 | [
"Apache-2.0"
] | permissive | lkykor77/matorage | 6b486609f31126ac6fb6719baadcbfd5b8945db5 | 8880d5245aa9253c256ff7dc4a6a75aa8ff39eed | refs/heads/master | 2022-11-27T00:04:21.179038 | 2020-08-10T13:34:23 | 2020-08-10T13:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | # Copyright 2020-present Tae Hwan Jung
#
# 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... | [
"nlkey2022@gmail.com"
] | nlkey2022@gmail.com |
29eaf0f157187b18af7c79906b57c4c047af2e05 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /jyGco3e82sNfYKvCj_6.py | 25250ce35f9715ff5004636e04b95d94bdbf5fef | [] | 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 | 95 | py |
def rev(n):
n = str(n)
if n[0] == '-':
n = n[1:]
return n[::-1]
return n[::-1]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7f49b9fd7f36f7e6bb85662bf86766c1beb01221 | 3876e86fa97b49eb43ca9c2f292f246c5d7ef98e | /src/lib/models/networks/resnet_fpn_dcn.py | f3a64d566b0a27e73b580203e4d07b7fbde765d9 | [
"MIT"
] | permissive | yuanliangxie/MCMOT | ce2bdc5cc318751c72fbe2276a7012a70a7912f4 | 3d43ff0f371c5f3bc7b5e68b7e377e90b2a51c0c | refs/heads/master | 2022-11-12T11:49:18.343403 | 2020-07-02T09:41:53 | 2020-07-02T09:41:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,713 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# Modified by Dequan Wang and Xingyi Zhou
# ------------------------------------------------------------------------------
from __f... | [
"765305261@qq.com"
] | 765305261@qq.com |
941903d873ccdf81455b36fbceceb8e0d41daf45 | 8c99d381eb2a24fade2248ca38e5adc56b0263bf | /SUSYAnalysis/python/tools17/eventVars_1l_genLevel.py | 3645aecf96df1cabae6dc00941491a3f3d1b6884 | [] | no_license | ashrafkasem/cmgtools-lite | 818b3bc42ee3b5944074b45bc74248b8c32fa514 | 6c38faa89fd870cdd950e2a3c08fafdf7a5660e1 | refs/heads/94X_dev | 2022-12-31T02:07:00.683384 | 2019-04-15T14:44:56 | 2019-04-15T14:44:56 | 109,703,088 | 0 | 0 | null | 2017-11-06T14:06:09 | 2017-11-06T14:06:09 | null | UTF-8 | Python | false | false | 5,116 | py | from CMGTools.TTHAnalysis.treeReAnalyzer import *
from ROOT import TLorentzVector, TVector2
import ROOT
def mt_2(p4one, p4two):
return sqrt(2*p4one.Pt()*p4two.Pt()*(1-cos(p4one.Phi()-p4two.Phi())))
class EventVars1LGenLevel:
def __init__(self):
self.branches = ["GenDeltaPhiLepWSum", "GenDeltaPhiLepWD... | [
"ashraf.mohamed@cern.ch"
] | ashraf.mohamed@cern.ch |
c6f1858dfd2e7acf04ed79c6459bc25ef0f71652 | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210905000205.py | 6c3b2a6418f67b3dab40ff218a160fd2b60ee1bb | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,531 | py | import os
class Empresa():
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""):
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
def datosEmpresa(self):#3
self.nombre=input("Ingres... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
8f2d1d6bc8e96bc97f06f38a008d8ecc660794ce | 5dc77586e3e0f9de1f032fd2ca68494d8e58928f | /contrib/great_expectations_zipcode_expectations/great_expectations_zipcode_expectations/expectations/expect_column_values_to_be_valid_zip5.py | 3cce49342ddf289c0321776bf7e7e7b2d5ba7528 | [
"Apache-2.0"
] | permissive | great-expectations/great_expectations | dd7c22e6277d6b08bee3ff38a015e6e8cd434df6 | b0290e2fd2aa05aec6d7d8871b91cb4478e9501d | refs/heads/develop | 2023-09-04T09:30:26.395518 | 2023-09-02T00:00:13 | 2023-09-02T00:00:13 | 103,071,520 | 8,931 | 1,535 | Apache-2.0 | 2023-09-14T19:57:16 | 2017-09-11T00:18:46 | Python | UTF-8 | Python | false | false | 5,140 | py | from typing import Optional
import zipcodes
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import PandasExecutionEngine
from great_expectations.expectations.expectation import ColumnMapExpectation
from great_expectations.expectations.met... | [
"noreply@github.com"
] | great-expectations.noreply@github.com |
56afa42a0c460fe2655f4980bdde54fe37fb4fa5 | 5eb32ddc9d2f46e62a59976f578a8d0a2ddc41f0 | /deepforest/utilities.py | 30f78bfd9e19196dc36bb81fb15db1a5862a0456 | [
"MIT"
] | permissive | ethanwhite/DeepForest | 8e9e3e0e6ee1ce716fde8c7c4ead55d98456b196 | d6c937f29863edba8b447df9e6bfdab702298815 | refs/heads/master | 2023-08-21T14:49:29.729210 | 2020-02-14T01:08:26 | 2020-02-14T01:08:26 | 241,376,969 | 1 | 0 | MIT | 2020-02-18T14:05:53 | 2020-02-18T14:05:53 | null | UTF-8 | Python | false | false | 10,750 | py | #utility functions for demo
import os
import yaml
import sys
import json
import pandas as pd
import numpy as np
import urllib
import xmltodict
import csv
import warnings
import tensorflow as tf
from tqdm import tqdm
from keras_retinanet import models
from keras.utils import multi_gpu_model
from deepforest import _ROOT... | [
"benweinstein2010@gmail.com"
] | benweinstein2010@gmail.com |
502e2d947cb552be8d1e078652728a9f8020a360 | 126958c3847235167d48add017b73428f85ecdf8 | /linkedlist/linked_list.py | f1329dcefb0afe094384d0217344a8f9d410bfae | [] | no_license | fali007/basic-programming | d96f11b46ba500d5014978fc47527ce0cbce313b | 79510616cba7c82e29c561e4f53ddb649b66c074 | refs/heads/master | 2020-06-16T14:33:08.078386 | 2020-04-30T13:47:28 | 2020-04-30T13:47:28 | 195,609,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | # class school:
# def __init__(self,name,idno):
# self.name=name
# self.idno=idno
# class clss(school):
# def __init__(self,name,stre,div,idno):
# school.__init__(self,name,idno)
# self.name=name
# self.stre=stre
# self.div=div
# jnv=clss("jnv",43,"B",2)
# print(jnv.name)
# print(jnv.idno)
# print(jnv.div... | [
"noreply@github.com"
] | fali007.noreply@github.com |
cd8f25a17daccb5615deb05e8c935e266c2b3e42 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_208/ch63_2020_04_29_11_52_28_989399.py | dc627025a54d5d33e8031a4d1e5ca9a90ef5516b | [] | 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 nome_usuario (email):
x = email[:'@']
return x | [
"you@example.com"
] | you@example.com |
e562a6662de82417658d3588c71c13f4cbee15d1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02618/s649474695.py | 30ed82c588b781affa177e0a15b244f66d6afb9d | [] | 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,338 | py | import time
import copy
start_time = time.time()
#input
D = int(input())
c_list = list(map(int, input().split()))
s_grid = []
for i in range(D):
array = list(map(int, input().strip().split(' ')))
s_grid.append(array)
t_list = [(i%26) for i in range(D)] #task_list
def calculate_score(query_list,previous_sco... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6120aa4b621bc8f2631e0c951a97607f848d4fb8 | dde951c8bcfb79cdead3449de42d9ed3e6f24fbe | /python-libs/buildin/float_test.py | ae374b6115df751c55c5b45784a38a4d2ab4e362 | [] | no_license | wolfeyuanwei/study-python | c764353cbf75b0ccd79dc562fe11eebee712510b | be1a9ec93cd29d9fe6b69ad4f9c059fb9dd308de | refs/heads/master | 2021-05-11T22:57:51.541684 | 2018-02-08T05:03:10 | 2018-02-08T05:03:10 | 117,504,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | #!/usr/bin/python
#filename:float_test.py
#-*- coding: UTF-8 -*-
print float(1)
print float(112)
print float('123')
#print float('123a') | [
"wolfe_yuan@163.com"
] | wolfe_yuan@163.com |
bb7522462e9cd754c35c6cbd8d77c41b80156f02 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02843/s307771763.py | 7604c19731a9edf92546b778617c8b59b6b436c3 | [] | 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 | 231 | py | N = int(input())
C = [100+i for i in range(6)]
T = [float('inf')]*(N+1)
T[0] = 0
for i in range(6):
for j in range(C[i], N+1):
T[j] = min(T[j], T[j - C[i]] + 1)
if T[N] != float('inf'):
print(1)
else:
print(0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ea4f9cc4d4ef4bfe721905a6ad0f66987ecd2c3b | 1a639d185f9c883b7bebf33c577c58b22ac93c7e | /other/pretty_print.py | da9efbdd004f713a1456287f3d40a1f34fc4f48a | [] | no_license | gofr1/python-learning | bd09da5b5850b1533a88b858690ed4380b55d33e | 19343c985f368770dc01ce415506506d62a23285 | refs/heads/master | 2023-09-02T15:42:27.442735 | 2021-11-12T10:17:13 | 2021-11-12T10:17:13 | 237,828,887 | 0 | 0 | null | 2021-11-12T10:17:14 | 2020-02-02T20:03:42 | Python | UTF-8 | Python | false | false | 648 | py | import pprint
# Better with nested dicts
my_dict = {'name': 'John', 'age': '26', 'personality': 'awesome', 'info': {'skills': ['python', 'sql', 'big data'], 'level': 'senior'}}
print(my_dict)
#* {'name': 'John', 'age': '26', 'personality': 'awesome', 'info': {'skills': ['python', 'sql', 'big data'], 'level': 'senior'... | [
"gofr.one@gmail.com"
] | gofr.one@gmail.com |
a9fe2e485c4b217fd830a42b661afe353a476704 | aac7f501c77b6b887acc823768f15041cd945794 | /pyex_nosmt/toLowerCase.py | 0bf03e23040a6803f2908e5601f0ca1cd47652f0 | [] | no_license | spencerwuwu/py-concolic | c0e3967f70be489b08a33d37de6ac63084edf1b5 | 5a6816f1aff18aec3ed5859d24a296cb37b0d69d | refs/heads/master | 2020-05-18T23:24:27.552519 | 2019-05-24T03:13:04 | 2019-05-24T03:13:04 | 184,710,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from symbolic.args import symbolic, concrete
@symbolic(str="abcdefg")
def toLowerCase( str):
"""
:type str: str
:rtype: str
"""
res = []
gap = ord('a') - ord('A')
for c in str:
if ord(c) >= ord('A') and ord(c) <= ord('Z'):
res.append(chr(ord(c) + gap))
else:
... | [
"spencerwu85@gmail.com"
] | spencerwu85@gmail.com |
0dac62155c8eab62b7f8a989622d50fa6ac3739b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_demurring.py | 7eb01f540de56c594eeecfb7c4ec3144ffb71346 | [
"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 | 224 | py |
#calss header
class _DEMURRING():
def __init__(self,):
self.name = "DEMURRING"
self.definitions = demur
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['demur']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b651e64222cbe1d0605430c5bb53018d573743ae | de83b92f731e9b7ca7bd2bf8875c8d41379e74ae | /shelfie_server/__init__.py | 56f2c18e2fc7dd1b0941d43a1f16a480092c32d2 | [
"MIT"
] | permissive | bookshelfie/shelfie-server | f6370ddd942ff98f89b5ce3ffa68679b77c98999 | c08606f45d828a50f57da821e373fb85763631c1 | refs/heads/master | 2022-09-28T10:23:35.216406 | 2019-10-07T16:27:50 | 2019-10-07T16:27:50 | 208,840,166 | 2 | 0 | MIT | 2021-04-20T18:40:25 | 2019-09-16T15:56:12 | Python | UTF-8 | Python | false | false | 115 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Shelfie Server"""
from shelfie_server.shelfie import create_app
| [
"ktvkvinaykeerthi@gmail.com"
] | ktvkvinaykeerthi@gmail.com |
33465673a46e16ae28eb5862fabd79cdae7897b1 | d410077e0422bc4ecbcf22da2e9b6726c0f59dba | /kgcn_torch/backward_compatibility/gcn.py | e10dfd55cd8e9e8edc0eece32756cb0b0321c806 | [] | no_license | clinfo/kGCN_torch | 3eaf2a73dd7726bb58bce8ce63ba625344d4e34c | 3e1845764e6ee6650826b2ea990df786d078ca2d | refs/heads/master | 2021-02-05T04:28:09.922351 | 2020-11-20T05:09:15 | 2020-11-20T05:09:15 | 243,745,187 | 11 | 0 | null | 2020-11-13T01:34:15 | 2020-02-28T11:18:15 | Python | UTF-8 | Python | false | false | 3,289 | py | import click
from ..utils.logger import get_logger
@click.command(context_settings={"ignore_unknown_options": True})
@click.argument("mode", type=str, nargs=1)
@click.option("--config", type=click.Path(exists=True), help="config json file")
@click.option("--save-config", type=click.Path(exists=True), help="save conf... | [
"kbu94982@gmail.com"
] | kbu94982@gmail.com |
25ac1d143796d14f80ad8537676d576a293a4e26 | 048f2002ed13503d50428c8949c95a2e4f9bd532 | /Graph/207_CourseSchedule.py | a4b26c326227dc113664b8f57f2362ee5e0e08d1 | [] | no_license | ZhengLiangliang1996/Leetcode_ML_Daily | 9c9330bd2c7bab5964fbd3827a27eeff5bd2c502 | 8cdb97bc7588b96b91b1c550afd84e976c1926e0 | refs/heads/master | 2023-04-06T19:52:23.524186 | 2023-03-30T21:08:57 | 2023-03-30T21:08:57 | 213,055,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | class Solution(object):
def canFinish(self, n, p):
"""
:type numCourses: int
:type prerequisites: List[List[int]]
:rtype: bool
"""
# topological sorting + dfs
graph = collections.defaultdict(list)
for u, v in p:
graph[u].append(v)
... | [
"zhengliangliang1996@gmail.com"
] | zhengliangliang1996@gmail.com |
bfd36f84c94c1000a6e02ce089752480e85da286 | d785e993ed65049c82607a1482b45bddb2a03dda | /ST_tW_antitop_v2_cfg.py | c443a92315cf1c06a55aacab721d27b747e77a8b | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'ST_tW_antitop_v2'
config.General.transferLogs= True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
conf... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
b13eb24b912b1e3c5d4fa17042004ab81ecfb101 | 396f93d8e73c419ef82a94174815a2cecbb8334b | /.history/tester2_20200322012556.py | 423afd689c153dc1ac57d4c71e6c155ad48e52f4 | [] | no_license | mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch | 8c73d9448b916009c9431526864a4441fdeb682a | 90b2dca920c85cddd7c1b3335344ac7b10a9b061 | refs/heads/master | 2021-03-26T21:16:42.561068 | 2020-04-17T21:44:26 | 2020-04-17T21:44:26 | 247,750,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | import os
import subprocess
import re
from datetime import datetime
import time
from statistics import mean
numberOfTests = 1000
tabuIteration = '1000'
tabuDuration = '10'
numberOfCities = '50'
final_solution = []
list_coverage = []
local_minimum = []
print(f"\n\nTest for Tabu Search with this config: \n\tIterati... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
08f1acd7ff7ab8f9f3e6844caf3fc53a670495d5 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Extras/ThirdPartyNotUE/emsdk/Win64/python/2.7.5.3_64bit/Lib/site-packages/setuptools/package_index.py | 9c9d76a186aa383abc0615e1d0e1f3b5fe3df584 | [
"NCSA",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-mit-nagy",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Python-2.0",
"TCL",
"OpenSSL",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRe... | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | Python | false | false | 36,788 | py | """PyPI and direct package downloading"""
import sys
import os
import re
import shutil
import socket
import base64
from pkg_resources import (
CHECKOUT_DIST, Distribution, BINARY_DIST, normalize_path, SOURCE_DIST,
require, Environment, find_distributions, safe_name, safe_version,
to_filename, Requirement, ... | [
"tungnt.rec@gmail.com"
] | tungnt.rec@gmail.com |
87a37fe3e3f0046a61ab08d1d78e6778518d0b0c | f2fdc83b5d857f3f1b90a8dc0edfaf3521a3f13a | /retinanet/core/metric.py | 169055e56d1f46381c99d90f62205afdfb1bc98a | [] | no_license | ArsenLuca/RetinaNet | e185acec5c18ce411508a560abccfed6723c1740 | b6122b1de458db8bd6f674f4a7098358c9c8b44d | refs/heads/master | 2021-06-24T04:42:48.848712 | 2017-09-11T12:18:17 | 2017-09-11T12:18:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,819 | py | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2016 by Contributors
# Copyright (c) 2017 Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Modified by Yuwen Xiong
# --------------------------------------------------------
impor... | [
"2081264@qq.com"
] | 2081264@qq.com |
cbf8528ab3e3ecdc60fc8a91bbe9cda7792d5b16 | 06fb1877c650a96ff331c07438d70505f13d39b2 | /vcr_apps/user/models.py | 2148ea2e1687990576a5358c0046f15581cf43ef | [] | no_license | VcrTing/Online_Photo_Viewer | b0b02e3695833bedd7987bb6a21b9024c00238d4 | b2150670a9d4e9c2390045419feb98a252fce17e | refs/heads/master | 2020-03-25T18:08:12.013802 | 2018-08-08T13:08:21 | 2018-08-08T13:08:21 | 144,014,461 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,962 | py | # Import
# here that import Python module
import os
from django.db import models
from django.db.models import Q
from django.utils import timezone
# Import
# here that import your module
from ..web.models import Lang
from ..vcr_conf import (kouza_path, vcr_web_path,
station_pic_flag, station_im... | [
"2782721850@qq.com"
] | 2782721850@qq.com |
3f2155fe4bf217fbf07f07a06aa0ef30536a9679 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /social_rl/multiagent_tfagents/joint_attention/attention_ppo_agent.py | 5f9541d3add61fb038b0e19e75fd99e9671bea73 | [
"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 | 20,654 | 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 |
075b965b17e97fa15a993e2c6dcde399d22215a6 | aaada188819b92d1faf3d99c91855da9f00d6557 | /ipipe/producer.py | 5fd779b8acca804c9c21a6c26b3fd2810a66f6fb | [] | no_license | bruth/ipipe | b121c22238149304dd0a9fc14d665b01095a0d3e | 0ef0dc0104d01381d38df13f76affe695a9a8a82 | refs/heads/master | 2021-01-10T19:09:08.771093 | 2012-08-29T18:21:30 | 2012-08-29T18:21:30 | 5,570,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | from collections import namedtuple
from .iterbase import Iterable
class Producer(Iterable):
"""An iterator class that wraps an iterable. Each `line` will be mapped
converted to a record object for downstream processing.
`fields` is an array of field names that are valid variable
names as keys and the... | [
"b@devel.io"
] | b@devel.io |
ea893f1717b2251ea9d807bef8fc91b3a4870c26 | 9303232950d946c0b72bec62d7f95a689efa6160 | /Otsu_threshold.py | cae726b6ce39555a5cbd4cc6ed9858ff107b2256 | [] | no_license | Vibashan/OpenCV_all_basics | 7518e9b46af49e0d2a52b78c88619d1dc7fffbd3 | f42c2a9a90e3c91071730370793dce5e54fc8500 | refs/heads/master | 2021-09-10T09:40:40.474838 | 2018-03-23T19:35:53 | 2018-03-23T19:35:53 | 125,088,817 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import cv2
import numpy as np
img = cv2.imread('grayscale_img.jpg',0)
# global thresholding
ret1,th1 = cv2.threshold(img,127,255,cv2.THRESH_BINARY)
print ret1
# Otsu's thresholding
ret2,th2 = cv2.threshold(img,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
# ret will store the optimal thresholding value inste... | [
"vibashanvs@gmail.com"
] | vibashanvs@gmail.com |
ea5b7553821b4501226e500d5a3db50ad2ca1a0a | 99280ee4672420b43bdcedb9c6f5c93a5fe182f0 | /API/blogapi_3/blog_project/posts/migrations/0001_initial.py | a299ce2174d6f4f7f3d856c523e445e5424bdc8e | [] | no_license | kamral/test_1 | f8674a075d51fc94630df7d6a5cf55b11d086db0 | a10ce3337463d1cb9b56876d0566798740c0b42f | refs/heads/master | 2023-08-06T23:50:45.519935 | 2020-06-07T09:27:43 | 2020-06-07T09:27:43 | 265,688,683 | 0 | 0 | null | 2021-09-22T19:23:15 | 2020-05-20T21:21:21 | Python | UTF-8 | Python | false | false | 927 | py | # Generated by Django 3.0.7 on 2020-06-03 11:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"kamral010101@gmail.com"
] | kamral010101@gmail.com |
e96138d8b2f29f80701b588b049571d5110afa0e | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fcpm/domstats.py | 9cfdd3db4b7ff97d721f6890a87c00fa2d4f2644 | [] | 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,590 | 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 |
f1635fe18b44f00e46ff4b1ea6b52edbb786f893 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_340/ch146_2020_04_08_17_54_11_608131.py | a03451c5425c73bace577e917f28444d9415796b | [] | 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 | 175 | py | def conta_ocorrencias(lista):
dicionario={}
for t in lista:
dicionario[t]=1
if dicionario[t] in dicionario:
dicionario[t]+=1
return dicionario | [
"you@example.com"
] | you@example.com |
00de1e90e0661ad7d51d4d975b58eae6593cc06d | 03ab77761c1efa3977d18239879dbeb81502e1a0 | /plot_cfrac.py | e2ebee60efeab9e39d3a00b78ac04b5f6ed9697e | [] | no_license | alexji/chemmix | 3df24eb9f829de6601ece9002e410dcc09c22bfc | 97274b13baf75d51e75e485ccbe5551d41001e30 | refs/heads/master | 2021-01-21T19:19:38.558224 | 2014-08-18T21:50:28 | 2014-08-18T21:50:28 | 19,949,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | import numpy as np
import pylab as plt
from optparse import OptionParser
import karlsson
import util
if __name__=="__main__":
parser = OptionParser()
parser.add_option('--save',action='store_true',dest='save',default=False)
parser.add_option('-c','--cfecrit',action='store',type="float",dest='CFecrit',defa... | [
"alexji@mit.edu"
] | alexji@mit.edu |
1a79747c75842f8ca2319cc4476905e5d9dc4caa | a0f0efaaaf69d6ccdc2a91596db29f04025f122c | /build/cellctrl_database_bridge/catkin_generated/pkg.develspace.context.pc.py | 6b335bd4ab8e0d4dffa9bba626c2526491ecd798 | [] | no_license | chiuhandsome/ros_ws_test-git | 75da2723154c0dadbcec8d7b3b1f3f8b49aa5cd6 | 619909130c23927ccc902faa3ff6d04ae0f0fba9 | refs/heads/master | 2022-12-24T05:45:43.845717 | 2020-09-22T10:12:54 | 2020-09-22T10:12:54 | 297,582,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/handsome/ros_ws_test/src/ros_base/cell_controller/Model/cellctrl_database_bridge/include".split(';') if "/home/handsome/ros_ws_test/src/ros_base/cell_controller/Model/cellctrl_database_bridge/inc... | [
"chiuhandsome1966@gmail.com"
] | chiuhandsome1966@gmail.com |
0e4100941a722d22d87584689dfc5a443c4b0e70 | 07325ef496db92515b119bfaaa2e1a2a43c0fee7 | /vcr/serialize.py | a9c04d667f62934f32cd66c520c037754e1e2176 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yougov/vcrpy | 8d02b73d34f7d21c3b02cc77f75c3d29641597c2 | df1ca4cb8e8546a1662d40a9b8d41ae1d5ff6378 | refs/heads/master | 2023-06-21T05:51:16.125030 | 2019-05-13T16:13:32 | 2019-05-13T16:13:32 | 186,450,336 | 1 | 0 | MIT | 2019-05-13T16:13:34 | 2019-05-13T15:46:16 | Python | UTF-8 | Python | false | false | 2,151 | py | from vcr.serializers import compat
from vcr.request import Request
import yaml
# version 1 cassettes started with VCR 1.0.x.
# Before 1.0.x, there was no versioning.
CASSETTE_FORMAT_VERSION = 1
"""
Just a general note on the serialization philosophy here:
I prefer cassettes to be human-readable if possible. Yaml ser... | [
"me@kevinmccarthy.org"
] | me@kevinmccarthy.org |
583fd26c5338a6462353741540da87984a3a31ab | 537d28fb2142331e27c84ebf2c16bad77aceb24e | /ml/m22_RF.py | 3c81d8132b8aca635ba94c899329667fdbc66f8f | [] | no_license | gema0000/bit2019 | c27c3cec8d8d3a0907ade41523ce1c5ee86337b6 | 2f44ad3956b387186935374d9a488ad40a13bcaf | refs/heads/master | 2020-07-03T05:19:41.051447 | 2019-10-26T23:56:25 | 2019-10-26T23:56:25 | 201,796,021 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
cancer = load_breast_cancer()
X_train, X_test, y_train, y_test = train_test_split(
cancer.data, cancer.target, str... | [
"gema0000@naver.com"
] | gema0000@naver.com |
e34120c37dc90b908c1c8f4898b29fb766abce5e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/52/usersdata/82/21178/submittedfiles/matriz1.py | accd67561429372a4a4d1dba504fa7d8b3e1ee21 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def colunaEsquerda(a):
for j in range (0,a.shape[1],1):
for i in range (0,a.shape[0],1):
if a[i,j]==1:
ce=j
break
return ce
def colunaDireita(a):
for j in... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
24c86403b092c52afbcca04e5e13139695274382 | 223861dd0dda7a2e4c94c81171cd2d7fb4979659 | /azure/mgmt/resource/links/management_link_client.py | 6855492fa70e0433d7e994c25014aa4f4d5d7d97 | [] | no_license | pexip/os-python-azure-mgmt-resource | 99bc515e3ff4c1a07458fcd2de96bb48daab1eee | f09919899900adf389baf8f96ae7117ccdbd7f1a | refs/heads/master | 2023-08-28T05:02:15.070287 | 2017-02-28T22:33:49 | 2017-02-28T22:33:49 | 54,351,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,980 | 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.
# C... | [
"jmb@pexip.com"
] | jmb@pexip.com |
c46e546a71718cbf217b89a17e188133aa8ac88d | 2e263bb909bb706957990f23d4d07a33fe031a61 | /her/util.py | 76d2f82ff42e50bb3836e70aea2d53b8b879dc4f | [] | no_license | liziniu/SuperMario | 3e9b776d4c490275b1684b4fd3b3471914811b7d | 64a33901c61591348dd4b9c878e396901dea27b6 | refs/heads/master | 2020-05-16T02:32:10.694180 | 2019-06-02T10:08:11 | 2019-06-02T10:08:11 | 182,632,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,013 | py | import time
import numpy as np
from baselines import logger
from baselines.common.tf_util import save_variables
import functools
class Acer:
def __init__(self, train_runner, evaluate_runner, model, buffer, log_interval):
self.train_runner = train_runner
self.evaluate_runner = evaluate_runner
... | [
"374387855@qq.com"
] | 374387855@qq.com |
56800470a5c64bded07bdd342cbe46aacb888fea | 15e85b4d9527e7a87aded5b3c99ad9c785bca915 | /datcore-sdk/python/datcore_sdk/api/data_api.py | 68a55450eb41cc5697146e9543938b74a45c249f | [
"MIT"
] | permissive | mguidon/aiohttp-dsm | 4161f9977d3dffbb727aa26cce4e9fb347aa4e21 | 612e4c7f6f73df7d6752269965c428fda0276191 | refs/heads/master | 2020-03-30T09:03:49.791406 | 2018-10-02T07:05:35 | 2018-10-02T07:05:35 | 151,058,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,752 | py | # coding: utf-8
"""
Blackfynn Swagger
Swagger documentation for the Blackfynn api # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
fro... | [
"guidon@itis.ethz.ch"
] | guidon@itis.ethz.ch |
b459ddac198f69f7f4e52e302f21d079a1708f05 | dfc2c18053b8e7576f88e7b2524d7ca3a8f47282 | /ch00/section6/45.py | 377a8ed931bb086dd4229804eb44d526dd5a721b | [] | no_license | Xoozi/tchomework | a6eed3bbf697ff12af8d42249ec58a139aed0c4c | 627c98b0b652ef20fd93025a17341bba76fbfce6 | refs/heads/master | 2021-01-23T21:18:15.793703 | 2018-10-21T11:05:55 | 2018-10-21T11:05:55 | 57,583,655 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 253 | py |
#用参数做图法画出给定区间上方程的图形
#
#抛物线 x = 2*t+3 y = t**2-1, -2 <= t <=2
def fx(t):
return 2*t+3
def fy(t):
return t**2-1
t = linspace(-2, 2, 100)
x = fx(t)
y = fy(t)
xlabel('x')
ylabel('y')
plot(x, y, 'r-')
| [
"wwfxtt@gmail.com"
] | wwfxtt@gmail.com |
805ad6ad78fa8ed7d9c43d95a32bc82a4e0534eb | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R4/benchmark/startQiskit572.py | 7beb45cfd5d1b4c98cefd4c105aed2b260f9c2d2 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | # qubit number=3
# total number=13
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
408a7c34c8b18a2ee261983370d14c1b7a9d75b8 | ffbe40b777a2bb2e74d97e9ebecced4cde690603 | /part2/e48_chinese_zodiac.py | 28dcd4b9d8d32c57ae809efef0a38527d5591ea8 | [] | no_license | terranigmark/the-python-workbook-exercises | ad8dd14ef32d7e018f18f28d356290e959bfc483 | eed8b31dd146f3ac95923b9526fb28ae9554b8e7 | refs/heads/master | 2022-12-23T15:37:24.539818 | 2020-09-24T05:55:52 | 2020-09-24T05:55:52 | 294,312,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | """
The Chinese zodiac assigns animals to years in a 12 year cycle. One 12 year cycle is
shown in the table below. The pattern repeats from there, with 2012 being another
year of the dragon, and 1999 being another year of the hare.
Year Animal
2000 Dragon
2001 Snake
2002 Horse
2003 Sheep
2004 Monkey
2005 Rooster
2006 D... | [
"linnk99@gmail.com"
] | linnk99@gmail.com |
bb378200ffdfd7216f6e73129ca4c951e84d6bd4 | 1e011655472ba8980219a6a7cf7eef56f6a7ff84 | /sopel_modules/SpiceBot/AI.py | 3e6b6a2211826e98f7d02dc6f6c7cfde1ffc40c8 | [
"EFL-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | SpiceBot/SpiceBot | dfcd8a43a87e0cf540ea93ece3c75f8960574c82 | 816dddc88943b9194f3f0aa6558759eedd585343 | refs/heads/master | 2021-06-10T01:02:36.638349 | 2019-11-20T15:54:39 | 2019-11-20T15:54:39 | 184,413,122 | 1 | 5 | NOASSERTION | 2019-11-20T15:54:41 | 2019-05-01T12:30:15 | Python | UTF-8 | Python | false | false | 9,393 | py | # coding=utf8
from __future__ import unicode_literals, absolute_import, division, print_function
"""
This is the SpiceBot AI system. Based On Chatty cathy
"""
from sopel.tools import Identifier
from sopel.config.types import StaticSection, ListAttribute, ValidatedAttribute
import os
import tempfile
import aiml
from ... | [
"sam@deathbybandaid.net"
] | sam@deathbybandaid.net |
5f8e889780055f66f686d004b462b02b7edd1ef2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_106/ch65_2020_06_22_18_15_42_879777.py | 7a42b8d9a808cd614aee77fcc3c2a7f7278492ff | [] | 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 | 63 | py | def capitaliza(texto):
return texto[0].upper() + texto[1::] | [
"you@example.com"
] | you@example.com |
e344aeb3e8931712d9be9894bcabcae81f4537c7 | 130c2afc013217586912ae8b8e917e88f06be605 | /python/ex4_getText2VoiceStream.py | 2b7680be723099810803fa9e66b6d48e6dc76811 | [
"MIT"
] | permissive | HAMDONGHO/USMS_Senior | affc106aa70bd875914eef88b0914f595717cc35 | e247137b6a9a351676f2de7887d83b1f900e298e | refs/heads/master | 2023-01-22T10:55:58.426768 | 2020-11-25T14:09:27 | 2020-11-25T14:09:27 | 313,334,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example 4: TTS - getText2VoiceStream"""
from __future__ import print_function
import grpc
import gigagenieRPC_pb2
import gigagenieRPC_pb2_grpc
import os
import datetime
import hmac
import hashlib
import ex1_kwstest as kws
# Config for GiGA Genie gRPC
CLIENT_ID = ''... | [
"ii8858@naver.com"
] | ii8858@naver.com |
48d47924176751b23d28676a899fa9aef2f03d2a | e53db471b760857368a9463805adc74d61293755 | /struct2tensor/prensor_to_structured_tensor.py | 8f80cc7d7d6cbfabea2f1601f7c91e8786948bb4 | [
"Apache-2.0"
] | permissive | NeoTim/struct2tensor | e19451db479a3b6e952e4a662ea562b3fe7e98c1 | e2ff54665a4d111015089492704343f0e6a446d1 | refs/heads/master | 2022-12-29T01:01:08.240078 | 2020-10-13T16:30:47 | 2020-10-13T16:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,265 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
43d9eb340f695c3047534c4878bd3e1cc5d90ccc | 4ecb332ba2edd08d4a0a0021db675b41c3790dbd | /bc19-scaffold/bots/20.SprintBot3[unused]/constants.py | 74e3bf2633630b146f85a3828fc3ee08a09a43e6 | [] | no_license | Nischay-Pro/BattleCode2019 | fdffdd235e8db60189e90e48c3f47f23bb32b30f | 92193daf631687acca00176c1fa6a9255d7d4381 | refs/heads/master | 2020-04-16T10:15:39.875870 | 2019-01-27T21:08:52 | 2019-01-27T21:08:52 | 165,497,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | from battlecode import SPECS
pathfinding_heuristic_multiplier = 1.1
pilgrim_aging_factor = .3 # Weight for the age of pilgrim after whihc it won't try to search for new mines
pilgrim_will_scavenge_closeby_mines_after_turns = 30
pilgrim_will_scavenge_closeby_mines_before_turns = 150
pilgrim_will_scavenge_closeby_mines... | [
"f2015845@hyderabad.bits-pilani.ac.in"
] | f2015845@hyderabad.bits-pilani.ac.in |
11381bf066b3af6eba8b5feeb69b51f9dda2240c | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/fritzbox/light.py | f83dd4545924a9890610408dd49c89ca406f0eff | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 6,428 | py | """Support for AVM FRITZ!SmartHome lightbulbs."""
from __future__ import annotations
from typing import Any, cast
from requests.exceptions import HTTPError
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_COLOR_TEMP_KELVIN,
ATTR_HS_COLOR,
ColorMode,
LightEntity,
)
from homeassis... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
8f9ec386604ef5ef4433c1e5bcc25ffad05f4544 | 8b4ccce0e26408f05297e31b590d350d9632271d | /529. Minesweeper.py | 5e372b300b065ba316c99f504f429e870f8a14e5 | [] | no_license | bryantbyr/LeetCode-solutions | 65e50e104e3504662ae7547865c326282a13a9c9 | 07b8c34b12d05413466119a82247d7ee5cc34318 | refs/heads/master | 2022-01-13T12:17:46.699379 | 2019-04-29T11:54:02 | 2019-04-29T11:54:02 | 87,683,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,616 | py | # -*- coding: utf-8 -*-
# @Time : 2019/1/14
# @Author : qirui
# @FileName: 529. Minesweeper.py
# Time: O(N)
# Space: O(N)
# DFS
class Solution(object):
def updateBoard(self, board, click):
"""
:type board: List[List[str]]
:type click: List[int]
:rtype: List[List[str... | [
"noreply@github.com"
] | bryantbyr.noreply@github.com |
96f73ef8a414a54330665b959c469bf807311209 | 8d55d41a4f5c0b89331cac714c1525e9581d9720 | /DartMomentumProject/working_example_kh_bvh/mtOptimize.py | 1430372ca360fe71340826ba952ba44c7b515f71 | [
"Apache-2.0"
] | permissive | hpgit/HumanFoot | 8cf35ceeeb35a0371e03eaf19d6da58dc01487eb | f9a1a341b7c43747bddcd5584b8c98a0d1ac2973 | refs/heads/master | 2022-04-13T23:38:19.072203 | 2019-12-06T06:36:10 | 2019-12-06T06:36:10 | 41,348,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,134 | py | import numpy as np
import numpy.linalg as npl
import sys
if '../PyCommon/modules' not in sys.path:
sys.path.append('../PyCommon/modules')
import PyCommon.modules.Math.mmMath as mm
import PyCommon.modules.Util.ysPythonEx as ype
def getTrackingWeight(DOFs, skeleton, weightMap, rootPositionWeight=0.):
weights = [1.]*s... | [
"garethvlf@gmail.com"
] | garethvlf@gmail.com |
38b3f37cfad8197a5ae66bd5eb665f4c879cd3b0 | b6c6e045fc27ae037ab3cdec0a8c1f4a41cbe6cf | /napalm-lab/load_merge_candidate.py | 5b54b9b28e1fe4521f65f7b9e66c8eb1f3bb5684 | [] | no_license | sourjp/lab-network | c00dcaff5053d3adaab6cf07b21218d45b12d092 | f1d1f20a0f7161e0f297d75917e246e4d18579b3 | refs/heads/master | 2023-02-12T05:33:29.675565 | 2020-12-19T01:56:20 | 2020-12-19T01:56:20 | 321,029,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | #!/usr/bin/env python3
from napalm import get_network_driver
import time
vsrx1_params = {
"hostname": "localhost",
"username": "root",
"password": "Juniper",
"optional_args": {"port": "2201"}
}
if __name__ == "__main__":
junos_driver = get_network_driver("junos")
CMD = [
"set protocol... | [
"hiro0209.ki@gmail.com"
] | hiro0209.ki@gmail.com |
452913bf431a1975f277374addfe3d67c22655e5 | 0cad68eadfb89c7e339dbb85e38c8f95a4980d4a | /social_auth/__init__.py | 71ed1f4c4c807e3fb0d9b04d9435036ab2871fcf | [
"BSD-2-Clause"
] | permissive | jess3/django-social-auth | 6005f5cb4fc3b6bd957079a186cf606fad793202 | 46bf830780a60a5fd50be8ddddbe664b0abe9841 | refs/heads/master | 2021-01-18T08:52:33.336890 | 2011-04-04T23:27:37 | 2011-04-04T23:27:37 | 1,561,031 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | """
Django-social-auth application, allows OpenId or OAuth user
registration/authentication just adding a few configurations.
"""
version = (0, 3, 10)
__version__ = '.'.join(map(str, version))
| [
"matiasaguirre@gmail.com"
] | matiasaguirre@gmail.com |
71a468e00170a6516c6aa833fcbc1bac21adf181 | 1a72f735c04ef4fc264177aab24f8c71d8b0f813 | /ftpserver/uploader/urls.py | ac712c3064b39c8666edc865a01b6a4b935b2cb1 | [] | no_license | morwen1/ftp-server-test | bb583ac91c9833b08389eb1935a25b4bbfb21350 | edcc6c859fa49089204efd468b1298f5fd62127e | refs/heads/master | 2020-03-31T03:01:41.731032 | 2018-10-06T14:40:50 | 2018-10-06T14:40:50 | 151,848,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from django.urls import path
from . import views
urlpatterns = [
path('upload' , views.upload_file, name = 'upload')
]
| [
"morwen901@gmail.com"
] | morwen901@gmail.com |
b6efafdd0bb77b3c35204d2661c9ffe008e158c9 | dc42a65f63ca8327ee74675c7606a9b6e3b39d40 | /tpdatasrc/co8infra/scr/Spell591 - Resist Electricity.py | 8152d9cc36f5e0f1800c296d688c19a67f993695 | [
"MIT"
] | permissive | anatoliy-savchak/TemplePlus | 03cda558de2fd30d34305b7e5b548d202ba97f76 | 50922bb14cc2d7dcf8fceeccf45c3b905c1b512f | refs/heads/master_old | 2023-04-28T12:01:06.205497 | 2021-09-25T13:03:51 | 2021-09-25T13:03:51 | 172,583,383 | 2 | 0 | MIT | 2019-02-25T20:56:01 | 2019-02-25T20:56:00 | null | UTF-8 | Python | false | false | 1,006 | py | from toee import *
def OnBeginSpellCast( spell ):
print "Resist Electricity OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
game.particles( "sp-abjuration-conjure", spell.caster )
def OnSpellEffect( spell ):
print "Resist ... | [
"anatoliy.savchak@gmail.com"
] | anatoliy.savchak@gmail.com |
1d57ce058f79b76645520a733919e26d3cc38fa9 | 55f60b7ec448eb48b75118b01b3878c8345242bb | /tests/env/packages/env_test_partd.py | b9c3a23e40c0c2fd1558adcdc312e6ef5fa36ff8 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | dd-rrc-ps/foxbms-2 | cd8d272afa24187c85c6fa747226bebed4cefc5e | 555704a9c4af3dd1c2213e6f0be9860f34e2b1b3 | refs/heads/master | 2023-08-18T13:49:42.503755 | 2021-10-21T12:15:09 | 2021-10-21T12:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provid... | [
"info@foxbms.org"
] | info@foxbms.org |
e0c5e51a08c3898d924497edd60ac16d76d906bf | 029c73690f621fd09e0b6ccd07be436f4a5a3534 | /bin/forecast/weather.py | ec0bf999b142c1ef223ae5d6e8c4d028a80ba2f1 | [
"Apache-2.0",
"MIT"
] | permissive | wwwsaisurya/weather-chatbot-1 | bb492684add065ce0945be9d9979f475ca5795f5 | e43074e17dfb9866fe507037c6662ef4ab274d68 | refs/heads/master | 2020-12-03T08:25:03.173975 | 2019-12-08T20:05:47 | 2019-12-08T20:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | from abc import ABC, abstractmethod
from typing import Dict
from bin.forecast import WEATHER_ID
from bin.web_api.requests import Request, SafeBotRequest
from bin.web_api.urls import CommonUrl
class Weather(ABC):
"""Abstraction of a weather."""
@abstractmethod
def data_records(self) -> Dict[str, str]:
... | [
"vyahello@gmail.com"
] | vyahello@gmail.com |
4972d4c61e1fc2a08de689adb1c0f4042bb6dd0b | 5bd568514805c092efebb07b41bf6ee2b4a9c6d5 | /setup.py | f5f858f91caed3cdb9edf32a9994fafcb57d61a2 | [
"MIT"
] | permissive | chagge/chainercv | d364ebbf1d405bd2df4481e15061e50f12acbb09 | db781e4c50dec348c7e5a7ced14f54e56aca76e4 | refs/heads/master | 2020-05-21T06:14:58.128442 | 2017-03-10T15:20:43 | 2017-03-10T15:22:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import os
description = """
Collection of Deep Learning Computer Vision Algorithms implemented in Chainer
"""
setup(
name='chainercv',
version='0.4.2',
packages=find_packages(),
author='Yusuke Niitani',
... | [
"yuyuniitani@gmail.com"
] | yuyuniitani@gmail.com |
f2c7971167a0a0a807523ad2e9719588806b3bcf | 5b4230f074892b5f9066509e2819c76b55c7ea5f | /1/account/migrations/0001_initial.py | 7787d43e7f7caa7b2dd17cf026dc41651a07e589 | [] | no_license | ricemi189/sae-django | 2807907b27444f4c7845282acd145a4c1087a92d | aed4f81b14ca2b050a8868297b481d7e13bb4ca7 | refs/heads/master | 2020-03-16T01:09:10.486206 | 2014-10-26T16:46:06 | 2014-10-26T16:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
m... | [
"liulixiang1988@gmail.com"
] | liulixiang1988@gmail.com |
2ee56fbb3fa53178816c05eca87862ad0014063c | 2dce8510e8c2bbe7f3f21af122697e3ae499e430 | /pyhodl/api/price/models.py | 53703dc73dcaf525f960ee0788d46763907e07f4 | [
"Unlicense"
] | permissive | havocesp/pyhodl | f0da449dd7ea95214f55169f38fe711b46571724 | 6c2fc39c2c9b4dd7f4ec6cfb746e9dd8a91ccc06 | refs/heads/master | 2020-03-29T14:35:54.441432 | 2018-07-25T21:17:45 | 2018-07-25T21:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | # !/usr/bin/python3
# coding: utf_8
""" API client core to fetch price data """
import abc
import time
from hal.time.profile import print_time_eta, get_time_eta
from pyhodl.api.models import AbstractApiClient
from pyhodl.config import DATE_TIME_KEY
from pyhodl.utils.dates import generate_dates, datetime_to_str
c... | [
"sirfoga@protonmail.com"
] | sirfoga@protonmail.com |
8a4fd77a3b28b7603ac121ba4116e3fb76a6ddec | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-1002.py | 9ddb03634e53c4fdd27d46e114555cd3b8b485f1 | [] | 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 | 13,349 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
9460232e943c80054ac29e998967607d206c4f49 | 5a03b251bd423506b086ba253b66039a70607858 | /bootstrap/new.py | c57b453d76a3f42ed1a03ab1f1a317eed630ff7e | [
"BSD-3-Clause"
] | permissive | CV-IP/bootstrap.pytorch | 0ecd6b7ec0241770875a2692e3ccc22882156e4a | 4cd68ffc3d7bb20518805ce172b5323c89ff0fab | refs/heads/master | 2022-07-09T05:23:20.874340 | 2020-05-15T07:18:20 | 2020-05-15T07:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | from pathlib import Path
from argparse import ArgumentParser
def replace_content(file_path, prj_name):
content = file_path.read_text()
content = content.replace('{PROJECT_NAME}', prj_name)
content = content.replace('{PROJECT_NAME_LOWER}', prj_name.lower())
content = content.replace(' # noqa: E999', '... | [
"remi.cadene@icloud.com"
] | remi.cadene@icloud.com |
e169f3593a55ab3e28eef49992508de44d577a44 | 3a02bff6397eb23afd55cc17faf81c24a8751f2d | /fsoft/Week 1/B1/bai11.py | 2f96b9df3ba5160d26764d5ef456b8102c564440 | [] | no_license | cothuyanninh/Python_Code | 909fd4d798cbd856e8993f9d4fea55b4b7c97a1f | 7f657db61845cf8c06725a2da067df526e696b93 | refs/heads/master | 2022-11-06T01:00:39.939194 | 2019-01-13T15:27:38 | 2019-01-13T15:27:38 | 164,468,626 | 0 | 1 | null | 2022-10-13T16:16:21 | 2019-01-07T17:40:51 | Python | UTF-8 | Python | false | false | 257 | py | """C1"""
string_word = "Fresher Academy"
for i in range(1,len(string_word)+1):
print(string_word[-i], end ="")
"""C2"""
string_word = "Fresher Academy"
list_temp = [str(i) for i in string_word]
list_temp.reverse()
print("".join(str(i) for i in list_temp)) | [
"cothuyanninh@gmail.com"
] | cothuyanninh@gmail.com |
8121e8d4c09584e5111eb083b4fedb3f5864f521 | a9063fd669162d4ce0e1d6cd2e35974274851547 | /swagger_client/models/body42.py | f9c57f0ad0eb0d7d03f9bd441e3c6258d653b971 | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,131 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
60b291d79d0d11193019ba49bac62412e5dc29ef | 79b3a30b9ca8f91c72a1d2df82d9876f7af4b43a | /brot.py | a5d60724787de01c56071eb2a0f430f6419ba39a | [] | no_license | vtt-info/PiPicoDsply | 1a7f708a21d1eed723f8608f50332d8bfde94093 | e359d77a0ca00419a7606805fbe92d3091afbaa3 | refs/heads/main | 2023-03-08T02:35:56.505140 | 2021-02-20T12:32:22 | 2021-02-20T12:32:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import picoexplorer as display
# based on initial code demo for the PiMoroni PicoDisplay for the RaspberyPiPico
width = display.get_width()
height = display.get_height()
display_buffer = bytearray(width * height * 2) # 2-bytes per pixel (RGB565)
display.init(display_buffer)
display.set_backlight(1.0)
iteration... | [
"noreply@github.com"
] | vtt-info.noreply@github.com |
6951085f6aed8875b12397a2ae6b4438dcc84770 | 14c9d0a885a4dfac5f3e01c5fb6beb7b209e1aa6 | /mycode/xiachufang_redis.py | 6efe6f8fcb4b40611cdf4a7785ac741cd1466ccc | [] | no_license | xvjingcheng/test01 | ec1f0ee086e84a475bc51060673f19a41de1395c | 9637fd26016fe2a62b2d36fbdaf72eca2d2e7863 | refs/heads/master | 2020-05-17T17:19:13.902597 | 2019-04-28T03:20:07 | 2019-04-28T03:20:07 | 183,847,486 | 0 | 1 | null | 2019-04-28T03:20:10 | 2019-04-28T02:57:57 | null | UTF-8 | Python | false | false | 2,496 | py | import datetime
import json
import requests
from lxml import etree
import threading
from queue import Queue
import redis
import signal
client = redis.StrictRedis(host="sharemsg.cn",db=12)
url = "http://www.xiachufang.com/explore/"
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKi... | [
"1625211623@qq.com"
] | 1625211623@qq.com |
f34417059bf4e54d1056c2e8c1242e58702f61ab | a54ea2df19ce58ffc7080667d40a8067221cf3d9 | /fb_post_clean_arch/adapters/service_adapter.py | 84946e78364a25b64193dae25fb7152087317856 | [] | no_license | gundetisagar/fb-post | 211f877d39e8c2051ccc81a3f48f540fa7bf9766 | d1dc9b0143a021447d39e99573b3dd4f1375af02 | refs/heads/master | 2022-11-13T22:43:24.837914 | 2020-07-11T09:35:35 | 2020-07-11T09:35:35 | 278,544,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | class ServiceAdapter:
@property
def auth_service(self):
from .auth_service import AuthService
return AuthService()
@property
def reactions_service(self):
from .reactions_service import ReactionsService
return ReactionsService()
def get_service_adapter():
return Se... | [
"sagergundeti@gmail.com"
] | sagergundeti@gmail.com |
e9ca03b7324b0db6749a6e54e0159991ddd1ec8b | c52fc81a4c23ccbbe1c466d5abf5b4f5f08217ca | /02.Python/08.Spider/weather/weather/weather/spiders/Weather.py | 1b4b797c944cf82b52b300efcaa6711b1092ee8a | [] | no_license | haoen110/FullStackPython | 611720895d2ea2901e8109640824d775d60a9d66 | e2b59f4a41ec727ab6d79291ec69d454071d646c | refs/heads/master | 2020-04-19T23:40:41.934095 | 2020-01-12T01:52:30 | 2020-01-12T01:52:30 | 168,502,346 | 0 | 0 | null | 2019-12-04T03:47:24 | 2019-01-31T09:56:14 | HTML | UTF-8 | Python | false | false | 1,414 | py | # -*- coding: utf-8 -*-
import scrapy
from weather.items import WeatherItem
class WeatherSpider(scrapy.Spider):
name = 'Weather'
allowed_domains = ['wunderground.com']
start_urls = ['https://www.wunderground.com/history/daily/cn/shenzhen/ZGSZ/date/2019-1-1']
def parse(self, response):
item = ... | [
"haoenwei@outlook.com"
] | haoenwei@outlook.com |
53183d5c7657937a6a6fd9690016d253d211164b | ec78f8ab63aec0753b9360715a4276a971b78a82 | /py/scikit/logistic/data_loader.py | a5fa4c9e8178eb575448cb60cc0cd7ef2e7b61fd | [] | no_license | anderscui/ml | 4ace7e7b8cf248042d224bd54e81b691963b2e0e | 39238ba6d802df7e8bf1089ef3605cfc83b333ac | refs/heads/master | 2021-06-03T16:09:55.207202 | 2018-11-01T18:50:49 | 2018-11-01T18:50:49 | 23,989,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | import pandas as pd
def load_sms():
return pd.read_csv('../../data/sms.csv')
| [
"anderscui@gmail.com"
] | anderscui@gmail.com |
e9a0fd04755288989dd14784c37e0b454dc1c06a | 46083e01408b6bb2e05f78a38f69fd5a6881a4c3 | /selenium02UI框架/testcase/unittestcase.py | 5160a21fba6bb3a1f1ee20ee1a91ee349e7bb3e8 | [] | no_license | caixinshu/api | 7601ce97ed6666cbc5995ecd1e32165605a7da7e | b75bf1bdbf4ee14f0485d552ff2f382c7991821e | refs/heads/master | 2021-01-22T05:54:14.651098 | 2019-12-17T09:09:23 | 2019-12-17T09:19:26 | 81,718,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | # coding=utf-8
from selenium import webdriver
import unittest
class BaiduPage(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.maximize_window()
self.driver.implicitly_wait(30)
self.driver.get("https://www.baidu.com/")
def test_001(self):
... | [
"651696408@qq.com"
] | 651696408@qq.com |
416ef283debdde6b1d17cdd43b6a2aebe378ba5a | 16b16abf48332adea0db3c0f13b242f63c5ba5d4 | /nnattack/models/oblique_tree.py | 821938340b5024dcfd352cf994c2bd57a0f4ec0a | [] | no_license | yangarbiter/adversarial-nonparametrics | 9148ab87da66bd860025fd09b0024ba20c5aca34 | 1c7a086b6c4406f485d4b7669c003b929718ffd2 | refs/heads/master | 2022-11-30T09:40:16.787306 | 2021-08-23T03:17:07 | 2021-08-23T03:17:07 | 175,070,268 | 19 | 8 | null | 2022-11-21T21:54:41 | 2019-03-11T19:29:14 | Python | UTF-8 | Python | false | false | 5,809 | py | """
https://github.com/KDercksen/pyblique/blob/master/pyblique.py
"""
from random import randint, random
import numpy as np
from collections import Counter
import numpy as np
import time
def frequencies(data, target_attr):
if len(data) == 0:
return []
try:
c = Counter(data[:, target_attr])
... | [
"yangarbiter@gmail.com"
] | yangarbiter@gmail.com |
04f926a3f93a81d7ee9c6ab66ef1553f3f8837e3 | c2eecca25b1b0062c28bf1bf4f538f25b5f70a80 | /tests/test_arnoldi.py | f0cd5aa309df4fc9691a8bbf1cebd193b54c6bd9 | [
"MIT"
] | permissive | mohamedlaminebabou/krylov | a322ba135a1022e882d62e1805853850caafe4a7 | e6af3d227f1512c84a528f9c4407934973231b42 | refs/heads/main | 2023-05-07T10:50:23.629293 | 2021-05-27T15:55:10 | 2021-05-27T15:55:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,918 | py | import numpy as np
import pytest
import scipy
import krylov
from .helpers import (
get_matrix_comp_nonsymm,
get_matrix_herm_indef,
get_matrix_hpd,
get_matrix_nonsymm,
get_matrix_spd,
get_matrix_symm_indef,
)
_B = np.diag(np.linspace(1.0, 5.0, 10))
def _unit_vec(n):
x = np.zeros(n)
x... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
f932f5edea7517ec07cf298136b9dd809dd73234 | 8f2f83bc1381d4ce7fc968aec72fa400aae4155d | /api/diagnostic/__init__.py | c8a74a57c7d643bff51c34c1c5e2d383e1f3a2ff | [
"MIT"
] | permissive | nifrali/pyStratis | c855fb33be77064c9a741255e324003319a4789f | b1a80bf155b7941e9ef8fc2ea93fa1b08a0c4366 | refs/heads/master | 2023-06-20T16:02:30.863589 | 2021-07-01T19:24:18 | 2021-07-01T19:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | from .diagnostic import Diagnostic
| [
"skaal@protonmail.com"
] | skaal@protonmail.com |
7f7ade6f313e846b47af39b3c6907b9da31932c5 | e8274f167fd219ef78241ba8ea89e5d5875ed794 | /cloud/swift/test/unit/common/middleware/test_recon.py | 5bcc936d9bf300dbb375a02bb115677f22add22e | [
"Apache-2.0"
] | permissive | virt2x/folsomCloud | 02db0147f7e0f2ab0375faf4f36ca08272084152 | e6fd612dd77f35a72739cf4d4750e9795c0fa508 | refs/heads/master | 2021-01-01T17:26:28.405651 | 2013-10-17T12:36:04 | 2013-10-17T12:36:04 | 13,647,787 | 0 | 1 | null | 2020-07-24T08:25:22 | 2013-10-17T12:10:24 | Python | UTF-8 | Python | false | false | 40,280 | py | # Copyright (c) 2010-2012 OpenStack, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | [
"quan.xu@intel.com"
] | quan.xu@intel.com |
5564cf01b33c391ea304b96ac9e88a9e86a52ad9 | 5ba97bd2f02e4a608b70ad2c4997079f6147dab4 | /Other_Market_Places/Bonanza/hierarchy_collectors/coins_hierarchy_collector.py | ef6a26f2ffc25ec424c7a37627071df1acb25509 | [] | no_license | akhilreddyyeredla/Web_Crawlers | d4131b622a378787c3bcdec4e64ac5be60ad78b0 | d86a2ca19a2ed2b3275e4cd506a8df67d71686ec | refs/heads/master | 2020-03-22T00:12:23.214849 | 2018-07-31T09:40:37 | 2018-07-31T09:40:37 | 139,230,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,485 | py | from Common.Bonanza_common_imports import *
class Workers:
def __init__(self):
self.urls_queue = Queue.Queue()
def create_workers(self):
"""
Creates threadpool and with max number of threads mentioned in cinfig file and targets work fucntion
:return: none
"""
... | [
"akhil@eunimart.com"
] | akhil@eunimart.com |
0c8e1ee1d4ce5115aada14dc74e51346f2ce527e | 304e75224229786ba64c6ef2124007c305019b23 | /src/easy/test_count_good_triplets.py | b81a741fd7c3d82c482bf913073e710e9b45ea56 | [] | no_license | Takuma-Ikeda/other-LeetCode | 9179a8100e07d56138fd3f3f626951195e285da2 | 499616d07011bee730b9967e9861e341e62d606d | refs/heads/master | 2023-04-14T06:09:35.341039 | 2023-04-10T02:29:18 | 2023-04-10T02:29:18 | 226,260,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import unittest
from answer.count_good_triplets import Solution
class TestSolution(unittest.TestCase):
def setUp(self):
self.arr = [
[3, 0, 1, 1, 9, 7],
[1, 1, 2, 2, 3],
]
self.a = [
7,
0,
]
self.b = [
2,
... | [
"el.programdear@gmail.com"
] | el.programdear@gmail.com |
bc9485fcb5d18c3289c3868602d12ea2caff21c5 | e514bbdf8e0abe5ef0b58b94fe5f7d2afb38ea6b | /test_suite/shared_data/frame_order/cam/rigid/rotor_analysis/frame_order.py | 58d7339d04dc255c69d5057493811721c2a0606e | [] | no_license | edward-dauvergne/relax | 98ad63703e68a4535bfef3d6c0529e07cc84ff29 | 9710dc0f2dfe797f413756272d4bec83cf6ca1c9 | refs/heads/master | 2020-04-07T04:25:25.382027 | 2017-01-04T15:38:09 | 2017-01-04T15:38:09 | 46,500,334 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,332 | py | # Script for optimising the rotor frame order test model of CaM to the rigid data.
# Python module imports.
from numpy import array
# The real parameter values.
AVE_POS_X, AVE_POS_Y, AVE_POS_Z = [ -21.269217407269576, -3.122610661328414, -2.400652421655998]
AVE_POS_ALPHA, AVE_POS_BETA, AVE_POS_GAMMA = [5.6234690... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
8ab2f72f7e01e5e9d706f515fd99d9cc149e8159 | 1ba58b17f33122abf4236e9e430a51d375e0eb53 | /km72/Bevzuk_Kostya/4/task6.py | 99a88f7b0c62ba184452860d2cbfcb7763144f6a | [] | no_license | igortereshchenko/amis_python | c4f8d86b88ab036d08ff0ce35c9b42ebeabecc42 | c6f0f2a70c82d5f269b3078eb296f82271b5bb10 | refs/heads/master | 2021-10-22T16:21:19.990650 | 2017-11-01T07:26:54 | 2017-11-01T07:26:54 | 104,785,028 | 0 | 139 | null | 2020-04-21T21:27:09 | 2017-09-25T18:11:42 | Python | UTF-8 | Python | false | false | 281 | py | x = int(input("Input number1 from 1 till 8:"))
y = int(input("Input number2 from 1 till 8:"))
z = int(input("Input number3 from 1 till 8:"))
с = int(input("Input number4 from 1 till 8:"))
if x == z:
print("YES")
elif y == c:
print("YES")
else:
print("NO")
| [
"noreply@github.com"
] | igortereshchenko.noreply@github.com |
56a0680448ef61eecb5bb6c44144855d429a2089 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/import-export/azext_import_export/vendored_sdks/storageimportexport/operations/_bit_locker_key_operations.py | 900125234da10796711369939105642e7b94e740 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 5,080 | 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 |
9d1009333d2c54c343c19819d8ed428a39f6378f | 5decb30e4c2cdac167ce24bbabcaacf0ab80f1c4 | /dic/prettyCharacterCount.py | 741cb3e404d47433c4cb9847a88ea7677d0df99d | [] | no_license | code-repeat/pythonscripts | ab410636c52f813504e89f02b08a4ebf2f43ca50 | ae89858893ffacd6192b39e5b96673bcf7de2dba | refs/heads/master | 2022-12-11T16:46:24.731482 | 2020-08-27T16:24:35 | 2020-08-27T16:24:35 | 271,111,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | import pprint
message = 'It was a bright cold day in April, and the clocks were striking thirteen'
count = {}
for character in message:
count.setdefault(character, 0)
count[character] = count[character] + 1
pprint.pprint(count)
| [
"coderepeat44@gmail.com"
] | coderepeat44@gmail.com |
4930f30b1dd65699ebe91d6e60dbd90cba1f3900 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/mdlyud002/question4.py | 81abd3aa4ab7f045fcfd179a4dbcfb7bb3da0805 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # Yudhi Moodley
# Assignment 6 - Histogram and grade evaluator
#23/04/2014
marksList = []
grade = [0,0,0,0,0,]
def histogram():
marks = input("Enter a space-separated list of marks:\n")
marksList = marks.split(' ')
# creating diagram in range of marks
for i in range (len(marks... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
d5f1a64c2b888f81633ee087f145ffe73cf82e95 | 090a4e026addc9e78ed6118f09fd0d7d4d517857 | /validators/indicator/_delta.py | f9fee608d269efaada1778fee117b177f1e1eab8 | [
"MIT"
] | permissive | wwwidonja/new_plotly | 0777365e53ea7d4b661880f1aa7859de19ed9b9a | 1bda35a438539a97c84a3ab3952e95e8848467bd | refs/heads/master | 2023-06-04T19:09:18.993538 | 2021-06-10T18:33:28 | 2021-06-10T18:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | import _plotly_utils.basevalidators
class DeltaValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="delta", parent_name="indicator", **kwargs):
super(DeltaValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"wwwidonja@gmail.com"
] | wwwidonja@gmail.com |
b1dd066cbcc1fd343d02f5dfd2b620563dc67d4b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02771/s262659463.py | 122f6b0ec8110637f84053f4d4b5fe9b628caa3a | [] | 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 | 178 | py | a, b, c = map(int, input().split())
ans = "No"
if a == b and b != c:
ans = "Yes"
elif b == c and c != a:
ans = "Yes"
elif a == c and c != b:
ans = "Yes"
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
35c9fb00c4b13bbfd62095ccff67da618c1d1f50 | dbeb1e145eba012a200073038d8a8965ae0c6f5d | /numpy_ndarray_attributes.py | 73e4c5907fa14ff0fa7c8b21c5f6d22d4589e67a | [] | no_license | hellJane/Python_DataAnalysis | b7027cb9d8e75a98b5626a58ee85b64f62c54c9c | 966ee5d732e074e9d124333f13d3e3e23ade1edc | refs/heads/master | 2021-05-17T01:57:24.092791 | 2017-12-01T15:32:32 | 2017-12-01T15:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import numpy as np
a = np.arange(24).reshape(2, 12)
print('a: \n', a)
print('a.ndim: ', np.ndim(a))
print('a.size: ', np.size(a))
print('a.itemsize: ', a.itemsize)
print('a.nbytes: ', a.nbytes) # a.size * a.itemsize
a.resize((4, 6))
print('a: \n', a)
print('a.T: \n', a.T)
b = np.array([1 + 2j, 3 + 4j])... | [
"noreply@github.com"
] | hellJane.noreply@github.com |
c339385ca66b31cea1f6d8159b4c752061be43d9 | 0ed769285c3d0ee5c7b151ddb34a22f3cdcc7c56 | /dataStructure/binaryTree.py | abcc12f02c5fc028f8bbe47e273683312f0288a0 | [] | no_license | kikihiter/PythonLearning | 881cd10befc46088ff97c4800dda77a0c7bd8e52 | e6ff01e88e845c038b2576987231cfa4857e3796 | refs/heads/master | 2021-06-15T22:12:05.556306 | 2021-02-04T12:20:52 | 2021-02-04T12:20:52 | 128,873,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | #!user/bin/env python
# python binaryTree.py
# kiki 2018/08/15
#定义树节点
class treenode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
#以列表建树
def buildTree(nodeList):
maxsize = len(nodeList)
def transRoot(root,n):
#root.val = nodeList[n-1]
... | [
"noreply@github.com"
] | kikihiter.noreply@github.com |
081643f230108d8c051aca67f280a047897b26f1 | 92b0e55b7671f875be84f8e76666bd6247601047 | /myblog/myblog/settings.py | 49a60ca5b87d708bace26c931d9c10f3be029cdb | [] | no_license | paulfranco/django-blog | e5b050951702b2a0c75100f9e7fa9c4f40152c25 | 49d1911e744dc2f8c43d59b7c3cd0bfca1fe31bd | refs/heads/master | 2021-03-31T00:29:35.842962 | 2018-03-15T06:26:57 | 2018-03-15T06:26:57 | 125,023,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,161 | py | """
Django settings for myblog project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"paulfranco@me.com"
] | paulfranco@me.com |
c329b6dfcf443a49e66a2ab4d4c8a0d16ab74f38 | f0f85ad672d67fb224dbff9789da4a4884363ff4 | /redis/redis_conn.py | 615bf69634494aa207d1f590f0551c71335611c7 | [] | no_license | Brucehaha/justforfan | 1e30e63f6d1c119495c2c8f528e4b43f0d0c1a9d | 87e9305c73b6bac44dcc9dcfab329e54add390a0 | refs/heads/master | 2020-06-08T08:12:03.454899 | 2019-06-22T05:13:40 | 2019-06-22T05:13:40 | 193,193,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | import redis
pool = redis.ConnectionPool(host='local', port=6379)
r = redis.Redis(connection_pool=pool)
# pipe = r.pipeline(transaction=False)
pipe = r.pipeline(transaction=True)
pipe.set('name', 'alex')
pipe.set('role', 'sb')
pipe.execute() | [
"henninglee2013@gmail.com"
] | henninglee2013@gmail.com |
687554b7f6fd60a57a1a905ace5c6a70937f5611 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_enmeshing.py | 7f6536c44cb234b61bdfe759fa9249b583e05f4a | [
"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 | 242 | py |
from xai.brain.wordbase.verbs._enmesh import _ENMESH
#calss header
class _ENMESHING(_ENMESH, ):
def __init__(self,):
_ENMESH.__init__(self)
self.name = "ENMESHING"
self.specie = 'verbs'
self.basic = "enmesh"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ef0d96258126d20a484c0bf89a5129c3188a775f | 65c0ef56c2e2c3e1646a610f49e6dd06f2c6102d | /src/libs/core/options/config.py | 364af6c64613560c0b831324ce1f94fcd3d3c4eb | [
"MIT"
] | permissive | VirtualVFix/AndroidTestFramework | d3411f328a793ee7b007c4736983204aae81b739 | 1feb769c6aca39a78e6daefd6face0a1e4d62cd4 | refs/heads/master | 2020-08-11T14:48:12.454415 | 2019-10-12T10:20:43 | 2019-10-12T10:20:43 | 214,582,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # All rights reserved by forest fairy.
# You cannot modify or share anything without sacrifice.
# If you don't agree, keep calm and don't look at code bellow!
__author__ = "VirtualV <https://github.com/virtualvfix>"
__date__ = "29/10/17 20:42"
#: Options functions which may be registered
OPTION_CLASS_FUNCTIONS_TO_RE... | [
"github.com/virtualvfix"
] | github.com/virtualvfix |
ca0622b5f54cca55dc3b406f0b0f18999ec83663 | a02b909f5f6223690791319fe707574beadb910d | /app/apps/user/migrations/0001_initial.py | 80e2383d3a64262b61afd1d16e765e281d6553bb | [
"MIT"
] | permissive | tonyguesswho/jumga | ac2c5a629a5589534095c03055c851d41c74bfdf | fdcfc437578d48489fea2d3ab2f7c8711b6b231c | refs/heads/main | 2023-02-20T19:54:50.196255 | 2021-01-21T20:01:22 | 2021-01-21T20:02:31 | 325,852,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | # Generated by Django 3.1.4 on 2021-01-01 12:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"anthonyugwu234@gmail.com"
] | anthonyugwu234@gmail.com |
6c57a8efa13d14972b030f7aa30b2ceed8663316 | 15584806a532a956580cf53d785b511a93434999 | /hc/front/tests/test_update_channel_name.py | 4d6c92ffedf9c135e44c4237b935c9513e865bf2 | [
"BSD-3-Clause"
] | permissive | pathcl/healthchecks | ce0b5db51b1eb0ee09cdde16817744f75b442b12 | ffc45f0c74694d06679aefe3b92a0b0778473ca7 | refs/heads/master | 2022-10-10T06:38:45.931479 | 2020-06-04T12:07:34 | 2020-06-04T12:07:34 | 270,658,488 | 1 | 0 | BSD-3-Clause | 2020-06-08T12:22:48 | 2020-06-08T12:22:48 | null | UTF-8 | Python | false | false | 1,955 | py | from hc.api.models import Channel
from hc.test import BaseTestCase
class UpdateChannelNameTestCase(BaseTestCase):
def setUp(self):
super(UpdateChannelNameTestCase, self).setUp()
self.channel = Channel(kind="email", project=self.project)
self.channel.save()
self.url = "/integration... | [
"cuu508@gmail.com"
] | cuu508@gmail.com |
c2cce5af4f822510053375c1959f0ddc83a821e6 | cd29793fbbaa3f62dd100c52ea53b93d2720123a | /tessellation/tessellation_NMC_lite/configs_done/010110100001010.py | cbec6d33d5027c254be031515340fd1f13e6bd5e | [
"MIT"
] | permissive | zebrajack/NMC | 8f89f396fbc59b42bf6f3fcbbde37cf4bee917bd | 92418daeff728586b808269f90721456ed97a992 | refs/heads/main | 2023-07-19T19:38:06.739695 | 2021-09-03T22:27:21 | 2021-09-03T22:27:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,522 | py | config_string = "010110100001010"
load_connections = [[16,37],[17,37],[19,39],[18,39],[20,40],[23,40],[21,42],[22,42],[17,29],[25,29],[26,34],[21,34],[19,28],[24,28],[27,35],[23,35],[16,45],[25,45],[24,48],[20,48],[18,46],[26,46],[27,51],[22,51],[15,27],[15,51],[15,35],[12,35],[12,14],[14,51],[14,15],[12,15],[14,22],[... | [
"2741678221@qq.com"
] | 2741678221@qq.com |
40235fcc7f22d9fdcddba9fadddbc803951dbc47 | 1d21b9e98fc725ad1a374a870f4169fe88013760 | /Conditional statements/printtri/venv/Scripts/easy_install-3.7-script.py | 42b8230aab39810c76b88273590ed12f91e7b90f | [] | no_license | shiv97/python_w3 | f38b04dbe836ccaf615c0c8ed5fdd1c270efab12 | f161dd3d0e66f4dd1ecd93621af929344a3c85e9 | refs/heads/master | 2020-07-13T12:14:42.060566 | 2019-08-29T06:30:49 | 2019-08-29T06:30:49 | 205,080,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | #!"D:\work\Python_w3_exercises\Conditional statements\printtri\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] =... | [
"sivashankariv5@gmail.com"
] | sivashankariv5@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.