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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
136a39269006d806aaa99a0bac22de80bf3cab16 | 5a0b6cc5f6e0c19503fb4eb713cfa5c8a6f657d1 | /apps/accounts/forms.py | a777ce3364ff9763a8e79ad60147081e419d5410 | [] | no_license | ehoversten/django_user_auth | 5069780a70c3c7ce8707b107907f45e9a98e0583 | 91f5bc75f5bcc95c714f55f6ebcb2b4b50083d47 | refs/heads/master | 2020-04-02T03:15:27.770591 | 2018-10-21T23:47:48 | 2018-10-21T23:47:48 | 153,954,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class UserCreateForm(UserCreationForm):
email = forms.EmailField(required=True)
# you can set extra validations here to prevent is_valid from succeeding f you don't want it to.
first... | [
"ehoversten@gmail.com"
] | ehoversten@gmail.com |
97e39489a1008862592dc919c505fe0a8e088228 | d346c1e694e376c303f1b55808d90429a1ad3c3a | /medium/284.Peeking_Iterator.py | 1fc3679df11e721e85b5a1d2040e23cc759c49a1 | [] | no_license | littleliona/leetcode | 3d06bc27c0ef59b863a2119cd5222dc94ed57b56 | 789d8d5c9cfd90b872be4a4c35a34a766d95f282 | refs/heads/master | 2021-01-19T11:52:11.938391 | 2018-02-19T03:01:47 | 2018-02-19T03:01:47 | 88,000,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | # Below is the interface for Iterator, which is already defined for you.
#
class Iterator(object):
def __init__(self, nums):
"""
Initializes an iterator object to the beginning of a list.
:type nums: List[int]
"""
self.L = []
for i,num in enumerate(nums):
... | [
"aria@Arias-MacBook-Pro.local"
] | aria@Arias-MacBook-Pro.local |
c5a1e157aea842650f2144ec231bb7166234b266 | 4bfc3c184e736bb68dccbb6d5657f11c950df002 | /tests/operators/vector/test_minimum_ad_001.py | 7d7952f9c327d7e59295b101f0f6af6ed9cc7880 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | laekov/akg | 159aa64ef6135222b5af784c408731275dfa9bdb | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | refs/heads/master | 2022-12-01T04:09:03.548063 | 2020-08-19T08:38:57 | 2020-08-19T08:41:28 | 288,678,192 | 0 | 0 | Apache-2.0 | 2020-08-19T08:41:30 | 2020-08-19T08:36:53 | Python | UTF-8 | Python | false | false | 2,560 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
3059be9fd2c16b15f1b6fae6da39e0af08430466 | 1f7847055332e16614f5358f0ec39b39bb9a66a7 | /exercises/14_generators/test_task_14_1a.py | 4b50c494e9e7b9b19e0aae6f7a719e0deb3d277b | [] | no_license | satperm/advpyneng-examples-exercises | 6641dae31fa7f44db7e99547bc70d740988f21b9 | 6b12c320cace1d303dae38ddba9b19550a8708ec | refs/heads/master | 2022-12-14T09:28:48.255804 | 2020-09-06T14:14:42 | 2020-09-06T14:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | import time
import pytest
import task_14_1a
from collections.abc import Generator
import sys
sys.path.append('..')
from common_functions import check_function_exists, check_function_params
def test_func_created():
'''Проверяем, что функция создана'''
check_function_exists(task_14_1a, 'get_intf_ip')
def tes... | [
"nataliya.samoylenko@gmail.com"
] | nataliya.samoylenko@gmail.com |
efcca2ae4659bbb38deac84032a8a3aa80631773 | e471252b7259bdeed3b84187fbdfc95b18e6fc78 | /tests/rs_test.py | 3c274d99bf1e9b6b3e2c21a2c8278088b2797c5d | [
"MIT"
] | permissive | sibowi/e3nn | 4b98e2ec77680527cf6f15ac2f4567357cd516db | 1c568226a065a9c5c7127a22f6092ecd4cd0dc2f | refs/heads/master | 2022-08-30T17:36:17.475736 | 2020-05-23T23:04:49 | 2020-05-23T23:04:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,581 | py | # pylint: disable=not-callable, no-member, invalid-name, line-too-long, wildcard-import, unused-wildcard-import, missing-docstring, protected-access
import pytest
import torch
from e3nn import o3, rs
from e3nn.non_linearities.norm import Norm
def test_convention():
Rs = [0]
assert rs.convention(Rs) == [(1, 0... | [
"geiger.mario@gmail.com"
] | geiger.mario@gmail.com |
8d66c48f1cf17ed6e117de35119616e410c9e269 | 3b2867636844ab4b402ef091b61222a5870bae6e | /year2017/day14.py | 765292b38d049a9d76ff935743617f5776e13d1b | [] | no_license | feigaoxyz/adventofcode | f992478ff6518930a60b9d4e15e5902d1f208f06 | 18918e16709eef833544f48d8c1a46c93d950000 | refs/heads/master | 2021-06-21T18:33:45.229440 | 2021-01-12T16:10:03 | 2021-01-12T16:10:03 | 51,060,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | from common import load_input
from day10 import knot_hash_full
PART1_DOC = """Part 1:
For i in 0..127, how many '1' in 128 knot hashes (day 10) of
strings "INPUT-$i"?
"""
PART2_DOC = """Part 2:
Return number of connected components (4-direction) of 1's
"""
def disk_grid_recover(raw: str) -> list:
grid = []
... | [
"contact@feigao.org"
] | contact@feigao.org |
0603ccdfdf7026c83b1b6adbeb8206cdd97687ee | 69371d185a807c2754c460e7c7ccf8debe1bf384 | /src/robot/parsing/lexerwrapper.py | 97cc47e501426872e8e91563105988f3798536ef | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | eternalconcert/robotframework | bf5b8df519642fe383ba82f15f2b4c4f467a5c5e | 802f6a4986a34a6f64f7b48467d0a38f2b14fdd8 | refs/heads/master | 2020-07-17T09:38:35.126356 | 2019-09-04T20:13:47 | 2019-09-04T20:13:47 | 205,995,467 | 2 | 0 | NOASSERTION | 2019-09-03T05:25:15 | 2019-09-03T05:25:14 | null | UTF-8 | Python | false | false | 2,301 | py | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... | [
"peke@iki.fi"
] | peke@iki.fi |
80e3a142476b97deeeaf6c8e255fab037dd909ea | c9f090a34b145450dc1a88e4b847d552cdbcdcd1 | /libre/apps/data_drivers/literals.py | 14bcde3f8591592f485f505231bee54b83862ba7 | [] | no_license | axelrivera/libre | 0006853ec8f2a23f63c25136d0bbd93ba830be0c | cd6f474946f8f09b3b93c08b32aed93ce04b5ffb | refs/heads/master | 2020-12-25T06:12:37.535782 | 2013-07-05T01:47:29 | 2013-07-05T01:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | # Row based
DEFAULT_LIMIT = 100
# Excel
DEFAULT_FIRST_ROW_NAMES = False
DEFAULT_SHEET = '0'
| [
"roberto.rosario.gonzalez@gmail.com"
] | roberto.rosario.gonzalez@gmail.com |
1ffd905a0dc4a4c67f0015ba2c5379758054c570 | f281d0d6431c1b45c6e5ebfff5856c374af4b130 | /DAY100~199/DAY148-LEET1011-CapacityToShipPackagesWithinDDays/joohyuk.py | 2fff9fa5c66fb2651695712afd4d3d1c98716ac2 | [] | no_license | tachyon83/code-rhino | ec802dc91dce20980fac401b26165a487494adb4 | b1af000f5798cd12ecdab36aeb9c7a36f91c1101 | refs/heads/master | 2022-08-13T09:10:16.369287 | 2022-07-30T11:27:34 | 2022-07-30T11:27:34 | 292,142,812 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import sys
si = sys.stdin.readline
def solve(weights,d):
t=sum(weights)
s,e=0,t
while s<e:
m=(s+e)//2
hold,c=0,0
for e in weights:
if hold<m:
hold+=e
else:
hold=e
c+=1
if c<d:
e=m
e... | [
"noreply@github.com"
] | tachyon83.noreply@github.com |
3e34d6908814684cc49460148b39eafc26c44e9a | 53c35060ba641c399d80ed1daf6d3b1e5c49dab4 | /enso/contrib/open/__init__.py | e6fe28def3f0708d4cba41225fd35eb9363a0997 | [
"BSD-2-Clause"
] | permissive | RendijsSmukulis/enso-launcher-continued | c85462a36637a70985938a39c2d3448def8a9af2 | 97b21f4eabbd445c33c6e93c19e7b2a712ea2bca | refs/heads/master | 2021-01-23T03:22:02.651360 | 2017-03-19T03:02:25 | 2017-03-19T03:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,100 | py | # -*- coding: utf-8 -*-
# vim:set tabstop=4 softtabstop=4 shiftwidth=4 expandtab:
#
# Author : Pavel Vitis "blackdaemon"
# Email : blackdaemon@seznam.cz
#
# Copyright (c) 2010, Pavel Vitis <blackdaemon@seznam.cz>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modificati... | [
"pavelvitis@gmail.com"
] | pavelvitis@gmail.com |
4e60cf2724fa2e5c06ab75f0f32b8a440d656ec1 | cd4bbecc3f713b0c25508d0c5674d9e103db5df4 | /toontown/minigame/TwoDCamera.py | 5e1022d1ec3b0d80cd7d937278f60e318d768b98 | [] | no_license | peppythegod/ToontownOnline | dce0351cfa1ad8c476e035aa3947fdf53de916a6 | 2e5a106f3027714d301f284721382cb956cd87a0 | refs/heads/master | 2020-04-20T05:05:22.934339 | 2020-01-02T18:05:28 | 2020-01-02T18:05:28 | 168,646,608 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.task.Task import Task
from direct.directnotify import DirectNotifyGlobal
from direct.distributed import DistributedObject
from toontown.minigame import ToonBlitzGlobals
import math
class TwoDCamera(DistributedObject.Distributed... | [
"47166977+peppythegod@users.noreply.github.com"
] | 47166977+peppythegod@users.noreply.github.com |
bc4ea94f6b02b9e24b146d3a2061fc53211512ef | 3ec4823d1cf7197da0fe086613383c0d2f85ba7b | /Lesson 7 function/7.4_positional_arguments.py | 4c675f46308702213181bef6274075a9463ee4dc | [] | no_license | JamCrumpet/Lesson-notes | 268f114d420cd55ec3c87c9334814a6e8398b6e6 | 501ef9687be8da4205a640fbc391444ebd65a15d | refs/heads/master | 2022-12-16T05:58:35.413156 | 2020-09-16T14:52:19 | 2020-09-16T14:52:19 | 288,780,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # when calling a function python will match each argument in the function call with a parameter ...
# ... in the function definition
# the simplest way to do this is bases on the order of the argument provided
# values match up this way are called positional argument
# for example consider a function that display... | [
"noreply@github.com"
] | JamCrumpet.noreply@github.com |
3acd80e802c20c4c87da449e8fecd10a0d1bbc5d | 1595ffcb2e59f511cabf4b9dc2b8de66862cc5a2 | /run_phase1.py | 9edf2f184e13eb252df596eb0256db2ff85e9163 | [] | no_license | littlepretty/SensorPGM | ab741064f2c9d8c5a6c8a917ef235250f80829eb | 06c8c980b0724f18247dab31a545c504f99e045b | refs/heads/master | 2021-01-14T12:44:42.769800 | 2016-05-05T14:39:09 | 2016-05-05T14:39:09 | 52,915,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,346 | py | #!/usr/bin/env python
import csv
import logging as lg
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
from python_log_indenter import IndentedLoggerAdapter
def learnModel(filename, n=48, m=50):
f = open(filename, 'rb')
reader = csv.reader(f)
day1 = []
day2 = []
day3 = []
... | [
"littlepretty881203@gmail.com"
] | littlepretty881203@gmail.com |
e4e7ba162eaf4533e33f22af3e2304d322d02af4 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4150/codes/1585_1015.py | 7c3f11b65c17fa5d163e69c25b1d75d669bc1e27 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # Teste seu codigo aos poucos.
# Nao teste tudo no final, pois fica mais dificil de identificar erros.
# Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo.
a = int(input("valor 1: "))
b = int(input("valor 2: "))
c = int(input("valor 3: "))
minimo = (min(a,b,c))
maximo = (max(a,b,c))
interme... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
9e09f4b3ae1d0853cbe16395aa8aa8d3699e6d1e | 306d2a92fb331aec6ddf0794b538d6e3385a0df9 | /app/model/account.py | 8f9c579c1ff38d8f743848f6c95fcc6bd5f55c7f | [] | no_license | Zarinabonu/ForceApp | f343d3a52aee08890230c5425c9e238df99c5a7f | 13f8e8613999c4850fc6f0bfcec66f897eecbe4a | refs/heads/master | 2020-12-10T08:00:25.072289 | 2020-01-20T13:14:07 | 2020-01-20T13:14:07 | 233,540,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | from random import randint, randrange
from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
class Account(models.Model):
user = models.ForeignKey(User, on_delet... | [
"zarinabonu199924@gmail.com"
] | zarinabonu199924@gmail.com |
fe65fbb3d6367aae8acb39fc61f23ca80d548b1a | aa2157e595b89c3512857e41fee16e8b11d7a657 | /Fresher Lavel Logical Programms/Between Two number print prime number.py | 94f23ce6807fc887991b4303536dbc6271acaff8 | [] | no_license | biswaranjanroul/Python-Logical-Programms | efee6276eea3eafab9ee6b6e7e0910b715a504d1 | 152dcecf2ecae7891a11769f250a4dc8d9d6b15f | refs/heads/master | 2022-12-15T07:37:45.978218 | 2020-09-17T13:24:53 | 2020-09-17T13:24:53 | 296,326,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | lower=int(input("Enter lower range number:"))
upper=int(input("Enter upper range number:"))
for num in range(lower,upper+1):
if num>1:
for i in range(2,num):
if (num % i)==0:
break
else:
print(num)
| [
"biswaranjanroul2@gmail.com"
] | biswaranjanroul2@gmail.com |
3df314f92c0af4d60757e92c6b59b97b7bd43315 | 0de67c078e00b9f43bfd6c4ddb1f4ffd153f8b7e | /clubs_website/settings.py | 88f227d2f0e998d94739536e11fb99e1cbeb5270 | [] | no_license | jreinstra/menlo-clubs | c249d754942a2a49e2ebae5914a1f81a27f845ef | ff50d07e6220a537d5de42c18ae73c845d8c35d7 | refs/heads/master | 2020-04-26T11:05:12.537802 | 2015-11-18T22:18:11 | 2015-11-18T22:18:11 | 39,816,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,076 | py | """
Django settings for clubs_website project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Buil... | [
"jreinstra@gmail.com"
] | jreinstra@gmail.com |
fe7e24df2e555202d345122c183e1738d568fa4c | 3698934341cf6599637aac28ad90ba4d517d926a | /moonv4/moon_consul/moon_consul/__main__.py | 4d64288e9a240f046a55b31c64e709b494f4fd6b | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | hashnfv/hashnfv-moon | 286b61a66f5cf79d9261d2e2a065435958853299 | daaba34fa2ed4426bc0fde359e54a5e1b872208c | refs/heads/master | 2021-05-07T20:46:06.472789 | 2017-10-29T20:14:06 | 2017-10-29T20:14:06 | 108,938,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from moon_consul.server import main
main()
| [
"thomas.duval@orange.com"
] | thomas.duval@orange.com |
e90fe2bdf3e7a6e8b87a0a61d09cbb2727f175fe | 20d9130fdc21756c4f8fe255583922352f5c5762 | /src/DIRAC/DataManagementSystem/Agent/RequestOperations/ReplicateAndRegister.py | df43cc14d25ab6cfc22a4dfb2c18869f0490d8ad | [] | no_license | bopopescu/bes3-jinr | 095314e43f41f08bd48b248fe3ca627a5c009f58 | fdfd852c92a56192b8ee9970b66f0136e6e0afff | refs/heads/master | 2022-11-26T06:01:36.718508 | 2014-03-17T06:03:50 | 2014-03-17T06:03:50 | 282,113,617 | 0 | 0 | null | 2020-07-24T03:30:10 | 2020-07-24T03:30:09 | null | UTF-8 | Python | false | false | 15,888 | py | ########################################################################
# $HeadURL $
# File: ReplicateAndRegister.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/03/13 18:49:12
########################################################################
""" :mod: ReplicateAndRegister
=========================... | [
"gavelock@gmail.com"
] | gavelock@gmail.com |
6ed5d3c73ea9d4460a02feac33d5553147dbe7f1 | 956cc6ff2b58a69292f7d1223461bc9c2b9ea6f1 | /setups/cuda9.2/setup_all.py | b015fd581d34eec93edcca09d13adfb412600491 | [
"Apache-2.0"
] | permissive | Aanisha/monk_v1 | c24279b2b461df9b3de2984bae0e2583aba48143 | c9e89b2bc0c1dbb320aa6da5cba0aa1c1526ad72 | refs/heads/master | 2022-12-29T00:37:15.320129 | 2020-10-18T09:12:13 | 2020-10-18T09:12:13 | 286,278,278 | 0 | 0 | Apache-2.0 | 2020-08-09T16:51:02 | 2020-08-09T16:51:02 | null | UTF-8 | Python | false | false | 1,358 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="monk_cuda92", # Replace with your own username
version="0.0.1",
author="Tessellate Imaging",
author_email="abhishek@tessellateimaging.com",
description="Monk Classification Library - Cuda9... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
db97c2663b86fb19553854a8de36158cd641b64b | a5638a2ff9381b1a5b804eab3d90db04e9614c4f | /Python/Easy/multiplesOfANumber.py | 3ab47faf75bd90882b94721a9d2e81973e7a609f | [] | no_license | jeffthemaximum/CodeEval | c9e1fe5a966718a627d72e3f73f9c1bddb42c0ef | e2e85e7564a711c2ae83acbcab6b5c67023b3659 | refs/heads/master | 2021-01-17T07:21:25.490894 | 2016-07-18T23:54:22 | 2016-07-18T23:54:22 | 40,488,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import sys
with open(sys.argv[1], 'r') as input:
test_cases = input.read().strip().splitlines()
for test in test_cases:
x = test.split(',') #an array
i = 1
flag = True
while flag:
if (int(x[1]) * i) > int(x[0]):
print int(x[1]) * i
flag = False
else:
i = i + 1
continue
break | [
"frey.maxim@gmail.com"
] | frey.maxim@gmail.com |
ea33a4aa07a7a8aff2e7ee7cb5f217a354933eb0 | 34e0865fb4915390e77336e81b2c87ec2bf52df6 | /settings/__init__.py | 69a047331a5bef0788da3e0eaaef1892c43a58c9 | [] | no_license | HiPiH/local | 3702be6b140fe879188e9623ede27adfc1ce8765 | 6c3bd2c0818c780977c2081ab72906f0166625dd | refs/heads/master | 2021-01-25T04:50:29.096944 | 2011-12-24T08:21:39 | 2011-12-24T08:21:39 | 3,026,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | from base import *
from local import *
| [
"admin@nvk.su"
] | admin@nvk.su |
59c2d15633d53876d3a08d4b794723977d0ed9e0 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_assets_operations.py | 2ff6391f63b470ccfca07a99a46a3e0233b964c2 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 38,428 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
0cadc9640709c0c2dd78d9014603c391ed1cf5fa | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /045_functions/009_functools_module/examples/13-chain.py | d7e02c6a1ee13cce91b500f4c51f840784da80d8 | [] | 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 | 172 | py | """Пример использования функции chain модуля itertools"""
from itertools import chain
for i in chain(range(2), range(3)):
print(i)
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
9a46dd5c59b0f01363d42c4eead8dcff3f0a4dbf | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/insert_20200610160638.py | 4b1c20b5c255f499b25e5a60015365369be8bac8 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # nums is a list
# find where n is to be inserted
# soo,you loop through the array
# the array is sorted
# to know the position you should check whethere n is greater than nums[i]
# continue the loop as you check
def Insert(nums,n):
for i in range(len(nums)):
print(nums[i])
# if n in nums[i]:
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
6a7a82c9c0a99d0b647ecff1e459848d4a2ac2e3 | 41f960a830752877bf2248bb2c620491752ccfe5 | /fork/multipprocessing.py | 1fe7394082645c192a8111fbf878346eed726efa | [] | no_license | drakhero/python_base | 368617032d2d3d5388f22de2cb2ca0af81de00ec | 90848ef630ab607a1b5563f773e1b4ca7eaef08f | refs/heads/master | 2020-04-24T09:51:09.596139 | 2019-02-23T03:52:35 | 2019-02-23T03:52:35 | 171,875,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from multiprocessing import Process
import time
#事件1
def fun1():
print("子进程做事件1")
#创建1个进程
p = Process(target=fun1)
#进程启动,执行fun1函数中的代码
p.start()
time.sleep(1)
#父进程
print('父进程在做事')
| [
"17504336124@163.com"
] | 17504336124@163.com |
ad80d80796527bb59b38b55a1a1ec677fb086100 | 94c4a1a14cc9e68584912340c8b2fd54686dd638 | /Day9/select_Ftp/server/server.py | e50b72d485949db91c8b08747249b21954a9e665 | [] | no_license | Anne19953/LearnPython | 33da4ae57b3aed9cb687567958cafa8a55ff2b7b | a2bcb620ed453ff802862ae31efd0e8c159d8bfe | refs/heads/master | 2020-08-09T00:25:31.839253 | 2019-10-10T02:53:45 | 2019-10-10T02:53:45 | 192,083,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | #!/usr/bin/env python
# coding:utf-8
"""
Name : server.py
Author : anne
Time : 2019-08-27 17:28
Desc:
"""
import os
import time
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
import socket
import selectors
class selectTtpServer:
def __init__(self):
self.dic = {}
self.hasReceived = 0
... | [
"anne@199534.com"
] | anne@199534.com |
b7f03924a22aa5e1a6b5585208e2c3461ac89f15 | bf64d19174ef332f39e2d8210f3eb4f783262554 | /lib/networks/Resnet18_fcn_classifier_test.py | af272fabe9f6981c3d58530213a26620b2263652 | [] | no_license | juzisedefeimao/cv | 3e4dd7deee471321e071ca996769fc3b65481993 | fb9e9292030481f5a26efde4003fb83d37a34962 | refs/heads/master | 2020-05-30T14:29:13.253563 | 2019-06-02T01:08:53 | 2019-06-02T01:08:53 | 189,791,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,027 | py | from lib.networks.network import Network
import numpy as np
from lib.networks.netconfig import cfg
import tensorflow as tf
cls_num = cfg.ZLRM.TRAIN.CLASSIFY_NUM
class Resnet18_fcn_classifier_test(Network):
def __init__(self):
self.inputs = []
self.data = tf.placeholder(tf.float32, shape=[None, Non... | [
"17696272096@163.com"
] | 17696272096@163.com |
b58c2b669fb5c4e9e55d6b371358d5583c171602 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_369/ch1_2019_08_20_10_55_01_631896.py | d56e48800aac2ab498b0ca3094618d3400a6d5fc | [] | 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 | 60 | py | def calcula_valor_devido(vp, n, j):
vf = 1
return vf | [
"you@example.com"
] | you@example.com |
05c69d8e932f1b7de373e2b187bfd9d583ee9ff4 | ac3093b2b1b37244fbd10f6eee4de22fa50911da | /links/forms.py | cecf01dc0104575fdf01dc26ebe776d62ce94999 | [
"MIT"
] | permissive | moshthepitt/product.co.ke | 7b5e7b18d0fd2673be52455dbfbcbbeecf2b9224 | 41b32c4019f30ce9483b4d84f335450f45f0e1cb | refs/heads/master | 2021-01-14T11:53:06.899243 | 2016-05-12T13:02:22 | 2016-05-12T13:02:22 | 57,992,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext as _
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Submit, HTML
from crispy_forms.bootstrap import Field, FormActions
from .models import Link
class LinkForm(forms.ModelForm):
des... | [
"kelvin@jayanoris.com"
] | kelvin@jayanoris.com |
201c93a9c10fd1270ca83cbee6395c9d6ab7dd48 | 1b2407f35191917818ea7f276079aa8f62429770 | /nova/pci/manager.py | 34b088fe928bb5a8c4841d2d54a7c682e25055f3 | [
"Apache-2.0"
] | permissive | ISCAS-VDI/nova-base | 67838b54230d250b71fd1067c4a754afbc258883 | dbb6bba94f8a3eae5ed420d8af3431ab116c3fa7 | refs/heads/master | 2021-01-20T19:08:51.403722 | 2016-06-07T06:46:54 | 2016-06-07T06:46:54 | 60,588,545 | 0 | 1 | Apache-2.0 | 2020-07-24T00:41:15 | 2016-06-07T06:38:23 | Python | UTF-8 | Python | false | false | 14,207 | py | # Copyright (c) 2013 Intel, Inc.
# Copyright (c) 2013 OpenStack Foundation
# 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/li... | [
"wangfeng@nfs.iscas.ac.cn"
] | wangfeng@nfs.iscas.ac.cn |
e73be0af28c5ac96600a3a75f96a175162ec3cc0 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-CoreMedia/PyObjCTest/test_cmformatdescription.py | 6183d9f1b41bedaf86c0bde06ab3a474ff318afc | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,902 | py | from PyObjCTools.TestSupport import *
import CoreMedia
class TestCMFormatDescription (TestCase):
def test_constants(self):
self.assertEqual(CoreMedia.kCMFormatDescriptionError_InvalidParameter, -12710)
self.assertEqual(CoreMedia.kCMFormatDescriptionError_AllocationFailed, -12711)
self.asse... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
d3494680cb985e08a8f4a2443295f2c1ab1e7ee4 | d30d96db433f64c846c3af9dde767cbab9ad4527 | /Basics/eight.py | 06708fc6846ad7a394d0d47aaec975b2c0bde571 | [] | no_license | narasimhareddyprostack/Ramesh-CloudDevOps | 6999a3007624ba3e5bba140d52c3fdb8ab4533d2 | fe348afbe33090f619ccde8d8f2de15b0ca15c5f | refs/heads/master | 2023-03-12T23:18:04.281750 | 2021-03-05T10:22:41 | 2021-03-05T10:22:41 | 280,594,773 | 1 | 1 | null | 2020-07-18T14:26:37 | 2020-07-18T06:12:25 | Python | UTF-8 | Python | false | false | 87 | py | a = 10
b = 20
if(a>b):
print("A is greather")
else:
print("B is greaterh")
| [
"narasimhareddyk18@gmail.com"
] | narasimhareddyk18@gmail.com |
5175579f392fdd01f9d697c958ad775828bc60e6 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_None/trend_Lag1Trend/cycle_0/ar_/test_artificial_1024_None_Lag1Trend_0__20.py | df4b1542088823a0e850d7fad698d78d1c3a2ab6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 265 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
5670329fa6b2b9d2c32ff04c5c850e4875756d9a | cfa2417f07259e512a1bbface4f1f4ccd66502c6 | /test/test_Util/test_ifu_util.py | e96fc21970bd9cf8f6e5e013a2f6847d8ecdd5c7 | [
"BSD-3-Clause"
] | permissive | jiwoncpark/hierArc | 3779439533d3c9c5fe2e687f4bdf737dfc7673e8 | 3f31c0ae7540387fe98f778035d415c3cff38756 | refs/heads/master | 2021-05-18T21:32:45.590675 | 2020-12-23T00:01:01 | 2020-12-23T00:01:01 | 251,431,028 | 0 | 0 | NOASSERTION | 2020-03-30T21:20:08 | 2020-03-30T21:20:08 | null | UTF-8 | Python | false | false | 788 | py | import numpy as np
import numpy.testing as npt
import pytest
from hierarc.Util import ifu_util
class TestIFUUtil(object):
def setup(self):
pass
def test_radial_dispersion(self):
num = 10
dispersion_map = np.zeros((num, num))
weight_map_disp = np.ones((num, num))
v... | [
"sibirrer@gmail.com"
] | sibirrer@gmail.com |
9c5cf35ff34488e229c78f5ead98107df7ee0731 | 2352bc07e12b0256913559cf3485a360569ccd5e | /Practice/code_class/Crossin-practices/python_weekly_question/capitalize_words.py | ec65131874c754c9acc1776b29306e73cfbd2694 | [] | no_license | Dis-count/Python_practice | 166ae563be7f6d99a12bdc0e221c550ef37bd4fd | fa0cae54e853157a1d2d78bf90408c68ce617c1a | refs/heads/master | 2022-12-12T03:38:24.091529 | 2021-12-22T09:51:59 | 2021-12-22T09:51:59 | 224,171,833 | 2 | 1 | null | 2022-12-08T05:29:38 | 2019-11-26T11:07:00 | Jupyter Notebook | UTF-8 | Python | false | false | 292 | py | #-*- coding:utf-8 -*-
quote = "How can mirrors be real if our eyes aren't real"
def fuc(string):
'''func - 使某一字符串所有字符都大写'''
list_new_string = [i.capitalize() for i in string.split()]
new_string = ' '.join(c_n_s)
return new_string
print(fuc(quote))
| [
"492193947@qq.com"
] | 492193947@qq.com |
93a7ca5e3dd067ae8ba260b3d7caf5fabfba15e3 | d62e0bf740c8b9ee96dd161d6f1ed2e6a01616fc | /examples/twisted/wamp/pubsub/simple/example1/server.py | f9f14248acac91914594c4f5e85446bc83aa22fc | [
"Python-2.0",
"Apache-2.0"
] | permissive | devbazy/AutobahnPython | 4ff867e84811fb1c43083a139f4184824e1df8d2 | f14ca62fd59e15e078796e88153c26cb2f54a35a | refs/heads/master | 2020-12-31T05:39:39.824777 | 2014-01-19T10:02:17 | 2014-01-19T10:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | ###############################################################################
##
## Copyright (C) 2011-2013 Tavendo GmbH
##
## 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
##
## h... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
a1103dcb4e7eb7b56f15ff380ba3acb5cd6f83bb | 521c1beeb2776161ae6d550be35cd0c180887129 | /elvis/utils/xmlparse.py | 2b88d726b7ac85815abba0ae6279ea0aa4354d38 | [] | no_license | elvis2workspace/CustomLibrary | 601b552792ac2c33beeb709474f857c82793ac7e | 6449eea8aa99ca1172f54b669d97703d36132ce3 | refs/heads/master | 2021-01-23T21:33:05.617871 | 2017-09-26T01:57:48 | 2017-09-26T01:57:48 | 58,983,388 | 0 | 1 | null | 2016-12-06T09:56:14 | 2016-05-17T02:22:14 | Python | UTF-8 | Python | false | false | 1,199 | py | #!/usr/bin/env python
#coding=utf-8
'''
Created on 2016年1月27日
@author: zhang.xiuhai
'''
import re
import urllib
local = 'D:\\testdir\\'
def getHtml(url):
page = urllib.urlopen(url)#创建一个表示远程url的类文件对象,然后像本地文件一样操作这个类文件对象来获取远程数据。
html = page.read()
return html
def getImg(html):
reg = r'res="(.+?\.jpg)"'... | [
"xiuhai5052@hotmail.com"
] | xiuhai5052@hotmail.com |
3c3bdc089a625d916f6ef5bf84198778bd7e5cb4 | 9a1aad53af7e772d0aa290d231007957f38ef904 | /signup/admin.py | aa338d073f70bf9274059378e56f81d1666bb7fa | [] | no_license | vikasjoshis001/BioData | fc82145c16d05a0ad58aaaa84f53338037db56f4 | a0dd6e0dedda85842a47a584a88fd99b6d6633bd | refs/heads/master | 2023-02-07T17:43:18.056425 | 2020-12-18T06:53:19 | 2020-12-18T06:53:19 | 322,514,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from django.contrib import admin
from .models import SignUp
admin.site.register(SignUp)
# Register your models here.
| [
"vikasjoshis001@gmail.com"
] | vikasjoshis001@gmail.com |
09f2f4cbd1def8e671fdebdfccf32af887d19f4a | eb6f6e4fd2b358805d8b41c883a27c80067f748c | /chapter8/material.py | c8635923273822c0e8dd71b349921c2a7273c105 | [] | no_license | candyer/Ray-tracing | a4b5637ccb63eec0bddf5533abf54c6d0b164c57 | d121380f9f35ad4ad596bec1d58b4021ba022f58 | refs/heads/master | 2021-07-13T03:04:37.938321 | 2017-10-18T18:41:20 | 2017-10-18T18:41:20 | 105,039,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py |
from abc import ABCMeta, abstractmethod
class Material:
__metaclass__ = ABCMeta
@abstractmethod
def scatter(self, ray_in, rec, attenuation, scattered):
pass
def reflect(self, v, n):
return v - n * (v.dot(n) * 2)
| [
"candyer@users.noreply.github.com"
] | candyer@users.noreply.github.com |
158e10f3fc5f523e30714eeeb904b4f920555b5a | 25bb4e760769cc483a20f27b6312698891dce034 | /python/Sets/py-set-difference-operation-English.py | c13712f5d892bff5d1b28e0d29f3bfb1088ffb44 | [] | no_license | rangaeeeee/codes-hackerrank | e13d22adff1ef74974e34251d9bfac6cfd36f2b0 | ce7fdf7f336c10164fd2f779d4ed3713849d7c2b | refs/heads/master | 2021-01-19T17:07:28.451983 | 2017-09-01T18:05:33 | 2017-09-01T18:05:33 | 101,049,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | n = int(input())
nSet = set(map(int,input().split()))
b = int(input())
bSet = set(map(int,input().split()))
print(len(nSet.difference(bSet))) | [
"rrangarajan.85@gmail.com"
] | rrangarajan.85@gmail.com |
5d532060d925ffa94c8657a4ad75368b5d37e3ac | 1b3ed8b5b474e8346cf19279e3cec33ea5dc9c94 | /quick_start2/new_task.py | b8d4c3e9a85c91feeb7f6ed040d23c5d50a61f90 | [] | no_license | valerydmitrieva/rabbitmq_quick-start | 4b1d94b1fbe521b80adfd17dfdaf8afb7935548a | 8d9e46b96379b0957d9b85097d028d9162d1595e | refs/heads/master | 2020-04-19T04:46:45.405471 | 2019-01-28T13:57:45 | 2019-01-28T13:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import sys
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters(host='localhost'))
channel = connection.channel()
channel.queue_declare(queue='task_queue', durable=True)
message = ' '.join(sys.argv[1:]) or "Hello World!"
channel.basic_publish(exchange='',
routing_key='task_... | [
"test@example.com"
] | test@example.com |
188ff9f607f4cc10669d5574597fff902ae9f35b | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /etc/MOPSO3/Swarm1d.py | 83dfc1d59f2c3d296ed01a3eb63fb8e5fa5e2df8 | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,483 | py | '''
Created on 2013-12-5
@author: Walter
'''
from Swarm import *;
class Swarm1D(Swarm):
def initReferenceSet(self, loadFromFile=False, nondomSetFile=None, domSetFile=None):
self.referenceSet = [];
idxCnt = 0;
for x in np.arange(-self.worldrange[0]/2, self.worldra... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
6ceda38c5b9c5ecefdcce21508c0ceb213a35c2e | 517600ba1ab1e7781b26df1439227f4569746d5a | /blog/migrations/0010_auto_20200521_2035.py | 76f4c00cec504ac5b01278e71bcabf23473394ae | [] | no_license | Smartybrainy/myworldgist | 885d86c838881ace6bced2492a46169dbd33b19d | 592f404c1047eccbbc8dad4b83032ffafb8d797a | refs/heads/master | 2023-01-21T19:29:47.208445 | 2020-12-05T00:52:10 | 2020-12-05T00:52:10 | 315,742,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Generated by Django 3.0.5 on 2020-05-21 19:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0009_auto_20200520_1119'),
]
operations = [
migrations.AlterField(
model_name='comment',
name='added_date',
... | [
"smartyleey@gmail.com"
] | smartyleey@gmail.com |
588a1a3d27e75aaae0ccf3b96f5c76030132b90f | e3887534dffc1b5d1d97d4a6a030b22d46ae3a5c | /shah_entp_erpnext/config/docs.py | e89464f41a4e1144fe21c69dd17ae27bad91116f | [
"MIT"
] | permissive | anandpdoshi/shah_entp_erpnext | 5da4ba98a6e668b5ec970e0c361e081fa14ebdf8 | 7c19c629188b8f1e3449fd6f3a5a0ee371d3158c | refs/heads/master | 2016-08-12T05:24:51.194469 | 2016-04-24T17:46:57 | 2016-04-24T17:46:57 | 55,857,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/shah_entp_erpnext"
# docs_base_url = "https://[org_name].github.io/shah_entp_erpnext"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html... | [
"anand@erpnext.com"
] | anand@erpnext.com |
ceb1b4e0137321f1a236b1f2b9cd803efd2087b6 | 77fa2374a6d119a5a1890857ff16fc9f15004882 | /clishdeonly_15466/settings.py | 4a31aac7d924862912ff89cc47a756534ff99607 | [] | no_license | crowdbotics-apps/clishdeonly-15466 | b8ec985c6d819a3296c1763c0f38efacca2f6c7c | 5d136cbfab7f37755d2eae2ac0e54c9fcb912623 | refs/heads/master | 2022-12-10T12:37:08.378715 | 2020-04-05T16:16:50 | 2020-04-05T16:16:50 | 253,275,964 | 0 | 0 | null | 2022-12-08T09:29:33 | 2020-04-05T16:09:50 | Python | UTF-8 | Python | false | false | 5,487 | py | """
Django settings for clishdeonly_15466 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/
"""
im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f67048f66378a43afb2fb6a7f34a413967c6126e | c67f2d0677f8870bc1d970891bbe31345ea55ce2 | /zippy/benchmarks/src/benchmarks/whoosh/src/whoosh/collectors.py | b8b899de17a5c9bcd22d50e7ed5f113e935d3ea2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"BSD-2-Clause-Views",
"BSD-3-Clause"
] | permissive | securesystemslab/zippy | a5a1ecf5c688504d8d16128ce901406ffd6f32c2 | ff0e84ac99442c2c55fe1d285332cfd4e185e089 | refs/heads/master | 2022-07-05T23:45:36.330407 | 2018-07-10T22:17:32 | 2018-07-10T22:17:32 | 67,824,983 | 324 | 27 | null | null | null | null | UTF-8 | Python | false | false | 42,165 | py | # Copyright 2012 Matt Chaput. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | [
"ndrzmansn@gmail.com"
] | ndrzmansn@gmail.com |
fa9a1379d28d85b2fc26b90fae36448da8f77891 | 18f8abb90efece37949f5b5758c7752b1602fb12 | /py/django_tools/django-haystack/haystack/management/commands/clear_index.py | d99fb5bb36e64bb0017632e707949d2afb342da0 | [
"BSD-3-Clause",
"MIT"
] | permissive | marceltoben/evandrix.github.com | caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516 | abc3fbfb34f791f84e9a9d4dc522966421778ab2 | refs/heads/master | 2021-08-02T06:18:12.953567 | 2011-08-23T16:49:33 | 2011-08-23T16:49:33 | 2,267,457 | 3 | 5 | null | 2021-07-28T11:39:25 | 2011-08-25T11:18:56 | C | UTF-8 | Python | false | false | 1,778 | py | from optparse import make_option
import sys
from django.core.management.base import BaseCommand
from haystack.constants import DEFAULT_ALIAS
class Command(BaseCommand):
help = "Clears out the search index completely."
base_options = (
make_option('--noinput', action='store_false', dest='interactive', ... | [
"evandrix@gmail.com"
] | evandrix@gmail.com |
853bbc1268691dba67496264c74d9d41b009b1e5 | a84bc49dba142c4047a23d85917f411f42e196aa | /doc/src/web4sa/src-web4sa/apps/flask_apps/vib5/generate.py | 7abac724856713c9b47a14879f7a847d3b93ceb1 | [] | no_license | TZer0/web4sciapps | 40297ec4efd7bcad58514bfd891b6090eff7ff1f | cdcda068bbb44929a48d221410c635fa4d73da9c | refs/heads/master | 2021-01-22T08:59:27.682367 | 2014-09-23T11:45:05 | 2014-09-23T11:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from parampool.generator.flask import generate
from compute import compute_gamma
generate(compute_gamma, default_field='FloatField', enable_login=True)
| [
"hpl@simula.no"
] | hpl@simula.no |
1ac68e78d93c953c0944986d901463430077c9d2 | bcc4390952e8ddf257c1daa417bc06f1565e2346 | /source/ch01/sum2.py | 5109147e9a5e38a453c3b7a46c62401b2f56e02e | [
"MIT",
"GPL-3.0-only",
"GPL-1.0-or-later",
"LGPL-2.0-or-later"
] | permissive | AngelLiang/programming-in-python3-2nd-edition | 0ef80d4ba2cd096de1bb589dddf294c9d27c320c | 8f9a6ab6768a10e94daef641009288de6845245f | refs/heads/master | 2022-08-05T19:52:40.072130 | 2019-12-31T08:10:01 | 2019-12-31T08:10:01 | 230,700,866 | 1 | 0 | MIT | 2022-07-29T23:04:40 | 2019-12-29T04:09:05 | Python | UTF-8 | Python | false | false | 1,028 | py | #!/usr/bin/env python3
# Copyright (c) 2008-11 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | [
"pl01665077@163.com"
] | pl01665077@163.com |
14ee85625cc4b9860990a7d60e105505d91307b6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_262/ch40_2020_04_06_14_18_08_199463.py | 7f129ea01af99b351af41da08835bf5433118189 | [] | 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 | 96 | py | lista=[]
i=0
def soma_valores(lista):
while i<leng(lista):
i+=1
lista+=lista | [
"you@example.com"
] | you@example.com |
2efcc17f3e10fb0decca68df806443b7a7f44f08 | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Stack/largest_rectangle_in_histogram.py | 95c663a2b334ed2257f15635bc5dd2630ed6f5a4 | [] | 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 | 605 | py | class Solution:
def largestRectangleArea(self, heights: List[int]) -> int:
if not heights or len(heights) == 0:return 0
hist_len = len(heights)
stack = []
maxArea = 0
i = 0
while i <= hist_len:
h = 0 if i == hist_len else heights[i]
if not stac... | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
98399b23e71e050447773e5b3aafe81bf176c63a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03722/s716342934.py | e7c9f2de48ff64e451b266c19f1a41933248d364 | [] | 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 | 793 | py | import sys
input=sys.stdin.readline
n,m=map(int,input().split())
graph=[]
for _ in range(m):
a,b,c=map(int,input().split())
graph.append([a-1,b-1,-c])
def BellmanFord(n,m,graph):
costs=[float("inf")]*n
costs[0]=0
for _ in range(n-1):
for i in range(m):
if costs[graph[i][1]]>cost... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2428731975a9ea83206a64765f3ef4a9c41eb485 | 4472e40c53ca3e1df4f9e477a6268133309b7597 | /_unittests/ut_notebooks/test_LONG_2A_notebook_3B_correction.py | bdd5996c9425a33da74130e2fd6738e43642c400 | [
"MIT"
] | permissive | amoussoubaruch/ensae_teaching_cs | 289729742608da064f07a79b10cf6cce48de1b51 | 313a6ccb8756dbaa4c52724839b69af8a5f4476e | refs/heads/master | 2021-01-16T19:31:49.734583 | 2016-09-09T08:29:58 | 2016-09-09T08:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | """
@brief test log(time=620s)
notebook test
"""
import sys
import os
import unittest
try:
import src
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..")))
if path not... | [
"xavier.dupre@ensae.fr"
] | xavier.dupre@ensae.fr |
b248edbd3bfea1ed54561ee19f126b3ef7302301 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/twentyPercent/rank_1e96_D.py | 9dc7a74058ecda9aad5e9d179b6bcbbf0bea7a90 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
661f8b888e79a6f44694634cfd74115ed4dae3e8 | 3821860187e15a4235d541e7db510732c18212b0 | /tasks/views.py | fab3922931a2e2c9190ef6eba0db6b38369398da | [] | no_license | memadd/todo | 15fb5901a87b162bb793c0b9f4c73674e38bab8f | 3ed0acc15596964c50eca863b01fdddff7f5586d | refs/heads/master | 2021-04-02T18:33:27.582092 | 2020-03-31T22:18:29 | 2020-03-31T22:18:29 | 248,308,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from .models import *
from .forms import *
# Create your views here.
def index(request):
tasks = Task.objects.all()
form = TaskForm()
if request.method == 'POST':
form = TaskForm(request.POST)
if form.is_va... | [
"memad632@gmail.com"
] | memad632@gmail.com |
f9169b2aac3ad5c32eb0cb07c38f5fe71fefbb5f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_205/ch84_2020_04_07_23_54_12_724713.py | 4c822726ed79558cc3825e318a52fc3229b76091 | [] | 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 | 174 | py | def inverte_dicionario (dic):
inverte = {}
for chave in dic.keys():
for valores in dic.values():
inverte[valores]=dic[valores]
return inverte | [
"you@example.com"
] | you@example.com |
76459a2392101ae49b4a1efd11c83b37c7c40025 | ef3ac1664accfe2f4f28800cb3dde383d04e2636 | /max possible score.py | 65c014f4f77dfe2708045c18bbc0c6484be1475d | [] | no_license | Shamabanu/python | 2466b253ead7249147844e22ede9017a2ffb299a | 76350525586b285773edb58912c1ba8eee35d1a6 | refs/heads/master | 2020-03-27T15:45:09.838053 | 2019-08-14T15:06:18 | 2019-08-14T15:06:18 | 146,736,750 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | def fac(c1,c2):
k=1
for m in range(c2+1,c1+1):
k*=m
return k
t=int(input())
ab=[]
for m in range(t):
ab.append(list(map(int,input().split())))
for j in ab:
n=fac(j[0],j[1])
c=0
while n>1:
x=2
while x<n+1:
if n%x==0:
n=n/x
c+=1
break
x+=1
print(c)
| [
"noreply@github.com"
] | Shamabanu.noreply@github.com |
32bc769627d10487455c81d6d3378ced34473b01 | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/networksecurity/v1beta1/tls_inspection_policy.py | 5ddbde955427cf65f6378ab8c8e4a45b0d9f96d9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 12,904 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
540ddc515614afa96a6c6e81efdcad3a4d539484 | 4feaf520374804d6f3feebe3700fb448692a44ba | /pullenti/ner/org/internal/OrgItemNumberToken.py | 9a6de49d739833dc981c94e92e6055a792890f6b | [] | no_license | MihaJjDa/APCLtask | f7be3fb6b0f31801196bf779f6a7e62ce245493b | 4745b45e199887d433ab256bb2e2ebf5dbe3f7cd | refs/heads/master | 2020-04-16T17:15:10.846647 | 2020-02-24T16:06:43 | 2020-02-24T16:06:43 | 165,769,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | # Copyright (c) 2013, Pullenti. All rights reserved. Non-Commercial Freeware.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project (www.pullenti.ru).
# See www.pullenti.ru/downloadpage.aspx.
from pullenti.unisharp.Utils import Utils
from pullenti.ner.Token... | [
"danila.puchkin@mail.ru"
] | danila.puchkin@mail.ru |
9fe80f0e87dfc1126fed1e23de9636b732dc37f6 | 2090b6b92d5cada89504de548b14f9c729856606 | /visualize/gmt/helpers/generate_gmt_station_list.py | a08d5762939b547fbd2afd76dd6ba239210ef41b | [] | no_license | ziyixiArchive/Japan_Slab_code | 4f6a366889278ad499971cf1132591b9029c0f8c | 4cb19939e45739faee7a8b6ec3d3a5da4549a108 | refs/heads/master | 2022-03-14T18:11:47.768695 | 2019-12-17T21:48:32 | 2019-12-17T21:48:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | import numpy as np
import click
CEA_NETWORKS = ["AH", "BJ", "BU", "CQ", "FJ", "GD", "GS", "GX", "GZ", "HA", "HB", "HE", "HI", "HL", "HN",
"JL", "JS", "JX", "LN", "NM", "NX", "QH", "SC", "SD", "SH", "SN", "SX", "TJ", "XJ", "XZ", "YN", "ZJ"]
@click.command()
@click.option('--stations_file', required=Tr... | [
"xiziyi@msu.edu"
] | xiziyi@msu.edu |
a212d11a29b6161c29d2539135a62e3803d7c7ca | 3f09e77f169780968eb4bd5dc24b6927ed87dfa2 | /src/Problems/Binary_Tree_Maximum_Path_Sum.py | cf6ee11ab89c3fc0ae2de014dbe7b1d837f3788f | [] | no_license | zouyuanrenren/Leetcode | ad921836256c31e31cf079cf8e671a8f865c0660 | 188b104b81e6c73792f7c803c0fa025f9413a484 | refs/heads/master | 2020-12-24T16:59:12.464615 | 2015-01-19T21:59:15 | 2015-01-19T21:59:15 | 26,719,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | '''
Created on 21 Nov 2014
@author: zouyuanrenren
'''
'''
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,
1
/ \
2 3
Return 6.
'''
'''
The idea is simple:
1. for each node, there are 4 paths that includ... | [
"y.ren@abdn.ac.uk"
] | y.ren@abdn.ac.uk |
55865bd610510d6adfb96a2195797860ebd21aa2 | a46fc5187245f7ac79758ae475d4d865e24f482b | /211_add_and_search_word/add_word.py | 10752d7d4f827bc56950070c27b991981c6095a3 | [] | no_license | narnat/leetcode | ae31f9321ac9a087244dddd64706780ea57ded91 | 20a48021be5e5348d681e910c843e734df98b596 | refs/heads/master | 2022-12-08T00:58:12.547227 | 2020-08-26T21:04:53 | 2020-08-26T21:04:53 | 257,167,879 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | #!/usr/bin/env python
class Node:
def __init__(self):
"""
Prefix tree node
@children: child nodes
"""
self.children = 26 * [None]
self.is_end = False
class WordDictionary:
def __init__(self):
"""
Initialize your data structure here.
""... | [
"farruh1996@gmail.com"
] | farruh1996@gmail.com |
87d22d165b6db77ed6dce9c200bbaaa6eb4f752f | 6b85910d57ad533b887a462082084dcef8e42bd8 | /cifar10_brn_mode_2.py | 004cf3feedfaebbd57caf7ffea8a3b1a5f0d4db3 | [] | no_license | ml-lab/BatchRenormalization | 49137cb7457f27807524500bee422c085a2fb4e8 | fdd1cd2c0da0f6105ad29852969630abeb4890c7 | refs/heads/master | 2020-05-29T21:03:29.698663 | 2017-02-20T22:31:21 | 2017-02-20T22:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | import numpy as np
import json
import keras.callbacks as callbacks
from keras.datasets import cifar10
import keras.utils.np_utils as kutils
from keras import backend as K
from wrn_renorm import WideResidualNetwork
batch_size = 128
nb_epoch = 100
img_rows, img_cols = 32, 32
(trainX, trainY), (testX, testY) = cifar10... | [
"titu1994@gmail.com"
] | titu1994@gmail.com |
ba8acff9e53924815b665296b189e9c5a48a1694 | cb99ba5b850e5667166c9a7b318ab09f28a50da3 | /wxchat/decorators.py | f43b23f05028c480d7b5ff78d40110cb97151d10 | [] | no_license | malx927/kele | 3831714eb6335e6fb2b05d463e4c7875aa87de2b | 542b412e9e9859b03d47d289a9069b9262289897 | refs/heads/master | 2022-12-02T13:29:57.174259 | 2021-07-11T13:26:00 | 2021-07-11T13:26:00 | 130,623,335 | 0 | 1 | null | 2022-11-22T02:28:55 | 2018-04-23T01:21:14 | HTML | UTF-8 | Python | false | false | 2,631 | py | #-*-coding:utf-8-*-
import json
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import get_object_or_404
from wxchat.models import WxUserinfo
__author__ = 'malxin'
from django.conf import settings
from wechatpy.oauth import WeChatOAuth
def weixin_decorator(func):
def wrapper(reque... | [
"5971158@qq.com"
] | 5971158@qq.com |
4d0139920a8802766a558ba8a6027cb12a1d4cda | 589fa0b489269a87b577874423dc1bc1a7662e47 | /examples/processing_flipped/plot_general_org.py | 58e97dd954c36474f719e8106e9207acc681c41c | [] | no_license | rjonnal/octoblob | fa15ad5fc0384b9a73175d5b064f10bca8b60766 | 680cd0cb3d8da47726d46c1285ff0ebd215cec6f | refs/heads/main | 2023-07-21T03:21:16.333278 | 2023-07-12T14:29:33 | 2023-07-12T14:29:33 | 327,063,294 | 4 | 1 | null | 2021-09-25T16:02:35 | 2021-01-05T16:58:10 | Jupyter Notebook | UTF-8 | Python | false | false | 16,081 | py | from matplotlib import pyplot as plt
import numpy as np
import sys,os,glob,shutil
import logging
import octoblob.functions as blobf
import octoblob.org_tools as blobo
import pathlib
plt.rcParams["font.family"] = "serif"
plt.rcParams["font.size"] = 9
# The index of the processed ORG blocks at which the stimulus was del... | [
"rjonnal@gmail.com"
] | rjonnal@gmail.com |
0b18106e68e7b8b158f4ee65cfb171cec8fa86ad | 886a374cc162a64f8a1f68548e7229b0354d232a | /pandajedi/jedisetup/GenTaskSetupper.py | e84219873e9314f9bf8257e191b09ff834f8b641 | [
"Apache-2.0"
] | permissive | pavlo-svirin/panda-jedi | f6cf9a4ddbb4d1525ad08de5167cf97a5f82f6a5 | 635dfbd38d85ebc8f837b06cbea1203daf291a71 | refs/heads/master | 2020-03-23T10:54:34.911666 | 2017-02-15T22:52:42 | 2017-02-15T22:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | from pandajedi.jedicore.MsgWrapper import MsgWrapper
from pandajedi.jedicore import Interaction
from TaskSetupperBase import TaskSetupperBase
# logger
from pandacommon.pandalogger.PandaLogger import PandaLogger
logger = PandaLogger().getLogger(__name__.split('.')[-1])
# task setup for general purpose
class GenTaskS... | [
"tmaeno@bnl.gov"
] | tmaeno@bnl.gov |
0ee9c877642b14ad79d684f02024646632c5e64e | 62edb9b550ef41899e8d80edbd72fc66898c37b8 | /swagger_client/models/linked_artifact.py | 17552248e7be92499bab954997a82fed56eb415f | [
"Apache-2.0"
] | permissive | isabella232/qtest-swagger-client | 6a5575655b8af16f25fdde1eef056fec1c128081 | 28220aa95d878922ca4b35c325706932adabea4e | refs/heads/master | 2023-07-11T00:50:27.980979 | 2018-06-20T15:48:02 | 2018-06-20T15:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,941 | py | # coding: utf-8
"""
qTest Manager API Version 8.6 - 9.1
qTest Manager API Version 8.6 - 9.1
OpenAPI spec version: 8.6 - 9.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class LinkedArtifa... | [
"ryan.gard@rackspace.com"
] | ryan.gard@rackspace.com |
481ad6fb62ef15a1ee98f3b5f4350de4a9dcbd52 | 978c9a1dd27a30b32eceed7f1518a26292695891 | /python/2021/other/weather_api.py | f0b71270fdf2f0517f792a8c2216904cb24f3455 | [] | no_license | detcitty/100DaysOfCode | 4da3407bdc4170f9d042f49e6c94a8469f8808f5 | a3d989ea56491f89ece5191d5246166ca01d2602 | refs/heads/master | 2023-08-09T04:45:51.842305 | 2023-07-21T17:02:08 | 2023-07-21T17:02:08 | 178,976,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import os
import requests
import json
KEY = os.getenv('AQS_API_KEY')
EMAIL = os.getenv('MY_EMAIL')
print(KEY)
url = ' https://aqs.epa.gov/data/api/moniters/bySite'
params = {
'email': EMAIL,
'key': KEY,
'param': 'ALL',
'bdate': 20210101,
'edate': 20210214,
'state': 49,
'county': 35,
'... | [
"devin.etcitty@gmail.com"
] | devin.etcitty@gmail.com |
ed90d21b756c2faab22171990cb6be9c38c4d785 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/0e16a5f3ee9b8c7e931b860f7790ea9a6197651b-<install>-bug.py | cf7b852b3186bff51a0088e47a08ccab0dae2941 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,338 | py | def install(self):
if self.scm:
tmp_file = RoleRequirement.scm_archive_role(**self.spec)
elif self.src:
if os.path.isfile(self.src):
tmp_file = self.src
elif ('://' in self.src):
role_data = self.src
tmp_file = self.fetch(role_data)
else:
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
d3878e2d9c6758ee16ae2176a95d594c2e3238eb | 0ee88932af5b6ed088e471abcbd5f40fd9cbd688 | /Course/Book/Programmer_avec_Python3/8-Tkinter/attractionclic.py | 0e6e7adc9081b4ab66e95a67b4f2a1cbe9c66bd3 | [] | no_license | BjaouiAya/Cours-Python | 48c740966f9814e1045035ffb902d14783d36194 | 14b306447e227ddc5cb04b8819f388ca9f91a1d6 | refs/heads/master | 2021-06-10T22:17:38.731030 | 2016-11-11T16:45:05 | 2016-11-11T16:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,009 | py | #! /usr/bin/env python
# -*- coding:Utf8 -*-
"PROGRAMME AUTOUR DE L'ATTRACTION TERRESTRE AVEC CLIC"
################################################################
############# Importation fonction et modules : ################
################################################################
from tkinter impor... | [
"jeremybois@rocketmail.com"
] | jeremybois@rocketmail.com |
e4372895558b92f7d1ddbfcd05f7e499895a365c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ZrAnDiPTbmrJMHWHD_2.py | 8cb0011d67307bc9cdcc8ae01162e02aabe29868 | [] | 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 | 71 | py |
def is_central(txt):
return len(txt)%2 and txt[len(txt)//2] != ' '
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fbb9cca9d323db892b0cf407f976508f8e25e925 | 7c73ae5308f16030de337e2ad6dc30ac3f4a6d05 | /动态规划/背包问题.py | f1bccd5dbdd11c3581e2c1b56352eae39701c2aa | [] | no_license | pol9111/algorithms | c2508470e4e8c46f4368411a9614adbb210cfa33 | 4bd5d8cb3db9d15c23ebf217181a5f54c00c1687 | refs/heads/master | 2023-06-07T20:47:33.200001 | 2023-05-27T16:50:24 | 2023-05-27T16:50:24 | 150,764,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py |
# 这里使用了图解中的吉他,音箱,电脑,手机做的测试,数据保持一致
w = [0, 1, 4, 3, 1] #n个物体的重量(w[0]无用)
p = [0, 1500, 3000, 2000, 2000] #n个物体的价值(p[0]无用)
n = len(w) - 1 #计算n的个数
m = 4 #背包的载重量
x = [] #装入背包的物体,元素为True时,对应物体被装入(x[0]无用)
v = 0
#optp[i][j]表示在前i个物体中,能够装入载重量为j的背包中的物体的最大价值
optp = [[0 for col in range(m + 1)] for raw in range(n + 1)]
... | [
"biscuit36@163.com"
] | biscuit36@163.com |
b71cfdda577fac6fe368c3a6dae442d8a5020cd7 | d77f44f98f695a3bdb00f021ad2e685483b032c5 | /examples/plot_events.py | f47d98975f040e2e7d60c3d51cd76512b703b869 | [
"MIT"
] | permissive | thomasgas/pyeventio | d8d5df32f8f644b7f8877ba370d3c5179bef58a8 | 0edfb05b56ed3a3e8a37c0292cede90598464b8f | refs/heads/master | 2020-04-21T21:59:11.105773 | 2019-04-29T16:04:51 | 2019-04-29T16:04:51 | 169,896,133 | 0 | 0 | MIT | 2019-02-09T18:01:11 | 2019-02-09T18:01:10 | null | UTF-8 | Python | false | false | 2,319 | py | import matplotlib.pyplot as plt
import numpy as np
from argparse import ArgumentParser
from functools import lru_cache
import astropy.units as u
from ctapipe.instrument import CameraGeometry
from ctapipe.visualization import CameraDisplay
from eventio.simtel import SimTelFile
parser = ArgumentParser()
parser.add_a... | [
"maximilian.noethe@tu-dortmund.de"
] | maximilian.noethe@tu-dortmund.de |
6aecda70e197f8b3c3b83e2030bc806ffecc4a41 | 6b96a11195094a0023a059ba7d5df95ce58c56f1 | /1359A.py | 643057f4f600e4de77f8dcee5062457fd853ebad | [] | no_license | ldfdev/CodeForces-Div2-Problems | d932b09ee14a430fd0054d5b295f6016553be2b7 | d18824a4330a4593099d249496ae22f3f69d5f44 | refs/heads/master | 2021-08-11T03:29:18.772870 | 2021-07-25T07:21:09 | 2021-07-29T20:09:43 | 72,371,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | def inp():
return list(map(int, input().split()))
def solve():
[cards, jokers, players] = inp()
if jokers == 0:
return 0
if cards == jokers:
return 0
lucky_player = cards // players
if jokers <= lucky_player:
return jokers
jokers -= lucky_player
if jokers % (play... | [
"ldf.develop@gmail.com"
] | ldf.develop@gmail.com |
a63c46202902cccf5d5730aa9ac77f7507d7dcc0 | eb8b5cde971573668800146b3632e43ed6e493d2 | /python/oneflow/__init__.py | c1901dd47d9c56cd52c5bf7dbb18b6f8b11b23b7 | [
"Apache-2.0"
] | permissive | big-data-ai/oneflow | 16f167f7fb7fca2ce527d6e3383c577a90829e8a | b1c67df42fb9c5ab1335008441b0273272d7128d | refs/heads/master | 2023-07-08T21:21:41.136387 | 2021-08-21T11:31:14 | 2021-08-21T11:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,613 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | big-data-ai.noreply@github.com |
20d726181454b0925c0dcdf3fe3d16da11d1069b | 5d5f6ba3bdcb52b4750a5f28afa8a1a1019bfc9e | /django/django_orm/booksAuthorsProject/booksAuthorsProject/wsgi.py | 11e09c9106d25e8c452ba88b489cac236a2e5054 | [] | no_license | eDiazGtz/pythonLearning | 06e96f2f5a6e48ac314cb815cf9fbf65d0b7c2c8 | 57d7b2292cf5d9769cce9adf765962c3c0930d6c | refs/heads/master | 2023-06-18T02:16:09.293375 | 2021-05-03T18:09:52 | 2021-05-03T18:09:52 | 335,090,531 | 0 | 0 | null | 2021-05-03T18:09:53 | 2021-02-01T21:35:24 | Python | UTF-8 | Python | false | false | 415 | py | """
WSGI config for booksAuthorsProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"ediaz-gutierrez@hotmail.com"
] | ediaz-gutierrez@hotmail.com |
40e2766769fe9bdd5d32877358a272fe431cd3a1 | 57ddfddd1e11db649536a8ed6e19bf5312d82d71 | /AtCoder/ABC1/ABC111/ABC111B.py | b38776b4863a4119930f4829db45f2d7a6cebc99 | [] | no_license | pgDora56/ProgrammingContest | f9e7f4bb77714dc5088c2287e641c0aa760d0f04 | fdf1ac5d1ad655c73208d98712110a3896b1683d | refs/heads/master | 2023-08-11T12:10:40.750151 | 2021-09-23T11:13:27 | 2021-09-23T11:13:27 | 139,927,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | N = int(input())
for i in range(N, 1000):
if i % 111 == 0:
print(i)
exit(0) | [
"doradora.prog@gmail.com"
] | doradora.prog@gmail.com |
7ad767b1b94d4c9a1df15c7bfc4abe595a0b2a13 | 325bee18d3a8b5de183118d02c480e562f6acba8 | /taiwan/italy/start.py | a394a4bb37e379ca7be1a371406ca0376d18a494 | [] | no_license | waynecanfly/spiderItem | fc07af6921493fcfc21437c464c6433d247abad3 | 1960efaad0d995e83e8cf85e58e1db029e49fa56 | refs/heads/master | 2022-11-14T16:35:42.855901 | 2019-10-25T03:43:57 | 2019-10-25T03:43:57 | 193,424,274 | 4 | 0 | null | 2022-11-04T19:16:15 | 2019-06-24T03:00:51 | Python | UTF-8 | Python | false | false | 1,038 | py | import os
"""
taiwanlistzh下载台湾中文列表,已做更新功能
taiwanlisten下载台湾英文列表,已做更新功能
info_enAll首次存量下载台湾英文基本信息
info_en为下载台湾增量基本信息而生
以下若要更新需覆盖
taiwanFileAllv3下载英文财报,原网站最新只到2018年3月份
info_zhAll下载中文基本信息:"重要子公司基本資料","重要子公司異動說明", "被投資控股公司基本資料" (文件)
info_zh下载中文基本信息:"公司基本資料" (格式化)
info_zh2下载中文基本信息:"歷年變更登記"(文件) 需要界面化才能获取数据,需要windows系统
"""
... | [
"1370153124@qq.com"
] | 1370153124@qq.com |
7053c848762cc8136391eac6e9c9e13ff7da84f8 | 5f12ba23f879bc96a20ae46aa882be7fbdcbee1d | /sfftk/core/configs.py | 07ab77eae08f2814c65e4e38532e898fd5094f96 | [
"Apache-2.0"
] | permissive | RosaryYao/sfftk | 41a3e33291394b20b96a1d2a19822be51300f4ee | 46e0890d6773bf3482b8e6b3dfe994417af00649 | refs/heads/master | 2022-08-25T19:39:22.513846 | 2020-05-27T08:53:51 | 2020-05-27T08:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,980 | py | # -*- coding: utf-8 -*-
"""
``sfftk.core.configs``
======================
This module defines classes and functions to correctly process persistent
configurations. Please see the :doc:`guide to miscellaneous operations <misc>`
for a complete description of working with configs.
"""
from __future__ import print_functio... | [
"pkorir@ebi.ac.uk"
] | pkorir@ebi.ac.uk |
5b240e6a01eaaca3b6de4c49d75c041e4867cf3e | 6d1df0707865398d15f508390ca595215210b504 | /xmonad/poll_weather.py | 0d9a3c2243aa6bfa26632e7e321d24e34684e44b | [] | no_license | supermiiiiii/scripts | 94a27741432c40781b3d577334e72f73f1efb914 | 524de087175d2e8b7e3adeacdd648fed9e07e204 | refs/heads/master | 2023-02-24T19:15:38.888248 | 2021-01-30T14:49:49 | 2021-01-30T14:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,351 | py | """Writes a weather report to some bar using a FIFO."""
import datetime as dt
import re
import subprocess as sp # noqa: F401
import sys
import time
from typing import NamedTuple, Optional, Sequence
import gutils
from gutils.io import eprint
from loguru import logger as log
@gutils.catch
def main(argv: Sequence[str... | [
"bryanbugyi34@gmail.com"
] | bryanbugyi34@gmail.com |
3e063e740006b9aab8f0c31edc73a70926e13dd6 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eve/client/script/ui/station/fitting/minihangar.py | 1990c0fe486beccfd0fdcb8e5e6616770fb04410 | [] | 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 | 7,161 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\station\fitting\minihangar.py
from carbonui.primitives.container import Container
from carbonui.primitives.fill import Fill
from eve.client.script.ui.shared.fitting.fittingStatsChanges import FittingStatsChanges
fro... | [
"le02005@163.com"
] | le02005@163.com |
7f330b9f70088b20251a7e199f7b97aeee3e03db | 81e302a2fe2035d13710d6aa9b13fb763dcf8fa4 | /chapter4/create_table_02.py | b661782e443bcadfeb96ee328a3d727d0a3d1fd2 | [] | no_license | liuyuzhou/databasesourcecode | 8a76099efc86292b1449c3a84b35ba02398bcbe9 | 1f3ad5f27d194c2aa88fa8cb39c6ae92ee3d1f1f | refs/heads/master | 2021-07-18T06:18:28.538719 | 2021-07-03T01:56:58 | 2021-07-03T01:56:58 | 250,950,207 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
# 声明映射
Base = declarative_base()
# 定义Course对象,课程表对象
class Course(Base):
# 表的名字
__tablename__ = 'course'
id = Column(Integer, primary_key=True)
course_name = Column(String(20), default=No... | [
"jxgzyuzhouliu@163.com"
] | jxgzyuzhouliu@163.com |
32522a5eab011726780f8c979c342377bbfb2563 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/delegatednetwork/v20210315/get_orchestrator_instance_service_details.py | c397fabf8aef2763a3d0ef27c19eabb3382a5577 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 9,884 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
829ec35d9450bf7dddf39940d17e80553d22d4b8 | fd529ba6ade52cd2a3dab94da01252d7ea90398d | /zerojudge/b130.py | aed6f2b48f8d15ee266fb51fd69118bdc7533a8d | [] | no_license | fjfhfjfjgishbrk/AE401-Python | 4a984deb0281542c205d72695285b35c7413338f | ee80fa4588b127cff2402fd81e732ede28a66411 | refs/heads/master | 2022-06-13T13:49:39.875567 | 2022-05-28T12:40:51 | 2022-05-28T12:40:51 | 251,178,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 27 11:16 2020
@author: fdbfvuie
"""
while 1:
try:
input()
a = [int(i) for i in input().split()]
a = list(dict.fromkeys(a))
a.sort()
print(len(a))
print(" ".join([str(i) for i in a]))
except:
... | [
"59891511+fjfhfjfjgishbrk@users.noreply.github.com"
] | 59891511+fjfhfjfjgishbrk@users.noreply.github.com |
b8abb10ab99545daf4c9bf1ff199c941fd73e82e | 6cd3de9d6aa0c52602010aa857966d5dc4d57442 | /_unittests/ut_testing/data/plot_anomaly_comparison.py | 81f4f31d3c39d1702e592d94d0ac07921367ed62 | [
"MIT"
] | permissive | xadupre/mlprodict | 2307ca96eafeeafff08d5322184399bb5dc1c37e | f82c8a26a60104948c67849b1c4af95ca812c153 | refs/heads/master | 2022-12-10T18:50:36.953032 | 2020-09-03T08:53:58 | 2020-09-03T08:53:58 | 292,824,744 | 1 | 0 | NOASSERTION | 2020-09-04T10:56:45 | 2020-09-04T10:56:44 | null | UTF-8 | Python | false | false | 3,372 | py | import time
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from sklearn import svm
from sklearn.datasets import make_moons, make_blobs
from sklearn.covariance import EllipticEnvelope
from sklearn.ensemble import IsolationForest
from sklearn.neighbors import LocalOutlierFactor
matplotlib.rcParam... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
a756e899283617e6565cb60bca961f619d739868 | e95f65f1e320e56306c4442329b756fdd6ed00fa | /docs/conf.py | 895973e0dc0a1a87a40edc0bfeedfb11f8ec6bf3 | [
"Apache-2.0",
"MIT"
] | permissive | 0xflotus/CUP | 3a808248126a9ef8d3436a1aadf2384fcb869acb | 5e4330cb2e4ccdc67ad94f0084e745eed6f96d6b | refs/heads/master | 2020-03-31T06:08:29.823081 | 2018-09-30T13:32:23 | 2018-09-30T13:32:23 | 151,969,632 | 0 | 0 | NOASSERTION | 2018-10-07T17:56:57 | 2018-10-07T17:56:57 | null | UTF-8 | Python | false | false | 5,882 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"mythmgn@gmail.com"
] | mythmgn@gmail.com |
afe4f56aa89d5c27d8f6f060faf8558ce119f33e | ac7b9717ee65f1c09ae50aa17463ae508bc92164 | /cristianoronaldoyopmailcom_332/urls.py | ee3a8f7f327dbfd2c0392a5553da9f262e9970ef | [] | no_license | payush/cristianoronaldoyopmailcom-332 | c4fd53c39130d987d49ac0abc499e481580360b0 | f9100561da0dc9163b6377afb630e84e888023ac | refs/heads/master | 2020-03-23T19:18:46.561459 | 2018-07-23T05:58:41 | 2018-07-23T05:58:41 | 141,968,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | """cristianoronaldoyopmailcom_332 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
a1605ab46f979a8f2dccfce926267377f4662068 | 3670f46666214ef5e1ce6765e47b24758f3614a9 | /oneflow/python/test/ops/test_summary.py | abfbb915308413ee0f84e72659ac02d44f959708 | [
"Apache-2.0"
] | permissive | ashing-zhang/oneflow | 0b8bb478ccd6cabea2dca0864defddab231919bf | 70db228a4d361c916f8f8d85e908795b479e5d20 | refs/heads/master | 2022-12-14T21:13:46.752535 | 2020-09-07T03:08:52 | 2020-09-07T03:08:52 | 293,535,931 | 1 | 0 | Apache-2.0 | 2020-09-07T13:28:25 | 2020-09-07T13:28:24 | null | UTF-8 | Python | false | false | 6,006 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | ashing-zhang.noreply@github.com |
946f16bbbb68b0e88e2045b3bbb65935e136bcb4 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/invert_test.py | 8b14c8327f08902044f50483f9f8dfe67b58cd70 | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 3,534 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
dc95b43f050b1a562cd5b337aa8b009fa051bb29 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_43/223.py | e3f471696da9db5f1e2d23a13dbcff77e5f7668f | [] | 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 | 2,509 | py | #!/usr/bin/python
import os
import sys
import math
def read_input_NN(fn =""):
fh = open(fn, "r")
lines = map(lambda x: x.strip(), fh.readlines())
fh.close()
goog_N = map(int, lines[0].split())[0]
l_dict = lines[1:]
return(l_dict)
def sum_square(str1="123"):
sum1 = 0
for i in str1:
sum1 += int(i)*... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
aceb95c7fc2ae2e177bc60e8453b07a43eacbd83 | 2871a5c3d1e885ee72332dbd8ff2c015dbcb1200 | /o2despy/demos/demo2/demo2.py | 46c6865ce1c61201973f24e6aaf3a88ccd687044 | [
"MIT"
] | permissive | huawei-noah/noah-research | 297476299ad040552e44656541858145de72d141 | 82c49c36b76987a46dec8479793f7cf0150839c6 | refs/heads/master | 2023-08-16T19:29:25.439701 | 2023-08-14T03:11:49 | 2023-08-14T03:11:49 | 272,853,727 | 816 | 171 | null | 2023-09-12T01:28:36 | 2020-06-17T01:53:20 | Python | UTF-8 | Python | false | false | 2,379 | py | # Copyright (C) 2022. Huawei Technologies Co., Ltd. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to us... | [
"noreply@github.com"
] | huawei-noah.noreply@github.com |
68d4ffaec3b27b725bd05a50989f1f215328c4b8 | 5f69a6549b8d5e417553d910622e6855b2ae679b | /projects/python/simulation/synthetic_multi_view_facial_image_generation/algorithm/Rotate_and_Render/models/networks/architecture.py | 123004ef5239c4420d42105dbf720eb77c14adc4 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | permissive | opendr-eu/opendr | 822219f709613d77c5eb62c5d02808d344239835 | b3d6ce670cdf63469fc5766630eb295d67b3d788 | refs/heads/master | 2023-08-31T07:02:36.375231 | 2023-08-29T06:39:51 | 2023-08-29T06:39:51 | 293,755,225 | 535 | 82 | Apache-2.0 | 2023-09-13T16:53:34 | 2020-09-08T08:55:04 | Python | UTF-8 | Python | false | false | 7,410 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torch.nn.utils.spectral_norm as spectral_norm
from .normalization import SPADE
from ...util import util
# ResNet block that uses SPADE.
# It differs from the ResNet block of pix2pixHD in that
# it takes in the segmentation ma... | [
"noreply@github.com"
] | opendr-eu.noreply@github.com |
726f81a2bbf5d4b11fa85cab9560e8742992fb7b | a0e895ec31d4b376c50e203b7a9c018c288d3287 | /hw2/random_sample_predict.py | ec22bad40ae53aa43ff9832041f1914c7f47e3ff | [] | no_license | eiahb3838ya/2018_ntu_machine_learning | 43c3885c6175c0f753d9597732b59986234c8360 | 256cfa806dc403dcc1b5eb51317cf4972de28787 | refs/heads/master | 2020-04-17T16:32:17.417827 | 2019-01-21T03:54:43 | 2019-01-21T03:54:43 | 166,744,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 25 15:50:15 2018
@author: eiahb
"""
#import scipy,pprint
#from pprint import pprint
import numpy as np
import pandas as pd
#import matplotlib.pyplot as plt
#from sklearn.metrics import log_loss
#import datetime
from my_class.common_function import *
from imblearn.over_sa... | [
"eiahb3838ya@gmail.com"
] | eiahb3838ya@gmail.com |
6616f04e1e77a286e4ed8db783e1a8baec073a2c | c008898bf1adbba7110e0747343adbb3b01fc6c1 | /schema.py | e9c598f65df574c60c7bc23db3b509a9ea51aa43 | [] | no_license | gloompi/python-graphql | 45368fb3130dfc7d5e38614c59e638bb713706ee | 29ca5859027029f625196d13e232d3337f64ca36 | refs/heads/master | 2022-12-15T19:22:51.001813 | 2019-06-28T07:53:25 | 2019-06-28T07:53:25 | 194,230,911 | 0 | 0 | null | 2022-12-10T01:36:39 | 2019-06-28T07:46:37 | Python | UTF-8 | Python | false | false | 2,127 | py | import graphene
import json
import uuid
from datetime import datetime
class Post(graphene.ObjectType):
title = graphene.String()
content = graphene.String()
class User(graphene.ObjectType):
id = graphene.ID(default_value=str(uuid.uuid4()))
username = graphene.String()
created_at = graphene.DateT... | [
"gloompi@gmail.com"
] | gloompi@gmail.com |
d869097b1775e96d604c69bdde7348b1eb27b9c8 | ec35df4cc4543f20bd6a1d30f244f67873ecd261 | /045.py | ef73f81e6668900eb23328f490879352303165db | [] | no_license | timsergor/StillPython | 02b6ddc3226cf8d27d8575ca36e75a19cfe6ac9d | 84b3b37bc165b9daf83cca78d577b5a927e483ec | refs/heads/master | 2020-05-24T09:34:14.819413 | 2020-04-19T13:35:06 | 2020-04-19T13:35:06 | 187,209,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | #202. Happy Number. Easy. 46%.
#Write an algorithm to determine if a number is "happy".
#A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or... | [
"noreply@github.com"
] | timsergor.noreply@github.com |
5d53f962fa73efe64ff7649b6cb54f2d621d15f5 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_7862.py | ece14e6c8a8431fc93ce412ed9641490c5d9c4fa | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | # python26.dll was not found
Py2.6
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
a78d1316c681b645f01cafd9966a4bb424491802 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03660/s310524772.py | 3b5afbbf4eb0c248015cdabad9bc34a06be65a3e | [] | 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 | 956 | py | N=int(input())
E=[[] for i in range(N)]
for i in range(N-1):
x,y=map(int,input().split())
x-=1
y-=1
E[x].append(y)
E[y].append(x)
from collections import deque
BACK=[-1]*N
Q=deque([0])
while Q:
x=Q.pop()
for to in E[x]:
if BACK[to]==-1:
BACK[to]=x
Q.appe... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
81b8771788890aa2f6794dde1f7552b4c07a80cd | b9b06d86d43e738b62ab9289fc13aae4c2b2670b | /weekend1/py0102/for1.py | 1f39b536774af0ab4e720cc81ddfe41afd787886 | [] | 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 | 550 | py | astr = 'tom'
alist = [10, 20]
atuple = ('tom', 'jerry')
adict = {'name': 'tom', 'age': 20}
# for ch in astr:
# print(ch)
#
# for i in alist:
# print(i)
#
# for name in atuple:
# print(name)
#
# for key in adict:
# print(key, adict[key])
# range函数
print(range(10))
print(list(range(10)))
for i in range... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
4499443d25983a3ebaa681cf359a318a7170d7ea | 845d4102771a547dbc447f1d837b89a538f977b7 | /exerciciosComCondicionais/A_CONDICIONAIS/02A_EX12.py | 66f50bc2221fc6508059fec4ac2c14b7d8b00b06 | [] | no_license | TemistoclesZwang/Algoritmo_IFPI_2020 | 16e92d6f3e5e3f15ad573819cbd0171c5a5e3f5d | cc24657864985c3894ab738692807a01eab8d377 | refs/heads/main | 2023-08-23T02:57:58.838585 | 2021-10-05T16:18:14 | 2021-10-05T16:18:14 | 310,669,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #12. Leia 1 (um) número inteiro e escreva se este número é par ou impar.
def main():
numero = int(input('Insira um número: '))
verificar(numero)
def verificar(numero):
if int(numero) % 2 == 0:
print ('É par')
else:
print ('É impar')
main()
| [
"temis2st@gmail.com"
] | temis2st@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.