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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
afe31aea2d9cd7cf6fa4c51b8e4513f1a8fbd7e6 | 4c12a16443c5f73bce032414e830881cb8c6d8e0 | /backend/racing_lamborginis_21017/wsgi.py | 23b9e9c5bc4be1854177e95bbb72b1c0cd220861 | [] | no_license | crowdbotics-apps/racing-lamborginis-21017 | d9c71440bb877a6fd47cbbeaf9d5e1060df77cba | d76d33f94332843d2b564a103d56ab143e10b0bb | refs/heads/master | 2022-12-30T08:38:47.651833 | 2020-10-03T11:17:53 | 2020-10-03T11:17:53 | 300,862,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | """
WSGI config for racing_lamborginis_21017 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
34f47ee507cb89aee8ad4f0dec96520200801399 | 409ce560793c070ef4211b99c5a4a5316a258c4f | /unittests/pytests/utils/TestConstants.py | 25fee48f0ccd85b914adda51af89ae2e632377dc | [
"MIT"
] | permissive | calum-chamberlain/pylith | bb718bfb4305f03b45d42348e5d4fa5ed5f4a918 | 8712c39ade53c1cc5ac0e671e4296cee278c1dcf | refs/heads/master | 2020-12-06T17:15:08.638337 | 2016-05-15T20:30:28 | 2016-05-15T20:30:28 | 46,401,744 | 0 | 0 | null | 2016-05-15T20:30:29 | 2015-11-18T07:09:12 | C++ | UTF-8 | Python | false | false | 1,158 | py | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
245fe46d17c120ab7965895e594e5fec0c460184 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/413.Arithmetic Slices(等差数列划分).py | b8ac8cded2d30b118ccf5c8f0cf485c7285b43c8 | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,816 | py | """
<p>A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.</p>
<p>For example, these are arithmetic sequence:</p>
<pre>1, 3, 5, 7, 9
7, 7, 7, 7
3, -1, -5, -9</pre>
<p>The following sequence is not arithmetic.</p> <... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
f665c4ad3bec3e391dda74628186ac234349d23c | 9de8b47c53c530b143f5d37a130e47aa092a4b06 | /examples/ods_00_simple.py | 325a00387f973a48cac170fb9c3f90468e8a19af | [
"MIT"
] | permissive | pyexcel/pyexcel-ezodf | 27b2d6e3c9c7f8e04a03827eaad417ec91d08420 | 981fc223984aace7a0fe900f0be7cbcb72c7e17e | refs/heads/master | 2023-08-04T18:56:21.134917 | 2019-06-15T17:00:19 | 2019-06-15T17:00:19 | 25,791,290 | 6 | 3 | NOASSERTION | 2019-06-15T17:00:20 | 2014-10-26T21:15:31 | Python | UTF-8 | Python | false | false | 796 | py | #!/usr/bin/env python
#coding:utf-8
# Purpose: simple spreadsheet
# Created: 26.01.2011
# Copyright (C) 2011, Manfred Moitzi
# License: MIT license
from __future__ import unicode_literals, print_function, division
__author__ = "mozman <mozman@gmx.at>"
import ezodf
ods = ezodf.newdoc('ods', "simple_spreadsheet.ods")
... | [
"mozman@gmx.at"
] | mozman@gmx.at |
00675ddee6089fc807f80b16ba51e6c6744e0783 | 8d4087ba079c6e8a1a87285f4205a5eef4743010 | /scoring_browser/source_tab.py | ca5bb83648d50cdeedadf7251b5fe06e0a6b0208 | [
"MIT"
] | permissive | janpipek/scoring_browser | 5e9d0528224308219199792b84afba6f16e7576b | 518363ebd8fb198edbebcd616a8a027662b97185 | refs/heads/master | 2021-01-01T16:29:57.452640 | 2015-01-13T11:00:48 | 2015-01-13T11:00:48 | 3,330,051 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | #
# scoring_browser --- Simple Qt application for browsing
# scoring outputs in Geant4
#
# Copyright (C) 2012-2014 Jan Pipek
# (jan.pipek@gmail.com)
#
# This file may be distributed without limitation.
#
from PyQt4 import QtGui
class SourceTab(QtGui.QWidget):
""" Tab displaying the file source."""
def __init_... | [
"jan.pipek@gmail.com"
] | jan.pipek@gmail.com |
ec1954ca86823f75679aaa50495f990a7f0d2195 | 6ca9a7ed179ed96857c86dd91d5f81ad07be4690 | /KnowledgeMapping/spark/11_mysql_op.py | fa261f93b12f4fd981f71143cd16bc8f8ffbde56 | [
"MIT"
] | permissive | nickliqian/keep_learning | ede172048cb1473013aa506a943ebe0c7c416065 | be120ce2bb94a8e8395630218985f5e51ae087d9 | refs/heads/master | 2021-04-25T18:23:47.808870 | 2020-07-31T09:52:20 | 2020-07-31T09:52:20 | 108,302,688 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,414 | py | from pyspark import SparkContext
from pyspark.sql import SQLContext
import pyspark.sql.functions as F
sc = SparkContext("local", appName="mysqltest")
sqlContext = SQLContext(sc)
df = sqlContext.read.format("jdbc").options(
url="jdbc:mysql://localhost:3306/mydata?user=root&password=mysql&"
"useUnicode=true... | [
"nickliqian@outlook.com"
] | nickliqian@outlook.com |
dd47c408355ba26ad57a6dca68f599dd9a8a5475 | 19652cc279e9bd0d63622430f09f0ad187349ff7 | /GetZhuanTiLawContent.py | ca76160f6899084b9cc2ecd79b337aaa18198f31 | [] | no_license | dumin199101/JinRongExtractScript | d1a3a415d335727ba1e9cc3772e0c4b40bcfc040 | 253420befab540b0d35140dfd6ec1c2ebaf95244 | refs/heads/master | 2021-06-27T22:49:27.095270 | 2019-04-30T05:50:34 | 2019-04-30T05:50:34 | 145,783,385 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # coding=utf-8
"""
@Project: JinRong
@Time: 2019/3/21 16:54
@Name: GetZhuanTiLawContent
@Author: lieyan123091
"""
import os,sys,re
def del_blank_char(str):
"""
去除字符串中的空白跟换行符
:param str:
:return:
"""
rep = re.compile(r'(\n|\t|\r)')
(fstr, count) = rep.subn('', str)
return fstr
def write... | [
"1766266374@qq.com"
] | 1766266374@qq.com |
a21d70e8bbc05a9589358e153a72bbcdcf05d80e | 45828d99366ce5884b44f3a8a88564a97aba07ec | /dg/commands/deploy.py | 858fff8f5fc2460f3f653a80776845dc44ea6492 | [
"Apache-2.0"
] | permissive | alefnula/dg | 6e98d9b0fe7eb9f852725225f581c7781dca9b32 | 57602c464293dd1f78188fc1bddcafe1f08fb4ee | refs/heads/master | 2021-09-04T03:54:51.548719 | 2018-01-15T15:19:01 | 2018-01-15T15:19:01 | 114,445,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | __author__ = 'Viktor Kerkez <alefnula@gmail.com>'
__date__ = ' 06 December 2017'
__copyright__ = 'Copyright (c) 2017 Viktor Kerkez'
import os
import dg
import glob
import shutil
from datetime import datetime
from dg.utils import ensure_dir, bar
@dg.command
@dg.argument('-m', '--model', action='append', dest='models... | [
"alefnula@gmail.com"
] | alefnula@gmail.com |
d8166967a72793fe1c9a773e18c675dd16b45b91 | ee7e42417d9d1e76b0e84e44dc6eb037adc3ebad | /.history/pet/api_20190703153244.py | 42fa809e9282d2a4761bacc1a97858c58c20bd27 | [] | no_license | web3-qa/pets-api | 4632127ee84a299f207d95754f409fc1e4c0013d | ee4a04e7291740ac8eb6147c305b41d27d5be29c | refs/heads/master | 2023-05-12T09:09:47.509063 | 2019-07-18T15:07:13 | 2019-07-18T15:07:13 | 197,611,701 | 0 | 0 | null | 2023-05-01T19:42:17 | 2019-07-18T15:19:59 | Python | UTF-8 | Python | false | false | 296 | py | import json
from flask import abort, jsonify, request
from flask.views import MethodView
class pets(MethodView):
pets = [
{"id":1, "name": u"Mac"},
{"id":2, "name": u"Leo"},
{"id":3, "name": u"Dave"}
]
def get((self):
return jsonify("pets":self.p) | [
"dcolmer@statestreet.com"
] | dcolmer@statestreet.com |
cbcbbe018d0666193143c8195bfeeac41f28ebf0 | a226588e90812f436e16ae140555463a259e653c | /pytorchYOLOv1master/xml_2_txt.py | 37177e4baa5d104e29948ab20f209dc2e35955ed | [] | no_license | Bigfishers/AnnotatedNetworkModelGit | 3b6f4d0c40e4d50f88e71a48af4c0f175af1935a | 6fef51b7ac85359506fc7992f13acd742105a0b6 | refs/heads/master | 2020-03-18T05:51:52.044434 | 2018-05-22T01:57:00 | 2018-05-22T01:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | import xml.etree.ElementTree as ET
import os
VOC_CLASSES = ( # always index 0
'aeroplane', 'bicycle', 'bird', 'boat',
'bottle', 'bus', 'car', 'cat', 'chair',
'cow', 'diningtable', 'dog', 'horse',
'motorbike', 'person', 'pottedplant',
'sheep', 'sofa', 'train', 'tvmonitor')
def parse_rec(filename... | [
"1055271769@qq.com"
] | 1055271769@qq.com |
5a3c57fd21f95321e6d620c75362de168aa1a0a7 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/l2/bot_20200620185737.py | c28dc8413d17eb198a5c331d9f16239be7f16928 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | # # Work with Python 3.6
import discord, os, json, time
# TOKEN = os.environ.get('TOKEN')
client = discord.Client()
def save():
with open(os.path.dirname(os.path.realpath(__file__)) + "/save.json", 'w') as file:
json.dump(people, file)
people = {"zheka": ""}
with open(os.path.dirname(os.path.realpath(_... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
3d9d753500f25326772d80f9d9adbe3735342da5 | 377cbbe140fd0faf1eb53ba3794de816ac307cde | /src/interpolate/InterpolateLatentSpace.py | 7d6d54575b623f171f505c66e68ec8aee3183784 | [
"MIT"
] | permissive | dhruvtapasvi/implementation | fcbd7ab8e7b1368a0f07ee41dc5f0b6d6708c206 | 964980f431517f4548a87172a05107cdf700fb84 | refs/heads/master | 2021-09-16T01:47:50.601661 | 2018-05-17T19:22:44 | 2018-05-17T19:22:44 | 114,498,055 | 1 | 0 | MIT | 2018-05-05T02:17:35 | 2017-12-16T23:59:13 | Python | UTF-8 | Python | false | false | 893 | py | from interpolate.Interpolate import Interpolate
from model.Autoencoder import Autoencoder
class InterpolateLatentSpace(Interpolate):
def __init__(self, autoencoder: Autoencoder):
self.__encoder = autoencoder.encoder()
self.__decoder = autoencoder.decoder()
def interpolateAll(self, left, right... | [
"dhruv.tapasvi1996@gmail.com"
] | dhruv.tapasvi1996@gmail.com |
91875d0345ca998c41170c240a27ca72b0e5d82d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_2/47.py | 00fad29e61996189fea882fe09baa3269940f0eb | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | #!/usr/bin/env python
from sys import *
def timeDecode(time):
h = time / 60
m = int (time / time / 60)
return "%02d:%02d" % (h, m)
def processCase(trainsA, trainsB, tt, case):
if len(trainsA) == 0 or len(trainsB) == 0:
ca = len(trainsA)
cb = len(trainsB)
else:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c6ea32be19b42e31ca901a7538214806f9956215 | d13c986a2260cf3b1ef247ef229db6d725dc15f3 | /pytext/models/representations/bilstm.py | c6f42d7e4cee9f2f9964ddc303d5695b1c8cea07 | [
"BSD-3-Clause"
] | permissive | meltnur/pytext | c5ae44cacd36cdf8b7bd5eaf06df00034214ddcf | 06c11e12eb9ddbf3f8b352efc6fed4721555ecf6 | refs/heads/master | 2021-02-11T00:47:52.531330 | 2020-02-28T23:03:21 | 2020-02-28T23:06:11 | 244,434,965 | 2 | 0 | NOASSERTION | 2020-03-02T17:41:05 | 2020-03-02T17:41:04 | null | UTF-8 | Python | false | false | 6,465 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Optional, Tuple
import torch
import torch.nn as nn
import torch.onnx
from pytext.config import ConfigBase
from pytext.utils import cuda
from pytext.utils.usage import log_class_usage
from torch.nn.utils.rnn... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8af9fa88d0898ada6c762ed02c15388cf867c3f9 | e61e725d9a962837e2b56f84e3934b0fb52dd0b1 | /eoxserver/core/decoders/kvp.py | e8dfa6aa753451cb4002a5327a8805e30c22da58 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | ESA-VirES/eoxserver | 719731172c2e5778186a4b144a201f602c07ce7e | d7b65adf9317538b267d5cbb1281acb72bc0de2c | refs/heads/master | 2021-01-21T20:06:22.164030 | 2014-10-14T12:21:13 | 2014-10-14T12:21:13 | 25,151,203 | 1 | 0 | null | 2014-12-04T09:46:54 | 2014-10-13T09:00:54 | Python | UTF-8 | Python | false | false | 3,405 | py | #-------------------------------------------------------------------------------
# $Id$
#
# Project: EOxServer <http://eoxserver.org>
# Authors: Fabian Schindler <fabian.schindler@eox.at>
#
#-------------------------------------------------------------------------------
# Copyright (C) 2013 EOX IT Services GmbH
#
# Per... | [
"fabian.schindler@gmx.at"
] | fabian.schindler@gmx.at |
9a9db610e6b69d7c717c6efb97000b1744385b62 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /Array/Q1409_Queries on a Permutation With Key.py | a509f13f9be2dba1cdb3360e472b9834be7c3a98 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 491 | py |
# 思路: pos记录每次数字的位置
# 每次更新时,pos[q-1]为q的实际位置,位置比它小的pos+1,将其位置置为0
class Solution:
def processQueries(self, queries, m):
pos = [i for i in range(0, m)]
ans = []
for q in queries:
curpos = pos[q - 1]
ans.append(curpos)
for i, p in enumerate(pos):
... | [
"564258080@qq.com"
] | 564258080@qq.com |
7881f2e46a3dc62785502c57f332a7aa361dd5cc | 5c94e032b2d43ac347f6383d0a8f0c03ec3a0485 | /Launchpad_Pro/TargetTrackComponent.py | 31fdc1fbfd5efe0c7e257a083c91fa387bc445d6 | [] | no_license | Elton47/Ableton-MRS-10.1.13 | 997f99a51157bd2a2bd1d2dc303e76b45b1eb93d | 54bb64ba5e6be52dd6b9f87678ee3462cc224c8a | refs/heads/master | 2022-07-04T01:35:27.447979 | 2020-05-14T19:02:09 | 2020-05-14T19:02:09 | 263,990,585 | 0 | 0 | null | 2020-05-14T18:12:04 | 2020-05-14T18:12:03 | null | UTF-8 | Python | false | false | 3,081 | py | # uncompyle6 version 3.6.7
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.17 (default, Dec 23 2019, 21:25:33)
# [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)]
# Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Launchpad_P... | [
"ahmed.emerah@icloud.com"
] | ahmed.emerah@icloud.com |
f1977b359869d02dbf912eadf7a20ba9e2a36413 | d6480f551154ed1d6e32a65b972ba62c1e1eb998 | /job_test.py | 189de8064200b0b5e93f41dbd850f2cbf1176639 | [] | no_license | ToferC/scraper-Gitlawca | c8de2739878d17789baf7a0f7d139c8928f3812f | f9ec04af54faa6bf49e5be7cc953d152fce926b1 | refs/heads/master | 2021-01-10T15:17:18.242633 | 2017-06-27T17:32:26 | 2017-06-27T17:32:26 | 49,247,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | import requests as requests
from bs4 import BeautifulSoup
title = ""
paragraphs = []
def parse_job(url):
# Parse job html and collect links, adding them to list in the job dict
html = requests.get(url, headers={'User-Agent': 'Mozilla/5.0'})
soup = BeautifulSoup(html.text, 'html.parser')
title = ... | [
"cgeist7@gmail.com"
] | cgeist7@gmail.com |
331d183f37714c6bc90433cbfacca2e0ac19f44f | 35979ed5415386a78c4b7a73e716e71e9bd86ac1 | /process_kitti.py | ec61c6e18784c94b07cab606ba43ad06e574d0b1 | [
"MIT"
] | permissive | smalgireddy/dusty-gan | 6a082995b467bae5f27a6103fb1e061890e5f30e | 63ea1757660806cd04976b24fc7733ab26b2a3a1 | refs/heads/main | 2023-07-01T18:43:04.665186 | 2021-08-02T07:04:29 | 2021-08-02T07:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,348 | py | import argparse
import multiprocessing
import os
import os.path as osp
from collections import defaultdict
from glob import glob
import joblib
import matplotlib.cm as cm
import numba
import numpy as np
import torch
from PIL import Image
from tqdm import tqdm
from datasets.kitti import KITTIOdometry
# support semanti... | [
"k_nakashima@irvs.ait.kyushu-u.ac.jp"
] | k_nakashima@irvs.ait.kyushu-u.ac.jp |
8bae87a094d5add07026dc0f8af0ba689bc86f0b | 20a9787564f76ae0fcf2332a8655b21bae0646a3 | /Lists/findClosest.py | 2995f497eeeb966e539567e05bd353bed2675c67 | [] | no_license | nidhiatwork/Python_Coding_Practice | 3b33a40c947413c2695d3ee77728fa69430f14cd | 9d5071a8ddcda19181d3db029fb801d4e3233382 | refs/heads/master | 2023-02-08T20:50:47.522565 | 2023-02-04T10:04:10 | 2023-02-04T10:04:10 | 194,607,759 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | '''
Find three closest elements from given three sorted arrays
Given three sorted arrays A[], B[] and C[], find 3 elements i, j and k from A, B and C respectively such that max(abs(A[i] – B[j]), abs(B[j] – C[k]), abs(C[k] – A[i])) is minimized. Here abs() indicates absolute value.
Input: A[] = {1, 4, 10}
B[... | [
"“nidhi.bhushan123@gmail.com”"
] | “nidhi.bhushan123@gmail.com” |
40ac71dbc346a1e413eba935c0883f7f30392c9c | bb6ebff7a7f6140903d37905c350954ff6599091 | /third_party/WebKit/Source/wtf/wtf.gyp | 7706bdd0535c65bf32ed076a8e28c5f9dae37cca | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 5,564 | gyp | # Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
05754d7839302ac6bb99ee3838a45024a6e77e0f | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/enums/types/budget_campaign_association_status.py | 26ee58e892b500dbd79115577df8ce2c5844f71e | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
4ec54415712d40c9fde42055d4b35b1695da1b5b | 05f99d380ca5dd0764c6ebdc2e45efe91105fd57 | /src/htsql/core/cmd/embed.py | b963322b407053f390e5f57de7e80b1ee32e1c9b | [
"Apache-2.0"
] | permissive | prometheusresearch/htsql | d2ce07c9e6b5071f6b5684a84e374cb32075bbe8 | fd2dc19d145508d956ba50970abc76e7299669b0 | refs/heads/master | 2020-12-26T11:20:04.593639 | 2020-08-11T18:04:14 | 2020-08-11T18:04:14 | 237,492,309 | 21 | 3 | Apache-2.0 | 2020-02-13T14:15:00 | 2020-01-31T18:32:56 | Python | UTF-8 | Python | false | false | 4,206 | py | #
# Copyright (c) 2006-2013, Prometheus Research, LLC
#
from ..util import isfinite, to_name
from ..adapter import Adapter, adapt, adapt_many
from ..domain import (UntypedDomain, BooleanDomain, IntegerDomain, FloatDomain,
DecimalDomain, DateDomain, TimeDomain, DateTimeDomain, ListDomain,
IdentityDomai... | [
"xi@resolvent.net"
] | xi@resolvent.net |
d5da7125d3e25d62b08ca3d56cd9f177d3c46418 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayEcoMycarMaintainAftersaleSyncRequest.py | d0ba0166b615623f68f1e4eefa1377121c33b32a | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 4,010 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayEcoMycarMaintainAftersaleSyncModel import AlipayEcoMycarMaintainAftersaleSyncModel
class AlipayEcoMycarMaintainAftersaleSyncRe... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.