blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20962f0a6d062834a43d855c8f8b70dc63f615e0 | bf21b25c7efb433a00cddccb1a3bc0e11131944f | /hu_authzproxy/authz_proxy_validation_info.py | 65de8b7583fd0be6ab05c89d228d3e185cea2b23 | [] | no_license | raprasad/Django-HU-Pin-Auth | 8068abef4d0baf2aa3b4ed71ac9aee4134a564c9 | 006a1e8e7466bb0b982251922f5d04f33558a259 | refs/heads/master | 2021-03-12T19:24:06.937948 | 2013-12-06T16:03:21 | 2013-12-06T16:03:21 | 3,137,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py |
class AuthZProxyValidationInfo:
"""
Container for information needed to check an AuthZProxy url
request = Django request object containing the url as well as the client IP address
app_names = Registered app name or names to check. Use a list in case more than one legit app. e.g. ['FAS_DEPT_DB_... | [
"raman_prasad@harvard.edu"
] | raman_prasad@harvard.edu |
38a4e11306a084cf2ff88faf746edfe94684dff3 | c7e382b0738e762de4bc259787da5dc2b29c91f9 | /flappybird.py | 357dd81e0329ca0f4f2b516a5a6cb765ae8879fd | [] | no_license | HungManh642001/FlappyBird_Pygame | 87c19fc798326de035c29a4a3480fbadf31374ae | 344dddf756d171cb3942e24b085c460d63e683c1 | refs/heads/main | 2023-07-03T15:09:36.948171 | 2021-08-05T11:27:58 | 2021-08-05T11:27:58 | 393,009,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,667 | py | import pygame
from random import randint
pygame.init()
screen = pygame.display.set_mode((500, 600))
pygame.display.set_caption('Flappy bird')
GREY = (120, 120, 120)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
BLUE = (0, 0 , 255)
clock = pygame.time.Clock()
background_img = pygame.image.load('images/background.png')... | [
"="
] | = |
7489c62be0f6ab4525e2863eb8ddaadac36a6317 | 3d4ee6d45aeea45a871a906319c87a37e58ab6e0 | /samples/cloud-client/snippets/noxfile.py | e129dca59254defd05f0348948f1e1c80791ff83 | [
"Apache-2.0"
] | permissive | googleapis/google-auth-library-python | f004e920fa60b48c422f330f3a139d09d11caa12 | 7d453dc6408b908e24312a7bd3dc380ad43220be | refs/heads/main | 2023-09-04T08:59:25.209079 | 2023-08-31T21:38:16 | 2023-08-31T21:38:16 | 69,199,387 | 530 | 304 | Apache-2.0 | 2023-09-11T18:55:45 | 2016-09-26T00:38:59 | Python | UTF-8 | Python | false | false | 1,399 | py | # Copyright 2019 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 agreed to in writing, ... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
8a7c62fcb35970a4371b66bbccad24eb378f1080 | 8d35b8aa63f3cae4e885e3c081f41235d2a8f61f | /discord/ext/dl/extractor/lovehomeporn.py | cd1fcf81b1dca26bdb38aedfed0f949c2fd2b5a1 | [
"MIT"
] | permissive | alexyy802/Texus | 1255f4e54c8d3cc067f0d30daff1cf24932ea0c9 | c282a836f43dfd588d89d5c13f432896aebb540f | refs/heads/master | 2023-09-05T06:14:36.217601 | 2021-11-21T03:39:55 | 2021-11-21T03:39:55 | 429,390,575 | 0 | 0 | MIT | 2021-11-19T09:22:22 | 2021-11-18T10:43:11 | Python | UTF-8 | Python | false | false | 1,150 | py | from __future__ import unicode_literals
import re
from .nuevo import NuevoBaseIE
class LoveHomePornIE(NuevoBaseIE):
_VALID_URL = r"https?://(?:www\.)?lovehomeporn\.com/video/(?P<id>\d+)(?:/(?P<display_id>[^/?#&]+))?"
_TEST = {
"url": "http://lovehomeporn.com/video/48483/stunning-busty-brunette-girlf... | [
"noreply@github.com"
] | alexyy802.noreply@github.com |
f6a447cb8f320bf6c2fd9e41d45f6c0c0cd1042d | b81fe5fdc3267af0648d665b9a855e9f6852af21 | /wallp/source/google.py | e27375657a759ba2fd42dc0c22f03e7e2b1006a4 | [
"MIT"
] | permissive | amol9/wallp | 724bad747fdfaccba2d3069ce1f8959d68c5d879 | 14211492f0ab9247f67c92be4d3ef680c309eddf | refs/heads/master | 2022-12-14T23:00:28.248726 | 2022-12-01T15:39:27 | 2022-12-01T15:39:27 | 32,454,219 | 18 | 6 | null | 2016-11-06T14:50:15 | 2015-03-18T11:11:07 | Python | UTF-8 | Python | false | false | 3,624 | py | import json
from redlib.api.web import HtmlParser
from six.moves.urllib.parse import urlencode, urlparse, parse_qs
from ..util import log
from ..db.app.query_list import QueryList
from ..util.printer import printer
from .base import SourceError, SourceParams, Source
from .images import Images
from .http_helper import... | [
"babaiscool@gmail.com"
] | babaiscool@gmail.com |
1623bef449e9e0204a571f3da855f56cfe964845 | 98b0d740346ad9aecd228b9a8ebb8e818908ce03 | /iter-gen.py | 0e1970c6371331e43d7bbfde9da886d8d4510dd1 | [] | no_license | alexisbellido/python-examples | 8c63156a2800a584a8aff0909325e38acbe49163 | e6a4f61d9cd18588987430007e28ef036971764b | refs/heads/master | 2022-10-16T08:28:15.312916 | 2022-09-30T15:55:31 | 2022-09-30T15:55:31 | 240,379,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | # iterators and generators
def factors(n):
results = []
for k in range(1, n+1):
if n % k == 0:
results.append(k)
return results
def factors_generator(n):
for k in range(1, n+1):
if n % k == 0:
yield k
def factors_generator_2(n):
"""
only test up to squa... | [
"alexis@ventanazul.com"
] | alexis@ventanazul.com |
09c67940808fdfa2112251e6b53522c6b5e603cb | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/compute/target_http_proxies/update.py | fe50ae1482feb262fce66c99da001d7f3ffbec7d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 2,423 | py | # Copyright 2014 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... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
13817bc2740075b565132e202fddc2fae7eeb523 | 5bf393c1b876ca064a1e6c767f58f0e41af1bcca | /tests/test_compat.py | ccb491383ebb0c89f536ab09fd8b34e3194e0d5c | [
"MIT"
] | permissive | sethmlarson/socksio | 12c093ce59426df12b15d1239c58627208ee8fe1 | bad06ab5d8581797196ecf2eae1d8776c997567e | refs/heads/master | 2023-08-16T08:58:11.642334 | 2022-03-23T17:24:21 | 2022-03-23T17:24:21 | 205,901,200 | 36 | 5 | MIT | 2023-08-13T16:23:15 | 2019-09-02T17:01:33 | Python | UTF-8 | Python | false | false | 630 | py | import pytest
from socksio.compat import singledispatchmethod
def test_singledispatchmethod():
class Foo:
@singledispatchmethod
def bar():
raise NotImplementedError() # pragma: nocover
@bar.register(str)
def _(self, arg: str) -> None:
return f"<< {arg} >>... | [
"sethmichaellarson@gmail.com"
] | sethmichaellarson@gmail.com |
804bbffb69279f740259ee541f18f4ac7f4baca0 | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /tests/components/zwave_js/test_discovery.py | 1840e4d798004c31c57234937c9796401c6bb328 | [
"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,951 | py | """Test discovery of entities for device-specific schemas for the Z-Wave JS integration."""
import pytest
from homeassistant.components.zwave_js.discovery import (
FirmwareVersionRange,
ZWaveDiscoverySchema,
ZWaveValueDiscoverySchema,
)
from homeassistant.components.zwave_js.discovery_data_template import ... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
b946f34bcae8387b344e4c058e20edef81128e2a | 7e98a8b31cc2fecf8384f4590f27540f7280659a | /v1/Arrays/array_group_anagrams.py | 47d16ec7da5b7461d97f47d954213f312ebc4dce | [] | no_license | darraes/coding_questions | 62a07a6ede884fd0e3596f3dac8f50e11fd8676e | 70dcc3b859db673c39c3cf55aeb463d2bd822ed9 | refs/heads/master | 2021-01-21T07:21:18.033321 | 2020-06-15T16:25:11 | 2020-06-15T16:25:11 | 91,611,595 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # http://www.careercup.com/question?id=5733320654585856
def is_anagram(w1, w2):
return sorted(w1) == sorted(w2)
# Not so good. We can just hash the sorted values and use a hash table to
# keep count
def anagram_buckets(words):
buckets = []
buckets.append([words[0]])
for i in range(1, len(w... | [
"daniel.arraes@gmail.com"
] | daniel.arraes@gmail.com |
d99ff7c88528015fbd4fd669ac63397939930cc6 | d77af24d09dc00a4b7d3e0bdc14b7d2727c96495 | /RouToolPa/Tools/MultipleAlignment/__init__.py | 638553df16bc21148ff8f375e26d88696267d09e | [] | no_license | mahajrod/RouToolPa | 14ee0f7fce78c53e8639e770caa6ffb0dfd82fce | 9b0cd0f0817a23cd3f37b3a55f83ce2d8abc71d8 | refs/heads/master | 2023-08-19T19:15:49.876175 | 2023-08-12T12:27:39 | 2023-08-12T12:27:39 | 181,844,151 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | __author__ = 'mahajrod'
from RouToolPa.Tools.MultipleAlignment.GUIDANCE2 import GUIDANCE2
from RouToolPa.Tools.MultipleAlignment.PRANK import PRANK
from RouToolPa.Tools.MultipleAlignment.MAFFT import MAFFT
from RouToolPa.Tools.MultipleAlignment.SWAMP import SWAMP
PRANK = PRANK()
MAFFT = MAFFT()
SWAMP = SWAMP()
GUIDA... | [
"mahajrod@gmail.com"
] | mahajrod@gmail.com |
9b3d597333e1f59f29ca7a285a0c80bdd7d9ea29 | c97fc7658c39feb51c0ed42c04783797c8675b8a | /hfpython/day34/02 socket编程/客户端.py | f55ebc9775ea75b9377041f5af8218358b37a9ac | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 261 | py | import socket
client=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client.connect(('127.0.0.1',8080))
while True:
msg=input('>>: ').strip()
client.send(msg.encode('utf-8'))
data=client.recv(1024)
print(data.decode('utf-8'))
client.close() | [
"sgq523@163.com"
] | sgq523@163.com |
81cdfb108def0fddc13a38b0bd72d73ec18ab0f7 | f3e45801c602cfe5e8d9f2649260bc306453886f | /src/bael/hatak/tasks.py | e9c0e19532da3c46bb76d86992d85e1ed50b0904 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | msabramo/hatak | 0c3f4e1d2a64ab686b3036200b42e1b3b1a66cf9 | 957451870e2e076b3fd5798af4c7db81078628d8 | refs/heads/master | 2023-06-09T13:58:56.012171 | 2015-02-01T20:38:48 | 2015-02-01T20:51:49 | 30,458,246 | 0 | 0 | null | 2015-02-07T14:32:55 | 2015-02-07T14:32:55 | null | UTF-8 | Python | false | false | 3,495 | py | from os import mkdir, path
from bael.project.virtualenv import VirtualenvTask
from baelfire.application.commands.init.models import InitFile
from baelfire.dependencies import (
AlwaysRebuild,
FileDoesNotExists,
)
from baelfire.task import Task
class CreateDataDir(Task):
name = 'Creating data directory'
... | [
"msocek@gmail.com"
] | msocek@gmail.com |
1fd248e0612e62f129a0add73ebcccd325822c76 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02821/s694807806.py | 99f61ced51aa6c2b2e40cb2ce1f91e675be7f254 | [] | 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 | 1,014 | py | import sys,queue,math,copy,itertools,bisect,collections,heapq
def main():
LI = lambda : [int(x) for x in sys.stdin.readline().split()]
N,M = LI()
A = LI()
a = sorted(A,reverse=True)
high = a[0] * 2 + 1
low = 0
while high > low + 1:
mid = (high + low) // 2
cnt = 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5e278749859e6ed97188db5d84408e7b8208a9c6 | a0c00de0b858afec162817eb18644e15a43aa132 | /corpus/encode/corpus.py | 79bd8bb82ebf103d7facc42a37124006053af799 | [] | no_license | GiovanniCassani/discriminative_learning | 2babb522e6ef1f8045cf4920f120841cc143eead | 6336ae084317178c4552afedb6f2363fa464c3b2 | refs/heads/master | 2021-03-30T16:42:44.730328 | 2018-07-10T11:38:34 | 2018-07-10T11:38:34 | 117,959,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,756 | py | __author__ = 'GCassani'
"""Function to encode the full corpus"""
import json
import numpy as np
from time import strftime
from corpus.encode.item import encode_item
from corpus.encode.words.phonology import get_phonetic_encoding, concatenate_phonological_representations
# from corpus.encode.words.morphology import ge... | [
"cassani.giovanni@gmail.com"
] | cassani.giovanni@gmail.com |
c0257c956a994e968e6a0cf062e4ee6b189908db | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2715/60648/244504.py | 9f5645a7bf745bb513777176b6c3670f98e28ed9 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | import collections
class Solution(object):
def removeStones(self, stones):
graph = collections.defaultdict(list)
for i, x in enumerate(stones):
for j in range(i):
y = stones[j]
if x[0]==y[0] or x[1]==y[1]:
graph[i].append(j)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
183a60d90864c2c61ed0502fdc2a27d15659a1fb | 8a780cb47eac9da046bdb5d6917f97a086887603 | /problems/maximum_points_you_can_obtain_from_cards/solution.py | edac37dbc7ad0a5d3e4b21c38963448957806b65 | [] | no_license | dengl11/Leetcode | d16315bc98842922569a5526d71b7fd0609ee9fb | 43a5e436b6ec8950c6952554329ae0314430afea | refs/heads/master | 2022-12-20T03:15:30.993739 | 2020-09-05T01:04:08 | 2020-09-05T01:04:08 | 279,178,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | class Solution:
def maxScore(self, cardPoints: List[int], k: int) -> int:
presum = [0]
for x in cardPoints:
presum.append(presum[-1] + x)
n = len(cardPoints)
return presum[-1] - min(presum[i + n-k] - presum[i] for i in range(k+1))
| [
"ldeng1314@gmail.com"
] | ldeng1314@gmail.com |
e4f433753123949ad9affde243bc0de8561d1abc | 46d2a73deb63f81554c478822459a41f09d8519c | /github/abc/deletable.py | d982e43546c0fe46d3370c7c4d76d900127fea6f | [
"Apache-2.0"
] | permissive | ByteMeDirk/github.py | ad036aef661adc4d9a06239f52b79acd5230c430 | 14b14f857fb85c35b5d14ba073afc36e339199b9 | refs/heads/master | 2023-08-10T17:40:52.783117 | 2020-08-13T23:54:55 | 2020-08-13T23:54:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | """
/github/abc/deletable.py
Copyright (c) 2019-2020 ShineyDev
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 requir... | [
"contact@shiney.dev"
] | contact@shiney.dev |
7493cb46d981b2dbf5f4bbe969a8356b3b9ec120 | 9985415e46a58baa139580ac5b57f689fecb1c89 | /08_面向对象基础/hm_08_str方法.py | 59cfa9ae4979d387fbe1709be131af6b52ede3fd | [] | no_license | 462548187/python | 9b0159e0445b69fd25a918d9ece7d6b59ea1f459 | b2cca8858667a26e69bf6688b0aba9536a7cf8eb | refs/heads/master | 2021-03-10T12:49:08.051248 | 2020-04-22T02:54:32 | 2020-04-22T02:54:32 | 246,454,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author : Sandy
@Version :
----------------------------------
@File : hm_08_str方法.py
@Description :
@CreateTime : 2020/3/12 9:31 下午
@Software : PyCharm
-----------------------------------
@Mo... | [
"462548187@qq.com"
] | 462548187@qq.com |
3c49455dfa9c3d901137587dda14d0e622597d9a | a6a02c9a9c336d87995b6b5014e3bf8391d651d6 | /tests/settings.py | 884bb61d0d9192e4efdd2bfc3452ca73147fbbc7 | [] | no_license | cyberdelia/manifesto | 4bf7efc702deb80ed3348c4bbc70f28d91e9400e | 0f4b34aa803545fe85f999db569757a38b223e6a | refs/heads/master | 2021-01-17T11:40:23.312528 | 2019-12-31T06:12:45 | 2019-12-31T06:12:45 | 2,101,879 | 16 | 9 | null | 2019-12-31T06:12:46 | 2011-07-25T15:49:05 | Python | UTF-8 | Python | false | false | 444 | py | import os
local_path = lambda path: os.path.join(os.path.dirname(__file__), path)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'TEST_NAME': ':memory:'
}
}
ROOT_URLCONF = "manifesto.urls"
SITE_ID = 1
INSTALLED_APPS = [
'django.contrib.contenttypes',
'django.contr... | [
"timothee.peignier@tryphon.org"
] | timothee.peignier@tryphon.org |
2cd365da08f6e29fce971809dd025e043ff46df8 | 39689ee725bc7183d5d59fb34f7d2ffe5fd6ad36 | /ABC_B/ABC116B.py | 005c967638566b3e30be52574427ad10501c8152 | [] | no_license | yu5shi8/AtCoder | b6eb920a9046bdfa98012dd3fc65f75f16214ffe | f9ca69001ece8379e3a70c993c44b540f8be2217 | refs/heads/master | 2021-06-15T17:58:07.027699 | 2021-03-20T14:04:03 | 2021-03-20T14:04:03 | 177,757,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # -*- coding: utf-8 -*-
# B - Collatz Problem
# https://atcoder.jp/contests/abc116/tasks/abc116_b
s = int(input())
a = [s]
i = 0
while a.count(a[i]) != 2:
if a[i] % 2 == 0:
a.append(a[i]//2)
else:
a.append(3*a[i] + 1)
i += 1
ans = len(a)
print(ans)
# 8:37 - 9:04
| [
"royal_unicorn411@hotmail.co.jp"
] | royal_unicorn411@hotmail.co.jp |
b5a0a43b6a4c4484dddc59ec4e0df10f59acbec5 | 4a81e33fe6d214f2efaeb97b03b5b05fae12b0d8 | /demos/great-expectations/venv/lib/python3.8/site-packages/great_expectations/datasource/data_connector/sorter/date_time_sorter.py | 9b5a2758a4f32e416ca93fe8e48cd8beedc3e533 | [] | no_license | franciscojavierarceo/Python | 29aaea28642dde151255c5b4a813158e975a073d | 02715ca6f19fd3c76cefa12de92deeae4ddf9684 | refs/heads/main | 2023-08-27T14:23:04.376095 | 2023-08-27T10:30:37 | 2023-08-27T10:30:37 | 33,146,755 | 7 | 9 | null | 2023-02-16T06:40:35 | 2015-03-30T20:38:00 | Jupyter Notebook | UTF-8 | Python | false | false | 1,581 | py | import datetime
import logging
from typing import Any
import great_expectations.exceptions as ge_exceptions
from great_expectations.core.batch import BatchDefinition
from great_expectations.core.util import datetime_to_int, parse_string_to_datetime
from great_expectations.datasource.data_connector.sorter import Sorter... | [
"arceofrancisco@gmail.com"
] | arceofrancisco@gmail.com |
f1a6ce93a6cb484d1dab1fafbf9c5705abc8dcd6 | 0760fb4901a75766921a205b55686d6d6f049b30 | /release/rllib_tests/learning_tests/run.py | 35b959ad8f57bef8afeff93e899a7dbf7db22de2 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ray-project/ray | a4bb6940b08b59a61ef0b8e755a52d8563a2f867 | edba68c3e7cf255d1d6479329f305adb7fa4c3ed | refs/heads/master | 2023-08-31T03:36:48.164405 | 2023-08-31T03:20:38 | 2023-08-31T03:20:38 | 71,932,349 | 29,482 | 5,669 | Apache-2.0 | 2023-09-14T21:48:14 | 2016-10-25T19:38:30 | Python | UTF-8 | Python | false | false | 2,057 | py | """Learning regression tests for RLlib (torch and tf).
Runs Atari/MuJoCo benchmarks for all major algorithms.
"""
import json
import os
from pathlib import Path
from ray.rllib.utils.test_utils import run_learning_tests_from_yaml
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
b11bf98b007d6fbe87642264ed766fa74fba6880 | 60a012d9613032b5e8b990854053f34ea5b43e7b | /pulsar/apps/data/stores/couchdb/__init__.py | 9f83227b4984fcc0c4a1739c9d207379efbf8664 | [
"BSD-3-Clause"
] | permissive | azziel149/pulsar | bda27d81295c112ecc3afde9ae57f6c7b608c416 | dc67eb48f8fdd764820be48a279dda524e956795 | refs/heads/master | 2020-12-25T04:27:37.563248 | 2014-07-07T16:37:24 | 2014-07-07T16:37:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from .query import CouchDbError, CouchDbNoDbError
from .store import CouchDBStore
# from .search import CouchDBLuceneSearch
from pulsar.utils.config import Global
class CouchDbServerTestOption(Global):
name = 'couchdb_server'
flags = ['--couchdb-server']
meta = "CONNECTION_STRING"
default = 'http+cou... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
912fe08bc7a0b55624a125c7f1c74b68b0ababa0 | 70ad3badf3fa6e2edf1889d8640f25a7ec0d9db1 | /ros_catkin_ws/build_isolated/shape_msgs/catkin_generated/generate_cached_setup.py | 952f5c574f60bda91ed215a4a93995e820df8e78 | [] | no_license | MathieuHwei/OldGaitMaven | 758a937dfda2cf4f1aee266dbbf682ef34989199 | 873f7d9089c5d1c0772bd3447e2b0a31dac68b70 | refs/heads/main | 2023-06-17T18:40:06.230823 | 2021-07-19T23:08:20 | 2021-07-19T23:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"giahuy050201@gmail.com"
] | giahuy050201@gmail.com |
d565876d423e4e20591e3dcacc6ec445edbf4764 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /7yo5FJX4xFbNxim5q_18.py | ddf3e81087b7aa24bc62ad43d0784a65ddcf8775 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | """
Harry is a postman. He's got a post office with a size of `n*m(a matrix / 2D
list)`. Each slot at the 2D list represents the number of letters in that
spot. Harry can only go right and down. He starts at (0, 0), and ends at (n-1,
m-1). `n` represents the height, and `m` the length. Return the maximum amount
of l... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
19a7008bd288c444464ca76dbf98ce8fa297b293 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/client/gui/scaleform/daapi/view/lobby/server_eventsqueststab.py | 4657cb0ba6c242f0afb6deca47f3735da1b729ec | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/server_events/QuestsTab.py
from gui.Scaleform.daapi.view.meta.QuestsTabMeta import QuestsTabMeta
from gui.server_events import caches
class QuestsTab(QuestsTabMeta):
def __init__(self):
super(QuestsTab, self).__init__()
self._navI... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
35e8851849d6df45987514ed224253d51c12aa35 | 37db56765276c0835a2c7e3955c412ce204836c1 | /131.py | c664df7bc6e81b7bdcbad07624169879ddef3eab | [] | no_license | supperllx/LeetCode | 9d0a3a7258d1cff6afa6e77f61a2e697834914ca | df3a589ea858218f689fe315d134adc957c3debd | refs/heads/master | 2023-05-01T06:57:17.403568 | 2021-05-19T18:29:25 | 2021-05-19T18:34:03 | 288,351,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | class Solution:
def partition(self, s: str) -> List[List[str]]:
d = set()
def func(left, right):
while left >= 0 and right < len(s) and s[left] == s[right]:
d.add((left, right))
left -= 1
right += 1
for i in range(len(s)):
... | [
"supperllx@outlook.com"
] | supperllx@outlook.com |
808ccd3322c0d0a9837fa0839a5ce5e64b5e0ef8 | ea3f0fe9764829061c57103a76b696d1a6fcd868 | /10. Lists Advanced - Exercise/more_ex_03_take_skip_rope.py | 3a57dfdc5d021d64c3ba323e2aa7f4d032d1349f | [] | no_license | elenaborisova/Python-Fundamentals | ea7191cebe24f4ab134bdc148e572dc2b6c4928f | 3525a38aaf8b7c3d9b38f450f636d7f44218cfef | refs/heads/main | 2023-01-30T04:56:19.935971 | 2020-12-14T12:56:07 | 2020-12-14T12:56:07 | 307,526,038 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | encrypted_message = input()
numbers = list(filter(lambda x: x.isdigit(), encrypted_message))
non_numbers = list(filter(lambda x: not x.isdigit(), encrypted_message))
take_list = [int(numbers[i]) for i in range(len(numbers)) if i % 2 == 0]
skip_list = [int(numbers[i]) for i in range(len(numbers)) if not i % 2 == 0]
re... | [
"elenaborrisova@gmail.com"
] | elenaborrisova@gmail.com |
fea59df0e933222f23663d95f7cd2e8ee8d9a4b1 | e23f28f17ef6d69b0b70250ac7bd1b84dac334e9 | /codesign/sigparse.py | a560b452e1c418e74b96febd387b01a09aabb943 | [] | no_license | ph4r05/codesign-analysis | 2cffb5dec00fcc78248dbde709d8cbe35d97fc04 | 7e0f28dbccd840e3300acfd11565973a8fb407ad | refs/heads/master | 2021-01-12T01:14:25.226787 | 2017-12-18T20:34:51 | 2017-12-18T20:36:08 | 78,358,848 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,750 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Parses maven signature file
"""
import os
import sys
import argparse
import inspect
import binascii
import logging
import coloredlogs
import gnupg
from pgpdump.data import AsciiData
from pgpdump.packet import SignaturePacket, PublicKeyPacket, PublicSubkeyPacket, User... | [
"dusan.klinec@gmail.com"
] | dusan.klinec@gmail.com |
0fc89f8c4e8eecfa037e7e2fc04392b3391018fe | 1d0613fb401e92b6861ea3f615561df854603db6 | /KiBuzzard/deps/fonttools/Tests/ufoLib/UFOZ_test.py | 6ea39e9af1b0f0342d26318ca28cf8fb9615ff54 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"OFL-1.1",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | gregdavill/KiBuzzard | 8c84a4339108c9942e1ec0e05e4110bba49fd265 | 88c4129b3fbed2cad718c01e5e2d29204e2f2071 | refs/heads/main | 2023-09-01T19:46:45.146077 | 2023-08-31T11:55:10 | 2023-08-31T11:55:10 | 328,686,533 | 358 | 36 | MIT | 2023-08-31T12:12:45 | 2021-01-11T14:16:42 | Python | UTF-8 | Python | false | false | 2,577 | py | from fontTools.ufoLib import UFOReader, UFOWriter, UFOFileStructure
from fontTools.ufoLib.errors import UFOLibError, GlifLibError
from fontTools.misc import plistlib
from fontTools.misc.textTools import tostr
import sys
import os
import fs.osfs
import fs.tempfs
import fs.memoryfs
import fs.copy
import pytest
import war... | [
"greg.davill@gmail.com"
] | greg.davill@gmail.com |
cb26e6cf19203ad68c19a09e31537693073dc068 | 74feb406c733517331719fbcd9e9b9f07f9d67a5 | /pathos/secure/copier.py | 156379855b19c16ec58dd175205bd4dc5cc4371e | [
"BSD-3-Clause"
] | permissive | mathieudesro/pathos | e7928ffd6a3732ffdf71cbdf19f60d8a4f964baa | 04e89f33c989422d613f049eed096663d2370e8c | refs/heads/master | 2020-12-25T19:57:32.010707 | 2015-08-05T15:12:11 | 2015-08-05T15:12:11 | 35,181,097 | 0 | 0 | null | 2015-05-06T20:24:48 | 2015-05-06T20:24:48 | null | UTF-8 | Python | false | false | 4,085 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2015 California Institute of Technology.
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/pathos/LICENSE
#
# adapted from Mike McKerns... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
8657f483f0f8d24234b57c86f99b9fcadd44f346 | 56169cc42c21baeb0773a11f9dc2d14bc873e094 | /konkursy/15_2016/15_2/regał.py | ea48100b2ae719761b983c2e7bf62bade09dae96 | [] | no_license | PROGRAMMINinGPYTHON/minilogia | cc1842bb1e5a388c6d7c71bb7b8412776c1ed26b | 346b97671a72046d45e1736b11ba360a92f32c6f | refs/heads/master | 2021-07-09T00:47:11.406056 | 2021-03-28T11:19:13 | 2021-03-28T11:19:13 | 234,959,810 | 0 | 0 | null | 2020-03-21T19:07:48 | 2020-01-19T20:19:22 | Python | UTF-8 | Python | false | false | 1,936 | py | from turtle import *
from random import *
global a
a = 10
def reg(szerokość, ile):
pu()
setpos(-szerokość / 2 + a, -(ile * 7 * a) / 2 + 2 * a)
pd()
for i in range(ile):
półka(szerokość)
rt(90)
pu()
fd(a)
rt(90)
fd(a - 2)
pd()
pu()
setpos... | [
"59664343+PROGRAMMINinGPYTHON@users.noreply.github.com"
] | 59664343+PROGRAMMINinGPYTHON@users.noreply.github.com |
19dfe01f74b012adaf77483ecbc1e025ccb62bf3 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/errors/types/id_error.py | b5ff5d6cbc93e42f9a088243b4e0d98c2489d645 | [
"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 | 1,090 | 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 |
05c3ce8030bf16d01308bbc5111acbc59584daaa | 03a5f47090717eb9fa9d1c68848b41fb0047d1c3 | /cherry/classifyer.py | 04517379c52bb96154ab9527bd63879ef21216c0 | [
"MIT"
] | permissive | LiHui59zyGit/cherry | 595b513be307316da9746a28138d01df0a5fc73c | b26711c8c3950515c200d31662e7170667466c09 | refs/heads/master | 2022-06-16T09:05:23.275704 | 2020-05-06T13:35:48 | 2020-05-06T13:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | # -*- coding: utf-8 -*-
"""
cherry.classify
~~~~~~~~~~~~
This module implements the cherry classify.
:copyright: (c) 2018-2019 by Windson Yang :license: MIT License, see LICENSE for more details.
"""
import os
import numpy as np
from sklearn.exceptions import NotFittedError
from .base import load_cache
from .excepti... | [
"wiwindson@outlook.com"
] | wiwindson@outlook.com |
ce581ca8a3d1c2f65569a1b9040ed2db5ccaa84f | 44cae9fd5fba12f65dd753d0913eeb552419ac0e | /variaveis_tipos_ dados/ex42_seccao4.py | ac3311beffd30819f3cb23facd9630c95b33e753 | [] | no_license | aluisq/Python | 60edffa477f90bde67a76cc9306a8a5f39b82a4d | 2c065a01ef0fb2099f89f440f5d5ae2658cad7da | refs/heads/master | 2021-06-22T15:19:48.290092 | 2021-06-14T23:32:40 | 2021-06-14T23:32:40 | 214,283,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | sal_base = float(input("Qual é o seu salário base? "))
sal_grat = round((sal_base)*1.05,2)
imposto = round((sal_base)*0.07,2)
salario = sal_grat - imposto
print(f'O salário a receber pelo funcionário é: R$ {salario}.') | [
"noreply@github.com"
] | aluisq.noreply@github.com |
f10a6ae52a47074125f046d561836da39a8705eb | e7ce273f404f82fd8672c97e50b386509c8f9870 | /OOP/Exam_19_Dec_2020/problems_1_and_2/project/medicine/medicine.py | d806752d286a45197fdd1814815f734d0366b59b | [] | no_license | rzlatkov/Softuni | 3edca300f8ecdcfd86e332557712e17552bc91c3 | a494e35bff965b2b9dccc90e1381d5a1a23737a1 | refs/heads/main | 2023-07-02T12:49:59.737043 | 2021-08-13T20:47:07 | 2021-08-13T20:47:07 | 319,088,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from abc import ABC, abstractmethod
class Medicine(ABC):
@abstractmethod
def __init__(self, health_increase):
self.health_increase = health_increase
@property
def health_increase(self):
return self.__health_increase
@health_increase.setter
def health_increase(self, value):
... | [
"nozzller@gmail.com"
] | nozzller@gmail.com |
1f188bc3e81448d5e2e969effed1082de7d9b5ed | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/__init___parts/ExternalDefinitionCreationOptions.py | 69ccb658c0171f9b4d41a0983037df70b8ff2846 | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 3,611 | py | class ExternalDefinitionCreationOptions(object,IDisposable):
"""
An option class used for creating a new shared parameter definition,including options such as name,type,visibility,
Guid description and modifiable flag.
ExternalDefinitionCreationOptions(name: str,type: ParameterType)
"""
def Disp... | [
"gtalarico@gmail.com"
] | gtalarico@gmail.com |
94c39ce2ea25d08173735a5fff6cde3dd50bf4fb | 2b3ea7bb0df4be7f55d2ac188e23d801e497df8d | /fcsm_eos_api_client/models/subscr_token.py | c74a5bef065713b3675bc96c321fb7ffd139b7a3 | [] | no_license | mikespub/fcsm-eos-api-client | 12b663b4e79ac5d86c2162dec168bfa240a85f0c | 107a3a7733c55ae6a750e32497268300c6be590e | refs/heads/master | 2020-08-01T18:13:17.229375 | 2019-10-29T14:30:56 | 2019-10-29T14:30:56 | 211,071,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,574 | py | # coding: utf-8
"""
Combined FCSM EOS API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.2.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
impor... | [
"github@mikespub.net"
] | github@mikespub.net |
6ee0c11b066a6bc8b9d913a846b77cc6a9b644d7 | bcabd9b183bc011e1ccf7e367fbed0dcaa03eee6 | /1 PYTHON/7 PROGRAMMING KNOWLEDGE/10_bool_comparison_logical.py | c317549d90b9e0e0ce0c85194071d305a7c2c99d | [] | no_license | rajeshsvv/Lenovo_Back | 287fe4da2c696aa248ec57a4c45c4f234f6ca9ed | 7e49e38aaf934c65f9992a78404d2b81a4cd0204 | refs/heads/master | 2022-12-23T16:44:41.488128 | 2019-08-29T10:00:10 | 2019-08-29T10:00:10 | 204,859,914 | 0 | 1 | null | 2022-12-10T11:50:31 | 2019-08-28T06:05:35 | Python | UTF-8 | Python | false | false | 274 | py | '''
x,y=3,4
print(x==y)
print(x!=y)
print(x<y)
print(x>y)
print(x>=y)
print(x<=y)
print(100==100)
print(100==100)
print('hello'.islower())
print('hello'.isalnum())
print('hello'.isnumeric())
'''
print(10>9 and 25>24)
print(10>9 or 25<24)
print(10 is 10)
print(not 10>9)
| [
"rajeshsvv01@gmail.com"
] | rajeshsvv01@gmail.com |
0b7ac9430d29ff781ba3669533cc532bb18f1ded | e72d2adf80d519c1b5cf9af066ada5bb13d61ea1 | /team/validators.py | 9ae24b30a3cf34f9342abbc499dff8b6ee398984 | [
"MIT"
] | permissive | Aleccc/gtcrew | af782e9738ac129b59765589ee6afe14d7bfeab9 | ac0769e8c13130ec975c94bb7f3c63f5bfd7f041 | refs/heads/master | 2023-08-11T09:03:19.026042 | 2023-06-16T04:31:43 | 2023-06-16T04:31:43 | 167,825,328 | 0 | 0 | MIT | 2023-08-02T01:31:10 | 2019-01-27T15:38:23 | CSS | UTF-8 | Python | false | false | 451 | py | def validate_file_extension(value):
import os
from django.core.exceptions import ValidationError
ext = os.path.splitext(value.name)[1] # [0] returns path+filename
valid_extensions = ['.pdf', '.doc', '.docx', '.jpg', '.png', '.xlsx', '.xls']
if not ext.lower() in valid_extensions:
valid_stri... | [
"alec.kaye@gmail.com"
] | alec.kaye@gmail.com |
f27924752e9fcdf213848e50dcf291a238fe8ad4 | ed19867b41df7b3d9ecec7492b1ccdfde87fa3c2 | /多线程,多进程/信号量,事件.py | 5a341b9f27015db995d816bb72668a8dae33bbd7 | [] | no_license | 248808194/python-study | bd3fe44ed9923570cd22365efef9b23e56b1bb56 | a216afd97c49b12f08a623358941ebcc90cdcd78 | refs/heads/master | 2020-12-21T06:49:57.764838 | 2017-01-26T13:27:32 | 2017-01-26T13:27:32 | 55,950,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | #使用多线程 让一个变量自减1,
import threading
import time
#BoundedSemaphore
#创建自减函数
# num=100
# def foo(l,i):
# global num
# l.acquire() #上锁
# time.sleep(10)
# num -=1
# print(num,i)
# l.release() #解锁
#
# #使用线程锁
# lock=threading.BoundedSemaphore(5) #一次性最多允许5个线程执行
#
# #通过foo循环产生100个子进程,执行自减函数
# for i in r... | [
"zhoutao@zhoutao.name"
] | zhoutao@zhoutao.name |
0f73a4488f8190bd4be7c8f6a723132663ff343a | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FXJSMM/YW_FXJSMM_SZSJ_228.py | 4fe70375d76d1028edb5e290f8a60a43d04a5e03 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
6314ee837c5e59236ba665098e8db84f349c1e26 | 8a6dde82fa2bb14a92ee9c45013c15424572c076 | /flask_app/pup_forum/puppy_company/users/forms.py | 2044ace7d3b5079fa9ca0cf2920fff2196a00f20 | [] | no_license | irekpi/flask | 4c9d6f65d0b54bcb4bf5e2e59fdca3e426793c7e | 4bc9caddebcb903a7da0e2fd9eef507112d358ed | refs/heads/master | 2022-04-11T03:33:16.630625 | 2020-03-26T19:30:57 | 2020-03-26T19:30:57 | 250,352,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, Email, EqualTo
from wtforms import ValidationError
from flask_wtf.file import FileField, FileAllowed
from flask_login import current_user
from puppy_company.models import User
clas... | [
"pilat.irek@gmail.com"
] | pilat.irek@gmail.com |
80141de81f2436fe8e1254e061bb3082700dc6bf | 70450f0c551adf47b450468e424f4f90bebfb58d | /corsika-reader/python/converters.py | 2abc548382499e2b425bb3e5950d6dda59b2708a | [
"MIT"
] | permissive | hschwane/offline_production | ebd878c5ac45221b0631a78d9e996dea3909bacb | e14a6493782f613b8bbe64217559765d5213dc1e | refs/heads/master | 2023-03-23T11:22:43.118222 | 2021-03-16T13:11:22 | 2021-03-16T13:11:22 | 280,381,714 | 0 | 0 | MIT | 2020-07-17T09:20:29 | 2020-07-17T09:20:29 | null | UTF-8 | Python | false | false | 1,567 | py | #print(__name__,__path__)
from icecube import tableio
#from . import I3CorsikaWeight
#from icecube.load_pybindings import load_pybindings
from icecube.corsika_reader import I3CorsikaWeight
from icecube.dataclasses import I3Particle
class I3CorsikaWeightConverter(tableio.I3Converter):
booked = I3CorsikaWeight... | [
"aolivas@umd.edu"
] | aolivas@umd.edu |
e898d002a25a4a7ec46efa023d98f012c0033ee9 | e1623f826b856f01d3c3aa7a40986b35ac2554bf | /core/urls.py | 4e0eb7da37af2422ab84891afa8cd6b7c00ba2bd | [] | no_license | calazans10/wttd | 3301405cd841b72fddcff95aabdee26810952c4a | 3569442af8beeb7be696d109641561a248413449 | refs/heads/master | 2021-01-23T00:06:49.288338 | 2013-01-19T13:28:10 | 2013-01-19T13:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, include, url
urlpatterns = patterns('core.views',
url(r'^$', 'homepage', name='homepage'),
url(r'^palestrantes/(?P<slug>[\w-]+)/$', 'speaker_detail', name='speaker_detail'),
url(r'^palestras/(?P<pk>\d+)/$', 'talk_detail', name='talk_detail'),
... | [
"calazans10@gmail.com"
] | calazans10@gmail.com |
42329d3c512b2b00a651a4be8f154fde67b11995 | ad02a6823a40905e1966d552db73a9e9c84a1584 | /hparams.py | 731ede43b920f17adab03afd6459ad4e1d903ba2 | [] | no_license | kapitsa2811/2nd-place-solution-Digital-Peter | b71b34ba85af44c85ce7cd3863cfc4b22f5f06e9 | ee22e60c6632adb3bd4290d00fed4f74f9c65c8e | refs/heads/main | 2023-08-15T18:06:56.367918 | 2021-10-21T12:48:43 | 2021-10-21T12:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,732 | py | import cv2
import os
import editdistance
from os.path import join
import numpy as np
from collections import Counter
from tqdm import tqdm
class Hparams:
def __init__(self):
# Working directory
self.dir = "./log/"
# Paths to checkpoints.
self.chk = '' # Training
# Infere... | [
"noreply@github.com"
] | kapitsa2811.noreply@github.com |
a2069408f4365572fad4bd86811b05d399e0bb1b | 542760974c541727fe36e3125fecd31f914d4d99 | /emoticonvis/apps/base/urls.py | 8d5817514db982438f10a5196236dc775548d0da | [
"MIT"
] | permissive | nanchenchen/emoticon-analysis | e184936d42d7b75a73e4893ca4367f70a3dab397 | 722bcf9d9f380267e980fa4c6d5c191abe7bafa1 | refs/heads/master | 2021-01-10T07:00:23.564011 | 2017-02-27T02:00:50 | 2017-02-27T02:00:50 | 52,655,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from emoticonvis.apps.base import views
urlpatterns = patterns('',
url(r'^$', views.HomeView.as_view(), name='home'),
# url(r'^explorer/$', views.ExplorerView.as_view(), name='explorer'),... | [
"nanchen.chen@gmail.com"
] | nanchen.chen@gmail.com |
410366e5ad536ac5c82a13b3847e5e834da6ab0a | 31e710e578e575079934e4001a7916771da0d307 | /fb.py | a2ce94d6f3faeb796f6a1149e9a12c6b75ac99fa | [] | no_license | yusaks83/id-text-classifier | 2209e6c0c24c47576a4ac19ec0c0ab03ac4f289a | ac87e01243d01aef9c2763065ca6e64c07e9ca1c | refs/heads/master | 2022-04-06T04:26:29.357725 | 2020-01-25T08:00:24 | 2020-01-25T08:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | import requests
import json
import ConfigParser
import sqlite3
import argparse
CONFIG_FILE='.config'
config = ConfigParser.ConfigParser()
config.readfp(open(CONFIG_FILE))
def get_page_info(page_id, page_token):
params = {
'fields': 'about,attire,bio,location,parking,hours,emails,website',
'access_token': p... | [
"yohanes.gultom@gmail.com"
] | yohanes.gultom@gmail.com |
f9043fdadb8a486157f6b6abb3dfbcb2c2658476 | eabec32eaae6eb28fd998ad56c0c7710c3310227 | /ch04/better_way_30/ex30-1.py | 69f7e5676444f0a0e13ca2824a7aa61f8c83d740 | [] | no_license | freebz/Effective-PYTHON | 943237a68f196fd74f1d4519def3504776dab12e | 8f55fd00d2f82317470c968144a6bd4eca082296 | refs/heads/master | 2020-03-29T15:41:00.866453 | 2018-09-24T08:40:47 | 2018-09-24T08:40:47 | 150,075,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | class Bucket(object):
def __init__(self, period):
self.period_delta = timedelta(seconds=period)
self.reset_time = datetime.now()
self.quota = 0
def __repr__(self):
return 'Bucket(quota=%d)' % self.quota
def fill(bucket, amount):
now = datetime.now()
if now - bucke... | [
"freebz@hananet.net"
] | freebz@hananet.net |
2f80c839b2f8e0faff0a8eda09937f5461b4e263 | 2383bf5a3b58e468d65713c361718795d51f1b97 | /python/locals2.py | 7a0bbf6de746abbf87a2659d9d76b2eadcd2f730 | [
"MIT"
] | permissive | rec/test | 3f4fb6614729ebc72d130888a8a9bc550f92988c | a260b9bf7fea96867e64163d3c891c2e2091f636 | refs/heads/master | 2023-08-03T13:49:24.347294 | 2023-07-28T09:19:39 | 2023-07-28T09:19:39 | 65,399,133 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | def foo(a, b):
c, d = 1, 2
def bar(e, f):
d = 2
return locals()
return bar(7, 2)
print(foo(1, 2))
| [
"tom@swirly.com"
] | tom@swirly.com |
a278fcdd4e57a7b6ea09f9ecebb827c6fedbd484 | 7ed4274e8cbc58d5a3fc553766f5ea422dd35782 | /python/Count_of_even_and_odd_set_bit_temenos_terv.py | 595083f45aa7d94e01d6effcc0ef38a9ee228654 | [] | no_license | G-Gowtham/Programming | 75bd789c97afedb3b035b712cf7db62b304059b7 | 05824b4cfcf62681e18521c857b8f359b4e18c58 | refs/heads/master | 2023-01-23T13:52:26.453816 | 2020-11-23T07:14:41 | 2020-11-23T07:14:41 | 277,239,521 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py |
def fn():
n = int(input().strip())
a = list(map(int,input().strip().split()))
k = int(input().strip())
for i in range(n):
a[i] = a[i]^k
even = odd = 0
for i in range(n):
if bin(a[i]).count('1') & 1:
odd += 1
else:
even += 1
... | [
"gowthamg.cs17@bitsathy.ac.in"
] | gowthamg.cs17@bitsathy.ac.in |
701debe670e572a959c234d15d9692e2c36257ce | 32809f6f425bf5665fc19de2bc929bacc3eeb469 | /src/1349-Maximum-Students-Taking-Exam/1349.py | 2a2336272275d4873bf52bbd88efcb2e1a80a90a | [] | no_license | luliyucoordinate/Leetcode | 9f6bf01f79aa680e2dff11e73e4d10993467f113 | bcc04d49969654cb44f79218a7ef2fd5c1e5449a | refs/heads/master | 2023-05-25T04:58:45.046772 | 2023-05-24T11:57:20 | 2023-05-24T11:57:20 | 132,753,892 | 1,575 | 569 | null | 2023-05-24T11:57:22 | 2018-05-09T12:30:59 | C++ | UTF-8 | Python | false | false | 1,034 | py | class Solution:
def maxStudents(self, seats: List[List[str]]) -> int:
r, c = len(seats), len(seats[0])
match = [[-1] * c for _ in range(r)]
def find(node, vis):
x, y = node
for i, j in [[-1, -1], [0, -1], [1, -1], [-1, 1], [0, 1], [1, 1]]:
nx,... | [
"luliyucoordinate@outlook.com"
] | luliyucoordinate@outlook.com |
8d6c7ec34d194ca3d1fe24775837464909dd58a0 | b46847557e01d07ca7e1886cd505629646b024e0 | /0x04-python-more_data_structures/100-weight_average.py | 65c6c850cd5836238176939dca044d1fc073e926 | [] | no_license | Manuelpv17/holbertonschool-higher_level_programming | 7caac5137a914e47182d23c80067ad1535a3d3c7 | 635841cbc7b13673a746332660e52dfe36beff90 | refs/heads/master | 2022-12-31T20:41:44.296825 | 2020-10-19T17:11:07 | 2020-10-19T17:11:07 | 259,357,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #!/usr/bin/python3
def weight_average(my_list=[]):
s = 0
div = 0
if my_list:
for item in my_list:
s += item[0] * item[1]
div += item[1]
return(s / div)
else:
return(0)
| [
"manuelpv17@outlook.com"
] | manuelpv17@outlook.com |
f19a567771c5d2451260b01ae01eb16ed55be9c8 | e86f40099817f4bf16f695040ef6096bc026b4a5 | /week9/day3/xp/film_project/accounts/urls.py | abb4425f4abb241809cbb6213c8ca36397f9c7b6 | [] | no_license | idosarue/DI_django | 7474e38c8b8cd668df3af5a0d88c021ada8da887 | cd3f91e51458941a5834fb65d6b8d6698770fc6c | refs/heads/main | 2023-07-16T12:10:07.549009 | 2021-09-02T17:42:30 | 2021-09-02T17:42:30 | 396,374,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from django.urls import path
from . import views
urlpatterns = [
path('signup', views.UserCreationView.as_view(),name='signup'),
path('login', views.UserLoginView.as_view(),name='login'),
path('logout', views.logout_view, name='logout'),
path('profile/<int:pk>', views.UserDetailView.as_view(), name='pr... | [
"dodojoker67@gmail.com"
] | dodojoker67@gmail.com |
ebf370aa88a7b9184ad65c6eb96ba32a715b2f9f | 26c019f7dadceaf773cd292d7364582bc2a278d2 | /project_management_portal/views/get_tasks/tests/test_case_02.py | 288009fa702a14fdc5792fa14db579f0d5488d44 | [] | no_license | DilLip-Chowdary-Codes/Backend_Mini_Projects | 289d5213a1c62d5b2ab26397e0d684632b139ad1 | f69dc6e9de4d621b782b703f2aa41cd126d8a58b | refs/heads/master | 2022-11-12T02:09:36.600636 | 2020-07-09T15:05:21 | 2020-07-09T15:05:21 | 272,417,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | """
Get Project Tasks With Invalid Project ID
"""
from project_management_portal.utils.custom_test_utils import CustomTestUtils
from . import APP_NAME, OPERATION_NAME, REQUEST_METHOD, URL_SUFFIX
REQUEST_BODY = """
{}
"""
TEST_CASE = {
"request": {
"path_params": {"project_id": "1"},
"query_params... | [
"CoderDil.DilLip@gmail.com"
] | CoderDil.DilLip@gmail.com |
e948eab32ab28aa3c46181e8bc9d8938cd3ee41f | 21b131564f9708d4667dc6dc0043ce6173dfa83c | /leetcode/Letter Combinations of a Phone Number.py | 129846b5a816ac0ce022466d1cfd1b3104a40206 | [] | no_license | hermitbaby/leetcode | 5f1b6854c181adabb00951a56dd5235316ab8a45 | 5b76e2ff61a42cd366447d4a7cf1f4f9c624369b | refs/heads/master | 2020-12-24T08:37:25.846329 | 2017-04-28T23:27:57 | 2017-04-28T23:27:57 | 34,924,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,076 | py | # Given a digit string, return all possible letter combinations that the number could represent.
#
# # A mapping of digit to letters (just like on the telephone buttons) is given below.
# 0 ' '
# 1 ''
# 2 'abc'
# 3 'def'
# 4 'ghi'
# 5 'jkl'
# 6 'mno'
# 7 'pqrs'
# 8 'tuv'
# 9 'wxyz'
class Solution... | [
"lchen@choicestream.com"
] | lchen@choicestream.com |
a435bb4bd6a4c6470c89133a68e5145ec8da9525 | e204cdd8a38a247aeac3d07f6cce6822472bdcc5 | /.history/app_test_django/urls_20201116161201.py | 89ba89a303ae19831d5f052c8c2d13c2bff40065 | [] | no_license | steven-halla/python-test | 388ad8386662ad5ce5c1a0976d9f054499dc741b | 0b760a47d154078002c0272ed1204a94721c802a | refs/heads/master | 2023-04-08T03:40:00.453977 | 2021-04-09T19:12:29 | 2021-04-09T19:12:29 | 354,122,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('register', views.register_new_user),
path('login', views.login),
path('logout', views.logout),
#this is our mainpage
path('dashboard', views.view_dashboard),
# page to view trip details
path(... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
8cc181dc636928f09fba66cdeb0f02c235dc5c27 | 8bccc05fcb3cfc6ed93991927a514a96f53f7ec0 | /old_version/experiment_construction/experiment_factory.py | a904cfb02f23cf9a63a61b232572ab4e3b23d0c3 | [
"MIT"
] | permissive | afcarl/QuestionAnsweringGCN | 54101c38549405d65ef22e38fed9e5bd58122ada | e9c1987b40a553f0619fa796f692c8880de32846 | refs/heads/master | 2020-03-20T10:35:55.729170 | 2018-06-07T11:45:12 | 2018-06-07T11:45:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,019 | py | import copy
from experiment_construction.candidate_generator_construction.candidate_generator_factory import \
CandidateGeneratorFactory
from experiment_construction.candidate_selector_construction.candidate_selector_factory import CandidateSelectorFactory
from experiment_construction.evaluator_construction.evalua... | [
"michael.sejr@gmail.com"
] | michael.sejr@gmail.com |
6c2c5cb39dca836cf879f550c992968d9f2649c7 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_noisy822.py | 4ffde5d86d60c86bdf274d1e02395f1534394299 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=21
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
328848df9ad64dcdf107187698a93df7e5030373 | 1be3fd4f49ff1ba41b36bdb45ad1cd738b7e2e97 | /滑动窗口/LeetCode76.py | 93166534a78ffbc062b53a605faced949a177c32 | [] | no_license | ltzp/LeetCode | d5dcc8463e46b206515c1205582305d8ce981cc5 | f43d70cac56bdf6377b22b865174af822902ff78 | refs/heads/master | 2023-07-28T02:36:44.202092 | 2021-09-08T15:55:09 | 2021-09-08T15:55:09 | 308,343,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/8/14 0014 22:32
# @Author : Letao
# @Site :
# @File : LeetCode76.py
# @Software: PyCharm
# @desc :https://leetcode-cn.com/problems/find-all-anagrams-in-a-string/solution/hua-dong-chuang-kou-tong-yong-si-xiang-jie-jue-zi-/
class Solution(object)... | [
"806518802@qq.com"
] | 806518802@qq.com |
1381b3eb934fc176184f2eb4ce790fcdf115841a | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2021_08_01/_application_insights_management_client.py | 8768e924954892492d5e22ca2b1c3ab8ff82bbe5 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,024 | 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 may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
efb4bb356ef97de35d245c922b40cb0981b37cc1 | 17efe1f46ee5067e63b46e4a65b2e57a24629c96 | /api/urls.py | 36e6666ee27c41166d24a174528bea4e724aadbb | [] | no_license | Gathiira/DRF | 4859a588c2886e9507ac53dbb3dea529fd80f0d9 | 31fd2b5c685fd7c23faa512a21c73a7ff7ea7d6c | refs/heads/master | 2022-12-09T13:20:13.957856 | 2020-09-06T21:01:33 | 2020-09-06T21:01:33 | 293,360,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.urls import path
from .views import api_view, article_detail, ArticleView,ArticleDetailApiView
urlpatterns = [
path('article/', ArticleView.as_view()),
# path('article/', api_view),
path('article/<int:id>/', ArticleDetailApiView.as_view()),
# path('article/<int:id>/', article_detail),
]
| [
"mwangyjose@gmail.com"
] | mwangyjose@gmail.com |
426f0d90f9bc573fa1f0b541d4ee240743ca4efa | 9d16e04642d0559a2423b2a796f241e71c591762 | /universities/serializers/__init__.py | 4cca7a9b0e6f62b54f118e54db0a3ff1530b1448 | [] | no_license | egitimplus/educate | 061c6d0c6b7b704fa5ad628781e12ae766c50227 | d89b87c8cd2e0bb8194121a7b83527ccf50873c4 | refs/heads/master | 2022-09-23T21:20:33.693153 | 2020-06-04T22:20:00 | 2020-06-04T22:20:00 | 237,447,197 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from .condition import ConditionSerializer
from .department import DepartmentSerializer
from .discount import DiscountSerializer
from .faculty import FacultySerializer
from .language import LanguageSerializer
from .new import NewSerializer
from .property import PropertySerializer
from .section import SectionSerializer
... | [
"info@internet.com.tr"
] | info@internet.com.tr |
a2a5e980b54820b51d13317549769960c53d04be | c8b3c5e4f705d306f397beb1fca5ed77d8fa1aed | /test/test_mailboxes_api.py | 176a586f7eedac31ecf2c47c5c0732d0417dcf79 | [] | no_license | safchain/asyncio-ari | 0707a9077a455c69d8829d6177e6f6bbf68a11a0 | 4b8b42cefe03ae9d6b6c1d40d947c427c5a6686b | refs/heads/master | 2023-08-30T22:53:47.705516 | 2020-01-28T17:02:21 | 2020-01-28T17:02:21 | 232,546,848 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | # coding: utf-8
"""
localhost:8088
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 4.0.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import... | [
"safchain@gmail.com"
] | safchain@gmail.com |
008e0cfbd49226f9d4d7575573a35fd796a5d83c | 8771c94dce3c7e30c9e5b5f45cf8683ba9cac6fd | /tests/algorithms/p0170_two_sum_iii_1_test.py | 3e40148b325306ac1bfd422c1094cd5e1c1f8bc4 | [] | no_license | J14032016/LeetCode-Python | f2a80ecb7822cf12a8ae1600e07e4e6667204230 | 9a8f5329d7c48dd34de3105c88afb5e03c2aace4 | refs/heads/master | 2023-03-12T02:55:45.094180 | 2021-03-07T07:55:03 | 2021-03-07T07:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import unittest
from leetcode.algorithms.p0170_two_sum_iii_1 import TwoSum
class TestTwoSum(unittest.TestCase):
def test_two_sum(self):
two_sum = TwoSum()
two_sum.add(1)
two_sum.add(3)
two_sum.add(5)
self.assertTrue(two_sum.find(4))
self.assertFalse(two_sum.find(7)... | [
"mao_xiaodan@hotmail.com"
] | mao_xiaodan@hotmail.com |
183927a7ff7e665d0fa82a9b05c2c55a2ebd1f67 | 72df811521e3da73187388c737599ddd0a4631fc | /START_PYTHON/4日/11.バンボクムンwhile/08.continue.py | ea20b3f2c41af43b650578135918a9f32f9b89b8 | [] | no_license | munsangu/20190615python | e7480044cfa07dcb65e8ca168c7cf9ecb73ffe7a | c496bc471503ac0e2ba0d928c01085c8b569d173 | refs/heads/master | 2020-06-04T14:59:49.822865 | 2020-02-08T11:49:16 | 2020-02-08T11:49:16 | 192,071,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # while, break, continue : 다른 언어에서 그대로 나옴
num = int(input("정수 입력: "))
print("=== 3의 배수 출력 ===")
#9 => 3, 6, 9
i = 0
while i <num:
i+=1
if i % 3 !=0:
continue # 반본문의 조건식(처음)으로 이동
print(i,end=" ")
while True:
value = input("정수 입력[q to quit] : ") #문자열로 입력
if value == 'q':
break #반복문 종료... | [
"ds-3632@hanmail.net"
] | ds-3632@hanmail.net |
3ccd93b1ec2ea2ef6809bc1e0840f6b7083ad25a | aa13e1d93b7a8017e1e610a900bd05f6df91604f | /hackerrank/contests/infinitum15/angels-in-space.py | 873c97083ac964f9845da7ac63c869d4bd14a4f1 | [] | no_license | laveesingh/Competitive-Programming | 3ce3272eab525635f9ce400f7467ee09de8b51df | 41047f47c23bc8572a1891e891a03cc3f751e588 | refs/heads/master | 2021-01-24T09:51:00.332543 | 2017-10-30T17:11:48 | 2017-10-30T17:11:48 | 52,956,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from math import acos,sqrt
class point:
def __init__(self, a, b, c):
self.x = a
self.y = b
self.z = c
def __repr__(self):
return "%di + %dj + %dk"%(self.x, self.y, self.z)
def abs_val(a):
return sqrt(a.x ** 2 + a.y ** 2 + a.z ** 2)
def angle(a, b, c):
ba = point(b.x-a.x, b.y-a.y, b.z-a.z)
bc = point(b.x-... | [
"laveechaudharytheone@gmail.com"
] | laveechaudharytheone@gmail.com |
42bd7153a0820fb02ff6b61b6eca94c3fcd9ed59 | b6744dcb868998e23b482d41e2c59c55d3ddc92d | /Configurations/VH2j/configuration.py | a89355c5813b5936629e67209c598c4aab79ac7f | [] | no_license | lorusso7/PlotsConfigurations | 68aa4d7b02ed703a28c7b0347ead134cb3e3e710 | e9190661003fbf763febc370858876c6e331a683 | refs/heads/master | 2020-05-29T09:12:35.863601 | 2016-10-07T09:46:04 | 2016-10-07T09:46:04 | 70,232,589 | 0 | 0 | null | 2016-10-07T09:23:30 | 2016-10-07T09:23:29 | null | UTF-8 | Python | false | false | 892 | py | # example of configuration file
tag = 'VH2j'
# used by mkShape to define output directory for root files
outputDir = 'rootFile'
# file with list of variables
variablesFile = 'variables.py'
# file with list of cuts
cutsFile = 'cuts.py'
# file with list of samples
samplesFile = 'samples.py'
# file with list of ... | [
"massironi.andrea@gmail.com"
] | massironi.andrea@gmail.com |
a3752cf6cf9c7a176ef1055419cfbd0545adffac | 9307d42ca27c8f07115197851a4d2355a7492abc | /accounts/migrations/0003_auto_20201211_1019.py | 5c8b8e62cbe3e7bd028b5f83c5a824e98df58acc | [] | no_license | dkutelov/djangoevents | 2a1c05d187a32557d4e5195cbe349efb05611ce4 | 9b6c4c9db366d7e282542cb853123dcca6191f8e | refs/heads/master | 2023-01-29T15:37:47.664373 | 2020-12-13T13:17:58 | 2020-12-13T13:17:58 | 314,523,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # Generated by Django 3.1.3 on 2020-12-11 10:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20201124_1502'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='about',
... | [
"dari.k@abv.bg"
] | dari.k@abv.bg |
3409b1106e8474e0031045be3de2774212816e17 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/1148.py | 553f1253eec203682a71c35ec8896aec2009ab17 | [] | 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 | 1,748 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@author: Bilal Saim 2017 [Bilisel]
'''
import math
import sys
import os
def algorithm(num,inval):
##########################
#Code Area
d,n = inval.readline().strip().split()
n = int(n)
say = 0
for i in range(len(d)-1,-1,-1):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4a5e4e027d487071741339467fc85c6bfae0897b | fd18ce27b66746f932a65488aad04494202e2e0d | /qt/codes/c01_app/p02_QApplication.py | 3fe914d1ed69ce76a1011162b126f0c615908764 | [] | no_license | daofeng123/ClassCodes | 1acbd843836e550c9cebf67ef21dfca9f6b9fc87 | fbcd1f24d79b8bb56ad0669b07ad118064609612 | refs/heads/master | 2020-06-24T12:34:28.148197 | 2019-08-15T03:56:40 | 2019-08-15T03:56:40 | 198,963,469 | 3 | 0 | null | 2019-07-26T06:53:45 | 2019-07-26T06:53:44 | null | UTF-8 | Python | false | false | 892 | py | # coding = utf-8
import sys
import PyQt5.QtGui
import PyQt5.QtWidgets
# def handle_quit():
# print('退出')
# # PyQt5.QtWidgets.QApplication.quit()
# PyQt5.QtWidgets.QApplication.exit(1)
#
app = PyQt5.QtWidgets.QApplication(sys.argv) # 参数是Qt应用需要使用的命令行参数,没有就是用空里列表
icon = PyQt5.QtGui.QIcon('ico.png')
PyQt5.... | [
"38395870@qq.com"
] | 38395870@qq.com |
fb025dd9b3dc78a3e85b59c0962c3c1e8976b113 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_nonconformists.py | a6bb02199ec793ae6165e238991cc64f1e0bf4d9 | [
"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 | 250 | py |
#calss header
class _NONCONFORMISTS():
def __init__(self,):
self.name = "NONCONFORMISTS"
self.definitions = nonconformist
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['nonconformist']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c64b0c97d240c06afb4ed04a24dccd8d21499727 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/R2/benchmark/startQiskit_noisy26.py | fd7c7d2b79cd973577df10d8cb9308e8f616a693 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,959 | py | # qubit number=2
# total number=7
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from q... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3c9022be389b030c26fd5aace38b46be4fa518ef | f4dd8aa4e5476ffde24e27273dd47913c7f9177a | /Dlv2_safe2/tests/parser/rewriting.projection.6.test.py | e7c6c115af7ad5b128556e1c5ed01d8fffd15cb2 | [
"Apache-2.0"
] | permissive | dave90/Dlv_safe2 | e56071ec1b07c45defda571cb721852e2391abfb | f127f413e3f35d599554e64aaa918bc1629985bc | refs/heads/master | 2020-05-30T10:44:13.473537 | 2015-07-12T12:35:22 | 2015-07-12T12:35:22 | 38,256,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | input = """
% If the IDB is ground, rewrite Constraints nevertheless.
f(1,2).
g(2,3).
h(3,4).
%x(C) :- f(A,B), g(B,C), h(C,D).
:- f(A,B), g(B,C), h(C,D), true.
true | false.
"""
output = """
% If the IDB is ground, rewrite Constraints nevertheless.
f(1,2).
g(2,3).
h(3,4).
%x(C) :- f(A,B), g(B,C), h(C,D).
:- f(A,... | [
"davide@davide-All-Series"
] | davide@davide-All-Series |
2869073960a70592f7c485cbce89dbdb78792c42 | 94dbed2db983d70a7799d361ae50a8d11b1388d1 | /devcon_iv_ethpm/solidity_manifest.py | 6f386358e887210ff4ec131e19757324b09874e5 | [
"MIT"
] | permissive | njgheorghita/devcon-iv-ethpm | 609cc305f51ca26842c2245fb1618b2820be031c | 3cbd1dd64fdbfb787f89cd369acb6f3d36893817 | refs/heads/master | 2022-02-28T18:50:33.342352 | 2018-11-01T11:16:40 | 2018-11-01T11:16:40 | 154,509,750 | 4 | 0 | MIT | 2018-11-01T11:16:41 | 2018-10-24T13:52:27 | Python | UTF-8 | Python | false | false | 145 | py | # To generate a manifest for your solidity contracts, follow the guide in `devcon_iv_ethpm/solidity_contracts/escrow/escrow_manifest_creation.py
| [
"nickgheorghita@gmail.com"
] | nickgheorghita@gmail.com |
3f40928c651927ffe653b26082e9eed181c7f7a7 | 44ff565bb1838a445e0d5a89ea3ca3e4b29b3686 | /Python算法详解/第13章/13-3/match3cocos2d/GameController.py | 25f78f8f136429e0b5e9e2f373b5a44e7d7b8801 | [
"CC-BY-3.0",
"CC-BY-4.0"
] | permissive | huoweikong/python_pch_kiton | df3162aae397e82df9ef575f5f9d26039e5e036e | 057cef1f34c76701840e7b8b46a5955b9f38b86b | refs/heads/master | 2023-01-10T22:40:45.610986 | 2020-11-19T18:37:56 | 2020-11-19T18:37:56 | 313,897,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | from cocos.layer import Layer
class GameController(Layer):
is_event_handler = True #启用pyglet's事件
def __init__(self, model):
super(GameController, self).__init__()
self.model = model
def on_mouse_press(self, x, y, buttons, modifiers):
self.model.on_mouse_press(x, y)
def on_mouse... | [
"1154282938@qq.com"
] | 1154282938@qq.com |
2e0b662d1e9ac291edab15c28e12081fee3276f2 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/tlm/retrieve_lm/tf_record_writer.py | 109d942f763ef1346c593a200ec13cb3355808dc | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 2,904 | py | import os
import pickle
import random
import cpath
from data_generator import tokenizer_wo_tf as tokenization
from job_manager.marked_task_manager import MarkedTaskManager
from tlm.two_seg_pretraining import write_instance_to_example_files, write_predict_instance
def filter_instances(data):
inst_list, info_list ... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
039329b4d36bc32cb8b9e8e693e2b5b23e866ad2 | eb96d12a12650b537826000b4cc792f45885fc30 | /buildservice/utils/decorators.py | 1d2e5797eaf6e114eca00f655baa06d2fbbed608 | [
"MIT"
] | permissive | m-vdb/github-buildservice-boilerplate | 8f0b1b2c04a9c78c13fcce2371bcb11fbc375d2f | 1d62eb60db2c889f95192165582f2b9dcf133acf | refs/heads/master | 2021-01-21T13:48:15.425298 | 2016-04-25T22:35:08 | 2016-04-25T22:35:08 | 53,641,585 | 5 | 0 | null | 2016-04-25T22:35:08 | 2016-03-11T05:16:25 | Python | UTF-8 | Python | false | false | 3,110 | py | """Decorators for views"""
from functools import wraps
import hashlib
import hmac
import json
from django.conf import settings
from django.http import HttpResponse, JsonResponse
from django.shortcuts import redirect
from buildservice.models import OAuthToken
def oauth_token_required(func):
"""
A decorator t... | [
"mvergerdelbove@work4labs.com"
] | mvergerdelbove@work4labs.com |
e293623922bf73d548472febd2df2980c9b68a7b | ae9bd6f9a8fc4133a03db60910c25617b65732f1 | /pyro_models/arm/radon_vary_intercept_floor2.py | d83ab43fde7757a5922ab557a22a317ccbed5d3c | [
"MIT"
] | permissive | afcarl/pyro-models | 0af1a239af81436b1980752c132f288ea59bcbc3 | 1fc3f4b27fe946a99b2ddd6b57cca16f8c7da181 | refs/heads/master | 2022-01-27T13:15:33.641771 | 2019-07-09T18:55:39 | 2019-07-09T18:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | # model file: example-models/ARM/Ch.21/radon_vary_intercept_floor2.stan
import torch
import pyro
import pyro.distributions as dist
def init_vector(name, dims=None):
return pyro.sample(name, dist.Normal(torch.zeros(dims), 0.2 * torch.ones(dims)).to_event(1))
def validate_data_def(data):
assert 'J' in data, 'va... | [
"jonathanp.chen@gmail.com"
] | jonathanp.chen@gmail.com |
d1464270c20be17773e336aed4a84593d8be4da3 | 6aa8fd438e12e4e285d9b89be15e211e607821e0 | /.metadata/.plugins/org.eclipse.core.resources/.history/55/309f3e90deab001415f0c2d70c083f17 | 7e83f30641743b997a52533bfa558f52570ad4d2 | [] | no_license | phoenixproject/python | 2aa251c9fe9a3a665043d5f3d29d48c0f95b9273 | f8171d31d1d33a269d29374e7605a8f5bce6b5d6 | refs/heads/master | 2021-03-12T19:15:01.611936 | 2015-02-04T08:25:27 | 2015-02-04T08:25:27 | 30,287,884 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | #!/usr/bin/python3
def main():
x = func()
print(x)
def func():
return "Ola mundo"
if __name__ == "__main__" : main() | [
"phoenixproject.erp@gmail.com"
] | phoenixproject.erp@gmail.com | |
c8ff126554f78fae28eb5902319f4e21e98e047e | f95d2646f8428cceed98681f8ed2407d4f044941 | /tensorflow/day01/tf02.py | e5c79624260039e483e2695ab779da65860ccc3b | [] | no_license | q2806060/python-note | 014e1458dcfa896f2749c7ebce68b2bbe31a3bf8 | fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983 | refs/heads/master | 2020-08-18T01:12:31.227654 | 2019-10-17T07:40:40 | 2019-10-17T07:40:40 | 215,731,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import tensorflow as tf
import numpy as np
def fun01():
# 定义一个二维数组
# 使用tf.constant方法定义一个二维常量m2
# 将m1装换为张量类型
# 对m1和m2进行加运算
# 输出运算的结果
m1 = np.array([[1, 2],[3, 4]])
m2 = tf.constant([[1, 2],[3, 4]], dtype=tf.float32)
m3 = tf.convert_to_tensor(m1, dtype=tf.float32)
m4 = m2 + m3
... | [
"C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn"
] | C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn |
bc9f6c034ff680dee1be9713eb01e925507afdcc | 5a4f82c4e10e09f1b6698371d1a23de36f351260 | /unsupervised_learning/0x00-dimensionality_reduction/5-Q_affinities.py | a9025ba2ebabf09aac1c5e0eeeecc7a262139168 | [] | no_license | icculp/holbertonschool-machine_learning | 20a0bb730134e24504d406cf7a88b1f688e1905d | 5114f884241b3406940b00450d8c71f55d5d6a70 | refs/heads/main | 2023-07-16T11:58:15.976074 | 2021-08-12T16:22:13 | 2021-08-12T16:22:13 | 317,306,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/env python3
"""
Dimensionality Reduction
Only numpy allowed
Your code should use the minimum number of
operations to avoid floating point errors
"""
import numpy as np
def Q_affinities(Y):
""" doc
"""
Q = np.ndarray((X.shape[0], X.shape[0]))
num = np.ndarray((X.shape[0],... | [
"icculp@gmail.com"
] | icculp@gmail.com |
8b70f82626154d501f87c9307ddce4ac9d5e7c89 | 5fe3a50e38e218086fd34f5c150f264a74645a10 | /scripts/iqtest-dataset/21-test-h5-v2.py | 33889ee08e997a28d1549d5a844ffe9387a8a5e7 | [] | no_license | fgolemo/inversegraphics-generator | 6d5071f4f343afaac5405a5e1f962bfcc86b835c | 4fa4c6ba0d3e6d7f59f08506fb1d7d0ae293944b | refs/heads/master | 2020-03-28T13:14:02.248999 | 2019-02-18T19:29:51 | 2019-02-18T19:29:51 | 148,376,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | import random
import time
import numpy as np
import h5py
from tqdm import tqdm
from inversegraphics_generator.iqtest_objs import get_data_dir
OUT_PATH = get_data_dir() + "/3diqtt-v2-x2.h5"
f = h5py.File(OUT_PATH, 'r')
print(list(f.keys()))
q = f["train/labeled/questions"]
print(q.shape)
print(f["train/labeled/ans... | [
"fgolemo@gmail.com"
] | fgolemo@gmail.com |
ec3b42712890a4358feb3f6f61c3318fa8d2d583 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/twilio/twilio/rest/wireless/v1/usage_record.py | ac534a2110c97c78fdd23586075d458a4599cc6d | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:88c33036f10db1d0363380a88aeea885fbe12711c29e691ce428e52166dc10ef
size 9154
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
7bc7a3bb2d92c3f22ca4fa3af34844fc33d4c0b8 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/modules/test_global_narrow.py | fd79695af017ac9f6f44d8ad1098db461947fc2a | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 1,514 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | Oneflow-Inc.noreply@github.com |
4257c77ae85d12fea69dbd193c76a44b21e33c9d | 32879c790b4c9bb17489128cf42f8954119de747 | /TEAM SKHAF/hack/core/forms.py | 122eab4a7243fc2e42a53ea839808e766356e575 | [] | no_license | isqip/isqip-17 | 5ae2a84ef47fa8d98b41a727a3aeb3e7fc16d85a | ca6ebb0200315b86eafb5fccadff739199a925a2 | refs/heads/master | 2021-01-18T20:08:21.401286 | 2017-10-31T14:15:02 | 2017-10-31T14:15:02 | 95,601,792 | 4 | 2 | null | 2017-10-31T14:15:03 | 2017-06-27T21:18:56 | JavaScript | UTF-8 | Python | false | false | 160 | py | from django import forms
from .models import Messages
class MessageForm(forms.ModelForm):
class Meta:
model=Messages
fields=['name','email','comments']
| [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
29e501dadf0d2f09e900eb1d89e44e919a616728 | 0a7d49300a547eecc823b78a891057f1017db1b2 | /gui_test/test_pyqt/test_animate.py | 935877fa3993e2f20c9eebcc9e17fb4600ca91c8 | [] | no_license | PeterZhangxing/codewars | f315b2ce610207e84a2f0927bc47b4b1dd89bee4 | 8e4dfaaeae782a37f6baca4c024b1c2a1dc83cba | refs/heads/master | 2020-09-22T12:09:59.419919 | 2020-03-02T12:52:55 | 2020-03-02T12:52:55 | 224,330,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,744 | py | from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class MyWindow(QWidget):
def __init__(self):
super(MyWindow, self).__init__()
self.setWindowTitle('background_learning')
self.resize(800, 800)
# self.init_animation_gui()
self.init_ag_gui()
... | [
"964725349@qq.com"
] | 964725349@qq.com |
0de9e21de43124ec94b46f6f6da292a5621625a4 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_sox.py | bceb4b6b90e452c7eca59eee6471439814256051 | [
"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 | 404 | py |
#calss header
class _SOX():
def __init__(self,):
self.name = "SOX"
self.definitions = [u'an informal spelling of "socks", used, for example, in the names of some US baseball teams who wear socks of a particular colour: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
048b253e6a6472f4f24f9de50cc5aec5a8eba4e7 | 0617c812e9bf58a2dbc1c1fef35e497b054ed7e4 | /venv/Lib/site-packages/pyrogram/raw/base/rich_text.py | 937f378ef1250c45156e4762231f2f0cfab32f54 | [] | no_license | howei5163/my_framework | 32cf510e19a371b6a3a7c80eab53f10a6952f7b2 | 492c9af4ceaebfe6e87df8425cb21534fbbb0c61 | refs/heads/main | 2023-01-27T14:33:56.159867 | 2020-12-07T10:19:33 | 2020-12-07T10:19:33 | 306,561,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | [
"houwei5163"
] | houwei5163 |
4b7e927d3034f8b90d018de3f0f03e78e94462a9 | 52d9daeefbae6a1c6346e61f22122184b1beef20 | /10990.py | b5153e576aeeaaa4f9436106e788c666bdbca1e0 | [] | no_license | chiseungii/baekjoon | 4034947f63c515bdebc24c3f48247a7f00319ab3 | 6d0fb79292ef4927ab6343f6b82ea63609f560b5 | refs/heads/master | 2021-06-13T14:50:17.762402 | 2021-05-26T16:00:41 | 2021-05-26T16:00:41 | 188,278,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | N = int(input())
if N == 1: print('*')
else:
print(' ' * (N - 1), '*', sep='')
j = 1
for i in range(N - 2, -1, -1):
print(' ' * i, '*', ' ' * j, '*', sep='')
j += 2
| [
"noreply@github.com"
] | chiseungii.noreply@github.com |
543d8675d8dbccaa935c63e83f75b6e9927fb19b | 5bfdf46b8391584170ba430cef5ce411432f7c69 | /wordlist/views.py | c4e8960ac7039bbcec4a1338ac77a3705647e5a6 | [] | no_license | nomadlife/wordstudy | 9a86b1b91dccae546b86930e3a225c3b126149fe | 1d118ae6b4ff21ce3af2e6052bc0904117e305d7 | refs/heads/master | 2020-03-11T01:57:11.131042 | 2018-04-25T06:23:31 | 2018-04-25T06:23:31 | 129,706,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | from django.shortcuts import render
from wordlist.forms import *
from wordlist.models import *
# Create your views here.
def list(request):
wordList = Word.objects.all()
return render(request, 'list.html',{'wordList':wordList})
def input(request):
if request.method == 'POST':
form = Form(request.POST)
if form... | [
"joonwoo3816@gmail.com"
] | joonwoo3816@gmail.com |
b7217ef4d31baaf8afa40a35c34384528fb61559 | badf813b23670f38233a2f66031df33b12d6685c | /annolid/gui/widgets/train_model_dialog.py | 9474fd5d3b0ad7885247c32185dc02983807e714 | [
"MIT"
] | permissive | healthonrails/annolid | 6ef2de72bc666e247ae51ae1a5df3d75337fc28c | 730f7dff2239ef716841390311b5b9250149acaf | refs/heads/main | 2023-09-01T20:52:14.857248 | 2023-09-01T14:34:34 | 2023-09-01T14:34:34 | 290,017,987 | 25 | 8 | MIT | 2022-05-03T14:36:21 | 2020-08-24T19:14:07 | Jupyter Notebook | UTF-8 | Python | false | false | 6,676 | py | from pathlib import Path
from qtpy import QtCore
from qtpy import QtWidgets
class TrainModelDialog(QtWidgets.QDialog):
def __init__(self, *args, **kwargs):
super(TrainModelDialog, self).__init__(*args, **kwargs)
self.setWindowTitle("Train models")
self.raidoButtons()
self.slider()
... | [
"healthonrails@gmail.com"
] | healthonrails@gmail.com |
684500ad039246558a6b5f8586be6c18cece57ce | 3672e656e16ac5021ceecf046c7c82f99d76d961 | /排序/shell_sort.py | a75eda51179f3a13027c885f05f36387373ee2c9 | [] | no_license | leolvcl/nlp_learning | a377b88517651ad9cc2e3b9f0e4ed1fa4e91d723 | 703bbcabf6251261d574f4d834817e9ba3829017 | refs/heads/master | 2022-04-20T18:23:58.554389 | 2020-04-18T03:57:52 | 2020-04-18T03:57:52 | 255,968,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | def direct_insertion_sort(d): # 直接插入排序,因为要用到后面的希尔排序,所以转成function
d1 = [d[0]]
for i in d[1:]:
state = 1
for j in range(len(d1) - 1, -1, -1):
if i >= d1[j]:
d1.insert(j + 1, i) # 将元素插入数组
state = 0
break
if state:
d1.... | [
"lvclleo@gmail.com"
] | lvclleo@gmail.com |
700b6c8a4c32014bcb92736307d9456a72720645 | 8dcaee30fc5dd0c8982c324e88ede5dd693b0a76 | /fcbanking/settings.py | 31441b9d51e4ccce78bd85b55ff996cd1c1d7910 | [] | no_license | hristo-grudev/fcbanking | 5de88d058a8274d5510a74b1bc0ab15d390bc7f2 | 22ff439bec0e5480e6577eff0903947be53adc08 | refs/heads/main | 2023-04-06T20:05:54.629491 | 2021-04-06T09:25:32 | 2021-04-06T09:25:32 | 355,130,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | BOT_NAME = 'fcbanking'
SPIDER_MODULES = ['fcbanking.spiders']
NEWSPIDER_MODULE = 'fcbanking.spiders'
FEED_EXPORT_ENCODING = 'utf-8'
LOG_LEVEL = 'ERROR'
DOWNLOAD_DELAY = 0
ROBOTSTXT_OBEY = True
ITEM_PIPELINES = {
'fcbanking.pipelines.FcbankingPipeline': 100,
}
USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64;... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
83f69999f2622b12efccfc09fccab106f23ab1c1 | f3779604b26f277912134d351198117abf420f98 | /coremltools/converters/mil/mil/passes/linear_bias_fusion.py | bc7671ce03255cc0a2745251cb48271699c68ea4 | [
"BSD-3-Clause"
] | permissive | hollance/coremltools | a97e0a7323c297200c218adb72125e2c02437d3f | da9b8ca98e5a758290f6a5703a995b56c22288c6 | refs/heads/master | 2022-10-26T21:29:44.129782 | 2022-10-13T03:38:38 | 2022-10-13T03:38:38 | 237,069,912 | 2 | 2 | NOASSERTION | 2020-01-29T19:56:16 | 2020-01-29T19:56:15 | null | UTF-8 | Python | false | false | 4,856 | py | # Copyright (c) 2021, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
import numpy as np
from coremltools.converters.mil.mil import Builder as mb
from coremltools.convert... | [
"noreply@github.com"
] | hollance.noreply@github.com |
565a05759dc29fc07dec98ee4cfab69206842f54 | 4eb5f091739205e9f4f24099f06d17a7d9718b7f | /tethys_main/patches/tethys_wps/processes/buffer_process.py | 6c66e911615f1401b79dab47e5a56a6c876fb013 | [] | no_license | zhiyuli/tethys_in_docker | cf6d6ad912589b6dfbf6b09dff368b4ada41d513 | c4f700f6637f1edaf8b5bc0d43661195fad68a73 | refs/heads/master | 2021-01-11T00:21:36.940230 | 2018-01-06T19:20:39 | 2018-01-06T19:20:39 | 70,540,648 | 0 | 0 | null | 2017-09-01T17:30:04 | 2016-10-11T00:36:38 | Python | UTF-8 | Python | false | false | 3,639 | py | # Copyright (c) 2016 PyWPS Project Steering Committee
#
# 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... | [
"zyli2004@gmail.com"
] | zyli2004@gmail.com |
09ac5dc46489661fc6e5507edf2307704b5fa856 | a731c7a7c5819eed66321ed9ce3e5bea17aa1bf0 | /mix/asgi.py | d4deb0e18153249550fc1fd771131857ecf224e6 | [] | no_license | manulangat1/Netflix-clone | 88446ab9e2970901fea0faf5c04966b80aea9780 | 6c0f42da3163fbc578e6480e8e45c726f4189faf | refs/heads/master | 2023-01-21T02:25:47.958111 | 2020-08-02T20:41:33 | 2020-08-02T20:41:33 | 239,462,394 | 10 | 1 | null | 2023-01-07T14:46:04 | 2020-02-10T08:30:34 | Python | UTF-8 | Python | false | false | 383 | py | """
ASGI config for mix project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"emmanuelthedeveloper@gmail.com"
] | emmanuelthedeveloper@gmail.com |
98ea7774cbe638579b888f8b69c6a03525e4f371 | f4cb28bea3d02e3f9d4e3a24939449799f5dda0c | /GeneralProblems/Python/MazeGeneration.py | 26e436a8f7138efddcb231d5aa0902fbda3624a2 | [
"MIT"
] | permissive | bi3mer/WorkSpace | f7b3a2f3c896c58472b1147593e60ac9c23048e8 | 827df6cb2c3f9f79dc0554a9ca5f656b4dbc7033 | refs/heads/master | 2020-04-15T22:48:26.752028 | 2016-09-22T22:50:25 | 2016-09-22T22:50:25 | 27,802,878 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,701 | py | #!/bin/python
from random import randrange
import sys
## Board sizes
WIDTH = 20 #20
HEIGHT = 23 #23
## Types in Board
PATH = '.'
WALL = 0
START = 2
END = 3
CELL = 7
## Directions
EAST = [ 1, 0]
WEST = [-1, 0]
SOUTH = [ 0, 1]
NORTH = [ 0, -1]
DIRECTIONS = [NORTH, EAST, SOUTH, WEST]
NORTH... | [
"colan@comcast.net"
] | colan@comcast.net |
0ce72a86e196ea3de76158c616a3742843b9c2b4 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0721-Accounts-Merge/soln-1.py | 5d27a3760b7473590b8dbc0a732608c074ff83fc | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 1,081 | py | class Solution:
def accountsMerge(self, accounts):
"""
:type accounts: List[List[str]]
:rtype: List[List[str]]
"""
# build a graph that map email to person
graph = collections.defaultdict(list)
for i, account in enumerate(accounts):
for email ... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.