blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd96799bc0489040b759bd12cf6000dca548499c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_104/292.py | 374308be6bc85def5c0027de6a9827409c83fe69 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import sys
def parse(filename):
f = open(filename)
T = int(f.readline())
for i in range(T):
line = f.readline().strip()
terms = line.split()
N = int(terms[0])
S = [int(a) for a in terms[1:]]
yield N, S
f.close()
def solve(N, S):
S = sorted(S)
n = 1
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7355eee9f76d9698397be0f4f57ef42ff8fb4e62 | 61aa319732d3fa7912e28f5ff7768498f8dda005 | /src/arch/x86/isa/insts/romutil.py | fd06197193ecb448ef218fc59cb086a4a6c8712e | [
"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 | 7,367 | py | # Copyright (c) 2008 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this list ... | [
"sroger48@uncc.edu"
] | sroger48@uncc.edu |
9d52e5d7627216592f1ca7759607b7855e252afa | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/io/feather_format.py | 635a5726a6f7acec018789cbc6a3fc9d8382277c | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,704 | py | """ feather-format compat """
from distutils.version import LooseVersion
from pandas.compat._optional import import_optional_dependency
from pandas.util._decorators import deprecate_kwarg
from pandas import DataFrame, Int64Index, RangeIndex
from pandas.io.common import _stringify_path
def to_feather(d... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
cfd5c37c5318b16b361cf515c336bc41345219ab | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/BXRX.py | 46447527ad61d5da209cf7ceddf1a4ccefe6b472 | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://www.baudaxbio.com/news-and-investors/press-relea... | [
"andisc_3@hotmail.com"
] | andisc_3@hotmail.com |
811ffae550dc896665c6c8266f9216f0d4b6f7b8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/457/usersdata/334/109728/submittedfiles/estatistica.py | 1f56e0531e646010deb57a6bf3fef7d12e988bca | [] | 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 | 763 | py | # -*- coding: utf-8 -*-
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
resultado = soma/len(lista)
return resultado
#Baseado na função acima, escreva a função para calcular o desvio padrão de uma lista
def desvio_padrao(lista):
for i in range(m):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6a6a2fc0e0119bdb9209af893f2317ab75470af5 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eve/client/script/ui/services/alliances/all_cso_members.py | 5e188ef50580092dad76900808e5a21c13ee6d36 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\services\alliances\all_cso_members.py
import allianceObject
import blue
class AllianceMembersO(allianceObject.base):
__guid__ = 'allianceObject.members'
def __init__(self, boundObject):
allianceObj... | [
"le02005@163.com"
] | le02005@163.com |
d6bc05c67159a03aa159d05249257cb528fe233c | 7a5966941b81b10ba2cc463900675558e7270b76 | /annotypes/py3_examples/reusecls.py | 1abc435dd414ca56af62406891dd2420627f6ed0 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | dls-controls/annotypes | 5b32b579226567fc2f0e1a79cdb9be0d1b483a15 | 3dac2e2970a67f667b707b0d248f58ac9a06551b | refs/heads/master | 2022-03-14T17:13:21.576140 | 2019-11-25T12:31:11 | 2019-11-25T12:31:11 | 110,128,413 | 2 | 1 | Apache-2.0 | 2019-11-25T12:07:57 | 2017-11-09T14:54:23 | Python | UTF-8 | Python | false | false | 450 | py | import time
from annotypes import WithCallTypes, add_call_types, Anno
from .simple import Simple
with Anno("Parameters to take"):
ASimple = Simple
class ReuseCls(WithCallTypes):
@add_call_types
def validate(self, params: ASimple) -> ASimple:
if params.exposure < 0.4:
params.exposure ... | [
"tom.cobb@diamond.ac.uk"
] | tom.cobb@diamond.ac.uk |
00467c651a60f2fa2f80057b2492d873ae69e492 | c0239d75a8199ec84ad683f945c21785c1b59386 | /dingtalk/api/rest/OapiUserGetUseridByUnionidRequest.py | ea73cda91b282e538f377e91ead58a7364a714c2 | [] | no_license | luss613/oauth_dingtalk | 9f253a75ce914c577dbabfb84e97fd883e80e04b | 1e2554642d2b16c642a031670d08efa4a74e8252 | refs/heads/master | 2023-04-23T01:16:33.450821 | 2020-06-18T08:22:57 | 2020-06-18T08:22:57 | 264,966,287 | 1 | 1 | null | 2020-06-18T08:31:24 | 2020-05-18T14:33:25 | Python | UTF-8 | Python | false | false | 340 | py | '''
Created by auto_sdk on 2018.07.25
'''
from dingtalk.api.base import RestApi
class OapiUserGetUseridByUnionidRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.unionid = None
def getHttpMethod(self):
return 'GET'
def getapiname(self):
return 'dingtalk.oapi.user.g... | [
"paul.lu@belstar.com.cn"
] | paul.lu@belstar.com.cn |
f2214e2eed2dcb5479c7422af4bb496da6bb4122 | 970e122697f7996fab03dda03e42c490436120ab | /snacks/urls.py | d30580fdad67fea2116bb54086c49ec3f676ab7a | [] | no_license | leeroywking/django_snacks | d2df6808c408384ce0e56002702e0c3c43d0616f | e1a283573a1a951abc6500b4689c562719bbae31 | refs/heads/master | 2022-12-08T06:40:06.447090 | 2020-08-23T00:37:20 | 2020-08-23T00:37:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django.urls import path, include
from .views import HomeView, AboutView
urlpatterns = [
path("", HomeView.as_view(), name="home"),
path("about/", AboutView.as_view(), name="about"),
]
| [
"leeroywking@gmail.com"
] | leeroywking@gmail.com |
dd8390b0ea89616805802fae4a2e1e0cb05def74 | 474525154a4e1d48ef5242d1f44164d05399b145 | /tensorflow_probability/python/experimental/bijectors/sharded_test.py | a0af04d746b9e383d2fb1f518322156773f284a4 | [
"Apache-2.0"
] | permissive | svshivapuja/probability | 9855737790f74a39169688fbfec9671deef804d9 | af7ccb22d972329633530c3b754ed1f49472f6a7 | refs/heads/main | 2023-07-17T04:14:53.703622 | 2021-08-30T17:47:06 | 2021-08-30T17:47:06 | 400,983,015 | 1 | 0 | Apache-2.0 | 2021-08-29T07:51:29 | 2021-08-29T07:51:29 | null | UTF-8 | Python | false | false | 3,976 | py | # Copyright 2021 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 |
3751469fca3fe0742554b1ceee3a3d7399bc9e8d | 0b1e404a165c960677d07015bc26aac0569cf84a | /src/combustion/vision/contour.py | 5869f815424f6d62197e0b9f8e2cad450a1cd0cb | [
"Apache-2.0"
] | permissive | johndpope/combustion | d3ec349cd7be086f55b4e3deebd571c97842e1ed | c3f91e62a10a873cfeeae8c675b0683bc5158818 | refs/heads/master | 2023-03-01T14:34:42.149415 | 2021-02-07T17:55:58 | 2021-02-13T17:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from typing import Tuple
import cv2
import torch
from torch import Tensor
from combustion.util import check_is_tensor
def mask_to_polygon(mask: Tensor, num_classes: int, pad_value: float = -1) -> Tuple[Tuple[Tensor, ...], ...]:
check_is_tensor(mask, "mask")
ass... | [
"tidalpaladin@protonmail.com"
] | tidalpaladin@protonmail.com |
b7b163b82ebc15e557179135b6dde4fbdc96ee0d | fd74a044c0037796455ba4bd4fd44f11c3323599 | /Practice/ABC/Bcontest126_b.py | 36d937cbb053050a502070da2af82b5d69f27e88 | [] | no_license | tegetege/tegetege_AtCoder | 5ac87e0a7a9acdd50d06227283aa7d95eebe2e2f | ba6c6472082e8255202f4f22a60953d0afe21591 | refs/heads/master | 2022-03-25T00:29:22.952078 | 2022-02-10T14:39:58 | 2022-02-10T14:39:58 | 193,516,879 | 0 | 0 | null | 2019-06-25T13:53:13 | 2019-06-24T14:02:05 | Python | UTF-8 | Python | false | false | 477 | py | import sys
S = list(input())
S = [S[0]+S[1],S[2]+S[3]]
month = ['01','02','03','04','05','06','07','08','09','10','11','12']
# 月表示、年表示についてのステータス
# [前表示、後ろ表示]
mon = [0,0]
yer = [0,0]
if S[0] in month:
mon[0] = 1
if S[1] in month:
mon[1] = 1
if mon[0] == 1 and mon[1] == 1:
print('AMBIGUOUS')
sys.exit()
if mon[0] ... | [
"m_take7_ex_d@yahoo.co.jp"
] | m_take7_ex_d@yahoo.co.jp |
c3d07a29c54f5a213678adacdcaae6cbfd9c9f9b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/392/usersdata/329/71352/submittedfiles/formula.py | 4bf76caf0210c1e473372fb8519d8918c25e9277 | [] | 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 | 210 | py | # -*- coding: utf-8 -*-
p = float(input('digite seus pontos'))
i = float(input('digite seu intervalo'))
n = float(input('digite seu numero de intervalos'))
valor = int((p*((1+i)**n)-1/i))
print('%2.f' valor)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7e9ff31d0e26e0cb03730f34ab42ed2a15f3f8e3 | a7406d29a53ac2439ed182cccd2546d3bf59d0d2 | /do_tasks.py | a9f2ead27cf383fb2156c077da1ab7fe1a1a3fb6 | [] | no_license | gawel/nuka_pycon_fr | 1cf4bc7a0727a1628a4a0bc515c49796810c0216 | 541d223a0fa2884e19d2c8661babb9cbdb0d3950 | refs/heads/master | 2023-03-31T06:26:37.239647 | 2017-09-24T11:48:12 | 2017-09-24T11:48:12 | 104,308,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | #!bin/python
import nuka
from nuka.hosts import DockerContainer
from tasks import mytask
async def do_tasks(host):
res = await mytask()
print(res.stdout)
nuka.run(do_tasks(DockerContainer('pyconfr')))
| [
"gael@gawel.org"
] | gael@gawel.org |
0592a2a09febf0fe6f59a27d302f0b711de4a92b | 2959849cbcb8c76033e02643ae2fb039634074a8 | /loadFromJsonTester.py | fcc564e2ccc79124dc06364b17f7f3de38c6e1ee | [] | no_license | sebastiengilbert73/icf18 | fc5cc94db472d6483bbb4a3493291cc56fdfeed2 | ac2aff6242b58d33a46fc73fa09da5f03d849210 | refs/heads/master | 2020-03-08T23:54:27.718643 | 2018-04-21T18:26:59 | 2018-04-21T18:26:59 | 128,475,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # loadFromJsonTester.py
import json
import loadFromJson
print ("loadFromJsonTester.py")
importer = loadFromJson.Importer('/home/sebastien/MachineLearning/BenchmarkDatasets/imaterialist-challenge-fashion-2018/train.json',
maximumNumberOfTrainingImages=0)
attributesFrequencies = importe... | [
"sebastiengilbert73@yahoo.ca"
] | sebastiengilbert73@yahoo.ca |
eab1836aac2667e34bedb8b0d94404f89f96f45a | b500996a0b29829fde6afe8b23178ca9df4a239d | /rydinfap/src/apps/empbendem.py | aa5e3495b140fd5a36740bd35f33a07d4ae9eb28 | [] | no_license | eocampo2000/test-code | 48c4d444e323eef5e6fe7e61b018952ef3cd4134 | 49328664243e1a9daf9c567d1aaaa19fd4654c02 | refs/heads/master | 2016-08-11T07:35:31.346464 | 2016-02-13T12:33:55 | 2016-02-13T12:33:55 | 51,642,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | py | '''
Created on Jul 17, 2015
@author: eocampo
'''
__version__ = '20150717'
import sys
import os
#import time
from datetime import datetime
import utils.fileutils as fu
import utils.strutils as su
import utils.filetransf as ft
import procdata.procinfa as pi
from apps.infbaseapp import ... | [
"eocampo1000@hotmail.com"
] | eocampo1000@hotmail.com |
061c2dfb37cde98ccb1b20355fa195952702cbd5 | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/building/DistributedCJElevatorAI.py | 686cddd40ddf3723841c10683a09971fb59a8373 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 448 | py | from ElevatorConstants import *
import DistributedBossElevatorAI
class DistributedCJElevatorAI(DistributedBossElevatorAI.DistributedBossElevatorAI):
def __init__(self, air, bldg, zone, antiShuffle = 0, minLaff = 0):
DistributedBossElevatorAI.DistributedBossElevatorAI.__init__(self, air, bldg, zone, antiSh... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
e462e5fc073c7fa7875310e8044c5dce34e1153c | 113480ad4471b4fd5500847c08ab1bd12e73e186 | /lonehen/core/urls.py | d1c852d4943df35920ad9a972c6ebe8685b16b77 | [] | no_license | ReedRichards/Django-Rest-API | 1f4b74e95525df33a342ffa7eae54a4da19a260f | 2d45729c7737bf02201264ff2203bd547a599ce6 | refs/heads/master | 2020-03-17T07:20:44.618043 | 2018-05-14T20:50:21 | 2018-05-14T20:50:21 | 133,302,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from core import views
urlpatterns = [
path('about-page/', views.AboutPageView.as_view()),
path('email/', views.Email.as_view()),
path('checkout/', views.Checkout.as_view()),
path('about-page/<int:pk>/', views.Ab... | [
"you@example.com"
] | you@example.com |
f47c2eaba301bf364ef9b6e3e921a85eabaddd3e | 353b1065e5dfce1878d367bf9758387cf34ce52f | /cart/migrations/0006_auto_20200716_1310.py | 0f726cb37cd191a179770f792eda190265da8c0e | [] | no_license | Vaibhav-21-git/Gym-Website-Project | 62d19c2708f602b165fb4fecd0659a56b38d3008 | 9ff78ae40a8e14ffdbce4f87e2b9915a8fe5bc0d | refs/heads/master | 2022-11-28T04:16:44.877412 | 2020-08-06T09:48:04 | 2020-08-06T09:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Generated by Django 3.0.5 on 2020-07-16 08:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cart', '0005_cart_online_selected_class'),
]
operations = [
migrations.AlterModelOptions(
name='cart',
options={'verbose_nam... | [
"6438087-Noferesti@users.noreply.gitlab.com"
] | 6438087-Noferesti@users.noreply.gitlab.com |
649b957c5e0d01e02f844bbb7bb17e611c313212 | 68a32523accac405bad9a08a234ca179a227d3ef | /microcephalus7/easy/1768.py | a90ef01fd5004f6ae62a9e3fcfbea36ca917a436 | [] | no_license | plan-bug/LeetCode-Challenge | 592880327a64c23f3b1cd4efc8266e44d936872c | a2508bcb739ed1a095a2e40009fd5e8162fb97c1 | refs/heads/master | 2023-06-12T12:08:28.545925 | 2021-06-30T03:24:52 | 2021-06-30T03:24:52 | 302,037,168 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | class Solution:
def mergeAlternately(self, word1: str, word2: str) -> str:
res = ""
for i in range(min(len(word1), len(word2))):
res += word1[i] + word2[i]
return res + word1[i+1:] + word2[i+1:] | [
"microcephalus7@gmail.com"
] | microcephalus7@gmail.com |
295175fb53a5e530c86461b0629e06f8ce62592b | d5ad13232e3f1ced55f6956bc4cbda87925c8085 | /cc_mcc_seq/16sSNVExome/A1_csv2tsv/1.csv2tsv.py | 975e2803d34296fec397b55a797f6ab273530798 | [] | no_license | arvin580/SIBS | c0ba9a8a41f59cb333517c286f7d80300b9501a2 | 0cc2378bf62359ec068336ea4de16d081d0f58a4 | refs/heads/master | 2021-01-23T21:57:35.658443 | 2015-04-09T23:11:34 | 2015-04-09T23:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import csv
def csv2tsv(iFile):
inFile = open(iFile)
ouFile1 = open(iFile.rstrip('.csv'), 'w')
ouFile2 = open(iFile.rstrip('.csv')+'.indel', 'w')
csvFile = csv.reader(inFile)
head = csvFile.next()
for fields in csvFile:
if fields[33].find('INDEL')==0:
ouFile2.write('\t'.join... | [
"sunhanice@gmail.com"
] | sunhanice@gmail.com |
93ad54d0dd4c4455f694c05499534e8353c5672f | fd899e63d4c33261911f0e35fb8cb286332b7a95 | /algorithm_202102/baek11727.py | 9938d5ef3b42203174139a1470c8533d7783d3eb | [] | no_license | choyj0920/algorithm | 948452d652455973e928ef537729174109972252 | e1287799e7073232cbf8904cea7c348a2f2a9c30 | refs/heads/master | 2023-05-25T22:23:11.044049 | 2021-09-08T03:40:42 | 2021-08-13T08:04:46 | 225,736,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | # baek11727 2xn타일 2
import sys
n=int(input())
dp=[0]*(n+3)
dp[0]=1
for i in range(0,n+1):
dp[i+1]=(dp[i+1]+dp[i])%10007
dp[i+2]=(dp[i+2]+dp[i]+dp[i])%10007
print(dp[n])
| [
"44551544+choyj0920@users.noreply.github.com"
] | 44551544+choyj0920@users.noreply.github.com |
7bfd7a902aaec01c545269ed7d4145b1ac7bd9e5 | 61673ab9a42f7151de7337608c442fa6247f13bb | /getch/main.py | 097b87607831d1d8ff9f4f04d06ce4205a51f90d | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 281 | py | import getch
print('Press Ctrl+C to exit\n')
while True:
key = getch.getch()
if key == '\x1B':
print('ESC')
elif key == '\n':
print('ENTER')
elif key == '\x0A':
print('ENTER')
else:
print("key:", key, ord(key), hex(ord(key)))
| [
"furas@tlen.pl"
] | furas@tlen.pl |
c625089e78a9ff34a815a1a232057a7b5631f50b | 527a8c6fc8ec797ca6136ebf43c9817aae0abc0b | /Day17/SIPA/SIPA/asgi.py | 5da4409085379d3d46ad70eb5ba25986807fc388 | [] | no_license | tanguturuanusha/APSSDC-Django-BATCH6 | 9d1706202eafb70b6d89883a06b45d1f246c9321 | b5b1ef0f139235d20aab3a54c96f15331d52c21a | refs/heads/master | 2022-12-24T08:52:36.391635 | 2020-10-03T13:00:00 | 2020-10-03T13:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for SIPA project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"rravikumar34@gmail.com"
] | rravikumar34@gmail.com |
bdb9384e0b7016381ede949fbdeb078aff6d94c9 | 342bd78786473a47a80ba983f22a01f0e4d69da8 | /confirmation/config/settings/prod.py | 0d69044e5c58ff2ae60528651c0488de20be006e | [] | no_license | JMorris1575/confirmation2018 | a28d4b250170c0b2222ddfa43ee79ddaaa541a9a | 1185524026de658108feb403072cac47f879acff | refs/heads/master | 2018-12-09T18:34:16.535833 | 2018-11-24T18:11:53 | 2018-11-24T18:11:53 | 116,589,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | """
This file will need some work before the website is hosted by WebFaction.
See the christmas17 project.
"""
from .base import *
import os
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
DATABASES = {
'... | [
"FrJamesMorris@gmail.com"
] | FrJamesMorris@gmail.com |
1912d36a74982952f273aea38df325788e427f2e | 022cec04ce91ab45cc9fd6ce77b2fc23bba1e1fa | /product_in_cellar_app/views/product_in_cellar.py | 643f5ff84ae02a2eb9e1cf3c904f4660ff04b279 | [] | no_license | AndresOsorio0710/BackenMarca | fa1181234380c38be4815dabc0554766d55f2100 | 78e4f33f585e556c6dbb3d2739339857464d7043 | refs/heads/master | 2023-05-02T05:29:29.977869 | 2021-05-01T02:10:47 | 2021-05-01T02:10:47 | 362,198,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | from django.db.models import F, Sum
from rest_framework import viewsets, mixins
from product_in_cellar_app.models import ProductInCellar
from product_in_cellar_app.serializers import ProductInCellarSerializer, SaveProductInCellarSerializer, \
ProductListSerializer
class ProductInCellarViewSet(
mixins.ListMode... | [
"andres.osorio0710@gmail.com"
] | andres.osorio0710@gmail.com |
4ccea471c32659e05690c9079312162aebc0986a | fd981b47482467291576ae4650d2925d6fa00564 | /robot_ws/build/rtcrobot/rtcrobot_msgs/catkin_generated/pkg.develspace.context.pc.py | 8513a87cb67fd38166b38fb3714bf3ef08aa395c | [] | no_license | Forrest-Z/rtcrobot | 7337271e726db794ce08953f333ad9a0f8e70027 | 229ce1d7e77af9348eac870e00a2c4049e4562f1 | refs/heads/master | 2022-12-16T00:14:17.525845 | 2020-05-18T09:28:09 | 2020-05-18T09:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/gaara/robot_ws/devel/include".split(';') if "/home/gaara/robot_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREF... | [
"mtk@mtk"
] | mtk@mtk |
cf217c8e49b23fc2af06cfa3d4d496b7e3a4f875 | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/python/prompt-toolkit.py | 656c9f0a0eaabd6ad15f4927992347ec4592f716 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from .base import PipBaseRecipe
class PromptToolkitRecipe(PipBaseRecipe):
def __init__(self, *args, **kwargs):
super(PromptToolkitRecipe, self).__init__(*args, **kwargs)
self.sha256 = 'cd6523b36adc174cc10d54b1193eb626' \
'b4268609ff6ea92c15bcf1996609599c'
self.name =... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
5dd0523819cf4df709c1eaedde8280c1fa65531f | a8124c3361ec462e076fbe246c3571672a28a54b | /python3/dash_apps/dash_t_15_create_checkbox.py | 4ee6eb695d9aca4dd7a6ee6dab087b878a966636 | [
"MIT"
] | permissive | ashifujjmanRafi/code-snippets | 80ea1300fb2bb5bf4bc1c2fb01222a42127c0438 | 24bd4b81564887822a0801a696001fcbeb6a7a75 | refs/heads/master | 2023-02-17T04:35:32.779975 | 2021-01-12T02:14:47 | 2021-01-12T02:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import numpy as np
import plotly.graph_objs as go
app = dash.Dash()
app.layout = html.Div([
html.H1(children='Choose a country',
style={
'textAlign': 'center'
}),
dcc.... | [
"nahid.cseru@gmail.com"
] | nahid.cseru@gmail.com |
809f692cd72ba8af4ac3f4177f90a90e1b7e973f | f9f8cefc9d150eb26f4e2edd327b858542edb48d | /web/testimonial_plugin/migrations/0001_initial.py | 78eb92211bc4c35c6f4215260bbde8e2a2f388b8 | [] | no_license | phanminhtam/portfolio-tampm | 2ce0893a62f00d395dafc38d4ab5e897e5ce01bb | 05bf8e91fd638eee86f33066f3c7c6f82202dd0f | refs/heads/master | 2020-03-07T09:05:01.907957 | 2018-07-16T02:12:55 | 2018-07-16T02:12:55 | 127,397,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-02 10:43
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('cms', '0018_pagenode'),
]
ope... | [
"nguyentrisinh0810@gmail.com"
] | nguyentrisinh0810@gmail.com |
e167103093a737eab1630649490e49d7a8707b7e | bd15b526cea746d7230bb72e20b553c503e9923e | /DS/book/05_exploreTheDataset/05_reduce_cost_increase_performance.py | ed589b9a35a54ca5a226c35eab20a15f4c5586a4 | [] | no_license | damiansp/aws_learn | 3fb718a9877cd0e812b2baf55fe7bca3a18ca78e | 72465435d7761d8c3d1fff874245a80512142f05 | refs/heads/master | 2023-06-24T01:50:20.246389 | 2022-07-27T03:27:57 | 2022-07-27T03:27:57 | 187,707,255 | 0 | 0 | null | 2023-06-12T21:30:30 | 2019-05-20T20:15:38 | Jupyter Notebook | UTF-8 | Python | false | false | 623 | py | import pandas as pd
from pyathena import connect
se_staging_dir = f's3://{BUCKET}/athena/staging'
conn = connect(region_name=region, s3_staging_dir=s3_staging_dir)
sql = (
f'SELECT DISTINCT product_category '
f'FROM {SCHEMA}.{TABLE} '
f'ORDER BY product_category')
pd.read_sql(sql, conn)
df = pd.read_sql... | [
"damiansp@gmail.com"
] | damiansp@gmail.com |
46b7643cc0666f0f6c1810e8f11e48fee5622a05 | 657d894015f679c2ef9f1e2dd96f6bbaf319d9e0 | /best_api/movies/serializers.py | f9ebab71e2482fca829f4d94af7a50142355ec08 | [] | no_license | bezidejni/best_code_challenge | 33d6bb6429045d4c347531ab0e126162eef0bbc6 | bf2a1cdd3f373df97f17b87255dbf022ba604689 | refs/heads/master | 2021-01-10T19:45:16.862596 | 2014-02-07T17:56:08 | 2014-02-07T17:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | from rest_framework import serializers
from .models import Movie
class AbsoluteURLFileField(serializers.FileField):
"""
FileField serializer that shows the absolute URL instead of showing
relative file path.
"""
def to_native(self, value):
request = self.context.get('request', None)
... | [
"filip@jukic.me"
] | filip@jukic.me |
c296d7d9cdba29af08cbf7ebebbc7b7beec7a129 | 1df7ba55c4b61772c1a31c503e6b8881f1456dc5 | /untitled9/apps/organization/migrations/0001_initial.py | 1d7240836a57104deb025754b53664033b81a01a | [] | no_license | fzk466569/python-django-pro | 35918756060fcae375d3c99ea1a6934949b6d605 | 9add086b7a910f255df5b192268f1e117057e053 | refs/heads/master | 2021-01-19T13:18:14.141880 | 2017-02-19T12:16:29 | 2017-02-19T12:16:29 | 82,374,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,042 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-02-07 12:50
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | [
"fzk466569"
] | fzk466569 |
6527570f5a79bb90a7fab38978ba3dc1ae78923b | 715c92b7a70037d1b790f4e4b75631126692faeb | /demos/__main__.py | f34d814f606b0f68b3725fbff70873ce78fbc402 | [
"MIT"
] | permissive | hanzhaozxd/PyWebIO | 894706391d67883c4b1c29c14ff429d89f495d1c | 39b898417f36a86f6fa3d35e2d1790546182c2d3 | refs/heads/master | 2023-02-19T09:00:46.013320 | 2021-01-17T11:09:23 | 2021-01-17T11:10:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,556 | py | import tornado.ioloop
import tornado.web
from demos.bmi import main as bmi
from demos.chat_room import main as chat_room
from demos.input_usage import main as input_usage
from demos.output_usage import main as output_usage
from demos.config import charts_demo_host
from demos.doc_demo import get_app as get_doc_demo_app... | [
"wang0.618@qq.com"
] | wang0.618@qq.com |
0be1e453e444b05254b801ba80639e7c0d4c78c1 | c59f419d95e92985c133b797fb2089c25b69283d | /ax/modelbridge/tests/test_utils.py | 7996dda2445a0fc19595b9e3b097234b02b6380d | [
"MIT"
] | permissive | michaeldeyzel/Ax | 8f9ede559e8087a7dec320b14d94955845de808e | 16cb868911eecba323759e2e129df8833361e614 | refs/heads/master | 2022-12-24T17:27:36.576326 | 2020-09-30T23:48:25 | 2020-09-30T23:49:55 | 300,192,368 | 1 | 0 | MIT | 2020-10-01T07:45:32 | 2020-10-01T07:45:31 | null | UTF-8 | Python | false | false | 4,989 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import numpy as np
from ax.core.arm import Arm
from ax.core.data import Data
from ax.core.generator_run import Generato... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
72e0e8ff5664148d52c0fb82dfb7844b8e86cd6c | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/12/42/0.py | 714d6dda48f9c5d58e6e930d729fdfa62cf0f92d | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | import sys
import random
def calc(a, w, l, b):
res = [[None, None] for i in range(len(a))]
cx = 0.0
cy = None
ny = 0.0
i = b[0]
res[i] = [0.0, 0.0]
cx = a[i]
ny = a[i]
for i in b[1:]:
if cx + a[i] <= w:
ix = cx+a[i]
if cy is None:
i... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
c919034f003da4b5fa2d35635ca362243606b96a | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nipype/interfaces/spm/tests/test_auto_EstimateContrast.py | bc9bb9006ed7e23ceb781ccb8ac5834c965dbefd | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 1,494 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..model import EstimateContrast
def test_EstimateContrast_inputs():
input_map = dict(
beta_images=dict(
copyfile=False,
mandatory=True,
),
contrasts=dict(mandatory=Tru... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
71abecf624afa83a467add8275c42a448fabb35f | 6371acdb640e62e4e6addac2ba1aa70002a8c1b1 | /Algorithms/pySINDy/env/lib/python3.6/site-packages/astroid/context.py | 931bbf5ea0745248cc3ad33ae68eca8962d0303d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | M-Vause/SEED | 263307152ebac1e4f49cd81dcd5207ecbdf51139 | cda94a02a5ef47a1e9a885d330eef2821301ebed | refs/heads/master | 2022-12-13T20:11:58.893994 | 2020-04-27T16:10:09 | 2020-04-27T16:10:09 | 252,790,026 | 3 | 3 | MIT | 2022-12-08T01:52:05 | 2020-04-03T16:55:10 | Jupyter Notebook | UTF-8 | Python | false | false | 5,023 | py | # Copyright (c) 2015-2016, 2018 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2015-2016 Ceridwen <ceridwenv@gmail.com>
# Copyright (c) 2018 Bryce Guinta <bryce.paul.guinta@gmail.com>
# Copyright (c) 2018 Nick Drozd <nicholasdrozd@gmail.com>
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lg... | [
"58262117+M-Vause@users.noreply.github.com"
] | 58262117+M-Vause@users.noreply.github.com |
f4b1ffeb2e82b02dd7d7314912a076a42efbfa8f | 56be7f6b6a1243c532af9ea98310ccea165a1e66 | /day8/断点续传/client.py | 724d6c495f1e80afb29394076033f7ee1e98bc8d | [] | no_license | 214031230/Python21 | 55b0405ec4ad186b052cde7ebfb3f4bb636a3f30 | d7fc68d3d23345df5bfb09d4a84686c8b49a5ad7 | refs/heads/master | 2021-05-26T06:00:53.393577 | 2019-01-09T02:29:04 | 2019-01-09T02:29:04 | 127,778,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | #!/usr/bin/env python3
import socket
import struct
import os
import hashlib
import json
IP = "127.0.0.1"
PORT = 9999
class FtpClient:
def __init__(self, ip, port):
self.ip = ip
self.port = port
self.client = socket.socket()
self.client.connect((ip, port))
self.code = "utf-8... | [
"214031230@qq.com"
] | 214031230@qq.com |
3061a60c4925e4d5652097f97500c5bdd39927db | f0355e4d85d428d2400898a8b8132ddad0931f45 | /python_book_exercise/function_two.py | f43f5d64712c361b3257672bffea0900f1d34ea0 | [
"MIT"
] | permissive | itsjw/python_exercise | 289dd74515a1b1456da9dfb84179dfd6eaed8d3b | 7773d95b4c25b82a9d014f7a814ac83df9ebac17 | refs/heads/master | 2021-08-30T11:30:16.661760 | 2017-12-17T18:48:40 | 2017-12-17T18:48:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | def print_max(a,b):
if a > b:
print(a, ' is maximum ')
elif a == b:
print(a,'is equal to ',b)
else:
print(b,'is maximum')
#directly pass literal values
print_max(3,4)
x = 5
y = 7
#pass variable as arguments
print_max(x,y)
| [
"vimmrana0@gmail.com"
] | vimmrana0@gmail.com |
9bfe3fff36fe7e0132b61164166bc6cfbe69ef8c | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/generated_clients/apis/remotebuildexecution/v1alpha/resources.py | 31bb429115a3a2da3f1250276e3d8f8b8718fbd1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,969 | py | # -*- coding: utf-8 -*- #
# Copyright 2023 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
3d9a7e43fe7977316817105d436ae6913620a164 | d8a541a2953c9729311059585bb0fca9003bd6ef | /functions/even_odd.py | 77aaf7a5a9a9cd96dd52f9d2e64e757ddbb547b1 | [] | no_license | grigor-stoyanov/PythonAdvanced | ef7d628d2b81ff683ed8dd47ee307c41b2276dd4 | 0a6bccc7faf1acaa01979d1e23cfee8ec29745b2 | refs/heads/main | 2023-06-10T09:58:04.790197 | 2021-07-03T02:52:20 | 2021-07-03T02:52:20 | 332,509,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | def even_odd(*args):
even_odd_list = list(args)
flag = even_odd_list.pop()
if flag == 'even':
even_odd_list = list(filter(lambda x: True if x % 2 == 0 else False, even_odd_list))
elif flag == 'odd':
even_odd_list = list(filter(lambda x: True if x % 2 == 1 else False, even_odd_list))
... | [
"76039296+codelocks7@users.noreply.github.com"
] | 76039296+codelocks7@users.noreply.github.com |
7e785b738e4e9ade50ee1132565889e9c00a626b | f4ef947106cc41814042309c9de5465e69e39292 | /python/introduction/if-else.py | bb26e001fb363a51246f7268136b6595daaee6c7 | [] | no_license | pkdism/hackerrank | 96583a09577ed1c5130b0eb05a57b5db9e5b2c18 | beb30b5b9a17c80fc65af7c765b7ae5684d5c25a | refs/heads/master | 2020-08-01T23:19:32.182123 | 2019-10-12T17:53:48 | 2019-10-12T17:53:48 | 211,154,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | def print_weird(is_weird):
if is_weird == True:
print("Weird")
else:
print("Not Weird")
n = int(input())
if n%2 == 1:
print_weird(True)
elif n%2 == 0 and n >= 2 and n <= 5:
print_weird(False)
elif n%2 == 0 and n >= 6 and n <= 20:
print_weird(True)
elif n%2 == 0 and n > 20:
prin... | [
"pawan.dwivedi94@gmail.com"
] | pawan.dwivedi94@gmail.com |
af58304634321d776ff93fdb3b33cd63d88bd5a7 | b5c17b494204ed215ecfdc65932b2c960fa9e121 | /build_msvc/msvc-autogen.py | af447f1a236eddc919a013b0158853c40645842b | [
"MIT"
] | permissive | syglee7/zenacoin-ver2 | 9c8943c84b8eefad4ce3fee6ac15a9878b87f1df | 90079b95bdf0ea2b7fce644c56d2a9626526e5e4 | refs/heads/master | 2023-03-10T07:29:47.772820 | 2021-02-21T13:57:41 | 2021-02-21T13:57:41 | 340,617,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2019 The Zenacoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import os
import re
import argparse
from shutil import copyfile
SOURCE_DIR = os.path.abspath(os.path.jo... | [
"syglee7@gmail.com"
] | syglee7@gmail.com |
430c76009eb76b20c0e40264e92fd2a0bc6178fa | e7a8ab3898ef331ca11c63808c4d9449794308c2 | /Leetcode/71.simplify-path.py | 09babd70be4afa43ae3a43352abb6bc5b4a61481 | [
"MIT"
] | permissive | EdwaRen/Competitve-Programming | 615695e00b13bda8024055f9634a7de30534977c | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | refs/heads/master | 2021-06-06T11:23:18.758911 | 2021-05-29T14:27:04 | 2021-05-29T14:27:04 | 97,161,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | class Solution(object):
def simplifyPath(self, path):
"""
:type path: str
:rtype: str
"""
if not path:
return ''
# Keep track of directories with stack
stack = []
# split by slash
path_elements = path.split('/')
fo... | [
"eddie.ren.2013@gmail.com"
] | eddie.ren.2013@gmail.com |
e90511aa1c45420f4147cb49d24e3d0a1f586f32 | 07ecc53b5be6b1a34914a0e02265e847f3ac1a65 | /Python/Sort/归并排序.py | 0fdd5bbb8d48cc5d5ab8d35111854d5c0f4a9597 | [] | no_license | JasmineRain/Algorithm | 764473109ad12c051f5337ed6f22b517ed9bff30 | 84d7e11c1a01b1994e04a3ab446f0a35eb3d362a | refs/heads/master | 2023-03-14T00:39:51.767074 | 2021-03-09T12:41:44 | 2021-03-09T12:41:44 | 289,603,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | class Solution:
def mergeSort(self, nums, start, end):
self.sort(nums, start, end)
def sort(self, nums, start, end):
if start == end:
return
mid = (start + end) // 2
self.sort(nums, start, mid)
self.sort(nums, mid + 1, end)
self.merge(nums, start, mid... | [
"530781348@qq.com"
] | 530781348@qq.com |
b25698177869b376581a6e6803c839cd5c03c423 | e08d47be66026209f81c6190901e02064878f47f | /Main.py | 8e7330e63b18002554366aa4698a0c3c094ac33d | [] | no_license | Anthonymcqueen21/Whats-in-name | 06f730ac7a543f43ebc330c2e85a973bb626b7ed | ac4ee5f55e3589b4bf3c7c0f6c12617315dcd31c | refs/heads/master | 2021-04-28T04:04:11.596939 | 2018-02-21T04:15:18 | 2018-02-21T04:15:18 | 122,153,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | https://multiplexer-prod.datacamp.com/proxy/absolute/4d67c28b5588dba2dbfc2f42b73422d7/notebooks/production/users/1258290/j1g5pk1iou/notebooks/notebook.ipynb
| [
"noreply@github.com"
] | Anthonymcqueen21.noreply@github.com |
1b56c3af5bb427f9ef6164f6a46e94cdf58d2bcf | 186662a84fc36e7b21464291dcec5aa6fdc17459 | /ph_plotter/file_io.py | 898e2d18247bd9cd7b956196b1f5d5ede451a3d7 | [
"MIT"
] | permissive | yimaverickxia/ph_plotter | 5d17787060db845e2c2f4da6140767dfbf42b27b | d8642614f8a33745a5e9ff66cee88733c136ed65 | refs/heads/master | 2020-03-28T20:09:32.234439 | 2017-04-28T10:43:35 | 2017-04-28T10:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division,
print_function, unicode_literals)
__author__ = "Yuji Ikeda"
import numpy as np
def read_band_yaml(yaml_file="band.yaml"):
import yaml
data = yaml.load(open(yaml_file, "r"))
nqpoint = ... | [
"ikeda@IKEDA-MBA.local"
] | ikeda@IKEDA-MBA.local |
45efc66baad740c224df9cd3770d59047bb0c375 | ff5942a60f82610fd75aea3186d0054c6a676554 | /lib/db/migrations/2014-01-15-02-modify_users_notification_rename_frequencies.py | 6cdfbf0af1d312a97517aca53952391bfc6d7367 | [
"MIT"
] | permissive | plastr/extrasolar-game | 58a5841a8fba0018936ad964cbf2a45dbe2f1a0e | 1aad5971556d498e3617afe75f27e2f4132d4668 | refs/heads/main | 2023-04-11T08:43:30.161085 | 2021-04-21T15:41:40 | 2021-04-21T15:41:40 | 359,884,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | from front.lib.db import setup_migration_cursor
from front import activity_alert_types
def forward(conn):
cursor = setup_migration_cursor(conn)
# Rename the previous INSTANT and DIGEST keys to be MEDIUM and LONG
cursor.execute('UPDATE users_notification SET activity_alert_frequency="%s" WHERE activity_al... | [
"37421+plastr@users.noreply.github.com"
] | 37421+plastr@users.noreply.github.com |
cc23d537b613d0a860b7541ab952d1e52f6fd557 | 8bb17133e90f330a112fca1ca84c6374c87a5aa4 | /mcts.py | 9bf7067e3ce3e1fd3ce6e0d0d52cdb824fafb5a6 | [] | no_license | kristogj/general-purpose-mcts | 79731ff51745709ce299b6d961e6e53acc963fbc | 43636642c9806f30d7ec2038c5999e1de50546ce | refs/heads/master | 2022-04-20T22:45:29.629658 | 2020-04-21T14:51:12 | 2020-04-21T14:51:12 | 255,140,349 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,763 | py | from state_manager import StateManager
import operator
from utils import get_next_player
import random
from numpy import log, sqrt
class MonteCarloSearchTree:
def __init__(self, game_type, game_config):
self.state_manager = StateManager(game_type, game_config)
self.root = None
self.c = ga... | [
"kristoffergjerde@gmail.com"
] | kristoffergjerde@gmail.com |
b7dcd914cd4285b4aff0e648cd9f27222fb51660 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /fsNMnyjMkErQtvpMW_7.py | dd07074eba6993e697cb7f1b8d977ebfda8a11b9 | [] | 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 | 192 | py |
def holey_sort(lst):
dic = {"4":1, "6":1, "9":1, "0":1, "8":2}
result = [sum(dic.get(n,0) for n in num) for num in map(str,lst)]
return sorted(lst, key=lambda x: result[lst.index(x)])
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2e0cde0f5ccb9e6407e6722496926aa281df2a6c | aa480d8b09dd7ad92c37c816ebcace24a35eb34c | /first-round/748.最短补全词.py | d9431c10c9cd3cf19bbf4a9aa7ab550c35ad287b | [] | no_license | SR2k/leetcode | 7e701a0e99f9f05b21216f36d2f5ac07a079b97f | de131226159865dcb7b67e49a58d2ddc3f0a82c7 | refs/heads/master | 2023-03-18T03:37:02.916453 | 2022-09-16T01:28:13 | 2022-09-16T01:28:13 | 182,083,445 | 0 | 0 | null | 2023-03-08T05:44:26 | 2019-04-18T12:27:12 | Python | UTF-8 | Python | false | false | 3,178 | py | #
# @lc app=leetcode.cn id=748 lang=python3
#
# [748] 最短补全词
#
# https://leetcode-cn.com/problems/shortest-completing-word/description/
#
# algorithms
# Easy (60.13%)
# Likes: 80
# Dislikes: 0
# Total Accepted: 26.9K
# Total Submissions: 40.3K
# Testcase Example: '"1s3 PSt"\n["step","steps","stripe","stepple"]'
#... | [
"luozhou.csy@alibaba-inc.com"
] | luozhou.csy@alibaba-inc.com |
ab44470a38375e1368fd727ad0c482e1dab9d8d4 | 7385c450eca8be719ba45686db698b747e01cd91 | /examples/ad_manager/v201905/proposal_service/update_proposals.py | 65a32176cbe43a73fafb8bbcfcaf22ce4b65ba15 | [
"Apache-2.0"
] | permissive | tanmaykhattar/googleads-python-lib | 44f15b9f6a0c2a3da7f19c17133b5fba842daf07 | 81742dc3571c9413196cfceb57f761c79db6857a | refs/heads/master | 2020-06-01T16:06:05.797538 | 2019-05-22T14:57:29 | 2019-05-22T14:57:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | #!/usr/bin/env python
#
# Copyright 2015 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 requir... | [
"davidwihl@users.noreply.github.com"
] | davidwihl@users.noreply.github.com |
efc71832a5989b425e4e6e7953f1213963c3ddf8 | 79f1e7932c27eb01483f8764720c672242052e1f | /training_horovod.py | 971939c1966028a90d5aef9125b7ca0854ca0d25 | [] | no_license | pk-organics/uniparc_modeling | 3b16ae5b85dc178fdcab4be3b4ddbdab02c80897 | ab9faaad00c20416ea2ac86f6f91b83f86ffb7a4 | refs/heads/master | 2023-02-13T19:58:29.841889 | 2019-12-05T18:53:05 | 2019-12-05T18:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,087 | py | import os
import argparse
parser = argparse.ArgumentParser(description='BERT model training')
parser.add_argument('--modelName', default='bert', help='model name for directory saving')
parser.add_argument('--batchSize', type=int, default=20, help='batch size per gpu')
parser.add_argument('--stepsPerEpoch', type=int, d... | [
"peterc.stjohn@gmail.com"
] | peterc.stjohn@gmail.com |
d47c9b7d28f679cf05843563cc24ffb625dbd6c8 | efadb5a7beec3302f08e1ce296a40462382eca9a | /fusionlcd.py | dc646a1344a1f0d1d5b66b8649aa8d18dbd06f5f | [
"MIT"
] | permissive | kidzik/micropython-fusion | c0edf559c16eb1f96b4178d8fdbe8ccecf254862 | cb41b1c8bfb6a3c7a712165c5e5b4323a6e03462 | refs/heads/master | 2020-03-25T01:35:49.535068 | 2018-08-02T06:45:57 | 2018-08-02T06:45:57 | 143,245,312 | 0 | 0 | MIT | 2018-08-02T05:11:20 | 2018-08-02T05:11:20 | null | UTF-8 | Python | false | false | 2,530 | py | # fusionlcd.py Test for asynchronous sensor fusion on Pyboard. Uses LCD display and uasyncio.
# Author: Peter Hinch
# Released under the MIT License (MIT)
# Copyright (c) 2017 Peter Hinch
# V0.8 16th May 2017 Adapted for uasyncio
# V0.7 25th June 2015 Adapted for new MPU9x50 interface
# Requires:
# uasyncio (official ... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
4eb80491f9fcc0c7fed307c097114d3a9fa5e0cf | 8ead2814623465191200c3e37f07f9c582a3b0b1 | /src/hw_4/task_4_4.py | 20f5a54eb644063186f2f6e58ff5fe4744dfb288 | [] | no_license | alexshchegretsov/Teach_Me_Skills_Python_homeworks | 8293dc21fa13a6b3090a80ebe4bdc9079276bac2 | eab577ad566de02af6b767e866518bafdf9561d0 | refs/heads/master | 2020-05-01T05:31:41.780358 | 2019-05-05T17:49:57 | 2019-05-05T17:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | """
Дан список. Создать новый список, сдвинутый на 1 элемент влево
Пример: 1 2 3 4 5 -> 2 3 4 5 1
"""
sequence_1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]
sequence_2 = []
length = len(sequence_1)
i = 0
while i < length:
add_num = sequence_1[i + 1]
sequence_2.append(add_num)
if i == length - 2:
add_first_num =... | [
"nydollz77@gmail.com"
] | nydollz77@gmail.com |
1d4cce807c1861d03f5fe67e7e06205ff4f3409c | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/cutting-ribbons.py | 9e9019596016b059148f7a592efb02dd949c238e | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 571 | py | # Time: O(nlogr), r is sum(ribbons)/k
# Space: O(1)
class Solution(object):
def maxLength(self, ribbons, k):
"""
:type ribbons: List[int]
:type k: int
:rtype: int
"""
def check(ribbons, k, s):
return reduce(lambda total,x: total+x//s, ribbons, 0) >= k
... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
9ce11b55914400c57bd74701e9f7be215b788b96 | b76e65ce109a57f2d9513715afebd67be806be62 | /urlson/build/lib.linux-x86_64-2.6/urlson/helpers.py | fea1d665ac11459ee406bede988d2713a7a2c0b5 | [] | no_license | ericmoritz/experiments | 2dab718194da8414ec54ca1d856ad0e42ed0e2d6 | efc1627a1795144e908451d1c239ee87cdfcc8ea | refs/heads/master | 2020-05-18T15:25:52.300902 | 2011-01-02T04:37:58 | 2011-01-02T04:37:58 | 1,091,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,308 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This code is based on mongokit.helpers, therefore, the following
# License information is requried to be included. The only modification
# I made was strip the mongokit dependancies.
# Copyright (c) 2009-2010, Nicolas Clairon
# All rights reserved.
# Redistribution and... | [
"eric@themoritzfamily.com"
] | eric@themoritzfamily.com |
2dc86c73519e45606d8814fb9660060d9b4efdeb | 51108a50ffb48ad154f587c230045bb783f22240 | /bfgame/queries/skills.py | cc9f0b832fed1f38964baf8517bb094e02e106d4 | [
"MIT"
] | permissive | ChrisLR/BasicDungeonRL | c90bd0866c457557cccbad24e14689d5d6db7b00 | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | refs/heads/master | 2021-06-15T13:56:53.888646 | 2019-08-05T16:33:57 | 2019-08-05T16:33:57 | 104,269,987 | 3 | 0 | MIT | 2019-08-05T16:28:23 | 2017-09-20T21:35:19 | Python | UTF-8 | Python | false | false | 1,909 | py | from collections import Iterable
from inspect import isclass
from core.queries import listing
from core.queries.base import CumulativeQuery
@listing.register_query
class Skills(CumulativeQuery):
"""
This Query will allow registered components to return their special abilities.
"""
name = "skills"
... | [
"arzhul@gmail.com"
] | arzhul@gmail.com |
0a50bf050033e8687bab10819fdf84400ef10c23 | e450ba913f006d6eae8a62dfc3d18a1535982f30 | /notification_service/tools/__init__.py | 042e6b95e74f2321a014a099423bce4b7d05acd4 | [] | no_license | OneIdea-IRNITU/Smart-schedule-IRNITU | d3c927a3be21aee45ca1195a20bea03e25db3502 | e13d95d7ff4737581203a1804669a2672da92f5a | refs/heads/master | 2022-12-12T03:12:37.779932 | 2021-05-30T01:15:52 | 2021-05-30T01:15:52 | 247,898,585 | 0 | 4 | null | 2022-12-08T11:37:52 | 2020-03-17T06:45:16 | Python | UTF-8 | Python | false | false | 3,515 | py | from datetime import datetime, timedelta
DEBUG = False
def find_week():
"""Определение текущей недели"""
now = datetime.now()
sep = datetime(now.year if now.month >= 9 else now.year - 1, 9, 1)
d1 = sep - timedelta(days=sep.weekday())
d2 = now - timedelta(days=now.weekday())
parity = ((d2 - d... | [
"alexleskov2000@gmail.com"
] | alexleskov2000@gmail.com |
63f30dde45fc2325aca77ff85693ea5060d5fd15 | 7dc502a62dcc4ff39f572040ba180315981e3ba8 | /src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/aio/operations/_collection_region_operations.py | f24252943a4fedad7d1700efed77f9bce9b14500 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | dbradish-microsoft/azure-cli-extensions | 2bec15b90666fee7a0a833b407ca2619e25fed86 | fe44a1bb123a58b7e8248850bdc20555ca893406 | refs/heads/master | 2023-08-31T15:19:35.673988 | 2022-02-09T08:50:18 | 2022-02-09T08:50:18 | 252,317,425 | 0 | 0 | MIT | 2020-04-02T00:29:14 | 2020-04-02T00:29:13 | null | UTF-8 | Python | false | false | 6,847 | 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"
] | dbradish-microsoft.noreply@github.com |
242b2ee5fa4ba96ad60bff79a79e45fe3a1a355c | b9d9fee309786ec53d50467b9ecbcc452da56a19 | /luminarApp/migrations/0025_auto_20210401_1518.py | 1e3c641ce02fb3b1db2f54b276d0a6b8db5c8491 | [] | no_license | amalmhn/luminar_crm | 912009b58d8c5672d952bc4615638aa0eceae224 | 0877aa7ed1f1f0400feec89b4de4aff36bcf96c4 | refs/heads/main | 2023-04-26T13:58:56.387577 | 2021-05-18T17:52:08 | 2021-05-18T17:52:08 | 352,746,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # Generated by Django 3.1.6 on 2021-04-01 15:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('luminarApp', '0024_auto_20210401_1518'),
]
operations = [
migrations.RemoveField(
model_name='enquirythree',
name='s... | [
"amalmhnofficial@gmail.com"
] | amalmhnofficial@gmail.com |
d248153e21a9f17b4ced3b7f2ef56be7bfae25af | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/ccp/examples/workshop/session2/loadSequence.py | 2a2bc1fd92afce70c5be8f3cc298f5b26deab0ad | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 2,000 | py | # Exercise 2.3: Load a fasta sequence from disk.
#
# - Use FormatConverter sub-routines to load a sequence located in
# '../data/seq/fasta.seq'.
#
# - Use an instance of the FastaFormat class located in
# ccpnmr.format.converters.FastaFormat, and then the readSequence()
# method for that object.
#
# - Print... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
b053ca28877887977390ace416445a41f15355b9 | c4a0669126f2fbf757ac3b33a8279ef32305bbd7 | /Python Crash Course/Chapter 12/12.3 Roket/game_fuction.py | 7e7dc03569fa8cddf66660a60111e2f726ea9bec | [] | no_license | ezeutno/PycharmProject | 822b5a7da05729c5241a03b7413548a34b12e4a5 | bdb87599885287d2d7cd5cd703b62197563722b8 | refs/heads/master | 2021-07-18T20:55:08.605486 | 2017-10-24T03:14:10 | 2017-10-24T03:14:10 | 105,782,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import sys
import pygame
def check_keydown_event(event,rocket):
if event.key == pygame.K_RIGHT:
rocket.moving_right = True
if event.key == pygame.K_UP:
rocket.moving_up = True
if event.key == pygame.K_LEFT:
rocket.moving_left = True
if event.key == pygame.K_DOWN:
rocket.... | [
"ivan.suratno@gmail.com"
] | ivan.suratno@gmail.com |
807dc9f71f52f1478c5acf46032f4716ee88a590 | bb150497a05203a718fb3630941231be9e3b6a32 | /models/PaddleHub/CI/test_senta_lstm.py | 320ebc05e83a087606200a8c027a70e81844bbb4 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 436 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
senta_lstm
"""
import paddlehub as hub
senta = hub.Module(name="senta_lstm")
test_text = ["这家餐厅很好吃", "这部电影真的很差劲"]
results0 = senta.sentiment_classify(texts=test_text, use_gpu=True, batch_size=2)
print(results0)
results1 = s... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
14d1abbb6a9e4191fb1bf0ace776efbc43f5553b | 63b864deda44120067eff632bbb4969ef56dd573 | /PyTorch/learning_note/test_cython/setup3.py | 55cf794a818dfd221758cd1afd87ff440bf8496b | [] | no_license | lizhe960118/Deep-Learning | d134592c327decc1db12cbe19d9a1c85a5056086 | 7d2c4f3a0512ce4bd2f86c9f455da9866d16dc3b | refs/heads/master | 2021-10-29T06:15:04.749917 | 2019-07-19T15:27:25 | 2019-07-19T15:27:25 | 152,355,392 | 5 | 2 | null | 2021-10-12T22:19:33 | 2018-10-10T03:06:44 | Jupyter Notebook | UTF-8 | Python | false | false | 172 | py | from distutils.core import setup
from Cython.Build import cythonize
setup(
name='compute_module',
ext_modules=cythonize('compute3.pyx'),
)
# python setup3.py build | [
"2957308424@qq.com"
] | 2957308424@qq.com |
f2de12cd086b9826d00fd85b75f9ea0d21254e06 | 1368678277782c10f3823f523ba5fb3d3c5bbc87 | /chatbot_api/venv/Lib/site-packages/pyowm/utils/config.py | af66fa1df895e77efdee780dcfdc6cd2b43c2aec | [
"MIT"
] | permissive | arpitkumar1412/shellhacks-hospitalCheckin | d92177dc8abc028d722af568f7975d1f164feab3 | 39388561e92c94b22f5f25375d37c626b3609992 | refs/heads/main | 2023-08-22T01:14:32.623756 | 2021-09-26T15:24:49 | 2021-09-26T15:24:49 | 410,179,902 | 1 | 2 | MIT | 2021-09-25T16:27:44 | 2021-09-25T04:59:50 | Python | UTF-8 | Python | false | false | 2,302 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import json
from pyowm.commons import exceptions
from pyowm.config import DEFAULT_CONFIG
from pyowm.commons.enums import SubscriptionTypeEnum
def get_config_from(path_to_file):
"""Loads configuration data from the supplied file and returns it.
:param ... | [
"86039408+Farewell-SDSk17@users.noreply.github.com"
] | 86039408+Farewell-SDSk17@users.noreply.github.com |
36c38a219b134e262f8cab1a09068979794b9e4d | eb61d62ca1f6f0123e3771105f5dfbbd6115138d | /.history/23-08-21_20210912090919.py | 985640455776b12f3247458d979aedaebdd981c3 | [] | no_license | Alopezm5/CORRECTO-2 | e0f14bcc3a88c0e222d10e3261e68532008bc42e | 223613f1fb04dce3fac9f82f243cb2f22fe100f3 | refs/heads/main | 2023-07-29T06:52:48.147424 | 2021-09-12T20:33:27 | 2021-09-12T20:33:27 | 388,995,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | class Empresa:
def __init__(self,nom="El mas barato",ruc="0999999999",tel="042971234",dir="Juan Montalvo"):
self.nombre=nom
self.ruc=ruc
self.telefono=tel
self.direccion=dir
def mostrarEmpresa(self):
print("Empresa: {:17}, RUC: {}".format(self.nombre,self.ruc))
clas... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
9925babfe5f66825d042b007d07d368b2f35ef27 | d46147c2db8a9e4225f3df4f81cc3f04dd57b03d | /exercise/ex01-pandas-selection/data.py | f177d0bbeac2b4d7d706cb90082299950c733053 | [] | no_license | biychen/machine-learning-training-exercise | 83741dbf182b84e206fc26c3d3b3a83ad9c50416 | 946dcc435142d9b89bd98688d6f957452e46c96a | refs/heads/master | 2021-01-23T08:48:52.607520 | 2017-09-05T17:08:30 | 2017-09-05T17:08:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
dates = pd.date_range('20130101', periods=6)
df = pd.DataFrame(np.random.randn(6,4), index=dates, columns=list('ABCD')) | [
"zj0512@gmail.com"
] | zj0512@gmail.com |
09aba1132f88729b3686ea03d643b6da871bd6f9 | eadd15064aa74811e7a3718b617636627ef4fd47 | /web/migrations/0022_auto_20210503_1552.py | 47ddebe5764e78697bcbfb57abd80f79cd27bd65 | [] | no_license | topsai/plasrefine_backstage | 262f7bb032daa4d018aac1519e1139cb060c3f91 | 1eb34dd0b13ebdc2a42dd6ed1aaa2d08c18ab5fb | refs/heads/master | 2023-04-12T13:24:22.710108 | 2021-05-08T14:16:41 | 2021-05-08T14:16:41 | 361,993,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | # Generated by Django 3.2 on 2021-05-03 07:52
import ckeditor_uploader.fields
from django.db import migrations, models
import imagekit.models.fields
class Migration(migrations.Migration):
dependencies = [
('web', '0021_aboutpage'),
]
operations = [
migrations.CreateModel(
na... | [
"hurte@foxmail.com"
] | hurte@foxmail.com |
81e9a2517d8558ee793d6c406576694e307aacc3 | ac95b268c02ea0d3d59b5ef6662a27b2970dc482 | /assessor/checkpoint_and_make_plots.py | baf8109643a3b966fb334510e2c1d735b45ab2e0 | [] | no_license | voletiv/lipreading-in-the-wild-experiments | 3f20b9029f54d2a0229ad6c1a56eb313b1923af5 | 77e5938a1dd66f9ffece668c74dfc738f672bd30 | refs/heads/master | 2023-03-21T22:52:04.083884 | 2021-03-14T21:44:02 | 2021-03-14T21:44:02 | 105,631,097 | 54 | 23 | null | 2021-03-14T21:44:03 | 2017-10-03T08:47:57 | Python | UTF-8 | Python | false | false | 3,753 | py | import os
if 'voleti.vikram' in os.getcwd():
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from keras.callbacks import Callback
#########################################################
# CALLBACK
#########################################################
class C... | [
"vikky2904@gmail.com"
] | vikky2904@gmail.com |
9dea8f7fe952c9fd9cb255926144c6e3373e628d | 54f6c0e0d1e83d3a7026caaf8837f1fc1d1ec647 | /examples/example06.py | 59048b80d4ad9b3278af81742f509656f7d620fd | [
"BSD-3-Clause"
] | permissive | battyone/mystic | 2faaf0e9112582adb732505167390f4e9d5d3ace | b96905466b0c06dd379c968a23e4c867c609a353 | refs/heads/master | 2023-01-02T12:48:22.014100 | 2020-10-28T00:17:20 | 2020-10-28T00:17:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2020 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/my... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
5d8554d713e4e7ddb712d54f02ce3185dd1bd4a8 | b9b06d86d43e738b62ab9289fc13aae4c2b2670b | /nsd1808/devops/day06/myansible/library/mycopy.py | 661f66b6c900d26a216fae53bddf5a4c01d4a8ba | [] | no_license | MrZhangzhg/nsd_2018 | 31a7a8d54e2cb3ff4f4eb5c736fbd76601718356 | 458a1fef40c5e15ba7689fcb3a00baf893ac0218 | refs/heads/master | 2020-04-08T19:08:48.237646 | 2019-09-08T04:31:07 | 2019-09-08T04:31:07 | 159,642,127 | 5 | 7 | null | 2019-01-04T05:33:40 | 2018-11-29T09:37:27 | Python | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/env python3
import shutil
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict(
yuan=dict(required=True, type='str'),
mudi=dict(required=True, type='str')
)
)
shutil.copy(module.params['yuan'], module... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
ebd53c6a7338e323e438a6dfff82dec038698809 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /homeassistant/components/vulcan/calendar.py | cfa962e51a33b6bea4ad665e80357383054272b2 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 5,622 | py | """Support for Vulcan Calendar platform."""
from __future__ import annotations
from datetime import date, datetime, timedelta
import logging
from aiohttp import ClientConnectorError
from vulcan import UnauthorizedCertificateException
from homeassistant.components.calendar import (
ENTITY_ID_FORMAT,
CalendarE... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
e7b6894c0a50d9f580da4cc238b9578c46f7f057 | 192314e7a28810215e793c12e56bb78d8311f5bc | /enarocanje/accountext/migrations/0015_auto__add_field_user_service_notifications.py | cf43a9a68c172999839f7e48761ae97261271d5d | [] | no_license | km4054/eNarocanje | e07cd02e4bc6fd6b9118a7667562ded70b33e0b8 | 1abf2392fa2357dfd9a61bc5c8ebd6d418bbb9ce | refs/heads/master | 2021-01-18T20:07:33.708188 | 2014-06-08T21:11:50 | 2014-06-08T21:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,478 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'User.service_notifications'
db.add_column(u'accountext_us... | [
"simonrakovic@gmail.com"
] | simonrakovic@gmail.com |
9033fc4743c174f35f4232041a5fa522cf5511bb | aef1ea6df9f7fa7a812d9330873dca97ef205e53 | /employee/migrations/0004_auto_20200222_2002.py | 1e5910dbb0ebee6f1f1e95c919379ddcec0578fa | [] | no_license | iamshakibulislam/bakery-management | 0033fec1178d24e427ef68d025682501c5ba6320 | 2751b2cc1f76eeb5825bc3133234ba97e1415569 | refs/heads/master | 2023-02-17T17:05:51.078466 | 2021-01-18T08:36:18 | 2021-01-18T08:36:18 | 254,834,024 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # Generated by Django 3.0.3 on 2020-02-22 14:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('employee', '0003_auto_20200221_1619'),
]
operations = [
migrations.AlterField(
model_name='attendence',
... | [
"iamshakibulislam@gmail.com"
] | iamshakibulislam@gmail.com |
488cad88b223d986363dcf96de77845135c84eb4 | 0c3db34634cb85e778c95a4b4ff64514eca0477f | /setup.py | e1230d208fa7d0491432cff41dae05f25a0a1fb6 | [] | no_license | EUREC4A-UK/lagtraj_aux | 4efad4c94bcb9a2a367a6794abe0bc96e99a06af | da39ec1f6afa04a5a808130175b595c9bd9d01af | refs/heads/master | 2023-03-05T17:06:14.938118 | 2021-02-09T12:17:51 | 2021-02-09T14:14:29 | 337,395,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
import versioneer
INSTALL_REQUIRES = open("requirements.txt").readlines()
setup(
name="lagtraj_aux",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Utility for sampling auxiliary fields along trajecto... | [
"leif@denby.eu"
] | leif@denby.eu |
1ba01a3cd767a65624d2e525466317208e434229 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03103/s940880137.py | 9fca731c2da7f6c58cd177394a94b96666210919 | [] | 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 | 395 | py | import sys
input = sys.stdin.readline
def main():
ans = 0
n, m = map(int, input().split())
all = []
for i in range(n):
all.append(list(map(int, input().split())))
all.sort()
for a,b in all:
if m >= b:
m -= b
ans += a*b
else:
ans += a*... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
56f56fff61aba3d17455a3528d7e78668f52c10f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/299/67023/submittedfiles/testes.py | 39e00d4dc422e89a752c8c0eabf9431496714064 | [] | 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 | 133 | py | altura=1,82
idade=20
print('a idade do individuo eh %d' %idade)
print('a idade do indivíduo eh %d e a altura é %f' %(idade,altura)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
749ceac199de6c4c428915ea05ff2d723dff0fab | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/not/sample_good172.py | f755cd22a6c7c294d8b53bab38250c079edae4be | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import math
import random
import array
import difflib
nterms = 740
n1, n2 = 0, 1
if nterms <= 0:
print("Please provide a positive integer.")
elif nterms == 1:
print("Fibonacci sequence upto", nterms, ":")
print(n1)
else:
print("Fibonacci sequence:")
count = 0
while 740 > 0:
print(n1)
nth = n1 + n2
n1 = n2
... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
c7cb7b9a61a3d200d92536daaf9f2de23c6bca9e | ba86ef56fb2ff1a8bf9be3058b58b9e48e7b50ce | /apps/landing/views.py | 14787b0251c082cc34287281d821d45629b97824 | [] | no_license | robertowest/lubre_homepage | 277f8fc81512b482fbea539234f30ef3eb801480 | 9de02443ba2ee3cd48afd2b7d580a09081fe84f2 | refs/heads/master | 2023-07-14T04:39:38.640155 | 2021-08-30T17:43:56 | 2021-08-30T17:43:56 | 223,473,409 | 0 | 0 | null | 2020-05-07T13:50:46 | 2019-11-22T19:34:22 | Python | UTF-8 | Python | false | false | 4,433 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from django.views.generic import DetailView, ListView, TemplateView
from django.core.mail import BadHeaderError, EmailMessage, send_mail
from django.template.loader import render_to_string
from apps.homepage.models import Entri... | [
"roberto.west@gmail.com"
] | roberto.west@gmail.com |
9f137e63c78da3d9c8366edc2ff65fec7817d894 | f5648d8e46f8394e367c33fe5f4272e32950baa7 | /docs/conf.py | adb8eb8928d0016c8a18c3132911e66e7e3a00b8 | [
"MIT"
] | permissive | johnnygreco/gala | ea90f20602e21ffa5c7fd343b2cd2deb9daeb844 | 93ded8a7d79ba0e01cf9e610890d9e38a820a23a | refs/heads/main | 2021-06-25T11:32:32.593330 | 2020-11-12T18:56:45 | 2020-11-12T18:56:45 | 166,590,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,947 | py | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
#
# Astropy documentation build configuration file.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this file.
#
# All configurati... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
98b5d2f8925aad7f853420a2261030621736ff65 | 156eeb39549bbe83f004d0439897d4c2b4f3950c | /day0c/w1.py | a66d2563b6fa571d45ae7be6c57ded4eb86bd26e | [] | no_license | zhangzongyan/python20180319 | 235a50609713d436b13207c205fcfedb8250c8f7 | 8335d324b3fcf142316552b9e3774052a5f9d739 | refs/heads/master | 2021-04-12T10:09:36.882132 | 2018-04-25T06:17:42 | 2018-04-25T06:17:42 | 126,292,592 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 614 | py |
'这是一个装饰器(deractor)'
# 函数作为另一个函数的返回值(高阶函数)
def lazy_fun():
def newnow():
print("2018-4-4")
return newnow
import functools
# 装饰器:在函数执行的过程中为函数加功能
def log(fun): # "闭包":内部函数可以保存住外部函数的参数变量
@functools.wraps(fun) # 将fun函数的属性赋值给wrapper 包括__name__
def wrapper(*args, **kw):
print("%s is called" % fun.__name__)
retu... | [
"zhangzongyan@uplooking.com"
] | zhangzongyan@uplooking.com |
71c9e24b8e56de6df403cbc048b86a89c290ab1b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_143/ch74_2020_04_08_17_31_24_944920.py | cda189c277d634bf91594f056c341b5ccf0223f8 | [] | 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 | 449 | py | def conta_bigramas(s):
dici={}
li=[]
s1=s[0]
s2=s[1]
soma= s1+s2
li.append(soma)
for s1 in range(2, len(s)):
soma=s[s1]+s2
li.append(soma)
s2=s[s1]
i=0
while i<len(li):
b=0
c=0
while b<len(li):
if li[i]==li[b]:
... | [
"you@example.com"
] | you@example.com |
d11bbf20bf9c55706dbd88f3157a5d28fefe56dd | 77eb9612112673c67ef6db412818d0e0d4cd9f0d | /backend/run_from_the_monste_18241/settings.py | fa113d755e4511b3fba83dd63c60b6df389e1aa4 | [] | no_license | crowdbotics-apps/run-from-the-monste-18241 | adbddf3a709023b71144dcd7df1da410c0866272 | 8c40954691cd52ba33fcfce57926c909cffd6eb6 | refs/heads/master | 2022-10-24T14:06:44.947707 | 2020-06-19T01:10:35 | 2020-06-19T01:10:35 | 273,372,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,772 | py | """
Django settings for run_from_the_monste_18241 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
408294b5bc212b4736b0b873dc3c448c62d532cc | 735360a55198b02ccfc3f7e57e7089c4a0ce45bd | /UnderstandingWeights/readWWWSMEFTLHE_V1.py | ed68e659ac3c2581830c55004ae5e987b1d559d0 | [] | no_license | sgnoohc/EFTAnalysis | d74991624117c6af42366f171edaf20b9ac56c77 | 7c9e37c71bd055af90f3110708e72357e45da3cd | refs/heads/master | 2023-04-15T07:06:30.808735 | 2021-04-21T17:23:37 | 2021-04-21T17:23:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,551 | py | import sys
import ROOT as rt
import math
from LHEevent import *
from LHEfile import *
import plotTools
if __name__ == '__main__':
#Bprime histograms
MW_jj = rt.TH1D("MW_jj", "MW_jj", 500, 0., 500)
MW_jj.Sumw2()
MInvariantMass_mumu = rt.TH1F("MInvariantMass_mumu", "MInvariantMass_mumu", 500, 0., 500);
... | [
"saptaparna@gmail.com"
] | saptaparna@gmail.com |
5a7e8e0caabc73c065826a7358d742e6c72cbcc9 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_004_20180620125837.py | 202fa907284aed5e7c7d3ad3fbc832a22382abf5 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,675 | py | from random import randint
# Sudoku1 almost solved
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6,... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
345378b2169dca467af4d7231ffe8a84bbd82b45 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /android_webview/tools/cts_archive/3pp/fetch.py | e27e9f3d67727c75e9eaed90b4e0c61b6e16166e | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 1,656 | py | #!/usr/bin/env python3
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import json
def do_latest():
print('2023.03.01') # Update to current date when updating the URLs below
def get_download_url():
file... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
406ea6e8a4d0b6f11537b17e9381d3ced513dee4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02691/s400764885.py | 7224a67c3349f540080134940093f8e2859b5465 | [] | 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 | 240 | py | n = int(input())
a = list(map(int, input().split()))
dict_diffs = dict()
for i in range(1, n+1):
dict_diffs[i+a[i-1]] = dict_diffs.get(i+a[i-1], 0) + 1
total = 0
for j in range(1, n+1):
total += dict_diffs.get(j-a[j-1], 0)
print(total) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3c3757c27fb15ab2ef3b2a5a0211621bd2d3c7cb | 150464efa69db3abf328ef8cd912e8e248c633e6 | /_4.python/__code/Python自學聖經(第二版)/ch03/floor.py | 918f21e2c941654eaabeed6d109074468c10a37c | [] | no_license | bunshue/vcs | 2d194906b7e8c077f813b02f2edc70c4b197ab2b | d9a994e3afbb9ea84cc01284934c39860fea1061 | refs/heads/master | 2023-08-23T22:53:08.303457 | 2023-08-23T13:02:34 | 2023-08-23T13:02:34 | 127,182,360 | 6 | 3 | null | 2023-05-22T21:33:09 | 2018-03-28T18:33:23 | C# | UTF-8 | Python | false | false | 195 | py | n = int(input("請輸入大樓的樓層數:"))
print("本大樓具有的樓層為:")
if(n > 3):
n += 1
for i in range(1, n+1):
if(i==4):
continue
print(i, end=" ")
print() | [
"david@insighteyes.com"
] | david@insighteyes.com |
98204de8b55b02edefa7274b827be91b2dc91d7a | a33aeaf053fc020d39d75dc55d563e1e40389fcd | /polyglotdb/graph/attributes/__init__.py | e3afecef82b5725599aec7a89e9d7c06ded8aeae | [
"MIT"
] | permissive | orianakc/PolyglotDB | 0589a8248b9b28ce340e4a1bf15af9f03f596814 | 210c6e6cccba692c145422109e5872ed5df4d161 | refs/heads/master | 2021-01-20T23:52:08.755394 | 2016-03-03T18:48:17 | 2016-03-03T18:48:17 | 50,045,371 | 0 | 0 | null | 2016-01-20T17:02:27 | 2016-01-20T17:02:26 | null | UTF-8 | Python | false | false | 398 | py |
from .base import AnnotationAttribute, Attribute
from .aggregate import AggregateAttribute
from .path import (PathAnnotation, PathAttribute, SubPathAnnotation,
PositionalAnnotation, PositionalAttribute)
from .discourse import DiscourseAnnotation
from .speaker import SpeakerAnnotation
from .subanno... | [
"michael.e.mcauliffe@gmail.com"
] | michael.e.mcauliffe@gmail.com |
55c2b39333001ba8b4d35ef33a295aab48fd38af | 4c33c000ef250d16f20ded29b8d212a55dbdd625 | /polls/tests.py | 024674198163fa966441e10f571724790741bcc0 | [] | no_license | hansunho/djangoTutorial | 3ec8aee1666c02dc84873ea9646f7e65b3a50772 | 360f16dabc396c1133dfb363569e5038cbd87a7f | refs/heads/master | 2021-01-20T04:08:13.133934 | 2017-05-04T21:45:54 | 2017-05-04T21:45:54 | 89,641,862 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,983 | py | import datetime
from django.utils import timezone
from django.test import TestCase
from django.urls import reverse
from .models import Question
class QuestionMethodTests(TestCase):
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() should return False for qu... | [
"="
] | = |
74e8e0f1afda986b1f35a1aaf5b0d3dae2295961 | 3e6c0e46a318fd8583f207103e96fff755e0e128 | /10. Interactivity with Mouse/reference_pmouseX/reference_pmouseX.pyde | 62a7cded548d35c503bf90e97b01a6dcd1ed7b8e | [] | no_license | demikaiser/BeautifulCodingWithProcessingPyBasic | c16842df79671baa5282480b35989671c95738c1 | 69d82be9a183ba89598934ebd5de81ed0c83f52a | refs/heads/main | 2023-08-26T10:12:25.761523 | 2021-10-22T17:12:50 | 2021-10-22T17:12:50 | 387,465,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | pyde | def setup():
size(640, 320)
def draw():
background(0)
textSize(64)
text("pmouseX: " + str(pmouseX), 50, 100)
delay(1000) # Delay 1 second.
text("mouseX: " + str(mouseX), 50, 200)
| [
"demikaiser13@gmail.com"
] | demikaiser13@gmail.com |
237f9f6eb29bfa0188f763b7069a79bd69d30dd9 | a54b2e587763e1ef80572f89086ba85f9616e8d9 | /day11/exercise_2_server.py | 5118d0fe93a7cca658862f470f5bfe63bfdf2fc2 | [] | no_license | Linkin-1995/test_code2 | 66848a5c00f747a911929d9a0fe2e869e1d50555 | fae7a7fb36583acbe4a592736acd88823506d548 | refs/heads/master | 2022-12-05T03:08:48.386272 | 2020-08-21T10:42:55 | 2020-08-21T10:42:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | """
练习: 从客户端传递一张图片给服务端,在服务端
以当前日期为名字保存起来
思路: 客户端 将文件内容读取出来发送
服务端 接收文件内容,写入本地
要求 : 文件可能很大,不允许一次性读取
循环读取发送
"""
from socket import *
import time
# 获取图片函数 边接收边写入
def get_image(connfd):
filename = "%s-%s-%s.jpg"%time.localtime()[:3]
file = open(filename,'wb')
# 边接收边写入
whi... | [
"1105377455@qq.com"
] | 1105377455@qq.com |
a00e35fa54e961a5f4d211b26701e93759a8c43f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /K4aKGbfmzgyNNYEcM_23.py | 680be4587d222015a58a405596f277b3cff43d55 | [] | 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 | 1,250 | py | """
Given the _number_ `n` and a _list of interior angles_ `angles`, return
whether or not it's possible to make a convex polygon with `n` sides with the
`angles` given. Remember that angles must be **under 180°**.
is_shape_possible(3, [80, 70, 30]) ➞ True

big = input("how many bottles of more than one liter will you deposit?: ")
small = float(small)*0.10
big = float(big)*0.25
total = big+small
print("The total value of your refund is:", total, "$" ) | [
"noreply@github.com"
] | AleByron.noreply@github.com |
bfa97789cc8d5de9570bd3dc7395444c75edfcb0 | d7cec9bc446d07dc71708ec8b854dc756f18c417 | /plotting_scripts/plot_rollback_time_box_and_whiskers.py | e9a81156911c806a866fba95de25417b23ccbec0 | [] | no_license | ICGog/falkirk-experiments | 65d9c9ae7e1169a5d80b5fed585382a8aac66d10 | 1e9de3233b93490f4996ed499bc735b6099fec3e | refs/heads/master | 2021-10-23T22:54:36.543899 | 2021-10-13T01:00:00 | 2021-10-13T01:00:00 | 83,070,442 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | # Copyright (c) 2016, Ionel Gog
import csv
import gflags
import math
import matplotlib
matplotlib.use("agg")
import os, sys
import matplotlib.pyplot as plt
import numpy as np
from utils import *
from matplotlib import pylab
from scipy.stats import scoreatpercentile
from box_and_whisker import *
FLAGS = gflags.FLAGS
... | [
"gogionel@gmail.com"
] | gogionel@gmail.com |
7a872db5d31cf765a75d17f76c790fab4cefff14 | 9660ea2e94b1057249a5f86c8535535cb5bbbd06 | /backend/campusmap/apps.py | e9b25a56729b33a29651353757e1ea20540814e3 | [] | no_license | PSU-OIT-ARC/campusmap | 4330cd26671dffb822a5ed9b6894bb4c6db8cd4d | 7505f8fbda9d7f8de6d48539993986c10c44dce3 | refs/heads/develop | 2021-05-01T19:42:57.101201 | 2017-08-28T22:16:46 | 2017-08-28T22:16:46 | 31,921,978 | 0 | 1 | null | 2017-07-18T22:26:20 | 2015-03-09T20:52:38 | Python | UTF-8 | Python | false | false | 487 | py | from django.apps import AppConfig
class DefaultAppConfig(AppConfig):
name = 'campusmap'
def ready(self):
from django.contrib.gis.db.models import GeometryField
from rest_framework.serializers import ModelSerializer
from campusmap.serializers import GeoJSONField
# This makes ... | [
"wbaldwin@pdx.edu"
] | wbaldwin@pdx.edu |
eca1e9e1cba026a9170a3dbf45f88970996fd3cc | 1aa340a8de26a83767a2491dca35f0c5dbd0e1f3 | /code/train_2.py | b51e1789922d516d87ef16c65560d46ffaa3f140 | [] | no_license | zhangxu0307/transport-forecasting-tianchi | 023df5bb891781f478add1fa68abe3cdb0aa7acf | d8584a34ee5250d3b846de58835175b5063337d6 | refs/heads/master | 2021-08-19T06:42:14.408395 | 2017-11-25T01:24:33 | 2017-11-25T01:24:45 | 111,967,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,253 | py | import pandas as pd
import numpy as np
from code.util import SMAPE, MAPE, crossValidation, gridSearch, kFoldCV
from code.model import buildTrainModel
from sklearn.externals import joblib
import matplotlib as mpl
mpl.use('Agg')
import xgboost as xgb
import matplotlib.pyplot as plt
def train(features, trainPath, testP... | [
"zhangxu0307@163.com"
] | zhangxu0307@163.com |
ff1f419bd2388e15eb3e5c51d0723e4ef35c6954 | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Bit Manipulation/reverse_bits.py | ce72381592a8a7d418c62ecee2a3953ffb737c86 | [] | no_license | harvi7/Leetcode-Problems-Python | d3a5e8898aceb11abc4cae12e1da50061c1d352c | 73adc00f6853e821592c68f5dddf0a823cce5d87 | refs/heads/master | 2023-05-11T09:03:03.181590 | 2023-04-29T22:03:41 | 2023-04-29T22:03:41 | 222,657,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | class Solution:
def reverseBits(self, n: int) -> int:
res = 0
for i in range(32):
res += n & 1
n = n >> 1
if i != 31:
res = res << 1
return res | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.