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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
583fb188d45151a3bf34c90fb00eeaa9ca9b8e95 | fffb732290af97687ea3221ce4a6ce4d95640aff | /courses/w04_py/source/pygame_test/first.py | d9f1e4c556e714fd6d0a6612e0ee319f40a2b401 | [] | no_license | NamWoo/self_driving_car | 851de73ae909639e03756eea4d49ab663447fc19 | cd5c1142c9e543e607ca9dc258f689de6879d207 | refs/heads/master | 2021-07-24T19:51:54.459485 | 2021-07-06T13:58:19 | 2021-07-06T13:58:19 | 186,267,543 | 9 | 7 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | print("hello python")
| [
"pre3ice@gmail.com"
] | pre3ice@gmail.com |
e02a62dfeb68a1076db30d166b57facbc45c7901 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /hpJsoWBBHWKZ9NcAi_22.py | e06399915f4bab0bc7737e23679f04adb2ec0486 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py |
import re
def bird_code(lst):
l = []
for i in lst:
x = re.sub(r'\-',' ',i.upper()).split()
if len(x) == 1:
l.append(x[0][:4])
if len(x) == 2:
l.append(x[0][:2] + x[1][:2])
if len(x) == 3:
l.append(x[0][0] + x[1][0] + x[2][:2])
if len(x... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a46f19dfaa6990720d7398e822caaf69f0d8be00 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/vns/rtmconnatt.py | 28e7b5b6f4be518f824e5a5438863d03a68a0e9f | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 4,795 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
608f3de73ace860822927eeb12a62de8a149c2d4 | e2e34d01afc5b6bc6923a721ef92e8ffa8884f86 | /tests/endtoend/http_functions/common_libs_functions/numpy_func/__init__.py | 57d5d08e2d852b5b507e92f2ad34a1c8de1104b0 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-functions-python-worker | 094340eeb0c4728e3202749027f01ab75e908bd8 | d4bdf7edc544b6c15e541930f890da790b180ebd | refs/heads/dev | 2023-08-22T22:48:01.645722 | 2023-08-14T14:52:42 | 2023-08-14T14:52:42 | 117,730,503 | 329 | 122 | MIT | 2023-09-01T16:54:58 | 2018-01-16T19:23:54 | Python | UTF-8 | Python | false | false | 384 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import logging
import azure.functions as func
import numpy as np
def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')
res = "array: {}".format(np.a... | [
"noreply@github.com"
] | Azure.noreply@github.com |
73e47e7cfa41cb0ff62204dacbecb1028a5f1b9b | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200421214800.py | e15827330f703c4b569ca048f465a724d1b16375 | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,321 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 20200414
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una part... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
6d66f8b0a71831e4b0a87e5373dab443525903ea | 88c4d5b462998a9c0411a0243ab95ee05ffee60a | /tests/type/test_validation.py | e9f5d5e69f375202cb88188bab1585d0833f7d87 | [
"MIT"
] | permissive | graphql-python/graphql-core | 606f3f3d479d576a4bdcd7d7995c0fddc486282f | 0c93b8452eed38d4f800c7e71cf6f3f3758cd1c6 | refs/heads/main | 2023-09-04T09:22:45.162575 | 2023-06-09T22:13:10 | 2023-06-09T22:13:10 | 143,207,933 | 259 | 101 | MIT | 2023-06-09T22:13:11 | 2018-08-01T20:57:07 | Python | UTF-8 | Python | false | false | 73,423 | py | from operator import attrgetter
from typing import List, Union
from pytest import mark, raises
from graphql.language import DirectiveLocation, parse
from graphql.pyutils import inspect
from graphql.type import (
GraphQLArgument,
GraphQLDirective,
GraphQLEnumType,
GraphQLField,
GraphQLInputField,
... | [
"cito@online.de"
] | cito@online.de |
2529dcd223ae0f492e3e32aa11b0fa54221c14a0 | f72c689bd0d756b4817cc03cb434a228343c8936 | /test/functional/mining_pos_coldStaking.py | ce715939394dcfcc628065c3e9e74e679628ec5d | [
"MIT"
] | permissive | CircuitProject/Circuit-Core | 7f68a8b4cb180a715cb24e247b899d8d8dc29e95 | 831dc33d57050ea2955983b2e8f1fc088a819e97 | refs/heads/main | 2023-04-09T00:08:37.954538 | 2021-04-12T19:09:42 | 2021-04-12T19:09:42 | 357,308,816 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,769 | py | #!/usr/bin/env python3
# Copyright (c) 2019-2020 The PIVX developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# -*- coding: utf-8 -*-
from io import BytesIO
from time import sleep
from test_framework.messages import CTrans... | [
"development@SpectreSecurity.io"
] | development@SpectreSecurity.io |
4b382d0d55c82e75b7927ff2b9427af967ea657b | c842cbf891b367442246f5b354f46cf48a2e3e5d | /src/FinalResult_csv.py | be18343ef9c3f10be84826845ce9eb9e3b435a3e | [] | no_license | srishti77/sampleRecom | 0582de4862f991b18ef089b92befc4dd0aa95095 | 414e1c07e94b4b0169544548b05d142500fee0fe | refs/heads/master | 2020-03-19T12:03:04.583604 | 2018-09-23T18:17:53 | 2018-09-23T18:17:53 | 136,492,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py |
import os
import re
import pandas as pd
def getFileNames():
dir = os.listdir("D:\Recommender System\Clean Data\Ranks")
return dir
directory = getFileNames()
newDataset = pd.DataFrame(columns=['ProjectName','methodName','methodBody','methodBodyLength','TotalMN','Prefix','Rank','AllOccurrance', 'FirstOccurrance... | [
"="
] | = |
960c232f5a94c8236ba800deb22c0043a177002b | 9c50f57a9cb32b44e86a0cdcbf61ead34754b085 | /ๆ็ฉ้ด/pythonๅบ็ก/day12/ๅญฆๅ็ฎก็็ณป็ป.py | f3144e4039c11b48bbaf2522ae173f668aa2d929 | [] | no_license | a1403893559/rg201python | c3f115011981393c86a0150e5281096651712ad4 | 448f04c86e4c7fd30e3a2a4f9121b934ae1d49be | refs/heads/master | 2020-03-15T23:32:17.723403 | 2018-03-18T12:59:43 | 2018-03-18T12:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | stu_a ={
'name':'liwenhao',
'age':'18'
}
stu_b = {
'name':'zhangjiayi',
'age':'1'
}
stu_c = {
'name':'yuanjianbo',
'age':'19'
}
def printStu(stu):
for k,v in stu.items():
print('k=%s,v=%s'%(k,v))
printStu(stu_a)
printStu(stu_b)
printStu(stu_c)
| [
"wengwenyu@aliyun.com"
] | wengwenyu@aliyun.com |
a4984cb32bd61b190a795036bc63f2ad9c115d58 | 6683c316188abc02fc2093dfd78e994bac6cbd44 | /asynchandler/sync.py | e4f1e38bb4b44925b711f259a36cef10184be27d | [] | no_license | dexity/surfsnippets | e19d307d4b66336e88d1c361a00e55df089f79a4 | 00c73ebb33a2036b898c05575250e6bb28256ae7 | refs/heads/master | 2021-08-30T12:06:36.453468 | 2017-12-17T21:31:53 | 2017-12-17T21:31:53 | 114,569,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | #
# Copyright 2012 Alex Dementsov
#
# Uses inet socket to listen on incoming requests to perform blocking request
# handling (e.g. logging).
#
import os
import socket
import threading
import time
PORT = 8080
HOST = "127.0.0.1"
SOCK_FLAGS = socket.AI_PASSIVE | socket.AI_ADDRCONFIG
counter = 0 #... | [
"dexity@gmail.com"
] | dexity@gmail.com |
103bad2469586a40386703071346fe3f1a1168e1 | 1bdb0da31d14102ca03ee2df44f0ec522b0701a4 | /EmiliaRomagna/HeraER/3-DataReportCollectionCollection.py | 4b9b8c7bbef9659e460f47671de906b26e1f467e | [] | no_license | figuriamoci/Acqua | dc073d90c3c5e5899b22005685847916de1dfd95 | aef22fcd0c80c92441e0e3df2468d7a2f23a848a | refs/heads/master | 2020-12-15T04:00:26.855139 | 2020-06-08T21:17:55 | 2020-06-08T21:17:55 | 234,986,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,439 | py | ##
from selenium import webdriver
import time
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import logging,pandas as pd
import acqua.aqueduct as aq
import acqua.parametri as parm
gestore = "HeraER"
aq.setEnv('EmiliaRomagna//'+gestore)
url = 'htt... | [
"an.fantini@gmail.com"
] | an.fantini@gmail.com |
b4a83143c9715fd87929a295483544c5b43b5b4a | 644bcdabf35261e07c2abed75986d70f736cb414 | /python-project/Les_listes/Tri_selection_Test.py | 6b1dccdeb2e57c4958f597688da6975535f8ac5c | [] | no_license | matcianfa/playground-X1rXTswJ | f967ab2c2cf3905becafb6d77e89a31414d014de | 67859b496e407200afb2b1d2b32bba5ed0fcc3f0 | refs/heads/master | 2023-04-03T11:56:15.878757 | 2023-03-24T15:52:37 | 2023-03-24T15:52:37 | 122,226,979 | 5 | 20 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | # A modifier si besoin
nom_fonction="ma_fonction"
#liste des valeurs ร tester
# Attention de bien mettre dans un tuplet ou une liste les valeurs ร tester mรชme si la fonction n'a qu'un argument.
valeurs_a_tester=[[[1,5,6]],[[3,2,5,7,10,1]],[[10,9,8,7,6,5,4,3,2,1]],[[10,9,8,7,6,5,4,3,2,1,1,2,3,4,5,6,7,8,9,10]],[[1]]]
... | [
"noreply@github.com"
] | matcianfa.noreply@github.com |
a21fbc0faec9c014211bb36d1ae2ae1a5b3b9a45 | 99eb4013a12ddac44042d3305a16edac1c9e2d67 | /shexer/io/graph/yielder/multi_rdflib_triple_yielder.py | 0f89fcce622acfcbe7d035a433bb4d6357b8e2c5 | [
"Apache-2.0"
] | permissive | DaniFdezAlvarez/shexer | cd4816991ec630a81fd9dd58a291a78af7aee491 | 7ab457b6fa4b30f9e0e8b0aaf25f9b4f4fcbf6d9 | refs/heads/master | 2023-05-24T18:46:26.209094 | 2023-05-09T18:25:27 | 2023-05-09T18:25:27 | 132,451,334 | 24 | 2 | Apache-2.0 | 2023-05-03T18:39:57 | 2018-05-07T11:32:26 | Python | UTF-8 | Python | false | false | 1,725 | py | from shexer.io.graph.yielder.multifile_base_triples_yielder import MultifileBaseTripleYielder
from shexer.io.graph.yielder.rdflib_triple_yielder import RdflibParserTripleYielder
from shexer.consts import TURTLE
class MultiRdfLibTripleYielder(MultifileBaseTripleYielder):
def __init__(self, list_of_files, input_fo... | [
"danifdezalvarez@gmail.com"
] | danifdezalvarez@gmail.com |
dcce9e815ad8f7b9c9fd8145653e29fbb870d7f7 | 9147fb079b5abdc97d2ff7f3f578b9b4a957dfb9 | /utils/python/linkedQueue.py | 9fa388017779496fed3a8365a930f9f6aa97d32e | [] | no_license | XBOOS/playgournd | db52bd1891d3405116dbf739ea0ae76d322e2b09 | 893b5f9e2be6ce854342f4879d9cd8db87caee2b | refs/heads/master | 2021-01-10T14:34:45.292669 | 2016-03-28T15:09:56 | 2016-03-28T15:09:56 | 44,814,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | #!/usr/bin/env python
# encoding: utf-8
class LinkedQueue:
class _Node:
__slot__ = '_element','_next'
def __init__(self,element,next):
self.element = element
self.next = next
def __init__(self):
self.head = None
self.tail = None
self.size = 0
... | [
"xubinghku@gmail.com"
] | xubinghku@gmail.com |
5afa1a4402e9090797402eba39d4c47968047b57 | d536a1e39d4b3d00ee228530490d1b03fe544f6a | /properties_wino.py | 1c28a6534843672fb0d22eda31dddf77f0a7cbc1 | [] | no_license | jeffstorlie/parcels_in_minnesota_update_v02 | dda6460b2e1f63c156d8e853a9cfcb0712b64591 | 8d7de35ddd385f2fd119374c88d8b39a14a4e064 | refs/heads/master | 2021-01-11T11:30:55.407132 | 2016-10-31T18:43:31 | 2016-10-31T18:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,420 | py | from parcels_base_classes import countyEtlParams
class countyEtl(countyEtlParams):
'''Class per county with unique parameters defined.'''
def __init__(self):
self.county_name = 'Winona'
self.cty_fips = r'169'
self.county_id = r'169'
self.cty_abbr = r'WINO'
self.mngeo_we... | [
"jeff.reinhart@state.mn.us"
] | jeff.reinhart@state.mn.us |
176e51af1e406c546c6b63fd573169f168852da6 | b68d4e7826c29a22b002ff9c10583faeb7a10455 | /uwsgi-tutorial/lib/python3.4/linecache.py | b990adaebbbaf6bf0beca6cd2c87ab63efc6ebe2 | [] | no_license | mikanyman/.pyenv_versions-legacy | ec392821290bd38873b25824c4261b15dc1a5067 | 5a42c7c21e800610f4f5f322d73d1dbd62a081b9 | refs/heads/master | 2022-10-13T10:22:13.956161 | 2017-01-31T20:10:04 | 2017-01-31T20:10:04 | 80,555,789 | 0 | 1 | null | 2022-09-30T13:39:01 | 2017-01-31T19:49:56 | Python | UTF-8 | Python | false | false | 61 | py | /home/mnyman/.pyenv/versions/3.4.1/lib/python3.4/linecache.py | [
"mika.nyman@synapse-computing.com"
] | mika.nyman@synapse-computing.com |
198cd3ffee04006604e8671de6d40a54f1429eb8 | 356a5c583fb77c53bf00b38a0d9eca761590bcf1 | /shuwei_fengge/practice_one/Company/match_check/chin_check.py | 6cdd9f0f46b5455f972faf3f52d49dd285b15a22 | [
"MIT"
] | permissive | sunyihuan326/DeltaLab | f7df7915bf4aacb7628f82ada68278c29f5942eb | 3d20fde0763e6167c705b0c06bd033ad953719ed | refs/heads/master | 2021-07-21T17:16:32.567956 | 2018-10-29T06:46:09 | 2018-10-29T06:48:27 | 108,956,765 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | # coding:utf-8
'''
Created on 2017/12/27.
@author: chk01
'''
from practice_one.Company.load_material.utils import *
def get_face_feature():
for typ in ['A', 'B', 'C', 'D', 'E']:
print('ๅผๅง{}ๅๅฏผๅ
ฅ'.format(typ))
dir_path = os.listdir(root_dir + '/src/face_' + typ)
m = len(dir_path)
n =... | [
"chk0125@126.com"
] | chk0125@126.com |
36ec8c4c0a90a6281609966b27752ac39c7224de | eacff46eda2c6b509449979a16002b96d4645d8e | /Collections-a-installer/community-general-2.4.0/tests/unit/plugins/modules/remote_management/oneview/oneview_module_loader.py | 3b41cee1b5579abf11141d265940c504e13f7613 | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | d-amien-b/simple-getwordpress | 5e6d4d15d5f87124ab591e46b63fec552998fdc3 | da90d515a0aa837b633d50db4d91d22b031c04a2 | refs/heads/master | 2023-04-08T22:13:37.347545 | 2021-04-06T09:25:51 | 2021-04-06T09:25:51 | 351,698,069 | 0 | 0 | MIT | 2021-03-31T16:16:45 | 2021-03-26T07:30:00 | HTML | UTF-8 | Python | false | false | 2,399 | py | # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import sys
from ansible_collections.community.general.tests.unit.comp... | [
"test@burdo.fr"
] | test@burdo.fr |
30f4b31f122eb742591df22a134ba0aa5db77f97 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_036/ch27_2020_03_19_18_10_54_857075.py | f14b6d255fcb55368e95df12e32f95de78723692 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | duvida=True
a= input('Tem duvidas? ')
if a=='nรฃo':
duvida=False
while duvida==True:
print('Pratique mais')
a= input('Tem duvidas? ')
if a == 'nรฃo':
duvida=False
print('Atรฉ a proxima') | [
"you@example.com"
] | you@example.com |
d91a7976973b3aaecd3a5b8d9a949e02417aa5e6 | 066de66c8264c4c38b8124b67232fc93ab8c84ba | /code/ultrasound_image/erosion_dilation.py | c320fe883543f5852af6357112816ae6908e1a20 | [] | no_license | Monologuethl/Monologuethl | d2c8ecd9c3a79c26014387db13fafd602b346401 | 844e097c29747ddf8b185bd8a36f81c03627869f | refs/heads/master | 2021-09-27T07:59:40.284650 | 2021-09-15T07:17:30 | 2021-09-15T07:17:30 | 149,366,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | # ex2tron's blog:
# http://ex2tron.wang
import cv2
import numpy as np
# 1.่
่ไธ่จ่
path = r'C:\Users\Tong\Desktop\edgs\1.png'
img = cv2.imread(path, 0)
# kernel = np.ones((5, 5), np.uint8)
kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))
dilation = cv2.dilate(img, kernel) # ่จ่
erosion = cv2.erode(dilation... | [
"2481871325@qq.com"
] | 2481871325@qq.com |
e6247518456092b0faf2d226a25b043f1ac0f02c | 1ebba24841912613f9c70dffee05270c4f1f4adb | /willie/willie/logger.py | d42b1b8105e094e9f41a3d5715773f794ba2532f | [
"EFL-2.0",
"MIT"
] | permissive | freifunk-darmstadt/ffda-jarvis | 4953af0cd8629c9b9632806eb0a7440fcf94da57 | 127f3333c837c592177f84b361e3c050e00f2d3f | refs/heads/master | 2020-04-06T06:56:21.472931 | 2017-10-23T23:00:57 | 2017-10-23T23:10:03 | 32,585,430 | 0 | 8 | MIT | 2017-12-20T00:46:26 | 2015-03-20T13:32:00 | Python | UTF-8 | Python | false | false | 1,757 | py | # coding=utf8
from __future__ import unicode_literals
import logging
class IrcLoggingHandler(logging.Handler):
def __init__(self, bot, level):
super(IrcLoggingHandler, self).__init__(level)
self._bot = bot
self._channel = bot.config.core.logging_channel
def emit(self, record):
... | [
"mweinelt@gmail.com"
] | mweinelt@gmail.com |
6df027365ad433140946c4c093f2ee39cfc26526 | 2dd560dc468af0af4ca44cb4cd37a0b807357063 | /Leetcode/1529. Bulb Switcher IV/solution1.py | f1587218df3a9dfc14a2d51b3abd51f8be2498f8 | [
"MIT"
] | permissive | hi0t/Outtalent | 460fe4a73788437ba6ce9ef1501291035c8ff1e8 | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | refs/heads/master | 2023-02-26T21:16:56.741589 | 2021-02-05T13:36:50 | 2021-02-05T13:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | class Solution:
def minFlips(self, target: str) -> int:
result = 0
t = 1
for c in target:
if c == t:
t ^= 1
result += 1
return result
| [
"info@crazysquirrel.ru"
] | info@crazysquirrel.ru |
08b83b2689775ecf6db9cf7dabdbce19d580cae5 | 3fc4cac282465350d9b2983527140fc735a0d273 | /0916/04_graphSigmoid.py | 040f25ec9ae21cfcc14c0de514865e0b9198d73b | [] | no_license | Orderlee/SBA_STUDY | 2cfeea54d4a9cbfd0c425e1de56324afcc547b81 | 4642546e7546f896fc8b06e9daba25d27c29e154 | refs/heads/master | 2022-12-25T01:08:05.168970 | 2020-09-27T14:57:23 | 2020-09-27T14:57:23 | 299,050,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | import numpy as np
import matplotlib.pyplot as plt
def sigmoid(weight,x,b=0 ,asc=True):
if asc == True:
return 1/(1+np.exp(-weight * x -b))
else:
return 1/(1 + np.exp(+weight * x + b))
# arange ํจ์๋ ํ์ด์ฌ range์ ์ ์ฌํจ
x = np.arange(-5.0,5.1,0.1)
weight,bias = 1,0
y1 = sigmoid(weight,x)
mylabel= 'y... | [
"61268230+Orderlee@users.noreply.github.com"
] | 61268230+Orderlee@users.noreply.github.com |
6aff12c0caf1b015d7f25d02d7caf535f388b708 | 6f30245f27a9568155f69648faf148c278136029 | /hhapps/stock/api/models/stocks.py | 523f821e7c018e0a2f210f16c8b01f46550ef3e9 | [] | no_license | r202-coe-psu/hh-apps | 82495ffec7fb09155afa4e8f571051aad824acb4 | a15453b7f502a2a71ccb89ba4c4ebe95ef3ca86f | refs/heads/master | 2021-05-03T05:48:40.766349 | 2017-08-06T22:45:30 | 2017-08-06T22:45:30 | 120,584,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import mongoengine as me
import datetime
from .common import User, Building
class Stock(me.Document):
name = me.StringField(required=True)
description = me.StringField()
tags = me.ListField(me.StringField())
owner = me.EmbeddedDocumentField(User)
building = me.EmbeddedDocumentField(Building)
... | [
"boatkrap@gmail.com"
] | boatkrap@gmail.com |
8ee86e9a15eadb51909cffb7a5aab5e11ece6a78 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYGluGluToHToTauTau_M-250_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467513/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_24/run_cfg.py | 276345c186bf8da137a00aa8ad103b6b8f80b0b9 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYGluGluToHToTauTau_M-250_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467513/HTT_24Jul_newTES_manzoni... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
8fdca3e58563ff24f711fef8de5dab6419e9d7cf | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /pn7QpvW2fW9grvYYE_9.py | 43273e64b5256518234f94d6178e37a7d1fb8af5 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py |
def find_fulcrum(lst):
for i in range(1,len(lst)):
if i!=(len(lst)-1):
n1 = lst[:i]
n2 = lst[i+1:]
if sum(n1) == sum(n2):
print(n1)
print(n2)
return lst[i]
break
else:
pass
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5fb948480b014d14344099331d759dc63ddab101 | 0e5658deaa630a603a7134847518408c09e3a6d0 | /vendor/riffyn-sdk/riffyn_nexus_sdk_v1/models/update_resource_body.py | bc11422adca154c297d4d58893e0fe48cba7194f | [] | no_license | jace-ys/lab-automation | cb0d0d2b88ec64e235cffca8bbf556b22c55ab1e | 27be3a942b111404844f29aa9a0dd957b7fde459 | refs/heads/master | 2023-06-01T20:30:55.557975 | 2021-06-16T07:46:20 | 2021-06-16T08:15:38 | 297,329,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,270 | py | # coding: utf-8
"""
Riffyn Nexus REST API V1
## Vocabulary Before you begin, please familiarize yourself with our [Glossary of Terms](https://help.riffyn.com/hc/en-us/articles/360045503694). ## Getting Started If you'd like to play around with the API, there are several free GUI tools that will allow you to s... | [
"jaceys.tan@gmail.com"
] | jaceys.tan@gmail.com |
ee58c2d78d9dcc0d17e6b124f569983d5e86a0fc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02269/s622276745.py | 706ea0b7997e1bf35c0458a5c0dfaf699bc42e03 | [] | 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,413 | py | class HashTable:
@staticmethod
def h1(key):
return key % 1046527
@staticmethod
def h2(key):
return 1 + (key % (1046527 - 1))
def __init__(self, size):
self.size = size
self.values = [None for _ in range(size)]
self.tables = str.maketrans({
'... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9dcf4b2832852c6fe2a69c4925b60ca92503bbfc | 9114d6d9f535ad0fc6149f1ef1c49f7005926cdc | /week4/ji/Step/10/Q1978.py | ed20837262a31ccf27e24743440b0d5488895159 | [] | no_license | HyeonGyuChi/knu_likelion_study | 914c20af54e3973361551a3defa88b14f9731853 | 81ba84bbd00d76b5a2870637cf4cce8b05e15678 | refs/heads/master | 2020-05-03T12:59:01.539664 | 2019-05-21T13:14:10 | 2019-05-21T13:14:10 | 178,641,355 | 2 | 0 | null | 2019-04-06T16:57:07 | 2019-03-31T04:14:57 | null | UTF-8 | Python | false | false | 2,483 | py | '''
๋ฐฑ์ค ๋จ๊ณ๋ณํ๊ธฐ step 10
https://www.acmicpc.net/problem/1978
'''
'''
์ฝ์ = ์ด๋ค์๋ก ๋๋์์ ๋ ๋๋จธ์ง๊ฐ 0์ธ ์
์์ = ์ฝ์์ค 1๊ณผ ์๊ธฐ ์์ ๋ฟ์ธ ์(๋จ, 1์ ์์๊ฐ x)
์์๋ฅผ ๊ฑธ๋ฌ๋ด๋ ๊ท์น์ ์์
'์๋ผํ ์ค์ฒด๋ค์ค์ ์ฒด' ๋ฐฉ๋ฒ์ ์ด์ฉํด ๋ฐฐ์๋ค์ ์ง์๋๊ฐ๋ ๋ฐฉ๋ฒ์ ์ด์ฉ
๋ง์ฝ 1~100 ๊น์ง์์ ์์๋ฅผ ๊ตฌํด์ผ ํ๋ค๋ฉด
2์๋ฐฐ์, 3์๋ฐฐ์, 5์๋ฐฐ์ ๋ฑ์ ์์๋ก ์๋ฅผ ์ง์๋๊ฐ๋ ๋ฒ
์ฆ, ํ์ํ๋ ์๊ฐ
ํ์ํ๋ ์๋ณด๋ค ์์ ๊ธฐ์กด์ ์์๋ฅผ ํฌํจํ ๊ณฑ์ผ๋ก ํํ์ด ๋ถ๊ฐํ ๋ ์์
์?
์์๊ฐ ์ถ๊ฐ๋ ๋๋ง๋ค ์์๋ฅผ ํฌํจํ... | [
"hyeongyuc96@gmail.com"
] | hyeongyuc96@gmail.com |
7cc8fb975e2594868fba5c6a7d293a405155e56f | 0b793bce2da8c3d09b7956c0672ddbffd46feaed | /codechef/ltime27_mnmx.py | 2d3c50f204e2d847bf17cc8fb2717afc78c92dad | [
"MIT"
] | permissive | knuu/competitive-programming | c6c4e08fb231937d988bdc5a60a8ad6b31b97616 | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | refs/heads/master | 2021-01-17T09:39:02.647688 | 2020-11-07T03:17:22 | 2020-11-07T03:17:22 | 27,886,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | def read_list(t): return [t(x) for x in input().split()]
def read_line(t): return t(input())
def read_lines(t, N): return [t(input()) for _ in range(N)]
for i in range(read_line(int)):
N = read_line(int)
print(min(read_list(int)) * (N-1))
| [
"premier3next@gmail.com"
] | premier3next@gmail.com |
1b76b2e7b6aec0cfb2273733e398fb2a5faa6cba | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/physics/__init__.py | 58134cc0bd994e507cfc140be6c8a6f0fee9425f | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 219 | py | """
A module that helps solving problems in physics
"""
from . import units
from .matrices import mgamma, msigma, minkowski_tensor, mdft
__all__ = [
'units',
'mgamma', 'msigma', 'minkowski_tensor', 'mdft',
]
| [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
db382e2598d7f7d28f75a456f6e4a16fa2887c82 | f09c8bd2f4e6eb99d8c90dbd7e36400ca5b86c2b | /test_color_space.py | 928a75d5e812967d8d54bc3a4a53af89e6e62a4a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | lejeunel/selective-search | 6fa2f15323f7c42bde3801175a65bb9f2c58676b | a2f2ec6cea5c011b2d3763875c9173f2948d4fd4 | refs/heads/master | 2022-10-19T00:23:24.306458 | 2019-10-09T08:38:39 | 2019-10-09T08:38:39 | 99,547,790 | 0 | 0 | MIT | 2022-09-30T19:45:54 | 2017-08-07T07:07:39 | Makefile | UTF-8 | Python | false | false | 3,314 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
import numpy
from color_space import *
class TestColorSpace:
def _assert_range(self, img):
assert img.dtype == numpy.uint8
assert img.shape == (10, 10, 3)
assert 0 <= numpy.min(img)
assert 1 < numpy.max(img) <= 255
de... | [
"olol85@gmail.com"
] | olol85@gmail.com |
25aa1fe53e08944cde76920458b0c7db7238e2d6 | d13aeac99a5af94d8f27ee64c6aa7c354fa56497 | /backend/shiny_smoke_26439/urls.py | 43c4e9f037be6718bda97425918834b20d966782 | [] | no_license | crowdbotics-apps/shiny-smoke-26439 | ec68cde6e144fe64884685542316f8afab1a09cb | 28b1e1e55476dedee990f6c0fd15b1c700cbfdf3 | refs/heads/master | 2023-05-01T00:15:17.114141 | 2021-05-09T15:01:46 | 2021-05-09T15:01:46 | 365,779,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | """shiny_smoke_26439 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
C... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
72e94c64794120f05d3a89ff10fff155d3090d7b | 7ae0ffa2168cf6ac22aca623f6d92ff84bf82a9e | /python/p071.py | 62ff3afd861e905e5117e1ffba796abd5081d8bc | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | nttan/Project-Euler-solutions | a4e53783ae5da36cb45ea33bd2f33aed277db627 | 5e7d16559bd9ad072448a35f8edac576081056f6 | refs/heads/master | 2021-01-18T13:40:53.315063 | 2016-01-06T04:49:16 | 2016-01-06T04:49:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #
# Solution to Project Euler problem 71
# by Project Nayuki
#
# http://www.nayuki.io/page/project-euler-solutions
# https://github.com/nayuki/Project-Euler-solutions
#
import sys
if sys.version_info.major == 2:
range = xrange
def compute():
maxnumer = 0
maxdenom = 1
for d in range(2, 1000001):
n = d * 3 //... | [
"nayuki@eigenstate.org"
] | nayuki@eigenstate.org |
c653396b8ff06da0ed0fbbe3a1a55261e785f72a | df4a7c46c46d1eca6570493b9707bdf64e54f8d3 | /py/226.invert-binary-tree.py | 4f998161a7caf7bd11cb762cee6bb52c513da42f | [] | no_license | CharmSun/my-leetcode | 52a39bf719c507fb7032ed424fe857ba7340aea3 | 5325a56ba8c40d74d9fef2b19bac63a4e2c44a38 | refs/heads/master | 2023-03-29T06:39:49.614264 | 2021-03-28T16:33:52 | 2021-03-28T16:33:52 | 261,364,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #
# @lc app=leetcode id=226 lang=python3
#
# [226] Invert Binary Tree
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
# ๆๅๅบ้ๅฝ
def in... | [
"suncan0812@gmail.com"
] | suncan0812@gmail.com |
92e956d90cbde985404e992cfb58c3b2353845ee | 6e4e6b64c035881f1cff39db616b0a80e1568c51 | /ABC095/q2.py | 03ae7f4a8faaa3f620ab29a4a57a1a728edb1f6e | [] | no_license | Lischero/Atcoder | f7471a85ee553e3ae791e3e5670468aea1fa53cc | f674d6a20a56eebdafa6d50d5d2d0f4030e5eace | refs/heads/master | 2020-05-21T16:23:36.095929 | 2018-10-18T04:27:55 | 2018-10-18T04:27:55 | 60,671,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | # -*- coding:utf-8 -*-
if __name__ == "__main__":
n, x = map(int, input().split())
m = [ int(input()) for _ in range(n) ]
ans = len(m)
singleWeight = sum(m)
surplus = x - singleWeight
if surplus > 0:
ans += surplus//min(m)
surplus -= min(m)*(surplus//min(m))
else:
pas... | [
"vermouth.lischero@gmail.com"
] | vermouth.lischero@gmail.com |
c0be77f66a52f0549e9eed79e2857478ca5e0776 | c5b9f0fabffb6b2d13c6e350c8187a922709ac60 | /devel/.private/pal_detection_msgs/lib/python2.7/dist-packages/pal_detection_msgs/msg/_Gesture.py | ae0174ce103dd369b02deae542cd4e68ed7ceb15 | [] | no_license | MohamedEhabHafez/Sorting_Aruco_Markers | cae079fdce4a14561f5e092051771d299b06e789 | 0f820921c9f42b39867565441ed6ea108663ef6c | refs/heads/master | 2020-12-09T02:43:00.731223 | 2020-01-15T17:31:29 | 2020-01-15T17:31:29 | 233,154,293 | 0 | 0 | null | 2020-10-13T18:46:44 | 2020-01-11T00:41:38 | Makefile | UTF-8 | Python | false | false | 8,082 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pal_detection_msgs/Gesture.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class Gesture(genpy.Message):
_md5sum = "1b... | [
"mohamed@radiirobotics.com"
] | mohamed@radiirobotics.com |
422fd25c0af34230a5b3f5b6c60c72f3edeca6ac | 98aee99dcb9a10f5aac6817388261d46015706a2 | /app.py | f9ca46a33b70689729092c39216f55b96f63f4f2 | [] | no_license | anselmo-2010/Inventar-Flask-urok_47- | e403db991a56240e775f8de020f0a2bfc6b29085 | 83f6cf0f67c312c5bcda6625e617e3b3c7fad8bb | refs/heads/main | 2023-06-11T18:42:46.761072 | 2021-07-02T14:34:04 | 2021-07-02T14:34:04 | 372,032,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/')
def homepage():
f = open('goods.txt', 'r', encoding='utf-8')
txt = f.readlines()
return render_template('index.html', goods = txt)
@app.route('/add/', methods=["POST"])
def add():
good = request.form["good"... | [
"you@example.com"
] | you@example.com |
bf156e026fa3ba1cc2248d87172ffa47bf378cbe | 109a830aad476305f029274d75e28bec8b54f597 | /mainapp/migrations/0002_somemodel.py | f1f20acd554c87122b21108f39125efa4850890d | [] | no_license | Dapucla/EP | 53b156088046abfd6833eba95dc4393ebeb93f4e | 9368032b4b289b20ec1bdf0033d3fe199223d200 | refs/heads/master | 2023-06-19T08:02:55.984888 | 2021-07-11T22:52:24 | 2021-07-11T22:52:24 | 330,009,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # Generated by Django 3.1.5 on 2021-01-06 10:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='SomeModel',
fields=[
('id'... | [
"dapcula08@yandex.ru"
] | dapcula08@yandex.ru |
63b0aea12c879c660f7baaf98db4273cad84fa67 | a7cfae2264e31df40294ec4f1f0686f1450ee75a | /pikachuwechat/modules/core/analysisfriends.py | d070994ae2536c058c12926f6b97bb0c5a6b3f2e | [
"Apache-2.0"
] | permissive | CharlesPikachu/pikachuwechat | 5e991127ac2d30c802fc50cba63b4fc14367428a | 056974fbe733843a9390172aba823c6474b2b857 | refs/heads/master | 2023-05-23T07:52:54.688351 | 2022-07-20T14:59:11 | 2022-07-20T14:59:11 | 169,863,170 | 45 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | '''
Function:
ๅพฎไฟกๅฅฝๅๅๆ
Author:
Charles
ๅพฎไฟกๅ
ฌไผๅท:
Charles็็ฎๅกไธ
'''
import os
import itchat
from ..utils import Logger, checkDir
from pyecharts.charts import Pie, Map
from pyecharts import options as opts
'''ๅพฎไฟกๅฅฝๅๅๆ'''
class AnalysisFriends():
func_name = 'ๅพฎไฟกๅฅฝๅๅๆ'
logger_handle = Logger(func_name+'.log')
... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
966f59944c7e49128f1479f400e957dbb60a6017 | 1b15b42087d58002432daff45fafb7eb4d0ca2d8 | /733_flood_fill_4.py | 321b4905637e4356c76b96e3ed8d65a27e4642e2 | [] | no_license | georgebzhang/Python_LeetCode | 2b92be66880eaf4642a603897386622dc81fbaf3 | c1703358ceeed67e3e85de05eda74447f31176a2 | refs/heads/master | 2020-04-26T01:38:33.750580 | 2019-06-21T21:51:13 | 2019-06-21T21:51:13 | 173,209,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | from collections import deque
class Solution(object):
def floodFill(self, image, sr, sc, newColor):
dirs = ((-1, 0), (1, 0), (0, -1), (0, 1))
def neighbors(i0, j0):
result = []
for di, dj in dirs:
i, j = i0 + di, j0 + dj
if 0 <= i < N and 0 <... | [
"georgebzhang5@gmail.com"
] | georgebzhang5@gmail.com |
873f1fc4b4c80fdde0de3cbc54f6538b5a07d1dc | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/meta/SendInvitesWindowMeta.py | fa3db686b6a0c9f2e14f6b560eccda5cbbab4bca | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,344 | py | # 2017.05.04 15:24:37 Stลednรญ Evropa (letnรญ ฤas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/SendInvitesWindowMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class SendInvitesWindowMeta(AbstractWindowView):
"""
DO NOT MODIFY!
Genera... | [
"info@webium.sk"
] | info@webium.sk |
67e2f761958dc0dc7fd2fdf6192a2e8992a00d81 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/op_cmp_int-174.py | 6a4dcd0a82e8a93715c662e6aaa1d9e59d55555d | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | x:int = 42
y:int = 7
print(x == y)
print(x != y)
print(x < y)
print(x <= y)
print(x > y)
print(x >= y)
print(x == x)
print(x != x)
print(x < x)
print(x <= x)
print(x > x)
$Exp
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
1251b3e38bcfdfb9156e1e5fb3bf21bd2970de42 | a2d3f2787cd26f2bf90f30ba9516d1675a69f8be | /emission/tests/storageTests/TestUsefulQueries.py | 3e66eb5cfee060b7bc51368d76aa66184a92430b | [
"BSD-3-Clause"
] | permissive | njriasan/e-mission-server | 318833ba06cb7f40ddb7b8d2ac3da4d049e7c846 | 23224ddcfd29f31c13f75d819d9ad8530aea052f | refs/heads/master | 2020-05-02T11:02:00.528836 | 2019-03-27T19:21:31 | 2019-03-27T19:21:31 | 177,915,408 | 1 | 0 | BSD-3-Clause | 2019-03-27T04:01:32 | 2019-03-27T04:01:31 | null | UTF-8 | Python | false | false | 4,761 | py | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
# Standard imports
from future import standard_library
standard_library.install_aliases()
from builtins import *
import unittest
from datetime import datetime
import loggi... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
566bc16353fd71873f7a98faf1a9959d315c2f00 | 118546c7bf7fe3063ed68e1c6270b33ed500c3c9 | /thread/ex03.py | 29313ac54622434d7c81d0b0c0d100abbc3d47d8 | [] | no_license | yoonah95/Python_practice | 83b1070f1c95d57a9ea81d2ec3898521f98544f4 | 1e8fbded66e789ba77b3af5499520b8e8e01a6a1 | refs/heads/master | 2022-06-12T20:55:38.490142 | 2020-05-08T02:20:20 | 2020-05-08T02:20:20 | 256,125,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py |
import threading
import queue
class _Operation(threading.Thread):
def __init__(self,sem,*args,**kwds):
self.sem = sem
self.method = kwds.pop('target')
super().__init__(targer=self.wrappedTarget , args=args,kwds=kwds,daemon=True)
def wrappedTarget(self,*args,**kwds):
self.method()
if isinstance(self.... | [
"yoon.a1@hanmail.net"
] | yoon.a1@hanmail.net |
884dc27b316f6a8a853f77c0600bfa03921dc5a5 | e95fb0661cbdcd490b44503462fbd20bd40b2771 | /sfrCore/helpers/__init__.py | cd35adffb541bf9b7fd3f97c31217cef216f753f | [] | no_license | mwbenowitz/sfr-core-test | 785139cd12c86c058d7ec13344a46337dda7b982 | 6b848fcef6dd122e6e11efed1d7f6a6dcfd5a1ed | refs/heads/master | 2020-05-19T23:40:07.644881 | 2019-05-07T13:38:21 | 2019-05-07T13:38:21 | 185,272,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from sfrCore.helpers.errors import DataError, DBError
from sfrCore.helpers.logger import createLog | [
"mwbenowitz@gmail.com"
] | mwbenowitz@gmail.com |
02d41a37e03a917b39eb8dbf16d9c74ed1b6566d | 7baa4fe99adf5d05f40d25a117adc7c022ab76f7 | /examples/greedy_planner_example.py | d31d9e0f841a0f79cbfe9115b4d96586ce3a3972 | [
"BSD-3-Clause"
] | permissive | yonetaniryo/planning_python | 2c75b2f462c18b027a1b65bffa4f18a946a5a29f | 3d7d3c06cc577445a9b5b423f2907f5efa830a0f | refs/heads/master | 2022-06-09T04:18:37.326931 | 2020-05-11T04:27:56 | 2020-05-11T04:27:56 | 262,938,335 | 0 | 0 | BSD-3-Clause | 2020-05-11T04:29:39 | 2020-05-11T04:29:38 | null | UTF-8 | Python | false | false | 3,289 | py | #!/usr/bin/env python
"""A minimal example that loads an environment from a png file, runs greedy planner and returns the path.
The search process and final path are rendered
Author: Mohak Bhardwaj
Date: 28 October, 2017
"""
import sys
sys.path.insert(0, "..")
import matplotlib.pyplot as plt
import time
from planni... | [
"mohak.bhardwaj@gmail.com"
] | mohak.bhardwaj@gmail.com |
c42fa53fdbb01814855b836a54b9f8b8a3f3465c | 3db5e39d9bbe1c86229a26e7d19e3ceb37f902e3 | /Baekjoon/backtracking/6603_๋ก๋.py | 8ac6e5866cc031be2dcc4ef32624dfba585f1c2b | [] | no_license | sweetrain096/rain-s_python | 5ca2fe5e7f97a681b6e75e64264687a723be1976 | eb285eb50eeebfaa2b4a4d7816314e2073faab00 | refs/heads/master | 2021-07-19T16:06:01.389283 | 2020-05-29T14:56:16 | 2020-05-29T14:56:16 | 162,240,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | import sys
sys.stdin = open("6603_input.txt")
def dfs(start):
now = data[start]
visited[now] = 1
result.append(now)
# print(result)
if len(result) == 6:
print(' '.join(map(str, result)))
for i in range(start + 1, total + 1):
if not visited[data[i]]:
dfs(i)
visite... | [
"gpfhddl09@gmail.com"
] | gpfhddl09@gmail.com |
ab2d48cc4933834d30c23e0ad66a2bad6a4eeaf9 | 11cb48f645b2a051a822e4a3a9dbdad87ff0f2f7 | /meals/migrations/0005_auto_20200419_1329.py | 368ff57c85ccb43d20b95a5fc929bbab8de69f96 | [] | no_license | arpan-shrestha/Django-resturent | 54e3c77e6a23c780e4346e479683d97769cc80a5 | 30fa9a155b8377b16f95b7cade303b8dccf73bee | refs/heads/master | 2022-07-16T14:53:16.032576 | 2020-05-19T11:29:21 | 2020-05-19T11:29:21 | 261,817,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Generated by Django 2.2.2 on 2020-04-19 13:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('meals', '0004_meals_category'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'verbose_name': 'ca... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
64e7f9d24119950e166280edbb3d7e26fed07c9e | ec9aa6dd7405d5483e9ae09f700bb718f10cb4b5 | /backend/home/migrations/0001_load_initial_data.py | 74093808df7d90106c11cd7f5251a25ef8971ab4 | [] | no_license | crowdbotics-apps/whatsa-29124 | 0c41ef1e063ff30cb95496a56f3398128dd90c2a | d3defa32ca7ad10787f4db6384426c428b3af230 | refs/heads/master | 2023-06-28T04:04:21.757506 | 2021-07-24T20:30:05 | 2021-07-24T20:30:05 | 389,195,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "whatsa-29124.botics.co"
site_params = {
"name": "Whatsa",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_create(def... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0f1aede94dec481182ebc9f1c26b4fc0290fea06 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/python/kernel_tests/conv_ops_3d_test.py | f4616fd661f989c1c3e4939a3d062b0260f8572e | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 18,347 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"zylo117@hotmail.com"
] | zylo117@hotmail.com |
6a20354acc76f8a3df9db14e09babcd7f6f2ce58 | 336f11ee8934581f05ab620c5324c601ba864b05 | /jb_adaptive_python/Problems/Positive number/Programming/tests.py | 323f0943b1fcf1048069f4ec166be163d4f07337 | [] | no_license | ancient-clever/sandbox | 01adeee2638a23533965cf57ca873a30e7dfad3d | 87dec3bf8860a67a36154ee5d7c826d919d3111b | refs/heads/master | 2022-05-17T04:49:54.703068 | 2020-01-19T17:44:27 | 2020-01-19T17:44:27 | 206,946,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from test_helper import check_samples
if __name__ == '__main__':
check_samples(samples=[["7","YES"]]) | [
"ancient-clever@outlook.com"
] | ancient-clever@outlook.com |
faac230832135bc3a080bd66e534c0ecf5539e37 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/encoding/filters/crop/crop_api.py | eb68ce39513a7783814c8a4597f68194bf384fc7 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 3,178 | py | # coding: utf-8
from __future__ import absolute_import
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase
from bitmovin_api_sdk.common.poscheck import poscheck_except
from bitmovin_api_sdk.models.bitmovin_response import BitmovinResponse
from bitmovin_api_sdk.models.crop_filter import CropFilter
from ... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
c76c48ac8d93e255cb9cc8603a3d286394a5bc90 | f7a252b63b16a8f21d6921fd1f5c20075fec4cc9 | /helpers/hadoop/wikipedia/words/merger.py | 4d6c877c43697dbe39766419075eae9710f21503 | [] | no_license | zymITsky/twittomatic | 5803b4c2db5f3c0ee1b65af86171b2c5f9b2c797 | 396c0800b594a85fbcb54e772b3bc60837ed3eab | refs/heads/master | 2020-06-01T10:44:38.887254 | 2013-02-14T20:28:17 | 2013-02-14T20:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | import gzip
import heapq
import glob
def merge_files(inputfiles):
files = []
for filename in inputfiles:
files.append(iter(gzip.open(filename, 'r')))
iterator = iter(heapq.merge(*files))
line = iterator.next()
prevanchor, prevcounter = line.rstrip('\n').rsplit('\t', 1)
prevcounter = i... | [
"stack.box@gmail.com"
] | stack.box@gmail.com |
daf32e5a38af751296be03149defa4907bcdf104 | d5125ccc1ef9915ffd72c575225a620aac5cb347 | /TriAquae/TriAquae/hosts/migrations/0005_initial.py | efecc6c51129f1eea7487c7975b55216d1d798b0 | [] | no_license | yurui829/stefanbo | 2231074e0e4f04438aff647563299ad1947bd760 | 449f862c81a3b4ae3e079ecb4a15b3a5cbcca701 | refs/heads/master | 2021-01-24T23:42:52.064783 | 2014-07-02T03:05:04 | 2014-07-02T03:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,357 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Devinfo'
db.create_table(u'hosts_devinfo', (
(u'id', self.gf('django.db.models.f... | [
"stefan_bo@163.com"
] | stefan_bo@163.com |
77c86e7b6456e7ab33c161d6d8ab304d6d09e17b | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/framework/python/framework/tensor_util_test.py | ed3a7989a6ca1353a9b8069ec10dfdff872950bd | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 16,283 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
d7cd476ca8f69a0ba757cc642b513abdbddb7e8d | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/classification/SqueezeNet1_1/main.py | 3852a80149bfa320d4bf1d54f10c4af570924c6c | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 19,790 | py | # BSD 3-Clause License
# Copyright (c) Soumith Chintala 2016,
# Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
e9de1fbae42006866704b12710ee0caac1dc22ea | 65a735524f36356c0d4870012df19b4ec655558b | /Coding the Matrix/matrix/hw0/hw0.py | c3a7336dcf67cb96888ca72baefab72715e6b9b9 | [] | no_license | zjsxzy/Courses | 7047a871d6acb9748ef956bbdfd7570431c76e37 | aacbd4c81cc3af2d0a74cc1d5c08931130e491fc | refs/heads/master | 2020-03-30T07:13:54.812252 | 2013-10-29T02:16:40 | 2013-10-29T02:16:40 | 10,140,554 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # Please fill out this stencil and submit using the provided submission script.
## Problem 1
def myFilter(L, num):
return [x for x in L if x % num != 0]
## Problem 2
def myLists(L):
return [list(range(1, x + 1)) for x in L]
## Problem 3
def myFunctionComposition(f, g):
return {k:g[v] for k, v in f.item... | [
"zjsxzy@gmail.com"
] | zjsxzy@gmail.com |
963ea31f26d0a3ff242a9c5e5d625f37f427e6ea | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000711.py | ebaaff510bb65f65923cd0f3844acbce5b59094d | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
1d71d22b4e7c4676ddbfd83f684686ed3e859183 | 8ab8a1c524030a95f2cba68a02ae036dd2c65d78 | /lib/apps.py | 5d96408738acefdd49b044567e9485b21cc466f5 | [] | no_license | marekventur/emfcamp-2018-app-library | 2ffce3136c789c56bb45acecfb1ca33f4ac06a46 | 32e278d4c99936a70c28d23ae52270b7eff26a51 | refs/heads/master | 2020-03-22T16:40:46.762618 | 2018-07-16T22:04:42 | 2018-07-16T22:05:25 | 140,343,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,358 | py | """Model and Helpers for TiLDA apps and the App Library API"""
___license___ = "MIT"
___dependencies___ = ["http"]
import os
import ure
import http_client
import filesystem
import gc
ATTRIBUTE_MATCHER = ure.compile("^\s*###\s*([^:]*?)\s*:\s*(.*)\s*$") # Yeah, regex!
CATEGORY_ALL = "all"
CATEGORY_NOT_SET = "unca... | [
"marekventur@gmail.com"
] | marekventur@gmail.com |
b4bd250abb60b9c3eab25cfc0aa1a5fdef2c81f4 | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/gkeonprem/v1/get_vmware_node_pool.py | 1fa08dd4c899a8a1f1fb9cc13f36d274c7f4d2c1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 9,983 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
581f5adec9da3ee40c34877b24662132f1a72437 | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /fixtures/schema_validation.py | 6b0ead9186f4e6aa218c3c747c04b35ab07587e3 | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 505 | py | import pytest
from jsonschema import ValidationError
def invalid_schema(func):
def inner(self, *args, **kwargs):
with pytest.raises(ValidationError):
func(self)
return inner
def invalid_schema_with_error_message(message):
def decorator(func):
def inner(self, *args, **kwargs)... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
61aed9016adcb0356666e3b2b263240642d9d902 | 48981ef531729e6c133f9e01252a7dc6f4251629 | /modules/modules broken.py | 181b3ed252c0f2a552a10fc9aa6e27da7c813baf | [] | no_license | sharland/python_scripts | f778f3c2dfc2f19592e94472ec9afd5c77ed4052 | 702b543a77ee5361aa73d5068510e1df937210c4 | refs/heads/master | 2021-09-08T13:26:54.123689 | 2021-08-30T21:24:58 | 2021-08-30T21:24:58 | 17,588,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | #! /usr/local/bin/python3
x = 49
y = sqrt(x)
print(y)
| [
"sharland@gmail.com"
] | sharland@gmail.com |
50896b220232ff3cad259b8616dcaf5801e1c0fe | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/zd/CB_ZD_Verify_AAA_Server_GUI_CLI_Get.py | edf805d0ccb40058c8caa5ef9eb27ed5e1fc115a | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | # Copyright (C) 2011 Ruckus Wireless, Inc. All rights reserved.
# Please make sure the following module docstring is accurate since it will be used in report generation.
"""
Description:
@author: Cherry Cheng
@contact: cherry.cheng@ruckuswireless.com
@since: Feb 2012
Prerequisite (Assumptions about th... | [
"tan@xx.com"
] | tan@xx.com |
434f7560833bf09a40483a71d5430a62a3834174 | 95f3e72dfdd6e7194c8cdad6529f891141d1cc68 | /pyatv/mrp/protobuf/SendCommandResultMessage_pb2.pyi | f1d7710eb0bdb3adb65d89fb6d8f556b29319296 | [
"MIT"
] | permissive | Lee-View/pyatv | 87939b2ce7c2d5d383090c64c4f0f15b03d040cb | 5f46dacccea8e107d0407c95432eda611980ef81 | refs/heads/master | 2021-01-02T11:19:36.315363 | 2020-02-10T18:36:16 | 2020-02-10T19:02:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FieldDescriptor as google___protobuf___descriptor___FieldDescriptor,
)
from google.protobuf.internal.containers import (
RepeatedScalarF... | [
"pierre.staahl@gmail.com"
] | pierre.staahl@gmail.com |
ecb7ed4701df3ff2fdfa90258ae280604ab871d2 | 9c7e75720740422044747387907b2678360b7241 | /setup.py | 302fc4bf2efd1912fe8516e65300143060032d8b | [
"MIT"
] | permissive | sourabhtkd/django-log-viewer | cc84c861ff9f10e3d6c498ebce8c93ef5c10b2cf | a8216d3572d5209a50175a9004a4f59fe2227492 | refs/heads/master | 2023-06-12T12:41:17.348747 | 2021-07-07T01:18:06 | 2021-07-07T01:18:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import (setup, find_packages)
__version__ = '1.1.3'
setup(
name='django-log-viewer',
version=__version__,
packages=find_packages(exclude=["*demo"]),
include_package_data=True,
zip_safe=False,
description='Django log viewer',
ur... | [
"summon.agus@gmail.com"
] | summon.agus@gmail.com |
0be80f1a5029ac315fad63e0b82ca6c1af7b3388 | 3b479163504e51abdd08596f13abe40d0f84c8e6 | /ISSUE-11/SOLUTION-5/obstacles.py | 1cfadd86988aec43ee6811a3b29b2b626d8707de | [] | no_license | kantal/WPC | c864bf7f1a0ce63aef264309dfb9fce7587895bd | 46648436ee2dac2b727a1382c4e13a9a0ccb8bdf | refs/heads/master | 2021-06-10T14:08:57.441613 | 2021-02-16T12:00:11 | 2021-02-16T12:00:11 | 16,383,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,141 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
'''
2013-06-02 by kantal59
License: LGPL
OLIMEX WPC#11:
Letโs have a maze with size X x Y where X and Y are integer (3..100) .
The maze is defined with strings, where in the string โWโ is wall, โ@โ is obstacle and โ โ is air.
Make code which finds the la... | [
"usunov@olimex.com"
] | usunov@olimex.com |
1a9931e21fe1e127a78ef5b4276c981c27471124 | 16a5c9c9f0d7519a6808efc61b592b4b614102cf | /Python/70.py | 966783c4a0677185ef2fd95c25677aa959c88acf | [] | no_license | kevin851066/Leetcode | c1d86b2e028526231b80c6d4fb6d0be7ae8d39e5 | 885a9af8a7bee3c228c7ae4e295dca810bd91d01 | refs/heads/main | 2023-08-10T16:50:12.426440 | 2021-09-28T15:23:26 | 2021-09-28T15:23:26 | 336,277,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | class Solution:
def climbStairs(self, n):
'''
:type: n: int
:rtype: int
'''
arr = [1, 2]
for i in range(2, n):
arr.append(arr[i-1]+arr[i-2])
return arr[n-1] | [
"kevin851066@gmail.com"
] | kevin851066@gmail.com |
fd2c623806b24a1c36d209d183e759acff4bf4fc | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/nlp/data/question_answering_squad/__init__.py | 9e3250071955216f6abc505e6181fb59931baa8d | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 610 | py | # Copyright (c) 2020, NVIDIA CORPORATION. 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 appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
b425bac67bd61149de100ef3f07563c01ca8f0b6 | e0fbc96bec9e83bc3fc3482e432bd2c6b6ad05a6 | /MRPT/vtz/monoxides/FeO/mrpt.py | 9647bda9cf436383cf636a27b17a5e16e9757669 | [
"MIT"
] | permissive | mussard/share_data_benchmark | fe2cbd95879e069be2475d39b191de4f04e140ee | c02bfa4017b9008800cabe47d7c7959f82c26060 | refs/heads/master | 2020-03-11T21:25:00.264437 | 2019-04-29T00:28:13 | 2019-04-29T00:28:13 | 130,264,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | import json
from pyscf import gto,scf,mcscf, fci, lo, ci, cc
from pyscf.scf import ROHF, UHF,ROKS
import numpy as np
import pandas as pd
# THIS IS WERE IT STARTS ====================================
df=json.load(open("../../../trail.json"))
spins={'ScO':1, 'TiO':2, 'VO':3, 'CrO':4, 'MnO':5, 'FeO':4, 'CuO':1}
nd={'S... | [
"bastien.mussard@colorado.edu"
] | bastien.mussard@colorado.edu |
d4875149298a8f42184376266bdf807f665ffb6b | 19dedf819f54bf905b2f68053ea75a654578b69e | /manimlib/mobject/number_line.py | 40577194a33b901704314043b50494077895ad7f | [
"MIT"
] | permissive | gear/ganim | 784eb88cdbc7e0dfdd1123344bb5c73a170d1a56 | 6a84bbc37580b79de28fe3f25c314f5f828d9705 | refs/heads/master | 2022-11-29T23:39:45.363480 | 2019-12-20T07:46:23 | 2019-12-20T07:46:23 | 229,211,899 | 0 | 1 | MIT | 2022-11-22T02:58:38 | 2019-12-20T07:20:07 | Python | UTF-8 | Python | false | false | 6,218 | py | import operator as op
from manimlib.constants import *
from manimlib.mobject.geometry import Line
from manimlib.mobject.numbers import DecimalNumber
from manimlib.mobject.types.vectorized_mobject import VGroup
from manimlib.utils.bezier import interpolate
from manimlib.utils.config_ops import digest_config
from maniml... | [
"hoangnt.titech@gmail.com"
] | hoangnt.titech@gmail.com |
38e4789e280a8928eeebee517516c384dbfba205 | 0b41847069aa825496ba80bb2d776cdba7cf4bc1 | /src/face++.py | 5630b0edd20d049360ae037b5b6a7e1334fa5b73 | [] | no_license | josephding23/Facial | b30ba17cf8138b8b7631080983d770ce01339d67 | 9ce4332ec84a0d1edd8256014baacb57b38a432b | refs/heads/master | 2021-10-28T04:49:54.055836 | 2019-04-22T06:52:03 | 2019-04-22T06:52:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | # -*- coding: utf-8 -*-
import urllib.request
import urllib.error
import time
import json
http_url = 'https://api-cn.faceplusplus.com/facepp/v3/detect'
key = "JiR6-u4F8zPb63yuIRi3x7q8V_3kGd0M"
secret = "L81Va5ynggdIrrs107c9h9WnqW7I1YDs"
filepath = r"E:/Fotografica/92414d2ccbe975e049634c084f0d6.jpg"
boundary = '------... | [
"dingzhx@vip.qq.com"
] | dingzhx@vip.qq.com |
779966906bddd6b8136f5b50be49cdd1090534ee | b9f5bed67a7e2afefe3fd759c78eeed4d10881f6 | /django_app/introduction_to_models/migrations/0001_initial.py | bf3e3ef02e026969fdfab0bb88d03d964bd76890 | [] | no_license | jmnghn/Django-Documentation-Practice | 672c1cc9e37ffeff5f08029f45bf580de923422b | 2106881c415e6e39ba14dc5ba6aa9ac1430de327 | refs/heads/master | 2022-09-29T17:30:36.860197 | 2017-06-08T05:09:12 | 2017-06-08T05:09:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-05 18:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person... | [
"joengmyeonghyeon@gmail.com"
] | joengmyeonghyeon@gmail.com |
102e1c8facf01163849e905d9a46995b66eebf28 | c50d716910e4d51ebfc24ca8a50abe4842b63b5d | /train_tp_sort_wiki.py | a37081f7b92bac6d3cbbd87f54ed4657078c4ad5 | [
"MIT"
] | permissive | SkyrookieYu/manga_ordering | b504d1a78e26351adb7d00a1ab8a4929854cc4b7 | 8957e9efc0bed68636bc9898dda056963e214663 | refs/heads/main | 2023-03-22T14:12:16.399591 | 2021-03-17T09:17:40 | 2021-03-17T09:17:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | from transformers import Trainer, TrainingArguments
from data.dataloaders import PairwiseWikiData
from models.tpsortmodels import base_order_model
train_set = PairwiseWikiData("jawiki/japanese_wiki_paragraphs.json", divisions=10)
model = base_order_model()
training_args = TrainingArguments(
output_dir="ckpt",
... | [
"brian01.lim@gmail.com"
] | brian01.lim@gmail.com |
6d6e7b7b4ea0bb64f56f91ae028971b202e5b4a5 | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/ccp/format/nmrStar/bmrb/File.py | f38ee8715476d4ac2bb74448b38a52e00f6a6ea3 | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 17,274 | py | """
Classes for dealing with STAR syntax
"""
__author__ = "$Author: jurgenfd $"
___revision__ = "$Revision: 1.8.4.2 $"
___date__ = "$Date: 2011-04-06 09:00:38 $"
"""
$Log: not supported by cvs2svn $
Revision 1.8.4.1 2010/02/11 12:44:33 wimvranken
Fix to deal with loop_ only chemical shift files - th... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
c4f5690140458bce0d536cfefba6636c3535c9ad | fb3439159a8bd88fd380b0e3fea435ddd4e6e45a | /doge/common/utils.py | 4bbfede249a45b70aa72dc2edbd57b2757e10776 | [
"Apache-2.0"
] | permissive | qyt2018/doge | 6ab3aca5424dfa258fef6ea0db0b5f451c0cd430 | 54ba17f9e997e468ab0d7af15e5ef7f45b19e3d6 | refs/heads/master | 2020-06-28T04:36:44.014286 | 2018-09-30T09:56:31 | 2018-09-30T09:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | # coding: utf-8
import time
from importlib import import_module
from gsocketpool.pool import Pool
def import_string(dotted_path):
"""
Import a dotted module path and return the attribute/class designated by the
last name in the path. Raise ImportError if the import failed.
"""
try:
modu... | [
"zhu327@gmail.com"
] | zhu327@gmail.com |
36812d07aa4a93feac66304a289b2e735c02b1bc | ead692cceee6635fc3b11ea6da2069614883c4ef | /holocron/models/resnet.py | a1e0b25551b6b4f972b42f26d7f4a0ac22a549d2 | [
"MIT"
] | permissive | aiedward/Holocron | c6036c8d95efbc2f26a05d8f83f45fd38c22422e | 7206d08a9f5338fc3f08834fb64171fbd2195e1a | refs/heads/master | 2023-04-11T08:52:56.203299 | 2021-04-04T22:55:52 | 2021-04-04T22:55:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,651 | py | import sys
from collections import OrderedDict
import torch.nn as nn
from torch import Tensor
from holocron.nn import init, GlobalAvgPool2d
from .utils import conv_sequence, load_pretrained_params
from typing import Dict, Any, List, Optional, Callable, Union, Type
__all__ = ['BasicBlock', 'Bottleneck', 'ResNet', 'res... | [
"noreply@github.com"
] | aiedward.noreply@github.com |
de06ca34f13b2eff76f8484c8cfac851d34f872f | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-core/Examples/Scripts/signal-demo.py | afb61eef5d6ca835e627d2ec0eb4ac0224ec8008 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | #!/usr/bin/python
from PyObjCTools import Signals
Signals.dumpStackOnFatalSignal()
import os
import signal
## all this does is set up an interesting stack to
## to show that a backtrace really is being
## generated. Try commenting out the
## Signals.dumpStackOnFatalSignal() line above and run
## the script again.
... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
c63083f09d069c34cd302857d6198be2df11afbb | ec5ec1bcfb3f82048fd2703eed6e6fbbcd352bb1 | /add_digits.py | caac8cd0f8e2fffc17fe8a9f08b53af07dcbde30 | [] | no_license | claytonjwong/Sandbox-Python | 5e9da26374b178831ca60beaabfbdd2f423032a2 | b155895c90169ec97372b2517f556fd50deac2bc | refs/heads/master | 2021-06-21T15:37:47.918514 | 2017-08-06T23:58:15 | 2017-08-06T23:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | """
258. Add Digits
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.
For example:
Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one digit, return it.
"""
class Solution(object):
def addDigits(self, num):
"""
:t... | [
"claytonjwong@gmail.com"
] | claytonjwong@gmail.com |
5a0895c4e62c422e5190c377fea47fb15b49962b | e3b5e20bcb560a3c37c09f728b9340b1715c1818 | /venv/chartsHelper.py | 6e45eeba0e71efe34c8f587f1e3b0a11ef91c189 | [
"MIT"
] | permissive | 180Studios/LoginApp | 63bc50b1f91e7221c7581627ab166eeb01758f5c | 66ff684a81b23d8f45eef2c56be19a2afd95ab29 | refs/heads/master | 2022-12-24T00:33:08.481826 | 2020-02-03T05:14:41 | 2020-02-03T05:14:41 | 144,414,562 | 0 | 1 | MIT | 2022-12-08T01:38:26 | 2018-08-11T19:57:44 | Python | UTF-8 | Python | false | false | 5,043 | py | from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import plotly.graph_objs as go
import numpy, pandas
from tinydb import *
from tinydb.operations import decrement
import re
from datetime import datetime
import config
# init_notebook_mode(connected=True)
# logfile = "log.json"
try:
l... | [
"kylenahas@gmail.com"
] | kylenahas@gmail.com |
780bb620af4b7428a5557874d2bdfa66ea855a23 | f159aeec3408fe36a9376c50ebb42a9174d89959 | /155.Min-Stack.py | b754b734b48a4ed9bde782e3396b70e1bcdc3b49 | [
"MIT"
] | permissive | mickey0524/leetcode | 83b2d11ab226fad5da7198bb37eeedcd8d17635a | fc5b1744af7be93f4dd01d6ad58d2bd12f7ed33f | refs/heads/master | 2023-09-04T00:01:13.138858 | 2023-08-27T07:43:53 | 2023-08-27T07:43:53 | 140,945,128 | 27 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | # https://leetcode.com/problems/min-stack/
#
# algorithms
# Easy (34.63%)
# Total Accepted: 248,646
# Total Submissions: 718,028
from collections import deque
class MinStack(object):
def __init__(self):
"""
initialize your data structure here.
"""
self.data_stack = deque()
... | [
"buptbh@163.com"
] | buptbh@163.com |
0af0dc31c6a079c69e9a0f69496bf6df0961e7c6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03340/s906430612.py | 4d68664a5cd6e13092a6416dfbf996907ce79293 | [] | 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 | 325 | py | n = int(input())
A = list(map(int, input().split()))
xsum = A[0]
asum = A[0]
ans = 0
left, right = 0, 0
while True:
if xsum == asum:
ans += right - left + 1
right += 1
if right == n:
break
asum += A[right]
xsum ^= A[right]
else:
asum -= A[left]
xsum ^= A[left]
left += 1
print(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
36ee40b2872c91989b80744c751f87cf778217c5 | 1617bd9db97c0989679ea3fe8ab25506332443bf | /runserver.py | de6eb2856c62d5469ec80b592ab245ba4da84ea7 | [] | no_license | florije1988/flaskapp | 3da7ca00d36121148b1ebd3fe8417d796a474b91 | 7f5eed9c2c1e3c6d2eeb6f1b457770106b2bf254 | refs/heads/master | 2021-01-25T12:14:14.984931 | 2015-09-04T07:29:45 | 2015-09-04T07:29:45 | 41,535,709 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
from intro_to_flask import app
if __name__ == '__main__':
app.run(debug=True)
| [
"florije1988@gmail.com"
] | florije1988@gmail.com |
a8cb9b7088c18e01114c6ddf432676df64f9ca0e | 7255a09821deba655309b74927091ac9ab8b6075 | /example/MCD_DA/segmentation/adapt_trainer_onestep.synthia.deeplabv2.lr1e-3.epoch20.poly.py | ac6415fdf38e55029e0766adcb7b4d2fdf57a1ef | [
"MIT"
] | permissive | summer1719/pytorchgo | 2814141d6fc0b5c3369d2b9d37e1140e410b25ec | 1ffd561a53d583ca4098297e585e786e472ddd1a | refs/heads/master | 2020-04-25T20:45:04.203802 | 2019-01-10T15:03:31 | 2019-01-10T15:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,715 | py | from __future__ import division
import os,shutil
import torch
from tqdm import tqdm
from PIL import Image
from tensorboard_logger import configure, log_value
from torch.autograd import Variable
from torch.utils import data
from torchvision.transforms import Compose, Normalize, ToTensor
from argmyparse import fix_img... | [
"taohu620@gmail.com"
] | taohu620@gmail.com |
fc9a5598659638528728a6c4cf1799567d39fe30 | cd8a143c5f01fcf6130b129a7a578d0225476b2d | /worker/deps/gyp/test/mac/gyptest-app-error.py | df0781d45562a8225855c79fbe1381317035a652 | [
"BSD-3-Clause",
"ISC"
] | permissive | corvaxx/mediasoup | 47242bd5b0468b1f7e6de8077b11adf562aa244f | 304bce884755243f78ba3eeec5442888ecdc5340 | refs/heads/v3 | 2023-02-05T03:19:59.451099 | 2020-09-25T11:27:36 | 2020-09-25T11:27:36 | 303,987,529 | 0 | 3 | ISC | 2020-11-06T16:22:36 | 2020-10-14T11:00:43 | null | UTF-8 | Python | false | false | 1,321 | py | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that invalid strings files cause the build to fail.
"""
from __future__ import print_function
import TestCmd
import TestGyp
... | [
"ibc@aliax.net"
] | ibc@aliax.net |
ed7afc9075c01158b21a3ec97fa1073c5c131a16 | 98eb51d47082627353cfea31f022ada7ccc6729e | /exer_2_aug24.py | 2f6e26521ee285d9a797abe59c8e1b671ae4ada3 | [] | no_license | pns845/Dictionary_Practice | 0c4fe3bb0e845d7c8b53d4cc74848a1549dbe262 | 1e98357dd59679587683f5daad730e3690192627 | refs/heads/master | 2022-12-11T07:27:51.574009 | 2020-08-25T17:21:01 | 2020-08-25T17:21:01 | 290,277,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | import sys
db_1 = {1: {'Interface':'Ethernet0', 'IP':'1.1.1.1' , 'Status':'up' },
2: {'Interface':'Ethernet1', 'IP':'2.2.2.2' , 'Status': 'down'},
3: {'Interface': 'Serial0', 'IP': '3.3.3.3', 'Status': 'up'},
4: {'Interface': 'Serial1', 'IP': '4.4.4.4', 'Status': 'up'}}
interface = sys.argv[1]
p... | [
"noreply@github.com"
] | pns845.noreply@github.com |
fc235403436e30bd87e18d8e4efbaf1982e0c9c7 | 3a9b154aa9d5e379683476f80f30630bf44d2102 | /Server_v1/appfront/forms/BusinessReportForm.py | 6318e4cf6d647ad833278a7755537c5966e237a0 | [] | no_license | KevinDon/py_amazon_analysis | 81995e360d2b536e1df6e515aae9457054edae29 | 13b5fbb046ca6516ac3a47e8f7867baf358011f4 | refs/heads/master | 2022-12-13T00:27:27.511783 | 2019-08-14T11:45:53 | 2019-08-14T11:45:53 | 185,160,162 | 0 | 1 | null | 2022-12-10T05:38:15 | 2019-05-06T08:56:40 | TSQL | UTF-8 | Python | false | false | 1,417 | py | # coding:utf-8
import datetime
from django import forms
from django.utils.translation import ugettext as _
from appfront.model import BusinessReportModel
class BusinessReportForm(forms.ModelForm):
class Meta:
model = BusinessReportModel
fields = '__all__'
def __init__(self, *args, **kwargs):
... | [
"kevintang002@gmail.com"
] | kevintang002@gmail.com |
8b603e86231d625c9d444794c3acdf9b4ce4ed43 | 4236066bcbd37400172d53382301bf8ac8ee8c40 | /cookbook/seismic_srtomo_sparse.py | 82a3eec522f50719b1c59f854ebcdb1f30f9ce51 | [
"BSD-3-Clause"
] | permissive | imclab/fatiando | eaf0e01746f198bbe65e140492a0f62abd299802 | edad8d020094d8fcda1e61402fcd46b686d6fd56 | refs/heads/master | 2020-12-26T03:23:37.984484 | 2013-11-27T23:00:22 | 2013-11-27T23:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | """
Seismic: 2D straight-ray tomography of large data sets and models using
sparse matrices
Uses synthetic data and a model generated from an image file.
Since the image is big, use sparse matrices and a steepest descent solver
(it doesn't require Hessians).
WARNING: may take a long time to calculate.
"""
import ur... | [
"leouieda@gmail.com"
] | leouieda@gmail.com |
3567ad3bfb0a1aebe02d9c3198ecbb0427d721fd | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/asset/client/AssetClient.py | 2dc9c5d76d03a400482614cd1ff7944b21f55abf | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,037 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"tancong@jd.com"
] | tancong@jd.com |
dd9e049b2543768f53963145a7ce82b160deb901 | 9d67cd5f8d3e0ffdd4334a6b9b67c93f8deca100 | /configs/20171216_example_same_room.py | 775f154c4a3d840719099431f5d30d10f38d1201 | [] | no_license | SiyuanLee/caps | 0c300a8e5a9a661eca4b2f59cd38125ddc35b6d3 | 476802e18ca1c7c88f1e29ed66a90c350aa50c1f | refs/heads/master | 2021-06-20T22:48:16.230354 | 2021-02-22T13:21:57 | 2021-02-22T13:21:57 | 188,695,489 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,937 | py | """
This is the example config file
same_room
no parameter share
take a look at transfer_config (differences are there)
"""
import numpy as np
# More one-char representation will be added in order to support
# other objects.
# The following a=10 is an example although it does not work now
# as I have not included a '1... | [
"lisiyuan@bupt.edu.cn"
] | lisiyuan@bupt.edu.cn |
bd79ec0757f648e401c63f9fa0942494e20dc519 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03611/s342764728.py | 5355e439cbc0315cffc195524b903f5e9f4c1700 | [] | 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 | 187 | py | from collections import Counter
n=int(input())
a=list(map(int,input().split()))
l=[]
for x in a:
l.append(x-1)
l.append(x)
l.append(x+1)
print(Counter(l).most_common(1)[0][1]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ae35aec52d86a32bd0b75f1acf50678710a9f641 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2791/60695/239354.py | 6b532a321bf527606eb34026bc1d2b58906786af | [] | 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 | 242 | py | n = int(input())
a = input().split(" ")
count = 0
for i in range(0, n):
if a[i] == "1":
count += 1
print(count)
for i in range(0, n):
if i == n-1:
print(a[i])
elif a[i + 1] == "1":
print(a[i] + " ", end="") | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f5751fcb1dace35e1e62379427c047c026646cf0 | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/test/test_v1beta2_replica_set_list.py | 271452437d4493d410a2e9bcc3923ad1bcec5d20 | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 1,038 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... | [
"tomasz.prus@gmail.com"
] | tomasz.prus@gmail.com |
1c213bc633cad5adec5b1c8e8eb5afab1fe602e4 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_shg_integrals_test1.py | 097a0b17deff2c1c43c55c874d8ca09dd08c8970 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._basis1 import _basis1
class _shg_integrals_test1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Abc = None
self.Nab_min = None
self.Nrep = None
self.C... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
078578d693f12594a7667580b822807b12ef8089 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_18822.py | a1d55691cd1f2a14f0f0a7ef08990fd9c8c8e58f | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | # celery recurring task not executing
python manage.py celery worker -B
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
d7e3eee3c33f77ccf4b9aac394c4a45f5bbbac0d | 7e7e8fb08e00f235306b97908ae083d670c00062 | /Froms/1.formpro/formpro/wsgi.py | fd61d7862293b341cd7fe21018301878529850b3 | [] | no_license | Aadeshkale/Django-devlopment | b60fd8c846b7187ac7d464839055353e877479e3 | 445e6b65825fe03be34a13b30817adbb160bb608 | refs/heads/master | 2021-07-18T13:53:14.216350 | 2020-05-08T07:19:22 | 2020-05-08T07:19:22 | 146,633,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for formpro project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"aadeshkale0@gmail.com"
] | aadeshkale0@gmail.com |
f18486755d13b3765b34036f097c316cfe0d6f99 | 5ad74a3b997b25d3c3aac3bd27d30876ec5d9304 | /python/brenmy/geometry/bmMesh.py | cb695ed57c087ed557c4d719d62baf2c44e91c51 | [] | no_license | lwk205/brenmy | c587ee56c22cd4332878c980af14362453add8ee | 16e4c3e978699e398fdc76611cda39ce39da0e33 | refs/heads/master | 2023-01-24T03:09:27.093726 | 2020-11-24T09:56:11 | 2020-11-24T09:56:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | '''
Created on 23 Jun 2018
@author: Bren
OpenMaya API mesh utilities
'''
from maya.api import OpenMaya
def get_points(mesh):
# get dag
sl = OpenMaya.MSelectionList()
sl.add(mesh)
dag = sl.getDagPath(0)
# get points
m_mesh = OpenMaya.MFnMesh(dag)
points = m_mesh.getVertices()
retu... | [
"brenainnjordan@googlemail.com"
] | brenainnjordan@googlemail.com |
b78cfbb6561597fad5d2bbf609bc75d888603e52 | 1bd5f83d7faf77ad92d141ba07d25259dd2c4550 | /LeetCode/PascalsTriangle2.py | bc8ddfd2de4983224b1bd3dcabeb24d02db6c083 | [] | no_license | puneet29/algos | a0f5d638909c12e86faa5544d0ae7d9381b8f1fc | 54545a7502f7359968fbd27ec5bf111b82df324d | refs/heads/master | 2021-07-22T22:45:31.745942 | 2021-07-19T18:13:40 | 2021-07-19T18:13:40 | 189,939,790 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | class Solution:
def getRow(self, rowIndex: int) -> List[int]:
if(rowIndex < 1):
return [1] * (rowIndex + 1)
prev = self.getRow(rowIndex-1)
curr = [1 for i in range(rowIndex+1)]
for i in range(1, rowIndex):
curr[i] = prev[i-1] + prev[i]
return curr
| [
"puneet29saini@gmail.com"
] | puneet29saini@gmail.com |
a0e5c7c8b90240f173efb2e5b446c5fb9cefe55f | 060fbf2a69a90ad92de5fc877521d5ea6b298007 | /test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/dictionary_wrapper.py | 6a304de7269c0577cfc4283e6d45211281f132dd | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | iscai-msft/autorest.python | db47a8f00253148fbc327fe0ae1b0f7921b397c6 | a9f38dd762fbc046ce6197bfabea2f56045d2957 | refs/heads/master | 2021-08-02T13:06:34.768117 | 2018-11-21T00:29:31 | 2018-11-21T00:29:31 | 161,554,205 | 0 | 0 | MIT | 2018-12-12T22:42:14 | 2018-12-12T22:42:14 | null | UTF-8 | Python | false | false | 913 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | iscai-msft.noreply@github.com |
3f6e4a8e9423724fa17c503ff03fce2fe280d2bd | c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6 | /keras2/keras83_embedding1.py | 4867bc0bbc211ed5091a7697040ae28f561545ad | [] | no_license | sswwd95/Study | caf45bc3c8c4301260aaac6608042e53e60210b6 | 3c189090c76a68fb827cf8d6807ee1a5195d2b8b | refs/heads/master | 2023-06-02T21:44:00.518810 | 2021-06-26T03:01:26 | 2021-06-26T03:01:26 | 324,061,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,648 | py | from tensorflow.keras.preprocessing.text import Tokenizer
import numpy as np
docs = ['๋๋ฌด ์ฌ๋ฐ์ด์', '์ฐธ ์ต๊ณ ์์', '์ฐธ ์ ๋ง๋ ์ํ์์',
'์ถ์ฒํ๊ณ ์ถ์ ์ํ์
๋๋ค.', ' ํ ๋ฒ ๋ ๋ณด๊ณ ์ถ๋ค์', '๊ธ์์',
'๋ณ๋ก์์', '์๊ฐ๋ณด๋ค ์ง๋ฃจํด์', '์ฐ๊ธฐ๊ฐ ์ด์ํด์',
'์ฌ๋ฏธ์์ด์', '๋๋ฌด ์ฌ๋ฏธ์๋ค', '์ฐธ ์ฌ๋ฐ๋ค์', '๋ณ์ด๋ ์์ ๊ท์ฌ์์']
# ๊ธ์ 1, ๋ถ์ 0
labels = np.array([1,1,1,1,1,0,0,0,0,0,0,... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.