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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13fe0385f21e9b197be0b5372f8b164fe95f2a6a | a184444cce71e15a7d6789bdf9850e85a6c0e655 | /setup.py | 63d6745bb4e773a32ee654a8cd808b03b8d569fb | [] | no_license | huiwenzhang/gym-rearrangement | 916a3b0a4d3841e3b692be8258bfe0a942b85f36 | f9fa5036966fc56ad0b8c96f92ad81adaa77c875 | refs/heads/master | 2020-05-22T04:49:45.513917 | 2019-07-25T14:57:58 | 2019-07-25T14:57:58 | 186,222,793 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from setuptools import setup
setup(name='gym_rearrangement',
version='0.0.1',
install_requires=['gym', 'mujoco_py', 'numpy', 'interval']
) | [
"huiwen3304@gmail.com"
] | huiwen3304@gmail.com |
3810c8f20221af86b7b4f992411c4e1d29134305 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /rbeuWab36FAiLj65m_22.py | be8d1be7052d2551f6d8fb8766a11133bad6bc76 | [] | 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 | 252 | py |
import re
def grouping(w):
group = {}
for word in w:
n = len(re.findall(r'[A-Z]',word))
if not n in group.keys():
group[n] = [word]
else:
group[n].append(word)
group[n].sort(key = lambda x: x.lower())
return group
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0daf4a67ce292dff1e3479d4e45974a795c2608a | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/routing_system/route_map/content/set_/dampening/__init__.py | 9d8c2e0fff06dac57bb887b46f6d6c9f4c318100 | [
"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 | 16,582 | 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 |
e06f22ec429ba76478781d135e74ba716c72403b | cc72013ede1b3bb02c32a3d0d199be4f7986c173 | /ch6/pizzacost2.py | 862eddfec218d0d2f770fe5b76b9d079962df5ba | [] | no_license | alextickle/zelle-exercises | b87d2a1476189954565f5cc97ee1448200eb00d4 | b784ff9ed9b2cb1c56e31c1c63f3e2b52fa37875 | refs/heads/master | 2021-01-19T00:33:19.132238 | 2017-09-14T23:35:35 | 2017-09-14T23:35:35 | 87,182,609 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # pizzacost2.py
import math
def pizzaarea(d):
return math.pi * (d/2.0)**2
def costperinch(area, p):
return area/p
def main():
price = input("Please enter the price of the pizza, in dollars: ")
diameter = input("Please enter the diameter, in inches: ")
print "The price per square inch is %0.2f." % (costperinc... | [
"alexander.tickle@gmail.com"
] | alexander.tickle@gmail.com |
3794e581b9ba71b6eb2afda6bdefddaf2ecc7217 | 072f8bffbfef6e149ad1934ea9183a79864c1acd | /venv/Lib/site-packages/ironic_inspector_client/test/test_shell.py | 8890ffd5519e9bc31021673fca72328a43fc0252 | [] | no_license | numvc/LuxoftBot | 77d9bf8f5f63aee63350f1ec82f4b940afe203d2 | 29d7ca8868ab86bc076509d103f7596039333417 | refs/heads/master | 2020-09-21T21:37:12.527546 | 2019-12-04T23:24:35 | 2019-12-04T23:24:35 | 224,939,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,708 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | [
"feys-00@mail.ru"
] | feys-00@mail.ru |
bc23a716f2508b19b5cce40ae33c07d4540e1ea0 | b76e39e535499704368eddc26237dc0016ef7d06 | /TCSPLC/readgeneral_v2.py | 121d8ae89a266ee83d5309e0e456fb504addffdc | [] | no_license | BUBAIMITRA2018/castersimulation | 0532e53df7d346c2824e577cc91cd0ac2ce4694c | eca5fddff5c0f33f785168f6b1e9f572c1622be0 | refs/heads/master | 2022-12-10T02:45:04.207196 | 2020-09-09T05:35:54 | 2020-09-09T05:35:54 | 260,110,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | from snap7.snap7types import areas, S7WLBit, S7WLWord, S7WLReal, S7WLDWord
from clientcomm_v1 import *
__all__ = ['ReadGeneral']
class ReadGeneral():
def __init__(self, client):
self.client = client
self.mylock = threading.Lock()
def readsymbolvalue(self, address, datatype, dataclass):
... | [
"subrata.mitra@sms-group.com"
] | subrata.mitra@sms-group.com |
7768a053d82a17eba8b241704beef65be6e66f04 | 3b63434159d3ffe2f8af0586137b155820f6fd0d | /3rdparty/openmm/docs-source/developerguide/conf.py | cc2cd2c3893c8b31bc0e5e30c88a29dfff4e26f5 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | samuelflores/MMB | 2e50204f5bc5a9bd80e56ec4cf8901e782d2f822 | 96da444290ab1af4385013c566079d381d8051b4 | refs/heads/master | 2023-06-25T23:24:17.861167 | 2023-06-21T09:10:20 | 2023-06-21T09:10:47 | 29,155,968 | 6 | 10 | NOASSERTION | 2022-01-03T10:34:12 | 2015-01-12T20:43:46 | C++ | UTF-8 | Python | false | false | 8,607 | py | # -*- coding: utf-8 -*-
#
# OpenMM Developer Guide documentation build configuration file, created by
# sphinx-quickstart on Fri Feb 7 12:42:06 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerate... | [
"samuelfloresc@gmail.com"
] | samuelfloresc@gmail.com |
216b5bec34fb1562d40bec74a6c32dfa1c426795 | dd31235062b1f66fcb7bf9e6d444242e0cdbc447 | /SVR/hebbe/run_sbatch.py | 16ecc4fbc2672aeb43471ebf9f056f0a37a6447f | [] | no_license | LiYanChalmers/AllstateClaimSeverity | a25b4ebaae767dc674d320b4b5c9de84a41dc539 | 819304e9dd44c1c12e6251ab84facc180fb484a7 | refs/heads/master | 2020-03-21T20:34:25.145931 | 2016-12-12T22:38:24 | 2016-12-12T22:38:24 | 139,015,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 12 03:00:49 2016
@author: ly
"""
from subprocess import call
n_rounds = 400
for i in range(n_rounds):
dst = 'svr'+str(i)+'.sh'
call(['sbatch', dst]) | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
66b7e804a7b61895eeb29a188e27522454be4b49 | f952cc77989cb330c82e792a935101b15a2121aa | /myenv/bin/easy_install-3.7 | d90c17ee6834a3a6ec1667559db67a7d053176a2 | [] | no_license | sanix-sandel/Api-Blog | 6e86061469f9357d43f166b989b91c7194130e4d | f2650da6cc1f2f4cb55b4cbe82bdf7c4d8eacccc | refs/heads/master | 2022-11-13T06:27:03.678517 | 2020-07-02T19:17:31 | 2020-07-02T19:17:31 | 254,863,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | 7 | #!/home/sanix/Documents/Api-Blog/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sanicksikani@gmail.com"
] | sanicksikani@gmail.com |
ffe970e02a5d956bd21d1ea08782d7edd77f9c66 | 8e92584fcbc7b5ed393ab778e45ca5aa67c781b8 | /generate_nullarbor_table.py | 6508e1db126553e0a78246f0adfacbff41facf05 | [
"MIT"
] | permissive | cdeitrick/gists | cd4261087deb7eadef19953efaa9be40630ba181 | ef0e1ee2b2b9de448e5aceef083b7027e4444317 | refs/heads/master | 2020-04-01T18:40:29.294645 | 2019-04-15T20:35:21 | 2019-04-15T20:35:21 | 153,507,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from pathlib import Path
from typing import Tuple
def get_sample_files(folder:Path)->Tuple[Path,Path]:
forward = [i for i in folder.iterdir() if 'R1' in i.name][0]
reverse = [i for i in folder.iterdir() if 'R2' in i.name][0]
return forward, reverse
if __name__ == "__main__":
folder = Path("/home/cld100/projects/... | [
"cld100@pitt.edu"
] | cld100@pitt.edu |
3dbf7e36dfa28c5e7bf2dd870a8172ad1b4c905e | 711c11d0111a40055ba110e7089a231c2ba42b8e | /toontown/coderedemption/TTCodeRedemptionMgrAI.py | b67fb0f0528c12a748432e77f42d02ffe11814b4 | [
"Apache-2.0"
] | permissive | DeadMemez/ProjectAltis-OldAcornAcres | 03c8dc912ecccae8456d89790f6b332547b75cc3 | e8e0087389933795973e566782affcaec65a2980 | refs/heads/master | 2021-01-19T13:59:07.234192 | 2017-08-20T14:41:45 | 2017-08-20T14:41:45 | 100,869,782 | 0 | 2 | null | 2017-08-20T15:14:35 | 2017-08-20T15:14:35 | null | UTF-8 | Python | false | false | 7,236 | py | '''
Created on Mar 21, 2017
@author: Drew
'''
import time
from datetime import datetime
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
from toontown.catalog import CatalogItem
from toontown.catalog.CatalogInvalidItem import CatalogInvalidItem
... | [
"tewtow5@gmail.com"
] | tewtow5@gmail.com |
d2fb3d6b96ef10ef390bf7df4126f75fab56c27e | f4afb7a16696803942a999b0687e08997defb114 | /build/rotors_simulator_demos/catkin_generated/generate_cached_setup.py | 5f65bc27f9863b023889c9944fb330469b9f3650 | [] | no_license | EmanueleAucone/ethz_ws | 8d4760109be3b1882d875aa28f7ecfe793b1b9e6 | 883efd2936e8f67e783790d7ac8f3a40e749d1b9 | refs/heads/main | 2023-01-22T04:03:45.341419 | 2020-11-25T10:30:49 | 2020-11-25T10:30:49 | 308,606,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"emanuele.aucone95@gmail.com"
] | emanuele.aucone95@gmail.com |
b09211d8fbcf1bd15aba309e8e9fd4059204322d | 057289814dd3222ba719b76b5ead124a12fa7f34 | /fpga/mqnic/AU200/fpga_10g/tb/fpga_core/test_fpga_core.py | 73e65ecb4c70ad14b0761c915c6612adbf086617 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | JimZGChow/corundum | 61547803eb996d9e9be701454715ab6e038d0420 | e3fb7d19b29df753c054eb56889fa8223f3292fb | refs/heads/master | 2023-08-20T13:27:10.793792 | 2020-12-16T22:58:19 | 2020-12-16T22:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,137 | py | """
Copyright 2020, The Regents of the University of California.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this ... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
9d83a56dc0bb592784356093f88c7ba0707cd132 | 80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019 | /data/CodeChef/NW1.py | 20f6b9480cad21ebfdc60ecc02a793fd70598c8b | [] | no_license | Ritvik19/CodeBook | ef7764d89b790e902ede5802f36d5ca910d8a50e | 2b4ed7938bbf156553d6ba5cba6216449528f0fc | refs/heads/master | 2021-07-04T08:25:52.478719 | 2020-08-08T06:54:14 | 2020-08-08T06:54:14 | 138,744,302 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | days = [ "mon", "tues", "wed", "thurs", "fri", "sat", "sun"]
t = int(input())
for i in range(t):
n, d = input().split()
nw = [4, 4, 4, 4, 4, 4, 4]
for i in range(int(n)-28):
nw[(days.index(d)+i)%7] += 1
print(*nw)
| [
"rastogiritvik99@gmail.com"
] | rastogiritvik99@gmail.com |
9b579abd1e2cbdcc1cbbbab8a3fc0bd6f4128332 | c7979f4f6435fe8d0d07fff7a430da55e3592aed | /ABC037/C.py | 6f2c9cd58755ef8a8c60865d3ae965e11ffd2c30 | [] | no_license | banboooo044/AtCoder | cee87d40bb98abafde19017f4f4e2f984544b9f8 | 7541d521cf0da848ecb5eb10ffea7d75a44cbbb6 | refs/heads/master | 2020-04-14T11:35:24.977457 | 2019-09-17T03:20:27 | 2019-09-17T03:20:27 | 163,818,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | N,K = map(int,input().split(" "))
a = list(map(int,input().split(" ")))
val = sum(a[:K])
sumv = val
for i in range(N-K):
val += (sumv - a[i] + a[K+i])
sumv = (sumv - a[i] + a[K+i])
print(val) | [
"touhoucrisis7@gmail.com"
] | touhoucrisis7@gmail.com |
f8944242142d963cb8c49dc5938d45255961c0bd | 7d6a8a62c117bbf15da9fa4240ce60cd98efb935 | /venv/lib/python3.7/hashlib.py | 82f21adb7d37206e8735570b4cdc701d425120da | [] | no_license | Sem31/creating_API | 040281c14a510072c2194e76864f84afa0a4dfb9 | d468b1d97d0bb272087beea06dc21dda02f7efc1 | refs/heads/master | 2022-10-14T13:33:39.548294 | 2019-09-24T06:20:26 | 2019-09-24T06:20:26 | 210,194,810 | 0 | 0 | null | 2022-09-16T18:10:40 | 2019-09-22T18:27:03 | Python | UTF-8 | Python | false | false | 44 | py | /home/sem/anaconda3/lib/python3.7/hashlib.py | [
"31kamleshprajapat@gmail.com"
] | 31kamleshprajapat@gmail.com |
660569dd91e5570134ba2800ce12ab9c558fef2d | 1d47d6865522051a248b14211ef630933097480f | /snaked/core/prefs.py | 93f2f5816c9222de820ccd7cd5f50692b706bb88 | [
"MIT"
] | permissive | basaundi/snaked | e85584899ec8c3a488abe152a50e80e6ad156008 | 52a9146eae4a91d3776311d9c632682d55c307b2 | refs/heads/master | 2021-01-18T09:36:38.852448 | 2012-05-23T18:20:07 | 2012-05-23T18:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,092 | py | import anydbm, whichdb
import os.path
import json
from itertools import chain
from inspect import cleandoc
import gtk, pango
from uxie.utils import make_missing_dirs, join_to_settings_dir
def init(injector):
injector.bind('window', 'editor-prefs', 'Prefs/_Editor settings#1', show_editor_preferences)
injector... | [
"bobrov@vl.ru"
] | bobrov@vl.ru |
9b4650366e2834047484b64cd106dbf11d26d0a2 | 4d42b57a4ab24b301c4503002ed1038ec12030ba | /satsearch/main.py | be03dccf9316dce990838bb91aa64ce34c60fa9d | [
"MIT"
] | permissive | cgore/sat-search | 53435155aee3f0f0dc687387aac68c1c01b48432 | 230af9b57ad06c1754de6ce97f6ae6893791d8b7 | refs/heads/master | 2020-03-17T15:38:15.935161 | 2018-03-19T03:24:52 | 2018-03-19T03:24:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | import os
import sys
import json
import logging
from .version import __version__
from satsearch import Search, Scenes
from satsearch.parser import SatUtilsParser
def main(review=False, printsearch=False, printmd=None, printcal=False,
load=None, save=None, append=False, download=None, **kwargs):
""" Main ... | [
"matt.a.hanson@gmail.com"
] | matt.a.hanson@gmail.com |
263c396672343716ef9ec10e457d8d309663d35f | 20bb1ae805cd796a7c377e55966633441d1d9fd5 | /URI Online Judge/Beginner/1006 Average 2/avg.py | 6de3475fc4d7cf70be9a81814caf67fa331224bd | [] | no_license | nathantheinventor/solved-problems | 1791c9588aefe2ebdc9293eb3d58317346d88e83 | c738e203fa77ae931b0ec613e5a00f9a8f7ff845 | refs/heads/master | 2022-10-27T08:58:23.860159 | 2022-10-13T20:18:43 | 2022-10-13T20:18:43 | 122,110,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | a, b, c = float(input()), float(input()), float(input())
ans = (2 * a + 3 * b + 5 * c) / 10
print("MEDIA = {:.1f}".format(ans)) | [
"nathantheinventor@gmail.com"
] | nathantheinventor@gmail.com |
d29e7eb7a15f9925854b04676ff98319ee3708a9 | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/transformers/src/transformers/models/layoutlmv2/modeling_layoutlmv2.py | be31af99d6dfd8c2920ee6fcae86f65a6003c213 | [
"Apache-2.0"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 61,571 | py | # coding=utf-8
# Copyright 2021 Microsoft Research The HuggingFace Inc. team. 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/LICEN... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
e84bacade8b32fd4e66d9b8f06b6668ab4d79cb4 | 13e91d812e7e0133f45273945ccca5523b1eefe5 | /task 3/spacex/migrations/0001_initial.py | fb8a9ca3ac5611143e838d992ff22a71d3619a63 | [] | no_license | Harshvartak/Unicode | 30d7298253f1feba4c47b89bdb8403e88b1707a1 | 2903d445fa5435b835f1543b8a67fb417749e1c3 | refs/heads/master | 2020-07-10T15:29:48.115326 | 2020-01-20T18:34:42 | 2020-01-20T18:34:42 | 204,299,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # Generated by Django 2.2.3 on 2019-08-22 11:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='spacex',
fields=[
('id', models.AutoField(a... | [
"vartak.harsh@gmail.com"
] | vartak.harsh@gmail.com |
d5c03328da088452bf7533b3175f69967f01d4a5 | 73297a722d6bfc1d495786f28e8e5f1593c3f68b | /shiyanlou_cs596-1805f3c438/mymodule/__init__.py | c04005530ec0789e04917f78b757e5df1619d95b | [
"Apache-2.0"
] | permissive | tongxindao/shiyanlou | 669d2d5641ccbf871d9190ff45b096d3cfd2990c | 1d002ea342deb69066c287db9935f77f49f0a09e | refs/heads/master | 2022-12-13T02:15:27.997568 | 2018-11-06T17:05:08 | 2018-11-06T17:05:08 | 96,234,067 | 0 | 0 | Apache-2.0 | 2022-12-08T00:46:05 | 2017-07-04T15:54:47 | HTML | UTF-8 | Python | false | false | 60 | py | from mymodule.bars import simplebar
__all__ = [simplebar, ]
| [
"tongxindao163@gmail.com"
] | tongxindao163@gmail.com |
939cb1a21804f194fc568a0cb554bb20519a3adf | 61e98b0302a43ab685be4c255b4ecf2979db55b6 | /sdks/python/.tox/lint/lib/python2.7/site-packages/pylint/test/extensions/test_check_mccabe.py | 9d995891fd7893e6a664334889981216ab537d0c | [
"BSD-3-Clause",
"EPL-2.0",
"CDDL-1.0",
"Apache-2.0",
"WTFPL",
"GPL-2.0-only",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | dzenyu/kafka | 5631c05a6de6e288baeb8955bdddf2ff60ec2a0e | d69a24bce8d108f43376271f89ecc3b81c7b6622 | refs/heads/master | 2021-07-16T12:31:09.623509 | 2021-06-28T18:22:16 | 2021-06-28T18:22:16 | 198,724,535 | 0 | 0 | Apache-2.0 | 2019-07-24T23:51:47 | 2019-07-24T23:51:46 | null | UTF-8 | Python | false | false | 2,593 | py | # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
"""Tests for the pylint checker in :mod:`pylint.extensions.check_mccabe
"""
import os.path as osp
import unittest
from pylint import checkers
from pylint.extensions.mcca... | [
"alex.barreto@databricks.com"
] | alex.barreto@databricks.com |
fc0535302e88c9a984876df5e89680510528d42a | 99799383b4e618061fe9261aa70cfe420e02a5aa | /gift/migrations/0001_initial.py | 90133582de0ce017c9343a8fc104570f32f46924 | [
"MIT"
] | permissive | openkamer/openkamer | f311a97d5c9e182eabd6602f42475e8e049912b0 | bb99963c00ad90299deccd44d977c27aee7eb16c | refs/heads/master | 2023-07-20T10:45:11.402427 | 2023-07-18T17:41:56 | 2023-07-18T17:41:56 | 57,322,204 | 62 | 7 | MIT | 2023-07-17T18:15:43 | 2016-04-28T17:43:23 | Python | UTF-8 | Python | false | false | 920 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-12-08 11:09
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('person', '0005_person_twitter_username... | [
"bart.romgens@gmail.com"
] | bart.romgens@gmail.com |
0ebde3b4ef5910eecb4d8d73ce4bd1ddff79edcc | 1d3ccfb4330475f12ecd1e6f1396bfa064a7019c | /output/drivers/pygame_emulator_factory.py | 93df4c306e8fbe432c0b52c18f57d48589f2a049 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ZeroPhone/ZPUI | c4efaa730315c8c220e7cc76ed8ab9ee7251020c | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | refs/heads/master | 2021-06-06T05:07:29.859464 | 2018-12-23T08:18:39 | 2018-12-23T08:24:43 | 81,014,670 | 56 | 27 | NOASSERTION | 2019-03-22T19:05:00 | 2017-02-05T19:01:36 | Python | UTF-8 | Python | false | false | 852 | py | """
factory for pygame emulator device
sets minimum attributes,
creates device
returns it to caller
"""
import logging
import luma.emulator.device
# ignore PIL debug messages
logging.getLogger("PIL").setLevel(logging.ERROR)
def get_pygame_emulator_device(width=128, height=64):
"""
Creates and returns pygame ... | [
"crimier@yandex.ru"
] | crimier@yandex.ru |
28e291884d43f0687260c85caa18a685f60752fc | 6426682dd4b4ee2a84b5bb6160ccdbd37016a0a9 | /setup.py | 0e00b2fc75b700a2fa3ec2fbb85829c3c9977d9c | [] | no_license | jidar/mush | e9645a830f31729ebaf0dbeede98cfa91dacc788 | 921e6094108a857683c65a86eb5557126dce90a8 | refs/heads/master | 2021-01-22T07:10:41.142290 | 2017-02-09T23:30:46 | 2017-02-09T23:30:46 | 37,157,916 | 1 | 1 | null | 2016-05-22T01:10:01 | 2015-06-09T20:55:50 | Python | UTF-8 | Python | false | false | 374 | py | from setuptools import setup, find_packages
# Normal setup stuff
setup(
name='mushtool',
description="multi-use-shell-helper...tool...ok, it's a backronymn :)",
version='1.0.0',
install_requires=['prettytable'],
packages=find_packages(),
zip_safe=False,
entry_points={
'console_scri... | [
"jose.idar@rackspace.com"
] | jose.idar@rackspace.com |
fa812feda839644d1aebcc30b544855cf7ade4d3 | 51885da54b320351bfea42c7dd629f41985454cd | /arc105/d.py | 8ceb3f17e61bbd4f457a29ee80337759fac4f0a7 | [] | no_license | mskt4440/AtCoder | dd266247205faeda468f911bff279a792eef5113 | f22702e3932e129a13f0683e91e5cc1a0a99c8d5 | refs/heads/master | 2021-12-15T10:21:31.036601 | 2021-12-14T08:19:11 | 2021-12-14T08:19:11 | 185,161,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | #
# arc105 d
#
import sys
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys.stdout.r... | [
"mskt4440@gmail.com"
] | mskt4440@gmail.com |
1fd3a4b362882d05a0c246a971eb7f028d9b02a1 | a4287764ce486a037df9acda33be98adf1df9d7e | /configs/centernet/centernet512_dla34.py | 5b45838471009de1d6bb28afcf3603253ca2117e | [] | no_license | YLyeliang/Autodetection | fab984c8b2425756c55e05c343335d4abe78e984 | b1d8e42adbed65ff73943b1bec41c4b67056bf61 | refs/heads/master | 2023-04-30T05:48:03.821507 | 2021-05-25T03:02:33 | 2021-05-25T03:02:33 | 284,577,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | py | _base_ = [
'../_base_/default_runtime.py', '../_base_/datasets/coco_detection.py'
]
# model settings
model = dict(
type='CornerNet',
backbone=dict(
type='HourglassNet',
downsample_times=5,
num_stacks=2,
stage_channels=[256, 256, 384, 384, 384, 512],
stage_blocks=[2, ... | [
"k87974@163.com"
] | k87974@163.com |
c99c7f1d22a1d7921303978cedf80e6513a7ba7a | 0bab87d3d3bc6f790f6d924330acf7ae1c6ebc30 | /kunyi/data_structure/hash_table/find-pivot-index.py | 8c646b01e3e5e3daa6254f67d970019683e23a41 | [] | no_license | KunyiLiu/algorithm_problems | 2032b9488cd2f20b23b47c456107475f609b178f | b27a1d4d65429101ef027f5e1e91ba2afd13bd32 | refs/heads/master | 2020-04-26T15:29:43.875656 | 2019-10-21T19:09:01 | 2019-10-21T19:09:01 | 173,648,702 | 0 | 0 | null | 2019-07-21T19:15:23 | 2019-03-04T00:48:02 | Python | UTF-8 | Python | false | false | 1,093 | py | ##### subarray ######
class Solution:
"""
@param nums: an array
@return: the "pivot" index of this array
"""
def pivotIndex(self, nums):
# get the whole sum, hash table sub_sum
# for loop: sum - sub_sum[3] = 11 == sub_sum[3-1]
# O(n)
sub_sum = {}
whol... | [
"noreply@github.com"
] | KunyiLiu.noreply@github.com |
c621b5137655d9d046d914dd195cfad427a2230e | 7dc495401ea92c4007e5ee6e19d05a0d2b75afab | /fae2/accounts/admin.py | b552485525776beed6112437ff6c7e24381601b9 | [
"Apache-2.0"
] | permissive | scasagrande/fae2 | ed3ff3bdf9b533cd23891fd78beed7f8ac8b3de1 | 78e2f883e39014c2addef28871cf9b53ad74f585 | refs/heads/master | 2021-01-14T10:16:44.603672 | 2016-03-12T00:57:09 | 2016-03-12T00:57:09 | 53,964,802 | 0 | 0 | null | 2016-03-15T17:29:17 | 2016-03-15T17:29:17 | null | UTF-8 | Python | false | false | 640 | py | """
Copyright 2014-2016 University of Illinois
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | [
"jongund@illinois.edu"
] | jongund@illinois.edu |
eddec9a08cbe885274908af925283f8669a3b71b | 5789f30bc942dde4235668c56408575b0bd25599 | /scripts/Temoins_ABL1_check.py | eed407f82246d4ec357a4edbf830df9a8549da04 | [] | no_license | bioinfo-chu-bdx/ngs-somatic | bc9dfa60872a644f18650593d144726d0ab22767 | 8cc6411e16784f2891b92241a97c71788408ffb5 | refs/heads/master | 2023-04-25T19:48:52.073672 | 2021-03-19T14:21:49 | 2021-03-19T14:21:49 | 374,675,975 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,928 | py | #!/usr/bin/env python
import sys
import os
import openpyxl
import subprocess
def representsInt(s): # pour eviter avertissement "nombre ecrit en texte" sous excel
try:
s = int(s)
return s
except ValueError:
return s
def cell_format(cell, font=None, alignment=None, color=None, format=None, border=None,exteri... | [
"thomas.bandres@chu-bordeaux.fr"
] | thomas.bandres@chu-bordeaux.fr |
686a8654b6bb525a32033706372872996ad70bdd | 71b2131be682e9184e68b5f42cdf2b15ef851c1f | /Python/htmlparse1.py | 62a4ae7d0f20d07e1072fbb943a4b9f343b360a0 | [
"MIT"
] | permissive | sockduct/Hackerrank | 23430fb5e7068e1689c502b2e803c7f630c17696 | 2a42f575d1f17181e6a9fa21bc4ca6aed187bd84 | refs/heads/master | 2023-08-08T22:33:58.202194 | 2023-07-28T00:48:43 | 2023-07-28T00:48:43 | 170,932,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | from html.parser import HTMLParser
example_html = '''
<html>
<head>
<title>HTML Parser - I</title>
</head>
<body data-modal-target class='1'>
<h1 class="header">HackerRank</h1>
<br id="main"/>
</body>
</html>
'''
class MyHTMLParser(HTMLParser):
def handle_starttag(self, tag, attrs):
... | [
"james.r.small@outlook.com"
] | james.r.small@outlook.com |
98b4d08c20d9ad3f7e190f774a239d9751f01d68 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4187/codes/1595_1446.py | c56a025fa554401d7e7a6116d57edf197d81cbcb | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # Teste seu codigo aos poucos.
# Nao teste tudo no final, pois fica mais dificil de identificar erros.
# Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo.
x = float(input("quantidade de litros"))
c = x*(1/3)
print(round(c, 3)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
a64c16d3ce4d5bb65727d8a6af67024e410df108 | ecaba173879f92f24e3c951866fda23c0a4fc426 | /perfkitbenchmarker/linux_packages/specjbb.py | b5a05208db413a147880facc09f87c8ae403818b | [
"Classpath-exception-2.0",
"BSD-3-Clause",
"AGPL-3.0-only",
"MIT",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | GoogleCloudPlatform/PerfKitBenchmarker | 2f4917fd796db4eb90822c557d8fa08a497fbd48 | d0699f32998898757b036704fba39e5471641f01 | refs/heads/master | 2023-09-02T08:14:54.110308 | 2023-09-01T20:28:01 | 2023-09-01T20:28:38 | 21,950,910 | 1,923 | 567 | Apache-2.0 | 2023-09-13T22:37:42 | 2014-07-17T17:23:26 | Python | UTF-8 | Python | false | false | 2,074 | py | # Copyright 2022 PerfKitBenchmarker 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 appli... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
00a6aff14bc99fe9474e83e5666735233ae29dfb | bd08d0532f20b7285b437c9bf620de1bbcd5b9ea | /aalh_iit_buildings_03/cleanup-originaldate-column.py | a748a4d463968eae9fc2d7c2fbbd1be361d099a4 | [
"Unlicense"
] | permissive | johndewees/iitmigration | a9e8a31ba6ceb541ce12c22fd612596cc243dbca | 4dadfbecda719d6e7d60af076a231aedec3c862f | refs/heads/main | 2023-03-14T17:06:58.777683 | 2021-03-27T20:44:58 | 2021-03-27T20:44:58 | 320,086,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | from openpyxl import load_workbook
import re
filename = 'aalh_iit_buildings_03.xlsx'
wb = load_workbook(filename)
ws = wb['Metadata Template']
minimumcol = 15
maximumcol = 15
minimumrow = 7
maximumrow = 503
iterationrow = 7
targetcol = 15
for row in ws.iter_rows(min_row=minimumrow, min_col=minimumcol... | [
"noreply@github.com"
] | johndewees.noreply@github.com |
ad856f2f30281ddb79e3bf362020b12dc87c6356 | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/urls_20190914174430.py | 36de7db40b005ead81a37d045a4710614dacf611 | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 1,307 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('clerk/', views.clerk, name='clerk'),
path('clerk/register2',views.register2, name='register2'),
path('clerk/register3',views.register3, name='register3'),
path('transactions/reg... | [
"uzairjoneswolf@gmail.com"
] | uzairjoneswolf@gmail.com |
27cee738666ad4dcd220cece1afed26b7244f2e2 | 09cc8367edb92c2f02a0cc1c95a8290ff0f52646 | /ipypublish/latex/ipypublish/contents_output.py | b77efa54be79edce10f9c64aabd7bb180ec95a7f | [
"BSD-3-Clause"
] | permissive | annefou/ipypublish | 7e80153316ab572a348afe26d309c2a9ee0fb52b | 917c7f2e84be006605de1cf8851ec13d1a163b24 | refs/heads/master | 2020-04-13T16:08:59.845707 | 2018-07-30T18:26:12 | 2018-07-30T18:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,808 | py | tplx_dict = {
'meta_docstring': 'with the main ipypublish content',
'document_packages': r"""
((*- if nb.metadata.ipub: -*))
((*- if nb.metadata.ipub.enable_breqn: -*))
\usepackage{breqn}
((*- endif *))
((*- endif *))
""",
'notebook_input': r"""
((*- if cell.metadata.ipub: -*))
((*- if cell.metadata.i... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
593a5277c49cb351e6a1a0693bfb2ffa039b7d97 | f063232b59eb7535e4212ec2b6b477c472fdb56e | /palindrome-partition.py | ebe2bd618596f01e488555e1e5c598ce1eba0483 | [] | no_license | xzjh/OJ_LeetCode | a01d43f6925bb8888bb79ca8a03a75dd8a6eac07 | fa2cfe2ec7774ab4a356520668d5dbee9d63077c | refs/heads/master | 2021-01-20T11:13:36.291125 | 2015-10-01T09:04:47 | 2015-10-01T09:04:47 | 25,239,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | class Solution:
# @param s, a string
# @return a list of lists of string
def partition(self, s):
def is_palindrome(s):
if len(s) < 2:
return True
l = 0
r = len(s) - 1
while r > l:
if s[r] != s[l]:
return False
r -= 1
l += 1
return True
def dfs(s, output, result):
if len... | [
"jsxzjh@gmail.com"
] | jsxzjh@gmail.com |
87b5f7cbad951f7e894f38e1220685c8c084589d | cca3f6a0accb18760bb134558fea98bb87a74806 | /aising2020/C/main.py | ee81245bfc173a7e47f1ff52ccae2ee72c34ddb4 | [] | no_license | Hashizu/atcoder_work | 5ec48cc1147535f8b9d0f0455fd110536d9f27ea | cda1d9ac0fcd56697ee5db93d26602dd8ccee9df | refs/heads/master | 2023-07-15T02:22:31.995451 | 2021-09-03T12:10:57 | 2021-09-03T12:10:57 | 382,987,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | #!/usr/bin/env python3
import sys
MAX = 10**2
def solve(N: int):
ans = [0]*N
for xi in range(1, MAX):
x2 = xi**2
for yi in range(1, MAX):
y2 = yi**2
for zi in range(1, MAX):
k = x2 + y2 + zi**2 + xi*yi + xi * zi + yi*zi
if k > N: break
... | [
"athenenoctus@gmail.com"
] | athenenoctus@gmail.com |
30b5b0bebe33ffc13ec4780f11739d0ea5554e96 | a3c86385115ea1831974624ac0d293f97ea40e48 | /129/sum_path.py | dd7c64306a1809d57371d983221340595a15ddbc | [] | no_license | yaolizheng/leetcode | 7adba764d2d913eb7b07bdb62e74460dea755e66 | bb2a657fa4e2894b3dcb1e3cc57a17b53787d0f6 | refs/heads/master | 2021-07-08T22:21:31.991385 | 2019-01-25T18:52:59 | 2019-01-25T18:52:59 | 128,838,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from tree import TreeNode
def helper(root, val):
if not root:
return 0
val = val * 10 + root.value
if root.left is None and root.right is None:
return val
return helper(root.left, val) + helper(root.right, val)
def sum_path(root):
return helper(root, 0)
if __name__ == '__main__... | [
"zhengyaoli1988@gmail.com"
] | zhengyaoli1988@gmail.com |
8e05700d0271f8372d294336dbb969c824e222aa | 488e0934b8cd97e202ae05368c855a57b299bfd1 | /Python/oop_extra_prac.py | 550260dc1f74eeee4619947ee51884506e4c159f | [] | no_license | didemertens/udemy_webdev | 4d96a5e7abeec1848ecedb97f0c440cd50eb27ac | 306215571be8e4dcb939e79b18ff6b302b75c952 | refs/heads/master | 2020-04-25T00:24:45.654136 | 2019-04-13T16:00:47 | 2019-04-13T16:00:47 | 172,377,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | class Dog:
# Class attribute
species = 'mammal'
# Initializer / Instance attributes
def __init__(self, name, age):
self.name = name
self.age = age
self.is_hungry = True
# Instance method
def description(self):
return self.name, self.age
# Instance method
... | [
"d.g.j.mertens@gmail.com"
] | d.g.j.mertens@gmail.com |
0880858575b45283344ed989aec4b157ea264f64 | 9a8fe99c7316dfce343be81d2c3c1a6c4f22572c | /set98.py | d9b34c9ec1fe53465331624d5c3eba8db807b6bf | [] | no_license | Srija-U/codekatabeginner | 5e4d540484529dbafada04d3eac96eab7f98a693 | 8d088e04de1d48d9befb975697e9121f06bb164a | refs/heads/master | 2020-04-30T00:58:51.445394 | 2019-07-01T15:43:05 | 2019-07-01T15:43:05 | 176,516,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | import math
l=[int(i) for i in input().split()]
print(int(((l[0]*l[1])/(math.gcd(l[0],l[1])))))
| [
"noreply@github.com"
] | Srija-U.noreply@github.com |
32a7c8b65a4dc828d2d1f6a85ccb90bfb8478f72 | f6b1db8c0503a292f6a1da31800269e0bb5f39bd | /web_flask/3-python_route.py | 91e5ddd0433581ce73379129958444807f16a642 | [] | no_license | arleybri18/AirBnB_clone_v2 | 142883fde2629c7eb75dddc8e4375a9ca1714555 | 111cabf15cadba09f018b2fe359eec68495035dc | refs/heads/master | 2020-07-07T03:44:31.456739 | 2019-09-09T15:16:55 | 2019-09-09T15:16:55 | 203,235,771 | 0 | 0 | null | 2019-08-19T19:21:54 | 2019-08-19T19:21:54 | null | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/python3
""" Import flask class """
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
""" Function to handle request """
return 'Hello HBNB!'
@app.route('/hbnb')
def hello_hbnb():
""" Function to handle request to path /hbnb """
return 'HBNB'
@app.route('/c/<text... | [
"arleybri18@gmail.com"
] | arleybri18@gmail.com |
7b45092077b7942834601a747d56cdfaf4309e09 | ee79e734486c0ca550bb8238ef54c78c7727384a | /Classifier/methClassifier.py | 400e6e2a59a3f992417353d314c2404717242201 | [] | no_license | neilrobertson/BICRCode | 212636e5395f0c0e4dfb3ac3c133f01eb07273ee | 7b3f4da9cdefd7680f07b707339aee59faece1d2 | refs/heads/master | 2020-03-30T16:07:22.637571 | 2018-10-03T10:12:57 | 2018-10-03T10:12:57 | 151,394,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,632 | py | #!/usr/bin/env python
import os
import sys
import csv
import getopt
import math
from genemapping import Ensembl
from bed.treatment import Bed, ExtendedBed
from csvfile.indexedcsv import IndexedCSV
from affy.NetAffxAnnotation import NetAffxAnnotation
try:
opts, args = getopt.getopt(sys.argv[1:], "i:o:a:ms", [])
ex... | [
"neil.alistair.robertson@hotmail.co.uk"
] | neil.alistair.robertson@hotmail.co.uk |
f0a6d0beca860b552d6f96fa60b61179b6c93ab1 | 16487965d6cce8f4034beca9b7021b1e8881a346 | /media/My_program/Engineering_Calculator/main.py | ea259d0bcc70256970705e2917d6e957d70706d7 | [] | no_license | bataysyk/site_resume | f20de5b00d8e37e7a5495da28c00fce976a07d42 | 2d00dce0a4618c1b36e99f8587f6d88eec0f5e45 | refs/heads/master | 2023-01-19T20:19:27.138973 | 2020-11-12T16:07:50 | 2020-11-12T16:07:50 | 285,685,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from gui import *
if __name__ == "__main__":
root = Tk()
root["bg"] = "#000"
root.geometry("480x550+100+100")
root.title("Engineering Calculator.")
root.resizable(False, False)
app = Main(root)
app.pack()
root.mainloop()
| [
"you@example.com"
] | you@example.com |
9ec080b479bbd6e52bf35e76780b6142c1d7497b | c63bf01b632c52dcfb19e78b47c36fb5efcab507 | /src/components/special_effects.py | 2abb26addac47772cecfe64447d520fb9b599d11 | [] | no_license | Grimmys/BubbleTanks2 | 3292173eb6abd66d40aa5306e65af381a47867bd | a015ece36b4bea80b92656ffc37e947b0919a536 | refs/heads/main | 2023-06-26T12:27:15.150425 | 2021-07-29T19:47:51 | 2021-07-29T19:47:51 | 400,833,006 | 1 | 0 | null | 2021-08-28T15:58:14 | 2021-08-28T15:58:13 | null | UTF-8 | Python | false | false | 19,550 | py | import pygame as pg
from random import uniform
from math import pi, sin, cos
from components.circle import make_circle
from components.utils import *
from data.constants import *
from data.bullets import BULLETS
from assets.paths import *
# load all images only one time, to increase game performance
images = {
"... | [
"ildar.239@mail.ru"
] | ildar.239@mail.ru |
205efccfb0036487f9f1a754630e7d68c6c5890a | 692b907d07eee8ce3ee32a1fda74b6d92fd6c548 | /tests/mock/server/v1_2_10.py | 324de6099e4309d6ca515aaeb22bc61c98bf0785 | [
"MIT"
] | permissive | AltusConsulting/dnacentercli | 04c9c7d00b25753a26c643994388dd4e23bf4c54 | 26ea46fdbd40fc30649ea1d8803158655aa545aa | refs/heads/master | 2022-12-16T04:50:30.076420 | 2020-07-17T22:12:39 | 2020-07-17T22:12:39 | 212,206,213 | 0 | 0 | MIT | 2022-12-08T06:39:49 | 2019-10-01T21:50:42 | Python | UTF-8 | Python | false | false | 237,343 | py | from http.server import BaseHTTPRequestHandler
import re
import json
import requests
class MockServerRequestHandler_v1_2_10(BaseHTTPRequestHandler):
AUTHENTICATION_ac8ae94c4e69a09d_PATTERN = re.compile(r"/dna/system/api/v1/auth/token")
TEMPLATE_PROGRAMMER_00aec9b1422ab27e_PATTERN = re.compile(r"/dna/intent/ap... | [
"jbogarin@altus.cr"
] | jbogarin@altus.cr |
971ab6c7828b1588b8bd01af5b3d5d1997e2cb0c | d6c84b8591c27195e9e7916d23b2d501c403b6ab | /scripts/plotMauveBetter.py | 62c8bc851a0582edd6d7adb34182a5689b6bc403 | [
"MIT"
] | permissive | marencc/riboSeed | fb850cc956cb7675fa9fd8934dfaecd19bd675ad | 8619f81978a4ff672c52491fccc19d1ef7d7eaaf | refs/heads/master | 2021-01-15T22:51:34.436704 | 2017-07-21T16:20:47 | 2017-07-21T16:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,386 | py | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
import numpy as np
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib.patches import FancyBboxPatch
from Bio import SeqIO
from Bio.SeqFeature import SeqFeature, FeatureLocation
import os
import sys
... | [
"nickp60@gmail.com"
] | nickp60@gmail.com |
905f02f515e5d02e19c57b45372edb6089c87b26 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day10/flask.py | 8558ed1fb5d09f9ecf932a6a6acab0c8bcb6d972 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 2,323 | py | #!/usr/bin/env python
# -*-coding:utf8-*-
# __author__ = "willian"
import select
import socket
class Flask(object):
def __init__(self, routers):
self.routers = routers
def process_data(self, client):
data = bytes()
while True: # 接收数据循环
try:
trunk =... | [
"284607860@qq.com"
] | 284607860@qq.com |
71a2388dcad6ad8e70d8fc2e86e246444b5ced55 | 8941c8ca788b1a45bfad23ca26ebfa357c13f09b | /Lyceum/Mars_Sql_Alchemy/zapros8.py | 85a4ed28493a5c99de6c54d2326d35b671007644 | [] | no_license | MysteriousSonOfGod/Python-2 | d1dfdf094f4a763758bfc7e1777c2cd6efbd0809 | 0d488906e4b5e3897da6b7cb077815740e82fd84 | refs/heads/master | 2023-02-05T13:38:25.673248 | 2020-12-22T13:54:02 | 2020-12-22T13:54:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from data.db_session import global_init, create_session
from data.users import User
from data.jobs import Jobs
from data.departments import Department
from sqlalchemy import func
db = input()
global_init(db)
session = create_session()
d = session.query(Department).filter(Department.id == 1).first()
members = list(ma... | [
"realandmir@gmail.com"
] | realandmir@gmail.com |
faf11b5f5dbf57001f44e9ad498633a1097fffc0 | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/Azure/azure-sdk-for-python/azure-mgmt-web/azure/mgmt/web/models/ip_security_restriction.py | 4749ab6f9dc423ffde15078edcc4ca12dc54be31 | [
"Apache-2.0"
] | permissive | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 1,587 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
a03d7ae8801659c506b674965a5faaa056589de2 | 1a94622c336c127a7d0657c010d5edf359d869ad | /src/python/counts.py | b4f1d1ba1607e80459e9d1d9e2170f1e8ab3cdf7 | [
"MIT"
] | permissive | dankolbman/BCIM | 088eab0aa1b2cf656be3f877020ae1cc97f85eee | e3108828ebdadd14968ad8ec093ab5fa6f8612d1 | refs/heads/master | 2021-01-22T06:48:41.995215 | 2015-05-28T23:06:42 | 2015-05-28T23:06:42 | 20,842,183 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import numpy as np
from .DataIO import read_parts
def counts(filen, params):
t = []
counts = [ [0], [0] ]
with open(filen, 'r') as f:
ctime = ''
for line in f:
l = line.split()
if l[0] != ctime and line[0] !='#':
ctime = l[0]
t.append( float(l[0]) )
counts[0].append(0)... | [
"dankolbman@gmail.com"
] | dankolbman@gmail.com |
a084bed1223eae867997fc027ac2332fc44f1eda | 9829fef375374a3887326fa3ac814914c2db63a5 | /models/networks.py | 1844580c86b10e708e53f71e5af84e82e952af1d | [] | no_license | fuchami/scene_detection_pytorch | bf78a19011176112e6a0dd4bc9462c9302d20008 | 2befe163a7d78674ebdb4ec7c22e6d50c609214f | refs/heads/master | 2022-04-07T02:06:16.345739 | 2020-02-20T06:54:43 | 2020-02-20T06:54:43 | 216,630,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | # coding:utf-8
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.models as models
from models.embedding import EmbeddingNet
# from torchsummary import summary
class SiameseNet(nn.Module):
def __init__(self, image=False, audio=False, text=False, time=False, merge='concat', outd... | [
"famichiki.yuuki@gmail.com"
] | famichiki.yuuki@gmail.com |
3ed77387ea1326b471aae183e9e5b935e36511e3 | a84e1ed67ef2592cf22f7d19cdddaf16700d6a8e | /graveyard/web/VNET/branches/vnf/vnf/inventory/__init__.py | 69262bdf621adb11656adb43e9aada29cd9cb8a9 | [] | no_license | danse-inelastic/inelastic-svn | dda998d7b9f1249149821d1bd3c23c71859971cc | 807f16aa9510d45a45360d8f59f34f75bb74414f | refs/heads/master | 2016-08-11T13:40:16.607694 | 2016-02-25T17:58:35 | 2016-02-25T17:58:35 | 52,544,337 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2007 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"yxqd@users.noreply.github.com"
] | yxqd@users.noreply.github.com |
2826700b29c69e5fbd17b9b903aede212d353033 | eba7c4b31b4c2bdebc972ea99ffb72fcddc7661c | /tests/unit/v1/test_async_client.py | 393bef51420d71b14b89dec8fb87a4bd4737eb44 | [
"Apache-2.0"
] | permissive | googleapis/python-firestore | eb6ab81daa6567c1416ac4bd389573b23ed29b4e | ccadec5eba81c20618a94c0e4a23f07dfb7c1ea7 | refs/heads/main | 2023-09-03T13:18:15.845520 | 2023-08-07T10:56:08 | 2023-08-07T10:56:08 | 226,992,533 | 203 | 72 | Apache-2.0 | 2023-09-14T19:33:50 | 2019-12-10T00:09:33 | Python | UTF-8 | Python | false | false | 18,500 | py | # Copyright 2020 Google LLC All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
08a772274dc0b7588e67be727f019c4b0572db37 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03146/s635038540.py | ffcd848d7b53f891a4f49a1d39ab65423805b702 | [] | 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 | 248 | py | s = int(input())
i = 1
a_set = {s}
a_prev = s
while True:
i += 1
if a_prev % 2 == 0:
a = a_prev // 2
else:
a = 3 * a_prev + 1
if a in a_set:
ans = i
break
a_set.add(a)
a_prev = a
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3e13a374dd395bb496b4156d4850e4514534773d | b56ca08eb67163d3ccb02ff0775f59a2d971d910 | /backend/settings/migrations/0006_replanishmentplan.py | 694fa4a6750e7c6b69b45668571ca37920eab849 | [] | no_license | globax89/dating-work | f23d07f98dcb5efad62a1c91cdb04b1a8ef021f7 | bb3d09c4e2f48ecd3d73e664ab8e3982fc97b534 | refs/heads/master | 2022-12-11T22:45:19.360096 | 2019-10-16T07:01:40 | 2019-10-16T07:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | # Generated by Django 2.2.4 on 2019-10-03 12:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('settings', '0005_auto_20190927_1426'),
]
operations = [
migrations.CreateModel(
name='ReplanishmentPlan',
fields=[
... | [
"zdimon77@gmail.com"
] | zdimon77@gmail.com |
60b986e42773c78b6920270767e1061ac93a28aa | 07b22625827cbcf86440115c438768b2d6c0e28b | /Chapter03/email_spam.py | 4f09789a55a58a9dcc929b14ab0d4625fb7ad410 | [
"MIT"
] | permissive | PacktPublishing/Python-Machine-Learning-By-Example | 8892b262c4010972f8a1dca6c793f9216fd575be | 6ee2be561e511bd0a1c0b3d481ad3950ea3f1815 | refs/heads/master | 2023-01-28T18:33:27.857048 | 2023-01-18T09:17:08 | 2023-01-18T09:17:08 | 92,726,056 | 125 | 94 | null | null | null | null | UTF-8 | Python | false | false | 10,530 | py | from sklearn.feature_extraction.text import CountVectorizer
from nltk.corpus import names
from nltk.stem import WordNetLemmatizer
import glob
import os
import numpy as np
file_path = 'enron1/ham/0007.1999-12-14.farmer.ham.txt'
with open(file_path, 'r') as infile:
ham_sample = infile.read()
print(ham_sample)
fil... | [
"prasadr@packtpub.com"
] | prasadr@packtpub.com |
3422a51a83dc62f586c3b410c2855a1a571865e7 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/mornington.py | a03be2e24b8431ad233a6f58e1d012ac0ef38b44 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 63 | py | ii = [('WilbRLW.py', 3), ('AubePRP2.py', 6), ('WadeJEB.py', 7)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
ea099bf25701e772952a954d522c781a406a6161 | d37277c61facf70dae7d74c82e5b14826d0f7029 | /task1_AdvancedModels/task1/advanced_model/migrations/0002_employee.py | d1a9d6aeb02a92f83b929f9432c778dd9e45dff9 | [] | no_license | ProgMmgGhoneim/Django-Tasks | d8d53acbec6e042261ee28ef0e5931fb40e93fd7 | 2288c1a9c3d1348897f5fb7be42bc807719aacb4 | refs/heads/master | 2020-03-30T08:41:10.720962 | 2018-10-01T23:27:59 | 2018-10-01T23:27:59 | 151,031,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # Generated by Django 2.0.7 on 2018-07-22 12:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('advanced_model', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Employee',
... | [
"progmmgghoneim@gmail.com"
] | progmmgghoneim@gmail.com |
c0638bf57936d184b304610bc685f889609e27a4 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /dbpedia/api/cultivated_variety_api.py | 12087e5025ead772d770219f659ece42c3db2db5 | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,095 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
f... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
60d41789f0b6c11b0a220611f79880209d81a28c | 39beeca8b6862adfb7f1a55b9f5308b20cd64395 | /reports_tex/models/__init__.py | 01321daae12a940393dd8ab5827c5ec186bb0474 | [] | no_license | Ibrahimmardini/texmar | 98c34469618b72648686c3252b6053f1dd07e9a0 | d31416df8feb87b93d757b1451be5f870d3ca867 | refs/heads/master | 2023-08-15T20:20:57.520164 | 2021-02-02T12:02:17 | 2021-02-02T12:02:17 | 255,095,450 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | # -*- coding: utf-8 -*-
from . import account_bank_statement
from . import account_payment | [
"ahmed.salama1679@gmail.com"
] | ahmed.salama1679@gmail.com |
d588d68aeb430577ac4064e7a02be539d12d03ea | a2c74fac6c18b998a41c47f9b6a87885e6166f4e | /controllers/ventas/PlanPagosController.py | c82cfd711718c20a6fabc814bd2090ddb6d005b5 | [] | no_license | alanclaros/salesfoodv20 | 1bd6c19a4315b425f61ab8340f81478411ec765d | 2a710142dc324d89843a4e16b40a34b1b50ff925 | refs/heads/master | 2023-08-29T04:26:25.886154 | 2021-10-05T15:11:51 | 2021-10-05T15:11:51 | 413,471,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,891 | py | from controllers.DefaultValues import DefaultValues
from django.conf import settings
from django.apps import apps
from inventarios.models import PlanPagos, PlanPagosDetalles, PlanPagosPagos
from permisos.models import UsersPerfiles
from cajas.models import Cajas, CajasIngresos
from configuraciones.models import Puntos... | [
"alan_claros13@hotmail.com"
] | alan_claros13@hotmail.com |
d597659a2088ec54a3ecda166c0eeca50dc549df | 42ed6d4e67172522f79ab6f3c8cb650f4234be90 | /zjgg_project/zjgg_main_thread.py | 7dcb5cb76edbc368a89f0eb5e87fd46f4fbfc044 | [] | no_license | Hylan129/Self-Learning | 81a5143015850c33d5226c4da43d110150661dc7 | 06ccdc202f62629395900658909e1363a32632fd | refs/heads/master | 2020-06-12T19:45:50.479677 | 2020-05-26T15:38:26 | 2020-05-26T15:38:26 | 194,405,633 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,134 | py | #!/usr/bin/env python
# coding=utf-8
import time,threading
import encodings.idna
import navigation_model_thread,sixmic_control,human_sensor
#position_list = ['11','12','13','14','15','16','17','18']
#position_list = ['4','56','2']
position_list = ['890','test','2','zd','zd2','sys']
"""
"LOCALIZATION_FAILED":"定... | [
"jyzyg129@163.com"
] | jyzyg129@163.com |
a4c4a72eccc102761fa23a6b05f2d184b7d7e6bd | a7058080e41af37eb77c146fc09a5e4db57f7ec6 | /Solved/03955/03955.py | d1035b0c9ea3a2a50d96aab7660b7c8fea1e9062 | [] | no_license | Jinmin-Goh/BOJ_PS | bec0922c01fbf6e440589cc684d0cd736e775066 | 09a285bd1369bd0d73f86386b343d271dc08a67d | refs/heads/master | 2022-09-24T02:24:50.823834 | 2022-09-21T02:16:22 | 2022-09-21T02:16:22 | 223,768,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | # Problem No.: 3955
# Solver: Jinmin Goh
# Date: 20200611
# URL: https://www.acmicpc.net/problem/3955
import sys
import math
# expanded euclidean algorithm
def expGCD(a: int, b: int) -> (int,):
if b == 0:
return (a, 1, 0)
temp = expGCD(b, a % b)
#print(a, b, temp)
x, y = temp[1], ... | [
"eric970901@gmail.com"
] | eric970901@gmail.com |
424f1ec6d08235b7758bbc7d66f4b0c9f69eac2f | 7da5ac719e4c9ca9cb3735d0ade3106183d96ffe | /Projeto/IoTcity_services/server/server/mainserver/forms.py | 1f441056b6edc243773d544b0f8e9e7759395fbb | [] | no_license | shanexia1818/IoTCity | a405c0921b417e5bb0a61966f9ca03a1f87147a7 | 3fe14b6918275684291f969fd6c3f69a7ee14a4c | refs/heads/master | 2020-08-07T21:08:38.811470 | 2018-09-10T11:10:56 | 2018-09-10T11:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,687 | py | from django.forms.extras.widgets import SelectDateWidget
import datetime
from django import forms
from models import Alarm
class ChoiceFieldNoValidation(forms.MultipleChoiceField):
def validate(self, value):
pass
class ActuatorForm(forms.Form):
def __init__(self, *args, **kwargs):
try:
senders = kwargs.po... | [
"diogodanielsoaresferreira@ua.pt"
] | diogodanielsoaresferreira@ua.pt |
82a5cad0e8235b738e0ae0c95dbc93eac5cf2b79 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_nodes_sync.py | 68731aff1186d3aae6599641746cbe2858fc12db | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,822 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
cbcf2654adc49ace4c41edf30bb75817dccb968a | e13bccceb4c2fefbf8000f9b34195ab434cf1656 | /build/rosmsg/catkin_generated/generate_cached_setup.py | ad97943d630b6f759446bf143ff4e688185e10d0 | [] | no_license | QuiN-cy/vacuum-en-band | ab59b718f289ad4e8a1f29e96724250b00bd894d | 48c296199b4a6ade40e084c9980d53ba1611a344 | refs/heads/master | 2023-06-01T12:13:38.664849 | 2021-06-11T15:42:42 | 2021-06-11T15:42:42 | 376,071,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"quincy1234321@hotmail.nl"
] | quincy1234321@hotmail.nl |
826c8d7292e9111db0edd35e191bb14eaab8fb39 | 87bfb9fb074b9b0dcbfeb09a6ab4db3aef813114 | /docs/source/conf.py | eef313a8f41fed1affcc7955073a69c9b5f200b8 | [
"MIT"
] | permissive | djones1040/panstamps | 931005219954690f8e7b9bf3c17bc191a22bfac6 | b9e67b4dc168846ddb36e4b5f143c136660a0535 | refs/heads/master | 2020-12-09T13:26:43.259596 | 2020-01-22T19:19:26 | 2020-01-22T19:19:26 | 233,318,818 | 0 | 0 | MIT | 2020-01-12T00:52:14 | 2020-01-12T00:52:13 | null | UTF-8 | Python | false | false | 14,345 | py | # -*- coding: utf-8 -*-
#
# panstamps documentation build configuration file, created by
# sphinx-quickstart on Mon Feb 29 15:00:29 2016.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | [
"nothingbutdave@gmail.com"
] | nothingbutdave@gmail.com |
79fa9bcaa7dd16ce5f84b87faa09734698925d58 | 9f53fdce8e10d648776719eec72d99b140343fff | /Section_1_Creating_GUIs_in_Python_with_Tkinter/Video2_5_GUI_tkinter_another_button.py | 1ffbd17db377c4915a825bef6d07e4d6f7ec376a | [] | no_license | syurskyi/Hands-On_Python_3_x_GUI_Programming | 9691d3ccbb3c3d3ffdec2184789cb62753e840d1 | c5144a5b90a036992e56de51c3d61d8c8f3cd2c1 | refs/heads/master | 2020-12-05T05:38:14.441849 | 2020-01-06T04:13:52 | 2020-01-06T04:13:52 | 232,022,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | import tkinter as tk # alias as tk
from tkinter import ttk # themed tk
gui = tk.Tk() # create class instance
gui.geometry('400x200+300+300') # specify window width, height and position
gui.title('GUI written in tkinter') # give the GUI a window title
gui.iconbitmap('py... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
57c54c1e797cfc9801c23e3f63fd88a11b98ede7 | 39bef50ed12468e57ad94a8e2551da6c7c45c8ed | /networkx/__init__.py | 4fad5ac5632b45550b2f08346b5bbf9e1fce22e0 | [] | no_license | biancini/Rorschach-Test-Platform | b1a5dfdbe5a15a68ce4dcf66887346fbf2e94169 | 7ae68e1054637046278325eaa419b23f09b420d3 | refs/heads/master | 2020-05-17T11:00:13.889678 | 2012-04-11T16:31:19 | 2012-04-11T16:31:19 | 3,789,381 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | """
NetworkX
========
NetworkX (NX) is a Python package for the creation, manipulation, and
study of the structure, dynamics, and functions of complex networks.
https://networkx.lanl.gov/
Using
-----
Just write in Python
>>> import networkx as nx
>>> G=nx.Graph()
>>> G.add_edge(1,2)
... | [
"andrea.biancini@gmail.com"
] | andrea.biancini@gmail.com |
1e33f94cd5e9126f1ef3513c2f0ad2a8358e625a | 0db67bff1f2dcdadecf635ae535add91cb54c4f3 | /PythonBasis/week01/task09.py | 85b6f0425d5ec02973a882d9ad950f451b84752b | [] | no_license | pavelbrnv/Coursera | 713fdb79dbf6fbde405fc991bd67db0cab30da00 | cc568f79229147866ff1df8539cf8ea66dc9ccca | refs/heads/master | 2023-03-07T23:21:09.685318 | 2021-02-22T15:08:27 | 2021-02-22T15:08:27 | 336,600,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | n = int(input())
v1 = n // 100
v2 = (n // 10) % 10
v3 = n % 10
print(v1 + v2 + v3)
| [
"pbaranov@stc-spb.ru"
] | pbaranov@stc-spb.ru |
8872d3ac88ca46efd100864bc26ca5e79959ead5 | e425b9d1e837e39a2e73b7e8d18452deb903ce10 | /01_Fundamentals/Loops/EnumeratedList.py | 1f98d917e4633b3577d2d3aea2c60155da529f6e | [] | no_license | sokuro/PythonBFH | 1491a398c5a9930c454e96ad8834dea066bf82bf | 595ea77712c2397d9d92b1e21841e917d0a0c24d | refs/heads/master | 2021-09-15T21:47:13.613134 | 2018-06-11T13:39:58 | 2018-06-11T13:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | class EnumeratedList:
values = [1, 2, 3, 4, 5, 6]
# inputValue = input("Enter a value: ")
found_index = None
for index, value in enumerate(values):
if value == 5:
found_index = index
print('The value is in the Array')
break
print('The value is not ... | [
"ugorcak@gmx.ch"
] | ugorcak@gmx.ch |
354e712282e44463be244eef28d59e535d34af94 | e01c5d1ee81cc4104b248be375e93ae29c4b3572 | /Sequence4/DS/Week4/phone-store-1.py | 0ee5e7dbd3e5090265334e2f9ae5dc50d307def2 | [] | no_license | lalitzz/DS | 7de54281a34814601f26ee826c722d123ee8bd99 | 66272a7a8c20c0c3e85aa5f9d19f29e0a3e11db1 | refs/heads/master | 2021-10-14T09:47:08.754570 | 2018-12-29T11:00:25 | 2018-12-29T11:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | # python3
class Node:
def __init__(self, key, value):
self.key = key
self.value = value
self.next = None
self.prev = None
class HashNode:
def __init__(self):
self.head = None
self.tail = None
class HashMap:
def __init__(self, size=16):
self.size = size
self.hash = [HashNode()] *... | [
"lalit.slg007@gmail.com"
] | lalit.slg007@gmail.com |
d731f8d490604c02544f4dd74a06e34559eac977 | 5effafa500f8cf8fb262eb4cfec90dcec3190c52 | /WritingTestFunctions/setup.py | 008dd143db31f0476f56ea6e02b223293f4dd9a0 | [] | no_license | Twishar/PythonQA | d5eaf733caac42dc99492a4c92745f478850f5fb | cd25792934c5ad32d89ec08d3b6cdec714327a40 | refs/heads/master | 2020-03-23T18:30:07.460168 | 2018-11-06T19:41:20 | 2018-11-06T19:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py |
from setuptools import setup
setup(
name='tasks',
py_modules=['tasks']
)
| [
"stognienkovv@gmail.com"
] | stognienkovv@gmail.com |
4f636103e9a8e14b99aa497586bf76c87afb7f13 | 1af6958461af6257264ace2a6d13385b47104606 | /pyscf/cc/ccsd_rdm.py | a7194be9df572fba1adb568c5b1e75e070f45624 | [
"Apache-2.0"
] | permissive | tmash/pyscf | ac9a86c078170044b52be71e5d00fa5f680f55af | 89c101c1c963e8247808635c61cd165bffab42d6 | refs/heads/master | 2020-12-04T04:41:23.456744 | 2020-01-02T18:05:16 | 2020-01-02T18:05:16 | 231,615,690 | 1 | 0 | Apache-2.0 | 2020-01-03T15:33:33 | 2020-01-03T15:33:32 | null | UTF-8 | Python | false | false | 20,803 | py | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
4217f994c31b7b12ff06588625da2958e56654c7 | 4e62fcb385d9e8a6af0c6c9ec315f803d6ea190b | /testsuite/modulegraph-dir/pkg_a/__init__.py | 92d13dbaf80c3574728b3e5bc549e10a72675df8 | [
"MIT"
] | permissive | ronaldoussoren/modulegraph2 | 8d8a18b472574acc158c5c293ae4ed7b88f06ba9 | 227954f5037e291edc91e666f21bda44fd66fcb2 | refs/heads/master | 2023-09-01T05:16:44.873049 | 2023-04-09T10:28:19 | 2023-04-09T10:28:19 | 231,953,118 | 12 | 7 | MIT | 2023-04-09T10:29:06 | 2020-01-05T17:36:35 | C | UTF-8 | Python | false | false | 20 | py | from pkg_b import *
| [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
df877881b18b0ebf0f407c54d2688ad61f7978b0 | babc3e26d66a8084c9f84a0431338bafabae6ffd | /TaeJuneJoung/PGM/LV2/lv2.스킬트리.py | 1a01d1426dfd38787b4de87af83c634a98096016 | [] | no_license | hoteldelluna/AlgoStudy | 5c23a1bfb07dbfbabc5bedd541d61784d58d3edc | 49ec098cecf2b775727d5648161f773e5488089b | refs/heads/dev | 2022-10-09T14:29:00.580834 | 2020-01-25T14:40:55 | 2020-01-25T14:40:55 | 201,632,052 | 5 | 0 | null | 2020-01-25T14:40:57 | 2019-08-10T13:11:41 | Python | UTF-8 | Python | false | false | 947 | py | def solution(skill, skill_trees):
answer = 0
for skill_tree in skill_trees:
stack = []
for tree in skill_tree:
if tree in set(skill):
idx = skill.index(tree)
if idx not in set(stack):
stack.append(idx)
isPlus = True... | [
"jtj0525@gmail.com"
] | jtj0525@gmail.com |
a26ac469f2e087d4ceb54f3a8c82131f7bb8ad8c | da1a2d3b92e3cf8720712c82089cbc665087e355 | /test/functional/tool_wallet.py | 7baf87adb65072eef96f33c23d9a49b7e188dea5 | [
"MIT"
] | permissive | minblock/cureoptedcoin | a60e961cef536704023ff962a09c56fe25eee66e | 72909b7b1df261f840d24ecd8aa083fc9b7b7b49 | refs/heads/master | 2021-05-20T23:55:51.062222 | 2020-04-23T06:55:30 | 2020-04-23T06:55:30 | 252,460,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test bitcoin-wallet."""
import subprocess
import textwrap
from test_framework.test_framework import Bitcoin... | [
"POSTMASTER@provgn.com"
] | POSTMASTER@provgn.com |
8e5a14bb33047f99ee33e2a1ebb2ca9463f8df99 | 9a9d6052f8cf91dd57be9a9b6564290b0fac9e52 | /Algorithm/BOJ/2578_빙고.py | ec26caeef3194e552ab218e9a14f36e953527244 | [] | no_license | Gyeong-Yeon/TIL | 596ec6a093eec34a17dad68bcd91fa9dd08690e8 | eb1f43ee0525da93233b70716cd35caab8d82bda | refs/heads/master | 2023-03-31T19:56:30.979062 | 2021-03-28T13:09:27 | 2021-03-28T13:09:27 | 280,307,737 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | def game():
cnt = 0
for i in range(5):
for j in range(5):
for t in range(5):
for b in range(5):
if call[i][j] == bingo[t][b]:
bingo[t][b] = 0
cnt += 1
if count() >= 3:
return cnt
... | [
"lky4156@naver.com"
] | lky4156@naver.com |
835e103ddf2573f4b477b0c6d50490420a6cebea | dadef11410227993876f4019868587cde2716b53 | /crawling5.py | eb2f819303851f9827b640d666b088daa78bd483 | [] | no_license | ss820938ss/pythonProject_pandas | 6185f3e3af5402202ee80c8d941d6c5afd8c1298 | aa076f4c74ad11ceac90f0f85be8ea24a53f71f0 | refs/heads/master | 2023-07-07T05:11:06.565796 | 2021-07-30T07:51:58 | 2021-07-30T07:51:58 | 389,851,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | import requests
from bs4 import BeautifulSoup
import time
from urllib.request import urlretrieve
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
test = input('검색할 이름을 입력하세요 : ')
path = 'C:/chromedriver_win32/chromedriver'
driver = webdriver.Chrome(path)
driver.get('https://unsplash.com... | [
"ss820938ss@gmail.com"
] | ss820938ss@gmail.com |
306fd591700f130d7b6b11935a1b7b57f6924123 | 3e14ded9e00d482a5bbfee039b9d740bd0c44f08 | /venv/bin/easy_install-3.9 | 4eaef0f12e22d9b328f5fc4ebda52ecf93b0b2de | [
"MIT"
] | permissive | Rubyroy12/neighbourinfo | 7ebeb6d3ae12711c755baa0ea7adce8b58a28b55 | 619e6e7b20c7f06310d55c3922d9372c0e2455f7 | refs/heads/master | 2023-06-25T12:41:30.685708 | 2021-07-26T23:16:59 | 2021-07-26T23:16:59 | 388,932,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | 9 | #!/home/ibrahim/Documents/python/django-projects/mysource/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com |
f7fdabe13a91972e0ba4375d7e08dc1b9be65333 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/system_body/java/body/father_temp.py | a6eb560f9ba8cf2cebc95d13377303821828e3ce | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace CafeT.Azures
{
public static class AzureTranslator
{
/// Demonstrates getting an access token and using the token to translate.
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
af63fff10857b872190df0cceb777ccee45b30e3 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_applicable_instances_response.py | 93201cb81aa67c68a0fbe46d6680ca8486bcf088 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,337 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowApplicableInstancesResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
672aa5c05e36cc0c720a7e2b514fab148751f8c8 | 633eadb2ff150378fa44c14c010d5b657643ac55 | /utils/utils_glue.py | bdb509d788b0c523437391140e1e2eb8098de6cc | [
"MIT"
] | permissive | ankitvad/control-sum-cmdp | 4666e6bd0965de35fea6291ca8d01ff8bd860a96 | 5181e8e0c9bf6bef48f66457e06d3f398f4a428a | refs/heads/main | 2023-07-06T12:32:44.251961 | 2021-08-10T02:21:03 | 2021-08-10T02:21:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,262 | py | # This code is adapted from https://github.com/huggingface/pytorch-transformers
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may... | [
"kenchanhp@gmail.com"
] | kenchanhp@gmail.com |
4db1ec489f51cd3f3ea0f26805ae9a0150a40fc4 | e61e664d95af3b93150cda5b92695be6551d2a7c | /vega/core/pipeline/pipe_step.py | bd7fcb560b23ca6db99fa3f70a0385e5a571bdda | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/vega | 44aaf8bb28b45f707ed6cd4e871ba70fc0c04846 | 12e37a1991eb6771a2999fe0a46ddda920c47948 | refs/heads/master | 2023-09-01T20:16:28.746745 | 2023-02-15T09:36:59 | 2023-02-15T09:36:59 | 273,667,533 | 850 | 184 | NOASSERTION | 2023-02-15T09:37:01 | 2020-06-20T08:20:06 | Python | UTF-8 | Python | false | false | 2,329 | py | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. 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... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
5eb0ccd5fb5a39b7282d2f257ac24c4ca8adeb32 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/earthborn.py | 6aeec1e8898441c7bd480aeb68160d440923dec9 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 81 | py | ii = [('RennJIT.py', 1), ('BailJD1.py', 1), ('NortSTC.py', 1), ('WordWYR.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
c3ec46d15bd7840421b521daa2c180b6373eb77e | 05bdaafff13ec39f6120f4da5e09ffbb58505e85 | /main.py | 1ecb20e40e62d361d41c2d9c9262a50f8b2c8028 | [] | no_license | mcfletch/pyconca-tictactoe | 852c9d42283cfda3eaf25b0445584a35d854f241 | c14dc7cbff5c87f78edeff551d7a47ff9738b7dc | refs/heads/master | 2020-04-05T21:43:16.050727 | 2018-12-24T02:17:32 | 2018-12-24T02:17:32 | 157,230,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,402 | py | #! /usr/bin/env python
import gym
import numpy as np
import bisect
import random
import os
import argparse
from collections import deque
from keras.models import Model
from keras.layers import (
Dense,
Input,
Dropout,
Activation,
)
def predict(model, state):
"""Predict a single state's future rewa... | [
"mcfletch@vrplumber.com"
] | mcfletch@vrplumber.com |
5e7a0532d00a852b74bc781bd6336d237945b66a | 4fc1c45a7e570cc1204d4b5f21150f0771d34ea5 | /quan_table/insightface_v2/model/mobilefacenetv2/mobilefacenetv2.py | 2b3de2bf5bc86f118bd6e4f60d1870d2ff1e9795 | [] | no_license | CN1Ember/feathernet_mine | 77d29576e4ecb4f85626b94e6ff5884216af3098 | ac0351f59a1ed30abecd1088a46c7af01afa29d5 | refs/heads/main | 2023-05-28T17:19:06.624448 | 2021-06-17T04:39:09 | 2021-06-17T04:39:09 | 374,603,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,110 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/5/27 16:00
# @Author : xiezheng
# @Site :
# @File : insightface_mobilefacenet.py
import math
from torch import nn
import torch
import torch.nn.functional as F
from torch.autograd import Variable
from torchsummary import summary
from... | [
"chenguo@gpu017.scut-smil.cn"
] | chenguo@gpu017.scut-smil.cn |
05001ef31b85c2352c6b5b6b7b127b21b7df3d46 | 09a8d6e247e4575f09d68b0dae3cf0b94255717b | /Regex/Repetitions/MatchingEndingItems.py | fce374c054c87cd44c246818f371662993e789ec | [] | no_license | ShihabAhmed09/HackerRank-Solutions-Python | 5e648eac81b70b502d77aafb7cf676a72f2583c3 | dc1e25d726ed13e12da7f767e4b4acbadef2bd2a | refs/heads/main | 2023-02-15T05:51:47.753723 | 2021-01-05T18:02:14 | 2021-01-05T18:02:14 | 300,979,036 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | import re
Regex_Pattern = r'^[a-zA-Z]*s$'
print(str(bool(re.search(Regex_Pattern, input()))).lower())
| [
"49798311+ShihabAhmed09@users.noreply.github.com"
] | 49798311+ShihabAhmed09@users.noreply.github.com |
bf5f46916c88603682168907b9949179d8eb2f9a | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KoubeiTradeVoucherItemTemplete.py | 2b672dc3dade37e8142b0e107898540b8ee370a2 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 8,921 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AvailableTimeInfo import AvailableTimeInfo
from alipay.aop.api.domain.KoubeiItemDescription import KoubeiItemDescription
from alipay.aop.api.domain.UnAvailableTimeInfo import UnAvai... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
c67e116ea2e57bfe9d9df24ae5c86d8b5df7ba4b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02933/s590503236.py | f98f40ee1248ff65fae4dca98193224b194ce15f | [] | 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 | 61 | py | if(int(input())>3199):
print(input())
else:
print("red")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
607f59255088fbb01756be227cbf38e9c8055832 | 6630694f401f6f475dd81bb01ff9368db844ccff | /mmpretrain/configs/mae/mae_hivit_base_p16_8xb512_amp_coslr_400e_in1k.py | 6ffcf6d13c049fa8802766d74f7e5c9a803b706e | [
"Apache-2.0"
] | permissive | open-mmlab/mmpretrain | 98a4d6b3bb747efc3d50decebf84fc3ffa41076a | d2ccc44a2c8e5d49bb26187aff42f2abc90aee28 | refs/heads/main | 2023-08-30T19:11:24.771498 | 2023-08-23T02:45:18 | 2023-08-23T02:45:18 | 278,415,292 | 652 | 186 | Apache-2.0 | 2023-09-08T08:01:40 | 2020-07-09T16:25:04 | Python | UTF-8 | Python | false | false | 1,905 | py | # Copyright (c) OpenMMLab. All rights reserved.
# This is a BETA new format config file, and the usage may change recently.
from mmengine.config import read_base
with read_base():
from .._base_.models.mae_hivit_base_p16 import *
from .._base_.datasets.imagenet_bs512_mae import *
from .._base_.default_runti... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
2a5fb71b730f244801d591ed74c96803ab7eccd9 | e0d16d2dd3bf8490d660fc5ba5ce789bd4f20384 | /temperature_converter/simple.py | d2123c90ef5fccb38def5255d1816123bd236af0 | [] | no_license | tt-n-walters/python-course | 9be8344f4e40f6abe2f8c6355117e8ea1891c7cb | 255dbcddf1f4bd258474df04f3a3a9209c74c01f | refs/heads/master | 2023-06-04T05:57:08.215733 | 2021-06-25T15:25:24 | 2021-06-25T15:25:24 | 380,279,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | print("Enter a temperature in Celcius:")
celcius = input("> ")
celcius = int(celcius)
fahrenheit = celcius * (9 / 5) + 32
print(celcius, "ºC is", fahrenheit, "ºF")
| [
"nico.walters@techtalents.es"
] | nico.walters@techtalents.es |
335e23f9cf6ef4b4e6c4541c52d496119e4469ce | 673bf701a310f92f2de80b687600cfbe24612259 | /misoclib/com/liteeth/core/tty/__init__.py | 7ead3ef4cd4d95f47e91d7b8077d5db3d7bc5da7 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mogorman/misoc | d78340a9bf67feaede20e8cac473bcfddbd186a3 | 4ec49e2aadcff0c3ca34ebd0d35013d88f4d3e1f | refs/heads/master | 2021-01-18T05:38:39.670977 | 2015-03-10T05:37:52 | 2015-03-10T05:37:52 | 30,672,191 | 1 | 0 | null | 2015-02-11T22:05:05 | 2015-02-11T22:05:05 | null | UTF-8 | Python | false | false | 2,774 | py | from misoclib.com.liteeth.common import *
from misoclib.com.liteeth.generic import *
class LiteEthTTYTX(Module):
def __init__(self, ip_address, udp_port, fifo_depth=None):
self.sink = sink = Sink(eth_tty_description(8))
self.source = source = Source(eth_udp_user_description(8))
###
if fifo_depth is None:
s... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
3588536acd5fbd95b034ed81cc6e33948259afd1 | 584db1be8b6bdedaa56d186692ad72da5ee07164 | /patron/compute/monitors/__init__.py | 8b0ba4a7aee30af3c51cafc15049eb4abc5292bf | [
"Apache-2.0"
] | permissive | casbin/openstack-patron | 66006f57725cf1c3d735cd5529d3459fd77384c8 | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | refs/heads/master | 2023-05-31T05:23:37.721768 | 2015-12-31T12:18:17 | 2015-12-31T12:18:17 | 382,054,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,280 | py | # Copyright 2013 Intel 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 requir... | [
"hsluoyz@qq.com"
] | hsluoyz@qq.com |
b9097aa2f33448f7f6f4090ed4a250cea3af2622 | c66955c6fc178955c2024e0318ec7a91a8386c2d | /programQuick/chapterFifteen/demo6.py | 6f2c5581195897bb831999363b61ad251def1e72 | [] | no_license | duheng18/python-study | a98642d6ee1b0043837c3e7c5b91bf1e28dfa588 | 13c0571ac5d1690bb9e615340482bdb2134ecf0e | refs/heads/master | 2022-11-30T17:36:57.060130 | 2019-11-18T07:31:40 | 2019-11-18T07:31:40 | 147,268,053 | 1 | 0 | null | 2022-11-22T03:36:51 | 2018-09-04T00:49:42 | Python | UTF-8 | Python | false | false | 1,691 | py | import datetime, time
'''
strftime 指令 含义
%Y 带世纪的年份,例如'2014'
%y 不带世纪的年份,'00'至'99'(1970 至 2069)
%m 数字表示的月份, '01'至'12'
%B 完整的月份,例如'November'
%b 简写的月份,例如'Nov'
%d 一月中的第几天,'01'至'3... | [
"emaildh@163.com"
] | emaildh@163.com |
64a82974142c99441155b1b98d16bb62a2af6d43 | 114c1f7ceff04e00591f46eeb0a2eb387ac65710 | /g4g/DS/Linked_Lists/Singly_linked_lists/8_search_element_in_Linked_list.py | 7ead23a5a18b1cc959c0f2875e812d2a5015ab62 | [] | no_license | sauravgsh16/DataStructures_Algorithms | 0783a5e6dd00817ac0b6f2b856ad8d82339a767d | d3133f026f972f28bd038fcee9f65784f5d3ea8b | refs/heads/master | 2020-04-23T03:00:29.713877 | 2019-11-25T10:52:33 | 2019-11-25T10:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | ''' Search an element in a Linked List (Iterative and Recursive) '''
class Node(object):
def __init__(self, val):
self.val = val
self.next = None
class LinkedList(object):
def __init__(self):
self.head = None
self.tail = None
self.size = 0
def push(self, val):
... | [
"sauravgsh16@gmail.com"
] | sauravgsh16@gmail.com |
59c6012139aa84f9d4db9417bcfe97c7e3d33d64 | 710e96fb56f48a91dbd5e34c3e7b07fc24b4d95a | /WebContent/WEB-INF/program/unit/unit_resource.py | b1c62755682edb820081d76745f39050c457dea3 | [] | no_license | yxxcrtd/jitar2.0 | bf6ade6aaf0bdb0ff9a94b011041e0faa13789f1 | 9215d51cf536518ab4c8fea069ef5ae1ff6466c8 | refs/heads/master | 2020-05-31T15:28:38.821345 | 2019-06-05T08:01:39 | 2019-06-05T08:01:39 | 190,351,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,589 | py | from unit_page import *
from base_action import SubjectMixiner
from resource_query import ResourceQuery
class unit_resource(UnitBasePage, SubjectMixiner):
def __init__(self):
UnitBasePage.__init__(self)
def execute(self):
self.unit = self.getUnit()
if self.u... | [
"yxxcrtd@gmail.com"
] | yxxcrtd@gmail.com |
5baa906189990436b9e8671cccd9250487f5b8f8 | f138be1e8e382c404cfe1ff6a35e90fc77fa9bff | /ABC/python/113/A.py | ba8ef3118eabaf3859c5aa4bcbdfe03dec29ba4c | [] | no_license | jackfrostwillbeking/atcoder_sample | 8547d59ca2f66b34905f292191df6c474010fded | d5b2fe8f628fd56eaf23ee7e92938e8ac1b1fef9 | refs/heads/master | 2023-07-25T19:16:14.340414 | 2021-08-26T15:26:08 | 2021-08-26T15:26:08 | 273,857,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import sys
import math
X,Y = map(int,input().split())
if not (1 <= X <= 100 and 1 <= Y <= 100): sys.exit()
if not (Y % 2 == 0): sys.exit()
print(X+math.floor(Y/2))
| [
"jackfrostwillbeking@gmail.com"
] | jackfrostwillbeking@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.