blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
00d0a14e123abd54a6e59a43184ae690361ef49d
acbb6e1e33cf2c5dae45c73e3d07723ce21f1cf9
/migrations/versions/ad4630b5d9d4_followers.py
6b6dd161cc165a486f3c1637ff7b444302d21143
[]
no_license
Tur-4000/microblog
24edde54599937bc97bf782861868fea0f57814e
24de02ed7c1d417b68171079dc366833f7d2e6c7
refs/heads/master
2022-05-25T22:16:10.609591
2018-08-02T20:34:40
2018-08-02T20:34:40
141,682,858
1
0
null
2022-05-25T00:20:33
2018-07-20T08:05:00
Python
UTF-8
Python
false
false
840
py
"""followers Revision ID: ad4630b5d9d4 Revises: 6f99f9ee47c0 Create Date: 2018-07-24 17:35:58.696784 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ad4630b5d9d4' down_revision = '6f99f9ee47c0' branch_labels = None depends_on = None def upgrade(): # ### ...
[ "tur.4000@gmail.com" ]
tur.4000@gmail.com
b54dbcbba5b87d5e208a4286878095d159ab7260
4f75cc33b4d65d5e4b054fc35b831a388a46c896
/test_watchlist.py
395cd36afd93c199d6f54cfb098279bd0d6044b4
[]
no_license
Lr-2002/newpage
c3fe2acc451e24f6408996ea1271c61c321de702
c589ad974e7100aa9b1c2ccc095a959ff68069b6
refs/heads/main
2023-09-03T06:13:53.428236
2021-11-23T10:41:21
2021-11-23T10:41:21
402,606,000
0
0
null
null
null
null
UTF-8
Python
false
false
8,048
py
from os import name from re import A, T import unittest from app import app, db, Movie, User class WatchlistTestCase(unittest.TestCase): def setUp(self): app.config.update( TESTING = True, SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:' ) db.create_all() ...
[ "2629651228@qq.com" ]
2629651228@qq.com
9dedcdee6a2d68515c547bd4a1b13efe3b23bdce
3a891a79be468621aae43defd9a5516f9763f36e
/desktop/core/ext-py/dnspython-1.15.0/examples/ddns.py
f351524ee738290cfe64177208bb0df88bbff61f
[ "LicenseRef-scancode-warranty-disclaimer", "ISC", "Apache-2.0" ]
permissive
oyorooms/hue
b53eb87f805063a90f957fd2e1733f21406269aa
4082346ef8d5e6a8365b05752be41186840dc868
refs/heads/master
2020-04-15T20:31:56.931218
2019-01-09T19:02:21
2019-01-09T19:05:36
164,998,117
4
2
Apache-2.0
2019-01-10T05:47:36
2019-01-10T05:47:36
null
UTF-8
Python
false
false
1,204
py
#!/usr/bin/env python # # Use a TSIG-signed DDNS update to update our hostname-to-address # mapping. # # usage: ddns.py <ip-address> # # On linux systems, you can automatically update your DNS any time an # interface comes up by adding an ifup-local script that invokes this # python code. # # E.g. on my systems I have...
[ "yingchen@cloudera.com" ]
yingchen@cloudera.com
499388b2165572001dc1138029488a7777cf7e8c
45fdc51cf264bbd50e59655440eefc91451c50ea
/text/src/textwrap_dedent.py
5084ccaedb083bd8a9ae1878d3c3217339c0efd4
[]
no_license
blindij/python3_stl
2163043f3a9113eac21a48a35685a4a01987e926
ea138e25f8b5bbf7d8f78e4b1b7e2ae413de4735
refs/heads/master
2021-12-24T20:37:54.055116
2021-09-29T13:37:38
2021-09-29T13:37:38
191,508,648
0
0
null
2019-08-27T15:45:53
2019-06-12T06:10:30
Python
UTF-8
Python
false
false
142
py
import textwrap from textwrap_example import sample_text dedented_text = textwrap.dedent(sample_text) print('Dedented') print(dedented_text)
[ "blindij@users.noreply.github.com" ]
blindij@users.noreply.github.com
2eb81e6bc89d77f0ee7640edaec9543348a8f465
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/315/101991/submittedfiles/minha_bib.py
37dfe39276605bb65b991985c20942c3898a1b93
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
3,182
py
# -*- coding: utf-8 -*- import random #Simbolo que o Jogador quer utilizar def solicitaSimbolodoHumano(a): a = input('\nQual símbolo você deseja utilizar no jogo? ') while a!='O' and a!='X' and a!='o' and a!='x': a = input('\nQual símbolo você deseja utilizar no jogo? ') if a == 'x' or a =='X': ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
80de93ce6ac31685b8012386a62622a1db6f1fc7
aa9297175621fcd499cad5a0373aaad15f33cde8
/impractical_py_projects/04/null_cipher_finder.py
217c00b8e15b8e5e7cc33e404b729d1f1166c3ca
[]
no_license
eflipe/python-exercises
a64e88affe8f9deb34e8aa29a23a68c25e7ba08a
b7a429f57a5e4c5dda7c77db5721ca66a401d0a3
refs/heads/master
2023-04-26T19:19:28.674350
2022-07-19T20:53:09
2022-07-19T20:53:09
192,589,885
0
0
null
2023-04-21T21:23:14
2019-06-18T18:06:14
HTML
UTF-8
Python
false
false
1,433
py
import sys import string def load_text(file): """Load a text file as a string""" with open(file) as f: file = f.read().strip() return file def sole_null_cipher(message, lookahead): for i in range(1, lookahead+1): plaintext = '' count = 0 found_first = False ...
[ "felipecabaleiro@gmail.com" ]
felipecabaleiro@gmail.com
14378df2d496adc2ab62a597cefb735979db3c8d
6219e6536774e8eeb4cadc4a84f6f2bea376c1b0
/scraper/storage_spiders/muahangtructuyencomvn.py
e3ab3bbbf0f13987eaeba9a31f3ed5a9bd875132
[ "MIT" ]
permissive
nguyenminhthai/choinho
109d354b410b92784a9737f020894d073bea1534
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
refs/heads/master
2023-05-07T16:51:46.667755
2019-10-22T07:53:41
2019-10-22T07:53:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='product-info']/h1[@class='mainbox-title']", 'price' : "//div[@class='product-info']/div[@class='clear']/p/span/span/span...
[ "nguyenchungthuy.hust@gmail.com" ]
nguyenchungthuy.hust@gmail.com
ee57f682e295cbfd9747da50306e7deadad5f554
b66e70a8bb3c53595acd01dceb23298694884b67
/cloudy/cloudy/models.py
92cd7f135177bdbc3b72c907c8741df29eb2c148
[]
no_license
flupke/cloudy-release
d7735a38d79f816c52da3d983c714512a32919b1
6b160188a7067f125b107eb68dc8db4bbb4bfdf4
refs/heads/master
2016-09-06T05:23:40.856287
2013-02-23T18:17:16
2013-02-23T18:17:16
8,377,854
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
from django.db import models class SshIdentity(models.Model): name = models.CharField(max_length=256) public = models.TextField() private = models.TextField() class HostsGroup(models.Model): name = models.CharField(max_length=256) ssh_user = models.CharField(max_length=32, blank=True) ssh_...
[ "luper.rouch@gmail.com" ]
luper.rouch@gmail.com
6adc753cf5c0b93e22a7d940f84597658076e3fa
cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde
/F/FindResultantArrayAfterRemovingAnagrams.py
b380d59a74a054967ffe8ad6c2e2113609d1576b
[]
no_license
bssrdf/pyleet
8861bbac06dfe0f0f06f6ad1010d99f8def19b27
810575368ecffa97677bdb51744d1f716140bbb1
refs/heads/master
2023-08-20T05:44:30.130517
2023-08-19T21:54:34
2023-08-19T21:54:34
91,913,009
2
0
null
null
null
null
UTF-8
Python
false
false
1,973
py
''' -Easy- You are given a 0-indexed string array words, where words[i] consists of lowercase English letters. In one operation, select any index i such that 0 < i < words.length and words[i - 1] and words[i] are anagrams, and delete words[i] from words. Keep performing this operation as long as you can select an in...
[ "merlintiger@hotmail.com" ]
merlintiger@hotmail.com
ce2343c09e39f921202647e30c1bfea5cae7d3a8
463c053bcf3f4a7337b634890720ea9467f14c87
/rllib/examples/deterministic_training.py
3a0a9c725acda75ce6b9cd7557c4fb04fd59a650
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
pdames/ray
e8faddc4440976211a6bcead8f8b6e62c1dcda01
918d3601c6519d333f10910dc75eb549cbb82afa
refs/heads/master
2023-01-23T06:11:11.723212
2022-05-06T22:55:59
2022-05-06T22:55:59
245,515,407
1
1
Apache-2.0
2023-01-14T08:02:21
2020-03-06T20:59:04
Python
UTF-8
Python
false
false
2,464
py
""" Example of a fully deterministic, repeatable RLlib train run using the "seed" config key. """ import argparse import ray from ray import tune from ray.rllib.examples.env.env_using_remote_actor import ( CartPoleWithRemoteParamServer, ParameterStorage, ) from ray.rllib.policy.sample_batch import DEFAULT_POLI...
[ "noreply@github.com" ]
pdames.noreply@github.com
f9ac252177ad6e419233ca977c739c8b9a08c30c
4bf5a16c17f888d5e0a2b043a6b752a6111824fd
/src/biotite/structure/util.py
34495270dbcba6c8b3f79077462e59bc1fe60708
[ "BSD-3-Clause" ]
permissive
AAABioInfo/biotite
1b0e8c6d6fbc870ff894fc1ae91c32fe6568aed3
693f347534bcf2c8894bbcabf68c225c43190ec6
refs/heads/master
2022-07-06T01:15:25.373371
2020-05-18T13:27:01
2020-05-18T13:27:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,226
py
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. """ Utility functions for in internal use in `Bio.Structure` package """ __name__ = "biotite.structure" __author__ = "Patrick Kunzmann" __all__ = ["vector_dot", "n...
[ "patrick.kunzm@gmail.com" ]
patrick.kunzm@gmail.com
742ed5a7da53469a0161d9225e9841a8d8cd06b4
90ec9a009d84dd7eebbd93de4f4b9de553326a39
/app/customer/views.py
f18aa6381cc21c8fb4bfde7ab8a60775f87a3157
[]
no_license
alexiuasse/NipponArDjango
18a86bb108b9d72b36c8adf7c4344398cc4ca6b2
ddc541a8d7e4428bde63c56f44354d6f82e0f40d
refs/heads/master
2023-08-03T12:16:56.431870
2021-07-15T23:43:33
2021-07-15T23:43:33
278,093,323
0
0
null
2021-09-22T20:04:15
2020-07-08T13:13:22
CSS
UTF-8
Python
false
false
7,674
py
# Created by Alex Matos Iuasse. # Copyright (c) 2020. All rights reserved. # Last modified 24/08/2020 17:44. from typing import Dict, Any from django.contrib.admin.utils import NestedObjects from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin from django.shortcuts import render from ...
[ "alexiuasse@gmail.com" ]
alexiuasse@gmail.com
a7c26984aed690a4bffc47db05dcfca2eaafb289
26f6313772161851b3b28b32a4f8d255499b3974
/Python/MaximumNestingDepthofTwoValidParenthesesStrings.py
67d4f477e9fa483c28fe2874e85607452ffd9d93
[]
no_license
here0009/LeetCode
693e634a3096d929e5c842c5c5b989fa388e0fcd
f96a2273c6831a8035e1adacfa452f73c599ae16
refs/heads/master
2023-06-30T19:07:23.645941
2021-07-31T03:38:51
2021-07-31T03:38:51
266,287,834
1
0
null
null
null
null
UTF-8
Python
false
false
1,751
py
""" A string is a valid parentheses string (denoted VPS) if and only if it consists of "(" and ")" characters only, and: It is the empty string, or It can be written as AB (A concatenated with B), where A and B are VPS's, or It can be written as (A), where A is a VPS. We can similarly define the nesting depth depth(S)...
[ "here0009@163.com" ]
here0009@163.com
f7dd8f55dc709f693b0211d8fcd73662147731f0
5574620c834f96d4baf50d6aa349242dae7c17af
/41.first-missing-positive.py
76b5ddd14a2ff4b66c5f2817265ba08c132b15ab
[]
no_license
Ming-H/leetcode
52dceba5f9a605afbdaa65e286a37205873e21bb
057cee4b830603ac12976ed7d5cea8d06a9b46a0
refs/heads/main
2023-09-02T21:30:48.796395
2023-09-01T01:59:48
2023-09-01T01:59:48
489,290,172
1
0
null
null
null
null
UTF-8
Python
false
false
870
py
# # @lc app=leetcode id=41 lang=python3 # # [41] First Missing Positive # class Solution: def firstMissingPositive(self, nums): """ 不能用额外空间,那就只有利用数组本身,跟Counting sort一样, 利用数组的index来作为数字本身的索引,把正数按照递增顺序依次放到数组中。 即让A[0]=1, A[1]=2, A[2]=3, ... , 这样一来,最后如果哪个数组元素 违反了A[i]=i+1即说明i+1就是我...
[ "1518246548@qq.com" ]
1518246548@qq.com
d28bf400e50f8c6d766ed1c1fb8dc15f1e4e723f
a3c662a5eda4e269a8c81c99e229879b946a76f6
/.venv/lib/python3.7/site-packages/pylint/test/functional/trailing_comma_tuple.py
a832ccc28973265a5df8150f54034ca8fc5a239a
[ "MIT" ]
permissive
ahmadreza-smdi/ms-shop
0c29da82c58b243507575672bbc94fb6e8068aeb
65ba3f3061e2ac5c63115b08dadfe7d67f645fb6
refs/heads/master
2023-04-27T19:51:34.858182
2019-11-24T20:57:59
2019-11-24T20:57:59
223,616,552
6
2
MIT
2023-04-21T20:51:21
2019-11-23T16:09:03
Python
UTF-8
Python
false
false
732
py
"""Check trailing comma one element tuples.""" # pylint: disable=bad-whitespace, missing-docstring AAA = 1, # [trailing-comma-tuple] BBB = "aaaa", # [trailing-comma-tuple] CCC="aaa", # [trailing-comma-tuple] FFF=['f'], # [trailing-comma-tuple] BBB = 1, 2 CCC = (1, 2, 3) DDD = ( 1, 2, 3, ) EEE = ( "aaa", ) de...
[ "ahmadreza.smdi@gmail.com" ]
ahmadreza.smdi@gmail.com
283575d0431210f70f269274660f9a4d6ba55839
667c324c7e8ac6a38cc91cd8ec4921a0dc9a0492
/backend/accounts/models.py
1340ee3158c537192b304432dd0f40f65bb50e5d
[]
no_license
litvaOo/elmy-clone
86fdf80fff91642c088fa3cee50bd4ad32518afd
eb30b5fd2eb8cfc177f3c6fec53d61722c7fe9cd
refs/heads/master
2021-05-08T02:33:48.277250
2017-10-23T16:11:21
2017-10-23T16:11:21
108,006,369
0
0
null
null
null
null
UTF-8
Python
false
false
1,013
py
from django.db import models from django.contrib.auth.models import AbstractUser class ServiceProvider(models.Model): rating = models.DecimalField(max_digits=2, decimal_places=1) description = models.CharField(max_length=1000) latitude = models.FloatField(default=0) longitude = models.FloatField(defau...
[ "alexander.ksenzov@gmail.com" ]
alexander.ksenzov@gmail.com
8bac119f9df15d577d94fded7585b260efde9cc7
a563a95e0d5b46158ca10d6edb3ca5d127cdc11f
/tccli/services/captcha/captcha_client.py
8382673aac4f34d3d54b5528b41376e67b95efa9
[ "Apache-2.0" ]
permissive
SAIKARTHIGEYAN1512/tencentcloud-cli
e93221e0a7c70f392f79cda743a86d4ebbc9a222
d129f1b3a943504af93d3d31bd0ac62f9d56e056
refs/heads/master
2020-08-29T09:20:23.790112
2019-10-25T09:30:39
2019-10-25T09:30:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,063
py
# -*- coding: utf-8 -*- import os import json import tccli.options_define as OptionsDefine import tccli.format_output as FormatOutput from tccli.nice_command import NiceCommand import tccli.error_msg as ErrorMsg import tccli.help_template as HelpTemplate from tccli import __version__ from tccli.utils import Utils from ...
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
69e1dec6b346397c1857340caf4299600c26a600
2fe8194db578820629740e7022326355ef76632a
/instaladores/migrations/0004_merge_20201128_1647.py
52b65ade950c986c1f9bf531762ba99d0d9e0cfe
[]
no_license
Aleleonel/newloma
01213a14036aa7437b5951b8bb7ef202de6b86c2
7910c5b3170b953134240536b6e5376c96382266
refs/heads/master
2023-01-18T19:15:08.890658
2020-11-28T20:22:48
2020-11-28T20:22:48
312,459,505
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
# Generated by Django 3.1.3 on 2020-11-28 19:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('instaladores', '0003_instaladores_email'), ('instaladores', '0002_auto_20201122_1232'), ] operations = [ ]
[ "you@example.com" ]
you@example.com
d90fb9bc6062203554935aaa9d2091c9aa8edcdb
72579db4299be6d512a766ce38ae50e3c7753368
/.history/Pythonlearning/day9_20200802091221.py
c5ab6ce577d7bd4429235686a4956391bbf742ca
[]
no_license
moteily/Python_Learning
f0d1abf360ad417112051ba52f32a141452adb2d
c294aa1e373254739fb372918507cd7dbe12c999
refs/heads/master
2022-11-26T11:09:48.145308
2020-08-04T08:47:15
2020-08-04T08:47:15
284,379,822
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
#接上一天的第九章 # 静态方法和类方法: # 定义和表示:静态方法和类方法 class Myclass: def smeth(): print('This is a static method')\ smeth = staticmethod(smeth) def cmeth(cls)
[ "994283977@qq.com" ]
994283977@qq.com
5fba23b3bfb05e91ac578ebeb773c34c16a2d760
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoEgamma/EgammaIsolationAlgos/python/eleTrackExtractorBlocks_cff.py
a0465cbb16938dc958035bcbba12f0a0b49dbf37
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
643
py
import FWCore.ParameterSet.Config as cms EleIsoTrackExtractorBlock = cms.PSet( ComponentName = cms.string('EgammaTrackExtractor'), inputTrackCollection = cms.InputTag("generalTracks"), DepositLabel = cms.untracked.string(''), Diff_r = cms.double(9999.0), Diff_z = cms.double(0.2), DR_Max = cms.d...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
0f679e9becb942faabe154fdacf30c7f881b2d4f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/671.py
42a2e415e2dafaa7888c38febad69fbcb7a3fdab
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,988
py
FILE_NAME = 'C-large'; INPUT_FILE = FILE_NAME+'.in'; OUTPUT_FILE = FILE_NAME+'.out'; def algorithm(N, K): segments = [N] while K > 0: segments.sort(reverse=True) biggest_segment = segments[0] del segments[0] if(biggest_segment % 2 == 0): left = biggest_segment / 2 - 1 ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
be370b1c9635cd0f42269dd7fcec37bb899a703c
f0ef364ed2d20390ff76bc7c5b9506cb41ba2e71
/widgets4py/websocket/examples/w2ui_toolbar_example.py
9f430804dd5066d43512e58a6ed47619c6c1eb7f
[]
no_license
singajeet/widgets4py
07c983e06d6101b6421bf96224fa1bcc3793f47a
e3ca6a459dee896af755278257a914efe04b1d11
refs/heads/master
2020-06-09T19:08:20.295781
2020-02-14T15:55:23
2020-02-14T15:55:23
193,489,543
1
0
null
null
null
null
UTF-8
Python
false
false
4,188
py
import os import webview from flask import Flask # , url_for from flask_socketio import SocketIO from widgets4py.base import Page from widgets4py.websocket.w2ui.ui import Toolbar, ToolbarButton, ToolbarCheck from widgets4py.websocket.w2ui.ui import ToolbarHTML, ToolbarMenu, ToolbarMenuCheck from widgets4py.websocket.w...
[ "singajeet@gmail.com" ]
singajeet@gmail.com
23ee2ea3fb54a9d1d459ca0edb986191ba823dca
3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2
/src/Week9/Efficiency/Sequencing.py
5cd59f4ad5c2b4f90a8180536091d1c58517304a
[]
no_license
theguyoverthere/CMU15-112-Spring17
b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8
b8287092b14e82d2a3aeac6c27bffbc95382eb34
refs/heads/master
2021-04-27T08:52:45.237631
2018-10-02T15:38:18
2018-10-02T15:38:18
107,882,442
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
# what is the total cost here? L = [ 52, 83, 78, 9, 12, 4 ] # assume L is an arbitrary list of length N L.sort() # This is O(NlogN) L.sort(reverse=True) # This is O(NlogN) L[0] -= 5 # This is O(1) print(L.count(L[0]) + sum(L)) # This is O(N) + O(N)
[ "tariqueanwer@outlook.com" ]
tariqueanwer@outlook.com
ee1620b5cccb60aa52d2725d3e10e369eb226f0f
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/suntimes/testcase/firstcases/testcase1_004.py
af83c435e940513a3fe6bb22542eaddd2ba85ec4
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
4,328
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
9dbc5aad569ad45d58831448aa34a51bc8258984
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02996/s612893539.py
7bab9fefb9759e4aca7500b4bfc54fe21ec5e098
[]
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
663
py
import sys import math import itertools import bisect from copy import copy from collections import deque,Counter from decimal import Decimal def s(): return input() def i(): return int(input()) def S(): return input().split() def I(): return map(int,input().split()) def L(): return list(input().split()) def l(): retur...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2146132029e154c9162b74995f0cf34f0ef3342e
60654caf2633613021470d0285817343f76223e5
/daily_catch/public_update/config.py
566a37dc4796f6f4c390e00778aea0555a926b77
[]
no_license
whoiskx/com_code
79460ccee973d1dfe770af3780c273e4a0f466c9
388b5a055393ee7768cc8525c0484f19c3f97193
refs/heads/master
2020-04-09T23:14:28.228729
2018-12-06T07:10:25
2018-12-06T07:10:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
# -*- coding: utf-8 -*- import os read_ver_url = 'http://dispatch.yunrunyuqing.com:38082/resources/sourceVersion/weixin/version.txt' download_url = 'http://dispatch.yunrunyuqing.com:38082/resources/sourceVersion/weixin/public_update.zip' base_path = os.path.dirname(os.path.abspath(__file__)) core_spider_path = os.pa...
[ "574613576@qq.com" ]
574613576@qq.com
0b313513a4e40c31df181c98f2e15203095458e5
9bfd93b93531c7d66335fffded2d00db0c1f8935
/blog_censurfridns_dk/blog/translation.py
9e8157edd7537f26fe16f55c391113b0d9039730
[]
no_license
mortensteenrasmussen/blog.censurfridns.dk
7d5da3961b6abf4124fddba7b1fdf5a4fc014c2c
53939dee90ad5028256aace4c876d38695ec9e07
refs/heads/master
2021-01-14T14:23:17.443442
2016-08-29T20:11:22
2016-08-29T20:11:22
65,412,684
0
0
null
2016-08-10T20:03:31
2016-08-10T20:03:31
null
UTF-8
Python
false
false
412
py
from modeltranslation.translator import register, TranslationOptions from .models import BlogPost from taggit.models import Tag @register(BlogPost) class BlogPostTranslationOptions(TranslationOptions): fields = ('title', 'body', 'slug') required_languages = ('en', 'da') @register(Tag) class TaggitTranslatio...
[ "thomas@gibfest.dk" ]
thomas@gibfest.dk
60de944ffe3715da94961884dba29a2e0af82137
2937d60b7f5259b4899ba5af08146bd874529a67
/Assignment 5 q4.py
d9776a0e669e961e49153c7ebd3133b4fe52a833
[]
no_license
gourav47/Let-us-learn-python
9a2302265cb6c47e74863359c79eef5a3078358a
b324f2487de65b2f073b54c8379c1b9e9aa36298
refs/heads/master
2021-06-27T03:33:27.483992
2021-01-07T12:26:16
2021-01-07T12:26:16
204,323,390
1
1
null
2020-07-19T14:25:12
2019-08-25T16:53:56
Python
UTF-8
Python
false
false
212
py
'''python script to print square of numbers from a to b''' a=int(input("Enter the first number: ")) b=int(input("Enter second number: ")) if a>b: a,b=b,a for i in range(a,b+1): print(i**2,end=' ')
[ "noreply@github.com" ]
gourav47.noreply@github.com
d7c0d7693181b79f9f44abbeaedd2d8e7988f5ff
caa14cf78fe15affc96acc3de6f4fb1b54bcdf70
/sap/sap/saplib/tests/test_saputils.py
6eec437d874842f6cbed599b9adb923e141e3f69
[]
no_license
jesstherobot/Sycamore_FPGA
2e3f0dea21482de87ea444506ae2af3f58b5a344
d1096e15f07b17a8dcb2276e312c5ba3e0006632
refs/heads/master
2021-01-18T07:57:14.268157
2011-10-19T22:46:28
2011-10-19T22:46:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,689
py
import unittest import sys import os class Test (unittest.TestCase): """Unit test for saputils""" def setUp(self): os.environ["SAPLIB_BASE"] = sys.path[0] + "/saplib" #print "SAPLIB_BASE: " + os.getenv("SAPLIB_BASE") def test_create_dir(self): """create a directory""" import saputils result = saputil...
[ "cospan@gmail.com" ]
cospan@gmail.com
f7ecbb6e60d58f81414014d4eb23c770a0e6acd9
c4a8e44b171bbfcce4773fbd5820be40d991afab
/dispatcher_sample.fcgi
299c4ad0e1726445c0909f317429f2fd66a4824f
[ "MIT" ]
permissive
sveetch/DjangoSveetchies
a2462c29839d60736077f647b3014396ce700f42
0fd4f23d601287dbfb5a93b4f9baa33481466a25
refs/heads/master
2021-01-01T20:48:08.824288
2013-03-10T12:14:56
2013-03-10T12:14:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
638
fcgi
#!/usr/bin/python # -*- coding: utf-8 -*- """ FastCGI dispatcher for development environment """ import sys, os sys.path.insert(0, '/home/django/py_libs') # An optionnal path where is installed some Python libs sys.path.insert(0, '/home/django/gits/') # Path to the directory which contains 'DjangoSveetchies' # Specif...
[ "sveetch@gmail.com" ]
sveetch@gmail.com
524a64d718c9a87331dcd95f4b5511761a102a97
3e397609ebd59d50ed0f9928e6bd039030e35f9a
/contract_api/lambda_handler.py
4757ef1411c05ce3dff3425d4a41156dd03276bb
[]
no_license
prashantramangupta/marketplace
d8f64462668f1bb15c37fd52c17236d7565e5ae5
acae91d90ec8626bc79ae46168c37a4d8bbab46a
refs/heads/master
2020-06-05T15:48:19.063615
2019-06-26T05:28:16
2019-06-26T05:28:16
159,120,771
0
0
null
null
null
null
UTF-8
Python
false
false
4,511
py
import json import logging import re import traceback from schema import Schema, And from common.constant import NETWORKS from common.repository import Repository from mpe import MPE from registry import Registry NETWORKS_NAME = dict((NETWORKS[netId]['name'], netId) for netId in NETWORKS.keys()) db = dict((netId, Rep...
[ "you@example.com" ]
you@example.com
ec204e589862d7db078962cf5fe0c41711f5cbcb
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Logit/trend_Lag1Trend/cycle_30/ar_12/test_artificial_32_Logit_Lag1Trend_30_12_20.py
b308b4cbc07f69e3c5a3e07412703d09b5786f7b
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
266
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 30, transform = "Logit", sigma = 0.0, exog_count = 20, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
699bfc4d77e051f4b0b9b95cde59fbb62b5cf72d
4edbeb3e2d3263897810a358d8c95854a468c3ca
/python3/version/python_version.py
dec52afee6ab14dce005f6ae31bb0e544017de89
[ "MIT" ]
permissive
jtraver/dev
f505d15d45b67a59d11306cc7252114c265f388b
2197e3443c7619b856470558b737d85fe1f77a5a
refs/heads/master
2023-08-06T02:17:58.601861
2023-08-01T16:58:44
2023-08-01T16:58:44
14,509,952
0
1
MIT
2020-10-14T18:32:48
2013-11-19T00:51:19
Python
UTF-8
Python
false
false
672
py
#!/usr/bin/env python3 #!/usr/bin/python import os import platform import sys import aerospike def main(): print("\nos") print("os.name = %s" % str(os.name)) print("sys.platform = %s" % str(sys.platform)) print("platform.platform() = %s" % str(platform.platform())) print("\npython") print("sy...
[ "john@aeropsike.com" ]
john@aeropsike.com
bffc4998a73a001af96ff4d89986c7f07ba844b4
65f94b2fe3794b6fd682e52c7f4047a737cae6c7
/env/bin/symilar
f88c0874a96d9c0b5e2366b5b1482cc352a5092d
[]
no_license
udoyen/vgg-project-challenge
47e7e0c5352437f3df00aff9ac055dbadaadebb5
76a005edec6e77f9467b67bda20002c58abef7a9
refs/heads/master
2022-10-04T14:42:46.267458
2020-02-11T10:47:22
2020-02-11T10:47:22
238,899,753
0
1
null
2022-09-16T18:17:10
2020-02-07T10:45:53
Python
UTF-8
Python
false
false
276
#!/home/george/Documents/vgg-docs/vgg-project-challenge/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from pylint import run_symilar if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run_symilar())
[ "datameshprojects@gmail.com" ]
datameshprojects@gmail.com
19b0f1f8a7c09dc649e0cad037b8f1d8ebb8b242
81579ecd0678d652bbb57ff97529631fcfb74b12
/corehq/motech/openmrs/tests/test_repeater_helpers.py
83282f2a7427ec1fa865d3dd1356587c444939b9
[ "BSD-3-Clause" ]
permissive
dungeonmaster51/commcare-hq
64fece73671b03c1bca48cb9d1a58764d92796ea
1c70ce416564efa496fb4ef6e9130c188aea0f40
refs/heads/master
2022-12-03T21:50:26.035495
2020-08-11T07:34:59
2020-08-11T07:34:59
279,546,551
1
0
BSD-3-Clause
2020-07-31T06:13:03
2020-07-14T09:51:32
Python
UTF-8
Python
false
false
1,089
py
from unittest import skip from nose.tools import assert_regexp_matches from corehq.motech.auth import BasicAuthManager from corehq.motech.openmrs.repeater_helpers import generate_identifier from corehq.motech.requests import Requests DOMAIN = 'openmrs-test' BASE_URL = 'https://demo.mybahmni.org/openmrs/' USERNAME = ...
[ "nhooper@dimagi.com" ]
nhooper@dimagi.com
dae9dc485e3fb180f377368fb642b0eeeb1004c6
1640189b5bf78114e2749a8ed1216e099bae9814
/src/xmlsec/rsa_x509_pem/pyasn1/debug.py
5aa42ced36ef65aadacddb629cebd74977b9d1a4
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
hfalcic/pyXMLSecurity
fb69cce12c1b417928d85b91a4c3dc87f46935ec
b29a68e6d21a0485b9190be45d532b9042fdc918
refs/heads/master
2020-04-03T13:19:13.016532
2014-07-08T17:57:55
2014-07-08T17:57:55
21,471,398
0
1
null
null
null
null
UTF-8
Python
false
false
1,512
py
import sys from .compat.octets import octs2ints from . import error from . import __version__ flagNone = 0x0000 flagEncoder = 0x0001 flagDecoder = 0x0002 flagAll = 0xffff flagMap = { 'encoder': flagEncoder, 'decoder': flagDecoder, 'all': flagAll } class Debug: defaultPrinter = sys.stde...
[ "harvey.falcic@gmail.com" ]
harvey.falcic@gmail.com
c9cbfca3f4c84cb5e219730e43194e7238cda653
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/358/usersdata/296/102792/submittedfiles/estatistica.py
79ada402f0ec9ec03a71780b75717f4fa32662f5
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
# -*- coding: utf-8 -*- def media(lista): soma = 0 for i in range(0,len(lista),1): soma = soma + lista[i] resultado = soma/len(lista) return resultado def media(lista): media = sum(lista)/len(lista) return media def desvio_padrao(lista): somatorio = 0 for i in range (0,len...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9cab9dc37c46f3af6d44d688dd5c03fcf4425162
10c459a49cbc8ee2dc3bc2a8353c48b5a96f0c1d
/AI/nai_bayes.py
131804de264e30fc0df16076a4ac00543533cbaf
[]
no_license
alinzel/Demo
1a5d0e4596ab4c91d7b580da694b852495c4ddcc
cc22bbcdbd77190014e9c26e963abd7a9f4f0829
refs/heads/master
2020-03-10T22:26:30.247695
2018-04-15T15:37:28
2018-04-15T15:37:28
129,619,168
0
0
null
null
null
null
UTF-8
Python
false
false
3,994
py
import numpy as np from sklearn.naive_bayes import MultinomialNB, BernoulliNB from sklearn.datasets import fetch_20newsgroups from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.model_selection import GridSearchCV from sklearn import metrics from time import time from pprint import pprint import ma...
[ "944951481@qq.com" ]
944951481@qq.com
080a6e7e8f5e0c897c92846f23df703ff1cf81f0
a8750439f200e4efc11715df797489f30e9828c6
/LeetCodeContests/87/845_longest_mountain.py
141d5018c884992b88f6afeddcd2fd5ae122f0db
[]
no_license
rajlath/rkl_codes
f657174305dc85c3fa07a6fff1c7c31cfe6e2f89
d4bcee3df2f501349feed7a26ef9828573aff873
refs/heads/master
2023-02-21T10:16:35.800612
2021-01-27T11:43:34
2021-01-27T11:43:34
110,989,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
''' Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold: B.length >= 3 There exists some 0 < i < B.length - 1 such that B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B[B.length - 1] (Note that B could be any subarray of A, including the entire array A.) Given an array A of int...
[ "raj.lath@gmail.com" ]
raj.lath@gmail.com
681440009127bf5750638d9a87a4155477b2fda3
43b34ed0be64771f236c086f716bc6a92ae3db32
/kt_ph_n.py
8073dcefb011746731594e8d83f99505915ad414
[]
no_license
elonca/LWB-benchmark-generator
ad5b6dc5e591941184056476db3ad13f01900879
7a7f28800f7574c98a3883f6edccad727dd509bc
refs/heads/main
2023-07-28T01:42:22.532324
2021-09-16T07:22:56
2021-09-16T07:22:56
407,061,367
0
0
null
2021-09-16T07:12:38
2021-09-16T07:12:37
null
UTF-8
Python
false
false
135
py
from k_ph_n import * def kt_ph_n(n): return str(kt_ph_n_f(n))[1:-1] def kt_ph_n_f(n): return left(n) |IMPLIES| Dia(right(n))
[ "u6427001@anu.edu.au" ]
u6427001@anu.edu.au
16b25ff5a3aed45017c060619a98e4dfce6a60d6
cbda89443b351bb2047180dad4e300c13dc3df7f
/Crystals/Morpurgo_sp_outer/Jobs/Pc/Pc_neut_neut_inner1_outer4/Pc_neut_neut_inner1_outer4.py
416385fcff412563b8446a40888f5125d9823323
[]
no_license
sheridanfew/pythonpolarisation
080f52979f98d26360a46412a10c8e3f51ee4549
178e2684e9a239a8e60af5f7b1eb414ac5f31e92
refs/heads/master
2021-07-10T01:07:40.978790
2021-03-11T16:56:37
2021-03-11T16:56:37
96,101,351
0
0
null
2017-07-03T13:37:06
2017-07-03T10:54:52
null
UTF-8
Python
false
false
5,279
py
import sys sys.path.append('../../../../../') from BasicElements import * from BasicElements.Register import GetRegister from BasicElements.MoleculeFactory import ReadMoleculeType from BasicElements.MoleculeFactory import GetMolecule from BasicElements.Crystal import * from Polarizability.GetDipoles import get_dipoles,...
[ "sheridan.few@gmail.com" ]
sheridan.few@gmail.com
894482ee3334014d91285e7f29af8f4772c1e0bf
dd80a584130ef1a0333429ba76c1cee0eb40df73
/external/chromium_org/tools/cr/main.py
dced8cd4069ceea9d47ee5b9b17ca6fc164b8c81
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-unknown" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
Python
false
false
3,092
py
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium cr tool main module. Holds the main function and all it's support code. """ import os import sys import cr import cr.auto.user import cr.autoco...
[ "karun.matharu@gmail.com" ]
karun.matharu@gmail.com
6d3560c2179b9703d5955c377a9989b5a7a236c0
34d88082307281333ef4aeeec012a3ff5f8ec06e
/w3resource/basic/Q098.py
c3ed4f05918371d4d44df3cbbb34edc91b0fb439
[]
no_license
JKChang2015/Python
a6f8b56fa3f9943682470ae57e5ad3266feb47a7
adf3173263418aee5d32f96b9ea3bf416c43cc7b
refs/heads/master
2022-12-12T12:24:48.682712
2021-07-30T22:27:41
2021-07-30T22:27:41
80,747,432
1
8
null
2022-12-08T04:32:06
2017-02-02T17:05:19
HTML
UTF-8
Python
false
false
148
py
# -*- coding: UTF-8 -*- # Q098 # Created by JKChang # Wed, 31/05/2017, 15:34 # Tag: # Description: Write a Python program to get the system time.
[ "jkchang2015@gmail.com" ]
jkchang2015@gmail.com
31ee5c556c25850ddd15704dede4c1ff0190e717
83e2824b060cea6290563a63dfc5a2caaddccc32
/problem019.py
3ab4e40b4de9a056bbdaac0afe9cb807e5089a42
[]
no_license
1tux/project_euler
b8f731155eb59c5cdb92efe68f0140695c5b6353
9a6c04d08a77d6e80eb15d203c8003870645415a
refs/heads/master
2021-01-09T20:17:35.502613
2016-10-03T16:19:50
2016-10-03T16:19:50
61,938,647
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
import datetime c = 0 for x in xrange(1901, 2001): for y in xrange(1, 13): if datetime.date(x, y, 1).weekday() == 1: c+=1 print c
[ "root" ]
root
f040059ed129aa620990f466c803b2a2a026b103
00a3f91db1e0bd349a0a120d8980429363446d67
/api/migrations/0004_merge_20180805_1637.py
a0c874598dea406d580c4e4f2a4cf32728b0e65b
[]
no_license
junkluis/cenecu_web
59130894d0584479b352fcd7a119aa2c6185a5e5
078b59308a93e40514b63c130c4506f98f929be4
refs/heads/master
2020-03-25T09:08:02.327198
2018-08-05T21:42:21
2018-08-05T21:42:21
143,649,219
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-08-05 21:37 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0003_auto_20180730_0141'), ('api', '0003_auto_20180729_2237'), ] operations ...
[ "lufezuro@gmail.com" ]
lufezuro@gmail.com
d51f21fe04ab46c872361e77f688ddde25e6690d
1ba68429cd4a1654a66dd7b0a7b8e91f81798073
/cart/admin.py
25928702bc82acc30d13248cd482e57f5dc03454
[]
no_license
crowdbotics-apps/test-002-31939
097234cc8a8870e39ece59640ad66a14c641b708
d669523f2ed3681d487d4a1a65645a642c6413c1
refs/heads/master
2023-08-29T21:34:54.106718
2021-11-12T17:25:07
2021-11-12T17:25:07
427,392,814
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
from django.contrib import admin from .models import Content, Product admin.site.register(Product) admin.site.register(Content) # Register your models here.
[ "team@crowdbotics.com" ]
team@crowdbotics.com
fb47a23ad30dfd0ef95a58c450969c5796386e1e
d83f50302702d6bf46c266b8117514c6d2e5d863
/wiggle-sort-ii.py
4e805ab4c2cb628a233a145c8732759446925784
[]
no_license
sfdye/leetcode
19764a6bdb82de114a2c82986864b1b2210c6d90
afc686acdda4168f4384e13fb730e17f4bdcd553
refs/heads/master
2020-03-20T07:58:52.128062
2019-05-05T08:10:41
2019-05-05T08:10:41
137,295,892
3
0
null
null
null
null
UTF-8
Python
false
false
285
py
class Solution: def wiggleSort(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ for i, num in enumerate(sorted(nums)[::-1]): nums[(i * 2 + 1) % (len(nums) | 1)] = num
[ "tsfdye@gmail.com" ]
tsfdye@gmail.com
fdc19d0a4f81488f5c242f4dfcda161c70c25497
a8d3471d8d2fa914a0f8bab0495b115e70538430
/handler.py
86e8d3670ac9432144feb56e01bd3d420ea7f28b
[]
no_license
davidbegin/morguebot
a03bbfa46cbfd6b916ace98a2f476e44d4843349
f62d75917d13b4a443c0f3c8e00f7dd82720d9f3
refs/heads/master
2022-12-22T14:52:20.398139
2020-01-17T15:56:04
2020-01-17T15:56:04
213,519,437
8
0
null
2022-12-08T06:49:48
2019-10-08T01:16:15
Python
UTF-8
Python
false
false
529
py
import json import os from glm.generic_lambda_handler import lambda_handler as generic_lambda_handler from flask_app import app import xl_bot import dungeon_gossiper def async_handler(messages, context): print(messages) def lambda_handler(event, context): result = generic_lambda_handler( event=eve...
[ "davidmichaelbe@gmail.com" ]
davidmichaelbe@gmail.com
4ca726894e8a47f19d38fc009e00fb4aaa6896df
bf4be1f469b049dccf41807514a168400e48cdd1
/Related Topics/Bit Manipulation/201. Bitwise AND of Numbers Range.py
c38348cbfcb27e1311a88564532ee0347c21b603
[]
no_license
billgoo/LeetCode_Solution
8bde6844ecc44c61a914f9c88030d8d3e724c947
360d144cee86aae877b6187a07f1957e673c3592
refs/heads/master
2022-04-26T16:10:00.380910
2022-04-20T04:54:06
2022-04-20T04:54:06
155,243,219
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
class Solution: def rangeBitwiseAnd(self, m: int, n: int) -> int: # bits shift """ e = 0 while m != n: m >>= 1 n >>= 1 e += 1 return m << e """ # Brian Kernighan's Algorithm # n & (n - 1) will remove the...
[ "billgoo0813@gmail.com" ]
billgoo0813@gmail.com
b9af3fae8856807e32bf2d31ce7e14ead62f9716
27010a7ad70bf69511858a91d42dc7a64e61b66d
/src/1763_longest_nice_substring.py
f1a96df1b1ba601c788359bfd79537a5f6d61f4a
[ "Apache-2.0" ]
permissive
hariharanragothaman/leetcode-solutions
fb7d967f2c6e3f4c936e3c7afe369415bc8d2dc6
44e759f80d3c9df382fdf8d694d6378881e3649d
refs/heads/master
2023-09-03T20:31:59.200701
2021-10-18T00:50:56
2021-10-18T00:50:56
267,927,538
1
1
null
null
null
null
UTF-8
Python
false
false
1,765
py
""" A string s is nice if, for every letter of the alphabet that s contains, it appears both in uppercase and lowercase. For example, "abABB" is nice because 'A' and 'a' appear, and 'B' and 'b' appear. However, "abA" is not because 'b' appears, but 'B' does not. Given a string s, return the longest substring of s that...
[ "hariharanragothaman@gmail.com" ]
hariharanragothaman@gmail.com
e18acdf10dc10f22be785b412c98734ef4391a78
d190750d6cb34e9d86ae96724cf4b56a2f57a74a
/tests/r/test_morley.py
562dc425811ab5a69db86c60b1d186302756d5a8
[ "Apache-2.0" ]
permissive
ROAD2018/observations
a119f61a48213d791de0620804adb8d21c2ad9fb
2c8b1ac31025938cb17762e540f2f592e302d5de
refs/heads/master
2021-09-24T04:28:02.725245
2018-09-16T23:06:30
2018-09-16T23:06:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.morley import morley def test_morley(): """Test module morley.py by downloading morley.csv and testing shape of extracted data has 100 row...
[ "dustinviettran@gmail.com" ]
dustinviettran@gmail.com
01e4a166b1a96c6ed40e515a79db2f4f05132979
83957f263305c8021add5f05327381263cc6fdad
/mongrey/server/protocols.py
92242373a487ab32a09578418932680ea295c321
[ "BSD-3-Clause" ]
permissive
srault95/mongrey
d011727bb003ec02dd9797876a2cc055554d0ed9
63a94efd33db04e4b361dd259bfda3e520c305c8
refs/heads/master
2020-05-15T19:50:40.992062
2018-03-11T09:11:46
2018-03-11T09:11:46
35,269,256
0
0
null
2018-03-11T09:11:47
2015-05-08T08:58:12
CSS
UTF-8
Python
false
false
4,686
py
# -*- coding: utf-8 -*- import uuid import logging import re from .. import constants from ..exceptions import InvalidProtocolError line_regex = re.compile(r'^\s*([^=\s]+)\s*=(.*)$') logger = logging.getLogger(__name__) def parse_protocol_line(request): """ example: client_name=123, client_addre...
[ "stephane.rault@radicalspam.org" ]
stephane.rault@radicalspam.org
b429309f8e623409f989dca83d4ff8711914cc70
1b1546cafc9453c4fdb9406533f94ed56206541c
/tests/tutorials/tour/test_decoupled.py
1ca8a8aa8e194c9366c33e5da2f143cb4331d61d
[ "MIT" ]
permissive
pauleveritt/wired
bad7ecadae4f23874598031ae8d17e08ba34ec9b
629f950176a9682a7ccb68efbb27cb2e23b4e93e
refs/heads/master
2020-05-01T06:38:38.728436
2019-04-29T12:43:43
2019-04-29T12:43:43
177,335,238
1
1
MIT
2019-04-23T00:14:34
2019-03-23T20:08:57
Python
UTF-8
Python
false
false
1,029
py
import pytest from wired import ServiceRegistry @pytest.fixture def settings(): from tutorials.tour.decoupled import Settings settings = Settings(punctuation='!!') return settings @pytest.fixture def registry(settings): from tutorials.tour.decoupled import setup r: ServiceRegistry = setup(set...
[ "pauleveritt@me.com" ]
pauleveritt@me.com
2ee8380fc6a904aebb84b742cacca3669f9f7f0a
aea1d61c9a5d445f3a1c328a757dfa02d652f367
/dataset_04__eph_stim_vs_dist/fig9b/code/data/results/all_lfps.py
6880c9a242cd1df2c7015ad340675a073b8c6c85
[]
no_license
ModelDBRepository/263988
bb15ddf953a31ca44ac62ead919e3106389374f8
b1f4bd4931bb1ddcc323108c39e389b9fa4234a0
refs/heads/master
2022-11-21T22:38:24.738870
2020-07-30T00:38:17
2020-07-30T00:38:17
283,632,019
0
0
null
null
null
null
UTF-8
Python
false
false
6,650
py
""" Miguel Capllonch Juan 30 September 2018 Draw together all the LFPs computed with the different methods: - Results from the simulations (RN model) - Using the VC conductor theory """ import numpy as np import matplotlib.pyplot as plt import csv # Recording electrodes rec_els = { 'E': {'pos': (250, 0, 19000), ...
[ "tom.morse@yale.edu" ]
tom.morse@yale.edu
ed22cd98ccc5c3ab583769e5ced040437212592d
3f97f0ba5351aae879cae3c6c073d64077ee96bd
/ch99/photo/migrations/0001_initial.py
14effa898a4c93b21d9524971d9600907b03422d
[ "MIT" ]
permissive
dukuaris/django_web
7b8e63d82718afc2a7aedd97ceed97f8aeab4040
d6e8486999a8db8fc99c4b7dae0ddac402828c9d
refs/heads/master
2023-01-07T09:02:06.316075
2020-01-28T06:46:27
2020-01-28T06:46:27
232,438,676
0
0
MIT
2022-12-27T15:36:34
2020-01-07T23:45:17
HTML
UTF-8
Python
false
false
1,543
py
# Generated by Django 2.2.2 on 2020-01-16 09:54 from django.db import migrations, models import django.db.models.deletion import photo.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Album', ...
[ "dukuaris@gmail.com" ]
dukuaris@gmail.com
a150f25eb027d1b21cf74cf109a18e85acada783
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/apimanagement/azure-mgmt-apimanagement/generated_samples/api_management_user_confirmation_password_send.py
793650579dac2e949735e69fe128bc5958cef7ad
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,638
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
bb9907066005e577a1998be045ba95d25cf0401b
48bb4a0dbb361a67b88b7c7532deee24d70aa56a
/codekata/greatese.py
5bf5eea99317b8d7235f806cd8e0e600b1945704
[]
no_license
PRAMILARASI/GUVI
66080a80400888263d511138cb6ecd37540507c7
6a30a1d0a3f4a777db895f0b3adc8b0ac90fd25b
refs/heads/master
2022-01-28T08:54:07.719735
2019-06-24T15:57:05
2019-06-24T15:57:05
191,355,070
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
x=int(input("")) y=int(input("")) z=int(input("")) if(x>y>z): largest=x print(largest) elif(y>z): largest=y print (largest) else: largest=z print(largest)
[ "noreply@github.com" ]
PRAMILARASI.noreply@github.com
b8c9672e42c3bf90c709b694832601d20977efac
14f455693213cae4506a01b7d0591e542c38de79
/apps/profile/urls.py
ae3b903bd2e0bbdeddb2002969555017bac9927d
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Cvalladares/Newsblur_Instrumented
f0b14d063759973330f202108a7eed3a29bcc033
4d6ee6aa9713879b1e2550ea5f2dbd819c73af12
refs/heads/master
2022-12-29T15:19:29.726455
2019-09-03T17:09:04
2019-09-03T17:09:04
206,130,022
0
0
MIT
2022-12-10T06:00:26
2019-09-03T17:07:04
Python
UTF-8
Python
false
false
2,248
py
from django.conf.urls import * from apps.profile import views urlpatterns = patterns('', url(r'^get_preferences?/?', views.get_preference), url(r'^set_preference/?', views.set_preference), url(r'^set_account_settings/?', views.set_account_settings), url(r'^get_view_setting/?', views.get_view_set...
[ "Cvalladares4837@gmail.com" ]
Cvalladares4837@gmail.com
d741cbbed408cd89eba80b859cd1b82ff07f0c56
5f364b328d0e7df6f292dbbec266995f495b2ed4
/src/python/txtai/vectors/words.py
1cac062ec92c54e5a3ac71630cd7282b202a50b2
[ "Apache-2.0" ]
permissive
binglinchengxiash/txtai
a17553f57ddd857ff39a7d0b38e24930f5c71596
1513eb8390f01848742e67690b6e4bc6452101ee
refs/heads/master
2023-04-03T18:59:35.845281
2021-04-05T22:05:15
2021-04-05T22:05:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,715
py
""" Word Vectors module """ import os import pickle import tempfile from errno import ENOENT from multiprocessing import Pool import fasttext import numpy as np from pymagnitude import converter, Magnitude from .base import Vectors from ..pipeline.tokenizer import Tokenizer # Multiprocessing helper methods # pyli...
[ "561939+davidmezzetti@users.noreply.github.com" ]
561939+davidmezzetti@users.noreply.github.com
31016d76561425d939332319e1c3c3f3630350a1
5808f74f1825919da58ae91829ff4516623eb79d
/2020/new_python_concepts/02_floats.py
00d580b96499450bff11db1b8e67cafef9cebf04
[ "MIT" ]
permissive
hygull/stkovrflw
e2d78c8614b8d9646e3458926d71d13dfa75e2d4
f341727c7e42b6e667345f12814ab1f2479f1b89
refs/heads/master
2023-07-19T11:56:45.818534
2022-03-19T18:13:47
2022-03-19T18:13:47
132,311,923
0
1
MIT
2023-07-16T21:27:08
2018-05-06T06:10:14
Python
UTF-8
Python
false
false
254
py
def func(p1: float, p2: float) -> float: print(p1 + p2) # return None """ floats.py:3: error: Incompatible return value type (got "None", expected "float") Found 1 error in 1 file (checked 2 source files) """ return p1 + p2
[ "rishikesh0014051992@gmail.com" ]
rishikesh0014051992@gmail.com
17d1e40c434aaf3fc57628e1fe5cf9356c36542a
97724145652ba49c5aacaf66d54a89f71c3f6426
/10-Testing-Exercise/mammal/test/test_mammal.py
f7874ed1536182fc6484460f09845535d717ac08
[]
no_license
l-damyanov/Python-OOP---February-2021
c0d729c99d6af44a55ee7f7a05cf66fb6d69876b
e92417ed38f1b24405973b2027c11201d09ddb83
refs/heads/main
2023-03-31T07:45:09.347412
2021-04-01T20:24:27
2021-04-01T20:24:27
341,599,115
1
0
null
null
null
null
UTF-8
Python
false
false
826
py
import unittest from mammal.project.mammal import Mammal class TestMammal(unittest.TestCase): def setUp(self): self.mammal = Mammal("Test mammal", "predator", "roar") def test_attr_set_up(self): self.assertEqual("Test mammal", self.mammal.name) self.assertEqual("predator", self.mamma...
[ "l_l_damyanov@abv.bg" ]
l_l_damyanov@abv.bg
da12d3c31d5a691fa0565cbeff1fae9483d8d99b
93e9bbcdd981a6ec08644e76ee914e42709579af
/devide_and_conquer/315_Count_of_Smaller_Numbers_After_Self.py
e99b6ea88b209f2414fdefe3366889f075cf4bbd
[]
no_license
vsdrun/lc_public
57aa418a8349629494782f1a009c1a8751ffe81d
6350568d16b0f8c49a020f055bb6d72e2705ea56
refs/heads/master
2020-05-31T11:23:28.448602
2019-10-02T21:00:57
2019-10-02T21:00:57
190,259,739
6
0
null
null
null
null
UTF-8
Python
false
false
2,254
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ https://leetcode.com/problems/count-of-smaller-numbers-after-self/description/ You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smaller elements to the right of nums[i]. ...
[ "vsdmars@gmail.com" ]
vsdmars@gmail.com
7e8eed3e3e234e712b3ae2ebb9a56d9680629cb5
64a955664b82be8ed149d01149b36a8aac626f8e
/chapter5/p5.py
5ed71fd3dd2d87de56d123944936a15d519c8c03
[]
no_license
JoelDavisP/Python-Practice-Book-Solutions
b60371590d8aaecab9de6ccad2bf2efb7a2f90ae
ea298d35e50d3719d5b0b841748abfd0c852cc95
refs/heads/master
2021-07-14T04:52:40.678170
2017-10-18T13:26:50
2017-10-18T13:26:50
105,724,396
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
import os import sys def lines_py(): """It compute the total number of lines of code in all python files (.py extension) in a specified directory recursively. """ dname = sys.argv[1] dpath = os.path.abspath(dname) line_count = 0 for fpath,dnames,fnames in os.walk(dpath): for i i...
[ "joeldavisp17195@gmail.com" ]
joeldavisp17195@gmail.com
e4ca53294f3bb722d6cea8e2f23af4c97b3e01e8
cd781c114deb0ee56fcd8e35df038397ebf8dc09
/Mid Exams/Array Modifier.py
0beeaf038595a84c7b956ebade8230279bf00e54
[]
no_license
GBoshnakov/SoftUni-Fund
4549446c3bb355ff74c14d6071d968bde1886de5
de9318caaf072a82a9be8c3dd4e74212b8edd79e
refs/heads/master
2023-06-06T04:56:14.951452
2021-06-30T21:50:44
2021-06-30T21:50:44
381,817,178
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
numbers = [int(n) for n in input().split()] command = input() while command != "end": command = command.split() action = command[0] if action == "swap": index_1 = int(command[1]) index_2 = int(command[2]) numbers[index_1], numbers[index_2] = numbers[index_2], numbers[index_1] ...
[ "boshnakov.g@gmail.com" ]
boshnakov.g@gmail.com
ae794f51c213d3b803cc088b8c557a9b5dd56371
b7b7342a7369117cb98de55f697153e875eecbbc
/example.py
098d2dcfbcfa00aab247a6a943daee18f895b5ad
[ "MIT" ]
permissive
zzygyx9119/nglesspy
953a3ab084b7df72df522076b3cd094e4a02ba12
3cfa28ea8fe2fdc3c08ac80a5949844544489cc9
refs/heads/master
2022-11-18T20:38:45.927728
2020-07-16T19:56:42
2020-07-16T19:57:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
from ngless import NGLess sc = NGLess.NGLess('0.0') sc.import_('mocat', '0.0') e = sc.env e.sample = sc.load_mocat_sample_('testing') @sc.preprocess_(e.sample, using='r') def proc(bk): bk.r = sc.substrim_(bk.r, min_quality=25) sc.if_(sc.len_(bk.r) < 45, sc.discard_) e.mapped = sc.map_(e.sample,...
[ "luis@luispedro.org" ]
luis@luispedro.org
818ff902546aedaae8aaab629c81c725f1bf8b91
a94e8b83bb2a4ccc1fffbd28dd18f8783872daab
/Mock CCC/Mock CCC19S2 Pusheens Puzzle Present.py
aec48957b55fe819a6e6614885614ac56d2f56d4
[]
no_license
MowMowchow/Competitive-Programming
d679c1fe2d7d52940dc83a07dc8048922078704e
0ec81190f6322e103c2ae0ad8c3935bd4cdfff46
refs/heads/master
2022-03-03T03:01:03.383337
2022-02-17T07:27:45
2022-02-17T07:27:45
184,678,148
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
import sys import math n = int(sys.stdin.readline()) grid = [[int(x) for x in sys.stdin.readline().split()] for x in range(n)] counter = 1 sublength = 0 for row in grid: for curr in range(n-1): if row[curr] != row[curr+1] - 1: sublength += 1 break #counter += 1 print(s...
[ "darkstar.hou2@gmail.com" ]
darkstar.hou2@gmail.com
4e9cf1128c2b20e84ccb9cb2a506b60bd1d92535
4d4899e54a8a97fad2039350f16c50245a4e0810
/source/todoapp/migrations/0003_task_full_description.py
09595c6bfdf9b7d031b76dd1d3c8ead3665d189d
[]
no_license
UuljanAitnazarova/python_homework_45_To_do_list
f7f4925bff987d5a13e52b48f745a4bddb72c440
592bd5ad8ac61f1147e7bf5ffe49f899a9a0c7cd
refs/heads/master
2023-03-12T12:28:24.234398
2021-03-04T08:52:25
2021-03-04T08:52:25
341,508,360
0
1
null
null
null
null
UTF-8
Python
false
false
469
py
# Generated by Django 3.1.7 on 2021-02-26 10:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('todoapp', '0002_auto_20210223_1242'), ] operations = [ migrations.AddField( model_name='task', name='full_descriptio...
[ "u.aitnazarova@gmail.com" ]
u.aitnazarova@gmail.com
dbc6452150f8f06e22b66ac18298bc53ce7bdf3a
8bb4a472344fda15985ac322d14e8f4ad79c7553
/Python3-Core/src/main/prompto/runtime/WidgetField.py
66b4317c7bea2bed240b1d845097bc99cc1af084
[]
no_license
prompto/prompto-python3
c6b356f5af30c6826730ba7f2ad869f341983a2d
64bd3d97d4702cc912097d41d961f7ab3fd82bee
refs/heads/master
2022-12-24T12:33:16.251468
2022-11-27T17:37:56
2022-11-27T17:37:56
32,623,633
4
0
null
2019-05-04T11:06:05
2015-03-21T07:17:25
Python
UTF-8
Python
false
false
201
py
from prompto.runtime.Variable import Variable from prompto.type.IType import IType class WidgetField(Variable): def __init__(self, name: str, itype: IType): super().__init__(name, itype)
[ "eric.vergnaud@wanadoo.fr" ]
eric.vergnaud@wanadoo.fr
191484b45d9f5be8b3b00a8c2a6d15772c38782c
abc72a2f2072ab7a5a338e41d81c354324943b09
/tarefa11/sugestao.py
9c645d2ab609253931239f50b72395ec34a5b090
[]
no_license
gigennari/mc102
a3d39fd9a942c97ef477a9b59d7955f4269b202a
fce680d5188a8dfb0bc1832d6f430cbcaf68ef55
refs/heads/master
2023-04-05T01:40:58.839889
2020-07-27T20:33:56
2020-07-27T20:33:56
354,130,720
0
0
null
null
null
null
UTF-8
Python
false
false
3,420
py
""" Escreva um programa que, dadas duas palavras, sugere ao usuário qual será a próxima palavra, tal que essa escolha seja baseada na probabilidade de que essas três palavras apareçam nessa ordem em um determinado texto. Entrada: 1ª linha - o caminho do arquivo de texto 2ª linha - sequência de pares de palavras, um p...
[ "g198010@dac.unicamp.br" ]
g198010@dac.unicamp.br
2a8baba7315e41a92db6cbdea5ef52408fcb9143
fd308ec9cb448c2b47ec4736b670ce452b70800d
/sdap/jobs/views.py
b66d02ed32f0fabf23b619815af97c5d649e5c8f
[ "MIT" ]
permissive
umr1085-irset/reproGenomicsViewer
d4d8c52fbe72a1824812d2f5a7574be7ce58f9b5
700bbe817596b27a05ed75a8761506c5004f340f
refs/heads/master
2023-05-25T01:55:42.333286
2023-05-15T10:02:54
2023-05-15T10:02:54
219,467,036
0
4
MIT
2022-02-11T09:44:32
2019-11-04T09:46:02
JavaScript
UTF-8
Python
false
false
3,463
py
import os from datetime import datetime from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404, render from django.urls import reverse from django.views import generic from django.utils import timezone from django.views import View from django.shortcuts import redirect from django....
[ "dardethomas@gmail.com" ]
dardethomas@gmail.com
f555c688d0fc632999966fdd07767c457fa0ab21
be12916ec075c76469946f6da2cdde4857141702
/771_2.py
3c283b6a4ace661e675538e93277637a7552e724
[]
no_license
goodsosbva/algorithm
7b2f9b1a899e43c7d120ab9d40e672be336a23d9
0bc44e9466d2d32a4b4e126e073badc60172da6e
refs/heads/main
2023-08-06T19:34:40.630006
2021-09-20T10:34:41
2021-09-20T10:34:41
334,918,056
3
0
null
null
null
null
UTF-8
Python
false
false
361
py
import collections def newJewelsInStones(J: str, S: str) -> int: freqs = collections.Counter(S) # 돌(S) 빈도 수 계산 count = 0 # 비교 없이 보석(j) 빈도 수 계산 for char in J: count += freqs[char] return count jew = "aA" stone = "aAAbbbb" jcount = newJewelsInStones(jew, stone) print(...
[ "noreply@github.com" ]
goodsosbva.noreply@github.com
12e27a1ffb5b0c67c43f8b2c732fb638e6d2fa70
6b5431368cb046167d71c1f865506b8175127400
/challenges/n-primeiros-numeros-primos/tests.py
f921a7fcdf0065d0389c1479673886c2e732c226
[]
no_license
Insper/design-de-software-exercicios
e142f4824a57c80f063d617ace0caa0be746521e
3b77f0fb1bc3d76bb99ea318ac6a5a423df2d310
refs/heads/master
2023-07-03T12:21:36.088136
2021-08-04T16:18:03
2021-08-04T16:18:03
294,813,936
0
1
null
2021-08-04T16:18:04
2020-09-11T21:17:24
Python
UTF-8
Python
false
false
910
py
from strtest import str_test def eh_primo_gabarito(n): if n == 2: return True if n == 0 or n == 1 or n % 2 == 0: return False d = 3 while d < n: if n % d == 0: return False d += 2 return True def gabarito_dos_professores(n): encontrados = 0 i =...
[ "andrew.kurauchi@gmail.com" ]
andrew.kurauchi@gmail.com
92fa4c4cee9bfd46c826875c760c60269d31c06f
fcdbf22231739b61bbd4da531fcacf0c6f08c4bf
/services/lasso_regression/prod.config.py
0ba5c9b0f0b2531fae1cba7e4b5ac173809e1241
[]
no_license
revotechUET/wi-uservice
2a3f169a4a9735bb3167d8bef75baceab11b2a04
33f2ad2f0a329fc1f54153b0ebb775f2bd74d631
refs/heads/master
2023-04-15T14:58:36.183521
2023-04-07T09:39:48
2023-04-07T09:39:48
179,446,650
0
1
null
2022-12-08T01:51:59
2019-04-04T07:39:07
Python
UTF-8
Python
false
false
1,939
py
import os import multiprocessing bind = '0.0.0.0:80' backlog = 2048 workers = multiprocessing.cpu_count() worker_class = 'sync' or os.environ.get("WORKER_CLASS") worker_connections = 1000 timeout = 30 keepalive = 2 reload = False spew = False daemon = False raw_env = [ "DB_HOST="+os.environ.get("DB_HOST", "127.0...
[ "thinhlevan2015@gmail.com" ]
thinhlevan2015@gmail.com
c2d2b5d7a681a9da5144059d9d26d2b5fce68443
c4b7399a10b7f963f625d8d15e0a8215ea35ef7d
/225.用队列实现栈.py
30aed3284d9d2a250a13ade1686b9a592683c1e3
[]
no_license
kangkang59812/LeetCode-python
a29a9788aa36689d1f3ed0e8b668f79d9ca43d42
276d2137a929e41120c2e8a3a8e4d09023a2abd5
refs/heads/master
2022-12-05T02:49:14.554893
2020-08-30T08:22:16
2020-08-30T08:22:16
266,042,478
0
0
null
null
null
null
UTF-8
Python
false
false
1,823
py
# # @lc app=leetcode.cn id=225 lang=python3 # # [225] 用队列实现栈 # # https://leetcode-cn.com/problems/implement-stack-using-queues/description/ # # algorithms # Easy (64.30%) # Likes: 158 # Dislikes: 0 # Total Accepted: 45.7K # Total Submissions: 71.1K # Testcase Example: '["MyStack","push","push","top","pop","empty...
[ "596286458@qq.com" ]
596286458@qq.com
9b8c1f144c99095882b7063ecfbd996ea85ad76d
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_PolyTrend_Seasonal_Second_MLP.py
5f171286f0c82166bee8bda1463b423ed0a90ed9
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
162
py
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Anscombe'] , ['PolyTrend'] , ['Seasonal_Second'] , ['MLP'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
797fb5e4b44f2abe5c67ca7a0b9b2fba00dcd1e2
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/7_graph/经典题/置换环/amidakuji鬼脚图/1-最少的横线构造amidakuji.py
32ff9e00794f1b88811986c870be0e27ba2b7ac0
[]
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
889
py
# 冒泡排序邻位交换 构造amidakuji的横线 from typing import List def amidakuji(ends: List[int]) -> List[int]: """ 冒泡排序构造amidakuji的横线 Args: ends: 每个点最后的位置 (1-index) Returns: 鬼脚图的横线,一共m条,从上往下表示. lines[i] 表示第i条横线连接 line[i] 和 line[i]+1. (1-index) """ n = len(ends) res ...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
5069b7fa589dea216ef97b476055fcf630474880
39dac505e0814d8f73d21576085b02e5e54d9b05
/67.py
4b3bbfabcd2eafad0676f05c08d42b459cf43d65
[]
no_license
gxmls/Python_Leetcode
4b2ce5efb0a88cf80ffe5e57a80185ca5df91af2
2a9bb36c5df0eaba026183a76deb677c5bd7fd2d
refs/heads/main
2023-06-08T03:45:43.548212
2021-06-22T09:46:44
2021-06-22T09:46:44
362,726,420
0
0
null
null
null
null
UTF-8
Python
false
false
773
py
''' 给你两个二进制字符串,返回它们的和(用二进制表示)。 输入为 非空 字符串且只包含数字 1 和 0。 示例 1: 输入: a = "11", b = "1" 输出: "100" 示例 2: 输入: a = "1010", b = "1011" 输出: "10101" 提示: 每个字符串仅由字符 '0' 或 '1' 组成。 1 <= a.length, b.length <= 10^4 字符串如果不是 "0" ,就都不含前导零。 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/add-binary 著作权归领扣网络所有。商业转载请联系官方授权...
[ "noreply@github.com" ]
gxmls.noreply@github.com
94db114f318aa9b8d5bb675594da7ce584d26625
1f700dad5a6cae92d2f918098e5d6ffb92ead725
/tests/path/compressed_stream_path_spec.py
dd265d90b7bdc40125f173b57997c89a59e064a1
[ "Apache-2.0" ]
permissive
devgc/dfvfs
5cdf4fc8a984a4768877536128cee60d53e89834
a0196808f569e4c5f947c458945cd0a17d1abab5
refs/heads/master
2020-04-05T23:42:11.088128
2016-08-23T16:50:16
2016-08-23T16:50:16
66,384,661
1
0
null
2016-08-23T16:36:10
2016-08-23T16:36:07
Python
UTF-8
Python
false
false
1,618
py
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the compressed stream path specification implementation.""" import unittest from dfvfs.path import compressed_stream_path_spec from tests.path import test_lib class CompressedStreamPathSpecTest(test_lib.PathSpecTestCase): """Tests for the compressed stream p...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
6b2635ba044761b70c21a0615dfe7ff99392f967
1c6283303ceb883add8de4ee07c5ffcfc2e93fab
/Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/frameRelay_template.py
ec8c961f3acb1c4fdc24e612b525e265eee952f2
[]
no_license
pdobrinskiy/devcore
0f5b3dfc2f3bf1e44abd716f008a01c443e14f18
580c7df6f5db8c118990cf01bc2b986285b9718b
refs/heads/main
2023-07-29T20:28:49.035475
2021-09-14T10:02:16
2021-09-14T10:02:16
405,919,390
0
0
null
null
null
null
UTF-8
Python
false
false
5,002
py
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class FrameRelay(Base): __slots__ = () _SDM_NAME = 'frameRelay' _SDM_ATT_MAP = { 'Address2ByteDlciHiOrderBits': 'frameRelay.header.frameRelayTag.frameRelay.address.address2Byte.dlciHiOrderBits-1', 'Add...
[ "pdobrinskiy@yahoo.com" ]
pdobrinskiy@yahoo.com
c575a9c2ea029a2616fb7aa34165dc2b935eb63a
3b863f7e7efea09f5a120eb8c323e5a3742b82b3
/LevelSelection_Page/LevelSelection_Page.pyde
23a2c39a016791744f8abcef5874cfa5058a187b
[]
no_license
TriceG/DNA_Project
b6096fbc91c35621b659dd5154a1972a9674d881
469df295120fbfe32070fd973c55f36b2af99341
refs/heads/master
2021-01-19T21:32:24.914550
2017-06-20T14:15:27
2017-06-20T14:15:27
88,661,601
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
pyde
def setup(): background(37, 154, 247) size(800, 500) def draw(): fill(225) rectMode(CENTER) #beginerButton rect(400, 175, 150, 50) #intermediateButton rect(400, 275, 239, 50) #advancedButton rect(400, 375, 190, 50) textSize(30) #title text("Select ...
[ "none@none" ]
none@none
8dbbb798fd7d365ab6925e56271b3e38fd9151e3
d229480fb037442bfc2d895e300fdab89d06e1f6
/examples/train_cornac.py
739d5ecca174fe68cffed861aa5a7481900cda49
[]
no_license
anonymcodes/t-vbr
939c8eebed4e6ecbe4e85b26b296b5e16bb0b445
c8d37aee05de5060a98fac74421a28db0a7eaa4c
refs/heads/master
2023-08-09T01:55:12.295567
2020-12-03T02:06:18
2020-12-03T02:06:18
264,423,776
2
0
null
2023-07-23T17:09:20
2020-05-16T11:40:02
Python
UTF-8
Python
false
false
6,934
py
import numpy as np import pandas as pd import pickle import argparse import json import torch.optim as optim from torch import Tensor from torch.utils.data import DataLoader import torch import torch.nn as nn import torch.optim as optim from tqdm import tqdm from livelossplot import PlotLosses import GPUtil import os i...
[ "your@email.com" ]
your@email.com
24bd01eef13ac27c129556df9c4bdd7e0d6ad861
44b869c9ddcfd8afa429a6a4758c6acdac62f9c1
/users/admin.py
c13af5a0c2a73efaf7790a0cc239c9c99a1fafdc
[]
no_license
paulitstep/blog-api
7507394eb008c6c1bd30e5699bb33e9e37cfac52
5ce6d84495fa9b6d32b38d7d99412858ff3bc077
refs/heads/main
2023-04-06T12:56:00.364861
2021-04-16T09:28:09
2021-04-16T09:28:09
357,801,983
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from users.models import NewUser class UserAdminConfig(UserAdmin): model = NewUser search_fields = ('email', 'user_name',) list_filter = ('email', 'user_name', 'is_staff', 'is_active') list_display = ('email', 'id', 'user...
[ "pasha-mo1@rambler.ru" ]
pasha-mo1@rambler.ru
17c45d94efa8018ba6165c376fcf4a8981629f48
c5bc44b4bb7aa0b8e6df81c198e9803eb0f060ce
/pro_tracker/issue/views.py
7a365ad081af225db4a559345972d6c6de5b7ae1
[]
no_license
hyperloop11/Progress-tracking-website
4821b1c17b04b223b1a20610b1612b11b0a54ce3
7c3bd77a0b0605994b001544fc809c1e52a18f82
refs/heads/master
2023-06-21T12:06:26.531345
2021-08-05T07:21:37
2021-08-05T07:21:37
298,636,249
0
0
null
null
null
null
UTF-8
Python
false
false
5,218
py
from django.shortcuts import render, get_object_or_404 from django.views.generic import ( ListView, DetailView, CreateView, UpdateView, ) from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from .models import Issue from django.contrib.auth.models import User, Permission from .forms i...
[ "=" ]
=
7ea31f1d5cee13bb05992a54895bdc6027e86ed4
5deca81ecb729fdb1e14511b7fdb65e5f3b277de
/2_sentiment/submission_v3.py
867249d65f4d33c72710ac1ca021d7e5f65d622c
[]
no_license
anatu/CS221-Fall2018
6a0e170ada7ba8794d9e93dee875fc1a072e4692
03dbcf7cb7da953877171b311be9d0e2aacec30c
refs/heads/master
2021-03-20T06:01:52.122056
2020-03-14T00:22:10
2020-03-14T00:22:10
247,183,322
1
0
null
null
null
null
UTF-8
Python
false
false
7,968
py
#!/usr/bin/python import random import collections import math import sys from util import * ############################################################ # Problem 3: binary classification ############################################################ ############################################################ # Prob...
[ "natu.anand@gmail.com" ]
natu.anand@gmail.com
ee3997b39a5d30d9f9dd95a3f9021ff2a495f82f
19919c7c7f4ccfc4842e016c8ece818cd144de14
/Yaml/Read_Yaml.py
c8430249f60c60a6bf80499260dc9591569fc42c
[]
no_license
Cz1660/GitTestSetting_0225
b9e08e74dc0eb27aa39f204763140f0d772e5796
ba59ca5b16d1e9784a19b2c70d7ca27e923289f4
refs/heads/master
2020-04-25T02:52:49.869443
2019-02-25T08:08:21
2019-02-25T08:08:21
172,456,529
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
import os,yaml class Read_Yaml: def __init__(self,file_name): self.path = os.getcwd() + os.sep + 'Yaml' + os.sep + file_name def read_yaml(self): with open(self.path,'r',encoding='utf-8') as f: self.yaml_data = yaml.load(f) return self.yaml_data
[ "you@example.com" ]
you@example.com
29508b8c62c4dfc7ece26c6ae621b64c84e7d5da
1368e2beda67052140a51fd53eb7a12941124320
/Python 3/1541.py
72fe04dada81de5994973cd36cbc76aecd070127
[]
no_license
matheuskolln/URI
ac540fd4ea18c9b3ba853492dc60157c165145cf
b9091ed1c5b75af79cb25827aff8aab99d2e4b65
refs/heads/master
2023-03-09T23:17:17.865447
2021-02-25T16:47:24
2021-02-25T16:47:24
272,043,082
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
while True: n = [int(x) for x in input().split(' ')] if n[0] == 0: break a = n[0] * n[1] i = 0 while i * i * n[2] / 100 <= a: i += 1 print(i - 1)
[ "matheuzhenrik@gmail.com" ]
matheuzhenrik@gmail.com
de86bd936a9bc7afa59da85369c6a2c0b220a168
f8ffa8ff257266df3de9d20d95b291e393f88434
/Python from scratch/Zadania/zadania podczas zajęć/zajęcia11/zadanie01/zadanie01+a.py
ac892bb38f756545548af1328c3d3f7cef2f15c5
[]
no_license
janiszewskibartlomiej/Python_Code_Me_Gda
c0583c068ef08b6130398ddf93c3a3d1a843b487
7568de2a9acf80bab1429bb55bafd89daad9b729
refs/heads/master
2020-03-30T05:06:26.757033
2020-03-02T08:53:28
2020-03-02T08:53:28
150,781,356
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
from datetime import datetime data_urodzenia = input('Wprowadź datę urodzin celebryty w formacie [RRRR-MM-DD]:') try: konwertowanie_daty = datetime.strptime(data_urodzenia, '%Y-%m-%d') except ValueError: print('Wprowadzono nie prawiłowe dane!') exit() teraz = datetime.now() wiek_celebryty = teraz - konwe...
[ "janiszewski.bartlomiej@gmail.com" ]
janiszewski.bartlomiej@gmail.com
288832b4e21767a5fe146fc0d0ad0218ce3730fc
be55991401aef504c42625c5201c8a9f14ca7c3b
/python全栈3期/面向对象/继承顺序.py
dcb0234f6de6831c86a781efdb3753c1b0f99ed8
[ "Apache-2.0" ]
permissive
BillionsRichard/pycharmWorkspace
adc1f8bb15b58ded489fc8dec0df397601823d2c
709e2681fc6d85ff52fb25717215a365f51073aa
refs/heads/master
2021-09-14T21:12:59.839963
2021-08-08T09:05:37
2021-08-08T09:05:37
143,610,481
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
""" 广度优先: 新式类(Python3) F->D->B->E->C->A 深度优先: 经典类(python2,不继承自object类)F->D->B->A->E->C A | \ B C | \ D E \ / \/ F """ from pprint import pprint as pp class A: def test(self): print('A') class B(A): def test(self): print('B') pass class C(A): def test(self): ...
[ "295292802@qq.com" ]
295292802@qq.com
f297dde3e24a29cede6a18efcb18439969ce8aba
7e0e22e31aafc7eecda9d62ae4329f8697e23d40
/scripts/average
90f6be281641d653f9fe748d36aef7067a7f810b
[ "MIT" ]
permissive
Sandy4321/cli_stats
feec6e6b234e40062f0fe5b6519fdca0fc93f31b
d8a75cf81904a0565c9de6839ee4711355e26b70
refs/heads/master
2023-02-10T11:06:46.602325
2021-01-01T22:50:31
2021-01-01T22:50:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
476
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Compute the average of a number stream on stdin Author: Gertjan van den Burg License: See LICENSE file Copyright (c) 2020, G.J.J. van den Burg """ import sys def main(): total = 0.0 count = 0 for line in sys.stdin: if not line.strip(): ...
[ "gertjanvandenburg@gmail.com" ]
gertjanvandenburg@gmail.com
942a6a475150a440d2d71c36555b3b9649d6eb26
ad0857eaba945c75e705594a53c40dbdd40467fe
/baekjoon/python/dial_5622.py
2f52057085043af2b8abff6075f383071902aa85
[ "MIT" ]
permissive
yskang/AlgorithmPractice
c9964d463fbd0d61edce5ba8b45767785b0b5e17
3efa96710e97c8740d6fef69e4afe7a23bfca05f
refs/heads/master
2023-05-25T13:51:11.165687
2023-05-19T07:42:56
2023-05-19T07:42:56
67,045,852
0
0
null
2021-06-20T02:42:27
2016-08-31T14:40:10
Python
UTF-8
Python
false
false
494
py
# https://www.acmicpc.net/problem/5622 def dial_time(digit_string): digit_dict = {"A": 2, "B": 2, "C": 2, "D": 3, "E": 3, "F": 3, "G": 4, "H": 4, "I": 4, "J": 5, "K": 5, "L": 5, "M": 6, "N": 6, "O": 6, "P": 7, "Q": 7, "R": 7, "S": 7, "T": 8, "U": 8, "V": 8, "W": 9, "X": 9, "Y...
[ "yongsung.kang@gmail.com" ]
yongsung.kang@gmail.com
7519b3756f10f14a5efbed78d21cd03b01e3570b
0a85e9ecb51c89110794aeb399fc3ccc0bff8c43
/Udacity/1. Data Structures/2. Linked List/detecting_loops.py
7dde5625ea99184e444c23e219dd8ab70ca841bc
[]
no_license
jordan-carson/Data_Structures_Algos
6d246cd187e3c3e36763f1eedc535ae1b95c0b18
452bb766607963e5ab9e39a354a24ebb26ebaaf5
refs/heads/master
2020-12-02T23:19:11.315890
2020-09-15T01:23:29
2020-09-15T01:23:29
231,147,094
1
0
null
null
null
null
UTF-8
Python
false
false
1,569
py
class Node: def __init__(self, value): self.value = value self.next = None class LinkedList: def __init__(self, init_list=None): self.head = None if init_list: for value in init_list: self.append(value) def append(self, value): if self.h...
[ "jordanlouiscarson@gmail.com" ]
jordanlouiscarson@gmail.com
35af21c694adef7b09cbc80926fda010c74caf6e
7a6aca7d300c0752f2a73730b743a1a7361e941b
/tensorflow_graphics/nn/metric/fscore.py
8bb696c3919b2925c77ede8d7b9ae9e1851fd458
[ "Apache-2.0" ]
permissive
tensorflow/graphics
ef0abe102398a58eb7c41b709393df3d0b0a2811
1b0203eb538f2b6a1013ec7736d0d548416f059a
refs/heads/master
2023-09-03T20:41:25.992578
2023-08-08T21:16:36
2023-08-08T21:17:31
164,626,274
2,920
413
Apache-2.0
2023-08-27T14:26:47
2019-01-08T10:39:44
Python
UTF-8
Python
false
false
3,437
py
# Copyright 2020 The TensorFlow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
b513f222fdaffe800eb13434b6c68a58cf123706
94becda0e99eb1bf23f2649d63a6a2af0f631e33
/brats/bak/loop_finetune_v100_bak.py
fc472ca5384a7149a43deaf323fcf73f85ea7cfd
[ "MIT" ]
permissive
guusgrimbergen/3DUnetCNN_BRATS
d560a878dfbe7dfe95ca5a37c8b066199300d276
1c4ad386b66c550770adc8c9e7371c1ce476db94
refs/heads/master
2022-01-08T13:37:05.253386
2019-06-17T13:10:59
2019-06-17T13:10:59
185,376,310
0
0
null
2019-05-07T10:07:33
2019-05-07T10:07:32
null
UTF-8
Python
false
false
3,151
py
from brats.config import config, config_unet, config_dict import datetime import logging import threading import subprocess import os import sys from subprocess import Popen, PIPE, STDOUT from unet3d.utils.path_utils import make_dir from unet3d.utils.path_utils import get_model_h5_filename from unet3d.utils.path_utils...
[ "minhmanutd@gmail.com" ]
minhmanutd@gmail.com
a52b455dc705da8f9fc3724685f6ef38c3740ff4
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/5pYkwf948KBQ3pNwz_13.py
f195abcf98ede33050c2a8f2b103f9ced9d8120e
[]
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
480
py
from collections import Counter ​ def most_common_words(text, n): words = ''.join([c if c.isalpha() else ' ' for c in text.lower()]).split() seq = {} idx = 0 for word in words: if word not in seq: idx += 1 seq[word] = idx C = Counter(words) L = [[k, v, seq[k]] f...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
961e76ad1d6a22225b91b5f9e9b5a45cc59f4df6
f8095636248bac9e2b018ed3b06f36502edffb0b
/frontend_issuu_autotest_replica/tests_pro_account/TestQuickTourPRO.py
ede810b50de37975ec611870bca9add110124b14
[]
no_license
slashsorin/auto-fe-test
deb1c696767b1c31125970679aa8ce4364fa956a
266f3d7badb14c388edc63139bf659f60e09ac64
refs/heads/master
2016-08-04T10:22:18.123109
2013-11-22T09:16:57
2013-11-22T09:16:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,575
py
import sys, time, os #sys.path.append('/Users/Sorin/Issuu/new_eclipse_ws/frontend-issuu-autotest/autotest_framework/') sys.path.append('../autotest_framework') import SeleniumTestCase, make_platform_classes import SetTestStatus as sts import unittest, xmlrunner class TestQuickTourPRO(SeleniumTestCase.SeleniumTestC...
[ "sorin.dimo@yahoo.com" ]
sorin.dimo@yahoo.com
e2553bf31614edf3ef91cdd52439d0a0721bc8d2
e3fd35a8443aaf2f293ae03a5f6c819046a4dd21
/leetcode-python/medium/_503_next_greater_element_2/test_solution.py
68da2b92260a0e9bd3dc14ea7131a1cb31787adc
[]
no_license
hieutran106/leetcode-ht
2223ea6bcd459c2cdbc33344c0ff69df7f8a3c7f
8332eb20e613f82cda2e326218154c7803a32403
refs/heads/main
2023-08-09T02:52:41.360360
2023-07-27T10:12:28
2023-07-27T10:12:28
234,890,448
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
import unittest from .solution import Solution class MyTestCase(unittest.TestCase): def setUp(self) -> None: self.s = Solution() def test_case1(self): actual = self.s.nextGreaterElements([1, 2, 1]) self.assertEqual(actual, [2, -1, 2]) def test_case2(self): actual = self.s...
[ "hieutran106@gmail.com" ]
hieutran106@gmail.com
c42af3a2ce14d0a7a69408abef1650a90e836b3a
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/INTERVIEW-PREP-COMPLETE/Practice/BSTFromArray/model_solution/model_solution.py
f9d67e0ad74527a0da094829f9bcf5cb690108cf
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
2,162
py
import math def create_min_height_bst(sorted_array): left = 0 right = len(sorted_array) - 1 return rec_helper(sorted_array, left, right) def rec_helper(sorted_array, left, right): if left > right: return None midpoint = ((right - left) // 2) + left root = BinaryTreeNode(sorted_arra...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
bdceae09f3f12e2c784454982314c598267c7550
d1d626e557cc3ec2068734c464afdde6d0b44a92
/bot/models.py
70d55805aa7993b986707e1145d34e9f2b759e43
[]
no_license
akhad97/Telegram-Bot
d279899f1cacebdb3317f2084047beaa4507c0fb
fd999c03b7b1abd2d433efcd67d9047430c66e4a
refs/heads/master
2023-07-02T06:53:41.697269
2021-08-03T17:41:07
2021-08-03T17:41:07
352,558,410
1
0
null
null
null
null
UTF-8
Python
false
false
1,104
py
from django.db import models class TelegramUser(models.Model): user_id = models.CharField(max_length=30) full_name = models.CharField(max_length=100) phone_number = models.CharField(max_length=15, null=True) resume = models.CharField(max_length=100, null=True) # resume = models.FileField(upload_to...
[ "ahadjon.abdullaev1997@gmail.com" ]
ahadjon.abdullaev1997@gmail.com
3d0676ba2f791a63793876a7f9cac6d72829b2f7
f845225329fa9750c838bf511fed3beb48cc86af
/accounts/migrations/0024_auto_20190104_1910.py
548b1c2d5d7579453106f5fb740c98f2b35c2c4a
[]
no_license
Fabricourt/btre_project-
ac8c2b84cc8b7f4f5368a204dc23b378d488b356
13defd495ba309ac31550d22ad7d6306638f91eb
refs/heads/master
2020-04-15T11:03:05.980170
2019-01-08T11:16:56
2019-01-08T11:16:56
164,611,152
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
# Generated by Django 2.1.4 on 2019-01-04 16:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0023_dashboard_title'), ] operations = [ migrations.AlterField( model_name='dashboard', name='title', ...
[ "mfalme2030@gmail.com" ]
mfalme2030@gmail.com
1960f27aab4a6e04b44d42cae1957586f552c1e4
244ecfc2017a48c70b74556be8c188e7a4815848
/res/scripts/client/gui/battle_control/requests/__init__.py
cb82e19a0f4681639e117250b900737bead761e8
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
491
py
# 2015.11.18 11:52:01 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/battle_control/requests/__init__.py from gui.battle_control.requests.AvatarRequestsController import AvatarRequestsController __all__ = ['AvatarRequestsController'] # okay decompyling c:\Users\PC\wotsources\files\originals\res\scr...
[ "info@webium.sk" ]
info@webium.sk