blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8b1321f9162b7074137a5c527555ccaad201f2b | 7203877828aebb80f5a5809451d10da39c307e6a | /test/distributed/algorithms/test_join.py | 6ed8345f365e3a8d85d8e749d8533f392874ee7e | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | minitu/pytorch | 37361e9041437ce29682821b70fbf4136e715baf | 5ed6e4429e2a75cb3d0d573e007bc3417939e9bd | refs/heads/master | 2021-08-12T02:18:24.317899 | 2021-08-10T00:53:11 | 2021-08-10T00:54:43 | 170,204,590 | 0 | 0 | NOASSERTION | 2019-02-11T21:23:41 | 2019-02-11T21:23:41 | null | UTF-8 | Python | false | false | 16,873 | py | import contextlib
import os
import sys
from typing import Any, Optional
import torch
import torch.distributed as dist
if not dist.is_available():
print("Distributed not available, skipping tests", file=sys.stderr)
sys.exit(0)
from torch.distributed.algorithms.join import Join, Joinable, JoinHook
from torch.t... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
610d5cdc267e4a54433d81daedad04c0f8fa26c0 | c5fb49af6c4de5e5dde2981224dce8d39243d8c1 | /Pdf_Merging/apps.py | 8c0ad80f9835068107c554c70593b1e30fda2ff1 | [] | no_license | Ashish2831/TEXT-UTILS | 1631d5dcaea4ff11eb7b5fa323ff2ad13c8a57f1 | 6a905731269988001364648e46590a7a04496c8b | refs/heads/main | 2023-08-16T16:11:31.436503 | 2021-09-14T10:22:49 | 2021-09-14T10:22:49 | 374,950,398 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class PdfMergingConfig(AppConfig):
name = 'Pdf_Merging'
| [
"ashishpatil28032001@gmail.com"
] | ashishpatil28032001@gmail.com |
7ca4eecfe2397f0d485aeda40315a32a0818623e | 8a9dbfd7c2213652265269838ca9c15aad66a66f | /class-20161005/report/정동휘_식품생명공학과/grade_calculator.py | 9b0a53ccdbdcbbbbfb0588a42552fc3dd5fb7f8c | [] | no_license | askdjango/snu-web-2016-09 | 48ba3b0301be1e0f05f1e630dcfecac51827e779 | eaf703cc3ff7ddf3795a636ad1631624a87a9b70 | refs/heads/master | 2020-02-26T14:23:00.495594 | 2016-12-19T11:51:45 | 2016-12-19T11:51:45 | 68,677,254 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | result = {}
for i in range(1, 4):
name = input('{} 번째 학생 이름은? '.format(i))
ko_score = int(input('{}님의 국어 시험 점수는? '.format(name)))
en_score = int(input('{}님의 영어 시험 점수는? '.format(name)))
math_score = int(input('{}님의 수학 시험 점수는? '.format(name)))
result[name] = {
'ko_score': ko_score,
... | [
"allieuslee@gmail.com"
] | allieuslee@gmail.com |
a718fb9f186e8c294058abca07778ec93045f6d0 | af9268e1ead8cdb491868c14a2240d9e44fb3b56 | /last-minute-env/lib/python2.7/site-packages/django/db/migrations/utils.py | 7ce4ca8663c3ddcf8da046cd7f1629f47a953275 | [] | no_license | frosqh/Cousinade2017 | d5154c24c93ca8089eeba26b53c594e92cb6bd82 | c34d5707af02402bf2bb7405eddc91297da399ff | refs/heads/master | 2021-01-20T07:57:34.586476 | 2017-10-22T18:42:45 | 2017-10-22T18:42:45 | 90,074,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import datetime
import re
COMPILED_REGEX_TYPE = type(re.compile(''))
class RegexObject(object):
def __init__(self, obj):
self.pattern = obj.pattern
self.flags = obj.flags
def __eq__(self, other):
return self.pattern == other.pattern and self.flags == other.flags
def ... | [
"frosqh@gmail.com"
] | frosqh@gmail.com |
267fe8149bb5d82e174ccbfe25ade2e158bcf6bc | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.3/django/core/cache/backends/base.py | 074649a88f7f37492bf36becbb4864804ec40414 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.3/django/core/cache/backends/base.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
21496f14d0eeb0b566cc136a8393c58736bbaa3a | 63272ccdc6b0e7739e79dd66a309a55fd8e987ae | /hola.py | 0aa50053a99f80c100baabd940488eae6a70afce | [] | no_license | jcromerohdz/myProject | 93324061ddd4f4ca492d2c6b2d5a206c3d7a02d8 | 964286202cae5c0443ada55e0d467c2ada406966 | refs/heads/master | 2021-01-22T20:54:10.027553 | 2013-04-23T03:36:56 | 2013-04-23T03:36:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | __author__ = 'user'
print "Hola git"
| [
"jcromerohdz@gmail.com"
] | jcromerohdz@gmail.com |
990cf362c52b0604321d688b88a3fbe9bf48bbd7 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/gM4.py | fdb0064b8a489e72ae3a97d6d7c4a39405c21402 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
5b4643859114311f8d6323277fd4ffada3146b81 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-6089.py | aa9c35099e39105f7021024fcb8c84c40e2a2142 | [] | 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 | 31,698 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
f3259a87df330e939839e295315c2a730bbcd3a1 | 221cada2354556fbb969f25ddd3079542904ef5d | /Leetcode/53.py | 542846f48674eb52b129579efcd4ee597d7cdaf6 | [] | no_license | syzdemonhunter/Coding_Exercises | 4b09e1a7dad7d1e3d4d4ae27e6e006732ffdcb1d | ca71572677d2b2a2aed94bb60d6ec88cc486a7f3 | refs/heads/master | 2020-05-24T11:19:35.019543 | 2019-11-22T20:08:32 | 2019-11-22T20:08:32 | 187,245,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # https://leetcode.com/problems/maximum-subarray/
'''
# T: O(n)
# S: O(n)
class Solution:
def maxSubArray(self, nums: List[int]) -> int:
dp = [0]*len(nums)
dp[0] = nums[0]
result = dp[0]
for i in range(1, len(nums)):
if dp[i - 1] < 0:
dp[i] = nums[i]
... | [
"syzuser60@gmail.com"
] | syzuser60@gmail.com |
425c558f56bc92363d78905ea0157a314eb024a5 | 07539ecbcee0488ce4a0eb779583da3149cfac7b | /amonone/mail/models.py | 0c56dda41c125c637c4a429143771a2b70ceaf09 | [
"MIT"
] | permissive | outbounder/amonone | e151584ac38222b40c314d586ebadc4e0f43fce1 | 985fa147c1d98a4f57ff33ebd37ca0d938fe674d | refs/heads/master | 2020-12-25T13:33:46.425826 | 2013-07-11T08:54:32 | 2013-07-11T08:54:32 | 11,389,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | from amonone.web.apps.core.basemodel import BaseModel
class EmailModel(BaseModel):
def __init__(self):
super(EmailModel, self).__init__()
self.collection = self.mongo.get_collection('email_settings')
def save_email_details(self, data=None):
self.collection.remove()
self.collection.insert(data)
def get_e... | [
"martinrusev@zoho.com"
] | martinrusev@zoho.com |
94af3fbd4e6a1462d62229b90fc50b45d0115762 | 747f759311d404af31c0f80029e88098193f6269 | /addons/point_of_sale/wizard/wizard_pos_payment.py | 1404f4ff6d2ea1fdf9c774108e011d3bb45b25d1 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | /home/openerp/production/extra-addons/point_of_sale/wizard/wizard_pos_payment.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
1ee375c9ad6c64d94fa46b81938f9ace48c32246 | 83277e8b959de61b655f614b7e072394a99d77ae | /venv/lib/python3.7/site-packages/graphql/validation/rules/__init__.py | 056a530de90b0f265b8512ca66debc4458dbc8f6 | [
"MIT"
] | permissive | hskang9/scalable-django | b3ed144670c3d5b244168fdd38f33e1f596253c0 | 162e0f4a3d49f164af1d33298fa9a47b66508cbf | refs/heads/master | 2023-04-29T05:33:23.460640 | 2020-03-27T00:55:28 | 2020-03-27T00:55:28 | 247,036,359 | 2 | 1 | MIT | 2023-04-21T20:53:08 | 2020-03-13T09:40:37 | Python | UTF-8 | Python | false | false | 2,910 | py | from .arguments_of_correct_type import ArgumentsOfCorrectType
from .default_values_of_correct_type import DefaultValuesOfCorrectType
from .fields_on_correct_type import FieldsOnCorrectType
from .fragments_on_composite_types import FragmentsOnCompositeTypes
from .known_argument_names import KnownArgumentNames
from .know... | [
"hyungsukkang@Hyungsuks-Mac-mini.local"
] | hyungsukkang@Hyungsuks-Mac-mini.local |
00b09bb07ee546d00b56dca37a774c559f81dda9 | 6982c3c54ee9199d93fb89c61cfdcba15b9b7012 | /exercise/git_exercises/visitors_book/visitors_book/wsgi.py | 20d31dac8eebd8eb05a5e3d496a59265370e9973 | [] | no_license | gzgdouru/python_study | a640e1097ebc27d12049ded53fb1af3ba9729bac | e24b39e82e39ee5a5e54566781457e18c90a122a | refs/heads/master | 2020-03-29T11:33:13.150869 | 2019-03-08T09:24:29 | 2019-03-08T09:24:29 | 149,858,658 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
WSGI config for visitors_book project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"18719091650@163.com"
] | 18719091650@163.com |
8fd124b553f30e34b2daea187d61f7717b22fa81 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/vns/range.py | ebba918f860a70b9f9534be38894aba409af3ada | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,551 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
7a585e2db5523b1ba1a9cca50833de40373101ac | cdbd54f19b28c651e1945f4514a2a2a5431d4753 | /myspider/myspider/settings.py | fe55396cdd58a2b20c9a62c340c9ed8b6be7bf33 | [] | no_license | Knowledgeofitselfisriches/spider | 8ccc7e928da00dc7b53159fb53d6f38b16316ee9 | 797736b6ac850532efe42d9e60524d612d99ad02 | refs/heads/master | 2020-03-27T08:41:06.005591 | 2018-09-11T05:48:10 | 2018-09-11T05:48:10 | 146,277,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | # -*- coding: utf-8 -*-
# Scrapy settings for myspider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"283658013@qq.com"
] | 283658013@qq.com |
ba822ac4287b075913e8805e28bb41c076b5d62e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03543/s810389255.py | adf2bbfd787f4f2481953d91af3b2e9c140db7fd | [] | 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 | 54 | py | a,b,c,d=input()
print('NYoe s'[a==b==c or b==c==d::2]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5f36f7b5a2f455751488b2ddc7cfe19638b20074 | 7913bf8dee268d0ed0a96b6ef359abac24f4e613 | /code/backend/billing/migrations/0002_auto_20200512_1158.py | 34b08f9bf77070850a866489ba0306dbd6f8e330 | [
"MIT"
] | permissive | dorinapall/noe | 724236813fc130be550b80bb1701293c4d2775eb | 6d5682ab00a2cdc5cb419ecab57804c9f70d7b3a | refs/heads/master | 2022-11-11T17:29:22.365369 | 2020-06-18T09:12:58 | 2020-06-18T09:12:58 | 273,198,257 | 1 | 0 | MIT | 2020-06-18T09:35:22 | 2020-06-18T09:35:21 | null | UTF-8 | Python | false | false | 567 | py | # Generated by Django 3.0.5 on 2020-05-12 09:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('appointments', '0003_seat_doctor_name'),
('billing', '0001_initial'),
]
operations = [
migrations.A... | [
"kissgyorgy@me.com"
] | kissgyorgy@me.com |
1f3a93ff2a1c44f7c16ced6b39a02975fae54761 | 3ba2d4091332b9d0a2b053f15a4d4ce4ae1c1ef0 | /中等148. 排序链表.py | 91439c6553ea5b008723b9dca4e9aafa03ea40cd | [] | no_license | ganhan999/ForLeetcode | 126272d34250035abda6c2d67222c2c186a3f80b | 9980a9e4bf448b2cf3fed98891a54b6d202a64db | refs/heads/master | 2023-05-01T14:21:49.883692 | 2021-05-12T08:59:51 | 2021-05-12T08:59:51 | 348,708,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | """
给你链表的头结点head,请将其按 升序 排列并返回 排序后的链表 。
进阶:
你可以在O(nlogn) 时间复杂度和常数级空间复杂度下,对链表进行排序吗?
示例 1:
输入:head = [4,2,1,3]
输出:[1,2,3,4]
示例 2:
输入:head = [-1,5,3,4,0]
输出:[-1,0,3,4,5]
示例 3:
输入:head = []
输出:[]
"""
"""
合并排序,利用递归,自上而下
"""
#大神做法1
class Solution:
def sortList(self, head: ListNode) -> ListNode:
def sort... | [
"940320304@qq.com"
] | 940320304@qq.com |
d8921437c42a694886143020ac2eb19bdc858564 | cefd6c17774b5c94240d57adccef57d9bba4a2e9 | /WebKit/Tools/Scripts/webkitpy/port/mock_drt.py | a9040250e0a998a072821655e74f06cd4edbb054 | [
"BSL-1.0"
] | permissive | adzhou/oragle | 9c054c25b24ff0a65cb9639bafd02aac2bcdce8b | 5442d418b87d0da161429ffa5cb83777e9b38e4d | refs/heads/master | 2022-11-01T05:04:59.368831 | 2014-03-12T15:50:08 | 2014-03-12T15:50:08 | 17,238,063 | 0 | 1 | BSL-1.0 | 2022-10-18T04:23:53 | 2014-02-27T05:39:44 | C++ | UTF-8 | Python | false | false | 10,044 | py | # 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 ... | [
"adzhou@hp.com"
] | adzhou@hp.com |
68ed6d9f89c9286e62ae56f6b282e9a8bcd5a948 | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/pygame/tests/event_test.py | d77479a7f229cb98e9bb038a0d0fde958fd29cd1 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 27,813 | py | import os
import sys
import unittest
import collections
import pygame
from pygame.compat import as_unicode
PY3 = sys.version_info >= (3, 0, 0)
SDL1 = pygame.get_sdl_version()[0] < 2
################################################################################
EVENT_TYPES = (
# pygame.NOEVENT,
# pyga... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
053856ce397586ba9db58c2ae9a1b73ace95139a | 82a42645c35b43542c63afb28d3dd0f891d71982 | /Stack_and_Queue/RedundantBraces.py | ec0bbb178edbfe11e9042351476d23c7e96b773f | [] | no_license | nehatomar12/Data-structures-and-Algorithms | 54e48ecd3cd360ff4ea0196243e4a8b4cdf6181f | b9566764de4faa0e95a4dfe90fe46f843ade4a8c | refs/heads/master | 2023-03-01T01:28:55.581679 | 2021-02-09T08:07:47 | 2021-02-09T08:07:47 | 292,843,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | """
Given a string A denoting an expression. It contains the following operators ’+’, ‘-‘, ‘*’, ‘/’.
Chech whether A has redundant braces or not.
Return 1 if A has redundant braces, else return 0.
Note: A will be always a valid expression.
Input 1:
A = "((a + b))"
Output 1:
1
Explanation 1:
((a +... | [
"neha.tomar@M305393FCHTDF.community.veritas.com"
] | neha.tomar@M305393FCHTDF.community.veritas.com |
7e1cef525621e6e50f5dd544e860b0e514055996 | be1619e4ef51753443fbc82dedcd9bb5c32749ab | /migrations/tests/loader_files/app2/0001_initial.migration.py | 945e1b041c80a3593d661466e63eee2da73c15f9 | [] | no_license | PeterUSA123/migrations | 5264ea0deed4dc8670f54a6abdf5000439e10cb4 | 7e5dfb7c32970d9f2163d779a2e225feb123c740 | refs/heads/master | 2020-09-10T07:39:25.911462 | 2012-09-04T18:51:15 | 2012-09-04T18:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from migrations.api import *
class Migration(BaseMigration):
actions = [
CreateModel(
name = "Book",
fields = [
("title", Field("django.db.models.fields.CharField", [], {"max_length": "100"})),
("author", Field("django.db.models.fields.related.Forei... | [
"andrew@aeracode.org"
] | andrew@aeracode.org |
a93f34a8cdbdade867aa61abe760744aaaa75b92 | 6879a8596df6f302c63966a2d27f6b4d11cc9b29 | /abc/problems070/063/a.py | 02f33edc8d9d964b8d1658030eac30bb91092235 | [] | no_license | wkwkgg/atcoder | 41b1e02b88bf7a8291b709306e54cb56cb93e52a | 28a7d4084a4100236510c05a88e50aa0403ac7cd | refs/heads/master | 2020-07-26T03:47:19.460049 | 2020-03-01T18:29:57 | 2020-03-01T18:29:57 | 208,523,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | A, B = map(int, input().split())
print("error" if A+B >= 10 else A+B) | [
"yujin@komachi.live"
] | yujin@komachi.live |
f0d8898bd3cd604ac6df4be28d7ffbec78e9e395 | 20d9130fdc21756c4f8fe255583922352f5c5762 | /src/DIRAC/Interfaces/scripts/dirac-framework-ping-service.py | 651aab2405ce29d834f1054882fa688175e87666 | [] | no_license | bopopescu/bes3-jinr | 095314e43f41f08bd48b248fe3ca627a5c009f58 | fdfd852c92a56192b8ee9970b66f0136e6e0afff | refs/heads/master | 2022-11-26T06:01:36.718508 | 2014-03-17T06:03:50 | 2014-03-17T06:03:50 | 282,113,617 | 0 | 0 | null | 2020-07-24T03:30:10 | 2020-07-24T03:30:09 | null | UTF-8 | Python | false | false | 1,430 | py | #!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-framework-ping-service
# Author : Stuart Paterson
########################################################################
"""
Ping the given DIRAC Service
"""
__RCSID__ = "55b8255 (2010-12-14... | [
"gavelock@gmail.com"
] | gavelock@gmail.com |
531256a3754c73218f5f4197dfd5e7e094ed1479 | d1032c2b568daf02de5cf2e7aaa33a608ffd20e1 | /Basic/1097_16694268(AC).py | 3e843332f77134831cb1f74c8ffc85ec0998a1ce | [] | no_license | Junhyeok1015/Codeup | 267edef68113951019d28d311d38aa91d6677bde | ee5207528fd22689311c2941b94d7ac2480fe0cc | refs/heads/master | 2023-02-12T17:10:06.481196 | 2021-01-17T02:34:23 | 2021-01-17T02:34:23 | 326,317,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | list_ = []
for _ in range(19):
a = list(map(int, input().strip().split(" ")))
list_.append(a)
n = int(input())
for i in range(n):
a, b = list(map(int, input().strip().split(" ")))
for i in range(19):
if list_[a-1][i] == 0:
list_[a-1][i] = 1
else:
list_[a-1... | [
"mo223772@naver.com"
] | mo223772@naver.com |
285ca8ee864c495bce6ae6df87254098f6f3ae2e | 4f875744ccae8fa9225318ce16fc483b7bf2735e | /facebook/phoneScreen/romanToInteger.py | b8b2400a7a9d68417e8d3c8bc1fe8508c27053a0 | [] | no_license | nguyenngochuy91/companyQuestions | 62c0821174bb3cb33c7af2c5a1e83a60e4a29977 | c937fe19be665ba7ac345e1729ff531f370f30e8 | refs/heads/master | 2020-07-27T05:58:36.794033 | 2020-04-10T20:57:15 | 2020-04-10T20:57:15 | 208,893,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 9 16:49:16 2019
@author: huyn
"""
def romanToInt(s: str) -> int:
d= {"I":1,"V":5,"X":10,"L":50,"C":100,"D":500,"M":1000}
if not s:
return 0
current = d[s[0]]
accumulate = d[s[0]]
for i in range(len(s)-1):
v = d[s[i+1]]
if v>cur... | [
"huyn@cvm6h4zv52.cvm.iastate.edu"
] | huyn@cvm6h4zv52.cvm.iastate.edu |
19a398780eab3ca00a2386b563a810fa549b5d18 | eadd15064aa74811e7a3718b617636627ef4fd47 | /web/migrations/0013_image_name.py | 197a63613795ccaf8996f8c4be245d15c0425935 | [] | no_license | topsai/plasrefine_backstage | 262f7bb032daa4d018aac1519e1139cb060c3f91 | 1eb34dd0b13ebdc2a42dd6ed1aaa2d08c18ab5fb | refs/heads/master | 2023-04-12T13:24:22.710108 | 2021-05-08T14:16:41 | 2021-05-08T14:16:41 | 361,993,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 3.2 on 2021-04-30 14:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0012_websetting_about'),
]
operations = [
migrations.AddField(
model_name='image',
name='name',
fie... | [
"hurte@foxmail.com"
] | hurte@foxmail.com |
5ec77929fa075f87c5fd7bb35794fb7e2d867deb | d2c163f246d28b8519f8c89de23556e43be91684 | /www/captcha/tests/__init__.py | 70006e5cbc74a152160e2618d4b24e8629350210 | [] | no_license | boogiiieee/Iskcon | d7a2b8bdc3002ef3306fc5e7ddc577504d8533c9 | b672dbafee06af3ee6d646c75f442d97133f5ec9 | refs/heads/master | 2021-09-04T03:11:06.770094 | 2018-01-15T04:21:36 | 2018-01-15T04:21:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,292 | py | # -*- coding: utf-8 -*-
from captcha.conf import settings
from captcha.models import CaptchaStore, get_safe_now
from captcha.fields import CaptchaField, CaptchaTextInput
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.utils.translation import ugettext_lazy as _
from django.core... | [
"shalyapinalexander@gmail.com"
] | shalyapinalexander@gmail.com |
57b116ce2d853c1a87b2103a9ab456fb8fb82aa5 | 97d8d8f303545583e04356279b58c59e41bcb0e7 | /TransitAdScreen/settings/base.py | bf8535f899ce787bb222211c9c15aefdd5549c83 | [
"Apache-2.0"
] | permissive | 8secz-johndpope/transit-advertising-screen-cms | 2493c270022ac03b17e4b4b1e9b426f568d01ed5 | 9c27d4d7ed9fe598c1c48ca96ee5d10f619c8683 | refs/heads/master | 2022-09-24T13:44:07.056409 | 2019-10-17T16:40:21 | 2019-10-17T16:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | """
Django settings for TransitAdScreen project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"raulsergio9@gmail.com"
] | raulsergio9@gmail.com |
3114d5b038163034c2754987fa9932c9df3025f7 | 07c4f43677af3c8384fd7dd2bd3498f80215625c | /async_worker/__init__.py | ee5e06e732c1aa9689d666bbde5e46a9066211be | [
"Apache-2.0"
] | permissive | cxy19941228/DeepRL | 4d898deede02047b4df0d48f40cb0e313137474a | 41627588fb2e37869a314ae1af0d272f3f302285 | refs/heads/master | 2021-08-08T07:56:04.830382 | 2017-11-09T23:38:42 | 2017-11-09T23:38:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from .actor_critic import *
from .continuous_actor_critic import *
from .n_step_q import *
from .one_step_sarsa import *
from .one_step_q import *
from .ppo import * | [
"zhangshangtong.cpp@icloud.com"
] | zhangshangtong.cpp@icloud.com |
ffc166071e09834e5de7d3b6d8d2e3cdb3f976c3 | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks599.py | 4909057f21e18b14ca08a7f5d62ff4a0a2c7b16f | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,922 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of wires in the CDC
n_wires = 3606
# Number of continuous features (E, t, dca)
n_features = 3
geom_dim = 2
class Gen(nn.Module):
def __init__(self, ngf, latent_dims, seq_len, encoded_dim):
sup... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
93de096df8ef3defb9087ea670888bea064f46de | fa82dad9e83206d4630a55141bf44f50cbf0c3a8 | /day1_python/01_python200_src/093.py | d62211e665cf90be84d1cdc4d581519076449edf | [] | no_license | jsh2333/pyml | 8f8c53a43af23b8490b25f35f28d85f1087df28d | 157dfa7cc2f1458f12e451691a994ac6ef138cab | refs/heads/master | 2021-03-27T22:26:38.254206 | 2020-04-26T06:35:11 | 2020-04-26T06:35:11 | 249,114,580 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | url = 'http://www.naver.com/news/today=20160831'
log = 'name:홍길동 age:17 sex:남자 nation:조선'
ret1 = url.split('/')
print(ret1)
ret2 = log.split()
for data in ret2:
d1, d2 = data.split(':')
print('%s -> %s' %(d1, d2))
| [
"jsh2333@gmail.com"
] | jsh2333@gmail.com |
dbd174bfddafd6ac8f11846488ad2bd44d95b29e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04044/s849053305.py | 0b1342b80952e0cfcb0dc7796192d0f3752b6f68 | [] | 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 | 374 | py | # row = [int(x) for x in input().rstrip().split(" ")]
# n = int(input().rstrip())
# s = input().rstrip()
def resolve():
import sys
input = sys.stdin.readline
n, l = [int(x) for x in input().rstrip().split(" ")]
s_list = [input().rstrip() for _ in range(n)]
s_list = sorted(s_list)
print("".joi... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6ccf0ca23a683d99e9f431477837de49ec028d4f | 9222114c0b39007eb1af715cf18fc95ff282b38c | /problems/415. Add Strings/1 - Backtracking.py | a96022d06c9d0b76ef3f2cbc3458d4236d83b04c | [] | no_license | Vasilic-Maxim/LeetCode-Problems | 1a2a09edca6489a349e5d69d087279630cff157d | 359f3b78da90c41c7e42e5c9e13d49b4fc67fe41 | refs/heads/master | 2021-07-10T22:03:29.327658 | 2021-06-07T12:42:52 | 2021-06-07T12:42:52 | 246,826,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from itertools import zip_longest
class Solution:
def addStrings(self, num1: str, num2: str) -> str:
zero = ord("0")
carry = 0
result = []
for n1, n2 in zip_longest(reversed(num1), reversed(num2)):
n1 = 0 if n1 is None else ord(n1) - zero
n2 = 0 if n2 is Non... | [
"lmantenl@gmail.com"
] | lmantenl@gmail.com |
ee91dee71252520a9168a9f851ead2970876ff66 | 45bbb2d050c5e6acf85a2180f5c27d415a994185 | /KerasCode/mlp.py | a0e6547bf19f7e6756d192aad9932e15d4cf696d | [] | no_license | afcarl/dl_code | e25f07e9e7eba59d83ea0ddb90637bce605b35c9 | 2b0423673faba67f6ad653c04b6cd045a66f5e80 | refs/heads/master | 2020-03-22T09:59:01.003729 | 2017-05-17T02:34:20 | 2017-05-17T02:34:20 | 139,873,303 | 1 | 0 | null | 2018-07-05T16:11:15 | 2018-07-05T16:11:14 | null | UTF-8 | Python | false | false | 764 | py | from keras.models import Sequential
from keras.layers import Dense
import numpy
import os
import TheanoCode
# theano.config.device = 'gpu'
seed = 7
numpy.random.seed(seed)
data_path = "/".join([os.getcwd(), "../Data/pima-indians-diabetes.data.txt"])
dataset = numpy.loadtxt(data_path, delimiter=",")
X = dataset[:,0:8]... | [
"zhaosanqiang916@gmail.com"
] | zhaosanqiang916@gmail.com |
91cebbe901bc6befd8740948246c41c36841c760 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2022_10_01_preview/operations/_application_group_operations.py | d525932cebd7a394c442f8b7de0dd59bdceb6620 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 26,182 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
80e000c9d12a4180c7aa61e175235c04a2c00eb6 | a1a43879a2da109d9fe8d9a75f4fda73f0d7166b | /api/tests_v2/zeros_like.py | 52f67cbec0a4d72971c03445e047433928e0e79a | [] | no_license | PaddlePaddle/benchmark | a3ed62841598d079529c7440367385fc883835aa | f0e0a303e9af29abb2e86e8918c102b152a37883 | refs/heads/master | 2023-09-01T13:11:09.892877 | 2023-08-21T09:32:49 | 2023-08-21T09:32:49 | 173,032,424 | 78 | 352 | null | 2023-09-14T05:13:08 | 2019-02-28T03:14:16 | Python | UTF-8 | Python | false | false | 1,332 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
1b27e6f24cd077a7f67416dc90786e02d2bbef4a | 78337fc3cd0d3be2307f42c4c7ae51bedb1d468b | /opengever/base/subscribers.py | 9c4dbb486292e6ee55509845467899ce58b5da03 | [] | no_license | sensecs1/opengever.core | af19bafce4491f3c648682783fc1c918dc1f5944 | 0666e86fade7835c98a118fa6319071f859fcdb5 | refs/heads/master | 2021-01-18T07:44:56.965935 | 2015-03-13T15:26:30 | 2015-03-13T15:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from five import grok
from OFS.interfaces import IObjectClonedEvent
from opengever.base import _
from plone.dexterity.interfaces import IDexterityContent
from zope.component.hooks import getSite
@grok.subscribe(IDexterityContent, IObjectClonedEvent)
def create_initial_version(obj, event):
"""When a object was cop... | [
"lukas.graf@4teamwork.ch"
] | lukas.graf@4teamwork.ch |
99f3a49b00e82b89201fee4a187fdd21f2dc6a13 | 20b6cdf48fab05027fa65cceb7812c0f4cd784f8 | /epidemics/utils/nested.py | 7e9cb281cbbb21fb7f806c49d04994c46f443701 | [] | no_license | cselab/covid19 | f260db9633ae77cd6857616b9a19168d647166fd | a867fed2a3cf7681f38fa9701b85a90400b1ad62 | refs/heads/master | 2023-02-07T14:55:30.703399 | 2020-10-05T09:12:18 | 2020-10-05T09:12:18 | 251,288,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,925 | py | import numpy as np
from multiprocessing import Pool
import pickle
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
class WorkerPool(object):
def __init__(self, cores):
self.pool = Pool(processes=cores)
self.size = cores
def map(self, function, tasks):
return self... | [
"wadaniel@ethz.ch"
] | wadaniel@ethz.ch |
ee6666217155863ba3f1a1250154627c6bc7f1d6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch119_2020_09_19_21_49_34_845287.py | a275184e3182156e1d1a024a8eccecd18f2097b8 | [] | 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 | 173 | py | import math
def calcula_euler(x,n):
contador=2
inicio=1+x
while(soma<n):
inicio+=x**contador/math.factorial(contador)
contador+=1
return soma | [
"you@example.com"
] | you@example.com |
df81a6c8727317f97f6d51e6bdccbaa900d8640b | d4d2e656c5eb5a92165b5040059c1dc49cf54241 | /deprecated.py | e23531bcdb68b8a7f2a6657ded7c4af1a8ba3c3f | [] | no_license | ctmakro/lineopt | 9ee525fa525c4b0eba8d5c76cbc5d03ee6c5e4fe | e3eb06c858fa020b7688f6027e61c53e9ec5006b | refs/heads/master | 2020-03-24T03:40:56.324513 | 2019-01-07T11:01:23 | 2019-01-07T11:01:23 | 142,428,487 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,568 | py | import cv2
from cv2tools import vis,filt
import numpy as np
from scipy.optimize import minimize
# class that estimates pyramid loss between 2 images.
class PyramidLoss:
@staticmethod
def build_pyramid(img):
a = [img]
for i in range(5):
a.append(cv2.pyrDown(a[-1]))
return a
... | [
"ctmakro@gmail.com"
] | ctmakro@gmail.com |
073c1c64a092fcea66e7e1774e63ffd5b6ae4e58 | 388d81ea4354877326a772bcaa54d276cee81283 | /Data Structures/1-D/Help Jarvis!.py | bc928fe401aa39cd1cc37d252fc1636df73cb52a | [] | no_license | anshumanairy/Hacker-Earth | 61a67fb5e6ce3ef4068ad904480386bf7095f1f7 | 9c3ed575eb7007b055cb149ff644a91f287d4de7 | refs/heads/master | 2022-11-28T21:48:38.450999 | 2020-08-08T20:45:49 | 2020-08-08T20:45:49 | 285,909,494 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | def func():
T=int(input())
for i in range(T):
list1=list(input())
list1.sort()
check=1
for j in range(len(list1)-1):
if(int(list1[j+1])!=int(list1[j])+1):
check=0
print('NO')
break
if(check==1):
print... | [
"anshuman.airy04@gmail.com"
] | anshuman.airy04@gmail.com |
9cdde1ad8c49b5c7e5c0f70037b8e64f9ba08427 | 228de37ad02ee9af51a208ad3287224af1f2c472 | /app/travel/models/city_information.py | 6d19042d174b2b9a6fca2575bc78d656d1a06ecf | [] | no_license | kahee/MySmallTrip | cb0b0a9afdee009f3b4055af92af0bc5ec50f0cd | 75e1bf32993f137e70360f6aa3b22904d61bd24c | refs/heads/master | 2022-12-11T18:57:12.494011 | 2018-09-02T09:12:59 | 2018-09-02T09:12:59 | 130,799,032 | 1 | 0 | null | 2022-12-08T01:01:50 | 2018-04-24T05:08:26 | Python | UTF-8 | Python | false | false | 2,034 | py | import magic
from .product_base import ProductBase
from django.core.files import File
from django.db import models
from io import BytesIO
from PIL import Image
class CityInformation(ProductBase):
name = models.CharField('도시명', max_length=20)
continent = models.CharField('대륙', max_length=20)
nationality ... | [
"hsj2334@gmail.com"
] | hsj2334@gmail.com |
ccd5157c5b4c9a6d812fe92d0c2ef85a5cdc3286 | c78f01652444caa083ca75211bae6903d98363cb | /devel/.private/hector_mapping/lib/python2.7/dist-packages/hector_mapping/msg/_HectorDebugInfo.py | 7a372d58becc1ac75f20e0ad7199a48ec033dc09 | [
"Apache-2.0"
] | permissive | arijitnoobstar/UAVProjectileCatcher | 9179980f8095652811b69b70930f65b17fbb4901 | 3c1bed80df167192cb4b971b58c891187628142e | refs/heads/master | 2023-05-01T11:03:09.595821 | 2021-05-16T15:10:03 | 2021-05-16T15:10:03 | 341,154,017 | 19 | 7 | null | null | null | null | UTF-8 | Python | false | false | 5,561 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from hector_mapping/HectorDebugInfo.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import hector_mapping.msg
class HectorDebugInfo(genpy.Message):
_md5su... | [
"arijit.dg@hotmail.com"
] | arijit.dg@hotmail.com |
e293bee7a84c70a651836bf80d330077ffc03c8c | 65f8211fc33eb5f9ac1ff0d68902226ca9a58692 | /graph_algorithms/prim_list.py | 626165c26ecc2a08d4d6f6a6ddc24a40752d16f2 | [] | no_license | szarbartosz/asd-python | 46869f5699a1ef661e2df02e523af0adcddbbbda | 0130cc3dcbba6ad62e1516c98b5cbab85848d619 | refs/heads/master | 2022-12-13T19:02:53.699381 | 2020-09-11T13:29:31 | 2020-09-11T13:29:31 | 242,975,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from queue import PriorityQueue
def prim_list(G, s):
V = len(G)
Q = PriorityQueue()
visited = [False] * V
parent = [None] * V
d = [float('inf')] * V
d[s] = 0
Q.put((d[s], s))
def relax(u, v, w):
if d[v] > w:
d[v] = w
parent[v] = u
Q.put((d[v... | [
"szarbartosz@gmail.com"
] | szarbartosz@gmail.com |
cb6e622957ed4c3fb52b382cdca781a32cd17fb3 | a6991b575847377f28b82cd725c67b324bc53d6c | /coderunner-quala/game.py | 0d4956df8ae63487d32b0d091991cfcd6bb994cf | [] | no_license | zakuro9715/atcoder | 7732712405b284487da87dfb56782d855a6f6af6 | 6c50e66e2de1964bb23d200c2c8d35af84f17b69 | refs/heads/master | 2021-05-16T03:17:57.743717 | 2019-12-06T07:57:59 | 2019-12-06T07:57:59 | 32,463,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import urllib.request
import settings
endpoint = 'https://game.coderunner.jp'
token = settings.token
def submit(text):
return _request('{0}/q?str={1}&token={2}'.format(endpoint, text, token))
def update_profile(text):
return _request('{0}/profile?text={1}&token={2}'.format(endpoint, text, token))
def _reques... | [
"zakuro@yuzakuro.me"
] | zakuro@yuzakuro.me |
4b7eae302416a02232a6fb6ec48defa11278f409 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/devtools/cloudtrace/v2/devtools-cloudtrace-v2-py/tests/unit/gapic/trace_v2/test_trace_service.py | b9a4db869886afcb5775784ed8a4698949b38153 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,561 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
0f8cc58656b66668df127c7d77176ab02c8389e5 | 88d555a009f9075e59177fac70036892f397b439 | /basenji/archive/augmentation.py | 50b223c90c872923f1db563e272389153f3313a9 | [
"Apache-2.0"
] | permissive | calico/basenji | f9f406971d355dda81821dcf274696a7d27e332d | 615b9eec8a591783b16d959029ddad08edae853d | refs/heads/master | 2023-09-04T11:14:15.620786 | 2023-07-27T00:05:13 | 2023-07-27T00:05:13 | 96,346,574 | 326 | 143 | Apache-2.0 | 2023-08-16T00:36:32 | 2017-07-05T17:54:18 | Python | UTF-8 | Python | false | false | 5,944 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | [
"drk@calicolabs.com"
] | drk@calicolabs.com |
6863d4fb2fa2c83913a6cfce35a272bbbd68db57 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/f828b38421dfbee59daf/snippet.py | b7817810ac5fdc2fc629f33ee3356f6c29cd2707 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 2,937 | py | """
Physics simulation with PyODE followed by a (basic) rendering with Vapory
See the result here: http://i.imgur.com/TdhxwGz.gifv
Zulko 2014
This script is placed in the Public Domain (Licence Creative Commons 0)
"""
# =============== FIRST PART : SIMULATION WITH PyODE
import ode
lx, ly, lz, density = 1.0, 1.0, ... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
7fae4a50aac90c167dfa619bd30118ca39f52bff | d30ebe0bc57289f2f566cecab68b1c338f34c4ad | /bigml/tests/test_02_dev_prediction.py | 1e85df76644faa9bbd13f104ae6f50345e37bc5d | [
"Apache-2.0"
] | permissive | alanponce/python | cdfaee04a36dd19ab13cce7e9d8fed557e0d9cc8 | 9423b4c4968b81ee14cef1ab6cd62d23dfa8bd26 | refs/heads/next | 2020-12-28T23:45:26.384281 | 2016-04-29T01:38:58 | 2016-04-29T01:38:58 | 57,441,721 | 1 | 0 | null | 2016-04-30T12:52:05 | 2016-04-30T12:52:03 | Python | UTF-8 | Python | false | false | 3,325 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2015-2016 BigML
#
# 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 requi... | [
"merce@bigml.com"
] | merce@bigml.com |
077c541ab06e9bf347eb23beeab6465e7d5db980 | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/surface/organizations/set_iam_policy.py | 929a22f897c4a754e6a303c96cd35346964f7d5e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 2,780 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"me@gareth.codes"
] | me@gareth.codes |
7bd188b9a79352c9745f901ed5b9ffc3d20ca7ee | a6fc9cec97fbbd6ecc08715c43e4dd53606e2110 | /_apscheduler/example/config.py | 30569ac472e19331db956c59d43ebbe6fa580d60 | [] | no_license | BennyJane/python-demo | 2848acaaa81d5011d9dfc1585b3d6b685178f88e | 75098ec4f9c8288d637ee1f9585f824fcb5267ee | refs/heads/master | 2023-04-11T12:24:30.245205 | 2021-04-24T23:47:56 | 2021-04-24T23:47:56 | 264,815,200 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # !/usr/bin/env python
# -*-coding:utf-8 -*-
# PROJECT : Python-Exercise
# Time :2020/12/8 23:02
# Warning :The Hard Way Is Easier
from apscheduler.jobstores.redis import RedisJobStore
# from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore
from apscheduler.executors.pool import ThreadPoolExecutor... | [
"3355817143@qq.com"
] | 3355817143@qq.com |
e95d133fd1c2811df04b70f079d3dca33c08a7e3 | c913c952cf4019d67f02bf1971917116da375c81 | /Data/OMIMresults/omimResults1000to1020.py | 6fb25ec53d1ed4b1888151c50da205c21fa676e7 | [] | no_license | jiangchb/OMIMscraping | 57afa5b2f8b7ca975e7459814e0410a872f71990 | 27d4ac8faea526b1c70937317caec064bed00a0a | refs/heads/master | 2022-03-14T21:35:56.102665 | 2019-11-22T15:48:48 | 2019-11-22T15:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87,366 | py | omim = {'omim': {
'version': '1.0',
'searchResponse': {
'search': '*',
'expandedSearch': '*:*',
'parsedSearch': '+*:* ()',
'searchSuggestion': None,
'searchSpelling': None,
'filter': '',
'expandedFilter': None,
'fields': '',
'searchReport': None,
'totalResults': 7368,
'startIndex': 1000,
'endIndex': 1019, ... | [
"jhostyk@gmail.com"
] | jhostyk@gmail.com |
593d13c224a279fdd6e7316dac0be8555af09385 | 491f9c9b618242953329a8e633fd9bf0bb1cb3fe | /learn_pytest/python_examination/sync_lock.py | 5519da2e10fea248403d3b16ef3f4f2f0ac1fac3 | [] | no_license | xshen1122/Scripts | 656d599e47a70a3b3e89e4f95cf97ee391ff9a7e | c1ed60abc7885d4a86ba077efc8bcf0fbdbafd75 | refs/heads/master | 2021-06-28T04:46:31.370809 | 2020-10-21T07:52:15 | 2020-10-21T07:52:15 | 172,480,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | # sync_lock.py
#coding=utf-8
import threading
import time
'''
charactors:
1. only 1 global
2. only 1 lock
3. before add, acquire lock,after add, release lock
'''
g_num = 0
# 创建一个互斥锁
# 默认是未上锁的状态
mutex = threading.Lock()
def work1(num):
global g_num
for i in range(num):
mutex.acquire() # 上锁
g_n... | [
"xueqin.shen@outlook.com"
] | xueqin.shen@outlook.com |
ed59d8a4c0d35e75c635155b41d8cc44e1c46c8b | 336b63131998e41e9968bbb036d4244ab259d479 | /lesson4_full_responsiveness/full_responsive_blog/blog/__init__.py | a1ac2bb4d1582f9183f80af99300c66def808063 | [] | no_license | jreiher2003/responsiveImages | 1c93e32143784d63e149354f216b513e275c93b2 | ed8acbc2695bd55b30c9d60d39a83caf2819e431 | refs/heads/master | 2020-06-05T14:48:47.482907 | 2015-08-24T14:30:02 | 2015-08-24T14:30:02 | 40,184,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | from flask import Flask
app = Flask(__name__)
from blog import views | [
"jeffreiher@gmail.com"
] | jeffreiher@gmail.com |
3ebef0181194e685a308c0d0dc844268473d9e40 | b3330bd3365767b89afb9c432f4deb722b39ac1c | /python/interviews/airbnb_interview.py | 0606e6cdb6d380deac6a5ec412d64fba6ca83161 | [] | no_license | hguochen/algorithms | 944df332d5b39220bd59cbd62dc74b12e335fb9e | 703e71a5cd9e002d800340df879ed475a404d092 | refs/heads/master | 2022-02-27T12:11:10.607042 | 2022-02-18T21:04:00 | 2022-02-18T21:04:00 | 13,767,503 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | '''
A host gets a set of back to back reservation requests (inquiries) for stays
of various lengths. The information about these requests is stored in an array,
where each value is an integer representing the length of a stay in nights. All
of these inquiries are back to back, which means that stay number i+1 starts
ri... | [
"hguochen@gmail.com"
] | hguochen@gmail.com |
dee6ff4b161070ca78004c953b96b987c2b5e47f | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/graph/job/MoveVertexToCenterAnimatorFunctionGraphJob.pyi | 1a8355245b98205e284af676d6f82d0cd3aae7d4 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | pyi | import ghidra.graph.job
import ghidra.util.task
import java.awt.geom
import java.lang
class MoveVertexToCenterAnimatorFunctionGraphJob(ghidra.graph.job.MoveViewAnimatorFunctionGraphJob):
def __init__(self, __a0: edu.uci.ics.jung.visualization.VisualizationServer, __a1: object, __a2: bool): ...
def canS... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
6a12630e2c604bd3d4846c1c689b8ef29ce522f5 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/MMseg-swin/configs/segformer/segformer_mit-b3_8x1_1024x1024_160k_cityscapes.py | 8eda8e4380774b352568fcd4f9bafd8ea178d8d0 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,795 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
0ae6ded01b3c8dfb6041f106bfef7ba3f04ad22b | 23561a4d2a9c169b8c2fdeb330f6ff4e2d2e4581 | /dayu_widgets/examples/MMessageTest.py | fc96b0a5b93cfdc7e6ff28861c8d997c2e72e752 | [
"MIT"
] | permissive | DangoWang/dayu_widgets | 3e04516d15bd73e8544c17deb2ce91f80981bce1 | 980a3d40388e2022cc581dd1b9c6e9ed19788f35 | refs/heads/master | 2020-06-06T05:37:24.986564 | 2019-06-04T12:06:15 | 2019-06-04T12:06:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################
# Author: Mu yanru
# Date : 2019.2
# Email : muyanru345@163.com
###################################################################
import functools
from dayu_widgets.MButtonGroup import MPushButtonGroup... | [
"muyanru@phenom-films.com"
] | muyanru@phenom-films.com |
f1259a4f81b2d648cd09e4d43b32528aacea3340 | 491235d50ab27bb871d58a5dfff74d6a4aa9bbe6 | /pong-client/pong.py | 0df4af0d73a6bda898022ba8e51b66bc7b2083b6 | [] | no_license | elgrandt/Pong-Network | 768bb861757d1fb98be3b761a66ad14e632f7932 | 204e1c5d9fbd53eece906d56df394602bdc269b6 | refs/heads/master | 2022-12-06T16:12:01.506699 | 2020-08-18T03:27:47 | 2020-08-18T03:27:47 | 288,315,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,305 | py | import pygame
import network
from gui import server_list,events,server_connect_menu,status_cur,loading
import gui
import global_knowns
from twisted.internet import reactor,threads
import sys
import thread
import global_knowns as gk
import elements
class game:
def __init__(self,IOSYS):
self.IOSYS = IOSYS
... | [
"dylantasat11@gmail.com"
] | dylantasat11@gmail.com |
a2c5d72364cb3e960aa0ad31b96f0ece5611e5db | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /case/world/different_point/work_or_day.py | ec81da39db35106ef6fe892116e21fe8b9443a91 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py |
#! /usr/bin/env python
def little_time(str_arg):
thing(str_arg)
print('be_woman_with_new_company')
def thing(str_arg):
print(str_arg)
if __name__ == '__main__':
little_time('leave_different_person')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
3262ec6b92ac1240518c3b7f9d92a29fc31d4712 | 74434b547122c5f13f748c981851bfbdfdfc3a32 | /orders/migrations/0003_auto_20200509_1214.py | f98f90ce8ca8900504147176259d769937090bb0 | [] | no_license | anthonylauly/My-Shop---Django-2-By-Example | a4a597a6f1d243aebc74e30005034da4b3a0cf4a | 2e47abe19e1fc1f35ad73049f1f077ee805ad945 | refs/heads/main | 2023-01-30T00:20:44.343128 | 2020-12-08T06:05:43 | 2020-12-08T06:05:43 | 313,935,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # Generated by Django 2.2.12 on 2020-05-09 12:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('orders', '0002_order_braintree_id'),
]
operations = [
migrations.AlterModelOptions(
name='order',
options={'ordering': ('-c... | [
"anthony.lauly1833@gmail.com"
] | anthony.lauly1833@gmail.com |
a4dd4b1312533cde33af7a3832573538a1280377 | ad8bb38dc80e5898d59f140b93e044cca86a8c02 | /greedy-algorithms/assignment_2/tests/test_clustering.py | 8d7d0f0bb07293e8eac1cc5ff3b05fb7986c23ad | [] | no_license | ybim/stanford-algs | 5c4358fd7fa4e23ae6c1660b97d7596c4e6d4400 | 6c4749f2a4c2fc36630f74833acd352ce08b2a43 | refs/heads/master | 2021-03-04T03:45:13.444826 | 2018-03-25T21:07:28 | 2018-03-25T21:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | import os
import os.path
import logging
from ..clustering import read_file, maximum_spacing
import pytest
test_dir = os.path.join(os.path.dirname(__file__),
'cluster_cases')
def lookup_spacing(f):
f = f.replace('input', 'output')
with open(f, 'r') as handle:
return int(hand... | [
"trendahl@slac.stanford.edu"
] | trendahl@slac.stanford.edu |
c87160c690087c80faa23886e3d2eb5ad52a67c4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_53/143.py | d02c162e499137e8369e07af73f72116b53679db | [] | 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 | 258 | py | #!/usr/bin/env python
f = open('A-large.in', 'r')
n = int(f.readline())
count = 0
for line in f:
res = 'OFF'
count+=1
(n,k) = line.split()
n = int(n)
k = int(k)
if k>0:
if k%(2**n) == (2**n-1):
res = 'ON'
print 'Case #' + str(count) + ': '+ res
| [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
839b24b461961df7d7a77ebcc140ceeea25f949d | 265c94e9b4fdfd1aefbcef85242db4e1beef45df | /src/ch4/predictData_2015_0.25.py | 8d62a5850ed480818401d16854286573eee494f2 | [] | no_license | Relph1119/machine-learning-blueprints | 283cc1a6ee843ae4c806466af8f9a0df2325ecb6 | c46c5bd93bd781f96d41a80a03a797ca3e673627 | refs/heads/master | 2022-12-09T11:34:34.883337 | 2020-08-26T08:48:24 | 2020-08-26T08:48:24 | 136,500,353 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | import getFeature as gft
from sklearn.ensemble import RandomForestClassifier
from sklearn import linear_model
import pandas as pd
import matplotlib.pyplot as plt
X = gft.X
ipos = gft.ipos
X_train, X_test = X[173:], X[:173]
y_train = ipos['$ Chg Open to Close'][173:].map(lambda x: 1 if x>=.25 else 0)
y_test = ipos['$ C... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
0e9b6c56ee63c623900c65faf8d6ad30c2b7eb88 | 7fc3d33c2ba5426ee6d68e80dd6c279320051ac2 | /nvis/base.py | d53390d0995cc0c38c002e377283d6d654f0ce95 | [] | no_license | sinhrks/nvis | e2f4b8382a3fe99f0c69051cfe64ee3d6ae29e51 | 7efb98f812a39572a9d2207ce5689ac0a56ba44f | refs/heads/master | 2021-01-12T13:26:41.363157 | 2016-09-25T22:14:19 | 2016-09-25T22:14:19 | 69,165,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,704 | py | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import collections
import six
import traitlets
from enum import Enum
import nvis.common as com
class _JSObject(traitlets.HasTraits):
"""
Base class for JS instances, which can be converted to
JavaScript instance
"""
... | [
"sinhrks@gmail.com"
] | sinhrks@gmail.com |
90f1ed30332f1619a1573ce61dab44dbb952e827 | 117f066c80f3863ebef74463292bca6444f9758a | /ray/do.py | a0649d1bcc56f44ebc03bdcbe163b03e6ef80cbd | [] | no_license | cottrell/notebooks | c6de3842cbaeb71457d270cbe6fabc8695a6ee1b | 9eaf3d0500067fccb294d064ab78d7aaa03e8b4d | refs/heads/master | 2023-08-09T22:41:01.996938 | 2023-08-04T22:41:51 | 2023-08-04T22:41:51 | 26,830,272 | 3 | 1 | null | 2023-03-04T03:58:03 | 2014-11-18T21:14:23 | Python | UTF-8 | Python | false | false | 322 | py | import numpy as np
import ray
def init():
return ray.init()
def bounce():
ray.disconnect()
# might be incorrect
return ray.init()
def f(x):
return x ** 2
f_remote = ray.remote(f)
def g(x, seed=1):
np.random.seed(seed)
x = np.random.randn(10, 5) + x
return x
g_remote = ray.remote(g... | [
"cottrell@users.noreply.github.com"
] | cottrell@users.noreply.github.com |
f8e52d6fa581c4d3b98559e464663fb186f6b5f8 | c2e50f81a127b83fd181442f4d7a5b4751d767e6 | /tools/coverage/gcda_clean.py | c222c448a3d91facd453d8ebf9d68be989166fed | [
"Apache-2.0"
] | permissive | Thunderbrook/Paddle | 72eda072fae8fd7d555198aadec7ec8899ccb387 | 4870c9bc99c6bd3b814485d7d4f525fe68ccd9a5 | refs/heads/develop | 2022-11-05T09:53:16.633465 | 2020-04-09T09:17:40 | 2020-04-09T09:17:40 | 196,961,339 | 0 | 0 | Apache-2.0 | 2020-12-17T08:57:33 | 2019-07-15T08:51:53 | C++ | UTF-8 | Python | false | false | 1,825 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" usage: gcda_clean.py pull_id. """
import os
import sys
from github import Github
def get_pull(pull_id):
"""Get pull.
Args:
pull_id (int): Pull id.
Returns:
github.PullRequest.PullRequest
"""
token = os.getenv('GITHUB_API_TOKEN',... | [
"luotao02@baidu.com"
] | luotao02@baidu.com |
c0a77d989d2367e946c726db66d379941cb95e58 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210529115051.py | 1db23d5522089aab30d37049645fc3bb97d85fce | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,895 | py | from flask import Flask, render_template, redirect, url_for, flash, request
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
fb7165c445a5220131bc572f6c89d995c80cc8bb | e27eebd9cacba56eb0e161cf9584b856db4543b5 | /code/version-demo/venv/bin/django-admin | f3b2a60f6246b15c8ef89d632a053b19ff026f34 | [] | no_license | Dosimz/django-rest-framework-notes | fd374f9793057f9fbfe85c072912a019ef26b73a | 1d0cf0e9cd9042e432f883cd9c3fa2504e5b9a22 | refs/heads/master | 2020-06-25T15:36:33.700321 | 2019-08-03T04:26:40 | 2019-08-03T04:26:40 | 199,354,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | #!/run/media/yuyi/068AE93F8AE92BBD/python/django-rest-framework/code/version-demo/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(exec... | [
"Vhzix24@gmail.com"
] | Vhzix24@gmail.com | |
6f2dabcbae6f1bfd32f6f0a5a6ad9d3664682f52 | 05bf7de1337bc938578accba64416863cec1ed63 | /bin/Python27/Lib/site-packages/babel/messages/extract.py | efddbf5e691c23c9a2e7cf1af5308e72897a7e90 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | metamorph-inc/openmeta-mms | d0dccae88e7532594f02c5eff8daa74c6c0e4010 | 2644cb7273916e36c3725785fc9a44948d64c343 | refs/heads/master | 2023-04-06T11:09:36.316306 | 2023-03-28T18:17:55 | 2023-03-28T18:17:55 | 70,078,378 | 21 | 8 | NOASSERTION | 2023-01-14T09:31:14 | 2016-10-05T16:29:54 | Python | UTF-8 | Python | false | false | 26,281 | py | # -*- coding: utf-8 -*-
"""
babel.messages.extract
~~~~~~~~~~~~~~~~~~~~~~
Basic infrastructure for extracting localizable messages from source files.
This module defines an extensible system for collecting localizable message
strings from a variety of sources. A native extractor for Python source
... | [
"tthomas@metamorphsoftware.com"
] | tthomas@metamorphsoftware.com |
2678e12e0ef37185b07dd5045587321dab24ceab | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1538.py | f953c8478ab10037f18a92cc014c6473535f8868 | [] | 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,103 | py | #!/usr/bin/env python
row = 4
col = 4
def getState(matrix):
hasEmpty = False
# Check row
for i in range(4):
flag = matrix[i][0]
if (matrix[i][1] == flag or matrix[i][1] == 'T') \
and (matrix[i][2] == flag or matrix[i][2] == 'T') \
and (matrix[i][3] == flag or... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
55ac6c0ae11f11916c7b39010ebf387a1da71342 | a515ea9f5e34116789111551e510998c41d5de13 | /projet/utilisateur/apps.py | ce28368522a4d6f3d831f1efd42aa7b743bb6d2e | [] | no_license | ometeore/nutella | ad2073d533fdbb93bee8a330fbc74fd58c096f1f | 3086b09972ddb1e08c8cc58fb2fc1abef93d2147 | refs/heads/master | 2022-12-11T03:01:07.387249 | 2020-05-15T11:16:19 | 2020-05-15T11:16:19 | 232,634,085 | 0 | 0 | null | 2022-04-22T23:01:07 | 2020-01-08T18:44:53 | CSS | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class UtilisateurConfig(AppConfig):
name = "utilisateur"
| [
"pilt64@hotmail.fr"
] | pilt64@hotmail.fr |
41187fee24fba11e59e9c8b13bd1af25a462c4bd | 3854700ad938a19efbb934fb0706793d70848ff1 | /docs/python/algorytmy/heron.py | 378735c8ff661796f1d4195070da01ca9670741d | [] | no_license | xinulsw/linetc | 0e0c94f3bd814a9ef8da9f2613785f605c04ed6e | 7311063d640ca1889dca1cd9d6f8b40541c8809a | refs/heads/master | 2022-06-21T05:40:32.139937 | 2022-05-27T15:33:05 | 2022-05-27T15:33:05 | 28,744,486 | 1 | 5 | null | 2016-12-30T14:13:33 | 2015-01-03T13:30:50 | Python | UTF-8 | Python | false | false | 724 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Obliczanie wartości pierwiastka kwadratowego z podanej liczby
# przy użyciu metody Herona: a(n) = (a(n-1) + x / a(n-1)) / 2
# <eCG>
def pierwiastek(x, d):
a = x # inicjalizacja szkuanej wartości
while abs(a - (x / a)) > d:
a = (a + (x / a)) / 2
re... | [
"xinulsw@gmail.com"
] | xinulsw@gmail.com |
1abcc7f2b6d5b4a36c17904f6e1a96671de2fdab | 0a94e12fc91815bdf510d748f37fdfccabe8c9d4 | /apps/channel/apps.py | 4a944471e4680481f436845da0a7ee13fb599faf | [] | no_license | zhuoxiaojian/SemSupport | 0cb47e2612373b90e4a6b95165bc39d49a9bd0ac | 4dd4582c03daf43b589298c6061846d40aa3666f | refs/heads/master | 2022-12-23T15:18:35.411711 | 2019-09-26T12:16:08 | 2019-09-26T12:16:08 | 129,690,135 | 1 | 0 | null | 2022-12-07T23:51:23 | 2018-04-16T05:38:27 | JavaScript | UTF-8 | Python | false | false | 123 | py | from django.apps import AppConfig
class ChannelConfig(AppConfig):
name = 'channel'
verbose_name = "渠道管理"
| [
"1933860854@qq.com"
] | 1933860854@qq.com |
671a4259b297caaf1b440af131b996017d579c02 | 4c3467d15408362150528c98022016e3af48a481 | /day05/day05.py | 97d0ddbbe0a70fad197e58908870483548377405 | [] | no_license | Ha-Young/nomad_python_challenge | 7659fc1f5d08b9925156f48e5150bd6981593452 | d4b476ad27fcc039851f7c7acbc4d925d678d6b2 | refs/heads/master | 2022-12-12T10:59:38.154297 | 2020-09-06T14:16:52 | 2020-09-06T14:16:52 | 257,329,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import os
import requests
from bs4 import BeautifulSoup
os.system("clear")
url = "https://www.iban.com/currency-codes"
req = requests.get(url)
soup = BeautifulSoup(req.text, "html.parser")
table = soup.find('table', {'class': 'table'})
tbody = table.find('tbody')
trs = tbody.find_all('tr')
dict_country_code = {}
... | [
"hayeong28@naver.com"
] | hayeong28@naver.com |
fb05f1a8484b67ea8c719f094c1624f8289d9513 | d7db8cd9cf18d21a57c6bdb1a3ead018d81801a9 | /字节跳动/数组与排序/数组中第k个最大元素.py | d961475a12f37bea9f668fbae3335b8f3f7edfb3 | [] | no_license | Eleanoryuyuyu/LeetCode | a1e8c230162a3a850e6714ed7c2d4d946bc5f33b | 44b65f3ab6cc6ca3ef2a2fd7ef39d4df0cd7f7eb | refs/heads/master | 2021-06-01T15:25:44.812448 | 2020-08-06T07:32:44 | 2020-08-06T07:32:44 | 144,653,156 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from typing import List
class Solution:
def findKthLargest(self, nums: List[int], k: int) -> int:
def partition(left, right):
paviot = nums[left]
while left < right:
while left < right and nums[right] >= paviot:
right -= 1
nums[le... | [
"yangjieyu@zju.edu.cn"
] | yangjieyu@zju.edu.cn |
749a83635590f91958b0fa30ea5f38c31e32c731 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03501/s922794977.py | 5523fded6aaa20bcb5866877f8ac12b3802b27f7 | [] | 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 | 86 | py | n,a,b =map(int,input().split())
p1=a*n
p2=b
if p1>=p2:
print(p2)
else:
print(p1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bad84b93239fac0a1e4e0d53a6650b8a3c99b62a | bdec175f02173938f99e546e772ce8b3730a3f48 | /lists/ex48.py | 83c5d0115be5792c374e8c614d5037b552d518fe | [] | no_license | hmunduri/MyPython | 99f637f6665a733903968047aa46b763d9557858 | af26f3a4ffb9b786d682114635b432480010ffc8 | refs/heads/master | 2020-03-09T13:13:59.873228 | 2018-04-20T22:33:30 | 2018-04-20T22:33:30 | 128,805,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #Python program print a nested lists using the print() function.
import sys
colors = [['Red'], ['Green'], ['Black']]
print(' '.join([str(lst) for lst in colors]))
| [
"root@himagiri0275.mylabserver.com"
] | root@himagiri0275.mylabserver.com |
f2c38ad89b093cb62129bdcd1e825b1f8d27054b | fc0a6e0f9ffa90a2473fec77bc52ea02e9b21f55 | /venv/lib/python3.7/site-packages/akshare/news/news_east_money.py | b585d6d945b5f41bbe2d071cbf638da2a4c7259b | [] | no_license | YixuanSeanZhou/COVID19_Scraping | 3903e697caf406c7d357afd8cc43811d62896244 | b84890c4a5ddef589cd76d1ed8fd4a1976f4e3c4 | refs/heads/master | 2022-09-08T16:14:33.292096 | 2020-05-23T04:26:02 | 2020-05-23T04:26:02 | 266,261,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Author: Albert King
date: 2019/12/12 15:08
contact: jindaxiang@163.com
desc:
"""
import newspaper
sina_paper = newspaper.build('http://futures.hexun.com/domestic/', language='zh')
for article in sina_paper.articles:
print(article)
sina_paper.size()
... | [
"thomaszhou2333@gmail.com"
] | thomaszhou2333@gmail.com |
55da86fb8f84ec5ba233473cb4b4e33d46b04933 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/r2o.py | b1e584959f21efb11d426d8dcff4e551e69c13b7 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
d75c687734fdd3778c4f88537fea21cdca140a57 | 1ee910d6602123eb1328f56419b04e31b3761b6b | /lib/python3.5/site-packages/twilio/rest/sync/v1/__init__.py | c1aab31243a7200a57ff60b634bef12ef3b66f88 | [
"MIT"
] | permissive | mraza007/Pizza-or-Not-a-Pizza | 7fc89e0905c86fbd3c77a9cc834a4b6098912aeb | 6ad59d046adbd6be812c7403d9cb8ffbdbd6b0b8 | refs/heads/master | 2022-12-15T15:47:34.779838 | 2018-07-04T02:28:56 | 2018-07-04T02:28:56 | 127,992,302 | 30 | 4 | MIT | 2022-11-22T00:43:51 | 2018-04-04T01:56:26 | Python | UTF-8 | Python | false | false | 938 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base.version import Version
from twilio.rest.sync.v1.service import ServiceList
class V1(Version):
def __init__(self, domain):
"""
Initialize the V1 version of Sync
... | [
"muhammadraza0047@gmail.com"
] | muhammadraza0047@gmail.com |
846f8c744283c2744979fd2dd8191c67d3644b56 | 9cd25c62e501741bbf4f982058ac60b8cdf815dc | /src/lightmlrestapi/testing/dummy_applications.py | efb57cdfea1de298b00d1f4654558e4e00d82658 | [
"MIT"
] | permissive | sdpython/lightmlrestapi | c60c2960b271e59750ebfe8fafc9c70304f92cbc | def172965eb197d8ab7f812c3f5f5ce129593cef | refs/heads/master | 2022-07-09T06:56:31.458790 | 2022-05-19T23:46:52 | 2022-05-19T23:46:52 | 110,975,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,528 | py | """
@file
@brief Machine Learning Post request
"""
import os
import falcon
import numpy
from .data import get_wiki_img
from ..mlapp import MachineLearningPost, AuthMiddleware, MLStoragePost
from ..args import base642image, image2array, encrypt_password
def dummy_application(app=None, **params):
"""
Defines a ... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
b02dbf261aa073b6ee44836616403995bc7d2945 | 590a3dab75527bb8742165e84d7108d056826351 | /py_tutorials/py_tutorials/1_supervised/train_svm.py | 0d87c8c10e65447b4213b9ff822672393d37ac32 | [] | no_license | onkarganjewar/ipam-tutorials | 2cfa5055484531f2cc2fdd051ddf0ea771a08a37 | a8451dd121d0a4029bc26c27ee28b45dfc6e51c0 | refs/heads/master | 2021-01-13T12:48:50.944781 | 2016-10-30T02:57:09 | 2016-10-30T02:57:09 | 72,319,739 | 0 | 0 | null | 2016-10-30T02:05:48 | 2016-10-30T02:05:47 | null | UTF-8 | Python | false | false | 1,996 | py | import logging
import sys
import time
import numpy as np
from numpy import arange, dot, maximum, ones, tanh, zeros
from numpy.random import randn
from skdata import mnist
from autodiff import fmin_sgd, fmin_l_bfgs_b
from utils import show_filters
def main():
# -- top-level parameters of this script
dtype =... | [
"james.bergstra@gmail.com"
] | james.bergstra@gmail.com |
9039e65c812006506a37289b4b5417f47fc945cf | ecf62aae48e02420cd99008f58c4725c6da56d22 | /models/review.py | 094c86885b823cd171680a2c1fc29a9485940188 | [] | no_license | ThibautBernard/AirBnB_clone | e3110415acd98b56134928eee0d2befb6bd68a25 | d495dd85add4332880eacf00b338704c2799d3e5 | refs/heads/main | 2023-03-08T15:51:46.968249 | 2021-03-03T15:58:29 | 2021-03-03T15:58:29 | 337,568,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #!/usr/bin/python3
from models.base_model import BaseModel
"""
Class that represent a Review
"""
class Review(BaseModel):
place_id = ""
user_id = ""
text = ""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
| [
"thibautbernard@sfr.fr"
] | thibautbernard@sfr.fr |
c7180dd05c2a2ac7ef806bd02421eb8c3dd4eea2 | e780e90151f26fd94f04c8a6a8ec6f642d7bcfc3 | /ivi/agilent/agilentMSO7014B.py | dd385343f403b961d04616abe01b838ea82ebcf1 | [
"MIT"
] | permissive | dboonz/python-ivi | a235d811363ef55e415d0a2edd29c95c170e8883 | 1e1b5e765876f09610b6041423f6732a273d4c3e | refs/heads/master | 2020-12-25T01:44:58.430340 | 2013-02-20T20:28:21 | 2013-02-20T20:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012 Alex Forencich
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 without restriction, including without limitation the righ... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
cf724605d7c7e871ac40fdaf6028dd3062921960 | de9b8b7192a0a81e9249823bb2b86f0b7e452863 | /.history/classes/Menu_20171107204738.py | 85e1903a1741c67e3c654ecf7d94421796037429 | [
"MIT"
] | permissive | reecebenson/uwe-dadsa-tennis-a | f5eaeb1b96d4e61f29279514e68eeea8ad6533db | d0763f819b300fcd0ce27041f5bc4ef0519c00bf | refs/heads/master | 2023-07-08T16:13:23.963348 | 2017-11-30T12:07:01 | 2017-11-30T12:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,156 | py | # DADSA - Assignment 1
# Reece Benson
from functools import partial
from os import system as call
from collections import OrderedDict
class Menu():
# Define the variables we will be using
_app = None
_menu = None
_current = [ "main" ]
_current_menu = "main"
just_called_back = False
def __... | [
"me@reecebenson.me"
] | me@reecebenson.me |
db81a9b45a6e7f46cba1807fbdb51d5e43c86df0 | 65b4522c04c2be071c2d42095956fe950fe1cebe | /lib/viscojapan/plots/plot_L_curve.py | b89df84bae00664d50f081bdee6e2e51759c6520 | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | import glob
import h5py
from pylab import loglog, xlabel, ylabel, grid, text
__all__=['plot_L_from_res_h5','plot_L']
def plot_L_from_res_h5(pathname, x_key, y_key, **kwargs):
flist = glob.glob(pathname)
flist = sorted(flist)
xs = []
ys = []
for f in flist:
with h5py.File(f,'r') as f... | [
"zy31415@gmail.com"
] | zy31415@gmail.com |
fe818fd05b441670f8e8b077bf332b1d6bd364eb | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-5382.py | 39b19e40d61fac9a071c6abfa5fda3f69668e122 | [] | 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 | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
e263b3bbee16c780f42e47780248423245375d51 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_frolicking.py | ef11ef8bcd650fd92541f71619da24e6b40dcd57 | [
"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 | 244 | py |
from xai.brain.wordbase.nouns._frolic import _FROLIC
#calss header
class _FROLICKING(_FROLIC, ):
def __init__(self,):
_FROLIC.__init__(self)
self.name = "FROLICKING"
self.specie = 'nouns'
self.basic = "frolic"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
838d7b35de18b5ea779615da2b03c44eab3be0f5 | 1cbcf8660d3ea833b0a9aa3d36fe07839bc5cfc5 | /apps/sources/reqparsers/enum.py | c1cbff7b7ef84aa38e0efda18fd5cdbe51f2f9ab | [] | no_license | zhanghe06/migration_project | f77776969907740494281ac6d7485f35d4765115 | 0264b292873b211bfeca0d645cc41abc9efe883f | refs/heads/master | 2022-12-12T10:55:43.475939 | 2019-09-29T09:19:13 | 2019-09-29T09:19:13 | 185,584,884 | 0 | 1 | null | 2022-12-08T05:04:58 | 2019-05-08T10:31:57 | Python | UTF-8 | Python | false | false | 306 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: enum.py
@time: 2019-04-26 15:55
"""
from __future__ import unicode_literals
structure_key_item = 'enum'
structure_key_items = 'enums'
structure_key_item_cn = '枚举类型'
structure_key_items_cn = '枚举类型'
| [
"zhang_he06@163.com"
] | zhang_he06@163.com |
20429d1f27e52eeb5e975b6e89b687a9a43d7777 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/wookayin_tensorflow-talk-debugging/tensorflow-talk-debugging-master/codes/40-mnist-name.py | 76816d57890463ede3dc3542f2f265757740f1bb | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,989 | py | import tensorflow as tf
import tensorflow.contrib.layers as layers
from datetime import datetime
# MNIST input data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
def multilayer_perceptron(x):
W_fc1 = tf.Variable(tf.random_normal([784, 256]... | [
"659338505@qq.com"
] | 659338505@qq.com |
5bb7686bae0152f74da147be60815db92ab4eecf | aa0d55b2aa22da0af6545ce0da46d04dbdc3bffc | /cpgames/core/games/gobang/__init__.py | 6b648191eb7f92c3653f36b0ac7b8a5c76dea903 | [
"Apache-2.0"
] | permissive | cyanghsieh/Games | 19fdad463cf12cbd503a399ed2700c0dae615714 | 07767df6d181b9eae89ce0a8b883d19afb450cc1 | refs/heads/master | 2023-05-11T11:11:09.777569 | 2023-02-22T14:28:18 | 2023-02-22T14:28:18 | 283,113,319 | 0 | 0 | MIT | 2020-07-28T05:49:13 | 2020-07-28T05:49:12 | null | UTF-8 | Python | false | false | 47 | py | '''initialize'''
from .gobang import GobangGame | [
"1159254961@qq.com"
] | 1159254961@qq.com |
e00f6197eedaeabfbe42d2c14ed4cc0528ae47e6 | 67e817ca139ca039bd9eee5b1b789e5510119e83 | /Tree/[508]Most Frequent Subtree Sum.py | d1d33c1d3ec9ef186d0feb9017ac84a00713155f | [] | no_license | dstch/my_leetcode | 0dc41e7a2526c2d85b6b9b6602ac53f7a6ba9273 | 48a8c77e81cd49a75278551048028c492ec62994 | refs/heads/master | 2021-07-25T21:30:41.705258 | 2021-06-06T08:58:29 | 2021-06-06T08:58:29 | 164,360,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | #
# Given the root of a tree, you are asked to find the most frequent subtree sum.
# The subtree sum of a node is defined as the sum of all the node values formed b
# y the subtree rooted at that node (including the node itself). So what is the mo
# st frequent subtree sum value? If there is a tie, return all the valu... | [
"dstch@163.com"
] | dstch@163.com |
7d7cf6f0f0807e1d13c773d7fd9c579e4981bccd | 3bfaf1de118ecb3863b89737a935c32d7bcf9d28 | /Leetcode/range-sum-query-immutable/source.py | d0628d3d2202ca61a51883566eace81843919629 | [] | no_license | ndjman7/Algorithm | 13db942c6228c2d55e5c0cdf997db834cf617988 | a4bd428e51a2dcebc81214564ac3fd967175f7ae | refs/heads/master | 2021-06-21T12:41:42.006005 | 2020-12-25T07:47:52 | 2020-12-26T12:43:15 | 163,792,061 | 2 | 0 | null | 2019-09-03T04:35:15 | 2019-01-02T03:57:05 | C++ | UTF-8 | Python | false | false | 537 | py | class NumArray(object):
def __init__(self, nums):
"""
:type nums: List[int]
"""
self.cache = [0 for i in range(len(nums)+1)]
for i in range(len(nums)):
self.cache[i + 1] = self.cache[i] + nums[i]
def sumRange(self, i, j):
"""
:type i: int
... | [
"ndjman7@gmail.com"
] | ndjman7@gmail.com |
6e7b2f202fd14008d5f076ad4fbac305307205ba | 2d358ffb51f03cc64cc2da0f684b0928aebe139c | /test7/myapp/models.py | 833b515eca90cae41e62460be8e577d84dc608ad | [] | no_license | 853695319/learningdjango | 195ffabdbd3a5b6bc4386cbb678504c0d2cd0095 | d2aac1117bb2ca31e4f247a9d206adcf3a9f39a2 | refs/heads/master | 2020-05-03T04:59:16.094900 | 2019-04-23T06:25:02 | 2019-04-23T06:25:02 | 178,437,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django.db import models
from django.contrib.auth.models import User
class Note(models.Model):
user = models.ForeignKey(User)
pub_date = models.DateTimeField()
title = models.CharField(max_length=200)
body = models.TextField()
def __unicode__(self):
return self.title
| [
"853695319@qq.com"
] | 853695319@qq.com |
a3f65da104bc7e4c2972ff9282afb01091ef9cc2 | 5bd624a1c1d4834b49fe5e2d2bf9446d08a36161 | /pytype/infer.py | fe1b722b8992f0bc0c1200ea92c4651ce74e6714 | [
"Apache-2.0",
"MIT"
] | permissive | tharvik/pytype | ce3c7eca73082b047508df715ce7d179f28e15ba | df526720c96b08d328b2214d08eaa67ca342b01a | refs/heads/master | 2020-12-01T09:32:24.823351 | 2016-07-12T00:29:39 | 2016-07-12T14:18:14 | 63,402,024 | 0 | 0 | null | 2016-07-15T07:41:27 | 2016-07-15T07:41:27 | null | UTF-8 | Python | false | false | 24,398 | py | """Code for generating and storing inferred types."""
import collections
import logging
import os
import StringIO
import subprocess
from pytype import abstract
from pytype import convert_structural
from pytype import output
from pytype import state as frame_state
from pytype import utils
from pytype import vm
from p... | [
"kramm@google.com"
] | kramm@google.com |
50e2de4f73782ca8217362cece9dcdc7a601d9ce | e1891d21594e17431abfcbbc36f3b479cc3eb5d3 | /blog/models.py | 6bd8baaea251d83aa5a832c354cda7a972d1e99d | [] | no_license | Ankrate/venezoproject | 01978d72332cf642637333715f695f6c6d04d7a7 | a26ccd270573420d29ba39fd37f2b9f572d010c3 | refs/heads/master | 2020-07-07T11:15:36.953266 | 2019-08-26T12:40:05 | 2019-08-26T12:40:05 | 202,558,469 | 0 | 0 | null | 2019-08-15T14:42:57 | 2019-08-15T14:42:57 | null | UTF-8 | Python | false | false | 1,780 | py | from django.db import models
import os, random
from django.db.models.signals import pre_save
from .utils import unique_slug_generator
def get_filename_ext(filepath):
base_name = os.path.basename(filepath)
name, ext = os.path.splitext(base_name)
return name, ext
def upload_image_path(instance, filename):
... | [
"angara99@gmail.com"
] | angara99@gmail.com |
4fa9358de28f9b8aa414f45aa1e563eb13718b7a | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/124_1.py | 1860506797a3534ef6306aab0ebc6ad7919b518a | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,000 | py | Python | Intersection in Tuple Records Data
Sometimes, while working with data, we may have a problem in which we require
to find the matching records between two lists that we receive. This is a very
common problem and records usually occur as a tuple. Let’s discuss certain
ways in which this problem can be ... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
a767ea85226a3a33df945842b2bedd5921f415aa | a537ac145d19a1a6cfb1ee3556144292df4ebe29 | /django_libs/tests/test_app/models.py | 0859a44e00cd78b6ad4899f9cf438e081b81b6e3 | [
"MIT"
] | permissive | papasax/django-libs | 80e0d122ec2c41ebbafddb11ffc69bd2794efeec | 734c7b3506d8aab78f91dae10eda4c150be18240 | refs/heads/master | 2021-01-09T09:01:01.400301 | 2014-12-04T21:12:09 | 2014-12-04T21:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | """Models for the ``test_app`` app."""
from django.db import models
from django.utils.translation import ugettext_lazy as _
from simple_translation.translation_pool import translation_pool
from ...models_mixins import (
SimpleTranslationMixin,
SimpleTranslationPublishedManager,
)
class DummyProfile(SimpleTr... | [
"daniel.kaufhold@bitmazk.com"
] | daniel.kaufhold@bitmazk.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.