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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a88cfaa02147af2d4e9a9f901fab67947ec201d2 | 5ae4faed34e12607930cf7294f0a4a1b3fe484d7 | /code/047 Permutations II.py | c370b88b93bae1927e4f8b719af0f8aaca7bdf59 | [
"MIT"
] | permissive | Hehwang/Leetcode-Python | 9c09ee838699fea471bda9a694c0248073dfa3fb | 1e53d6575143aac2ea8424f3f4830f1b1eb0aaee | refs/heads/master | 2022-03-27T12:42:44.089866 | 2020-01-08T07:44:12 | 2020-01-08T07:44:12 | 105,106,700 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | class Solution(object):
def __init__(self):
self.res=[]
def helper(self,nums,tmp,n):
if len(tmp)==n:
self.res.append(tmp)
else:
for i in range(len(nums)):
if i<len(nums)-1 and nums[i]==nums[i+1]:
continue
self.he... | [
"565182282@qq.com"
] | 565182282@qq.com |
721b54483babb17345c84e36c558af4893d1ec2c | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/bashtage_arch/arch-master/arch/utility/__init__.py | 019a582c66b76fc89e9db1720e135c071e94a6a3 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 46 | py | from .cov import cov_nw
__all__ = ['cov_nw']
| [
"659338505@qq.com"
] | 659338505@qq.com |
caa2cc2adc12a531e80a09588ce21e636a1a8a10 | 9c2ba4f1a2d75b1916e6f20fa95c5fb32d0497d9 | /ScrapingWithPython2/code/scrapy/todayMovie/todayMovie/settings.py | 06f3d3814d4b4b4927b248bdc02a40b4ccda9c47 | [] | no_license | PowerDG/DgCoreInit | abe4b15e38b730c25424f71e6927db982af27a72 | 84e6b7833ddc083b90fcc172c3812dd6f8b51e3d | refs/heads/master | 2023-07-19T11:58:09.220460 | 2019-06-07T14:43:24 | 2019-06-07T14:43:24 | 163,091,619 | 0 | 1 | null | 2023-07-06T21:20:15 | 2018-12-25T14:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,338 | py | # -*- coding: utf-8 -*-
# Scrapy settings for todayMovie project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/to... | [
"1049365046@qq.com"
] | 1049365046@qq.com |
6c3e51d7e50e645ea26cc2e4f7444be2fc2ce375 | 4a6efe453502e362dba0078d8c9eeb8e268d4e81 | /perfectsquarecount.py | ad2fd5dcdbcbfbb2379a925d67cdd702397ebfbd | [] | no_license | GauthamAjayKannan/guvi | 11246dcfd4ff8719140b7d1a6e3ca35af512dd07 | d57ffcee04804ff93dd20bd52b64ac93e4a42d6c | refs/heads/master | 2022-02-21T19:48:00.793331 | 2022-02-10T03:24:07 | 2022-02-10T03:24:07 | 164,416,110 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | #perfectsquarecount
l,r=list(map(int,input().split(" ")))
count=0
for i in range(l,r+1):
v=0
for j in range(1,i):
v=j*j
if v==i:
count=count+1
break
elif v>i:
break
else:
pass
print(count)
| [
"noreply@github.com"
] | GauthamAjayKannan.noreply@github.com |
27cf85e4eb427dbbc844be24ca22cd8e205b57e2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_035/ch117_2020_03_24_18_19_36_030165.py | 76bf70e82be5a355d041a49b7ee54ca05a0db629 | [] | 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 | 128 | py | import math
def snell_descartes(n1,n2,teta1):
teta2 = (n1/n2)*math.sin(teta1)
x = math.asin(teta2)
return math.degrees(x) | [
"you@example.com"
] | you@example.com |
e4e87c11d09d4125ba116ed931f5a66c8f04e163 | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/share/pyshared/rdflib/syntax/parsers/RDFXMLParser.py | 89e082fdfefd1da3fa3445f9ff372582e3702984 | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | from rdflib.syntax.parsers import Parser
from xml.sax import make_parser
from xml.sax.saxutils import handler
from xml.sax.handler import ErrorHandler
from rdflib.syntax.parsers.RDFXMLHandler import RDFXMLHandler
def create_parser(target, store):
parser = make_parser()
# Workaround for bug in expatreader.py... | [
"root@xinli.xinli"
] | root@xinli.xinli |
edbea79cb26481235535e8acdc1ef9f85ae939ae | 39d7ab29356ea5363c783d518b3c92f52c2ef8c2 | /crawler/crawlers_BACKUP/cvworld.py | 0aa69407209d3cc965c5641bd9b55f1e93b86b2b | [] | no_license | wdcpop/Web-Crawler | 7daad778bbda9e5852248971845e3b448629175e | 725037d17dfd2535e213df3cb7aafda523d39c03 | refs/heads/master | 2018-07-31T15:12:31.605633 | 2018-06-02T16:03:36 | 2018-06-02T16:03:36 | 121,194,531 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from .abstracts.crawler_abstract import CrawlerAbstract
import re
import hashlib
import xmltodict
import urllib
from urlparse import urljoin
from urlparse import urlsplit
from arrow import Arrow
import time
import dateparser
class CVWORLD(CrawlerAbstract):
start_ur... | [
"wdcpop@gmail.com"
] | wdcpop@gmail.com |
7df480b80110b294a5de3ca51de7c94031634c2a | cdbd54f19b28c651e1945f4514a2a2a5431d4753 | /xinliang/xinliang/spiders/renrensession.py | 0546c832bd3735b9e5f9e818818ec1719397e920 | [] | no_license | Knowledgeofitselfisriches/spider | 8ccc7e928da00dc7b53159fb53d6f38b16316ee9 | 797736b6ac850532efe42d9e60524d612d99ad02 | refs/heads/master | 2020-03-27T08:41:06.005591 | 2018-09-11T05:48:10 | 2018-09-11T05:48:10 | 146,277,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # -*- coding: utf-8 -*-
import scrapy
class RenrensessionSpider(scrapy.Spider):
name = 'renrensession'
allowed_domains = ['renren.com']
start_urls = ['http://renren.com/']
def parse(self, response):
pass
| [
"283658013@qq.com"
] | 283658013@qq.com |
cd5aa47de61c4f120c3edd4da446dfb57ffd2be6 | 3f00ca6b5284dd380cd81b7bbaf4f959698b640f | /petManagement/settings.py | d6382d57a7fc7f3b3c2f55850204cd4440de31a4 | [] | no_license | sgmagar/pet-management | eb9192122a1890047ea1dc79c6f2f3569864bd1f | 3e663f388ec96dcfa0e98abaf9252cfb44e3d047 | refs/heads/master | 2021-06-27T14:08:17.400206 | 2017-09-14T11:01:57 | 2017-09-14T11:01:57 | 103,520,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | """
Django settings for petManagement project.
Generated by 'django-admin startproject' using Django 1.9.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import... | [
"sp.gharti@gmail.com"
] | sp.gharti@gmail.com |
aec52e3c14b50fc57e845312f99857060061c213 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /ui/display/manager/DEPS | c75536d94a54a468b8b18ec023eec4c17833dbdb | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 614 | include_rules = [
"+chromeos",
"+third_party/skia",
"+ui/base",
"+ui/events/devices",
"+ui/events/platform_event.h",
"+ui/strings",
# DeviceDataManager is not created in all environments (such as ash when
# running in mus/mash).
"-ui/events/devices/device_data_manager.h",
]
specific_include_rules = {... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com | |
23c63ed46f0160733917e510e7fc676d764a0c76 | 60cb975f3e0251c73c457271bce8a7b2036e422b | /studysrc/day01/testType.py | 0ee0a9f3a7d33ff66df8ef4e97a80263726c8eda | [] | no_license | 49257620/reboot | 0a2341f23bc1a6f3ae47b59f772919228c623544 | 86b348228d1a25d78c45b0e9022d7c773544373b | refs/heads/master | 2018-11-17T19:19:58.969710 | 2018-09-25T03:15:57 | 2018-09-25T03:15:57 | 125,727,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # encoding utf-8
print(type(1))
print(type(1.0))
print(type(''))
name = 'Liu wei'
age = 30
desc = 'My name is ' + name + ' and I am ' + str(age) + ' years old.'
print(type(name))
print(int('1'))
print(int(1.1))
print(float(1))
print(float('1'))
print(float('1.1'))
print(str(1))
print(str(1.1))
print(str(name))
pr... | [
"49257620@qq.com"
] | 49257620@qq.com |
bc37bb42e6b7d1bb731b7c21554f394cfbff063f | 3b99e2863db4bcd3707e6f13641ddd9156289bc6 | /tilemap/part 07/main.py | 2bfdf2528e426a16302c88b7f8d1dae703fbb5f6 | [
"MIT"
] | permissive | m-julian/pygame_tutorials | 500a5be3b4fad86fad577a7ea5493ac09ca41168 | be57d865de4ac0c18148e1785443c05445159779 | refs/heads/master | 2022-07-18T00:15:01.335459 | 2020-05-12T15:39:45 | 2020-05-12T15:39:45 | 263,055,700 | 0 | 0 | MIT | 2020-05-11T13:48:49 | 2020-05-11T13:48:48 | null | UTF-8 | Python | false | false | 3,180 | py | # KidsCanCode - Game Development with Pygame video series
# Tile-based game - Part 7
# Mobs
# Video link: https://youtu.be/gbRAqFl21SA
import pygame as pg
import sys
from os import path
from settings import *
from sprites import *
from tilemap import *
class Game:
def __init__(self):
pg.init()
self... | [
"chris@kidscancode.org"
] | chris@kidscancode.org |
5d03b32cf0b86cb5a8dfc1625634e6caf62ad97f | 8ec910de801b424540abb4e6e955838a287663b6 | /CursoPython/Unidad4/Ejemplos/lista_declaracion_elementos.py | ffbed4f88d3fbdae770453c8a5a523fc2de8cfc9 | [] | no_license | hector81/Aprendiendo_Python | f4f211ace32d334fb6b495b1b8b449d83a7f0bf8 | 9c73f32b0c82f08e964472af1923f66c0fbb4c22 | refs/heads/master | 2022-12-28T03:41:20.378415 | 2020-09-28T09:15:03 | 2020-09-28T09:15:03 | 265,689,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | lista = [158, "Hola", 7777]
print(lista) | [
"noreply@github.com"
] | hector81.noreply@github.com |
5020975c3591a41642ba8d891f3c4365e9ab9104 | bab8ce0d8b29292c8d6b0f2a6218b5ed84e7f98b | /l10n_th_account/__openerp__.py | 61666d24a3447c85bcd513253c27b2e27328652c | [] | no_license | ecosoft-odoo/ecosoft_v8 | 98e4116be3eceb287e2f3e9589d97155d5b8b745 | 71c56b0a102e340a5d80470243343654d8810955 | refs/heads/master | 2020-04-06T10:04:03.807855 | 2016-09-25T05:00:04 | 2016-09-25T05:00:04 | 51,049,848 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # -*- coding: utf-8 -*-
{
'name': "Undue Tax, Withholding Tax, Retention",
'summary': "Added support for undue Tax, Withholding Tax and Retention",
'author': "Ecosoft,Odoo Community Association (OCA)",
'website': "http://ecosoft.co.th",
'category': 'Account',
'version': '0.1.0',
'depends': ... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
0a96d972454293065cf13880c697c3e805a57bb3 | 5a281cb78335e06c631181720546f6876005d4e5 | /glance-18.0.0/glance/cmd/status.py | c2b03d5e3d549141c0b2466bcb8e8b6a54a6b639 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 821 | py | #!/usr/bin/env python
# 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, softwar... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
19385a246ca6b85c82d86289686934ef0ca7ca19 | b1d941be5cd577ce34475339b021784aa9af6395 | /tests/providers/gcp/internal/test_monitoring.py | 4db3b9b51382afd50f15d1cd53a9db6bd2219b19 | [
"Apache-2.0"
] | permissive | google/cloud-forensics-utils | ef21ac682e040b5b977aa897aaf75b3b8ec1ed6d | 38926ef5d075696b2b0f6714f3758be1e6ea1658 | refs/heads/main | 2023-09-04T11:05:42.136161 | 2023-08-28T03:25:22 | 2023-08-28T03:25:22 | 238,205,900 | 418 | 95 | Apache-2.0 | 2023-09-14T05:55:03 | 2020-02-04T12:54:51 | Python | UTF-8 | Python | false | false | 3,609 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google Inc.
#
# 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 ... | [
"noreply@github.com"
] | google.noreply@github.com |
3cb3efadc7f30c05d9be5de44a45133ac243c177 | 7672b26e946d47977a5fff7ad3bfa54d6f3e6c69 | /t_system/remote_ui/modules/position.py | c7112c0035117f22ed358ba68f606372f9d74e52 | [
"MIT"
] | permissive | OgiBalboa/T_System | c746bb67e898fa02d126fe31b064bc68d16784f7 | a7e4eea303edbd50a76fc94191725b03bf8b4714 | refs/heads/master | 2020-07-01T07:48:15.467130 | 2019-08-07T14:03:19 | 2019-08-07T14:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,762 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
.. module:: position
:platform: Unix
:synopsis: the top-level submodule of T_System's remote_ui that contains the functions for managing of t_system's arm.
.. moduleauthor:: Cem Baybars GÜÇLÜ <cem.baybars@gmail.com>
"""
from tinydb import TinyDB, Query # TinyDB... | [
"cem.baybars@gmail.com"
] | cem.baybars@gmail.com |
4f9b24e64244a2e8c2f9e1f10469f3ef5a961f5d | 8ce656578e04369cea75c81b529b977fb1d58d94 | /clients/migrations/0061_auto_20200702_1024.py | e7a8b30aa02a6bbe24d1b144efd0ceb94cb41b59 | [] | no_license | JJvzd/django_exp | f9a08c40a6a7535777a8b5005daafe581d8fe1dc | b1df4681e67aad49a1ce6426682df66b81465cb6 | refs/heads/master | 2023-05-31T13:21:24.178394 | 2021-06-22T10:19:43 | 2021-06-22T10:19:43 | 379,227,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # Generated by Django 2.1.7 on 2020-07-02 07:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clients', '0060_auto_20200702_1013'),
]
operations = [
migrations.RemoveField(
model_name='agent',
name='equal_fact_... | [
"javad@MacBook-Pro-Namig.local"
] | javad@MacBook-Pro-Namig.local |
97adc9f4b07c727a2914895162d3a7f1994b5776 | 080fd6a14fcbf137ffda0d14b2d0384e0716fce0 | /crud/models.py | 535b2a7c0f557317d1052cfcb869059da8b25613 | [] | no_license | Joldiazch/TestG8 | b412ce14d4e622ebe1789d4e471be65d5bb538ed | 0939d4a12c841b86c3b8951fbf7c00a2f1010be1 | refs/heads/main | 2023-02-20T11:50:46.786433 | 2021-01-22T02:59:51 | 2021-01-22T02:59:51 | 331,633,782 | 1 | 0 | null | 2021-01-22T02:40:28 | 2021-01-21T13:18:37 | null | UTF-8 | Python | false | false | 1,459 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Eps(models.Model):
""" Model representation of EPS on User Crud """
eps_name = models.CharField(max_length=20)
def __str__(self):
return self.eps_name
class Meta:
db_table = ''
... | [
"jluis.diaz@udea.edu.co"
] | jluis.diaz@udea.edu.co |
5aef99107611ff93170cc56755236e7afc76be7d | b25485391a8a2007c31cd98555855b517cc68a64 | /modules/dbnd-airflow/test_dbnd_airflow/airflow_home/dags/bash_dag.py | adf89acf3fcc275e8807941c13b989edd9241f53 | [
"Apache-2.0"
] | permissive | ipattarapong/dbnd | 5a2bcbf1752bf8f38ad83e83401226967fee1aa6 | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | refs/heads/master | 2022-12-14T06:45:40.347424 | 2020-09-17T18:12:08 | 2020-09-17T18:12:08 | 299,219,747 | 0 | 0 | Apache-2.0 | 2020-09-28T07:07:42 | 2020-09-28T07:07:41 | null | UTF-8 | Python | false | false | 1,306 | py | """
Code that goes along with the Airflow tutorial located at:
https://github.com/airbnb/airflow/blob/master/airflow/example_dags/tutorial.py
"""
from datetime import datetime, timedelta
from airflow.models import DAG
from airflow.operators.bash_operator import BashOperator
default_args = {
"owner": "airflow",
... | [
"evgeny.shulman@databand.ai"
] | evgeny.shulman@databand.ai |
ea3e77bef899a85c76b76b431728023a13154f0c | a65dc5a06f24008a365f8119c3606de75dad1fab | /zw_online/settings.py | 5c86ca4e7c8f9d1b170c2f39fedc63671fb3494f | [] | no_license | sunmouren/itzsyw | 24e5acf531292fb360ec993d66605dbe528f1dae | 1874daaa4f047f7a586969e1eb698bf6386d4504 | refs/heads/master | 2022-12-17T09:33:57.403086 | 2019-08-07T09:10:30 | 2019-08-07T09:10:30 | 176,095,941 | 0 | 0 | null | 2021-06-10T21:17:51 | 2019-03-17T12:11:13 | JavaScript | UTF-8 | Python | false | false | 4,336 | py | """
Django settings for zw_online project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"sunxuechao1024@gmail.com"
] | sunxuechao1024@gmail.com |
6f7ab86497dd563095ab05eaa87ea57767250879 | b4c2bbf32748f381f8918c2c20d2a86b5453dc87 | /lib/model/layers.py | 32c10cc098865793eceef4bb05633e52b21cda68 | [
"MIT"
] | permissive | oveis/DeepVideoFaceSwap | d45c7a18204f851a5c8b9cb6c9618284d4314b59 | e507f94d4f5d74c36e41c386c6fb14bb745a4885 | refs/heads/dev-gan-model | 2022-07-14T10:06:08.131201 | 2019-07-09T00:48:16 | 2019-07-09T00:48:16 | 184,978,011 | 6 | 5 | MIT | 2022-06-21T22:00:38 | 2019-05-05T04:09:53 | Python | UTF-8 | Python | false | false | 13,043 | py | #!/usr/bin/env python3
""" Custom Layers for faceswap.py
Layers from:
the original https://www.reddit.com/r/deepfakes/ code sample + contribs
shoanlu GAN: https://github.com/shaoanlu/faceswap-GAN"""
from __future__ import absolute_import
import sys
import inspect
import tensorflow as tf
import ke... | [
"jinil@nyu.edu"
] | jinil@nyu.edu |
cd6b6e30a164e88cf34d668e71baf9d2aaf3438a | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/1283. Find the Smallest Divisor Given a Threshold/1283.py | 5ecb96b25ccd33eceaef803865637fc85d5ff532 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 275 | py | class Solution:
def smallestDivisor(self, nums: List[int], threshold: int) -> int:
l = 1
r = max(nums)
while l < r:
m = (l + r) // 2
if sum((num - 1) // m + 1 for num in nums) <= threshold:
r = m
else:
l = m + 1
return l
| [
"me@pengyuc.com"
] | me@pengyuc.com |
978f547ead1897a6250be375ac8f88569127129b | 6580ba5d135c4f33f1a0996953ba2a65f7458a14 | /applications/ji173/controllers/default.py | bb6fc6d1930fc8e5d26951a002ed183df2bde4e6 | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | ali96343/facew2p | 02b038d3853691264a49de3409de21c8a33544b8 | a3881b149045e9caac344402c8fc4e62edadb42f | refs/heads/master | 2021-06-10T17:52:22.200508 | 2021-05-10T23:11:30 | 2021-05-10T23:11:30 | 185,795,614 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,475 | py | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
# -------------------------------------------------------------------------
# This is a sample controller
# - index is the default action of any application
# - user is required for authentication and authorization
... | [
"ab96343@gmail.com"
] | ab96343@gmail.com |
e4078d7a8fde0d3840ce2bbc0fa864d39cd8fd11 | d3fb61f506eb44deb55a5b4a99e1d2ae2d16fe0a | /code/models_old/graph_multi_video_diff_F_ens_sll.py | 93df8a043fb4f36a2a60b016bd58da3a8193662d | [] | no_license | menorashid/nn_net | 3a719aaa3f608a65dfde3c57db20a3066d7ea453 | 11df1365b7f0375a251b00f807188f4be6b8f025 | refs/heads/master | 2021-07-06T08:08:25.879757 | 2020-07-28T22:01:34 | 2020-07-28T22:01:34 | 143,941,173 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,670 | py | from torchvision import models
import torch.nn as nn
import torch
import torch.nn.functional as F
from graph_layer_flexible_temp import Graph_Layer
from graph_layer_flexible_temp import Graph_Layer_Wrapper
from normalize import Normalize
import numpy as np
class Graph_Multi_Video(nn.Module):
def __init__(self,
... | [
"mhnrashid@gmail.com"
] | mhnrashid@gmail.com |
33ed5a58ff2613f946adbb9d4d552ae2ea283ecf | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq981.py | d8c99c35c6468137fd61e8507e59209f4f6fe0f1 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,501 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=43
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
a32334b94adf1ecca8945556655adf0e9b294b42 | ee53b0262007b2f0db0fe15b2ad85f65fafa4e25 | /Leetcode/703. Kth Largest Element in a Stream.py | 86ff03f62c59d95ae10e7bd778c6881d2db4514c | [] | no_license | xiaohuanlin/Algorithms | bd48caacb08295fc5756acdac609be78e143a760 | 157cbaeeff74130e5105e58a6b4cdf66403a8a6f | refs/heads/master | 2023-08-09T05:18:06.221485 | 2023-08-08T11:53:15 | 2023-08-08T11:53:15 | 131,491,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | '''
Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element.
Your KthLargest class will have a constructor which accepts an integer k and an integer array nums, which contains initial elements from the stream. For each call ... | [
"derek.xiao@loftk.us"
] | derek.xiao@loftk.us |
62fb2fc2a7c7274d64f8d1e794da3d3bb0ad0022 | c42672aeac984ab3f57d840710e145f4e918ba01 | /nasws/cnn/search_space/nasbench201/lib/models/cell_searchs/search_model_setn.py | 6d60d55c74b554c8e2f2c9d5ae327052167aa5c4 | [
"MIT"
] | permissive | kcyu2014/nas-landmarkreg | 00212b6015d1fef3e7198bfa596fa69a898167c2 | a00c3619bf4042e446e1919087f0b09fe9fa3a65 | refs/heads/main | 2023-07-21T19:52:19.392719 | 2021-08-24T09:37:24 | 2021-08-24T09:37:24 | 350,368,390 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,817 | py | ######################################################################################
# One-Shot Neural Architecture Search via Self-Evaluated Template Network, ICCV 2019 #
######################################################################################
import torch, random
import torch.nn as nn
from copy import... | [
"16794548+kcyu2014@users.noreply.github.com"
] | 16794548+kcyu2014@users.noreply.github.com |
2c0167d82fcc46a47ed426e26976fe16fea77967 | 944401a6292baa2d23b9738898e0b0cb199d0795 | /lib/python2.7/site-packages/matplotlib/artist.py | 4f9d0877ada0532344e35b4eea16d21018525eb6 | [
"Python-2.0"
] | permissive | sunnyweilai/Finding-Theme-Color-Palettes | cc84c93ce58abdd1802431c41bd59181d7a4f75b | 4c38b112f5c40b43d6ec126e415b609c7fdc1f39 | refs/heads/master | 2022-12-21T09:41:31.187411 | 2019-04-30T14:50:17 | 2019-04-30T14:50:17 | 184,273,925 | 1 | 0 | null | 2022-12-07T03:46:55 | 2019-04-30T14:09:52 | Python | UTF-8 | Python | false | false | 46,692 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from collections import OrderedDict, namedtuple
from functools import wraps
import inspect
import re
import warnings
import numpy as np
import matplotlib
from . import cbook, docstring, rcParams
f... | [
"wnn2260@gmail.com"
] | wnn2260@gmail.com |
29ded8e28519085b08865e1fb96c24767143b361 | 7db0883137d119565540f2d071638c4016f39213 | /Note/Python基础/9-多继承、装饰器/02多继承,类的特殊方法,装饰器笔记.py | abc359ee7c26a95dfdb01501293965c8e1b36d29 | [] | no_license | PhilHuang-d/python--- | cf22a4cc00d4beaaf75ef7ca87a4c5d31a9d5efe | 152c18f51838ce652b79a0cd24765b1a1c237eee | refs/heads/master | 2021-09-13T05:32:53.754865 | 2018-04-25T13:36:40 | 2018-04-25T13:36:40 | 108,812,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,978 | py | #02多继承,类的特殊方法,装饰器
#回顾
'''
1.类的定义,class
2.__init__,构造方法
3.self 参数, 实例本身
4.属性: 类属性(共有属性) 实例化属性
5.私有化 _ __
6.面向对象三大特征: 封装 ,继承 (object), 多态:子类重写父类方法
'''
#1.多继承
class Base:
def play(self):
print('这是Base')
class A(Base):
def play(self):
print(type(self))
print('这是A')
class B(Base):
... | [
"32259595+PhilHuang-d@users.noreply.github.com"
] | 32259595+PhilHuang-d@users.noreply.github.com |
eae78a653a2aca57c2ba133963488729d994ff9c | 8fb2622e72e367405d0c4094c5b50d351012dbdd | /apps/log/urls.py | 8868d11bf34f4b9543aeb0fc921839d19b215fcf | [] | no_license | bayhax/server_manage | 107e78dbeeeadd803453997639fc66e01766937d | 713ab2f1a173bb71713a562bff160158e6827d34 | refs/heads/master | 2022-11-16T19:08:55.741179 | 2020-07-17T08:10:33 | 2020-07-17T08:10:33 | 248,660,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from django.urls import path, include, re_path
from apps.log import views
urlpatterns = [
re_path(r'search_break_log',views.search_break_log), # 刷新按钮
path('server_search',views.server_search), # 按信息查询
# path('details',views.details), # 详情页
path('get_name',views.get_name), # 获取服务器名称
# path('break... | [
"whlbayhax@163.com"
] | whlbayhax@163.com |
b85539a7722151c65fae06a296113916f743d867 | d9767e1809bba642dba63c4f2c6a81d256840e96 | /walmart_log/walmart_log/migrations/0010_auto_20160110_1644.py | c2992084c6811dc6bc51c65b5b7064377e2f54de | [] | no_license | fernandochimi/walmart-log | 7a342681b11b153d2a025e41d0d9e2a484a46eac | ab177fb7c6847dd6a26378289043af77ef6514a7 | refs/heads/master | 2021-01-10T11:26:39.253375 | 2016-01-10T20:58:43 | 2016-01-10T20:58:43 | 49,100,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('walmart_log', '0009_auto_20160110_1643'),
]
operations = [
migrations.AlterField(
model_name='type',
... | [
"fernando.chimicoviaki@gmail.com"
] | fernando.chimicoviaki@gmail.com |
5dd3a848a46546513ee63e5e8739783bc4019c74 | 2b17064c2b5db3cac9e6f6dde28fea70b06370ea | /backend/financial_app_22729/settings.py | 7ec587ab54a74766dd745ee6fb17054853163274 | [] | no_license | crowdbotics-apps/financial-app-22729 | 04b1803a9a9068127ad0449b1dc8f43b543ca43b | 9701b487208745cdf6866c56be546708887114a3 | refs/heads/master | 2023-01-15T13:25:26.404593 | 2020-11-18T15:31:32 | 2020-11-18T15:31:32 | 313,976,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,110 | py | """
Django settings for financial_app_22729 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4242bc3420828d9890113302eaa9282964b1b20d | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/models/operation_display_py3.py | 90b2be66e8476d24598909d3f888214cfce2b278 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 1,526 | 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 ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
2d9bf40f407d7d813cddd4a14d5b340224ad12d1 | 69c93cffea9515c00c9c3fcc2cf952cd797cd59f | /config.py | ff239fc1a1e80508d66be637514a8b98f94b178a | [
"MIT"
] | permissive | PhantomInsights/summarizer | c8b35c7070f25890493167b6b3df541d18b23df1 | d8b4d7745ca9ba4309fc9707b7c98ae143b97a10 | refs/heads/master | 2022-05-12T22:12:35.256760 | 2022-03-02T22:15:25 | 2022-03-02T22:15:25 | 170,026,582 | 263 | 38 | MIT | 2020-06-21T16:43:55 | 2019-02-10T20:58:37 | Python | UTF-8 | Python | false | false | 226 | py | """Required constants for the Reddit API."""
# The following constants are used by the bot.
REDDIT_USERNAME = ""
REDDIT_PASSWORD = ""
APP_ID = ""
APP_SECRET = ""
USER_AGENT = ""
SUBREDDITS = ["mexico"]
IMGUR_CLIENT_ID = "" | [
"phantom@phantom.im"
] | phantom@phantom.im |
fd28c9d30e15da12650b34c55c1676c78132629b | a9ca47eddea033e7d3ea530ee62dc3c70c07702e | /leet_code917.py | 3e2537ab9609242ed8d4b80f2e4e1a344004fa84 | [] | no_license | tejamupparaju/LeetCode_Python | 94d5eb80ea038dfdfc6ce5e8d833af9404215f01 | 6e4894c2d80413b13dc247d1783afd709ad984c8 | refs/heads/master | 2021-01-22T05:33:58.443569 | 2018-11-05T18:00:42 | 2018-11-05T18:00:42 | 81,676,499 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | """
917. Reverse Only Letters
Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place,
and all letters reverse their positions.
Example 1:
Input: "ab-cd"
Output: "dc-ba"
Example 2:
Input: "a-bC-dEf-ghIj"
Output: "j-Ih-gfE-dCba"
Example 3:
Input: "Test1ng-Leet... | [
"tejaswi.mupparaju@quanergy.com"
] | tejaswi.mupparaju@quanergy.com |
3414bbd65d43549ea0286af020a22f6ac421d107 | d362a983e055984c588ee81c66ba17d536bae2f5 | /backend/agent/migrations/0025_auto_20151121_1124.py | ed4deaa7410ee8f41507c704a906dc0abf8f758e | [] | no_license | prrraveen/Big-Stylist-CRM | 1d770b5ad28f342dfc5d40002ddc3ee7cc6f840a | 6cd84ce7b01a49a09b844c27ecc4575dcca54393 | refs/heads/master | 2021-01-10T04:37:43.414844 | 2015-12-15T10:47:21 | 2015-12-15T10:47:21 | 49,239,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('agent', '0024_order_allocation_distance'),
]
operations = [
migrations.AlterField(
model_name='order',
... | [
"prrraveen@gmail.com"
] | prrraveen@gmail.com |
1e6a7441278caeeb3e4f26f024842f5021889c3f | d572da0961e76ac7fdd7444883ef850eb4be5718 | /PycharmProjects/CursoExercicios/Aula21- exemplo.py | bcac563ff2a8999bda104b2210ec55a641bf6fdc | [] | no_license | Ryctorius/Curso-de-Python | 47d70dd3e37c3ed2882a3b730adcf8b1d2e6e1ef | 0f9995bfa910d5612e1104c524a430b4792f3671 | refs/heads/main | 2023-06-05T07:44:08.141512 | 2021-06-28T22:04:08 | 2021-06-28T22:04:08 | 381,170,793 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | def somar(a=0, b=0, c=0):
s = a + b + c
return s
print(somar(3, 2, 5))
r1 = somar(3, 2, 5)
r2 = somar(2, 2)
r3 = somar(6)
print(f'Os resultados foram {r1} {r2} {r3}')
| [
"felipedabes@gmail.com"
] | felipedabes@gmail.com |
a8195decba323e0836fdff9de7eec4a9d973ebb0 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/fishing/NormalBingo.py | 1cb5976820ea932e4f612540cce37d73ea7c3cbc | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 4,068 | py | #################################################################
# class: NormalBingo.py
# Purpose: Provide a base layout of the bingo card which can
# be used in a variety of games.
#################################################################
###########################################################... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
c8c0106928ef813b59a45c5d03800413b2c318b2 | 85c82274a3888fa61795bb0600ab96eaf7665b6a | /meet3_25Feb2021/F_decrypt.py | d85bf555460528378096aa89fa9597473e5a185d | [] | no_license | refeed/StrukturDataA | 8e5a214569f41b19c05842d003ede5941800482a | 4d3b77bbd28158f1f1e64a49b8e90da731859407 | refs/heads/master | 2023-06-03T08:22:12.442536 | 2021-07-01T03:24:29 | 2021-07-01T03:24:29 | 360,478,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | '''
DESKRIPSI SOAL
Pengkodean A1Z26 adalah metode enkripsi subtitusi sederhana yang mengubah huruf “A” menjadi angka 1, “B” menjadi angka 2, dan seterusnya hingga “Z” menjadi 26, atau sebaliknya. Buatlah program yang menerima masukan angka-angka, lalu kodekan menjadi huruf yang bersesuaian.
PETUNJUK MASUKAN
Input ada... | [
"rafidteam@gmail.com"
] | rafidteam@gmail.com |
4a1119c8c885138a85e4bf94f93ac3cf2035ced2 | 71bd065fb12ab2d07d4371f1903b45411b91735d | /controller/src/config/api-server/__init__.py | cc3b0286eabff4d6f4434eb4613cb0082db82e64 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | syedaliawaissabir/BGPaaS | dffc3d07eddec91be3d70d8d226b2192511b61ff | 71931e462944e39d31ca16167f273ab9fa84145a | refs/heads/master | 2020-06-30T23:38:29.650304 | 2017-07-31T11:13:46 | 2017-07-31T11:13:46 | 74,343,705 | 0 | 1 | null | 2016-12-02T14:15:51 | 2016-11-21T08:46:43 | C++ | UTF-8 | Python | false | false | 180 | py | """
The main modules in this package are:
* vnc_cfg_api_server
* gen.resource_common
* gen.resource_xsd
* vnc_cfg_ifmap
* vnc_addr_mgmt
* vnc_cfg_types
"""
| [
"awaisalisabir@yahoo.com"
] | awaisalisabir@yahoo.com |
bd7b6f17c83ffefbf863ab4baf53d4ca244ca136 | ac45b55915e634815922329195c203b1e810458c | /baseline3311_14.py | d30b33cf1460ec905cea2a9dfec726c8d7bb755e | [] | no_license | mj1e16lsst/iridisPeriodicNew | 96a8bfef0d09f13e18adb81b89e25ae885e30bd9 | dc0214b1e702b454e0cca67d4208b2113e1fbcea | refs/heads/master | 2020-03-23T15:01:23.583944 | 2018-07-23T18:58:59 | 2018-07-23T18:58:59 | 141,715,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,075 | py | from operator import add
#from astropy import units as u
#from astropy.coordinates import SkyCoord
#from astropy.stats import LombScargle
#from gatspy.periodic import LombScargleFast
from functools import partial
#from gatspy import periodic
#import matplotlib.pyplot as plt
#from matplotlib.font_manager import FontProp... | [
"mj1e16@soton.ac.uk"
] | mj1e16@soton.ac.uk |
a671618f48dd27b4761f6d06630f2a1e105cc6a8 | 5b10b6efa049014f0d00f81b148d94c429286b66 | /custompermissions/custompermissions/wsgi.py | 96830a311ff8db5d0bb505276cd43a78323205fa | [] | no_license | Ruchika-Munde/Rest_Task | dff657aed041ac6925590f423301f0cae7599f6c | ea741889927ed0fa2a1ba9c2311304671680c6bf | refs/heads/master | 2022-12-21T05:21:00.623464 | 2020-09-09T08:06:24 | 2020-09-09T08:06:24 | 294,044,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for custompermissions 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('DJ... | [
"ruchamunde@gmail.com"
] | ruchamunde@gmail.com |
7fab916979a143ff6d3be0221ba4866827b5c3ed | ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb | /python_modules/dagster-test/dagster_test_tests/toys_tests/test_nothing_input.py | e85b8dc4e44b4a38f092d4d0676fec2243989b1e | [
"Apache-2.0"
] | permissive | dagster-io/dagster | 6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a | fe21995e0402878437a828c6a4244025eac8c43b | refs/heads/master | 2023-09-05T20:46:08.203794 | 2023-09-05T19:54:52 | 2023-09-05T19:54:52 | 131,619,646 | 8,565 | 1,154 | Apache-2.0 | 2023-09-14T21:57:37 | 2018-04-30T16:30:04 | Python | UTF-8 | Python | false | false | 121 | py | from dagster_test.toys.nothing_input import nothing_job
def test_nothing_input():
nothing_job.execute_in_process()
| [
"noreply@github.com"
] | dagster-io.noreply@github.com |
f5d4b95c20b1a8fe009259f9d0fea5f21af34f5e | 53ccc4f5198d10102c8032e83f9af25244b179cf | /SoftUni Lessons/Python Development/Python Advanced January 2020/Python OOP/20. EXERCISE TESTING/Tests/Test01. List.py | 097ef5b76c4721608aa0e03927f5d7585b19d3e7 | [] | no_license | SimeonTsvetanov/Coding-Lessons | aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d | 8f70e54b5f95911d0bdbfda7d03940cb824dcd68 | refs/heads/master | 2023-06-09T21:29:17.790775 | 2023-05-24T22:58:48 | 2023-05-24T22:58:48 | 221,786,441 | 13 | 6 | null | null | null | null | UTF-8 | Python | false | false | 4,235 | py | from Project.list import IntegerList
import unittest
class TestsIntegerList(unittest.TestCase):
def test_init_with_no_arguments_should_create_empty_data(self):
data = []
integer_list = IntegerList(*data)
expected = []
actual = integer_list.get_data()
# actual = ... | [
"noreply@github.com"
] | SimeonTsvetanov.noreply@github.com |
d774ff78feb3adcbffc5446756780289ad616915 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/detection/YOLOX_ID2833_for_PyTorch/mmdet/datasets/voc.py | 616051f3edb0e7e1a6c0fd1700ad5b9af9faf732 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 5,371 | py |
# Copyright 2022 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 agre... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
64658df003c0856a7f4d993b4e706cfc06eda909 | 83003007b7bc12493e2bca2b5c78be5ea86df56c | /Day1-15/Day15/03.py | a3d04f3593a6b3d3e117963c74e56072528dc0b6 | [] | no_license | a6361117/code | fa7fe2f33c522ad38d92e6c429b50ef8a271bb1e | bd8bf877416acc5400dbda90212b7e83020ff643 | refs/heads/master | 2022-09-07T22:22:24.765271 | 2020-05-26T14:27:47 | 2020-05-26T14:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #私有属性和私有方法
class Employee:
def __init__(self,name,age):
self.name = name
self.__age = age #私有属性
def __f1(self): #私有方法
print("abcdefgh")
e = Employee("小明",19)
print(e,name)
#print(e,age)
print(e._Employee__age)
print(dir(e))
e._Employee__f1()
'''
1、通常我们约定,两... | [
"46365521+Becky-nuo@users.noreply.github.com"
] | 46365521+Becky-nuo@users.noreply.github.com |
eba7398e6d4df694c1bacb3005b7d5b262244190 | cba8f623e613cfb0cdba73fb373bec68f7bbfdcb | /ABC051C.py | d5569bb0c27ee90de0d411c0455716fe85daf505 | [] | no_license | bonoron/Atcoder | 7d0af77a12b40ce2bdebf5ab5a76462629a03ea5 | e8c0d1ed7d113a0ea23e30d20e8d9993ba1430fa | refs/heads/master | 2022-12-24T20:00:32.702741 | 2020-09-24T07:03:48 | 2020-09-24T07:03:48 | 271,685,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | sx,sy,tx,ty=map(int,input().split())
ans=""
width=tx-sx
length=ty-sy
A,B,C,D="U"*length,"R"*width,"D"*length,"L"*width
for i in range(2):
if i==0:ans +=A+B+C+D
else:ans +="L"+A+"UR"+B+"DR"+C+"DL"+D+"U"
print(ans) | [
"noreply@github.com"
] | bonoron.noreply@github.com |
8264c1c9a569250b44c8658399598dbcc03b32d2 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2019_03_01/aio/operations/_baselines_operations.py | a3b9afcfcf6d04d3c0939957c59ea1ee85baf84e | [
"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,699 | 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 |
119ecb70b7fcafac592573fcb7664a3104c70aca | 06f036994ccb76d93cfc2a7ae9fc3d5c221724ee | /qmla/shared_functionality/hahn_inversion_gates.py | c5660e08c020bec553a74441e9f2735c08ebdbd4 | [
"MIT"
] | permissive | flynnbr11/QMLA | 13b43b7789632ca18306b8818fd90b702cc139eb | ac8cfe1603658ee9b916452f29b99460ee5e3d44 | refs/heads/master | 2023-05-04T04:58:28.461900 | 2021-10-27T22:10:35 | 2021-10-27T22:10:35 | 95,233,038 | 15 | 11 | MIT | 2023-03-31T14:59:08 | 2017-06-23T15:33:06 | Python | UTF-8 | Python | false | false | 619,082 | py | r"""
For NV experiment (Bristol, 2019), the same Hahn echo gate is applied many times.
Rather than compute the exponential to find the gate each time,
they are stored here instead.
"""
from numpy import array
precomputed_hahn_z_inversion_gates = {
1: array([[0.0 - 1.0j, 0.0 + 0.0j], [0.0 + 0.0j, 0.0 + 1.0j]])... | [
"flynnbr@tcd.ie"
] | flynnbr@tcd.ie |
1c121a2e5b0d76705965a45428c060d48c5334f3 | 6413ac303e56228fd8ee9780ca57c9d0616a635b | /wazimap_ng/datasets/migrations/0074_auto_20200411_1830.py | d2d326196f97b5173585406e8732b6dd81b24553 | [
"Apache-2.0"
] | permissive | OpenUpSA/wazimap-ng | 6790b8fc59b7a441f31ec885d0bc47520e72f417 | 533ffabc0e1268bc59cd44c3e0a9d20f6a50b26e | refs/heads/staging | 2023-05-25T19:03:51.024204 | 2023-05-08T08:18:39 | 2023-05-08T08:18:39 | 229,435,119 | 15 | 18 | Apache-2.0 | 2023-09-08T18:33:32 | 2019-12-21T13:58:37 | Python | UTF-8 | Python | false | false | 649 | py | # Generated by Django 2.2.10 on 2020-04-11 18:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datasets', '0073_auto_20200411_1832'),
('profile', '0012_profileindicator'),
]
operations = [
migrations.AlterModelOptions(
... | [
"adi@openup.org.za"
] | adi@openup.org.za |
1fb9b993ce8052475cb4011cb992006bfb2d247b | 9a0e2312236b628007a67c07164ea7b97207e47c | /col/apps/ftp_fetcher/lib/ftpclient.py | 72964b30e5973295b65ad5a27d933a722361d510 | [] | no_license | laxmi518/network_project | d88b9fe73522deaa90c1dbfd22c6861020a6c7be | 2e998338f3d1142a8098d3dfd35f4c8ad0e4ba00 | refs/heads/master | 2020-05-21T15:48:07.830107 | 2018-05-09T18:58:37 | 2018-05-09T18:58:37 | 84,631,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,381 | py |
import calendar
import cStringIO as StringIO
import logging
import os
import ftplib
import re
import time
FILES_RE = re.compile(r'^-.*?\d\d:\d\d (.*?)$', re.MULTILINE)
DIRS_RE = re.compile(r'^d.*?\d\d:\d\d (.*?)$', re.MULTILINE)
error_proto_msg_re = re.compile(r"""25\d ['"](.*)['"] is the current directory.""")
def... | [
"laxmi.jhapa@gmail.com"
] | laxmi.jhapa@gmail.com |
9f5d1e6132480c052b52d59da5d21282dbbd2b21 | 78c3082e9082b5b50435805723ae00a58ca88e30 | /03.AI알고리즘 소스코드/venv/Lib/site-packages/caffe2/python/test_util.py | a9b7d899827355d9d4c08ef5f6914dca52995143 | [] | no_license | jinStar-kimmy/algorithm | 26c1bc456d5319578110f3d56f8bd19122356603 | 59ae8afd8d133f59a6b8d8cee76790fd9dfe1ff7 | refs/heads/master | 2023-08-28T13:16:45.690232 | 2021-10-20T08:23:46 | 2021-10-20T08:23:46 | 419,217,105 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | ## @package test_util
# Module caffe2.python.test_util
import numpy as np
from caffe2.python import core, workspace
import os
import pathlib
import shutil
import tempfile
import unittest
from typing import Any, Callable, Tuple, Type
from types import TracebackType
def rand_array(*dims):
# ... | [
"gudwls3126@gmail.com"
] | gudwls3126@gmail.com |
bfb1d8a5df8c2c5b928c97e59e89ac23cb3720bb | a1d8a991531465b09a2aa5443ede34a92998de3a | /backend/manage.py | c27a19ec64e5415e8a96b158f4d59b2224df51df | [] | no_license | crowdbotics-apps/demo-app-shah-32349-16024 | fd7b0b874f5873a26eea8b4400b9cc0fb95cc5d2 | f96bf8439083c3d82274e41a22678cbb37d9630c | refs/heads/master | 2023-01-23T15:13:45.547876 | 2020-12-01T06:40:20 | 2020-12-01T06:40:20 | 317,448,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE", "demo_app_shah_32349_16024.settings"
)
try:
from django.core.management import execute_from_command_line
except ImportEr... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
62f84793026edaf8a9274748727a34378b174989 | 0b9622c6d67ddcb252a7a4dd9b38d493dfc9a25f | /pandas/example_slug1.py | 1f75594089459190733ff8655915498e461cc027 | [] | no_license | d80b2t/python | eff2b19a69b55d73c4734fb9bc115be1d2193e2d | 73603b90996221e0bcd239f9b9f0458b99c6dc44 | refs/heads/master | 2020-05-21T20:43:54.501991 | 2017-12-24T12:55:59 | 2017-12-24T12:55:59 | 61,330,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | '''
https://sites.google.com/site/aslugsguidetopython/data-analysis/pandas/pandas-example
'''
import numpy as np
import matplotlib as p
import pdb
from pandas import *
# Now we have to read in the data
data = read_csv('train.csv')
#print data
# This reads the data into a handy dataframe format. So that if we
# en... | [
"npross@lbl.gov"
] | npross@lbl.gov |
9daf30eec18257e89e075a5429d3fdda0e984386 | dfaf5cd5607c2c4e55ec9173d2d7ca12842db129 | /055_lowestCommonAncestor.py | d27ead74f11aa6b4cba9a6ff3a477cd378b72252 | [] | no_license | khinthandarkyaw98/Leetcode | 2b0be053931b3ddec6309d136228dae1f4c61b2b | 578f2a38d8a41864ebfd6c4e941f6915c7c0a508 | refs/heads/master | 2023-06-24T02:34:59.399319 | 2021-07-14T19:37:14 | 2021-07-14T19:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def __init__(self):
self.ancestor = None
def lowestCommonAncestor(self, root: 'TreeNode', p: 'TreeNode', q: 'TreeNod... | [
"noreply@github.com"
] | khinthandarkyaw98.noreply@github.com |
80249bc725468caf9e8c124fa1ecc391325de7e2 | 25ff7597cb4bb13c065def61d16ca17a7188f0a9 | /tests/reactive/calculations/test_rolling_reactive.py | f449dfdb772f5ef51a056fce931e6b66290cf84e | [
"Apache-2.0"
] | permissive | fagan2888/tributary | 5d41a47cdfc081a7047933400f920a67cafa477f | f5e9c769faf8ec03203426aca0d282593e85fd7f | refs/heads/master | 2020-09-20T12:24:43.632214 | 2019-11-26T21:34:48 | 2019-11-26T21:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import tributary as t
class TestRolling:
def test_count(self):
def foo():
yield 1
yield 2
yield 3
out = t.run(t.Count(foo))
assert len(out) == 3
assert out[-1] == 3
assert out[-2] == 2
assert out[-3] == 1
def test_sub(self):... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
2c0d8be8bdc7f6ec5bd01cdd9954b7bc567f2c2c | 8afcd12e8daf381342c200356b4c3a23fc7a3ef4 | /course/urls.py | 128326a2c1852bab4f5aad0cf2d6cbad1f5a4cf7 | [
"MIT"
] | permissive | innovistar/Ecoourse | bc953b784be2862cf53ddd8449f3e497e60f5b68 | 08ac969567a2976bee2258c7142da9bc271785f6 | refs/heads/main | 2023-03-15T21:36:08.154825 | 2021-02-27T05:37:11 | 2021-02-27T05:37:11 | 342,550,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | from django.urls import path, include
from .views import (
CourseListView,
TopicListView,
CourseCreateAPIView,
TopicCreateAPIView,
CourseRetrieveAPIView,
TopicRetrieveAPIView,
CourseTopic,
TopicSearchListView,
BooksListView,
EventsListView,
NotificationListView,
BooksCreateAPIView,
EventsCreateAPIView... | [
"noreply@github.com"
] | innovistar.noreply@github.com |
7408edda1bd4ed9ee8e5b4695df334d0d0a127d3 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_name.py | 7de25c90c525cb9e459bb3dbb7dc3676a9d5bd6e | [
"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 | 453 | py | import _plotly_utils.basevalidators
class NameValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name="name",
parent_name="indicator.gauge.axis.tickformatstop",
**kwargs
):
super(NameValidator, self).__init__(
plotly_name=plo... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
54820e7517ab67bf793b33219e9eaf55b21d1eee | 1c1f8e6e66dad142d35c88710d52b25d6e0640c6 | /zentral/utils/text.py | e2a3a851663382a8021f47038ba8ac13d7d62f58 | [
"Apache-2.0"
] | permissive | ChefAustin/zentral | 4a5190434f9010f71385bff4c2b6f02120b651ed | 1749eeb2a0c727d3bff7a3b893158c6fe36e9d9c | refs/heads/main | 2023-01-23T00:52:12.417530 | 2020-12-03T07:41:36 | 2020-12-03T07:41:36 | 318,111,990 | 1 | 0 | Apache-2.0 | 2020-12-03T07:33:27 | 2020-12-03T07:33:27 | null | UTF-8 | Python | false | false | 889 | py | import unicodedata
def str_to_ascii(value):
return unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode('ascii')
def split_comma_separated_quoted_string(s):
def iterator(s):
current_word = []
quote = False
def flush(current_word):
s = ("".join(current_wo... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
2d348264ac225b0b85f5271335e25c2d4d278f18 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-linkvisual/aliyunsdklinkvisual/__init__.py | 83dd8d81c8d6d565990cc89fc17b481532d96ebe | [
"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 | 21 | py | __version__ = '1.5.8' | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
3044e958fe7d45906f59e7d5c09bb3d096a57f76 | 84556aeb74d652b142c5636909bc1b6f6bdd58f6 | /aioquic/quic/connection.py | 39db7d4d2e5a3303f8789fcb9964c583f7df26c5 | [
"BSD-3-Clause"
] | permissive | pgjones/aioquic | 62c4dc399c5c5f3fc705fd268dd50cc2c3f50ed1 | 62df497eaf4a6b8bd28dbf8d8f801daa452ea062 | refs/heads/master | 2020-07-03T04:32:07.048312 | 2019-08-21T15:34:38 | 2019-08-21T15:34:38 | 201,784,046 | 0 | 0 | null | 2019-08-11T15:45:32 | 2019-08-11T15:45:32 | null | UTF-8 | Python | false | false | 74,888 | py | import binascii
import logging
import os
from collections import deque
from dataclasses import dataclass
from enum import Enum
from typing import Any, Deque, Dict, FrozenSet, List, Optional, Sequence, Tuple, cast
from .. import tls
from ..buffer import Buffer, BufferReadError, size_uint_var
from . import events
from .... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
219680012ddf2e6a901f0fa0708dd2fd53b5d303 | cfdb84621af60187ae60768d81f7d16b3a815e48 | /wtforms_alchemy/fields.py | d9c6412329221582ce62f8f99d1bf53890b65566 | [] | no_license | Javex/wtforms-alchemy | 6d0545e003012f35eec03cadffa91734240f733c | 1f727b3d0a423f6660a7f16528754ffb9b8f052a | refs/heads/master | 2020-04-06T04:36:08.261131 | 2014-03-16T21:14:31 | 2014-03-16T21:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | import six
from wtforms.fields import FieldList, FormField
try:
from wtforms.utils import unset_value as _unset_value
except ImportError:
from wtforms.fields import _unset_value
from .utils import find_entity
class SkipOperation(Exception):
pass
class ModelFormField(FormField):
def populate_obj(self... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
ec5b1ba71a5f65a50e9c2d12e317212f05273ad4 | d3d4653b37346eefa1461008b77630cd782ecd5f | /Deep/scripts/flatten_genpt.py | a447cb92cb04b42f81dfd7b61257b5ffd6cc7ca5 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | dr-stringfellow/PandaAnalysis | 267c4bfca79e64b85422e236f36f2ec30e718cec | 3f09b8d16ef978ace9a03c216a3eb8bd55c8893b | refs/heads/master | 2021-09-19T21:20:40.943068 | 2018-05-09T09:27:15 | 2018-05-09T09:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | #!/usr/bin/env python
from os import system,mkdir,getenv
from sys import argv
from array import array
import argparse
basedir = getenv('PANDA_FLATDIR')
parser = argparse.ArgumentParser(description='plot stuff')
parser.add_argument('--proc')
parser.add_argument('--plot',type=str,default=None)
args = parser.parse_args... | [
"sidn@mit.edu"
] | sidn@mit.edu |
de5d53c718e02640e93db1af16cb4b90be95db84 | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /envdsys/envcontacts/migrations/0154_auto_20210712_2126.py | 95fcf67b77bd9b1ee71fb247dc30baf3db44bc47 | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 1,175 | py | # Generated by Django 3.2.3 on 2021-07-12 21:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envcontacts', '0153_auto_20210712_2124'),
]
operations = [
migrations.AlterField(
model_name='person',
name='email1_... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
cb8282d2ec4b980e6af3df709db975fd7fdc5e3d | 38fa1687570e496f248c82023ad2283c428fe937 | /Global.py | 0fc344bbcf549b5ae70c0212f76fb76a9720061b | [] | no_license | sugar-activities/4730-activity | 1bd3dab074d00c5521d198386e76e6b5fe616dcd | acdadec13d18994cb6a12b93029046f0d03d961b | refs/heads/master | 2021-01-19T23:15:36.749445 | 2017-04-21T05:30:22 | 2017-04-21T05:30:22 | 88,937,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,671 | py | import ctypes
import cairo
from gi.repository import Gdk
red = Gdk.Color(255*255, 106*255, 107*255) # FF6A6B
orange = Gdk.Color(248*255, 172*255, 76*255) # F8AC4C
yellow = Gdk.Color(255*255, 255*255, 65*255) # FFFF41
grass = Gdk.Color(186*255, 251*255, 63*255) # BAFB3F
green = Gdk.Color(108*255, 214*255, 1... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
f902927902dfa63f566818b63a350a763eab5bc4 | 262372174ed892d9b69daccb68885aa51e40925f | /config/urls.py | 2fc8a622cd4b6066a0d57949f49638dd13505809 | [] | no_license | ingafter60/django_carzone | 375cb1f2a15a598b6a2ce01628d8c8cb75b8c1b9 | c2ad1a3fb5462723d17cc66a3ab9c6427f9febd4 | refs/heads/master | 2022-12-25T22:34:41.165186 | 2020-09-05T23:00:36 | 2020-09-05T23:00:36 | 288,529,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # COFIG/urls.py
from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('pages.urls')),
path('cars/', include('cars.urls')),
# ACCOUNTS
path('a... | [
"inyoman_gurnitha@yahoo.com"
] | inyoman_gurnitha@yahoo.com |
0057538aaa4f27ba27a3709fcf9ddf2f95c09eb7 | 1337a105d72e475a26e35e4a81acb8e45afc2eb0 | /tests/test_compare.py | f4e13e171e02dd82b6bb13fe5bf5609262caa599 | [
"MIT"
] | permissive | grst/jupytext | 9cc9bde734240d892154b902028748fa8e11ce90 | 0bbcd61297d8ee75b4f0329e2617acbbade3eb10 | refs/heads/master | 2023-04-02T14:38:37.560426 | 2018-08-31T08:31:04 | 2018-08-31T08:31:04 | 141,674,949 | 0 | 0 | MIT | 2018-08-31T08:31:29 | 2018-07-20T06:52:12 | Python | UTF-8 | Python | false | false | 4,284 | py | import pytest
from nbformat.v4.nbbase import new_notebook, \
new_markdown_cell, new_code_cell, new_raw_cell
import jupytext
from jupytext.compare import compare_notebooks, \
test_round_trip_conversion as round_trip_conversion
jupytext.file_format_version.FILE_FORMAT_VERSION = {}
def test_raise_on_different_m... | [
"marc.wouts@gmail.com"
] | marc.wouts@gmail.com |
090b1c533cfaee3700cd150192024be40a27ad67 | 3e8b22d6e58f6b0a6ee5876d6eb9f3daada68940 | /bot/migrations/0005_auto_20200319_1128.py | e0fe59878d07c1a0f9254c5ad22b317b0fa7d7c3 | [] | no_license | ezhk/finance | 83ef7de0d42ce675e51e6e19443806477f2dfbb4 | 1dbe6bf61f34b7a625c88971d116fd8f50514e07 | refs/heads/master | 2023-01-28T08:34:49.400712 | 2020-04-12T13:56:28 | 2020-04-12T13:56:28 | 231,879,507 | 0 | 0 | null | 2023-01-05T05:02:02 | 2020-01-05T06:50:40 | Python | UTF-8 | Python | false | false | 571 | py | # Generated by Django 3.0.4 on 2020-03-19 11:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bot', '0004_auto_20200309_1323'),
]
operations = [
migrations.RemoveField(
model_name='telegrammessages',
name='comm... | [
"ezhik@ezhik.info"
] | ezhik@ezhik.info |
721e0a4851d27b4ae1a28fb666b94f1c5b170dee | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/1480.py | a6dced18251d0fb75e76526628eb9f3defc58a78 | [] | 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 | 931 | py | import sys
import heapq
def solve(line):
line = line.split(' ')
N, K = int(line[0]), int(line[1])
print >> sys.stderr, N, K
if N > 50000 and 1.1*K > N:
return 0,0
# (-size, -position)
openings = []
heapq.heappush(openings, (-N, 0))
for i in range(K):
next = heapq.hea... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
794726a163d760c26559cd8cfd8495b6cfac4fda | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_304/ch56_2019_03_29_14_48_39_438781.py | f11b017cb3bc9701f77dbe957b3c583c192451df | [] | 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 | 205 | py | def calcula_total_da_nota (preco, produto):
nota=[]
i=0
while i<len(preco):
total=preco[i]*produto[i]
nota.append (total)
i+=1
return nota
| [
"you@example.com"
] | you@example.com |
2e2f2ee2242f4095c3ba4a5b806a65984ff86095 | dfd40a7d65bbdba91f61418c4980f67a4dbd9668 | /hw4/word_vector.py | dd3a13221f0432acfcad61e451ff933306475308 | [] | no_license | tiffany70072/ML2016 | 92c29364df4220a8e3535cb67d5c5d2927d02983 | 39463fbacab75659f4db03185c032d9992578e7f | refs/heads/master | 2021-03-22T03:42:32.341924 | 2019-10-07T08:17:29 | 2019-10-07T08:17:29 | 68,997,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,718 | py | import sys
import pickle
import random # shuffle
import string # punctuation
import numpy as np
import matplotlib.pyplot as plt
from math import isnan
from string import digits # remove digit
from stop_words import get_stop_words
from wordsegment import segment
from compiler.ast import flatten
from gensim.models import... | [
"tiffany70072@gmail.com"
] | tiffany70072@gmail.com |
7661ac4dbd2f363d506b86af7ec1b80d278830be | b733a463ba1a21ac4c2756e8552ff4b251ce6b55 | /Inpainting/two_stage/celebahq/networks.py | 41794b41426d3f276661df2d8e3a3bfecee8a4e5 | [] | no_license | fengjiran/tensorflow_learning | 003047cdb396572e3535043dfff8671befcd0f21 | 44dce5bb39c8d6421ea6181338b0ea4b0e5e9797 | refs/heads/master | 2023-04-04T07:53:55.707703 | 2022-03-30T09:35:52 | 2022-03-30T09:35:52 | 100,839,372 | 3 | 0 | null | 2023-03-24T22:50:54 | 2017-08-20T04:58:21 | Python | UTF-8 | Python | false | false | 44,043 | py | from __future__ import print_function
import os
import tensorflow as tf
from ops import conv
from ops import deconv
from ops import resnet_block
from ops import instance_norm
from loss import adversarial_loss
from loss import perceptual_loss
from loss import style_loss
from loss import Vgg19
from utils import images... | [
"fengjiran@foxmail.com"
] | fengjiran@foxmail.com |
a246f158797fb06afa264b39a76385d76a84b170 | 62438de01bd6e18e6ce122f0f0f86c9e09445e54 | /tests/pytest_.py | 9bf7f5892b11917597363309a16dc5d23436bbd7 | [
"BSD-2-Clause"
] | permissive | pyinvoke/invocations | b5d4a8a75a6e4d7c548a6110e99a0ec62a4431d8 | 544a7eac6e10a598080d97f063b7e7029ed47647 | refs/heads/main | 2023-09-01T16:05:16.220483 | 2023-08-02T23:50:05 | 2023-08-02T23:50:05 | 7,214,707 | 135 | 26 | BSD-2-Clause | 2023-04-21T20:48:27 | 2012-12-18T00:07:22 | Python | UTF-8 | Python | false | false | 2,974 | py | from contextlib import contextmanager
from invoke import MockContext
from invocations.pytest import test as _test_task, coverage
from unittest.mock import Mock, call
@contextmanager
def _expect(flags=None, extra_flags=None, kwargs=None):
if kwargs is None:
kwargs = dict(pty=True)
flags = flags or "--... | [
"jeff@bitprophet.org"
] | jeff@bitprophet.org |
21beec734061b02f4560f40b2bb13812a87b010d | 11aaeaeb55d587a950456fd1480063e1aed1d9e5 | /.history/ex45-test_20190608175028.py | 2b2357c23d8b5bf7fa6705e95daed8339c8aa283 | [] | no_license | Gr4cchus/Learn-Python-3-The-Hard-Way | 8ce9e68f6a91ea33ea45fe64bfff82d65422c4a8 | f5fa34db16cdd6377faa7fcf45c70f94bb4aec0d | refs/heads/master | 2020-05-17T23:18:29.483160 | 2019-06-26T18:42:52 | 2019-06-26T18:42:52 | 184,023,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py |
class Room1():
def enter():
print("You enter room 1")
class Room2():
def enter():
print("You enter room 2")
class Map():
def __init__(self, starting_room):
self.starting_room = starting_room
self.locations = {
'room1': Room1,
'room2': Room2
... | [
"ahivent@gmail.com"
] | ahivent@gmail.com |
0314777dbb9ea6fe16d7da5f9054bad58ffdb7d7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03479/s385973989.py | 1fa9b621cead2cbb6ef46e8a1a2dbe01e45826ee | [] | 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 | 134 | py | X, Y = map(int, input().split())
cnt = 1
num = X
while num <= Y:
num *= 2
if(num > Y):
break
cnt += 1
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b8a31dc4b3d3ebfe501097eab2b62e46589cf2dd | f0e150b332bf72680b3cbaeefe41743d821953ea | /backend/manage.py | 8bdf62d293bb06de83fa7fb81d913eda8b42c0e2 | [] | no_license | crowdbotics-apps/us-golf-data-27337 | faa8611a92a4b1edf87c994ab91d696db43c4a10 | 5d93080d1bdc3aa43908016fae4a978b75b94840 | refs/heads/master | 2023-05-06T21:07:30.322166 | 2021-05-24T17:07:06 | 2021-05-24T17:07:06 | 370,427,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'us_golf_data_27337.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c18da489c1be26a4058ee0430dd5ab882d31b14a | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/GuiSettings.py | ef7392624435d75cbc21193616114382b0dfd70c | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 7,745 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/GuiSettings.py
import logging
from collections import namedtuple
import nations
import constants
import resource_helper
from helpers import getClientLanguage, time_utils
from gui import macroses
from soft_exception import SoftEx... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
363f94229364c7d14b4d231af8d122e67f5d8e77 | 893f83189700fefeba216e6899d42097cc0bec70 | /bioinformatics/photoscan-pro/python/lib/python3.5/site-packages/jupyter_client/kernelspecapp.py | 595cf9573e0cd4b8671ee412ced5989a6e96b937 | [
"GPL-3.0-only",
"Apache-2.0",
"MIT",
"Python-2.0"
] | permissive | pseudoPixels/SciWorCS | 79249198b3dd2a2653d4401d0f028f2180338371 | e1738c8b838c71b18598ceca29d7c487c76f876b | refs/heads/master | 2021-06-10T01:08:30.242094 | 2018-12-06T18:53:34 | 2018-12-06T18:53:34 | 140,774,351 | 0 | 1 | MIT | 2021-06-01T22:23:47 | 2018-07-12T23:33:53 | Python | UTF-8 | Python | false | false | 10,265 | py |
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
import errno
import os.path
import sys
import json
from traitlets.config.application import Application
from jupyter_core.application import (
JupyterApp, base_flags, base_a... | [
"golam.mostaeen@usask.ca"
] | golam.mostaeen@usask.ca |
277441adc04f2a06703ba01ce2c461b389799049 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/a39e0fef4e15d2ab04b5/snippet.py | 91ec0ec6b9c5c858ad244663d7699197572a3277 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 533 | py | from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Firefox()
driver.get('http://google.com')
# Log in to the developer console.
driver.find_element_by_id('Email').send_keys(args.google_email)
driver.find_element_by_id('Passwd').send_keys(args.google_pass... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
2a3cf32131d54bc1396c50fb566f735ff6147d60 | 0a3e0d965c3cce519af0ae6752292d4c48ef7734 | /backend/api/permissions/FuelCode.py | 6ea93c34fbf4dc54fce882d8712a047c66a5087c | [
"Apache-2.0"
] | permissive | kuanfandevops/tfrs | ae66d1e36815e2bf4d0c2470d1aeb3d03f6cfb38 | 80ae1ef5938ef5e580128ed0c622071b307fc7e1 | refs/heads/master | 2023-07-15T09:10:53.970498 | 2023-06-23T21:13:44 | 2023-06-23T21:13:44 | 140,875,622 | 0 | 0 | Apache-2.0 | 2018-09-12T23:52:55 | 2018-07-13T17:33:17 | Python | UTF-8 | Python | false | false | 1,869 | py | """
REST API Documentation for the NRS TFRS Credit Trading Application
The Transportation Fuels Reporting System is being designed to streamline
compliance reporting for transportation fuel suppliers in accordance with
the Renewable & Low Carbon Fuel Requirements Regulation.
OpenAPI spec version: ... | [
"31664961+kuanfandevops@users.noreply.github.com"
] | 31664961+kuanfandevops@users.noreply.github.com |
0b42c7c8b3b9893423f963855f13dc665fab6fb6 | a4e502e9487cf17c53f9f931ec0dbc12168fea52 | /packages/pyre/externals/Library.py | bd37c9c9fdd7d3f82098d377e9941ab2c936bc87 | [
"BSD-3-Clause"
] | permissive | bryanvriel/pyre | bdc5dd59c46d53ff81f2ece532b9073ac3b65be1 | 179359634a7091979cced427b6133dd0ec4726ea | refs/heads/master | 2021-09-28T00:10:26.454282 | 2018-11-11T16:42:07 | 2018-11-11T16:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2018 all rights reserved
#
# access to the framework
import pyre
# superclass
from .Package import Package
# my declaration
class Library(Package):
"""
Base class for third party libraries
"""
# user configurable state
def... | [
"michael.aivazis@orthologue.com"
] | michael.aivazis@orthologue.com |
f70d3f2b808c28214f23c9a942f2d6b2d8fd8649 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/api/servicecontrol/v1/google-cloud-servicecontrol-v1-py/google/cloud/servicecontrol_v1/services/quota_controller/client.py | 8c20d9f485aa21d9c5150c8f77c25fe96db2dd5c | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,441 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
a6aeb3f746fbd7bb19e3d801714ca18370b90fdc | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkBinaryImageToLabelMapFilterPython.py | 52ba5836a4a102f2ffc13436eb8156b7e569c883 | [] | no_license | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 49,418 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _itkBinary... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
b8a82589d5d94e5020d1bb0049ebbc807bb4053c | 8bd501e68f07939a3a0426e7cc9b4dbb7421337f | /练习/python学习笔记.py | 1abe9c5580d018ed980ba1e45f2fbdffaa744f3a | [] | no_license | yegeli/Python_test | 8c4fb50ad7b163032500c0a91cd7ef4b147bc115 | dc6fd2533f94aee8dc212acb0ffdc55b0bdcf63f | refs/heads/master | 2020-09-08T11:14:24.306953 | 2019-11-12T03:23:01 | 2019-11-12T03:23:01 | 221,117,790 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 1,023 | py | #coding=gbk-----该模块中有中文字符,需要添加注释,说明字符
filename = 'learning_python.txt'
print('--' * 80)
print("读取整个文件:")
with open(filename) as file_object:
lines = file_object.read()
print( lines.replace('Python','C'))
print('--' * 80)
print("遍历文件对象:")
with open(filename) as file_object:
print("多余空白原因是:文本文件每行自带看不见的换行符,pri... | [
"1332812330@qq.com"
] | 1332812330@qq.com |
a12fcc2e570e0b18835c9df3dd240b91a48a44b7 | 87ef4417475eba17416e6c93b79e1af28af29402 | /dcase_util/datasets/datasets.py | c6d109d70e30faad6de68d0df69e3ee79b30c566 | [
"MIT"
] | permissive | gertdekkers/dcase_util | e4bf300efd65d10f1da7ff9f1834dbaecf3c01d3 | e5b80cc98b28facad2f3fff9acba126487b19879 | refs/heads/master | 2020-04-09T18:13:22.535971 | 2018-12-05T11:05:03 | 2018-12-05T11:05:03 | 160,505,284 | 0 | 0 | MIT | 2018-12-05T11:02:17 | 2018-12-05T11:02:17 | null | UTF-8 | Python | false | false | 132,351 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import
from six import iteritems
import logging
import os
import sys
import random
import numpy
import tempfile
import copy
import importlib
from tqdm import tqdm
from dcase_util.containers import DictContainer, ListDictCon... | [
"toni.heittola@gmail.com"
] | toni.heittola@gmail.com |
b1b35cd665bcf3caba826498458df02a272994bb | bb983b38f9be7b6fd4ab1a651484db37c1aeff39 | /0621/test2_plot_species_distribution_modeling.py | 8662ad3494d2d56c55835de663851647807f0509 | [] | no_license | nakanishi-akitaka/python2018_backup | c214df78372cca993d69f8001010ec2f6dcaf1be | 45766d3c3777de2a91b3e2cf50c6bfedca8627da | refs/heads/master | 2023-02-18T08:04:28.625532 | 2022-06-07T01:02:53 | 2022-06-07T01:02:53 | 201,399,236 | 5 | 30 | null | 2023-02-10T21:06:51 | 2019-08-09T05:48:22 | Jupyter Notebook | UTF-8 | Python | false | false | 6,430 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 21 13:17:47 2018
@author: Akitaka
http://scikit-learn.org/stable/auto_examples/applications/plot_species_distribution_modeling.html
"""
# Authors: Peter Prettenhofer <peter.prettenhofer@gmail.com>
# Jake Vanderplas <vanderplas@astro.washington.edu>
#
... | [
"noreply@github.com"
] | nakanishi-akitaka.noreply@github.com |
cd5557e7b2dc59c6edd387239b708af93c585f49 | 1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2 | /lab/lab04/tests/q2_1.py | b92a4f2e2cc4901a8de60af487f18882e3c6dcf3 | [] | no_license | taylorgibson/ma4110-fa21 | 201af7a044fd7d99140c68c48817306c18479610 | a306e1b6e7516def7de968781f6c8c21deebeaf5 | refs/heads/main | 2023-09-05T21:31:44.259079 | 2021-11-18T17:42:15 | 2021-11-18T17:42:15 | 395,439,687 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | test = { 'name': 'q2_1',
'points': None,
'suites': [ { 'cases': [ { 'code': '>>> # Make sure you are examining the values in the column\n>>> # not the column itself\n>>> import numpy\n>>> total_pay_type != numpy.ndarray\nTrue',
'hidden': False,
... | [
"taylorgibson@gmail.com"
] | taylorgibson@gmail.com |
b2820178d57818ef758f8d3a4cfc008d44faa260 | d4adf8e72bfc767bb6ad32e81a2d24a0309d90b7 | /Clients/Python/DBSAPI/UserExamples/dbsUpdateFileXSection.py | e440e64fe4b7d7777f85bf919ea3d3a3a86afb95 | [] | no_license | dmwm/DBSAPI | 5c55dd10161a1bb1fb6f646ca92dd3c4f263a256 | 3117ac30672a1932cef4606fbf7693ce4952b79d | refs/heads/master | 2021-01-21T19:28:22.329112 | 2013-10-30T12:07:54 | 2013-10-30T12:07:54 | 13,984,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python
#
# Revision: 1.3 $"
# Id: DBSXMLParser.java,v 1.3 2006/10/26 18:26:04 afaq Exp $"
#
import sys
from DBSAPI.dbsApi import DbsApi
from DBSAPI.dbsException import *
from DBSAPI.dbsApiException import *
from DBSAPI.dbsOptions import DbsOptionParser
optManager = DbsOptionParser()
(opts,args) = optMa... | [
"giulio.eulisse@cern.ch"
] | giulio.eulisse@cern.ch |
79e60e4f8461292f45bd107393907b3e6d5fd8fb | 609882e2728da39de6fd44321b68174c079d0150 | /services/core-api/app/api/incidents/models/mine_incident_recommendation.py | 89bc6d7ec6f6847f2a4723f0dfc5f1600be07fa5 | [
"Apache-2.0"
] | permissive | alexjoybc/mds | ce1142f95caf20efc26c62ad0178ccbc548259ee | 040bc64d25300a8072e9123f25395e63e0c4bad7 | refs/heads/master | 2022-11-12T14:11:49.901241 | 2020-06-30T00:03:19 | 2020-06-30T00:03:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | import uuid, datetime
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import validates
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.schema import FetchedValue
from app.extensions import db
from app.api.utils.models_mixins import AuditMixin, Base
INVALID_MINE_INCIDENT_RECOMMEN... | [
"bcgov-csnr-cd@gov.bc.ca"
] | bcgov-csnr-cd@gov.bc.ca |
bf5462227debfb0bf11345a3f427d001c958808b | 54791fd57ecc9a4fe7c5164dfa6eb79c8df48ee1 | /tmpdoc/experiment/python_demos/file_rotate.py | d541883492e955e36e348c26496f8117200d1150 | [] | no_license | cherry-wb/quietheart | 8dfc91f88046bd1b40240e2f6121043977ab78b4 | 715ed73c990da2b4634313c93910769a59ce51f4 | refs/heads/master | 2021-01-18T00:04:39.802220 | 2014-08-21T07:39:21 | 2014-08-21T07:39:21 | 23,286,239 | 1 | 3 | null | 2019-03-11T09:32:21 | 2014-08-24T16:37:05 | null | UTF-8 | Python | false | false | 504 | py | #!/usr/bin/python
import os
import logging
num = 5
fName = "mylog"
for i in range(0,num):
n = num - i
if os.path.exists(fName+"."+str(n)):
if n < num:
os.rename(fName+"."+str(n),fName+"."+str(n+1))
if os.path.exists(fName):
os.rename(fName,fName+"."+str(1))
logger = logging.getLogger(... | [
"quietheart@quietheart-ThinkPad-E420.(none)"
] | quietheart@quietheart-ThinkPad-E420.(none) |
bb6b0a11a0a95938eeab2c0b1f24161620692bee | 117a180b483caf5c13b7f3b861ad8de9329f4838 | /PycharmProjects/crud/crud/rental/models.py | 2d04f128ac3ae6704e7d1e4f67d14a9efadb0bf1 | [] | no_license | sridhar551/django_crud | a79889cb319e6cbb948069149aab8ab8dc941891 | 89eb57642d5c23a393d7dc6d2988fd7e600f814c | refs/heads/master | 2020-04-08T12:11:29.030743 | 2018-11-27T13:06:59 | 2018-11-27T13:06:59 | 159,336,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from django.db import models
# Create your models here.
class Friend(models.Model):
name=models.CharField(max_length=255)
class Belonging(models.Model):
name=models.CharField(max_length=255)
class Borrowed(models.Model):
what=models.ForeignKey(Belonging, on_delete=models.CASCADE)
to_who=models.Foreig... | [
"sridhar.tanda260@gmail.com"
] | sridhar.tanda260@gmail.com |
232faffef865ce2232ad048f922e9e5d0c7784c4 | b5e4b502231e98d3778b832363985beca3cf36f3 | /tests/test_metrics/conftest.py | 2ef403b89d92599cd8a0e6fe7ca3237a434fdf48 | [
"MIT"
] | permissive | best-doctor/vuakhter | 1a33b49837006d79b280f255b4e94b7659bb1e77 | 38014fc4211e8f39b09263b85a9324bdaa8ee832 | refs/heads/master | 2023-04-15T22:15:23.003102 | 2021-04-28T07:41:13 | 2021-04-28T07:41:13 | 257,821,679 | 0 | 1 | null | 2021-01-12T09:25:17 | 2020-04-22T07:14:32 | Python | UTF-8 | Python | false | false | 2,684 | py | import pytest
from vuakhter.kibana.requests_log import ElasticRequestsLog
from vuakhter.metrics.counters import (
MethodCounter, EndpointCounter, ResponseTimeCounter, ComplexCounter,
StatusCounter, SlowLogCounter, SchemaValidatorCounter,
)
from vuakhter.utils.types import AccessEntry
@pytest.fixture
def acce... | [
"s.butkin@bestdoctor.ru"
] | s.butkin@bestdoctor.ru |
c066e3092959e2422b1f8698123f5b0aa94be9de | 78b160d8131f3c4b7aef0d051b040825a9c50e0d | /leetcode/100-same-tree.py | 21c1e85917bbd08706029f512adb137c348702cb | [
"MIT"
] | permissive | ardakkk/Algorithms-and-Data-Structures | 744f8c9ffb233b95040e5bdcbddb9f5d2ff7a5ba | c428bb0bd7eeb6c34448630f88f13e1329b54636 | refs/heads/master | 2021-07-08T22:40:40.361282 | 2020-07-20T10:39:58 | 2020-07-20T10:39:58 | 156,005,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# Time: O(P + Q) Where P and Q are number of Nodes in Input Trees
# Space: O(1)
class Solution:
def isSameTree(self, p: TreeNode, q: TreeNode) -> bool:
... | [
"ardakfuse@gmail.com"
] | ardakfuse@gmail.com |
2e558b8c82c393f0d5243e9f202696df931ce722 | 54e743f9e14d0e17b265fe8053975af7aa09d995 | /admin_tools/views.py | da1eb12af9cd9efea873425ab7ab707bf8839d31 | [
"MIT"
] | permissive | marcusbusby/WeVoteServer | 943af2bcafd4e03efa2ee66dc400a500982f3bb7 | 2aa600b84de714647e9119909371e211d2392ad4 | refs/heads/master | 2021-01-15T12:14:46.438024 | 2015-10-10T17:16:28 | 2015-10-10T17:16:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | # admin_tools/views.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
from django.shortcuts import render
def admin_home(request):
template_values = {
}
return render(request, 'admin_home/index.html', template_values)
| [
"dale.mcgrew@wevoteusa.org"
] | dale.mcgrew@wevoteusa.org |
a81fe0d451d0f4f6536bfb491872dd3c0ad3669d | 26850fcab5a2e99a58c882dc33afb03648cbc6d0 | /src/pyams_form/outputchecker.py | c896fe1c86d593f14116f020fd871037f3bd47b1 | [
"ZPL-2.1"
] | permissive | Py-AMS/pyams-form | 3037851a7df740c5b1e220e7fd8a3293c11d7954 | e83e2ce314355f98eaf66e90ad6feccbda7934f9 | refs/heads/master | 2023-07-21T08:51:28.541202 | 2023-07-07T14:58:31 | 2023-07-07T14:58:31 | 242,551,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,226 | py | #
# Copyright (c) 2015-2020 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | [
"thierry.florac@onf.fr"
] | thierry.florac@onf.fr |
f20411744431d4560b4b8c313ef504079d0fa9f7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/74/usersdata/217/38779/submittedfiles/lecker.py | 0bbce8503149db975d18b194e7e8bfbd173aaba1 | [] | 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 | 230 | py | # -*- coding: utf-8 -*-
import math
a=int(input('digite a:'))
b=int(input('digite b:'))
c=int(input('digite c:'))
d=int(input('digite d:'))
if a>b>=c>=d and a<b>c>=d and a<=b<c>d and a<=b<=c<d:
print('S')
else:
print('N')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
485ca4ed101077a0110da2f2b40ce3fd8f46f74c | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /tutorials/image/mnist/convolutional.py | 01a8ea852ec1abd12eee3e58f5a8642680bb004a | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 14,408 | py | # Copyright 2015 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... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
b693788cf403792b2f9f572151de856f51c32753 | 7d8b5220152b4ef4876c489d6648be56bc83c8e7 | /exercises/development/advanced/exercise_32.py | f1331ff4662ecdf8fccf2825a350248bbda914a1 | [
"CC-BY-4.0",
"ISC",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | comp-think/comp-think.github.io | 8f89518e7a463376b431f55fb7f495cb3019d4a5 | e48a7ecf3b1799471271e01430e089e8f8e3c68d | refs/heads/master | 2023-01-04T20:38:27.593237 | 2023-01-02T14:48:54 | 2023-01-02T14:48:54 | 157,171,226 | 52 | 22 | NOASSERTION | 2023-01-02T14:48:55 | 2018-11-12T07:11:23 | Python | UTF-8 | Python | false | false | 1,413 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2022, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
#
# THE SOFTWARE I... | [
"essepuntato@gmail.com"
] | essepuntato@gmail.com |
580a213640ffa9bc4bf8fc76f46ec7c0d6f337ba | 3a9fdd863947208157348f3d556c2145c84491ed | /airflow/contrib/executors/kubernetes_executor.py | 17b5ef6ceb8e9f84bde0bd8b9459b0e3874fdbba | [
"BSD-3-Clause",
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twitter-forks/airflow | 1e18e3ab696fbccc2ef4d6562a8f807b991b7ecb | 7bd9d1c83a7e489d5030cd136f3855ff24e0a622 | refs/heads/1.10.14+twtr | 2022-12-01T18:38:30.918780 | 2022-04-07T07:07:45 | 2022-04-07T07:07:45 | 146,521,674 | 0 | 11 | Apache-2.0 | 2022-11-28T13:22:42 | 2018-08-29T00:18:54 | Python | UTF-8 | Python | false | false | 889 | py | # -*- coding: utf-8 -*-
#
# 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
#... | [
"kaxilnaik@gmail.com"
] | kaxilnaik@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.