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
da80f0b87d1b6ddfae31337351eca0f9c9c2d213
1e50f1643376039ca988d909e79f528e01fa1371
/leetcode/editor/cn/1137.第-n-个泰波那契数.py
a777ba13f377e8e91336da1a7cfec2c1d4ed6ce6
[]
no_license
mahatmaWM/leetcode
482a249e56e2121f4896e34c58d9fa44d6d0034b
4f41dad6a38d3cac1c32bc1f157e20aa14eab9be
refs/heads/master
2022-09-04T17:53:54.832210
2022-08-06T07:29:46
2022-08-06T07:29:46
224,415,259
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
# # @lc app=leetcode.cn id=1137 lang=python3 # # [1137] 第 N 个泰波那契数 # # https://leetcode-cn.com/problems/n-th-tribonacci-number/description/ # # algorithms # Easy (52.68%) # Likes: 39 # Dislikes: 0 # Total Accepted: 15.2K # Total Submissions: 28.8K # Testcase Example: '4' # # 泰波那契序列 Tn 定义如下: # # T0 = 0, T1 = 1, T...
[ "chrismwang@tencent.com" ]
chrismwang@tencent.com
42ae24c5e27301e7c1af69885ee6fb72db779a79
89f1c415c744170e268f33c403214ecc197d8375
/Chapter11/CNN_TDC_STRATEGY.py
9f94cc245da8e221c319e855b5f9d7efe17e4548
[ "MIT" ]
permissive
deadphilosopher/Artificial-Intelligence-By-Example
620abc5e05689b537249ee84c3b0b6370ebd3ec1
fbb5fb56c816d5cefefe2cdad0affcd7b3321081
refs/heads/master
2022-11-02T08:21:14.271368
2022-06-13T15:07:54
2022-06-13T15:07:54
193,830,647
0
0
MIT
2019-06-26T04:41:05
2019-06-26T04:41:05
null
UTF-8
Python
false
false
2,418
py
#Copyright 2018 Denis Rothman MIT License. See LICENSE. from keras.preprocessing.image import load_img from keras.preprocessing.image import img_to_array import matplotlib.pyplot as plt import keras import numpy as np from keras.preprocessing.image import ImageDataGenerator from keras.models import model_from_json from...
[ "prasadr@packtpub.com" ]
prasadr@packtpub.com
307573fb0a6e3d11504211c85b45339e89642a92
066ee4df594a5dc90335d271b9d5a1b1e2a4d34c
/y/google-cloud-sdk/platform/google_appengine/google/appengine/api/app_identity/app_identity.py
3e92c752ad31a363b9b061b8fc72201afdbe81a1
[ "Apache-2.0", "LGPL-2.1-or-later", "BSD-3-Clause", "MIT", "GPL-2.0-or-later", "MPL-1.1", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ychen820/microblog
a2d82447525325ec58285c2e5db58b79cceaca1b
d379afa2db3582d5c3be652165f0e9e2e0c154c6
refs/heads/master
2021-01-20T05:58:48.424357
2015-04-28T22:03:09
2015-04-28T22:03:09
32,948,331
0
2
BSD-3-Clause
2020-07-25T05:04:35
2015-03-26T19:45:07
Python
UTF-8
Python
false
false
17,342
py
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "ychen207@binghamton.edu" ]
ychen207@binghamton.edu
eb2bd8abbc7f912dfa40133c45c02f66526b71a2
994c1b533fe64265715231d6458a9f316ce82cbf
/users/forms.py
34d47092d282474eb8c2de50d4c673242cd68db6
[]
no_license
zerobubus/hw05_final
07320a8fcc1119f28cf3bd5e3285d381470f7f47
ed89bdd5fa088c71bdb127a780fc2eac3bcda47c
refs/heads/master
2022-11-24T23:09:29.335507
2020-07-29T16:49:10
2020-07-29T16:49:10
282,685,996
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import get_user_model User = get_user_model() # создадим собственный класс для формы регистрации # сделаем его наследником предустановленного класса UserCreationForm class CreationForm(UserCreationForm): class Meta(UserCreationForm...
[ "spb.etr@yandex.ru" ]
spb.etr@yandex.ru
bb9ea5783768afdeea7cd6a5508620b2d7af587d
dca653bb975528bd1b8ab2547f6ef4f48e15b7b7
/tags/wxPy-2.9.2.2/wxPython/cfg_version.py
ebe70ff24da82d693db9366fc5c3806f62d8c9c3
[]
no_license
czxxjtu/wxPython-1
51ca2f62ff6c01722e50742d1813f4be378c0517
6a7473c258ea4105f44e31d140ea5c0ae6bc46d8
refs/heads/master
2021-01-15T12:09:59.328778
2015-01-05T20:55:10
2015-01-05T20:55:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
# wxPython version numbers used in build VER_MAJOR = 2 # The first three must match wxWidgets VER_MINOR = 9 VER_RELEASE = 2 VER_SUBREL = 2 # wxPython release num for x.y.z release of wxWidgets VER_FLAGS = "" # release flags, such as prerelease or RC num, etc.
[ "RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775" ]
RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
0eba2abfbc6b06e28fc7e2042a9f4aeaf406d89e
91f0ada382a529bb928d3eb122fd65900d0702f5
/03.Third_week_exersice/03Football_cards.py
309caf08577fd76f7ab6edecfc7eb6f6c5f285a2
[]
no_license
skafev/Python_fundamentals
aa62208ae0fdfc9ed6a9dcc0905c4a8e5aefd2be
959f9bca948cc901ac3f10694f540d1d533585b5
refs/heads/main
2023-06-09T19:33:21.370459
2021-07-01T16:29:30
2021-07-01T16:29:30
382,092,763
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
text = input().split(" ") team_A = 11 team_B = 11 less_then_seven = False for text_one in set(text): if "A" in text_one: team_A -= 1 if "B" in text_one: team_B -= 1 if team_A < 7: less_then_seven = True break if team_B < 7: less_then_seven = True break pri...
[ "s.kafev@gmail.com" ]
s.kafev@gmail.com
4e0dfcb09266aa4877dbacacaf17ce807eaf09d9
289818a63e8213606fd437c0ab29f0dba6750357
/search/urls.py
147bf92651599f02ee1e91018879a0b443ddbdda
[]
no_license
dzynin/django-mtr
642b9e4b7f568d89059cedcf3dd8a4061a94ba83
15c9ba13b2f91cacd76b9c04da1c6ee4cdfe9aeb
refs/heads/master
2021-05-29T07:29:42.303984
2015-09-06T13:54:41
2015-09-06T13:54:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
from django.conf.urls import patterns, include, url urlpatterns = patterns('', #url(r'^$', include('haystack.urls')), #url(r'^advanced/$', 'search.views.index'), #url(r'^autocomplete/$', 'search.autocomplete.autocomplete'), url(r'^$', 'search.views.results', name='search'), )
[ "derek@disflux.com" ]
derek@disflux.com
2358df38a615ac477179f9b02b827d6a91d6cba4
45b2504be9214e1b4e25aa41b9043ffa808215fa
/blog/blog/urls.py
4325a6851fc976aebac6b58c669670f3676f81fe
[]
no_license
jai-singhal/pyclub
b53a9d2ac1f5f2e8332d242c681700e67af20afc
a7d1eca85e225d9d852c126bfe58da233ba1e363
refs/heads/master
2021-07-09T09:18:49.653342
2017-10-06T17:27:42
2017-10-06T17:27:42
106,029,120
0
0
null
null
null
null
UTF-8
Python
false
false
840
py
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
[ "=" ]
=
4d0dc9942b5c1604a67ef352576e93d48ef56627
22319631f2027c3bfa724c283bf7762992336b5b
/wsgi.py
b4080b9296ea0f3fa14dfb463816e253ff9b7db3
[]
no_license
rodolfolotte/webgis
eefcb7912ae40d3ae353c154ad08d5fe67f75e15
e27d1d14f08262ea37de6079abc3e7dd12c74bb6
refs/heads/master
2022-12-03T02:04:51.409836
2020-08-19T17:50:24
2020-08-19T17:50:24
288,797,772
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
""" WSGI config for webgis 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
[ "rodolfo.lotte@gmail.com" ]
rodolfo.lotte@gmail.com
ee126199d7cd2366e17798ecf8a532b5b6192bb8
1b83e95009f7e883c9da4ec50aa19f9902ccc9ab
/python/dazl/cli/sandbox.py
0b46a18f9aa01aa4038d3d51f011f02545301360
[ "Apache-2.0" ]
permissive
ballon3/dazl-client
327ec6d2a3acbd3748fd03766d93acb2699a7805
baa9eb975cac26a000fed076f3d1c23569068f5b
refs/heads/master
2021-02-27T06:29:45.046458
2020-02-11T22:03:17
2020-02-11T22:03:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 from asyncio import get_event_loop from argparse import ArgumentParser from .. import sandbox from ..util.dar import DamlcPackageError from ._base import CliCommand class SandboxCo...
[ "davin.tanabe@digitalasset.com" ]
davin.tanabe@digitalasset.com
64ccbfab35ff229a7e7c14c48ddff5226a783295
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/bpycollada/import_collada.py
1bb5360d157006d7285bc4d686a2d5d8c0514da8
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,215
py
import os import math from tempfile import NamedTemporaryFile from contextlib import contextmanager import bpy from bpy.ops import BPyOpsSubModOp from bpy_extras.image_utils import load_image from mathutils import Matrix, Vector from collada import Collada from collada.camera import PerspectiveCamera, OrthographicCam...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
8b61f441f981bd4050e418c7940bb4153e5c05ff
1f813c3cd6a9d293acfbc81f198c64f816a9a95d
/devel/.private/pkg_ros_iot_bridge/lib/python2.7/dist-packages/pkg_ros_iot_bridge/msg/_msgRosIotActionResult.py
f1b43f02572883f9b6a4854923a6d4c6c3dfc006
[]
no_license
koteshrv/Vargi_Bots_1418
5ada79746785a9f9cc0e1d686a1dd2702c9e0f0f
6bcf843c7150c93caee2b596e0864749c51b6155
refs/heads/main
2023-01-06T03:42:53.555701
2020-11-08T17:36:59
2020-11-08T17:36:59
302,916,294
0
0
null
null
null
null
UTF-8
Python
false
false
13,021
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from pkg_ros_iot_bridge/msgRosIotActionResult.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import actionlib_msgs.msg import genpy import pkg_ros_iot_bridg...
[ "kkotesh100@gmail.com" ]
kkotesh100@gmail.com
31c31dd70f600c146fbe4ca24233f4d5559ece54
ffbce1ba05737fc8403e91a565bd64b72f7c3ab9
/.history/vicky/views_20210512104007.py
995108e3690c927c1bc9fc0cdfe4fa44e10b7300
[]
no_license
Crixtiancub/Feedback_Vicky2.0
ffa1f9af8e81abb55540dbb10e3324866d23be2d
bc97740eba40c1edcacc309b8206f94fdee62cb6
refs/heads/master
2023-04-12T05:39:21.113454
2021-05-19T21:54:28
2021-05-19T21:54:28
368,983,043
0
0
null
null
null
null
UTF-8
Python
false
false
4,274
py
from django.shortcuts import render, redirect import os from modelo_IA.archivos_Python.pipeline import Pipeline from vicky import templates from .models import * from django.template.response import TemplateResponse model = Pipeline() # Create your views here. def home(request): num_visits = request.session.get...
[ "Cristian.cubillos@interedes.com.co" ]
Cristian.cubillos@interedes.com.co
7143e094b37877a6546a35c155447afe22e4ac98
ee50c362e090b03276fcda9509632df3f2088292
/easyirctests/test_connection.py
a65059446ddf4999e1c824fc2cc01ccbbe7605c8
[ "BSD-2-Clause-Views" ]
permissive
youknowone/easyirc
a208eacaeefb29eca8e83e9691f9ec7f5f136454
294630acb4ec931b0deff342faf1904120200650
refs/heads/master
2021-01-01T15:44:31.606522
2017-12-29T14:59:58
2017-12-29T14:59:58
9,749,876
3
1
null
null
null
null
UTF-8
Python
false
false
4,284
py
# -*- coding: utf-8 -*- import time import pytest from easyirc.connection import DispatchConnection, CallbackConnection, EventHookConnection from easyirc.command import protocol from easyirc.event import EventManager from easyirc.const import * from easyirc import util from mocksocket import MockSocket from test_sock...
[ "jeong@youknowone.org" ]
jeong@youknowone.org
33b7fafb2c489da4c821b0f2d6c5bd2e4a4f86d4
28e6ef83fa54713c70a3f0115d390ddfa91d00a1
/mmfeat/miner/freesound.py
e3ac502f630f5960767499f4963d54bf5d05871e
[ "BSD-3-Clause" ]
permissive
braingineer/mmfeat
11029fb680460a242ce71807a2d22b31adda6c35
fdb59c4f60f5d910722ab72b469b7e317046e2d2
refs/heads/master
2020-12-27T15:15:05.376984
2016-08-15T15:23:27
2016-08-15T15:23:27
66,103,807
1
0
null
2016-08-19T18:27:23
2016-08-19T18:27:21
Python
UTF-8
Python
false
false
3,181
py
''' FreeSound API miner ''' import os import requests import shutil import time import urllib from .base import BaseMiner class FreeSoundResult(object): def __init__(self, result, api_key): self.ID = result['id'] self.format_url = 'http://www.freesound.org/apiv2/sounds/{}/?token={}' self....
[ "douwe.kiela@cl.cam.ac.uk" ]
douwe.kiela@cl.cam.ac.uk
0840c9f42cbaad01720dc6260a1278c6e4d69ae1
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/nilearn/2017/8/conf.py
518d965d16cfb73d3a77f680140733488b524154
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
10,384
py
# -*- coding: utf-8 -*- # # nistats documentation build configuration file, created by # sphinx-quickstart on Fri Jan 8 09:13:42 2010. # # 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...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
ea2f67c98f18b60516584d6e34cfb6f1083eee5d
19a39bc9ec8c300f60e17a61cd4c6ec911842573
/count_coins_and_bills.py
3796cf18cdb818d95dbb4a39ea83cd1e52307568
[]
no_license
caiosuzuki/conta-moedas-e-notas
07f6d89b2be43eaa2508087de550e985e7822d86
3843d6c9e70c51b57f5666dfb307dc6601a70b5c
refs/heads/master
2020-08-27T15:01:27.400193
2019-11-09T01:26:05
2019-11-09T01:26:05
217,414,629
0
0
null
null
null
null
UTF-8
Python
false
false
3,968
py
import cv2 as cv import numpy as np MATH_MORPH_KERNEL_SIZE = 3 BLUR_KERNEL_SIZE = 11 DEFAULT_INPUT_IMG_PATH = './notas-e-moedas-exemplo/0c2n-3.jpg' def calculate_area_of_rect(rect): return rect[1][0] * rect[1][1] def calculate_rect_ratio(rect): width = rect[1][0] height = rect[1][1] if width > height...
[ "cpolidoro@gmail.com" ]
cpolidoro@gmail.com
8cd818444c27b4f781c9fcb4f938acbe5fb6b0aa
97c5af22476b1efb5cacb91686a2e704f4249437
/Topic/recieve_logs_topic.py
49400f7daf78dbb7fb53cfd52637148c4d8c228d
[]
no_license
mcclayac/RabbitMQ_python
5b3a6f8604123901eb63878c5a37e216d7e6c60b
f2a743b1187499bc79a6b0045b508f92c457243b
refs/heads/master
2021-01-11T02:50:12.542891
2016-10-15T13:00:57
2016-10-15T13:00:57
70,917,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
__author__ = 'anthonymcclay' __project__ = 'RabbitMQ' __date__ = '10/15/16' __revision__ = '$' __revision_date__ = '$' #!/usr/bin/env python import pika import sys connection = pika.BlockingConnection(pika.ConnectionParameters( host='localhost')) channel = connection.channel() channel.exchange_declare(excha...
[ "anthony.mcclay@nielsen.com" ]
anthony.mcclay@nielsen.com
f72b7398402b93378a713bc1e809276281b5c7d3
b631ee6ebf35f9c09bb0f288e3be3eb3c9667504
/src/pedidos/apps.py
3389169b43c7bc12b0841a54c0a5a8f7f9b27068
[]
no_license
loristron/SimuladorDePedidos
39145602f87944217e55747c8acd64f98144627a
81c99c6c1ff9bc3a1df258176fcf54d722ffff50
refs/heads/master
2023-03-16T13:56:44.823338
2021-03-07T21:10:09
2021-03-07T21:10:09
345,128,838
1
0
null
null
null
null
UTF-8
Python
false
false
145
py
from django.apps import AppConfig class PedidosConfig(AppConfig): name = 'pedidos' def ready(self): import pedidos.signals
[ "loremmiranda@gmail.com" ]
loremmiranda@gmail.com
ab1cd998831a83dfff01278c0eb0f2a0825fb1cb
14a2a310a0b1022e12858bed60e5b0235c6d2cc4
/demo/oop/concatenate.py
773ba6984fec5ddadfaed4071e134e85916f38b6
[]
no_license
srikanthpragada/python_18_jan_2021
0f32b8ea05b5a7ebfc747c86161543711225bfa5
5197176e39b4f72a486d8bbe4f108ca783dd51ea
refs/heads/master
2023-03-13T14:25:20.046629
2021-03-01T14:18:14
2021-03-01T14:18:14
331,602,844
1
0
null
null
null
null
UTF-8
Python
false
false
161
py
def cat(st1, st2): if isinstance(st2,str): return st1 + st2 else: return st1 + str(st2) print(cat("abc", "xyz")) print(cat("abc", 10))
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
2db24c5c9eb872707f7249df40008aa9ac62b2b6
e5d130e183b5dea1b7aad23a047c703fa0d2b3bf
/lightbus_vendored/aioredis/abc.py
5c1bed890fcba6bae0602711e53bf29b7d888982
[ "Apache-2.0" ]
permissive
adamcharnock/lightbus
4a86428b8203bfe98f77a32375ac961ef398ce16
cf892779a9a9a8f69c789ffa83c24acfb7f9a336
refs/heads/master
2023-08-26T04:19:39.395735
2023-08-23T11:07:44
2023-08-23T11:07:44
94,617,214
193
22
Apache-2.0
2023-08-10T21:21:51
2017-06-17T10:39:23
Python
UTF-8
Python
false
false
3,746
py
"""The module provides connection and connections pool interfaces. These are intended to be used for implementing custom connection managers. """ import abc __all__ = [ 'AbcConnection', 'AbcPool', 'AbcChannel', ] class AbcConnection(abc.ABC): """Abstract connection interface.""" @abc.abstractm...
[ "adam@adamcharnock.com" ]
adam@adamcharnock.com
8be463a908ee6202a38eb8019c0ad190142115ff
369bcbbdecf3163889358bd340c33b8ec53e52ae
/modules/python/models/train_distributed.py
3000907a58e6413bcedee108cebf8f3ddab85339
[ "MIT" ]
permissive
tianap/pepper
47e9b22d834623a12cae243c85b88cf4b9b5d61e
1c6d2cdad11489ca873b97566c15f70213ad2824
refs/heads/master
2021-02-13T20:28:39.506309
2020-02-24T07:42:57
2020-02-24T07:42:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,609
py
import sys import torch import os from tqdm import tqdm import torch.distributed as dist import torch.nn as nn import torch.multiprocessing as mp # Custom generator for our dataset from torch.utils.data import DataLoader from modules.python.models.dataloader import SequenceDataset from modules.python.TextColor import T...
[ "kishwar.shafin@gmail.com" ]
kishwar.shafin@gmail.com
e76ce8a2f472e3b1aa0ab5ddaf95486255b9ea6d
89841a2b522b7b1ab7965560f62b4b401b2d0a4d
/gravity physics/gravity simulation.py
105b78ee8eb670cd9124ca39718d4366f32d17f6
[]
no_license
sidd5sci/python-basics
14d621d52d3219943e2b0136c610dd769cc36a29
fea620141292cb6beee782cddb5a7d4eeb067e9a
refs/heads/master
2021-01-20T00:22:29.496330
2017-04-22T17:03:00
2017-04-22T17:03:00
89,123,461
0
0
null
null
null
null
UTF-8
Python
false
false
3,715
py
import random import math from Tkinter import * import time PI = 3.14159 g = 9.87 #m/s2 ctime = 0.0 class vector: def __init__(self): self.direction = 0.0 self.magnitude = 0.0 def asign(self,drct,mag,angletype): if(angletype == 'R'): self.direction = ...
[ "sidd5sci@gmail.com" ]
sidd5sci@gmail.com
672679732bb66c1cc979a3bd42a4d337e9a4a74a
a468016412cc2b435501de4d3ee5c4d2be5fa19f
/coupons/views.py
0a2a87766e6bc3b9517fd0e671635ecb1af860dd
[]
no_license
sadakchap/first-full-ecom
ef022596c05c29cae0842bae34d201cd4af08b93
881b39ec60dff3aef04105e3d08e3be3e16f6420
refs/heads/master
2020-08-07T05:02:48.165873
2019-10-07T06:16:16
2019-10-07T06:16:16
213,308,847
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
from django.shortcuts import render,redirect from django.views.decorators.http import require_POST from .models import Coupon from .forms import CouponApplyForm from django.utils import timezone # Create your views here. @require_POST def coupon_apply(request): now = timezone.now() form = CouponApplyForm(reque...
[ "aliceprerna@gmail.com" ]
aliceprerna@gmail.com
edf83dfc1a34a52b0dad096cd5fce0d75c5833f2
bdbc9cd8c64cfa92efffb9e138cb282d36f69b0a
/addons/l10n_es/__init__.py
0b88f1197678f324892be98c7b9ee10e967ff509
[]
no_license
clebaresu/impra-adns
d330cece1b710643625627bfd7ed66bac7d233ef
8b9889d86c6ea194cfb7b0db8bdc3284635cc081
refs/heads/master
2020-05-02T16:51:41.798969
2019-03-27T22:03:32
2019-03-27T22:03:32
178,080,681
0
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # ...
[ "clebaresu@gmail.com" ]
clebaresu@gmail.com
e3e0d9bd3cd8849299f63bd764b5c02cc8ae2980
699d28b11032360f076ba21aa95ca00111bc97f6
/calcs.py
5586e5c93d8a887634807c41463a40fe5a90d03c
[]
no_license
kthyng/ai65
840058f8ee717df01a02d8177a94ce5a4cc714db
5bebedd0033c64cb5a5cf64c8e2f9d9d827bfdd7
refs/heads/master
2020-04-05T12:35:02.211547
2019-07-28T15:47:54
2019-07-28T15:47:54
95,168,859
0
0
null
null
null
null
UTF-8
Python
false
false
13,033
py
''' Calculations. ''' import xarray as xr import pandas as pd import matplotlib.pyplot as plt import cartopy.crs as ccrs import cmocean.cm as cmo from cartopy.mpl.gridliner import LONGITUDE_FORMATTER, LATITUDE_FORMATTER import cartopy.feature as cfeature import matplotlib.ticker as mticker import netCDF4 as netCDF imp...
[ "kthyng@gmail.com" ]
kthyng@gmail.com
4b7692155915de88723646d645baaf844492989c
3fc2d97e926462209cf780595cf99b46f3026958
/runtest/arith/require.py
b5023e2932d8bc7c476ea455151de6ce90858e87
[]
no_license
thautwarm/frontend-for-free
9390d945bf83940f114356b08112844ed9ac3244
ee414b3efbdc49827f4de08f361b14234ef65a62
refs/heads/master
2022-09-11T16:52:55.427092
2022-08-07T10:23:07
2022-08-07T10:23:07
238,334,426
38
1
null
null
null
null
UTF-8
Python
false
false
227
py
import operator def unwrap(x): return int(x.value) ops = { '+': operator.add, '-': operator.sub, '*': operator.mul, '/': operator.floordiv, } def arith(op, lhs, rhs): return ops[op.value](lhs, rhs)
[ "twshere@outlook.com" ]
twshere@outlook.com
a758e4305012863ee9a7f3fbf37cb50c333f0adc
2d209b39c9916c327daf676c48a36f9dcebebfd2
/challenges/models/submission.py
a2fab70c12348dcd046e11f8fb45b17f16d3ec28
[ "MIT" ]
permissive
JasbirCodeSpace/CTF
d8f5fe32fb8625479df9c591a304b5835fa792a5
ce5d1d5bf7b0b54c62fe5c91bccc69498130e1c2
refs/heads/main
2023-08-30T00:47:27.747787
2021-10-29T17:38:38
2021-10-29T17:38:38
364,883,410
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
from challenges.models.challenge import Challenge from django.db import models from django.utils import timezone from challenges.models import Challenge from accounts.models import Profile class Submission(models.Model): challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE, related_name='solves') ...
[ "shikhawat.jasbir@gmail.com" ]
shikhawat.jasbir@gmail.com
44e947339fceb9e93951b253c4120ab35b6a42af
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/network/v20210301/get_dscp_configuration.py
e6c729b5252d79e0cce2242f82bea67a00ffd6e8
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,569
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 warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
46b342eca1711fd45f56468d44219f0422874c1e
a74cabbe1b11fc8ef575ea86f2543cd95db78ec9
/python_program/q1402_Reducing_Dishes.py
ff1daae3c2d8e861ba9a9621d7b035d26073bf7c
[]
no_license
tszandy/leetcode
87e3ccf291b2879637d2d8238935a455b401a78a
f1f4361541dcffbb291285663c8820d7ffb37d2f
refs/heads/master
2023-04-06T15:34:04.847875
2023-03-26T12:22:42
2023-03-26T12:22:42
204,069,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
from typing import List from collections import Counter,defaultdict from math import * from functools import reduce,lru_cache import numpy as np from heapq import * from bisect import bisect_left class Solution: def maxSatisfaction(self, satisfaction: List[int]) -> int: satisfaction.sort() dp = def...
[ "444980834@qq.com" ]
444980834@qq.com
f54264f91358bc09bf754fc2b9d0db3b8bd2a345
c9d960931bf542822fff2ebc6fc6964ed26dea3a
/source/tests/conftest.py
7d4d4dd1cbb69e29f871f3df8e54b2af05f78814
[ "BSD-3-Clause", "Python-2.0", "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ajayarunachalam/improving-forecast-accuracy-with-machine-learning
a2a10994551f22bfaea5225cbafe915cbf844e1f
2a56cf26181f34609881b5a78c93616f98f39c9e
refs/heads/main
2023-08-20T15:05:49.539911
2021-10-01T18:18:03
2021-10-01T18:18:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,412
py
# ##################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
[ "ssdzd@amazon.com" ]
ssdzd@amazon.com
0452f74a4baa5bd0539e1b2071270b21279fd3c9
adaecf1ac540d51a5314987602b21fbf5e44e995
/components/studio/projects/migrations/0003_volume.py
e63a468902743d9d830ee51afc97ae24bdaed5f6
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
carmat88/stackn
3dd49b1e896c1ed23ce389090f4751cc2a4b6782
c2d07c5ffc78df6cf73a9cc6e9dfde2f3d19dac9
refs/heads/main
2023-08-28T00:20:29.746474
2021-10-30T15:24:33
2021-10-30T15:24:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,228
py
# Generated by Django 2.2.13 on 2020-12-02 16:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('deployments', '0005_auto_20201029_2008'), ('projects', '0002_remove_project_environment'), ] operations = ...
[ "stefan@scaleoutsystems.com" ]
stefan@scaleoutsystems.com
4c2d33c12259b37ebf02f8da514795c25f84d6b8
36ace720c8507b8724957f6c85a5962d15a2f99c
/tests/unit/broker/test_simulated_broker.py
5168d71e8f8346c5f1026d4661877b98204b2e2b
[ "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
simongarisch/qstrader
8ce950036f6404dd4d6c61016cb6c77805942cd5
557f2fc2598b631a005309e415a5dab12793fd14
refs/heads/master
2021-06-27T04:51:24.588474
2020-08-29T05:58:08
2020-08-29T05:58:08
102,059,555
0
0
MIT
2020-08-29T04:36:52
2017-09-01T01:11:25
Python
UTF-8
Python
false
false
21,014
py
import queue import numpy as np import pandas as pd import pytest import pytz from qstrader.broker.portfolio.portfolio import Portfolio from qstrader.broker.simulated_broker import SimulatedBroker from qstrader.broker.fee_model.zero_fee_model import ZeroFeeModel from qstrader import settings class ExchangeMock(obje...
[ "mike@quarkgluon.com" ]
mike@quarkgluon.com
c675c9dcfc1f3adfe1439461a8bdcbb9ef4c16b0
f4b60f5e49baf60976987946c20a8ebca4880602
/lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/nws/rsnwssyslogsrctodestgroupint.py
3880bb27ef218cc3681461d316e60df8d322801f
[]
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
6,867
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
beb9459d17f3fe4c1087770f58961cea6547b6aa
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/11_动态规划/dp优化/贪心+dp/1531. 压缩字符串 II-删除子序列-dp.py
f6e75d357f9d3e4bc8c335678844885933a6f5a8
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
1,986
py
# 你需要从字符串 s 中删除最多 k 个相邻的字符,以使 s 的行程长度编码长度最小。 # 请你返回删除最多 k 个字符后,s 行程长度编码的最小长度 。 # 1 <= s.length <= 100 from functools import lru_cache # O(n^3)解法:两个状态+内部一层遍历 # 内部遍历可以jump # 也可以决定`选择一段连续的字符` # to jump or not to jump INF = int(1e20) @lru_cache(None) def getLRELen(blockLen: int) -> int: """blockLen...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
e701cd9782be5e99a3ceb4b577b56c352a83920f
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_362/ch11_2019_04_04_19_41_37_015479.py
a16590fe1ab457d0e10f2b292b2d6d07682e92e8
[]
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
68
py
def celsius_para_fahrenheit(x): y=((x-32)/9)*5 return y
[ "you@example.com" ]
you@example.com
747b859d67b9de71ffcc89d3a83d64b0cbe42b08
20a9c98bb59304dd406353c0b5c675801081f056
/ExcelCalculate-with-Django/ExcelCalculate/sendEmail/migrations/0002_delete_user.py
f0fb1b5908a25f2e29e1536072d2746aa693847d
[]
no_license
jungeun919/Django
b585fdbf75c973b7f57dc13320db5ab9f50fd10f
71fe0449b7b849e7ea66a78d38104fa18d5a95f3
refs/heads/master
2023-07-21T13:49:36.632867
2021-09-04T14:39:42
2021-09-04T14:39:42
323,032,804
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
# Generated by Django 2.2.1 on 2021-07-15 20:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sendEmail', '0001_initial'), ] operations = [ migrations.DeleteModel( name='User', ), ]
[ "renee8369@likelion.org" ]
renee8369@likelion.org
2093d50cdf169df9435f7d63e0445bd9c4e03669
36add5afc63ec09d63b8a877c29c17391938ee5c
/.history/process_tweet_20201113143725.py
584481c6a04c8e57b9deeabf1604e2f7e35fd155
[]
no_license
E-STAT/sentiment_api
e84eb04a9f21c7368ca20bdb97436ffea9f65f25
bd9ee0d78d9eac8b6448b96c2560611a64f7b79d
refs/heads/master
2023-01-12T13:06:14.654883
2020-11-20T11:30:22
2020-11-20T11:30:22
314,534,974
0
0
null
null
null
null
UTF-8
Python
false
false
19
py
class process_tweet
[ "owojori.tolulope@gmail.com" ]
owojori.tolulope@gmail.com
290b76b8fd9522d9c83b853ce735d41ee8c7c72a
fab3563a3996b441ae56387fe1b12cc8c1cd416c
/Leetcode/100. Same Tree/solution2.py
082351df33fea0e3356557a52801c1db9b2c0e04
[ "MIT" ]
permissive
astlock/Outtalent
f103b2485752cd22eac2267d67496fc92c85acac
c500e8ad498f76d57eb87a9776a04af7bdda913d
refs/heads/master
2022-12-18T20:57:11.520740
2020-10-06T21:28:45
2020-10-07T21:06:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
763
py
# 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 isSameTree(self, p: TreeNode, q: TreeNode) -> bool: stack1 = [p] stack2 = [q] w...
[ "info@crazysquirrel.ru" ]
info@crazysquirrel.ru
3d301614faa32f1871f2706e8e3119411e86783a
dd769d13607457ab50f59e9dd468c7040be92c01
/scripts/prettyprint.py
4aa39c689d67a599584de8c7be8907ec20de866d
[ "MIT" ]
permissive
spyysalo/finnish-registers
a4c293635d288ddcfd5fc106b26d7d8b85159302
fc9b7fa42b24044bdd620a6c9deb0defad3b790a
refs/heads/master
2020-05-24T07:32:51.384402
2019-06-05T10:04:02
2019-06-05T10:04:02
187,163,102
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
#!/usr/bin/env python3 import os import sys import json def argparser(): from argparse import ArgumentParser ap = ArgumentParser() ap.add_argument('file', metavar='JSON', nargs='+', help='annotations') return ap def main(argv): args = argparser().parse_args(argv[1:]) for fn in args.file: ...
[ "sampo.pyysalo@gmail.com" ]
sampo.pyysalo@gmail.com
78a2606ca1b65b8b29b754484494bab6309cdf25
4691e48ccae192b3598ba4d3a236be2eb0ee412d
/accounts/migrations/0003_customer_profile_pic.py
4ce2bc0ca7671335a9b8347bca141360bdfb7739
[]
no_license
Dihfahsih1/customer-order-system
a58d96c12208cb248fbdc7681a198aa43566b20b
22d6afa2f8c475e06bd7a2f8e6c963a1f8ac4924
refs/heads/master
2023-01-02T18:55:12.655785
2020-10-29T22:42:39
2020-10-29T22:42:39
299,816,416
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
# Generated by Django 2.2.8 on 2020-10-01 12:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_customer_user'), ] operations = [ migrations.AddField( model_name='customer', name='p...
[ "dihfahsihm@gmail.com" ]
dihfahsihm@gmail.com
b6c397210c3c43694634948dde611f39cc54f806
81c9b565aef4d6538462854f82e90bf6c864921c
/buildsln.py
8f2a5326f147230aa8c4475d7089d55f0364c928
[]
no_license
510908220/build-related-scripts
60735bec3332e9ea711975cf938eab3f3963e33e
3bca11989461bb1fed7098c0cc2f4c5700e21c61
refs/heads/master
2021-01-15T10:53:55.721889
2015-08-21T05:17:27
2015-08-21T05:17:27
41,128,678
1
0
null
null
null
null
UTF-8
Python
false
false
1,857
py
#!/usr/bin/python # -*- coding: utf-8 -*- import os import time import sys import subprocess import config from win32pipe import PeekNamedPipe from msvcrt import get_osfhandle from util import report def _get_devenv(): devenv = os.path.join(os.environ.get('VS120COMNTOOLS'), r'..\IDE\devenv.com') if not os.path.exi...
[ "510908220@qq.com" ]
510908220@qq.com
d5d6fdda19eb20fb2532663ca469d783507345f6
45f6a4dfc837998565d4e4e4cde258a27fdbd424
/learn_tu_you/wx_superboss/trunk/hall37-newfish/src/newfish/entity/util.py
6ef52fa8e545ae0720f7b57ba0036353bbd27166
[]
no_license
isoundy000/learn_python
c220966c42187335c5342269cafc6811ac04bab3
fa1591863985a418fd361eb6dac36d1301bc1231
refs/heads/master
2022-12-29T10:27:37.857107
2020-10-16T03:52:44
2020-10-16T03:52:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
63,157
py
# -*- coding=utf-8 -*- """ Created by lichen on 16/12/13. """ import time import json import random import hashlib from datetime import datetime from freetime.util import log as ftlog from freetime.entity.msg import MsgPack from poker.util import strutil, webpage from poker.protocol import router from poker.entity.bi...
[ "1737785826@qq.com" ]
1737785826@qq.com
badd4c235882aa6fb7b1979a7f73a6ea189f392b
743d58c35caf21568feddc86946bbee340174721
/leet_code/labuladong/math/p0319_Bulb_Switcher.py
3eac108970aa101af519cb1c891e9284c762ea51
[]
no_license
klgentle/lc_python
38009ed82614c8f21ca9af6e3779a2e0898af09f
aabe56e690b40e4b93afef99bfe46d9a06e20cea
refs/heads/master
2022-12-02T05:23:55.585659
2022-08-07T12:11:38
2022-08-07T12:11:38
176,750,473
2
0
null
2022-11-15T23:42:06
2019-03-20T14:21:51
Python
UTF-8
Python
false
false
900
py
""" 319. Bulb Switcher Medium There are n bulbs that are initially off. You first turn on all the bulbs, then you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turning off if it's on). For the ith round, you toggle every i bulb. For the nth round, you only togg...
[ "klgentle@sina.com" ]
klgentle@sina.com
00e2fa74801265ae43cd5ce21a46fd458c742c71
657c80336bce1cc6158cd349ce208c5e680a4d0d
/tools/genmpkg/bdist_mpkg_pyglet/templates.py
c85f60b0560fbd6d6c34bbb55469c9609cf6ded8
[ "BSD-3-Clause", "MIT" ]
permissive
Xinmudotmoe/pyglet
b37628618647bf3b1e3d7db28202a5e14c60450c
144257c365ca85528c6a4c5bed8141e683d7a9b6
refs/heads/master
2021-05-29T22:05:40.676643
2015-10-24T05:55:49
2015-10-24T05:55:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
768
py
InstallationCheck = dict( postjaguar=( "#!/bin/sh\nexit 112\n", '"16" = "This package requires Mac OS X 10.3 or later";', ), prepanther=("""#!/bin/sh # # We use IFRequirementDicts anyway and "parse" it to find where expect # Python to be. It's remotely possible that Python is not installed ...
[ "leif.theden@gmail.com" ]
leif.theden@gmail.com
69782dc6573bd3f5329f345d127803708a6980ca
253ad9984b597b0b8a922f8755f8ec2de8e41727
/mrp_scrap_reason/wizard/scrap.py
a511815d8e3cee31e8bae84f0cd7be730c83cc13
[]
no_license
lammh/julius-openobject-addons
8ed6eb5a8a0ddf86874149bd4f90443d8c4729bb
6a2a91e831c8e823d5d7b284d08fd889ea291f85
refs/heads/master
2020-12-26T16:48:55.033095
2016-07-27T13:10:52
2016-07-27T13:10:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,956
py
# -*- coding: utf-8 -*- ############################################################################### # # OpenERP, Open Source Management Solution # Copyright (C) 2014-Today Julius Network Solutions SARL <contact@julius.fr> # # This program is free software: you can redistribute it and/or modify # it unde...
[ "mathieu@julius.fr" ]
mathieu@julius.fr
b22d8bad9a7f603cdf6e351dfb721a9f17604d79
2b776f6420af6400120bf08c801159870dbd1ec6
/pickingduplicate.py
602be9fbab3e1c5bc6b4ddac68cce71ad25483d1
[]
no_license
ManojDjs/wescraping
b7dcd0423fa5ba44f38b332afc4540e49d309b75
fa3ae90f35e07b0ff06037673c50e47e42633900
refs/heads/master
2022-01-31T23:19:53.311009
2019-07-22T14:51:13
2019-07-22T14:51:13
191,214,784
1
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
from pymongo import MongoClient import requests from pymongo import MongoClient from flask import Flask, redirect, url_for, request from requests.utils import requote_uri import time start_time = time.time() app = Flask(__name__) import re if (1 == 1): dbname1 = "stage_jobs" mongoUrl1 = 'mongodb://' ...
[ "noreply@github.com" ]
ManojDjs.noreply@github.com
f6b193bd5ee103116fea31bba3734e4a9e20bc01
bb150497a05203a718fb3630941231be9e3b6a32
/framework/api/nn/test_batchnorm1D.py
07c7eb3a2c8b64f1dcb53f0d0f973cb22fa62ff4
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
20,163
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python """ test_batchnorm1D """ import paddle import pytest import numpy as np from apibase import compare seed = 33 types = [np.float32, np.float64] if paddle.device.is_compiled_with_cuda() is True: places = [paddle.CPUPlace(), p...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
7cebf8c0a961b374d8155ae85a46154c15dfe2e4
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/fmQ9QvPBWL7N9hSkq_13.py
980b3b2be99d984c65d3af99c99316222ebe6e2f
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
""" Write a function that takes a string, and returns a new string with any duplicate _consecutive_ letters removed. ### Examples unstretch("ppoeemm") ➞ "poem" unstretch("wiiiinnnnd") ➞ "wind" unstretch("ttiiitllleeee") ➞ "title" unstretch("cccccaaarrrbbonnnnn") ➞ "carbon" ### Notes...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
c501103f60919e795d65426a82fe315613c23458
dde1cf596cf5969812ecda999828baa9c73e788d
/test/test_smb_settings_share_extended.py
b6eebbd2843f4e1b5ad75e030a4d025f9b6068e6
[]
no_license
dctalbot/isilon_sdk_python3.7
bea22c91096d80952c932d6bf406b433af7f8e21
4d9936cf4b9e6acbc76548167b955a7ba8e9418d
refs/heads/master
2020-04-25T20:56:45.523351
2019-02-28T19:32:11
2019-02-28T19:32:11
173,065,379
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 6 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_1_1 from i...
[ "dctalbot@umich.edu" ]
dctalbot@umich.edu
54c5cedaeae5432970b07ffded9bdc489367bf34
dc2397cfce42d756f081b7f305a49d108390dfd9
/bin/pyrsa-verify
a7c4e2814aba47a22132bb4a7d2b385bfc855648
[]
no_license
Junaid522/django-vue
599b1f38c32bc828926f9b1802f98a9e70fe619b
d6e6d874c9758d506d60ea465cbdfed42f15a027
refs/heads/master
2020-05-23T03:23:38.496838
2019-05-14T12:06:45
2019-05-14T12:06:45
186,612,542
0
0
null
null
null
null
UTF-8
Python
false
false
241
#!/home/junaid/Desktop/django-vue/bin/python3 # -*- coding: utf-8 -*- import re import sys from rsa.cli import verify if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(verify())
[ "junaidtariq166@gmail.com" ]
junaidtariq166@gmail.com
335bfac577f4471f6262134fa17e6561c0e8504a
6c721f3cfce6dc88396cd3b5f6a59d65a2ea5033
/some_learn/Data_Set_handle/CityPersons-Dataset/citypersons_ex/11_6/lib/rpn/proposal_target_layer.py
81454175033cc083ac3fc6ab126c2c7e2913e4c1
[ "MIT" ]
permissive
unicoe/PycharmProjects
20a3dabe88c7874da54451c7bb16999afc0eee35
23ff314eb5ac9bfa01a8278089d722b5d0061751
refs/heads/master
2020-03-23T09:16:25.907188
2019-12-21T03:10:49
2019-12-21T03:10:49
141,377,686
4
1
null
null
null
null
UTF-8
Python
false
false
13,069
py
# _*_ coding:utf-8 _*_ # -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Sean Bell # -------------------------------------------------------- import caffe import yaml import ...
[ "unicoe@163.com" ]
unicoe@163.com
4fc3c6aecba15860f79fd7363db7abdc57cfd574
43ff15a7989576712d0e51f0ed32e3a4510273c0
/tools/pocs/bugscan/exp_1105.py
2c6996c585412d771fc5e73288a27560d4c7325a
[]
no_license
v1cker/kekescan
f2b51d91a9d6496e2cdc767eb6a600171f513449
3daa1775648439ba9e0003a376f90b601820290e
refs/heads/master
2020-09-19T16:26:56.522453
2017-06-15T02:55:24
2017-06-15T02:55:24
94,495,007
6
3
null
null
null
null
UTF-8
Python
false
false
1,074
py
# -*- coding: utf-8 -*- from dummy import * from miniCurl import Curl curl = Curl() #!/usr/bin/env python # -*- coding: utf-8 -*- #author:小光 #refer:http://www.wooyun.org/bugs/wooyun-2010-0116544 def assign(service, arg): if service == "taodi": return True, arg def audit(arg): url = '/...
[ "liyueke@huobi.com" ]
liyueke@huobi.com
124ec089349c98da4f181f2082ad04eec4063560
ddd8d0d013e6dcd855cee2b35c5dc068a1c750d4
/lncrawl/sources/foxteller.py
4c11e8764c2b0adb01881f9e6d680397da3538c6
[ "Apache-2.0" ]
permissive
k4noe/lightnovel-crawler
db9f601ed5263e61efab6e1cb5494229475722f6
188ac8ae77af427ee17213d8b74ea13066a46adb
refs/heads/master
2023-06-04T20:13:24.519798
2021-05-19T09:21:50
2021-05-19T09:21:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,099
py
# -*- coding: utf-8 -*- import json import base64 import logging import re from ..utils.cleaner import cleanup_text from ..utils.crawler import Crawler logger = logging.getLogger(__name__) search_url = 'https://www.foxteller.com/search' chapter_aux_url = 'https://www.foxteller.com/aux_dem' class FoxtellerCrawler(Cr...
[ "dipu.sudipta@gmail.com" ]
dipu.sudipta@gmail.com
6198d4e984c0c17b391c5888b2784f3e0569d55e
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-4/fba4f831bc75369c975a95c9b7774e9e89f8a2f9-<__init__>-bug.py
c635eb3cf4dbc043c817800e000185af03a273a7
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
def __init__(self, installed_apps=()): if ((installed_apps is None) and hasattr(sys.modules[__name__], 'apps')): raise RuntimeError('You must supply an installed_apps argument.') self.all_models = defaultdict(OrderedDict) self.app_configs = OrderedDict() self.stored_app_configs = [] self.app...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
6d8314b95afa2479567e12031b9bd7a9553101cc
bc148b29ec60128d2d14aa42cf8236946e9b1580
/2d_array_hackerranck/2d_array.py
f1f41b176e61d6d73e01b1201bc3e2c9e1b260af
[]
no_license
aliensmart/week7_day2
6a9b3e7b890bdf94ddb325baacac0d3d87f6fd9b
3f48dcd97f48bb57cc8968f35fe17b2e9d6bbe77
refs/heads/master
2020-08-04T15:48:17.312330
2019-10-01T20:13:28
2019-10-01T20:13:28
212,190,786
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
arr = [[1,1,1,0,0,0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]] def hourglassSum(arr): new_list = [] for i in range(len(arr) - 2): for j in range(len(arr[i]) - 2): total = arr[i][j] + arr[i][j+1] + arr[i][j+2] + arr[i+1][j+1] + arr[i...
[ "kaoua17@gmail.com" ]
kaoua17@gmail.com
21d4f9248dbbefe231cce205ae67b2e424bc0d0a
2dd5e62eddf7679d195efcad62d3b61c8617c5b7
/practice/Practice_6/Practice_6_solutions (2)/merging_strings.py
4f20fb834a9880ce50b5ac9d58533121125ca980
[]
no_license
unswit/COMP9021_2
03b38314a4723a4eafbb758954bc9f78f1556b0e
713f2c3b31a2e5081e0602a19660056eb71b1144
refs/heads/master
2021-04-24T11:53:07.760756
2020-03-25T23:47:03
2020-03-25T23:47:03
250,114,841
3
0
null
null
null
null
UTF-8
Python
false
false
2,737
py
# COMP9021 Practice 6 - Solutions ''' Say that two strings s_1 and s_2 can be merged into a third string s_3 if s_3 is obtained from s_1 by inserting arbitrarily in s_1 the characters in s_2, respecting their order. For instance, the two strings ab and cd can be merged into abcd, or cabd, or cdab, or acbd, or acdb......
[ "55487375+ahcjdxzd@users.noreply.github.com" ]
55487375+ahcjdxzd@users.noreply.github.com
2ea2416ee16be16da064e7b19f1b589a228e55f5
c27622fe757f2a8e91151f2c96aafbcffa225774
/setup.py
a5e6e9b9297afc89e56dfc005e354e07c32ec691
[ "MIT" ]
permissive
rasjones/ongeza
1e4117df6bb6c214b486058b5890448c6ee11be2
fa4549ecd4086bd436bc94787115002182e7ccbb
refs/heads/master
2020-12-03T00:43:49.917282
2016-06-06T14:36:17
2016-06-06T14:36:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,814
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import ( absolute_import, division, print_function, with_statement, unicode_literals) import sys from os import path as p from builtins import * import ongeza as module import pkutils try: from setuptools import setup, find_packages except I...
[ "reubano@gmail.com" ]
reubano@gmail.com
1a491ba79d078305d7797265093d3b2739f57065
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/impl/gen/view_models/views/lobby/battle_pass/tooltips/battle_pass_points_view_model.py
21a112aceaf3e0235836860041ca374cdfaf8761
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
1,254
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/battle_pass/tooltips/battle_pass_points_view_model.py from frameworks.wulf import ViewModel from gui.impl.wrappers.user_list_model import UserListModel from gui.impl.gen.view_models.views.lobby.b...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
c81849495802ea60f6386eac7be9682cf15ee30c
da1d21bb8d0760bfba61cd5d9800400f928868aa
/apps/user_profile/views.py
ab59ee4550fc6a51c917ef25016da54c056d0694
[]
no_license
biznixcn/WR
28e6a5d10f53a0bfe70abc3a081c0bf5a5457596
5650fbe59f8dfef836503b8092080f06dd214c2c
refs/heads/master
2021-01-20T23:53:52.887225
2014-05-13T02:00:33
2014-05-13T02:00:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,574
py
# -*- coding: utf-8 -*- try: import simplejson as json except ImportError: import json from django.conf import settings from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import PasswordChangeForm from django.con...
[ "mbc@Mathiass-MacBook-Pro.local" ]
mbc@Mathiass-MacBook-Pro.local
410f4c98072f476e709f93aa02f80e6f7bd000ea
641c9eaa5c1df74e6edfb79628c9f18b6d5d2b91
/cloudmersive_validate_api_client/models/xxe_detection_request_item.py
555a2039b26b5b8c1d376cc659065cc29bffee00
[ "Apache-2.0" ]
permissive
Cloudmersive/Cloudmersive.APIClient.Python.Validate
d2d9d0ceb3fce350fd0d86466bc8b5e153a5d478
274d38d4a849650402f3bb931799ab82502b4306
refs/heads/master
2023-06-10T04:01:35.332273
2023-06-03T22:34:47
2023-06-03T22:34:47
138,435,277
3
2
null
null
null
null
UTF-8
Python
false
false
6,986
py
# coding: utf-8 """ validateapi The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501 OpenAPI spec version: v1 Ge...
[ "35204726+Cloudmersive@users.noreply.github.com" ]
35204726+Cloudmersive@users.noreply.github.com
493e63d1082fc35fedb31145e21e7dfb8d533609
dea198896f679e577a3fd0923e3fa4470da4b9cc
/journal/pyfakefs_mutants/AOR_BinOp_mutant_1507054962.py
6adc263311452c9b1a752bf96d1e3c31cc96822a
[]
no_license
naustarg/cbmcmutate
f138ab2b04b4be70d735de90815ac670ae6042ce
a6ee6fd395338bb2dfd6bdffabb2dc484cb303f1
refs/heads/master
2020-04-04T08:10:15.913309
2018-05-21T18:23:58
2018-05-21T18:23:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
219,332
py
# line: 91 'A fake filesystem implementation for unit testing.\n\n:Includes:\n * FakeFile: Provides the appearance of a real file.\n * FakeDirectory: Provides the appearance of a real directory.\n * FakeFilesystem: Provides the appearance of a real directory hierarchy.\n * FakeOsModule: Uses FakeFilesystem to pr...
[ "agroce@gmail.com" ]
agroce@gmail.com
d0671636d25e06c9072f67e280cceb203e1ddf0c
ed0dd577f03a804cdc274f6c7558fafaac574dff
/python/pyre/filesystem/Explorer.py
0c18d24cd80fce90d462fa33c5aaba75c98df834
[ "Apache-2.0" ]
permissive
leandromoreira/vmaf
fd26e2859136126ecc8e9feeebe38a51d14db3de
a4cf599444701ea168f966162194f608b4e68697
refs/heads/master
2021-01-19T03:43:15.677322
2016-10-08T18:02:22
2016-10-08T18:02:22
70,248,500
3
0
null
2016-10-07T13:21:28
2016-10-07T13:21:27
null
UTF-8
Python
false
false
3,236
py
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2005 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~...
[ "zli@netflix.com" ]
zli@netflix.com
d79c91c215602d5651c8ddaf2a6a3c13ac0e5660
e457376950380dd6e09e58fa7bee3d09e2a0f333
/plugin/src/test/resources/formatter/twoLinesBetweenTopLevelClasses_after.py
55ec52a5afaff82acd5f14ea14913df29ee9cf0b
[ "Apache-2.0" ]
permissive
consulo/consulo-python
b816b7b9a4b346bee5d431ef6c39fdffe40adf40
e191cd28f043c1211eb98af42d3c0a40454b2d98
refs/heads/master
2023-08-09T02:27:03.585942
2023-07-09T08:33:47
2023-07-09T08:33:47
12,317,018
0
0
Apache-2.0
2020-06-05T17:16:50
2013-08-23T07:16:43
Java
UTF-8
Python
false
false
37
py
class C: pass class D: pass
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
80c0e34c94d9dd2a77d3bad4393d137877d609c0
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-sblp/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=11/sched.py
ea6c79e09423c41e6dac4cbf083fc3b953959ba7
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
-S 0 -X RUN -Q 0 -L 2 116 400 -S 1 -X RUN -Q 0 -L 2 108 400 -S 1 -X RUN -Q 0 -L 2 89 400 -S 0 -X RUN -Q 0 -L 2 66 400 -S 0 -X RUN -Q 0 -L 2 66 250 -S 3 -X RUN -Q 1 -L 1 63 400 -S 2 -X RUN -Q 1 -L 1 53 400 -S 2 -X RUN -Q 1 -L 1 51 200 -S 2 -X RUN -Q 1 -L 1 49 250 -S 2 -X RUN -Q 1 -L...
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
de177327c81d38fd41ffcde38147f684a2b5ff0c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02975/s331672457.py
cb23e59cdf3b1c516d580dca815ac5533e657796
[]
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
915
py
import bisect,collections,copy,itertools,math,string import sys def I(): return int(sys.stdin.readline().rstrip()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def S(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip().split()) def main(): n = I() ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1d046885e19232b1eadb593fab189a2675ea0996
676faf39d9ac9bb8ea6613eb1d84e3de8a0279ed
/app/tianyancha.com/old/new_tianyancha_url.py
8258ba44a4b99522bc02d2f87cc700b24942d17b
[]
no_license
cheenwe/pbs
49ea499510be66239a4e8e322009a6f2c016eeec
a5bb85370e00248f0391aaaf5b384b013785ce3d
refs/heads/master
2021-07-08T23:26:51.528294
2020-07-08T12:46:36
2020-07-08T12:46:36
152,280,183
4
2
null
null
null
null
UTF-8
Python
false
false
19,497
py
# coding=utf-8 import requests import os, sys,time, json, random from bs4 import BeautifulSoup from pyquery import PyQuery as pq # 当前文件的路径 pwd = os.getcwd() project_path=os.path.abspath(os.path.dirname(pwd)+os.path.sep+"..") sys.path.append(project_path) from api.rest_api import RestApi # from proxy.proxy import New...
[ "you@example.com" ]
you@example.com
06fb07b92d23bc151e904ca827694ff185441949
0ae86e10c73b2f29082e3368d9fdc3c7e26ebd34
/Models/siamese_emotion.py
80783d2ace0b952a617b371d4cd72e0ed2ee3798
[]
no_license
AkhilKataria10/Facial-Expression-Recognition
bdfd4a2eae65dbe516fe5794999f315a3825c0ee
860e17d3338c5f801f3e49d1dbd9c0c37966d6ba
refs/heads/master
2020-12-27T19:46:00.243672
2020-02-03T20:34:00
2020-02-03T20:34:00
238,029,980
0
0
null
null
null
null
UTF-8
Python
false
false
11,841
py
# -*- coding: utf-8 -*- """Siamese_Emotion.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1R5xeB8Qb5AmgmP91YSVFT6-9ecsf08xR """ from google.colab import drive drive.mount('/content/drive') from torchvision.datasets import MNIST from torchvision...
[ "you@example.com" ]
you@example.com
07dd0192abcfc07cc57e12e4ee7a6abac6504755
2ff7e53d5e512cd762217ca54317982e07a2bb0c
/notifications/common/formatters/newMail.py
10917783bd79e7270fc0dc79f547c82eb84a0b67
[]
no_license
nanxijw/Clara-Pretty-One-Dick
66d3d69426642b79e8fd4cc8e0bec23adeeca6d6
50de3488a2140343c364efc2615cf6e67f152be0
refs/heads/master
2021-01-19T09:25:07.555284
2015-02-17T21:49:33
2015-02-17T21:49:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
#Embedded file name: notifications/common/formatters\newMail.py import localization from notifications.common.formatters.baseFormatter import BaseNotificationFormatter class NewMailFormatter(BaseNotificationFormatter): def __init__(self): self.subjectLabel = 'UI/Mail/NewMailHeader' self.subtextLab...
[ "billchang.e@gmail.com" ]
billchang.e@gmail.com
e88a31d868a25518b05df21fcbfb0b0c363eb7e0
9f9cfe33df47897c3bd9eae7cb1647e8bd1fbbb7
/广度优先搜索/LeetCode_102.py
4873c80158c49fe158b4c76a192e1e7244822821
[]
no_license
maxzxc0110/Algorithm
fb3c8e1a813b486357ebf3cb2b4bf9321eed9ebd
eed69740f2eb51f3a9caf69029b3a340555e6037
refs/heads/master
2022-12-30T17:55:08.693625
2020-10-25T04:58:28
2020-10-25T04:58:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,193
py
#!/usr/bin/python # -*- coding: UTF-8 -*- # 102. 二叉树的层序遍历 难度:中等 # 给你一个二叉树,请你返回其按 层序遍历 得到的节点值。 (即逐层地,从左到右访问所有节点)。 # 示例: # 二叉树:[3,9,20,null,null,15,7], # 3 # / \ # 9 20 # / \ # 15 7 # 返回其层次遍历结果: # [ # [3], # [9,20], # [15,7] # ] """ # Definition for a Node. class Node(object): def _...
[ "273206894@qq.com" ]
273206894@qq.com
9a84175367c5373a74c2433384000573b46d4033
21b39d50e4df56ea01453001845d1580729af1df
/jdcloud_sdk/services/vpc/apis/ModifyRouteTableRequest.py
633ffe09704c3d1f5c2634f58c8471743b127353
[ "Apache-2.0" ]
permissive
Tanc009/jdcloud-sdk-python
ef46eac7731aa8a1839b1fc1efd93249b7a977f0
8b045c99bc5b73ca7348e950b6f01e03a27982f5
refs/heads/master
2021-08-09T14:49:16.177709
2021-06-25T02:38:41
2021-06-25T02:38:41
141,714,695
0
0
Apache-2.0
2018-07-20T13:21:17
2018-07-20T13:21:16
null
UTF-8
Python
false
false
1,897
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 ...
[ "oulinbao@jd.com" ]
oulinbao@jd.com
d2dcfc77c0ffdaa6241cc147511849e15f4d45e9
eee5fc5e9e1bd9ababc9cf8ccb8add19c9219ca3
/ABC/180/d.py
7f4f7bb2d821e4a2443ae7f55895e385666d0f7e
[]
no_license
matatabinoneko/Atcoder
31aa0114bde28ab1cf528feb86d1e70d54622d84
07cc54894b5bcf9bcb43e57a67f2a0cbb2714867
refs/heads/master
2021-11-13T04:39:13.824438
2021-10-31T01:42:52
2021-10-31T01:42:52
196,823,857
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
def main(): x, y, a, b = map(int, input().split()) keikenti = 0 while x*a < b and x*a < y: x *= a keikenti += 1 keikenti += (y-x-1)//b print(keikenti) return if __name__ == '__main__': main()
[ "matatabinoneko0721@gmail.com" ]
matatabinoneko0721@gmail.com
0226f144b3e6b5a5a0ce1eb6ce6d8d67dc51397c
255f76a940cc104fc654df8501793ba9830bb708
/apps/users/models.py
7a45c037449b195873a931d8746e5ebeec8c4150
[]
no_license
Albino1995/KeepMoving_Backend
a7baac2e8b3c5f16060c73270b84c432bf03c2e1
77432aedc88108b7f4f5fe774b4ed827495f1d09
refs/heads/master
2018-10-15T07:05:31.197431
2018-07-12T03:33:09
2018-07-12T03:33:09
108,217,440
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
py
from datetime import datetime from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class UserProfile(AbstractUser): """ 用户 继承AbstractUser扩展用户模型: """ name = models.CharField(max_length=30, null=True, blank=True, verbose_name="姓名") gender ...
[ "763968024@qq.com" ]
763968024@qq.com
df4e9860de581069de27e5749c69e91b6009c479
a6c27f6fa094139000439c9bf8f555722acd0594
/tile/test_model.py
9ebc075ab370cf8dc89051cb53197eb7c0597500
[]
no_license
horacepan/SnFFT
212cea829fc45fdb145d3487cf8d5fdf880db75d
73e322686fc1ca7d219cc171b624ff4a943b6b01
refs/heads/master
2021-06-29T18:35:31.738887
2020-10-06T20:39:22
2020-10-06T20:39:22
158,967,803
1
2
null
null
null
null
UTF-8
Python
false
false
2,721
py
import os import argparse import numpy as np from mlp_main import mlp_get_action from tile_env import * from tile_irrep_env import * import torch import pandas as pd from tile_utils import get_true_df, tup_to_str from main import get_action #TRUE_DISTS = get_true_df() def eval_model(model, env, trials, max_iters, get_...
[ "hopan@uchicago.edu" ]
hopan@uchicago.edu
a7efe8f008b750adc51a09952757b0e0f48be32b
2dc9ab0ec71fd31900173fb15a6f2c85753180c4
/third_party/blink/web_tests/external/wpt/tools/wptrunner/wptrunner/executors/executorservodriver.py
2e47a22a9c92b4caada29db358c08104793d2770
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft" ]
permissive
Forilan/chromium
ec337c30d23c22d11fbdf814a40b9b4c26000d78
562b20b68672e7831054ec8f160d5f7ae940eae4
refs/heads/master
2023-02-28T02:43:17.744240
2020-05-12T02:23:44
2020-05-12T02:23:44
231,539,724
0
0
BSD-3-Clause
2020-05-12T02:23:45
2020-01-03T07:52:37
null
UTF-8
Python
false
false
9,728
py
import json import os import socket import traceback from .base import (Protocol, BaseProtocolPart, RefTestExecutor, RefTestImplementation, TestharnessExecutor, TimedRunner, strip_server) from ..testrunner...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
1315e3a108259dfbb7b74d665b40be5aa26e288c
2e32ed5ce98306a0648763d736976b4508d033a3
/recaptcha/__init__.py
6177b9d32068cff7c55c39965ac416d51aaeb714
[ "Apache-2.0" ]
permissive
ondrocks/quilla
fe4d188ffaf12e48f14106326b534d75383ed859
bc2e2e7d268781c6d5d2b57208bbd34df0e20928
refs/heads/master
2021-05-27T19:03:21.257240
2014-03-02T23:38:40
2014-03-02T23:38:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
59
py
## __import__('pkg_resources').declare_namespace(__name__)
[ "brett@haxor.com" ]
brett@haxor.com
b63802df5ead78aea4dee11fbc0fd02aab31d2e4
e359233cd503915b982d150170f7107ce8b3c429
/board_server/urls.py
cfe3a5f02f6f32aafaa76fe7b6ea6049bb9a44ab
[]
no_license
elrion018/board_server
63a9b8c53a80b85b673fd47c2284d491c5660cc1
b3690f267df8a2f521a2841f1d1602a1e548dea8
refs/heads/master
2023-08-06T03:31:37.311122
2020-10-19T01:47:05
2020-10-19T01:47:05
263,321,381
2
0
null
2021-09-22T19:37:15
2020-05-12T11:48:01
Python
UTF-8
Python
false
false
808
py
"""board_server URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "elrion018@gmail.com" ]
elrion018@gmail.com
115a8c644061cbf620d67883dff2e693efc46ea6
020c99198dd1560b4e85de28b5bbe18534f62b82
/suspect/dag/expressions.py
9b7acf5a00804730593a41046352d93d47c45b81
[ "Apache-2.0" ]
permissive
cog-imperial/suspect
7b6f73a8f040f09198797553e4841542fa95e07f
4a0e04d1be2f400416d508e632d81077a2b212ab
refs/heads/master
2022-07-21T13:07:25.100906
2022-07-14T10:31:10
2022-07-14T10:31:10
127,118,649
23
4
Apache-2.0
2022-07-14T10:31:11
2018-03-28T09:42:37
Python
UTF-8
Python
false
false
4,006
py
# Copyright 2017 Francesco Ceccon # # 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...
[ "francesco@ceccon.me" ]
francesco@ceccon.me
7a6d57e9b0751585bda5c56e94901e2a5689702a
ba3231b25c60b73ca504cd788efa40d92cf9c037
/nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/wi/wisite.py
2de4641f6e2a57e0b1f2b02a1c526bb0e9368f1e
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
zhuweigh/vpx13
f6d559ae85341e56472e3592cbc67062dac34b93
b36caa3729d3ca5515fa725f2d91aeaabdb2daa9
refs/heads/master
2020-07-04T22:15:16.595728
2019-09-20T00:19:56
2019-09-20T00:19:56
202,435,307
0
0
null
null
null
null
UTF-8
Python
false
false
41,218
py
# # Copyright (c) 2008-2019 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "zhuwei@xsky.com" ]
zhuwei@xsky.com
0942f7433f19cd01f54c04290114b274fb5c758e
8810b14fa59d749c755fc4c27281a3894674cde3
/python/web/alchemy_models/models.py
9edc29d5e461fd4c8e5072ae970a87422509fb61
[]
no_license
Yamp/home_lab
e76f23af12c794c38422623f92921617e371c9fe
5c6d5b13bb0b845b7af8c1a94b42e2dad368e373
refs/heads/master
2022-03-03T12:32:06.243021
2020-04-01T10:34:04
2020-04-01T10:34:04
224,238,847
0
1
null
2022-02-10T21:53:23
2019-11-26T16:35:58
Jupyter Notebook
UTF-8
Python
false
false
17,624
py
from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import ARRAY, BigInteger, Boolean, Column, DateTime, ForeignKey, Index, Integer, JSON, Numeric, \ SmallInteger, Text, text, String from web.alchemy_models.core import LoLBase import pandas as pd Base = ...
[ "yampolskiydv@gmail.com" ]
yampolskiydv@gmail.com
a32e58c073384dd2216e138b9888d92ccf4629dc
e68a40e90c782edae9d8f89b827038cdc69933c4
/res/scripts/client/messenger/gui/scaleform/channels/xmpp/factories.py
49db26d053c6eeb5edaeb2a91d0ec2bbd283f878
[]
no_license
webiumsk/WOT-0.9.16
2486f8b632206b992232b59d1a50c770c137ad7d
71813222818d33e73e414e66daa743bd7701492e
refs/heads/master
2021-01-10T23:12:33.539240
2016-10-11T21:00:57
2016-10-11T21:00:57
70,634,922
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,747
py
# 2016.10.11 22:14:49 Střední Evropa (letní čas) # Embedded file name: scripts/client/messenger/gui/Scaleform/channels/xmpp/factories.py from messenger.gui.Scaleform.channels.xmpp import lobby_controllers from messenger.gui.interfaces import IControllerFactory from messenger.proto.xmpp import find_criteria from messeng...
[ "info@webium.sk" ]
info@webium.sk
7793e920d01c199e58a67caee110289bc1dcb5ed
28225a61f2fc33e4f6d56a1941a99301489c0f1e
/architectures/VGG16/Nets.py
4831fcf8e08dbf945aa33d762dd1bb3cf7e9f1cd
[]
no_license
sailfish009/pytorchTutorialRepo
97cb4368b6ac22bd678965d351196b47d52970e1
17d67e64555d2b219d7d53de6a7bfda4172b809b
refs/heads/master
2023-03-08T13:03:57.244087
2021-02-23T11:26:19
2021-02-23T11:26:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,275
py
import torch import torch.nn as nn import torch.nn.functional as F class Net(nn.Module): def __init__(self, num_classes): super(Net, self).__init__() self.conv1 = self.conv_block(2, 3, 64) self.conv2 = self.conv_block(2, 64, 128) self.conv3 = self.conv_block(3, 128, 256) sel...
[ "msubhaditya@gmail.com" ]
msubhaditya@gmail.com
4463c94d51cb47b1db7539ce71d595dd0122e59c
577f03954ec69ed82eaea32c62c8eba9ba6a01c1
/py/testdir_single_jvm/test_GLM2_gamma_fail1.py
77f51e83f49c13af7fa89754fa4caf67f04f6e52
[ "Apache-2.0" ]
permissive
ledell/h2o
21032d784a1a4bb3fe8b67c9299f49c25da8146e
34e271760b70fe6f384e106d84f18c7f0adb8210
refs/heads/master
2020-02-26T13:53:01.395087
2014-12-29T04:14:29
2014-12-29T04:14:29
24,823,632
1
2
null
null
null
null
UTF-8
Python
false
false
1,515
py
import unittest, random, sys, time sys.path.extend(['.','..','../..','py']) import h2o, h2o_cmd, h2o_glm, h2o_import as h2i class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): global SEED SEED = h2o.setup_random_seed(...
[ "kevin@0xdata.com" ]
kevin@0xdata.com
dafd0a8c3fb68282ac352159cee85345469e9f3e
a89c739589d0ee29ff6fff1a1508a426dfe4489a
/basics/kmp.py
92e94906fb88c7a240a5d106b961dbe7dc35318c
[]
no_license
macabdul9/python-learning
107e3533998e3f373b804d6b59152fc41938604b
f0d5e0e37cbed3d846684be80f0f92e5cbb9ceb5
refs/heads/master
2020-04-27T04:31:47.907486
2020-03-05T16:48:53
2020-03-05T16:48:53
174,057,604
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
""" @author : macab (macab@debian) @file : kmp @created : Friday Apr 12, 2019 23:45:53 IST """ # knuth maorris pattern matching algorithm
[ "abdulwaheed1513@gmail.com" ]
abdulwaheed1513@gmail.com
29945aedc3ac1d2390b7350873e020d021bc3e42
97afa34a118378827e579de9ab3ceced71488dfa
/dedupsqlfs/db/mysql/table/inode.py
cdf22c9ae26a61f55720de8df7df98d17ba36aed
[ "MIT" ]
permissive
himadrisd/dedupsqlfs
4d07dbd4f8f0294ce5352777525085cf80fc7c99
9a0e5ee3e2bfd1bc25f2e604d4f1fb584c43bffc
refs/heads/master
2020-04-24T14:52:30.804688
2018-06-09T06:38:37
2018-06-09T06:38:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,600
py
# -*- coding: utf8 -*- __author__ = 'sergey' from dedupsqlfs.db.mysql.table import Table class TableInode( Table ): _table_name = "inode" def create( self ): cur = self.getCursor() # Create table cur.execute( "CREATE TABLE IF NOT EXISTS `%s` (" % self.getName()+ ...
[ "sergey.dryabzhinsky@gmail.com" ]
sergey.dryabzhinsky@gmail.com
c56ca6fb2e4f0f021cdb209e05ab6bf54303477f
e238db1ae3e641d84af17e9cf6a881eb43b20039
/hunt79.py
9f280502fdd2318919b2839a7f43d818f9621c18
[]
no_license
RevathiRathi/Revat
1aa478f51b147e7b044d7519f54938eda0149619
792757fb56243846e3049889bf502014c62d658e
refs/heads/master
2020-04-15T05:01:36.873956
2019-07-18T13:40:34
2019-07-18T13:40:34
164,406,245
0
4
null
null
null
null
UTF-8
Python
false
false
232
py
#r n=int(input()) l=[int(x) for x in input().split()] while n!=0: if n%2==0: a=int(n/2) b=a-1 avg=(l[a]+l[b])//2 print(avg) l.remove(l[a]) l.remove(l[b]) n=n-2 else: a=(n//2) print(l[a]) l.remove(l[a]) n=n-1
[ "noreply@github.com" ]
RevathiRathi.noreply@github.com
808590a70fdbbfb5fede776593e008d4aaac065e
5a4ae6581fa70025a3c6cd4a8d8b0e179f10a7dc
/tests/test_predicate.py
89c1adc736f000c310519c115174c144008a5f1c
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
Dev4Data/datatest
b250a465f4c313ebe8d59a1d273e4e1ce4f86619
bf136eab23c2b6ea36c201e1446fca9243c3fba6
refs/heads/master
2023-08-03T00:36:34.362741
2021-12-05T17:44:33
2021-12-05T17:44:33
136,925,059
0
0
null
2018-06-11T12:44:50
2018-06-11T12:44:50
null
UTF-8
Python
false
false
24,824
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from . import _unittest as unittest import cmath import decimal import math import re try: import numpy except ImportError: numpy = False from datatest._vendor.predicate import ( _check_type, _check_callable, _check_wildcard, _check_truthy, _ch...
[ "shawnbrown@users.noreply.github.com" ]
shawnbrown@users.noreply.github.com
670640ebb39fe6e5c7e48746af06052f500c8ec6
51f887286aa3bd2c3dbe4c616ad306ce08976441
/pybind/slxos/v17r_2_00/routing_system/interface/ve/ipv6/intf_ipv6_router_isis/__init__.py
d6acb53e9badc4ac27b1659566cfceda0d58c558
[ "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
6,607
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
bc99017dabe80700663715344d76126a076dd3e1
66aa20ce14ad45b845018d2cb50758fce0e58c95
/beast/web/migrations/0008_auto_20191029_1712.py
a509a3e8c358ed213611b3cbd642f014dc73e2d2
[]
no_license
lopersdeve01/friendly-broccoli
e069648793ab005876ff60b3458e96af27a2d5f3
97eb4c55996b7a0fef193118ecabe5f07b2279d3
refs/heads/master
2022-12-14T02:26:42.187871
2019-11-25T12:49:31
2019-11-25T12:49:31
224,327,946
0
0
null
2022-12-08T06:58:26
2019-11-27T02:33:41
Python
UTF-8
Python
false
false
663
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2019-10-29 09:12 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('web', '0007_auto_20191029_1653'), ] operations = [...
[ "1185272824@qq.com" ]
1185272824@qq.com
a21a7aff2a16baaed2d88df0d0d3fe50ef7a5f43
6b0d0aec9704d70663fe0edc2a6624a689cc081e
/src/core/tacotron/model_symbols.py
4fdc80579df30c0c50c2e7cad90ae04b4444ed3c
[ "BSD-3-Clause" ]
permissive
stefantaubert/tacotron2
086d81b38b2c49655df6b0d8d63c633e7531399a
8475f014391c5066cfe0b92b6c74568639be5e79
refs/heads/master
2023-03-29T21:07:02.266973
2020-11-25T09:57:40
2020-11-25T09:57:40
267,858,113
5
0
BSD-3-Clause
2020-05-29T12:56:56
2020-05-29T12:56:55
null
UTF-8
Python
false
false
2,207
py
from typing import List from src.core.common.globals import PADDING_SYMBOL SHARED_SYMBOLS = [PADDING_SYMBOL] SHARED_SYMBOLS_COUNT = len(SHARED_SYMBOLS) def get_model_symbol_ids(symbol_ids: List[int], accent_ids: List[int], n_symbols: int, accents_use_own_symbols: bool, ...
[ "stefan.taubert@posteo.de" ]
stefan.taubert@posteo.de
511306a46c0049f3ed922df633f79c59db2da03b
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_583.py
30769346c88943e19ba7c2c59161d6a5bf1602f8
[]
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
56
py
# pygtk gui freezes with pyjack thread gobject.idle_add
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
542b0443c24e7a21c7a94580b74f7dbb2c9f17ad
8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a
/csv__examples/reader_csv__as_dict__DictReader.py
3710c8ef0a25f842459e81a6c87b630f93dcc570
[ "CC-BY-4.0" ]
permissive
stepik/SimplePyScripts
01092eb1b2c1c33756427abb2debbd0c0abf533f
3259d88cb58b650549080d6f63b15910ae7e4779
refs/heads/master
2023-05-15T17:35:55.743164
2021-06-11T22:59:07
2021-06-11T22:59:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import csv with open('input.csv') as f: csv_reader = csv.DictReader(f, delimiter=";") for row in csv_reader: print(row['name'], row['address'])
[ "ilya.petrash@inbox.ru" ]
ilya.petrash@inbox.ru
81923adbfa5a41caaf6b08b25befe002ec56526d
62fe26b309b402d0c304624bf63a8e9b9c025148
/backend/src/main/migrations/0004_auto_20160529_1410.py
dd606f87d797b8da3aa080f65d9836d2b3df1186
[]
no_license
brmley/fuchtard
20c9c8229debaf54897faabffa43d87bff1f0995
833bcb9655fff9ff733f798d19561d9b7e6c476c
refs/heads/master
2021-09-06T15:13:13.317894
2018-02-07T22:08:54
2018-02-07T22:08:54
120,173,994
0
0
null
2018-02-04T10:12:36
2018-02-04T10:12:35
null
UTF-8
Python
false
false
498
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-05-29 07:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0003_auto_20160529_1355'), ] operations = [ migrations.AlterField( ...
[ "roboxv@gmail.com" ]
roboxv@gmail.com
ce0ff6cdd793dc9ad75fb94cc82d9a505df0ccf7
e56b199860185951509bb4133b38175a38a07075
/src/web/modules/post/controllers/history/control.py
7b4e40c6e7ba983f408602bfcf3f46fe299f7364
[ "MIT" ]
permissive
unkyulee/elastic-cms
1ec9ca8cbf55bf0c194db7add8d8358a36088483
3ccf4476c3523d4fefc0d8d9dee0196815b81489
refs/heads/master
2020-09-10T03:20:33.813247
2018-03-15T10:31:17
2018-03-15T10:31:17
66,565,725
2
0
null
null
null
null
UTF-8
Python
false
false
296
py
import importlib def get(p): p['mode'] = 'list' if len(p['nav']) > 3: p['mode'] = p['nav'][3] if not p['operation']: p['operation'] = 'post' path = "web.modules.post.controllers.history.{}".format(p['mode']) control = importlib.import_module(path) return control.get(p)
[ "unkyulee@gmail.com" ]
unkyulee@gmail.com
a8e5c0ca24eef7e5de94bc50e735e24c31c45c82
9bc006e71393c5338bd77bbf12c2946dbfaf2d5b
/longest_turbulent_subarray.py
fa69d12b63226b6da2b7557c43d81750fb19d80b
[]
no_license
aroraakshit/coding_prep
2d883058ef81317fba0c101fac3da37cd6ecd9ca
aac41ddd2ec5f6e5c0f46659696ed5b67769bde2
refs/heads/master
2021-07-09T18:28:26.706576
2020-07-08T03:07:26
2020-07-08T03:07:26
163,704,385
8
7
null
null
null
null
UTF-8
Python
false
false
1,199
py
class Solution: # 152ms, faster than 87% solutions def maxTurbulenceSize(self, lst: List[int]) -> int: if not lst: return 0 elif len(lst) == 1: return 1 elif len(lst) == 2: return +(lst[0] != lst[1]) + 1 prev_sign = 0 l = None ...
[ "akshit.arora@colorado.edu" ]
akshit.arora@colorado.edu
7bd677fe3953f746272e5e0090e130e12f4f2d3e
f5c72f8526085e45eddcad7a74127bd487514101
/request_demo.py
c39d7c0c509c680446970154eeef3164f433b4be
[]
no_license
Taomercy/PythonLab
026ff1828e14ae31b56731159253f8e1c89bfc70
0ae5bc0ec9a7eff99c7052a927dbd467f02ef727
refs/heads/master
2023-06-24T00:01:44.109063
2023-06-08T09:14:01
2023-06-08T09:14:01
157,644,026
0
0
null
2023-04-01T14:34:45
2018-11-15T03:02:32
JavaScript
UTF-8
Python
false
false
420
py
# import requests # # response = requests.get("http://www.baidu.com/") # print(response.text) class Animal(object): def drinking(self): print('animal drinking') def eating(self, food): print('animal eating') class Cat(Animal): def drinking(self): super().drinking() def ea...
[ "taomercy@qq.com" ]
taomercy@qq.com
2821b6751f2832175ac71726542e69ab688ce3e8
6398ec7c09a3e3e8ac7e85128926ebd0d49c96fd
/matminer/featurizers/tests/test_base.py
ef5dbeda9eb408a558cd3b9892c5552d5161ea2d
[ "LicenseRef-scancode-hdf5", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
ahzeeshan/matminer
a5c2bd87dc519d17d8ef269291f4643f64669c74
03587272a6eeec94812ac616cfe51ca033a3da05
refs/heads/master
2021-05-14T02:52:53.943852
2018-01-05T23:23:25
2018-01-05T23:23:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,866
py
from __future__ import unicode_literals, division, print_function import unittest import pandas as pd import numpy as np from pymatgen.util.testing import PymatgenTest from matminer.featurizers.base import BaseFeaturizer class SingleFeaturizer(BaseFeaturizer): def feature_labels(self): return ['y'] ...
[ "ward.logan.t@gmail.com" ]
ward.logan.t@gmail.com
8ca9df690d18fff776ca3bbcc8431f4e37ee61ef
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/comp/migratingvmtask.py
0fbd7cb9dacebf1c33a24536ee0bb22641993692
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
18,349
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
006ffac831da4fd91afe278994a1e80cf9a83b09
7e517fd0d350d789d01910c78c73d481e2bff0ee
/Data Mining/DSE Live Chart/400LinesTest1.py
caecd3187e31e28e5a6fc09f4dc66fd286fddc1c
[]
no_license
ScarletMcLearn/DataScience
9cbebd981bdb0f1fe23990347eaec4cf9ce933c9
6886a9ebf2752a6f89d4e0d86cf8a5853e0f02cd
refs/heads/master
2023-08-30T22:12:33.384497
2023-07-27T18:21:56
2023-07-27T18:21:56
81,658,203
1
1
null
2023-08-30T00:03:32
2017-02-11T14:29:32
Jupyter Notebook
UTF-8
Python
false
false
2,764
py
from bokeh.io import curdoc from bokeh.models import ColumnDataSource from bokeh.plotting import figure from bokeh.layouts import row from random import randint from functools import partial import pandas as pd import os # Variables for saving/loading data save_to_disk = False load_from_disk = False # Chunk size for ...
[ "noreply@github.com" ]
ScarletMcLearn.noreply@github.com
6eb755f4bcfe47a82bae95cea7246fe3a23a45c4
7b75735b6d894d0c3bb40d657dc4c4eb436716c1
/decompiled_code/library/tokenize.py
173483c928185978a0f9e1590dffccc12f537a08
[]
no_license
anton-shipulin/TRISIS-TRITON-HATMAN
fe54fb994214e35f80d39c26fbc5289f0b57b2bd
1b167a9414b479331fb35a04eace75bb0e736005
refs/heads/master
2020-04-06T23:57:38.833044
2018-11-16T22:12:01
2018-11-16T22:12:01
157,886,273
3
0
null
2018-11-16T15:30:59
2018-11-16T15:30:58
null
UTF-8
Python
false
false
17,051
py
# uncompyle6 version 2.14.1 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.12 (default, Nov 19 2016, 06:48:10) # [GCC 5.4.0 20160609] # Embedded file name: tokenize.pyc # Compiled at: 2016-06-25 21:46:20 """Tokenization help for Python programs. generate_tokens(readline) is a generator that breaks a stre...
[ "ICSrepo" ]
ICSrepo