blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fc696c0769e5e3f691c1e82534471b92c9021f40 | 2d82d4c6574bd6d32f2cf1c781615f7951f55f66 | /muntjac/demo/sampler/features/dates/DateResolutionExample.py | 74cac72e9954f8f1e1913dcdb8f166e5037737df | [
"Apache-2.0"
] | permissive | metaperl/muntjac | f83f745ee03942a61af92ee7fba7285aa9c46f3c | 8db97712edd81b4d25deaaa48587d2a08010f2c8 | refs/heads/master | 2021-01-15T22:04:25.057862 | 2012-11-09T03:52:59 | 2012-11-09T03:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py |
from datetime import datetime
from muntjac.api import VerticalLayout, InlineDateField, ComboBox
from muntjac.data.property import IValueChangeListener
from muntjac.data.util.indexed_container import IndexedContainer
class DateResolutionExample(VerticalLayout, IValueChangeListener):
resolution_PROPERTY_NAME = '... | [
"r.w.lincoln@gmail.com"
] | r.w.lincoln@gmail.com |
ffae4401c70bac0f44e8c616c8c75818a0f4911a | fa109ef37c7e78a5e49dba131176eecf5e8e0991 | /pythonforandroid/recipes/pysdl2/__init__.py | 2f872f0cef61f0f966b39cb584ea153b5cd92cd3 | [
"MIT",
"Python-2.0"
] | permissive | dl1ksv/python-for-android | 8d42e2c8baf7c4c1233587df83de7625378d6743 | 6f7ef8a13a9423e3119e393aed2340a9cd441029 | refs/heads/master | 2020-12-28T22:45:35.278929 | 2015-11-26T23:43:42 | 2015-11-26T23:43:42 | 38,204,379 | 1 | 0 | null | 2015-06-28T15:45:37 | 2015-06-28T15:45:37 | null | UTF-8 | Python | false | false | 341 | py |
from pythonforandroid.toolchain import PythonRecipe, shprint, current_directory, ArchAndroid
from os.path import exists, join
import sh
import glob
class PySDL2Recipe(PythonRecipe):
version = '0.9.3'
url = 'https://bitbucket.org/marcusva/py-sdl2/downloads/PySDL2-{version}.tar.gz'
depends = ['sdl2']
rec... | [
"alexanderjohntaylor@gmail.com"
] | alexanderjohntaylor@gmail.com |
5b1b762fb5e50401c3850a0db574d6eb3774d8a1 | ce1f9921ff2b07a653321fc48a72b5b29f34f40f | /nbe/git.py | d64fc36a5719fb9a7cb9436834b6ebc79fb36be4 | [] | no_license | tonicbupt/nbe-deploy | 01e354fddfac6ead05ea36093fced0ec4a7130ca | 3c1940bf5536877410d38aeca072b116d1ad62df | refs/heads/master | 2021-01-19T14:06:28.501404 | 2014-11-18T09:35:31 | 2014-11-18T09:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | # coding: utf-8
from urlparse import urlparse
from pygit2 import Repository
class NBEGitError(Exception):
def __init__(self, msg):
self.msg = msg
def __str__(self):
return '<NBEGitError: %s>' % self.msg
class GitUrl(object):
def __init__(self, url):
self.url = url
if ... | [
"tonicbupt@gmail.com"
] | tonicbupt@gmail.com |
8ff0d1c3147916bd22c3c6a2ab33c90e93efbbec | 28be2173e5590cc5b03119e9b83c57980e6a7e8a | /learnwithpeople/celery.py | 845295ef34113d1cb1a08b589e08e84b1d64cd2a | [
"MIT"
] | permissive | EdgarOrnelas/learning-circles | cd164f123885ed2079b34ad394c9849b370563b9 | 293c849321d735aebbdcb6c65b7c92f751f9fd89 | refs/heads/master | 2021-01-21T20:56:35.429589 | 2017-06-16T09:20:46 | 2017-06-16T09:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from __future__ import absolute_import
import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'learnwithpeople.settings')
from django.conf import settings
app = Celery('proj')
app.config_from_object('django.conf:setting... | [
"dirkcuys@gmail.com"
] | dirkcuys@gmail.com |
7b32d38688dbc1b8d92463ff36898bb0ce5ba763 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/VAV_Occupied_Heating_Min_Supply_Air_Flow_Setpoint.py | f53334f924e464145896655ea041aeb3badc72f2 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.VAV_Heating_Min_Discharge_Air_Flow_Setpoint import VAV_Heating_Min_Discharge_Air_Flow_Setpoint
from brick.bricksch... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
34f398711006551c625bb3862909d907a5213652 | b3e42025194b81680086d097fed9aa6c84bfce9a | /med_social/dev/utils.py | 312a1fa5a37a903cd0fd3fed152947e704829c33 | [
"MIT"
] | permissive | superdev999/ProvenBanking | 95c65698d9f3a552d04edfd4fd9d4469fb43a47f | 2153e9d737e2b235e502c848986ca35b6f310b8d | refs/heads/master | 2021-01-12T05:17:31.864890 | 2017-08-17T00:11:59 | 2017-08-17T00:11:59 | 77,897,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from django.db import connection
from customers.models import Customer
def change_tenant(tenant_name):
"""ONLY FOR DEV. Don't user in production code"""
connection.set_tenant(Customer.objects.get(schema_name=tenant_name))
| [
"wanghaoming820@outlook.com"
] | wanghaoming820@outlook.com |
624ae61963018f8c51c09481eed9f2c26b6f68ee | e57d7785276053332c633b57f6925c90ad660580 | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py | 6b4ecd249fbf4b5675f77ab521d9394b2aa94ae4 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 6,826 | 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"
] | adriananeci.noreply@github.com |
d0eb12b96c5599687a3498ab2a9a343eca5c4241 | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/lib/surface/emulators/start.py | a3f345a23ed188b0f27e294b6f2d221d464da3c9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 4,688 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
66436257fcb4883cb42e94acb256ece1b339ec6a | bd01527a0af06828c56206d1113c372787e0d1d0 | /backend/storage/editor/views.py | c91f58a60bbfcb2d0fcfef3001de5a5a6b904f9e | [] | no_license | nosseb/justrelax | 3810f3cbae507f3da3c7a0ab894e5c3236b8c9d1 | 812bdf7787a761c94afd867cfc4de20f993fc86a | refs/heads/master | 2022-11-26T22:12:33.825056 | 2020-07-21T15:42:27 | 2020-07-21T15:42:27 | 263,049,627 | 0 | 0 | null | 2020-05-11T13:24:52 | 2020-05-11T13:24:51 | null | UTF-8 | Python | false | false | 6,614 | py | import json
from django.db import transaction
from rest_framework.decorators import api_view
from rest_framework.response import Response
from scenario.models import Room
from editor.models import Template, TemplateLink, TemplateContextParagraph, Variable, Rule
def get_serialized_templates():
templates = []
... | [
"jbaptiste.braun@gmail.com"
] | jbaptiste.braun@gmail.com |
ba11931c0866cd2acd55a9d08636dec67b184af5 | 4703ae438686138e1e69047179389b0c7f605be7 | /GAN/test.py | 61683b33e8683e1eb343f0454ad139da9466ac9e | [] | no_license | zashin-AI/JongHo | e94a70208f09d8181c7d7804b30b40cc08151182 | 03b1505eed8ed19b91bccc06d46279646effada7 | refs/heads/master | 2023-05-14T20:10:55.232297 | 2021-06-04T08:34:07 | 2021-06-04T08:34:07 | 352,832,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | import matplotlib.pyplot as plt
import numpy as np
import sklearn
import datetime
from tensorflow.keras.datasets import mnist
from tensorflow.keras.layers import Dense,Flatten,Reshape,Activation,BatchNormalization,Dense,Dropout,Flatten
from tensorflow.keras.layers import LeakyReLU,Conv2D,Conv2DTranspose
from tensorflo... | [
"kimjh1753@naver.com"
] | kimjh1753@naver.com |
6eba8e505f653e771d826f7897ae11a59c3ade6b | 7591033b956085c9e600b4fd704da968c2be99e4 | /object/migrations/0003_auto_20200511_1621.py | c5ff053e2bf18ed72c671e7aded5e39073b37d7e | [] | no_license | o-shmidke/CMW | af355a0ceadea38feffb319f766b977afdd4a453 | a0918ca6b19de766ab10754e043b2473cf4869d8 | refs/heads/master | 2023-01-04T16:18:31.972346 | 2020-10-28T08:19:11 | 2020-10-28T08:19:11 | 285,347,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # Generated by Django 3.0.6 on 2020-05-11 11:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('object', '0002_auto_20200510_1903'),
]
operations = [
migrations.AlterField(
model_name='object',
name='NCH_General'... | [
"61247061+o-shmidke@users.noreply.github.com"
] | 61247061+o-shmidke@users.noreply.github.com |
84e6ccee5f07e4e77337a34b7fa00b97000c008e | 4cdb92fddb5082070ea8e25df63a7d43e9259c81 | /pubsubpull/tests/test_middleware.py | 19719407d0872a67eb82bf1f202426123b9417f6 | [
"MIT"
] | permissive | WFP-BKK/django-pubsubpull | 50b22604eef82379124f8377188d956e4965a146 | ae4341ff9fdbe7493399adb7f2ecb43024cb7961 | refs/heads/master | 2021-01-20T14:53:32.616023 | 2016-10-26T03:12:29 | 2016-10-26T03:12:29 | 82,781,454 | 0 | 0 | null | 2017-02-22T08:46:10 | 2017-02-22T08:46:10 | null | UTF-8 | Python | false | false | 1,889 | py | from django.contrib.auth.models import User
from django.test import TestCase
from pubsubpull.api import add_trigger_function, change_detect
from pubsubpull.models import Request, UpdateLog
from slumber_examples.models import Pizza
class TestMiddleware(TestCase):
def setUp(self):
add_trigger_function()
... | [
"k@kirit.com"
] | k@kirit.com |
4a2c43e093e6fb7dd270e6f5899b54a71b4445ef | 621a40fa363dc0c32c96a4c8fdfe9142877e2ff1 | /ietf/sync/discrepancies.py | 08283080484a887ccf318492da692ecbc27cd5a9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | omunroe-com/ietfdb2 | d9c40bebe4b25059f810c70dd1370cca30cb3c36 | aeaae292fbd55aca1b6043227ec105e67d73367f | refs/heads/master | 2020-04-04T21:05:56.067430 | 2018-11-05T09:08:27 | 2018-11-05T09:08:27 | 156,273,382 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | from django.db import models
from ietf.doc.models import Document, State
def find_discrepancies():
res = []
title = "Drafts that have been sent to the RFC Editor but do not have an RFC Editor state"
docs = Document.objects.filter(states__in=list(State.objects.filter(used=True, type="draft-iesg", slug__in... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
dc82a379e72651b6d16a72cf751d3b46d8a7f696 | 86dc6d523f5491ec3f65d37406cb983784cfc61b | /products/views.py | eb8318424f5ed5a4633102a5d5d05192e0fd153d | [] | no_license | DylanMsK/daangn | 50ff9b8e1b74fadba6ee64d9d4f8e816558d848d | 0fe49fce015531e308344594fb4830cf7c3005d8 | refs/heads/master | 2020-09-15T00:28:22.439688 | 2019-12-24T04:50:36 | 2019-12-24T04:50:36 | 223,304,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,011 | py | from django.views import generic
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator
from django.utils import timezone
from django.http import Http404
from django.db.models import Prefetch
from products im... | [
"kms920612@gmail.com"
] | kms920612@gmail.com |
a47ce1e6a27fb867ff9c1b7fdacbc9cf6ba63fc4 | b51f277dfe339ea30dce10040eca40c20bd8a4dd | /src/pyreport/pt_feiyuan.py | 71113a30a777d85d422e19a90a1304858ff6698f | [
"BSD-3-Clause"
] | permissive | jack139/fair | e08b3b48391d0cb8e72bbc47e7592c030f587f48 | fe0ff64f8edbd794c3fb951ab6af420054e9e585 | refs/heads/master | 2021-06-30T15:17:15.590764 | 2020-09-23T07:14:20 | 2020-09-23T07:14:20 | 160,322,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
import time,sys
from pymongo import MongoClient
from bson.objectid import ObjectId
db = MongoClient('10.168.11.151')['fair_db']
db.authenticate('report','report')
ISOTIMEFORMAT=['%Y-%m-%d %X', '%Y-%m-%d', '%Y%m%d%H%M']
def time_str(t=None, format=0):
return time.st... | [
"gt@f8geek.com"
] | gt@f8geek.com |
ba49aebe88832660eebc47b5bcf3575445d010b3 | 896b0401bcdce7ff590d50f1723279976f73171f | /livecv.py | 5b853e4c8b59f78ba070eac39d7f61ce11e12c69 | [
"Apache-2.0"
] | permissive | eruffaldi/livepython | 36a1cfea8ed0f79a7b79fcc9c4f9e06cee6a636c | a21ab0dc2cbcbfef67a75f7a1bf6ad4e195aca87 | refs/heads/master | 2021-01-22T09:12:50.480445 | 2017-02-14T12:28:35 | 2017-02-14T12:28:35 | 81,941,535 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,888 | py | import tornado.ioloop
import tornado.web
import tornado.websocket
import tornado.template
import struct
import sys
from StringIO import StringIO
import threading
import cv2
import Queue
import signal
import numpy as np
class Common:
"""Common Handler"""
def __init__(self):
self.last = None
self.lasthandle... | [
"emanuele.ruffaldi@gmail.com"
] | emanuele.ruffaldi@gmail.com |
8727beea889becd1fa923b676988a5c22eddd784 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/29/usersdata/77/9154/submittedfiles/atividade.py | dad7f04afd8cacac24437a726a5ddec9c25f36c0 | [] | 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 | 174 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n=int(input('Digite o valor de n:'))
cont=0
while n>0:
n=n//10
cont=cont+1
print(cont) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d3adc649c63e264cd1cfd85725df6eaa9cefb7c2 | 96f05734266dd65f904159b58f57d7fd1f7a20aa | /config/sdk/vivooffline2/sdk_script.py | de20183c287ecc2b01a696d976c25c9f1575a0b6 | [] | no_license | lqx30716/U8AAR | db738878530d8d7fb1d48f7ea0974be320f93536 | df680f106cc997c1d42a2725b3ec0d45e1c4def0 | refs/heads/master | 2022-10-08T10:02:42.447566 | 2020-06-10T02:06:02 | 2020-06-10T02:06:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | import file_utils
import os
import os.path
from xml.etree import ElementTree as ET
from xml.etree.ElementTree import SubElement
from xml.etree.ElementTree import Element
from xml.etree.ElementTree import ElementTree
import os
import os.path
import zipfile
import re
import subprocess
import platform
from xml.dom import ... | [
"you@example.com"
] | you@example.com |
c020880cfaaf05ddfb36d9e92e305a82381b88fe | 2a0efe30198c948982a85ea74c7e47ef9ecb4823 | /pers/cyj/day04/06-turtle模块绘图/turtle绘图.py | 1e32202cada737f8684bdbe38a795b578e1e8588 | [] | no_license | cyjhunnyboy/PythonTutorialProj | 00151ed364807c6df54b1b0300cb622086128b74 | c3a02e6fa2dd09bf5d7b47fd78a4d3a31356a39d | refs/heads/master | 2023-02-23T18:35:45.481252 | 2021-01-25T11:13:45 | 2021-01-25T11:13:45 | 298,922,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | """
是一个简单的绘图工具
提供一个小海龟,可以把它理解为一个机器人,只能听得懂有限的命令
绘图窗口的原点(0,0)在正中间,默认海龟的方向是右侧
运动命令
forward(d) 向前移动d长度
backward(d) 向后移动d长度
right(d) 向右转动多少度
left(d) 向左转动多少度
goto(x,y) 移动到坐标为(x,y)的位置
speed(speed) 笔画绘制的速度[0,10]
笔画控制命令
up() 笔画抬起,在移动的时候不会绘图
down() 笔画落下,移动会绘图
setheading(d) 改变海龟的朝向多少度
pensize(d) 笔画的宽度
pencolor(colorstr) 笔画的颜色
... | [
"cyjhunnyboy@sina.com"
] | cyjhunnyboy@sina.com |
855f8ea271b340fbba0fb13fa501b5c32ade085a | 0a0004b0d368694b4a2aa6044376ea643297d92e | /cflw代码库py/cflw输入_win.py | 8af9389102c0e5c3d5c99244cde62c1344397f8d | [
"MIT"
] | permissive | cflw/cflw_py | e5737c2ff7916f1722316d9a423b73c97c9b8e82 | 46f3982b82be252d1dc2c5b0def6cd8daa57b978 | refs/heads/master | 2023-01-07T15:38:04.608163 | 2022-12-24T11:23:53 | 2022-12-24T11:23:53 | 143,493,676 | 28 | 12 | null | null | null | null | UTF-8 | Python | false | false | 4,141 | py | import enum
class E键盘按键(enum.IntEnum):
eLBUTTON = 0x01
eRBUTTON = 0x02
eCANCEL = 0x03
eMBUTTON = 0x04 # NOT contiguous with L & RBUTTON */
eXBUTTON1 = 0x05 # NOT contiguous with L & RBUTTON */
eXBUTTON2 = 0x06 # NOT contiguous with L & RBUTTON */
e退格 = 0x08 #backspace
e制表 = 0x09 #tab
e清除 = 0x0C #clear
e回车 = 0... | [
"cflw@outlook.com"
] | cflw@outlook.com |
c4bd7bcf0666c70c16e60af84e90000d9f83deae | b667b214c4d589e07a35bd7335cbd9c9c8cd27ee | /app/models.py | 6ef6f6722e8f574e36677c288d58772dfd166078 | [] | no_license | hnhtechsolco/Mobile-UI-Design-With-Dashboard | 843b6a93256d8a3bd6b0957c35aa0b859a2cfb38 | 0af58d3bbea90449e8a032178b4a800ddcd95021 | refs/heads/master | 2022-05-29T16:24:13.261694 | 2020-03-26T10:48:40 | 2020-03-26T10:48:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py | from django.db import models
from rest_framework import serializers
import datetime
# Create your models here.
class category(models.Model):
cid=models.AutoField(primary_key=True)
mobileappname=models.CharField(max_length=100)
def __str__(self):
return self.mobileappname
class product(models... | [
"shoaibbilal101@gmail.com"
] | shoaibbilal101@gmail.com |
db132126163baa2536ac2329eabf01f75291d217 | 88c1f9ccb62e91d6b0574bcde1043921bdeb0126 | /utilities/src/d1_util/parse_format_id_list.py | 259269b0f254f366877bff0f95a1a4cd474dc030 | [
"Apache-2.0"
] | permissive | jevans97utk/d1_python | 83b8de8780287c655779844f367b9189413da074 | 3ac4d4f3ca052d3e8641a6a329cab526c8ddcb0d | refs/heads/master | 2020-05-21T01:16:50.677816 | 2019-04-22T16:09:44 | 2019-04-22T16:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | #!/usr/bin/env python
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2018 DataONE
#
# Licensed under the Apache License, Version 2.0 (t... | [
"git@dahlsys.com"
] | git@dahlsys.com |
7ddfb0f7ad80a1f52dc9ad8a1760d6338963997c | b2def8090c2d049431c79ba992650a75acb676aa | /test/day9.4/归并排序1.py | 41426e67c7dd4ca6c287236796c732ea356c1ea2 | [] | no_license | yangxiaodong1/ygblcrm | abc6079899f7837fa880963d2dc77e923fb89f4e | 722ee8c55fc96f9f345c2989e4a4874e131dc8a0 | refs/heads/master | 2021-07-03T07:06:17.856752 | 2017-09-23T01:42:37 | 2017-09-23T01:42:37 | 104,532,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | # Author : July Yang
# 排序
def merge(left,right):
i,j=0,0
result = []
while i<len(left) and j<len(right):
if left[i]<=right[j]:
result.append(left[i])
i+=1
else:
result.append(right[j])
j+=1
result +=left[i:]
result +=right[j:]
re... | [
"you@example.com"
] | you@example.com |
b276582db26d0f96a0e596642ebaf0eb8f9b49f8 | 6b093f9e0d6e811ed7acdbde0aefd2d42de7edee | /accounts/tests/test_models.py | ec2620389b5a5f3c0dd0e966412bf0910c34536f | [] | no_license | blancheta/superlists | 3cf49c0f6f9ef90b95ae9313a31db70c5bf230d8 | 4d93042c62a97f92fc619ca5d63f64f80d23c817 | refs/heads/master | 2021-01-19T05:01:59.563831 | 2016-06-05T17:34:36 | 2016-06-05T17:34:36 | 60,361,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
User = get_user_model()
class UserModelTest(TestCase):
def test_user_is_valid_with_email_only(self):
user = User(email='a@b.com')
user.full_clean() # should not raise
def test_email_is_primary_key(self):
user = User()
self.asse... | [
"alexandreblanchet44@gmail.com"
] | alexandreblanchet44@gmail.com |
b6eb3c023503a2e7e24bc8b26e326996f80cc490 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/FeedCyrenThreatInDepth/Scripts/CyrenThreatInDepthRelatedWidgetQuick/CyrenThreatInDepthRelatedWidgetQuick.py | 6584d7fbbb6694c5ff428991e78a0a89a4912a54 | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 1,003 | py | import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
import json
def cyren_feed_relationship(args) -> CommandResults:
indicator = args.get("indicator")
if not indicator:
raise ValueError("Please provide 'indicator' argument!")
result = demisto.execu... | [
"noreply@github.com"
] | demisto.noreply@github.com |
fa11c1431e0662902f0e147dbe9fb2ac82286116 | 587e205bda406f252cc49519a6595a42533110f1 | /HtoZg/CommonAnalysis/python/photonIsolation_cfi.py | 99eca74f19a3a95c2a3f27167c6d714cc117d6a4 | [] | no_license | janveverka/usercode | 12115e18c705fe46b396d3ad31ee4f7a2df81e3c | 9588a9a3e50fe9b1c13faf6cd6c30fd09ee39b4e | refs/heads/master | 2020-12-24T13:29:09.594769 | 2014-03-06T14:06:47 | 2014-03-06T14:06:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | import FWCore.ParameterSet.Config as cms
photonIsolation = cms.EDProducer('RecoPhotonIsolationValueMapProducer',
photonSource = cms.InputTag('photons'),
rhoSource = cms.InputTag('kt6PFJets', 'rho'),
vertexSource = cms.InputTag('offlinePrimaryVertices'),
pfSource = cms.InputTag('particleFlow', ''... | [
"jan.veverka@gmail.com"
] | jan.veverka@gmail.com |
26f8a8e39457379e69f9a4c47af35cd04f745768 | cc5c546379ca79a7634acb9a2a66ae690f20ee15 | /MyCode-01/test.py | b89e3f0aabdd0ffd37275b234002a9172c5b1d10 | [] | no_license | vakili73/CodeV1 | 0c13f8b3cba1fa9b5d40039065931687dd0acc84 | 658826200ddb779baf2a1cc2bcccdc0e43aefd47 | refs/heads/master | 2020-04-01T07:23:58.679094 | 2018-12-22T21:07:24 | 2018-12-22T21:07:24 | 152,988,274 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from Loader import getDataset
from Utils import preProcessing
from Generator import General
from Generator.Utils import Allo
db = getDataset('mnist')
db = preProcessing(db)
AugmentImageV2 = [Allo.CutOut, Allo.RndCrop,
Allo.RndRotate, Allo.Translate]
generator = General(X_train=db.X_train, y_train=d... | [
"v.vakili73@gmail.com"
] | v.vakili73@gmail.com |
ff9398f04bf137a5db741b50e8f630936cbe71c8 | a543a24f1b5aebf500c2200cd1d139435948500d | /satory074/abc276/a/main.py | 4f608ebe4f9c880155ab58921d0fc9f41de5611e | [] | no_license | HomeSox/AtCoder | 18c89660762c3e0979596f0bcc9918c8962e4abb | 93e5ffab02ae1f763682aecb032c4f6f4e4b5588 | refs/heads/main | 2023-09-05T03:39:34.591433 | 2023-09-04T13:53:36 | 2023-09-04T13:53:36 | 219,873,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import collections as cl
import math
S = input()
if "a" in S:
ans = -1
for i, s in enumerate(S):
if s == "a":
ans = i
print(ans + 1)
else:
print(-1)
| [
"satory074@gmail.com"
] | satory074@gmail.com |
012c3892924b3dac1469a16283ee07f47478ebcc | 250db406ad4a62e3d576e55b979bcfdc3407f226 | /Leetcode分类/7. LinkedList/Leetcode_83 Remove Duplicates from Sorted List /my_solution.py | 2d8b3710509f4d2eac093dafb496cc19d92a2ab6 | [] | no_license | chenshanghao/Interview_preparation | 0830f0e461a2fe287b8ec24ae761974f50268767 | 4e7701d32990604c16ba18a8083c2108c0232306 | refs/heads/master | 2020-04-25T02:36:19.499364 | 2019-06-10T04:51:00 | 2019-06-10T04:51:00 | 172,446,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if not head or not head.next:... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
9202bf9502da64f08226098c3c1400c21865a52e | 0e4f76fc3f9aae8b00a67806dffcfc6360e310d1 | /classes/ifcrelconnectspathelements.py | 54194f295d82a06c3b3ff64bb5b24591b231b429 | [] | no_license | HassanEmam/PyoIFC | e11f3b330d3e758aaae47ee9e70b2ae5b5847432 | c2ec4e017ce366b07686491dbe22827aec2711c0 | refs/heads/master | 2020-07-31T14:27:53.305768 | 2019-09-24T15:41:28 | 2019-09-24T15:41:28 | 210,630,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class IFCRELCONNECTSPATHELEMENTS(IFCRELCONNECTSELEMENTS):
def __init__(self, RelatingPriorities, RelatedPriorities, RelatedConnectionType, RelatingConnectionType):
self.RelatingPriorities = RelatingPriorities
self.RelatedPriorities = RelatedPriorities
self.RelatedConnectionType = RelatedConnectionType
self... | [
"hassan.emam@hotmail.com"
] | hassan.emam@hotmail.com |
2010eebc2a01f2e6e942769f5929e3b3cfc78c0d | 6f118d509007e8d67d8395854623f68f4b2fb28f | /openstack/volume/v2/volume.py | 0e32088f40b06bce03fd2d9c0c174e7cdf71c0c2 | [
"Apache-2.0"
] | permissive | chyi13/python-openstacksdk | ce0c423bb7ac57778422cde3ff40cb78da909d32 | 480e7d32d42d209a7d7e2611e3580105dcf5b17c | refs/heads/master | 2021-01-15T08:59:25.229355 | 2015-06-08T19:07:51 | 2015-06-08T19:07:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,152 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"terrylhowe@gmail.com"
] | terrylhowe@gmail.com |
d78eb2f8fd25b01907a8f6c8ebb60260bf839970 | 51086c09f2c920d057db12e373a01b08571c4cbf | /pebble-sdk/SDKs/2.9/.env/lib/python2.7/site-packages/freetype/ft_enums/tt_platforms.py | e59f99665ee68329b911e197146f4c1024fe362d | [] | no_license | JohnHoder/pebble-dev | 66dc69258dfd009313c23ba5c2eb518aec257652 | e9d95bd564ba6f58b539a1a68f21fe82b6d0992b | refs/heads/master | 2022-11-23T17:32:26.573394 | 2018-12-26T03:17:37 | 2018-12-26T03:17:37 | 163,131,045 | 0 | 1 | null | 2022-10-31T10:03:38 | 2018-12-26T03:15:57 | Python | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
#
# FreeType high-level python API - Copyright 2011-2012 Nicolas P. Rougier
# Distributed under the terms of the new BSD license.
#
# ----------------------------------------------------------... | [
"hoder.john@gmail.com"
] | hoder.john@gmail.com |
850f969994338533e4bcedb7943762353b04714a | 4a238068e29a1f6871cc049a0486b20b27e781de | /Habana/benchmarks/bert/implementations/bert-tf-sys-420gh-tngr/TensorFlow/utils/logs/hooks_helper.py | dcc9b8279f7b68fadcd51a5efa6778c773734ec6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Pixelz-Inc/training_results_v1.0 | 61b4555ad482b189d1966be3edd127858addd628 | c507130c4e04c1f274a9ae8b7284aac79f26325a | refs/heads/master | 2023-08-18T22:46:13.316503 | 2021-10-22T04:01:57 | 2021-10-22T04:01:57 | 399,047,712 | 0 | 0 | NOASSERTION | 2021-08-23T09:37:25 | 2021-08-23T09:37:25 | null | UTF-8 | Python | false | false | 6,088 | py | # Copyright 2017 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... | [
"vsb@fb.com"
] | vsb@fb.com |
83ead21e83960a2fd5174687a9b6d0d2cb909a1d | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_Integration/model_control_one_enabled_Integration_MovingMedian_Seasonal_WeekOfYear_ARX.py | cf5ca1cce072c280f929c42d7b4b8d5dc4f7fe14 | [
"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 | 172 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Integration'] , ['MovingMedian'] , ['Seasonal_WeekOfYear'] , ['ARX'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
475b10cb77be62c9528788480c81b3e9b9e37908 | f47fe8a7d8cd87b3bfa2e172b4a9fc93e3a4abc2 | /2016/AST2/Marija/linija2.py | 6acae19b81f77f891d41a76057c6f82a7427f215 | [] | no_license | ispastlibrary/Titan | a4a7e4bb56544d28b884a336db488488e81402e0 | f60e5c6dc43876415b36ad76ab0322a1f709b14d | refs/heads/master | 2021-01-17T19:23:32.839966 | 2016-06-03T13:47:44 | 2016-06-03T13:47:44 | 60,350,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import matplotlib.pyplot as plt
import numpy as np
from scipy.integrate import simps
from scipy.interpolate import interp1d
x,y = np.loadtxt("linija.dat", unpack = True)
Xc=[]
Yc=[]
fc=interp1d(x,y,kind='cubic')
for i in range(0,99):
xnewc=np.arange(x[i],x[i+1],(x[i+1]-x[i])/6)
ynewc=fc(xnewc)
for j in r... | [
"ispast.library@gmail.com"
] | ispast.library@gmail.com |
e92b3e44603c992a0269c7197f55eb7faaea6038 | f91d04f054382214a7ac4d4fc00211c83b4e3501 | /demo/feedback/migrations/0001_initial.py | af63ace9739137ca5b2fb18651a5e524251d5be9 | [
"MIT"
] | permissive | ajt/django-fm | 262c566c68525b0547e56796fe08aa8dbdef8c38 | d1654f593a4963cfdf52eb93e1a21c9c630e8255 | refs/heads/master | 2021-04-02T22:20:41.713208 | 2020-03-20T15:29:47 | 2020-03-20T15:29:47 | 248,330,034 | 0 | 0 | MIT | 2020-03-18T19:58:35 | 2020-03-18T19:58:34 | null | UTF-8 | Python | false | false | 817 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Feedback',
fields=[
('id', models.AutoField(ver... | [
"frvzmb@gmail.com"
] | frvzmb@gmail.com |
f69ceb8930043465801d22824f83e9569a8f60db | 4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422 | /_0297_Serialize_and_Deserialize_Binary_Tree.py | 295533e0234ac9300308776ba7941c6e1621a19a | [] | no_license | mingweihe/leetcode | a2cfee0e004627b817a3c0321bb9c74128f8c1a7 | edff905f63ab95cdd40447b27a9c449c9cefec37 | refs/heads/master | 2021-06-19T07:46:46.897952 | 2021-05-02T05:13:17 | 2021-05-02T05:13:17 | 205,740,338 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Codec(object):
def serialize(self, root):
"""Encodes a tree to a single string.
:type root: TreeNode
:rtype: str
"... | [
"10962421@qq.com"
] | 10962421@qq.com |
5f3d978780b9ac6923ff61b38dfe6941a21b39cf | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v5/googleads-py/google/ads/googleads/v5/errors/types/string_format_error.py | 9344830effb5c551fcd5039b17db2606ea0eedea | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | 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 |
7c8c7f0797d3d440f52038ffb9f58da1f404e5cf | 90d3af65fc9900f2abb7eaa7631646856e115da3 | /COMP9444/convolutional.py | 08f6da117f25a66acdda9e27e017bf28a9838b2d | [] | no_license | Tim-hyx/UNSW-Courses | d414b79b6c5b428be12456ba85e1757ac871535b | b7031ea9ac833b5a396e7938ef73cc335a2e37b7 | refs/heads/main | 2023-07-10T19:48:34.731340 | 2021-08-10T02:39:14 | 2021-08-10T02:39:14 | 300,894,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | A = [int(i) for i in input('input J K Layer M N Padding stride filter: ').split()]
J, K, L, M, N, P, s, f = A
weights, width, height = 1 + M * N * L, 1 + (J + 2 * P - M) // s, 1 + (K + 2 * P - N) // s
print(f'weights per neuron: 1+M*N*L=1+{M}*{N}*{L}={weights}')
print(f'width: 1+(J+2*P-M)/s=1+({J}+... | [
"noreply@github.com"
] | Tim-hyx.noreply@github.com |
7b2d2a1609b26c1d77aec1eb0a048f0a71091310 | 37671ff0aa4c454f265ecdf6fac0c07273c11470 | /saxo_openapi/endpoints/referencedata/responses/algostrategies.py | 761050f364daabb5ccd5c57191340be98769295d | [
"MIT"
] | permissive | hootnot/saxo_openapi | bd17888bc9f284c16d6b3010d5acc93a8e3a8d94 | 8e5c1bf336654d059ea87ba2ff7e7aaef33d1262 | refs/heads/master | 2023-01-19T10:59:32.327682 | 2021-12-19T16:24:25 | 2021-12-19T16:24:25 | 168,889,299 | 75 | 31 | MIT | 2022-12-26T20:39:01 | 2019-02-02T23:23:21 | Python | UTF-8 | Python | false | false | 2,133 | py | # -*- coding: utf-8 -*-
"""Responses.
responses serve both testing purpose aswell as dynamic docstring replacement.
"""
responses = {
"_v3_AlgoStrategies": {
"url": "/openapi/ref/v1/algostrategies",
"params": {'$top': '...', '$skip': '...'},
"response": {
"__count": 4,
... | [
"f.brekeveld@gmail.com"
] | f.brekeveld@gmail.com |
5dd9bb1599a7cd5a77d92ee3e88784edb6b72ac6 | f4b79529109fbb4055f334d0d9c7c96cb0710447 | /colour/examples/adaptation/examples_vonkries.py | 9fccd28ae1726324b3654542408a972ba8d1e3ff | [
"BSD-3-Clause"
] | permissive | trevorandersen/colour | 167381b3d03e506a270a8d2a519a164808995437 | 02b595b26313c4b4f55adc41d599f90c4c9edbcd | refs/heads/develop | 2021-07-15T04:48:19.585586 | 2021-01-23T23:51:44 | 2021-01-23T23:51:44 | 230,421,054 | 0 | 0 | BSD-3-Clause | 2019-12-28T12:54:20 | 2019-12-27T10:10:30 | null | UTF-8 | Python | false | false | 1,894 | py | # -*- coding: utf-8 -*-
"""
Showcases *Von Kries* chromatic adaptation model computations.
"""
import numpy as np
import colour
from colour.utilities import message_box
message_box('"Von Kries" Chromatic Adaptation Model Computations')
XYZ_w = np.array([0.95045593, 1.00000000, 1.08905775])
XYZ_wr = np.array([0.9642... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
743f8d76649f1db64f4bc1b6231b68ef95ed7bab | bf0a0102140a399ff6554e6cd8b7cee058b47c9b | /part2-solved/rest_api/api/models.py | fe0963006fe2b1d3608c16395e74c6e66c6090b1 | [
"Apache-2.0"
] | permissive | AETT-UA/ws_deployment | 642428b5b4253a22fea76eea7ea46e1233321cb8 | 4c058f9023137ad75fddfc76ffb0c774635cde9d | refs/heads/main | 2023-05-01T06:16:30.057644 | 2021-05-05T16:53:44 | 2021-05-05T16:53:44 | 356,915,597 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | from django.contrib.auth.models import User
from django.db import models
from django.utils.timezone import now
class Department(models.Model):
id = models.IntegerField(primary_key=True)
name = models.TextField()
initials = models.CharField(max_length=10)
class CourseUnit(models.Model):
id = models.I... | [
"rafael.neves.direito@ua.pt"
] | rafael.neves.direito@ua.pt |
4aeb4b204315763f3d88f1aa2e64600a49e31a2a | b12b57ca16653293553f079a2198e8c187fe8ec6 | /trails/feeds/botscout.py | f3f116247072532573054d943f19425e29453721 | [
"MIT"
] | permissive | Ahrvo-Technologies/maltrail | 4bd0bcfa393a3d27f06e9221c299a4b1fe3d9130 | 7d411d97568fed16013fad22fd466978af1f3184 | refs/heads/master | 2023-06-05T12:15:58.925983 | 2021-06-30T10:21:12 | 2021-06-30T10:21:12 | 315,578,423 | 0 | 0 | MIT | 2020-12-10T00:03:47 | 2020-11-24T09:16:14 | null | UTF-8 | Python | false | false | 716 | py | #!/usr/bin/env python
"""
Copyright (c) 2014-2021 Maltrail developers (https://github.com/stamparm/maltrail/)
See the file 'LICENSE' for copying permission
"""
from core.common import retrieve_content
__url__ = "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/botscout_1d.ipset"
__check__ = "botscou... | [
"miroslav.stampar@gmail.com"
] | miroslav.stampar@gmail.com |
9d6f26b5b2d834a1a61f2ff760e508db01915829 | ad10cd9aecb8e1b277996484a35f54544a3f56c4 | /New folder (3)/programs/radio.py | 266607ce39abba48b0f36ee72a9d603abb6cf61c | [] | no_license | gokul05021992/whole-projects | 4a4264ec75e1878a3661145a63c99c2b4b7c8350 | 993a8b8db83266e434387730cc5f8b16e4a8b77e | refs/heads/master | 2023-05-22T18:36:38.651925 | 2021-06-13T01:09:11 | 2021-06-13T01:09:11 | 376,460,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | from tkinter import *
def selection():
selection = "You selected the option " + str(radio.get())
label.config(text=selection)
top = Tk()
top.geometry("300x150")
radio = IntVar()
lbl = Label(text="Favourite programming language:")
lbl.pack()
R1 = Radiobutton(top, text="C", variable=radio, value=1,
... | [
"bgokul92@gmail.com"
] | bgokul92@gmail.com |
919bcde9df345e69609c0018f33578de4ebe5984 | 933e886ae7bb5db841eaf41bd6dd57559e9ebcfa | /shirapp/migrations/0001_initial.py | 5af321c02f99a8fa902b4706c79d92d1ea040801 | [] | no_license | Shirhussain/SimpleTweet | 5c7b2348297a48fdd47005691c6381f0816a58cf | 3ee01210d1a92bd6e41a9cd7a4a3127392db5ca1 | refs/heads/master | 2022-08-22T08:34:53.533796 | 2020-05-20T21:37:44 | 2020-05-20T21:37:44 | 266,212,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # Generated by Django 3.0.5 on 2020-05-15 15:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Tweet',
fields=[
('id', models.AutoField(au... | [
"sh.danishyar@gmail.com"
] | sh.danishyar@gmail.com |
f3afa199e2c716b46a2c17f29e2afc8abb435ee3 | 076e22c1f386cd543559823f8491f425cbb71a24 | /aula_1/ex_6.py | 434a3e63caa249ba23a0d9c0ffdde488f00d77c2 | [] | no_license | patyb7/python-520 | 7b3d8b01890eec2e2d9d5c2f81f3731fd223ca71 | 8b230a4d147815d38b2f0eb16810f55fe49ad528 | refs/heads/master | 2020-06-08T13:50:36.993338 | 2019-06-22T20:36:30 | 2019-06-22T20:36:30 | 193,238,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | def receber_inteiro(mensagem):
valor = input(mensagem)
if valor.isnumeric():
return valor
print ('numero inválido')
exit()
def receber_inteiro_2(mensagem):
valor = input(mensagem)
while not valor.isnumeric():
valor = input(mensagem)
return int (valor)
usuario = {
'nome': input('Digite seu nome: '),
'i... | [
"leonardo.mendes@4linux.com.br"
] | leonardo.mendes@4linux.com.br |
55cb4f8b502fca852cc217faae63ea1e8c44166d | c6a101547c2b7f36fe83a725974a8a7f02cf176d | /data_structures/bst/binary_search_tree.py | 54f2906423e091e64e6486232492e0bb5fd3bb06 | [
"MIT"
] | permissive | prabhupant/python-ds | 737cc35574de5c2ece0f0813cf00775324a8dbe7 | f7d6d78fedaf84b7527965bb1798b7a8da989474 | refs/heads/master | 2023-08-22T05:04:22.937675 | 2022-10-04T01:29:39 | 2022-10-04T01:29:39 | 199,366,418 | 2,325 | 704 | MIT | 2022-10-10T13:01:10 | 2019-07-29T02:48:57 | Python | UTF-8 | Python | false | false | 760 | py | class Node():
def __init__(self, val):
self.val = val
self.left = None
self.right = None
class BST():
def __init__(self):
self.root = Node(None)
def insert(self, new_data):
if self.root is None:
self.root = Node(new_data)
else:
if... | [
"prabhupant09@gmail.com"
] | prabhupant09@gmail.com |
638f92843414f34d0116054b9751aad2e5ed37aa | 6e373b40393fb56be4437c37b9bfd218841333a8 | /Level_3/Lecture_16/enroll/urls.py | 7867b31d4a0d0cd747c93134cfbfd7747e1ab771 | [] | no_license | mahto4you/Django-Framework | 6e56ac21fc76b6d0352f004a5969f9d4331defe4 | ee38453d9eceea93e2c5f3cb6895eb0dce24dc2b | refs/heads/master | 2023-01-22T01:39:21.734613 | 2020-12-04T03:01:17 | 2020-12-04T03:01:17 | 318,383,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.urls import path
from .import views
urlpatterns = [
path('registration/', views.showformdata),
path('success/', views.thanks),
] | [
"mahto4you@gmail.com"
] | mahto4you@gmail.com |
38a92e39c08133861bc0cd81a7992c56aa4dfc13 | 53abcba37ef0fd69bd90453b175f936edcca842c | /Uber/242.py | dbfd4ffbab52822a145de6ff24d0de352fc3a552 | [] | no_license | cloi1994/session1 | 44db8fa6d523d4f8ffe6046969f395e8bbde9e40 | 9a79fd854e9842050da07f9c9b0ce5cadc94be89 | refs/heads/master | 2020-03-09T05:15:51.510027 | 2018-06-13T04:41:43 | 2018-06-13T04:41:43 | 128,608,752 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | class Solution(object):
def isAnagram(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
hm = {}
for c in s:
if c in hm:
hm[c] += 1
else:
hm[c] = 1
for c in t:
if c not in hm:... | [
"noreply@github.com"
] | cloi1994.noreply@github.com |
bc00f918fa64c0e2784fd69899b4426a6000e122 | 86834273400f125863bb0dd0e8ad22561c119ce1 | /ursina/prefabs/slider.py | 0fd6c5d5ea6824b095878db265c33894d196c041 | [
"MIT"
] | permissive | uditmaherwal/ursina | 9b50ae4ebf9008f086328eaeb7c79aadd3414174 | 20c6c396224f6a3b75a93a3142c0efde810fb480 | refs/heads/master | 2021-01-26T02:25:01.987909 | 2020-02-23T18:54:06 | 2020-02-23T18:54:06 | 243,273,206 | 1 | 0 | MIT | 2020-02-26T13:47:23 | 2020-02-26T13:47:22 | null | UTF-8 | Python | false | false | 4,717 | py | from ursina import *
class Slider(Entity):
def __init__(self, min=0, max=1, default=None, height=Text.size, text='', dynamic=False, **kwargs):
super().__init__()
self.parent = camera.ui
self.vertical = False
self.min = min
self.max = max
if default is None:
... | [
"pokepetter@gmail.com"
] | pokepetter@gmail.com |
44a81abb7c4bc286b85ed7a262bbe06b71b0a7d3 | b74320ad439e37dfa48cd8db38dab3b7a20a36ff | /tests/schedulers/test_scheduler_ddim_parallel.py | b96e12f60fb3fc7a6f7dda235c048b93c242b034 | [
"Apache-2.0"
] | permissive | huggingface/diffusers | c82beba1ec5f0aba01b6744040a5accc41ec2493 | 5eeedd9e3336882d598091e191559f67433b6427 | refs/heads/main | 2023-08-29T01:22:52.237910 | 2023-08-28T18:16:27 | 2023-08-28T18:16:27 | 498,011,141 | 17,308 | 3,158 | Apache-2.0 | 2023-09-14T20:57:44 | 2022-05-30T16:04:02 | Python | UTF-8 | Python | false | false | 7,444 | py | # Copyright 2023 ParaDiGMS authors and The HuggingFace Team. 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... | [
"noreply@github.com"
] | huggingface.noreply@github.com |
c302e744681d14d37e78f2ff07011a69ffc5ac92 | aea96aa406250c3a2a8f2799e6cbbad256c262c3 | /Exercise/is_==.py | c19fb14e841b46cde63728970c6f0b3d8aad5b1e | [] | no_license | xiaochuanjiejie/python_exercise | cb0ffaa4b7c961c8ca9847526c84ee6ba261620c | 710fa85fd2d7a17994081bdc5f8b5ff66b77416e | refs/heads/master | 2021-01-21T16:18:04.640093 | 2017-08-11T10:02:49 | 2017-08-11T10:02:49 | 95,403,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | #-*- coding: utf-8 -*-
__author__ = 'chuan'
'''
解释"is "和"= ="之间的差异, 例说明,对is 返回为假,= = 返回为真。
答:
Python中的对象包含三要素:id、type、value
其中id用来唯一标识一个对象,type标识对象的类型,value是对象的值
is判断的是a对象是否就是b对象,是通过id来判断的
==判断的是a对象的值是否和b对象的值相等,是通过value来判断的
'''
a = 1
b = 1.0
if a is b:
print 'a:%s 和 b:%s (is)ID相等' % (id(a),id(b))
else:
print ... | [
"xiaochuanjiejie@gmail.com"
] | xiaochuanjiejie@gmail.com |
b748aa698435da49f5323b57ebfb1aa8be6ad24a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/1038.py | 7b14a57a1e34ec10bec9ebf199be31b2122561f9 | [] | 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 | 450 | py | from __future__ import print_function
import sys
fin = sys.stdin
num_cases = int(fin.readline().strip())
for c in range(num_cases):
_, s = fin.readline().split()
standing = 0
friends = 0
for i, n in enumerate(s):
n = int(n)
if n == 0:
continue
if standing < i:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d74207446acea4db6a83453ba992a0c97cac9e53 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/468/usersdata/292/111571/submittedfiles/Av2_Parte3.py | a44af7291f067a05e1037ee821385bbceedeef36 | [] | 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 | 742 | py | # -*- coding: utf-8 -*-
########################################### -> MÓDULOS
from math import sqrt
########################################### -> FUNÇÕES
def media(lista):
MEDIA = sum(lista)/len(lista)
lista.append(MEDIA)
return MEDIA
def dp(lista, MEDIA):
somat = 0
for xi in lista... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9e6b7991502ecd0ab585be9c6814907941946a7c | 0444e53f4908454e2e8ab9f70877ec76be9f872c | /messaging/signals.py | 6928f003ecf65bcec85b013b581457325ff7a33f | [
"MIT"
] | permissive | dedayoa/keepintouch | c946612d6b69a20a92617354fef2ce6407382be5 | 2551fc21bb1f6055ab0fc2ec040c6ba874c2838f | refs/heads/master | 2020-03-22T12:53:44.488570 | 2018-08-17T13:00:51 | 2018-08-17T13:00:51 | 140,069,262 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,611 | py | '''
Created on Aug 24, 2016
@author: Dayo
'''
from django.db import transaction
from django.dispatch import receiver
from django.db.models.signals import post_save
from django.apps import apps
from django.utils import timezone
from .models import IssueFeedback
from .tasks import process_issue_submission... | [
"dedayoa@gmail.com"
] | dedayoa@gmail.com |
6bf2a93cab7ed263ecfb67a1edde65ed2d4e55ac | 4c77c3f68ddd280ad26ed78a9f4927ff9eb5e1f1 | /src/ledger/lib/python2.7/site-packages/pip/_vendor/packaging/_structures.py | 3f0c27fd35b9cf26c28227fbc6ff926584e389f3 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | neoscoin/neos-core | 5f4a4e9fcdf13a21d1dbedfc7c01a8a8ba454a98 | 22cecda54875e3554e7c2a4569551c042fa6c0a2 | refs/heads/master | 2020-03-23T18:54:58.602764 | 2019-08-04T16:44:27 | 2019-08-04T16:44:27 | 141,940,658 | 4 | 4 | MIT | 2018-07-28T21:39:26 | 2018-07-23T00:05:03 | C++ | UTF-8 | Python | false | false | 1,488 | py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
class Infinity(object):
def __repr__(self):
return ... | [
"kris@blockchaindatasystems.com"
] | kris@blockchaindatasystems.com |
71575849d68c28c978e70fe9af32b18506db6605 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03220/s963729738.py | 45af0d5e21ea73cb7d3d4f2e559d47bcad4c7cb6 | [] | 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 | 233 | py | N = int(input())
T, A = map(int, input().split())
H = list(map(int, input().split()))
res = 10 ** 6
idx = 0
for i, h in enumerate(H):
tmp = abs(A - T + h * 0.006)
if tmp < res:
res = tmp
idx = i + 1
print(idx) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
65066a1edacbdbf47ab4c6fdc1f067e15ff2c241 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_006/ch80_2020_04_13_14_56_01_644999.py | 4cb5ad26d2dc1b6743cf147ce16a6f218794b1a0 | [] | 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 | 152 | py | def interseccao_chaves(d1, d2):
lista=[]
for i in d1:
for g in d2:
if i==g:
lista.append(i)
return lista | [
"you@example.com"
] | you@example.com |
106cee961e6da87b4990c056e867bc5bc9aa7f2b | 100351ac093a341f76155ca9ebd35f222c00f90d | /rmatics/tests/functional/problem/submission/test_update_submission.py | 748fe45d43d72922d21c4a5cc5189ead4160052d | [] | no_license | Informatinks/informatics-alive | e3d1c3d43677874bf6e412e3ae1c2b675dbf8784 | 6f984be819e871ee671a20a94fe47fa58e4bc6ab | refs/heads/master | 2022-12-11T22:22:01.408254 | 2019-10-30T14:23:14 | 2019-10-30T14:23:14 | 149,165,041 | 1 | 3 | null | 2022-12-08T05:17:46 | 2018-09-17T17:49:08 | Python | UTF-8 | Python | false | false | 3,596 | py | import mock
from flask import url_for
from mock import patch, MagicMock
from rmatics import db, mongo
from rmatics.model import Run
from rmatics.model.rejudge import Rejudge
from rmatics.testutils import TestCase
class TestAPIUpdateRun(TestCase):
def setUp(self):
super().setUp()
self.create_ejud... | [
"n.pakhtusov@tinkoff.ru"
] | n.pakhtusov@tinkoff.ru |
c21b272fb298c2ab79fa6df6a35b05d020731819 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /DepthFirstSearch/FindPath.py | d2fc398e5f68ebe79f50b9864f49f8cdf6f5d406 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,131 | py | ###################### 条件设置 ########################
# 1为障碍, 0为空格子
# 输入(List[List[int]]): NxN 的矩阵 grid
# 输出(Int): 从左上角到左下角, 每个空格子正好遍历一次的路径数量
# dfs(x,y,visited) 表示 当前位置x,y, 已经走过的path为visited -> 最终状态 的方法数
# dfs(x,y,visited) = dfs(x+1,y,new_visited) + dfs(x-1,y,new_visited) + dfs(x,y+1,new_visited) + dfs(x,y-1,new_visite... | [
"564258080@qq.com"
] | 564258080@qq.com |
5838459a6dfe0e393f449798fc6772b0ec0eb2df | 7d6dff0f6f5a5489280bbf12097fcb01c87786df | /py.py | 184542cf71eba91a96d168fcf8b668b9b4a9cbbc | [] | no_license | siavashMehran/IP-API | e266f3ab14ab9c6c3ff27b4cc9bc2034ab3b4deb | a81795d4dc4263e350d2408bc27416fe6e27626c | refs/heads/master | 2023-04-17T05:46:00.624891 | 2021-04-25T21:20:40 | 2021-04-25T21:20:40 | 360,000,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | import json
a = [1, 2, 3, 4, 9]
b = [12, 324, 124, 346, 5]
c = ['a', 'b', 'c', 'f', 'g']
d = {
'1':'asd',
'sac' : 'this somje txt',
'13': 3,
13 : 'ass',
'some_list' : {'key1': 'val1', 2:3}
}
dum = json.dumps(d, indent=4)
for s in d:
key = s
value = d[s]
if type(value) != dict... | [
"sia.dev.acc@gmail.com"
] | sia.dev.acc@gmail.com |
9e13e43318a0753f28d3b126a01e3c44812f7f0b | dda618067f13657f1afd04c94200711c1920ea5f | /scoop/rogue/search_indexes/flag.py | 58131dd92e7c86a0660caf7f6948063d849e2219 | [] | no_license | artscoop/scoop | 831c59fbde94d7d4587f4e004f3581d685083c48 | 8cef6f6e89c1990e2b25f83e54e0c3481d83b6d7 | refs/heads/master | 2020-06-17T20:09:13.722360 | 2017-07-12T01:25:20 | 2017-07-12T01:25:20 | 74,974,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # coding: utf-8
from haystack import indexes
class FlagIndex(indexes.SearchIndex, indexes.Indexable):
""" Index haystack des signalements """
text = indexes.CharField(document=True, use_template=True)
# Getter
def get_model(self):
""" Renvoyer le modèle de l'index """
from scoop.rogu... | [
"steve.kossouho@gmail.com"
] | steve.kossouho@gmail.com |
0468354834e6037ce0f874b58cd904f7c33fb5f9 | 222d4f2dfb63a66b5de274b785cb92393a2e0fe9 | /190916/10.py | 7a06e923c7927623e96389f29676504e3be8d4d6 | [] | no_license | GyuReeKim/PycharmProjects | fd2584c3ff1369510a7f246f2089cefb77035d9d | dd4f0e15b4e72c68b054489c54f24fa0ba5b9ed3 | refs/heads/master | 2020-07-03T11:44:54.951147 | 2019-11-21T00:07:43 | 2019-11-21T00:07:43 | 201,894,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | # 암호 스캔 코드
# 선생님 코드
def f(N, M, s):
used = [[0]*M for _ in range(N)] # 확인된 암호패턴 영역을 표시
total = 0
for i in range(N):
j = M*4-1 # 비트 패턴의 끝을 탐색
while j > 0:
if s[i][j] == '1' and used[i][j] == 0: # 패턴이 시작되면
pwd = [0]*8
col = j
for k i... | [
"starkim96@naver.com"
] | starkim96@naver.com |
a47b5edf6865dcd5dd6cf0603677a6680729399b | 1f4204f903657884d9cccfd44b19ecb531b59ded | /test_settings/223_3_4_2000.py | f2e20156540eacb1fbf6e166a9ead1f5dd526dc3 | [] | no_license | fmcc/StylometricAnalyser | 795a8e4abe264ee18ab3bcb34bd128bcd06ac5ca | e86305a63c95d8b533cab4a3be0010c2fee0ff14 | refs/heads/master | 2021-01-23T08:38:44.961082 | 2013-08-31T20:23:36 | 2013-08-31T20:23:36 | 11,097,508 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py |
import os
DB_PATH = os.getcwd() + '/database/greek_texts.db'
LOGGING = True
DB_LOGGING = False
NGRAM_WORDS = False
NGRAM_LENGTHS = {
'MIN': 3,
'MAX': 4
}
NO_SPACES = True
RESTRICT_VECTOR_SPACE = 2000
# If selected, texts will be divided according to their original top-level divisions (Books etc... | [
"finlaymccourt@gmail.com"
] | finlaymccourt@gmail.com |
7fa771cb3c6b69845587f783395a65e712d80c8e | e52a76724a7aae64082154ca43a5145f50fa2e4d | /merquemos/stock/migrations/0030_auto_20190302_1119.py | c7d2f140f3df1fe7bffa1e453f78aabc40dc2d4f | [] | no_license | dmontoya1/merquemos | 729ccfd2080f8e7e18cb2ee2cf608a654fb7399a | 5b2142980511cf6d6eba19d8f8affe33f7edfcb2 | refs/heads/master | 2023-05-06T18:49:51.907772 | 2019-12-03T14:55:02 | 2019-12-03T14:55:02 | 371,432,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-03-02 16:19
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('stock', '0029_auto_2019020... | [
"dmontoya@apptitud.com.co"
] | dmontoya@apptitud.com.co |
4c02f5d5aa6c4913f471cc8c426b39888d54b48a | f2918004f011554fad7ee896b779fe5abd0fef73 | /pyexcel/sources/excel.py | c3322b15ff350c83e36dfb7dded0681432d3dae3 | [
"BSD-3-Clause"
] | permissive | jayvdb/pyexcel | fb448fcdd2a3e668eb817cae03541d487cdf7679 | 666c354a961a7918f649bb6d3e145e3c2c5311e9 | refs/heads/master | 2020-12-30T23:34:33.524174 | 2016-05-16T22:53:05 | 2016-05-16T22:53:05 | 57,399,741 | 0 | 0 | null | 2016-04-29T16:52:41 | 2016-04-29T16:52:41 | null | UTF-8 | Python | false | false | 2,797 | py | """
pyexcel.sources.file
~~~~~~~~~~~~~~~~~~~
Representation of file sources
:copyright: (c) 2015-2016 by Onni Software Ltd.
:license: New BSD License
"""
from . import params
from .base import FileSource
from .renderer import RendererFactory
from . import _texttable as texttable
RendererFactory... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
5bf3daa2bc755d84735baa3e074ecb4fa349d7ee | 5e9b358daaeff9ff630615b16a60760771dbd3d3 | /wnlib/wn/build.py | fc3dbdec59d3c4637777142a0fc9bafe31cb12ea | [
"MIT"
] | permissive | caymanz/archives | 08fbe7b657c11105ff525a61afd9507748b1a1ef | 19a33a2ef643b735bad5ec25a1d0f205e269b2f5 | refs/heads/master | 2021-05-30T09:47:33.446173 | 2016-01-01T05:04:57 | 2016-01-01T05:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,934 | py | """
build client app
1. builds 4 files
- app.js
- web.js
- app.css
- web.css
2. Makes pages (views) from view.html template
3. Makes other pages from database
Setup file bundle in conf.py
"""
import sys
sys.path.append('lib')
sys.path.append('controllers')
import wn, os, conf, shutil, codecs
from itertoo... | [
"rmehta@gmail.com"
] | rmehta@gmail.com |
e6062c4d64e7b2112d15e8b0af1315a0794cba06 | c1db0672199013000a2ce6328f6fe86776cbbacd | /almin.py | 6f71ccd9f55a1139261255015b62528335a794ba | [] | no_license | swarnanjali/python-programes | 0db3aa10969ca2c3d925689e29ffa7f48dbc137e | aa08d67da9b2ac377335156796031cf40208bd3f | refs/heads/master | 2020-05-23T02:01:45.129247 | 2019-07-19T07:01:57 | 2019-07-19T07:01:57 | 186,594,991 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | nin=int(input())
sll=[int(i) for i in input().split()]
sc=0
for i in range(1,nin-1):
if sll[i]<sll[i-1] and sll[i]<sll[i+1]:
sc+=1
elif sll[i]>sll[i-1] and sll[i]>sll[i+1]:
sc+=1
print(sc)
| [
"noreply@github.com"
] | swarnanjali.noreply@github.com |
4c772fd9d9b2f202e99976ca2adb02cd26141b74 | 7645d8913f9fef169ebbb3722936afdb3be23863 | /fnbsf/items.py | 43b3187969f8daddcf1912a7dc24e34e9d8ec691 | [] | no_license | hristo-grudev/fnbsf | a1fdd91591bbb7127070afe0f47a417ad2489230 | c2955413b22d76ea82a8b0fa3a2d564a109bc64f | refs/heads/main | 2023-03-27T21:48:15.568141 | 2021-04-01T07:57:12 | 2021-04-01T07:57:12 | 353,620,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | import scrapy
class FnbsfItem(scrapy.Item):
title = scrapy.Field()
description = scrapy.Field()
date = scrapy.Field()
| [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
f6befda830ce0b7b0c4991a51279583fc692fcc3 | 6f7073c569c322753af24989e9b10e179e1bc044 | /examples/plugin_cls.py | 32fe06fed1ba29ca6bc78fc203643ccddf701c82 | [
"MIT"
] | permissive | axju/wmc | ae887be68b2e20f78b3ee071dd49bca043581115 | caa54c3bfe809104c8c65972d116388dcfb066f5 | refs/heads/master | 2021-06-27T12:28:00.417131 | 2021-02-09T13:58:39 | 2021-02-09T13:58:39 | 207,906,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import os
import setuptools
from wmc.utils import BasicCommand
class Plugin(BasicCommand):
"""A Plugin with a the basic class"""
__version__ = '0.1.0'
def setup_parser(self):
super(Plugin, self).setup_parser()
self.parser.add_argument('--hello', action='store_true', help='say hello')
... | [
"axel.juraske@short-report.de"
] | axel.juraske@short-report.de |
caffda80395dc0b16f7a71737f0a7fd3fb564284 | 69deed959c51503f6c04837f2dced99d97a00904 | /Facebook/recursion/letter_combinations_of_a_phone_number.py | e9fc7fa99598b27f23301d0ad40a1ee030e03e82 | [] | no_license | AbhinavPelapudi/leetcode_problems | 2d9ca9609d0be57750ed8fb19743e6654cafd466 | 012690bd407dd387dcc248442a5eb8d1d140a0f8 | refs/heads/master | 2022-02-21T22:38:38.656265 | 2019-08-06T04:22:21 | 2019-08-06T04:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # Letter Combinations of a Phone Number
"""
Input: "23"
Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].
'2': ['a','b','c']
'3': ['d','e','f']
depth = 0, 1, 2
build = cf
result = ['ad', 'ae', 'af', 'bd', 'be', 'bf', 'cd', 'ce', 'cf']
"""
class Solution:
def letterCombinations(self, digits: str... | [
"inas.raheema@gmail.com"
] | inas.raheema@gmail.com |
aab2056d4816a8d1181d1625d401f69e693f8c34 | cf3e91a574dd1520234823f895757e6bb406928c | /test.py | e134348a93c3c3a00eba70556d09017a038b4d61 | [] | no_license | MelRanG/Algorithm | 92a5c6c4d6b89d72cf8e0ea621544bc4ed963222 | f176028855bca18e0a079d509fe2186b92b4a300 | refs/heads/master | 2023-04-04T10:23:18.963508 | 2021-04-20T14:32:17 | 2021-04-20T14:32:17 | 330,335,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | def solution(number, k):
n = ""
print(number[0])
count = 0
number_length = len(number)
visited = [False] * number_length
index = 0
while True:
if count == number_length - k:
break
x = '0'
check = False
for i in range(index, k + 1 + count):
... | [
"tpdud285@gmail.com"
] | tpdud285@gmail.com |
2aa6a060507c641b9fddcea0c908016290453bcd | 0689f2fdd294c875e75e226c86dbc8d3f71467c2 | /django_gitversions/base.py | 4372a6e3a6a80289ea4e80f8d3e143a19dab184c | [
"BSD-2-Clause"
] | permissive | LARAsuite/django-gitversions | 0a18fc5e7f1e6e5df6bbaecf73c118052b05d8ef | 8330187bc9bd5a586d01fac417133bf214d13bf4 | refs/heads/master | 2021-06-03T14:55:58.828562 | 2015-11-22T23:04:58 | 2015-11-22T23:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py |
import os
import glob
from django.conf import settings
from django_gitversions.serializers import VersionSerializer
from .utils import LazyConfig, mkdir_p
class Versioner(LazyConfig):
'''Simple object which has responsibility for loading and dumping all data
this class is merged with Django Serializer clas... | [
"6du1ro.n@gmail.com"
] | 6du1ro.n@gmail.com |
15a798bd9f4b279cfcf317264fe0f8e6efe24e7d | b32896ebdb336a04e0efcaec507e6ef40e5ed978 | /app/index_stations.py | 6b9ac85d35fdafb93abb7f0d4bc6ac1a34fa383d | [] | no_license | csinchok/ifartradio | 1dd045abe073f7e77fbd14a1b152e5905b1e4e26 | aecd6d0d8bc234d3f09f94aaaec1d069023300f0 | refs/heads/master | 2021-01-01T19:56:42.190013 | 2013-09-08T17:54:22 | 2013-09-08T17:54:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,524 | py | from pyelasticsearch import ElasticSearch
from pyelasticsearch.exceptions import ElasticHttpNotFoundError, IndexAlreadyExistsError
import requests
import time
import json
import StringIO
IGNORED_GENRES = ("9", "15", "19") # We only care about stations that play music.
import settings
es = ElasticSearch(settings.ES_... | [
"chris@sinchok.com"
] | chris@sinchok.com |
6cc6df9294d61c960a09cf72870a219dfd7c6d88 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/hsnnas006/question2.py | 0a2d8d058778298693f5a381c97fe3f501c33e19 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | '''program to reformat text file
nasreen hoosain
11/05/14'''
#function to remove newline characters from file and keep paragraph form
def para_split(file_list):
splt = lines.split('\n\n') #splits on basis of paragraphs
paragraph = []
for i in range(len(splt)):
par = splt[i]
par = ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
4098a6c247429b4cde643e8373f1f62586de53e1 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/googlecloudsdk/command_lib/compute/managed_instance_groups/update_instances_utils.py | 0a3ca57982f3b67ba54efb0bfa48d4d76a71541e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 8,098 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
58d376d3367d7cfedfaf99bdc751de58dab70808 | 92925ea36a241156c923262f7aeea86ce53cb356 | /dashboard/util/portUtil.py | 9c6ffecc993fd7b79932efa7da439e1ac78cf942 | [] | no_license | greshem/openstack_bootstrap_dashboard | c839bfb86f8b1f0b8fee602c1363f061ca65ef55 | 7dfda640740507199b291d01cb8304df570f2664 | refs/heads/master | 2021-07-10T00:44:10.875699 | 2017-10-08T15:39:43 | 2017-10-08T15:39:43 | 106,177,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | # -*- coding:utf-8 -*-
'''
Created on 2016年9月28日
@author: greshem
'''
from dashboard import api
LIMIT=10
def getFix(floating_ip_port):
if floating_ip_port and floating_ip_port.fixed_ips:
fixed_ip_address=''
for fixed_ip in floating_ip_port.fixed_ips:
if fixed_ip_address:
... | [
"qianzhongjie@gmail.com"
] | qianzhongjie@gmail.com |
37febc9f6f533839d641d1f61607e948b3e04e2c | 57e28d8afbaae31052c1b11f111806f306b59815 | /mylink/utils.py | 0d728ccd0252e1dd1940e160aa6f277446aae707 | [] | no_license | rizaksp/monitorbl | 5d98edba5b88894499e179010b08c0278a6f0dd5 | 82d8d3047b18c56e0c78b35ef6f81519b83e43e6 | refs/heads/master | 2020-04-16T04:58:24.345227 | 2017-12-15T10:54:39 | 2017-12-15T10:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | import requests
from bs4 import BeautifulSoup as BS
def updateData(list_data):
for d in list_data:
try :
r = requests.get(d.url())
html = BS(html.text)
text_terjual = html.select('.qa-pd-sold-value')[0].text
text_price = html.select('.c-product-detail-price'... | [
"anderi.setiawan@gmail.com"
] | anderi.setiawan@gmail.com |
f561ff5c597b606b63bdee9ea6330a3a6e6aae3c | d7753137a13c068cb0484bdc9a8237a36378db1b | /Target Offer/20. 表示字符的字符串.py | 149b9fd834147e23da6caf47d7c09cc97643a4ae | [] | no_license | alexkie007/offer | 740b1e41b9d87de3b31df961c33371a5e3430133 | 85ceaf8f3da0efd66b4394ef16669ea673218265 | refs/heads/master | 2021-04-12T11:56:49.779558 | 2018-11-03T05:26:51 | 2018-11-03T05:26:51 | 126,163,525 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | '''
将一个字符串转换成一个整数,
要求不能使用字符串转换整数的库函数。
数值为0或者字符串不是一个合法的数值则返回0
'''
class Solution:
def StrToInt(self, s):
try:
return float(s)
except:
return 0
s = Solution()
print(s.StrToInt('121332313e3'))
| [
"alexkie@yeah.net"
] | alexkie@yeah.net |
624f669081672f2cbb9bbb34d9d33c446d34e093 | 51ea2be2a164e90a6f6c327ccedc95b5492a5329 | /HackerEarth/Algorithms/Bubble Sort/Easy_Going.py | 7a3881bd13c7b63d7f2b94a8c19fa39bbdfd5a43 | [
"MIT"
] | permissive | hanzohasashi33/Competetive_programming | 081c30d248d54cdf488d36d1c965b0f184296562 | b609972ada1c7177f182665e998beaa0c1eba514 | refs/heads/master | 2021-06-30T07:21:12.625721 | 2021-02-01T12:54:56 | 2021-02-01T12:54:56 | 216,160,136 | 22 | 23 | MIT | 2022-05-30T16:13:36 | 2019-10-19T06:28:39 | C++ | UTF-8 | Python | false | false | 394 | py | # Write your code here
test = int(input())
while test > 0 :
n,m = [int(x) for x in input().split()]
l = list(map(int,input().split()))
for i in range(n - 1) :
for j in range(n - i - 1) :
if l[j] > l[j+1] :
l[j],l[j+1] = l[j+1],l[j]
minsum = sum(l[:n-m])
l = l... | [
"noreply@github.com"
] | hanzohasashi33.noreply@github.com |
90ee957a496298a7665fdc3308064f8cc85ed46e | 170864b6ec66be48138f231fe8ac3381481b8c9d | /python/BOJ_1300.py | cd1ecd5758903055010f02d2391854ff702cd7f4 | [] | no_license | hyesungoh/AA_Algorithm | 5da3d8312d035d324dfaa31eef73f01a238231f3 | d68f52eaa29cfc4656a8b5623359166779ded06e | refs/heads/master | 2023-06-09T14:49:01.402456 | 2021-06-28T10:10:09 | 2021-06-28T10:10:09 | 272,701,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | N, K = int(input()), int(input())
start, end = 1, K
while start <= end:
mid = (start + end) // 2
temp = 0
for i in range(1, N+1): temp += min(mid//i, N)
if temp >= K:
answer = mid
end = mid - 1
else: start = mid + 1
print(answer)
| [
"haesungoh414@gmail.com"
] | haesungoh414@gmail.com |
66395652670f678c53d0e1dc7cdb16fac82a1e56 | e3ae1d6d9eb399b39578a8ede123c44f24c2805e | /lab/tests/TESTSET | 54f09afdfccc7f774cd6a4afac90fa9b88ba0281 | [] | no_license | AI-comp/Orientation2016Problems | 5c23fa542ab84091711e085a3efb288e77c667af | 382d2644e41c80d92cfe48b237bd9bf9ca1dcec5 | refs/heads/master | 2021-03-24T10:08:20.873080 | 2017-05-24T00:15:23 | 2017-05-24T00:15:23 | 56,775,930 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 615 | # -*- coding: utf-8; mode: python -*-
## Input generators.
#c_generator(src='generator.c')
#cxx_generator(src='generator.cc')
java_generator(src='Generator.java', encoding='UTF-8', mainclass='Generator')
#script_generator(src='generator.py')
## Input validators.
#c_validator(src='validator.c')
#cxx_validator(src='val... | [
"k0223.teru@gmail.com"
] | k0223.teru@gmail.com | |
4037042e2ff02f6b3e312553ecaece52824376b2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_280/ch31_2020_03_23_13_43_05_520764.py | a29a813955c0c004e6a616cb57363631e056690b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | def eh_primo (x):
if x==2:
return True
elif x==0 or x==1:
return False
elif x%2==0:
return False
else:
n = 3
while n < x:
if x%n==0:
return False
n += 2
return True | [
"you@example.com"
] | you@example.com |
d78118766c4a5d0fedb4fd52f1d98f8f6c11c26d | 51e77e985d9b6c6bb0972ccee14b867e289aae61 | /fundamentalsOfComputing/interactiveProgramming/practice_distance_calculation.py | 9657fc2cddf33da73187de6dde47df3907f530e9 | [] | no_license | ErhardMenker/MOOC_Stuff | 7c397059f62ba39f21a877c7fcf71a97751dda4b | 7cdd581e9f9dcdd0b0c27dbbb9216bc76df8fff5 | refs/heads/master | 2021-01-17T10:38:06.805197 | 2017-03-29T23:50:18 | 2017-03-29T23:50:18 | 84,018,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | """ Create Function to calculate distance from a point to the closest edge of a circle with radius r and center c """
# Initialize Globals
p = [4, 7]
c = [2, 9]
r = 2
# Define function
import math
def distance_nearest(p, c, r):
val = math.sqrt((p[0] - c[0]) ** 2 + (p[1] - c[1]) ** 2) - r
return val
pri... | [
"ejmenker@gmail.com"
] | ejmenker@gmail.com |
d9d0870cfeb2b56752fdf2aff70155d659cc208d | 11ff5d1651b1a3972de8d7fe369943166cb1e8dd | /project/backend_squares/squares/squares_app/serializers/__init__.py | e84de52f553ff83a10716ffd1694caa5d5a979ca | [] | no_license | ilyalevushkin/computer_networks | b0eb4fa1d20a381480b6b278c01a753a98bf23ee | 3fc63850ef27779404b8d3fd054f194b78c7ee21 | refs/heads/main | 2023-05-25T11:19:06.055725 | 2021-06-16T12:58:12 | 2021-06-16T12:58:12 | 316,938,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from .user import UsersSerializer, UsersSignInSerializer, UsersUpdateSerializer
from .friend import FriendsSerializer, FriendsUpdateSerializer
from .pull import PullPlayersSerializer
from .game import GamesSerializer, GamesResponseSerializer, GameStatesUpdateSerializer
from .file_upload import FileSerializer
| [
"ilyalyov@mail.ru"
] | ilyalyov@mail.ru |
0b76f1575bd29440f1c45ba52e19ad1f2b21a2e8 | 395fa3e20505a521db323f95ade65f01934a4eb5 | /matorage/data/attribute.py | 166b6547fe98bdc49cc3c60402f8c032df58d5c5 | [
"Apache-2.0"
] | permissive | lkykor77/matorage | 6b486609f31126ac6fb6719baadcbfd5b8945db5 | 8880d5245aa9253c256ff7dc4a6a75aa8ff39eed | refs/heads/master | 2022-11-27T00:04:21.179038 | 2020-08-10T13:34:23 | 2020-08-10T13:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | # Copyright 2020-present Tae Hwan Jung
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"nlkey2022@gmail.com"
] | nlkey2022@gmail.com |
941903d873ccdf81455b36fbceceb8e0d41daf45 | 8c99d381eb2a24fade2248ca38e5adc56b0263bf | /SUSYAnalysis/python/tools17/eventVars_1l_genLevel.py | 3645aecf96df1cabae6dc00941491a3f3d1b6884 | [] | no_license | ashrafkasem/cmgtools-lite | 818b3bc42ee3b5944074b45bc74248b8c32fa514 | 6c38faa89fd870cdd950e2a3c08fafdf7a5660e1 | refs/heads/94X_dev | 2022-12-31T02:07:00.683384 | 2019-04-15T14:44:56 | 2019-04-15T14:44:56 | 109,703,088 | 0 | 0 | null | 2017-11-06T14:06:09 | 2017-11-06T14:06:09 | null | UTF-8 | Python | false | false | 5,116 | py | from CMGTools.TTHAnalysis.treeReAnalyzer import *
from ROOT import TLorentzVector, TVector2
import ROOT
def mt_2(p4one, p4two):
return sqrt(2*p4one.Pt()*p4two.Pt()*(1-cos(p4one.Phi()-p4two.Phi())))
class EventVars1LGenLevel:
def __init__(self):
self.branches = ["GenDeltaPhiLepWSum", "GenDeltaPhiLepWD... | [
"ashraf.mohamed@cern.ch"
] | ashraf.mohamed@cern.ch |
c6f1858dfd2e7acf04ed79c6459bc25ef0f71652 | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210905000205.py | 6c3b2a6418f67b3dab40ff218a160fd2b60ee1bb | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,531 | py | import os
class Empresa():
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""):
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
def datosEmpresa(self):#3
self.nombre=input("Ingres... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
8f2d1d6bc8e96bc97f06f38a008d8ecc660794ce | 5dc77586e3e0f9de1f032fd2ca68494d8e58928f | /contrib/great_expectations_zipcode_expectations/great_expectations_zipcode_expectations/expectations/expect_column_values_to_be_valid_zip5.py | 3cce49342ddf289c0321776bf7e7e7b2d5ba7528 | [
"Apache-2.0"
] | permissive | great-expectations/great_expectations | dd7c22e6277d6b08bee3ff38a015e6e8cd434df6 | b0290e2fd2aa05aec6d7d8871b91cb4478e9501d | refs/heads/develop | 2023-09-04T09:30:26.395518 | 2023-09-02T00:00:13 | 2023-09-02T00:00:13 | 103,071,520 | 8,931 | 1,535 | Apache-2.0 | 2023-09-14T19:57:16 | 2017-09-11T00:18:46 | Python | UTF-8 | Python | false | false | 5,140 | py | from typing import Optional
import zipcodes
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import PandasExecutionEngine
from great_expectations.expectations.expectation import ColumnMapExpectation
from great_expectations.expectations.met... | [
"noreply@github.com"
] | great-expectations.noreply@github.com |
502e2d947cb552be8d1e078652728a9f8020a360 | 126958c3847235167d48add017b73428f85ecdf8 | /linkedlist/linked_list.py | f1329dcefb0afe094384d0217344a8f9d410bfae | [] | no_license | fali007/basic-programming | d96f11b46ba500d5014978fc47527ce0cbce313b | 79510616cba7c82e29c561e4f53ddb649b66c074 | refs/heads/master | 2020-06-16T14:33:08.078386 | 2020-04-30T13:47:28 | 2020-04-30T13:47:28 | 195,609,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | # class school:
# def __init__(self,name,idno):
# self.name=name
# self.idno=idno
# class clss(school):
# def __init__(self,name,stre,div,idno):
# school.__init__(self,name,idno)
# self.name=name
# self.stre=stre
# self.div=div
# jnv=clss("jnv",43,"B",2)
# print(jnv.name)
# print(jnv.idno)
# print(jnv.div... | [
"noreply@github.com"
] | fali007.noreply@github.com |
e562a6662de82417658d3588c71c13f4cbee15d1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02618/s649474695.py | 30ed82c588b781affa177e0a15b244f66d6afb9d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | import time
import copy
start_time = time.time()
#input
D = int(input())
c_list = list(map(int, input().split()))
s_grid = []
for i in range(D):
array = list(map(int, input().strip().split(' ')))
s_grid.append(array)
t_list = [(i%26) for i in range(D)] #task_list
def calculate_score(query_list,previous_sco... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6120aa4b621bc8f2631e0c951a97607f848d4fb8 | dde951c8bcfb79cdead3449de42d9ed3e6f24fbe | /python-libs/buildin/float_test.py | ae374b6115df751c55c5b45784a38a4d2ab4e362 | [] | no_license | wolfeyuanwei/study-python | c764353cbf75b0ccd79dc562fe11eebee712510b | be1a9ec93cd29d9fe6b69ad4f9c059fb9dd308de | refs/heads/master | 2021-05-11T22:57:51.541684 | 2018-02-08T05:03:10 | 2018-02-08T05:03:10 | 117,504,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | #!/usr/bin/python
#filename:float_test.py
#-*- coding: UTF-8 -*-
print float(1)
print float(112)
print float('123')
#print float('123a') | [
"wolfe_yuan@163.com"
] | wolfe_yuan@163.com |
bb7522462e9cd754c35c6cbd8d77c41b80156f02 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02843/s307771763.py | 7604c19731a9edf92546b778617c8b59b6b436c3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | N = int(input())
C = [100+i for i in range(6)]
T = [float('inf')]*(N+1)
T[0] = 0
for i in range(6):
for j in range(C[i], N+1):
T[j] = min(T[j], T[j - C[i]] + 1)
if T[N] != float('inf'):
print(1)
else:
print(0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ea4f9cc4d4ef4bfe721905a6ad0f66987ecd2c3b | 1a639d185f9c883b7bebf33c577c58b22ac93c7e | /other/pretty_print.py | da9efbdd004f713a1456287f3d40a1f34fc4f48a | [] | no_license | gofr1/python-learning | bd09da5b5850b1533a88b858690ed4380b55d33e | 19343c985f368770dc01ce415506506d62a23285 | refs/heads/master | 2023-09-02T15:42:27.442735 | 2021-11-12T10:17:13 | 2021-11-12T10:17:13 | 237,828,887 | 0 | 0 | null | 2021-11-12T10:17:14 | 2020-02-02T20:03:42 | Python | UTF-8 | Python | false | false | 648 | py | import pprint
# Better with nested dicts
my_dict = {'name': 'John', 'age': '26', 'personality': 'awesome', 'info': {'skills': ['python', 'sql', 'big data'], 'level': 'senior'}}
print(my_dict)
#* {'name': 'John', 'age': '26', 'personality': 'awesome', 'info': {'skills': ['python', 'sql', 'big data'], 'level': 'senior'... | [
"gofr.one@gmail.com"
] | gofr.one@gmail.com |
a9fe2e485c4b217fd830a42b661afe353a476704 | aac7f501c77b6b887acc823768f15041cd945794 | /pyex_nosmt/toLowerCase.py | 0bf03e23040a6803f2908e5601f0ca1cd47652f0 | [] | no_license | spencerwuwu/py-concolic | c0e3967f70be489b08a33d37de6ac63084edf1b5 | 5a6816f1aff18aec3ed5859d24a296cb37b0d69d | refs/heads/master | 2020-05-18T23:24:27.552519 | 2019-05-24T03:13:04 | 2019-05-24T03:13:04 | 184,710,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from symbolic.args import symbolic, concrete
@symbolic(str="abcdefg")
def toLowerCase( str):
"""
:type str: str
:rtype: str
"""
res = []
gap = ord('a') - ord('A')
for c in str:
if ord(c) >= ord('A') and ord(c) <= ord('Z'):
res.append(chr(ord(c) + gap))
else:
... | [
"spencerwu85@gmail.com"
] | spencerwu85@gmail.com |
0dac62155c8eab62b7f8a989622d50fa6ac3739b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_demurring.py | 7eb01f540de56c594eeecfb7c4ec3144ffb71346 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
#calss header
class _DEMURRING():
def __init__(self,):
self.name = "DEMURRING"
self.definitions = demur
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['demur']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
33465673a46e16ae28eb5862fabd79cdae7897b1 | d410077e0422bc4ecbcf22da2e9b6726c0f59dba | /kgcn_torch/backward_compatibility/gcn.py | e10dfd55cd8e9e8edc0eece32756cb0b0321c806 | [] | no_license | clinfo/kGCN_torch | 3eaf2a73dd7726bb58bce8ce63ba625344d4e34c | 3e1845764e6ee6650826b2ea990df786d078ca2d | refs/heads/master | 2021-02-05T04:28:09.922351 | 2020-11-20T05:09:15 | 2020-11-20T05:09:15 | 243,745,187 | 11 | 0 | null | 2020-11-13T01:34:15 | 2020-02-28T11:18:15 | Python | UTF-8 | Python | false | false | 3,289 | py | import click
from ..utils.logger import get_logger
@click.command(context_settings={"ignore_unknown_options": True})
@click.argument("mode", type=str, nargs=1)
@click.option("--config", type=click.Path(exists=True), help="config json file")
@click.option("--save-config", type=click.Path(exists=True), help="save conf... | [
"kbu94982@gmail.com"
] | kbu94982@gmail.com |
25ac1d143796d14f80ad8537676d576a293a4e26 | 048f2002ed13503d50428c8949c95a2e4f9bd532 | /Graph/207_CourseSchedule.py | a4b26c326227dc113664b8f57f2362ee5e0e08d1 | [] | no_license | ZhengLiangliang1996/Leetcode_ML_Daily | 9c9330bd2c7bab5964fbd3827a27eeff5bd2c502 | 8cdb97bc7588b96b91b1c550afd84e976c1926e0 | refs/heads/master | 2023-04-06T19:52:23.524186 | 2023-03-30T21:08:57 | 2023-03-30T21:08:57 | 213,055,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | class Solution(object):
def canFinish(self, n, p):
"""
:type numCourses: int
:type prerequisites: List[List[int]]
:rtype: bool
"""
# topological sorting + dfs
graph = collections.defaultdict(list)
for u, v in p:
graph[u].append(v)
... | [
"zhengliangliang1996@gmail.com"
] | zhengliangliang1996@gmail.com |
bfd36f84c94c1000a6e02ce089752480e85da286 | d785e993ed65049c82607a1482b45bddb2a03dda | /ST_tW_antitop_v2_cfg.py | c443a92315cf1c06a55aacab721d27b747e77a8b | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'ST_tW_antitop_v2'
config.General.transferLogs= True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
conf... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
b13eb24b912b1e3c5d4fa17042004ab81ecfb101 | 396f93d8e73c419ef82a94174815a2cecbb8334b | /.history/tester2_20200322012556.py | 423afd689c153dc1ac57d4c71e6c155ad48e52f4 | [] | no_license | mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch | 8c73d9448b916009c9431526864a4441fdeb682a | 90b2dca920c85cddd7c1b3335344ac7b10a9b061 | refs/heads/master | 2021-03-26T21:16:42.561068 | 2020-04-17T21:44:26 | 2020-04-17T21:44:26 | 247,750,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | import os
import subprocess
import re
from datetime import datetime
import time
from statistics import mean
numberOfTests = 1000
tabuIteration = '1000'
tabuDuration = '10'
numberOfCities = '50'
final_solution = []
list_coverage = []
local_minimum = []
print(f"\n\nTest for Tabu Search with this config: \n\tIterati... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.