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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e0d69f78a976645199c5209ccf9032fc63b6a865 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/aio/operations/_regions_operations.py | 0239ea007cf6aa6cc26ceb88b0a9d0eb64a9e9c9 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 6,295 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
c08402459c6b80a2b7dc440a27af7c1d16384447 | fc43470de13ff8f03105efc2a3660a1ed6a1a553 | /BAEKJOON/9663_NQueen.py | 4fb15454e35c0f22c37ced52db5ab345014143b8 | [] | no_license | youseop/Problem_solutions | 5a05597f188b4ef8f7d8483b46bf05fbf2158d01 | 1fba638d9520bca4354bca01f194f80b159e26aa | refs/heads/master | 2023-06-24T05:12:45.060086 | 2021-07-24T14:22:33 | 2021-07-24T14:22:33 | 298,317,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | import sys
read=sys.stdin.readline
def dfs(left, center, right,cnt):
global answer
if cnt== n:
answer += 2
return
left >>= 1
right <<= 1
board = center | right | left
if board&full==full:
return
if cnt ==0:
for i in range(n//2):
bit = 1 << i
... | [
"66366941+youseop@users.noreply.github.com"
] | 66366941+youseop@users.noreply.github.com |
eda0d1b7117d4199ea3b29758b900749bf2ef929 | bdb0a0232da7575cac9a1149a6c5439d3a6f9095 | /miur_daad_dataset_pipeline/utils/ungzip_data.py | b9ef548d3c2bcfb4ea738c72cdaea916017a9852 | [] | no_license | LucaCappelletti94/miur_daad_dataset_pipeline | ec0588a89fa367e541fc6049829376399cc05752 | 389a9c42bdb0389e727259d3e5c51cca029cc293 | refs/heads/master | 2022-03-22T01:32:29.387497 | 2019-12-09T15:46:01 | 2019-12-09T15:46:01 | 198,881,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from .ungzip import ungzip
import os
from typing import List
from auto_tqdm import tqdm
from glob import glob
from multiprocessing import cpu_count, Pool
def ungzip_data(target: str):
paths = list(glob('{target}/**/*.gz'.format(target=target), recursive=True))
paths = [
path for path in paths if no... | [
"cappelletti.luca94@gmail.com"
] | cappelletti.luca94@gmail.com |
dded074923a46f42c9cb0ef1399ee8a8e9ee4594 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/422/usersdata/348/87723/submittedfiles/lecker.py | c29887eb4d055f8497bf78323a8acf013137503d | [] | 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 | 273 | py | # -*- coding: utf-8 -*-
import math
n1 = int(input( 'informe o numero 1: '))
n2 = int(input( 'informe o numero 2: '))
n3 = int(input( 'informe o numero 3: '))
n4 = int(input( 'informe o numero 4: '))
if n1 == n2 and n2 == n3 and n3 == n4 and n4 == n1:
print( 'N') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f7ede766471a8438b6cf1b69848b8fb50adcb516 | 8ebb138562884f01cae3d3ffaad9501a91e35611 | /dbCruiseKeywords/insertKeywordsKM1823.py | 08400252c7a52d5faa910bf1f50b8917fbc3fcdf | [] | no_license | simonscmap/DBIngest | 7b92214034e90f8de88b06c17b48f83c769d8d35 | 9ae035cbf7453df375f0af5e920df3880a419107 | refs/heads/master | 2021-07-16T07:12:31.749027 | 2020-08-13T16:28:24 | 2020-08-13T16:28:24 | 200,295,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | import sys
import pycmap
sys.path.append('../')
import insertFunctions as iF
import config_vault as cfgv
import pandas as pd
sys.path.append('../dbCatalog/')
import catalogFunctions as cF
"""-----------------------------"""
"""KM1823 CRUISE KEYWORDS"""
"""-----------------------------"""
cruise_name = 'KM1823'
serve... | [
"norlandrhagen@gmail.com"
] | norlandrhagen@gmail.com |
becc3873f3ae71f70efb0be47d9607b12667b7b3 | 95fb4b8e51dd7a852d9ed9de067c1e929a71404a | /colour/utilities/metrics.py | bc63c1ad1924638e02758231b5144965eedce1d8 | [
"BSD-3-Clause"
] | permissive | zachlewis/colour | e9b1f6978dae157306536492a652b2fb9588894a | c248e2913d6c62658e4892e5bc8503d86ed5d9ab | refs/heads/develop | 2021-04-25T22:08:34.617007 | 2020-11-29T23:18:48 | 2020-11-29T23:18:48 | 109,490,837 | 0 | 0 | BSD-3-Clause | 2019-10-28T19:44:56 | 2017-11-04T11:53:24 | Python | UTF-8 | Python | false | false | 3,023 | py | # -*- coding: utf-8 -*-
"""
Metrics
=======
Defines various metrics:
- :func:`colour.utilities.metric_mse`
- :func:`colour.utilities.metric_psnr`
References
----------
- :cite:`Wikipedia2003c` : Wikipedia. (2003). Mean squared error. Retrieved
March 5, 2018, from https://en.wikipedia.org/wiki/Mean_squared_... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
d56b84cda7c8fa458314c7e85923090ea5462868 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/510399_Byte_Hex_Hex_Byte_String/recipe-510399.py | 5024b443babb9d5f7f10c485d8a141f2f3c148b8 | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 2,403 | py | """
HexByteConversion
Convert a byte string to it's hex representation for output or visa versa.
ByteToHex converts byte string "\xFF\xFE\x00\x01" to the string "FF FE 00 01"
HexToByte converts string "FF FE 00 01" to the byte string "\xFF\xFE\x00\x01"
"""
#-----------------------------------------------------------... | [
"betty@qburst.com"
] | betty@qburst.com |
3669a26b8a6838dfa35819e9861099c6fadc7c13 | 75954bb39221e91c75cf8818c59ead08aab7d345 | /glue/qt/mime.py | fa53d556cb566d53d71543790bc114ff61c23ccb | [
"MIT"
] | permissive | yarikoptic/glue | 6fe7be6addf750061fa053b3a2d3766fafa64433 | e252af49e47e73e0a84f1e52fb664177ca0f7dfa | refs/heads/master | 2021-01-15T19:28:41.132421 | 2014-07-09T18:00:16 | 2014-07-09T18:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | from ..external.qt.QtCore import QMimeData, QByteArray
class PyMimeData(QMimeData):
"""
A custom MimeData object that stores live python objects
Associate specific objects with a mime type by passing
mime type / object kev/value pairs to the __init__ method
If a single object is passed to the in... | [
"beaumont@hawaii.edu"
] | beaumont@hawaii.edu |
701dc2c522f105f2b5bdf99cf6b3dd265e5d62a4 | 6e2117bd8ed3fe00d4ad0fa152b75f20213c2748 | /dephell/converters/pipfile.py | 4e44efd6e5d392f4dfd7dbd5e19950df470de9cc | [
"MIT"
] | permissive | eli-schwartz/dephell | ae0f0cc5c37fc13bcbb5b88f2cdd66de914a2c42 | f3e07b497e3ad7998e563b1a4c5ad9f023834d36 | refs/heads/master | 2020-05-29T09:47:45.438331 | 2019-05-25T07:51:33 | 2019-05-25T07:51:33 | 189,078,364 | 0 | 0 | MIT | 2019-05-28T18:03:03 | 2019-05-28T18:03:03 | null | UTF-8 | Python | false | false | 6,111 | py | # built-in
from collections import OrderedDict
from pathlib import Path
from typing import List, Optional
# external
import tomlkit
from dephell_pythons import Pythons
from dephell_specifier import RangeSpecifier
# app
from ..controllers import DependencyMaker
from ..models import Constraint, Dependency, RootDependen... | [
"master_fess@mail.ru"
] | master_fess@mail.ru |
c469127f9207888465ac7780c6e119f385e857cd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/307/usersdata/301/70471/submittedfiles/swamee.py | 50db52260081b1540acef710208acc5f058de55e | [] | 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 | 410 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
F = float(input('digite F : '))
L = float(input('digite L : '))
Q = float(input('digite Q : '))
H = float(input('digite H : '))
V = float(input('digite V : '))
G = 9.81
E = 0.000002
pi=math.pi
D = ((8*F*L*Q*Q)/(pi*pi*G*H))**0.2
REY=(4*Q)/(pi*D*V)
K=(0.25/(math... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
641cd9ca8183ea296b1b588ade66a5ef539165c6 | f80c689b49125321342206930f30dede37b2b117 | /app/schemas/RolePermission.py | 435ebba8cfec1aebd124dad73c87cc6574839bab | [] | no_license | AnsaganK/NProject | 6c74ee9126989c06ac6f85fedea7da9820b046ca | 6c043fba5b0f2c21724bca5773c4eee898760052 | refs/heads/master | 2023-06-04T13:29:15.789316 | 2021-06-21T13:14:10 | 2021-06-21T13:14:10 | 345,971,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from pydantic import BaseModel
from pydantic.types import List
class RolePermissionSchema(BaseModel):
roles: List[int]
permissions: List[int]
#class RolePermissionSchema(BaseModel):
# roles: List[RoleCreateSchema]
# permissions: List[PermissionNameSchema] | [
"ansagankabdolla4@gmail.com"
] | ansagankabdolla4@gmail.com |
0d15f42cc221213619fe137d4987031e6a12fca2 | 994aa831b94fd9b1f77d117294d75c835613ae97 | /tests/test_analysis/test_feature_relevance/test_relevance.py | 2184271e7f08d1d76445b78035ca13d4a0523f21 | [
"Apache-2.0",
"MIT"
] | permissive | jingmouren/etna-ts | 4edfd8373f2e1f7fd90e8838395e2b2dbf10c458 | b2453671b00affe2af23c4b10f556f6fb5d7d602 | refs/heads/master | 2023-09-05T16:21:29.240794 | 2021-11-03T12:48:33 | 2021-11-03T12:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from etna.analysis.feature_relevance import StatisticsRelevanceTable
def test_statistics_relevance_table(simple_df_relevance):
rt = StatisticsRelevanceTable()
assert not rt.greater_is_better
df, df_exog = simple_df_relevance
assert rt(df=df, df_exog=df_exog).shape == (2, 2)
| [
"noreply@github.com"
] | jingmouren.noreply@github.com |
2ce4f0d1c7eafb44e29b65aa275bebc5d4694833 | 77809fff52b600414cebe12e827df34cc8ac14f1 | /0x0D-NoSQL/8-all.py | 8362d18ba06856e986cfd9f0a09acb2a8a294f95 | [] | no_license | OnsJannet/holbertonschool-web_back_end | 6963ec58b071c91c3b5577f30276e2d42196775c | cf61d1607676d0a4e2c79723f221e560d1af02ee | refs/heads/main | 2023-08-14T14:27:02.845424 | 2021-10-05T12:54:47 | 2021-10-05T12:54:47 | 387,498,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #!/usr/bin/env python3
""" List all documents in Python """
from pymongo import MongoClient
def list_all(mongo_collection):
""" lists all documents in a collection """
documents = mongo_collection.find()
if not documents:
return ([])
else:
return (documents)
| [
"onsjannet@gmail.com"
] | onsjannet@gmail.com |
41cba72ba2a517d1c4a187587b56425541f990ff | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/scaleform/daapi/view/lobby/fortifications/fortrosterintrowindow.py | 0eb27f6e375899fe1605f546093d5d4e7b4ea5bc | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,460 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/FortRosterIntroWindow.py
import BigWorld
from gui.Scaleform.daapi.view.lobby.fortifications.fort_utils.FortViewHelper import FortViewHelper
from gui.Scaleform.daapi.view.lobby.fortifications.fort_utils.fort_formatters import getDivisionI... | [
"info@webium.sk"
] | info@webium.sk |
345a6bd377e9e3b694003b0e00614a1bbc326279 | 57a2b45a694913d2b8e525aca1dade6a65512d30 | /schedule.spec | 6921aff6ec742685e1e5f788b5c92d7d48299965 | [] | no_license | lkfo415579/ACM | d40c6d6011aa790f5c55904bde160572c7e33868 | 9538c4328b48d5896c55e327ff555a3c0078b81a | refs/heads/master | 2020-09-24T15:44:09.308276 | 2019-12-04T06:11:32 | 2019-12-04T06:11:32 | 225,792,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['schedule.py'],
pathex=['C:\\Users\\CC\\PycharmProjects\\ACM'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"gm0648@hotmail.com"
] | gm0648@hotmail.com |
3392ca6c11dcfb0e04a7d8549de1cbc5b546ed7a | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20170530/example_logging/02primitives/mylog.py | eafffe804a9cdbd8d5c38766efe087da1754c011 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 855 | py | import logging
class SelfLevelOnlyWrapper:
def __init__(self, handler, lv):
self.handler = handler
self.lv = lv
self.handler.setLevel(lv)
def __getattr__(self, name):
return getattr(self.handler, name)
def handle(self, record):
if record.levelno == self.lv:
... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
b7b8728c982659f4e3885df1907f08290d499f5d | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_24/models/policy_rule_quota_post.py | a587a37845b146dc705514bd78ee40ea66a60ea2 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,901 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.24
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
e060cc847462ecda2d380815b671722b5c5ae01d | 997c82f5d9684945fb2f5d5481dc4d251a93755f | /famapy/metamodels/cnf_metamodel/models/cnf_model.py | eff0e32ee8dd1020253f56e44bd82679bd8ed169 | [] | no_license | jmhorcas/famapy-aafms | a6e45b5fff2c820037daf95151df5bc6895b1611 | bcc80f7061bed4d6bfd536f9d53cf195bffa01e6 | refs/heads/main | 2023-08-24T05:51:47.337325 | 2021-10-15T10:18:20 | 2021-10-15T10:18:20 | 389,559,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | from enum import Enum, auto
from famapy.core.models import VariabilityModel
class CNFLogicConnective(Enum):
"""The propositional logic connectives a formula in CNF can contain."""
NOT = auto()
AND = auto()
OR = auto()
class CNFNotation(Enum):
"""Possible notations of a CNF formula."""
LOGIC... | [
"jhorcas@us.es"
] | jhorcas@us.es |
36575a12047d334dc0fc1c741397935ef0ecded3 | 0420ce2fc8799d5fbd6e96313e6716f5e2ef825b | /bagogold/bagogold/admin/investidores.py | be7e0892a2c2b5b3a59d8c904f59b54253c44c95 | [] | no_license | nizbel/bag-of-gold | 1da10acef4d73b8426ca3329b37a28c5f9587af4 | a3fd89eb47d33d546bd91947f033d71218c8700f | refs/heads/master | 2022-11-13T01:07:26.934813 | 2020-01-14T16:00:16 | 2020-01-14T16:00:16 | 275,689,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # -*- coding: utf-8 -*-
from bagogold.bagogold.models.investidores import Investidor
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
admin.site.register(Investidor)
# Define an inline admin descriptor for Employee model
#... | [
"kingbowserii@gmail.com"
] | kingbowserii@gmail.com |
875389da102f244a9d6968dbe8fc7041fc398fb9 | e5fe3e3a821685fae2160cc86e028623b40dd8cf | /platformio/commands/serialports.py | c52f27da2b5edb67072887ad273452d611ac3840 | [
"MIT"
] | permissive | TimJay/platformio | 28f3b7e6ea5bdb8e597faf5be96fefd03361d25d | 7b60d595a762dc01f9d98bd1b85babe649cfeb4a | refs/heads/develop | 2021-01-18T17:31:51.682433 | 2015-05-14T21:13:47 | 2015-05-14T21:13:47 | 35,637,431 | 1 | 0 | null | 2015-05-14T21:16:31 | 2015-05-14T21:16:31 | null | UTF-8 | Python | false | false | 3,002 | py | # Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import sys
import click
from serial.tools import miniterm
from platformio.util import get_serialports
@click.group(short_help="List or Monitor Serial ports")
def cli():
pass
@cli.command("list", short_help="List Serial port... | [
"me@ikravets.com"
] | me@ikravets.com |
d9e38467df230278dd7313a1a561aaf4b7b0c691 | d60ee49abaee6c74c5b777f8f112a7f75f71f029 | /genome/variants2/somatic/stats/plot.py | 832fc61a9d4fdb2ce8668e6a96dc2e3bd21ecfdb | [] | no_license | ak352/melanomics | 41530f623b4bfdbd5c7b952debcb47622d1a8e88 | fc5e6fdb1499616fb25a8dc05259add8a65aeca0 | refs/heads/master | 2020-12-24T16:14:42.271416 | 2015-08-06T12:48:52 | 2015-08-06T12:48:52 | 18,439,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from pylab import *
import sys
infiles = []
for k in [2,4,5,6,7,8]:
infiles.append("/work/projects/melanomics/analysis/genome/variants2/somatic/stats/patient_%s.depth.hist" % str(k))
x = []
xrang=1001
t = linspace(0,xrang,xrang)
for infile in infiles:
y = []
for line in open(infile):
a,b = line[:... | [
"ak@uni.fake"
] | ak@uni.fake |
b53ca44da2dab3a096938fc2790382c8e5d844be | a58009ce3ad972ef517cd75664a39e28974a0598 | /2164.py | 8d2d7e8ddbaa287b90a21660e5a04fe80b3580db | [] | no_license | good5229/python-practice | b1c688f59129dc0044a8acd8e9e06a44d1777979 | ef9f298df73223f2098f69a499963b9a013e69f2 | refs/heads/master | 2020-12-03T21:15:01.644129 | 2020-03-25T03:46:47 | 2020-03-25T03:46:47 | 231,489,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import sys
import collections
# n = int(sys.stdin.readline().strip())
# card_list = [_ for _ in range(n, 0, -1)]
# card_len = len(card_list)
# if n == 1:
# print("1")
# while card_len >= 2:
# del card_list[-1]
# card_len -= 1
# card_list.insert(0, card_list[-1])
# del card_list[-1]
#
# print(card_l... | [
"kjb45841497@gmail.com"
] | kjb45841497@gmail.com |
cc67468472b222e68744754fc93d8fed903868d7 | a1b26e2decc464fa166e59f9b0a79a10911afee8 | /SortingAlgo/median2.py | e058b37ec2119714d8befe1bb5cb6a8d01ede933 | [] | no_license | samDeopa/CECques | 64132d54d9ab966cf1e826b4f6cf5bccaf2af489 | a956ff9992374ead9f79787ac24668ab74b51ed7 | refs/heads/main | 2023-03-24T22:45:25.047500 | 2021-03-18T04:43:46 | 2021-03-18T04:43:46 | 341,891,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import random
def partition(arr, low, high):
i = (low-1)
pivot = arr[high]
for j in range(low, high):
if(arr[j] <= pivot):
i += 1
arr[i], arr[j] = arr[j], arr[i]
arr[i+1], arr[high] = arr[high], arr[i+1]
return(i+1)
def QuickSort(arr, low, high, k):
# print(l... | [
"you@example.com"
] | you@example.com |
dee202c18bb0175dacac26d69633b6cc8383108c | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/src/programy/clients/render/passthrough.py | 8e7b1c9f97560fd097898f4d2a55ad15042f4ea9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
78094acc0411afbb1db4d064e9e6782329c0a491 | bc035331453d2f10e6179700ba74702158f28abf | /week7_1/hack_olx/factories.py | e4db369f78f32d18c97e07c94929d1a9e8924a72 | [] | no_license | NikolaPavlov/Hack_Bulgaria_Django | ade6813ae19d7fb7f00f74b6ec800d5927313f12 | 74ee14ddae885e0ea457ef89cee361b9dc34206c | refs/heads/master | 2021-01-17T14:05:40.444361 | 2017-05-19T19:12:32 | 2017-05-19T19:12:32 | 83,479,831 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | import factory
from faker import Factory
from django.contrib.auth.models import User
from . import models
faker = Factory.create()
class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = User
django_get_or_create = ('username',)
username = factory.LazyAttribute(lambda _... | [
"nikola.pavlov1955@gmail.com"
] | nikola.pavlov1955@gmail.com |
2b912d3c4b7a242d6e276db53e1b68521beceb11 | df453a7a2ef0d695e35327fa55f73012b28b8c8e | /sis_provisioner/views/jobs.py | 2dc554655f915a32b4e668a4bbcba5e8289c6bdb | [
"Apache-2.0"
] | permissive | uw-it-aca/canvas-sis-provisioner | 4b14f5bc60f297e5c497c5e936ab7eb48e2af5cf | d8265b325f54bcd3ee7f13ac2cfac8743545f8af | refs/heads/main | 2023-09-01T19:57:51.268231 | 2023-08-27T16:54:44 | 2023-08-27T16:54:44 | 43,710,673 | 0 | 0 | Apache-2.0 | 2023-09-13T19:06:28 | 2015-10-05T20:07:31 | Python | UTF-8 | Python | false | false | 2,589 | py | # Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from logging import getLogger
from sis_provisioner.models import Job
from sis_provisioner.views.admin import RESTDispatch, get_user
from django.utils.timezone import utc
from datetime import datetime
import json
logger = getLogger... | [
"jlaney@uw.edu"
] | jlaney@uw.edu |
04c61c9bfbd8f889676c32c1a26d929e864db235 | 54e187ce123daff920027560a83f5bb4f6bea602 | /20190429/test.py | 2c290ed671c9aa5892ab30235b0c8fee99e7e3b3 | [] | no_license | GuoQin8284/PythonCode | 272b01d16ff508685b68c51b523a25e9753162ea | c4016a693c9ab4c798567aabf00135be10beae0c | refs/heads/master | 2023-05-06T03:45:55.667271 | 2021-05-27T15:29:28 | 2021-05-27T15:29:28 | 267,345,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | import time
from selenium import webdriver
driver=webdriver.Chrome()
driver.get("http://localhost")
driver.maximize_window()
# 注册
# driver.find_element_by_link_text("注册").click()
# time.sleep(2)
# driver.find_element_by_css_selector("#username").send_keys(18012345678)
# driver.find_element_by_css_selector("input[class=... | [
"1143908462@qq.com"
] | 1143908462@qq.com |
46343000ea3e5fb7d392aec3c6b8ebf2bb93e021 | 472578974401c83509d81ea4d832fc3fd821f295 | /第二阶段服务器/day9.9/day11/exercise_2_client.py | 65e7fe447acdf80fb3ec3a617ba48c22c494de56 | [
"MIT"
] | permissive | why1679158278/python-stu | f038ec89e9c3c7cc80dc0ff83b76e7c3078e279e | 0d95451f17e1d583d460b3698047dbe1a6910703 | refs/heads/master | 2023-01-05T04:34:56.128363 | 2020-11-06T09:05:16 | 2020-11-06T09:05:16 | 298,263,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from socket import *
# 创建tcp套接字 默认就是tcp套接字
tcp_socket = socket()
# 发起链接
tcp_socket.connect(('127.0.0.1',8888))
# 发送文件
filename = input(">>")
file = open(filename,'rb')
while True:
data = file.read(1024) # 读取文件内容
if not data:
break
tcp_socket.send(data) # 发送给服务端
# 关闭套接字
file.close()
tcp_socket.cl... | [
"1679158278@qq.com"
] | 1679158278@qq.com |
3d7aa558ffff7b2b4347d45fd54f2a357cda9cb3 | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /AtCoder/tkppc/b.py | a360c3491a042ed3cc85d10eceaf241fcb3fecd6 | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 197 | py | # https://tkppc.contest.atcoder.jp/tasks/tkppc2015_b
N = int(input())
res = 0
m = -1
for i in range(N):
temp = int(input())
if temp > m:
m = temp
res = i + 1
print(res)
| [
"takecian@gmail.com"
] | takecian@gmail.com |
deeca00ae29d321c7eefe78b2b94f3305156f0b2 | 13482204549e3ab05f7ed4accdc69bd5d22d4d45 | /main/migrations/0002_auto_20161122_1912.py | 92a85c5e9b21295a3cd62bdcbbf5caedb66ecf19 | [] | no_license | HectorBlisS/DjangoRestFrameworkViewSet | 0331fc923412828c4869feda5653725d4034491a | 26bf07e6b1f3e924dce31b5c8d6285e4bbfa2d04 | refs/heads/master | 2020-06-14T08:58:45.589550 | 2016-11-30T20:07:56 | 2016-11-30T20:07:56 | 75,207,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-11-22 19:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
m... | [
"contacto@fixter.org"
] | contacto@fixter.org |
d27a6cff32df1c5004d252c40697c9b2803c552c | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Tools/Tier0ChainTests/python/TCTDQWebDisplayCosmics.py | a602c64813f22cb93e4bb9bad4ebc782fbee7f3f | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from DataQualityUtils.DQWebDisplayConfig import DQWebDisplayConfig
dqconfig = DQWebDisplayConfig()
dqconfig.config = "TCTStaticHAN"
#dqconfig.config = "TCTDQWebDisplayCosmics"
## /afs/cern.ch/user/a/atlasdqm/dqmdisk/tier0/han_conf... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
1ea81a9129c4ee9dec38fb40348be94119ec1dbe | 40ec18c2bc2d807c629b7341922c46dd63a3126d | /common-python/bcctools/bcc_rest/bcc_list_topologies.py | dd8dfb14cc96dac2ef99854360ba1a6bf67e5d05 | [
"MIT"
] | permissive | miroadamy-archived/atg-commerce-iaas | 6089acfd8473be3f4c4fd4a32e8dd748f4ab75ab | f1ae31657fc0111a5c019d46a28a3c81aae1acb2 | refs/heads/master | 2022-03-22T19:09:14.537691 | 2017-08-30T20:30:48 | 2017-08-30T20:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | #!/usr/bin/python
# The MIT License (MIT)
#
# Copyright (c) 2017 Oracle
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to us... | [
"michael.shanley@oracle.com"
] | michael.shanley@oracle.com |
6beb9d2dd17db113f6509b571aee5e48b6daf00a | ecc1638f75a6ccd814923cb980e69d770c2525b7 | /ml_python/env/Lib/site-packages/pip/_vendor/pep517/_in_process.py | 90498a4ed9ce3bba54962b15f33981a829abab39 | [
"MIT"
] | permissive | ArchibaldChain/python-workspace | 5570e1df01f29f9916129e12d7fb1fb0608255d7 | 71890f296c376155e374b2096ac3d8f1d286b7d2 | refs/heads/master | 2022-12-01T03:00:37.224908 | 2020-08-04T10:04:47 | 2020-08-04T10:04:47 | 174,573,744 | 0 | 1 | MIT | 2022-11-22T04:02:07 | 2019-03-08T16:45:09 | Jupyter Notebook | UTF-8 | Python | false | false | 8,049 | py | """This is invoked in a subprocess to call the build backend hooks.
It expects:
- Command line args: hook_name, control_dir
- Environment variables:
PEP517_BUILD_BACKEND=entry.point:spec
PEP517_BACKEND_PATH=paths (separated with os.pathsep)
- control_dir/input.json:
- {"kwargs": {...}}
Results... | [
"1156618773@qq.com"
] | 1156618773@qq.com |
8e6bcfff20873e70ba2d61416705806420da630b | 2481cde6506743565dff2b405a2396daf208ab3e | /src/clist/migrations/0015_auto_20191203_1101.py | 1f514e74026f5586ff983bb38c677b1be64fa43e | [
"Apache-2.0"
] | permissive | aropan/clist | 4819a3036d179595e4df8c646aff2ed593b9dad3 | 5c805b2af71acee97f993f19d8d4e229f7f5b411 | refs/heads/master | 2023-08-31T11:15:17.987776 | 2023-08-27T21:51:14 | 2023-08-27T21:52:16 | 187,111,853 | 276 | 35 | Apache-2.0 | 2023-09-06T18:42:53 | 2019-05-16T22:57:03 | Python | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.1.7 on 2019-12-03 11:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clist', '0014_auto_20191201_0841'),
]
operations = [
migrations.AlterField(
model_name='contest',
name='calculate_ti... | [
"nap0rbl4@gmail.com"
] | nap0rbl4@gmail.com |
f90ea77b5f0a0fb2448f3625ab1fcbd0604bc748 | 45b8ea7cb0418935aa250ec452287911df1fe74d | /python/grc/gen_gr_digital_rf_digital_rf_sourcesink.py | b9e4129b19343508588f76c18c7846bb66e32406 | [
"BSD-3-Clause"
] | permissive | MITHaystack/digital_rf | 91d77a0b2d3e8f8a94cb7ff0336fce765a3de52d | 4ff1d4f96cc7dffc58811dbd6b2b21504900fa90 | refs/heads/master | 2023-06-22T08:01:25.779848 | 2023-06-21T19:53:05 | 2023-06-21T19:53:05 | 94,592,436 | 82 | 23 | NOASSERTION | 2023-06-21T19:53:06 | 2017-06-17T01:11:05 | Python | UTF-8 | Python | false | false | 1,276 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2018 Massachusetts Institute of Technology (MIT)
# All rights reserved.
#
# Distributed under the terms of the BSD 3-clause license.
#
# The full license is in the LICENSE file, distributed with this software.
# -------------... | [
"rvolz@mit.edu"
] | rvolz@mit.edu |
b3beaa0f9fbda8ba7d417dd0c30e82296f57167a | 5c5ea66184e1b62fa05a40168e5f8e6ccb7ac958 | /app/order/migrations/0005_subscription.py | 156b3bb637ce4bd5cc81407e124e0687f802ee8b | [] | no_license | amitbhalla/feelfreetocode | ce757b8c075509be62c1204de7ed1e5b313d8c8a | 9d642fbda8278d40270b318cc625051848410cec | refs/heads/main | 2023-07-11T03:52:25.272889 | 2021-08-29T16:40:12 | 2021-08-29T16:40:12 | 396,765,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | # Generated by Django 3.2.6 on 2021-08-21 14:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("course", "00... | [
"amit9815@gmail.com"
] | amit9815@gmail.com |
2fd58c67e19ef3f1964c02f510834e5981cf67ed | a757953b0fab1c4d05ce6b70b68b411df42bb887 | /raredecay/analysis/__init__.py | 8d2c00ae01c672703f22e1f3b6051920d3f15c57 | [
"Apache-2.0"
] | permissive | efueger/raredecay | 4e6ae0cff4bde925e2985335793dc7a138a5c772 | 4a92742016b2aea27e5156fee168d69d2c0361d0 | refs/heads/master | 2021-01-01T20:37:16.970625 | 2017-07-31T14:48:35 | 2017-07-31T14:48:35 | 98,898,305 | 0 | 0 | null | 2017-07-31T14:31:54 | 2017-07-31T14:31:54 | null | UTF-8 | Python | false | false | 1,318 | py | # init of package analysis
from __future__ import division, absolute_import
# from raredecay import meta_config
# if not meta_config.SUPPRESS_WRONG_SKLEARN_VERSION:
# try:
# temp_sklearn_info = imp.find_module('sklearn')
# temp_sklearn = imp.load_module('sklearn', *temp_sklearn_info)
# imp.... | [
"mayou36@jonas.eschle.com"
] | mayou36@jonas.eschle.com |
7e52c826e526ba75d0eb8120a0ac3b2e58896f85 | 04cdac49d5ae1ffe932575e1f21a2803601ed317 | /utils/models.py | 35b84218fa9abd3854caa092643b2c87127738e4 | [] | no_license | Soule50431/Synthanic | f53675605613d95caab04cde6becbcbf52a8bb34 | 86c02c897692b8e03364f4295d85388fa73ef40b | refs/heads/master | 2023-04-16T06:25:52.234852 | 2021-04-29T15:36:30 | 2021-04-29T15:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,621 | py | import lightgbm as lgb
import xgboost
from sklearn import linear_model
from utils.base import *
class LogisticRegression(Model):
def train(self, train_x, train_y, validation_x=None, validation_y=None, log=10):
self.model = linear_model.LogisticRegression(penalty='l2', solver='sag', random_state=0)
... | [
"h.ekcero.el6no11@outlook.jp"
] | h.ekcero.el6no11@outlook.jp |
89c057059c76b7b15820cfff6a2fbc4365f852a5 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_343/ch8_2019_06_03_16_37_12_048128.py | d86c93ab32e1ab7e5c2430218a69c16f9e0d1a6e | [] | 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 | 445 | py | def verifica_progressao(lista):
i=0
while i < len(lista):
if lista[i+1]/lista[i]==lista[i+2]/lista[i+1]:
return "PG"
i+=1
if lista[i+1]-lista[i]==lista[i+2]-lista[i+1]:
return "AG"
i+=1
if lista[i+1]-lista[i]==lista[i+2]-... | [
"you@example.com"
] | you@example.com |
b7937acb93df484e3daf1ef8573d3192c712e596 | 0d8d794d06827aea3ad460bd7ffc58a63911b21d | /Problem + Solve2.py | 8dc97e1bccdce86efcce2893fd81db260cbb0a88 | [] | no_license | IamOmaR22/HackerRank-Problems-Solve-and-Programs-Practice-with-Python | fe1f70d2f791d15636f7a55419fd006bd952f4f5 | c3057bd92c75c771877f9f469361a063b8db0915 | refs/heads/master | 2023-02-22T05:21:35.292396 | 2021-01-25T11:43:05 | 2021-01-25T11:43:05 | 263,082,392 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # 3.1 Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Pay the hourly rate for the hours up to 40 and 1.5 times the hourly rate for all hours worked above 40 hours. Use 45 hours and a rate of 10.50 per hour to test the program (the pay should be 498.75). You should use in... | [
"iamomar022@gmail.com"
] | iamomar022@gmail.com |
47b6dbe446610626832c699e2057bb42b2199dd9 | 38fff7bdefd8d62a740d51329b50d0e1e49258bb | /infra/build/functions/build_and_run_coverage_test.py | 0354fb4048a5cfce54657eb486a954165fd9de94 | [
"Apache-2.0"
] | permissive | google/oss-fuzz | 026384c2ada61ef68b147548e830f60730c5e738 | f0275421f84b8f80ee767fb9230134ac97cb687b | refs/heads/master | 2023-08-31T23:30:28.157702 | 2023-08-31T21:49:30 | 2023-08-31T21:49:30 | 63,809,205 | 9,438 | 2,315 | Apache-2.0 | 2023-09-14T20:32:19 | 2016-07-20T19:39:50 | Shell | UTF-8 | Python | false | false | 2,827 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | google.noreply@github.com |
f1cde1a723bd84dc25e6ca420903c685ef9b42d3 | c6ed09339ff21fa70f154f34328e869f0dd8e394 | /IronPython/VirtualBox/vbox_import.py | 2058d09229982bc34771e919af273508e2e2d2b5 | [] | no_license | fits/try_samples | f9b15b309a67f7274b505669db4486b17bd1678b | 0986e22d78f35d57fe1dd94673b68a4723cb3177 | refs/heads/master | 2023-08-22T14:35:40.838419 | 2023-08-07T12:25:07 | 2023-08-07T12:25:07 | 642,078 | 30 | 19 | null | 2022-12-28T06:31:24 | 2010-05-02T02:23:55 | Java | UTF-8 | Python | false | false | 549 | py | # coding: utf-8
#
# VirtualBox の仮想マシンを import するサンプル
import sys
if len(sys.argv) < 2:
print "%s <input file>" % sys.argv[0]
sys.exit()
import clr
clr.AddReference("VirtualBox")
from System import *
from VirtualBox import *
vb = VirtualBoxClass()
ap = vb.CreateAppliance()
print "import start... | [
"wadays_wozx@nifty.com"
] | wadays_wozx@nifty.com |
cbdf5d16cbb45316291d83ddf6bc9a04be33f88a | fc9db903fb486f741bcad229ac73da6e1af87750 | /lightnlp/tc/sa/module.py | 94f1744da192ab11a23aaebfc7c1f50c31ce4026 | [
"Apache-2.0"
] | permissive | CNLPT/lightNLP | 193eca302b5ecec397b0b7b535d517dc185e4843 | c7f128422ba5b16f514bb294145cb3b562e95829 | refs/heads/master | 2020-06-15T05:40:06.712782 | 2019-07-05T04:38:11 | 2019-07-05T04:38:11 | 195,216,916 | 0 | 0 | Apache-2.0 | 2019-07-04T10:00:34 | 2019-07-04T10:00:33 | null | UTF-8 | Python | false | false | 3,922 | py | import torch
import torch.nn.functional as F
from tqdm import tqdm
from ...utils.learning import adjust_learning_rate
from ...utils.log import logger
from ...base.module import Module
from .model import Config, TextCNN
from .utils.pad import pad_sequnce
from .config import DEVICE, DEFAULT_CONFIG
from .tool import sa_... | [
"iamlightsmile@gmail.com"
] | iamlightsmile@gmail.com |
4d95f5a4e0731d4e2d7dae00840adc8bcf5070cd | 33dd2bf1278c5c015831d810fa458ffc2ab81558 | /mptt_tree_view/dynamic_tree_view.py | 777c59379cf923e87f1592d01646bc94d29116e2 | [] | permissive | weijia/mptt-tree-view | 9d89d5195b5faf40ae40442b6fadf580b8c16354 | 5a6f7b5ce061a41bc61e75376099bdab85b83299 | refs/heads/master | 2023-01-03T17:26:52.617882 | 2018-11-25T12:38:50 | 2018-11-25T12:38:50 | 91,926,812 | 2 | 0 | BSD-3-Clause | 2022-12-26T20:15:14 | 2017-05-21T01:46:42 | HTML | UTF-8 | Python | false | false | 1,203 | py | from django.core.context_processors import csrf
from django.views.generic import TemplateView
from djangoautoconf.django_utils import retrieve_param
from djangoautoconf.model_utils.url_for_models import get_rest_api_url, get_tastypie_api_url
class DynamicJsTreeView(TemplateView):
item_class = None
default_le... | [
"richardwangwang@gmail.com"
] | richardwangwang@gmail.com |
bc4b7811a166b8ea70a745f6d036acc3cb07ce85 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /pytorch/source/caffe2/python/muji.py | 346473946e4cc41de82f248df33919082978ff7e | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 8,131 | py | ## @package muji
# Module caffe2.python.muji
"""muji.py does multi-gpu training for caffe2 with no need to change the c++
side code. Everything is defined on the computation graph level.
We support the following use cases:
- 2 gpus, where peer access is enabled between them.
- 4 gpus, where peer access are enabled... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
9ab4612448f90aeaf2bccb2415dc00ec3f2eacc2 | 6453d3706b3aea523e65bc604a1bdfb0619ef8b0 | /tests/imdb_tests/test_find.py | 9862e49bba6038aa788b080316e867d06394d9a9 | [
"MIT"
] | permissive | lycantropos/asynctmdb | f92fb7137e4e6eaf2462937c1e176c0da036c635 | 623dcfe0f4f599104d16d920d9a1f35dd82eac90 | refs/heads/master | 2021-07-01T03:05:11.187995 | 2017-09-16T02:40:54 | 2017-09-16T02:40:54 | 100,452,740 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | from datetime import date
import pytest
from aiohttp import ClientSession
from asynctmdb import imdb
from asynctmdb.common import StatusCode
from tests.utils import is_positive_integer
@pytest.mark.asyncio
async def test_find_by_imdb_id(imdb_id: str,
invalid_imdb_id: str,
... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
eb8efb51c13bce88a0f77770dbcb0c7cd305237e | 63ec955fd39613e72503dd00720a58f7a5ed5e45 | /options chains crowdkast/New folder/crowdkast/crowdkastapp/config.py | c022c6d1e72778f4a02ee0300055a85c5f8cc259 | [] | no_license | scottwedge/Python-Code---Part-8 | 2fb1c4b869705cdde3c79e0bd391e931a4f5d0e1 | 238e9b6781ce6f3be92c6e89dfb0564562e1ff65 | refs/heads/master | 2021-05-18T07:20:40.507012 | 2020-03-30T02:09:24 | 2020-03-30T02:09:24 | 251,176,715 | 0 | 0 | null | 2020-03-30T01:59:14 | 2020-03-30T01:59:13 | null | UTF-8 | Python | false | false | 1,635 | py | import os
## default config
class BaseConfig(object):
DEBUG = True
CSRF_ENABLED = True
SECRET_KEY = '\x9bM&l\xbe.\x9f\x15"\xe2\xd836\xb4\xb8\xad\xbd\xb87^\x0b\xe99\x9f'
WTF_CSRF_SECRET_KEY = "jajajajaja"
UPLOAD_FOLDER = os.path.join(os.path.dirname(__file__), "..", "static", "upload")
ALLOWED... | [
"ravi.shankar1788@gmail.com"
] | ravi.shankar1788@gmail.com |
dc4a5b7a114ee6a05de3387a2c2683f7a2c04694 | 9ba2b89dbdeefa54c6b6935d772ce36be7b05292 | /devilry/devilry_group/migrations/0012_auto_20160107_1129.py | 7c3446d6a607e16c68de5607024c7babe0634759 | [] | no_license | kristtuv/devilry-django | 0ffcd9d2005cad5e51f6377484a83d778d65050f | dd2a4e5a887b28268f3a45cc3b25a40c0e313fd3 | refs/heads/master | 2020-04-27T06:02:45.518765 | 2019-02-15T13:28:20 | 2019-02-15T13:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('devilry_group', '0011_auto_20160107_1111'),
]
operations = [
migrations.RemoveField(
model_name='groupcomment',
... | [
"stianjul@gmail.com"
] | stianjul@gmail.com |
bc714cf454c3306dc04abe6d51e1972fcf9ddd91 | 26aa62e1fab9722f7750b54ad5eaa336427318d3 | /create_djeroku_project.py | 9514442c1024ad93a100979492bc15572f1771b2 | [
"MIT"
] | permissive | collingreen/djeroku | b2099511e8ab2b2d4ad365447fc5bb0781a994fd | cbde05de28bedcad42834e18a3ab465ac5683586 | refs/heads/master | 2020-06-02T08:41:38.056714 | 2016-01-18T04:56:44 | 2016-01-18T04:57:00 | 12,627,354 | 1 | 0 | null | 2016-01-19T08:06:28 | 2013-09-05T19:55:28 | Python | UTF-8 | Python | false | false | 7,193 | py | """
Djeroku setup file.
Creates a new djeroku project in the current directory. Includes
creating a virtualenvironment, installing dependencies, creating matching
staging and production projects on heroku, and provisioning the free heroku
addons djeroku expects.
Djeroku requires that you have pip, virtualenv, and git... | [
"collin@collingreen.com"
] | collin@collingreen.com |
d8c8bdc91044cb372837ea45c76f59213ed2daa6 | e1cacf76f531494414c846f61d055b06801052d8 | /sdk/python/kubeflow/katib/models/v1alpha3_filter_spec.py | fff19742b1176a40c7e1a4e08b92876bf7a1ccd5 | [
"Apache-2.0"
] | permissive | prem0912/katib | 388d6637f2fed8c67aa7bd0ad4419dedccb75ad7 | d19149ddcd5b59054d4c26fb23a141b8adbe9634 | refs/heads/master | 2020-06-17T16:10:55.954875 | 2020-06-03T09:19:53 | 2020-06-03T10:06:01 | 243,764,109 | 0 | 2 | Apache-2.0 | 2020-02-28T13:04:57 | 2020-02-28T13:04:57 | null | UTF-8 | Python | false | false | 3,589 | py | # coding: utf-8
"""
katib
swagger description for katib # noqa: E501
OpenAPI spec version: v0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class V1alpha3FilterSpec(object):
"""NOTE: This class is auto generated ... | [
"premnath.vel@gmail.com"
] | premnath.vel@gmail.com |
9f391baf1a74a5872d53f441f1ce6926f309de64 | 7e1ccd6cb73a0aea4a33d8864af1dd6c79afdd5a | /logistic-reg/logistic-reg3.py | d7e86ea1ca00475706c47f52620b1f55657c9fc2 | [] | no_license | jschnab/machine-learning | 8c1b0810acf7e4e47859700e5f71d4046dc6d6b5 | ed42d9b1a9a1d58cabf9a11ec19fd20b23f9ac47 | refs/heads/master | 2020-03-27T05:46:11.805987 | 2018-11-22T09:38:31 | 2018-11-22T09:38:31 | 146,032,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py | #this script performs a logistic regression with one feature on the wine
#data set from sklearn
#the plot suggests an easy classification but the gradient descent has
#trouble converging, and parameters come out wrong
import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets
wine = datasets.load... | [
"jonathan.schnabel31@gmail.com"
] | jonathan.schnabel31@gmail.com |
8ac08b817d2ab46a483baf882dee197d5560d84a | 158c80436eddc5f4e98987badb2c2c330ee4dde7 | /Desert/WanderingSouls/WanderingSouls.py | fc7aef1f176f3ae7b150ae86615a9a270ac613b7 | [] | no_license | DRCART03/CodeCombat | 3bb84eb90c310c4dbe2adbb302890eb4c2866eec | a9eff4fec5be4dac8914d8b9b1483586b265800b | refs/heads/master | 2020-08-04T11:02:56.504091 | 2019-10-01T14:31:22 | 2019-10-01T14:31:22 | 212,115,556 | 0 | 0 | null | 2019-10-01T14:30:37 | 2019-10-01T14:20:29 | null | UTF-8 | Python | false | false | 749 | py | # https://codecombat.com/play/level/wandering-souls
# Defeat skeletons and collect lightstones.
while True:
enemies = hero.findEnemies()
enemyIndex = 0
while enemyIndex < len(enemies):
enemy = enemies[enemyIndex]
# Hit it while it has health
while enemy.health > 0:
hero.... | [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
53606a704a7db016fdbe4b8d65fba4beb257eea9 | 6c2961116fb4af485ec0f5806b6dca34c84eb27c | /tools/coverage/coverage_lines.py | eb846cc9f249a3ff177fde437362a1122f4409a5 | [
"Apache-2.0"
] | permissive | NHZlX/Paddle | 29e81479116e3766d50856cbd33c18f606580560 | 91a2627251ed8d989c45b15fea323572bc9c5544 | refs/heads/develop | 2020-12-30T16:33:15.983832 | 2020-03-18T05:52:11 | 2020-03-18T05:52:11 | 92,489,093 | 1 | 2 | Apache-2.0 | 2019-04-15T09:20:27 | 2017-05-26T08:24:43 | C++ | UTF-8 | Python | false | false | 1,288 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
usage: coverage_lines.py info_file expected
"""
import os
import sys
def get_lines(info_file):
"""
Args:
info_file (str): File generated by lcov.
Returns:
float: Coverage rate.
"""
hits = .0
total = .0
with open(info_file)... | [
"luotao02@baidu.com"
] | luotao02@baidu.com |
c8b0a8ed26efc5b7faae2d26d8358170eeb7df02 | b19dfd6a3ba5d107d110fb936de2e91d1d92bb99 | /satchmo/satchmo/apps/satchmo_store/shop/urls.py | 1fb395b4e75103d18a699ac8cd78006084db9e0f | [
"BSD-2-Clause"
] | permissive | siddhant3030/djangoecommerce | d8f5b21f29d17d2979b073fd9389badafc993b5c | b067cb1155c778fece4634d0a98631a0646dacff | refs/heads/master | 2022-12-13T15:28:39.229377 | 2019-09-28T10:30:02 | 2019-09-28T10:30:02 | 207,240,716 | 2 | 1 | null | 2022-12-11T01:34:25 | 2019-09-09T06:35:36 | Python | UTF-8 | Python | false | false | 2,145 | py | from django.conf.urls import include, url
from django.views.generic.base import TemplateView
from django.contrib.sitemaps.views import sitemap
from product.urls import urlpatterns as productpatterns
from satchmo_store import shop
from satchmo_store.shop.views.sitemaps import sitemaps
from satchmo_utils.signals import ... | [
"ssiddhant3030@gmail.com"
] | ssiddhant3030@gmail.com |
ac508a6794f37cf26ffdaf73085305d9d1534f73 | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Flickr/Photos/ListGeoTaggedPhotos.py | bfc55953dcf197088124c0928f9dfbb5c9875099 | [
"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 | 7,726 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# ListGeoTaggedPhotos
# Returns a list of your geo-tagged photos.
#
# 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... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
62fa49865b974161ab6056905b7fd2969feb5bb7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_authority.py | 3d757864cf4064b97d6837f6b8ec713b9d4cd5e3 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py |
#calss header
class _AUTHORITY():
def __init__(self,):
self.name = "AUTHORITY"
self.definitions = [u'the moral or legal right or ability to control: ', u'a group of people with official responsibility for a particular area of activity: ', u'the group of people with official legal power to make decisions or make... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ee8d28aa5a42fcdb153c6a560d96c94bf6ac440b | 328afd873e3e4fe213c0fb4ce6621cb1a450f33d | /W3School/functions/14.py | 79c792c322d30aaea2f048c3c785773ba6d8c404 | [] | 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 | 202 | py | import string
def pangram(str,alphabet = string.ascii_lowercase):
alpha_set = set(alphabet)
return alpha_set <= set(str.lower())
print(pangram("The quick brown fox jumps over the lazy dog"))
| [
"sahilexemplary@gmail.com"
] | sahilexemplary@gmail.com |
a7732586ac2aa0c450619925daa0492766d85334 | b38fb62950582664158327a2abf29c84cc59178b | /0x0A-python-inheritance/0-lookup.py | c98413fb87cb29d9a969274a61a9a29c80dae5dc | [] | no_license | MiguelCF06/holbertonschool-higher_level_programming | a39129cf355abe15e2caeb41cdef385ace53cfda | 0bc44343cb20c97221d3886bafda6db7235bc13a | refs/heads/master | 2022-12-18T00:12:52.498624 | 2020-09-24T17:00:24 | 2020-09-24T17:00:24 | 259,323,305 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #!/usr/bin/python3
""" Defined a derived class """
def lookup(obj):
"""Return a list with the available
attributes and methods of the object
"""
return dir(obj)
| [
"miguel.cipamocha@gmail.com"
] | miguel.cipamocha@gmail.com |
cbeb396bafe18f7b21758e645947c16c6791c14f | 29186007f13a1cbb93655f1582a022db2e6844d0 | /pggmatch/tests.py | 33fe6ee093f1e96eb5020f280d528554d82ef99d | [] | no_license | chapkovski/uncertainty-summer-school | 1ec1e0d0cdef16f8d7d5b9e653abcea42790caac | d7574534546aaa7710c8a5a1871dd41fa49c6a1f | refs/heads/master | 2020-06-25T13:32:14.781025 | 2019-08-01T07:09:15 | 2019-08-01T07:09:15 | 199,321,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from otree.api import Currency as c, currency_range
from .pages import *
from ._builtin import Bot
from .models import Constants
import random
class PlayerBot(Bot):
def play_round(self):
if self.round_number == 1:
yield Intro
yield Contribution, {'contribution': random.randint(0, self.... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
914bf803d1761e3eca4b0de7ca359647de09fb9c | ed454f31cf5a3d2605f275cc83ec82f34f06bb33 | /scripts/lib/clean-unused-caches | c53ba09f63be4f520607fe487d64f6c27e3b133b | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | 18-2-SKKU-OSS/2018-2-OSS-L5 | b62a3ce53eff63ed09395dc1f8296fef089d90e2 | 190bc3afbf973d5917e82ad9785d01b2ea1773f2 | refs/heads/master | 2020-04-08T11:44:14.468373 | 2018-12-11T04:35:30 | 2018-12-11T04:35:30 | 159,317,980 | 3 | 4 | Apache-2.0 | 2018-12-09T14:14:21 | 2018-11-27T10:30:18 | Python | UTF-8 | Python | false | false | 627 | #!/usr/bin/env python3
import argparse
import os
import subprocess
import sys
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(ZULIP_PATH)
from scripts.lib.zulip_tools import get_environment, parse_cache_script_args
from scripts.lib import clean_venv_cache, clea... | [
"ulla4571@gmali.com"
] | ulla4571@gmali.com | |
5a574a6a6471227de2de5658599e05f223c50765 | 74681f530808bdbb421964f60cc97ef8ec5c983c | /functional model/paper figures/figure8.py | 0865cccf3b5f467c7ede3008b708b50e6bed15f0 | [] | no_license | ModelDBRepository/238332 | 2d3c642eb5d735b819bed80cd9a4fc2dce079086 | 43a9439ba26a5909ea7dd51675437ba4423be183 | refs/heads/master | 2020-05-29T18:22:01.108907 | 2019-05-31T02:47:01 | 2019-05-31T02:47:01 | 189,297,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,801 | py |
import numpy as np
import matplotlib.pyplot as plt
plt.ion()
import scipy.stats as stats
import matplotlib.transforms as mtransforms
num_types=[0,126,230,366,750,986,1324,1382] # number of cells per cell type
halves=[w+(u-w)/2 for (u,w) in zip(num_types[1:],num_types[0:-1])]
cell_types=["rb","dlc","ain","cin","din","... | [
"tom.morse@yale.edu"
] | tom.morse@yale.edu |
b79104602156cb169760bdc1d6cc5bb8d4b71db9 | 4e3eedbf46a032c42665c3b212a48bc30652c1ed | /day04/02 列表的增删改查.py | f19beee4c81478f767927a13e209967196a44210 | [] | no_license | zranguai/python-learning | 7eb2a842f6f4624f550ee1c4ff7cd64ac948097a | acf19c9f85eec4bee3e3e3a00712c4a53aa9d249 | refs/heads/master | 2023-03-24T14:36:32.248437 | 2021-03-15T08:24:01 | 2021-03-15T08:24:01 | 347,874,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | # 列表的创建
# 方式一
# li = [1, 2, 'alex']
# 方式2
# li = list()
# li = list('123456')
# print(li, type(li))
# 方式3:列表推导式
# 增删改查
# li = ['哈哈', '嘿嘿', '呵呵']
# 增
# 1.append
# li.append('xx')
# print(li)
# 举例:
# li = ['哈哈', '嘿嘿', '呵呵']
# while True:
# name = input('请输入:输入q/Q退出')
# if name.upper() == 'Q':
# break
... | [
"zranguai@gmail.com"
] | zranguai@gmail.com |
5f5cc24cb930846f19c23518dfa66d5f75d133b0 | cd48191e65488746985835de07118cec83f3454b | /2018-july/6.supervised ml algorithms/ensemble/bagged-ensemble-algorithms.py | 9149642725c6a3bb0f3e9270b80a24c72d75c39a | [] | no_license | RapetiBhargav/datascience | ad27dc5dccb054075ec669971e98f82fac722c63 | cc824cf69fe0dbbd06624b0a9422d69f1b969b34 | refs/heads/master | 2021-01-17T03:40:49.957714 | 2020-05-13T04:28:12 | 2020-05-13T04:28:12 | 262,079,023 | 0 | 0 | null | 2020-05-07T14:51:21 | 2020-05-07T14:51:20 | null | UTF-8 | Python | false | false | 3,616 | py | import pandas as pd
from sklearn import tree, preprocessing, ensemble, model_selection
from sklearn_pandas import CategoricalImputer
import pydot
import io
#extracting all the trees build by random forest algorithm
def export_all_trees(best_est, prefix):
n_tree = 0
for est in best_est.estimators_:
... | [
"noreply@github.com"
] | RapetiBhargav.noreply@github.com |
5c8de38561838358bd95551629f325212ae6d94e | 0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a | /python3/10_Modules/04a_os_module/txtmd5.py | e8b1f12d442f0d6d67a2587f24e06cc688a4882b | [] | no_license | udhayprakash/PythonMaterial | 3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156 | e72f44e147141ebc9bf9ec126b70a5fcdbfbd076 | refs/heads/develop | 2023-07-08T21:07:33.154577 | 2023-07-03T10:53:25 | 2023-07-03T10:53:25 | 73,196,374 | 8 | 5 | null | 2023-05-26T09:59:17 | 2016-11-08T14:55:51 | Jupyter Notebook | UTF-8 | Python | false | false | 558 | py | import hashlib
import os
from os.path import join
hashes = dict()
for dirname, dirs, files in os.walk("."):
for filename in files:
if filename.endswith(".txt"):
thefile = os.path.join(dirname, filename)
fhand = open(thefile, "r")
data = fhand.read()
fhand.clo... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
6350a7bbd157c99ffc62768593934d10d8ec35eb | ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd | /clients/client/python/test/test_update_settings_flow_with_lookup_method.py | b3f1286d8f9b6b7f66adab59f7022f0a2734a90e | [
"Apache-2.0"
] | permissive | ory/sdk | fcc212166a92de9d27b2dc8ff587dcd6919e53a0 | 7184e13464948d68964f9b605834e56e402ec78a | refs/heads/master | 2023-09-01T10:04:39.547228 | 2023-08-31T08:46:23 | 2023-08-31T08:46:23 | 230,928,630 | 130 | 85 | Apache-2.0 | 2023-08-14T11:09:31 | 2019-12-30T14:21:17 | C# | UTF-8 | Python | false | false | 1,017 | py | """
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v1.1.51
Contact: support@ory.sh
Generated by: https://ope... | [
"3372410+aeneasr@users.noreply.github.com"
] | 3372410+aeneasr@users.noreply.github.com |
0ff14097b30366e9fc20d1086c0fc7f4d38cfcd4 | b40a34f773045828f25c13676e1944d53e8a4cfc | /mario64rivals/settings.py | b13eb07f3e79adacffe42d7caef41f0d4cf62718 | [
"BSD-3-Clause"
] | permissive | mwiens91/mario-64-rivals | 7699787a551f59355a9b7d3f99016580b6bff024 | da1918eec77eda36a189a596b2f00145850cc7dd | refs/heads/master | 2021-08-16T21:48:52.234107 | 2019-08-12T09:03:06 | 2019-08-12T09:03:06 | 146,136,891 | 0 | 0 | BSD-3-Clause | 2021-06-10T20:47:10 | 2018-08-25T23:32:46 | JavaScript | UTF-8 | Python | false | false | 4,355 | py | """
Django settings for mario64rivals project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import o... | [
"mwiens91@gmail.com"
] | mwiens91@gmail.com |
64ce7d885eed8a02b0467d3dbf2b39dfbe695284 | 5109296bedc93041eb5941ba3f5115145ba1464b | /core/messages.py | 3def896cb659ef6017f9c40a472da2fa39c4778e | [] | no_license | Seronsecurity/c2s | 63bdc2844ab41495808f6256ef364e7aec7bc8bc | 505adc6c584aad2e80c3389f36e934d79f739185 | refs/heads/master | 2021-01-08T05:48:52.981614 | 2019-01-30T03:37:56 | 2019-01-30T03:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | import requests, json
from . import sender
from . import utils
class Messages(object):
"""docstring for MessType"""
def __init__(self, options):
self.options = options
def keep_alive(self):
url = "https://slack.com/api/api.test?error=sample"
pass
def send_message(self):
... | [
"jeromej3m@gmail.com"
] | jeromej3m@gmail.com |
dffe582678bef6244493f754bfa045d2cd0ef1ae | 1980034628a1419875093b1259eb9afca390ea91 | /myproject/boards/tests.py | b15cb096f8ac4420f4a2950a123e2c7b064b5a1c | [] | no_license | ranafge/Djanog-Project | 2c8aac92cef9eef1140a391790af240fcd703f63 | 624e19205c52cea51bdd756096d19ddddf97837f | refs/heads/master | 2022-12-15T14:03:08.883264 | 2019-08-18T08:15:49 | 2019-08-18T08:15:49 | 187,343,616 | 1 | 1 | null | 2022-12-11T21:35:51 | 2019-05-18T10:19:25 | Python | UTF-8 | Python | false | false | 2,399 | py | from django.urls import reverse
from django.test import TestCase
from django.urls import resolve
from .views import home
from .models import Board
from .views import board_topics, new_topic
class BoardTopicsTests(TestCase):
def setUp(self):
Board.objects.create(name='Django', description='Django board desc... | [
"ranafge@gmail.com"
] | ranafge@gmail.com |
10c35995eb0bd9d43d7013eda45d30052d28a6ed | 0676f6e4d3510a0305d29aa0b1fe740d538d3b63 | /Python/LoftCrown/LoftCrownReb.py | b0d31635a7eba03eb00c97598e17b3c94cfdbb88 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | pgolay/PG_Scripts | f70ffe7e5ca07acd6f4caedc9a9aec566542da7c | 796704a7daa6ac222a40bb02afdb599f74a6b0d4 | refs/heads/master | 2021-01-19T16:53:41.525879 | 2017-02-07T18:26:10 | 2017-02-07T18:26:10 | 2,730,362 | 9 | 1 | null | 2016-12-30T17:58:08 | 2011-11-08T00:04:33 | Python | UTF-8 | Python | false | false | 3,746 | py | import Rhino
import scriptcontext as sc
import rhinoscriptsyntax as rs
def LoftCrown():
def get_inputs():
oldDeg = 3
oldPts = 4
oldReb = False
if sc.sticky.has_key("RebuildPointCount"):
oldPts = sc.sticky["RebuildPointCount"]
if sc.s... | [
"noreply@github.com"
] | pgolay.noreply@github.com |
5d355e0ae78f61ac69ae592ab5e73ded4b93d33d | 88a925c350db834972db7190f41d776d20f4345d | /pydantic/validators/pre_peritem.py | 6150a3117e48b4b0ed5399401eb3b3948f070b81 | [] | no_license | IndominusByte/deeplearn-all-stuff-fastapi | 037b0c032895790f5becf9a1ebd10af337a4249f | 81c60e603081aae5f0b16e9a4d62e894b966df3e | refs/heads/master | 2022-12-26T00:52:34.810929 | 2020-10-03T09:42:45 | 2020-10-03T09:42:45 | 293,742,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | from pydantic import BaseModel, validator, ValidationError
from typing import List
class DemoModel(BaseModel):
square_numbers: List[int] = []
cube_numbers: List[int] = []
# keyword argument 'pre=True' will be execute first time when class initialize
# '*' is the same as 'cube_numbers', 'square_numbers... | [
"nyomanpradipta120@gmail.com"
] | nyomanpradipta120@gmail.com |
b871f28b083bf6fe45f02133293a214798ed79c2 | fe6f6d11dde2a3205ae9758c7d4eb1f824b84102 | /venv/lib/python2.7/site-packages/daemon/runner.py | 84dd5e57e5d6dfdcb4a31f65ce10737e2cb87956 | [
"MIT"
] | permissive | mutaihillary/mycalculator | ebf12a5ac90cb97c268b05606c675d64e7ccf8a6 | 55685dd7c968861f18ae0701129f5af2bc682d67 | refs/heads/master | 2023-01-10T14:56:11.780045 | 2016-09-20T12:30:21 | 2016-09-20T12:30:21 | 68,580,251 | 0 | 0 | MIT | 2022-12-26T20:15:21 | 2016-09-19T07:27:48 | Python | UTF-8 | Python | false | false | 7,183 | py | # -*- coding: utf-8 -*-
# daemon/runner.py
# Part of python-daemon, an implementation of PEP 3143.
#
# Copyright © 2009–2010 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2007–2008 Robert Niederreiter, Jens Klein
# Copyright © 2003 Clark Evans
# Copyright © 2002 Noah Spurrier
# Copyright © 2001 Jürgen Hermann
... | [
"mutaihillary@yahoo.com"
] | mutaihillary@yahoo.com |
b9ec3190afff29aa4ea4008651e735ee2c520450 | d891409c10ee5038442ab6e195d94be478a8ab38 | /question25.py | 134cad0afae19b6d12f74ae233fc08ad07b3ee60 | [
"MIT"
] | permissive | gusenov/test-tech-mail-ru-python2 | 04e665bb10744e898c1b421f06a8c3ef757facd5 | 70e37a3de447b6f7c4da5add75f65df1b51405fe | refs/heads/master | 2018-10-30T16:52:42.123754 | 2018-02-09T15:04:56 | 2018-02-09T15:04:56 | 120,915,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # print range(4000) # [0, 1, 2, ..., 3997, 3998, 3999]
# print range(4000)[2:] # [2, 3, 4, ..., 3997, 3998, 3999]
result = []
for x in range(4000)[2:]:
# print range(int(x**0.5)+1);
# [0, 1] [0, 1]
# [0, 1, 2] [0, 1, 2] [0, 1, 2] [0, 1, 2] [0, 1, 2]
# [0, 1, 2, 3] [0, 1, 2, 3] [0, 1, 2, 3] [0, 1, 2, 3... | [
"gusenov@live.ru"
] | gusenov@live.ru |
2e9cfc372b08949919a83923f0dc47d3530c13e4 | fe8bfba13e7d1785e45426fae20b46f7a8ffbd1d | /AllureReport/TCPkg/test_allure.py | 95af77fee628fa561251f85e6d53ca5f0bab1ace | [] | no_license | aravindanath/Chandrayan3 | 47ff9f5075e67dab6199a66cad84b707ea2960a9 | 2bd18ba93e39f9e914b235598c165061c84fd2b2 | refs/heads/master | 2020-07-22T13:42:45.826933 | 2019-11-27T03:56:48 | 2019-11-27T03:56:48 | 207,220,730 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | import pytest
from selenium import webdriver
import allure
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
@pytest.fixture()
def setUp():
global driver
driver = webdriver.Chrome(executable_path="/Users/aravindanathdm/Documents/Aravinda/chromedriver")
# After all the test case ex... | [
"aravindanath86@gmail.com"
] | aravindanath86@gmail.com |
2bef364a549bba04d3f9618902a174a1c5a0dec4 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_pickets.py | a8750379e8022d891cb844f8aa3c5d4e8d85724e | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from xai.brain.wordbase.nouns._picket import _PICKET
#calss header
class _PICKETS(_PICKET, ):
def __init__(self,):
_PICKET.__init__(self)
self.name = "PICKETS"
self.specie = 'nouns'
self.basic = "picket"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7abad0f8a7f2bf9adaec2939003aa2110b65ac9d | e46e8ae7c95d16ce69bd21159335ab86bc2415cf | /Chapter21_CountingSort/Stable_test.py | 64674ccaca6af7472159fdeb47353bc0219e7532 | [] | no_license | HuichuanLI/play-with-data-structure-python | 7f15ca1e679c1f2287a147e6472ebcebd96b235f | b36436efc6af4b1865dacc79db5fa7160eab9d6e | refs/heads/master | 2023-05-25T19:08:01.745918 | 2023-05-16T17:30:40 | 2023-05-16T17:30:40 | 210,399,837 | 32 | 8 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # -*- coding:utf-8 -*-
# @Time : 2021/2/27 2:26 下午
# @Author : huichuan LI
# @File : Stable_test.py
# @Software: PyCharm
import random
from string import ascii_lowercase
from Student import Student
n = 26 * 26 * 26 * 26
students = []
for c1 in ascii_lowercase:
for c2 in ascii_lowercase:
for c3 in ascii_lo... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
fa922c7fb449537dedf03edfe90c944d307d3afd | 7c44626e40ef6365b77cd649e908062be7abc109 | /min_depth.py | 9df1d2e4d6d1f12b387332225dea6e0ef590acb8 | [] | no_license | nicehiro/LeetCode | cce9f8f64ffbb123b67b45044384e45ebb21f834 | c3472e5d1e5e89564359eee3be3675e5e7238e52 | refs/heads/master | 2023-04-05T05:02:32.207366 | 2021-04-26T09:12:06 | 2021-04-26T09:12:06 | 219,693,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def minDepth(self, root: TreeNode) -> int:
if not root:
return 0
self.min_dep = float('inf')
self.recursive(roo... | [
"wfy11235813@gmail.com"
] | wfy11235813@gmail.com |
987092dc733ab472fc2ad9fa3aa0e74d23f23db7 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/main_IPO_crawler_20210127124847.py | 304c1abcfa7beb886d0a02aa7c561692a7ac46f6 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py |
import requests
from bs4 import BeautifulSoup
import time
import re
import json
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36'}
def date_gen(start=2014):
now = int(time.ctime().strip()[-1])
for
sz_data_list = [... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
a3299686940ea88e640745148e88f10f7e8f5031 | bc4688c02d16c4f786f0ea835f9e1a7e45272090 | /cnn/keras/models/AAL61/model_single4_conv.py | cd1a7b6361ee87e54cfead6f335217270be7a2b0 | [] | no_license | mhubrich/adni-python | 4e3fb24e216fb908eb2426b2fc90482431f3494d | 21e14e4cb5ab8edf33deff7fbe2494bbc396ea35 | refs/heads/master | 2021-06-15T02:04:00.435915 | 2017-02-28T14:25:23 | 2017-02-28T14:25:23 | 69,449,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,940 | py | from keras.models import Sequential
from keras.layers.convolutional import Convolution3D
from keras.layers.core import Flatten, Dropout, Dense
from keras.layers.noise import GaussianNoise
from keras.regularizers import l2
def build_model(input_shape=(1, 22, 22, 22)):
name = 'AAL61'
do = 1.0/18
model ... | [
"mhubrich@students.uni-mainz.de"
] | mhubrich@students.uni-mainz.de |
c1f2fc0d1186ec2b893ec30b71f8f02a3c66d6f7 | 7fccc6d6bd275a7d701221ec1f1eaadf0e2e2b96 | /app/hrzn/admin.py | 32b77bd846a9230b0fd33f4b3ccc76aeea24826d | [
"MIT"
] | permissive | shekhar-singh/horizon_2k15 | 657b6f4240f916a3a976e909d00b69358ebc4baa | 594e19840518a0eadabdfac4ccd49d55154cda18 | refs/heads/master | 2021-01-18T20:14:04.771983 | 2016-03-13T01:01:49 | 2016-03-13T01:01:49 | 53,584,553 | 1 | 0 | null | 2016-03-10T12:58:18 | 2016-03-10T12:58:18 | null | UTF-8 | Python | false | false | 431 | py | from django.contrib import admin
from hrzn.models import *
admin.site.register(Foreveryone)
admin.site.register(Cseit)
admin.site.register(Ece)
admin.site.register(Eie)
admin.site.register(Ee)
admin.site.register(Me)
admin.site.register(Ce)
admin.site.register(Gaming)
admin.site.register(Registration)
admin.site.regis... | [
"sheeshmohsin@gmail.com"
] | sheeshmohsin@gmail.com |
c31cd4f469e3d5f31af28cbc47000be9820cdc84 | 3bde9d4eda2a27d8397fd3378aa14d516c3b5db6 | /snippets/views.py | a7a53e2be0bc1ff698309c29cde93eaf0e87407d | [] | no_license | nachovidondo/Snippets | e8a9ceea0b7c6906ffa6f6a4e6d39e0b96b028e2 | 6d7c729482a9015caa0e630485d363a7b9a5c3a8 | refs/heads/master | 2023-03-12T22:19:56.990175 | 2021-03-06T19:44:28 | 2021-03-06T19:44:28 | 345,179,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py |
from django.contrib.auth.views import LoginView
from django.db.models.base import Model
from django.views.generic.edit import DeleteView
from snippets.forms import SnippetForm
from django.shortcuts import render,redirect,reverse
from .models import Language, Snippet
from django.views.generic import ListView,DetailView... | [
"ignaciovidondo@hotmail.com"
] | ignaciovidondo@hotmail.com |
bd7ecd02d5c11c0187a869a518da962cbe10dc5c | 1e8d7f047efc9869f7d9a57b53b3ac71a8ad086c | /21天学通Python_源代码/C15/a15_4.py | 3fe57ffed41fdef5d2ef8548f88c1c3bc320f863 | [] | no_license | BrandonLau-liuyifei/liuyifei_sourse | c686776496fdccd89c8a28dbaba4b5f01c9ce013 | cbf916289613cc1dcc2db452bc6f2c3f6185c5f2 | refs/heads/master | 2021-05-17T16:51:29.104546 | 2020-08-16T13:39:25 | 2020-08-16T13:39:25 | 250,880,982 | 0 | 1 | null | 2020-08-16T13:39:26 | 2020-03-28T19:53:13 | Python | UTF-8 | Python | false | false | 503 | py | import threading
import time
class myThread(threading.Thread):
def __init__(self,mynum):
super().__init__()
self.mynum = mynum
def run(self):
time.sleep(1)
for i in range(self.mynum,self.mynum+5):
print(str(i*i)+';')
def main():
print('start...')
... | [
"liuyifeiflying1991@outlook.com"
] | liuyifeiflying1991@outlook.com |
d7f7ceb0e320fd3e651894cd39bf318b437c9796 | bcf87f307f9082a46b7a021f16be40fcf3da245c | /0-weha/0043_customer_deposit/models/sale_order.py | a333ef002e66b64ce34744ff3f0e8d4b3ec30717 | [] | no_license | wahhid/project0043 | b26b47d2f18d9e644fba96ffe1be418c4c85f1cd | 4bac5978d65c2c5d37b10549c79de6f5ad62b89c | refs/heads/master | 2022-11-27T18:22:36.085930 | 2020-08-10T04:02:36 | 2020-08-10T04:02:36 | 260,406,240 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,273 | py | from odoo import models, fields, api, _
from odoo.exceptions import UserError, ValidationError, Warning
import logging
_logger = logging.getLogger(__name__)
class SaleOrder(models.Model):
_inherit = 'sale.order'
#@api.onchange('pricelist_id')
#def onchange_pricelist_id(self):
# self.recalculate_... | [
"wahhid@gmail.com"
] | wahhid@gmail.com |
062657eb865262d691f3e8abfca13cc027dd7cdd | 46190b3647560a83658f6fadd22efbc8b16f17e3 | /TA210715A53/D1028_fft_pwr.py | 5c963064762e10789c58841851f60e6c43f0816f | [] | no_license | priyankaiitg/TA_software | 102c25ca6a1ed64da2544402578c77c2886e088e | 3fea8a37d86239353dccd7a1b71dcedb41b7e64c | refs/heads/master | 2023-08-07T22:31:56.981026 | 2017-11-22T17:21:12 | 2017-11-22T17:21:12 | 59,889,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,804 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 24 18:55:33 2016
@author: thomasaref
"""
from TA53_fundamental import TA53_VNA_Pwr_Lyzer, TA53_Read, qdt
from numpy import absolute, trunc, arccos, shape, float64, linspace, reshape
from taref.plotter.api import colormesh, scatter, line
a=TA53_VNA_Pwr_Lyzer(name="d1013... | [
"ThomasAref@gmail.com"
] | ThomasAref@gmail.com |
09704fb6847eef5edd0a292acedaa76a3178727c | 93e9bbcdd981a6ec08644e76ee914e42709579af | /string/97_Interleaving_String.py | 16814d0661a31caa5d4f6fc005410270540dd693 | [] | 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,796 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
https://leetcode.com/problems/interleaving-string/
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.
Example 1:
Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac"
Output: true
Example 2:
Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbb... | [
"vsdmars@gmail.com"
] | vsdmars@gmail.com |
e9f9d367bf7bbc8bcf111b5156dd9a13ec9087d2 | 35b6013c1943f37d1428afd2663c8aba0a02628d | /dialogflow-cx/detect_intent_texts_test.py | 7000520134c826578b7d225c4a752181fc80d1f7 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,517 | py | # Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
20e2f880d240c859bc25a7ca04a1904640cfcf24 | 86174142b39dd5a5db1d0b4a5e9463b2f8a7b5f3 | /07-26/db_Test.py | 997c7304454579e6fa7409b005b551c7de02b47f | [] | no_license | parkjinhong03/2019-SmartFam | ddaa1126e4b30b8e0b5c6e2d0d58592475b73691 | d9f4bf7fec6dd7e11a551ccbfab9289873c14dad | refs/heads/master | 2020-06-27T12:54:53.672988 | 2019-08-03T04:09:06 | 2019-08-03T04:09:06 | 199,959,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import sqlite3
con = sqlite3.connect("./test.db") #DB File 생성
cur = con.cursor()
# DB Table 생성
cur.execute("CREATE TABLE if not exists PhoneBook(Name text, PhoneNum text);")
#DATA 저장
cur.execute("INSERT INTO PhoneBook VALUES('Sometwo', '010-9999-8989');")
con.commit() # DB에 저장
cur.execute("SELECT *... | [
"jinhong0719@naver.com"
] | jinhong0719@naver.com |
cd80b7ff1a7eefb7ff38492f6ba0a5db71f5d61e | 76d4fa598fb4f392ce2acec9321f1852a3497529 | /pyramid_learning_journal/views/default.py | c07cf7f095100872ec67a3bd4a1b8f99be821b20 | [
"MIT"
] | permissive | ztaylor2/pyramid-learning-journal | 76844ce30fe00deb9235f54361139320c6bc28df | 335e7a1174ef45a8bf08e118c56c4a5cd869053a | refs/heads/master | 2022-12-09T22:51:35.567551 | 2017-11-22T19:34:16 | 2017-11-22T19:34:16 | 108,793,845 | 0 | 0 | MIT | 2022-12-08T00:40:41 | 2017-10-30T02:49:14 | Python | UTF-8 | Python | false | false | 3,658 | py | """Views for the pyramid learning journal app."""
from pyramid.view import view_config
from pyramid.httpexceptions import HTTPNotFound, HTTPFound, HTTPBadRequest
from pyramid_learning_journal.models.entries import Entry
import datetime
from pyramid.security import remember, forget
from pyramid_learning_journal.securit... | [
"ztaylor2@zagmail.gonzaga.edu"
] | ztaylor2@zagmail.gonzaga.edu |
e4e417229ac6e9ad7c2cd9686de10d5db2710ccc | 6a26de4f5bfbc507d2986d92f091086231df5090 | /toolkit/apps/default/migrations/0004_email_is_validated_for_existing_users.py | 619adc31274971c3c72ba61055a03c7cf25701bc | [] | no_license | rosscdh/toolkit | a169478ff60f305029159b62831a90d899e0986a | cdda3dd17a776bf2a07fe093304160bf3c43199b | refs/heads/master | 2022-11-25T01:52:42.964759 | 2019-10-19T11:00:35 | 2019-10-19T11:00:35 | 14,691,581 | 1 | 0 | null | 2022-11-22T00:26:10 | 2013-11-25T16:50:14 | Python | UTF-8 | Python | false | false | 4,566 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Don't use "from appname.models imp... | [
"ross@lawpal.com"
] | ross@lawpal.com |
ac952d2da23d6734b8bd76fa60f92cda30a7f32c | 0c0d76ede283a87e67a625dffc7be044d0a6e720 | /KiteConnect/source/CleanNCreateDBTables.py | dfd4d239ec46f7a2525476be685874f030cf7ca6 | [] | no_license | mithun12000/KiteConnect | 08a6da14399bea356a1379c39da1c2e4043d7d7f | 37e794213657d15d691fc4470f64b970b7d65044 | refs/heads/master | 2020-06-17T08:49:15.636005 | 2019-06-11T17:24:10 | 2019-06-11T17:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | import sys
from os import path
sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) )
sys.path.append( path.dirname( path.dirname( path.dirname(path.abspath(__file__)) ) ) )
import MySQLdb
from Utility import *
class kCommand:
def __init__(self, *args):
try:
self.db = MySQL... | [
"singhanurag50@gmail.com"
] | singhanurag50@gmail.com |
d805a39f24a6517941a383c08e42675707d17ab9 | 51421ad64b0dc5c42fec996965f5ba8193a4a1d0 | /Building a List.py | 428edd976232095795895beae268e85b1eaf5559 | [
"Apache-2.0"
] | permissive | jefferyyuan/HackerRankAlgorithms | 7c34033b27ce5421e7e859a91059d6bf83070d0d | 2ec52f9723d7dba7288508c2295bcfb2b3779223 | refs/heads/master | 2020-12-14T18:43:18.280974 | 2015-06-05T09:06:43 | 2015-06-05T09:06:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | """
Problem Statement
Chan has decided to make a list of all possible combinations of letters of a given string S. If there are two strings
with the same set of characters, print the lexicographically smallest arrangement of the two strings.
abc acb cab bac bca
all the above strings' lexicographically smallest... | [
"zhangdanyangg@gmail.com"
] | zhangdanyangg@gmail.com |
90cae612fa25e8a56a726703718c7af9d80c27f3 | aed69676f71a418d83c33132607439491158b41d | /redis_frappe.py | ca2f82391f6c2dde563e9722d2c5be2e1958aedb | [] | no_license | pranavchandran/Updating_pyhton_modules | f26b3fe001a0b9eeb101c8fe7621d5ccf0a9b42f | 97099f159b66c9a514eda869101c0bebad85f9ab | refs/heads/main | 2023-01-31T04:29:11.639891 | 2020-12-15T09:20:16 | 2020-12-15T09:20:16 | 321,614,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,978 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import redis
# from six.moves import cPickle as pickle
# from frappe.utils import cstr
# from six import iteritems
class RedisWrapper(redis.Redis):
"""Redis client that will au... | [
"pranav.chandran@gmail.com"
] | pranav.chandran@gmail.com |
c8a6b20815a5c406aff80e96e6ffcb12e4bb597b | 416a42d732faee65a7951374fbd407123970bad1 | /ecommerce/aws/conf.py | 5fae17d657ec309fdca7187449ad10681cd8e991 | [] | no_license | Arkajit-m18/djngo-ecommerce-production-heroku | 1860eb0d0f2d0d059e3d5196e680afa5e37c6f32 | 162dff597be5c0ef7a0b2caea8ae7cdf030ea515 | refs/heads/master | 2020-05-15T22:29:51.199173 | 2019-04-22T15:49:49 | 2019-04-22T15:49:49 | 182,528,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | import datetime, os
AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID', "AKIAWSI5VAVSCDTOF6PT")
AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY', "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")
AWS_USERNAME = "arkajit-ecommerce-django"
AWS_GROUPNAME = "django-ecommerce-group"
AWS_FILE_EXPIRE = 200
AWS_PR... | [
"arkajit.18@gmail.com"
] | arkajit.18@gmail.com |
43f1df1df65e5286e263c2499d5d5df930702feb | 447d2477eb7f77fa6e6d3c8eebe47f79a56503bb | /htmlpp/__init__.tmp.py | e9cac669837323421b3ae6990e683090fd1f06e1 | [] | no_license | podhmo/htmlpp | cdd221103de38e561434f63d64bd06ad1b3b10e3 | 98ffdf1d9c54e818de1c32232f6b75b92222d912 | refs/heads/master | 2021-01-10T06:20:37.273615 | 2015-10-19T16:21:42 | 2015-10-19T16:21:42 | 43,852,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | # -*- coding:utf-8 -*-
from htmlpp.lexer import Lexer # NOQA
from htmlpp.parser import Parser # NOQA
from htmlpp.codegen import Codegen # NOQA
if __name__ == "__main__":
lexer = Lexer()
parser = Parser()
s = """
<@def name="foo">
<div class="foo">
<@yield/>
<@def name="bar">
<div class="bar">
<@yie... | [
"podhmo+altair@beproud.jp"
] | podhmo+altair@beproud.jp |
7597d7dc4fb86b3481be19130cf7f66d01414702 | e16cc78f0e05e50d589558535ae0fc5e414dd4a0 | /YOYO/test_h_internationalcard.py | 1413eebce2fe2aa528d9ab947c577e8fb0cbb032 | [] | no_license | wenqiang1990/wenqiang_code | df825b089e3bd3c55bcff98f4946f235f50f2f3d | 3c9d77e0a11af081c60a5b1f4c72ecd159945864 | refs/heads/master | 2020-06-19T04:38:39.052037 | 2019-12-18T03:40:39 | 2019-12-18T03:40:39 | 196,561,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | #coding:utf-8
import os
import time
import datetime
import unittest
from robot.utils.asserts import *
from appium import webdriver
timecode = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
class Imtest(unittest.TestCase):
def setUp(self):
desired_caps = {}
desired_caps['deviceName'] = '3... | [
"1058099258@qq.com"
] | 1058099258@qq.com |
69f19df018b138b945846b132529e7f6f9ad692c | 82aace1431e0af949b1294d979a16f8dc18f48c2 | /Python-Web-Basics-Softuni/django101/django101/migrations/0002_delete_game.py | fb956bfb2117247985d180d3538d87e9b2b4605b | [
"MIT"
] | permissive | borisboychev/SoftUni | 6778450417f889f8e89c709897b9e26c7129dbf6 | 22062312f08e29a1d85377a6d41ef74966d37e99 | refs/heads/master | 2023-03-27T13:11:17.378197 | 2021-03-26T09:14:25 | 2021-03-26T09:14:25 | 295,463,442 | 1 | 0 | null | 2020-10-12T12:54:13 | 2020-09-14T15:46:12 | Python | UTF-8 | Python | false | false | 284 | py | # Generated by Django 3.1.1 on 2020-09-27 12:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('django101', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='Game',
),
]
| [
"borisboychev007@Gmail.com"
] | borisboychev007@Gmail.com |
b296e420129f880c0994a7d8fe4564b4da4bd35a | eb40a068cef3cabd7a0df37a0ec2bde3c1e4e5ae | /imperative/python/megengine/module/activation.py | 072d7be0c3f0f0c1fb80390eb170e26ee54de586 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | tpoisonooo/MegEngine | ccb5c089a951e848344f136eaf10a5c66ae8eb6f | b8f7ad47419ef287a1ca17323fd6362c6c69445c | refs/heads/master | 2022-11-07T04:50:40.987573 | 2021-05-27T08:55:50 | 2021-05-27T08:55:50 | 249,964,363 | 1 | 0 | NOASSERTION | 2021-05-27T08:55:50 | 2020-03-25T11:48:35 | null | UTF-8 | Python | false | false | 5,652 | py | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | [
"megengine@megvii.com"
] | megengine@megvii.com |
bf409bf72800f66b25c5bde70da6cee6c834783c | de7cae42ec760bae3b532259b399a8c6df0394c9 | /wxPython/samples/wxPIA_book/Chapter-11/basicflexgridsizer.py | 45a1c4baa6b19751444b533aa059a9ec848b6d78 | [] | no_license | nvaccess/wxPython | b70f91bd682b86e20434d0c69ac497dfbf875838 | 13cceab2a1891ab443e62078be729dc1e1e2e283 | refs/heads/master | 2020-05-31T00:11:36.079007 | 2016-07-12T09:25:04 | 2016-07-12T09:25:04 | 63,135,776 | 1 | 2 | null | 2016-07-18T02:43:08 | 2016-07-12T07:18:57 | C++ | UTF-8 | Python | false | false | 577 | py | import wx
from blockwindow import BlockWindow
labels = "one two three four five six seven eight nine".split()
class TestFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, "FlexGridSizer")
sizer = wx.FlexGridSizer(rows=3, cols=3, hgap=5, vgap=5)
for label in labels:
... | [
"robin@alldunn.com"
] | robin@alldunn.com |
a4fe50ad5edeb3cc7fc72afcb4e830e842a2024f | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201019103625.py | f5a4f822d8335377980e4e38d6bf52d739f35e77 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | from wagtail.core import blocks
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class Meta:
template = 'streams/title_block.html'
icon = 'edycja'
label = 'Tytuł'
help_text = 'Wyśrodkowany tek... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
542aabf39e427a845575624e0376d73a7b7ef3c1 | 32e55bf28b9f22265bcbc1d8c0ebf52a3608187d | /167. Two Sum II - Input array is sorted.py | 559175c3a5f0e873a2ade2cc3f578c63733fbb2e | [] | no_license | Garacc/LeetCode | 9f843672a18701d032f36769c9025761199d8caf | 215d12703b2cac4c1ad49d5a0e1060948fbbacd2 | refs/heads/master | 2018-10-10T03:37:48.889898 | 2018-09-17T08:38:22 | 2018-09-17T08:38:22 | 120,304,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | class Solution:
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
l, r = 0, len(nums) - 1
while l < r:
ans = nums[l] + nums[r]
if ans == target:
return [l+1, r+1]
... | [
"xgyxmxl@163.com"
] | xgyxmxl@163.com |
ad1f8d3a53a53c4cf655f0b471d6bfecd419088f | 0e9f73d2ef1239b22e049ef6338362da7dbfb122 | /source/web/Django/FatQuantsDjango/FatQuantsDjango/batch_process/migrations/0030_auto_20190210_2050.py | d6424c3e04521cacacbe3a47fbf87485f68db724 | [] | no_license | Andy-Mason/FatQuants | 3c4bfafc29834af76b0be40e93b0e210e0ef5056 | edd0e98f4599ef91adbdf4179164769ddd66c62a | refs/heads/master | 2023-01-11T10:57:50.563742 | 2021-08-11T19:04:59 | 2021-08-11T19:04:59 | 73,127,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # Generated by Django 2.1.3 on 2019-02-10 20:50
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('batch_process', '0029_auto_20190210_2049'),
]
operations = [
migrations.AlterField(
model_name='bat... | [
"Andy-Mason@users.noreply.github.com"
] | Andy-Mason@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.