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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8867897937961a346c8a6e06b802258aec31ed5c | 02f42acb280288acba54fc045c4163df2f069d55 | /project/migrations/0008_merge_20210312_1000.py | 9e0c30331fec84f947450cf9076177129855f675 | [] | no_license | banana1019/tumbluv-backend | a05b0faebc63e83248b2e81d026fe26d5a5c085b | 8592112284672fefdf9e4e76aeee1d1cedaaee82 | refs/heads/main | 2023-04-12T20:16:09.992472 | 2021-04-26T10:59:47 | 2021-04-26T10:59:47 | 361,158,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # Generated by Django 3.1.6 on 2021-03-12 10:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('project', '0007_auto_20210309_2313'),
('project', '0007_auto_20210309_2055'),
]
operations = [
]
| [
"68374847+Kang-kyunghun@users.noreply.github.com"
] | 68374847+Kang-kyunghun@users.noreply.github.com |
cdcb2620849cb8b9df057128cafd916549c05694 | 5fcc3fd608a794d260368318c62547f74d4c1416 | /checksum_Luhn.py | c0db1474e1bb065768ca070528051853e468d68b | [] | no_license | ds-gurukandhamoorthi/intro-python-exs | 241fb9158096479a100ef378f291ba83e1a7d5d4 | 68c386e51c13d0f31e273016eefc4e29ddecdc04 | refs/heads/master | 2022-02-25T22:28:41.061722 | 2019-10-22T18:36:46 | 2019-10-22T18:36:46 | 103,829,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | import argparse
def sum_digits(n):
res = n % 9
return res if res > 0 else res + 9
def sum_ISBN(num, mul=3):
return sum(int(n) if i %2 == 0 else int(n)*mul for i, n in enumerate(str(num)))
def is_valid_ISBN(num):
if len(str(num)) != 13:
return False
return sum_ISBN(num) %10 == 0
def is_va... | [
"ds.gurukandhamoorthi@gmail.com"
] | ds.gurukandhamoorthi@gmail.com |
117e37cdfea8e8164e6d4d2ce18c49fcaa106dfb | ab9cfa8aa28749ebd18c4fa4c8712c2198e72501 | /复杂链表的复制.py | 9af36bf98445059ae00b4559e5bdf9326c4271a6 | [] | no_license | joseph-mutu/JianZhiOfferCodePics | d71e780483909390b436f81989000a277daac11d | 8d41326cb2b9bc1379682fa6364a68c0ce62dbee | refs/heads/master | 2020-08-03T14:39:59.666806 | 2019-09-30T06:17:36 | 2019-09-30T06:17:36 | 211,788,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2019-08-26 09:10:31
# @Author : mutudeh (josephmathone@gmail.com)
# @Link : ${link}
# @Version : $Id$
import os
class RandomListNode:
def __init__(self, x):
self.label = x
self.next = None
self.random = None
class Solution:
# 返回 RandomListNode
d... | [
"josephmathone@gmail.com"
] | josephmathone@gmail.com |
2a70a3a2d26a4c0f6b94716d99ee2d8f455af26f | 559fe08f79c297783c404caf7eccee2a269932d4 | /etl/parsers/etw/Microsoft_Windows_Dwm_Udwm.py | 9f2553cd2698dd9018930cadd4cde6567bf6c7ee | [
"Apache-2.0"
] | permissive | killvxk/etl-parser | 9ba70f54120887f56950054f2cde6dc6c18e0973 | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | refs/heads/master | 2022-11-23T03:35:47.127241 | 2020-07-23T08:55:50 | 2020-07-23T08:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,608 | py | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-Dwm-Udwm
GUID : a2d1c713-093b-43a7-b445-d09370ec9f47
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from etl.pa... | [
"citronneur@gmail.com"
] | citronneur@gmail.com |
2363d85ed35aec90334d9ce83011ed94d674768c | fd7720dfc136eb92dbff8cc31e0f83bb8bbced16 | /simulation/predictor.py | 6a3c114a0e8e87f5a466f0c9e3d90c5c6f75dd2b | [] | no_license | Villux/golden_goal | d134a1660dd32f0b4d05f720993dd23f8a064faf | f36f4dd0297e2e52c0f990cb3ac134f70fc16780 | refs/heads/master | 2020-03-27T01:53:09.863147 | 2018-11-15T15:40:04 | 2018-11-15T15:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import numpy as np
from scipy.stats import poisson
class OutcomePredictor():
def __init__(self, model):
self.model = model
def predict_outcome_probabilities(self, x):
return self.model.predict_proba(x)[0]
def predict(self, feature_vector):
outcome_proba = self.predict_outcome_prob... | [
"villej.toiviainen@gmail.com"
] | villej.toiviainen@gmail.com |
3ee0b6c42d9e38196d0f53cc53391ef21c05c5df | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03240/s759213189.py | 1d4f6ebd1ea989b7a9e3ce2eca0c51eb2d3ea865 | [] | 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 | 710 | py | n = int(input())
xyh = [list(map(int, input().split())) for _ in range(n)]
for i in range(101):
for j in range(101):
s = -1
flag = True
limit = float('inf')
for x, y, h in xyh:
if h != 0:
H = h + abs(x-i) + abs(y-j)
if s != -1:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6d417a3569822b41ad57ff5456be22691250b6f6 | b66c12a4304c6af00d58a1f83e453dbc739ae60d | /survey/features/page_objects/investigators.py | 4e7cb29662126ec40e31708b493fda0f2b1d3c45 | [
"BSD-2-Clause"
] | permissive | madhavaramu/uSurvey | 060dae008f975a7cdb77ef8b0c5d820842422637 | 681e1d91fbedf94e840858e1ef09538777ce3e50 | refs/heads/uSurvey | 2020-04-11T06:28:17.220192 | 2016-12-06T13:24:45 | 2016-12-06T13:24:45 | 68,372,980 | 0 | 1 | null | 2016-09-16T11:03:44 | 2016-09-16T11:03:43 | null | UTF-8 | Python | false | false | 5,651 | py | # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8
from time import sleep
from survey.features.page_objects.base import PageObject
from survey.investigator_configs import COUNTRY_PHONE_CODE
from rapidsms.contrib.locations.models import Location
from lettuce.django import django_url
from survey.models import EnumerationArea
... | [
"antsmc2@yahoo.com"
] | antsmc2@yahoo.com |
bf1ff2870f3e7095975be2860e2c3f653b3482ee | 8948aa88edf47ca788ec464a9a6115e2ef46e4cf | /rastervision2/core/data/label_source/object_detection_label_source_config.py | 5ff23847d45a255ae547ea060760244f53e3de16 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | etraiger/raster-vision | 71687177f44ade3495e2adcbe87bcacb3948c168 | dc2f6bc688002375b91acc5df59d60c476022a96 | refs/heads/master | 2022-11-21T16:24:27.467471 | 2020-06-17T14:43:25 | 2020-06-17T14:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from rastervision2.core.data.label_source import (LabelSourceConfig,
ObjectDetectionLabelSource)
from rastervision2.core.data.vector_source import (VectorSourceConfig)
from rastervision2.pipeline.config import (register_config)
@register_config('object_detection_label... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
07907361b2de76395ad32702e0f64cc5fb4c1bd3 | 71d4381d6e78e1078720380fa5d26f323e8426bf | /python/services/firebase/beta/apple_app.py | 18349529600e966e53542dc66b96a41f66c2c809 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/declarative-resource-client-library | 0edb9c3fc4bbc8f2df014ad8b92c13611b45fe26 | dd32fc7f3a041b5c73a1ad51f82871221d93b621 | refs/heads/main | 2023-08-19T00:12:42.859403 | 2023-08-16T16:46:52 | 2023-08-16T16:49:19 | 327,995,099 | 26 | 28 | Apache-2.0 | 2023-08-09T22:16:39 | 2021-01-08T19:34:57 | Go | UTF-8 | Python | false | false | 5,908 | py | # Copyright 2023 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 o... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
b39b35f53ad677c31b709586973e515f66e1326e | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/se1.py | 459da364809b9433ee40a48b855235528ebcb6ab | [] | 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 |
557ec87e81eefffe537c57d04561b95ab3ddc620 | 426a3f961982db52360a3e66c326b36a1d0a91ae | /object oriented programming/Polymorphism/Methodoverloading.py | cba84c2f6aac3d0ff0a41cbedb6b0535ba633546 | [] | no_license | Sibinvarghese/PythonPrograms | c121f8eaf06b2fcbbd15f64b54c13771e82e5d99 | c0e0951dab3ff0921ae2e25dfb086bb94d805464 | refs/heads/master | 2023-02-17T10:27:59.876242 | 2021-01-13T03:51:51 | 2021-01-13T03:51:51 | 329,186,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from smtplib import LMTP
class Maths:
def add(self):
num1,num2=10,20
print(num1+num2)
def add(self,num1):
num2=50
print(num1+num2)
def add(self,num1,num2): # This is Called recently implemented method
print(num1+num2)
obj=Maths()
obj.add(10,20)
# obj.add(30)
# obj.... | [
"sibinmvarghese@gmail.com"
] | sibinmvarghese@gmail.com |
04d24f794aa036733d2b00b2aa67933a0d67d36a | 37977ac3865502cac5b4d61f5e628d9129c711e2 | /2019-RoundG/shifts.py | ba90f6c58ef4541539cd7b38b92b8031a7fca127 | [] | no_license | YeahHuang/Kickstart | 932c3ee14a4afee3c1cbe7acb58cb65789c1225a | 08d141768cf93294be8a9c45fa39a4d14f9aa592 | refs/heads/master | 2021-07-08T05:52:00.769972 | 2020-07-19T15:43:13 | 2020-07-19T15:43:13 | 130,649,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from bisect import bisect_left, bisect_right, insort_left, insort_right
from string import ascii_lowercase
from heapq import heappush, heappop, heapify
from collections import Counter, defaultdict
from itertools import product
global ans
global a,b,suma, sumb, n, h
def dfs(i, cur_a, cur_b):
global ans,a,b,suma, s... | [
"noreply@github.com"
] | YeahHuang.noreply@github.com |
c70990a5217ff8db6ecdb0e8f3057427189a090b | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/next-greater-element-i/282267514.py | ff135633679788c1ecdd8891789789e9ac47b07c | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # title: next-greater-element-i
# detail: https://leetcode.com/submissions/detail/282267514/
# datetime: Thu Nov 28 20:22:56 2019
# runtime: 44 ms
# memory: 12.8 MB
class Solution:
def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]:
res = [-1] * len(nums1)
pos = {n: i for... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
addab2413e8bdacb53c294cc23deaaa6c4a83ccd | 3a5a9f79e53f30a719cf51dedcc71a7153570103 | /apicatslist/models.py | 97c24a1b8c4348349a4bfab35b4d03ab1358e76b | [] | no_license | KiaraRaynS/Catslist-23-06-16- | b5ab80d6c363a161806133cfa1a1187728811395 | 7b8ec46684ca64e185e047d61379248e94390c64 | refs/heads/master | 2021-01-19T01:23:46.383024 | 2016-08-17T07:26:26 | 2016-08-17T07:26:26 | 61,828,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from rest_framework.authtoken.models import Token
from django.dispatch import receiver
from django.db.models.signals import post_save
@receiver(post_save, sender='auth.User')
def usertoken(**kwargs):
created = kwargs.get('created')
instance = kwargs.get('instance')
if created:
Token.objects.create... | [
"sherman.rayn@outlook.com"
] | sherman.rayn@outlook.com |
d88b07c53a5a5106cb51936f34c9493a3c87903b | a6c7d1b57c7d4804fc651adc13416853ec6c86cd | /test/test_samples/test_samples.py | c8015cb6d081a6b61475b36b22a5d15d3bfdadf4 | [
"MIT"
] | permissive | executablebooks/mistletoe-ebp | 367c9c031a457f9f3c089bfb7a86b81309f8840b | 229812436726fd9b1af85c6e66ff8c81b415758d | refs/heads/master | 2022-12-05T03:17:00.975786 | 2020-08-06T17:53:59 | 2020-08-06T17:53:59 | 245,217,804 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | import os
from mistletoe import markdown
PATH = os.path.dirname(__file__)
def test_syntax(file_regression):
with open(os.path.join(PATH, "syntax.md")) as handle:
file_regression.check(markdown(handle.read()), extension=".html")
def test_jquery(file_regression):
with open(os.path.join(PATH, "jquery... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
0a7042dfc022c5fa43ff7bc37a587ad6d7f6f90b | ebbcd3815d00123238cff2ae4ab47d8a0155df55 | /apps/xfzauth/forms.py | 86f8c7426b0e32abec5dba02d80ae78dd85648c6 | [] | no_license | zhaocheng1996/xfz_test | f4e1393e8a416371761b628a72af38bed2e3b5a0 | 724b17632ac7671db0baa460b988a59e45d5fc0d | refs/heads/master | 2020-04-30T16:26:28.833609 | 2019-04-02T06:51:54 | 2019-04-02T06:51:54 | 176,948,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | from django import forms
from apps.forms import FormMixin
from django.core.cache import cache
from .models import User
class LoginForm(forms.Form,FormMixin):
telephone = forms.CharField(max_length=11)
password = forms.CharField(max_length=20,min_length=6,error_messages={"max_length":"密码最多不能超过20个字符!","min_lengt... | [
"34829837+zhaocheng1996@users.noreply.github.com"
] | 34829837+zhaocheng1996@users.noreply.github.com |
9373a09c9d4289563607e011d4788444a4b72147 | 9bbb00c09aaaa19565d3fb8091af568decb5820f | /4_Intermediate_Importing_Python/2_Interacting_With_APIs_To_Import_Data_From_The_Internet/4_Checking_The_Wikipedia_API.py | 7bba80f6ccb09003b1c81c42f2c8dd0cf911ea65 | [] | no_license | PeterL64/UCDDataAnalytics | 4417fdeda9c64c2f350a5ba53b2a01b4bdc36fc7 | d6ff568e966caf954323ecf641769b7c79ccb83a | refs/heads/master | 2023-06-14T04:10:41.575025 | 2021-07-07T15:23:50 | 2021-07-07T15:23:50 | 349,780,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # Checking out the Wikipedia API
# Nested JSONs
# Import Packages
import requests
# Assign the URL to the variable: url
url = 'https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&exintro=&titles=pizza'
# Package the request, send the request and catch the response: r
r = requests.get(url)
# De... | [
"peterlyonscbar@gmail.com"
] | peterlyonscbar@gmail.com |
da8be8d0d99cfdb6bd0449079758dad05528e0bc | 8e1faad3d13e0862a2f8258667ede0167a60bbc3 | /src/connections.py | fc62edd6af041d6061c2dfbcf9ea248833c11e36 | [] | no_license | Reactorcore21/BEE2.4 | 80fc8cfcbd64f0fccd22446c25ceffb10fd4b08a | 188dd4d7ee1fc396b23100832a0fcf2ea0200333 | refs/heads/master | 2020-05-17T11:39:53.624838 | 2019-03-28T14:45:10 | 2019-03-28T14:45:10 | 183,689,931 | 0 | 0 | null | 2019-04-26T20:25:27 | 2019-04-26T20:25:26 | null | UTF-8 | Python | false | false | 58,480 | py | """Manages PeTI item connections.
This allows checking which items are connected to what, and also regenerates
the outputs with optimisations and custom settings.
"""
from enum import Enum
from collections import defaultdict
from srctools import VMF, Entity, Output, Property, conv_bool, Vec
import comp_consts as cons... | [
"spencerb21@live.com"
] | spencerb21@live.com |
3693db274c621fd859666a09c9dfe5cf3ed1be5f | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/TRUNK-MIB.py | 7d86eb2a23af73441d1dbf90d947cf7900dc865b | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 20,621 | py | #
# PySNMP MIB module TRUNK-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRUNK-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:27:43 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
4c801b6dbe162b6d05d2b0f9077b249bed8522be | dad12d5cfdae207fd5391eca45c86ef1bd6447bd | /zmq_plugin_bridge/monitor.py | b76e1cbc0f7e6c0935494b55ebcc6f65e0750259 | [] | no_license | JozzOfLyfe/Threejs | 08f9282bba37d2a15b3d9d585930e0293f3b138f | 50f585b3afa0dcaacced7bec7727a75fc40c0f99 | refs/heads/master | 2021-01-20T19:39:40.302550 | 2016-07-22T16:39:12 | 2016-07-22T16:39:12 | 62,829,783 | 0 | 1 | null | 2016-07-22T16:39:12 | 2016-07-07T18:33:59 | JavaScript | UTF-8 | Python | false | false | 3,995 | py | # coding: utf-8
import json
import logging
import sys
from zmq import green as zmq
from zmq_plugin.plugin import Plugin
from zmq_plugin.schema import (validate, PandasJsonEncoder,
encode_content_data,
decode_content_data)
import IPython
import arrow
import ... | [
"christian@fobel.net"
] | christian@fobel.net |
48653f7afa85e42005da9783c9c96c4c43582d04 | a8c0867109974ff7586597fe2c58521277ab9d4d | /LC88.py | b314c31d431d89596bf96bcee8a1b853a8a3b00a | [] | no_license | Qiao-Liang/LeetCode | 1491b01d2ddf11495fbc23a65bb6ecb74ac1cee2 | dbdb227e12f329e4ca064b338f1fbdca42f3a848 | refs/heads/master | 2023-05-06T15:00:58.939626 | 2021-04-21T06:30:33 | 2021-04-21T06:30:33 | 82,885,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | class Solution(object):
def merge(self, nums1, m, nums2, n):
"""
:type nums1: List[int]
:type m: int
:type nums2: List[int]
:type n: int
:rtype: void Do not return anything, modify nums1 in-place instead.
"""
curr = 0
for num in nums2:
... | [
"qiaoliang@Qiaos-MacBook-Pro.local"
] | qiaoliang@Qiaos-MacBook-Pro.local |
c8dc51f72ee1d978a9c54c4bb3c56eb9723a0326 | d3210868266ce3f0c17d0777c157da82402d3ed7 | /horizon/openstack_dashboard/settings.py | 6eb84bf96d8d5465df333da4b507662f95fb5a62 | [
"Apache-2.0"
] | permissive | cauberong099/openstack | 4f0bb1671bf3f2421a756c8b3bfcd7b344e07096 | 4fc261d37d84126d364de50fbc6ca98b8dc8dd39 | refs/heads/master | 2021-01-10T19:44:22.108399 | 2015-03-28T02:46:21 | 2015-03-28T02:46:21 | 33,003,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,429 | py | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
94a551407625272ce72f502bb937aa316c9dff30 | 9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6 | /movies/urls.py | 5b2dfb674ea70f3227f015265650fdd1faabd2f2 | [] | no_license | odbalogun/ticketr | e9fe8461d66dabe395f0e1af8fbecc67dbb16e97 | 94f24c82f407f861f1614a151feb3fdd62b283e5 | refs/heads/master | 2022-11-30T22:40:30.931160 | 2019-08-09T14:34:38 | 2019-08-09T14:34:38 | 188,833,600 | 0 | 0 | null | 2022-11-22T03:50:30 | 2019-05-27T11:50:07 | Python | UTF-8 | Python | false | false | 232 | py | from django.urls import path
from .views import MovieDetailView, MovieListView
app_name = 'movies'
urlpatterns = [
path('', MovieListView.as_view(), name='list'),
path('<pk>/', MovieDetailView.as_view(), name='detail'),
]
| [
"oduntan@live.com"
] | oduntan@live.com |
ece1320d825400cb0e92383a86db4b36ec2f815f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03845/s420639446.py | 2bb83b6030c44ccd6ef52dd5ec54eab56c4cdf2c | [] | 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 | 254 | py | from sys import stdin
n = int(input())
t = list(map(int, input().split()))
m = int(input())
sum_t = sum(t)
ans = []
for _ in range(m):
p, x = map(int, stdin.readline().strip().split())
ans.append(sum_t - t[p-1] + x)
for i in ans:
print(i) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
af0c74728ea18068852ff28b99f97799037e4d9f | c43913a3e0d8d838a29dec4f886251c189577ec0 | /tomviz/python/tomviz/web.py | 00da60559f216faa2e6398ba69a9495189998126 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tjcorona/tomviz | 82dd30e3374f08cfb3021da739b9915f925677eb | 43e4382fa2027758652395c2d9df90ce84c4e487 | refs/heads/master | 2021-01-20T13:36:48.092818 | 2017-02-17T20:20:23 | 2017-02-17T20:20:23 | 82,701,638 | 0 | 0 | null | 2017-02-21T16:25:17 | 2017-02-21T16:25:17 | null | UTF-8 | Python | false | false | 10,137 | py | import base64
import os
import shutil
import zipfile
from paraview import simple
from paraview.web.dataset_builder import ImageDataSetBuilder
from paraview.web.dataset_builder import CompositeDataSetBuilder
DATA_DIRECTORY = 'data'
DATA_FILENAME = 'data.tomviz'
BASE64_DATA_FILENAME = 'data.tomviz.base64'
HTML_FILENAME... | [
"sebastien.jourdain@kitware.com"
] | sebastien.jourdain@kitware.com |
a85b28586d5142d231dad051aaec6bbade136a1b | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /data_compression_and_archiving/gzip/gzip_seek.py | a927d0dc0cf73da48f9b2242a96373f98fa54184 | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 371 | py | import gzip
with gzip.open('example.txt.gz', 'rb') as input_file:
print('Entire file:')
all_data = input_file.read()
print(all_data)
expected = all_data[5:15]
input_file.seek(0)
input_file.seek(5)
print('Starting at position 5 for 10 bytes:')
partial = input_file.read(10)
print(pa... | [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
f0aefe5cd151f1d2f53ec1a7689f18e5fbc73561 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/test/test_tcl.py | ba93edb736e64213e90fc8006166fdef79cc82e4 | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:5d2b96fe46f7dcde01e44c07777df5125ffa70a5ff4a41c8f3d9ac5b08420a16
size 30385
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
fa8fee3c0516297125b7949177ef554e11e8ddc6 | e9524305812608ae488884e5af133655f385a08a | /VueDjangoFrameWorkShop/settings.py | c2a37f3d41801705d17a8950fab2b5b60c610331 | [
"MIT"
] | permissive | GryffindorMuggle/python3.6-django2.1-django-rest-framework | 66c43ba70477c1d099309c6a80d0b788d2636de3 | 4e21db7ce9eff77d030deb74de33189352010765 | refs/heads/master | 2020-03-26T13:48:52.823676 | 2018-08-16T08:33:24 | 2018-08-16T08:33:24 | 144,958,050 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,848 | py | """
Django settings for VueDjangoFrameWorkShop project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
""... | [
"1147727180@qq.com"
] | 1147727180@qq.com |
c1c531d2e16c942466ed4ed651adf50c6a1f6ed3 | 9d64a438cdfe4f3feb54f2f0dc7431139c4b9fb9 | /type_converter/icon_type_converter/actions/string_to_boolean/action.py | fe85b8b0d3c9bb94d56678f388240e518fe856a5 | [
"MIT"
] | permissive | PhilippBehmer/insightconnect-plugins | 5ad86faaccc86f2f4ed98f7e5d518e74dddb7b91 | 9195ddffc575bbca758180473d2eb392e7db517c | refs/heads/master | 2021-07-25T02:13:08.184301 | 2021-01-19T22:51:35 | 2021-01-19T22:51:35 | 239,746,770 | 0 | 0 | MIT | 2020-02-11T11:34:52 | 2020-02-11T11:34:51 | null | UTF-8 | Python | false | false | 864 | py | import insightconnect_plugin_runtime
from .schema import StringToBooleanInput, StringToBooleanOutput, Input, Output, Component
# Custom imports below
from insightconnect_plugin_runtime.exceptions import PluginException
class StringToBoolean(insightconnect_plugin_runtime.Action):
def __init__(self):
super... | [
"noreply@github.com"
] | PhilippBehmer.noreply@github.com |
b5f2f15ab28f76cf471a10e139fe25ecda72997b | 489574745e7823d1dc22bda0676d6fa1b42ef547 | /src/django_wools/templatetags/wools_for_wt_images.py | 77493569dd7609d8a85ed03caa5f1fcbb2ef3fd6 | [] | no_license | juliengueperoux/django-wools | 9419239b27170fc701708817f1c3e19c57edcf7c | d7a0dd98a873cb2d41a3b26d18ddd243fe6d22b6 | refs/heads/master | 2023-09-05T07:31:34.831561 | 2021-05-17T13:45:41 | 2021-05-17T13:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,162 | py | import re
from enum import Enum
from typing import Iterator, NamedTuple, Optional
from django import template
from wagtail.images.models import AbstractImage
from ..settings import wool_settings
register = template.Library()
class WidthInfo(NamedTuple):
"""
Computed width from generate_widths()
"""
... | [
"remy.sanchez@hyperthese.net"
] | remy.sanchez@hyperthese.net |
6edf5f48c2d80e7fa0fef3d643563c3a07612cb8 | 512b388a53022f561e2375b4621f78572d3b4f04 | /catalogues/migrations/0021_identifications_campox.py | dd681d8898ea94145bf51e32bebc8937817497db | [] | no_license | Madoka09/Worker15 | 006d5ac44dc55c3ae7f72d3b8300f3567395cdff | 181012d309052b2df3d4ef99a197e8acef73a185 | refs/heads/master | 2023-03-24T05:29:02.060796 | 2021-03-16T21:56:21 | 2021-03-16T21:56:21 | 336,394,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.0.4 on 2020-11-23 20:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalogues', '0020_auto_20201123_1401'),
]
operations = [
migrations.AddField(
model_name='identifications',
name='c... | [
"personal.galvan.francisco@gmail.com"
] | personal.galvan.francisco@gmail.com |
0e87d7a6cea6e6444077e686b495635459e2db8c | 33febf8b617ef66d7086765f1c0bf6523667a959 | /test/automatic/density.py | a584970a7d4dc681c0c7d31e59502b15bc8a5b87 | [] | no_license | JonasRSV/probpy | 857201c7f122461463b75d63e5c688e011615292 | 5203063db612b2b2bc0434a7f2a02c9d2e27ed6a | refs/heads/master | 2022-07-07T06:17:44.504570 | 2020-04-15T14:52:20 | 2020-04-15T14:52:20 | 245,820,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | import unittest
import time
import numpy as np
from probpy.distributions import normal
import numba
from probpy.density import UCKD, RCKD, URBK
from probpy.sampling import fast_metropolis_hastings
from probpy.search import search_posterior_estimation
from probpy.distributions import normal, exponential, jit
from probpy... | [
"jonas@valfridsson.net"
] | jonas@valfridsson.net |
162735502472a321677a2df6fbcd5c3543c436a1 | 868e94b7121b1f4c27fdf1d5ff88cb2fa6786e47 | /polling_stations/apps/data_finder/urls.py | 189b4d82cd5de12b0d179d75ff039766677fb31d | [] | no_license | JoeMitchell/UK-Polling-Stations | df0ebc2343a9b18928263a60be5718f08588782e | 861157b431f14eb24fdd17fb7380ac5e90d03a65 | refs/heads/master | 2021-01-24T04:35:49.749879 | 2016-02-29T11:55:46 | 2016-02-29T11:55:46 | 52,805,675 | 1 | 0 | null | 2016-02-29T16:27:05 | 2016-02-29T16:27:05 | null | UTF-8 | Python | false | false | 564 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.views.decorators.cache import cache_page
from constituencies.views import ConstituencyList, ConstituencyView
urlpatterns = patterns(
'',
url(r'^/$', cache_page(60*60)(ConstituencyList.as_view()), name='constituen... | [
"sym.roe@talusdesign.co.uk"
] | sym.roe@talusdesign.co.uk |
97c2aafef20a75e84303a743f770eef89dd13081 | 7d35dfa8933ad636585f8d0e6260811fef384d5d | /test/dialect/mysql/test_types.py | 7b7cf36679d503ba52c3e1f2b6e697da91665438 | [
"MIT"
] | permissive | gourneau/sqlalchemy | a3d330bbaade146458feb8ce11f72c0833e4c590 | 888f296540faf0e23d9b2b267a1932d712e17b01 | refs/heads/master | 2021-01-18T08:30:21.260742 | 2016-07-13T18:10:00 | 2016-07-13T18:10:00 | 63,383,368 | 1 | 0 | null | 2016-07-15T02:03:27 | 2016-07-15T02:03:25 | null | UTF-8 | Python | false | false | 38,610 | py | # coding: utf-8
from sqlalchemy.testing import eq_, assert_raises, assert_raises_message, is_
from sqlalchemy import *
from sqlalchemy import sql, exc, schema
from sqlalchemy.util import u
from sqlalchemy import util
from sqlalchemy.dialects.mysql import base as mysql
from sqlalchemy.testing import fixtures, AssertsCo... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
3c3d95dff7b579e3d543083c1d578d7d2cb875e9 | edd8ad3dcb6ee9b019c999b712f8ee0c468e2b81 | /Python 300/06. Dictionary/085.py | 312117acb86d80c3c56dabd741a80f0428f061e9 | [] | no_license | narinn-star/Python | 575cba200de35b9edf3832c4e41ccce657075751 | 14eba211cd3a9e9708a30073ba5b31d21d39eeef | refs/heads/master | 2023-05-25T22:57:26.079294 | 2021-06-07T15:29:39 | 2021-06-07T15:29:39 | 331,647,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | #딕셔너리 _ 바인딩
ice_cream = {'메로나':1000, '폴라포':1200, '빵빠레':1800}
print(ice_cream) | [
"skfls2618@naver.com"
] | skfls2618@naver.com |
5e34b4c222f783ed89445515b8e02676f8214e69 | fc629dba07e98bfd44a671112f47091ad8935631 | /others/paging.py | 74599271584ddce1c2d8a45117c02262d51cfb41 | [] | no_license | lostsquirrel/python_test | c990e0c29bdf2eecae9411983b68d1f984afac84 | eb171b45bbf2f29cd1307aefd8e4609b683773d8 | refs/heads/master | 2022-09-01T11:30:16.847626 | 2022-05-18T07:43:49 | 2022-05-18T07:43:49 | 9,890,003 | 0 | 1 | null | 2022-05-18T07:43:49 | 2013-05-06T15:35:24 | Python | UTF-8 | Python | false | false | 67 | py | for x in range(50):
print x
print (x + 5 - 1) / 5
print | [
"songli1988@gmail.com"
] | songli1988@gmail.com |
ea4e5b13a18d090736df358341d6202a061d1db4 | 612325535126eaddebc230d8c27af095c8e5cc2f | /src/build/android/gyp/touch.py | d3a8735504614a4f317a231b2d10a4808cf31e0c | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | #!/usr/bin/env python
#
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
from util import build_utils
def main(argv):
for f in argv[1:]:
build_utils.Touch(f)
if __name__ ==... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
aefb6400427a8ca905416089a51c9b81d336cb16 | 7701773efa258510951bc7d45325b4cca26b3a7d | /tkinter_explore/positionAppWindow.py | f479edd5f1b498b414abe22911f53753c94429d3 | [] | no_license | Archanciel/explore | c170b2c8b5eed0c1220d5e7c2ac326228f6b2485 | 0576369ded0e54ce7ff9596ec4df076e69067e0c | refs/heads/master | 2022-06-17T19:15:03.647074 | 2022-06-01T20:07:04 | 2022-06-01T20:07:04 | 105,314,051 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | from tkinter import *
import tkinter.messagebox as msgb
root = Tk() # create a Tk root window
w = 600 # width for the Tk root
h = 300 # height for the Tk root
# get screen width and height
ws = root.winfo_screenwidth() # width of the screen
hs = root.winfo_screenheight() # height of the screen
# calculate x and y ... | [
"jp.schnyder@gmail.com"
] | jp.schnyder@gmail.com |
1cce3d810392e2a1fdd61dad3232bb7d13a880d8 | f75a6b032d3c3543b3833c88ddf12a06cba8228a | /lab2/cartpole_dqn.py | 65a5b05c727b2c4d595be8c4f0a3527ad12cee46 | [] | no_license | chris4540/EL2805-Reinforcement-Learning | aab36d3e29bf1cabea1a326c2ac8b38ea9cda4bb | 385c19655ade75f5e263beef0f43f2a9476641c4 | refs/heads/master | 2023-02-14T01:37:41.270208 | 2020-04-12T22:31:46 | 2020-04-12T22:31:46 | 328,265,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,358 | py | import sys
import gym
import pylab
import random
import numpy as np
from pathlib import Path
from os.path import join
from collections import deque
from keras.layers import Dense
from keras.optimizers import Adam
from keras.models import Sequential
from utils.exp_folder import make_exp_folder
from utils.hparams import ... | [
"chris4540@gmail.com"
] | chris4540@gmail.com |
ecd2bf9d8a8924b7839511254ca2f355886cbded | 85601d534fbcc6df900af7509c189075a3112422 | /src/aulas/03_desafio/datas.py | 2c90d82c0273c05fb57f2b3dcbc61d6150d19ba8 | [] | no_license | claudimf/python_oo_1 | a58229abe5dc8a784e887ca94168bcdbbfc0f6ef | 1749456f709b850f5340adecd8b47f860184ca5a | refs/heads/main | 2023-03-22T14:17:16.232643 | 2021-03-09T20:14:23 | 2021-03-09T20:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | class Data:
def __init__(self, dia, mes, ano):
print("Construindo objeto...{}".format(self))
self.dia = dia
self.mes = mes
self.ano = ano
def formatada(self):
data = "{}/{}/{}".format(self.dia, self.mes, self.ano)
print(data)
return data
| [
"claudi.freitas.prs@synergiaconsultoria.com.br"
] | claudi.freitas.prs@synergiaconsultoria.com.br |
9aa9b6f754e3fc9b59ddd7507b80c98344daad0a | a591cc3da6681c53a236e45f4fadaff5993254ab | /renpy/game.py | 1a4f0353fe4875a41251c8a1963e7680afbaf7ae | [] | no_license | StephenChan/renpy | 6b0a48eb5734cfa32bbcffc9a3c833be173aff38 | a0872d1cdccbadea24d03c482767e57999bd728b | refs/heads/master | 2020-12-25T06:51:12.428305 | 2012-07-17T09:06:32 | 2012-07-17T09:06:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,709 | py | # Copyright 2004-2012 Tom Rothamel <pytom@bishoujo.us>
#
# 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 rights to use, copy, modify, m... | [
"pytom@bishoujo.us"
] | pytom@bishoujo.us |
d4ad2735c72bf142a87e0d9275110fef799a9d38 | 190072bc404751d83e5aceb99a34ccba1067caae | /twyg/tree.py | 4c498e375bc139a660b211918d217bbb7f9ffd7f | [] | no_license | karstenw/Library | ab751bde79bb0bd2bd7f705901dab415ba154476 | 9c3f665be4988c14d939d28e7729c72819bba446 | refs/heads/master | 2023-08-14T04:53:15.559747 | 2023-07-16T12:27:19 | 2023-07-16T12:27:19 | 46,520,062 | 0 | 0 | null | 2023-05-18T14:06:29 | 2015-11-19T21:00:38 | Python | UTF-8 | Python | false | false | 9,295 | py | import sys
from twyg.geom import Vector2, Rectangle
# py3 stuff
py3 = False
try:
unicode('')
punicode = unicode
pstr = str
punichr = unichr
except NameError:
punicode = str
pstr = bytes
py3 = True
punichr = chr
long = int
class Direction(object):
Top, Righ... | [
"karstenwo@web.de"
] | karstenwo@web.de |
540ec371e20da9710f8b7d384d2aebac11bd4566 | 5d2d214fff5892d381d0328bca3db04b14e358fb | /final_design/tests/led_button/test.py | 6de08985003f3434fd31485b02d71f28402fba87 | [
"MIT"
] | permissive | DFEC-R2D2/r2d2 | 9552705188ed6e3d8c144881eb7c9ddfacfd8072 | 9b64233865ebfe9f0ca3f1b400b55cc8d6494adf | refs/heads/master | 2021-01-20T13:27:36.953410 | 2018-10-30T21:37:50 | 2018-10-30T21:37:50 | 90,496,130 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
from __future__ import print_function
from time import sleep
import numpy as np
import sys
sys.path.append('../../python')
from library import ButtonLED
if __name__ == "__main__":
button = ButtonLED(16,26,20)
try:
while True:
choice = input("Enter LED color:\n0-Off... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
b0a5d2a9d7f6eb5e27604901ec38a320cfa7aed6 | fe39d984440b0dbb612b9d3e20b93a5e795ebefa | /part-1/py-10-recursia/r_04.py | 7aa71334dc89df0abd03f6784bd5e568ee65376f | [] | no_license | maximkavm/py-algorithmization-and-programming | f7d6b1b13d2557511aaccec6d9b006ac871c5477 | c1d8228601c3cea17e11e6a2736659ef395f675d | refs/heads/master | 2023-08-14T09:11:02.433801 | 2021-03-01T19:30:26 | 2021-03-01T19:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | '''
найти минимальный элемент списка
'''
def get(lst):
if len(lst) == 1:
return lst[0]
else:
# return lst[0] if lst[0] < get(lst[1:]) else get(lst[1:]) # дублирование вызова = это плохо
tmp = get(lst[1:])
return lst[0] if lst[0] < tmp else tmp # нет дублирования
lst = [8, 4, 6, 5, -7, 9]
# lst = [] # нет пр... | [
"ttxiom@gmail.com"
] | ttxiom@gmail.com |
838da3ee7f8801a79052070457d4856066a9b52b | ced56909016fb7c2175c3911fc8481bd5fdf0800 | /pytext/contrib/pytext_lib/resources/models.py | da9e9a7457bed0a62a52c84eb1994d4f3eb04695 | [
"BSD-3-Clause"
] | permissive | coderbyr/pytext | e258a3aae625e6a2fd386b60f25ac44a7b4149fe | 72c1ad835a30bef425494b02a6210f2e3232b1a4 | refs/heads/master | 2022-11-20T09:11:44.991716 | 2020-07-20T22:05:42 | 2020-07-20T22:07:15 | 281,286,078 | 1 | 0 | NOASSERTION | 2020-07-21T03:32:42 | 2020-07-21T03:32:41 | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
ROBERTA_BASE_TORCH = "roberta_base_torch"
ROBERTA_PUBLIC = "roberta_public"
XLMR_BASE = "xlmr_base"
XLMR_DUMMY = "xlmr_dummy"
URL = {
ROBERTA_BASE_TORCH: "https//dl.fbaipublicfiles.com/pytext/models/roberta/roberta_base_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8c970a6df1bf767aedfed12bb7b0243ac4d8c558 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2022_02_01_preview/aio/operations/_data_collection_rules_operations.py | 7881913800ab760b33da28cfbf4ebef49b77aa54 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"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 | 29,803 | 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 |
f8e579e2133a16d5c607a651e58a7752082a7494 | 2324dea2cb3003c8ab7e8fd80588d44973eb8c77 | /Euler_5_251b.py | e0502f1b9bb84fe6bcae764690f07d67cf20cb16 | [] | no_license | MikeOcc/MyProjectEulerFiles | 5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56 | 4d066d52380aade215636953589bf56d6b88f745 | refs/heads/master | 2021-01-16T18:45:44.133229 | 2015-05-27T18:28:43 | 2015-05-27T18:28:43 | 5,876,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | #
# Euler Problem 251
#
#
#
from math import *
from time import time
from itertools import combinations
from operator import mul
def RetFact(n):
#from time import time
#st = time()
ndiv = n
factlist=[ ]
ctr = 2
while ndiv >1:
#temp = ndiv
if (ndiv)%(ctr)==0:
factlist.append(ctr)
ndiv /... | [
"mike.occhipinti@mlsassistant.com"
] | mike.occhipinti@mlsassistant.com |
c10f65b33d4bbfd4a45b433b2db3adb4e1b984bb | 3d8b4e0415bd4d818c17dcf0b3fc1676caad47b6 | /examples/switch/lan_host.py | 9d44db8a2e8d2843b1dd1a31f598978dc82fb447 | [
"MIT"
] | permissive | ShigemoriHakura/NintendoClients | 68c08ab2f54e36fb41eab2b2461bedd5bd1522be | da56e272f8504bcc8e5238128d63ab6ee44fa2c7 | refs/heads/master | 2022-03-09T19:20:05.647911 | 2022-03-01T23:35:01 | 2022-03-01T23:35:01 | 252,926,498 | 0 | 1 | MIT | 2022-03-01T23:35:02 | 2020-04-04T06:30:32 | null | UTF-8 | Python | false | false | 1,256 | py |
from nintendo.games import Splatoon2
from nintendo.pia import lan, settings, types
from nintendo.nex import common
import secrets
import random
import anyio
import math
import logging
logging.basicConfig(level=logging.INFO)
SESSION_ID = random.randint(1, 0xFFFFFFFF)
HOST_ID = random.randint(1, 0xFFFFFFFFFFFFFFFF)
H... | [
"ymarchand@me.com"
] | ymarchand@me.com |
ac2da397f5bb79b0908c86ef4b342c2b147f18b2 | 7759122052337252217fff9d51ec6d125ef370e0 | /iq/util/str_func.py | 5b46708639867cb94f43aefafcae016472ee0243 | [] | no_license | XHermitOne/iq_framework | 3325670c74233d99e599921fad4bd41e5d8104f3 | 7550e242746cb2fb1219474463f8db21f8e3e114 | refs/heads/master | 2023-09-03T21:07:58.107750 | 2023-09-01T07:30:13 | 2023-09-01T07:30:13 | 195,210,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,674 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Strings and text manipulate functions.
"""
import encodings.aliases
from . import log_func
from .. import global_data
__version__ = (0, 0, 1, 1)
def getEncodings():
"""
Supported code page list.
"""
try:
encode_list = [str(code).lower() f... | [
"xhermitone@gmail.com"
] | xhermitone@gmail.com |
574ff80f57a6e8ad726a37f117325a4420e6af8d | 31945f926e766e2a30ec8cfa720c32a943d84cea | /tests/data/test_split.py | f661482dece4d010326141046042b736a2003ba6 | [
"MIT"
] | permissive | mcorniere/rxsci | 3854129bbf1af727b40cfbc2cb4dedaa27bc8e5f | 7c2bf433a760d4ecab8aee56227803a190458fbe | refs/heads/master | 2023-02-10T05:56:03.607556 | 2021-01-05T14:41:09 | 2021-01-05T14:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | import rx
import rx.operators as ops
import rxsci as rs
def test_split():
source = ["1a", "2a", "3b", "4b", "5c", "6c", "7c", "8d", "9d"]
source = [
rs.OnCreateMux((1 ,None)),
rs.OnNextMux((1, None), '1a'),
rs.OnNextMux((1, None), '2a'),
rs.OnNextMux((1, None), '3b'),
r... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
cc35a48b6c83a8e7b4678d1337571699e26f2e26 | 8acbd7fcfe1bcf94e4e895e58ac5c81f8ed13741 | /fees/migrations/0001_initial.py | 4d2a79465920cf7560126359a04d00bea99675fb | [] | no_license | Rajangupta09/School-beta | 440af5d5d078a46036cfa3c50865f980c5ff1ace | 3ca6ca9992d2b47bcfe1762beb8c88609d519ea5 | refs/heads/master | 2022-12-07T19:42:19.562804 | 2020-08-04T09:53:04 | 2020-08-04T09:53:04 | 284,509,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | # Generated by Django 3.0.3 on 2020-05-16 14:24
from django.db import migrations, models
import django.db.models.deletion
import fees.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('classform', '0001_initial'),
]
operations = [
migrations.CreateModel... | [
"rjnkumar05@gmail.com"
] | rjnkumar05@gmail.com |
609d8b4f4188c8ac49f0d80a912a0960915ab279 | ab221e6778959a17a40585defdcf17b2ebf34908 | /SpellingBeePlay.py | fad7da80b2739504abe8ad2716ca673962296735 | [] | no_license | Mystified131/NYTImesGamesSolutions | f1e6a0905120764e9079666e6b59aa4201bf3270 | 349118cd1784888177b7475bcc7bd3b8ea20ba62 | refs/heads/master | 2023-03-23T17:02:25.341274 | 2021-03-07T09:02:13 | 2021-03-07T09:02:13 | 287,679,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,519 | py |
import enchant
from itertools import permutations
import datetime
import random
from subprocess import call
right_now = datetime.datetime.now().isoformat()
tlist = []
for i in right_now:
if i.isnumeric():
tlist.append(i)
tim = ("".join(tlist))
d = enchant.Dict("en_US")
conlst = ["B", "C", "D", "F", "... | [
"mystifiedthomas@gmail.com"
] | mystifiedthomas@gmail.com |
779f6b0f802f2a2118bacba5ad0e88316ae714b0 | d58bc2475a41e7c36e22947565c099908f84cfd6 | /samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py | 76bb8cb65578587169f50f0290859796eaadb706 | [
"Apache-2.0"
] | permissive | yaronius/openapi-generator | d8390dc2cfd9330d3f05a1f517612d793e332ead | 9f3fac53c1689b82bf4c99b664e10e4a5decfb8e | refs/heads/master | 2022-11-03T02:27:44.670087 | 2022-08-17T12:17:30 | 2022-08-17T12:17:30 | 175,407,506 | 0 | 0 | Apache-2.0 | 2023-09-04T20:41:29 | 2019-03-13T11:30:05 | Java | UTF-8 | Python | false | false | 5,532 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import re # noqa: F401
import sys # noqa: F401
import typing
import urllib3
import functools # noqa: F401
from urllib3._collections import HTTPHeaderDict
from petstore_api import api_client, exceptions
imp... | [
"noreply@github.com"
] | yaronius.noreply@github.com |
8b51d93cbec4433a5ff954290538addaaeac3696 | 4bc2af514877135a222826b2c5ac48632045f2fa | /django/juziom/userauth/form.py | d1f13721d408eb598e6074dd8485a31d79aa2690 | [] | no_license | 18734865664/python | 1853481ac1dcd515f691cfc11557f76fbbb083de | 25bc355ddb2abefc5a3736fb99e6345138ebbefc | refs/heads/master | 2020-03-17T09:37:57.469741 | 2018-06-28T08:41:37 | 2018-06-28T08:41:37 | 133,482,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | #coding:utf8
from django import forms
from models import *
class LoginForm(forms.Form):
username = forms.CharField(max_length=255, widget=forms.TextInput(attrs={'class': 'form-control','placeholder':u'用户名'}))
password = forms.CharField(widget=forms.PasswordInput(attrs={'class': 'form-control','placeholder':u'密... | [
"you@example.com"
] | you@example.com |
cb7986e98a23496bf14138ac78df7fe003dfd9e5 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_properties_py3.py | 5f38d5397daca470b2e2a824ae06d5fcf2d20902 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,927 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | xiafu-msft.noreply@github.com |
53a93667c441c6cbc84bc7b42295359c9203f3ab | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Logit/trend_PolyTrend/cycle_7/ar_12/test_artificial_1024_Logit_PolyTrend_7_12_20.py | 356fc68289ce4b41a07aca9517fc5a4f10b4de0d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 267 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 7, transform = "Logit", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
c78f25abc910c9fb03d1dc449d75d91bae270bc1 | 0fb0dba210ff0f63515c464d7acc95ae32d7603c | /File Operations/Hide a File or Folder/hide-a-file-or-folder.py | 4bfe8e23f58b91670e5d641e1f6a6d46d39681d6 | [] | no_license | slad99/pythonscripts | 7cbe6b8bb27c8c06e140c46e7c8cf286cbc56d8e | 4e0ebb023899a602cb041ef6f153fd3b7ab032e9 | refs/heads/master | 2022-01-04T21:49:10.486758 | 2019-06-28T14:29:28 | 2019-06-28T14:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | PATH =r'C:\Users\ac\Desktop\AdobeAIRInstaller.exe' # give the path of the file or folder to hidden
import ctypes
class disable_file_system_redirection:
_disable = ctypes.windll.kernel32.Wow64DisableWow64FsRedirection
_revert = ctypes.windll.kernel32.Wow64RevertWow64FsRedirection
def __enter__(self):
... | [
"noreply@github.com"
] | slad99.noreply@github.com |
c168a6f74e4634d04716ba3f0e4d90c19a4f44c2 | 62ff0d3e132b5ab34a8ce309bc7b601e5240196f | /md_importer/tests/test_branch_import.py | b6f5a2de092a17e04369bcabcfedf49ad8d09a41 | [] | no_license | canonical-web-and-design/developer.ubuntu.com-legacy | 2ea766d9a4f42e2ab86fb1950506c0aeb6b5b700 | 55769d377dca312451a627e825a813b589b4d1b9 | refs/heads/master | 2021-06-16T20:38:10.091057 | 2017-05-19T14:02:56 | 2017-05-19T14:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,880 | py | from datetime import datetime
import os
import pytz
import shutil
from cms.models import Page
from md_importer.importer import (
DEFAULT_TEMPLATE,
TEMPLATE_CHOICES,
)
from md_importer.importer.article import Article
from md_importer.importer.publish import find_text_plugin
from md_importer.importer.tools impo... | [
"robin@robinwinslow.co.uk"
] | robin@robinwinslow.co.uk |
92a3ec3bafed166964ecb71e18635df198972a96 | f518506fb620fd29a2db876c05de813508eda519 | /TemplateExample/manage.py | a0f52c5a89e4be31918181439449577e88ec8949 | [] | no_license | Niharika3128/Django5-6 | 07435ae9088659e2d192cda60542aee5214e0637 | be3055ca91da45c37f9ec1adb626eea335477746 | refs/heads/master | 2020-06-02T04:28:37.016405 | 2019-06-09T17:28:33 | 2019-06-09T17:28:33 | 191,035,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TemplateExample.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"niharika5475@gmail.com"
] | niharika5475@gmail.com |
48db028ef8f7d1a4e3cb06f35a3d87d695fad4f9 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipaySecurityProdFacePayResponse.py | 1fe1ab1693136b166a60fe8ae2da572173c1432e | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 652 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipaySecurityProdFacePayResponse(AlipayResponse):
def __init__(self):
super(AlipaySecurityProdFacePayResponse, self).__init__()
self._aa = None
@property
de... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
d15d0cc4b11412348704da95bb09c8c43cc6c08d | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /tests/components/devolo_home_network/test_init.py | 99b6053e1bac778817fc9ab95799930fd4813530 | [
"Apache-2.0"
] | permissive | konnected-io/home-assistant | 037f12c87bb79e19220192eb918e49db1b1a8b3e | 2e65b77b2b5c17919939481f327963abdfdc53f0 | refs/heads/dev | 2023-05-11T08:57:41.891518 | 2023-05-07T20:03:37 | 2023-05-07T20:03:37 | 109,931,626 | 24 | 10 | Apache-2.0 | 2023-02-22T06:24:01 | 2017-11-08T05:27:21 | Python | UTF-8 | Python | false | false | 4,125 | py | """Test the devolo Home Network integration setup."""
from unittest.mock import patch
from devolo_plc_api.exceptions.device import DeviceNotFound
import pytest
from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR
from homeassistant.components.button import DOMAIN as BUTTON
from homeassistant.com... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
5c1f6f6af0e742423a0b285a3f8a9c60555bb95a | 897802abf4ee5c7267de3eb5e321cc931898e2f6 | /python/python/songTian/part0_base/week01/c121_draw/circle_draw/__init__.py | 47b01f56af458c7295a4d27c51f018df486f59fb | [] | no_license | aojie654/codes_store | 0527c7a7729b472e8fd2fd67af462cf857970633 | ed71b6266b2d2b5ddefadcb958f17695fb9db6cf | refs/heads/master | 2021-07-15T17:04:33.591673 | 2021-07-03T14:42:30 | 2021-07-03T14:42:30 | 132,343,733 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | import turtle
turtle.pensize(2)
turtle.circle(10)
turtle.circle(20)
turtle.circle(40)
turtle.circle(80)
turtle.circle(160)
| [
"aojie654@live.cn"
] | aojie654@live.cn |
a0974ac4da7ff77096e13917b61406bc2ef64c90 | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /examples/nlp/text_normalization_as_tagging/dataset_preparation/prepare_corpora_for_alignment.py | 9fe64c1105b8b5680b9561071435c59c048f0156 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 6,403 | py | # Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. 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 requ... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
caf65928426dfc47a7b74d4a1e41cd9f7f7b4eb7 | 844bec60f1a769b2a5e68e4beeb6531edc3ce4e3 | /my_instagram/member/tests.py | d76a21e9183a029a7c58801d925daa20cceb0141 | [] | no_license | shoark7/my-instagram | 04796a8c263009ef9128ec788ce8991c417fa918 | 42d1b43645c142c9d7f8c6df31865877ea1873a8 | refs/heads/master | 2020-12-24T07:53:07.248369 | 2016-11-15T06:36:44 | 2016-11-15T06:36:44 | 73,359,919 | 0 | 0 | null | 2016-11-13T09:05:29 | 2016-11-10T08:05:13 | Python | UTF-8 | Python | false | false | 1,004 | py | from django.test import TestCase, LiveServerTestCase
from .models import MyUser
# Create your tests here.
class FollowTest(LiveServerTestCase):
def create_user(self, username, last_name, first_name):
return MyUser.objects.create_user(
username=username,
last_name=last_name,
... | [
"shoark7@gmail.com"
] | shoark7@gmail.com |
8eaf470b58b0830ec791b74d821eb954a7fd1a02 | dbfdbe3c1d5e3ad38625d8c971fe8dd45c8c3885 | /device_agent/snmp/libs/pysnmp-4.4.5/examples/smi/agent/custom-managed-object.py | 0b175193bfa76c391ed6cdfa364259d6af77d5df | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | fyfdoc/IntegrateTest | a58f6d0ea7cff5f67d79d7e042c0bb39c6b8bbbb | 0d8374406c10c313d6627699879215841e0ebdb6 | refs/heads/master | 2022-12-03T02:32:37.388556 | 2019-01-25T02:36:42 | 2019-01-25T02:36:42 | 167,468,256 | 0 | 1 | null | 2022-11-29T20:58:41 | 2019-01-25T01:59:28 | Python | UTF-8 | Python | false | false | 1,604 | py | """
Implementing MIB objects
++++++++++++++++++++++++
This script explains how SNMP Agent application could model
real-world data as Managed Objects defined in MIB.
"""#
from pysnmp.smi import builder
# MIB Builder is normally pre-created by SNMP engine
mibBuilder = builder.MibBuilder()
#
# This may be done in a st... | [
"fengyanfeng@datangmobile.cn"
] | fengyanfeng@datangmobile.cn |
95206566ebb073185d5e386f1509f946bc331050 | e953c138d3808d92fcc9848824985be5bc42f034 | /python/multiprocessing/lock.py | bb10bc3b3357cb248b6dc23f5ba3a856a0415d2b | [] | no_license | hotoku/samples | 1cf3f7006ae8ba9bae3a52113cdce6d1e1d32c5a | ce0d95d87e08386d9eb83d7983bd2eaff0682793 | refs/heads/main | 2023-08-09T09:05:15.185012 | 2023-08-04T09:29:06 | 2023-08-04T09:29:06 | 222,609,036 | 0 | 0 | null | 2022-03-30T01:44:03 | 2019-11-19T04:35:27 | Jupyter Notebook | UTF-8 | Python | false | false | 536 | py | from concurrent.futures import ProcessPoolExecutor
from datetime import datetime
import time
import multiprocessing
def do_f(x, y):
print(f"{datetime.now()}: do_f x={x}, y={y}")
time.sleep(3)
return x + y
def f(x, y, lock):
print(f"{datetime.now()}: f x={x}, y={y}")
with lock:
return do_... | [
"hotoku@users.noreply.github.com"
] | hotoku@users.noreply.github.com |
5bfb68f5064b121eb578adf71745af4cd3d8ac5e | 6c9ed1bbf924591b9044ddcba03dee701ba39b2b | /recordwhat/records/seq.py | c1c9bf568716b234c6400657038caeed66d2edde | [
"BSD-3-Clause"
] | permissive | klauer/recordwhat | 986b1a8cd0d57902f25fb09573e96823bffd333e | 2921a9852361cc682ec8441bb5f4cc54b6af6e80 | refs/heads/master | 2022-02-03T15:36:27.648497 | 2022-01-25T22:56:58 | 2022-01-25T22:56:58 | 51,451,764 | 2 | 4 | BSD-3-Clause | 2022-01-25T22:56:59 | 2016-02-10T15:56:30 | Python | UTF-8 | Python | false | false | 2,605 | py | from ophyd import (EpicsSignal, EpicsSignalRO)
from .. import (RecordBase, _register_record_type,
FieldComponent as Cpt)
@_register_record_type('seq')
class SeqRecord(RecordBase):
alarm_status = Cpt(EpicsSignalRO, '.STAT')
constant_input_1 = Cpt(EpicsSignal, '.DO1')
constant_input_10 = Cp... | [
"klauer@bnl.gov"
] | klauer@bnl.gov |
c9e6afdec8ce261e8a2f43fc4b54c4dbdb5e3542 | 0547c3ebab814e3fdf2616ae63f8f6c87a0ff6c5 | /374.guess-number-higher-or-lower.py | 700808b1ba1e1ec628739b2454d3092046d932a9 | [] | no_license | livepo/lc | b8792d2b999780af5d5ef3b6050d71170a272ca6 | 605d19be15ece90aaf09b994098716f3dd84eb6a | refs/heads/master | 2020-05-15T03:57:15.367240 | 2019-07-30T03:11:46 | 2019-07-30T03:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # The guess API is already defined for you.
# @param num, your guess
# @return -1 if my number is lower, 1 if my number is higher, otherwise return 0
# def guess(num):
class Solution(object):
def guessNumber(self, n):
"""
:type n: int
:rtype: int
"""
| [
"qgmfky@gmail.com"
] | qgmfky@gmail.com |
fe57d823e3f211eb951f7d95c44156eae836df34 | 34ffb243303300ccb233dc8394c78d6cb1212127 | /registration/tests.py | a785686bfbf3b73736e23c595b6775a5b2005a25 | [] | no_license | Larrygf02/webplayground | 139955880e9e1a935cf7fbc89df9f1ebf45009f0 | 09579f3705e74ddd3380d905f5e0b8df0f93032a | refs/heads/master | 2020-04-28T01:01:36.451838 | 2019-03-10T14:59:48 | 2019-03-10T14:59:48 | 174,838,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | from django.test import TestCase
from .models import Profile
from django.contrib.auth.models import User
# Create your tests here.
class ProfileTestCase(TestCase):
def setUp(self):
User.objects.create_user('test','test@test.com', 'test1234')
def test_profile_exists(self):
exists = Profile.... | [
"raulgf_02@hotmail.com"
] | raulgf_02@hotmail.com |
a941aa45b4e10dc6b7401fbe7ba650f95322f544 | dd6dd68d17b7355e01c4ce86649423974bb69c50 | /Masters/migrations/0002_serialnumber.py | b2266937dd7911f5043e0f92d9384abefe27e6ea | [
"MIT"
] | permissive | adithyanps/netprofit-django | 2b9953296fb016e4a16b30768ba864f91882573f | 7ba87f054d09a201352635bb6cf8d0112208609e | refs/heads/master | 2020-05-04T16:43:14.547552 | 2019-09-30T13:20:07 | 2019-09-30T13:20:07 | 179,285,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # Generated by Django 2.2.4 on 2019-09-25 08:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Masters', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='SerialNumber',
fields=[
('... | [
"adithynps3@gmial.com"
] | adithynps3@gmial.com |
4a1e2396753dbd98038ff0f8e6b6c8c9df9d2267 | 1337ccefdeddc753090281d473fa1e08d42b6884 | /bnpl/plugin_itunes.py | f85c544dc2c7004c8fd8d1b161314418b8a5db90 | [] | no_license | abelsonlive/bnpl | 8bd97d7bec8933642188814e07a38b544bcb3963 | 8f49a6d257fab75b7659ba2bae502595a164b8ee | refs/heads/master | 2021-01-02T08:46:39.093073 | 2017-01-30T19:09:57 | 2017-01-30T19:09:57 | 76,924,249 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from pyItunes import Library
from bnpl import Option, OptionSet
from bnpl import Extractor
class ItunesSongs(Extractor):
"""
Extract sounds from your Itunes Library.
"""
options = OptionSet(
Option('library_xml', type='path', required=True)
)
def run(self):
"""
"""
l = Library(self.option... | [
"brianabelson@gmail.com"
] | brianabelson@gmail.com |
7fcd687644a4140303be421ead340e6b0a7527f4 | e27f9f1f8bef8b1f4676df84ee3e753974d21a1c | /ignite/contrib/metrics/precision_recall_curve.py | 5021315904b334d819722a75e9cb9036f4d4d11b | [
"BSD-3-Clause"
] | permissive | pytorch/ignite | 8fb275638e94e702762eec932b21dc8df7a54cb0 | 34a707e53785cf8a524589f33a570a7516fe064e | refs/heads/master | 2023-09-02T00:27:22.485479 | 2023-08-31T15:10:14 | 2023-08-31T15:10:14 | 111,835,796 | 4,613 | 788 | BSD-3-Clause | 2023-09-13T07:46:41 | 2017-11-23T17:31:21 | Python | UTF-8 | Python | false | false | 5,596 | py | from typing import Any, Callable, cast, Tuple, Union
import torch
import ignite.distributed as idist
from ignite.exceptions import NotComputableError
from ignite.metrics import EpochMetric
def precision_recall_curve_compute_fn(y_preds: torch.Tensor, y_targets: torch.Tensor) -> Tuple[Any, Any, Any]:
try:
... | [
"noreply@github.com"
] | pytorch.noreply@github.com |
e4fcd91448875458507f16667600fe6a845f31a3 | 403eac0dab1a935bf2ce1833a950a29ea5bc1d0b | /sentencepiece的使用.py | bd9b013f11aa4224b1c676e5b7c2b8b33899b978 | [
"MIT"
] | permissive | Le-Code/nlp-tutorial | ada91aaa0e50ff72bf4a24d70c40f67b58191f94 | c8f46f702cc8643bb252a65b0a8cf375c7bd4704 | refs/heads/master | 2020-09-25T18:39:17.726661 | 2019-11-05T16:29:09 | 2019-11-05T16:29:09 | 226,065,142 | 1 | 0 | null | 2019-12-05T09:30:57 | 2019-12-05T09:30:56 | null | UTF-8 | Python | false | false | 892 | py | '''
` % python
>>> import sentencepiece as spm
>>> sp = spm.SentencePieceProcessor()
>>> sp.Load("test/test_model.model") True
>>> sp.EncodeAsPieces("This is a test") ['\xe2\x96\x81This', '\xe2\x96\x81is', '\xe2\x96\x81a', '\xe2\x96\x81', 't', 'est']
>>> sp.EncodeAsIds("This is a test") [284, 47, 11, 4, 15, 400]
>>> sp... | [
"15122306087@163.com"
] | 15122306087@163.com |
4ade1604112ef44e3fd921651808a154f424ddc5 | c7d91529db199322e39e54fe4051a75704ea843e | /算法4/字符串/字符串排序.py | 7194b2ca9bd98f1e8a4ad54cbca048dd9bead5fa | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py |
def keyIndexSort(arr,R):
'''键索引计数法(小整数排序)'''
aux=arr.copy()
count=[0 for _ in range(R+1)]
for val,key in arr:
count[key+1]+=1
for i in range(1,R+1):
count[i]+=count[i-1]
for val,key in arr:
aux[count[key]]=(val,key)
count[key]+=1
for i in range(len(aux)):
... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
b3f161ea10b8165de2e33316af4d1adbbe9c50cd | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /SpamBayes/rev3250-3267/left-trunk-3267/spambayes/languages/es_AR/DIALOGS/i18n_dialogs.py | fc3a85b4790422e4c32722ca9c794fc869ce4704 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 26,914 | py | _rc_size_=33884
_rc_mtime_=1112074549
try:
_
except NameError:
def _(s):
return s
class FakeParser:
dialogs = {'IDD_MANAGER': [[_('SpamBayes Manager'), (0, 0, 275, 308), -1865940928, 1024, (8, 'Tahoma')], [128, _('Close'), 1, (216, 287, 50, 14), 1342177281], [128, _('Cancel'), 2, (155, 287, 50, 14),... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
061399c156296dfd0f08ab0ef22d181d250ea69e | 856323fc904cd36b947114666186a2bcd0c1e10e | /tests/randMove/test_randMoveSIS.py | f612f0051507494ef17fd722dc003e328d396a01 | [
"MIT"
] | permissive | mjacob1002/Eir | fd6ee0fa7c2e0af93a34dca66bcd5b07a5c31f05 | ab9cb4e353796ba3ab79b1673adc251d434717cf | refs/heads/master | 2023-04-15T13:06:14.897503 | 2021-07-04T20:06:15 | 2021-07-04T20:06:15 | 286,567,858 | 39 | 9 | MIT | 2021-07-04T20:06:16 | 2020-08-10T20:03:02 | Python | UTF-8 | Python | false | false | 3,222 | py | import numpy as np
import pandas as pd
import unittest
from Eir.DTMC.spatialModel.randomMovement.randMoveSIS import RandMoveSIS
import Eir.exceptions as e
np.random.seed(35235)
class Test_RandMoveSIS(unittest.TestCase):
def __init__(self):
self.test = RandMoveSIS(999, 2, .3, 25, 3, .3, 1, .25, 31, 1.0,... | [
"mjacob1002@gmail.com"
] | mjacob1002@gmail.com |
871f553222511c050f1cdb9731b0b3044efd8503 | b2cc6507d5260514f63a3f0aa7915308cd20bf28 | /shelf/migrations/0002_auto_20200426_1245.py | 906189220f06b19dd541cfceb01b3172ff017dee | [] | no_license | japawka/kozaczko | 4df09523543a15ae59abad24b689730fecca8049 | 20cf9e0e83588b6ecd79ab10889925144688f2b7 | refs/heads/master | 2022-06-07T21:37:42.788616 | 2020-04-28T13:39:09 | 2020-04-28T13:39:09 | 259,619,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | # Generated by Django 3.0.5 on 2020-04-26 10:45
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('shelf', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='BookCategor... | [
"japawka@poczta.onet.pl"
] | japawka@poczta.onet.pl |
ec326ddb3da2f9fb2c78585e9f54d0baaac9afc1 | 8140877476ec5eb97a5c096105cefc58b160a1bf | /mysite/settings.py | b5f0bf2082451aab6cfbe93147072e8d421f3a8b | [] | no_license | Missespada/my-first-blog | b931321d618a06315ac8516d96f5fd87d8dffef3 | 71cbcc58f0d9102af4189d0e38eb5f6d043eb186 | refs/heads/master | 2021-01-22T05:10:26.056054 | 2015-07-25T03:09:36 | 2015-07-25T03:09:36 | 39,307,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,805 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"you@example.com"
] | you@example.com |
a53f4e73d6c753979be2329785696ae68b6dc336 | 438e546e2acf5aa57c34c6481e477f7025b12e21 | /mocks/skowser_session3_question1.py | ddbe00521f78b177bdaa90997f0a5043f2b26f86 | [] | no_license | SajinKowserSK/algorithms-practice | 988537ef3537487cb40c78776dd2c9e1130cde4f | 41bbd55553747492a539b41f6e86bff5504c5842 | refs/heads/master | 2022-11-06T18:22:41.329484 | 2022-10-19T23:40:10 | 2022-10-19T23:40:10 | 206,470,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | class ListNode(object):
def __init__(self, val=0, next=None):
self.val = val
self.next = next
def has_cycle(head):
if head is None:
return False
slow = head
fast = head
while fast is not None:
fast = fast.next
if fast is None:
break
el... | [
"sajinkowser@gmail.com"
] | sajinkowser@gmail.com |
0eacc8850c2e0a1b284058bd4cf49418cf285991 | 5a6da40024217c0ca2c0242f031d6d0105775899 | /utils.py | 13bdef9709be85f99880404dcbf366620db0ea5f | [
"MIT"
] | permissive | tobyma/generative | 06fa928c8882469a3fe35cb69863c1ae06409021 | 75cb6c1065cd04ce4eaf13b90b037137a8ad7873 | refs/heads/master | 2020-04-22T13:53:58.599101 | 2017-03-04T05:01:16 | 2017-03-04T05:01:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as stats
def data_on_latent_space(encoded, categories, ax=None):
"""
plots the data in the latent space
encoded: first two dimensions of the data encoded
categories: the categories for each datapoint to (for visualization purposes)
batch_si... | [
"zafarali.ahmed@gmail.com"
] | zafarali.ahmed@gmail.com |
8ddf00dbe966270bc91547dc197e635375b74c13 | 264ff719d21f2f57451f322e9296b2f55b473eb2 | /gvsoc/gvsoc/models/pulp/chips/vega/apb_soc.py | d7f74fcef931aeea1e95778960d96b989c1f3330 | [
"Apache-2.0"
] | permissive | knmcguire/gap_sdk | 06c9537c16fa45dea6b7f5c6b162b53953262915 | 7b0a09a353ab6f0550793d40bd46e98051f4a3d7 | refs/heads/master | 2020-12-20T06:51:19.580497 | 2020-01-21T14:52:28 | 2020-01-21T14:52:28 | 235,992,961 | 0 | 0 | Apache-2.0 | 2020-01-24T11:45:59 | 2020-01-24T11:45:58 | null | UTF-8 | Python | false | false | 780 | py | #
# Copyright (C) 2018 ETH Zurich and University of Bologna
#
# 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 applicabl... | [
"noreply@github.com"
] | knmcguire.noreply@github.com |
13c85d6c02d79c842951ec2a8ed8df7d47224ca7 | f070c3acba7da2254adc2c12f80e54b830396d40 | /test/venv/lib/python3.6/site-packages/neutronclient/tests/unit/test_cli20_subnetpool.py | 60d25de6f4fc8ee3e3351e6948d6c6f219bcbbeb | [] | no_license | liruidesysu/cloudCluster | 241a6ac472ecce9c6b4c966a44304128d258fc9b | fc558b464c3052f59cb1e6326aa22bade556b0c8 | refs/heads/master | 2022-11-06T03:51:31.954607 | 2019-08-22T12:47:53 | 2019-08-22T12:47:53 | 200,144,454 | 0 | 1 | null | 2022-03-29T21:56:02 | 2019-08-02T01:42:17 | Python | UTF-8 | Python | false | false | 8,501 | py | # Copyright 2015 OpenStack Foundation.
# 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 requ... | [
"liruide_read@outlook.com"
] | liruide_read@outlook.com |
ab4f0ea1158e91ecc01b43c3f75c06274b029f90 | 3fd3da4f11a251cc43d44d1d61ff2ffe5c82a4ce | /零起点TF与量化交易源码kc_demo/kc_demo/ztools_tq.py | 7a06723cdaee4c787316a1b5df6951447e284e59 | [] | no_license | dumpinfo/TsBook | d95faded917bce3e024e77ff06afd30717ed9ef4 | 8fadfcd2ebf935cd49784fd27d66b2fd9f307fbd | refs/heads/master | 2023-05-27T07:56:24.149421 | 2019-07-31T20:51:52 | 2019-07-31T20:51:52 | 198,481,031 | 1 | 3 | null | 2023-05-22T21:13:31 | 2019-07-23T17:47:19 | Jupyter Notebook | UTF-8 | Python | false | false | 20,846 | py | # -*- coding: utf-8 -*-
'''
TopQuant-简称TQ极宽智能量化回溯分析系统,培训课件-配套教学python程序
Top极宽量化(原zw量化),Python量化第一品牌
by Top极宽·量化开源团队 2017.10.1 首发
网站: www.TopQuant.vip www.ziwang.com
QQ群: Top极宽量化1群,124134140
Top极宽量化2群,650924099
Top极宽量化3群,450853713
文件名:ztools_tq.py
默认缩写:import ztools_tq as ztq
... | [
"twtravel@126.com"
] | twtravel@126.com |
e7c6ef1f37a3c97baf924f1e1b774645219dce68 | 0e78b2df0fb93afc62684dece8ac05b700570248 | /BOJ/10950.py | 94b5b24e31f885c29d43c6d8b15d547aa553f987 | [] | no_license | ajy720/Algorithm | f1e2301327db09667ba011bc317c8f380707c25c | b141538802e9056f154ab91c816ad29500505f34 | refs/heads/master | 2022-05-06T21:37:05.780170 | 2022-04-23T09:25:52 | 2022-04-23T09:25:52 | 200,335,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | n = int(input())
res = []
for i in range(n):
a, b = map(int, input().split())
res.append(a+b)
for i in range(n):
print(res[i])
| [
"ajy720@gmail.com"
] | ajy720@gmail.com |
9eaaae7e015f7af1d6d99117f0f6bac098baf788 | 5bec846696ea2c198186f492baec4ed6b1de8aae | /detect/eval/voc_eval.py | cb30858f545329e942e2b60217ca5361465088b4 | [] | no_license | Peiiii/lpr | 0e268e1ff71ae37d01a3501c608f4a8024df6dd2 | 90bcbdee4555915b77dd6c6dab2b48ed56c9952d | refs/heads/master | 2022-12-11T23:57:37.075730 | 2019-10-02T15:25:09 | 2019-10-02T15:25:09 | 210,851,442 | 0 | 0 | null | 2022-11-21T21:32:26 | 2019-09-25T13:24:36 | Python | UTF-8 | Python | false | false | 7,137 | py | # --------------------------------------------------------
# Fast/er R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Bharath Hariharan
# --------------------------------------------------------
import xml.etree.ElementTree as ET
import os
import pickle as cPickle
import numpy as ... | [
"1535376447@qq.com"
] | 1535376447@qq.com |
c37b3f1f31f82758423901149d2f6c52870759a6 | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/33SearchinRotatedSortedArray.py | 8947296c9b426239174e8e74045feff557580a62 | [] | no_license | doraemon1293/Leetcode | 924b19f840085a80a9e8c0092d340b69aba7a764 | 48ba21799f63225c104f649c3871444a29ab978a | refs/heads/master | 2022-10-01T16:20:07.588092 | 2022-09-08T02:44:56 | 2022-09-08T02:44:56 | 122,086,222 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 1,248 | py | # coding=utf-8
'''
Created on 2016�12�22�
@author: Administrator
'''
class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
def find_min_idx(nums):
lo, hi = 0, len(nums) - 1
... | [
"yanhuang1293@gmail.com"
] | yanhuang1293@gmail.com |
24fd164938cb979b18d12711c9ca1fcc2cadfa53 | 07b4dd9a88f3404c4851ea7cbb57c67035bc9a54 | /tables.py | 8583928d290312a85da78b29569f435b41ae38a5 | [] | no_license | surajgholap/python-Misc | 9c9d02c42bb37b7378d7336343f8bef7cd802edf | 4a8ce4bfa5a959692d98663b7b5c0b67a165835f | refs/heads/master | 2021-06-17T19:19:25.021038 | 2021-01-27T20:54:03 | 2021-01-27T20:54:03 | 142,781,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | def print_tables(base, times):
for i in range(1, base+1):
for j in range(1, times+1):
print(i*j, end=" ")
print()
print_tables(12, 12)
| [
"surajgholap27@gmail.com"
] | surajgholap27@gmail.com |
703f70a906c0d25b1b21f4c05a311f1a735b51eb | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow/source/tensorflow/contrib/layers/python/ops/sparse_feature_cross_op.py | 688315fd12e6f3b07e97cd1fc273c6ed725de5ca | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 5,025 | py | # Copyright 2016 The TensorFlow 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 applica... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
6c7a1cd28299eeeddc802b36c228d41fdab88e8c | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /python/basic/class.py | f5dbcf0e2b60d201d45824592934ddc0e4c39888 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/python
class TTest:
x= 10
def __init__(self):
self.y= None
def __repr__(self):
return 'x=%r y=%r' % (self.x, self.y)
class TTestB:
x= 10
y= None
test1= TTest()
test1.x= 20
test1.y= 200
test2= TTest()
print 'test1=',test1
print 'test2=',test2
TTest.x= 30
TTest.y= 300
test3= TTest()
print ... | [
"info@akihikoy.net"
] | info@akihikoy.net |
fc98453f489a4a248f7440bdcc7b9b95490ea51e | 097dda217c3d31b69cb309369dc0357fe0f229ab | /app/customadmin/migrations/0005_shopproduct.py | 38f7c55e8acce58b5eb16fcb194cc2e69f1c26f6 | [] | no_license | Jaycitrusbug/book-python | 57a96ee343eee5b63ca5f7ee2461db82426321b5 | b5a4de74c9114546ee03b8aa5de1381719ddf74e | refs/heads/master | 2023-06-20T01:52:29.484415 | 2021-07-16T13:06:05 | 2021-07-16T13:06:05 | 386,638,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # Generated by Django 3.1.4 on 2020-12-09 12:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customadmin', '0004_auto_20201209_1008'),
]
operations = [
migrations.CreateModel(
name='ShopProduct',
fields=[
... | [
"jay.citrusbug@gmail.com"
] | jay.citrusbug@gmail.com |
b2583d170c8144e89f9ed5ffc15ded383410cb49 | 534570bbb873293bd2646a1567b63d162fbba13c | /Python/Data Structure/Linear List/Array/K Sum/259.3-sum-smaller.py | d38c68bf8ab2e63a5ee2b79f4cefc4222690339d | [] | no_license | XinheLIU/Coding-Interview | fa3df0f7167fb1bc6c8831748249ebaa6f164552 | d6034c567cef252cfafca697aa316c7ad4e7d128 | refs/heads/master | 2022-09-17T14:30:54.371370 | 2022-08-19T15:53:35 | 2022-08-19T15:53:35 | 146,382,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | class Solution:
def threeSumSmaller(self, nums: List[int], target: int) -> int:
nums.sort()
ret = 0
for i in range(0, len(nums)-2):
l, r = i + 1, len(nums) - 1
while l < r:
Sum = nums[i] + nums[l] + nums[r]
if Sum < target:
... | [
"LIUXinhe@outlook.com"
] | LIUXinhe@outlook.com |
94df604e74040fe35e0f339fc89e6977d72911ab | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/enums/types/budget_campaign_association_status.py | a3c9d3bbc4cb3eedea948a2bd7839c61f472bdb3 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | 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 |
79f1cf41b9b75f0519be704b7f70b2277ae2a03c | e0ff22c17eaa1e7009089a58575567b0ead63d49 | /scan/forms.py | 96def1cf32e59163612c71d895e7389098144f02 | [] | no_license | slehaff/dblive | afcb5297057ad4d78177b886013250d2ed068424 | 7f7bdf38998bd65d00e5ac7df3ef5289b2781e83 | refs/heads/master | 2023-05-27T16:38:21.865344 | 2021-06-07T10:09:28 | 2021-06-07T10:09:28 | 303,078,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | from PIL import Image
from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
class PicForm2(forms.Form):
deviceid = forms.CharField(required=False, max_length=32, strip=True)
cmd = forms.CharField(required=False, label='Cmd', max_length=50, strip=True)
Pi... | [
"samir@lehaff.dk"
] | samir@lehaff.dk |
799ab743daf9364572de676772d64f9a54091f81 | 71b8849e3bd0441dc2d7a6a004b284c11540aca6 | /aldobaran/analysis/dgr_width_calcs/aldobaran_analysis_likelihood_iterative_mask_binning.py | 4c7c08f53d774aa960be6e9011bdbe5f987abebf | [] | no_license | ezbc/scripts_and_logs | bdcf98233b89cff6296a8d0d962c78283bfc8990 | a66d24c5d1e8d464a0f38d8a2eec4f594e7ea357 | refs/heads/master | 2021-01-10T12:10:26.488731 | 2016-04-27T19:46:02 | 2016-04-27T19:46:02 | 51,485,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80,071 | py | import matplotlib
matplotlib.use('Agg')
import warnings
warnings.filterwarnings('ignore')
''' Plotting Functions
'''
def plot_likelihoods(likelihoods,velocity_centers,velocity_widths,
filename=None,show=True, returnimage=False):
''' Plots a heat map of likelihoodelation values as a function of velocity wi... | [
"ezbc@astro.wisc.edu"
] | ezbc@astro.wisc.edu |
cda6831f28cfe2770d2ced88e722a7cac36e772a | 468f54cf08a68fd3791f5266996eeb82331db338 | /pyisy/variables/variable.py | ce6f4ad83663bf37bb35e3dc1a63fa58b77a36d3 | [
"Apache-2.0"
] | permissive | OverloadUT/PyISY | 79d0b446f8c5358aa31743e8bd633b1d7f4762f2 | 69553057ceac57a6b4300c0070ee4ff163681750 | refs/heads/master | 2021-01-20T04:54:43.622920 | 2020-05-16T18:57:50 | 2020-05-16T18:57:50 | 89,751,436 | 0 | 0 | null | 2017-04-28T23:18:44 | 2017-04-28T23:18:44 | null | UTF-8 | Python | false | false | 5,988 | py | """Manage variables from the ISY."""
from ..constants import (
ATTR_INIT,
ATTR_LAST_CHANGED,
ATTR_LAST_UPDATE,
ATTR_SET,
ATTR_STATUS,
ATTR_TS,
PROTO_INT_VAR,
PROTO_STATE_VAR,
TAG_ADDRESS,
URL_VARIABLES,
VAR_INTEGER,
)
from ..helpers import EventEmitter, now
class Variable:
... | [
"noreply@github.com"
] | OverloadUT.noreply@github.com |
ee16236cee149923cbec2f4caed7e7a2a579a99e | 67c77918ba8bb55b8508a252d7bddbbaa1cd414e | /Bioinformatics_Textbook_Track/02-BA1B.py | d7b475d32f515903acd3a28076de07f5db946532 | [] | no_license | anoubhav/Rosalind-Solutions | 52406c4677d9daa68814141c9bf22d19ad896a8b | d7b591fb4850fa2f5c1b146eafabe77945c94d34 | refs/heads/master | 2021-08-07T06:25:47.056356 | 2020-04-10T10:52:20 | 2020-04-10T10:52:20 | 144,815,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from collections import defaultdict
def MostFreqKmer(dna, k):
""" Finds the most frequent k-mers in a string
(str, int) -> (list of str) """
l = len(dna)
kmer_count = defaultdict(int)
for i in range(l - k + 1):
kmer_count[dna[i:i+k]] += 1
temp = max(kmer_count.values())
return '... | [
"anoubhav.agarwaal@gmail.com"
] | anoubhav.agarwaal@gmail.com |
98d3e0a2b55395492fd6f642061fd76ad9b3a125 | 887371724feac0c71d6112e8a00e436a9ad3aa92 | /horizon/openstack_dashboard/dashboards/project/loadbalancers/tables.py | 1d08eb4ad69fbd25abcd1026708bc58501a2eb95 | [
"Apache-2.0"
] | permissive | sreenathmenon/openstackAuth | eb6e4eb2f8c2f619d8c59e0c0a79a2f6c177740f | f2a5f641103ebd4750de210ec1f3df5600f3ba19 | refs/heads/master | 2021-01-20T21:34:41.243654 | 2017-08-30T14:25:48 | 2017-08-30T14:25:48 | 101,769,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,014 | py | # Copyright 2013, Big Switch Networks, Inc.
#
# 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 applic... | [
"zreenathmenon@gmail.com"
] | zreenathmenon@gmail.com |
1e254ef6262f6a2353a21e1b62b99ba344188ff8 | 19a4365d81507587ef09488edc7850c2227e7165 | /994.py | 96554ca2d2b849066c85334c4f0f81e9c29e95a0 | [] | no_license | akauntotesuto888/Leetcode-Lintcode-Python | 80d8d9870b3d81da7be9c103199dad618ea8739a | e2fc7d183d4708061ab9b610b3b7b9e2c3dfae6d | refs/heads/master | 2023-08-07T12:53:43.966641 | 2021-09-17T19:51:09 | 2021-09-17T19:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | class Solution:
def orangesRotting(self, grid: List[List[int]]) -> int:
rotten = []
m, n = len(grid), len(grid[0])
for i in range(m):
for j in range(n):
if grid[i][j] == 2:
rotten.append((i, j))
step = -1
while rotten:
... | [
"tiant@qualtrics.com"
] | tiant@qualtrics.com |
bf2bae30cb193ff8b262ba23d6ec0d870c3220ac | d51cf2fe640f3bd5f4c4247ffaa198a30a58d96a | /mongo_db_course/01_data_extraction/16_extract_airports_quiz.py | a968065384c5c95507f14c724185a35f039ff185 | [] | no_license | AlexSkrn/sqlite_bash_scripts | 44c6dbfc83b0e6be6126ede06e9ffb9d5805bae9 | 6f1d8c6581ace44a6d77c736cee6d5cdd40001b6 | refs/heads/master | 2021-07-09T08:43:48.193623 | 2021-04-08T19:44:29 | 2021-04-08T19:44:29 | 238,682,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Complete the 'extract_airports()' function so that it returns a list of airport
codes, excluding any combinations like "All".
Refer to the 'options.html' file in the tab above for a stripped down version
of what is actually on the website. The test() assertions are bas... | [
"askrn123@gmail.com"
] | askrn123@gmail.com |
2d5b87286cdfe5d088153553ecc12ce5664f7f4a | 8ddda8fb6e5853126dcdafa3281c75071ada45c1 | /vyperlogix/gds/space.py | 52a4dad46eb96d4deecf17860057fc4ee2adde8b | [
"CC0-1.0"
] | permissive | raychorn/chrome_gui | a48f3f9d931922a018e894f891ccd952476cd1ee | f1fade70b61af12ee43c55c075aa9cfd32caa962 | refs/heads/master | 2022-12-19T19:46:04.656032 | 2020-10-08T14:45:14 | 2020-10-08T14:45:14 | 299,167,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | '''
This module provides a function that constructs a list containing
the sizes of directories under a specified directory.
Copyright (C) 2002 GDS Software
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Founda... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.