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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62e324edbf5db72f17c763dc3d686b1df8fa8e76 | e060901933ae4b8608a16b75027eb676bcbf24ee | /Shoes/Shoes/urls.py | d5d37b558ac87257bbd1c5fb2c26a53faf66edaf | [] | no_license | apatten001/Shoepal | 5c48cc45de5c9fc8d321487e019833714f45d8c3 | a007090fe2acb541b393854001cd8a106c8d2450 | refs/heads/master | 2021-04-06T20:09:53.773607 | 2018-03-15T21:04:29 | 2018-03-15T21:04:29 | 125,425,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | """Shoes URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"apatten001@yahoo.com"
] | apatten001@yahoo.com |
78160df90330823af6c5d5389fbe35435da6181e | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/twisted/python/test/deprecatedattributes.py | 368f231b4fba03650d3126673b5a98b6ffcf64ff | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
A module that is deprecated, used by L{twisted.python.test.test_deprecate} for
testing purposes.
"""
from __future__ import division, absolute_import
from incremental import Version
from twisted.python.deprecate import deprecatedM... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
9aa328809ba68d90740be6791e15c2849822679e | 3cec81bf2c37485482b9ac100c45029baa8044a2 | /pde/tools/spectral.py | 98c12dee4c9b855f17d2228f1d8477346148dbbe | [
"MIT"
] | permissive | jhurreaq/py-pde | 085adfbbcdabc162d66fef28007d729d465fbadf | 42cd3e9cc45793840ecfe244e606c39b13502658 | refs/heads/master | 2023-08-05T18:23:53.612466 | 2021-09-19T13:19:29 | 2021-09-19T13:19:29 | 318,832,446 | 0 | 0 | MIT | 2020-12-05T16:16:46 | 2020-12-05T16:16:45 | null | UTF-8 | Python | false | false | 3,022 | py | """
Functions making use of spectral decompositions
.. autosummary::
:nosignatures:
make_colored_noise
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
"""
from typing import Callable, Tuple
import numpy as np
try:
from pyfftw.interfaces.numpy_fft import irfftn as np_irfftn
from pyfftw.int... | [
"david.zwicker@ds.mpg.de"
] | david.zwicker@ds.mpg.de |
48b166e97930d067ecf11888f7c6e2d3278d35f2 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations/_network_interface_ip_configurations_operations.py | 056672474f33b7ea604d12fce6dcb88351808632 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 8,928 | 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"
] | scbedd.noreply@github.com |
d6e8ff8516b3f0322e3955eae9f8edc244f810f8 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-dbs/aliyunsdkdbs/request/v20190306/ModifyBackupObjectsRequest.py | 0e3fa5590c1538ee6643ee531e162ad58600b343 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,056 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
f45fdaae0dc927be8cad55969099030418d04029 | 633b2299ab0bb2648b94a7f8bf0288aa7a083347 | /Project_Assignment11/app11/views.py | 709df73b08555f9bfcf6f78709277c4db176767d | [] | no_license | Abhirvalandge/Django-Practice-Projects-with-Naveen-Sir | 7deb309b8af3c9e123da8525d7a925661662bde3 | 172191e22fcec3a3f80f64e624e6f9a52617486e | refs/heads/main | 2023-03-23T08:34:25.196039 | 2021-03-06T06:56:17 | 2021-03-06T06:56:17 | 345,023,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from django.shortcuts import render
def showMain(request):
return render(request,"index.html")
def showIndex(request):
oroom = 1500
droom = 2500
sroom = 5000
comp = 1000
gy = 250
min = 50
gname = request.POST.get("gn")
gcont = request.POST.get("gc")
add = request.POST.get(... | [
"abhirvalandge@gmail.com"
] | abhirvalandge@gmail.com |
a13cc031394394a73888e319442d50773ae1f9cf | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_Samsruti_1.py | fef1069471fc5682a4dbee4a96c5491f48a857dc | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 828 | py | import sys
def readInt():
return int(raw_input())
def retrieveEachNumber(number):
eachNumberList = []
rem = 0
while number > 0:
rem = number % 10
number = number/10
eachNumberList.append(rem)
return eachNumberList
fileout = open('log.txt', 'w')
needList = [0,1,2,3,4,5,6,7,8,9]
trueval = []... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
43d77b0cd16051f64708b60f8fccce68d390dffb | dc99d95671170444cd7bf02e37da6ecda4a5f19e | /apps/operation/migrations/0008_auto_20180905_1609.py | 55dfc0e5ddf62f37178e22dbdf88e45ca8ef24f2 | [] | no_license | bbright3493/python_real_war | 734d49ed9f7e1800d24dc754424a07b69d7d8c1f | 6e43bb7d814920222f3310bd6fd9f04cb3d5bbf1 | refs/heads/master | 2020-03-30T06:08:40.249185 | 2018-10-22T07:33:41 | 2018-10-22T07:33:41 | 150,841,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-09-05 16:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('operation', '0007_auto_20180831_1621'),
]
operations = [
migrations.RemoveF... | [
"44704708@qq.com"
] | 44704708@qq.com |
3d8e60b68e721264a7b6abc65cdd796f0b801774 | db9060d9a8550d6ce24fff6bdf04b4fa8974f20b | /utils/install_pyro.py | e6823af6f8006fac074ae01adce8216a8dbc3c8b | [] | no_license | davecap/pydr | 92fbb7ba9ecaa054a36b0409f86b58740592767d | fc6cbef45007b55bf78fd661cc81c6b0ef7e0d80 | refs/heads/master | 2016-09-06T11:11:28.685731 | 2011-08-05T16:50:22 | 2011-08-05T16:50:22 | 864,921 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #!/usr/bin/python
import subprocess
import os
import shutil
import tempfile
import re
try:
temp_dir = tempfile.mkdtemp(prefix='pyro_install_')
print 'Installing in %s' % temp_dir
os.chdir(temp_dir)
url = 'http://www.xs4all.nl/~irmen/pyro3/download/Pyro-3.10.tar.gz'
filename = 'Pyro-3.10.tar.gz'
... | [
"dcaplan@gmail.com"
] | dcaplan@gmail.com |
9554a7b27eb0ab83d7221086697a354c5f8a3b85 | 6547c59e1041bd888c31d360f9b75e07f5b2bdd0 | /bin/pythonicus | d17e06e9c343bbdefffcca29145c02e19757ae3d | [] | no_license | diegorubin/pythonicus | b5069f3bc12f20715e70da990fb4476089046c53 | ae0015d301df5cac3896455a6b64917f0b5bc1b8 | refs/heads/master | 2021-03-12T20:36:05.564847 | 2014-12-27T10:52:10 | 2014-12-27T10:52:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | #!/usr/bin/env python
import sys
#import cyclone.web
from twisted.python import log
from twisted.internet import reactor
try:
from pythonicus.server.base import *
except ImportError:
from os.path import join, abspath, dirname
parentpath = abspath(join(dirname(__file__), '..'))
sys.path.append(parentpa... | [
"rubin.diego@gmail.com"
] | rubin.diego@gmail.com | |
979444d06a18703716c2ffc753dde974cb5502fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03967/s359107548.py | d0ee9a3ac3bd33bf4227ed9624640a7cce491654 | [] | 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 | 317 | py | S = input()
g_cnt, p_cnt = 0, 0
ans = 0
for s in S:
if p_cnt < g_cnt:
if s == "g":
p_cnt += 1
ans += 1
elif s == "p":
p_cnt += 1
else:
if s == "g":
g_cnt += 1
elif s == "p":
g_cnt += 1
ans -= 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f45ba9f87301ca0d99a049ac8d38a6398db17af0 | e5b4ed93d6666e195e96a265d3e7cfe4243a7300 | /python_net/day02/udp_server.py | 8df6e4aa87d01a1cdc5cca61ad4cecade830b7b8 | [] | no_license | Spider251/python | 934f5b8b923c2b61186a6df8445957290e5c4c74 | 8b1931f862e1d5c29fed9af624bcac94c1d25755 | refs/heads/master | 2020-04-05T11:58:04.558098 | 2018-11-09T12:06:06 | 2018-11-09T12:06:06 | 156,852,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # udp_server.py
from socket import *
#创建数据报套接字
sockfd = socket(AF_INET,SOCK_DGRAM)
#绑定地址
server_addr = ('0.0.0.0',8888)
sockfd.bind(server_addr)
#消息收发
while True:
data,addr = sockfd.recvfrom(1024)
print("消息来自%s:%s"%(addr,data.decode()))
sockfd.sendto(b"Thanks for you msg",addr)
#关闭套接字
sockfd.close()
| [
"1419418693@qq.com"
] | 1419418693@qq.com |
0cc41ccb5f1374c3d4787416da11b9c307894afd | 16c8fdf291430475f40d578b0d64552eb64046e9 | /colour/difference/tests/test_huang2015.py | 9e6bd01ac869d70b6f779b19f66a0c1b05fae61b | [
"BSD-3-Clause"
] | permissive | nodefeet/colour | 4c1bfed87ce173ff878bdf288fd9828bb68022e3 | 319dd5b1c45aef6983eff1830f918c1e593fb530 | refs/heads/develop | 2022-02-19T17:39:36.657993 | 2022-02-15T08:38:26 | 2022-02-15T08:38:26 | 460,456,444 | 0 | 0 | BSD-3-Clause | 2022-02-17T13:53:37 | 2022-02-17T13:53:36 | null | UTF-8 | Python | false | false | 1,117 | py | """Defines the unit tests for the :mod:`colour.difference.huang2015` module."""
import numpy as np
import unittest
from colour.difference import power_function_Huang2015
__author__ = "Colour Developers"
__copyright__ = "Copyright 2013 Colour Developers"
__license__ = "New BSD License - https://opensource.org/license... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
6f91fd482b30ef5e937e14797819b36816094e2f | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_basis3.py | 7221798fa0235553b855d476ccc0d957c7a06580 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from xcp2k.inputsection import InputSection
class _basis3(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Default_keyword = []
self._name = "BASIS"
self._repeated_default_keywords = {'Default_keyword': 'DEFAULT_KEYWORD'}
self._attributes = ['Default_keyw... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
536c4275d8ead61ff8849a450a9f33405be4a30a | 2594650405c1424bec1ab14c1ce994906d6cc961 | /AByteOfPython/C14_InputOutput1b.py | 9ce11e5999a8462b2ab6eb9fb64979d493ae9a6e | [] | no_license | aa2276016/Learning_Python | 10dd46eeb77d5ec05b4e607c523e9e5597a2e7ee | f0e3b4876ea078a45493eb268992cec62ccd29d1 | refs/heads/master | 2021-10-19T08:34:15.694353 | 2018-03-17T02:38:49 | 2018-03-17T02:38:49 | 125,590,648 | 0 | 0 | null | 2018-03-17T02:41:26 | 2018-03-17T02:41:26 | null | UTF-8 | Python | false | false | 444 | py | # Input Output 1b:
def reverse(text):
return text[::-1]
def is_palindrome(text):
return text == reverse(text)
while True: # 先设置循环, 把input包括在循环中,这样每次循环才让人输入内容
something = input("Enter text: ")
if something == 'quit':
break
if is_palindrome(something):
print("Yes, ... | [
"jxie0755@users.noreply.github.com"
] | jxie0755@users.noreply.github.com |
699c1ceda3c1dd63c07aae302a294b79564c477f | e39cd8cdcbfe60eafb45fb96f6f5ada62940c6f2 | /setup.py | fc63bf42cbb532d0af0752d0f7a3a6da2041a9db | [
"MIT"
] | permissive | DarkmatterVale/hurricane | 5d4505ed6a994ed669e9795d047602ca773ce20c | 94e9e56fcc6d73f5f76ad1fe9e3e4f248549fe7b | refs/heads/master | 2021-05-01T00:52:22.374738 | 2017-01-13T00:15:34 | 2017-01-13T00:15:34 | 64,959,057 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | # This is the setup file for pip
from setuptools import setup, find_packages
import os, sys
from os import path
setup(
name = 'hurricane',
version = '0.0.1',
description = 'A master-slave computer communication protocol',
url = 'https://github.com/DarkmatterVale/hurricane',
author = 'Vale Tolpe... | [
"valetolpegin@gmail.com"
] | valetolpegin@gmail.com |
b6e84a0000cbadb35e33a397764e8a72f3b8d1a7 | a0a41401bafc44f233d5ba82ed8905ba9d213699 | /huntserver/migrations/0023_auto_20150717_1025.py | 0539387ebf04335213a8d2b2b2e750a333718e53 | [] | no_license | christophsjones/puzzlehunt_server | 266c0e6a02e09d1f7290dab6b006c0ce70b2586b | 53390bdb8d97955c280f7a2e660150d5c56b49f2 | refs/heads/master | 2021-01-23T01:35:12.499539 | 2015-10-21T19:59:43 | 2015-10-21T19:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('huntserver', '0022_auto_20150717_1024'),
]
operations = [
migrations.AlterField(
model_name='unlockable',
... | [
"flybye22@gmail.com"
] | flybye22@gmail.com |
526117433c8898f00ad8d1ef33ed32fc9051ce2d | b0c375bda0f25ab2408be94fd0714819af3bc1ab | /model/layers/blocks_module.py | 5927e6a6f428baca4259783ad12f9d0372bcd408 | [] | no_license | nenoc/YOLOv4-pytorch | 8f0ee6415b610d8d566396500abe133b1079ba70 | 781b07d5fbbd4faefcfd1d535f21982c436f27cd | refs/heads/master | 2022-11-20T20:03:45.814946 | 2020-07-20T12:05:34 | 2020-07-20T12:05:34 | 282,566,409 | 2 | 0 | null | 2020-07-26T03:15:34 | 2020-07-26T03:15:34 | null | UTF-8 | Python | false | false | 713 | py | import torch.nn as nn
from ..layers.conv_module import Convolutional
class Residual_block(nn.Module):
def __init__(self, filters_in, filters_out, filters_medium):
super(Residual_block, self).__init__()
self.__conv1 = Convolutional(filters_in=filters_in, filters_out=filters_medium, kernel_size=1, ... | [
"your email"
] | your email |
348ced0727e42f540f5292dbfa643f5e7e7f46b7 | a438748ac89d53b19e7f4130529906896f059b25 | /gen_for_collect.py | 9fc0c0c61660397c13ff38e9779b4a1fbdb2bf23 | [] | no_license | Alexfordrop/Basics | 90ead9294727a823eb044e5f2f69d8f29133d150 | eda400424b2c72bd5e01a6c7cb14ad7ae29477d4 | refs/heads/master | 2023-06-08T16:42:26.704163 | 2021-06-27T20:46:27 | 2021-06-27T20:46:27 | 329,421,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # Генераторный список
a = [i for i in range(5)]
# Генераторное выражение
x = (i for i in range(5))
print(a)
print(x)
for i in x:
print(i, end=' ')
| [
"mishechkin.aleksei@mail.ru"
] | mishechkin.aleksei@mail.ru |
d89c72f08a21bd2f42f071c1c791e17542d88c4f | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_google_maps_directions/tests/test_fn_google_maps_directions.py | ea98b341ce5894834d0f28a893991ead0320e9ba | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 3,118 | py | # -*- coding: utf-8 -*-
"""Tests using pytest_resilient_circuits"""
from __future__ import print_function
import pytest
from resilient_circuits.util import get_config_data, get_function_definition
from resilient_circuits import SubmitTestFunction, FunctionResult
PACKAGE_NAME = "fn_google_maps_directions"
FUNCTION_NAM... | [
"shane.curtin@ie.ibm.com"
] | shane.curtin@ie.ibm.com |
7b23637cb362ddb83b9c8ac25dd2b2295942406e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/217/usersdata/274/113591/submittedfiles/av2_p3_m2.py | 11d3b1df8bc4632ec02ca21815a72cd111a8a103 | [] | 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 | 899 | py | # -*- coding: utf-8 -*
n=int(input("Dimensão do Quadrado: "))
while notn>=3:
n=int(input("Dimensão do Quadrado: "))
M=[]
for i in range(0,n,1):
L=[]
for j in range(o,n,1):
L.append(int(input("Elemento da Linha: "))
M.append(L)
somaL=[]
for i in range(0,n,1):
somaL.append(sum(M[i]))
somaC=[... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
dc2c448b2f4ba78a00a1c9045e74ad0ae468900e | 4a5056686e604e5af78d4653c7c51ac3769b6b38 | /server/view.py | e7de73a06c0760f65ebc1e704baa315ae65457bc | [
"MIT"
] | permissive | SangminOut/Short-URL | 673e164cf0e9c471d5e509ccd9ae5fe604ddf2f5 | 6269049442e0c499764eb1061631b6399bdbc919 | refs/heads/master | 2020-04-11T04:01:38.015376 | 2018-12-16T12:22:53 | 2018-12-16T12:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from flask import request, redirect, Response, jsonify, current_app
from model import UrlModel
def save_url():
original_url = request.json['url']
url_key = UrlModel(original_url).save_url()
if current_app.config['SERVER_NAME'] is not None:
base_url = current_app.config['SERVER_NAME'] + '/'
e... | [
"python@istruly.sexy"
] | python@istruly.sexy |
188c4c56d93bad2c21c59daa92790577ed1fbaaa | a3d32e0ff84958d194ced642441f5379c0032465 | /tfmsarest/views/common_schema.py | 2e068f8dc9fbea974ec8cf611c0b9e4f16d9026b | [] | no_license | TensorMSA/tensormsa_old | 406755511d05d4ec179c085337a05f73c0dde80a | ef058737f391de817c74398ef9a5d3a28f973c98 | refs/heads/master | 2021-06-18T11:58:29.349060 | 2017-04-20T10:17:43 | 2017-04-20T10:17:43 | 67,384,681 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from tfmsacore import netconf
import json, unicodedata
from rest_framework.response import Response
from rest_framework.views import APIView
from tfmsacore.utils.json_conv import JsonDataConverter as jc
class CommonSchema(APIView):
"""
"""
def get(self, request, datatype, preprocess, category, subcategor... | [
"tmddno1@naver.com"
] | tmddno1@naver.com |
69bb43586bb37d90d4904525583972a1c1353d74 | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/_0501_1000/0631_design-excel-sum-formula.py | f5ab87115d8d3a0a794edc0aec9f0d2c163b354e | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-07-24 09:36:33
# @Last Modified : 2020-07-24 09:36:33
# @Mail : lostlorder@gmail.com
# @Version : alpha-1.0
"""
# 你的任务是实现 Excel 的求和功能,具体的操作如下:
#
# Excel(int H, char W): 这是一个构造函数,输入表明了 Excel 的高度和宽度。H 是... | [
"rock@get.com.mm"
] | rock@get.com.mm |
28e9cadbf5eb0e4047f49800c21759742600c50c | c76b54198bcfbf0eb3427db86270053b05c34531 | /main.py | 7bc62005369f9fa349970a9e699ccc71fa56957f | [] | no_license | tang1323/ArticleSpider | fd2f97c4b6cb77adf3439e993c641f345e9fe07e | 7eb99c98a24fc5b6c2f2e54c6322c07b15bb7eed | refs/heads/master | 2023-04-04T02:03:29.289456 | 2021-04-15T01:43:18 | 2021-04-15T01:43:18 | 358,093,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py |
from scrapy.cmdline import execute
import sys
import os
# print(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
# execute(["scrapy", "crawl", "cnblogs"])
# execute(["scrapy", "crawl", "zhihu_sel"])
# execute(["scrapy", "crawl", "lagou"])
execute(["scrapy"... | [
"1171242903@qq.com"
] | 1171242903@qq.com |
8f210ef53d44be2eb134aa20494b2b5844f64165 | 045eeaf9af3470b6ca0aca47cbdbeaf227d40e14 | /tests/test_rest_ft_fansid.py | 7f3313129ec66da43c5730cf4f23446409176e57 | [
"Apache-2.0"
] | permissive | ashutoshshanker/ops-restd | aa07ff0dbf0845bc745876e93a7092cc70c062e0 | 0afb98d3fd505bfe5251bae7550dc0ea7525edf5 | refs/heads/master | 2020-12-28T23:23:32.524833 | 2016-08-02T20:43:25 | 2016-08-02T22:40:57 | 65,635,684 | 0 | 1 | null | 2016-08-13T20:30:32 | 2016-08-13T20:30:31 | null | UTF-8 | Python | false | false | 11,595 | py | # (C) Copyright 2015 Hewlett Packard Enterprise Development LP
# 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/LICEN... | [
"review@openswitch.net"
] | review@openswitch.net |
ea2cc4a918ce7233d5fd7fc4ced1465a7724a886 | 5376007035bf5aebb57c4d4f788098c9706ebe44 | /api/serializers/store.py | bf4b7d5c0a1d2081c3fe855a0077f072ecdf34a1 | [] | no_license | oyeolamilekan/monoapp | 6c0f49cc12a167bc0343648ae63f4e9c864bb130 | 939de5a1bb65e9bc48e48662f2ccffef280ffe10 | refs/heads/master | 2022-12-12T04:26:49.515305 | 2019-09-07T11:28:51 | 2019-09-07T11:28:51 | 192,071,474 | 0 | 0 | null | 2022-12-08T03:03:11 | 2019-06-15T11:35:50 | Python | UTF-8 | Python | false | false | 593 | py | """
This serializer handles the serialization of the store object
"""
from rest_framework.serializers import ModelSerializer
from shop.models import Shop
class ShopSerializer(ModelSerializer):
"""[the shop info]
Arguments:
{[ inherits from serializer class rest framework]} -- [description]
"... | [
"johnsonoye34@gmail.com"
] | johnsonoye34@gmail.com |
24b60ba993defbd5d007b35259063ce0e9692859 | f4cf6af590a5b680bbd974d9b201f70dafebbe71 | /One/__init__.py | 541f302c256956fbc75964ed9abbc484fcfbbc63 | [] | no_license | Felixshao/Drawhook-1 | ffed4d2d8e297e3bcd9e6ab94fd0d4e5f032c6ea | b7a6a97d3d5cd6375ace1cf951a3716c84779060 | refs/heads/master | 2023-01-28T11:56:58.995120 | 2020-12-02T04:46:54 | 2020-12-02T04:46:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | # _*_ config: utf-8 _*_
#
| [
"shaoyufei1234@163.com"
] | shaoyufei1234@163.com |
e0a16314f9011bec7baf07a499ee6dc14a3fd84c | d838bed08a00114c92b73982a74d96c15166a49e | /docs/data/learn/Bioinformatics/input/ch7_code/src/Stepik.7.3.ExerciseBreak.ReduceMatrixAndTreeSizeForDegreeGreaterThan3.py | 8c78a252e9bb67b680c446f51bfc4e3cd9a48b02 | [] | no_license | offbynull/offbynull.github.io | 4911f53d77f6c59e7a453ee271b1e04e613862bc | 754a85f43159738b89dd2bde1ad6ba0d75f34b98 | refs/heads/master | 2023-07-04T00:39:50.013571 | 2023-06-17T20:27:05 | 2023-06-17T23:27:00 | 308,482,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | # EXERCISE BREAK
#
# Exercise Break: We have just described how to reduce the size of the tree as well as the dimension of the distance
# matrix D if the parent node (m) has degree 3. Design a similar approach in the case that the degree of m is larger
# than 3.
# Recall that for m having a degree of 3...
#
# i * ... | [
"offbynull@gmail.com"
] | offbynull@gmail.com |
81dc0357d63777f89ea036e852b3efe56feaf9ab | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/205/usersdata/273/87079/submittedfiles/questao2_av1.py | bf918e1ddadf59e5328db54d5ee0e1da3c292262 | [] | 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,037 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
a=int(input('Digite o numero escolhido: '))
b=int(input('Digite o numero escolhido: '))
c=int(input('Digite o numero escolhido: '))
d=int(input('Digite o numero escolhido: '))
e=int(input('Digite o numero escolhido: '))
f=int(input('Digite o numero escolhido: '))
asort=int(... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
22d3fe7a3b1adedf2070a101426b7e1d4a883601 | 6320fef2ea7376c2b35f97f1a5af004e90f09098 | /1-2주차 실습(복습)/venv/Lib/site-packages/pyloco/plxtask.py | c7e5c709a9b0287db15a28f62f3226fa92395ce8 | [] | no_license | Dplo1514/ploaistudy | 7aa08d7f71653748a9e32dcc09ee8f6cec0aaed9 | e35e42b1e5f0c90cc1e2a59993a1ef73d8872d0c | refs/heads/master | 2023-09-03T00:45:55.601651 | 2021-10-24T12:19:38 | 2021-10-24T12:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,310 | py | # -*- coding: utf-8 -*-
"""plx module."""
from __future__ import unicode_literals
import os
import re
import pydoc
from pyloco.task import Task
from pyloco.error import UsageError
from pyloco.util import parse_param_option, pyloco_formatter, system, pyloco_import
from pyloco.base import pyloco_builtins
... | [
"dladlsgur3334@gmail.com"
] | dladlsgur3334@gmail.com |
edd67f99568d16c9b74838ae193917ba2ac2bd67 | b8a803694c283a5acd13ab6760a36710884ab24f | /llvm/tests/test_operands.py | ef68b9eebfa0080d14e29767806e6305f85e337b | [
"NCSA",
"BSD-3-Clause"
] | permissive | llvmpy/llvmpy | 8a4c31e731364ead802231b97e058b8f8c444f96 | 13130fe35f1fb03a7051ad46c36146002391a6fa | refs/heads/master | 2016-09-05T16:48:54.694686 | 2015-04-28T16:21:34 | 2015-04-28T16:21:34 | 3,375,197 | 155 | 13 | null | 2015-05-27T18:36:45 | 2012-02-07T07:09:59 | HTML | UTF-8 | Python | false | false | 2,076 | py | import unittest
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from llvm.core import Module
from .support import TestCase, tests
class TestOperands(TestCase):
# implement a test function
test_module = """
define i32 @prod(i32, i32) {
entry:
%2 = mul i32 %0, %1
... | [
"michael.lam.sk@gmail.com"
] | michael.lam.sk@gmail.com |
ef79cfd8757f6d078443dd0489deeb6ba381380c | ad6ad38511b214d1d6cc183535d0d4ff463eadf9 | /vulscan_Project/pageUtil.py | 83b026b6a28da1424c2632eaf0628ffc050d2d5e | [] | no_license | 0ps/VulScanner | abf8417f00dec8f7485246fc208a157d96207180 | de2519655c214ebfbe56c0278e6230afaae72559 | refs/heads/master | 2023-08-30T18:05:44.620650 | 2021-10-22T07:25:18 | 2021-10-22T07:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | import re
def get_pages(page, last_page):
page_list = []
if last_page < 9:
for i in range(1, last_page + 1):
page_list.append(i)
return page_list
if page < 7:
for i in range(1, 9):
page_list.append(i)
page_list.extend(["...", last_page - 1, last_page... | [
"2998430232@qq.com"
] | 2998430232@qq.com |
661644011cb7fd52e289e875561f343ed8320b55 | 7b74696ff2ab729396cba6c203984fce5cd0ff83 | /analysis/migrations/0020_auto_20200524_0933.py | 80926a6c092f0a2ecf1c00f9e2138a97d0a500d0 | [
"MIT"
] | permissive | webclinic017/investtrack | e9e9a7a8caeecaceebcd79111c32b334c4e1c1d0 | 4aa204b608e99dfec3dd575e72b64a6002def3be | refs/heads/master | 2023-06-18T12:57:32.417414 | 2021-07-10T14:26:53 | 2021-07-10T14:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | # Generated by Django 3.0.2 on 2020-05-24 01:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('analysis', '0019_auto_20200524_0859'),
]
operations = [
migrations.AlterField(
model_name='stockstrategytestlog',
na... | [
"jie.han@outlook.com"
] | jie.han@outlook.com |
3e7d5739d2701988a82fde01995009a2af4221b8 | d152aa407b78640648cdafc005c8c2f9ee722dd6 | /lib/project_data.py | b8ffd2ff7bb359fb198b434c953edde43acf4ce7 | [] | no_license | bsmith89/sc-validate-haplotypes | 7bc4033d853f5529b9159d5157484deb85832252 | 1e9325db95330b5cf3c37f9270382680876afcc1 | refs/heads/main | 2023-09-03T13:22:17.657279 | 2021-11-09T17:20:42 | 2021-11-09T17:20:42 | 401,805,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | def metagenotype_db_to_xarray(df):
"""Convert from project database schema to a StrainFacts metagenotype.
"""
return (
df.rename_axis(columns="allele")
.rename(columns=dict(alternative_tally="alt", reference_tally="ref"))
.rename_axis(index=dict(lib_id="sample", species_position="po... | [
"me@byronjsmith.com"
] | me@byronjsmith.com |
4d8b302264ff7450e02482b29129980a08e00304 | 997551673e3f08d83b966e35bb55c192f35c44c6 | /tests/test_schemas.py | 1dbcc7fbf49e7c01cc2445106c6ad0bd1451aece | [
"MIT"
] | permissive | lockefox/pyRobinhood | 6069f533f8733e8199bd22eaf9fce8da5b345aac | 8cfd9adf384d2da9d61287f483b0038195e2f476 | refs/heads/master | 2021-09-06T22:42:04.548824 | 2018-02-12T20:09:28 | 2018-02-12T20:09:28 | 116,594,721 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,771 | py | """test_schemas.py: validate responses from live Robinhood.com endpoints"""
import pytest
import jsonschema
import requests
import helpers
def test_api_root():
"""validate / has all expected routes"""
endpoint_list = {
'mfa': 'https://api.robinhood.com/mfa/',
'margin_interest_charges': 'https:... | [
"locke.renard@gmail.com"
] | locke.renard@gmail.com |
42b996ecf34bba801d2aeae1cf4adb58ea5b7312 | 9e7b9e91b8425061a5ad36e0dd630a799ec79f6f | /tensorflow_cookbook3.py | 1e58ae2fab2e6b25d2331356b42bf5460979e68e | [] | no_license | OlgaBelitskaya/colab_notebooks | c27fad60f7e4ca35287e2561487b5d9d82efde43 | d568149c8bcfb0025f7b09120ca44f639ac40efe | refs/heads/master | 2023-07-07T23:02:49.289280 | 2021-08-14T08:16:38 | 2021-08-14T08:16:38 | 158,067,383 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,894 | py | # -*- coding: utf-8 -*-
"""tensorflow_cookbook3.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1UXD9nxTS9s2EGkiRst59NREqX9Eiw3Zp
"""
# Commented out IPython magic to ensure Python compatibility.
from IPython.display import display,HTML
def dhtml... | [
"safuolga@gmail.com"
] | safuolga@gmail.com |
ba1050f4f449533e84541451c37cbe5468b1e375 | be84495751737bbf0a8b7d8db2fb737cbd9c297c | /tests2/materials/test_ndir_btdf.py | 68d82a3eb938def30d40fded9d7f0910a8055d81 | [] | no_license | mario007/renmas | 5e38ff66cffb27b3edc59e95b7cf88906ccc03c9 | bfb4e1defc88eb514e58bdff7082d722fc885e64 | refs/heads/master | 2021-01-10T21:29:35.019792 | 2014-08-17T19:11:51 | 2014-08-17T19:11:51 | 1,688,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py |
import unittest
from random import random
from tdasm import Runtime
import renmas2
class TransmissionSampling(unittest.TestCase):
def setUp(self):
pass
def asm_code1(self, ren):
code = """
#DATA
"""
code += ren.structures.structs(("hitpoint",)) + """
uint32 nex... | [
"mvidov@yahoo.com"
] | mvidov@yahoo.com |
f0a94d9d2d473018865e32f6034970de6d891486 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc080/B/3769232.py | ebaf3d3a32aa808a1603111549af9d0b2c17c8ed | [] | 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 | 711 | py | import sys,collections
def solve():
H,W = map(int,input().split())
N = int(input())
L = list(map(int,input().split()))
ans = [["" for _ in range(W)] for _ in range(H)]
h,w = 0,0
for i,v in enumerate(L):
while v != 0:
if h % 2 == 0:
ans[h][w] = str(... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
0550a909ac90ff9e96eb663552ef66bb57941547 | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Questran_LOC_pow_f_oral_susp_SmPC.py | 972f617ceafb8aa344c064ee17a6c67a8eae2cac | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | {'_data': [['Unknown',
[['Investigations',
u' f\xf6rkortad protrombin tid, f\xf6rl\xe4ngd protrombin tid, vikt\xf6kning, viktminskning.'],
['Blood',
u' Bl\xf6dningsben\xe4genhet, hypoprotrombinemi, anemi, lymfadenopati, ekkymos.'],
['Nervous system',
... | [
"urudaro@gmail.com"
] | urudaro@gmail.com |
38d538d07d33b4c8a2d6259cc1bca71f2d0d91b8 | d7f45fac46598da9825a404d7511df7474237e4a | /ex.099.py | d39572b9a7a98a885df5df8b8c4d938d841ec59a | [] | no_license | MarceloBCS/Exercicios_Curso_em_video | b4a8cbc8573e1303065c0cf1baad25c47d5a2fd8 | a90fd67d83cf154f3554f962815fb791d3508d0c | refs/heads/master | 2022-12-29T19:15:50.007022 | 2020-10-13T05:09:28 | 2020-10-13T05:09:28 | 303,592,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | from random import sample
from datetime import date
from time import sleep
cor = {'red':'\033[1;31m', 'limp':'\033[m', 'az':'\033[1;34m'}
def maior(k):
c = len('Analisando os valores passados...')
print('=' * c)
print('Analisando os valores passados...')
if k == 0:
n = []
if k > 0:
... | [
"63213758+MarceloBCS@users.noreply.github.com"
] | 63213758+MarceloBCS@users.noreply.github.com |
201e8ccf63e246f942be772b74b423a6ee42fcc3 | b57b0a14df5c6841f04cccb7b02ad04afbca18f8 | /linkerd/tests/common.py | ab3716c34a505403b0d2f2704985e95f6a23c1eb | [
"AFL-3.0",
"BSD-3-Clause-Modification",
"LGPL-3.0-only",
"Unlicense",
"LGPL-2.1-only",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | zeroc0d3/integrations-core | d9c99803c049668b7f9f9c796d338e343d3d46ee | 634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb | refs/heads/master | 2021-09-28T18:37:00.650406 | 2021-09-13T11:59:45 | 2021-09-13T11:59:45 | 199,758,958 | 0 | 0 | BSD-3-Clause | 2019-07-31T02:01:25 | 2019-07-31T02:01:24 | null | UTF-8 | Python | false | false | 28,974 | py | from datadog_checks.base.stubs import aggregator
from datadog_checks.dev import get_here
from datadog_checks.linkerd.metrics import construct_metrics_config
HERE = get_here()
LINKERD_FIXTURE_METRICS = {
'jvm:start_time': 'jvm.start_time',
'jvm:application_time_millis': 'jvm.application_time_millis',
'jvm:... | [
"noreply@github.com"
] | zeroc0d3.noreply@github.com |
8f6a56a0cb2adb1b054194442eca236cf9d057df | 48e4aedd813ab55fefd137ef22b2af3242012c19 | /lib/readConfig.py | 2b86849f4c882e1d7726174e98f56ffaede9d2e2 | [
"MIT"
] | permissive | philip-shen/MongoDB_TSEOTC_Crawler | 0b307917846606833ee804ea2f7061c4f0cb55df | 87d8dded2557eaca541499ccce6c8942476d3741 | refs/heads/master | 2020-04-17T16:47:53.638885 | 2019-01-29T13:30:26 | 2019-01-29T13:30:26 | 166,756,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import os
import codecs
import configparser
class ReadConfig:
def __init__(self,configPath):
self.configPath=configPath
#fd = open(self.configPath)
fd = open(self.configPath, encoding='utf-8')
data = fd.read()
# remove BOM
if data[:3] == codecs.BOM_UTF8:
... | [
"amyfanpti@gmail.com"
] | amyfanpti@gmail.com |
1de34dbf8faa35f48aada6bff23b5847c55c0a3b | 72b18602ac21c9a1f1474a52c99b45ce9b825288 | /apptools/apptools-android-tests/apptools/versionCode.py | 0f202eff480f6e949bb09c7a5db82b022f5fabfd | [
"BSD-3-Clause"
] | permissive | anawhj/crosswalk-test-suite | 3f3b4cf2de2b3dfdfd15a7a2bbf45d0827f062f7 | 9fa4c96578f6bc95ae884ee943845c8d9a62fc17 | refs/heads/master | 2021-01-16T17:44:21.266562 | 2015-08-04T09:38:28 | 2015-08-04T09:38:28 | 40,181,956 | 0 | 0 | null | 2015-08-04T11:57:27 | 2015-08-04T11:57:27 | null | UTF-8 | Python | false | false | 7,418 | py | #!/usr/bin/env python
#
# Copyright (c) 2015 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... | [
"yunx.liu@intel.com"
] | yunx.liu@intel.com |
4fef22836d27d35cc4f8d07acc6629da007ba6d3 | e29f8c29a993156b7de7b0451d63ad8cca51c9a6 | /zajecia10/zadanie_domowe/zadanie_domowe6.py | a968a7b4bbf1f9418fa17abbe7a86929bd3704a6 | [] | no_license | remekwilk/python_basic | d898ad26aba809eb14ebed9d94bd93db69154ffa | af145a9711dabca232dc5f5be8fe4c407a5fda54 | refs/heads/master | 2020-05-03T14:42:19.523070 | 2020-04-11T20:42:03 | 2020-04-11T20:42:03 | 176,701,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from loteria_funkcje import chybil_trafil, dodaj_zaklad, czy_jest_zwyciezca
wszystkie_zaklady = []
moj_zaklad = [1, 2, 3, 4]
dodaj_zaklad(moj_zaklad, wszystkie_zaklady)
for i in range(100):
losowy_zaklad = chybil_trafil()
dodaj_zaklad(losowy_zaklad, wszystkie_zaklady)
print(wszystkie_zaklady)
zwycieskie_li... | [
"remekwilk@gmail.com"
] | remekwilk@gmail.com |
d7a32db31d3c7a9da78a58a494c7e6c264a6e10c | 22671693f8bf7e11b6ec2571f187eaba94810a35 | /day-01/day-01.py | 66dcca8960eec6cfb05bb09e60f16a0315304f4f | [] | no_license | timbook/advent-of-code-2018 | 9d4679d345ba9e108286b85134904ba8613e3327 | f9b62c3528cae66b4e9e60735d83dda43ea9cc05 | refs/heads/master | 2022-09-29T09:05:39.191564 | 2022-08-25T02:19:16 | 2022-08-25T02:19:16 | 159,948,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import sys
import os
with open("../data/01-input.txt", 'r') as f:
lines = f.readlines()
items = [int(n.strip()) for n in lines]
print("::: PART A")
print(f"FREQUENCY: {sum(items)}\n")
record = set()
freq = 0
done = False
while True:
for i in items:
freq += i
if freq in record:
pr... | [
"timothykbook@gmail.com"
] | timothykbook@gmail.com |
747133d86e0a598e64be92d208d535120b549cf3 | 6ebf510d0b4aa4263e47257ba4746550abefa368 | /warehouse/packaging/models.py | d68bcb74f79ad51980ac9bc53870b5bfcb57ae15 | [
"Apache-2.0"
] | permissive | umeshksingla/warehouse | abc8cf3a330107a0f50f7cd6a1e5ba13270855d4 | 17ca6b4e641481c3672ff9f991f90cdacb5b9713 | refs/heads/master | 2021-01-22T16:56:38.814173 | 2016-03-04T01:51:19 | 2016-03-04T01:51:19 | 48,956,080 | 1 | 0 | null | 2016-03-04T01:51:20 | 2016-01-03T18:23:12 | Python | UTF-8 | Python | false | false | 13,922 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | [
"donald@stufft.io"
] | donald@stufft.io |
33136c62dddf0c19cc065664f31a3052d8fec753 | 8a485c4ab5b12dd5cd7db5de337fc1aedafe9247 | /belajarStaticFileCss/belajarStaticFileCss/urls.py | c022ea22454ff90ef3df75e116fc23c9e91728c7 | [] | no_license | frestea09/django | 91544adbc1d4a63bce54912e027ae7f30e325200 | 0bac6d82a2b694567abca863b4610e540140c50d | refs/heads/master | 2020-04-29T18:10:47.401557 | 2019-04-19T06:48:48 | 2019-04-19T06:48:48 | 176,316,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | """belajarStaticFileCss URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home'... | [
"ilmanfrasetya@gmail.com"
] | ilmanfrasetya@gmail.com |
0cfdb3d99d88dfe1c04b0ad5e0a4aa09ee652000 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/common/Lib/distutils/unixccompiler.py | 24a787da6e3d7bee12deb2c92f6079e414adaabd | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 8,204 | py | # 2017.02.03 21:58:03 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/distutils/unixccompiler.py
"""distutils.unixccompiler
Contains the UnixCCompiler class, a subclass of CCompiler that handles
the "typical" Unix-style command-line C compiler:
* macros defined with -Dname[=value]
* macros unde... | [
"info@webium.sk"
] | info@webium.sk |
fbfc5a0933a68da21f882740ee160c58c51967f9 | 2a63d9e571323351868f72caee8a215d1a5a3617 | /cracking-the-coding-interview/ctci-bubble-sort.py | f95afbbc30efbe9aad7bbcb125a59d1ed0e049af | [] | no_license | JavierCabezas/hackerrank | eb66b16904d452e69f84fc6c67beb8fa60544e88 | 2c32093e7545d621c9158fd0422e91d5955b16d9 | refs/heads/master | 2021-01-14T07:46:35.179276 | 2020-03-02T00:07:08 | 2020-03-02T00:07:08 | 81,884,845 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | n = int(input().strip())
a = list(map(int, input().strip().split(' ')))
number_swaps = 0
for i in range(n):
for j in range(n - 1):
if a[j+1] < a[j]:
a[j + 1], a[j] = a[j], a[j + 1]
number_swaps += 1
print("Array is sorted in {0} swaps.".format(number_swaps))
print("First Element: {... | [
"jcleyton@gmail.com"
] | jcleyton@gmail.com |
cec26d6da00096d0b6d4ca3b722c3252ef390eb5 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/157_v5/test_accents.py | 00e47c47c698345f81005a2762a0d7f4f640cf19 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,103 | py | # _______ p__
#
# ____ ? _______ ?
#
# # texts taken from:
# # https://losviajesdedomi.com/las-15-ciudades-mas-bonitas-de-espana/
# # and:
# # https://www2.rocketlanguages.com/french/lessons/french-accents/
# texts
# ("Denominada en Euskera como Donostia, está "
# "situada en el Golfo de Vizcaya en la provinci... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
a9dbe3d85b795366c42a2dca4450d111ad924806 | f26d67e3e9f8b90e5d6243279a1c2ce87fa41d46 | /src/prodstats/db/__init__.py | ccce13712ed04ac410ff119837cc10ccc21f8acd | [
"MIT"
] | permissive | OCB-DS/prodstats | cf554e3abee651463e9f81606d4b633f464658a7 | 4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824 | refs/heads/master | 2022-11-25T15:30:06.988683 | 2020-08-02T16:08:05 | 2020-08-02T16:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # flake8: noqa
import logging
import gino
from config import DATABASE_CONFIG, DATABASE_POOL_SIZE_MAX, DATABASE_POOL_SIZE_MIN
logger = logging.getLogger(__name__)
db: gino.Gino = gino.Gino(
naming_convention={ # passed to sqlalchemy.MetaData
"ix": "ix_%(column_0_label)s",
"uq": "uq_%(table_name)... | [
"brocklfriedrich@gmail.com"
] | brocklfriedrich@gmail.com |
be5f84bdd762a47bd2e8d8f8e6560fa22e3d7252 | 0b20f4ce14b9ff77c84cedbecbaa29831335920d | /tests/common/goget/test_goget_base.py | 6fceebcf63ce6748fcc30c3fc5158fd279e5fee7 | [
"Apache-2.0"
] | permissive | sergesec488/checkov | 219c1b3864ab4f70b39a4cd79b041e98f3145364 | 56008e1c531b3626f14716067731be6e673040bc | refs/heads/master | 2023-04-10T12:26:49.749864 | 2021-02-26T18:36:52 | 2021-02-26T18:40:58 | 342,883,133 | 0 | 1 | Apache-2.0 | 2023-03-30T13:31:25 | 2021-02-27T15:01:08 | null | UTF-8 | Python | false | false | 483 | py | import os
import unittest
from tests.common.goget.local_getter import LocalGetter
class TestBaseGetter(unittest.TestCase):
def test_directory_creation(self):
current_dir = os.getcwd()
getter = LocalGetter(current_dir)
result_dir = getter.get()
print(current_dir)
print(res... | [
"noreply@github.com"
] | sergesec488.noreply@github.com |
0b8c50f09cfd7e557aa018d9e64bb975e34ee8b2 | acbe6bd6cefaf8b12070d7258dab30e4f7fcebed | /tests/introspect/testInitNonFunction.py | 5ee1859253d354f127fef821f61f730071e1c884 | [
"MIT"
] | permissive | RogueScholar/debreate | 02c98c5a78d33041798410f0e3b99e80fda65d00 | dfe9bcac7333a53082b3a2ae169806cf604d59f6 | refs/heads/master | 2023-06-07T11:49:03.821969 | 2023-04-28T02:14:25 | 2023-04-28T02:14:25 | 253,707,766 | 0 | 0 | MIT | 2023-05-28T15:24:17 | 2020-04-07T06:34:47 | Python | UTF-8 | Python | false | false | 432 | py |
# ****************************************************
# * Copyright (C) 2023 - Jordan Irwin (AntumDeluge) *
# ****************************************************
# * This software is licensed under the MIT license. *
# * See: docs/LICENSE.txt for details. *
# ******************************************... | [
"antumdeluge@gmail.com"
] | antumdeluge@gmail.com |
4f57b1562622adb44ba012675f1ebb0744e9adb2 | b127b5947835293d57a355aa94688bdbd0702a27 | /cs-extract-key.py | 5e6860ba75e9bb4a1f07b37a3b7b50150b4dd7b8 | [] | no_license | DidierStevens/Beta | 87e17ee145e88284956a70bd6c52b8ca5933c43b | 5f10c6d2e906852f6e522e5a93ac92c86bc8bc7b | refs/heads/master | 2023-04-14T16:59:32.661442 | 2023-04-02T11:20:54 | 2023-04-02T11:20:54 | 69,382,206 | 231 | 77 | null | 2021-04-18T17:51:33 | 2016-09-27T17:34:53 | Python | UTF-8 | Python | false | false | 72,321 | py | #!/usr/bin/env python
from __future__ import print_function
__description__ = 'Extract cryptographic keys from Cobalt Strike beacon process dump'
__author__ = 'Didier Stevens'
__version__ = '0.0.2'
__date__ = '2021/11/02'
"""
Source code put in the public domain by Didier Stevens, no Copyright
https://DidierStevens.... | [
"didier.stevens@gmail.com"
] | didier.stevens@gmail.com |
e8be4f8a2eb4e59320a4740f22abbba70ac66c02 | 75c4f5e6f840a14fed3e5d3e57012abf6d0e77db | /Pacote Dawload/Projeto progamas Python/ex1007 Diferença.py | 5234571cda69706fd7630b149bc7a6be7226d9e4 | [
"MIT"
] | permissive | wagnersistemalima/Exercicios-Python-URI-Online-Judge-Problems---Contests | fc378abca0264ceb7fa5feebc57df17d1372953a | d839a344b899c08f4199ff1ae22dd6ee931df6a2 | refs/heads/master | 2022-07-18T03:52:44.941510 | 2020-05-20T01:01:38 | 2020-05-20T01:01:38 | 264,508,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | #Ex1007 Diferença 09/04/2020
valor_a = int(input())
valor_b = int(input())
valor_c = int(input())
valor_d = int(input())
diferenca = valor_a * valor_b - valor_c * valor_d
print('DIFERENCA = {}'.format(diferenca)) | [
"wagner.sistemalima@gmail.com"
] | wagner.sistemalima@gmail.com |
69848d8d6b615309e741c0e5995c99da100e36b3 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/kubernetes/checks/resource/k8s/KubeControllerManagerServiceAccountCredentials.py | 2000075d5c1086b60c6802f3d5acd29a8ffa723f | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,103 | py | from typing import Any, Dict
from checkov.common.models.enums import CheckResult
from checkov.kubernetes.checks.resource.base_container_check import BaseK8sContainerCheck
class KubeControllerManagerServiceAccountCredentials(BaseK8sContainerCheck):
def __init__(self) -> None:
id = "CKV_K8S_108"
na... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
b7495338c27e7909104e693f683854f1eacbb5ce | 7cb3e5e16fd93e6f8a1c07c211cee16dc248ef5d | /venv/lib/python3.6/site-packages/django/core/mail/backends/filebased.py | 1037f4b3d03f833ad4f62d0f4ab687ba30d55d27 | [] | no_license | JustynaJBroniszewska/Blog | d74a8cb19fa037b834f5218522ff1397eb60d370 | cfd8efbcce3e23c7ebeea82b2e732de63c663ac8 | refs/heads/master | 2022-11-03T22:01:07.165652 | 2020-06-05T14:25:01 | 2020-06-05T14:25:01 | 266,791,768 | 0 | 0 | null | 2020-06-05T14:25:02 | 2020-05-25T13:52:19 | Python | UTF-8 | Python | false | false | 2,802 | py | """Email backend that writes messages to a file."""
import datetime
import os
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.mail.backends.console import EmailBackend as ConsoleEmailBackend
class EmailBackend(ConsoleEmailBackend):
def __init__(self, *ar... | [
"jj.broniszewska@gmail.com"
] | jj.broniszewska@gmail.com |
10e27cc0f1cdf158c62d57f1fcd0b60c721571eb | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/aadiam/v20200701preview/__init__.py | efff6040c30972e572a699b04d5d0c8ba770037e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-azure-native | b390c88beef8381f9a71ab2bed5571e0dd848e65 | 4c499abe17ec6696ce28477dde1157372896364e | refs/heads/master | 2023-08-30T08:19:41.564780 | 2023-08-28T19:29:04 | 2023-08-28T19:29:04 | 172,386,632 | 107 | 29 | Apache-2.0 | 2023-09-14T13:17:00 | 2019-02-24T20:30:21 | Python | UTF-8 | Python | false | false | 324 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from .azure_ad_metric import *
from .get_azure_ad_metric import *
from . import outp... | [
"github@mikhail.io"
] | github@mikhail.io |
74d55dec6154aa9dbeaa63142a728a59b4562950 | 64b7ce2f4d2d24d24f7e169a58fe69257078984c | /buffpy/models/__init__.py | 21ba4b6ff01041e8a5637d37b02f5e88bf9b8199 | [
"MIT"
] | permissive | holdenk/buffer-python | 055d444c385ea6e6ee285bb348b0c19ebda304c1 | 001a3bffda8736f32a8ffae3d26af9b79b2a3680 | refs/heads/master | 2020-03-29T20:50:58.408856 | 2018-09-26T19:25:51 | 2018-09-26T19:25:51 | 150,334,500 | 1 | 0 | MIT | 2018-09-25T22:02:00 | 2018-09-25T22:01:59 | null | UTF-8 | Python | false | false | 75 | py | from .link import Link
from .profile import Profile
from .user import User
| [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
c63c1933946045abfeae7d4d5f4503aeccadd01d | 304afb86737a108609becf890696ccf54a437756 | /bolg/flow/apps.py | 515475afbaa9aed4134507f96d7bfa9db324ea60 | [] | no_license | linwenjunid/myprojects | ea3d6ffd40b0fb1d41f92064ee54f7de938ade23 | e250a4c500bf1986c0e6e2f90c7f864ccc5bfaa0 | refs/heads/master | 2020-04-17T06:46:35.236618 | 2019-04-23T08:22:17 | 2019-04-23T08:22:17 | 166,339,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.apps import AppConfig
class FlowConfig(AppConfig):
name = 'flow'
verbose_name = '流程设计'
| [
"linwenjunid@163.com"
] | linwenjunid@163.com |
3925dc3b8bf5f9bfef206788ab3039aeb80b6a9c | 6bf4e54f8ae95582b73bb969ba44069c64e87651 | /kdhi/main_site/migrations/0016_rok_individual_name_true.py | 87b886ada5621d6df781553e0e2727c809ce4525 | [] | no_license | speedycowenator/kdhi_migration | 4bc983c4656a2a87cb056461bfb4219e38da1a85 | 422b2e3f142a30c81f428fb8eaa813e4a71d56fc | refs/heads/master | 2022-11-14T13:27:51.520697 | 2020-07-02T19:31:12 | 2020-07-02T19:31:12 | 246,138,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # Generated by Django 2.2.5 on 2020-03-16 03:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_site', '0015_auto_20200315_2328'),
]
operations = [
migrations.AddField(
model_name='rok_individual',
name='nam... | [
"54556114+speedycowenator@users.noreply.github.com"
] | 54556114+speedycowenator@users.noreply.github.com |
6fff7a33ec4993a71006924c414459b7b912ac5e | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/goodweather/testcase/firstcases/testcase3_029.py | 1615709d896778e9e889f0338b549707f4674cfa | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
aa91781b96d7642e15834414e4aa606fa0aac250 | a372a816373d63ad626a9947077e137eac2e6daf | /test/leetcode/test_SnapshotArray.py | f0c14e8d86207ff54939ccda9f60c2ea37835f38 | [] | no_license | DmitryPukhov/pyquiz | 07d33854a0e04cf750b925d2c399dac8a1b35363 | 8ae84f276cd07ffdb9b742569a5e32809ecc6b29 | refs/heads/master | 2021-06-13T14:28:51.255385 | 2021-06-13T08:19:36 | 2021-06-13T08:19:36 | 199,842,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,469 | py | from unittest import TestCase
from pyquiz.leetcode.SnapshotArray import SnapshotArray
class TestSnapshotArray(TestCase):
def test_get_closest_snap_id__123_1(self):
sa = SnapshotArray(1)
self.assertEqual(1, sa.get_closest_snap_id([1, 2, 3], 1))
def test_get_closest_snap_id__123_2(self):
... | [
"dmitry.pukhov@gmail.com"
] | dmitry.pukhov@gmail.com |
b0bc199d141c65c18eb061d68f55044ec9df1e0d | a606893da1e354c7c617d0c9247b23118be2813a | /二叉树/1530.py | c667d4d4f62c56d93cb9d7f26420def687e14e1a | [] | no_license | lindo-zy/leetcode | 4ce6cb9ded7eeea0a6953b6d8152b5a9657965da | f4277c11e620ddd748c2a2f3d9f5f05ee58e5716 | refs/heads/master | 2023-07-22T06:19:00.589026 | 2023-07-16T12:35:14 | 2023-07-16T12:35:14 | 229,958,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def countPairs(self, root: TreeNode) -> int:
res = []
def... | [
"492201845@qq.com"
] | 492201845@qq.com |
38829a9e4b5166f3f94813441cc6e86222184a9a | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/densitymapbox/_lon.py | 01f0a45fe1ed12a0960dfc365a231700a0e093d3 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 393 | py | import _plotly_utils.basevalidators
class LonValidator(_plotly_utils.basevalidators.DataArrayValidator):
def __init__(self, plotly_name="lon", parent_name="densitymapbox", **kwargs):
super(LonValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
e... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
ca949b6bf095d25adb67f5f050bacca373a28d8f | a479a5773fd5607f96c3b84fed57733fe39c3dbb | /napalm_yang/models/openconfig/network_instances/network_instance/mpls/signaling_protocols/rsvp_te/sessions/session/record_route_objects/__init__.py | 14f5888b37abb8ac8011dc5f3e0f91acabbaf5dd | [
"Apache-2.0"
] | permissive | napalm-automation/napalm-yang | 839c711e9294745534f5fbbe115e0100b645dbca | 9148e015b086ebe311c07deb92e168ea36fd7771 | refs/heads/develop | 2021-01-11T07:17:20.226734 | 2019-05-15T08:43:03 | 2019-05-15T08:43:03 | 69,226,025 | 65 | 64 | Apache-2.0 | 2019-05-15T08:43:24 | 2016-09-26T07:48:42 | Python | UTF-8 | Python | false | false | 15,544 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
a0bbb14829985858e622f39ae0198a7bd9cbebb8 | a350e6471598e8518f639fcff50511c35a94bceb | /app_common/libs/mysql_orm_op.py | c4cb1031f3ef7e5a00bdd91ea79518f78b95c2e9 | [
"MIT"
] | permissive | WooodHead/bearing_project | 2e26602c326f703869e13bf84cecba95edff59fa | ca64b04dad7010620414e37b2c7923fd904a0f11 | refs/heads/master | 2022-04-20T16:03:35.179584 | 2020-04-15T18:23:24 | 2020-04-15T18:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,583 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: mysql_orm_op.py
@time: 2018-03-15 21:43
"""
from sqlalchemy.inspection import inspect
from sqlalchemy import distinct
class DbInstance(object):
def __init__(self, db_instance):
self.db_instance = db_instance
# t... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
654f89d213946c60e1ac0472df7ebdbd69014fe6 | f337c975d2446cf4c2ac4fb23a3f2c540a41d23d | /testing/date/test_datetimezone_klass.py | 3a3c84938a57e2077131e8f1edda2e89e62f3d8d | [
"MIT"
] | permissive | shendel/hippyvm | 9fca2bb479da8273a3036350f3f4e06c2d44afc9 | 26cc6675612e4ddc4d1b425d2731d34c97355c45 | refs/heads/master | 2021-01-15T15:31:04.689510 | 2014-04-14T08:54:33 | 2014-04-14T08:54:33 | 18,753,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,295 | py | import pytest
from testing.test_interpreter import BaseTestInterpreter
class TestDateTimeZone(BaseTestInterpreter):
def test_constructor(self):
output = self.run('''
$tz = new DateTimeZone('Pacific/Nauru');
echo get_class($tz);
''')
assert self.space.str_w(output... | [
"fijall@gmail.com"
] | fijall@gmail.com |
fbe1230ddb3094aab923835a4478b8aec663ec4a | 97eb35e37480f2b6cfb7c8055d467cec1e1c018e | /plugin.video.fen/resources/lib/modules/kodi_utils.py | 1979983a44cb25dd9255effa8ed61ffeca33048a | [] | no_license | CYBERxNUKE/xbmc-addon | 46163c286197e21edfdeb3e590ca4213eade0994 | eb4d38f11da7ea54d194359c7dcaeddfb3a40e52 | refs/heads/master | 2023-01-10T20:24:08.629399 | 2023-01-07T21:28:06 | 2023-01-07T21:28:06 | 55,860,463 | 7 | 2 | null | 2022-12-08T10:39:26 | 2016-04-09T18:27:34 | Python | UTF-8 | Python | false | false | 24,574 | py | # -*- coding: utf-8 -*-
import xbmc, xbmcgui, xbmcplugin, xbmcvfs
from xbmcaddon import Addon
import sys
import json
import requests
import _strptime
import sqlite3 as database
from random import choice, sample
from threading import Thread, activeCount
from urllib.parse import unquote, unquote_plus, urlencode, quote, p... | [
"cyberxnuke@computertechs.org"
] | cyberxnuke@computertechs.org |
194a7792131d764b813a168334daf94c60f44ea9 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /055_modules/001_modules/examples/Python-from-Zero-to-Hero/07-Модули и пакеты/02-Modules and Packages/MainPackage/SubPackage/subscript.py | 8ffbacc63f9e112bc2a9d4c661425da1249ffb08 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 93 | py | def hello_subscript():
print('Hello subscript')
def hello_indeed():
print('Indeed Hello') | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
a68582856ced763fc141c32c0220df5f01620038 | b627da650f75bdcf7e0dc0ef5c4419cf53a1d690 | /src/zqh_devices/zqh_bootrom/zqh_bootrom_parameters.py | 6517029efbcb015d18f624aad5b278aefbb369d4 | [] | no_license | Jusan-zyh/zqh_riscv | 4aa8a4c51e19fb786ba0c2a120722f1382994a52 | bccde2f81b42ac258b92c21bb450ec6ff848387a | refs/heads/main | 2023-08-06T12:56:52.420302 | 2021-09-21T01:25:41 | 2021-09-21T01:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import sys
import os
from phgl_imp import *
from zqh_tilelink.zqh_tilelink_node_module_parameters import zqh_tilelink_node_module_parameter
from zqh_tilelink.zqh_tilelink_parameters import zqh_tl_bundle_all_channel_parameter
class zqh_bootrom_parameter(zqh_tilelink_node_module_parameter):
def set_par(self):
... | [
"zhouqinghua888@163.com"
] | zhouqinghua888@163.com |
2652aa5bc343df3fbf33ffc1f047e00a6c02bb47 | 55d100eb611c32015d78aee9f85fae62cb988603 | /docs/conf.py | ad9ac97b05ba93e346d14652256dfa907c631ddc | [
"BSD-3-Clause"
] | permissive | crazymerlyn/boltons | d2e37935739e55da88607eae24333b9782df46e7 | 2c300e71c4a493d72ba2444825af3ce5ea301738 | refs/heads/master | 2020-03-31T17:47:23.913244 | 2019-01-29T18:10:31 | 2019-01-29T18:10:31 | 152,434,305 | 0 | 0 | NOASSERTION | 2018-10-10T14:09:51 | 2018-10-10T14:09:51 | null | UTF-8 | Python | false | false | 9,797 | py | # -*- coding: utf-8 -*-
#
# boltons documentation build configuration file, created by
# sphinx-quickstart on Sat Mar 21 00:34:18 2015.
#
# 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
# autogenerated file.
#
# A... | [
"mahmoud@hatnote.com"
] | mahmoud@hatnote.com |
a1cef2729bb056ca6f889a0eb5e4cf66ed69ab4d | 39e91ca0b536166b0a1e8ffb21b75440aa00466e | /dbplot/__init__.py | f2ea98df08eb65965acf6140b7fac972806aaf78 | [
"Apache-2.0"
] | permissive | danielfrg/dbplot | bd26f5560945c08324e5346519a51581e31aa830 | fa0902c61f79e05dac9b71934b9a233658cabeba | refs/heads/master | 2020-04-17T20:12:21.897004 | 2019-02-04T21:33:30 | 2019-02-04T21:33:30 | 166,895,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | """
DBPLOT
"""
from ._version import get_versions
__version__ = get_versions()["version"]
del get_versions
from dbplot.mpl import *
| [
"df.rodriguez143@gmail.com"
] | df.rodriguez143@gmail.com |
87a7111cc408f1244c5c1e4ea5a047a52f48ac18 | 31b3ac7cc2f0cf43a4979e53d43002a9c5fb2038 | /detect pattern of length M repeated in array1.py | 1d723775c7a449082c18cd25734c9ebfaad3ab87 | [] | no_license | shreyansh-tyagi/leetcode-problem | ed31ada9608a1526efce6178b4fe3ee18da98902 | f8679a7b639f874a52cf9081b84e7c7abff1d100 | refs/heads/master | 2023-08-26T13:50:27.769753 | 2021-10-29T17:39:41 | 2021-10-29T17:39:41 | 378,711,844 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | '''
Given an array of positive integers arr, find a pattern of length m that is repeated k or more times.
A pattern is a subarray (consecutive sub-sequence) that consists of one or more values, repeated multiple times consecutively without overlapping. A pattern is defined by its length and the number of repetitions.... | [
"sunnytyagi886@gmail.com"
] | sunnytyagi886@gmail.com |
8bc0f6acc9da8bb2a8f1bffad8a631d9ae6ad984 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/django/contrib/localflavor/br/forms.py | 2a4375f5c6ff2f4124475b855e115f154d6a028f | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/django/contrib/localflavor/br/forms.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
e78dbe71cec3d1aa3f760ae589ea001a8b971dac | a1080c28573e1a59ec418ad3b0b0bf18e035dc41 | /Common Algos/Dynamic Programming/knapsack.py | d151e39b6b328cbf9cf0f327eb06c777b8b86c0f | [] | no_license | AumkarG/Algorithms-and-Data-Structures | 8c6fc21218897d2361fed1512dc6bb13eabd8842 | 03603ad579564ef213c58edd57cb8753cf8f86ba | refs/heads/master | 2023-03-04T09:48:25.167519 | 2021-02-14T17:16:18 | 2021-02-14T17:16:18 | 330,424,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | n=int(input())
m=int(input())
w=[int(i) for i in input().split()]
p=[int(i) for i in input().split()]
table=[]
for i in range(n+1):
table.append([0]*(m+1))
for k in range(w[0],m+1):
table[1][k]=p[0]
for i in range(1,n):
weight=w[i]
profit=p[i]
for j in range(1,m+1):
if j<weight:
... | [
"aumkaar,g@gmail.com"
] | aumkaar,g@gmail.com |
507c104bb82cec4979e1d42788699aa47f9a1f71 | 014d996ab984699bf9fccc9f92b6925fca65fea9 | /lista/src/ex11.py | 8e49def459b8c2aaecc146889fb7e7891ed37f0e | [] | no_license | fernandooliveirapimenta/python | e04fb7dbb002761da64cdff3eac987e91e2cb43f | f174b0f35cd3918e5c17a96deab59e4ae7e191ab | refs/heads/master | 2022-10-10T09:02:39.382974 | 2020-10-27T18:00:48 | 2020-10-27T18:00:48 | 208,432,260 | 0 | 0 | null | 2022-09-20T22:15:58 | 2019-09-14T11:43:18 | Python | UTF-8 | Python | false | false | 283 | py | larg = float(input('Largura da parede: '))
alt = float(input('Altura da parede: '))
area = larg * alt
print('Sua parede tem a dimensao de {}x{} e sua area é de {}m2'.format(larg, alt, area))
print('Para pintar essa parede, você vai precisar de {} litros de tinta'.format(area / 2)) | [
"fernando.pimenta107@gmail.com"
] | fernando.pimenta107@gmail.com |
0bfff896c1fb061d612f9c67d83aeafadf8d1a8d | 7b91550bb272385d74f9868b8d18bbb5757c0c7c | /workertier/backends/cache/memcluster/dns.py | bf23625a603cbf2377caa3e46fedc669300ab671 | [
"Apache-2.0"
] | permissive | krallin/tutorial-workertier | c0becd4566bf951df60d5d28f569ecb684433a8b | ab579cbe9d68adee26209a8b6b092ef9895fda65 | refs/heads/master | 2023-08-31T10:45:06.326063 | 2013-09-03T19:15:48 | 2013-09-03T19:15:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | #coding:utf-8
import logging
from gevent import dns
from workertier.backends.cache.memcluster import BaseMemcachedClusterCache
logger = logging.getLogger(__name__)
class DNSMemcachedClusterCache(BaseMemcachedClusterCache):
def __init__(self, domain, port, timeout, refresh_signal):
super(DNSMemcachedCl... | [
"thomas@orozco.fr"
] | thomas@orozco.fr |
f75feeea7f36bed818bba69f8ee300c7f7442619 | f48e212274d87c561b0e0706fa84a955657afc0b | /msg_app/apps.py | 95ca63f658b25a3157bb87fb7cd2a83c682ec7d7 | [
"Unlicense"
] | permissive | Asyavaliqa/djing | 4adcd797f0d75f29e52e315d17a5ccfee41d63ef | 8cc0c670600254d288178acd47965f7b3db6856e | refs/heads/master | 2023-03-21T10:46:39.674804 | 2020-11-18T20:11:23 | 2020-11-18T20:11:23 | 571,789,203 | 1 | 0 | Unlicense | 2022-11-28T22:15:26 | 2022-11-28T22:15:25 | null | UTF-8 | Python | false | false | 88 | py | from django.apps import AppConfig
class MsgAppConfig(AppConfig):
name = 'msg_app'
| [
"nerosketch@gmail.com"
] | nerosketch@gmail.com |
16358668e72c2d4470391eb9b565ac07a520392e | f891828ffe9c8501d276560c8c52d319f284056f | /285_bst_inorder_successor_m/main.py | 39f43c7a1696d08865e214ac086d1e2452a87734 | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def inorderSuccessor(self, root, p):
"""
:type root: TreeNode
:type p: TreeNode
:rtype: T... | [
"chris19891128@gmail.com"
] | chris19891128@gmail.com |
19afb8673972e5cc6b22b16a764caa23317a77aa | 7c688104f1fd816be603257116fb27040c620db3 | /RemoveDupSortedListTwo.py | 65ca336e74a6f2c02c62ee337edd742dcf97b492 | [] | no_license | xyzhangaa/ltsolution | 5e22c6a12e1ba9f6dea18be69d45c6ac14bc4fe5 | 9445ba22d5f0c12fd12b17e6791d1b387f1c4082 | refs/heads/master | 2020-05-21T11:37:58.781437 | 2015-10-14T14:45:04 | 2015-10-14T14:45:04 | 32,817,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | ###Given a sorted linked list, delete all nodes that have duplicate numbers,
###leaving only distinct numbers from the original list.
###For example,
###Given 1->2->3->3->4->4->5, return 1->2->5.
###Given 1->1->1->2->3, return 2->3.
#O(n), O(1)
class ListNode:
def __init__(self,x):
self.val = x
self.next = None... | [
"xyzpku06@gmail.com"
] | xyzpku06@gmail.com |
198a751c7ef0698faac7959a9358d589b7b908f2 | 0a65d42f4f0e491cb2aada408401b94909f821c2 | /management/management_main/migrations/0001_initial.py | 1b30ce4bcc4d93d51f9cdb030eb6dbbf7f77a6db | [] | no_license | jmadlansacay/_Office | 3acde7655784e91c7dcecfc853d4f36cdfeef028 | 7f46449b9f7e8e892e2e0025ba493259197fa592 | refs/heads/main | 2023-07-28T10:23:54.680822 | 2021-09-11T02:28:07 | 2021-09-11T02:28:07 | 379,155,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | # Generated by Django 2.2.5 on 2021-01-01 02:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('management_accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"Q034800@mhi.co.jp"
] | Q034800@mhi.co.jp |
f71dfa7c6489547a83673da08aed8c223511a034 | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part3/updated_part2_batch/jm/parser_errors_2/101032623.py | d0b164169b518ca6bdd2b447b5d28c4a453d6b87 | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 1,794 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 101032623
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 2, 3)
assert board is... | [
"noreply@github.com"
] | kozakusek.noreply@github.com |
0e157e83d1cba0ce1ad766f371ea6de09d9138db | 26a73e4df854313aa213882c5d3db16269a3254b | /hist/ks_tests.py | 8955ce6d77eb8499cb5ac19bb688c03dcfba6f23 | [] | no_license | howonlee/vr-timeseries-analysis | 69b18c35589d84e12ace02671a45d97443dbf333 | bec34c7088e897fb17c424cfcd0da687223e44df | refs/heads/master | 2020-04-11T10:59:04.375920 | 2015-06-11T00:13:26 | 2015-06-11T00:13:26 | 33,697,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import scipy.stats as sci_stats
import numpy as np
import matplotlib.pyplot as plt
with open("total_correlations") as correlations_file:
corrs = map(lambda x: float(x.strip()), list(correlations_file))
#corrs_sum = float(sum(corrs))
#norm_corrs = [corr / corrs_sum for corr in corrs]
with open("total_gamma... | [
"howon@howonlee.com"
] | howon@howonlee.com |
8000a18e2e630764b2ef77d3854c06b4ca2e8ac0 | d10190ccc03c89032cc44738d275010eb62b46f3 | /urlybirdlite/urls.py | 708427a25564d74d0ed4ec804ecc5e5601ef32a7 | [] | no_license | bekkblando/urlybirdlite-fixed | 659aa236110c088ff606c57ed23e5d0f1216ea09 | 84dec1c712210fd04628592a187154446e60ad43 | refs/heads/master | 2021-01-15T13:00:03.854463 | 2015-08-18T14:15:39 | 2015-08-18T14:15:39 | 38,802,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | """urlybirdlite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"bekkblando@gmail.com"
] | bekkblando@gmail.com |
9e10a26d7e2bcaab2aa9a47e0250f1b7413dd2cc | 9bed711e5b7c4fbeb556c2cea918adcf1de94bdc | /app_reports/templatetags/app_reports_tags.py | 90752faa82b4f5f8ca96d36211a37cec1d85c665 | [] | no_license | imagilex/django_main_apps | bc6e900db4cab2a0603f14c844e769faf93be3a3 | fa52958a384fdb06121b17b64967a2e0c8e468cd | refs/heads/env_dev | 2022-11-24T09:05:17.523336 | 2021-03-03T04:29:44 | 2021-03-03T04:29:44 | 232,409,309 | 0 | 1 | null | 2022-11-22T05:47:32 | 2020-01-07T20:17:04 | Python | UTF-8 | Python | false | false | 2,160 | py | from django import template
from app_reports.models import Esfera
register = template.Library()
@register.inclusion_tag('app_reports/esfera/card.html')
def esfera_card(user, context):
"""
Inclusion tag: {% esfera_card user %}
"""
esferas = []
for esfera in Esfera.objects.all():
if esfera... | [
"rramirez@junkyard.mx"
] | rramirez@junkyard.mx |
400887601c2793e3af1e6dc4a7b58058d3bfc0b5 | d8546aa0fc53775300b0f9d86cb705b0e5157890 | /arguments3.py | 774bd879eab7653b57e5e9a9eaa21b5a18a1a8fd | [] | no_license | larago/click | ecf02e7462ada4c41e685480dde239ece2f1749d | 89bedb148398965a9046777b18d3e02e10c1630b | refs/heads/master | 2021-04-30T16:26:20.722104 | 2017-01-26T12:41:21 | 2017-01-26T12:41:21 | 80,103,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #encoding=utf8
import click
@click.command()
@click.argument('src', nargs=-1)
@click.argument('dst', nargs=1)
def move(src, dst):
click.echo('move %s to %s' % (src, dst))
move()
| [
"bingeye@foxmail.com"
] | bingeye@foxmail.com |
e4a65033a44b01d85d2d3eaec791905f28567ada | a25223f5be818b549323e8232c31a606fcca275a | /work/lib_learn/fuzzy_learn.py | dbb281d2d370d084e8bde9994599c3168320dde1 | [] | no_license | Jsonming/workspace | 4ef1119606b3c138ff9594b3e0cf16de8077e28d | 2ac1b07d85deeb611600f5e64083c4eb0688fdb4 | refs/heads/master | 2020-06-13T04:23:15.492080 | 2020-03-31T10:34:30 | 2020-03-31T10:34:30 | 194,531,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/9/30 10:48
# @Author : yangmingming
# @Site :
# @File : fuzzy_learn.py
# @Software: PyCharm
| [
"ymmbjcz@126.com"
] | ymmbjcz@126.com |
6753a86ca1666946b2512abe25045282bb3863fc | a110805b0e0cf26d1da8e6276ec6883ed4297752 | /SOLUCIONES/SOLUCIONES/intermedio I/ejemplos/fecha_hora_sistema.py | 5668b7246f9d8e1eddcdf6fb495eda480aa0f7b3 | [] | no_license | dayes/curso_Python | a1e77725bd8ab4c287589f15e36849817bcb39e8 | 352b0505a5e3d6f3310893b5c87d1eab31a2a66d | refs/heads/master | 2020-03-22T07:37:54.487944 | 2018-07-13T10:59:40 | 2018-07-13T10:59:40 | 139,713,481 | 0 | 0 | null | 2018-07-04T11:40:03 | 2018-07-04T11:34:55 | null | UTF-8 | Python | false | false | 273 | py | # fecha y hora del sistema:
import time
t = time.strftime("%H:%M:%S")
d = time.strftime("%d/%m/%y")
d2 = time.strftime("%d/%m/%Y")
dt = time.strftime("%d/%m/%Y %H:%M:%S")
print ("time: ", t)
print ("date: ", d)
print ("date: ", d2)
print ("datetime: ", dt)
| [
"david@MacBook-Air-de-David.local"
] | david@MacBook-Air-de-David.local |
c6b54f026d0192e33cc07008b2f0144c230049c8 | 0f79fd61dc47fcafe22f83151c4cf5f2f013a992 | /BOJ/1753.py | 9ad0359bef96a50500ff44c3a43a2cb8f213596e | [] | no_license | sangm1n/problem-solving | 670e119f28b0f0e293dbc98fc8a1aea74ea465ab | bc03f8ea9a6a4af5d58f8c45c41e9f6923f55c62 | refs/heads/master | 2023-04-22T17:56:21.967766 | 2021-05-05T12:34:01 | 2021-05-05T12:34:01 | 282,863,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | """
author : Lee Sang Min
github : https://github.com/sangm1n
e-mail : dltkd96als@naver.com
title : 최단경로
description : Shortest Path
"""
import heapq
def dijkstra(start, distance):
q = []
heapq.heappush(q, (0, start))
distance[start] = 0
while q:
weight, v = heapq.heappop(q)
if dis... | [
"dltkd96als@naver.com"
] | dltkd96als@naver.com |
8f49d60cc15b59556cdcb8cf63d51c39fdccb49e | bb680585552532aeaad4c297f68c6d87c29b70b3 | /checks/cs50/2017/x/greedy/checks.py | 0ad789000789772622adc3837c1603266050c84d | [] | no_license | mstrperson/check50 | 3eca1d2f67ca422d50313771953e903fd1d3636f | e615b8685c5aeb4c4015c86cd62cae9dc1c9bab5 | refs/heads/develop | 2021-01-01T06:14:33.906452 | 2017-07-18T20:07:02 | 2017-07-18T20:07:02 | 97,390,234 | 0 | 0 | null | 2017-07-18T18:54:13 | 2017-07-16T14:51:44 | Python | UTF-8 | Python | false | false | 2,133 | py | import os
import re
import sys
sys.path.append(os.getcwd())
from check50 import TestCase, Error, check
class Greedy(TestCase):
@check()
def exists(self):
"""greedy.c exists."""
super(Greedy, self).exists("greedy.c")
@check("exists")
def compiles(self):
"""greedy.c com... | [
"brianyu28@gmail.com"
] | brianyu28@gmail.com |
56555304f5a4596878649f0fb0942c6ca5ceb0d2 | d14e79ff45ac22139df111c07fd130c2b37a1ad3 | /slide.py | 41a2425b464aae7f4b25d60152fdcd42e5a85a8d | [] | no_license | msarch/slide | 90127c19ed1c3fc940bec521e29fec04cf531ec4 | ec8d34124e43e1a5cde4290de5560e90a3d3f669 | refs/heads/master | 2021-01-19T18:41:13.309224 | 2017-04-28T19:41:23 | 2017-04-28T19:41:23 | 88,375,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,862 | py | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
# simple pyglet animation
# http://www.github.com/msarch/slide
import math
import pyglet
from pyglet.gl import *
DEG2RAD = 2* math.pi/360
OMEGA = 360.0 * 0.5 # angular velocity (rev/s) : 1/2 rev/s
ORIGIN = [1280/2,800/2,0] # x,y of screen center, rotation = 0
alpha = 0... | [
"msarch@free.fr"
] | msarch@free.fr |
72b25c0a76850bdcae1bfe7848dc4a64f1b3ddc7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_96/762.py | 2083c366cc527bd043cb724883b8d032aaa22ed4 | [] | 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,937 | py | import math
def dfs(N,S,P,t):
# print t
q=[]
q.append((S,-1,0))
maxV=-1
while(len(q)!=0):
#print q
c=q.pop()
#print c
if c[1]==N-1:
if c[0]==0:
maxV=max(maxV,c[2])
continue
shifts=[-2,-... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
bec411eed48f5799289ce5fcb8295f2fd1cc9286 | b05a07bbb0c509211d67e2afe79707f823fb8789 | /train_distillation.py | 71fb749c78bcfbc126972075c4c3b2ee7dcdc027 | [] | no_license | MLDL/SKD | 9138a5c7ee8276fe33efd34a3780767211172698 | 90790ee20bd183662fe01ee05e28100d1b56d50c | refs/heads/master | 2022-10-15T20:36:12.669840 | 2020-06-18T00:45:33 | 2020-06-18T00:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,802 | py | """
the general training framework
"""
from __future__ import print_function
import os
import argparse
import socket
import time
import sys
from tqdm import tqdm
import mkl
import torch
import torch.optim as optim
import torch.nn as nn
import torch.backends.cudnn as cudnn
from torch.utils.data import DataLoader
impo... | [
"brjathu@gmail.com"
] | brjathu@gmail.com |
1a7ef9178fd407f25a697c82abad53c9092aff20 | e64c3c051f6b70aa0bab5be3508448578b1e0b15 | /core/orienteer/models/attitude/__init__.py | f338c8ab793aec114ca2cc88b491c2a28c974f30 | [] | no_license | davenquinn/Orienteer | c85c6cd16145ef545279c38bdb466856c02abd9d | 4f77575c12cf7a04ce70e3045630079ab8ebc5e0 | refs/heads/master | 2022-07-10T20:39:36.414259 | 2022-06-15T18:56:38 | 2022-06-15T18:56:38 | 172,312,115 | 0 | 0 | null | 2022-06-15T18:56:39 | 2019-02-24T08:09:26 | CoffeeScript | UTF-8 | Python | false | false | 8,078 | py | from __future__ import division
import numpy as N
from shapely.geometry import mapping
from sqlalchemy import func, select, CheckConstraint
from sqlalchemy.ext.associationproxy import association_proxy
import logging as log
from geoalchemy2.types import Geometry
from geoalchemy2.shape import from_shape, to_shape
fro... | [
"dev@davenquinn.com"
] | dev@davenquinn.com |
cb05c2490be60fcbc72afce15389303ae36f68d2 | 5f0f0865b7e4e2aa1867a88c138df56936c0b23b | /blocks/tests/test_pylearn2.py | 6317698fe0dd1326830e4961c5d482d72d3399e1 | [
"MIT"
] | permissive | jych/blocks | 2c709dcf042f4259981adcb54d9e3a48dac0c87f | 995cb7b67545b272877ecf9e90285cc71c9e6091 | refs/heads/master | 2021-01-09T06:51:34.967301 | 2014-11-27T04:12:40 | 2014-11-27T04:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | import logging
import numpy
import pylearn2
from pylearn2.space import VectorSpace
from pylearn2.testing.datasets import random_dense_design_matrix
from pylearn2.train import Train
from pylearn2.training_algorithms.sgd import SGD
from blocks.bricks import Sigmoid, MLP
from blocks.cost import SquaredError
from blocks.... | [
"bart.vanmerrienboer@gmail.com"
] | bart.vanmerrienboer@gmail.com |
7c4bb7211655df9f643a3c3968ccecb8f9c5c2bd | 700b0528e949d7eacb6846ee7579e912b854fd51 | /TrustPot/settings.py | f56c0223ba3afd1780dabd7e621d0a5a53a18360 | [] | no_license | nucleoosystem/TrustPot | 340f33a46757fa6dbd98eae6be248f14ea8ca099 | 5e72bffdcd0f4232e98638387c794e7aaf684c9c | refs/heads/master | 2020-06-18T17:47:40.154449 | 2015-02-18T03:27:43 | 2015-02-18T03:27:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | """
Django settings for TrustPot project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
# Buil... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
b561709b47b0de856671dd1a8fa6d77dd686e849 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5690574640250880_0/Python/EnTerr/MinesweeperMaster.py | 889a6773a64d627ce18e10efa7cc9d0accbd413b | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | #
# Google Code Jam 2014
# Roaund 0: C. Minesweeper Master
# submission by EnTerr
#
'''
Input
The first line of the input gives the number of test cases, T. T lines follow.
Each line contains three space-separated integers: R, C, and M (Rows, Columns, Mines).
Output
For each test case, output a line cont... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
ef52eee784648cbe24760db5f85f64e78d493acf | 625f2f86f2b2e07cb35204d9b3232427bf462a09 | /data/HIRun2016PA/PASingleMuon_PARun2016C_PromptReco_v1_ZMMfilter_PBP/runForestAOD_pPb_DATA_80X_ZMMfilter.py | d609a491d97a0958a6cd6cdf1e3a5a0e685a95d7 | [] | no_license | ttrk/production | abb84c423a076fd9966276b7ed4350936c755e0b | f8a64c9c38de215802799365f0f7a99e1ee78276 | refs/heads/master | 2023-02-08T23:48:56.355141 | 2023-01-26T08:46:22 | 2023-01-26T08:46:22 | 52,877,406 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,606 | py | ### HiForest Configuration
# Collisions: pp
# Type: MC
# Input: AOD
import FWCore.ParameterSet.Config as cms
process = cms.Process('HiForest')
process.options = cms.untracked.PSet()
#####################################################################################
# HiForest labelling info
########################... | [
"tatark@mit.edu"
] | tatark@mit.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.