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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65a3424eb666d1b95d64e170a548eba3ee06e8ea | 1bd3076902117867ec048210905195ba2aaaaa6b | /exercise/leetcode/python_src/by2017_Sep/Leet081.py | 031e578b7c55dcfc5b24e1ee98786a96056655d6 | [] | no_license | SS4G/AlgorithmTraining | d75987929f1f86cd5735bc146e86b76c7747a1ab | 7a1c3aba65f338f6e11afd2864dabd2b26142b6c | refs/heads/master | 2021-01-17T20:54:31.120884 | 2020-06-03T15:04:10 | 2020-06-03T15:04:10 | 84,150,587 | 2 | 0 | null | 2017-10-19T11:50:38 | 2017-03-07T03:33:04 | Python | UTF-8 | Python | false | false | 196 | py | class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: bool
"""
return target in set(nums)
| [
"ziheng_song@126.com"
] | ziheng_song@126.com |
4c05e2be63b355c4b1e20763ff2b62cee65c0990 | 2ef5b78a1a750ee33d86f36bba176796163e3933 | /demo5/forms.py | 4f222179f56bc614355a243b4e1381dc87a68970 | [] | no_license | LIZEJU/flask-demo | 08f8419757dc4902239b89b3df9ea71ce918ad26 | 6ae201e3cc078b7a3fd18fb6d114b0b83f1b4b41 | refs/heads/master | 2020-09-27T05:58:09.742198 | 2020-01-30T11:04:41 | 2020-01-30T11:04:41 | 226,445,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | #encoding:utf-8
# 引入form基类
from flask_wtf import Form
# 引入form元素父类
from wtforms import StringField , PasswordField ,FileField
# 引入form验证父类
from wtforms.validators import DataRequired,Length
from wtforms.validators import InputRequired
from flask_wtf.file import FileRequired , FileAllowed
from flask_wtf.form import ... | [
"m18611694189@163.com"
] | m18611694189@163.com |
2f6d03026c09a7ce173a67c3e1969dc363abb6b6 | e6bc1f55371786dad70313eb468a3ccf6000edaf | /Extras/matrix/Correct/s030.py | c58235fbf2b318bd0371e500ca863583fa7ce813 | [] | no_license | prateksha/Source-Code-Similarity-Measurement | 9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0 | fb371b837917794d260a219a1ca09c46a5b15962 | refs/heads/master | 2023-01-04T07:49:25.138827 | 2020-10-25T14:43:57 | 2020-10-25T14:43:57 | 285,744,963 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | #!/usr/bin/python3
# MatrixError
# Your code - begin
class MatrixError(Exception):
# Your code - end
class Matrix:
def __init__(self, m):
# check if m is empty
if (len(m)==0):
raise:
except :
"List Empty"
# check if all rows are lists
# check if all rows ... | [
"pratekshau@gmail.com"
] | pratekshau@gmail.com |
f59576e84f7ea29af8679e9e3cc8f1dd93b936f5 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/minWindow_20200618160003.py | 227eef656edcd857940c47b680c4c4aa56bf8fce | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # for this question we have two pointers
# left pointer
# right pointer
# we move the right pointer and maintain the position of the left pointer
# when we find the word we move the left pointer
# store that word its shortest form
# we keep moving the right pointer
# sz,azjskfzts
def minWindow(str1,str2):
le... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
b96ac1eb8024992f0b224485416d49af4bfde378 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/host_virtual_nic_spec.py | c946f61307dcc38838e49156a3cc38c9e730a3f0 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def HostVirtualNicSpec(vim, *args, **kwargs):
'''This data object type describes the Virt... | [
"jmb@pexip.com"
] | jmb@pexip.com |
d4b95ac7eb2b29dd8d737aed9ed3f2ef6766e308 | 67c957b74e22bb191b9941cd753642516f32f27d | /name_uniq.py | bec11f03d47fcfd69317da3b4e58ddeaa4ccd673 | [] | no_license | chenchiyuan/jobeasy | a1ddc567901234b96d69658791f280bdfca43215 | 0a9cb465e1f8b4068069330b58f418890bde407b | refs/heads/master | 2016-09-05T20:58:11.679848 | 2014-04-08T07:18:27 | 2014-04-08T07:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | # -*- coding: utf-8 -*-
# __author__ = chenchiyuan
# 通过POI名来判重, 必须内网跑
from __future__ import division, unicode_literals, print_function
import requests
import json
import base64
class ExcelHelper(object):
@classmethod
def write(cls, path, data, encoding="utf-8"):
import xlwt
workbook = xlwt.W... | [
"chenchiyuan03@gmail.com"
] | chenchiyuan03@gmail.com |
31404902b27fdb152d6280d2618358c91f58c56e | 6b791247919f7de90c8402abcca64b32edd7a29b | /lib/coginvasion/gags/Geyser.py | 49fb02d48689e8123aa8b4780d597b0a706f7552 | [
"Apache-2.0"
] | permissive | theclashingfritz/Cog-Invasion-Online-Dump | a9bce15c9f37b6776cecd80b309f3c9ec5b1ec36 | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | refs/heads/master | 2021-01-04T06:44:04.295001 | 2020-02-14T05:23:01 | 2020-02-14T05:23:01 | 240,434,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,238 | py | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: lib.coginvasion.gags.Geyser
from lib.coginvasion.gags.SquirtGag import SquirtGag
from lib.coginvasion.gags.ChargeUpGag import ChargeUpGa... | [
"theclashingfritz@users.noreply.github.com"
] | theclashingfritz@users.noreply.github.com |
0c708aa7731e0845288916df910173d7240ce581 | 4560d7e3aa3be65ffaf102e780b44d6fab51cfd7 | /fastapi_pagination/bases.py | c2726bfa5e3f5b2dd7437896047d9906fa145ce4 | [
"MIT"
] | permissive | mathbeal/fastapi-pagination | 55235bcfb72feebdd0bad7e6bc7fcd3ba028e0bd | 485acf9862316d4ca58657fa6896a9469e419387 | refs/heads/main | 2023-03-17T22:45:19.649532 | 2021-03-01T08:07:59 | 2021-03-01T08:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | from __future__ import annotations
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Generic, Sequence, Type, TypeVar
from pydantic.generics import GenericModel
from typing_extensions import Protocol
if TYPE_CHECKING:
from .params import LimitOffsetPaginationParams # pragma no cover
T = Typ... | [
"1998uriyyo@gmail.com"
] | 1998uriyyo@gmail.com |
d36bbdba4d86a8634ff9481655aa289e125af4a7 | 1e013dc5f0de0f61e27f2867557803a01c01f4da | /Language/python/module/shutit/login_server.py | c64484bac2ae2c39af84814e4875ba008058b876 | [] | no_license | chengyi818/kata | a2941ce8675c6e7a47169a0eae4c757d3f6f5bf9 | a7cb7ad499037bcc168aaa0eaba857b33c04ef14 | refs/heads/master | 2023-04-10T18:39:09.518433 | 2023-01-08T15:22:12 | 2023-01-08T15:22:12 | 53,040,540 | 1 | 0 | null | 2023-03-25T00:46:51 | 2016-03-03T10:06:58 | C++ | UTF-8 | Python | false | false | 314 | py | #!/usr/bin/env python3
# Author: ChengYi
# Mail: chengyi818@foxmail.cn
# created time: Fri 30 Jun 2017 09:45:45 AM CST
import shutit
session = shutit.create_session('bash')
session.login('ssh you@example.com', user='you',
password="password")
session.send('hostname', echo=True)
session.logout()
| [
"chengyi818@foxmail.com"
] | chengyi818@foxmail.com |
8aac425c473f78bdd1e3a956e3e20aea659288ae | e17e40dbb6ed8caaac5c23de29071b403637f5ae | /transformers_keras/tokenizers/space_tokenizer_test.py | d14ad108c617d1d66aa0f29a709712be005d2ca3 | [
"Apache-2.0"
] | permissive | Linessiex/transformers-keras | cb739075c8daab39d52dc6cd6bafe5e45f8259be | 0bb576db356f575390815dc64840b78b8ecf6227 | refs/heads/master | 2020-11-25T05:58:09.448200 | 2019-09-23T09:13:59 | 2019-09-23T09:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | import os
import unittest
import tensorflow as tf
from transformers_keras.tokenizers.space_tokenizer import SpaceTokenizer
class SpaceTokenizerTest(unittest.TestCase):
def buildTokenizer(self):
tokenizer = SpaceTokenizer()
corpus = ['train.tgt.txt']
corpus = [os.path.join('testdata', f)... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
3742ae3ea8651e93bf19112552eca41e07d13d17 | 211fdc0564d9b003a82bb880d2e422dac85a5752 | /correcciones/segunda_parte/examen_2/ExamenII-12-11499/ExamenII-12-11499/conjunto.py | 3618d6877e24566f9f12339ab0226e071bff4c12 | [] | no_license | dvdalilue/ci2692_ene_mar_2017 | 45fa1833b4b3b49a1e5be33e58f01cb23bb2d6aa | 1690e6429c2c5ec167d505642d3344b249257475 | refs/heads/master | 2021-01-20T01:32:43.668461 | 2017-04-24T22:50:01 | 2017-04-24T22:50:01 | 89,292,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py |
"""
Implementacion de el TAD Conjunto, con una estructura conjunto que representa
una lista enlazada simple, que va a contener elementos de tipo entero
Autor: Orlando Chaparro Carnet: 12-11499
Ultima modificacion:
Jueves, 30 de marzo de 2017 - Semana 12
"""
class Elemento:
def __init__(self, e, n):
""... | [
"dvdalilue@gmail.com"
] | dvdalilue@gmail.com |
4ebb914c4cd0607646f94e6605538d7f8cdd6278 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/notifications/__init__.py | a892dc177947a1b63dc28a0a33fdf5cc5a9ed245 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 558 | py | from bitmovin_api_sdk.notifications.notifications_api import NotificationsApi
from bitmovin_api_sdk.notifications.webhooks.webhooks_api import WebhooksApi
from bitmovin_api_sdk.notifications.states.states_api import StatesApi
from bitmovin_api_sdk.notifications.emails.emails_api import EmailsApi
from bitmovin_api_sdk.n... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
6e1d6cd2a8bfea5fab3e963a27b3b7ae78265dc3 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/server/__cmd_group.py | d961af574f0abaf5e29fdf103bfbd24bcdb8d564 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 694 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e564ecc4fbbc90fe1f74ddf416902f8e65510058 | de265eba4074121d53295550fb901016df9f5556 | /django_service/Sample/management/commands/custom_createsuperuser.py | 8ff37a94427784c22a3759a0bb6ad61912f559d0 | [] | no_license | 1shikawa/django-service-ecs | d0ef169746c1baaf5eca3bb10d338b89969a10b8 | dca521ebbeb812f6692cb77aedd727029d22e39c | refs/heads/master | 2023-05-01T22:01:18.249844 | 2019-12-20T07:24:12 | 2019-12-20T07:24:12 | 183,669,797 | 0 | 0 | null | 2023-04-21T20:38:30 | 2019-04-26T17:33:30 | Python | UTF-8 | Python | false | false | 1,168 | py | from django.contrib.auth.management.commands import createsuperuser
from django.core.management import CommandError
class Command(createsuperuser.Command):
help = 'Create a superuser with a password non-interactively'
def add_arguments(self, parser):
super(Command, self).add_arguments(parser)
... | [
"ishikawa.toru@gmail.com"
] | ishikawa.toru@gmail.com |
d97dcb6e0ca0834d47adde8295161d6df7c1effb | 7a88fc18f30d5dd3ac935877d4d9268a56c296be | /di_website/publications/migrations/0007_auto_20190924_1349.py | 1907659178d26314ad37e2f4f1ba61a1d7f5b83d | [] | no_license | devinit/DIwebsite-redesign | 745a480b7ba0feffa34dc664548ee4c5a7b4d470 | 9ec46823c67cdd4f35be255896bf30d8f6362666 | refs/heads/develop | 2023-08-30T04:06:20.951203 | 2023-08-07T12:06:07 | 2023-08-07T12:06:07 | 184,287,370 | 1 | 0 | null | 2023-08-28T14:34:57 | 2019-04-30T15:29:25 | HTML | UTF-8 | Python | false | false | 1,077 | py | # Generated by Django 2.2.2 on 2019-09-24 13:49
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('publications', '0006_auto_20190919_1544'),
]
operations = [
migrations.AddField(
model_name='shortp... | [
"alex.k.miller@gmail.com"
] | alex.k.miller@gmail.com |
26a9092923ba18920ccdad2427001c1ad995f102 | aee1878ba3e31a36c805025c662ab55a45003898 | /model_zoo/preprocess.py | 2ab21774d485dedb6137ca9f7b4dea35f9469a68 | [
"MIT"
] | permissive | boluoyu/ModelZoo | 4a40c1215200ddcf5e96554bf2474593cfe60f1e | e8906d5c5195c1f6ebdc46e69fa8cd0439317c60 | refs/heads/master | 2020-06-15T17:29:18.108553 | 2019-02-08T16:20:07 | 2019-02-08T16:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from sklearn.preprocessing import StandardScaler
def standardize(fit_data, extra_data=None):
"""
standardize data
:param fit_data: data to fit and transform
:param extra_data: extra data to transform
:return:
"""
s = StandardScaler()
s.fit(fit_data)
fit_data = s.transform(fit_data)... | [
"cqc@cuiqingcai.com"
] | cqc@cuiqingcai.com |
311e80aa2ff395e8c37abb76ae904d71bc65e325 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/super_resolution/ttsr/pytorch/model/SearchTransfer.py | 2b5783ca0517680d2052d57305968c26bdac5edf | [
"Apache-2.0",
"MIT"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 2,276 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class SearchTransfer(nn.Module):
def __init__(self):
super(SearchTransfer, self).__init__()
def bis(self, input, dim, index):
# batch index select
# input: [N, ?, ?, ...]
# dim: scalar ... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
c91819f9ce17f0642a4a7e15dc0d0cc7c34ed6c1 | fccc9acd62447941a49313c01fcf324cd07e832a | /exe115/sistema.py | 358cfb5e914db10289609b7d41eb882cee96b3dc | [] | no_license | paulovictor1997/Python | fba884ea19ed996c6f884f3fcd3d49c5a34cfd3d | 671d381673796919a19582bed9d0ee70ec5a8bea | refs/heads/master | 2023-04-29T18:01:55.451258 | 2021-05-19T15:12:09 | 2021-05-19T15:12:09 | 354,154,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from exe115.lib.interface import *
from exe115.lib.arquivo import *
from time import sleep
arq = 'doc.txt'
if not arquivoExiste(arq):
criarArquivo(arq)
while True:
resposta = menu(['Ver pessoas cadastradas','Cadastrar','SAIR'])
if resposta == 1:
#Aqui vai listar o conteúdo do arquivo
le... | [
"paulovictornunes97@gmail.com"
] | paulovictornunes97@gmail.com |
a9fa385bdf2356beab9851c83ca610512a6d532c | cb3bce599e657188c30366adb0af3007ff9b8f96 | /src/network/ex29-1.py | eeab288fc33fad3fc9b2440e19e26bdfdd2f8b06 | [] | no_license | skk4/python_study | 534339e6c378d686c29af6d81429c472fca19d6d | 4bdd2a50f4bdfd28fdb89a881cb2ebb9eac26987 | refs/heads/master | 2021-01-01T04:36:52.037184 | 2017-12-08T01:04:27 | 2017-12-08T01:04:27 | 97,207,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | '''
Created on 2017.7.18
@author: Administrator
'''
import socket
'''
a_tuple = [('1', ('2', '22', '222'), '3'),('4',('5', '55', '555'), '6'), ('1', ('7', '77', '777'), '3')]
print [x[1][1] for x in a_tuple]
'''
localip = socket.gethostname()
print localip
fdqdn = socket.getfqdn(localip)
print fdqdn
... | [
"skk_4@163.com"
] | skk_4@163.com |
250187df27f88d6af5ce301cfd96f7a72e3f38cd | b48764e6684ffbd73b0043dc889c013860642e8d | /1학기/퍼스널컬러.py | 8691df840217d0d309f14ff4a0e152e708a3cc16 | [] | no_license | tanghee/Programming-Python- | c6d32a1e49d5c95c8359aeb8775cb52cc665167a | eb402357ad31638d867042e76af507bc6c67a0b4 | refs/heads/master | 2022-03-27T07:27:18.888660 | 2019-12-10T02:06:41 | 2019-12-10T02:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,778 | py | #2416임태희
#18개의 질문을 통해 자가진단을 진행합니다
#예를 들어, Q1의 답이 0이라면 Q4의 질문으로 답이 1이라면 Q2의 질문으로 넘어가는 방식입니다.
#함수 하나씩 질문을 넣어서 해당 질문의 답에 따라서 다음 함수를 호출해주는 방식으로 진행합니다.
print("FIND YOUR COLOR!")
print("♡쉽고 빠른 자가진단으로 나만의 컬러를 찾아보세요♡\n")
#함수 q1() ~ q18()과 spring(), summer(), autumn(), winter()를 생성해 줍니다.
#자가진단 결과를 spring(), summer(), autumn(), ... | [
"s2018w37@e-mirim.hs.kr"
] | s2018w37@e-mirim.hs.kr |
760e6204b7ba9ca5639eb67bc4f8cc5c7db2f082 | 9e419006675f6991480f350017798a4b3e0ccbd8 | /borrow/borrow/wsgi.py | a341999c24e547fbe6d5387a7a8e21b63835555e | [
"MIT"
] | permissive | chairco/django-tutorial-borrow | 263ccb7305f29d4bcc3139bd65605df70ec30498 | 28f747e115feabdcbd96d15fbc73f1c5d22236cd | refs/heads/master | 2021-01-17T19:51:56.967984 | 2016-07-12T04:41:17 | 2016-07-12T04:41:17 | 63,126,576 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | """
WSGI config for borrow 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/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from dj_static import Cling
os.enviro... | [
"chairco@gmail.com"
] | chairco@gmail.com |
57e1c158e17a6f159aaf900eef82d7f9d995f7ef | 10b3d1ce02eaa4908dc16ca378ddfb1955b2d625 | /MV3D_TF_release/lib/utils/construct_voxel.py | 456ee612b2788efdc122a5a6282577d0c3396a2d | [
"MIT",
"BSD-3-Clause"
] | permissive | ZiningWang/Sparse_Pooling | 7281aa0d974849eac8c48faa5ba08519b091ef6e | f46882832d0e2fed5ab4a0af15cead44fd3c6faa | refs/heads/master | 2023-05-26T08:47:16.232822 | 2023-05-20T08:39:11 | 2023-05-20T08:39:11 | 141,640,800 | 56 | 21 | null | null | null | null | UTF-8 | Python | false | false | 6,772 | py | import numpy as np
import matplotlib.pyplot as plt
import time
import os,sys
#add library to the system path
lib_path = os.path.abspath(os.path.join('lib'))
sys.path.append(lib_path)
from utils.transform import calib_to_P,clip3DwithinImage,projectToImage,lidar_to_camera
from utils.config_voxels import cfg
si... | [
"kiwoo.shin@berkeley.edu"
] | kiwoo.shin@berkeley.edu |
bbf8704f9a342da4a6242959c75449f67e72b2f1 | 9450d31f41d59f238d4db6b10ac4819cfce8a32b | /run_game.py | 4a5cabddccc61a400caf445609b916ed03c2f6ab | [
"BSD-3-Clause"
] | permissive | Python-Repository-Hub/pyweek24 | 4ed4959cecd0ac55e2fa68756cbdf15aa1f246af | 284dc9c1a152fca8e39cf9d637f089ab772b3afd | refs/heads/master | 2022-06-15T02:51:14.652778 | 2018-02-13T19:23:21 | 2018-02-13T19:23:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | import sys
if sys.version_info < (3, 6):
sys.exit(
"This game requires Python 3.6 or later."
)
import os
from pathlib import Path
dist = Path(__file__).parent.resolve()
src = str(dist / 'src')
sys.path.insert(0, src)
os.chdir(src)
try:
import main
except ImportError:
import traceback
... | [
"mauve@mauveweb.co.uk"
] | mauve@mauveweb.co.uk |
bba69b0ee5109c3789eb94c4c13b6199daacbf77 | a138092a4fd0bd46e21fade96fea5dfba7742e20 | /scratches/dicts.py | 028103db5eaeb53cb84611165d1ed1e15a955fb8 | [] | no_license | DuaneNielsen/CartPoleQ | 979c00ca15bbac0719ba9197bedffe829f322561 | 202b82cf2b04aaa63965277c326413c62f188ed2 | refs/heads/master | 2020-03-25T07:27:22.651681 | 2018-09-07T01:40:35 | 2018-09-07T01:40:35 | 143,562,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py |
dict = {}
def increment():
if 'key' not in dict:
dict['key'] = 1
else:
dict['key'] += 1
print(dict['key'])
increment()
increment() | [
"duane.nielsen.rocks@gmail.com"
] | duane.nielsen.rocks@gmail.com |
044e3599fa084cf436a5af3b58daa4d5d4aafefc | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Flask/FlaskIntroduction/env/lib/python3.6/site-packages/jinja2/idtracking.py | e507483177b9aae92710ac72877a042a2f540cb0 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d866c34b322f180ac40462e4a2f2e4a847e6631996b047fc737419c0ce2e36cc
size 9197
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
ee32622758a3d1e38bdf665d2426e7b04d9517db | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /HyLkfdagDGc99ZhbF_2.py | 5cbf4778f6f92984c2090e629a1ebc045c4aaa40 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | """
Create a function that takes a number `n` (integer greater than zero) as an
argument, and returns `2` if `n` is odd and `8` if `n` is even.
You can only use the following arithmetic operators: addition of numbers `+`,
subtraction of numbers `-`, multiplication of number `*`, division of number
`/`, and exponent... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1ed343ca0e6cbe3de6a727240f40e690f376f493 | cf89f6250926d993df642d1204e82f73529500e9 | /app/backend/views.py | 2a6d11060a3e88b1cfa6089bf7e89809881ae2e8 | [] | no_license | gurnitha/django-login-logout | ce05911608122fa7dc560c5c230f2ed7a8ba95e0 | 3be89a432e2e9f9299ba670fce319f96e0af0cfa | refs/heads/main | 2023-04-15T11:34:28.639319 | 2021-05-02T04:33:00 | 2021-05-02T04:33:00 | 363,554,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | # app/backend/views.py
# from django.shortcuts import render
# from django.contrib.auth import authenticate, login, logout
# from django.contrib import messages
# from django.http import HttpResponseRedirect
# from django.urls import reverse
# # Create your views here.
# def homePageAdmin(request):
# return render(r... | [
"ingafter60@outlook.com"
] | ingafter60@outlook.com |
641d1c9fb4ce72e07ab9d93104d0a361c98c83e6 | d71978ac89d21de391174c4a6f96edc38142b51f | /src/front/form.py | 2ca88661ab5304c968d1f95b72f6182ceb74a0ee | [] | no_license | mzakany23/django-calendar-app | 4d5fd4f4f5e835f0b81904ea5040f43f2f7e4cb0 | 1cedb92214e9649bb1c9ebcd64e78a66b1d5232b | refs/heads/master | 2016-09-05T23:39:40.026293 | 2015-03-27T00:21:47 | 2015-03-27T00:21:47 | 32,084,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from django import forms
class LoginForm(forms.Form):
username = forms.CharField(widget=forms.TextInput(
attrs={
'placeholder' : 'Username',
'class' : 'form-control',
'id' : 'inputEmail',
}))
password = forms.CharField(widget=forms.PasswordInput(
attrs={
'placeholder' : 'Password',
'class' : 'for... | [
"mzakany@gmail.com"
] | mzakany@gmail.com |
e775477bbdf1b10bfe37482cb0347cb2b9f64e68 | 776cf3b0f5865c8639692e1256abb5ad493c9f92 | /__old_stuff/pga/pga_no_sort/ga.py | 44c16031213aaa30fc75f982ad3221ebed52c595 | [] | no_license | ralphbean/ms-thesis | 90afb1d5729d83f1910d8dec2e6d4c65d0304bc0 | 3fea08aa069d735fb7048afbab37bb429800fb48 | refs/heads/master | 2021-01-19T11:28:14.382925 | 2012-01-25T15:24:54 | 2012-01-25T15:24:54 | 3,265,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,793 | py | #!/usr/bin/python
from time import time
from random import random, randint
import shelve, sys, gc
import crossover as cvr
import mutation as mut
import metrics as mtr
import selection as sel
# A constant:
first = False
num_trials = 3
max_gens = 3000
# Print things to stdout and log things that need logging
def... | [
"ralph.bean@gmail.com"
] | ralph.bean@gmail.com |
3986965c2d0a784332a7d222363a1d17a565161e | 9abe914e718155f3a560915c56a55996155159fb | /orders/migrations/0001_initial.py | bc9759f5039dba1b8d785e8084892eb818553505 | [] | no_license | Chaoslecion123/Tienda-Django | 07c8e2abe8cf659a4fce910c2b8fc858d9276e3b | d06e0c789bab69472d0931b2322e7da4f2eaa3bd | refs/heads/master | 2022-03-28T18:07:38.083362 | 2019-12-11T20:01:59 | 2019-12-11T20:01:59 | 227,241,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | # Generated by Django 3.0 on 2019-12-06 23:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import orders.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('carts', '0002_cart_products'),
migrations.sw... | [
"chaoslecion71@gmail.com"
] | chaoslecion71@gmail.com |
2fa1ed31a07f2af23528b5c43403571d54f6cc0a | 00c9124de185eead1d28dc190e1e125e5b4ceb26 | /Pyto Mac/PyObjC/Quartz/QuartzFilters/_metadata.py | e2ec80683f20af0307984bc22985baf5d9fa4c51 | [
"MIT"
] | permissive | cclauss/Pyto | 028b9e9c3c2fefa815a4d6831e25f5ebae5b14f1 | 1c4ccc47e3a91e996bf6ec38c527d244de2cf7ed | refs/heads/master | 2020-04-23T22:09:21.151598 | 2019-03-02T00:44:20 | 2019-03-02T00:44:20 | 171,491,840 | 0 | 0 | MIT | 2019-02-19T14:49:25 | 2019-02-19T14:49:25 | null | UTF-8 | Python | false | false | 1,987 | py | # This file is generated by objective.metadata
#
# Last update: Tue Jun 26 07:59:02 2018
import objc, sys
if sys.maxsize > 2 ** 32:
def sel32or64(a, b): return b
else:
def sel32or64(a, b): return a
if sys.byteorder == 'little':
def littleOrBig(a, b): return a
else:
def littleOrBig(a, b): return b
mis... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
0229304f52f6ac1a1a145202bfd50b7ebcab2f13 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03353/s439050403.py | 217d9912ac078b47e9ed9f82f7964e6a159318bd | [] | 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 | 471 | py | S = input()
K = int(input())
Ans = []
while len(Ans) < K:
for i in range(26):
if chr(97+i) in S and chr(97+i) not in Ans:
f = chr(97 + i)
Ans.append(f)
break
for i, s in enumerate(S):
if s == f:
for j in range(2, 2 + 10):
if i + j... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f1a7a3948b8324c5db96b653272eb3ff8269f357 | 7d93e4f8a9475ada3edd770263ccb8cd98a9e73d | /tonetutor_webapi/settings.py | 4578eab178976962e18525b426db619d3143ad69 | [] | no_license | JivanAmara/tonetutor-webapi | 78a7c03fe69aa392db508358040369ecf0973050 | adf23af0dd12e5dd967695621146cd67ac5a416c | refs/heads/master | 2021-04-30T04:46:46.336909 | 2018-02-20T00:17:56 | 2018-02-20T00:22:32 | 121,543,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,145 | py | """
Django settings for tonetutor_webapi project.
Generated by 'django-admin startproject' using Django 1.10.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
i... | [
"Development@JivanAmara.net"
] | Development@JivanAmara.net |
6bd19bea2e70c55542a03dfa7a782c7d2dfd879c | 2e8db6ce133756ebe9998a48f98072e2133af792 | /users/admin.py | c74af4fc5bb95c0218144cc7205abe0d7dd7c842 | [] | no_license | KadogoKenya/JWT_TEST | b76f015e65e3950af4b35eebde165700fb8fed03 | 35aa2f9c5b11fa827fbc8565530be597c1f4c2d5 | refs/heads/master | 2023-03-26T20:55:19.301952 | 2021-03-25T07:56:52 | 2021-03-25T07:56:52 | 349,028,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | from django.contrib import admin
from django import forms
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
# Register your models here.
# admin.site.register(UserManager,UserAdmin)
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.... | [
"you@example.com"
] | you@example.com |
1897bf0e769aee4e932c3b17a1669983468986ba | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /Networking/socket/socket_multicast_receiver.py | 0d53559902dd07fb86eb6ef43f80a3e62f3943dd | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 638 | py | import socket
import struct
import sys
multicast_group = '224.3.29.71'
server_address = ('', 10000)
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(server_address)
group = socket.inet_aton(multicast_group)
mreq = struct.pack('4sL', group, socket.INADDR_ANY)
sock.setsockopt(
socket.IPPROTO_IP,... | [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
dd1bb84b3f09f1d5438cfa643cf57a0b86ad6d4d | c658b7eed69edfb1a7610694fe7b8e60a5005b7c | /test/functional/test_framework/blocktools.py | 9c2958f076ad5d7002953c87f035d1bf308c0885 | [
"MIT"
] | permissive | wolfoxonly/coc | 0864a6dce2c36d703d93e9b2fb201f599d6db4bd | ff8584518c6979db412aec82e6528a4e37077da2 | refs/heads/master | 2021-01-24T16:52:14.665824 | 2018-04-28T10:00:42 | 2018-04-28T10:00:42 | 123,215,964 | 0 | 0 | MIT | 2018-02-28T02:15:20 | 2018-02-28T02:15:20 | null | UTF-8 | Python | false | false | 3,934 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2017 The Crowncoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Utilities for manipulating blocks and transactions."""
from .mininode import *
from .script import C... | [
"415313577@qq.com"
] | 415313577@qq.com |
210f9371a43aa3890b7486dc0f209676644979f8 | 87bae60470bbe5316d7da8bc4a8709e33b40e2b5 | /whatsnew/south_migrations/0004_auto__del_field_whatsnew_released__add_field_whatsnew_enabled__chg_fie.py | b1dc20a303abe6f65e0843cb1077e8a5bf63afa1 | [] | no_license | saxix/django-whatsnew | c11f0d5fa87e5e1c5c7648e8162bd39c64e69302 | 68b33e5e2599a858e00eda53e1c13a503e1b3856 | refs/heads/develop | 2021-01-19T12:39:41.876635 | 2015-01-28T16:18:29 | 2015-01-28T16:18:29 | 18,416,313 | 0 | 2 | null | 2015-01-28T16:18:30 | 2014-04-03T20:00:33 | Python | UTF-8 | Python | false | false | 1,524 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'WhatsNew.released'
db.delete_column(u'whatsnew_whatsnew', 'released')
# Adding fi... | [
"s.apostolico@gmail.com"
] | s.apostolico@gmail.com |
1248dbd0c2b9a530f886af3cabee8148160d28b7 | c972024b36470ea42a01075cc3dc5df2ab2defcc | /mysite/radpress/urls.py | e576bc6e9464e86f98204a0e8b8649c90615b75f | [] | no_license | davidrae/abacus-direct | 1c55bed4639716080b77c03359d981fdd3363027 | dc09e2345a01ec36f6a8e2adf1dba12f11cb55ad | refs/heads/master | 2016-08-11T12:49:15.407345 | 2015-11-03T15:50:16 | 2015-11-03T15:50:16 | 44,256,109 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py | from django.conf.urls import patterns, url
from radpress.views import (
ArticleArchiveView, ArticleDetailView, ArticleListView, PreviewView,
PageDetailView, SearchView, ZenModeView, ZenModeUpdateView, TagListView,
GenericTagListView, index, users, reports, alerts, museums, privacy,
solutions, wan, carpa... | [
"david.rae@vmsuk.com"
] | david.rae@vmsuk.com |
a704ca8f1db8d26dc296c050b61bbfdec012c64f | 03ff28a6004ba92f3b04c88bebabb503bed0ad0c | /main/migrations/0016_remove_assistantprofile_bio.py | 092e6aec88360f9c741c9f29399cd654c36c95ea | [
"MIT"
] | permissive | mzazakeith/Therapy101 | ebf8ff945f04dc04c7d05fb5cc9f923bca861c88 | be00dd988c6b636f52b57638e70c89da3acbf1a3 | refs/heads/master | 2023-01-08T09:12:13.882424 | 2018-10-01T15:26:25 | 2018-10-01T15:26:25 | 144,596,894 | 0 | 0 | MIT | 2023-01-04T10:58:09 | 2018-08-13T15:12:55 | Python | UTF-8 | Python | false | false | 402 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-08-24 06:18
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0015_assistantprofile_location'),
]
operations = [
migrations.RemoveField(
... | [
"mzazakeith@gmail.com"
] | mzazakeith@gmail.com |
d8503c77ebac2cd8fe3ea0088bc0ea6508e354d6 | b9a1dfcde3851847531b031b99df8bf96edc72be | /0x0F-python-object_relational_mapping/101-relationship_states_cities_list.py | 7c723017eb5f8ce8a9f2b5ae496e97a47d0db301 | [] | no_license | JackWanaCode/holbertonschool-higher_level_programming | c304eba4039dc188d9f2383ae93791be786360b9 | 8c2b5a612aad968f7dcb7bbfdb8a1791650dce8f | refs/heads/master | 2020-03-28T11:19:50.763159 | 2019-02-22T07:40:56 | 2019-02-22T07:40:56 | 148,202,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | #!/usr/bin/python3
"""Start link class to table in database
"""
import sys
from relationship_state import Base, State
from relationship_city import City
from sqlalchemy import (create_engine)
from sqlalchemy.orm import sessionmaker, relationship, backref
if __name__ == "__main__":
engine = create_engine('mysql+mys... | [
"kazucuong@yahoo.com"
] | kazucuong@yahoo.com |
cf9ba6f2882fafb0adabf0b721a0fceacb2e24c3 | 99b6faa1e31b9b18755e90070e24787632cd4776 | /apps/postcrash/models.py | 04e994a4e29da3b868fa2f4acc4dd2ea173ff84f | [] | no_license | taliasman/kitsune | d6743ef9e5b26951a87638a963e7429abf1d0327 | f8085205eef143011adb4c52d1f183da06c1c58e | refs/heads/master | 2021-05-28T19:50:40.670060 | 2013-03-11T13:55:15 | 2013-03-11T13:55:15 | 8,706,741 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from django.db import models
from sumo.models import ModelBase
from wiki.models import Document
class Signature(ModelBase):
signature = models.CharField(max_length=255, db_index=True, unique=True)
document = models.ForeignKey(Document)
def __unicode__(self):
return u'<%s> %s' % (self.signature, ... | [
"james@mozilla.com"
] | james@mozilla.com |
bb16decea6b3859bd8afa70e6ca5507d66be55e0 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2844/60891/272575.py | 29c0553ab2f29823241003b7ebce0900d08eee6b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | n_t = [int(i) for i in input().split()]
n = n_t[0]
t = n_t[1]
a = [int(i) for i in input().split()]
max_n = []
for i in range(n):
remain = t
count = 0
j = i
while j < n and remain >= a[j]:
remain -= a[j]
count += 1
j += 1
max_n.append(count)
print(max(max_n)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
ec400f0e82a29ba599263f5b9cbb120c712dff95 | b4ce39af031a93354ade80d4206c26992159d7c7 | /Tutorials/Binary Search/Binary Search Function and whileloop.py | 02a4f2dcb91829a7b678557a1157cc2ec7b8f2a9 | [] | no_license | Bibin22/pythonpgms | 4e19c7c62bc9c892db3fd8298c806f9fdfb86832 | e297d5a99db2f1c57e7fc94724af78138057439d | refs/heads/master | 2023-06-15T00:51:14.074564 | 2021-07-12T17:44:47 | 2021-07-12T17:44:47 | 315,982,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | def search(list, n):
l = 0
u = len(list)-1
while l <= u:
mid = (l + u) // 2
if list[mid] == n:
return True
else:
if list[mid] < n:
l = mid+1
else:
u = mid-1
return False
list = [1, 2, 4, 5, 6, 7, 8, 9,10]
n = int... | [
"bibinjoy82@gmail.com"
] | bibinjoy82@gmail.com |
90c29bd4121c5b2955daef0224a72300c97b7d67 | 6c82cb2e9bab9931c973433e2e384061e1405fc5 | /app/models/customer.py | 50630e0b62fb5881d174d7094ad36b8febeb566b | [] | no_license | M0r13n/bully-backend | 7153b27552ff2ef25c9ffdf63c55600f3fddcd7b | e9443e10f39a819012d612cd0cd075fb8d75bee2 | refs/heads/master | 2023-03-09T13:38:16.198239 | 2021-02-21T12:39:01 | 2021-02-21T12:39:01 | 291,683,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | from datetime import datetime
from sqlalchemy.orm import relationship
from app.extensions import db
class Customer(db.Model):
__tablename__ = "customer"
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
first_name = db.Column(db.String(255), nullable=False, unique=False, index... | [
"31622033+M0r13n@users.noreply.github.com"
] | 31622033+M0r13n@users.noreply.github.com |
e89963810a075e160abc281ff7078690ec605237 | eba3e4a3935d6422d1ed85aaf69337f5ba15fc74 | /sqlalchemy-migrate/test/versioning/test_template.py | 72217ac895daee6f61801609b45e5c2471a8ca45 | [] | no_license | arianepaola/tg2jython | 2ae74250ca43b021323ef0951a9763712c2eb3d6 | 971b9c3eb8ca941d1797bb4b458f275bdca5a2cb | refs/heads/master | 2021-01-21T12:07:48.815690 | 2009-03-27T02:38:11 | 2009-03-27T02:38:11 | 160,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from test import fixture
from migrate.versioning.repository import *
import os
class TestPathed(fixture.Base):
def test_templates(self):
"""We can find the path to all repository templates"""
path = str(template)
self.assert_(os.path.exists(path))
def test_repository(self):
"""W... | [
"ariane@venus.(none)"
] | ariane@venus.(none) |
a9ba472f2edf7d86bd6237c5e0a8b230fd58eeb7 | 704da68062145c0e1d016256bbe86f2286c6d149 | /tests/test_models/test_user.py | e14bb600f7e57395687239482e89920eacc3d550 | [] | no_license | TMcMac/AirBnB_clone_old | bf39a4cb80fc39390d2af03861938954c24dc742 | 5130e5b08ca9d301600ea963f126d4e124b305cd | refs/heads/master | 2023-01-03T15:09:53.609497 | 2020-10-29T20:04:41 | 2020-10-29T20:04:41 | 274,945,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,533 | py | #!/usr/bin/python3
"""Unit test for User class"""
import unittest
from models.base_model import BaseModel
from models.user import User
class TestBaseModel(unittest.TestCase):
"""Unit test for User class"""
@classmethod
def setUp(cls):
print('SetupClass')
@classmethod
def tearDown(cls):
... | [
"vietnamtran@gmail.com"
] | vietnamtran@gmail.com |
a48f5d7a47297a3004b4066f232a6791173b237c | 7caa438706a423dd9779a81f8345fcf1ec11e921 | /NXT-Python/pyglet-1.2.4/tests/window/WINDOW_SET_ICON.py | bdeac31fc404c7ca4aa58750eff8f810ef925d2f | [
"BSD-3-Clause"
] | permissive | tamarinvs19/python-learning | 5dd2582f5dc504e19a53e9176677adc5170778b0 | 1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9 | refs/heads/master | 2021-07-15T13:23:24.238594 | 2021-07-08T07:07:21 | 2021-07-08T07:07:21 | 120,604,826 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | #!/usr/bin/env python
'''Test that window icon can be set.
Expected behaviour:
One window will be opened. It will have an icon depicting a yellow
"A".
Close the window or press ESC to end the test.
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:... | [
"slavabarsuk@ya.ru"
] | slavabarsuk@ya.ru |
97743cb1f373612199548c0a7a0999c2a8642e77 | c30e2b2e1b7876af01afc11e70b9bde66ebc6d6a | /conftest.py | 9c646ac4834f556a9c633eecf8706d0f05ad49ad | [] | no_license | Jumas-Cola/stepik_selenium_test_project | 7aad125be2623520c6bfe93b34438ffd12de4303 | 8bc920a25ff83883dc6dd653f3dec7ea25350f27 | refs/heads/master | 2020-06-11T10:49:45.344813 | 2019-06-28T20:04:08 | 2019-06-28T20:04:08 | 193,936,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def pytest_addoption(parser):
parser.addoption('--language', action='store', default='en-gb',
help='Choose language of browser.\
For example: --language="es"')
@pyte... | [
"kbbyfl91@gmail.com"
] | kbbyfl91@gmail.com |
a8ad2ad4050925e02f37ff0841869c81a863dd0c | 14d8418ca5990217be67aee89fdaa310db03fbba | /models/collector_pagination_response.py | f8002358f1839b81d410471e69eb2cd75df52a25 | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,155 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
4fd18aa08ea26bb71cfe0f3e50af1b3194892ff2 | 902dea88ec336851f2c325d44a0dd0eaf411fb87 | /day1/strings/19.py | 0e66b0d530e704999c4e711edd826992dae3e877 | [] | no_license | shobhit-nigam/tsip_pydoge | 34d8e03d0744c2eff7615ae94bd6998739ce2bfd | bff5b24e1e93b5b41dfcb913cee280d1ee53bbf5 | refs/heads/main | 2023-07-19T05:21:35.459518 | 2021-09-06T12:59:22 | 2021-09-06T12:59:22 | 399,728,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | # double & single quotes
#
vara = "I'am Manish"
varb = 'I\'am Manish'
print("vara =", vara)
print("varb =", varb)
# error
#varc = 'pushpa"
| [
"noreply@github.com"
] | shobhit-nigam.noreply@github.com |
7eabf17dbaccbfaf4b782657965ea1bc1aaebdf7 | c317f99691f549b393562db200b1e9504ce11f95 | /algorithms_learn/what_can_be_computed/src/convertSatTo3Sat.py | 4ae664cf883f08c293e4acd4fed2ec99d750493a | [
"CC-BY-4.0"
] | permissive | RRisto/learning | 5349f9d3466150dbec0f4b287c13333b02845b11 | 618648f63a09bf946a50e896de8aed0f68b5144a | refs/heads/master | 2023-09-01T00:47:23.664697 | 2023-08-30T17:56:48 | 2023-08-30T17:56:48 | 102,286,332 | 15 | 24 | null | 2023-07-06T21:22:48 | 2017-09-03T18:42:58 | Jupyter Notebook | UTF-8 | Python | false | false | 6,474 | py | # SISO program convertSatTo3Sat.py
# Convert an instance of SAT into an
# equivalent instance of 3-SAT.
# inString: an instance of SAT, formatted as described in the textbook
# and sat.py.
# returns: an instance of 3SAT in the same string format.
# Example:
# >>> convertSatTo3Sat('(x1 OR x2 OR NOT x3 OR NOT x4)')
#... | [
"ristohinno@gmail.com"
] | ristohinno@gmail.com |
a6e0a619fb8ccad6c68753739f72ef7217d9a4a8 | 95689182691599b2e74ca33b36d2828a01ec5889 | /proyectos_de_ley/pdl/migrations/0002_proyecto_legislatura.py | f73ae0753f3b06383b38193a5fcf041fd0a05384 | [
"MIT"
] | permissive | proyectosdeley/proyectos_de_ley | 2392c6f3fdefc88d355f37e615ddb5ddc70c5321 | aed3f09dd2e41711bdcb27aec66a1a0d7896bb35 | refs/heads/master | 2021-07-14T12:33:33.793325 | 2020-07-26T19:44:53 | 2020-07-26T19:44:53 | 23,754,905 | 13 | 10 | MIT | 2020-07-26T19:44:54 | 2014-09-07T07:32:53 | Python | UTF-8 | Python | false | false | 492 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-09-02 20:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pdl', '0001_initial'),
]
operations = [
migrations.AddField(
mod... | [
"mycalesis@gmail.com"
] | mycalesis@gmail.com |
941083e324bb5e8f93f3c8d1192cd5dacd22c422 | 75566ef3423c72fe9e73075dfe29df172b65a28c | /src/scraper/database.py | f2d4c88d42deffe9bfa9459831dc37dae9483bca | [] | no_license | bicsi/cpaggregator | 7020663305eeff8690e92da64fc796926b12fe31 | b6459fe33c19dc2020b29470e457f0666b0ff212 | refs/heads/master | 2022-12-12T10:24:38.756844 | 2020-11-11T13:53:30 | 2020-11-11T13:53:30 | 153,731,264 | 2 | 1 | null | 2022-12-08T01:15:28 | 2018-10-19T05:33:06 | CSS | UTF-8 | Python | false | false | 2,178 | py | import os
from pprint import pprint
from pymongo import MongoClient, ReplaceOne
from pymongo.errors import BulkWriteError
from core.logging import log
def __insert_many_silent(coll, iterable, unique_fields):
requests = []
for elem in iterable:
find_dict = {field: elem[field] for field in unique_fiel... | [
"lucianbicsi@gmail.com"
] | lucianbicsi@gmail.com |
2f2f37808d18c375de2161f33f361a7206bf124d | 29d09c634ffdd8cab13631d62bc6e3ad00df49bf | /Algorithm/swexpert/1249_보급로건설.py | 0f9f48542b53f0796bb44539d57d7850a9539998 | [] | no_license | kim-taewoo/TIL_PUBLIC | f1d32c3b4f46344c1c99f02e95cc6d2a888a0374 | ae86b542f8b1805b5dd103576d6538e3b1f5b9f4 | refs/heads/master | 2021-09-12T04:22:52.219301 | 2021-08-28T16:14:11 | 2021-08-28T16:14:11 | 237,408,159 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | from collections import deque
dr = (-1,0,1,0)
dc = (0,1,0,-1)
T = int(input())
for t in range(1, T+1):
n = int(input())
board = [list(map(int, list(input()))) for _ in range(n)]
chk = [[21470000 for _ in range(n)] for __ in range(n)]
chk[0][0] = 0
q = deque((0,0))
while q:
r, c = q.pople... | [
"acoustic0419@gmail.com"
] | acoustic0419@gmail.com |
51b36a04caec338e1885e9ea1791c5c6c0d3e2af | d8d1a9b2bec5b2679129c246cf58acc836e4355b | /pytest_resource_path/absolute_path_factory.py | 117b373b80071080391d19d48136aa6e5f7f39ef | [
"MIT"
] | permissive | yukihiko-shinoda/pytest-resource-path | 0ac0d612887f453b793ec114b65eb9613817b5cc | bc56c4b5f2c8f3138baeac7f145717f6a70af7b6 | refs/heads/master | 2023-04-15T21:05:18.643053 | 2021-05-01T04:27:12 | 2021-05-01T04:27:12 | 261,375,368 | 10 | 0 | MIT | 2021-05-01T02:45:39 | 2020-05-05T06:08:49 | Python | UTF-8 | Python | false | false | 1,451 | py | """Implements creating process for absolute path to argument of constructor."""
from pathlib import Path
from types import FunctionType, MethodType
from typing import Union
from pytest_resource_path.exceptions import LogicError
from pytest_resource_path.path_factory import PathFactory
__all__ = ["AbsolutePathFactory"... | [
"yuk.hik.future@gmail.com"
] | yuk.hik.future@gmail.com |
b6250476b579a0d0ee5585b0f82e06ea882db68d | de64154c4a968ab8c04390938edc300f2b52f129 | /tests/lldb/runtest.py | 71ee019c66d0c9c37232d6e655065a37bdde5e49 | [
"Apache-2.0"
] | permissive | curliph/NyuziProcessor | 7364a83a52b3f1d461c908a9ff88ee222be08c25 | 2d7cc748a8388a5be4c28d3cb34786bc9f0b801a | refs/heads/master | 2020-04-10T15:16:51.874141 | 2018-12-09T22:40:55 | 2018-12-09T22:40:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,708 | py | #!/usr/bin/env python3
#
# Copyright 2011-2015 Jeff Bush
#
# 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 l... | [
"jeffbush001@gmail.com"
] | jeffbush001@gmail.com |
1f40a950463b7987030dd8e8eb8b668506c8e112 | 920f0fbb7064f2017ff62da372eaf79ddcc9035b | /lc_ladder/Basic_Algo/data-struture/Kth_Largest_Element.py | 263f9c80c8d59cb0954144b77ec4601158323480 | [] | no_license | JenZhen/LC | b29a1c45d8c905680c7b4ad0017516b3dca80cc4 | 85219de95e41551fce5af816b66643495fe51e01 | refs/heads/master | 2021-06-03T10:03:02.901376 | 2020-08-05T19:44:48 | 2020-08-05T19:44:48 | 104,683,578 | 3 | 1 | null | 2020-08-05T19:44:50 | 2017-09-24T23:30:35 | Python | UTF-8 | Python | false | false | 3,106 | py | #!/usr/bin/python
# http://www.lintcode.com/en/problem/kth-largest-element/
# Example
# In array [9,3,2,4,8], the 3rd largest element is 4.
# In array [1,2,3,4,5], the 1st largest element is 5, 2nd largest element is 4, 3rd largest element is 3 and etc.
"""
Algo: QuickSelect
D.S.: Heap, Array
Solution1:
Heap
Find la... | [
"jenzhen.nyc89@yahoo.com"
] | jenzhen.nyc89@yahoo.com |
b4ca34cc14fe2f16d01b462a5870c0073ce4817b | 3b2940c38412e5216527e35093396470060cca2f | /top/api/rest/TmcGroupAddRequest.py | 0cfb70b6b6c82a626717aa0186205a08ca854def | [] | no_license | akingthink/goods | 842eb09daddc2611868b01ebd6e330e5dd7d50be | ffdb5868a8df5c2935fc6142edcdf4c661c84dca | refs/heads/master | 2021-01-10T14:22:54.061570 | 2016-03-04T09:48:24 | 2016-03-04T09:48:24 | 45,093,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | '''
Created by auto_sdk on 2015-01-20 12:44:32
'''
from top.api.base import RestApi
class TmcGroupAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.group_name = None
self.nicks = None
def getapiname(self):
return 'taobao.tmc.group.... | [
"yangwenjin@T4F-MBP-17.local"
] | yangwenjin@T4F-MBP-17.local |
023a448e65f13fa1aa110f94679a9a53c6e6c840 | 3506d8c9a8391be52d24cff54f27537a92a7228c | /HackerRank/Strings/Palindrome_Index.py | e01f253f9a8217c583a0c47373b035d3b04a1d7b | [] | no_license | saumya-singh/CodeLab | 04ef2c61c516c417c03c6a510e8b5e6e498fbe5d | 9371f0d6bd45e5592dae25b50f0d04ba45ae67cf | refs/heads/master | 2021-09-12T05:01:17.491312 | 2018-04-14T19:48:40 | 2018-04-14T19:48:40 | 81,596,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | #!/bin/python3
#https://www.hackerrank.com/challenges/palindrome-index/problem
import sys
def palindromeIndex(s):
length = len(s)
counter = length//2
i = 0
j = length -1
flag = 0
while i < counter:
if s[i] == s[j]:
i += 1
j -= 1
else:
if s[i... | [
"saumya.singh0993@gmail.com"
] | saumya.singh0993@gmail.com |
6b1a3c6752fb987270983195e5489c049ddefa3c | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/file/formats/xar/XARUtil.pyi | cc17580bacec6487f3d70bd74261a9a2bf5e6add | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 765 | pyi | import ghidra.app.util.bin
import ghidra.program.model.listing
import java.lang
class XARUtil(object):
def __init__(self): ...
def equals(self, __a0: object) -> bool: ...
def getClass(self) -> java.lang.Class: ...
def hashCode(self) -> int: ...
@overload
@staticmethod
def isXAR(_... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
98c7acd6912e8bc5c371f591667dc2220b9071e9 | f10230c09860f1e01dcef56daab30a9200d7eb60 | /common/admin.py | 170b802e29c547aedb5673fa213fe83ff9dd05ac | [] | no_license | DentiQ/test_web | 08280ff506439e9bd1565fb502a9780b3c79707d | b7bceab1edd670a8cf60ecf882a466c26e68fb63 | refs/heads/master | 2023-01-23T14:43:17.420477 | 2020-12-01T13:54:18 | 2020-12-01T13:54:18 | 316,973,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import Group
from django.utils.translation import ugettext_lazy as _
| [
"dentiq0414@gmail.com"
] | dentiq0414@gmail.com |
4c49ddf6a3224bc642267e24b285e2a9da8767ed | 6b6e20004b46165595f35b5789e7426d5289ea48 | /endpoints/appr/__init__.py | c998d8a958ab8159696191c64e114b0ac4e6902c | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 1,796 | py | import logging
from functools import wraps
from cnr.exception import Forbidden
from flask import Blueprint
from app import metric_queue
from auth.permissions import (AdministerRepositoryPermission, ReadRepositoryPermission,
ModifyRepositoryPermission)
from endpoints.appr.decorators impo... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
b692f39e14180b18642560210b11e1e6cb9edac3 | 9a355bd36f089a829eb965bb6d725534443a4f15 | /nlp-LDA/main.py | b292767164afc103ab14fa3ecb0bb9377d7e224f | [] | no_license | yflfly/nlp_tools | bf1c5745c37116b14fba417d41271c716ee9a487 | 95ddeaad18ee94cc19b715e38c9af2cda7cbe213 | refs/heads/master | 2021-06-21T10:17:57.713605 | 2021-03-07T13:00:36 | 2021-03-07T13:00:36 | 176,850,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,472 | py | # coding:utf-8
from gensim import corpora, models
import jieba.posseg as jp
import jieba
# 基于LDA主题模型的关键词提取算法实现
# 简单文本处理
def get_text(text):
flags = ('n', 'nr', 'ns', 'nt', 'eng', 'v', 'd') # 词性
stopwords = ('的', '就', '是', '用', '还', '在', '上', '作为') # 停用词
words_list = []
for text in texts:
word... | [
"yangfengling@inttech.cn"
] | yangfengling@inttech.cn |
594840a1230e989a0903678c4308812b815ff3e6 | 66f037cc0bf8683a814eb610d06edd3667f962e0 | /escpos/tests/test_epson_genericescpos.py | baf3acf4f890528e24d17c60035b042ca09644d7 | [
"Apache-2.0"
] | permissive | cemsbr/pyescpos | 6118e7fcf4b5e85b94639be42cfb6fe87f084ba9 | 58ebc1b544458803c4235f3fa80e8fa376b18ec2 | refs/heads/master | 2020-12-08T07:20:24.977694 | 2019-12-30T00:33:08 | 2019-12-30T00:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # -*- coding: utf-8 -*-
#
# escpos/tests/test_epson_genericescpos.py
#
# Copyright 2015 Base4 Sistemas Ltda ME
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/li... | [
"daniel@base4.com.br"
] | daniel@base4.com.br |
be5306049fed1701ff84c2b725f19d30dc048bd9 | a36501f44a09ca03dd1167e1d7965f782e159097 | /admin/views/celery.py | 0045559263cc795693771411bf703a74286ad244 | [
"Apache-2.0"
] | permissive | ssfdust/full-stack-flask-smorest | 9429a2cdcaa3ff3538875cc74cff802765678d4b | 4f866b2264e224389c99bbbdb4521f4b0799b2a3 | refs/heads/master | 2023-08-05T08:48:03.474042 | 2023-05-07T01:08:20 | 2023-05-07T01:08:20 | 205,528,296 | 39 | 10 | Apache-2.0 | 2023-08-31T00:18:42 | 2019-08-31T10:12:25 | Python | UTF-8 | Python | false | false | 3,026 | py | # Copyright 2019 RedLotus <ssfdust@gmail.com>
# Author: RedLotus <ssfdust@gmail.com>
#
# 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
#
# Unles... | [
"ssfdust@gmail.com"
] | ssfdust@gmail.com |
757c83c09d9a63c7e07a8ce62f3e008a7d1d516b | 1515be3015ad988278d5a095416c0a0066a02757 | /src/users/models/microsoftgraphentity.py | b0f43ecc2a37e01c3384617b3fbb889435ca08b5 | [
"MIT"
] | permissive | peombwa/Sample-Graph-Python-Client | 2ad494cc5b5fe026edd6ed7fee8cac2dd96aaa60 | 3396f531fbe6bb40a740767c4e31aee95a3b932e | refs/heads/master | 2020-12-29T09:50:38.941350 | 2020-02-05T22:45:28 | 2020-02-05T22:45:28 | 238,561,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"peombwa@microsoft.com"
] | peombwa@microsoft.com |
088740864d07a9ca84e89627a1bab44538e4be33 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_003_20180618134857.py | 2745c76be92765bcf40268fd8a5d34aac92e1b25 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | from random import randint
# Sudoku1 almost solved
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6,... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
b114f3d71ebdae2a74750a2f0d56ad7bd8da3155 | 27f6c33ad3f0240e64aad809d4bd57af3ecda498 | /Day06/8_Q10.py | 0ddb90dfa64678823f9b0d3c8f5988ce857c4809 | [] | no_license | bigdata202005/PythonProject | 26ce3c0ed3e47cd727606455e6ca95561907dbe4 | 4e0377fdb86db294483fb7a347429bf299e44ce5 | refs/heads/main | 2023-01-08T01:48:22.271143 | 2020-11-06T05:15:22 | 2020-11-06T05:15:22 | 310,498,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | """
Q10 사칙연산 계산기
다음과 같이 동작하는 클래스 Calculator를 작성하시오.
cal1 = Calculator([1,2,3,4,5])
cal1.sum() # 합계
15
cal1.avg() # 평균
3.0
cal2 = Calculator([6,7,8,9,10])
cal2.sum() # 합계
40
cal2.avg() # 평균
8.0
"""
class Calculator:
def __init__(self, data_list):
self.data_list = data_list
def sum(self):
prin... | [
"bigdata202005@gmail.com"
] | bigdata202005@gmail.com |
96e20d4131f5317dff89c74611053c3b8918cdf8 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/GLES2/NV/conservative_raster_pre_snap.py | df58883753676dd6158183e136d4f6c4516af278 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | '''OpenGL extension NV.conservative_raster_pre_snap
This module customises the behaviour of the
OpenGL.raw.GLES2.NV.conservative_raster_pre_snap to provide a more
Python-friendly API
Overview (from the spec)
NV_conservative_raster_pre_snap_triangles provides a new mode to achieve
rasterization of triangles that... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
a4080a7404a99836de352ed8a0d32120f99c2fdc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /6YN2ww3B4cQZ6rTmN_4.py | 065864678599624588b72aab946bb9938cea33ba | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | """
Write a function that returns `True` if a year is a leap, otherwise it returns
`False`.
A year is a "leap year" if it lasts 366 days, instead of 365 in a typical
year. That extra day is added to the end of the shortest month, creating
February 29.
A leap year occurs every four years, and will take place if the... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a7a3c574f559605b827426b88383a43711079bb1 | 3b50605ffe45c412ee33de1ad0cadce2c5a25ca2 | /python/paddle/fluid/tests/unittests/test_fleet_base.py | fe24c8838ec6c2ac41dde0d8f7ac9911509942b0 | [
"Apache-2.0"
] | permissive | Superjomn/Paddle | f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1 | 7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188 | refs/heads/develop | 2023-02-04T20:27:54.244843 | 2023-01-26T15:31:14 | 2023-01-26T15:31:14 | 66,896,049 | 4 | 1 | Apache-2.0 | 2023-04-14T02:29:52 | 2016-08-30T01:45:54 | C++ | UTF-8 | Python | false | false | 7,727 | py | # Copyright (c) 2020 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | Superjomn.noreply@github.com |
6d35ff8ff3c6737289e4c00e8be3360f52f6ca99 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02773/s910963404.py | d617638ace116c73c96cf5a65311b85b85f81d23 | [] | 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 | 351 | py | import sys
N = int(input())
input = sys.stdin.readline
lis = {}
for i in range(N):
s = input().rstrip()
if s in lis:
lis[s] += 1
else:
lis[s] = 1
lis2 = sorted(lis.items(), key=lambda x:x[1], reverse=True)
x = next(iter(lis2))
keys = []
for i in lis2:
if i[1] == x[1]:
keys.append(i[0])
ans = sorted... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
253aa95b971032804048120ff1cfdb28608f6cba | 16e266cf50a712ed29a4097e34504aac0281e6cb | /Functions/venv/lib/python3.6/site-packages/BaseExtensions/Logging.py | 99776019d50ef0f45a7210eaff3874df85494d98 | [] | no_license | felix-ogutu/PYTHON-PROJECTS | 9dd4fdcfff6957830587b64c5da3b5c3ade3a27e | 8c1297dbda495078509d06a46f47dc7ee60b6d4e | refs/heads/master | 2023-06-05T04:41:36.727376 | 2021-06-25T20:36:52 | 2021-06-25T20:36:52 | 380,348,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,704 | py | import logging
import logging.config
import os
import sys
import tarfile
from logging.handlers import RotatingFileHandler
from typing import *
__all__ = [
'logging',
'LoggingManager',
'Error_Handler',
'Info_Handler',
'Console_Error', 'Console_Debug', 'Console_... | [
"you@example.com"
] | you@example.com |
4411eff5cb2a890b6f57eef93094fb70a0a66faa | 297efd4afeb46c0b56d9a975d76665caef213acc | /src/multiplicity/migrations/0026_auto_20181208_0740.py | 82eca20d3e465894fae450ae2a44b7598e792bfd | [
"MIT"
] | permissive | metabolism-of-cities/metabolism-of-cities-platform-v3 | 67716c3daae86a0fe527c18aef26ce29e069cbcc | c754d3b1b401906a21640b8eacb6b724a448b31c | refs/heads/master | 2022-12-06T22:56:22.207853 | 2020-08-25T09:53:51 | 2020-08-25T09:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 2.1.3 on 2018-12-08 07:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('multiplicity', '0025_auto_20181208_0719'),
]
operations = [
migrations.AlterField(
model_name='... | [
"paul@penguinprotocols.com"
] | paul@penguinprotocols.com |
a80b25b51691207c62aa5e0268abfc49f4b48640 | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/ScenarioScriptGroup1ExcelTable.py | 691ecbb8b440d3883daab477c5ae12ef5f5095cb | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class ScenarioScriptGroup1ExcelTable(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = fla... | [
"rkolbe96@gmail.com"
] | rkolbe96@gmail.com |
2226d8e21d5a65eb4b18bd6bf4a8b2b930d5c84f | 929a816fc299959d0f8eb0dd51d064be2abd6b78 | /LeetCode/easy - Array/1304. Find N Unique Integers Sum up to Zero/.ipynb_checkpoints/solution-checkpoint.py | 038be3063eb5258cd1e9f8bdc9d7066cfb184c3e | [
"MIT"
] | permissive | vincent507cpu/Comprehensive-Algorithm-Solution | 27940da7bc0343921930a2eafbd649da93a5395d | 04e01e49622457f09af2e1133954f043c0c92cb9 | refs/heads/master | 2023-07-20T07:12:15.590313 | 2021-08-23T23:42:17 | 2021-08-23T23:42:17 | 258,644,691 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | class Solution:
# my solution
def sumZero(self, n: int) -> List[int]:
return list(range(n-1)) + [-sum(range(n-1))] | [
"vincent507cpu@gmail.com"
] | vincent507cpu@gmail.com |
5032205c24261703355ad0399ea9138603b23d16 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/ap/CB_AP_Download_Image.py | 9e2f694d41a392e7f7a8b96829e4fd450cb80c4b | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | # Copyright (C) 2010 Ruckus Wireless, Inc. All rights reserved.
# Please make sure the following module docstring is accurate since it will be used in report generation.
"""Description:
Prerequisite (Assumptions about the state of the testbed/DUT):
Required components:
Test parameters:
Result type: P... | [
"tan@xx.com"
] | tan@xx.com |
0cdbc657dc62827a0cc554f6fa825a3bca944a6d | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /findLadders.py | bbee45ac5eb94f388fe2af8dfaa11679d7959a31 | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | from collections import deque
from typing import List
# 不知道是哪个
class Solution1:
def findLadders(self, beginWord: str, endWord: str,
wordList: List[str]) -> int:
wordList.append(beginWord)
if endWord not in wordList:
return []
dic = dict()
levelLog =... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
f654f52e05b95498dbdf1c51af76c90d6f91fb31 | 55c24645dd63a1c41037dcfb9fb45bc7bcdea4be | /venv/lib/python3.7/site-packages/jwt/__init__.py | 1e4d63b69dfbe1e69c8b867f879f3f5f7a0ff108 | [] | no_license | abdullah-nawaz/flask-boilerplate | 7c42801a21ee3e6a647cc8a7d92e0285f8e86cad | 01bc7fe1140e8ec613de4a38546a07ddfbdbd254 | refs/heads/master | 2022-12-02T05:06:08.297759 | 2020-06-24T21:36:32 | 2020-06-24T21:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
# flake8: noqa
"""
JSON Web Token implementation
Minimum implementation based on this spec:
http://self-issued.info/docs/draft-jones-json-web-token-01.html
"""
__title__ = "pyjwt"
__version__ = "1.7.1"
__author__ = "José Padilla"
__license__ = "MIT"
__copyright__ = "Copyright 2015-2018 José ... | [
"muhammadabdullah@wanclouds.net"
] | muhammadabdullah@wanclouds.net |
91f2400b1ac12ac6674de7b95b057475eb95b9df | 242e68a7c15e6ced652734d1d0e3e88e1074bb39 | /climetlab/plotting/drivers/magics/__init__.py | 00d73dd43bf969323001fd0d6e94f9d13a59f7af | [
"Apache-2.0"
] | permissive | mchantry/climetlab | e6edf596882560ad0b23572b24ac9e5cd9325891 | 8d655b4ac121a69e7244efe109c04d5e110cdf9e | refs/heads/main | 2023-07-22T01:16:52.859802 | 2021-07-22T09:24:00 | 2021-07-22T09:24:00 | 379,984,648 | 0 | 0 | Apache-2.0 | 2021-06-24T16:16:38 | 2021-06-24T16:16:38 | null | UTF-8 | Python | false | false | 1,348 | py | # (C) Copyright 2020 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmenta... | [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
4aba6eb3f7de44f562856e8a5171082f34e66878 | 26e2c68f929ecc8bb5c20c6b8cd200b66d99def5 | /DbConnect/test.py | e842e9eeb91a54098255018397b5627a2650cf58 | [] | no_license | kirigaikabuto/DjangoLessonsPart | ad19c1da0d1da27830c6fdf1b07353632bbc097d | 4442518ae1f0a8641e066c9a63ff4e55e04d5fe5 | refs/heads/master | 2022-11-28T10:29:54.428001 | 2020-08-03T09:26:42 | 2020-08-03T09:26:42 | 273,497,052 | 0 | 0 | null | 2020-08-03T09:26:43 | 2020-06-19T13:11:15 | Python | UTF-8 | Python | false | false | 675 | py | # 1)Показать продукты
# 2)Создать продукт
# 3)Удалить продукт
# 1
# ...
import psycopg2
def change(sql):
connection = psycopg2.connect(
host="localhost",
port="5432",
user="kirito",
password="passanya",
dbname="crm"
)
cursor = connection.cursor()
cursor.execute(... | [
"ytleugazy@dar.kz"
] | ytleugazy@dar.kz |
9f69bbac15e78ca0cdd3215052def11f8adb988e | 1a3eb334e9578e23f63e17b4ee8e51d69405d29f | /cluster_analysis/interogate_clusters_for_gene_of_interest.py | 6e995babf1c21610b93935f749d52b041519d792 | [] | no_license | peterthorpe5/public_scripts | 6f0ab79c7a748dbd183ee7173576f7bcf25d7f54 | a3c64198aad3709a5c4d969f48ae0af11fdc25db | refs/heads/master | 2023-02-08T02:34:18.109091 | 2023-01-25T13:04:23 | 2023-01-25T13:04:23 | 43,360,640 | 35 | 23 | null | 2016-09-15T10:01:11 | 2015-09-29T10:21:05 | Python | UTF-8 | Python | false | false | 6,271 | py | #!/usr/bin/env python
# Code to iterogate clustering with a list
#
# (c) The James Hutton Institute 2016-2017
# Author: Peter Thorpe
import os
from sys import stdin,argv
import sys
from optparse import OptionParser
from collections import Counter
import collections
if "-v" in sys.argv or "--version" in s... | [
"peter.thorpe@hutton.ac.uk"
] | peter.thorpe@hutton.ac.uk |
88b9865413cebcdc91c4fcd00f30340d0b864197 | b284d59bdf2c01977eb6d80795e2c75cb95b9b2c | /config/wsgi.py | 77f49bd2bbd2fcc7f583bd1617f7e6d091ef359a | [
"MIT"
] | permissive | CoutinhoElias/danibraz | 58d27cb30661d06091196cc487a9d902f4f8dac9 | b21f3ce3477ded74c901fa377a5b2ac5e68faf36 | refs/heads/master | 2021-01-20T02:12:30.096953 | 2018-04-01T15:52:40 | 2018-04-01T15:52:40 | 89,386,992 | 0 | 1 | MIT | 2017-12-01T16:52:47 | 2017-04-25T17:14:27 | JavaScript | UTF-8 | Python | false | false | 1,930 | py | """
WSGI config for Dani Braz project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`... | [
"coutinho.elias@gmail.com"
] | coutinho.elias@gmail.com |
0ba95fac59a79e49da28fd1831d5d6b61331dffe | 5460b47bcf525348b7b615ce67a674b2de787915 | /working with relational databases in python/Pandas for more complex querying.py | 34050cdb305cc08e47f2117bb7b700f027857426 | [] | no_license | AnkitaDeshmukh/Importing-data-in-Python-Part-1 | 79c42677dd9887f7c9b57689634be09412a80fe9 | 3606a0510fc06c009bb30c1553e912bc6a5717a0 | refs/heads/master | 2020-03-27T11:44:50.665912 | 2018-08-29T00:41:41 | 2018-08-29T00:41:41 | 146,505,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | #Using the function create_engine(), create an engine for the SQLite database Chinook.sqlite and assign it to the variable engine.
#Use the pandas function read_sql_query() to assign to the variable df the DataFrame of results from the following query:
#select all records from the Employee table where the EmployeeId i... | [
"noreply@github.com"
] | AnkitaDeshmukh.noreply@github.com |
0a9ffca0fe6c9a6b6a984c02b4947634976dfac3 | 18f8a1c7122c0b320f17ea31192439779a8c63e8 | /zoom/fill.py | f181b9ee1ee496933103ca4f07a4d176277e13db | [
"MIT"
] | permissive | RyanLainchbury/zoom | d49afa8d3506fca2c6e426707bd60ba640420a45 | 684a16f4fe3cea3d26f2d520c743a871ca84ecc5 | refs/heads/master | 2020-12-25T19:03:12.881247 | 2017-06-09T07:29:27 | 2017-06-09T07:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,985 | py | """
fills templates
"""
import re
parts_re = (
r"""(\w+)\s*=\s*"([^"]*)"|"""
r"""(\w+)\s*=\s*'([^']*)'|"""
r"""(\w+)\s*=\s*([^\s]+)\s*|"""
r""""([^"]*)"|"""
r"""("")|"""
r"""(\w+)"""
)
tag_parts = re.compile(parts_re)
pattern_tpl = r'%s([a-z0-9_]+)\s*(.*?)%s'
patterns = {}
def _fill(tag... | [
"herb@dynamic-solutions.com"
] | herb@dynamic-solutions.com |
fbaf9cc4e178d2fadabfc4ac0a9acb6617193252 | 1a6cbe035adb81fea66615323a836327d06f9e72 | /year2020/d8.py | a9a412e59e1d2f3574d82a8926248a6aa6dee291 | [] | no_license | ecurtin2/advent-of-code | a2607d857408d722b07d4cfc66855edcd019cda7 | 216db926c5bab9bf1ec3cac2aa912c1a2ff70d6c | refs/heads/main | 2022-12-15T10:06:51.202608 | 2022-12-14T17:28:15 | 2022-12-14T17:28:15 | 160,612,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | from dataclasses import dataclass, field
from enum import Enum
from typing import List, Tuple
class OpCode(Enum):
acc = "acc"
jmp = "jmp"
nop = "nop"
@dataclass
class Emu:
program: List[Tuple[OpCode, int]]
acc: int = 0
pointer: int = 0
history: List[int] = field(default_factory=list)
... | [
"ecurtin2@illinois.edu"
] | ecurtin2@illinois.edu |
25b825d27e27e80bf0bf8ad227c956a257a4aeaf | c7a1c1ae40e9d95dfb92251dcfbf3c5010e6ba81 | /unicorn-hat-cpu-status-indicator.py | 76dbd1127ffdb1b660f19b2e71e99fbcaea3b998 | [] | no_license | pranavlathigara/Raspberry-Pi-DIY-Projects | efd18e2e5b9b8369bb1a5f5418782480cf9bc729 | 0c14c316898d4d06015912ac4a8cb7b71a3980c0 | refs/heads/master | 2021-04-06T09:14:28.088223 | 2018-02-19T00:15:22 | 2018-02-19T00:15:22 | 124,649,553 | 1 | 2 | null | 2018-03-10T11:30:59 | 2018-03-10T11:30:59 | null | UTF-8 | Python | false | false | 1,500 | py | #!/usr/bin/env python
# https://forums.pimoroni.com/t/unicorn-hat-cpu-status-indicator/6150
# Import the relevant modules
import unicornhat as uh
try:
import psutil
except ImportError:
exit("This script requires psutil.n\Install with: sudo pip install psutil")
# Set the brightness of the UnicornHAT - 1.0 is ... | [
"tdamdouni@users.noreply.github.com"
] | tdamdouni@users.noreply.github.com |
1ad5e73bdc6bb2f1b25482eb24098fb40a19d746 | 4bfc3c184e736bb68dccbb6d5657f11c950df002 | /tests/operators/dynamic_shape/test_dynamic_SIMD_v1.py | c742eb60dd2fa29b664aa45796b2afbb2b3fbc98 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | laekov/akg | 159aa64ef6135222b5af784c408731275dfa9bdb | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | refs/heads/master | 2022-12-01T04:09:03.548063 | 2020-08-19T08:38:57 | 2020-08-19T08:41:28 | 288,678,192 | 0 | 0 | Apache-2.0 | 2020-08-19T08:41:30 | 2020-08-19T08:36:53 | Python | UTF-8 | Python | false | false | 4,094 | py | import akg
import akg.topi as topi
import akg.tvm as tvm
from gen_random import random_gaussian
from akg.utils import kernel_exec as utils
from akg import platform as cce
import numpy as np
import pdb
dtype = "float16"
mapKey = {"add":"binary", "sub":"binary","div":"binary","mul":"binary","min":"binary","max":"binary"... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
d0daf7126ac49ceaf9fe4fba467bdcc38254018b | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddPlaylistItemsRequest.py | 6eb4fbed96c893b1ed0d077e712f2afb6901d726 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,222 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
9022cbf868abe8040133bf2c58b6759ba2bb8d2d | fe70774ff6898c5bdb0c941b4f335de576abfdb6 | /flopy/modflow/mfsip.py | 157d25044903290c48a1a97ca47478f9397ad1af | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | robinthibaut/flopy | 35af468415d1ba6e1de119a7cb335381304fada9 | 22ef330bcfb9259fc23735d6b174d27804b624a0 | refs/heads/develop | 2023-06-30T21:43:24.101593 | 2023-06-13T19:46:03 | 2023-06-13T19:46:03 | 255,560,877 | 0 | 0 | BSD-3-Clause | 2022-10-10T12:23:38 | 2020-04-14T09:05:42 | null | UTF-8 | Python | false | false | 7,748 | py | """
mfsip module. Contains the ModflowSip class. Note that the user can access
the ModflowSip class as `flopy.modflow.ModflowSip`.
Additional information for this MODFLOW package can be found at the `Online
MODFLOW Guide
<https://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/sip.html>`_.
"""
from ..pakbase import Pa... | [
"noreply@github.com"
] | robinthibaut.noreply@github.com |
4d8c07a70b0749f8547c953b05392c9470433b4b | f53ceb369fe3ed0e57004510d5836abbac7ce2e1 | /src/embeddingdb/web/wsgi.py | 23375a9b9580bc64f7264ca7c79562d6fd97ef3b | [
"MIT"
] | permissive | aarek-eng/embeddingdb | e3b21a1b8c3ed54a10fdce647e51c1bd560d117c | e6c67e92e540c4315045a0b4de5b31490331c177 | refs/heads/master | 2022-01-10T17:38:38.526503 | 2019-06-26T21:37:52 | 2019-06-26T21:37:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | # -*- coding: utf-8 -*-
"""A WSGI formulation of the web application.
Also allows the web application to be run with ``python -m embeddingdb.web.wsgi``.
"""
from embeddingdb.web.app import get_app
app = get_app()
if __name__ == '__main__':
app.run()
| [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
89aa9e1612eed3d6d31f549bbee33b18d54bdb6f | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/c18d50d76b304b2ba3289047cce00533.py | f94f1b404b123b82294be4a70207d24c3db05ca6 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,199 | py | import re
import nltk
import string
try:
SENT_DETECTOR = nltk.data.load("tokenizers/punkt/english.pickle")
## nltk data must be installed for nltk.data.load to work
except LookupError:
if nltk.download():
SENT_DETECTOR = nltk.data.load("tokenizers/punkt/english.pickle")
else:
sys.exit("nltk... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
f8ce4049fa17b2f77c746a564018e80505b3ad57 | 44a6e88da453a2e368b014e403843b0c955f21f4 | /utils/test/test_cmpdirs.py | a6803725d5400b4ac3619b4f18d0768c8355442c | [
"Artistic-2.0"
] | permissive | golharam/genomics | a26b1f9366203ec059cc2e49281909bfc16e6ab4 | ca0c7c239b0f04353e2f2fa897db9c24a1211596 | refs/heads/master | 2020-08-06T10:28:21.604129 | 2019-09-27T07:51:41 | 2019-09-27T07:51:41 | 212,943,378 | 0 | 0 | Artistic-2.0 | 2019-10-05T04:25:24 | 2019-10-05T04:25:23 | null | UTF-8 | Python | false | false | 6,468 | py | #######################################################################
# Tests for cmpdirs.py
#######################################################################
import unittest
import os
import tempfile
import shutil
from bcftbx.Md5sum import Md5Checker
from bcftbx.test.mock_data import TestUtils,ExampleDirLangu... | [
"peter.briggs@manchester.ac.uk"
] | peter.briggs@manchester.ac.uk |
a35539e60d21ee5e4cff7b291d6e310a1f7c4738 | d6952f048727add5b54a521d04f6c9b5889bcd35 | /test/test_plugin_package.py | d5c894862466254490283a1ebf7fe54be81aa9cf | [] | no_license | TfedUD/python-sdk | bf719644041c2ab7b741af9c7fb8e5acfe085922 | 7ddc34611de44d2f9c5b217cf9b9e7cec27b2a27 | refs/heads/master | 2023-08-10T21:13:45.270193 | 2021-06-21T14:48:36 | 2021-06-21T14:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.13.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
b0c4412b89a2539c8dbd8859bd81a94448288edd | 0669d94428c972da19346e356861bf11bd668bc9 | /test/test_subaccount_response_etat_etat.py | 91fdf4f9bc18db35924042db2eafccbbc67173c0 | [] | no_license | mlemee/iSendProPython | e9a0f8351e33ae7598bd1380a26c2fe0a1dacd22 | 3add878dbcd682aa41f2bd07f98d8b56c8e5f9f3 | refs/heads/master | 2022-06-10T02:27:12.368498 | 2020-05-04T15:48:13 | 2020-05-04T15:48:13 | 261,206,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | # coding: utf-8
"""
API iSendPro
[1] Liste des fonctionnalités : - envoi de SMS à un ou plusieurs destinataires, - lookup HLR, - récupération des récapitulatifs de campagne, - gestion des répertoires, - ajout en liste noire. - comptage du nombre de caractères des SMS [2] Pour utiliser cette API vous devez: -... | [
"maxime.le.mee.checkandbang@gmail.com"
] | maxime.le.mee.checkandbang@gmail.com |
0e942ea860ba6f547b090dd3e9d362fd8a956a09 | fb124e51024917d6479fa626d9607ff10f7a3aba | /storm-control/storm_control/sc_hardware/none/noneZStageModule.py | 0367129a52211e72f02bf6d98b88d170fab8f5e2 | [
"MIT"
] | permissive | BehnamAbaie/storm-control | 054bd7bbd903ed9635e4d1121c30544f58473c4f | 0c686321142eccad62ce3365eae22c3b69229b0d | refs/heads/main | 2023-06-18T08:04:01.108874 | 2021-07-14T00:51:15 | 2021-07-14T00:51:15 | 342,049,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | #!/usr/bin/env python
"""
Emulated Z stage functionality
Hazen 04/17
"""
from PyQt5 import QtCore
import storm_control.hal4000.halLib.halMessage as halMessage
import storm_control.sc_hardware.baseClasses.hardwareModule as hardwareModule
import storm_control.sc_hardware.baseClasses.lockModule as lockModu... | [
"noreply@github.com"
] | BehnamAbaie.noreply@github.com |
dd672e22f6b9460e05c57c72103c761fb7ba5b13 | 1bcbc4666a59cfc1eeec93152a6f4d8ea3103e11 | /mdx_strike.py | c1e2185ea2dda0da5a31eefea5848413e5f0defe | [] | no_license | xsren/my_blog | a005c991b1f819dbbc1041b95e2f4ce7691bf56a | 5a7d87b7cc4e70b37b90d292cbb68b949ab2a51f | refs/heads/master | 2021-03-27T15:25:55.806403 | 2017-11-11T14:10:09 | 2017-11-11T14:10:09 | 90,592,822 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | import markdown
STRIKE_RE = r'(-{2})(.+?)\2'
class StrikeExtension(markdown.Extension):
def extendMarkdown(self, md, md_globals):
md.inlinePatterns.add('strike', markdown.inlinepatterns.SimpleTagPattern(STRIKE_RE, 'strike'), '>strong')
def makeExtension(configs=None):
return StrikeExtension(configs... | [
"bestrenxs@gmail.com"
] | bestrenxs@gmail.com |
9bd05785e015991afd33124377bb512fc14e9e8b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02889/s191736717.py | 3fcc479cdce9831954afefa641e5c33340ad8eee | [] | 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 | 944 | py | n, m, L = map(int, input().split())
abc = [list(map(int, input().split())) for _ in range(m)]
q = int(input())
st = [list(map(int, input().split())) for _ in range(q)]
d = [[float('inf') for _ in range(n)] for _ in range(n)]
for a, b, c in abc:
if c > L:
continue
d[a-1][b-1] = c
d[b-1][a-1] = c
de... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b87550bfd0f03a7059f92fcc41a2d2146199003b | ecdf9256853e11d6105e2b9ad92ba912602d97d7 | /hackerrank/contest/project_euler/prime_pair_connection.py | 1c15c254a9bb9448f4002f98039f487eeddce0eb | [] | no_license | rgsriram/Algorithms | 364fda568356834e32ec247438d21202bebc838d | d4f9acb1a60bd098a601d8173dfdad447a02fd74 | refs/heads/master | 2021-01-10T05:11:05.688731 | 2019-03-20T04:59:10 | 2019-03-20T04:59:10 | 49,176,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | __author__ = 'sriram'
def get_prime_numbers(p1, p2):
primes = []
for num in range(p1, p2):
if num > 1:
for i in range(2, num):
if (num % i) == 0:
break
else:
primes.append(num)
return primes
def find_next_prime(a, b):
... | [
"srignsh22@gmail.com"
] | srignsh22@gmail.com |
b8a736a22cb410537485ef80ae260fcc2f764f8c | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/python/profiler/tfprof_logger.py | 2c7113ed5af0951210c044217a30d85aaf6955aa | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a6c4e234622b91b3aca7f80f19569dcc2f356d4cce446bc9c17942a4daa80264
size 6919
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.