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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5f782d0e836f8b937f8807e14096b0de58bfc9d | 625f2f86f2b2e07cb35204d9b3232427bf462a09 | /data/HIRun2017XeXe/HIMinimumBias8_XeXeRun2017_13Dec2017_v1/crabConfig.py | a76697fdc398c13f30d11cc6b40845df50ba5548 | [] | no_license | ttrk/production | abb84c423a076fd9966276b7ed4350936c755e0b | f8a64c9c38de215802799365f0f7a99e1ee78276 | refs/heads/master | 2023-02-08T23:48:56.355141 | 2023-01-26T08:46:22 | 2023-01-26T08:46:22 | 52,877,406 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_('General')
config.General.requestName = 'HIMinimumBias8_XeXeRun2017_13Dec2017_v1'
config.General.transferLogs = False
config.section_('JobType')
config.JobType.pluginName = 'Analysis'
config.JobType.psetName = 'runForestAOD_XeXe_... | [
"tatark@mit.edu"
] | tatark@mit.edu |
12871556a0e36bbd57a48656d63a5f2ddf1e7148 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02971/s422675559.py | 7dd04b9ba5d06549a8b4edc20b71a6777dca8037 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | N = int(input())
A = []
dicA = {}
for i in range(N):
tmp = int(input())
dicA[tmp] = dicA.get(tmp, 0) + 1
A.append(tmp)
sortA = sorted(dicA.items(), key=lambda x: x[0], reverse=True)
for ai in A:
if ai != sortA[0][0] or sortA[0][1] != 1:
print(sortA[0][0])
else:
print(sortA[1][0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7eaf49d148aa58027caa28f31e6e76f17a0ff2b6 | 9047aec2400933376e71fdc24d087d2ad35b4d45 | /backspaceCompare_844.py | f6c3023e89203770ef31770cbe358b34b2512ed7 | [] | no_license | sasankyadavalli/leetcode | a8c3a4b63970cfa67a8bbec5d1fb7cca818f7ea9 | 555931bc5a74e0031726070be90c945da9cb3251 | refs/heads/master | 2021-02-07T12:12:06.938562 | 2020-07-28T18:25:10 | 2020-07-28T18:25:10 | 244,024,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | class Solution:
def backspaceCompare(self, S: str, T: str) -> bool:
stack1 = []
stack2 = []
for ele in S:
if ele is not '#':
stack1.append(ele)
elif ele is '#' and len(stack1) != 0:
stack1.pop()
for ele in T:
... | [
"yadavallisasank@gmail.com"
] | yadavallisasank@gmail.com |
dad411bffc16500070001c574f41de71acd9b11e | 52243c4a05a296e7c042663b5942faa47eb66aee | /server_cherrypy/api_active_learning.py | 97ca910b59a5b7f5e5c030ac4f496a49c7460aa1 | [
"MIT"
] | permissive | joaoppadua/Pesquisas | fbe0311b59340c041732d6d1f7f4862fa6c53198 | 808d8b0ef9e432e05a4f284ce18778ed8b3acd96 | refs/heads/master | 2023-07-16T02:50:30.846205 | 2021-09-03T13:34:54 | 2021-09-03T13:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | import cherrypy, json, pymongo, sys, os
from os.path import abspath
from jinja2 import Environment, FileSystemLoader
from mongoURI import mongoURI
sys.path.append(os.path.dirname(os.path.dirname(os.getcwd())))
from pesquisas.common.active_learning_logreg import active_learning_logreg
env = Environment(loader=FileSyst... | [
"danilopcarlotti@gmail.com"
] | danilopcarlotti@gmail.com |
0b122455553b1d5c0614d0183858f920694f6dc5 | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/learn_python_dm2039/ch30/ch30_20.py | f11c7b32c43ba44bccbacd5ec9de108cb47809c9 | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # ch30_20.py
import threading
class MyThread(threading.Thread): # 這是threading.Thread的子類別
def __init__(self):
threading.Thread.__init__(self) # 建立執行緒
def run(self): # 定義執行緒的工作
print(threading.Thread.getName(self))
print("Happy Python")
... | [
"terranandes@gmail.com"
] | terranandes@gmail.com |
1e862a1482bac70c31b292f846c297325b4e6e92 | fa124fdbf36327bf8e74bbc7f00ce448c1e7939a | /src/com/rwanda/mch/exception/unknown_record_error.py | 4081f209728b76a9337837f854d44302c81d785f | [] | no_license | pivotaccess2007/mch | 039f17cdb16b434c0a25504cc81b7db81e5da988 | 523d1cd706296744e17e85683b5dbedbc05dd9e6 | refs/heads/master | 2020-03-30T16:33:44.451275 | 2018-10-03T13:23:00 | 2018-10-03T13:23:00 | 151,414,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
##
##
## @author UWANTWALI ZIGAMA Didier
## d.zigama@pivotaccess.com/zigdidier@gmail.com
##
__author__="Zigama Didier"
__date__ ="$Nov 22, 2017 1:29:30 PM$"
class UnknownRecordError(Exception):
def __init__(self, params):
self.params = params
| [
"zigdidier@gmail.com"
] | zigdidier@gmail.com |
d1cb31e3e17e1f1df6732515909cc08bde3cae71 | 624561e652e2879f34eb82c017e9ccaaa6d05eb2 | /kaggregate/decorators.py | 17deff00beebaa83508adff50758509ac06dd465 | [
"BSD-2-Clause"
] | permissive | kaleidos/django-kaggregate | 2a4b3fc61710f91e7494a24f5e0f5df0c3816844 | 99483657f1e0c9753a74190d23b96518de69dda7 | refs/heads/master | 2021-01-01T05:49:17.085576 | 2012-04-15T21:02:17 | 2012-04-15T21:02:17 | 3,824,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # -*- coding: utf-8 -*-
import functools
def as_map_reduce(key):
def _wrapper(method):
method._kaggregator_mode = 'map-reduce'
method._kaggregator_key = key
return method
return _wrapper
def as_django_aggregator(key):
def _wrapper(method):
method._kaggregator_mode = 'djang... | [
"niwi@niwi.be"
] | niwi@niwi.be |
75419ffc09accdf0f019f59d0aa96a351eae269c | 4e808ecca7a94a70a63c59b4c91a15cd61bada6e | /natuurpunt_imp_members/__openerp__.py | 221b109ac4860426ef44dae4d8e49d5516107f55 | [] | no_license | smart-solution/natuurpunt-crm | 79b98cfc8c69027dc82afa3779b65616141e6779 | 0bd247e78c01e79ec54b90c0d0bcaca38742f04d | refs/heads/master | 2021-05-22T05:43:42.913854 | 2020-12-02T08:06:05 | 2020-12-02T08:06:05 | 39,186,027 | 0 | 0 | null | 2020-12-02T08:06:06 | 2015-07-16T08:36:27 | Python | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
##############################################################################
#
#
##############################################################################
{
"name" : "natuurpunt_imp_members",
"version" : "1.0",
"author" : "SmartSolution",
... | [
"fabian.semal@smartsolution.be"
] | fabian.semal@smartsolution.be |
c3cb985f31bdc8125c74e56602410d093f515f33 | 8da9c672aeb0a006344a452a817163b9e46c2a1c | /code/check_order_events.py | 575df372212a7e5f66c1553d172a06440926f1dd | [] | no_license | tuandnvn/ttk | 2d200218645dc84df8aebb236381191da1177a8d | 72b57f34f194bbb3049a6f3c879580b8a5755c7f | refs/heads/master | 2021-04-07T07:25:04.780157 | 2018-03-15T00:39:14 | 2018-03-15T00:39:14 | 125,291,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | from library.relation import get_standard
from library.classifier.classifier_ordering_loader import ClassifierRuleDictionary as crd
from docmodel.xml_parser import Parser
from docmodel.xml_parser import XmlDocElement, XmlDocument
from nltk.corpus import wordnet as wn
def check_event_pair_in_doc(file):
xmldoc = Par... | [
"tuandn@brandeis.edu"
] | tuandn@brandeis.edu |
9b511b109badfe42c94de954f51dacc59cae4098 | 73e407516c4241ddffd568b31d16e1e66de811ee | /apps/users/migrations/0002_auto_20180130_2131.py | 2ab46f7428a5a0e9584ba090e16c657746265399 | [] | no_license | lannyMa/mxonline | 0eed4a974bf2972c7a1ca71a90e50a6fd35f06a1 | 98b08fb14e51cd3b46b7139650141ee11ca65c0c | refs/heads/master | 2021-05-09T08:33:22.011712 | 2018-02-07T13:47:16 | 2018-02-07T13:47:16 | 119,395,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # Generated by Django 2.0 on 2018-01-30 21:31
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='emailverifyrecord',
name=... | [
"iher@foxmail.com"
] | iher@foxmail.com |
fdd84a307f4c9c33968065e4f6dc85b44b78a86c | 43f01f6538335e335177de2267c888906a7dbf1c | /shop/migrations/0001_initial.py | 307ac1bb8944508e2a7fe7a223c769aad13e661d | [] | no_license | Chiefautoparts/equipmentRental | bb5f2b0db1588a9372e96cc20b7e8bcfd8fb73c9 | bba249af27bbbc67e8e5d50c7169dcb801a4b314 | refs/heads/master | 2020-02-20T06:57:57.201816 | 2018-03-23T03:08:11 | 2018-03-23T03:08:11 | 126,425,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(aut... | [
"chiefautoparts@outlook.com"
] | chiefautoparts@outlook.com |
2e6a4295cb536526c49bdfa7f37aa6c5d929331e | f0e40f956405d4f5535ec14202580b4b6a192d35 | /i3/py3status/wifi.py | 525c7589403d3e53dcb2401958ea71a2f02827cf | [] | no_license | devmarcstorm/dotfiles | aa63ac7b41fb4be3d5be61cf988a59e99fe8649d | 74fbecf6c6c11ee31e5145ddf9c2f1d8ab77b156 | refs/heads/master | 2020-09-13T08:43:30.540463 | 2019-10-02T18:11:08 | 2019-10-02T18:11:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | # -*- coding: utf-8 -*-
"""
Display wifi information and onclick notifications with more info
@author rixx
"""
import fcntl
import socket
import struct
import subprocess
from time import time
class Py3status:
# available configuration parameters
cache_timeout = 60
ssid_cmd = 'netctl-auto current'
h... | [
"r@rixx.de"
] | r@rixx.de |
834bf43617c4670f1c534f430f9945cfbefff3a9 | 47722a7d90ba237bb7eb87bd0066ac5701c6cdf4 | /src/pymon.py | cc005866e0dd050182b44ed3b3318897c47872d7 | [] | no_license | didw/openapi_w | 3b28cb2ac6bae5ea79d6eb5111871010ebf3a636 | 21ed07800ff0dcb1f53d1415f252842f734abcae | refs/heads/master | 2021-09-04T13:23:01.071611 | 2018-01-19T05:19:34 | 2018-01-19T05:19:34 | 112,623,369 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,060 | py | import sys
from PyQt5.QtCore import Qt, QTimer, QTime
from PyQt5 import uic
from PyQt5.QtWidgets import *
import test_kiwoom
import pandas as pd
import time
import datetime
import webreader
MARKET_KOSPI = 0
MARKET_KOSDAK = 10
class PyMon:
def __init__(self):
self.kiwoom = test_kiwoom.Kiwoom()
s... | [
"yangjy0113@gmail.com"
] | yangjy0113@gmail.com |
d03422b7d92716ff0306c439bdb206c762480b5a | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /1201-1300/1299/1299_Python_1.py | 1eb51ea5b0a0337c27da4b1396473de3c50fbd56 | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from typing import List
class Solution:
def replaceElements(self, arr: List[int]) -> List[int]:
now = -1
for i in range(len(arr) - 1, -1, -1):
arr[i], now = now, max(now, arr[i])
return arr
if __name__ == "__main__":
print(Solution().replaceElements([17, 18, 5, 4, 6, 1]))... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
c4525512f529cd7c447e0ef3b92e8347f00d33c9 | 2ed82968a60f7b2ef7ca70ff000e2098a853de75 | /recipe budget mybank billing/Mybank/bank/models.py | 304661edc24824287e3573b8a08d67f2f98460a1 | [] | no_license | mariachacko93/DjangoProjectsFull | 9d4fd79b51166fe10d322757dbba96feb68fdde1 | 5c4dbd142a553b761e660e237a40572d610b97cc | refs/heads/master | 2023-02-28T01:57:25.578004 | 2021-02-04T10:05:34 | 2021-02-04T10:05:34 | 335,884,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.db import models
# Create your models here.
class createAccount(models.Model):
personname=models.CharField(max_length=120)
accno=models.IntegerField()
acctype=models.CharField(max_length=120)
balance=models.IntegerField(default=3000)
mpin=models.IntegerField()
def __str__(self):
... | [
"mariachacko93@gmail.com"
] | mariachacko93@gmail.com |
ae23442f004fb33ad4c2e966166e53c39ebf7cfe | d47b9cf613fa78abdf40fa1ecb5d243c8864c104 | /eventsfinder/ajax.py | df97adbbebdf8784019f6ee5576d46164d46f2e1 | [
"BSD-2-Clause"
] | permissive | nikolas-k/eventsfinder | 6e5c4149aca14e85497eb1747abbe38157d1c5f2 | c2e4b46609ff8456062a4dd140d230f8c92144c1 | refs/heads/master | 2021-01-12T21:05:26.685780 | 2014-01-04T17:04:16 | 2014-01-04T17:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | from django.views.decorators.http import require_POST
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
import json
from eventsfinder.models import Event, Attendee, Staff
from django.contrib.auth.models import User
@login_required
@require_POST
def attend_event(request):
... | [
"axsauze@gmail.com"
] | axsauze@gmail.com |
fd631383090680e884041d338cb06134d89ae326 | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /runway/cfngin/hooks/docker/image/_push.py | 946ecc07d129f4e81c63b48852c59654f673bf46 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 4,739 | py | """Docker image push hook.
Replicates the functionality of the ``docker image push`` CLI command.
.. rubric:: Hook Path
``runway.cfngin.hooks.docker.image.push``
.. rubric:: Args
ecr_repo (Optional[Dict[str, Optional[str]]])
Information describing an ECR repository. This is used to construct the repository URL... | [
"noreply@github.com"
] | troyready.noreply@github.com |
df5e4860e9dc15d7a39ae92743dc942bc415802c | e6195dde6db1113597d404978a581e6a66f6af45 | /EduRnd100D2/A.py | 5c30429153c1dfde094a8e4d57c9a90d905dac55 | [] | no_license | chasecolford/Codeforces | e6e43dc1721f9e05b7f593a6fd66776ecc4fa8ce | 5995622411861d6e2f1fcdb14f15db3602aa571f | refs/heads/main | 2023-02-03T17:25:31.865386 | 2020-12-23T17:12:49 | 2020-12-23T17:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import itertools as iter
import collections as col
import hashlib as hash
import math
import json
import re
import os
import sys
def main():
lines = [x.strip() for x in sys.stdin.readlines()]
lines = lines[1:]
for line in lines:
line = [int(x) for x in line.split()]
summy = sum(line)
... | [
"56804717+ChaseSinify@users.noreply.github.com"
] | 56804717+ChaseSinify@users.noreply.github.com |
40e466ac3e749b0a8d69c51f57018cd80b9918f9 | 12362aa3c315e2b72ed29193ee24e3fd7f1a57db | /LeetCode/0329-Longest Increasing Path in a Matrix/main.py | 57544dc82de4a956de4547a7fa5b61540c75074e | [] | no_license | PRKKILLER/Algorithm_Practice | f2f4662352516965777605ccf116dd7945c4b94a | 73654b6567fdb282af84a868608929be234075c5 | refs/heads/master | 2023-07-03T23:24:15.081892 | 2021-08-09T03:55:12 | 2021-08-09T03:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | """
Given an integer matrix, find the length of the longest increasing path.
From each cell, you can either move to four directions: left, right, up or down.
You may NOT move diagonally or move outside of the boundary (i.e. wrap-around is not allowed).
Example 1:
Input: nums =
[
[9,9,4],
[6,6,8],
[2,1,1]
]... | [
"dw6000@163.com"
] | dw6000@163.com |
5efdcb3014711ca88ac71738a02d79f27e0f0f8a | 4cd84151bb3bec1dd4160e6b6220ec1a84dcc5ba | /classes.py | 89b6e4115d94e67e75fad8d0dc2364a9d71e3dba | [] | no_license | conroy-group/yfsps | b0246044b5ad47fa6635f201c460b535bce241b2 | bee3a2f5cd0c554f7eed8e1240152cea27f03ee1 | refs/heads/master | 2020-04-11T13:59:19.166167 | 2018-12-14T20:49:38 | 2018-12-14T20:49:38 | 161,837,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py |
class SSPGen(object):
def __init__(self):
pass
class CSPGen(object):
def __init__(self, wave, ssp_fluxes, ssp_grid):
self.ssp_ages, self.ssp_feh, self.ssp_afe = ssp_grid
self.wave = wave
self.eline_wavelength = None
self.ssp_fluxes = ssp_fluxes # Nssp x Nwave
... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
bbc45ec7a148319470784f7f0b57cb0df56a3b49 | 1ffc17893d9e15fd939628bbc41c3d2633713ebd | /docs/tests/test_utils_benchmark.py | dbfa979ef34b9756e7e72364f14161d8b0e593a5 | [
"Apache-2.0"
] | permissive | xadupre/sklearn-onnx | 646e8a158cdded725064964494f0f8a760630aa8 | b05e4864cedbf4f2a9e6c003781d1db8b53264ac | refs/heads/master | 2023-09-01T15:58:38.112315 | 2022-12-21T01:59:45 | 2022-12-21T01:59:45 | 382,323,831 | 0 | 2 | Apache-2.0 | 2023-01-04T13:41:33 | 2021-07-02T11:22:00 | Python | UTF-8 | Python | false | false | 774 | py | # SPDX-License-Identifier: Apache-2.0
"""
@brief test log(time=3s)
"""
import unittest
import numpy
from skl2onnx.tutorial import measure_time
class TestMeasureTime(unittest.TestCase):
def test_vector_count(self):
def fct():
X = numpy.ones((1000, 5))
return X
res = ... | [
"noreply@github.com"
] | xadupre.noreply@github.com |
b808d6a898bf57319977f7481a13e14f20b16780 | d193a2472c232306149d69c04ebfaba910c31077 | /PythonZTM/oop_cs_employee_variables.py | a29d6e9a7fb16dab709b33add178b5a6d0158a13 | [] | no_license | eloghin/Python-courses | d244a3f3bfcaef9d924dc1049ffd94de2d30e01e | 3f2ad34136623c2abce01e4a88b09b8869d26163 | refs/heads/main | 2023-03-28T14:28:34.869866 | 2021-03-29T06:42:18 | 2021-03-29T06:42:18 | 310,083,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # class setup with __init__
class Employee:
# class variables/attributes:
raise_amount = 1.04
num_of_employees = 0
def __init__(self, first_name, last_name, pay):
# instance variables/attributes:
self.first_name = first_name
self.last_name = last_name
self.pay = pay
self.email = first_name + '.' + last_n... | [
"contact@elenaloghin.ro"
] | contact@elenaloghin.ro |
2efe04ee76ebd819253e8b50b20680a8bff8cd84 | a10b92034d6486f9c54f163bf6837ef4587763df | /scripts/export_test_splits.py | 401a881843f99c068520724f49ade5a533aeee06 | [
"MIT"
] | permissive | eghbalhosseini/lm_perplexity | a05732c63bbd35d92bc6302123b6d3bd255d541f | 24c5a04beb2f073b2230c7c7420bd1ec7776f513 | refs/heads/main | 2023-03-19T14:43:43.748853 | 2021-03-05T23:48:37 | 2021-03-05T23:48:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | import argparse
from collections import Counter
from tqdm import auto as tqdm_lib
import requests
import os
import json
import gzip
from best_download import download_file
from lm_dataformat import Reader, Archive
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--output_dir', requir... | [
"email@jasonphang.com"
] | email@jasonphang.com |
6391dbd8c4ab32148400220889975652d6ea970d | 625c7fa3222232443e91300d62b62d25fcfe491a | /main/model/word.py | f35ed0030a15f87284f584a8fa5d0de4dffef793 | [
"MIT"
] | permissive | sotheara-leang/xFlask | 0a8d28fa2cdab393d71c5ff18a84331c0fb12ddc | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | refs/heads/master | 2021-01-02T06:37:21.752339 | 2020-06-20T02:45:34 | 2020-06-20T02:45:34 | 239,531,603 | 2 | 0 | MIT | 2020-06-20T02:46:30 | 2020-02-10T14:29:16 | Python | UTF-8 | Python | false | false | 332 | py | from xflask.sqlalchemy import Column, relationship
from xflask.sqlalchemy import Integer, String
from xflask.sqlalchemy.model import Model
class Word(Model):
id = Column(Integer, primary_key=True)
word = Column(String(50))
docs = relationship('Document', secondary='document_word',... | [
"leangsotheara@gmail.com"
] | leangsotheara@gmail.com |
383579a1a998e718b8ec4fcb34eba1949b834581 | a3a6eeb340735664c863952bf3c1e3070e61d987 | /_py2tmp/optimize_ir3.py | 1b6e1328465ef2cdec681edf63b338e65bdf8ab8 | [
"Apache-2.0"
] | permissive | DalavanCloud/tmppy | dab593789d6e1ae6a3b25db6c4b41ce4fcfb378c | cdde676ba9d5011b7d2a46a9852e5986b90edbbc | refs/heads/master | 2020-03-27T19:55:42.295263 | 2018-09-01T18:13:21 | 2018-09-01T18:13:21 | 147,021,787 | 1 | 0 | Apache-2.0 | 2018-09-01T18:14:23 | 2018-09-01T18:14:23 | null | UTF-8 | Python | false | false | 5,556 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"poletti.marco@gmail.com"
] | poletti.marco@gmail.com |
11b84a96b1e989f59c01cb1e50ed26fc75a1c892 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_106/ch31_2020_07_24_03_09_48_007984.py | fb32201e90e5bcb5dc7c5110dabfc9441b413c77 | [] | 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 | 254 | py | def eh_primo(n):
if n < 2:
return False
elif n==2:
return True
elif n%2==0:
return False
else:
i=3
while i<n:
if n%i==0:
return False
i+=2
return True | [
"you@example.com"
] | you@example.com |
24185aaff4d8922350b8b8c20f96cf7eade2e680 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/network/onyx/onyx.py | d537e048b9865db661965f5e99f57ce572658931 | [
"MIT",
"GPL-3.0-only",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 7,437 | py | # -*- coding: utf-8 -*-
#
# (c) 2017, Ansible by Red Hat, inc
#
# This file is part of Ansible by Red Hat
#
# Ansible 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 Foundation, either version 3 of the License, or
# (at y... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
65c0df7301baf3fd49612d23b32c78370d56e16b | f707303e4dfe383cf82c23a6bb42ccfdc4cfdb67 | /pandas-quant-data-provider/pandas_quant_data_provider_test/data_provider/test__yfinance.py | db5f9723526185060aab01287a8f9d6fb8168d82 | [
"MIT"
] | permissive | jcoffi/pandas-ml-quant | 1830ec256f8c09c04f1aa77e2eecfba07d34fe68 | 650a8e8f77bc4d71136518d1c7ee65c194a99cf0 | refs/heads/master | 2023-08-31T06:45:38.060737 | 2021-09-09T04:44:35 | 2021-09-09T04:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from unittest import TestCase
from datetime import datetime
import pandas as pd
import pandas_quant_data_provider as dp
class TestYFinance(TestCase):
def test_simple_download(self):
df = dp.fetch("APPS")
self.assertGreater(len(df), 1)
self.assertNotIsInstance(df.columns, pd.MultiIndex)... | [
"kic@kic.kic"
] | kic@kic.kic |
afde146aa9ee1b9e20a0a626accf7c3bfa4aa5fe | fe7c897aa034d73281224e38dc5fdbe7a360d8e0 | /cs459_2/week06_orm/myproject/myapp/models.py | 6d3b19cb8cdabc0780e4700d8975fcff2d759301 | [
"BSD-3-Clause"
] | permissive | wasit7/2020 | 487592fa3b8d0351dfcf432207bfce8ded0db996 | 5fe6d41c1a5957bf240f9094d9b7c0f108835142 | refs/heads/master | 2023-05-15T00:47:52.309036 | 2021-04-30T04:46:08 | 2021-04-30T04:46:08 | 235,760,846 | 0 | 3 | BSD-3-Clause | 2022-06-22T01:39:10 | 2020-01-23T09:19:44 | Jupyter Notebook | UTF-8 | Python | false | false | 997 | py | from django.db import models
# Create your models here.
class Bike(models.Model):
start=models.DateField(auto_now=False, auto_now_add=True)
type=models.CharField(max_length=10)
price=models.DecimalField( max_digits=8, decimal_places=2)
def __str__(self):
return "bike_%s %s"%(self.id, self.type... | [
"wasit7@gmail.com"
] | wasit7@gmail.com |
61d2e7a48c7da7254694bab7f217ea1627b12718 | edc1c404069441a8cb67ca90bf78985d24e7262d | /video/admin.py | 36763879e0898a78fe5cf5e4c8d7bbde9064aaf0 | [] | no_license | jsparmani/AndromediaProductionsRemake | 98b6ac26a2080b7c1cc654ed4636089e816b9ef5 | 10ee43dd6785c458100bdb41702927744551fd0d | refs/heads/master | 2022-02-20T20:11:01.095443 | 2019-10-06T18:52:26 | 2019-10-06T18:52:26 | 212,735,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,208 | py | from django.contrib import admin
from . import models
from apiclient.discovery import build
from django.contrib import messages
api_key = "AIzaSyDahUDOnXFAW0jlIC-gIc1cKt_tLlOXzf4"
class PlaylistAdmin(admin.ModelAdmin):
fieldsets = (
(None, {
"fields": (
'name', 'playlist_id'
... | [
"jsparmani@gmail.com"
] | jsparmani@gmail.com |
57dbde9dc8ad0c6e3250b9e330788f193600672a | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_classification.py | a08b0246147c3590b599a7ad05b42db219fc4820 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 3,332 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
2d868583f63376842e1cd553b872f76f6f8c7f87 | 06e5f427067574b5be79e8a0a260db8ee3b5f744 | /tests/testpadpt.py | bfcf914003a82983e73fa645d57d3c953567ce0a | [
"MIT"
] | permissive | wotsushi/padpt | 655e5b94f749f5dc3db0311fa92e642897c650cc | 177328d9d18d5b68615b96b5fe6c562bac01df2e | refs/heads/master | 2021-01-12T16:52:38.059089 | 2016-11-12T14:53:27 | 2016-11-12T14:53:27 | 71,460,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,381 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import os
import io
import shutil
import warnings
import unittest
import urllib.error
from unittest.mock import patch
from PIL import Image
from padpt import padpt
class TestPadPT(unittest.TestCase):
def setUp(self):
if os.path.exists('tests/tm... | [
"wotsushi@gmail.com"
] | wotsushi@gmail.com |
77455691a116df7a97fb3c60162a302cf25cdbcd | 7bb9bd2bdadef1590b2ef7ff309e08abf454e49d | /Curso em Vídeo/4-DataNascimento.py | 8a9ea4b93b275e7badf7c86dd7569ae1d8b7eeea | [] | no_license | ALREstevam/Curso-de-Python-e-Programacao-com-Python | afdf12717a710f20d4513d5df375ba63ba1e1c19 | af6227376736e63810e5979be54eb1c433d669ac | refs/heads/master | 2021-09-07T12:11:17.158298 | 2018-02-22T17:47:19 | 2018-02-22T17:47:19 | 87,453,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #Entrada e saídade dados
dia = input('Dia: ')
mes = input('Mes: ')
ano = input('Ano: ')
print('Você nasceu no dia',dia,'de',mes,'de',ano,'Não é?')
| [
"a166348@g.unicamp.com"
] | a166348@g.unicamp.com |
3dcd089d6a30ae78f2869354ef2c95deab75e4d4 | ec0ea8854d9a04967fe8d7794454f76946a8252e | /migrations/versions/7c6b878897a6_initial_migration.py | 23dc013e61e45de6239e827e0dd76e12b45470bf | [] | no_license | alinzel/Blog_flask | 3ae3f4d6e8bfd48e67ffddf2040c37f86d8756f7 | 47f50cb409f78d5a45144a8f2d134982dc03e383 | refs/heads/master | 2020-03-07T22:38:11.537557 | 2018-04-02T13:30:55 | 2018-04-02T13:30:55 | 127,759,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | """initial migration
Revision ID: 7c6b878897a6
Revises:
Create Date: 2018-03-16 03:39:18.455855
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7c6b878897a6'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"944951481@qq.com"
] | 944951481@qq.com |
ee319cd6d901830a3b33ecf66eb0941f348ecb2e | e0527bce5c53a196752d3a16adf50cb60754de5f | /02-Workshop/Workshop-Questions/6_pollock.py | b27d6fead14feaff42588a9ffef6d02b37a30352 | [] | no_license | ARWA-ALraddadi/python-tutorial-for-beginners | ddeb657f419fbc176bea273bc9fb6b88d1894191 | 21cedfc47871ca4d25c2382464c60ab0a2121205 | refs/heads/master | 2023-06-30T20:24:30.688800 | 2021-08-08T08:22:29 | 2021-08-08T08:22:29 | 193,094,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | ## Jackson Pollock's Final Masterpiece
##
## 20th century "artists" such as Jackson Pollock achieved fame
## by stumbling drunkenly around a canvas on the floor
## dribbling paint out of tins. (We're not being rude - he openly
## admitted to being drunk when creating his paintings.) However,
## today we can... | [
"noreply@github.com"
] | ARWA-ALraddadi.noreply@github.com |
3b2bfe90e1713e4a3c44becca9465e02d8b99ecc | 53ccc4f5198d10102c8032e83f9af25244b179cf | /SoftUni Lessons/Python Development/Python Fundamentals September 2019/Problems And Files/05 EX. B. SYNTAX, CONDITIONAL STATE. AND LOOPS - Дата 20-ти септември, 1430 - 1730/More Exercises/02. Find The Capitals.py | 7eeea2620bed701edeaa70159043400ad4480ba4 | [] | no_license | SimeonTsvetanov/Coding-Lessons | aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d | 8f70e54b5f95911d0bdbfda7d03940cb824dcd68 | refs/heads/master | 2023-06-09T21:29:17.790775 | 2023-05-24T22:58:48 | 2023-05-24T22:58:48 | 221,786,441 | 13 | 6 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | """
Basic Syntax, Conditional Statements and Loops - Exercise
Check your code: https://judge.softuni.bg/Contests/Practice/Index/1720#1
Video: https://www.youtube.com/watch?time_continue=4&v=7sHE4HEUqi8
SUPyF2 Basic Exercise More - 02. Find The Capitals
Problem:
Write a program that takes a single string and p... | [
"noreply@github.com"
] | SimeonTsvetanov.noreply@github.com |
1ec9ba794ac9baee1df67a506f295e337a25d7fb | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ESAWnF3ySrFusHhYF_17.py | e5d41b17cbf9e0e12f8f85c729de22a0dd160c66 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py |
def edit_words(lst):
return [
''.join(add_hyphen(words)[::-1].upper())
for words in lst
]
def add_hyphen(string):
half = len(string) // 2
return string[:half] + '-' + string[half:]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d66a3005c423dd2c9ca316b67c11a1b9299da949 | 3777658387aa9e78d7c04202d7fd47d59b9e1271 | /datavisualization/candlestick.py | a58d3bacc7e90462ace43536b3decbf25c7a586e | [] | no_license | jocoder22/PythonDataScience | 709363ada65b6db61ee73c27d8be60587a74f072 | c5a9af42e41a52a7484db0732ac93b5945ade8bb | refs/heads/master | 2022-11-08T17:21:08.548942 | 2022-10-27T03:21:53 | 2022-10-27T03:21:53 | 148,178,242 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,956 | py | #!/usr/bin/env python
import numpy as np
import pandas as pd
import matplotlib.ticker as mticker
import mplfinance as mpf
import yfinance as yf
import matplotlib.pyplot as plt
import matplotlib.dates as mpdates
import finplot as fplt
import pandas_datareader as pdr
from datetime import datetime, date
# aapl = yf.downl... | [
"okigbookey@gmail.com"
] | okigbookey@gmail.com |
47cf462efc28a2d3cf998b03dac3d81ebc268a70 | 20b9e875d2701ad198635c495625b49530338b46 | /tzgx_tzxw/tzgx_tzxw/items.py | 7e80ad77f4311a154dd8ed56a02f7c78d8381e56 | [] | no_license | leading/crawler-scrapy | 816339483447fb9c59db4327e5e65e83bde383fb | 06b37be4ce34252c4f3f23b22d9b3634cac57fad | refs/heads/master | 2023-01-03T17:48:34.233613 | 2020-11-03T14:01:49 | 2020-11-03T14:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import re
from urllib import parse
from scrapy.item import Field
import scrapy
from scrapy.loader.processors import TakeFirst, MapCompose, Join
class tzgx_tzxwItem(sc... | [
"sn_baby@qq.com"
] | sn_baby@qq.com |
ef5846c17626f8661bc8939b16710bf0b4dbc461 | e8bf00dba3e81081adb37f53a0192bb0ea2ca309 | /domains/explore/problems/training/problem107_EE.py | c88780c7450b5b528861aa509adde0683f99158f | [
"BSD-3-Clause"
] | permissive | patras91/rae_release | 1e6585ee34fe7dbb117b084df982ca8a8aed6795 | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | refs/heads/master | 2023-07-13T20:09:41.762982 | 2021-08-11T17:02:58 | 2021-08-11T17:02:58 | 394,797,515 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | __author__ = 'patras'
from domain_exploreEnv import *
from timer import DURATION
from state import state, rv
DURATION.TIME = {
'survey': 5,
'monitor': 5,
'screen': 5,
'sample': 5,
'process': 5,
'fly': 3,
'deposit': 1,
'transferData': 1,
'take': 2,
'put': 2,
'move': 10,
'... | [
"patras@umd.edu"
] | patras@umd.edu |
44100cd8a56941562abc28b6cc540426d38ee2b7 | 7faec297f7dc533e883ba10e930a8b322db0069c | /src/mercury/log_service/service.py | 4f552ac953476dd9df5ca6d0987ad9a435bde444 | [
"Apache-2.0"
] | permissive | SovietPanda/mercury | 50c8bc1411a15a2c4d6f1d0373c072f034895192 | 3a6a16e5b176246f1df077df46249463e20736f2 | refs/heads/master | 2020-03-27T00:19:27.909490 | 2018-08-10T15:36:40 | 2018-08-10T15:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,947 | py | import logging
import time
from mercury.common.configuration import MercuryConfiguration
from mercury.common.exceptions import MercuryClientException
from mercury.common.mongo import get_collection, get_connection
from mercury.common.transport import SimpleRouterReqService
LOG = logging.getLogger(__name__)
MERCURY_L... | [
"jared.rodriguez@rackspace.com"
] | jared.rodriguez@rackspace.com |
01c8bff9cacd76f8143b112377aaff0552c81f94 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/174/37158/submittedfiles/triangulo.py | f7f57035688a7678ea328f2c23e7fbde5c853f11 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
import math
a = float(input('Comprimento A:'))
b = float(input('Comprimento B:'))
c = float(input('Comprimento C:'))
if a>=b>=c>0 and a<(b+c):
print('S')
if (a**2)==(b**2)+(c**2):
print ('Re')
elif (a**2)>(b**2)+(c**2):
print ('Ob')
elif (a**2)<(b**2)+(c**2):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3a42de5559607d37d3040ba6ae5a378abcc45257 | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNavSpiders/LeiGenFund.py | 61a013e9b179634dde51908a984a1dffba1e555d | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | from FundNavSpiders import GGFundNavItem
from FundNavSpiders import GGFundNavSpider
import json
from datetime import date, datetime
class LeiGenFundSpider(GGFundNavSpider):
name = 'FundNav_LeiGenFund'
sitename = '上海雷根资产'
channel = '投顾净值'
fps = [
{
'url': 'http://m.reganfund.com/we... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
18b2aa782fb799a67516b52b792295ede0f6227a | 4a020c0a492d931f7da5c452c9569fba06703686 | /testing/web-platform/tests/tools/wptserve/wptserve/constants.py | a5a2f76445b270513df3377699efbbf93a7fe34c | [
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rbernon/wine-gecko | 353173511a790127ffa2ad39d630b8a0dcbbf5bf | 550ad9eac229b769992f421ce9492ca46edabaa0 | refs/heads/master | 2023-08-06T21:25:26.836672 | 2020-11-30T12:47:56 | 2021-09-30T08:14:19 | 411,965,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | from . import utils
content_types = utils.invert_dict({"text/html": ["htm", "html"],
"application/json": ["json"],
"application/xhtml+xml": ["xht", "xhtm", "xhtml"],
"application/xml": ["xml"],
... | [
"rbernon@codeweavers.com"
] | rbernon@codeweavers.com |
7034296f573c9cad883dc4d3d04c799c7699ccb5 | 4a1a3375b24a44be6c2926eb3dd2c18d8c23ebf9 | /test/nn/test_utils.py | af0081ccf4dd7233202326e6342a33311ea0286a | [
"MIT"
] | permissive | sufeidechabei/pytorch_geometric | a4a48339f4f115bee2973bb49ead71ee595d7ed3 | 3b478b2f9721f35cd1c93f7f8592691ad8f8a54d | refs/heads/master | 2020-04-13T19:14:50.187401 | 2018-12-28T09:04:09 | 2018-12-28T09:04:09 | 163,396,833 | 1 | 0 | null | 2018-12-28T10:16:45 | 2018-12-28T10:16:45 | null | UTF-8 | Python | false | false | 1,398 | py | import torch
from torch.nn import Sequential, Linear, ReLU
from torch_geometric.nn.repeat import repeat
from torch_geometric.nn.inits import uniform, glorot, zeros, ones, reset
from torch_geometric.nn.reshape import Reshape
def test_repeat():
assert repeat(None, length=4) is None
assert repeat(4, length=4) ==... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
8ebf7364f88d1f1fabd25cd184b44c4a4725b1ba | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2431/60668/302927.py | fde0d78fce890f17b957f82f0b5117e9cd2288ca | [] | 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 | 350 | py | def tree_29_wide(s,k):
if s=="0 100":
if k=="150 750":
print(212.13,end='')
elif k=="0 1000":
print(291.55,end='')
else:
print(k)
else:print(s)
if __name__=='__main__':
m,n = input().split()
s = input()
k = input()
l = input()
ii = ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4e34bf3f441b315b9c80825f31985e81b6195334 | 6fffacd69b4f642015520d6a5da079466d32bc1d | /carts/migrations/0043_auto_20191108_2058.py | 5efbcb1d8e5f4dc435f175c9059b8010e7b07898 | [] | no_license | imroon1/tost | 8a690f5ee446a11e3f8f653a5ca26233192dd450 | 7c95ec7a9a42bd842e4292d73cf9b0b6878f7ecb | refs/heads/master | 2023-04-19T16:36:50.346763 | 2021-05-02T20:52:51 | 2021-05-02T20:52:51 | 363,496,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2019-11-08 13:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carts', '0042_auto_20191108_2050'),
]
operations = [
migratio... | [
"samroonsamroon@gmail.com"
] | samroonsamroon@gmail.com |
30115bbe8fa2933607723a3ce6b73ae268df8cde | 4a3e4c20cc7de2e80ed038bbfe9b359ba75daf07 | /configs/RS-data/VHR10/Faster-RCNN/CBAM/cbam-r101-Backbone-R32.py | 21195a128ff7eb1db6b308a335ce55155d04adec | [
"Apache-2.0"
] | permissive | CLIFF-BOT/mmdetection-1.0 | b0b4f9b5586476f96ef55cf68373110f28e503a7 | a16a7c6a8f0bf029100b85f0bd1b64093e7809af | refs/heads/master | 2023-01-02T07:02:35.496174 | 2020-10-29T03:26:18 | 2020-10-29T03:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | py | # model settings
model = dict(
type='FasterRCNN',
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
style='pytorch',
... | [
"nicholasirving@outlook.com"
] | nicholasirving@outlook.com |
5ef229b7e8ffe1fd6e506214f4574a932bdf561c | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CondTools/IntegrationTest/python/validate_dt_orcon_cfg.py | a1aaab0a17d8bfc6ba547ce4cb804c635d78318a | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 1,754 | py | # The following comments couldn't be translated into the new config version:
# Configuration file for EventSetupTest_t
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.PoolDBESSource = cms.ESSource("PoolDBESSource",
loadAll = cms.bool(True),
toGet = cms.VPSet(cms.PSet(
r... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
15dab3acd9bfe7df5a470c2924edd5a0932585fb | 1b62a66e8d7b2bbdfce222b53d2ab05202291f4b | /hs_info/models.py | 57b5c9eb24565c88c2a586fc99a7f24ee3f0e241 | [] | no_license | lotaku/hushua_old | ca7c1aecfa1d344c262e61378b6a795c8ed6e866 | 665a4a13fdf7f0e59a0e3db136a94d53b997d321 | refs/heads/master | 2020-04-20T00:11:34.948600 | 2014-08-12T14:53:34 | 2014-08-12T14:53:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # encoding: utf-8
from django.db import models
# Create your models here.
class HsInfo(models.Model):
#小号要求
week_limited = IntegerField(null=True, blank=True)
month_limited = IntegerField(null=True, blank=True)
is_seller = BooleanField()
# name = models.CharField(max_length=100, null=True, blank=True)
#... | [
"317399510@qq.com"
] | 317399510@qq.com |
52170475bb3e4e2512553f18cf6180eb8ff63de9 | 1187f02013f2c0d785e8a12701226d4c99fea48d | /4153번 직각삼각형.py | d6cba8ccf5891ba4bf61bcc2f283bce6ad05ee24 | [] | no_license | rheehot/BOJ-Algorithm | 5b2745a648fd635aa727b84afa2a4787ee07c507 | 7aae709fb193f228ef7c2d5accee6af9ecc19090 | refs/heads/master | 2023-04-20T23:42:53.271984 | 2021-05-07T09:08:12 | 2021-05-07T09:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import sys
while True:
a, b, c = map(int, sys.stdin.readline().split())
if a==0 and b==0 and c==0:
break
else:
tri_len = [a, b, c]
max_num = max(tri_len)
tri_len.remove(max_num)
if max_num**2 == tri_len[0]**2 + tri_len[1]**2:
print('right')
... | [
"noreply@github.com"
] | rheehot.noreply@github.com |
fc76f26de5ed891c29829aaa79d4c9b0e43e00bf | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_219/ch4_2019_03_14_18_25_45_666376.py | 58b1c4b3456ddc1302a823856e76d8b79a964285 | [] | 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 | 132 | py | y=int(input('Digite sua idade'))
if y<=11:
print('crianca')
elif 12<=y<=17:
print(' adolescente ')
else:
print('adulto') | [
"you@example.com"
] | you@example.com |
2fc62581d21ba5e0d9531a665125e34b6e4b25f9 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/GeneralDb/Marathon/MarathonTests_1.1/linux_HSQLDB_Edit/TestCases/Y1_NamedFldTests/Filter/Filter035_TextGT.py | d2606ef2bcfb6fbb6ba5439919f5a3ceb57e15ed | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | useFixture(RecordEditor)
def test():
from Modules import commonBits
java_recorded_version = '1.6.0_22'
if window('Record Editor'):
select('File_Txt', commonBits.sampleDir() + 'csv2DTAR020_tst1.bin.csv')
click(commonBits.fl('Edit') + '1')
select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Upda... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
c39941499870277a946c40da8b7ff72e4713e97a | ed4921d289f9318e0792694a55ab49990199a857 | /openbudget/dashboard.py | a8a910e731a262b077369a6654c48e4145e17640 | [
"BSD-2-Clause"
] | permissive | ofri/omuni-budget | 918b340e6d213785dac252ed0549f918b5a84da4 | 9f30edd1e0d025bbcacba64172b1ecb02172497b | refs/heads/master | 2021-01-18T05:25:13.366328 | 2013-03-31T11:11:02 | 2013-03-31T11:11:02 | 9,343,753 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | from django.utils.translation import ugettext_lazy as _
#from django.core.urlresolvers import reverse
from grappelli.dashboard import modules, Dashboard
class OpenBudgetDashboard(Dashboard):
"""Custom admin dashboard for Open Budget"""
def init_with_context(self, context):
# append an app list modul... | [
"paulywalsh@gmail.com"
] | paulywalsh@gmail.com |
db9c468c186605058bdc1e319cf6eef5d0cc402b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/189/usersdata/264/65136/submittedfiles/al2.py | 78c78df05d8662e4336e80c333a6ef1d26db18e4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | # -*- coding: utf-8 -*-
#ENTRADA: NÚMERO QUALQUER:x
#SAIDA: PARTE INTEIRA:q, PARTE FRACIONÁRIA:j
x= float(input('digite um número real qualquer:'))
q= (x//3)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f86d5e23e993a62bf8066dc12320d183477f2526 | 1d590f611c9ae02f5f0f369e479cccd8b8d7fb66 | /soc/bffbook/profiles/migrations/0004_auto_20210510_1308.py | 7b76e1b1ac139bee3abbd516d9265db853ccb6c6 | [] | no_license | Alan-thapa98/SOCIAL-ME | 3cf1c515e0560ca2967cf847727bf1438aeba3f4 | 362e11edb449528a7bc6f413c134a8dfb9296e67 | refs/heads/master | 2023-07-01T07:21:37.303320 | 2021-07-30T15:15:59 | 2021-07-30T15:15:59 | 391,106,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 3.1.2 on 2021-05-10 07:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0003_auto_20210510_1256'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='avatar',
... | [
"alanthapa98.gmail.com"
] | alanthapa98.gmail.com |
319aaf36620144c77e9f4382cdc002dd7d12372a | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/vml/test_write_size_with_cells.py | 7d062d86032316bfb6cb293c6f39e4586d4653f4 | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...vml import Vml
class TestWriteXSizeWithCells(unittest.TestCase):
"""
Test t... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
144ad152b5e9dc1c38e2a29bb9072569a0c6fdd2 | 45df508e4c99f453ca114053a92deb65939f18c9 | /tfx/utils/logging_utils.py | 8d5e5b0ce8ce081ed22a0a7b494b338c20b32a4d | [
"Apache-2.0"
] | permissive | VonRosenchild/tfx | 604eaf9a3de3a45d4084b36a478011d9b7441fc1 | 1c670e92143c7856f67a866f721b8a9368ede385 | refs/heads/master | 2020-08-09T13:45:07.067267 | 2019-10-10T03:07:20 | 2019-10-10T03:07:48 | 214,100,022 | 1 | 0 | Apache-2.0 | 2019-10-10T06:06:11 | 2019-10-10T06:06:09 | null | UTF-8 | Python | false | false | 3,124 | py | # Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
51a247af73a7e20f4aaa919360ae9ea26d676f40 | f8bdc46409c9f5eaf3d85ef157260589462d941a | /jsk_2016_01_baxter_apc/node_scripts/check_sanity_setup_for_pick | 1ab7ba1ac9271856cae0085c0e78a81cb65fadb9 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | start-jsk/jsk_apc | 2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750 | c4e349f45ef38457dc774e33f6902acf1a1540a6 | refs/heads/master | 2023-09-05T09:06:24.855510 | 2023-09-01T17:10:12 | 2023-09-01T17:10:12 | 25,620,908 | 36 | 25 | NOASSERTION | 2023-09-01T17:10:14 | 2014-10-23T05:28:31 | Common Lisp | UTF-8 | Python | false | false | 462 | #!/usr/bin/env python
import rospy
from jsk_tools.sanity_lib import checkTopicIsPublished
def main():
rospy.init_node('check_setup_sanity')
checkTopicIsPublished(
'/left_hand_camera/extract_indices_target_bin/output',
timeout=5, echo=True, echo_noarr=True)
checkTopicIsPublished(
'... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com | |
dd287ab4dacb2cfc45941be3341ffa301364946e | c8781d6c35bc1a01572ae079c10ae09a48360d0d | /postprocess_tweets.py | 32e7614af149211c9c5541c6c10e55184e600ce0 | [] | no_license | molguin92/RechazoMiner | 030e718d7a7128ad3cf3c9b167e58fd353c898e8 | 3c027426876e7ed65c7f9039f5a66c8260ada746 | refs/heads/master | 2022-04-21T04:35:20.497340 | 2020-04-12T20:00:33 | 2020-04-12T20:00:33 | 250,283,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from nltk.corpus import stopwords
from wordcloud import WordCloud
def main():
tweets = pd.read_parquet('./tweets.parquet') \
.reset_index() \
.drop_duplicates(subset='tweet_id') \
.set_index('tweet_id')
# tweets_no_... | [
"manuel@olguin.se"
] | manuel@olguin.se |
ef94445d6b1610a2ae6a0c06860afd62b5e23786 | 9e6b91907e04a37f708b28e8ee52760662b4c761 | /py/dirbalak/run.py | 0355e2698c739d28f282edf63e736dfafbde8594 | [
"Apache-2.0"
] | permissive | shlomimatichin/dirbalak | d744e3f4fdadf920082c870107f50f9020d57af6 | 218441fe55715c0602dd41142ae6a34ddfef6b38 | refs/heads/master | 2020-12-11T03:45:23.059866 | 2015-02-26T15:40:44 | 2015-02-26T15:40:44 | 28,646,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | import subprocess
import upseto.run
import tempfile
import shutil
import os
import select
import time
run = upseto.run.run
def runAndBeamLog(logName, command, cwd=None):
with open("/dev/null") as devNull:
popen = subprocess.Popen(
command, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.S... | [
"shlomi@stratoscale.com"
] | shlomi@stratoscale.com |
3d896af960b5e3f6493dfe0bd2f44dcb1c5b85db | c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6 | /keras/keras54_conv1d_01_lstm.py | 46786f3cdafe9a0d5880bfff0ec509b09b860a2d | [] | no_license | sswwd95/Study | caf45bc3c8c4301260aaac6608042e53e60210b6 | 3c189090c76a68fb827cf8d6807ee1a5195d2b8b | refs/heads/master | 2023-06-02T21:44:00.518810 | 2021-06-26T03:01:26 | 2021-06-26T03:01:26 | 324,061,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | # conv1d
# LSTM과 비교
import numpy as np
# 1. 데이터
x = np.array([[1,2,3] ,[2,3,4], [3,4,5], [4,5,6],
[5,6,7], [6,7,8], [7,8,9], [8,9,10],
[9,10,11], [10,11,12],
[20,30,40],[30,40,50],[40,50,60]])
y = np.array([4,5,6,7,8,9,10,11,12,13,50,60,70])
x_pred = np.array([50,60,70])
pri... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
8ddc1bb8f4a20ecdb528058fedc4bcd5962a64de | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/asyncio_coroutine_return.py | 4232ff84185f4cccf3562bcb97cb4daeb5f66d4f | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # asyncio_coroutine_return.py
import asyncio
async def coroutine():
print('nella coroutine')
return 'risultato'
event_loop = asyncio.get_event_loop()
try:
return_value = event_loop.run_until_complete(
coroutine()
)
print('ritornato: {!r}'.format(return_value))
finally:
event_loop.cl... | [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
2951f9918b65ff8723f67976693c4de1f72c851d | 48bb4a0dbb361a67b88b7c7532deee24d70aa56a | /codekata/persquare.py | 0d0aef46cce120f2115cd0d2263aef327619c712 | [] | no_license | PRAMILARASI/GUVI | 66080a80400888263d511138cb6ecd37540507c7 | 6a30a1d0a3f4a777db895f0b3adc8b0ac90fd25b | refs/heads/master | 2022-01-28T08:54:07.719735 | 2019-06-24T15:57:05 | 2019-06-24T15:57:05 | 191,355,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | l,r=map(int,input().split())
l1=[]
cg=0
for i in range(1,r+1):
sq=i*i
if(sq<=r):
l1.append(i*i)
else:
break
for j in range(l,r+1):
if(j in l1):
cg+=1
print(cg)
| [
"noreply@github.com"
] | PRAMILARASI.noreply@github.com |
29c7191e1f0bb964d65ea7d49d125e5c1361171f | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/learn_python_dm2039/ch17/ch17_21.py | 2f28cbe564dd9eb87e19a2b997177f787f6af96d | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # ch17_21.py
from PIL import Image, ImageDraw
newImage = Image.new('RGBA', (300, 300), 'Yellow') # 建立300*300黃色底的影像
drawObj = ImageDraw.Draw(newImage)
drawObj.rectangle((0,0,299,299), outline='Black') # 影像外框線
drawObj.ellipse((30,60,130,100),outline='Black') # 左眼外框
drawObj.ellipse((65,65,95,95),fill='Blue... | [
"terranandes@gmail.com"
] | terranandes@gmail.com |
83fd0483590ca890422fb68150b7d7917f2a1699 | 1b6cea605ee3ad1cac7ed39e8e56d78b41a0a9c8 | /touchdown/aws/route53/zone.py | df8463a3555b95405eb2e22bd3a323ef2ab00f98 | [
"Apache-2.0"
] | permissive | pombredanne/touchdown | 37e0847649d376ad8b087f993ef3021db37ff728 | 2213f3572c2b99cecf46dbee48d6d3f038cc442c | refs/heads/master | 2021-01-18T09:05:05.027531 | 2015-01-29T11:42:10 | 2015-01-29T11:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,133 | py | # Copyright 2014-2015 Isotoma Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"john.carr@unrouted.co.uk"
] | john.carr@unrouted.co.uk |
4a6e8d053a94706c74d944c4a9ad04c88fc8fefd | 350db570521d3fc43f07df645addb9d6e648c17e | /1352_Product_of_the_Last_K_Numbers/solution.py | 5c9cce8733e553c8d05006544a5caa5ba5d53971 | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | '''
1352. Product of the Last K Numbers
Level: Medium
https://leetcode.com/problems/product-of-the-last-k-numbers
'''
'''
Solution:
'''
class ProductOfNumbers:
def __init__(self):
def add(self, num: int) -> None:
def getProduct(self, k: int) -> int:
# Your ProductOfNumbe... | [
"benjaminhuanghuang@gmail.com"
] | benjaminhuanghuang@gmail.com |
b373db01d970b6ce88143768f0517f0be7b4a386 | 5f6112f58e4e570a99e58ac0424b36a0fb7da744 | /preps/apps/sports/track/admin.py | 0f91fc904b1abfaa5ef3415e96d14c9cb520bad5 | [] | no_license | huyenme/django-preps | 335915f2d6c68cde0410bccbabaeee48f3ccc39a | fede0d245cbcff5781b6a4bf1cecc0477897d9e4 | refs/heads/master | 2020-05-02T22:52:46.779618 | 2011-07-05T21:10:43 | 2011-07-05T21:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from django.contrib import admin
from preps.apps.sports.track.models import Meet
class MeetAdmin(admin.ModelAdmin):
fieldsets = (
('Basic information', {
'fields': (('meet_type', 'meet_date_time'), ('teams', 'season'))
}),
('Administration', {
'fields': (('featured_m... | [
"jeremyjbowers@gmail.com"
] | jeremyjbowers@gmail.com |
df974a2a8eb8076abb44ee0af07e0366ee280f16 | f85fb8ea9df44a3ebb19430d8fe248be7d738413 | /tests/test_plotter.py | eab925f85900d74d67c471aec580a5352247c590 | [
"MIT"
] | permissive | Samreay/ChainConsumer | 9ab425fd31a0853f5be92bf2a266ece59a1a2d01 | 888921942789f7c7a817c7a3cee3e7e5da3a26bf | refs/heads/master | 2022-09-16T16:52:06.175389 | 2022-09-04T02:48:44 | 2022-09-04T02:48:44 | 63,556,220 | 74 | 20 | MIT | 2018-09-06T00:34:00 | 2016-07-17T23:01:21 | Python | UTF-8 | Python | false | false | 2,856 | py | import numpy as np
from scipy.stats import norm
from chainconsumer import ChainConsumer
class TestChain(object):
np.random.seed(1)
n = 2000000
data = np.random.normal(loc=5.0, scale=1.5, size=n)
data2 = np.random.normal(loc=3, scale=1.0, size=n)
def test_plotter_extents1(self):
c = Chain... | [
"samuelreay@gmail.com"
] | samuelreay@gmail.com |
9986a1659cfdc8dc4bd6a6862039eead3c2b5e84 | 30e21273013b228f5421a5d685660cc370c92d7c | /dgfont.py | 2e37de03891875ec73a74d5581f477352fd09cf6 | [] | no_license | hwinther/homeautomation | 0aecccae16995f53b14d0de07eb6d61cc91a52fc | 0ee1f97238bdd5c2c7367a75f4376f2d662c4b9c | refs/heads/master | 2021-01-10T10:11:06.803852 | 2018-10-22T22:06:36 | 2018-10-22T22:06:36 | 44,271,892 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | #!/usr/bin/python
# coding=utf-8
from datetime import datetime
letters = {
'0': [
[0, 1, 1, 0],
[1, 0, 0, 1],
[1, 0, 0, 1],
[1, 0, 0, 1],
[0, 1, 1, 0],
],
'1': [
[0, 0, 1, 1],
[0, 1, 0, 1],
[0, 0, 0, 1],
[0, 0, 0, 1],
... | [
"hc@wsh.no"
] | hc@wsh.no |
c8f6df806cbd7433aff54e08bcc8bfbd20c702d0 | 8ea15bb41fa672a8abd5cbc6e4c3413a910e5fb4 | /api/admin.py | fdc895cff91355bb421614c370acdbf99f297eca | [] | no_license | bluedazzle/smart_screen | 172bb1672bd9995e27889700a7320c0d9e207abe | f4d40807e7c6684ae35d8c1c7f386ae2ff8d8925 | refs/heads/master | 2021-07-04T07:30:50.807052 | 2019-01-23T06:47:56 | 2019-01-23T06:47:56 | 111,908,525 | 1 | 0 | null | 2019-05-16T03:30:51 | 2017-11-24T10:56:46 | Python | UTF-8 | Python | false | false | 812 | py | from django.contrib import admin
from models import *
# Register your models here.
class GoodsInventoryAdmin(admin.ModelAdmin):
search_fields = ['barcode']
class GoodsAdmin(admin.ModelAdmin):
search_fields = ['belong__id']
admin.site.register(FuelOrder, GoodsAdmin)
admin.site.register(FuelTank)
admin.sit... | [
"zhangjianqi@bytedance.com"
] | zhangjianqi@bytedance.com |
b14b1b13fd24073c9ebde57c05e4f234b0ac0da4 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickfont/_family.py | ba495312ec633e48e44034f6156ee76e0784f0c1 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 525 | py | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self, plotly_name="family", parent_name="heatmapgl.colorbar.tickfont", **kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=plotly_name,
pare... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
108d68accc881e48bb69ecb2973ce1bd1dbf2825 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v1/synthetics/GetSyntheticsDefaultLocations.py | 6e44aa3003ea64d20039ddc3cb1e3952f2e290a2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 387 | py | """
Get the default locations returns "OK" response
"""
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = SyntheticsApi(api_client)
response = ap... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
b6be628f703dec55030e68c4a3d13a67ce8180be | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/statistic_value.py | d3dfd884e2f8fce485e13476f04cbd5dc66f26e0 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class StatisticValue:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
f9291f1a6af751a26ba13be48da38a42209934e0 | dba64f73e5e07a25ab1a8e87f8e7cf6700ee3c90 | /symphony/cli/pyinventory/graphql/survey_question_type_enum.py | 3a96d2dd169d65106806d858248ca73f1354a8ec | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | saaib/magma | 6410d161cf1538be450f341dae8bc6f159999338 | 679cd9622eab49a859a4fa9f84f657023e22adb8 | refs/heads/master | 2021-02-07T15:53:21.047308 | 2020-02-29T14:09:27 | 2020-02-29T14:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from enum import Enum
class SurveyQuestionType(Enum):
BOOL = "BOOL"
EMAIL = "EMAIL"
COORDS = "COORDS"
PHONE = "PHONE"
TEXT = "TEXT"
TEXTAREA = "TEXTAREA"
PHOTO = "PHOTO"
WIFI = "WIFI"
CELLULAR = "CELLULAR"
F... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1ecbb8e831336074d1ce5c6d07b4e34745935ae4 | ce722f35f63d7e7af3e9890cbea50b05d32c34c7 | /crawler/dspider/myspider.py | a1a34d3e4640e21a35516c59c8e9c2d1892770cd | [] | no_license | tfangz888/smart_deal_tool | bc6645047e2c3ff36af0baed62e31d1c6cec4a15 | 0f0e4edfec582e93146b30273621a28c36a5d6ca | refs/heads/master | 2020-05-17T03:12:16.720526 | 2019-04-23T14:11:10 | 2019-04-23T14:11:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | # -*- coding: utf-8 -*-
import time
import calendar
import datetime
from scrapy import Spider
from datetime import datetime, timedelta
class BasicSpider(Spider):
def get_nday_ago(self, mdate, num, dformat = "%Y.%m.%d"):
t = time.strptime(mdate, dformat)
y, m, d = t[0:3]
_date = datetime(y, m... | [
"hellobiek@gmail.com"
] | hellobiek@gmail.com |
f40bbf4c4d4b9ef848cac097b67b4e5a643be55e | 67b7e6d2c08f08403ec086c510622be48b8d26d8 | /src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/basebackup/test_switch_xlog.py | 4d94b2c153d66678d75b70e85c154d9050cca17c | [
"Apache-2.0",
"PostgreSQL",
"LicenseRef-scancode-rsa-md4",
"OLDAP-2.8",
"HPND-sell-variant",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"Zlib",
"LicenseRef-scancode-zeusbench",
"LicenseRef-scancode-mit-modification-obligations",
"OpenSSL",
"MIT",
"LicenseRef-scancode-other-copyleft",
"bzip2-1.0.6"... | permissive | sshyran/gpdb | 41012411d22b0294204dfb0fe67a1f4c8d1ecaf6 | 2d065ecdd2b5535cb42474f17a0ee6592b4e6837 | refs/heads/master | 2023-04-09T14:05:44.030212 | 2016-11-12T08:33:33 | 2016-11-12T08:34:36 | 73,544,159 | 0 | 0 | Apache-2.0 | 2023-04-04T00:30:10 | 2016-11-12T09:43:54 | PLpgSQL | UTF-8 | Python | false | false | 1,977 | py | """
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | [
"jyih@pivotal.io"
] | jyih@pivotal.io |
ecbd429887ac6d5abc32c05fd1f43073737f37c7 | 2a89cc4472bd6251a16a4369f13cdc3c40d28d86 | /data_processing/nx_test.py | 4fb70316922faecc8f18b7c0693cd4403c43642c | [] | no_license | wpower12/CIS5524-FinalProject | 5a51a4b3dd91b92a27023c4317c2e167d06ab9bc | 5f5104c6a8369b9939399258b6686b612cb22ffb | refs/heads/master | 2020-05-05T00:20:59.188552 | 2019-04-30T17:49:04 | 2019-04-30T17:49:04 | 179,571,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | import pickle
import networkx as nx
from networkx.algorithms import community
from networkx.algorithms import bipartite as bp
DATA_PFN = "pol_300_year_00_20_new.p"
DEBUG = ""
edge_list = pickle.load(open("data/{}".format(DATA_PFN), "rb"))
graph = nx.Graph()
for user in edge_list:
# print(user)
for sub in user[1]:
... | [
"willpowe@gmail.com"
] | willpowe@gmail.com |
36602fdb00348f04be6f1f77b384c11eb93676fa | 6bf336bc8d6ba061e0c707bdd8595368dee4d27b | /sherlock_and_anagrams.py | d1cc84aa3edc108d72c16638bb4c7edcd539760a | [
"MIT"
] | permissive | avenet/hackerrank | aa536214dbccf5a822a30ea226e1dbaac9afb243 | e522030a023af4ff50d5fc64bd3eba30144e006c | refs/heads/master | 2021-01-01T20:15:06.647873 | 2017-11-24T23:59:19 | 2017-11-24T23:59:19 | 98,801,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | testcases = int(raw_input())
def is_equal(d1, d2):
if len(d1) != len(d2):
return False
for k, v in d1.items():
if k != 'last':
if d1[k] != d2.get(k):
return False
return True
def next_level(dict_items):
next_level_result = []
for i in ... | [
"andy.venet@gmail.com"
] | andy.venet@gmail.com |
35b04254829c219407297add0b75e3e5f4483e9d | 66213c48da0b752dc6c350789935fe2b2b9ef5ca | /abc/174/e.py | ffc0d5bd9d8bbac094b0625c24ec7ed291cb8d7d | [] | no_license | taketakeyyy/atcoder | 28c58ae52606ba85852687f9e726581ab2539b91 | a57067be27b27db3fee008cbcfe639f5309103cc | refs/heads/master | 2023-09-04T16:53:55.172945 | 2023-09-04T07:25:59 | 2023-09-04T07:25:59 | 123,848,306 | 0 | 0 | null | 2019-04-21T07:39:45 | 2018-03-05T01:37:20 | Python | UTF-8 | Python | false | false | 1,100 | py | # -*- coding:utf-8 -*-
def solve():
"""
「丸太の長さをX以下にする」を各丸太について行い、カット回数を計算していく方針。
カット回数の計算は丸太一本あたりO(1)で計算できるので、全丸太でO(N)かかる。
Xは二分探索で範囲を狭めていけば、Xの探索はO(logN)で済む。
全体の計算量は、O(Nlog(N))
"""
import math
N, K = list(map(int, input().split()))
As = list(map(int, input().split()))
left, r... | [
"taketakeyyy@gmail.com"
] | taketakeyyy@gmail.com |
90d8d869fc8f16e185d015112875789166658815 | aeba64588c629c2f8a39fc054c48e34ae5b1bc76 | /Урок 3. Практическое задание/geekshop/authapp/admin.py | e09e35a8b3ae6d15fc2797fcbbe9025ffe678c9c | [] | no_license | ZF-1000/12_Django_Framework_Optimization_tools | a600caa2739824011251003a58f016ad1aa4d9e7 | 664224a22711d071fc63a33acedf430571d795e8 | refs/heads/master | 2022-12-17T22:59:46.581864 | 2020-09-24T18:34:00 | 2020-09-24T18:34:00 | 289,723,244 | 0 | 0 | null | 2020-09-24T18:34:01 | 2020-08-23T16:22:46 | Python | UTF-8 | Python | false | false | 184 | py | from django.contrib import admin
from authapp.models import ShopUser, ShopUserProfile
# Register your models here.
admin.site.register(ShopUser)
admin.site.register(ShopUserProfile)
| [
"n.shanin@mail.ru"
] | n.shanin@mail.ru |
4f7d33984f4de1a2db5ca3fc534dcc10909e1f06 | 30ab9750e6ca334941934d1727c85ad59e6b9c8a | /server/base/middlewares.py | 84d8a5ba83d986202b5a9503d755dfa61cee8a94 | [
"Apache-2.0"
] | permissive | ankurvaishley/zentral | 57e7961db65278a0e614975e484927f0391eeadd | a54769f18305c3fc71bae678ed823524aaa8bb06 | refs/heads/main | 2023-05-31T02:56:40.309854 | 2021-07-01T07:51:31 | 2021-07-01T14:15:34 | 382,346,360 | 1 | 0 | Apache-2.0 | 2021-07-02T12:55:47 | 2021-07-02T12:55:47 | null | UTF-8 | Python | false | false | 2,103 | py | # adapted from https://github.com/mozilla/django-csp
from functools import partial
from django.conf import settings
from django.utils.crypto import get_random_string
from django.utils.functional import SimpleLazyObject
from http.client import INTERNAL_SERVER_ERROR, NOT_FOUND
CSP_HEADER = 'Content-Security-Policy'
D... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
b5f70c3dc6b4b1c3197a94cff2bcf3cea020f5b6 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Simulation/G4Utilities/G4DebuggingTools/python/G4DebuggingToolsConfig.py | f52b57fe2059fda006a2cf456c9959bd184320f5 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from AthenaCommon import CfgMgr, Logging
from G4AtlasServices import G4AtlasServicesConfig
def getVerboseSelectorTool(name="G4UA::VerboseSelectorTool", **kwargs):
from G4AtlasApps.SimFlags import simFlags
# example custom configuration
... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
d6c6b643bd659e3f9cfac6cae96011a6dca0c086 | 45a00518abed3ef4796655d8d2a0677f29961aa3 | /example 46/python_venv/lib/python3.8/site-packages/joblib/test/test_cloudpickle_wrapper.py | 733f51c7239467da0f967b2aa790a2df76cfa185 | [] | no_license | ruiwu1990/CSCI_4710_6710 | 07b92e456d6cda3e63a5b5d078c1718110317555 | 6e32c89ef70fbe4b4a5db14682dc94b13bab6d9e | refs/heads/master | 2023-05-03T21:50:54.943702 | 2023-04-18T21:48:43 | 2023-04-18T21:48:43 | 174,882,138 | 9 | 17 | null | 2023-05-01T20:53:06 | 2019-03-10T21:18:01 | Python | UTF-8 | Python | false | false | 749 | py | """
Test that our implementation of wrap_non_picklable_objects mimics
properly the loky implementation.
"""
from .._cloudpickle_wrapper import wrap_non_picklable_objects
from .._cloudpickle_wrapper import my_wrap_non_picklable_objects
def a_function(x):
return x
class AClass(object):
def __call__(self, x)... | [
"raywu1990@nevada.unr.edu"
] | raywu1990@nevada.unr.edu |
0d558a04a974c96413e34fc82e039b476a0ba4bd | a392bb476779cbfde6c4863e6039af9a57c288be | /S1_Foundation/C2_GettingStarted/selection_sort.py | 966df2f7c6568266bfc89861df06db3b9452b246 | [
"MIT"
] | permissive | JasonVann/CLRS | 49e25d021718156a732455a117331dace1fe501c | d9dcdc7ea9230d03d97d72857f9345ea995e5986 | refs/heads/master | 2021-05-04T10:03:06.999922 | 2017-10-21T07:43:54 | 2017-10-21T07:43:54 | 53,999,274 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | from test_sort import *
def selection_sort(data):
n = len(data)
for i in range(0, n-1):
# Find the i-th minimum number and swap with data[i]
min_i = None
for j in range(i, n):
if min_i is None or data[j] < min_i:
min_i = data[j]
idx = j
... | [
"jasonvanet@gmail.com"
] | jasonvanet@gmail.com |
561a1515aec45c05a6f692c454547c35b601299c | fc7cad490cb774d769c1b463ac6d1d9a8ea97024 | /accounts/migrations/0004_auto_20200612_0259.py | ec0685ecf8d345c0e4a3fed233fe2258dc000cec | [] | no_license | Aviemusca/curriculum-dev | c301915532353836cb085130fd12e2734da4b956 | 691a6536718ef496ac603b1c8daee7508b3e8ff2 | refs/heads/master | 2022-12-26T20:56:55.031344 | 2020-10-01T08:11:49 | 2020-10-01T08:11:49 | 297,643,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # Generated by Django 3.0.5 on 2020-06-12 02:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20200519_1800'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | [
"yvan@metatech.ie"
] | yvan@metatech.ie |
202413f8bed169d63c0e062e5db80f4c7ab19053 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_layout_result.py | 880edef4f9e5268fec0c2a94a79f45be803ebb0a | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,891 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class SmartDocumentRecognizerLayoutResult:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
1269ec37a14795d04833ef26c19ca25ac9209675 | 61fd735fda784dfc817b51a53c933ecdc4d47177 | /PythonLearningFiles/小甲鱼Python基础课程笔记/python基础教程/07分支和循环.py | 185365fc588c50fb18dc07e45a2d6eb0de12ccb4 | [] | no_license | github653224/GitProjects_PythonLearning | bfe4610bf8f944d9a51889a30cf7b20e5ab219b7 | ac975efbb336846a3f145821cf47431d39b30ac1 | refs/heads/master | 2021-05-08T01:03:04.150717 | 2017-10-21T09:52:02 | 2017-10-21T09:52:02 | 107,763,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | """
打飞机方案:
加载北京音乐
播放北京音乐(设置单曲循环)
我飞机诞生
interval=0
while true:
if 用户是否点击了关闭按钮:
退出程序
interval+=1
if interval==50:
小飞机诞生
小飞机移动一个位置
刷新屏幕
if 用户鼠标产生移动:
我方飞机中心位置=用户鼠标位置
刷新屏幕
if 我方飞机与小飞机发生肢体冲突:
我方挂,播放音乐停止
修改我方飞机图案
打印"game over"
停止音乐... | [
"944851899@qq.com"
] | 944851899@qq.com |
68dd46a0f9f060b60554ee409185bc17f3b0eecb | 484f2b6ed2a51a78978a4b6450f97a3cbefcd087 | /ugc/migrations/0005_auto_20170214_1413.py | 845ec474ff677ca19957848ca9652760ee9e3645 | [] | no_license | ivan371/technotrack-web2-spring-2017 | 31d0a937f1b6342bd70432cbebd37bb68c1dd8df | 92e9fd9040984eef66b6bab45bb4d6918e178d41 | refs/heads/master | 2021-01-11T14:27:04.717314 | 2017-05-22T18:55:22 | 2017-05-22T18:55:22 | 81,424,353 | 0 | 0 | null | 2017-02-09T07:54:27 | 2017-02-09T07:54:27 | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-14 14:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ugc', '0004_auto_20170214_1402'),
]
operations = [
migrations.AlterField(
... | [
"nagaiko.ivan@gmail.com"
] | nagaiko.ivan@gmail.com |
177db48652d402f97d576e0f6523800c48df1c68 | 5cde60183d67eb92aad31d0bfa03a8e2ebddad0c | /setup.py | 12ac376cecfc5442d07485725892e2397462b032 | [
"MIT"
] | permissive | FedeClaudi/fcutils | 7379615f2eec7d152aab5c89ec70afee79e76964 | 2ef6f037303fc426d5c5b2851d2c99f17efa4002 | refs/heads/master | 2021-09-25T15:35:32.348620 | 2021-09-21T15:44:37 | 2021-09-21T15:44:37 | 236,294,597 | 5 | 0 | MIT | 2021-01-31T17:34:22 | 2020-01-26T10:05:55 | Python | UTF-8 | Python | false | false | 579 | py | from setuptools import setup, find_namespace_packages
requirements = [
"numpy",
"opencv-python",
"pandas",
"matplotlib",
"seaborn",
"scipy",
"pyyaml",
"statsmodels",
"loguru",
]
setup(
name="fcutils",
version="1.1.2.7",
author_email="federicoclaudi@protonmail.com",
... | [
"federicoclaudi@protonmail.com"
] | federicoclaudi@protonmail.com |
e586d7a3c000d224849a27dbaddfc190dffd0029 | 0d413c078c0dd7f1f68083750022441f091736f5 | /addons/source-python/plugins/gungame/plugins/included/gg_dissolver/gg_dissolver.py | 736d55841d464a5e19a21a4b3a3e088ef32fe82a | [] | no_license | Hackmastr/GunGame-SP | 7eac4c031e5e6f4624a8cacfea8d3d5df85a2dfb | dd76d1f581a1a8aff18c2194834665fa66a82aab | refs/heads/master | 2020-12-26T04:56:12.309910 | 2016-12-29T23:15:53 | 2016-12-29T23:15:53 | 67,629,767 | 0 | 0 | null | 2016-09-07T17:40:57 | 2016-09-07T17:40:56 | null | UTF-8 | Python | false | false | 3,166 | py | # ../gungame/plugins/included/gg_dissolver/gg_dissolver.py
"""Plugin that dissolves player ragdolls on death."""
# =============================================================================
# >> IMPORTS
# =============================================================================
# Python
from random import rand... | [
"satoon101@gmail.com"
] | satoon101@gmail.com |
a88f598b7bf08e6083106dbe44f2ca8df1bfc8b0 | 15c124ef75ee3974af8c5d0f97a35d13f3673378 | /dump_committees.py | 12f686c76fb41ebb3e6318e3fc5c50558f54520f | [] | no_license | datamade/war-chest | e9e2eaddb4c5dec584fdaa3806ce760757f0dfae | 6b4eb021d46b3db0e5409e54a496b8823a4aff2b | refs/heads/master | 2021-01-15T23:06:30.602126 | 2014-06-06T15:41:30 | 2014-06-06T15:41:30 | 13,306,945 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | from app import Candidate, Report, Person
import csv
from collections import OrderedDict
from operator import itemgetter
from sqlalchemy import or_
if __name__ == "__main__":
dump = []
for person in Person.query.all():
for cand in person.candidacies.all():
for comm in cand.committees:
... | [
"eric.vanzanten@gmail.com"
] | eric.vanzanten@gmail.com |
a64bb1807505a2ed94f6dae03805a20c63d76bd1 | 413125277311510b40ca481b12ab82d379f5df62 | /factorial number of trailing zeros in factorial.py | 11ce6c912e5196f14256726dc5f9adc771d0a39c | [] | no_license | Aakashbansal837/python | 98d85ce1e88c73f0e5180b1b1af80714f3e45097 | 4de2a3d6a482fdba8809ceb81e94f201b776b00e | refs/heads/master | 2021-04-06T00:16:24.884830 | 2018-05-30T17:42:20 | 2018-05-30T17:42:20 | 124,778,551 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import sys
sys.setrecursionlimit(10000)
def factorial(n):
if n == 0:
return 1
if n == 1:
return 1
else:
return n*factorial(n-1)
num = list((str(factorial(int(input())))))
l = len(num)-1
count = 0
while l:
if num[l] == '0':
count+=1
else:
br... | [
"noreply@github.com"
] | Aakashbansal837.noreply@github.com |
8b0825a8ddd160fc42a6622a90c4d63dba60573d | e57a122cba8d00aac9d014a45e815063cb9f0359 | /imagepy/menus/Kit3D/Viewer 3D/tablepoints_plg.py | 86fe577864e3131f6f976b490ee2afe4771c7966 | [
"BSD-2-Clause"
] | permissive | WeisongZhao/imagepy | 9d66664578c77eb2d463de922c8d06af4f8af35a | 43cd5c4dcb9d6fefdcf11b8b9e9c0d56e11fab1e | refs/heads/master | 2020-04-25T23:44:31.304590 | 2020-01-29T06:10:26 | 2020-01-29T06:10:26 | 173,155,520 | 1 | 0 | NOASSERTION | 2019-02-28T17:21:56 | 2019-02-28T17:21:55 | null | UTF-8 | Python | false | false | 1,761 | py | from imagepy.core.engine import Table
from imagepy.core.manager import ColorManager
from imagepy.core import myvi
import numpy as np
from imagepy import IPy
class Plugin(Table):
title = 'Table Point Cloud'
para = {'x':None, 'y':None, 'z':None, 'r':5, 'rs':None, 'c':(0,0,255),
'cs':None, 'cm':None, 'cube':False}
... | [
"imagepy@sina.com"
] | imagepy@sina.com |
2a9948a9fa15cfc738111ee698e8284117c2f0ab | 5c6c165cdbdc4fd538f4aed7d0fede76fc480444 | /asphalt/feedreader/__init__.py | a990cce8accc3f529540060c6c57896c512d464d | [
"Apache-2.0"
] | permissive | asphalt-framework/asphalt-feedreader | b4b5e693a65dd51dd3fdbe1234a691c7de769bfb | 096df835408ecfcfde593950c9c80d130f62cc5e | refs/heads/master | 2021-01-18T19:53:06.455455 | 2017-11-26T17:33:13 | 2017-11-26T17:34:46 | 86,918,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from .api import FeedReader, FeedStateStore # noqa
from .component import create_feed, FeedReaderComponent # noqa
from .events import EntryEvent, MetadataEvent # noqa
from .metadata import FeedEntry, FeedMetadata # noqa
from .readers.base import BaseFeedReader # noqa
| [
"alex.gronholm@nextday.fi"
] | alex.gronholm@nextday.fi |
87b61ab79ea2e0d19563e98bd2c50283f6e2da98 | 6c44aa08cdac167f150fa5e08aa3a2d0efd22fbd | /clearbyte/urls.py | 40735a8fec3c632267a9474a85807e6c02d9f487 | [] | no_license | sumansai14/clearbyte | acaca0d194dfbca0a542301a622f44dbc122a325 | f960a1a898ccbc79ed5cdc4cf213f09232f94921 | refs/heads/master | 2022-12-11T18:10:38.239032 | 2017-07-31T06:42:13 | 2017-07-31T06:42:13 | 98,814,570 | 1 | 0 | null | 2022-11-22T01:47:56 | 2017-07-30T17:44:43 | JavaScript | UTF-8 | Python | false | false | 571 | py | from django.conf.urls import include, url
from django.contrib import admin
from clearbyte.web.home import HomeView
from clearbyte.api.views.company import CompanyViewSet
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'api/company', CompanyViewSet)
urlpatterns = [
# Exam... | [
"suman.sai14@gmail.com"
] | suman.sai14@gmail.com |
e2c8bbd3422f404804ca4a5b2183623bd2d0fc02 | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /coghq/DistributedBattleFactory.py | 9cbf5b835ad112cda6c82c2ab13e8a87022244ce | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.coghq.DistributedBattleFactory
from panda3d.core import Filename
from direct.interval.IntervalGlobal import *
from toontown.battle.BattleBase import *
from toontown.coghq import DistributedLevelBattle
from direct.directnotify import DirectNotifyGl... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
2d234c71ae3401e3c476c0145a739da0e171802a | 646ad63fc2274b85a219094b216b807c0bed1ede | /tests/core/commands/test_cmd_quota.py | 6c8784ea4c37a59ce12a55111ffffa52913c5f59 | [
"MIT"
] | permissive | Starz0r/pytuber | 9b252582b4ae296aee87faaf10a2eed9f541b7b0 | 5bb53edde6a39cedec48c4a8f41ba22db21d4727 | refs/heads/master | 2020-08-23T16:28:12.783690 | 2019-04-29T21:53:29 | 2019-04-29T21:53:29 | 216,662,810 | 0 | 0 | MIT | 2019-10-21T20:48:32 | 2019-10-21T20:48:31 | null | UTF-8 | Python | false | false | 914 | py | from datetime import datetime
from unittest import mock
from pytuber import cli
from pytuber.core.services import YouService
from tests.utils import CommandTestCase, ConfigFixture
class CommandQuotaTests(CommandTestCase):
@mock.patch.object(YouService, "get_quota_usage")
@mock.patch.object(YouService, "quota... | [
"chris@komposta.net"
] | chris@komposta.net |
21f90cf761ed27de60b2f3a5a059e88edb7562ee | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_hatchet.py | 3ee3633a64a58ccd19ae48252680d868a128cd59 | [
"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 | 353 | py |
#calss header
class _HATCHET():
def __init__(self,):
self.name = "HATCHET"
self.definitions = [u'a small axe (= tool with a blade that cuts when you hit things with it)']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], ob... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6bd3295d27f377bb3ae91cf7f7f0ad42b8a46e60 | bd498cbbb28e33370298a84b693f93a3058d3138 | /Inspur/benchmarks/dlrm/implementations/implementation_closed/tests/buckle_embedding_test.py | 6f8033a42903ebcd748ea9664764bac2d035a03e | [
"Apache-2.0"
] | permissive | piyushghai/training_results_v0.7 | afb303446e75e3e9789b0f6c40ce330b6b83a70c | e017c9359f66e2d814c6990d1ffa56654a73f5b0 | refs/heads/master | 2022-12-19T16:50:17.372320 | 2020-09-24T01:02:00 | 2020-09-24T18:01:01 | 298,127,245 | 0 | 1 | Apache-2.0 | 2020-09-24T00:27:21 | 2020-09-24T00:27:21 | null | UTF-8 | Python | false | false | 2,042 | py | """Tests for buckle embedding"""
from absl.testing import absltest
import torch
from torch import nn
from dlrm.nn import BuckleEmbedding
# pylint:disable=missing-docstring, no-self-use
class DistEmbeddingBagTest(absltest.TestCase):
def test_smoke(self):
test_buckle_embedding = BuckleEmbedding([3, 5, 7,... | [
"vbittorf@google.com"
] | vbittorf@google.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.