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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
a7b35145053a8bed8861f95d47f59efd236668c1 | 2937d60b7f5259b4899ba5af08146bd874529a67 | /Assignment 3 q3.py | 0b074f609caaed87f5f5d70e487fd2509cace2ce | [] | no_license | gourav47/Let-us-learn-python | 9a2302265cb6c47e74863359c79eef5a3078358a | b324f2487de65b2f073b54c8379c1b9e9aa36298 | refs/heads/master | 2021-06-27T03:33:27.483992 | 2021-01-07T12:26:16 | 2021-01-07T12:26:16 | 204,323,390 | 1 | 1 | null | 2020-07-19T14:25:12 | 2019-08-25T16:53:56 | Python | UTF-8 | Python | false | false | 91 | py | '''print first 10 odd natural numbers'''
x=1
while x<=9:
print(x)
x=x+2
| [
"noreply@github.com"
] | gourav47.noreply@github.com |
922620ed7e45ad61ea81b27b277f7f3ad161bba0 | c1add0255d0bd824ed59e922a3b0be229e48b161 | /tf_agents/bandits/multi_objective/multi_objective_scalarizer.py | b9a4d8f661851756a0add186538baa655c14d8d1 | [
"Apache-2.0"
] | permissive | shheyman/agents | d62a57b370ec9f721f1c9d36c93310880bf46cff | 11d3b98f2d9edbb7e33484657ce61e941a73312d | refs/heads/master | 2023-09-05T15:12:36.000971 | 2021-11-24T15:24:05 | 2021-11-24T15:24:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,419 | py | # coding=utf-8
# Copyright 2020 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.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 |
73e39b69fb9f9006d714ecd0f72537cc9abc06a0 | 601f42e4338209e3d5317c3940fdf820dd682bd9 | /nqbplib/toolchains/windows/arm_m4_arduino/atsamd51_grandcentral.py | f3ffaad95bd9ab57c320625464820c4e4f759f5a | [] | no_license | johnttaylor/nqbp | 64af17bbc27fd5bde2e9f2826753e7f446239b3a | 5218b2f046fe5ee10f2edf417e540935e3e82f07 | refs/heads/develop | 2022-09-25T17:41:33.976531 | 2021-12-05T20:57:27 | 2021-12-05T20:57:27 | 28,613,051 | 1 | 0 | null | 2021-12-05T20:57:28 | 2014-12-30T01:31:48 | Python | UTF-8 | Python | false | false | 8,497 | py | #------------------------------------------------------------------------------
# TOOLCHAIN
#
# Host: Windows
# Compiler: avr-gcc
# Target: Atmel SAM5D1-xxx / Ardunio
# Output: .BIN file
#------------------------------------------------------------------------------
import sys, os
from nqbplib... | [
"john.t.taylor@gmail.com"
] | john.t.taylor@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 |
9b75783c888636647b9c98f018a79b602046216c | 8d14d526969d8e970254f08563ff2c6e6583dd35 | /Python/2019/fonksiyonlar/venv/Scripts/pip-script.py | 88b4001fca020b19cd315f9bffb947b687ae5b64 | [] | no_license | osmanraifgunes/MedipolCodes | c29db62896162c4b1a2c8c274877fff63149f826 | 943b014269e9a7b529e74741ce14447dbd7d5df5 | refs/heads/master | 2023-01-09T10:31:02.907945 | 2020-06-09T18:05:04 | 2020-06-09T18:05:04 | 218,612,787 | 6 | 13 | null | 2023-01-07T18:58:55 | 2019-10-30T19:59:16 | Python | UTF-8 | Python | false | false | 415 | py | #!C:\Users\raif\PycharmProjects\fonksiyonlar\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"osmanraifgunes@gmail.com"
] | osmanraifgunes@gmail.com |
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 |
cb2c128b73be1ea3eb29c49b1c6a523a210dd36c | aad164e4efe1d55cc189c35956bfd435b14a0f52 | /eve-8.21.494548/eve/common/script/paperDoll/paperDollRandomizer.py | 9e7d12369814e9117a32a654d9f171fc1ed2f3de | [] | no_license | Pluckyduck/eve | 61cc41fe8fd4dca4fbdcc4761a37bcfeb27ed84f | 9a277707ab1f162c6bd9618faf722c0be3ea93ad | refs/heads/master | 2020-12-28T23:35:29.992875 | 2013-05-06T14:24:33 | 2013-05-06T14:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,342 | py | #Embedded file name: c:/depot/games/branches/release/EVE-TRANQUILITY/eve/common/script/paperDoll/paperDollRandomizer.py
import paperDoll as PD
import random
import itertools
class AbstractRandomizer(object):
__guid__ = 'paperDoll.AbstractRandomizer'
@staticmethod
def SelectManyFromCollection(collection, m... | [
"ferox2552@gmail.com"
] | ferox2552@gmail.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 |
cc51734fea91adb6576f534a212fd6ea43023dcc | 668e9e3987bc64023f9250b79dd1e1cd9707a295 | /feedhq/feeds/models.py | c25909c17f1da6663a7d9c6e5688da940029f5c4 | [] | no_license | amaudy/feedhq | 1305a58c188f494ac2845118af44fb9bfaf08d5a | 8f4022896f661418cb13f5eb4809fe3813e541b3 | refs/heads/master | 2021-01-16T19:03:49.262627 | 2013-03-15T20:38:36 | 2013-03-15T20:38:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,557 | py | import bleach
import datetime
import feedparser
import json
import logging
import lxml
import magic
import oauth2 as oauth
import urllib
import urlparse
import random
import requests
import socket
from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
from django.core... | [
"buburno@gmail.com"
] | buburno@gmail.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 |
274cad3c882ff6972dd9a320dd5475595e83491b | d802a0793a4a4af0336912932c35499edac16845 | /Python/Python/Basic Data Types/tuples.py | 92bfd965b7deae65fa5d6443e0a14eb9921ad634 | [] | no_license | butterflylady/hackerrank | fb1ca6801855b3956bbfb72a2f7a95db4513aca4 | c42e2c80c41a95eb10d9a061eb8e7132e52a71ac | refs/heads/master | 2021-08-27T21:02:50.512292 | 2021-08-05T08:40:37 | 2021-08-05T08:40:37 | 167,610,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | n = int(input())
integer_list = map(int, input().split())
print(hash(tuple(integer_list)))
| [
"mpaluyanava@gmail.com"
] | mpaluyanava@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 |
2f4bc7190caf88342691fcd4e9dbe3e72886c9b9 | 1cc8604dff9713d3879599f1876a6ea313ebe1fb | /pysc2/run_configs/lib.py | 85ca6ca7283b3743280d041f067d910dc324f0fc | [
"Apache-2.0"
] | permissive | SoyGema/pysc2 | c363ec768ebf94e7b0fa08e136b36b7432ae1b44 | e5de62023ec45ac212016b5404dd73272109d9d4 | refs/heads/master | 2022-02-08T21:41:46.530129 | 2022-01-29T13:11:15 | 2022-01-29T13:11:15 | 143,897,552 | 1 | 0 | Apache-2.0 | 2018-08-07T16:06:23 | 2018-08-07T16:06:22 | null | UTF-8 | Python | false | false | 9,493 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"tewalds@google.com"
] | tewalds@google.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 |
c71d4952aefa9ec87729953f94080a8ecf8e409b | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/base_low_fare_search_req.py | c4cc1b0b8250c7d6ed44abea3ecf0c3c19ce63b4 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 10,130 | py | from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.air_exchange_modifiers import AirExchangeModifiers
from travelport.models.air_pricing_modifiers import AirPricingModifiers
from travelport.models.base_air_search_req import BaseAirSearchReq
from travelport.models.enumerat... | [
"chris@komposta.net"
] | chris@komposta.net |
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 |
7ceaf27bc3034e5b2078b12f49816e839f44baf0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02687/s475021373.py | 71eb7488e6616d844d81bfb69e322dedcd0da7a5 | [] | 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 | 74 | py | S = input()
if S == 'ARC':
print('ABC')
elif S == 'ABC':
print('ARC') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.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 |
cc6e7c8b2aef5f54401075b4a207adbb09f86f77 | a4d250ce393012dc251cb955096cb8f284c57439 | /proto/exploitation_pb2.py | 546ba61d88495b9aa297f28debd388b6591c2a25 | [] | no_license | daxingyou/test-2 | b02af312784d06a46e29acd42e756e92afee6ed9 | a16c872ba781855a8c891eff41e8e651cd565ebf | refs/heads/master | 2023-03-16T04:21:23.704482 | 2018-09-28T00:51:23 | 2018-09-28T00:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 11,305 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: exploitation.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _... | [
"luhongwei1@ice-time.cn"
] | luhongwei1@ice-time.cn |
64c27b486b8f3a32b3b73d37299a6daf760bd53c | b2a8d0186a27083fa316b6deacc04b95a5d778dd | /test/model/gaussian_field/test_gfr.py | 5daacdc22b0610107d91f1792ced6776fafb5dce | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | yhtang/GraphDot | d1bd0d1d98e1f434e02e1bbf0cfee1e9f8df2e2b | 3d5ed4fbb2f6912052baa42780b436da76979691 | refs/heads/master | 2021-12-14T22:40:23.059953 | 2021-12-08T18:22:48 | 2021-12-08T18:22:48 | 197,128,612 | 14 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,589 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import pytest
from scipy.spatial import distance_matrix as pairwise_distances
from scipy.spatial.distance import cdist
from unittest.mock import MagicMock
from graphdot.model.gaussian_field import GaussianFieldRegressor
from graphdot.model.gaussian_field ... | [
"Tang.Maxin@gmail.com"
] | Tang.Maxin@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 |
907e1411d97bc5095999d9b4048fd3c8cd5d64b8 | 7204a7c0426c8d41606f5c11ee63e94d05f6fa30 | /python/pyenv.symlink/versions/miniconda3-4.3.11/lib/python3.6/threading.py | 4829ff426e0bfd8871d3cc3d4b59764eb799d2c4 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"Python-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | myMacDotfile/dotfiles | 32f70a9313b9b71f01aca75f34e8b9c990cfadb0 | 586972a81b7a67e492401b9c8f92ed54cf7f18c4 | refs/heads/master | 2022-12-04T19:39:49.062371 | 2017-10-30T07:33:46 | 2017-10-30T07:33:46 | 108,513,448 | 2 | 1 | MIT | 2022-11-24T20:44:39 | 2017-10-27T07:22:28 | Python | UTF-8 | Python | false | false | 49,006 | py | """Thread module emulating a subset of Java's threading model."""
import sys as _sys
import _thread
from time import monotonic as _time
from traceback import format_exc as _format_exc
from _weakrefset import WeakSet
from itertools import islice as _islice, count as _count
try:
from _collections import deque as _d... | [
"lzw9560@gmail.com"
] | lzw9560@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 |
8a0252b51c386551aa3425b9e53f58a14d1416bb | 688da4f81564ddb93023f4f40adb8255704d55e2 | /main.py | fffa4a92689c1f0c919f91970d722dc30e4c6142 | [] | no_license | SimeonYS/dime | eb67ca779d874adf82d64151f101c95be38ebfde | 34e58306347d1ccb12a236491d3dd01955dfe57c | refs/heads/main | 2023-03-28T00:06:30.058878 | 2021-03-30T10:57:51 | 2021-03-30T10:57:51 | 352,968,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | from scrapy import cmdline
cmdline.execute("scrapy crawl dime".split()) | [
"simeon.simeonov@ADPVT.com"
] | simeon.simeonov@ADPVT.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 |
5f675f9166c1ed1b15f7cd568f176c12ac8586ed | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/_helpers.py | 19f33b3da5435e5048073b19709524ac5aa83149 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 9,493 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
# pylint: disable=protected-access
from typing import (
Union,
TYPE_CHECKING
)
import datetime
import six
from msrest import Serializer
from azu... | [
"noreply@github.com"
] | yunhaoling.noreply@github.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 |
5f453af7a0a7e27116163783a4ce17bea77fe85c | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/brocade_mac_access_list_rpc/get_mac_acl_for_intf/input/__init__.py | 3233b897588fc31d00b0b4ba5c094573f739df29 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,676 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
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 |
97f873d7f23ede69733ee89bc73fc78a7c31b55a | 67438ea8c993bd92cb74ab598210520c3e413422 | /zdevelop/tests/test_test_utils.py | 3c611c695ecd957148e64c73ccfb2c155bceefe1 | [] | no_license | illuscio-dev/spanserver-py | 15e10f9dcfd827117224496d5b71ccd5888463fb | 91e0ddc4c2dd7ddc89df5d5d96fed0181a5af928 | refs/heads/master | 2022-04-07T08:54:47.227255 | 2020-02-25T20:12:52 | 2020-02-25T20:12:52 | 169,330,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,307 | py | import pytest
import json
import dataclasses
import uuid
import grahamcracker
from typing import List
from requests import Response
from spanserver import test_utils, MimeType
from spantools import errors_api, PagingResp, DEFAULT_ENCODERS
encode_bson = DEFAULT_ENCODERS[MimeType.BSON]
@dataclasses.dataclass
class N... | [
"b.peake@illuscio.com"
] | b.peake@illuscio.com |
780dfb535c7b7e145f50b74f8beeadd3387e1d48 | 18239524612cf572bfeaa3e001a3f5d1b872690c | /clients/oathkeeper/python/ory_oathkeeper_client/model/update_rule_forbidden.py | e52639b1b0e4659653099ebbf8fa7d40a5714b8a | [
"Apache-2.0"
] | permissive | simoneromano96/sdk | 2d7af9425dabc30df830a09b26841fb2e8781bf8 | a6113d0daefbbb803790297e4b242d4c7cbbcb22 | refs/heads/master | 2023-05-09T13:50:45.485951 | 2021-05-28T12:18:27 | 2021-05-28T12:18:27 | 371,689,133 | 0 | 0 | Apache-2.0 | 2021-05-28T12:11:41 | 2021-05-28T12:11:40 | null | UTF-8 | Python | false | false | 6,886 | py | """
ORY Oathkeeper
ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. # noqa: E501
The version of the OpenAPI document: v0.0.0
Contact: hi@ory.am
Generated by: https://openapi-ge... | [
"noreply@github.com"
] | simoneromano96.noreply@github.com |
95d624b62a4a0c2c36f7261a59e8cb564b05393d | 20a07257ac0a14011a193251b5430b6c505cd2d7 | /colour/colorimetry/tests/tests_transformations.py | 7e41ef27ba3980776175470df127e4fb1925b928 | [
"BSD-3-Clause"
] | permissive | lucienfostier/colour | 1248c612f7e62b8a15f7f22d95e988629e68fac0 | 8c8b5d0ff6a774caa45b72b05af303080eb7086f | refs/heads/develop | 2021-01-14T08:47:11.558874 | 2015-08-09T09:42:02 | 2015-08-09T09:42:02 | 45,194,066 | 0 | 0 | null | 2015-10-29T15:57:46 | 2015-10-29T15:57:46 | null | UTF-8 | Python | false | false | 13,034 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.colorimetry.transformations` module.
"""
from __future__ import division, unicode_literals
import numpy as np
import sys
if sys.version_info[:2] <= (2, 6):
import unittest2 as unittest
else:
import unittest
from colour.co... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
a8a445cf657061acd9f6053ed23f929596ae42fc | d5ba475a6a782b0eed5d134b66eb8c601c41421c | /terrascript/ns1/__init__.py | d017d1ec8440474b67f60e531834b683823e6e59 | [
"BSD-2-Clause",
"Python-2.0"
] | permissive | amlodzianowski/python-terrascript | ab42a06a5167e53ad8093b656a9bf14a03cb031d | 142b1a4d1164d1012ac8865d12fdcc72f1e7ae75 | refs/heads/master | 2021-05-19T11:59:47.584554 | 2020-03-26T07:13:47 | 2020-03-26T07:13:47 | 251,688,045 | 0 | 0 | BSD-2-Clause | 2020-03-31T18:00:22 | 2020-03-31T18:00:22 | null | UTF-8 | Python | false | false | 94 | py | # terrascript/ns1/__init__.py
import terrascript
class ns1(terrascript.Provider):
pass
| [
"markus@juenemann.net"
] | markus@juenemann.net |
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 |
6268fe234e79bce9bd9c70d379ec1788ca43766c | 5afe9eac45c862ba29591596b382bb36cd6b18e6 | /src/tap/share/cal/__init__.py | deb49925d8659b026f6b2abccb65a3bfe3bdda40 | [
"MIT"
] | permissive | lmmx/tap | 282935474630c74e7877afab434261ca1fb762ef | d60ce0ec9b4b0545b5ed2b3dfeea956457999b8d | refs/heads/master | 2023-08-18T12:00:56.493131 | 2021-10-18T15:46:18 | 2021-10-18T15:46:18 | 337,097,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from .cal_utils import *
| [
"louismmx@gmail.com"
] | louismmx@gmail.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 |
a80ca68f392f3f6b0671efe9f9ada465cb82907e | e1f5cf7055e54f24f4bea5b1232f337fcbcae63c | /datetime/src/datetime-format.py | 31d59612b68ab6671b4385b3afc1dfd7aa548031 | [
"MIT"
] | permissive | revirevy/book-python | fcd64d44840b68e528422de785383f9d4a81fb98 | 9da7bfd43117f33530e708e889c26152dc8c7a25 | refs/heads/master | 2020-04-01T05:13:50.394724 | 2018-10-13T14:58:19 | 2018-10-13T14:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from datetime import datetime
now = datetime.now()
print(f'Now is {now:%Y-%m-%d %H:%M}!')
# Now is 2017-12-19 17:40!
| [
"matt@astrotech.io"
] | matt@astrotech.io |
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 |
70c997864f5f219939b04ebc4f3b28782a233325 | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1069.002-2.py | 952398a6e7817ddceebd8048ef43d4a4c95d42c8 | [] | no_license | ammasajan/Atomic-Red-Team-Intelligence-C2 | 78d1ed2de49af71d4c3c74db484e63c7e093809f | 5919804f0bdeb15ea724cd32a48f377bce208277 | refs/heads/master | 2023-07-17T12:48:15.249921 | 2021-08-21T20:10:30 | 2021-08-21T20:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'Discovery/T1069.002-2'
self.controller_type = ''
self.external_id = 'T1069.002'... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
59e9fcb997bf2918d5e1fe4b91e90268935c988e | e94c6240d5937fb89031dc93130231ce71dcad7b | /modoboa_amavis/models.py | 65e11de04e55b587c08fb3526086d56963daf967 | [
"MIT"
] | permissive | digideskio/modoboa-amavis | 7be7a8d4cdf60b022222623c1f8262f7889203f3 | cea63645db5ab6b01f9a739ad1eb8e833b78700f | refs/heads/master | 2021-01-18T01:37:41.963754 | 2016-01-06T18:45:28 | 2016-01-06T18:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,063 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_table values
# or field names.
#
# Also note: You'll have t... | [
"tonio@ngyn.org"
] | tonio@ngyn.org |
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 |
727a9b08423503cdf7a826d11fb8944669c183ca | 9b462c4bac4e1fa0917f9eb788e802b76b03652c | /imersaoPython/urls.py | 22509c601442e6c3171ee074a8ea37d715475531 | [] | no_license | LondonComputadores/food-delivery-pythonando | 2ea156c09d0cfa8a7d51ffaffd951bba6e8eaff3 | 0ce79bfb07334299e163a6cf860b26c29379aac2 | refs/heads/main | 2023-07-02T06:42:59.402808 | 2021-08-06T19:28:13 | 2021-08-06T19:28:13 | 383,972,298 | 0 | 0 | null | 2021-08-06T19:28:13 | 2021-07-08T01:54:03 | Python | UTF-8 | Python | false | false | 1,035 | py | """imersaoPython URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"london.computadores@gmail.com"
] | london.computadores@gmail.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 |
ba4d2eb39921f18aecac65c654ab8c3f75df6f13 | cd29793fbbaa3f62dd100c52ea53b93d2720123a | /tessellation/tessellation_NMC/configs_done/000000002222222.py | 5e3d7e8c07848b3a024b1751e226d7b3e0ba5679 | [
"MIT"
] | permissive | zebrajack/NMC | 8f89f396fbc59b42bf6f3fcbbde37cf4bee917bd | 92418daeff728586b808269f90721456ed97a992 | refs/heads/main | 2023-07-19T19:38:06.739695 | 2021-09-03T22:27:21 | 2021-09-03T22:27:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,115 | py | config_string = "000000002222222"
load_connections = []
import os
import cv2
import numpy as np
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--getimg", action="store_true", dest="getimg", default=False, help="???")
input_args = parser.parse_args()
# ---------- parse config ----------
#
#... | [
"2741678221@qq.com"
] | 2741678221@qq.com |
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.