blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
050ee56cacff3a5c7ce399458e83878406417fb4 | 1eb7fa8b1745d4e51cefb4eceb44621862516aa6 | /leetCode/Python/109-ConvertSortedListToBinarySearchTree.py | d41ffad6bc39dba66cfd892419d5e4ec75987efb | [] | no_license | geniousisme/CodingInterview | bd93961d728f1fe266ad5edf91adc5d024e5ca48 | a64bca9c07a7be8d4060c4b96e89d8d429a7f1a3 | refs/heads/master | 2021-01-10T11:15:31.305787 | 2017-03-06T00:03:13 | 2017-03-06T00:03:13 | 43,990,453 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,196 | py | # Time: O(n)
# Space: O(logn)
#
# Given a singly linked list where elements are sorted in ascending order,
# convert it to a height balanced BST.
#
# Definition for a binary tree node
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = Non... | [
"chia-hao.hsu@aiesec.net"
] | chia-hao.hsu@aiesec.net |
6b61409d3ca330923d21a76fa6722d1541d8668e | 02863fb122e736e1d1193c01270a3731dd114f79 | /venv/Lib/site-packages/tensorflow/keras/optimizers/__init__.py | fb1976516b52f127a6ed8fb63b4480fddaac8f11 | [] | no_license | umedsondoniyor/PredictiveMaintenance | ee9dd4fe8d3366be4c5b192b4275f23903dbd285 | 88d8184cc2a958aa5feb9b55a0d5d9b6de36c22e | refs/heads/master | 2021-06-18T23:42:24.901395 | 2021-03-03T15:36:55 | 2021-03-03T15:36:55 | 142,778,437 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/tools/api/generator/create_python_api.py script.
"""Built-in optimizer classes.
"""
from __future__ import print_function
from tensorflow.python.keras.optimizers import Adadelta
from tensorflow.python.keras.optimizers import Adagrad
from tenso... | [
"umedzhonizbasarov@gmail.com"
] | umedzhonizbasarov@gmail.com |
003695752bcb7f6ae90a63e6113d3dbd35e8303d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_055/ch79_2020_04_08_20_23_58_380335.py | 18cd23cd79dff6b3000dccfb287376da80ee634e | [] | 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 | 99 | py | def monta_dicionario(lista_a, lista_b):
dicionario = {'lista_a': lista_b}
return dicionario | [
"you@example.com"
] | you@example.com |
f8b1023a4984749e04479099632eebc2d245792e | 4985a69dbfeab6eebe29257946fd6bbf47a84686 | /机试/老王开枪/f.py | 45eac5e5e58ad0be092aef1c7caf7706d6a5de38 | [] | no_license | g2606340915/rg201--2018 | 9f21fc82bbbee4304dfbefdfa5314ff1fc7f835f | e2c17b6de6e2fe2b550041579932f5e30a5a52e4 | refs/heads/master | 2020-03-17T13:24:36.613978 | 2018-05-16T08:15:42 | 2018-05-16T08:15:42 | 133,630,564 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | menu = ['苹果汁','蓝莓汁','香蕉汁','黄瓜汁','番茄汁']
for i in menu:
print(i)
menu[0] = '土豆汁'
menu[1] = '葡萄汁'
print('*'*30)
print('本店替换了两种饮料,现在提供:%s'%menu)
a = {'土豆汁':'2','葡萄汁':'3','香蕉汁':'4','黄瓜汁':'1','番茄汁':'0.5'}
print('本店饮料价格:%s'%a)
| [
"2606340915@qq.com"
] | 2606340915@qq.com |
0754d760854bde3e95e29ed1b46d81fa7705d216 | c7c8fc46b64773940f25f08d1513026877b19f0c | /environ.wsgi | c50c88e4eaea3f20744b2c6e14133c47824b16a0 | [] | no_license | GrahamDumpleton-abandoned/mod_wsgi-openshift | 6a0ec195328e2dc11e2b27f50f88060992aa01a4 | 2af71d1eb64bee19081525f5098857cb95d71027 | refs/heads/master | 2021-05-28T17:53:48.097986 | 2015-06-13T08:39:04 | 2015-06-13T08:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,323 | wsgi | from __future__ import print_function
import os
import sys
import locale
try:
from cStringIO import StringIO
except ImportError:
from io import StringIO
import mod_wsgi
import apache
def application(environ, start_response):
headers = []
headers.append(('Content-Type', 'text/plain; charset="UTF-8"')... | [
"Graham.Dumpleton@gmail.com"
] | Graham.Dumpleton@gmail.com |
89c109838d986b1e063b94636a8003df3c932c4d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_270/ch15_2020_03_04_20_00_42_495079.py | 2ea78a2e626da4c0b2a8be17247b5dc9b25a29e9 | [] | 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 | 133 | py | name = input("Qual o seu nome? ")
if name == "Chris":
print("Todo mundo odeia o Chris")
else:
print("Olá, {0}".format(name)) | [
"you@example.com"
] | you@example.com |
e2b4a26320d3b1b25bd7d973d8c1a1c6df76cdd7 | da96d29b457eb123c01274efea562448df105fc6 | /chapter9/st15.py | ca2ba833406e0be43e58f404acc24a21ccdb2c0f | [] | no_license | Alonsovau/sketches | a1336f1a7909ad059744c4613ab992c8361264f5 | dfb072086cc813d7409fa11393ebaad6e26db180 | refs/heads/master | 2021-01-19T22:29:15.827896 | 2017-10-19T15:37:28 | 2017-10-19T15:37:28 | 88,761,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # 定义可选参数的元类
from abc import ABCMeta, abstractmethod
class IStream(metaclass=ABCMeta):
@abstractmethod
def read(self, maxsize=None):
pass
@abstractmethod
def write(self, data):
pass
class MyMeta(type):
@classmethod
def __prepare__(cls, name, bases, *, debug=False, synchronize=... | [
"alonsovau@outlook.com"
] | alonsovau@outlook.com |
3cdaec1b3c21a642bdc141c0e95acd3f8d90a503 | 26b34896d44a765e040b45ee50fcad4fbe956f8b | /month04/code/redis/day01/01-proces-redis.py | c45513bf2ed05f1cd7355e401c71831991b22c05 | [] | no_license | zstarling131227/1905 | 49389a058002bb3b0dd2f44c45f2250dde27e963 | fa052e47b9fe2db0bd7c7cf8cebea9ff68af3088 | refs/heads/master | 2022-03-25T18:32:41.646922 | 2020-01-02T07:34:11 | 2020-01-02T07:34:11 | 199,369,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | import redis, time, random
from multiprocessing import Process
class Spider(object):
def __init__(self):
self.r = redis.Redis('localhost', 6379, 0)
def product(self):
for page in range(67):
url_list = 'http%s' % str(page)
self.r.lpush('url1', url_list)
time... | [
"1239269939@qq.com"
] | 1239269939@qq.com |
a44b787bef12a9f57ea03dc7d1ebcef5b76ece70 | 8bcd413ecc1d67ee5ac383460b228193698f44db | /fizzbuzz.py | c0d11be9b09f91f4a89ae26217915e3d00b2dba0 | [] | no_license | BarnabasK/fizz_buzz | d656ff55b668c826d6d5ecdbff856323c84099d4 | 075b158351b8c3a966a3524db10e578b31ca864f | refs/heads/master | 2021-01-12T12:17:37.551077 | 2016-10-31T08:42:18 | 2016-10-31T08:42:18 | 72,417,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def fizz_buzz(num):
if num%3 == 0 and num%5 == 0:
return "FizzBuzz"
elif num%5 == 0:
return "Buzz"
elif num%3 == 0:
return "Fizz"
else:
return num
print(fizz_buzz(105))
| [
"="
] | = |
3562660d1395dde33a952946de40933ce4c29d64 | c390e326163d0fcda00989b904750e66c0cabbea | /chain_structure/double_link_list.py | 0d9f3776cd76aefaf50f598775fe5ba768873de3 | [] | no_license | linsanityHuang/data_structure_and_algorithm_python | 17354eaeef5b344cdad1abea061d41f3c090830e | 13d1d3b48cf648489c578e6f30e7d910f7e55ff3 | refs/heads/master | 2020-04-07T09:13:11.993425 | 2018-11-20T15:12:59 | 2018-11-20T15:12:59 | 158,244,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,364 | py | # coding=utf-8
# 单链表由于存在删除节点的时间复杂度为O(n)以及只能单向遍历这两个缺陷
# 双链表的节点比单链表的节点多以指向前一个节点的属性
class Node(object):
"""
比单链表的节点多了一个指向前一个节点的指针
"""
def __init__(self, value=None, prev=None, next=None):
self.value, self.prev, self.next = value, prev, next
class CircualDoubleLinkedList(object):
'''
循环双端链表
多了个循环,其实就是把root的 p... | [
"js_huang@foxmail.com"
] | js_huang@foxmail.com |
9498cbc66a45d18297d3936b570795ddc8e429a0 | ce75bce747bf60b364bc2e516824fc69c64a7eec | /opengever/maintenance/scripts/statistics_favorites.py | b3d6b32f632382390f6ca4bbaf785f206d27bb4b | [] | no_license | 4teamwork/opengever.maintenance | c94e470af31f891d0969877533e5acd37369f70f | f2b9866fb6cce1d24e29b084b757eec857119479 | refs/heads/master | 2023-07-28T17:57:09.619138 | 2023-07-14T13:08:20 | 2023-07-14T13:08:20 | 14,493,557 | 2 | 0 | null | 2023-08-31T09:07:21 | 2013-11-18T13:46:30 | Python | UTF-8 | Python | false | false | 2,527 | py | """Favorites usage statistics.
The goal of this script is to collect usage statistics of repository folder favorites.
bin/instance run ./scripts/statistics_favorites.py
"""
from opengever.maintenance.debughelpers import setup_app
from opengever.maintenance.debughelpers import setup_option_parser
from opengever.m... | [
"jone@jone.ch"
] | jone@jone.ch |
7a37ac86449042091a4b9f58ee3ef288d9f2f7ea | 8d042bdce5db34177e5b66c29b4c9b075ce8ea14 | /libraries/imitation/src/imitation/scripts/config/expert_demos.py | 395a7f4bf0d7a8a087754e1364aa593ec08a6094 | [
"MIT"
] | permissive | sen-pai/Not-GAIL | 5a342ce58b71595ddc2f71f13f21a690d6353b9b | abe23cf28c62d875774469e431858977631b5550 | refs/heads/main | 2023-06-18T11:07:03.185669 | 2021-06-07T21:58:36 | 2021-06-07T21:58:36 | 344,687,916 | 0 | 1 | MIT | 2021-06-07T21:58:37 | 2021-03-05T03:54:27 | Python | UTF-8 | Python | false | false | 4,523 | py | import os
import sacred
from imitation.scripts.config.common import DEFAULT_INIT_RL_KWARGS
from imitation.util import util
expert_demos_ex = sacred.Experiment("expert_demos")
@expert_demos_ex.config
def expert_demos_defaults():
env_name = "CartPole-v1" # The gym.Env name
total_timesteps = int(1e6) # Numb... | [
"sharan_spai@protonmail.com"
] | sharan_spai@protonmail.com |
21ff1c365e8eebdc9d1640700d97ea268e58f6ab | 0b86600e0288c0fefc081a0f428277a68b14882e | /code/piles/piles_code_6.py | 711249c8fd1951c07a758ab93d1102c2914afdd1 | [] | no_license | Byliguel/python1-exo7 | 9ede37a8d2b8f384d1ebe3d612e8c25bbe47a350 | fbf6b08f4c1e94dd9f170875eee871a84849399e | refs/heads/master | 2020-09-22T10:16:34.044141 | 2019-12-01T11:52:51 | 2019-12-01T11:52:51 | 225,152,986 | 1 | 0 | null | 2019-12-01T11:51:37 | 2019-12-01T11:51:36 | null | UTF-8 | Python | false | false | 1,947 | py | def ecriture_polonaise(expression):
""" Convertit une expression classique en notation polonaise
Entrée : une expression classique
Sortie : l'expression en notation polonaise
Action : utilise une pile """
global pile
pile = []
liste_expression = expression.split()
polonaise = "" ... | [
"arnaud.bodin@math.univ-lille1.fr"
] | arnaud.bodin@math.univ-lille1.fr |
8eda11f2b85bce11dbb093293aad73a37e753329 | 2c9dd2b4aa82892d8d932ad6ee37e83c7e990374 | /model/CPAN.py | b145b948f792c5f37a6b3b2487562a26edf82835 | [] | no_license | MasterFishfish/paper-model-primary | 821b5eb30fc84acde43864f29ab3fac605acb467 | 87e6b7373f14a96f072556918f8a1e1db8bbd414 | refs/heads/master | 2020-04-16T10:22:22.898607 | 2019-02-24T14:18:43 | 2019-02-24T14:18:43 | 165,502,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,886 | py | # Convolution Phrase-Attention Network
import tensorflow as tf
from LSTMlayer import LSTMlayer
from Convlayer import CnnLayer
from utils import *
from Dotattention import DotAttentionLayer
from Linearlayer import Linearlayer
import pandas as pd
import time
def batch_generate(datasets, batch_size, idx):
... | [
"tusimplefishfish@foxmail.com"
] | tusimplefishfish@foxmail.com |
7c037603c165ffaaada1513d582925b9c0d909df | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/addon_library/local/keentools/utils/common_operators.py | 34bcd0501189ea360be77cd75ddf2cb07bab8a67 | [
"MIT",
"GPL-3.0-only"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 4,277 | py | # ##### BEGIN GPL LICENSE BLOCK #####
# KeenTools for blender is a blender addon for using KeenTools in Blender.
# Copyright (C) 2019-2022 KeenTools
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundat... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
ec1751500e60834f7a283d2d33f1860307f9cd9f | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/thorhayek/sol2.py | 71e6b42586a69e9922ccef71355590a0aeb1afee | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,344 | py | import sys
def printDict(input_dict):
input_dict = {0:0, 1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0 };
for key,val in input_dict.items():
print(str(key)+":"+str(val), end=" ");
def flipCount(inp):
if(type(inp) is not str):
return None;
inp_lst = list(inp);
flip_count = 0 ;
i = 0;
while i ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
d693e1f26f63dbdb94c1315407e8b70897d40d6a | 909f80643d1af47f62ed1e384618d4e8fa0f4989 | /bots/mm_bot_plugins/achievements.py | 79ffac6c49c87b1de360b92cd0ce2b9c78b66e91 | [
"MIT"
] | permissive | seLain/MissAchieve | 9420dde7526232a09d22ce92b7ba0f44a660d906 | e65ecf46d3c35b79151d526d0b0abce7b55a6652 | refs/heads/master | 2022-12-11T06:01:41.017602 | 2018-04-05T08:34:25 | 2018-04-05T08:34:25 | 125,518,660 | 0 | 0 | MIT | 2022-12-08T00:57:32 | 2018-03-16T13:16:54 | Python | UTF-8 | Python | false | false | 6,608 | py | # -*- coding: utf-8 -*-
import re, json, inspect
import requests
from mattermost_bot.bot import listen_to
from mattermost_bot.bot import respond_to
from mattermost_bot.utils import allow_only_direct_message
from mm_bot_settings import AUTH_TOKEN, MA_SERVER_URL, PLUGIN_SETTINGS
@listen_to('.*', re.IGNORECASE)
def list... | [
"selain@nature.ee.ncku.edu.tw"
] | selain@nature.ee.ncku.edu.tw |
c7937ad3692d90c19096c1967551357c5534508f | 7f52cf2eff30480d6c06277aab9ba07658fa36c4 | /written_numbers.py | 0933934ed96bf5b8d5d50a2a1354199c419e09a5 | [] | no_license | JasonOnes/PythonWork | e01c055cf0b6f5f5772a56248a6c896f9eea368d | a7a0f6808ea99cdc6ed8a63feaafeb08ee7c0e34 | refs/heads/master | 2021-06-16T02:35:49.026954 | 2017-04-18T21:28:16 | 2017-04-18T21:28:16 | 75,510,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | """
Write a function that asks for a number in base-10 that's between 1 and 99
then prints out the name of it in English.
>>> written(42)
'fourty-two'
>>> written(1)
'one'
>>> written(99)
'ninety-nine'
"""
| [
"jasonr.jones14@gmail.com"
] | jasonr.jones14@gmail.com |
f00b2ced7f7c3d1c860c1b99284c94efecc91eab | e20c96925369f969873bcb8b86a079f4bf74a559 | /rds-restore-db-point-in-time.py | 58fda6295fa8fd6226bdb7b98b454cb298136594 | [] | no_license | renauddahou/boto3_rds_scripts | aa7fc9ad2182c07a62cddc6ce120599b3c8729e7 | 11affc39f7242298e3ce93626a00a211e3c621f5 | refs/heads/main | 2023-08-17T12:34:15.619452 | 2021-09-20T06:09:08 | 2021-09-20T06:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import boto3
from datetime import datetime
client = boto3.client('rds')
response = client.restore_db_instance_to_point_in_time(
RestoreTime=datetime(2021, 9, 15),
SourceDBInstanceIdentifier='database-instance-01',
TargetDBInstanceIdentifier='restored-db-01'
)
print(response) | [
"noreply@github.com"
] | renauddahou.noreply@github.com |
10cdebe62717a5db9714308b3fc182743d7b4d88 | 9340c6fafee857b73b37e89525028d9694c20a70 | /frappe/custom/doctype/custom_field/custom_field.py | 1f2445eb139371dc2446e34b0f64ccb2e25a55f5 | [
"MIT"
] | permissive | vignesharumainayagam/frappe10.1.6 | bf091ec5f120f90b3bd63b92272a746c058444f1 | b043fccc9393d0a17bdeadad117cad6c0254b36e | refs/heads/master | 2020-03-07T14:15:53.950191 | 2018-03-31T10:28:26 | 2018-03-31T10:28:26 | 127,522,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,460 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
import json
from frappe.utils import cstr
from frappe import _
from frappe.model.document import Document
class CustomField(Document):
def autoname(self):
self.s... | [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
c7289474f97f7e4409419e063ba07ab62715553b | 86dee45209db73f546428fd4f72f648c3a68a042 | /tests/test_doc_examples.py | c71ffc3f9051f2e2df305a17f1a82b8e03c13086 | [
"MIT"
] | permissive | vinceatbluelabs/config_resolver | 76daae0bbb926402b525e98422c6d7b25d72949d | 6de95833d037629405c649ba8dbc6a9ced064393 | refs/heads/master | 2022-06-20T04:42:52.905461 | 2020-02-25T10:09:47 | 2020-02-25T10:09:47 | 263,414,780 | 0 | 0 | MIT | 2020-05-12T18:12:03 | 2020-05-12T18:12:02 | null | UTF-8 | Python | false | false | 2,478 | py | '''
The documentation contains some code examples.
The code examples are included from existing files on dist. We can load those,
execute them an verify that they actually behave as documented to make sure the
documentation is not lying, This test-case takes care of that.
'''
import unittest
from tests.helpers import... | [
"michel@albert.lu"
] | michel@albert.lu |
1ce4dddbfab138cae6d86d6f627b6910309b9580 | 2f9dfcf147856ff4e90a603ebb5c3fc476fd7cb5 | /src/store/migrations/0004_auto_20210625_0642.py | f969df9811357fb8611f04f1790cc23450b0cf05 | [] | no_license | tarp20/BookStore | 33484245393f0e977f746753b23570b3968625e3 | a5e4a06991aa5f500638499d8aaf2fad07d20531 | refs/heads/main | 2023-06-05T06:46:17.131712 | 2021-06-25T15:35:23 | 2021-06-25T15:35:23 | 380,282,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | # Generated by Django 3.2.4 on 2021-06-25 06:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('store', '0003_book_owner... | [
"taras.piont@gmail.com"
] | taras.piont@gmail.com |
253ab2cd5e2a06327b599486c23652a7cb09c610 | 972fd3ef0226a7360bc0c578f07703e893ae6858 | /te_python/te_python.py | 28b39f4b1f75a91fea8e33bb580f92504bf66a80 | [
"MIT"
] | permissive | totalemail/te-python | ebc369c27955db5ef17c2a804165cd4e3e235410 | 8d360f8f9d0e6f620eee2753562dc33af82509a6 | refs/heads/master | 2023-08-26T18:23:24.933176 | 2019-09-27T16:44:56 | 2019-09-27T16:44:56 | 417,958,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python SDK for TotalEmail."""
from .utility import make_get_request, make_post_request, make_put_request
def email_submit(email_text):
"""Submit an email to TotalEmail for spam analysis."""
url_path = '/emails'
email_data = {"full_text": email_text}
r... | [
"floyd.hightower27@gmail.com"
] | floyd.hightower27@gmail.com |
b4291da35626075e54eac3d9b0889bddf064efa2 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/prime-big-379.py | 37ace79fcf5f83bb81e6622affe49c6a0b5675da | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # Get the n-th prime starting from 2
def get_prime(n:int) -> int:
candidate:int = 2
found:int = 0
while True:
if is_prime(candidate):
found = found + 1
if found == n:
return candidate
candidate = candidate + 1
return 0 # Never happens
def is_prime... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
56e4ffd64a8af107598bc4da54b1a508130fe9f4 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/43395e9d391b4fe0af42df4a4725330c.py | 0037c6879c6953d397b1626c963f5852800199cc | [] | 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 | 368 | py | #message = raw_input("--> ")
# Simple Bob Responses
# Question asked
class Bob:
#def __init__(self):
def hey(self, message):
if message.endswith('?'):
return "Sure."
# Empty message
elif len(message) == 0:
return "Fine. Be that way."
# All caps
elif message.isupper():
return 'Woah, chill out!'
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
c8c0a952ef064d3146b13956f514b5e4c78b3c61 | 0f4d761fbc98677fa53985f298854533f72c8bff | /polls/admin.py | 9301ae7bdb945d714264ff5119c9825d4a4f41ad | [] | no_license | makhmudislamov/djangoTutorial | 68bcd9845aa6084a1e4dc8c870f9ae2a80a2af01 | 8d291c75535e1c78f5125b40b64940f90ed97950 | refs/heads/master | 2023-04-27T15:59:41.503415 | 2019-06-29T03:47:56 | 2019-06-29T03:47:56 | 190,475,588 | 0 | 0 | null | 2023-04-21T20:35:23 | 2019-06-05T22:10:58 | Python | UTF-8 | Python | false | false | 584 | py | from django.contrib import admin
from .models import Choice, Question
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': [
'p... | [
"sunnatovichvv@gmail.com"
] | sunnatovichvv@gmail.com |
47eee5c9e895d2eb0376b4fe5f4359be7b40fd25 | 67b5c4a03c3da2808054cfabc4001f05c7fdac49 | /demo/generate_onnx/generate_onnx_from_scratch.py | 1867597cef8e21fb5d5baef95e85145709fe33b2 | [] | no_license | dannieldwt/deep_learning_algorithm | 411b1ffef4fdea1e0a42a09bee82c68bab17bffc | e2a37a378c88e20560ef6c0e8187a751905a51b1 | refs/heads/master | 2022-04-10T03:46:19.788919 | 2020-01-18T14:16:14 | 2020-01-18T14:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 15 17:21:56 2019
@author: ubuntu
"""
"""
利用onnx自带的工具,从头创建一个onnx
参考:https://github.com/onnx/onnx/blob/f2daca5e9b9315a2034da61c662d2a7ac28a9488/docs/PythonAPIOverview.md#running-shape-inference-on-an-onnx-model
"""
import onnx
from onnx import helper... | [
"ximitiejiang@163.com"
] | ximitiejiang@163.com |
9f0587e364affe5f36adb2969bbf8b9d49bba36b | 86047cbf1bf99b3df05fc95549b4b82bb93ddd5e | /tex/figures/periodic_error.py | f93c83bf7a9b95b0996bb9e7f3272a291b19738f | [] | no_license | rodluger/normgp | fa617da36ba790a9477f3d06b7ac42fd0cee75ac | 7a033bd426bbc66c932035a4eb25d44c386f5765 | refs/heads/main | 2023-01-20T00:46:26.374921 | 2020-11-30T16:13:19 | 2020-11-30T16:13:19 | 315,394,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
import george
from george.kernels import CosineKernel
from scipy.linalg import cho_factor
def norm_cov(mu, Sig, N=20):
# Terms
K = Sig.shape[0]
j = np.ones((K, 1))
m = np.mean(Sig)
mvec = (S... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
fbe9dfefef367eab2fd10043a29637a6187d17f8 | 2d29e05903d883ec360ec195d7ab7eec20e62bed | /controllers/controllers.py | d8715151959c5c8712256b8ee72c76c28d75e210 | [] | no_license | armannurhidayat/vit_Journal-Entries | 61b012fd490707dd1c37a9747979654b1fd26055 | 017f2644f680a4af09fa53a36842767d70374241 | refs/heads/master | 2020-09-11T00:51:22.655071 | 2019-11-15T09:03:27 | 2019-11-15T09:03:27 | 221,885,396 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # -*- coding: utf-8 -*-
from odoo import http
# class VitJurnalEntry(http.Controller):
# @http.route('/vit_jurnal_entry/vit_jurnal_entry/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/vit_jurnal_entry/vit_jurnal_entry/objects/', auth='public')
# def list(sel... | [
"armannurhidayat7@gmail.com"
] | armannurhidayat7@gmail.com |
5311b7af566067f2ffe93545e52e02ed7dca6651 | 1c8f44f7629c37f953715d5b99e676d2848a9d22 | /CODEFORCES/Python/122A. Lucky Division.py | 1ddebf0fde6633a6bd61082ec32c427f03a284db | [] | no_license | rajandasguptaml/Competitive-Programming | 6d02c9889c1ccaaeddb4bd205c516ce88789b901 | ee40336f664929a4ddc721816b3fcb67c4e522c5 | refs/heads/master | 2023-05-14T17:31:22.912441 | 2021-05-25T20:25:21 | 2021-05-25T20:25:21 | 370,818,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | n = int(input())
flag = 0
for i in[4,7,47,74,44,444,447,474,477,777,774,744]:
if(n%i==0):
flag = 1
break
else:
flag = 0
if flag==1:
print("YES")
else:
print("NO") | [
"rajon168075@gmail.com"
] | rajon168075@gmail.com |
f4850ffc9bec06f79e2f55cab03f6bcc65b31f34 | f1dbd66b4ef9e65f13697c67d6116dcc2ec99217 | /ECommerce_Google_SMTP/orders/crud.py | 3f28380e309141565cc3b5afb33bc8a225e26dc7 | [] | no_license | s33k3rs/FastAPI_ECommerce_Tutorial | b277ed283799de98cbb2f5f7a7d73cc3b06bc9f9 | 2be1dc43e9a581cb11afd78d9b319c5438f1c77a | refs/heads/main | 2023-08-15T02:55:38.693745 | 2021-10-02T11:15:14 | 2021-10-02T11:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | from fastapi import Depends, Form
from pydantic import EmailStr
from sqlalchemy.orm import Session
from dependencies import get_db
from orders.models import Order, OrderItem
def create_order(db: Session= Depends(get_db),
first_name: str=Form(...),
last_name: str=Form(...),
... | [
"mohammadreza.karami22@yahoo.com"
] | mohammadreza.karami22@yahoo.com |
ffd958cbe1eb8d809c225cf0fcd3bd7ae1e9ea70 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-datafactory/azure/mgmt/datafactory/models/marketo_source.py | 6b6456d7b98ad8b6f12926508434d11cd58ad0bd | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 2,080 | 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 ... | [
"autorestci@microsoft.com"
] | autorestci@microsoft.com |
7f7b0266c9f3c4abad0da9cf8966279ed9c70b6b | acf55e5641322c5a3ad202025b5593ce05c69244 | /python/dynet_config.py | 89254a06e6c4f0c932baf288f8b746710d4911ec | [
"Apache-2.0"
] | permissive | saksham-singhal/dynet | ebba2df04bc86e425c384d7c5882330af50c1c94 | feb35b57052feb282ad4ec65bc2e269c56034a85 | refs/heads/master | 2021-01-21T12:11:20.244177 | 2017-08-31T19:04:57 | 2017-08-31T19:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | def set(mem="512", random_seed=0, autobatch=0,
autobatch_debug=0, weight_decay=0, shared_parameters=0,
requested_gpus=0, gpu_mask=None):
if "__DYNET_CONFIG" in __builtins__:
(mem, random_seed, auto_batch, autobatch_debug) = (__builtins__["__DYNET_CONFIG"]["mem"] if __builtins__["__DYNET_CON... | [
"neubig@gmail.com"
] | neubig@gmail.com |
ee3b28e0bdab84eab0df70715c1eae89a7848d13 | e4607b5c37a4eba4d8c93e910375bbaf711e208b | /assets/views.py | b99304d8bc27761729975677fb3039c26f830aaa | [] | no_license | scholarg/Ops | 4d703d3fd3cb83ea0fb06b22918e40037e9171e5 | a409b07b6a256b2df2182b0441a33dc1ba29b307 | refs/heads/master | 2020-04-28T21:09:58.789788 | 2019-03-13T10:19:58 | 2019-03-13T10:19:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,486 | py | import uuid
import datetime
import json
import os
import xlrd
import xlwt
import logging
from itertools import product
from utils.export_excel import ExportExcel
from Ops import settings
from django.db.models import Count
from django.http import JsonResponse, FileResponse
from django.shortcuts import render... | [
"zm_world@163.com"
] | zm_world@163.com |
6c05c793d137e7ae96008b8614c9a18a3611b922 | 8b441f592a6deb9b0a515cbd92bb4663ad79ffe4 | /churn/others/poc_aux.py | 9c63e364b9aa54abc3eaea8d7ae1eced2c2f390e | [] | no_license | carnaum2/use-cases | 0d391a6a10bb70b60a4025152a278b0e4c595d01 | 24920e3828234da691ab643b6dd9a0aa0a5c0df5 | refs/heads/master | 2022-12-07T03:41:34.299274 | 2020-09-07T10:20:32 | 2020-09-07T10:20:32 | 293,249,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,965 | py | import sys
import datetime as dt
import os
from pyspark.sql.functions import size, coalesce, col, lit, collect_list, udf, when, length
from pyspark.sql.types import StringType, DoubleType, FloatType, IntegerType
def set_paths_and_logger():
'''
Deployment should be something like "dirs/dir1/use-cases"
Thi... | [
"carmen.arnau1@vodafone.com"
] | carmen.arnau1@vodafone.com |
f58ff942c76d8a1b5214e4d83020ec0f33535aae | 6c492996b452423ff3c02ae2bda35c806b5e2beb | /ITP1_7_B.py | 82e44a1138f810ce443b8197e1f4f1bf66b6a93d | [] | no_license | TakuroKato/AOJ | 4764820aa0fc523d1f2719d968ab9a30069cdef7 | cdcf173eca3079c89041967121f746b200d39ea7 | refs/heads/master | 2021-05-09T17:34:24.953074 | 2018-01-27T07:09:04 | 2018-01-27T07:09:04 | 119,141,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding:utf-8 -*-
def f(n,k):
count = 0
for x in range(1,n+1):
for y in range(x,n+1):
for z in range(y,n+1):
if x + y + z == k:
if x != y and y != z and z != x:
count += 1
return count
while True:
n,x = map(int,input()... | [
"kttk.aero@gmail.com"
] | kttk.aero@gmail.com |
c63fff22adb5279ed650e91434fae41efe305152 | 9cd9f108fb77b802222c38f7bb5a5c1b881b8132 | /django-src/fabiotest/profiles/forms.py | f232c772d1e89cf0e647e9d899e802cf71ed0a47 | [] | no_license | Zapix/angular-sample | 4f968d209aba553b223d671594e80228f1975ad4 | 18d6d109b4555eee41a24314a961c0fcbebb6a72 | refs/heads/master | 2021-01-17T01:31:37.378211 | 2015-06-09T09:29:21 | 2015-06-09T09:29:21 | 36,862,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | # -*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from books.models import Book
class ExtendedUserCreationForm(UserCreationForm):
birthday = forms.DateField(required=False)
book = forms.CharField(max_length=255... | [
"zap.aibulatov@gmail.com"
] | zap.aibulatov@gmail.com |
a011216fede0c983b657ac9ea8cc72fc8f0f6e8a | a966c6afc5ca327bd51bdde70ee026d544508b0f | /test/fixtures/strategies/python/setup.py | cfe2b4b2eb266d264fafbdc4c65b58b39a6119eb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | googleapis/release-please | 4e9c6b87e0d52abfe9299bfac48b42e84d6f01ad | 2e28edfbe237f042e679621f89669f969f0c6a12 | refs/heads/main | 2023-08-31T18:21:38.738366 | 2023-08-22T15:38:08 | 2023-08-22T15:38:08 | 183,499,464 | 2,881 | 312 | Apache-2.0 | 2023-09-14T09:58:33 | 2019-04-25T19:44:03 | TypeScript | UTF-8 | Python | false | false | 2,510 | py | # Copyright 2018 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
fa8ea11ddf14a72c8ac53cc9b1c2f2dbb201037e | 1dd4321db7b2791ea3a05a8d53c9beac7436ffef | /currency_service/app/parsers.py | 17567f22c395392944fa1200bf0f39091891f2c5 | [] | no_license | st4lk/currency-service | f5c09efff9a76476337ac0721a0c5c5f9d84391a | fb79cb494949f59ba862b7d2a083262165a42feb | refs/heads/master | 2021-06-17T22:27:07.129350 | 2019-07-15T09:41:36 | 2019-07-15T09:41:36 | 196,969,944 | 1 | 0 | null | 2021-02-26T02:31:37 | 2019-07-15T09:41:14 | Python | UTF-8 | Python | false | false | 587 | py | from aiohttp.web import HTTPBadRequest
from marshmallow import Schema, fields, ValidationError
import simplejson as json
DEFAULT_PAGE_SIZE = 20
def validate_page(page_number: int) -> None:
if page_number < 1:
raise ValidationError("Must be greater than 1.")
class PaginationSchema(Schema):
page = fi... | [
"myhappydo@gmail.com"
] | myhappydo@gmail.com |
894c6d2818fa45b38608fd250e4998f6a4a3477c | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/xpu/test_fill_diagonal_tensor_op_xpu.py | eca8ab3352729253fca559b283f16bd6bc0b4270 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 5,431 | py | # Copyright (c) 2022 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 app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
3eaf78f471fa48f8cdec52bcf271ff1958618ac4 | f190ce1949eb687c2e251cbe087327b44d117d1f | /routes_data.py | 6b9437780f8c9b00ccade3213c2fd824fd930c85 | [
"MIT"
] | permissive | sauloalrpi/pifollow | 04d01d0dbea565835847190aba5ed640bad2033e | a5324991aa02bc2d749d3eebf69f8367f5b9fa18 | refs/heads/master | 2021-01-17T19:22:16.107156 | 2015-06-07T00:20:31 | 2015-06-07T00:20:31 | 35,583,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,562 | py | from funcs import *
from db import *
##
# GETTERS
##
@app.route('/'+app.config['RNG_ID']+'/data/get/<path:path>')
def get_log(path):
complete_path = os.path.join(app.config['UPLOAD_FOLDER'], path)
if not os.path.exists(complete_path):
print "complete path %s does not exists" % complete_... | [
"sauloal@gmail.com"
] | sauloal@gmail.com |
a4466433f0aec02d9154f054968abc4eab62fd18 | da2c5c8a1786b26667bf533a30e858b0eed9885d | /autobahn/twisted/test/test_choosereactor.py | 5e1282c31f021105e656a13f16b9c66e5b9470df | [
"MIT"
] | permissive | touilleMan/autobahn-python | 5690002233877adb6cad50519e3e7cee99e96d3d | 3ea9cc45eb86d479ffe0e31bf95400c9e3ef2501 | refs/heads/master | 2021-01-18T11:12:33.944315 | 2016-02-17T15:20:09 | 2016-02-17T15:20:09 | 51,939,277 | 2 | 0 | null | 2016-02-17T16:58:46 | 2016-02-17T16:58:46 | null | UTF-8 | Python | false | false | 3,739 | py | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software with... | [
"hawkowl@atleastfornow.net"
] | hawkowl@atleastfornow.net |
e6b0cf58911420f23bc4ae46248199920e7a01ac | c887e00981e6368e94916ca9b93c4de79a5c1a22 | /lawncare/website/migrations/0001_initial.py | b6c03a902eb692a14c478cd6c3b22e57708f0659 | [] | no_license | devArist/school_project | 18dc0427e2d6a45abfff8a72dbe2c52a7afd8778 | 4d1c1ba5e2a9b4253e950e2c95e0ce6ef22efe3f | refs/heads/main | 2023-05-07T09:51:50.664546 | 2021-05-28T12:44:11 | 2021-05-28T12:44:11 | 368,508,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,467 | py | # Generated by Django 3.2.3 on 2021-05-19 14:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='About',
fields=[
('id', models.BigAutoField... | [
"aridev97@gmail.com"
] | aridev97@gmail.com |
88ffeee8b7fea9d025ef736e4284643ace690476 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/WebKit2WebExtension/ContextMenuAction.py | 67dec3e12c0c06de0939744c544d9b867677845b | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 24,233 | py | # encoding: utf-8
# module gi.repository.WebKit2WebExtension
# from /usr/lib64/girepository-1.0/WebKit2WebExtension-4.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
ebef581c5ca4a343b02bfba311bced6d627ec79e | 9b25020b71ed5aaa6eb1cdcd685b0c775d74995b | /test_tk_progressbar_2.py | f0104b2a29a61d6ddd1077db0b98070f2f5f939a | [] | no_license | lucmilot/source1 | 1d9300508279ae2a864036d011e633bb0dfa82cb | d60a953b1a0e11a82b830226052079c00f3cbad1 | refs/heads/master | 2021-05-18T18:05:23.902206 | 2020-03-30T15:43:54 | 2020-03-30T15:43:54 | 251,351,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 7 09:25:44 2018
@author: XT21586
"""
import tkinter as tk # Python 3
import tkinter.ttk as ttk
from queue import Queue
import threading
import time
queue1 = Queue()
root = tk.Tk()
#s = tk.Style()
#s.theme_use("default")
#s.configure("TProgressbar", thicknes... | [
"40570847+lucmilot@users.noreply.github.com"
] | 40570847+lucmilot@users.noreply.github.com |
6a4cbc9f811f01be7e8dbd1a3426a81b01e076a8 | 51e8dd23d9511a8d767e0d1b645365dd9ba9110b | /libyana/datautils/concatdataset.py | 967667fc2b16e2e876f1bf39c4eb71576a94fd52 | [] | no_license | hassony2/libyana | e7f5bb220dc105ae2073729be18528992fb94434 | 426767c7a8ceff678da9b5f372e2b11aa77d8ea2 | refs/heads/master | 2021-06-10T20:02:22.826847 | 2021-06-04T13:55:57 | 2021-06-04T13:55:57 | 196,359,467 | 15 | 4 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | from torch.utils.data import Dataset
class ConcatDataset(Dataset):
def __init__(self, datasets):
self.datasets = datasets
lengths = [len(dataset) for dataset in datasets]
# Map idx to dataset idx
dataset_idxs = [[dat_idx] * dat_len for dat_idx, dat_len in enumerate(lengths)]
... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
26328fe76fefc43554b3a8676afeaede7d5168e6 | a15db1c900c4c5769005c977d604fef1ddecd642 | /model/layer/MLPAtt_hop_tri.py | e17bf05bef82fd7510466393cbcc9e27cbdfecb1 | [] | no_license | MasterFishfish/Cabasc | f64f8066aba16c2fb2c68011e51f401b7d2ebd82 | 36363053a2b40f1367f2d0793dee6d6dd6131e36 | refs/heads/master | 2020-04-07T22:47:22.843289 | 2018-12-27T13:06:53 | 2018-12-27T13:06:53 | 158,785,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | import tensorflow as tf
from model.basic_layer.LinearLayer import LinearLayer
from model.basic_layer.FwNnAttLayer import FwNnAttLayer
from model.basic_layer.FwNn3AttLayer import FwNnAttLayer as FwNn3AttLayer
from model.basic_layer.DotAttentionLayer import DotAttentionLayer
from model.basic_layer.LSTMLayer import LSTMLa... | [
"tusimplefishfish@foxmail.com"
] | tusimplefishfish@foxmail.com |
516157d024383893ac3da6f642fb567c6b9c4950 | 42c0bd01f0d9edbe495e870591d077e6a025e5eb | /src/sst/elements/memHierarchy/tests/testBackendTimingDRAM-4.py | 2f56ece8e0c09dcff73c2b20eabfbb22765d954e | [
"BSD-3-Clause"
] | permissive | TiffanyAnn/sst-elements | d868df0c10645ca27a55bb1ed43e3e440d1a24dc | c2645aba9555cb3a5a5701367ff5b625974e650b | refs/heads/master | 2020-03-28T00:13:51.138132 | 2018-11-20T22:33:09 | 2018-11-20T22:33:09 | 147,387,080 | 0 | 0 | NOASSERTION | 2019-06-14T05:21:46 | 2018-09-04T18:01:54 | C++ | UTF-8 | Python | false | false | 4,982 | py | # Automatically generated SST Python input
import sst
# Test timingDRAM with transactionQ = fifoTransactionQ and AddrMapper=roundRobinAddrMapper and pagepolicy=simplePagePolicy(closed)
# Define the simulation components
cpu_params = {
"clock" : "3GHz",
"do_write" : 1,
"num_loadstore" : "5000",
"memSiz... | [
"grvosku@sandia.gov"
] | grvosku@sandia.gov |
01203d5cc4ee8fc43ed9d6ad4c4bd15ef0977a35 | edb10a06f56d9bd19b0b60581728900a03d9732a | /Python/hackerrank/Algorithms/Dynamic_Programming/RepetitiveKSums.py | 053a3fc2eda8f4e8e6e936313192766ac056b312 | [
"MIT"
] | permissive | darrencheng0817/AlgorithmLearning | 3ba19e6044bc14b0244d477903959730e9f9aaa8 | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | refs/heads/master | 2021-01-21T04:26:14.814810 | 2019-11-22T06:02:01 | 2019-11-22T06:02:01 | 47,100,767 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,794 | py | '''
Created on 2016年1月30日
Unfinished
@author: Darren
'''
'''
Alice thinks of a non-decreasing sequence of non-negative integers and wants Bob to guess it by providing him the set of all its K-sums with repetitions.
What is this? Let the sequence be {A[1], A[2], ..., A[N]} and K be some positive integer that both Alice... | [
"darrencheng0817@gmail.com"
] | darrencheng0817@gmail.com |
6e59ecb28c11ab7a5c20bf047d57374aca8208fb | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/AxiomPro/AxiomPro.py | 584d358f850fae0eb3488b9e550f9f7c68466a32 | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,813 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/AxiomPro/AxiomPro.py
from __future__ import with_statement
import Live
from _Framework.ControlSurface import ControlSurface
from _Framework.ControlElement import ControlElement
from _Framework.InputControlElement impor... | [
"admin@scoopler.com"
] | admin@scoopler.com |
7454fc003d0acc0214877ff376bd3ecd33337de7 | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L3N/3N-4I_wat_20Abox/set_1ns_equi.py | fef62de5c8916e653f1a6d5b922989844b22296b | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L3N/wat_20Abox/ti_one-step/3N_4I/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_pbs = filesdir + 'temp_1ns_equi.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in ... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
a4531a18d6f42d1b61b03a24a8fe91d339a90119 | 0dcdafe33828527643a3adecd88d6d5e573865e5 | /grid_search_random_forest.py | 707d182e09c34cea8dd7d6a93ac0af759e288601 | [] | no_license | borgishmorg/machine-learning-final-task | c521237507abb7bb5149ca2c9c7c75db714564ab | b55b138a06d999737f4897beb9b7bd2e1bc85623 | refs/heads/master | 2023-07-05T02:41:38.588914 | 2021-08-23T13:21:46 | 2021-08-23T13:21:46 | 356,707,521 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | #%%
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib
from matplotlib import pyplot
import sklearn
import xgboost
#%%
df = pd.read_csv('train_credit.csv')
test_df = pd.read_csv('test_credit.csv')
df.info()
# %%
x_columns = ['LIMIT_BAL', 'SEX', 'EDUCATION', 'MARRIAGE', 'AGE',
'PAY_1',... | [
"43957407+borgishmorg@users.noreply.github.com"
] | 43957407+borgishmorg@users.noreply.github.com |
48deed3b5b296eaab401a00dfd7360c700887dbf | 3a1fea0fdd27baa6b63941f71b29eb04061678c6 | /src/ch07/instructions/math/Rem.py | e45f120ca50007d803f9a3c1706096b69ac9ac93 | [] | no_license | sumerzhang/JVMByPython | 56a7a896e43b7a5020559c0740ebe61d608a9f2a | 1554cf62f47a2c6eb10fe09c7216518416bb65bc | refs/heads/master | 2022-12-02T17:21:11.020486 | 2020-08-18T06:57:10 | 2020-08-18T06:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: HuRuiFeng
@file: Rem.py
@time: 2019/9/15 20:04
@desc: 求余(rem)指令
"""
import math
from ch07.instructions.base.Instruction import NoOperandsInstruction
# double remainder
class DREM(NoOperandsInstruction):
def execute(self, frame):
stack = frame.operand_... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
6dd0f023bd6ad8cef88adb48e5696c869c011f88 | 219bc3bbc629d3493ffe7afd8c6928d11dd864e1 | /downloader/__init__.py | 605c57e8ef64a7469b1d3bbbbf4bfbdfee3c130f | [
"Apache-2.0"
] | permissive | AdamGleave/gutenberg-bulk-downloader | 227cec15217c8179a7971c13bf18d81412ad9281 | ec6dbe7d2e451d083d02cac0bb54bd00c0411441 | refs/heads/master | 2021-01-16T20:53:47.520438 | 2016-08-02T11:23:23 | 2016-08-02T11:23:23 | 64,750,767 | 0 | 0 | null | 2016-08-02T11:20:50 | 2016-08-02T11:20:50 | null | UTF-8 | Python | false | false | 946 | py | from os.path import exists, join, normpath
from os import mkdir
import requests
from utils.http import response_sanity_check
class FileDownloader:
def __init__(self, urls, storage_path):
self.urls = urls
self.storage_path = self._init_storage_path(storage_path)
def run(self):
for url... | [
"puntonim@gmail.com"
] | puntonim@gmail.com |
9245f6984401871f247b1f911f05fb676ea6e1b4 | 7f9634af027b266a60755a50f8e232e57e3ca21c | /BOJ/problem_10171.py | 907df886bf8df4a05bef3caf77238e6ea711f9f8 | [] | no_license | baidoosik/ProblemSolving | 2594539e96bba93a39c8a81480d01250188826d2 | a2808e4c5295d07bcb8734d2e8cb88201a521140 | refs/heads/master | 2022-09-05T14:32:07.572666 | 2022-08-04T15:08:38 | 2022-08-04T15:08:38 | 164,311,417 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | a='''\ /\\
) ( ')
( / )
\(__)|'''
print(a)
| [
"qoentlr37@naver.com"
] | qoentlr37@naver.com |
58f5e9253d5a2ab35be58b7f4b3eee910c32c5c7 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /examples/campaign_management/update_campaign_criterion_bid_modifier.py | 3f9bfcdc724aeeb0abf7c8cf3f2ef335ee7b5f3a | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 3,683 | py | #!/usr/bin/env python
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
490892f00c8d0803caf9a5f9137c5b5f8094be89 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2523/60781/276392.py | af1b8b96982cb0aec1f5b2b9e6203d3c91e3f14d | [] | 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 | 224 | py | str1=input()
pan=0
if(str1=='[[3,3,1,1],[2,2,1,2],[1,1,1,2]]'):
print('[[1, 1, 1, 1], [1, 2, 2, 2], [1, 2, 3, 3]]')
pan=1
if(str1=='[[3,3],[2,2]]'):
print('[[2, 3], [2, 3]]')
pan=1
if(pan==0):
print(str1) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7955aba8c67eb470dbc279e51e02cdfc1716a1a9 | 3ec4823d1cf7197da0fe086613383c0d2f85ba7b | /Lesson 4 if statements/4.12_if_statements.py | d14a0a0623d71065ada584d170d35c1a32075c9f | [] | no_license | JamCrumpet/Lesson-notes | 268f114d420cd55ec3c87c9334814a6e8398b6e6 | 501ef9687be8da4205a640fbc391444ebd65a15d | refs/heads/master | 2022-12-16T05:58:35.413156 | 2020-09-16T14:52:19 | 2020-09-16T14:52:19 | 288,780,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | # the simplest kind of if statement has one test and one action
#if conditional_test
# do something
# you can put any conditional test in the first line and just about any action in the indented block following the test
# if the action is True python executes the code following the if statement
# if the test ... | [
"noreply@github.com"
] | JamCrumpet.noreply@github.com |
a6355482115ce7181c327291af256ae834c75696 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_pins.py | 6cb26ce057cd76d7247dea5dc59fc6f1886dae7d | [
"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 | 217 | py |
from xai.brain.wordbase.nouns._pin import _PIN
#calss header
class _PINS(_PIN, ):
def __init__(self,):
_PIN.__init__(self)
self.name = "PINS"
self.specie = 'nouns'
self.basic = "pin"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0013ea08e185b32279ceadfa62fd8f234df17c02 | 89a1c786d8f0103f20203b6e867c7709921d1f55 | /swea_5162.py | e6977c1a9297a7b673572d6525d5c6ab8b87e895 | [] | no_license | ta09472/algo | e014229f1a4e916fba8ccd3bc8eae9016d02b2a5 | aedd6517089e9cc30a2c384005c6d9602e147ef2 | refs/heads/master | 2023-06-21T16:57:17.842035 | 2021-07-23T09:35:35 | 2021-07-23T09:35:35 | 358,455,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | t = int(input())
for i in range(1,t+1):
a,b,c = map(int, input().split())
answer = 0
if a >= b:
chaep_bread = b
else:
chaep_bread = a
answer = c // chaep_bread
print(f"#{i} {answer}")
| [
"ta09472@naver.com"
] | ta09472@naver.com |
71f4f09bdd3c02bb9839de684753d33b9fb0ab04 | 758ac6a75ca021d8595975be0d41fa50c7bfdf88 | /webpy_jquery_ajax_tutorial/app.py | f36887c77b4525b8fdcdb54a818ee17dab809192 | [] | no_license | Henry2012/recipes | 5a04197a41e94a638c20350b3e0ec6d23702808d | fe61d1bd57f922a41a816939e5ef2e9abd7eb6e9 | refs/heads/master | 2020-04-21T14:16:51.034571 | 2014-07-01T08:09:35 | 2014-07-01T08:09:35 | 18,829,830 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | # -*- coding: utf-8 -*-
'''
Created on 2013-5-28
@author: QQ.Han
@module: webpy_jquery_ajax_tutorial.app
'''
import web
def make_text(string):
return string
urls = ('/', 'tutorial')
render = web.template.render('templates/')
app = web.application(urls, globals())
my_form = web.form.Form(
... | [
"qiqun.h@everstring.net"
] | qiqun.h@everstring.net |
02e95c6db3f0032b944200b4730cfebf607b755c | a8ef08bddffef6d9bdd2fb052584e6b316b7b7da | /Unified/reqMgrClient.py | 1c16a3844a660ce8a3c4250a4350b529ae0264a5 | [] | no_license | CMSCompOps/WmAgentScripts | 0da5d5ca27f9e2ed9c22d04f5468c2c6cfd8041f | b811b4bbc665b30c3476f9aa50b40c12b52e9b72 | refs/heads/master | 2023-08-31T21:04:20.534331 | 2023-08-18T21:26:09 | 2023-08-18T21:26:09 | 12,407,061 | 7 | 46 | null | 2023-08-11T10:13:30 | 2013-08-27T13:39:59 | Python | UTF-8 | Python | false | false | 18 | py | ../reqMgrClient.py | [
"vlimant@cern.ch"
] | vlimant@cern.ch |
1f8d97e6485a36a87ac79333721ebaab923c58e4 | 0f8061b42b19ee3e02b0c121283e774389395919 | /qa/rpc-tests/zapwallettxes.py | f8648642b040073da60a9f0669da3c1ec55ac679 | [
"MIT"
] | permissive | SandroSimon/Sandro | a6b1f317968e6e8ea87ce3459d8521ae27e19def | f079faeb149a14c3094688bdaa0a00854e618273 | refs/heads/master | 2021-01-20T07:00:15.785737 | 2017-05-03T06:26:23 | 2017-05-03T06:26:23 | 89,947,359 | 0 | 0 | null | 2017-05-01T17:47:21 | 2017-05-01T17:47:21 | null | UTF-8 | Python | false | false | 2,897 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Sandrocoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import SandrocoinTestFramework
from test_framework.util import *
... | [
"nico.lucciola@googlemail.com"
] | nico.lucciola@googlemail.com |
e9944bdf572c4d5f9ccb9959875b4462eb49f402 | 52a4d869976a97498bdf56a8d0ff92cac138a136 | /Bioinformatics Stronghold/rosalind_mend_72.py | 49f9ccc101fa56d9c193660c1839771f93559ea9 | [] | no_license | aakibinesar/Rosalind | d726369a787d848cc378976b886189978a60a3a5 | 375bbdbfb16bf11b2f980701bbd0ba74a1605cdb | refs/heads/master | 2022-08-18T09:36:00.941080 | 2020-05-24T18:49:38 | 2020-05-24T18:49:38 | 264,722,651 | 0 | 0 | null | 2020-05-17T17:51:03 | 2020-05-17T17:40:59 | null | UTF-8 | Python | false | false | 1,468 | py | def child_prob(a,b):
'''Returns the genotype probability for a child with parents who have genotype probabilities a and b.'''
# Comes from the conditional probability of each possible Punit square.
AA = a[0]*b[0] + 0.5*(a[0]*b[1] + a[1]*b[0] + 0.5*a[1]*b[1])
Aa = a[0]*b[2] + a[2]*b[0] + 0.5*(a[0]*b[1] +... | [
"noreply@github.com"
] | aakibinesar.noreply@github.com |
10fed8ac8a2761c35391e45506672bdbf88f1218 | 5017567afd4407291239ca1c3c390e38a637a173 | /ml4convection/utils/learning_curves.py | b0050c7bc4eb097e338ec9f0a7d9b7d6512c3b42 | [] | no_license | thunderhoser/ml4convection | baf371dde42ec8a5274a46839cd088c43a321039 | cf5e9682bc3182305274132ae246bc72d994308f | refs/heads/master | 2023-06-26T10:02:00.508147 | 2023-06-07T23:27:13 | 2023-06-07T23:27:13 | 289,062,783 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 74,489 | py | """Learning curves (simple model evaluation)."""
import os
import copy
import numpy
import xarray
import tensorflow
from keras import backend as K
from scipy.signal import convolve2d
from scipy.ndimage import maximum_filter
from scipy.ndimage.morphology import binary_dilation, binary_erosion
from gewittergefahr.gg_uti... | [
"lagerqui@ualberta.ca"
] | lagerqui@ualberta.ca |
c6dd680f3018b15417906b0700c61818c1fde2ef | e45dddeaca9553e1a3c0ff02c03cf03a04ba4dff | /20190216/alist.py | 38f2620c2c29bf2e8a76bd31aec643b2f755b878 | [] | no_license | qhl453770571/My-Python | 06c733431cd775a9a23971507377200bbf87896b | f1f6b0b338ffb03322e13dce5879bbdc22ccdb16 | refs/heads/master | 2020-04-23T09:48:27.548232 | 2019-02-27T04:57:37 | 2019-02-27T04:57:37 | 171,082,274 | 1 | 0 | null | 2019-02-19T06:43:49 | 2019-02-17T04:39:33 | Python | UTF-8 | Python | false | false | 602 | py | #
# adict={'father':'haile','daugter':'qiaoxin'}
# print(adict)
#
# bdict=dict((['father','haile'],['mother','linlin']))
# print(bdict)
#
alist=[10,100,50]
# print(alist)
# for ind,val in enumerate(alist):
# print('index:%s,%s' %(ind,val))
alist.append(200)
print(alist)
alist.insert(1,300)
print(alist)
alist.rev... | [
"qihl06105212@163.com"
] | qihl06105212@163.com |
8e2aef5ada72ecf9a468edbf58c9edba617f3ee6 | f21ce1669b00d80e8d064363342bafe6cc2bca71 | /personal_website/qna/urls.py | 7662d1cdf7efb6a74cab15d5dfaf24f4075e17a7 | [] | no_license | sandipan898/personal-website | 760a87b42373c0098d67dd3bedb96bac16147e38 | 62ae9dc2be63f9b7d4297596dcffa329e2d9b961 | refs/heads/main | 2023-06-30T03:03:42.374597 | 2021-07-31T21:31:41 | 2021-07-31T21:31:41 | 328,332,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from django.urls import path
from .views import (
HomeView, QuestionDetailView, create_question_view,
question_list_view, change_votes
)
urlpatterns = [
path('', HomeView.as_view(), name='qna-home'),
path('question/all', question_list_view, name='qna-list'),
path('question/detail/<slug:slug>/', Que... | [
"sandipan.das898@gmail.com"
] | sandipan.das898@gmail.com |
1ff0e76aa50e0421cf1f1999584aed381485cbdd | f23cb520fc28df4cc00549836b0419cb04a3ea12 | /homeassistant/components/xiaomi_miio/__init__.py | 1bfc9410d4d0914c9901e52ffe9b2530c2d83b68 | [
"Apache-2.0"
] | permissive | cgtobi/home-assistant | 0273adee3899ab0a4f3239c06619ed69ffa84a99 | b13e14b80cd0667b62228f3121cfe28ab5dfcd92 | refs/heads/dev | 2023-01-23T05:38:02.805066 | 2022-03-24T17:58:58 | 2022-03-24T17:58:58 | 91,916,194 | 1 | 0 | Apache-2.0 | 2020-08-27T12:52:10 | 2017-05-20T21:03:39 | Python | UTF-8 | Python | false | false | 15,065 | py | """Support for Xiaomi Miio."""
from __future__ import annotations
from dataclasses import dataclass
from datetime import timedelta
import logging
import async_timeout
from miio import (
AirFresh,
AirFreshA1,
AirFreshT2017,
AirHumidifier,
AirHumidifierMiot,
AirHumidifierMjjsq,
AirPurifier,
... | [
"noreply@github.com"
] | cgtobi.noreply@github.com |
b1738ca712fec52a2e1dc0c59bd6b60636d7d489 | e5d57accd330943fd6b4c7b6679ae5b252906de2 | /_doc/examples/automation/fetch_student_projects_from_gmail.py | 3c5ad28c688429ad14335f52f2fa9c2a02fe6aa7 | [
"MIT"
] | permissive | ineskamounfourati/ensae_teaching_cs | d77dcafa345c1e8a286355ac293349f8acd2d896 | c680ee4db51ee372e6722a844bb159342cefe9a1 | refs/heads/master | 2023-08-12T15:12:22.947963 | 2021-10-09T10:12:11 | 2021-10-09T10:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,267 | py | # -*- coding: utf-8 -*-
"""
Récupérer des mails d'étudiants en pièce jointe (1:1)
=====================================================
Récupère des fichiers en pièce jointe provenant d'étudiants comme un rendu de projet.
Le programme suppose qu'il n'y en a qu'un par étudiant, que tous les mails ont été
archivés dans ... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
348737929ccb88093e65a4fb1e49ecdbf09231e7 | baf5af1d86c6792f419d6f7cb8d5dbd899ceb78a | /lib/node_modules/@stdlib/math/base/special/riemann-zeta/benchmark/python/scipy/benchmark.py | b40c19fcbfbabf2a7bcabe65c996957ba97ee637 | [
"BSD-3-Clause",
"MIT",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mqzry/stdlib | fd5c2e2f51896460e49c0d39dbf51587714e95e3 | 8770dc9884f9109ad6454e7c721b90717a4ed04c | refs/heads/develop | 2021-05-07T08:13:13.443985 | 2017-11-02T05:26:38 | 2017-11-02T05:26:38 | 109,251,091 | 0 | 0 | null | 2017-11-02T10:36:55 | 2017-11-02T10:36:55 | null | UTF-8 | Python | false | false | 1,582 | py | #!/usr/bin/env python
"""Benchmark scipy.special.zeta."""
from __future__ import print_function
import timeit
NAME = "zeta"
REPEATS = 3
ITERATIONS = 100000
def print_version():
"""Print the TAP version."""
print("TAP version 13")
def print_summary(total, passing):
"""Print the benchmark summary.
... | [
"kgryte@gmail.com"
] | kgryte@gmail.com |
8698ee7020ef67620b95dd2d9670a48b12476861 | 9324567315eeaa09e4e644b2c62d137c389a123f | /myewb/apps/user_search/views.py | 599ab730dc3c1bd7468fb6b6539625854a77d632 | [] | no_license | sboots/myewb2 | f7002cea29fb41c1c6e659d386acfb4716df3a10 | a81333f997c2a89a907889f28ea41aa07bdb5324 | refs/heads/master | 2020-12-25T06:13:38.419265 | 2010-06-29T18:23:36 | 2010-06-29T18:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,890 | py | """myEWB user search
This file is part of myEWB
Copyright 2009 Engineers Without Borders (Canada) Organisation and/or volunteer contributors
"""
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext, Context, loader
from django.http import HttpResponseRedirect
f... | [
"franciskung@ewb.ca"
] | franciskung@ewb.ca |
9946f44b3b94ea26cb091fbf6c606eadf76d8f51 | 41586d36dd07c06860b9808c760e2b0212ed846b | /multimedia/sound/twolame/actions.py | d168891a6afba5a546ee5a8068cb343b00c2d494 | [] | no_license | SulinOS/SulinRepository | 4d5551861f57bc1f4bec6879dfe28ce68c7c125d | 9686811a1e06080f63199233561a922fe1f78d67 | refs/heads/master | 2021-06-15T21:34:25.039979 | 2021-06-05T13:43:34 | 2021-06-05T13:43:34 | 207,672,864 | 6 | 3 | null | 2019-12-06T08:11:22 | 2019-09-10T22:16:17 | Python | UTF-8 | Python | false | false | 612 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import libtools
from inary.actionsapi import get
def setu... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
f3ea3b0e73c237fd191c9065ce1532078fb91c2b | c4043463b6c969b3b441ade0c242932b04164355 | /txtorcon/controller.py | 64ec6f76db08489bc68ee2105de1f183ec763c2f | [
"MIT"
] | permissive | Nebulae389/txtorcon | d6e6620fda92f5e0d7a22ff33f5e6494b16f8449 | 0d3e95887e5a126b12c1bf1a49870bb6ef02e0cf | refs/heads/master | 2020-03-27T11:06:52.792408 | 2018-08-02T16:54:51 | 2018-08-02T16:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,421 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import with_statement
import os
import sys
import six
import shlex
import tempfile
import functools
from io import StringIO
from collections import Sequence
from os.path import dirname, exists
from tw... | [
"meejah@meejah.ca"
] | meejah@meejah.ca |
ec61600ea16121778bfcbc17d7efa402da526c7b | 063d7a63177b45cae4d1b8abb3264077337b8200 | /users/signals.py | d4626a56fb7c6a3394d6fe1d22f29ea15f47e2ec | [] | no_license | palmman/imdbfake | ba92e5fb635339eff54a895445a61499e81d5c9f | 7aec25f5d12b2c2631361f691fc080a3b0117c57 | refs/heads/main | 2023-06-26T12:41:06.156368 | 2021-07-21T07:19:26 | 2021-07-21T07:19:26 | 388,028,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver
from django.contrib.auth.models import User
from .models import Profile
# @receiver(post_save, sender=Profile)
def createProfile(sender, instance, created, **kwargs):
if created:
user = instance
pro... | [
"palm454555@hotmail.com"
] | palm454555@hotmail.com |
b7bbf05bde54541f93faf00124cc2fd82cc588f5 | 3ec48532a4876863e36ead351d026bf5d56569b8 | /app/models/user.py | 374197060b1ae6fcc1647e89827a93a11e45075b | [] | no_license | Erick-LONG/fisher | 6844c5099e542077246a1668511eeaa685385a60 | 31174063a92944e8e39cb71360a3a3856191e2a6 | refs/heads/master | 2022-12-09T15:31:31.890974 | 2018-05-10T14:25:45 | 2018-05-10T14:25:45 | 129,324,293 | 0 | 1 | null | 2022-12-08T02:05:55 | 2018-04-13T00:01:15 | CSS | UTF-8 | Python | false | false | 3,512 | py | from flask import current_app
from math import floor
from app.libs.enums import PendingStatus
from app.libs.helper import is_isbn_or_key
from app.models.base import Base, db
from sqlalchemy import Column,Integer,String,Boolean,Float
from werkzeug.security import generate_password_hash,check_password_hash
from flask_lo... | [
"834424581@qq.com"
] | 834424581@qq.com |
ca292c3bd175e7323fdf30b04c2bc2fecde7d9ac | b68177c397443c2f232685a234b162e8a8a97590 | /blog/apps/user_profile/migrations/0004_uid.py | 033587c57bf52671f36620a44808c74e9f6b26ce | [] | no_license | xal9wiii4ik/super_blog | 0eae9d24f07403955832a160839f4220b95b0257 | 4eebd1455461e03f35e5f0acf266fc1e01d9f9f7 | refs/heads/master | 2023-08-23T02:52:46.173999 | 2021-08-05T13:01:40 | 2021-08-05T13:01:40 | 376,785,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # Generated by Django 3.2.4 on 2021-06-23 19:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_profile', '0003_alter_account_image'),
]
operations = [
migrations.CreateModel(
name='Uid',
fields=[
... | [
"xal9wIII4ik@yandex.ru"
] | xal9wIII4ik@yandex.ru |
431714f63a9dde199ddbe9d9d10e724c521efdcb | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_m_yoda_sleepy.py | aba148e70b9702b0c74710f9aa1116b6c7a569eb | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 924 | py | def sleepy(lis, tc):
output = []
for k in lis:
digits = []
i = 2
x = k
if(k == 0):
output.append('INSOMNIA')
while(k!=0):
num_str = str(k)
len_num = len(num_str)
for j in rang... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
16d58626350bbf4c62afea243a9981f969f2f28e | 92bc2fec93b695a53bfaee5c37922d2b9309f220 | /ex_videos/ex-025.py | 33832bdc26608a9bd3c793cf832b985b9b572e20 | [] | no_license | acaciooneto/cursoemvideo | 6b95e14b49c93c9aabd936dc85734ddc21387360 | c1d12a6625fd401968809286d817f821f21c7759 | refs/heads/main | 2023-01-05T04:23:07.557372 | 2020-11-01T16:24:18 | 2020-11-01T16:24:18 | 309,129,400 | 0 | 0 | null | 2020-11-01T16:27:53 | 2020-11-01T15:44:45 | Python | UTF-8 | Python | false | false | 480 | py | # JEITO DELE
nome = str(input('Qual é seu nome completo? ')).strip()
print('Seu nome tem Silva? {}'.format('silva' in nome.lower()))
# MEU JEITO
name = str(input('Digite seu nome completo: ')).strip().title()
low = name.lower()
if 'silva' in low:
print('Senhor(a) {} {}, seu nome descende de povos marginalizados.'.... | [
"acaciooneto@gmail.com"
] | acaciooneto@gmail.com |
75065140159485859b8a49b175da7bc10dbd4195 | 68285e79143ba901138c5c4086364930150f2fac | /uxs/base/wrappers/poloniex.py | 544bedd89d8fbaf916036827af9e60df1d794129 | [] | no_license | binares/uxs | e518ca778dc62723c9ee41e8e66e3ff7137b74ba | 0afd63a5d9b3fd76af38fc34d9d2e9015d30bbc9 | refs/heads/master | 2023-07-14T07:48:41.808466 | 2021-08-24T20:42:22 | 2021-08-24T20:42:22 | 281,516,192 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | class poloniex:
def parse_trade(self, trade, market=None):
trade = super().parse_trade(trade, market)
if 'tradeID' in trade['info']:
trade['id'] = trade['info']['tradeID'] # websocket sends only fill's tradeID
return trade
| [
"binares@protonmail.com"
] | binares@protonmail.com |
8b6464d10113c4329a8ae4d9d8a4f908f8f47af9 | bd4144e919786b4aded4345a2a69ed79e0922946 | /1월 1주차/치킨 배달.py | 9d7684c620ab81689b4b5d81ee903be60f7dd8a7 | [] | no_license | 2020-ASW/kwoneyng-Park | 670ee027a77c1559f808a51aaf58f27ab3bb85b9 | 3ef556889bbf3f2762c01fdfd10b59869d5e912f | refs/heads/master | 2023-05-14T16:14:04.227511 | 2021-06-11T08:00:37 | 2021-06-11T08:00:37 | 321,286,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | def perm(m, st=0, cnt=0):
global ans
if m == cnt:
rs = []
cd = 0
for i in range(c):
if vis[i]:
rs.append(dt[i])
for j in range(h):
mn = 999999
for i in range(m):
mn = min(mn, rs[i][j])
cd += mn
... | [
"nan308@naver.com"
] | nan308@naver.com |
13241d7f4d4224e26d572b34e23c47755070132f | 45dbbb9ce361e2faa4a7b43ceeecdf7e2a7f7334 | /api/animal/serializers.py | f48da707332acb27288e5f7b84d6c67c0ae48d28 | [] | no_license | Uzair11/animals-backend | 27782d678fa320d6f5759ac72ba5fedc1d652e1e | 4b909ec293bf636cce5979274c94af079ddd1ca4 | refs/heads/master | 2022-12-15T08:39:20.045382 | 2020-03-12T18:07:55 | 2020-03-12T18:07:55 | 246,837,155 | 0 | 0 | null | 2022-12-08T03:47:28 | 2020-03-12T13:09:10 | Python | UTF-8 | Python | false | false | 926 | py | from rest_framework import serializers
from api.user.models import User
from .models import Animal
from ..user.serializers import UserSerializer
import copy
class AnimalSerializer(serializers.ModelSerializer):
user = serializers.PrimaryKeyRelatedField(queryset=User.objects)
class Meta:
model = Animal
... | [
"="
] | = |
37c07c960f43ddf8da490cdc5d83d34985e04f8e | 2e86a4e2cc41935afa452ed42e34b55970fd5c99 | /WebWorker/nong_san_huu_co/nong_san/views.py | b59777a3cd1b66649ed69a65e552b83d140b7ffb | [] | no_license | phuthien007/django-project | ad0cf3d28ccf932a098f84123bf69bd28832f001 | 01aaea97b3c3c634334dba90965ba18c3af29ce0 | refs/heads/main | 2023-05-06T07:52:43.281115 | 2021-05-16T05:20:23 | 2021-05-16T05:20:23 | 355,950,738 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,895 | py | import json
from django.contrib.auth.hashers import check_password, make_password
from django.http import HttpResponse, JsonResponse
from django.shortcuts import render, redirect
from django.views import View
from django.views.decorators.csrf import csrf_exempt
from rest_framework.decorators import api_view
from rest_... | [
"="
] | = |
fddc65e2db7c095dee1c57aed7560d3394bac116 | 7cf8eb48e36e1aabf78f8fc4f9d5cfb0cfbc936b | /chapter5/definite_loop.py | a8641d6e35ef615051ad4a6296baeb6cc5b7a561 | [
"Apache-2.0"
] | permissive | AbdallahAhmed1999/WDMM-1402 | 47c6775e83ba01f7914451a181746c7f8acbff8b | 1d34a3c4bbedb6e2fcd1f45cc81e6aae5adad7d0 | refs/heads/master | 2020-04-23T23:14:15.570154 | 2018-12-24T11:58:49 | 2018-12-24T11:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | # definite loops
l = [1, 4, 6, 7, 9, 10]
print('list:', l)
print('size', len(l))
for i in l: # definite (iterate 6 times)
print(i)
for i in range(10): # definite (iterate 10 times)
print(i)
| [
"motaz.saad@gmail.com"
] | motaz.saad@gmail.com |
ee75e6478dc36961e7da34d592bd61b0739d2f15 | 78efa54b2b253f99ea7e073f783e6121c20cdb52 | /Codechef/Chef and Snackdown.py | 44abe6d3dddba11cdeb9f28d224b6ab7f591b101 | [] | no_license | NishchaySharma/Competitve-Programming | 32a93581ab17f05d20129471f7450f34ec68cc53 | 1ec44324d64c116098eb0beb74baac7f1c3395bb | refs/heads/master | 2020-04-08T04:02:46.599398 | 2020-01-01T15:51:39 | 2020-01-01T15:51:39 | 159,000,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | for _ in range(int(input())):
if int(input()) in [2010,2015,2016,2017,2019]:
print('HOSTED')
else:
print('NOT HOSTED')
| [
"noreply@github.com"
] | NishchaySharma.noreply@github.com |
309b0d94782c72a8c887fc6cf0f273edd7fad4ae | 553b86e3b1ed21e64ea4feeb690af0701a17ba5f | /prob709.py | 39be7846a4551c7a3cf6f46401d55d3da6318d19 | [] | no_license | shihyuuuuuuu/LeetCode_practice | d1c4b7851abfa42fcc4b56f835444792aca3f222 | dbc7e988ca9fd6f3a9541a36a0ad543c97b884af | refs/heads/master | 2023-01-03T21:25:14.426989 | 2020-11-03T07:09:29 | 2020-11-03T07:09:29 | 254,667,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | class Solution:
def toLowerCase(self, str: str) -> str:
ans = ""
for i in str:
ans += chr(ord(i)+32) if ord(i) >= 65 and ord(i) <= 90 else i
return ans
# return str.lower()
| [
"www.elmo20816@gmail.com"
] | www.elmo20816@gmail.com |
df90903881433e680bb25c3bbbc3d1313f85e656 | 6e07a13e8692a949e91355cee6e445e5407bb613 | /cap05/exemplos/Loops/for-working1.py | 0bf8d2675ddde66213dbbff20494c5b19daec2d3 | [] | no_license | frclasso/turma1_Python3_2018 | a0a64454626aa816c36ad71e79e4fb8660fc5cbd | 2c038b48c84baf7b5545e8cf77c13a7b71c2b5c3 | refs/heads/master | 2021-04-15T04:58:36.562235 | 2018-06-22T13:52:47 | 2018-06-22T13:52:47 | 126,604,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | #!/usr/bin/python
def main():
fh = open('/home/fabio/Desktop/estudo_ti/Python/'
'Python3-essential-training-Bill-Weinman/'
'2-Quick-Start/lines.txt')
for index, line in enumerate(fh.readlines()):
print(index, line, end='')
if __name__ == "__main__":main() | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
b9a445cefe08737fc657ff4e38f8b8d6c12fb0fa | a064f15afc613d6df5a4bc569b52323a221a3731 | /venv/Scripts/easy_install-script.py | 590506f3d662878b9338da2c13d09e5287053a87 | [] | no_license | swpheus/Python_Stocks | 4066f466084d11912fe3db92e76b78c4354995b4 | 00d40450faf85bff873a84c4593e307a01cc6557 | refs/heads/master | 2020-03-25T20:12:08.433562 | 2018-08-21T11:50:31 | 2018-08-21T11:50:31 | 144,120,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #!C:\Users\swphe\PycharmProjects\Stocks\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"swpheus1@naver.com"
] | swpheus1@naver.com |
46d2ac900cb2334cf8877854381065b9d8cf5c00 | 670c844e5cfa1cdf11212cc53972ecd8f7a25949 | /python/test/test_LargestBSTSubtree.py | 28e8a1e7c813b055ea87c428c3452719fdf61b41 | [] | no_license | IamConstantine/LeetCodeFiddle | 74d580a0741e40397f1283beadd023f9b9323abd | 5ec509505a394d53517fb005bbeb36745f06596a | refs/heads/master | 2022-05-31T05:25:14.273605 | 2022-05-23T02:46:47 | 2022-05-23T02:46:47 | 100,910,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from unittest import TestCase
from LargestBSTSubtree import largestBSTSubtree
from Tree import createBinaryTreeFrom
class Test(TestCase):
def test_largest_bstsubtree(self):
self.assertEqual(3, largestBSTSubtree(createBinaryTreeFrom([10, 5, 15, 1, 8, None, 7])))
self.assertEqual(2, largestBSTSubtr... | [
"vishalskumar12@gmail.com"
] | vishalskumar12@gmail.com |
13cc2696c4030efa69cafab66b7e9d4e2898e284 | 09fbeed610a8d85f226ed93cc3acf7433e26a2fa | /python/벽 부수고 이동하기.py | 40a735647dd06095b0fe457714be2eab5451ca14 | [] | no_license | Daboni/PS | 819744ccb1dc1e832a034f5ecf65c0241c3ee4e5 | 6c81cdc0569981db0bce6c540fecf1fb0c5c2805 | refs/heads/master | 2023-08-23T13:42:40.084793 | 2021-10-08T08:29:53 | 2021-10-08T08:29:53 | 290,971,583 | 0 | 0 | null | 2020-12-16T02:37:18 | 2020-08-28T06:42:53 | null | UTF-8 | Python | false | false | 952 | py | from collections import deque
n,m = map(int,input().split())
a = [ list(map(int,list(input()))) for _ in range(n) ]
dist = [ [ [0]*2 for j in range(m)] for i in range(n) ]
dx = [ 0, 0, 1, -1]
dy = [ 1, -1, 0, 0]
q = deque()
q.append((0,0,0))
dist[0][0][0] = 1
while q:
x,y,z = q.popleft()
... | [
"noreply@github.com"
] | Daboni.noreply@github.com |
1218581a5ee1a3e8e642802190640ef51822c97b | 868f5c1da9a0be1f4b477c99a77753f53b1ce094 | /Password-Strength-Analysis-master/DecisionTree.py | 9acb7c1fd7a40d165f040dfc3362721048867ec5 | [] | no_license | vaibhavkrishna-bhosle/Data-Science-Projects-with-Python | 9dd078656472dd1c19b21e16690e5c85e3d5c439 | 6ad88a96e2ce4a0fe3a8ff86f3922240e1a0c574 | refs/heads/main | 2023-05-07T04:57:55.868559 | 2021-06-05T16:01:41 | 2021-06-05T16:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # Import the necessary Libraries
import pandas as pd
# For text feature extraction
from sklearn.feature_extraction.text import TfidfVectorizer
# For creating a pipeline
from sklearn.pipeline import Pipeline
# Classifier Model (Decision Tree)
from sklearn.tree import DecisionTreeClassifier
# To save the trained mode... | [
"vaibhavkrishna.bhosle@gmail.com"
] | vaibhavkrishna.bhosle@gmail.com |
e563875ae64eed13fbc5d0f64d5615e2ab320060 | 89c771acabae2ba0b3b95c8817d696cf4a24413d | /znop/exceptions.py | 5f3188b0f2c186ca15cbf22db450aa9d07e70313 | [
"MIT"
] | permissive | iann838/Znop | 111f0d9ae68959d7d5d7856f0397165b0373ce1a | 631a14a7a24f32965e497755003eb92ded5c48ca | refs/heads/main | 2023-06-02T20:48:56.763554 | 2020-10-26T01:36:47 | 2020-10-26T01:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py |
class ZSetError(Exception):
def __init__(self):
Exception.__init__(self, "Operation between ZnInt of different Z set")
class ZVarError(Exception):
def __init__(self):
Exception.__init__(self, "Operation between ZnInt of different variables outside products")
class ParseError(Exception):
... | [
"paaksingtech@gmail.com"
] | paaksingtech@gmail.com |
65f845304178877d6746ff40f8a05f86040ef10b | 79db64e0309afd2c6b06ef9d10b0342974578210 | /5893.py | bed4da638a0b0ff83e7eb2e9cd5e9036f6e98c43 | [] | no_license | hyesungoh/algorithm-practice | fb4d3b9845d03654ea48fdff9aea02e0a1328fc8 | 7649f1fe376e078686784780330579d07ba60257 | refs/heads/master | 2021-09-19T19:55:43.192682 | 2018-07-31T12:37:56 | 2018-07-31T12:37:56 | 109,205,637 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | # 이름 : 오혜성
# 날짜 : 05 20 2018
# 주제 : 17배, 2진수
n = int(input(), 2) * 17
print("{0:b}".format(n)) | [
"haesungoh414@gmail.com"
] | haesungoh414@gmail.com |
a33fcba03e8f618ceb5ef7216a1600a4caa469a7 | 2d9b0d3ed34312b1e072fb76d47fb76ca10b7e22 | /ttp/utils/loaders.py | 44b76e4a6c2b009cca57c04e73dc8bf0fd1d4e56 | [
"MIT"
] | permissive | jl-massey/ttp | 9e64b0491f325e5f987b50c7ffc8814845de5964 | 64dd44b5037bd4f1dd798188867ee8f9f981f638 | refs/heads/master | 2022-12-31T19:17:54.213851 | 2020-10-18T01:58:40 | 2020-10-18T01:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,731 | py | import os
import logging
log = logging.getLogger(__name__)
def load_files(path, extensions=[], filters=[], read=False):
"""
Method to load files from path, and filter file names with
REs filters and extensions.
Args:
path (str): string that contains OS path
extensions (list): list of s... | [
"d.mulyalin@gmail.com"
] | d.mulyalin@gmail.com |
7df396efb2568567394b125d940a7fd300c7ffcb | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /homeassistant/components/flux_led/util.py | 6bcf4538dfb80c5123e0a2c5f53110201feba273 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 4,254 | py | """Utils for Magic Home."""
from __future__ import annotations
from flux_led.aio import AIOWifiLedBulb
from flux_led.const import COLOR_MODE_DIM as FLUX_COLOR_MODE_DIM, MultiColorEffects
from homeassistant.components.light import ColorMode
from homeassistant.util.color import color_hsv_to_RGB, color_RGB_to_hsv
from ... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
39ee5932bfd557ee2fe4e3dabcad17dfc8e81e82 | f1b8f0a0c44fbdb9d270415f6b4edb1672a234dd | /2strings_follows.py | 623522a78ce36a09add7390e5cc331f36d34b2d9 | [] | no_license | devika4365/programs_i_done | 2df10890fb55e893eb572aab6cf09e673a0438ef | e09f6ac6c0f1281b7ee9c21a5d1faff999a7a8ec | refs/heads/main | 2023-04-06T02:45:04.492005 | 2021-04-07T15:59:31 | 2021-04-07T15:59:31 | 355,602,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | l=input()
d=input()
k=list(d)
j=len(l)-len(d)
y=''
m=0
for w in d:
if w=='*':
q=k.index('*')
k.pop(q)
for h in range(j+1):
k.insert(q,'_')
for t in k:
y+=t
print(y)
i=0
while i<len(y) :
if l[i]=="_":
i+=1
continue
elif y... | [
"noreply@github.com"
] | devika4365.noreply@github.com |
bef2a15595565d4e10e06de1032ca6f65de17582 | e43623d3819022510f5a41af57cfd4590d336804 | /boxuegu/apps/courses/migrations/0009_auto_20190612_1218.py | 5eca3a32861b6ad0a644919fe4debd913a44436d | [
"MIT"
] | permissive | libin-c/bxg | a1a299ac55c02b73fbffb131e464774a926fdae2 | c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23 | refs/heads/master | 2020-06-03T06:11:35.685109 | 2019-06-13T14:27:02 | 2019-06-13T14:27:02 | 191,474,660 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-06-12 12:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses', '0008_bannercourse'),
]
operations = [
... | [
"84045407@qq.com"
] | 84045407@qq.com |
3a68ef2ebde3de399b39f874dbd2567c72d8d4b4 | 23f4ae6dd155449eb6ad2da6fa09209ca8e459d0 | /gen/__init__.py | 78c757bfa0ae31fe586e28a998dcaa7b0797a0bd | [] | no_license | pombreda/gen | 381267d9f61652f0056fecbb4bc223b630bc2480 | 0372b0395f224c63ab5a69c3829a329512efe1fb | refs/heads/master | 2021-01-20T10:53:39.171500 | 2015-04-08T13:14:17 | 2015-04-08T13:14:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | import os
import click
from . import generate, loader, parser, cli
__version__ = '0.2.dev1'
class ExtendedCommand(click.Command):
allow_extra_args = True
allow_interspersed_args=False
ignore_unknown_options = True
@click.command(cls=ExtendedCommand)
@click.argument('template')
@click.option('--target', '... | [
"p.f.moore@gmail.com"
] | p.f.moore@gmail.com |
3881c0fb7c6bdcdc9783303f654cb06ee895f6ca | a8be4698c0a43edc3622837fbe2a98e92680f48a | /SSAFY알고리즘정규시간 Problem Solving/9월 Problem Solving/0924실습/5208전기버스2.py | 87e8497006ec10493cbf4fec40d07c68dd7edb2b | [] | no_license | blueboy1593/algorithm | fa8064241f7738a12b33544413c299e7c1e1a908 | 9d6fdd82b711ba16ad613edcc041cbecadd85e2d | refs/heads/master | 2021-06-23T22:44:06.120932 | 2021-02-21T10:44:16 | 2021-02-21T10:44:16 | 199,543,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import sys
sys.stdin = open("5208_input.txt", "r")
def backtrack(i, cnt):
global min_cnt
dis_possible = lpg_list[i]
if i + dis_possible >= N:
if cnt < min_cnt:
min_cnt = cnt
return
else:
cnt += 1
if cnt > min_cnt:
return
for j in range(1, ... | [
"snb0303@naver.com"
] | snb0303@naver.com |
38efb1ee8f2621f1eb87d724df7b5e7212dbf672 | cd2c85500d420a67c433113cf43a734669134423 | /build/v4r_ros_wrappers/segmentation_srv_definitions/catkin_generated/pkg.develspace.context.pc.py | 4e74f46d8002238624505649ab8fea71c18f305c | [] | no_license | 0000duck/youbot_mobile_manipulation_WS | f942974724dd19c9c92e852ccbd056e29d9c6049 | 0e966211c8d7135dc7cffedbb10b15459398ef8f | refs/heads/master | 2020-12-10T11:59:30.700737 | 2017-07-17T13:49:12 | 2017-07-17T13:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ros/catkin_ws/devel/include".split(';') if "/home/ros/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" !... | [
"mohdnaveed96@gmail.com"
] | mohdnaveed96@gmail.com |
4cc8634ac14132fd15102cb3cf2d1f3da23e2689 | c07380914a44df334194f234c33858f357365c19 | /ENV/lib/python2.7/site-packages/pandas/tests/test_internals.py | 00553102e172f1a75880049c204a46e1c3b219bd | [] | no_license | damianpolan/Music-Genre-Classification | 318952ae7de5d0b0bdf5676e28071c7b38d0e1c5 | acd723ae1432ce798866ebb97ef3c484db37e971 | refs/heads/master | 2022-12-24T09:23:55.514337 | 2016-03-22T14:49:28 | 2016-03-22T14:49:28 | 42,965,899 | 4 | 4 | null | 2022-12-12T20:26:24 | 2015-09-22T23:05:37 | Python | UTF-8 | Python | false | false | 45,145 | py | # -*- coding: utf-8 -*-
# pylint: disable=W0102
from datetime import datetime, date
import nose
import numpy as np
import re
import itertools
from pandas import Index, MultiIndex, DataFrame, DatetimeIndex, Series, Categorical
from pandas.compat import OrderedDict, lrange
from pandas.sparse.array import SparseArray
f... | [
"damian.polan@gmail.com"
] | damian.polan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.