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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c335767482abc80f60cd1001ca1f8ca1c2cc765f | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/gen/view_models/views/lobby/premacc/piggybank_base_model.py | 6c977d428f53ef168370fd9f52f075809bda33f8 | [] | 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,633 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/premacc/piggybank_base_model.py
from frameworks.wulf import ViewModel
class PiggybankBaseModel(ViewModel):
__slots__ = ()
def __init__(self, properties=6, commands=0):
super(Pig... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
8558428dc9866e41b404653a6c5542655b4bfcfc | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/prompt_toolkit/key_binding/vi_state.py | 10593a82e6288ad9a157bba04e72661e880d3e25 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 3,360 | py | from enum import Enum
from typing import TYPE_CHECKING, Callable, Dict, Optional
from prompt_toolkit.clipboard import ClipboardData
if TYPE_CHECKING:
from .key_bindings.vi import TextObject
from .key_processor import KeyPressEvent
__all__ = [
"InputMode",
"CharacterFind",
"ViState",
]
class Inp... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
f045587943372d8a259207ccd82edaa468953613 | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Box/Files/DownloadFile.py | 76b407e839ac439a4c20ae70900db1f6240c8bd1 | [
"MIT",
"Apache-2.0"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# DownloadFile
# Retrieves the contents of a specified file.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use ... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
84a54d88f7d38d8c85b43397ef42d1dd097a06d5 | ce0f8956c4c308c67bd700d31fe8d5a17b16ac08 | /Python3/src/15 Threading and Concurrency/MultiProcessing/05-sharing-state-using-pipes.py | b1e3550193886be92e3125e26cf78b7aef3064e4 | [] | no_license | seddon-software/python3 | 795ae8d22a172eea074b71d6cd49d79e388d8cc6 | d5e6db1509a25c1a3040d5ae82d757539a2ff730 | refs/heads/master | 2021-07-10T15:48:31.893757 | 2020-07-16T20:29:22 | 2020-07-16T20:29:22 | 175,872,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | ############################################################
#
# sharing state between processes
#
############################################################
import multiprocessing as mp
N = 20
def fn(connection, results, N):
for n in range(N):
results.append(n*n)
connection.send(results)
if __... | [
"seddon-software@keme.co.uk"
] | seddon-software@keme.co.uk |
893fab1cf48b44a1a717f23ed3e257b60fdaec80 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /McZF4JRhPus5DtRA4_8.py | 5cf5c4df707900be969ed7763295e7061f6a9041 | [] | 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 | 701 | py | """
Transcribe the given DNA strand into corresponding mRNA - a type of RNA, that
will be formed from it after transcription. DNA has the bases A, T, G and C,
while RNA converts to U, A, C and G respectively.
### Examples
dna_to_rna("ATTAGCGCGATATACGCGTAC") ➞ "UAAUCGCGCUAUAUGCGCAUG"
dna_to_rna("CGATAT... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b10689338c8fe9bae2a8bab3464158b39483a4e6 | f0181afd2eea9b086ce9487fb8d7fd949282140a | /ncbi/product_protein_seq.py | 5202a7a52dbb2c185fac59cd4b6857e3623f29ca | [
"MIT"
] | permissive | linsalrob/EdwardsLab | 4a571676859c8b7238e733a0d3ad98ceb2e83c63 | 3c466acc07f1a56b575860ad26c92f900b272a53 | refs/heads/master | 2023-08-20T17:13:35.466103 | 2023-08-17T09:17:36 | 2023-08-17T09:17:36 | 25,702,093 | 36 | 25 | MIT | 2020-09-23T12:44:44 | 2014-10-24T18:27:16 | Python | UTF-8 | Python | false | false | 1,140 | py | """
Extract the locus information, gene product, and translation from a genbank file
"""
import os
import sys
import argparse
from Bio import SeqIO
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Extract the locus information, gene product, and translation from a genbank file")
parse... | [
"raedwards@gmail.com"
] | raedwards@gmail.com |
ac0f42eac7171b440802678af175d2cde73c0016 | 328afd873e3e4fe213c0fb4ce6621cb1a450f33d | /W3School/SearchandSorting/4.py | 725a50b72b117040dbec1999d45747df6ffd7017 | [] | no_license | TorpidCoder/Python | 810371d1bf33c137c025344b8d736044bea0e9f5 | 9c46e1de1a2926e872eee570e6d49f07dd533956 | refs/heads/master | 2021-07-04T08:21:43.950665 | 2020-08-19T18:14:09 | 2020-08-19T18:14:09 | 148,430,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | def bubble(arr):
for i in range(0,len(arr)):
for j in range(0,len(arr)-i-1):
if(arr[j]>arr[j+1]):
arr[j],arr[j+1] = arr[j+1],arr[j]
return arr
arr = [14,46,43,27,57,41,45,21,70]
print(bubble(arr))
| [
"sahilexemplary@gmail.com"
] | sahilexemplary@gmail.com |
5dda6f74cdb6d17620d1222030e998748d74087e | 3b2ead608d71da663af69f8260d9b05312a10571 | /Lesson_3/lesson3_6.py | eb119d846411f5370e7efa10885444adf3aa5d1e | [] | no_license | ddobik/Introduction-Python | 938f5c7dff0d51d0fe33c4ee1484747b27203805 | 1025e2c320671908595f6fccc16990756af9b6c4 | refs/heads/main | 2023-07-20T17:34:09.910739 | 2021-08-19T14:38:37 | 2021-08-19T14:38:37 | 376,647,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | x1 = int(input('Enter x1:'))
y1 = int(input('Enter y1:'))
x2 = int(input('Enter x2:'))
y2 = int(input('Enter y2:'))
if abs(x1 - x2) == 1 and abs(y1 - y2) == 2:
print('Yes')
elif abs(x1 - x2) == 2 and abs(y1 - y2) == 1:
print('Yes')
else:
print('No')
| [
"you@example.com"
] | you@example.com |
c10eb3fcc7871f0054c20e215d8aadf633ad154e | 7a10bf8748c7ce9c24c5461c21b5ebf420f18109 | /ml_training/PythonCode/P7_Descriptive+Statistics+in+Python.py | 0b7d4e91d52fa214f3d26c9a09981be833cfffa8 | [] | no_license | VishalChak/machine_learning | aced4b4bf65bbbd08c966a2f028f217a918186d5 | c6e29abe0509a43713f35ebf53da29cd1f0314c1 | refs/heads/master | 2021-06-15T07:13:56.583097 | 2019-10-05T06:01:58 | 2019-10-05T06:01:58 | 133,164,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py |
# coding: utf-8
# View first 20 rows
import pandas
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.data"
names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class']
data = pandas.read_csv(url, names=names)
peek = data.head()
print(pee... | [
"vishalbabu.in@gmail.com"
] | vishalbabu.in@gmail.com |
42542463b033ad43ac9316b25e1bad450db6a910 | 8f70ad12af7eba07efa52eb29b8f99ed3900dbb9 | /AGTGA data/AGTGA/LifeHack/LifeHack 1/TestSuite/TestSuite/TestCase01.py | 19b97f56691b365278a3ad089a95877fcf12e31f | [] | no_license | Georgesarkis/AGTGARowData | 768952dc03dc342bcbe0902bf2fb1720853d0e14 | e1faa7dc820b051a73b0844eac545e597a97da16 | refs/heads/master | 2022-10-01T17:06:04.758751 | 2020-06-05T07:25:41 | 2020-06-05T07:25:41 | 267,772,437 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import time
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from TestSuite.TestSuiteHelper import ElementFinder
port = 'http://localhost:4723/wd/hub'
driver = webdriver.Remote(command_executor=port, desired_capabilities={'automationName' : 'UiAutomator2','deviceName':... | [
"32592901+Georgesarkis@users.noreply.github.com"
] | 32592901+Georgesarkis@users.noreply.github.com |
8890d1e85684f3a78ab85eba661048c7c7206fa6 | 93bf4bbafe0524335ea1216f7f2941348c2cd1bd | /tensorflow/python/ops/math_ops_test.py | 9d126f7542dcf71295f7cf32c8eb18a10d536bde | [
"Apache-2.0"
] | permissive | sachinpro/sachinpro.github.io | c4951734b09588cad58711a76fe657f110163c11 | c3bbd8d89818f5d8bb7296c851ed5e52c19728e3 | refs/heads/master | 2022-12-23T10:00:13.902459 | 2016-06-27T13:18:27 | 2016-06-27T13:25:58 | 25,289,839 | 1 | 1 | Apache-2.0 | 2022-12-15T00:45:03 | 2014-10-16T06:44:30 | C++ | UTF-8 | Python | false | false | 3,159 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"x0234443@ti.com"
] | x0234443@ti.com |
6fa776e5d7257a1496f3e5754db3d168fdb937b0 | d8076e1d19882e4816bcbd7f2b71039007462624 | /Fe_plot_sub.py | 6f436b80946a9b901bce9a849e19272ec985c30d | [] | no_license | kfinn6561/Light_Echoes | e87186c257228f1d191db7dbe7b74e8ddab35e22 | 15f5ed00e26606a68f0544659745c421bb985abb | refs/heads/main | 2023-04-03T16:35:14.992398 | 2021-03-23T10:20:09 | 2021-03-23T10:20:09 | 350,667,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,146 | py | import numpy as np
from scipy.io.idl import readsav
import matplotlib.pylab as pl
import pylabsetup
import sys
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
import readcol
import time
import glob
from matplotlib.backends.backend_pdf import PdfPages
import pickle as pkl
from colour_tools import kell... | [
"kieran.finn@hotmail.com"
] | kieran.finn@hotmail.com |
e966f611456988fe1af4938564b6c442113b17dc | 13f148c314b638c7ca810b5d09bdfd79248283de | /manage.py | 329e9d1514df82a6f71165998d08b60e8faeca1e | [] | no_license | akx/drf_unique_together_testcase | bb6888ce2a718f186d3063daccf947e143de7e79 | 132ef026a6a547fce9723ea2cef4606a1172c721 | refs/heads/master | 2020-03-08T15:06:17.559107 | 2018-04-05T12:25:24 | 2018-04-05T12:25:24 | 128,202,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "drf_unique_together_testcase.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"akx@iki.fi"
] | akx@iki.fi |
a9c0c46edad6ba923dfb0354bc47459129d856c1 | 6a7563ad479e2c3d497d62e91f418d245ec658df | /scratch/indexoper.py | 0650e8b9aa3b7800c20f1bb25cf51fcdc44417d2 | [] | no_license | rosoba/rosoba | 979901ab4858c1559e7ae9c214fb60ca71eec9b5 | b26ae5b6b0f9b7027f306af7da9d1aff1c3e2a46 | refs/heads/master | 2021-01-19T18:36:04.107879 | 2016-01-20T09:48:48 | 2016-01-20T09:48:48 | 4,391,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | '''
Created on Nov 25, 2013
@author: rch
'''
import numpy as np
L = np.array([[0, 1],
[1, 2],
[2, 3]], dtype='i')
X = np.array([[0, 0, 0],
[1, 0, 0],
[1, 1, 0],
[0, 1, 0]], dtype='f')
u_i, u_j = X[L.T]
print u_j
| [
"rostislav.chudoba@rwth-aachen.de"
] | rostislav.chudoba@rwth-aachen.de |
053ad40b16939d38bd80d77c8b759c34b030b3ee | 4ab16447a03a85c3fdc4a016f6fa481756eeeb70 | /src/python/test/yolov3debugloss.py | 279d4b8c3f09e71aedfc600ee8acaf5578b620e9 | [] | no_license | phildue/cnn_gate_detection | 3cd4ae9efde53dbef1aa41b9f7ba5e2875dc80a7 | 9f872b18595e8cd8389d0d1733ee745c017deb3b | refs/heads/master | 2021-03-27T19:34:04.169369 | 2018-12-19T09:32:43 | 2018-12-19T09:32:43 | 112,591,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,141 | py | import pprint as pp
from pathlib import Path
import numpy as np
from keras.callbacks import EarlyStopping, ModelCheckpoint, TensorBoard, TerminateOnNaN, ReduceLROnPlateau, CSVLogger, \
History
from keras.optimizers import Adam
from modelzoo.GateNetDecoder import GateNetDecoder
from modelzoo.GateNetEncoder import E... | [
"phild@protonmail.com"
] | phild@protonmail.com |
4a17b85bb8379fc9ce9ca619292237c86f7c8a04 | 75e518cb1c38cbf8bc55b5e5bb186bcf4412f240 | /migrations/versions/852cea8a2a22_initial_migration.py | 181aa2c80e51866462ceae6d38c2dafa9ee2b0a6 | [
"MIT"
] | permissive | adriankiprono/pitches_project | 984e8381b78c711bf20f84380fa83c26a1392f1b | a3102a7b1d618ad35b981414049c3ead0b5ecc3c | refs/heads/master | 2022-10-07T17:11:54.302322 | 2019-12-04T11:12:18 | 2019-12-04T11:12:18 | 223,401,174 | 0 | 0 | MIT | 2022-09-16T18:13:55 | 2019-11-22T12:44:29 | Python | UTF-8 | Python | false | false | 1,141 | py | """Initial Migration
Revision ID: 852cea8a2a22
Revises: a7cab0911f2f
Create Date: 2019-11-28 11:12:51.171433
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '852cea8a2a22'
down_revision = 'a7cab0911f2f'
branch_labels = None
depends_on = None
def upgrade():
... | [
"tuimuradrian6@gmail.com"
] | tuimuradrian6@gmail.com |
6ec735f143588e6adf5da9dd01457a246fb174ae | ea42ec421c74c273ef1e614dff447076ddd4f69a | /Week_04/126.Word-ladder-II.py | 4565ffe65c268efe85726068a328c969c18c9e36 | [] | no_license | youwithouto/algorithm021 | 5278262f0909914c7e6d6eb58d709fc173b29991 | 81e526385eb3464cbe173ea145badd4be20879af | refs/heads/main | 2023-03-01T08:07:07.526371 | 2021-02-06T04:31:30 | 2021-02-06T04:31:30 | 316,673,717 | 0 | 0 | null | 2020-11-28T06:40:55 | 2020-11-28T06:40:54 | null | UTF-8 | Python | false | false | 939 | py | import collections
class Solution:
def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]:
wordSet = set(wordList)
result = []
layer = {}
layer[beginWord] = [[beginWord]]
while layer:
newLayer = collections.defaultdict(list)... | [
"youwithouto.z@gmail.com"
] | youwithouto.z@gmail.com |
40fc6c47643f9ed3130fe6e82adeaa39f9a4b23e | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/aaa_config/aaa/authentication/__init__.py | d5aa7c18701ef49ed13f411a6214d847e3494fbd | [
"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,026 | 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 |
857884fcc3acbb7df2a7c6f6a680064ffe58729c | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/tutorial/control/summary.py | 92927577d2393d79f61a34f87903c70e13ad1416 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,249 | py | # 2015.11.10 21:30:56 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/tutorial/control/summary.py
from tutorial.control.functional import FunctionalVarSet
from tutorial.logger import LOG_ERROR, LOG_DEBUG
class _Flag(object):
def __init__(self, name, active, store = True):
super(_Flag, self... | [
"info@webium.sk"
] | info@webium.sk |
abec78e2a72aa4027585259773b61dd1fb5a4f12 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_148/ch88_2020_05_18_19_59_52_666753.py | e0172651bedd8c38edc188d258b10ee5ae48067b | [] | 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 | 302 | py | class Retangulo:
def __init__(self, x_coord, y_coord):
self.x = x_coord
self.y = y_coord
def calcula_perimetro(self):
a = self.x
b = self.y
return 2*(a+b)
def calcula_area(self):
c = self.x
d = self.y
return c*d
| [
"you@example.com"
] | you@example.com |
184f4705dd6a5a6cdcc98bd061041cf0dd48e763 | 6390cb7020af3efadfc55bf374316b39164c72e3 | /part2/2_4_7_exptced_conditions.py | 5044b10932ff08bc199440db7ea7177d8000278d | [] | no_license | andrewnnov/stepik_qa | 37fb0808eb30eb807fd951efa0716589ce8a42fa | 689dd383793aeb20e88ce89ff56ff6db263615bd | refs/heads/main | 2023-06-19T00:22:09.292291 | 2021-07-18T19:34:46 | 2021-07-18T19:34:46 | 383,043,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | from selenium import webdriver
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
try:
link = "http://suninjuly.github.io/wait2.html"
browser = webdriver.Chrome("C:\Projects\stepik_q... | [
"andrewnnov@yandex.ru"
] | andrewnnov@yandex.ru |
ad2368024d7faf371220f45fba13ace22d01cb63 | c1847b5eced044ee1c03c9cd32bf336f38d6b17c | /apptools/apptools-ios-tests/apptools/target_platforms.py | beb6bb6c94a3e7beb4a333dfa7443c75af97151d | [
"BSD-3-Clause"
] | permissive | JianfengXu/crosswalk-test-suite | 60810f342adc009bbe249bc38e2153b1f44b5d68 | 6fb6ef9d89235743ee8b867fd2541c5bdf388786 | refs/heads/master | 2021-01-17T04:51:47.366368 | 2015-08-31T02:07:47 | 2015-08-31T02:07:47 | 17,897,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | #!/usr/bin/env python
#
# Copyright (c) 2015 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... | [
"yunx.liu@intel.com"
] | yunx.liu@intel.com |
8920296ee5cb27a4b0e22e713224727923678238 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/disassociate_subnet_firewall_request_body.py | 06e2bb56a2ca9a526a1f1210ffb3bc9cc8974413 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,355 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DisassociateSubnetFirewallRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): T... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
84e79321c4786a570167323987d2d13e7654deb4 | 2e6f4690a2a9448a1eb027c14a637ab449b94c4f | /qa/rpc-tests/bipdersig.py | 1bb4ac97183bc298a20535bae3f3bb1c86222804 | [
"MIT"
] | permissive | mirzaei-ce/core-mashhadbit | 11d60f09f80c8056f5e063eb65783f8699f5ede8 | 1d9d45336cbbda7ffd700d3f1c3dd9e8b4ce2745 | refs/heads/master | 2021-07-18T11:43:26.440889 | 2017-10-26T14:31:07 | 2017-10-26T14:31:07 | 108,422,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test the BIP66 changeover logic
#
from test_framework.test_framework import MashhadbitTestFramework
... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
4c367a95ab9afb62865daaf75a0e5314c4705ec7 | 374dea7d7d1a424d91f369cc75b11b16e1a489cd | /XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/bPN_2o1RXRZaK7Vxgp3oTysbcxQmJr9XStOWBh0VWNo=/binascii.cpython-37m-x86_64-linux-gnu.pyi | 352cce23207d526d4b293041c52677dec98d99b8 | [] | no_license | tkoon107/text-generation-LSTM-neural-net | ed0e6a0fb906f4b4fd649eadfe36c254144be016 | 6b98ee355a30da128462bfac531509539d6533ae | refs/heads/master | 2020-05-27T16:46:44.128875 | 2019-06-10T18:26:54 | 2019-06-10T18:26:54 | 188,708,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,774 | pyi | import builtins as _mod_builtins
class Error(_mod_builtins.ValueError):
__class__ = Error
__dict__ = {}
def __init__(self, *args, **kwargs):
pass
@classmethod
def __init_subclass__(cls):
'This method is called when a class is subclassed.\n\nThe default implementation does nothi... | [
"trevorlang@langdatascience.org"
] | trevorlang@langdatascience.org |
23f64bddd7650d60c54a5d74d312571372533641 | d7620b35a248cf1cabc98f721026a781164c89f5 | /OpenCV-basic/ch03/arithmetic.py | 2f220e3aab44a851cb6efc0940d6ac10c11964da | [] | no_license | Seonghyeony/Project-OpenCV | e53ed1e72b113a29cc5890a89a4e7f4078dfa198 | a07fdc4bfa4cbf5b851a6ec20f0873d09cecbd54 | refs/heads/main | 2023-02-17T22:38:35.537226 | 2021-01-19T13:09:29 | 2021-01-19T13:09:29 | 326,711,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import sys
import numpy as np
import cv2
from matplotlib import pyplot as plt
src1 = cv2.imread('lenna256.bmp', cv2.IMREAD_GRAYSCALE)
src2 = cv2.imread('square.bmp', cv2.IMREAD_GRAYSCALE)
if src1 is None or src2 is None:
print('Image load failed!')
sys.exit()
dst1 = cv2.add(src1, src2, dtype=cv2.CV_8U) # 덧셈... | [
"sunghyun7949@naver.com"
] | sunghyun7949@naver.com |
dadd0fa88fd200adad18bac6e84b65a9d05615d6 | 802105debf55010216717f1a2536057cec2f147c | /convo/migrations/0005_convo_user.py | b262f16574328cd460c80a81fdf8dda56e3acfc7 | [] | no_license | Ibrokola/speakout | ba4bbff627fcd0a82cf206b45d4a2938931ede0e | a800e17edbd69be2c45fec7fe75a83ed1b92d8c5 | refs/heads/master | 2021-01-19T16:59:42.743235 | 2017-05-06T04:37:26 | 2017-05-06T04:37:26 | 88,296,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-15 10:56
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"babskolawole@gmail.com"
] | babskolawole@gmail.com |
5607094dc8545aa042719562e0b5822af083ab9f | ac33111a551d13c13f96abd64898ce216959ada0 | /study/sorting/6-02 위에서아래로.py | fa7f9e4debd4637dbca63642ba35a3245ee2076f | [] | no_license | apple2062/algorithm | b48833e2ebcfe08623f328309780ab5e59749c79 | 9bdd08f513bc2f7600b7b263738e3eb09e86f77c | refs/heads/master | 2023-04-15T05:09:06.401237 | 2021-04-29T03:30:55 | 2021-04-29T03:30:55 | 289,252,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # 6-2 위에서 아래로
# 크기에 상관없이 나열되어 있다.
# 큰 숫 부터 작은 수 순서로 정렬 . 내림차순 정렬 프로그램 만들기
n = int(input())
matrix = []
for i in range(n):
matrix.append(int(input()))
matrix.sort(reverse=True)
for i in matrix:
print(i,end = ' ')
| [
"apple2062@naver.com"
] | apple2062@naver.com |
cec893095fc572f735a747b84cbe0d4f91bce9c7 | 9275454ce938751179ef08ecc21b5dd22a1a0ef0 | /src/brasil/gov/barra/tests/test_helper.py | 1dcf8e1fb446a3a1350cc5cde01b87c10d6d0263 | [] | no_license | Uelson/brasil.gov.barra | a949e49f3c7fd6e52dd657946946ef5d574bb849 | 649fbb6a36a541fb129bb234a307bff6a7e9c0f0 | refs/heads/master | 2020-05-20T19:31:16.899824 | 2015-02-26T21:44:03 | 2015-02-26T21:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | # -*- coding: utf-8 -*-
from brasil.gov.barra.interfaces import IBarraInstalada
from brasil.gov.barra.testing import INTEGRATION_TESTING
from plone import api
from zope.interface import alsoProvides
import unittest2 as unittest
class HelperViewTest(unittest.TestCase):
""" Caso de teste da Browser View BarraHelpe... | [
"erico@simplesconsultoria.com.br"
] | erico@simplesconsultoria.com.br |
e0491c010038ee0b638174e74c8ad306a26cd3a4 | 3f84ff1f506287bf0bb3b0840947e3ef23f22c87 | /10day/8-工厂模式5.py | dbbcbe331d30c8a777a92ad609bc957cecc5b3e6 | [] | no_license | 2099454967/wbx | 34b61c0fc98a227562ea7822f2fa56c5d01d3654 | 316e7ac7351b532cb134aec0740e045261015920 | refs/heads/master | 2020-03-18T06:09:58.544919 | 2018-05-28T13:01:19 | 2018-05-28T13:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | #商店的基类(抽象类) 规定好商店要干的事情
#预订
#创建
class Store(object):
def createFactory(self,type):
pass
def order(self,type):
return self.createFactory(type)
class BmwStore(Store):
def createFactory(self,type):
return BmwFactory().selectCar(type)
class BCStore(Store):
def createFactory(self,type):
return BCFactory().s... | [
"2099454967@qq.com"
] | 2099454967@qq.com |
2c671f1c4a133aca1fab7ed9e5ecaf37b23c15ad | ba7052d8cf27317d7ebd22911e44aec860464307 | /durable_rules_tools/magic.py | 9d67ab8b328bcf9a84bdf2ac2c57607849a25aea | [
"MIT"
] | permissive | innovationOUtside/durable_rules_magic | 841a005ecae417910dbc7800270483e1eed11945 | 3d2fd4386ce2ea8ab83e6e84a39822dc56e21f9a | refs/heads/master | 2023-01-10T16:49:16.784258 | 2020-11-02T18:26:15 | 2020-11-02T18:26:15 | 263,738,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,549 | py | from IPython.core.magic import magics_class, line_cell_magic, Magics
from IPython.core.magic_arguments import argument, magic_arguments, parse_argstring
import warnings
from .rules_utils import quick_assert_fact, quick_retract_fact, quick_post_event, _delete_state
# TO DO - things are passed in from the magic as str... | [
"tony.hirst@gmail.com"
] | tony.hirst@gmail.com |
3e1c302e7759ae163c083e1f83582e237a26a36c | fb365b414076ae14b65c05a6ebb271eb6a35c81d | /cron.py | 84c871029f124f562a8abce7b71e3dc975c3eecf | [
"MIT"
] | permissive | kklmn/ArdquariumPi | 425691ad618968ca3fc89e744918962396fcbaef | 1c84e6d548c22f72f6b93ca36900677cccbdfc00 | refs/heads/master | 2022-04-03T07:13:50.224233 | 2022-02-14T17:52:56 | 2022-02-14T17:52:56 | 236,858,425 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | # -*- coding: utf-8 -*-
import subprocess
from datetime import datetime
from croniter import croniter
cronTable = None
cronTest = \
"""
20 7 * * 1-5 /usr/bin/python3 /home/pi/ArdquariumPi/gpioswitch.py --name light on
45 8 * * 1-5 /usr/bin/python3 /home/pi/ArdquariumPi/gpioswitch.py --name light off
30 9 * * 6,7 /usr... | [
"konstantin.klementiev@gmail.com"
] | konstantin.klementiev@gmail.com |
7566f2795f158d397f3272917fa55e7841f35ed2 | 5cb7b9fe09b1dd20c0664d0c86c375ffe353903c | /static/js/pypyjs/pypy-nojit.js-0.3.1/lib/modules/test/test_codecmaps_jp.py | 0bf43b676bf4c3ae4a0b5f92f7f4ba4ac350e2fa | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | shiblon/pytour | 6d0ee4a679cf7e6ffd8ac6326b8bb0d9071a7c73 | 71a181ec16fd38b0af62f55e28a50e91790733b9 | refs/heads/master | 2021-01-17T10:09:18.822575 | 2020-09-23T20:05:58 | 2020-09-23T20:05:58 | 23,226,350 | 2 | 3 | Apache-2.0 | 2020-02-17T22:36:02 | 2014-08-22T13:33:27 | Python | UTF-8 | Python | false | false | 1,968 | py | #
# test_codecmaps_jp.py
# Codec mapping tests for Japanese encodings
#
from test import test_support
from test import test_multibytecodec_support
import unittest
class TestCP932Map(test_multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'cp932'
mapfileurl = 'http://w... | [
"shiblon@gmail.com"
] | shiblon@gmail.com |
4800755881cc1cf2bdf95087c49ee5aefac0d3c2 | 9f8a746b4bd8b64affa1e7eab1be5cad40030be1 | /train.py | 8036dc193a3e83bac1dc57bfc8a7b8326a75b332 | [
"Apache-2.0"
] | permissive | jianchi2001/PaddlePaddle-DeepSpeech | 5437b0050fbd21193ed741b61d7d1bd4f4279771 | 7b89e63dfa1dfa1deb1e9f43c521196e8a278fd5 | refs/heads/master | 2023-06-21T12:33:19.967696 | 2021-08-03T03:34:45 | 2021-08-03T03:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,244 | py | import argparse
import functools
import io
from datetime import datetime
from model_utils.model import DeepSpeech2Model
from data_utils.data import DataGenerator
from utils.utility import add_arguments, print_arguments, get_data_len
import paddle.fluid as fluid
parser = argparse.ArgumentParser(description=__doc__)
ad... | [
"yeyupiaoling@foxmail.com"
] | yeyupiaoling@foxmail.com |
eb74a08ec12587a4a54535a70cd11c74cd3333a5 | adce0de4c11887519b8e471f1cbca4e18b46d906 | /h0rton/trainval_data/xy_data.py | 818db3539d211824513348099f2810ba4c5356e5 | [
"MIT"
] | permissive | jiwoncpark/h0rton | 30ca4a3c9943099ecd393e4b936b48cad7d81943 | 2541885d70d090fdb777339cfb77a3a9f3e7996d | refs/heads/master | 2021-06-25T23:08:26.902632 | 2021-01-12T01:57:47 | 2021-01-12T01:57:47 | 199,093,811 | 7 | 1 | null | 2020-03-19T16:02:01 | 2019-07-26T23:56:49 | Jupyter Notebook | UTF-8 | Python | false | false | 6,280 | py | import os
import glob
import numpy as np
import pandas as pd
import torch
from torch.utils.data import Dataset
import torchvision.transforms as transforms
from baobab import BaobabConfig
from baobab.data_augmentation.noise_torch import NoiseModelTorch
from baobab.sim_utils import add_g1g2_columns
from .data_utils impor... | [
"jiwon.christine.park@gmail.com"
] | jiwon.christine.park@gmail.com |
fb6de41cf67712e420b26a3593eda05e4a28a4d8 | 872cd13f25621825db0c598268ecd21b49cc2c79 | /Lesson_1/1.py | 425998ea943a1b948516d69748b927e98b243a0d | [] | no_license | ss2576/client_server_applications_Python | c4e9ebe195d23c8ca73211894aa50a74014013d5 | 9b599e37e5dae5af3dca06e197916944f12129d5 | refs/heads/master | 2022-12-15T10:40:22.935880 | 2020-08-12T11:02:21 | 2020-08-12T11:02:21 | 271,764,749 | 0 | 0 | null | 2020-06-12T10:05:00 | 2020-06-12T09:52:03 | Python | UTF-8 | Python | false | false | 935 | py | # Каждое из слов «разработка», «сокет», «декоратор» представить в строковом формате и проверить тип и
# содержание соответствующих переменных. Затем с помощью онлайн-конвертера преобразовать строковые
# представление в формат Unicode и также проверить тип и содержимое переменных.
str_1 = ('разработка', 'сокет', 'декор... | [
"ss2576@mail.ru"
] | ss2576@mail.ru |
4a425c2ee8e6a31e7a911470acb6b0c203fddbcd | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_benidoc_pancakes.py | 53e0469eb2d421c779c30d9d18d071dc28934963 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 596 | py | #! python
def flips(pancakes):
flippies = 0
noHappies = 1
onaSadRun = 0
for p in pancakes:
if noHappies:
if p == '+':
noHappies = 0
else:
flippies = 1
else:
if not onaSadRun and p == '-':
onaSadRun = 1
flippies += 2
elif onaSadRun and p == '+':
onaSadRun = 0
re... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
a314794ab7fe0af0d04c2017a07d685c7f74494a | 99a43cdb360b28f9d8d8cc8fc27d8c2f45271c77 | /app01/migrations/0022_auto_20190104_0518.py | 38e6f457dc7d1161df0a045ef203909b61bca2b6 | [] | no_license | xiaoyaolaotou/MyBook | a542e8702ab46ae1904c3d2efa702cbf642033c0 | d83f07f968005bd34246c684c1bd34405ff07d32 | refs/heads/master | 2020-04-11T10:30:40.995240 | 2019-01-08T08:44:40 | 2019-01-08T08:44:40 | 161,717,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.0 on 2019-01-04 05:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app01', '0021_auto_20190104_0517'),
]
operations = [
migrations.AlterField(
model_name='publisher',
name='name',
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
3cd6c9e6f486380fddb2727858f3c076c0daab00 | a50e73d880fcea987cd2ddd4cc059a67cd7e22e0 | /day10/动物类.py | 36ea7a714675ad9221349a620697165bfee88247 | [] | no_license | Icecarry/learn | 31bed60d5b61201d30bfbaaf520e4e0146e10863 | 2af301b92c9143def9b4c278024d6d2d6e21f0b9 | refs/heads/master | 2021-04-06T07:45:11.938995 | 2018-03-13T06:40:54 | 2018-03-13T06:40:54 | 124,759,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | """
创建一个动物类,
并通过__init__方法接受参数(name),
使用私有属性name保存参数值,并打印"init被调用".
在动物类中定义一个__del__()方法,
使其在删除的时候自动被调用,
并打印"del被调用".
使用动物类,实例化一个dog对象取名"八公"
"""
# 创建动物类
class Animal(object):
# 初始化属性
def __init__(self, name):
self.__name = name
print('init被调用')
# 删除时调用
def __del__(self):
pr... | [
"tyj1035@outlook.com"
] | tyj1035@outlook.com |
bbbeea5b0fff0c61265c637a5569434f4de37523 | 28f1baacde04c3ea85bb246ce1a8c66259dca90b | /dbe/dbe/settings.py | e5bc9e70e996f0c3758484da169d47be68111b58 | [] | no_license | gzpgg3x/lightbirddjango1.5bombquiz | 49c8d79fda28f4d2d4410c710d01c279c488fe77 | 795e41c07adbfa26b85883e2876a9aae8fb188e9 | refs/heads/master | 2020-04-28T09:44:45.019885 | 2013-05-27T04:48:54 | 2013-05-27T04:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,455 | py | # Django settings for dbe project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': ... | [
"gzpgg3x@yahoo.com"
] | gzpgg3x@yahoo.com |
59338675cda54b8d1b11e05c18c14bf83cf83a1e | ccc64bff8996022501a63fcf8e6519b3d7748072 | /AppsTrack/PreSummerCourseWork/apps-1/strcmd.py | 4a64ecf2a592da4e73cff9d95462bea31b05cb5e | [] | no_license | Crash0v3rrid3/summer2019_cmrcet_RishabhJain | d737badf246884bae4957ecf9fc560e715ed05ce | d4696779792f5272aba8734d48d66e4834486179 | refs/heads/master | 2022-02-07T06:55:43.385091 | 2019-06-28T17:04:42 | 2019-06-28T17:04:42 | 193,256,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import click, string
@click.group(help='\tSupports some string commands from command line')
@click.option(
'-rd/-nrd',
'--removedigits/--noremovedigits',
help='remove digits from input'
)
@click.pass_context
def parseArguments(ctx, removedigits):
ctx.obj = {'removedigits': removedigits}
@parseArgument... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
0ccabf18433b4f86eb63f70d6e291486bad92bf3 | a40950330ea44c2721f35aeeab8f3a0a11846b68 | /Pyglet/事件/事件封装.py | 5b5f1c5743c4d3f3aac33466c5c1d6fe08a701be | [] | no_license | huang443765159/kai | 7726bcad4e204629edb453aeabcc97242af7132b | 0d66ae4da5a6973e24e1e512fd0df32335e710c5 | refs/heads/master | 2023-03-06T23:13:59.600011 | 2023-03-04T06:14:12 | 2023-03-04T06:14:12 | 233,500,005 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import pyglet
from pyglet.window import *
window = pyglet.window.Window()
@window.event
def on_draw():
window.clear()
class EventHandler:
def on_key_press(self, symbol, modifiers):
print(1)
def on_mouse_press(self, x, y, button, modifiers):
print(2)
handlers = EventHandler()
def ... | [
"443765159@qq.com"
] | 443765159@qq.com |
4d6976e404683468d5ca3b4bea60273a31380a4f | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /iuenzEsAejQ4ZPqzJ_6.py | 017fc227ab57f18cb890f8be6b2c32882dbb160d | [] | 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 | 334 | py |
def mystery_func(num):
numbers = []
sum_numbers = 1
while sum_numbers <= num:
numbers.append(2)
sum_numbers = sum_numbers * 2
sum_numbers = sum_numbers / 2
numbers = numbers[1:]
numbers.append(int(num - sum_numbers))
result = ""
for i in numbers:
result = result + str(i)
return... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4246ce658b25bc27f0f1f9b6bf6aafbedc9c5dd6 | 446e9abcb0c35cc281d88912c613c8b0a28367a5 | /pyxel/__init__.py | 2080402f52b26a78ddca0729406b2081daee8557 | [
"MIT"
] | permissive | aokiyoi/pyxel | c6dc965ac291f0c71b25633758c0120361a65d59 | edf16a7fa13820d2abca66b40df651cd1b5634db | refs/heads/master | 2020-03-27T15:29:35.647651 | 2018-08-29T14:33:11 | 2018-08-29T14:33:11 | 146,721,606 | 1 | 0 | MIT | 2018-08-30T08:44:11 | 2018-08-30T08:44:10 | null | UTF-8 | Python | false | false | 848 | py | from .constants import (DEFAULT_BORDER_COLOR, DEFAULT_BORDER_WIDTH,
DEFAULT_CAPTION, DEFAULT_FPS, DEFAULT_PALETTE,
DEFAULT_SCALE, VERSION)
def init(width,
height,
*,
caption=DEFAULT_CAPTION,
scale=DEFAULT_SCALE,
palette=DEFAU... | [
"takashi.kitao@gmail.com"
] | takashi.kitao@gmail.com |
f365440375846580f36bbd921622a63de47dbc89 | 7116df00bd936cf468f67d1bec4e2ded98a21347 | /Hangman/task/hangman/hangman.py | 5a912d9f30c680669cb4fb167237a1ccb7143c4e | [] | no_license | Helen-Sk-2020/JetBr_Hangman | 7c5dcc425d9d723f770de0d14c361e5932bc0e84 | fc7b1982ca72b819bcf2134a6956eca8e5c4d90f | refs/heads/master | 2023-08-12T15:17:06.994912 | 2021-09-26T08:22:01 | 2021-09-26T08:22:01 | 410,493,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | import random
print("H A N G M A N")
menu = input('Type "play" to play the game, "exit" to quit:')
while True:
if menu == "exit":
break
elif menu == "play":
words = ['python', 'java', 'kotlin', 'javascript']
predefined_word = list(random.choice(words))
hidden_word = '-' * len(pr... | [
"88376047+Helen-Sk-2020@users.noreply.github.com"
] | 88376047+Helen-Sk-2020@users.noreply.github.com |
73948b75c56292584cfb5bc479b82c9793bc2f3c | 5bf46c7dc88eb7df1bcd4bb9c03b3e765bb13e88 | /Demos/ShapedBitmapButton/ShapedBitmapButton_OnTopOfAnother.py | 711cae25d46ad1af34137918722250af1436224c | [] | no_license | Metallicow/MCOW | 0a56dd9a79bdd9771655a82e23291cd8cefb9c48 | cbb185d96f8a208eb8fab6e8768ecc0f092c839c | refs/heads/master | 2021-01-20T06:28:57.796785 | 2019-12-31T03:51:03 | 2019-12-31T03:51:03 | 89,883,880 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,510 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#-Imports-----------------------------------------------------------------------
#--Python Imports.
import os
import sys
import random
#--wxPython Imports.
# import wxversion
# wxversion.select('2.8')
# wxversion.select('3.0.3-msw-phoenix')
import wx
try: # Locally
... | [
"metaliobovinus@gmail.com"
] | metaliobovinus@gmail.com |
be18e7315b8e7fea587df7db3b808536c1fd9603 | caed98915a93639e0a56b8296c16e96c7d9a15ab | /Array and Strings/Product of Array Except Self.py | aa91753d41fe7378b0066bb7318b06daf4015445 | [] | no_license | PiyushChandra17/365-Days-Of-LeetCode | 0647787ec7e8f1baf10b6bfc687bba06f635838c | 7e9e9d146423ca2c5b1c6a3831f21dd85fa376d5 | refs/heads/main | 2023-02-13T10:41:36.110303 | 2021-01-17T11:58:51 | 2021-01-17T11:58:51 | 319,974,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
arr = [1]*len(nums)
pi = pj = 1
for i in range(len(nums)):
j = -1-i
arr[i] *= pi
arr[j] *= pj
pi *= nums[i]
pj *= nums[j]
return arr | [
"noreply@github.com"
] | PiyushChandra17.noreply@github.com |
b479900d85db2a6283ed36965d7e3affa11db2d3 | 4e094127dda44d757df8d1a901e847c1d3e2abba | /server/core/management/commands/export_schema.py | 397230cc0fe391c57e531099fbb06b5c0e1d3889 | [] | no_license | vied12/bias-tracker | 24946c512f04b33973a1019a26ee8444bdcd4450 | 425037b1418edb7da4dd785562e01852781e8d9f | refs/heads/master | 2023-02-08T07:45:40.401805 | 2021-04-29T14:30:52 | 2021-04-29T14:30:52 | 119,360,580 | 18 | 1 | null | 2023-01-25T09:24:14 | 2018-01-29T09:22:47 | JavaScript | UTF-8 | Python | false | false | 697 | py | from django.core.management.base import BaseCommand
from graphql_schema import Query
import graphene
import json
class Command(BaseCommand):
help = 'Reload metadata'
def handle(self, *args, **options):
schema = graphene.Schema(Query)
result = schema.execute('''
{
_... | [
"edou4rd@gmail.com"
] | edou4rd@gmail.com |
3a4ae859485d377f77bbb040a5db99b8783b6cf5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2443/60647/283688.py | b4cc62b63b9bd5aa4c35fa853e576b3a82c5b2c0 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | list=input()
list1=[]
for i in list:
list1.append(str(i))
def bubble_sort(nums):
for i in range(len(nums) - 1):
for j in range(len(nums) - i - 1):
if nums[j][0] < nums[j + 1][0]:
nums[j], nums[j + 1] = nums[j + 1], nums[j]
return nums
list1=bubble_sort(list1)
str="".join... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
80f840e99d724cd34ca2ebea60746438fe6373d3 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBSjjlnu/Full2018v7/configuration_fit_v4.5_2018_VBFdipole.py | 54bed77860578f1376934218acbf91eace6b6b4c | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 1,195 | py | # example of configuration file
treeName= 'Events'
tag = 'fit_v4.5_2018_VBFdipole'
direc = "conf_fit_v4.5"
# used by mkShape to define output directory for root files
outputDir = 'rootFile_'+tag
# file with TTree aliases
aliasesFile = direc+'/aliases.py'
# file with list of variables
variablesFile = direc+'/varia... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
4c9c2f84c4ae598e451443f8db7cdfb69f9450bc | 626e0fe0435d85ae9e644ff04c14adc49e0c8647 | /tributary/tests/streaming/echo.py | aae946e5e1cfc9d7ec6e66e215e8c2b7ae27684c | [
"Apache-2.0"
] | permissive | timkpaine/tributary | c0e9370f01daa82a3fbccdf56cf71b94f21d0c28 | 4ebdd8f5990636f1c2f301f3623a8eed6a40e26f | refs/heads/main | 2023-06-08T10:30:29.580330 | 2023-05-23T20:01:16 | 2023-05-23T20:01:16 | 510,095,380 | 19 | 1 | Apache-2.0 | 2022-07-03T17:48:11 | 2022-07-03T17:48:10 | null | UTF-8 | Python | false | false | 317 | py | import json as JSON
import sys
import os.path
sys.path.insert(
0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../"))
)
if __name__ == "__main__":
import tributary.streaming as ts
def _json(val):
return JSON.dumps(val)
ts.run(ts.Console(json=True).apply(_json).print())
| [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
a52aecdba8e971e8d721b289c8b48c93c61bdaa2 | c06d18ac5b87b3b82fc486454c422b119d6c1ee9 | /src/demo/short_text/base_on_ml.py | 3fc038f1b47677afa036d641fd34a1b5735f9122 | [] | no_license | tangermi/nlp | b3a4c9612e6049463bf12bc9abb7aff06a084ace | aa36b8b20e8c91807be73a252ff7799789514302 | refs/heads/master | 2022-12-09T12:33:15.009413 | 2020-04-03T04:03:24 | 2020-04-03T04:03:24 | 252,056,010 | 0 | 0 | null | 2022-12-08T07:26:55 | 2020-04-01T02:55:05 | Jupyter Notebook | UTF-8 | Python | false | false | 937 | py | import random
sentences = [('时间 问你 我们 群殴', '1'), ('大家 文献 二次 去啊', '0')]
segs= ['物品', '你的', '我的', '开心']
category = '0'
sentences.append((" ".join(segs), category))# 打标签
random.shuffle(sentences)
print(sentences)
from sklearn.feature_extraction.text import CountVectorizer
vec = CountVectorizer(
analyzer='word', # to... | [
"n10057862@qut.edu.au"
] | n10057862@qut.edu.au |
896d3a1e99ae566ad3376d5b7253f51ddb35c161 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03354/s914537720.py | 0dc717e8981f0e9cd5a36af2d138fde2991d7ea4 | [] | 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 | 612 | py | N,M = map(int,input().split())
par = [i for i in range(N+1)]
# 木の根を求める
def root(x):
if par[x] == x:
return x
else:
par[x] = root(par[x])
return par[x]
# xとyが同じ集合に属するか否か
def bool_same(x,y):
return root(x) == root(y)
# xとyの属する集合を併合
def unite(x,y):
x = root(x)
y = root(y)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed4b468c2257e10ce898f47f5e0f4a204235e753 | 3bdb9a5bc9b75c13ae99750f8fbf9d92a03f905a | /ankiety/views.py | 6b7d8e6298ee93e0e3f12adb532c90af4401df99 | [] | no_license | lo1cgsan/absolwent_org | b9f3857c7d512f9c02e33519ffcd2b6ad43096de | 37f6527d677b13abaf389fdd2b60c2bd33547a68 | refs/heads/master | 2022-10-04T07:11:22.541701 | 2019-04-16T17:16:08 | 2019-04-16T17:16:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | from django.shortcuts import render
from django.views.generic import ListView, DetailView
from ankiety.models import Pytanie, Odpowiedz
from django.shortcuts import get_object_or_404, redirect
from django.urls import reverse
from django.contrib.auth.decorators import login_required
from django.utils.decorators import m... | [
"lo1cgsan@gmail.com"
] | lo1cgsan@gmail.com |
e3d4d52ac5ab25631bcf8829cd5a152424e503c4 | daa053212901b51273bb1f8a6ca3eddac2b5cbaf | /main/apps/projects/migrations/0006_project_files.py | 9912703e9d47877b399ea8ef55d33fc16ca3e497 | [] | no_license | truhlik/directit | 11fb45d482d454b55888f38afe0f64ce533788ad | eb10654b64cbe4232811594b936f8e3d0381754e | refs/heads/main | 2023-08-30T10:03:45.376159 | 2021-10-06T19:02:15 | 2021-10-06T19:02:15 | 414,334,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # Generated by Django 3.0 on 2020-06-09 10:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('files', '0001_initial'),
('projects', '0005_project_consultant'),
]
operations = [
migrations.AddField(
model_name='projec... | [
"lubos@endevel.cz"
] | lubos@endevel.cz |
9d7835a75496bad26ec9fb26a9051fcbb7470ace | f92385943346eccca8cc4d7caca66d2d5455caa2 | /2020.7/百度-RGB括号.py | 1ba51b832d7734d324b231f2de559d81c6661c0e | [] | no_license | IamWilliamWang/Leetcode-practice | 83861c5f8672a716141dc6ec9f61f21dc5041535 | c13c0380a3ae9fef201ae53d7004b9f4224f1620 | refs/heads/master | 2023-04-01T12:15:19.335312 | 2020-10-15T14:49:36 | 2020-10-15T14:49:36 | 281,846,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,346 | py | from itertools import product
from test_script import speedtest, deprecated
from collections import defaultdict
from functools import lru_cache
import numpy as np
def main(_string=None):
if _string is None:
_string = input()
strlen = len(_string)
leftIndexList = [0] * strlen # 记录左括号的位置
match... | [
"iamjerichoholic@hotmail.com"
] | iamjerichoholic@hotmail.com |
45e57209d8ee31112c54e04ee4a86688813fdf70 | 5acc77c4d594c1750a9b7477499ee25b4c307bca | /ehpi_action_recognition/paper_reproduction_code/evaluations/lstm/test_its_journal_2019.py | d33c4f0cc31943aaa298a35c28cecd64171894e4 | [
"MIT"
] | permissive | noboevbo/ehpi_action_recognition | bc15a3c260c79b85a82844a2779c9b1ec9cf42fd | 3b77eeb5103f0f11c8d4be993ec79dddad7e661c | refs/heads/master | 2021-12-29T05:24:31.891044 | 2021-12-19T16:23:36 | 2021-12-19T16:23:36 | 180,351,212 | 113 | 23 | null | 2019-04-23T11:24:27 | 2019-04-09T11:22:45 | Python | UTF-8 | Python | false | false | 4,367 | py | import os
import numpy as np
from nobos_commons.data_structures.constants.dataset_part import DatasetPart
from nobos_commons.data_structures.dimension import ImageSize
from nobos_commons.utils.file_helper import get_create_path
from nobos_torch_lib.datasets.action_recognition_datasets.ehpi_dataset import NormalizeEhpi... | [
"Dennis.Ludl@reutlingen-university.de"
] | Dennis.Ludl@reutlingen-university.de |
be65023c8a0ce8f41a32a0bcfb746bae3966244d | 526bf18a8695862067c817f432ab197ceb645f39 | /scrappers/bfs/leafly/leafly.py | 83e4f3c83d6395e3ff58f83ebdb6291aecef4be3 | [] | no_license | sintimaski/bfs-be | a7fd623911a2220face49a0ef84574f3fd7a09a8 | 964a9c7e9cc876aaf8b0723d6b3f26bd378c3721 | refs/heads/master | 2023-08-02T09:00:44.855055 | 2021-09-22T13:07:01 | 2021-09-22T13:07:01 | 339,531,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,263 | py | import json
import cloudscraper
import random
from core.db_connector import db
from core.models import Business
from core.proxies import proxies
class LeaflyScrapper:
def __init__(self):
self.source = "leafly"
self.project = "encycloweedia"
def start_scrapping(self):
... | [
"dimadrebezov@gmail.com"
] | dimadrebezov@gmail.com |
63435c029b1067a7237f109e533698e5d3667d12 | 6d7507b0695c5f704f1367604370f52a1cd60fe6 | /testfarm/test_program/app/honor/teacher/home/vanclass/test_cases/test014_vanclass_paper_list_and_tab.py | 9da7c040e8b157fd8f0d28b92f4672b80efd0bdc | [] | no_license | sj542484/test | f88b1f0524e853b24759de1bc8019a643bf11dcc | 908bef52867e3944b76898cfcc018fa403202815 | refs/heads/master | 2022-04-09T17:18:40.847936 | 2020-03-25T07:30:55 | 2020-03-25T07:30:55 | 194,576,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,958 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Author : SUN FEIFEI
import re
import sys
import unittest
from app.honor.teacher.login.object_page.login_page import TloginPage
from app.honor.teacher.home.dynamic_info.object_page.paper_detail_page import PaperReportPage
from app.honor.teacher.home.vanclass.object_page... | [
"18330245071@163.com"
] | 18330245071@163.com |
5cd8e4ddca0ba3aac72d705023c9812f11cba524 | 4ae7a930ca6aa629aa57df7764665358ee70ffac | /examples/ml/mlflow/california_with_mlflow.py | a369a793c618a79f2b6e6a6938d768be66c989a7 | [
"MIT"
] | permissive | carefree0910/carefree-learn | 0ecc7046ef0ab44a642ff0a72a181c4cb5037571 | 554bf15c5ce6e3b4ee6a219f348d416e71d3972f | refs/heads/dev | 2023-08-23T07:09:56.712338 | 2023-08-23T02:49:10 | 2023-08-23T02:49:10 | 273,041,593 | 451 | 38 | MIT | 2021-01-05T10:49:46 | 2020-06-17T17:44:17 | Python | UTF-8 | Python | false | false | 1,104 | py | # type: ignore
# This example requires the `mlflow` package
import cflearn
from cflearn.data.ml import california_dataset
from cflearn.misc.toolkit import check_is_ci
from cflearn.misc.toolkit import seed_everything
seed_everything(123)
x, y = california_dataset()
y = (y - y.mean()) / y.std()
config = cflearn.MLC... | [
"syameimaru.saki@gmail.com"
] | syameimaru.saki@gmail.com |
9ab5d72809b7086e7bd4c7e64e900d1b1d153617 | c9952dcac5658940508ddc139344a7243a591c87 | /tests/lab03/test_ch03_t02_get_current_date_time.py | e7483fb0ce4619ff230b0400ed999739b99f4e6e | [] | no_license | wongcyrus/ite3101_introduction_to_programming | 5da1c15212528423b3df91997327fe148abef4de | 7cd76d0861d5355db5a6e2e171735bee2e78f829 | refs/heads/master | 2023-08-31T17:27:06.193049 | 2023-08-21T08:30:26 | 2023-08-21T08:30:26 | 136,574,036 | 3 | 2 | null | 2023-08-21T08:30:28 | 2018-06-08T06:06:49 | Python | UTF-8 | Python | false | false | 516 | py | import unittest
from tests.unit_test_helper.console_test_helper import *
class TestOutput(unittest.TestCase):
def test(self):
temp_globals, temp_locals, content, output = execfile("lab03/ch03_t02_get_current_date_time.py")
print(temp_locals)
self.assertIsNotNone(temp_locals['datetime'])
... | [
"cywong@vtc.edu.hk"
] | cywong@vtc.edu.hk |
66f4264f5c8550c4b2a2691d5eaffb11f8d201ff | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part12-introduction-to-Databases/No12-Ordering-in-Descending-Order-by-a-Single-Column.py | daee5158e0690eff17495df10d745b269a7fd994 | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | #Ordering in Descending Order by a Single Column
'''
You can also use .order_by() to sort from highest to lowest by wrapping a column in the desc() function. Although you haven't seen this function in action, it generalizes what you have already learned.
Pass desc() (for "descending") inside an .order_by() with the na... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
c626a31052ba0bf40912b3c89ebde89a31bf2a7e | a64089402e4c265319f69b126ec89512105d0e78 | /chainer/distributions/exponential.py | 5f4274fa49b83e12e32a3b5a920007ea5636bdab | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lehy/chainer | 86c46e36e9a9414349137a87f56afc6ebb735f46 | 007f86fdc68d9963a01f9d9230e004071a1fcfb2 | refs/heads/master | 2020-04-03T21:53:59.915980 | 2018-10-31T16:09:12 | 2018-10-31T16:22:20 | 155,586,089 | 0 | 0 | MIT | 2018-10-31T16:05:37 | 2018-10-31T16:05:36 | null | UTF-8 | Python | false | false | 2,414 | py | import chainer
from chainer.backends import cuda
from chainer import distribution
from chainer.functions.array import where
from chainer.functions.math import exponential
from chainer.functions.math import exponential_m1
from chainer.functions.math import logarithm_1p
class Exponential(distribution.Distribution):
... | [
"yoshikawa@preferred.jp"
] | yoshikawa@preferred.jp |
9a1205ffcd8780e7f8160ba2f5fa17e38a4537c4 | c91d029b59f4e6090a523bf571b3094e09852258 | /src/servico/migrations/0026_numerodocumento_status.py | a98891ce1975c237645961287f635c3604f36fd9 | [
"MIT"
] | permissive | anselmobd/fo2 | d51b63ebae2541b00af79448ede76b02638c41f0 | 8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab | refs/heads/master | 2023-08-31T19:59:33.964813 | 2023-08-31T19:50:53 | 2023-08-31T19:50:53 | 92,856,677 | 1 | 0 | MIT | 2023-04-21T21:50:46 | 2017-05-30T17:04:27 | Python | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-04-21 18:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('servico', '0025_eventodestatus_status_pre_pos'),
]
... | [
"anselmo.blanco.dominguez+github@gmail.com"
] | anselmo.blanco.dominguez+github@gmail.com |
c681389bc526c21ef3d1837e9d67227023d2f7ee | af3e249753fbf04ce10a01e4dbeab549cb4ae34d | /oscar/core/ajax.py | 988307bb76a4b1b63a798bccf15c325dabfbcdb1 | [] | no_license | rwozniak72/sklep_oscar_test | 79588b57470c9245324cc5396aa472192953aeda | fb410dc542e6cb4deaf870b3e7d5d22ca794dc29 | refs/heads/master | 2020-08-12T04:55:25.084998 | 2019-10-16T21:14:08 | 2019-10-16T21:14:08 | 214,692,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | from django.contrib import messages
class FlashMessages(object):
"""
Intermediate container for flash messages.
This is useful as, at the time of creating the message, we don't know
whether the response is an AJAX response or not.
"""
def __init__(self):
self.msgs = {}
... | [
"rwozniak.esselte@gmail.com"
] | rwozniak.esselte@gmail.com |
65c802fcb665af7e9553bbacc627687b7a33f4b6 | f313486c2cdbea0fa40bc9e8a7ea8810a2ce9e98 | /tests/run_ns.py | 18245a0b5394ce1ac6386ceede3641802e2b9e12 | [
"MIT"
] | permissive | trituenhantaoio/pytorch-rl | ae1f20dee149979f50e4a671767eed4524e7bb5b | efaa80a97ea805a5c76fad4df83221a100d3258a | refs/heads/master | 2020-09-19T23:37:03.343763 | 2019-07-31T17:03:56 | 2019-07-31T17:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | import subprocess
import os
experiments = [e for e in os.listdir() if e.startswith('ns')]
for experiment in experiments:
print(experiment)
command = f'python {experiment}'
process = subprocess.Popen(command, shell=True)
process.wait() | [
"bentrevett@gmail.com"
] | bentrevett@gmail.com |
d057862aca60f62e0685051aaf79dd2246a34249 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /output/StudentProblem/10.21.9.56/1/1569577364.py | 53cfab12f42d6d84469e7e7b8a966d17dc4d851a | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | ============================= test session starts ==============================
platform darwin -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /tmp
collected 0 items / 1 error
==================================== ERRORS ====================================
________________________ ERROR collecting te... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
44c9e8921ec5d14bab6637c0c9b70692a3cabd18 | 4a2bfa14d4d250d742b1737639e3768936382425 | /virtual/bin/pip | b6fff006bf91c8740a98fcf97af02304b45217ae | [] | no_license | AugustineOchieng/gallery | 1946c62894b5e73adb34deddaa8d93d9ece21705 | 1d0933b96dc50a100451e609ddfe49af6c6ff9b2 | refs/heads/master | 2020-05-21T07:19:11.787689 | 2019-05-10T09:15:30 | 2019-05-10T09:15:30 | 185,957,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/moringa/Desktop/gallery/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gusochieng@gmail.com"
] | gusochieng@gmail.com | |
fc35f22f1539d28df0821c5ab0b2026bb173b18f | 8600ea155f279e5a8dfe5a1926038511f6b6a7ea | /hr_attendance/hr_attendance.py | 01ca1d441abc805ee879c1f031b880be3055d097 | [] | no_license | MarkNorgate/addons-EAD | c2fff89ab16fce3ba19fbe433ee5863705a6f4e5 | 840f28642b5d328e4b86839c413e5164622295a5 | refs/heads/master | 2020-04-23T22:11:00.164438 | 2015-07-22T12:24:53 | 2015-07-22T12:24:53 | 39,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,440 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"mark.norgate@affinity-digital.com"
] | mark.norgate@affinity-digital.com |
0a38735793340df0638f90b37e8c9454bde3bc24 | 5b3d8b5c612c802fd846de63f86b57652d33f672 | /Python/seven_kyu/all_non_consecutive.py | 14c8d4b4b416904d5134728fa537b9d0cee1c26c | [
"Apache-2.0"
] | permissive | Brokenshire/codewars-projects | 1e591b57ed910a567f6c0423beb194fa7f8f693e | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | refs/heads/master | 2021-07-22T18:50:25.847592 | 2021-01-25T23:27:17 | 2021-01-25T23:27:17 | 228,114,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # Python solution for 'Find all non-consecutive numbers' codewars question.
# Level: 7 kyu
# Tags: FUNDAMENTALS AND ARRAYS.
# Author: Jack Brokenshire
# Date: 05/08/2020
import unittest
def all_non_consecutive(arr):
"""
Find all the elements of an array that are non consecutive. A number is non consecutive i... | [
"29889878+Brokenshire@users.noreply.github.com"
] | 29889878+Brokenshire@users.noreply.github.com |
ee1db31b9cc40af9415eb0b52dc577ffb039e338 | fe71d0f38a282225e6cfbc918bd8e4ca21ad4335 | /factory/factory/settings.py | 021ecb68667bf0b52e8896d0db0d3bcd1017241b | [
"MIT"
] | permissive | avara1986/graphql-django | 5db4b503da9918e7c2ea6374ff99e1bb87c358f0 | 57b9bcb479842e243488a59cb4db4f523c2877ce | refs/heads/master | 2021-06-24T16:15:33.110235 | 2017-09-10T18:35:51 | 2017-09-10T18:35:51 | 103,052,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,220 | py | """
Django settings for factory project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"a.vara.1986@gmail.com"
] | a.vara.1986@gmail.com |
e0305bf4df162ebc08c5f96428ce7e4ffb35c523 | f31ec01e5e7fc7ba1704cd7f1e59992752ecbf8f | /tornado/platform/auto.py | d3eeb56b2e519fa77293677eccfd6eba46e5f2a7 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | st4lk/tornado | 5a79995ada89fd090acf251c71a26d4eeea75e6b | 1ceeb1ffd581f31678cd63fe81ef8d2e4f35380b | refs/heads/master | 2020-12-03T05:16:44.365763 | 2015-02-23T15:49:23 | 2015-02-23T15:49:23 | 29,911,658 | 1 | 1 | null | 2015-01-27T11:42:04 | 2015-01-27T11:42:04 | null | UTF-8 | Python | false | false | 1,726 | py | #!/usr/bin/env python
#
# Copyright 2011 Facebook
#
# 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 a... | [
"ben@bendarnell.com"
] | ben@bendarnell.com |
96bb6d5195d072d90ecd75f5f6b6bab8750b45e8 | a2d13658503b9b921e27994152ab6adb554725bc | /store/migrations/0036_auto_20201226_1430.py | 90e2d15defac2bc93f126c4c3f0918dc532b67f9 | [] | no_license | avishkakavindu/sushi-chef-django | 40a1d7916d7f8c37ba1290cb717af517d2bce265 | 4c112d806720d903877822baaa26159c32704901 | refs/heads/master | 2023-03-18T11:12:41.721554 | 2021-03-11T08:22:52 | 2021-03-11T08:22:52 | 303,053,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | # Generated by Django 3.1.2 on 2020-12-26 09:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('store', '0035_auto_20201226_1241'),
]
operations = [
migrations.AddField(
model_name='order',
... | [
"avishkakavindud@gmail.com"
] | avishkakavindud@gmail.com |
9a3b27804f5201776943de0278f7deff9ad858ca | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/735.py | 174fa827ffdb1d04493c39ad3d27ab4e27f67fca | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 367 | py | import string
def word_count(phrase):
punct = set(string.punctuation)
no_punct =''
for char in phrase:
if char not in punct:
no_punct += char
dict = {}
for word in no_punct.split():
str = word.lower()
if str not in dict:
dict[str] = 1
els... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
665eedf826b911f95e4b7ff7f0f21c48d89547fb | 7eda5c4c9bfedbd561d77df14c454f0485d8e025 | /Program Assignment4_Mincut/kargerMinCut.py | e4844a29c093e5d88cf14dc66981c36e82f046e1 | [
"MIT"
] | permissive | brianchiang-tw/Algorithm_specialization_Part-I | af6c7e1ad7f70323d1b92086d85dd9f7ec157c1b | 44b24f4a97f23d24bde6a4235f70f7707c8b03b7 | refs/heads/master | 2020-09-12T14:57:59.434448 | 2019-11-18T14:36:37 | 2019-11-18T14:36:37 | 222,459,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | import sys
import os
import math
import random
from datetime import datetime
import copy
def edge_contraction( adj_list_dict, vertex_u, vertex_v):
# contract edge(u, v)
# keep vertex u, and update u's adjacency list from appending vertex v's
adj_list_dict[ vertex_u] = adj_list_dict[ vertex_u ] + adj_lis... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
de9a7a96eb7c0d7336f901b12ee53b3107656994 | 7503725bc8098d34e0973c5661685582bef0cbbb | /mmdet2trt/models/roi_heads/htc_roi_head.py | 6e9f71f6bf2af79e897e5167e107623189a932a7 | [
"Apache-2.0"
] | permissive | zjj-2015/mmdetection-to-tensorrt | bf280ef9359ec95293eee5062cf184786133543a | e1b91743cd4c9a145fc2b2701baef5ff648a1a4c | refs/heads/master | 2023-08-30T05:00:26.866383 | 2021-11-16T14:18:10 | 2021-11-16T14:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,898 | py | import mmdet2trt.ops.util_ops as mm2trt_util
import torch
import torch.nn.functional as F
from mmdet2trt.core.post_processing import merge_aug_masks
from mmdet2trt.models.builder import build_wraper, register_wraper
from mmdet.core.bbox.coder.delta_xywh_bbox_coder import delta2bbox
from .cascade_roi_head import Cascad... | [
"streetyao@live.com"
] | streetyao@live.com |
07d34db149dfe54a5b165170aabfd130243cfe8d | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_software_termination/12-2Nested_false-termination_5.py | 03da5a2a4a14729312115bb8d36de8036d58e9cf | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,525 | py | from typing import Tuple, FrozenSet
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
import pysmt.typing as types
from utils import symb_to_next
from hint import Hint, Location
def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode,
... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
6f66c53bf1536515d0e2b64c20185a6e0d4097b9 | c5c58a08ea6841f7042e037db6ad7eb668dbc0bb | /code/1/ninja/old/basicstats.py | 9adb83819260894257cc252d56d83a8e0865fb01 | [
"MIT"
] | permissive | amritbhanu/fss16591 | 99745091e355568230809e9c56bd7627fe1eea58 | d10c9e6e20c2d131441b6a03a27ecb030842b596 | refs/heads/master | 2020-04-24T01:17:37.431866 | 2017-08-09T15:03:25 | 2017-08-09T15:03:25 | 65,946,447 | 0 | 2 | null | 2016-09-10T03:37:59 | 2016-08-17T22:27:27 | Python | UTF-8 | Python | false | false | 3,072 | py |
""" __________________________________________________
# simplestats.py: simple basic stats
"""
from __future__ import division,print_function
import sys,math
sys.dont_write_bytecode=True
def normalDiff(mu1,sd1,n1,mu2,sd2,n2):
nom = mu2 - mu1
denom = delta/((sd1/n1 + sd2/n2)**0.5) if s1+s2 else 1
... | [
"amritbhanu@gmail.com"
] | amritbhanu@gmail.com |
929b2b37442af1e84eb361c74e7758e337b1abab | 4aa7a4d0525095725eb99843c83827ba4806ceb1 | /keras/keras19_shape.py | a32d49ea5b537c83e66f5fe52ba953aa27ce27c8 | [] | no_license | seonukim/Study | 65a70f5bdfad68f643abc3086d5c7484bb2439d4 | a5f2538f9ae8b5fc93b5149dd51704e8881f0a80 | refs/heads/master | 2022-12-04T17:04:31.489771 | 2020-08-21T00:35:15 | 2020-08-21T00:35:15 | 260,144,755 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | # 1. 데이터
import numpy as np
x = np.array([range(1, 101), range(311, 411), range(100)])
y = np.array(range(711, 811))
# 1-1. 행과 열을 바꾸기 - 전치행렬 구하기
x = x.transpose()
y = y.transpose()
from sklearn.model_selection import train_test_split
x_train, x_test, y_train, y_test = train_test_split(
x, y, train_size = 0.8, shu... | [
"92.seoonooo@gmail.com"
] | 92.seoonooo@gmail.com |
769912c4efb8929002f8bd37954cdb0604e47ca6 | 9e9588fbd2eeb48cb45b053cc37c6c40ef1b5558 | /web_app/app.py | c2837a25a396f7cf1527f63aea717d0bf534a208 | [
"MIT"
] | permissive | ArRosid/question-answer-flask | cfecbb8681b258fe389267fbbc16eec19595c36c | 920f5cf5a16887006819183b2573a9d896e3107d | refs/heads/master | 2021-04-23T00:19:34.742155 | 2020-03-31T05:08:28 | 2020-03-31T05:08:28 | 249,883,456 | 0 | 0 | MIT | 2021-03-20T03:16:30 | 2020-03-25T04:03:36 | HTML | UTF-8 | Python | false | false | 8,066 | py | import os
from flask import (Flask, g, redirect, render_template, request, session,
url_for)
from werkzeug.security import check_password_hash, generate_password_hash
import dbcon
app = Flask(__name__)
app.config["SECRET_KEY"] = os.urandom(24)
@app.teardown_appcontext
def close_db(error):
if ... | [
"ahmadrosid30121997@gmail.com"
] | ahmadrosid30121997@gmail.com |
e7497d37b10b60b49e884962d8cc83295158c6b3 | a3493aaf1fc0b067d852bb7cd8e81b0fee6145d6 | /Modules_&_pip.py | ba57b9dc523a2416afbdde8e5a9cdf195315561a | [] | no_license | VivakaNand/Python_For_Beginners_by_Udemy | 862c128f8dd4035c794b99494474de661a2be5e0 | ab119426c9ded6f46256ec8f915fdf439b1e520d | refs/heads/master | 2020-11-27T14:30:31.530986 | 2019-12-21T22:25:47 | 2019-12-21T22:25:47 | 229,488,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 22 03:00:21 2019
@author: VIVEK VISHAN
"""
# Modules & pip
import useful_tools
print(useful_tools.roll_dice(10))
print(useful_tools.feet_in_mile)
import docx
docx.
| [
"vivekjetani83@gmail.com"
] | vivekjetani83@gmail.com |
7446edb80b72ff3519521b98b4f5fbc49526c82d | b68e3b8485ea8bef9fc7b3cbf6baa98a51fa533f | /section14/lesson173/test_calculation.py | 1eac580f11491856c765cc11bd46aca7c0f2f447 | [] | no_license | Naoya-abe/siliconvalley-python | 7936b7e779072b23e16c9d50cca44c2e0bf6eb5f | 8d226adaea839b64b1e5eb62985349b5bb2e1484 | refs/heads/master | 2021-05-20T14:40:47.682812 | 2020-04-27T02:02:43 | 2020-04-27T02:02:43 | 252,336,229 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | # 独自ののfixture
import os
import pytest
import calculation
class TestCal(object):
@classmethod
def setup_class(cls):
cls.cal = calculation.Cal()
cls.test_dir = '/tmp/test_dir'
cls.test_file_name = 'test.txt'
@classmethod
def teardown_class(cls):
import shutil
i... | [
"n.abe@gemcook.com"
] | n.abe@gemcook.com |
6649e00fafca3d64cad131fe2b2c0d4be4921d60 | 0ee5ae0b71b81419d4534b2ed8681e28a1ed9ddb | /arxivanalysis/cons.py | 56a990e9ed4ffdff6869afc9a19b71c8628b952e | [
"MIT"
] | permissive | refraction-ray/arxiv-analysis | a0f4542298ecc427a49ec9bb026f0ef31699a7f5 | 10b72853920bc653d5622b17da817a1fc1d83c4e | refs/heads/master | 2023-05-02T16:33:01.629979 | 2023-04-17T02:35:58 | 2023-04-17T02:35:58 | 160,020,387 | 2 | 10 | null | null | null | null | UTF-8 | Python | false | false | 7,214 | py | """
some constants
"""
weekdaylist = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
category = {
"astro-ph": "Astrophysics",
"astro-ph.CO": "Cosmology and Nongalactic Astrophysics",
"astro-ph.EP": "Earth and Planetary Astrophysics",
"astro-ph.GA": "Astrophysics of Galaxies",
"astro-ph.HE": "High... | [
"kcanamgal@foxmail.com"
] | kcanamgal@foxmail.com |
e26636a9ae7ceac0ee556870e3f586cf4b775f62 | 032a1ad3c94e1126729417a16e2a95743d121244 | /cell_fitting/optimization/evaluation/plots_for_thesis/dap_mechanism/blocking_channels.py | 44fad4a980d5b5fbf8da14d9834d41c3231a5824 | [] | no_license | cafischer/cell_fitting | 0fd928f5ae59488e12c77648c2e6227c1911d0e9 | 75a81987e1b455f43b5abdc8a9baf6b8f863bee2 | refs/heads/master | 2021-01-23T19:27:30.635173 | 2019-09-14T08:46:57 | 2019-09-14T08:46:57 | 44,301,986 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,869 | py | import numpy as np
import os
import matplotlib.pyplot as pl
import matplotlib.gridspec as gridspec
from nrn_wrapper import Cell
from cell_fitting.optimization.evaluation import simulate_model, simulate_model_currents
from cell_fitting.optimization.evaluation.plot_blocking.block_channel import block_channel, \
block... | [
"coralinefischer@gmail.com"
] | coralinefischer@gmail.com |
b0aa9837b396935b4b74ad19f72b0b276e28e19b | be4e7d877a7a61237f3a58315158a20f125dc71c | /cartridge/shop/page_processors.py | b2c72c68cc708d9c80b20ff8a0708d8ed5dd9d4d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | krbanton/cartridge | 14d846e85524e743f83794e4628acaa29d24950d | 41deb8812cceacf47a057233e5a020c2ea04b786 | refs/heads/master | 2021-01-17T11:43:26.693347 | 2012-03-24T11:57:10 | 2012-03-24T11:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py |
from django.template.defaultfilters import slugify
from mezzanine.conf import settings
from mezzanine.pages.page_processors import processor_for
from mezzanine.utils.views import paginate
from cartridge.shop.models import Category, Product
@processor_for(Category)
def category_processor(request, page):
"""
... | [
"steve@jupo.org"
] | steve@jupo.org |
6a572f3e0982bbe239ad1b6c507d6fc5419da16c | ed7fde0483a4836bfc9ef3ab887cf1220559bfc7 | /phd/i18_remove_ref.py | 69d65e676406a2e3eea0335ebd761ec9ae61f6b8 | [] | no_license | cizydorczyk/python_scripts | 326b3142a3c6ce850237e8b13e229854699c6359 | b914dcff60727bbfaa2b32e1a634ca9ca354eeeb | refs/heads/master | 2023-05-11T14:29:44.548144 | 2023-05-05T19:39:28 | 2023-05-05T19:39:28 | 116,588,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import os
import argparse
from Bio import SeqIO
def RemoveReference(seq_to_remove, fasta, output_fasta):
print(fasta)
records = list(SeqIO.parse(fasta, "fasta"))
records2 = [i for i in records if i.id not in seq_to_remove.split(",")]
with open(output_fasta, "w") as outfile:
SeqIO.write(record... | [
"conradizydorczyk@gmail.com"
] | conradizydorczyk@gmail.com |
c56397e5206162d095057fc4190656549c5a4445 | 6edb295c0eacc50655d83ece6566325fd0c46afb | /VBF/kfactors/plot.py | f59ed6e114e3f98f8fa4041c6fa080116a926eb1 | [
"MIT"
] | permissive | mcremone/PandaAnalysis | 74ffe64e77887d6622883b4d856d5ef61759eb92 | 078dc6ba435335ba1f8bceecb12459751ce3f5c3 | refs/heads/master | 2020-12-30T12:56:49.093685 | 2017-05-03T11:17:37 | 2017-05-03T11:17:37 | 91,379,788 | 0 | 5 | MIT | 2019-12-11T09:33:59 | 2017-05-15T20:05:33 | Python | UTF-8 | Python | false | false | 3,536 | py | #!/usr/bin/env python
from os import system,getenv
from sys import argv
import argparse
### SET GLOBAL VARIABLES ###
baseDir = '/home/snarayan/home000/store/kfactors/skimmed/'
parser = argparse.ArgumentParser(description='plot stuff')
parser.add_argument('--outdir',metavar='outdir',type=str)
args = parser.parse_args(... | [
"sidn@mit.edu"
] | sidn@mit.edu |
ad1d4b5235569f72c77e592f75ebac24c3935bd0 | d9b53673b899a9b842a42060740b734bf0c63a31 | /leetcode/python/easy/p590_postorder.py | 5954e459ee2b9d55d61a3032eef31365502caca2 | [
"Apache-2.0"
] | permissive | kefirzhang/algorithms | a8d656774b576295625dd663154d264cd6a6a802 | 549e68731d4c05002e35f0499d4f7744f5c63979 | refs/heads/master | 2021-06-13T13:05:40.851704 | 2021-04-02T07:37:59 | 2021-04-02T07:37:59 | 173,903,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Definition for a Node.
class Node:
def __init__(self, val, children):
self.val = val
self.children = children
class Solution:
def postorder(self, root: 'Node'):
ret = []
def dfs(node):
if node is None:
return
for child in node.children... | [
"8390671@qq.com"
] | 8390671@qq.com |
3731f5f7f3dacddba1e20322528e5137c82ad1d6 | 8bcaec3e096158f875e08cc6c18df8f7ff1e2586 | /codechef/DEC20B-codechef/even_pair_sum.py | 779696b154a80646ec9874c9dde3f9f8c7ff1ced | [] | no_license | Aryamanz29/DSA-CP | 5693d7e169f3a165a64771efd713d1fa8dd3b418 | 306ebd4b623ec79c2657eeba1ff1ce0fc294be50 | refs/heads/master | 2023-04-08T23:33:20.406720 | 2021-04-11T20:27:26 | 2021-04-11T20:27:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | def get_even(n):
return n//2
for _ in range(int(input())):
a, b = list(map(int, input().split()))
less = min(a, b)
if a == less:
even = get_even(b)
odd = b-even
else:
even = get_even(a)
odd = a-even
# for i in range(1, a+1):
# for j in range(1, b+1):
... | [
"sankalp123427@gmail.com"
] | sankalp123427@gmail.com |
110b91f1cab239e9e82f0af4b73f1f032a8f1ff8 | c717b260750d9c733b40e668d2841dee92167699 | /hardware/mechanics/electronics_mount/main_plate/cnc/drill_4-40_insert_hole.py | e3384f36753a7e295809bf5c3374bc87e3420f2c | [] | no_license | hanhanhan-kim/noah_motion_system | b68e3fc6db1a0faea272ead7a22a043dfb80a6c8 | 5bea2750eac638b9f90720b10b5e2516f108c65b | refs/heads/master | 2022-11-06T08:20:49.977792 | 2017-10-06T00:12:05 | 2017-10-06T00:12:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | from __future__ import print_function
import os
import sys
from py2gcode import gcode_cmd
from py2gcode import cnc_dxf
feedrate = 50.0
fileName = 'main_plate.dxf'
stockThickness = 0.25
drillMargin = 0.125
startZ = 0.0
stopZ = -(stockThickness + drillMargin)
safeZ = 0.3
stepZ = 0.05
startDwell = 0.5
prog = gcode_cmd... | [
"will@iorodeo.com"
] | will@iorodeo.com |
6adf71907c74640fac9ba5a3035be2f8fa45d1b4 | 52908b901ebebbecf94f68c5ed4edb748d8b83d7 | /chatette/parsing/lexing/rule_percent_gen.py | 71f87422992a30e781efff7485c03d85652b9b94 | [
"MIT"
] | permissive | ImanMesgaran/Chatette | 6edef61740ba75ead35e240350359f1c3ee2de3c | fd22b6c2e4a27b222071c93772c2ae99387aa5c3 | refs/heads/master | 2023-07-01T16:36:39.865660 | 2021-06-08T20:14:24 | 2021-06-08T20:22:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | # coding: utf-8
"""
Module `chatette.parsing.lexing.rule_percent_gen`
Contains the class representing the lexing rule meant to tokenize
percentage for the random generation modifiers.
"""
from chatette.parsing.lexing.lexing_rule import LexingRule
from chatette.parsing.lexing import LexicalToken, TerminalType
from cha... | [
"simon.gustin@hotmail.com"
] | simon.gustin@hotmail.com |
5f3d1ab0f166594fa5cfca4b4bae63f0cccd32fe | adc6d8ee596e4710c3241332758bb6990bdd8914 | /Imagenes doc/Evaluación/RE.py | b3429635eb088404f911957ccaa23ada29324936 | [] | no_license | NatalyTinoco/Trabajo-de-grado_Artefactos | cf9491c47a8a23ce5bab7c52498093a61319f834 | 5cc4e009f94c871c7ed0d820eb113398ac66ec2f | refs/heads/master | 2022-03-20T00:51:48.420253 | 2019-11-24T19:10:40 | 2019-11-24T19:10:40 | 197,964,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 7 21:59:15 2019
@author: Nataly
"""
from matplotlib import pyplot as plt
import cv2
import numpy as np
i=0
file='00000.jpg'
seg='00000_seg.jpg'
img = cv2.imread(file)
def tloga(img):
img = (np.log(img+1)/(np.log(1+np.max(img))))*255
img = np.array(img,dtype=np.u... | [
"51056570+NatalyTinoco@users.noreply.github.com"
] | 51056570+NatalyTinoco@users.noreply.github.com |
75caa21cdb6da2ed748dafe135772382e987e81f | c1eb69dc5dc5b83d987d1bda0bd74a2d7d912fdf | /articles/migrations/0031_merge.py | d3d5ce4a90180e735765e1096d04c22ba755cb79 | [
"MIT"
] | permissive | CIGIHub/opencanada | 47c4e9268343aaaf0fe06b62c1838871968a0b87 | 6334ff412addc0562ac247080194e5d182e8e924 | refs/heads/staging | 2023-05-07T16:02:35.915344 | 2021-05-26T18:10:09 | 2021-05-26T18:10:09 | 36,510,047 | 8 | 2 | MIT | 2020-07-06T14:22:09 | 2015-05-29T14:43:28 | Python | UTF-8 | Python | false | false | 315 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0030_auto_20150806_2136'),
('articles', '0030_articlecategory_include_main_image'),
]
operations = [
]
| [
"csimpson@cigionline.org"
] | csimpson@cigionline.org |
a20131c6b9f7b27a6ae04fe5be74645df91f9be4 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-polardb/aliyunsdkpolardb/request/v20170801/OpenAITaskRequest.py | 9d342c7d8e6e785ae43c35b9c816ca0b25ef9696 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 3,272 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
93c6d4f655e6cecaf0204c9fde501bd9f14f9b0a | 233f97c6f360d478bf975016dd9e9c2be4a64adb | /program42.py | 583befdf151b9f7a4196e04186dc04cce05c8aa2 | [] | no_license | unknownboyy/GUVI | 3dbd1bb2bc6b3db52f5f79491accd6c56a2dec45 | d757dd473c4f5eef526a516cf64a1757eb235869 | refs/heads/master | 2020-03-27T00:07:12.449280 | 2019-03-19T12:57:03 | 2019-03-19T12:57:03 | 145,595,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | a,b=map(int,input().split())
c,d=map(int,input().split())
if a==c:
print(a)
elif a>c and b>=d:
print(-1)
elif a<c and b<=d:
print(-1)
else:
x1=a;x2=b
| [
"ankitagrawal11b@gmail.com"
] | ankitagrawal11b@gmail.com |
8d820380e47b4db8af57aa047a0dc8cc8e697560 | d6fe71e3e995c03b8f5151ab1d53411b77b325ba | /walklist_api_service/models/response.py | 2168793ce5bbd0c675b43d9a5a3dd17848c6d775 | [] | no_license | mwilkins91/petpoint-scraper | 95468ae9951deaa8bd3bef7d88c0ff660146c1a3 | dd0c60c68fc6a7d11358aa63d28fdf07fff3c7cd | refs/heads/master | 2022-11-27T00:02:50.654404 | 2020-08-09T18:41:40 | 2020-08-09T18:41:40 | 286,180,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,652 | py | # coding: utf-8
"""
The Enrichment List
The THS enrichment list # noqa: E501
OpenAPI spec version: 1.0.0
Contact: contactme@markwilkins.co
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Response(object):
"""NOTE... | [
"contactme@markwilkins.co"
] | contactme@markwilkins.co |
394db0d9907aa1558d646da41d52cb08d950dc1c | 0652d264baea6238c0b581f17fdf2ff6cb45f537 | /websauna/system/form/csrf.py | 79d964adf49107a108eb25f1ef5598df2cef83c9 | [
"MIT",
"Apache-2.0"
] | permissive | gitter-badger/websauna | f12fc57322c9c86bb2859a30c346858e8ede209e | 09c07d80a831d1f718ec05aea0f85293a1198063 | refs/heads/master | 2021-01-22T19:15:15.071709 | 2016-04-21T15:10:30 | 2016-04-21T15:10:30 | 56,784,419 | 0 | 0 | null | 2016-04-21T15:19:24 | 2016-04-21T15:19:24 | null | UTF-8 | Python | false | false | 456 | py | """Deform CSRF token support."""
import colander
import deform
from pyramid_deform import deferred_csrf_validator
from pyramid_deform import deferred_csrf_value
def add_csrf(schema: colander.Schema):
"""Add a hidden CSRF field on the schema."""
csrf_token = colander.SchemaNode(colander.String(), name="csrf_to... | [
"mikko@opensourcehacker.com"
] | mikko@opensourcehacker.com |
89a49c4c96b660fbd71aa567dc005a322340dde8 | 330899fd4a9653e05e2a09e0a4f30c119af97ad4 | /python/hidet/transforms/common/scope.py | e171328b5e5e34acb2c17ac4d9e0d7127f5ec878 | [
"Apache-2.0"
] | permissive | yaoyaoding/hidet-artifacts | f8a4707c7fc28aa7bfa4dab3a9f2a9387c020f99 | f2e9767bb2464bd0592a8ec0b276f97481f13df2 | refs/heads/main | 2023-04-30T13:12:57.350002 | 2023-04-24T19:37:34 | 2023-04-24T19:37:34 | 551,692,225 | 3 | 1 | Apache-2.0 | 2022-11-01T23:25:17 | 2022-10-14T22:40:28 | Python | UTF-8 | Python | false | false | 5,309 | py | from typing import List, Dict, Optional, ContextManager
from hidet.ir.type import ScalarType, FuncType
from hidet.ir.expr import Expr, Var, BitwiseAnd, LeftShift, BitwiseOr
from hidet.ir.functors import collect
from hidet.ir.stmt import LetStmt, ForStmt
from hidet.ir.func import Function
from hidet.ir.functors import ... | [
"dingyaoyao.cs@gmail.com"
] | dingyaoyao.cs@gmail.com |
7834b8677f64f35c4cc8daa3874916b64985b960 | d9f7123433fe473cfa2fd5c3438251f83ffb326c | /apps/friends/migrations/0001_initial.py | 16167c1f6e319ab036c0be97c12a1794ba42f116 | [] | no_license | mazurbeam/friends | 6c2d201220db52bc85eb1869fd6685eee372e920 | 1dc2432ad371113c0979158053c821a449ebbc6c | refs/heads/master | 2021-01-01T18:27:12.875643 | 2017-07-25T20:46:08 | 2017-07-25T20:46:08 | 98,345,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-25 17:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('login', '0001_initial'),
]
operations = [
migrations.Crea... | [
"mazurbeam@gmail.com"
] | mazurbeam@gmail.com |
4ec44310093c3c6d0fdd8224e882899b6e273eb1 | 009df7ad499b19a4df066160cf0c7d8b20355dfb | /src/the_tale/the_tale/game/actions/relations.py | 88e1482deff3017d5f67533c4ecbe384f063fd64 | [
"BSD-3-Clause"
] | permissive | devapromix/the-tale | c0804c7475e877f12f29444ddbbba025561d3412 | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | refs/heads/develop | 2020-03-28T20:26:30.492292 | 2018-10-07T17:32:46 | 2018-10-07T17:32:46 | 149,070,887 | 1 | 0 | BSD-3-Clause | 2018-10-07T17:32:47 | 2018-09-17T04:57:50 | Python | UTF-8 | Python | false | false | 3,039 | py |
import smart_imports
smart_imports.all()
UNINITIALIZED_STATE = 'uninitialized'
class ACTION_EVENT(rels_django.DjangoEnum):
records = (('DISHONORABLE', 0, 'бесчестный герой'),
('NOBLE', 1, 'благородный герой'),
('AGGRESSIVE', 2, 'аггрессивный герой'),
('PEACEABLE',... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.