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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce77d8cc0c98293937159759a87dcb780e540e4a | 2125593138c50b1fba5e46cd4d88d6c04d0b417a | /09_fullstack/TODO_BACK_END/todos/migrations/0001_initial.py | f0a14c55cc3b61ddfdc535046763183361638db1 | [] | no_license | minkishome/TIL-master | 5f0e6ef61b34a2983961ccf44f7523603ccb5907 | d8edc0ff8abff3b2239a2d751eee263b722013a6 | refs/heads/master | 2023-01-21T00:43:30.165535 | 2020-08-25T14:56:18 | 2020-08-25T14:56:18 | 203,070,283 | 0 | 1 | null | 2023-01-05T01:08:10 | 2019-08-19T00:18:31 | Python | UTF-8 | Python | false | false | 804 | py | # Generated by Django 2.2.7 on 2019-11-19 01:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"minkishome@gmail.com"
] | minkishome@gmail.com |
942b0b419e07f7432b96ff2ca99be3aa01ba7d80 | 84d469877bbc3b84d3a21d92e12c688177c38715 | /benchmarks/bench_tall.py | 1e1dc08ca2083fa4524df1a53e363c2f30dc5e3a | [
"MIT"
] | permissive | iCodeIN/pypipegraph2 | e6c459822acf23e67fefdfe9ee2f40e03bef132a | 16f5d3a471b3dae71fafca98f63c4c80882dc20a | refs/heads/main | 2023-08-11T01:21:47.232920 | 2021-09-16T07:09:46 | 2021-09-16T07:09:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | #!/usr/bin/env python3
"""This creates one FileGeneratingJob with a few hundred of direct DataLoadingJobs,
which exposed a o(n**3) or so bottleneck in runner.modify_dag
"""
import pypipegraph2 as ppg
import shutil
from pathlib import Path
import os
import sys
run_dir = (Path(__file__).parent / "run").absolute()
try:... | [
"finkernagel@imt.uni-marburg.de"
] | finkernagel@imt.uni-marburg.de |
6aedc04c17b07530d68acfdd39017a643d742f17 | d272b041f84bbd18fd65a48b42e0158ef6cceb20 | /catch/datasets/hepacivirus_j.py | eec8fe1c6145d6eede5a063629c1a08ac2bcf38d | [
"MIT"
] | permissive | jahanshah/catch | bbffeadd4113251cc2b2ec9893e3d014608896ce | 2fedca15f921116f580de8b2ae7ac9972932e59e | refs/heads/master | 2023-02-19T13:30:13.677960 | 2021-01-26T03:41:10 | 2021-01-26T03:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | """Dataset with 'Hepacivirus J' sequences.
A dataset with 1 'Hepacivirus J' genomes.
THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT!
"""
import sys
from catch.datasets import GenomesDatasetSingleChrom
ds = GenomesDatasetSingleChrom(__name__, __file__, __spec__)
ds.add_fasta_path("data/hepacivir... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
e4f55680f4099563e396598da1f46761b424f3f2 | 1d74d8847e8c64be7aaa467dec2b74c1c0d1bb3e | /soxs/tests/test_registry.py | c7c92f23564aed0313889ce0b577564dfa7df77f | [
"BSD-3-Clause"
] | permissive | jzuhone/soxs | c10762406081f25c70a2bdc219dfe22961e92443 | dee1048f2eb8958aa23c16be896c856d987d6245 | refs/heads/main | 2023-08-21T17:12:34.213342 | 2023-07-18T19:48:25 | 2023-07-18T19:48:25 | 65,416,590 | 8 | 7 | NOASSERTION | 2023-01-12T00:59:23 | 2016-08-10T21:07:47 | Python | UTF-8 | Python | false | false | 163 | py | from soxs.instrument_registry import show_instrument_registry
def test_show():
# Just make sure this doesn't throw any errors
show_instrument_registry()
| [
"jzuhone@gmail.com"
] | jzuhone@gmail.com |
8872071604d93d278d509b1e13e8db0faffb6f4a | bad1fb4b3f259626918056d8031b820cfd28d838 | /020-Intermédiaire/060-Supprimer une instance/solution.py | 1326b0dff00de4852f2b2c2d4819d98654ba7e48 | [] | no_license | pimpim13/30-exercices-orientes-objet | 87237a371aeb5b239ab3d8cf1ef420edc3b1a491 | 8dab943a2d1f8729e5b3cc8a38a33cae2b0b604b | refs/heads/master | 2022-04-15T14:06:50.698965 | 2020-04-13T16:45:48 | 2020-04-13T16:45:48 | 256,951,035 | 1 | 1 | null | 2020-04-19T08:33:56 | 2020-04-19T08:33:55 | null | UTF-8 | Python | false | false | 340 | py | etudiants_partis = []
class Etudiant:
def __init__(self, prenom, nom):
self.prenom = prenom
self.nom = nom
def __del__(self):
etudiants_partis.append("{} {}".format(self.prenom, self.nom))
john = Etudiant("John", "Smith")
julie = Etudiant("Julie", "Martin")
marc = Etudiant("Marc", "... | [
"houdon.thibault@gmail.com"
] | houdon.thibault@gmail.com |
38406ba4a840536d6698ee248867479be0db5218 | c6e4bbe71acaed695725bcc90764a4f51f84c67c | /modules/data.py | 1467089b12642f148c20668e58565bed6e591053 | [
"MIT"
] | permissive | AdamMiltonBarker/ALL-Pytorch-2021 | b9ecabc0ddf22e30fbc91c4f7805d6e253f7d484 | fadea0c179c13f16d8c2da4606441a0025f75bf3 | refs/heads/main | 2023-07-10T01:33:04.667200 | 2021-08-05T10:47:26 | 2021-08-05T10:47:26 | 392,326,390 | 0 | 0 | MIT | 2021-08-03T13:25:16 | 2021-08-03T13:25:16 | null | UTF-8 | Python | false | false | 2,047 | py | #!/usr/bin/env python3
""" AI Model Data Class.
Provides the AI Model with the required required data
processing functionality.
MIT License
Copyright (c) 2021 Asociación de Investigacion en Inteligencia Artificial
Para la Leucemia Peter Moss
Permission is hereby granted, free of charge, to any person obtaining a co... | [
"adammiltonbarker@eu.techbubbletechnologies.com"
] | adammiltonbarker@eu.techbubbletechnologies.com |
020abd06918dae839160176fd3492623a202b572 | 0a2fb03e288ab52c9f5c4a7a93151866543de259 | /fairseq/models/transformer_align.py | c80cc4341c31977d9f79292d69c209424a7223e3 | [
"MIT"
] | permissive | utanaka2000/fairseq | 938b93d94a51d059ce55ec2bdc93cfad70249025 | 5e82514d687289a73a6dec33b555217acd97cb0d | refs/heads/master | 2023-03-21T13:08:42.640563 | 2020-10-03T04:23:15 | 2020-10-03T04:25:31 | 299,215,321 | 33 | 20 | MIT | 2020-09-28T06:50:19 | 2020-09-28T06:50:18 | null | UTF-8 | Python | false | false | 3,532 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from fairseq.models import register_model, register_model_architecture
from fairseq.models.transformer import (
base_architecture,
tra... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a02614abc66e0f2eb93dbd74a91ffde4551269b6 | 9ddee35a496f1b99d4f9b634711d30ad9f05a2fa | /case/p2pswitch/1447_1448.py | 4b4536a4b2fd724570c18ad436e003873d86e239 | [] | no_license | namesuqi/pirate | 79824f231990030bdce9e092b300bb58d4ba0024 | 9308fbfa021f1238c2bd6faeb7d82c2934570140 | refs/heads/master | 2020-03-07T04:19:07.041355 | 2018-03-29T08:44:29 | 2018-03-29T08:44:29 | 127,263,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | #!/usr/bin/env python
# coding=utf-8
# author: zengyuetian
from libs.api.etcd_p2p_switch import *
if __name__ == "__main__":
# disable_p2p_switch('00010023')
enable_p2p_switch('00010023')
| [
"suqi_name@163.com"
] | suqi_name@163.com |
a6d1cc22996181abccfc5086d9276d9e6ad76c2c | f37b170f2033f69a7763a03d4d9de5d99dd9374d | /2381.py | ee02ad07d106435071ddb9555208531048c04786 | [] | no_license | Raushan-Raj2552/URI-solution | 503effd0c7b541c2a5eb65a9ff955345b5c0dfc8 | 6fd9d04dc36538228db8d7351574e2c3eecf622c | refs/heads/master | 2022-07-01T23:56:56.831157 | 2020-05-08T03:43:04 | 2020-05-08T03:43:04 | 259,172,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | n,k = map(int,input().split())
a = []
for i in range(n):
name = str(input())
a.append(name)
b = a.sort()
print(a[k-1]) | [
"noreply@github.com"
] | Raushan-Raj2552.noreply@github.com |
42e8437a2dfbd7c1eca9d1ed26bccc22d9f628e2 | aaad70e69d37f92c160c07e4ca03de80becf2c51 | /filesystem/usr/lib/python3.6/ctypes/util.py | 61d8b46eba0d577555558d72ef491d68ddc86f5c | [] | no_license | OSWatcher/ubuntu-server | 9b4dcad9ced1bff52ec9cdb4f96d4bdba0ad3bb9 | 17cb333124c8d48cf47bb9cec1b4e1305626b17a | refs/heads/master | 2023-02-10T18:39:43.682708 | 2020-12-26T01:02:54 | 2020-12-26T01:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | {
"MIME": "text/x-python",
"inode_type": "REG",
"magic_type": "Python script text executable Python script, ASCII text executable",
"mode": "-rw-r--r--",
"sha1": "63df6a110ce326e2ff798ee33a2616850ed23d81"
} | [
"mathieu.tarral@protonmail.com"
] | mathieu.tarral@protonmail.com |
1c4ca17bf729a7addd1bc1fbee311d5ace4d3a6d | 93f47ba04fc18c4e537f0a48fe6232e2a89a4d30 | /examples/adspygoogle/dfp/v201403/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py | bae430a2fc4f9463a7e28fb66ff50cbc6be8476e | [
"Apache-2.0"
] | permissive | jasonshih/googleads-python-legacy-lib | c56dc52a1dab28b9de461fd5db0fcd6020b84a04 | 510fad41ecf986fe15258af64b90f99a96dc5548 | refs/heads/master | 2021-04-30T22:12:12.900275 | 2015-03-06T15:35:21 | 2015-03-06T15:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | #!/usr/bin/python
#
# Copyright 2014 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 b... | [
"emeralddragon88@gmail.com"
] | emeralddragon88@gmail.com |
d9c52596df0affaeae45418570b033aa6587c845 | 482cf96fe9ffa47a186100e186b2178867f7750c | /Simulation/Simulation_TE_Insertion.py | f165e9322b01219cc667fd118937aa057d31e403 | [] | no_license | JinfengChen/Relocate_i | 3ba7f28903779044d6f9841efcc5a976ca4f363e | 487ad6a9d7f80205a2c84e12fe40c8554ac706fd | refs/heads/master | 2021-01-23T19:13:20.617646 | 2016-03-14T21:24:48 | 2016-03-14T21:24:48 | 29,314,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,392 | py | #!/opt/Python/2.7.3/bin/python
import sys
from collections import defaultdict
import numpy as np
import re
import os
import argparse
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
import random
def usage():
test="name"
message='''
python Simulation_TE_Insertion.py --repeat mp... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
6d35b64f54e270e764c189f8b906af9a6150e80b | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class2531.py | fa21970abd30cc91b43fd7b3c5607545b2114180 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,206 | py | # qubit number=4
# total number=40
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
b22f04cf18c3bf3b6dcf2ff6d3eba5139d4f0fa6 | 6629ec2f528d4244f0161eb93c02c4a8cf30a654 | /common.py | 11ed79dd45bf9ca9cd60ae7288de2154c52e65d4 | [
"MIT"
] | permissive | spyysalo/multiling-cnn | 25fbc6db03e892649424522648781684989a2b73 | 9a47713d1ae862d974ea558cdb78bb8a120bf644 | refs/heads/master | 2020-05-31T19:23:57.640306 | 2019-06-10T06:25:47 | 2019-06-10T06:25:47 | 190,455,300 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,731 | py | import numpy as np
from collections import OrderedDict
def load_word_vectors(path, limit=None, prefix='', base_index=0):
# Modified from
# https://github.com/facebookresearch/MUSE/blob/amaster/demo.ipynb
vectors = []
token_to_idx = {}
with open(path, 'r') as f:
next(f)
for i, line... | [
"sampo.pyysalo@gmail.com"
] | sampo.pyysalo@gmail.com |
c95ac079e56e74bb7ff0c2c118bc79d7486bb3a3 | 9bd861d47402c81f9cc608dc414c9827baa88dd5 | /_estudoPython_solid/solid/venv/Scripts/pip-script.py | 1ad678d7c5959faac4212ceee0593ad75ef9d079 | [
"Apache-2.0"
] | permissive | c4rl0sFr3it4s/Python_Analise_De_Dados | 8d4cf637573a5610489a2bd44e2a34c749456e73 | 74a72772179f45684f4f12acd4ad607c99ed8107 | refs/heads/master | 2023-02-02T21:13:16.150017 | 2020-08-03T17:52:19 | 2020-08-03T17:52:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!C:\Users\Ticar\PycharmProjects\solid\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"ti.carlosfreitas@outlook.com"
] | ti.carlosfreitas@outlook.com |
738b326312a482fe054f60b414e4f07e92d9bda1 | 727812b1b826a9c7efab420c15383a4e8a2930e2 | /test_singletask.py | c291f49bde3b07d22932f492a6d87d97a64fb5d6 | [] | no_license | Quving/celery-playground | 2854fae7ec90082f981ca0d09a9226a62d1fb791 | 588ee00c7de4daf46b8d54e84d5f7aa65b611155 | refs/heads/master | 2023-06-24T19:54:17.916106 | 2021-07-13T12:17:40 | 2021-07-13T12:19:14 | 384,666,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | import time
from tasks import compute_complex_task
if __name__ == '__main__':
result = compute_complex_task.delay(4, 4)
# Wait for result via polling.
result_available = False
while not result_available:
time.sleep(1)
result_available = result.ready()
if result_available:
... | [
"vinh-ngu@hotmail.com"
] | vinh-ngu@hotmail.com |
24afdd2f195cf4f68faca4fae4592ef4157e837b | 93dd86c8d0eceaee8276a5cafe8c0bfee2a315d3 | /python/paddle/fluid/tests/unittests/test_imperative_data_loader_fds_clear.py | e6b60873273d55da1724051d3419da4f94b76e7c | [
"Apache-2.0"
] | permissive | hutuxian/Paddle | f8b7693bccc6d56887164c1de0b6f6e91cffaae8 | a1b640bc66a5cc9583de503e7406aeba67565e8d | refs/heads/develop | 2023-08-29T19:36:45.382455 | 2020-09-09T09:19:07 | 2020-09-09T09:19:07 | 164,977,763 | 8 | 27 | Apache-2.0 | 2023-06-16T09:47:39 | 2019-01-10T02:50:31 | Python | UTF-8 | Python | false | false | 3,574 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | hutuxian.noreply@github.com |
a59c0bcb04f9cb7bf9897c8535ef0f7799be3a76 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/git/v4_1/models/git_recycle_bin_repository_details.py | 377c9d6ec2fcadca32815ef9930c938b3b9babf3 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
68de74019939605d0c92962cce53ba055be096f0 | d234d6a6e6b024596ff999f6564a0ff6b0843ac5 | /vacnotify/database.py | f5141d134f1865eeadd67fd66146f9e7c4c14f14 | [] | no_license | manishyadav12/vaccination-notify | 074d91a7c295e6f0106813d76a2a8300f8efab83 | 5095b882e5a119d87d4bbe68b27f3183f5957921 | refs/heads/master | 2023-04-13T18:46:59.997288 | 2021-04-05T10:13:29 | 2021-04-05T10:13:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from contextlib import contextmanager
from vacnotify import db
@contextmanager
def transaction():
try:
yield db.session
except:
db.session.rollback()
raise
else:
db.session.commit()
| [
"johny@neuromancer.sk"
] | johny@neuromancer.sk |
eca4fe731fe36c2cf4e48a5efdf44cc1313c0748 | 731882b26c104026a5c16cd5829a1a7eeecbc8c0 | /user_input1.py | 1ad72a15cf0e4f798425051d2463235a0354a7ae | [] | no_license | PolishDom/COM411 | ecb2b816c047aa7be401adcce9371295002cfc3e | a8d49529b996fde9a84235ba918b4917a24ca831 | refs/heads/master | 2023-01-22T05:18:32.951433 | 2020-12-06T16:12:45 | 2020-12-06T16:12:45 | 300,199,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # Ask user to enter their name
print("What is your name human?")
name = input()
print("It is nice to meet you human", name)
whole_number = int(input())
decimal_number = float(input())
print("Your age is " + str(user_age))
| [
"replituser@example.com"
] | replituser@example.com |
7276b6d41f2e17a8ff22d77a8e0f46e0126a32c5 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/impl/gen/resources/videos.py | 078869ce0b44772efbcc04b253a29fe7c017d6b7 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 360 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/gen/resources/videos.py
from gui.impl.gen_utils import DynAccessor
class Videos(DynAccessor):
__slots__ = ()
Logo_All = DynAccessor(19800)
_bootcampFinish = DynAccessor(19801)
_login = DynAccessor(19802)
... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
9518628cb03099f8554d0ee641abe1eea6696c0f | c291ba4506a8998df8d7f384c911f6a0a1294001 | /bai__53/VariableGlobal.py | 57e3704895a699026fd3d321c5ada9fdd057d35c | [] | no_license | thanh-falis/Python | f70804ea4a3c127dcb7738d4e7c6ddb4c5a0a9d4 | fa9f98d18e0de66caade7c355aa6084f2d61aab3 | refs/heads/main | 2023-08-18T17:34:29.851365 | 2021-09-30T12:09:30 | 2021-09-30T12:09:30 | 398,952,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | """
- Tất cả các biến khai báo trong hàm chỉ có phạm vi ảnh hưởng trong hàm,
các biến này gọi là biến local. Khi thoát khỏi hàm thì biến này sẽ không còn truy xuất được nữa.
- Biến Global cho phape tham chiếu đến biến toàn cục
"""
g = 5
def increment():
global g
g = 2
g = g+1
increment()
print(g)
def decr... | [
"thanhelma2020|@gmail.com"
] | thanhelma2020|@gmail.com |
5d9e38ab7b16ed21b46a23b83f458fc77650aca0 | 264ad6220b62896d0dad764eff158c941fad0876 | /backend/advisory_2_15075/wsgi.py | 89924b3bf3f0da5fbcb9d9c1c1dc8254f568ed10 | [] | no_license | crowdbotics-apps/advisory-2-15075 | 335c68600dc8f0d78504a1e37f1b278e7218d1f5 | 53b37392b134aa85463e2c58f5b138983c169c55 | refs/heads/master | 2023-02-07T20:10:23.759591 | 2020-03-26T00:45:50 | 2020-03-26T00:45:50 | 250,125,236 | 0 | 0 | null | 2023-01-26T16:41:43 | 2020-03-26T00:45:00 | JavaScript | UTF-8 | Python | false | false | 409 | py | """
WSGI config for advisory_2_15075 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
02ef2beb11196cc3176992ba518bf6119afec04a | 7f54637e347e5773dfbfded7b46b58b50544cfe5 | /6-2/todo/chainxy/spiders/fields.py | 6e966be2c18423adf75ccdaf94a3bcc58ae7b299 | [] | no_license | simba999/all-scrapy | 5cc26fd92b1d03366b74d4fff58c4a0641c85609 | d48aeb3c00fa2474153fbc8d131cf58402976e1d | refs/heads/master | 2021-01-25T14:24:04.715550 | 2018-03-03T13:43:13 | 2018-03-03T13:43:13 | 123,695,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | import scrapy
import json
import os
from scrapy.spiders import Spider
from scrapy.http import FormRequest
from scrapy.http import Request
from chainxy.items import ChainItem
from lxml import etree
from selenium import webdriver
from lxml import html
import time
import pdb
import unicodedata
class fields(scrapy.Spider)... | [
"oliverking8985@yahoo.com"
] | oliverking8985@yahoo.com |
01b55dfe91da5aed17ab22135a8aaed3f3ab2905 | 667ebdcdccf443a6f1ca5ff7cf710ddd03e13eb7 | /Lab3/material/material/programs/auxiliar.py | ded24afea960fd6f9394506f27f6519266b241dd | [
"MIT"
] | permissive | krishnakalyan3/SNLP | 710d33feb0e643829888242e4a689c48656ae653 | d68890adc40e37b764dda317be0623478b03658d | refs/heads/master | 2021-01-10T18:21:36.336061 | 2016-12-02T23:05:22 | 2016-12-02T23:05:22 | 69,754,501 | 0 | 1 | null | 2016-10-07T16:54:50 | 2016-10-01T18:02:10 | Jupyter Notebook | UTF-8 | Python | false | false | 2,740 | py | # -*- coding: utf-8 -*-
#!/pkg/ldc/bin/python2.5
#-----------------------------------------------------------------------------
# Name: auxiliar.py
#
# Author: Horacio
#
# Created: 2013/09/10
# auxiliar scripts for labo
#-------------------------------------------------------------------------... | [
"krishnakalyan3@gmail.com"
] | krishnakalyan3@gmail.com |
95c91b6e65f7bf25ae1db257bbd23f3ff058c204 | 18c36c0302ce1a76d0dc8e20a7819493ab31f991 | /14-4-tp-knn-iris-correction.py | 594286ecfe8e360fb70b3154262686f7d5c864ef | [] | no_license | cyrilvincent/pollen | ecc876186a69bc074e9237addc9610b50ddd3db1 | 8e4934b079fcb23ef92b0bcb1de7a007923f3f0e | refs/heads/master | 2020-09-25T17:34:53.256602 | 2019-12-17T14:04:21 | 2019-12-17T14:04:21 | 226,055,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | import sklearn.datasets as ds
iris = ds.fetch_mldata('iris',data_home='./mnist/')
print(len(iris.data))
import numpy as np
sample = np.random.randint(150, size=100)
data = iris.data[sample]
target = iris.target[sample]
data = data[:, :2] # Enlève les 2 1ere colonnes
print(data)
import sklearn.model_selection as ms
x... | [
"contact@cyrilvincent.com"
] | contact@cyrilvincent.com |
edecd1471d3ef1753e4a275006c79a66813ee7ba | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/__init___parts/StackOverflowException.py | 15fd7734fd46af2e55a8eb12d6e092b887197a03 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | class StackOverflowException(SystemException,ISerializable,_Exception):
"""
The exception that is thrown when the execution stack overflows because it contains too many nested method calls. This class cannot be inherited.
StackOverflowException()
StackOverflowException(message: str)
StackOverflowException(me... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
c28c180d10c10d3b035a80a1c3cbdac0d6befda0 | 52c43927fc14c45ff0044671f1b7eb09a378dbc2 | /server/test/seed.py | 4fb889e6a456c8589a70b767ff576c2b9a12a741 | [] | no_license | oharsta/ala | 6af8008456418f93c300c5d37d0acf72a66ef4ca | 19a0c89905af20ea28cb6ae43466aedb5ffd763a | refs/heads/master | 2021-06-24T11:53:34.316235 | 2020-04-22T14:18:39 | 2020-04-22T14:18:39 | 213,673,163 | 1 | 2 | null | 2021-03-25T23:00:14 | 2019-10-08T14:53:56 | Python | UTF-8 | Python | false | false | 2,702 | py | import hashlib
from datetime import datetime, timedelta
from uuid import uuid4
from flask_pymongo import PyMongo
from server.db.service_provider import ServiceProvider
from server.db.user import User
john_eduperson_principal_name = "john@example.com"
john_edu_unique_id = str(uuid4())
mary_eduperson_principal_name =... | [
"oharsta@zilverline.com"
] | oharsta@zilverline.com |
ae360f0d059b432cb8c098463f3db09ef3975f35 | b4a0380acd79a21c5596bfa5fac6eb337ef5359a | /build/lib.linux-x86_64-3.8/maskrcnn_benchmark/modeling/roi_heads/box_head_partial_loss/box_head.py | 0515bd9e44e3cfa03d6f21a5003b2f5d8b6e9a94 | [] | no_license | xiaofeng-c/Morphable-Detector | 781104d8a7221eb03c55a67f51f696e46ded4003 | 3e50bb20493c3e0b99d37971e51487124aa08b5b | refs/heads/master | 2023-08-27T20:53:21.606442 | 2021-10-18T22:28:38 | 2021-10-18T22:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
from torch import nn
from .roi_box_feature_extractors import make_roi_box_feature_extractor
from .roi_box_predictors import make_roi_box_predictor
from .inference import make_roi_box_post_processor
from .loss import make_roi_box_loss_... | [
"zhaoxiangyun915@gmail.com"
] | zhaoxiangyun915@gmail.com |
9db447f7991848ef98ec637f3a57c888ac05fbf3 | 9f9f4280a02f451776ea08365a3f119448025c25 | /plans/hsppw/lcut_hsp-l_025_pwcc_mlpr_hs.py | 2b9c40881ecdcaf83e80f8680af9290f327a5438 | [
"BSD-2-Clause"
] | permissive | dbis-uibk/hit-prediction-code | 6b7effb2313d2499f49b2b14dd95ae7545299291 | c95be2cdedfcd5d5c27d0186f4c801d9be475389 | refs/heads/master | 2023-02-04T16:07:24.118915 | 2022-09-22T12:49:50 | 2022-09-22T12:49:50 | 226,829,436 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | """Plan using all features."""
import os.path
from dbispipeline.evaluators import CvEpochEvaluator
from sklearn.neural_network import MLPRegressor
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler
import hit_prediction_code.common as common
from hit_prediction_code.dataloaders impor... | [
"mikevo-uibk@famv.net"
] | mikevo-uibk@famv.net |
7a79f9daa4adaa0a44886c23291d266a45d2ef8f | 59d782548689adb8fa8eb4de15696b18b34f4e2c | /dags/dv360_api_to_bigquery_dag.py | c92a623cefdf73ca49d43903547a730a37415be2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | marciopocebon/starthinker | 965e5e627fa854917cbe4e088b2e9cca01c908d6 | f7674009aa9ac5a48bc88c83a21f21ef32877f57 | refs/heads/master | 2022-12-24T15:34:17.986174 | 2020-10-13T19:26:56 | 2020-10-13T19:27:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,157 | py | ###########################################################################
#
# Copyright 2020 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/l... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d19ce21bb10ad77d0dc38b325c5ba8042ba9cbde | 62f68ffa05b15b6a046aec54b559a85707168123 | /reidosrebites/urls.py | e544e8b0db2dd3a7ba94e8f2b13cbc56bf474948 | [] | no_license | valdergallo/reidosrebites | 979b3411e4d57388d105bfbd7ea357f7ec93c1a2 | 9feb100c17b4182ed3665f5743dd5cc6935a8d39 | refs/heads/master | 2021-01-09T05:29:21.546812 | 2017-02-12T22:49:19 | 2017-02-12T22:49:19 | 80,776,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | # encoding: utf-8
from django.conf.urls import url
from django.conf.urls import include
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from leadpage.sitemaps import StaticViewSitemap
from leadpage.views import LeadPageView
from leadpage.sitemaps import LeadPageSitemap
from products.s... | [
"valdergallo@gmail.com"
] | valdergallo@gmail.com |
8cf7a4175a63faa6c8459acc5f8c6d100607f019 | 7e97f8f79b8bceea587af6c2f8424e5d6efca70f | /LowLevelApi/Classic/Python/1Main/Tkinter_ModifyProtocolInt.py | 637f81a14aa3c53ab2aaa35ff834be9f5ab0dc3c | [
"MIT"
] | permissive | OpenIxia/IxNetwork | e107b19666f297a4ee646159ac2268894b2f1594 | f6100f1e9eed4f1cb622a7922beee20e6a61a714 | refs/heads/master | 2023-04-08T17:05:35.591102 | 2023-03-17T21:35:21 | 2023-03-17T21:35:21 | 117,154,746 | 53 | 69 | MIT | 2022-12-09T05:15:09 | 2018-01-11T21:18:42 | Python | UTF-8 | Python | false | false | 5,949 | py | #!/usr/local/python2.7.6/bin/python2.7
# By Hubert Gee
#
# Description:
# A sample script using Tkinter to call TCL APIs.
# This script sources an API file and the APIs are a combination
# of low level and high level APIs.
#
# This script can load a saved config file or resume from an existing
# configura... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
21b1063b8b6bd6c2ab32d4eaf308d12d6574fc39 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/documentdb/get_service.py | b3fdf5a1f51e3ea604e443b1b17ca6a1c47fd18a | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,121 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
297794a26943354d805e685a702ba42de65484c5 | fd4225729c9d1635c447e14493dda18940d4b35d | /twitter/settings.py | e3bc7d1682b26e97060f2ae3793510b89e11146c | [] | no_license | dspashish/NexaPeak | ce66d02c7e7f0aac761f7772c5e2fda183decf3e | 6659d2fc23c6e5419870f1f556495da78b807663 | refs/heads/master | 2020-04-16T08:07:32.261695 | 2019-01-12T17:01:08 | 2019-01-12T17:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | """
Django settings for twitter project.
Generated by 'django-admin startproject' using Django 2.1.5.
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 os
#... | [
"you@example.com"
] | you@example.com |
2eb484d0c3430db1a19a27fcf8c19c7320b75f8f | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/Simulation/Pythia/RSG/CP5RSGPythia8/RSGfragments/RSGravitonToGammaGamma_kMpl001_M_4000_TuneCP5_13TeV_pythia8_cfi.py | 281672bc237b05ecba488e508d877ee8f7133236 | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 1,158 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(1.09... | [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
70a55501719fc5fd231b5c975b5e5cf367a2080d | aaa444913d0e5bd7ca96802c321741a0ef3fb922 | /backend/imagina_radio_5273/wsgi.py | 1e7d14cf111cb98de0b9e046645faeb028842692 | [] | no_license | crowdbotics-apps/imagina-radio-5273 | 101675524dc64c27aa3e22c2156e9b90dc8db810 | ba858e15e6b123d8f0e5eb6cab379f2e7e0fd4b8 | refs/heads/master | 2022-07-12T06:07:06.294891 | 2019-06-27T12:33:39 | 2019-06-27T12:33:39 | 194,091,950 | 0 | 0 | null | 2022-06-23T17:10:28 | 2019-06-27T12:33:22 | Python | UTF-8 | Python | false | false | 413 | py | """
WSGI config for imagina_radio_5273 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1a94762d1dfba623a8c0b33a32bd3ac54bc930ff | c61882754a5aa97ad8c1a67ab4d92f74af488ba4 | /_build/deploy/scripts/remove_okpy_from_data8.py | 61c9a880f8fc1c192051b1fe689fae96bdcbf0e5 | [] | permissive | rachelim21/zero-to-data-8 | 11c18c64087ef33657c71e8f1d79bb70c7484e98 | 715f7fd94df9e8f2cea3a12f8817f5f6cff21814 | refs/heads/master | 2021-06-02T06:59:41.009591 | 2020-06-15T21:52:19 | 2020-06-15T21:52:19 | 254,317,369 | 0 | 0 | MIT | 2020-04-09T08:42:20 | 2020-04-09T08:42:20 | null | UTF-8 | Python | false | false | 1,484 | py | """Remove all OKpy server dependencies from a folder with Data 8 materials."""
from subprocess import check_call
from glob import glob
import os
import shutil as sh
import argparse
from tqdm import tqdm
DESCRIPTION = ("Find all Jupyter Notebook files in a folder, and remove all references to the OKpy server."
... | [
"choldgraf@berkeley.edu"
] | choldgraf@berkeley.edu |
cf82120c33e29cba2e5eaa9fcf93c510257b67b8 | f62fd455e593a7ad203a5c268e23129473d968b6 | /keystone-11.0.2/api-ref/source/conf.py | d4e2d89fa0271316d465d5238e531509ebc22dc7 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 7,458 | py | # -*- coding: utf-8 -*-
#
# 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, softwa... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
5a1b076a91600cfff212cd16331602b692adad0d | 8552e3b9127c2aa7fd0f31674b5549c0a6b49e1a | /certificateApp/decorators.py | 7e486ab831af273f7f6c067af56dac0f3e9916b3 | [] | no_license | jhabarsinghbhati/final | a475456e626d446611f1d076e4d9dce739e7e3f3 | b003751a274acc2b6e0eb9e11bd427b21e765f5a | refs/heads/master | 2022-11-17T03:18:40.478815 | 2020-07-13T09:35:09 | 2020-07-13T09:35:09 | 279,258,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | from django.shortcuts import redirect, reverse
from .models import UserProfile
from django.core.exceptions import PermissionDenied
def is_admin(fun):
def authorized(request, *args, **kwargs):
if request.user.is_authenticated:
if request.user.is_superuser or request.user.is_irscdmin:
... | [
"jhabarsinghbhati23@gmail.com"
] | jhabarsinghbhati23@gmail.com |
567d042e3c0b9f9ae6d8aebe91aee3032a91a987 | 19bf361a513e9ea46cbce8b31dcac35931cc583b | /source/vsm-dashboard/vsm_dashboard/utils/validators.py | 3afb3812f6b9d18ad8f4f1d611cda4f9a387aa81 | [
"Apache-2.0",
"MIT"
] | permissive | YankunLi/virtual-storage-manager | d2ae642b3d5d88952216139ab1ce9005b3bb1bb7 | 66a78a73be1e5189a69ba1b3ca442f4ccc1f7542 | refs/heads/master | 2021-01-24T21:19:32.101499 | 2015-01-09T21:13:58 | 2015-01-09T21:13:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2014 Intel Corporation, All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.or... | [
"yaguang.wang@intel.com"
] | yaguang.wang@intel.com |
184e05244de480c531d759f94fd0e969f035b41b | cbd261c03563cd5b4138ac50b06abc81163cd0b6 | /backend/home/migrations/0002_load_initial_data.py | 47d3b94e5d598dcff5100fcda754e296d5590f61 | [] | no_license | crowdbotics-apps/brodybeatz-vr-21165 | ef03c7f80e542d239e8fb4fcb35af195ba8e9dff | 42935f34932e6097a09cc1a674ba758221631812 | refs/heads/master | 2022-12-25T00:04:09.554598 | 2020-10-06T15:14:33 | 2020-10-06T15:14:33 | 301,767,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Brodybeatz vr"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5524853556c956246a117688742250785e8c1635 | d527e16188f375209087321fade420284029a378 | /src/zeo_connector_defaults/environment_generator.py | e4d5ddcb18412c1305c3a561fb756925b5d3aa2c | [
"MIT"
] | permissive | Bystroushaak/zeo_connector_defaults | caa23417b5a5db875c312671cf940a651cf229eb | b54ecb99ddb4665db00fba183ef1d7252b0ca62b | refs/heads/master | 2016-09-01T04:33:29.635213 | 2015-11-24T03:53:46 | 2015-11-24T03:53:46 | 44,757,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: python 2.7
#
# Imports =====================================================================
import shutil
import random
import os.path
import tempfile
import threading
import subprocess
from string import Template
# Variables ===================... | [
"bystrousak@kitakitsune.org"
] | bystrousak@kitakitsune.org |
43da32b8baad087bc5128c2e845adedd5b08da2a | e3c8f786d09e311d6ea1cab50edde040bf1ea988 | /Incident-Response/Tools/cyphon/cyphon/sifter/mailsifter/mailsieves/admin.py | cd80f43be333bc732709b854b34fe4fd5cff58c3 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-copyleft"
] | permissive | foss2cyber/Incident-Playbook | d1add8aec6e28a19e515754c6ce2e524d67f368e | a379a134c0c5af14df4ed2afa066c1626506b754 | refs/heads/main | 2023-06-07T09:16:27.876561 | 2021-07-07T03:48:54 | 2021-07-07T03:48:54 | 384,988,036 | 1 | 0 | MIT | 2021-07-11T15:45:31 | 2021-07-11T15:45:31 | null | UTF-8 | Python | false | false | 1,480 | py | # -*- coding: utf-8 -*-
# Copyright 2017-2019 ControlScan, Inc.
#
# This file is part of Cyphon Engine.
#
# Cyphon Engine is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Cyphon En... | [
"a.songer@protonmail.com"
] | a.songer@protonmail.com |
033b9808ef53b2d8718082d0b9c9f69f27083e69 | 37f10a692d0e1a9a396f505af60b04f7db44d3e1 | /02 30 Days of Code Challenges/Day12-Inheritance.py | cf9eee5a335f2ec41ccb926174f2b22f0711474b | [] | no_license | nbrahman/HackerRank | 95842f5dbda2ab8aedc7808831c12b9f92a37e03 | ec5d42d7e578f01efba87a099f42e82512704dca | refs/heads/master | 2021-01-19T11:53:59.685444 | 2017-07-29T16:04:21 | 2017-07-29T16:04:21 | 88,003,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,432 | py | '''
Objective
Today, we're delving into Inheritance. Check out the Tutorial tab for learning materials and an instructional video!
Task
You are given two classes, Person and Student, where Person is the base class and Student is the derived class. Completed code for Person and a declaration for Student are provided fo... | [
"nikhil.brahmankar@gmail.com"
] | nikhil.brahmankar@gmail.com |
1e76bc610acf8ad001010c1fba6cf49f49dfd7a6 | 5f9929cc75706632a2fafb8609e9dc05859166c3 | /src/contact/accounts/models.py | 7bb1b12f28c2c28145bfc1c606ee5c8971fe2937 | [] | no_license | Vazimax/EazyMax | ae81a23365a4d0707af838b1be5aec58728261aa | 8bd7d76f817ba2f13de09f8517595b0150af8414 | refs/heads/main | 2023-06-23T01:19:21.782309 | 2021-07-10T11:20:44 | 2021-07-10T11:20:44 | 378,977,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
class Profile(models.Model):
user = models.OneToOneField(User,on_delete=models.CASCADE)
featured = models.BooleanField(default=False)
#city = models.C... | [
"aboubakr.elhabti@gmail.com"
] | aboubakr.elhabti@gmail.com |
b8b4808dc1a8a8362b6e3a11357fa73881ba6941 | 7bcb0b7f721c8fa31da7574f13ed0056127715b3 | /src/apps/base/models/dimensions/dimension_payment_status.py | 790e6b25b9768955426a23e7141ac42f5d079de3 | [] | no_license | simonchapman1986/ripe | 09eb9452ea16730c105c452eefb6a6791c1b4a69 | c129da2249b5f75015f528e4056e9a2957b7d884 | refs/heads/master | 2022-07-22T05:15:38.485619 | 2016-01-15T12:53:43 | 2016-01-15T12:53:43 | 49,718,671 | 1 | 0 | null | 2022-07-07T22:50:50 | 2016-01-15T12:53:09 | Python | UTF-8 | Python | false | false | 481 | py | from django.db import models
from dimension import select_or_insert
class DimensionPaymentStatus(models.Model):
"""
DimensionPaymentStatus
Dim to filter down on payments status within the reported data facts
"""
status = models.CharField(max_length=128, unique=True)
class Meta:
app_l... | [
"simon-ch@moving-picture.com"
] | simon-ch@moving-picture.com |
c34e62cfd02e6e64dd5dbccb70cd0b23ade3a61a | b413fc6da6f1952d23378a8cf9f43406de5c506d | /basics/decisions/simple_decisions/if.py | 28bc9a6c67ec957e81d1af9d89cf182609220c80 | [] | no_license | Holmanc/COM411 | 10acc7bd00c273c20499b0248cf28309b0ece71d | 9c49e973eec38d50bde46b2fe0970159bae7a8d4 | refs/heads/master | 2022-12-23T05:46:26.107604 | 2020-10-06T09:27:26 | 2020-10-06T09:27:26 | 299,592,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #What type of Book
print("What type of book is this?")
book = input()
if (book == "adventure"):
print("\nI like adventure books!")
print("Finished reading book.") | [
"replituser@example.com"
] | replituser@example.com |
2b40b58d4d80ae21a261e38e1f77fc74ab9c28d5 | a06712c9c2859a67e4d4e38483fb23753636c8d1 | /agent.py | 52a103dae6ebb1027b92688e190e80fb55514cfc | [] | no_license | ei-grad/track | ce444a2252e54428d56c89fcaa3d2f928f06fad1 | 38a8b59c3e25dfbdca065ed6c277da32849940c2 | refs/heads/master | 2021-04-15T09:26:22.999350 | 2018-03-26T12:31:36 | 2018-03-26T12:39:28 | 126,565,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | #!/usr/bin/env python
from os import getenv
import json
import logging
import random
import math
import numpy as np
from tensorforce.agents import Agent
from main import App
app = App()
app.init_screen()
app.render()
config = json.load(open(getenv('CONFIG', 'ppo.json')))
max_episodes = config.pop('max_episodes',... | [
"andrew@ei-grad.ru"
] | andrew@ei-grad.ru |
72aa8af6e072c1fa796cc096995a3d7538587716 | eb1148f75215739a7ca5ba35027fe46b9dcc5e30 | /practice/0304_practice/SWEA_5097_회전_이정민.py | 1b8b4951489e36aa2fc88e9ee5ccb5189a4b9efa | [] | no_license | ljm9748/Algorithm_ProblemSolving | 8ee594c0d1226ebe3670e772a7fc1c08ddf62e43 | d1ebc34019ae2d795417ef47f74f1407a7f3cb9e | refs/heads/master | 2023-05-02T20:00:01.784017 | 2021-04-26T13:57:29 | 2021-04-26T13:57:29 | 339,901,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | for tc in range(int(input())):
N,M= map(int, input().split())
inputq=list(map(int, input().split()))
# M번만큼 순회
for m in range(M):
tmp=inputq.pop(0)
inputq.append(tmp)
print('#{} {}'.format(tc+1, inputq[0])) | [
"ljm9748@naver.com"
] | ljm9748@naver.com |
ee0744eaf5a44e7554cb129427265453377f327c | b25ebe0ffcfc76de74eb558b8e5393629edd04aa | /tests/test_postprocess.py | a4b2a536b8f0dfe22261a781df908d12977a3193 | [
"MIT"
] | permissive | IMTMarburg/mbf_align | 120ff79b62c4c16e2813566f540009f48caab1f4 | 53b0822eb218b9462cb882140284611d3d84d9c3 | refs/heads/master | 2023-06-22T21:47:20.032340 | 2021-07-20T11:43:05 | 2021-07-20T11:43:05 | 304,003,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | from pathlib import Path
import pypipegraph as ppg
from mbf_align import Sample, AlignedSample
from mbf_sampledata import get_sample_path, get_human_22_fake_genome
import mbf_qualitycontrol
def test_align_and_extract_umis(new_pipegraph):
from mbf_align.post_process import AnnotateFastqBarcodes
for folder in ... | [
"finkernagel@imt.uni-marburg.de"
] | finkernagel@imt.uni-marburg.de |
24be7173bcd8954f9df6e031da7588cc6f515078 | 4ec118e2c28d549c71f335550a0f79fc253ed19f | /tools/tensorflow_to_coreml.py | a8560301d3e181290c7bdf03bef41133724fa3be | [
"MIT"
] | permissive | bnMikheili/keras-YOLOv3-model-set | ce1dbf188aa98eff2729bd4334dbb9d8137806f9 | 7583d791a97a82c7ebfdb2e09877e812df0a602c | refs/heads/master | 2022-09-14T12:12:43.387302 | 2020-06-03T22:58:41 | 2020-06-03T22:58:41 | 269,209,210 | 0 | 0 | MIT | 2020-06-03T22:38:58 | 2020-06-03T22:38:58 | null | UTF-8 | Python | false | false | 3,246 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Script to convert YOLO h5 or pb model to CoreML model
"""
import os, sys, argparse
from tensorflow.keras.models import load_model
import tensorflow as tf
import tfcoreml
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))
from c... | [
"david8862@gmail.com"
] | david8862@gmail.com |
a6cf98d15042cdf9aeceddba7f9530c7fda88935 | 12f006a0e5d75ef2349d4ae519c1c9cac5309761 | /Solution_254.py | 568b11239088a8e4a98dc76bcf7a9a3b797a120b | [] | no_license | TimothySjiang/leetcodepy | c613db16282eade713e01b7d641c0f5b341ec84b | ef64e46b8833a684b8b0355ce576b767a0e03596 | refs/heads/master | 2020-07-01T14:48:35.953841 | 2020-01-12T06:19:44 | 2020-01-12T06:19:44 | 201,199,810 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | #Long time
class Solution:
def getFactors(self, n: int) -> List[List[int]]:
results = []
for i in range(2, int(n ** 0.5) + 1):
if n % i == 0 and i <= n // i:
self.recursion(n // i, i, [i], results)
return results
def recursion(self, goal, start, result, resul... | [
"shjiang@ucdavis.edu"
] | shjiang@ucdavis.edu |
762c3109739e036c92dd088002cd235e7bc027de | 721406d87f5086cfa0ab8335a936ece839ab2451 | /.venv/lib/python3.8/site-packages/azure/functions/_http_wsgi.py | e6e4fc2f5617f0ee790f03459e38d4dd26236a05 | [
"MIT"
] | permissive | MarkusMeyer13/graph-teams-presence | 661296b763fe9e204fe1e057e8bd6ff215ab3936 | c302b79248f31623a1b209e098afc4f85d96228d | refs/heads/main | 2023-07-09T03:34:57.344692 | 2021-07-29T07:16:45 | 2021-07-29T07:16:45 | 389,268,821 | 0 | 0 | MIT | 2021-07-29T07:16:46 | 2021-07-25T05:23:08 | Python | UTF-8 | Python | false | false | 7,703 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Dict, List, Optional, Any
import logging
from io import BytesIO, StringIO
from os import linesep
from urllib.parse import urlparse
from wsgiref.headers import Headers
from ._abc import Context
f... | [
"meyer_markus@gmx.de"
] | meyer_markus@gmx.de |
79f458bcd7c2e4ba4620f2e7138185616c0162a9 | 651d77155bcb104d76fba163060b1d62fc4923f9 | /utils/timer.py | 3e0712407d9bf0b3b0ce0653f2471f4b1ef0af75 | [] | no_license | leisun123/scholar-private | 908f0ae5c95b6644bb157587007dfbb5e42d5928 | 81b93f6f16d2233419894cf45bdf34883f8b0cd2 | refs/heads/master | 2020-03-22T18:31:49.072513 | 2019-02-18T07:50:34 | 2019-02-18T07:50:34 | 140,465,515 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | #coding:utf-8
"""
@file: timer
@author: IsolationWyn
@contact: genius_wz@aliyun.com
@python: 3.5.2
@editor: PyCharm
@create: 2017/7/1 17:37
@description:
--
"""
import time
import logging
import random
class Timer(object):
"""定时器,定时执行指定的函数
"""
def __init__(self, start, int... | [
"genius_wz@aliyun.com"
] | genius_wz@aliyun.com |
b013a8a24e47e04295d9aa9fa92e646f596dc12b | ebd9c249d446d809abc9a0f3e4593f34922a1b93 | /lintcode/433_number_of_islands.py | babfa16bd64643398da4a885495f073562df1b20 | [] | no_license | jaychsu/algorithm | ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d | 91892fd64281d96b8a9d5c0d57b938c314ae71be | refs/heads/master | 2023-05-11T00:40:39.237813 | 2022-09-14T07:43:12 | 2022-09-14T07:43:12 | 106,277,156 | 143 | 39 | null | 2022-09-14T07:43:13 | 2017-10-09T11:51:48 | Python | UTF-8 | Python | false | false | 861 | py | class Solution:
def numIslands(self, grid):
"""
:type grid: list[list[int]]
:rtype: int
"""
ans = 0
if not grid or not grid[0]:
return ans
m, n = len(grid), len(grid[0])
for x in range(m):
for y in range(n):
i... | [
"hi@jaych.su"
] | hi@jaych.su |
b91c75042cb766a42e57a7b8173a00aa0fac2ee0 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticktext.py | 28f9890f11997a71743a7315a16010afe4fce690 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 437 | py | import _plotly_utils.basevalidators
class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator):
def __init__(
self, plotly_name="ticktext", parent_name="scatter.marker.colorbar", **kwargs
):
super(TicktextValidator, self).__init__(
plotly_name=plotly_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
5bd0f020eb1d15227d39e754bd19eba007bca92d | dd24d97897dbf036a3933990027c96ff062591aa | /utils/label_utils.py | bfe09c73a5a733865fbd9095dbab11045c58f44b | [] | no_license | wyzhe/attention_ocr | 80fde3ab654c4b63be325e0d1421d32206adbc27 | e6534251e69de4e63e5671a7bc92aa654bab6973 | refs/heads/master | 2022-08-02T21:11:08.188615 | 2020-04-27T15:56:07 | 2020-04-27T15:56:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,091 | py | #!/usr/bin/env python
import numpy as np
import re
import os
from Levenshtein import *
import logging
logger = logging.getLogger("Data_Util")
rex = re.compile(' ')
from main.conf import *
def caculate_edit_distance(preds, labels):
distances = [distance(p,l) for p,l in zip(preds, labels)]
return sum(distance... | [
"piginzoo@gmail.com"
] | piginzoo@gmail.com |
b3598d8b6799b8589dcc5bc92156227b89b4d54a | b38f571182c10eca57ab7015b5ed7b8ea4560768 | /neutron/db/migration/alembic_migrations/vswitch_init_ops.py | c2ceb9b9741eb347156446e3a875193cf0e29abd | [
"Apache-2.0"
] | permissive | ericho/stx-neutron | 708397936f69c105030d689dafdbbee3cb069c31 | d4a8ad548c4afed73269575c48526a704dd09a9c | refs/heads/master | 2020-05-21T00:27:10.790255 | 2018-11-13T21:26:37 | 2018-11-19T21:17:05 | 185,827,770 | 0 | 0 | NOASSERTION | 2019-05-09T15:42:30 | 2019-05-09T15:42:30 | null | UTF-8 | Python | false | false | 4,696 | py | # Copyright 2014 OpenStack Foundation
#
# 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 ... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
8d7a5c60b7700fd445bdf58808819437353c8d39 | 861db97defcdadae5f10263b9a6d41e7d0b85131 | /ex082.py | 245d408298086442fbf296edeeca09ddbc709d45 | [] | no_license | gguilherme42/CursoEmVideo_Python | 0483f092fe6563bc97a260ca07c2d4f1f882ac61 | 54eec56e98ae71dbb2ba02eb6904cd236a42be70 | refs/heads/master | 2021-01-06T15:15:25.194038 | 2020-04-27T22:19:42 | 2020-04-27T22:19:42 | 241,374,850 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | '''
Programa que lê vários números e coloque-os numa lista.
Depois disso, cria duas listas: uma com valores pares e outra com os ímpares digitados.
No final, mostre:
a) O conteúdo das listas.
'''
#@Guilherme
lista = []
par = []
impar = []
while True:
num = int(input('Digite um número: '))
lista.append(num)
... | [
"anoobs@tutamail.com"
] | anoobs@tutamail.com |
8c9c126e50c7c51d5f2ebae41a7b9ae23d0b1046 | 9f79c4f9a8a9154fc3dc9202ab8ed2547a722b5f | /regex/links.py | e4709d7877944d391e113e1c429edab01417ee9c | [] | no_license | grigor-stoyanov/PythonFundamentals | 31b6da00bd8294e8e802174dca4e62b231134090 | 5ae5f1f1b9ca9500d10e95318a731d3b29950a30 | refs/heads/main | 2023-02-11T12:17:19.010596 | 2021-01-14T22:14:54 | 2021-01-14T22:14:54 | 321,658,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | import re
regex = r'(w{3}\.[a-zA-Z0-9\-]+(\.[a-z]+)+)'
sentence = input()
while sentence:
websites = [el.group() for el in re.finditer(regex, sentence)]
sentence = input()
print(*websites, sep='\n')
# while sentence:
# match = re.findall(regex, sentence)
# if match:
# websites.append(match... | [
"76039296+codelocks7@users.noreply.github.com"
] | 76039296+codelocks7@users.noreply.github.com |
fe8e835bbd135cdcfe970ed6447e27bb9cff5a2e | d63222abe326a3c8debd59bb8d24cb7eab3de09e | /leetcode/google/438/test_438.py | 27dd013e72b926bf8fe39d02bce6753bc795e39e | [] | no_license | tariqrahiman/pyComPro | 91f47e93eb0a077d489659fcf0a75d5c1a65fc17 | 86ec13f47506a2495ab6b6bbb58d4e8b2a21538b | refs/heads/master | 2022-02-10T04:15:40.194828 | 2019-06-16T10:22:38 | 2019-06-16T10:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import unittest
import l438
class testSolution(unittest.TestCase):
def setUp( self ):
self.s = l438.Solution()
def test_solution( self ):
word1 = "horse"
word2 = "ros"
self.assertEqual(self.s.minDistance(word1, word2), 3)
word1 = "intention"
word2... | [
"alexsolbiati@hotmail.it"
] | alexsolbiati@hotmail.it |
803071591aed81dbcde5ac59e0b716d52ad840a3 | 20eee94bbdab84536d6308c6c1e46dd1d85ce1a5 | /template/hparams.py | 1e6c3bbd033f14a72d30de167b71fefe3d857eec | [] | no_license | hccho2/hccho2FirstGitProject | d73fbfd4332c3d81f449e7506695435a0e739e80 | fc454f210de6dbd93d047f3c263089a90690715c | refs/heads/master | 2023-08-30T03:05:54.533544 | 2023-08-28T01:35:04 | 2023-08-28T01:35:04 | 87,028,484 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
hp = tf.contrib.training.HParams(
log_dir = "hccho-ckpt",
model_name = "hccho-mm",
ckpt_file_name_preface = 'model.ckpt', # 이 이름을 바꾸면, get_most_recent_checkpoint도 바꿔야 한다.
PARAMS_NAME = "params.json",
learning_rate = 0.01,
layer_si... | [
"noreply@github.com"
] | hccho2.noreply@github.com |
bf2415d37c5bdc2e637275a9bd87ada8d90052a8 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /eoK63mG5tJDu439nJ_21.py | 824eea5c352f2cadc0cfffb11bf249fa29b72003 | [] | 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 | 588 | py |
def levenshtein(a, b):
if not a: return len(b)
if not b: return len(a)
return min(levenshtein(a[1:], b[1:])+(a[0] != b[0]),
levenshtein(a[1:], b)+1,
levenshtein(a, b[1:])+1)
def isWordChain(words):
leven= []
for i in range(len(words)-1):
leven.append((wo... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a5ef701bcdfaccf437d1b957d8505c4b97c61ffe | e79af202563a073609bb442ae702796818894d45 | /instagram/urls.py | f0b316ce4b5ff8fc5e858af851e5d5e8c8fe6aa6 | [] | no_license | takemurahayato/Portfolio | 60645aa5f2676c17e38f291ce39ef67497b44c1c | d4869bc91d274182c7bd9ed17aeac43d4e4bdf88 | refs/heads/master | 2023-06-03T23:41:57.847142 | 2021-06-23T12:00:12 | 2021-06-23T12:00:12 | 375,363,899 | 0 | 0 | null | 2021-06-23T12:00:13 | 2021-06-09T13:24:28 | Python | UTF-8 | Python | false | false | 170 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path("insta/", include("insta.urls")),
]
| [
"you@example.com"
] | you@example.com |
fab358d099bd2c5b476bec041753e306ae2eed79 | 72d7ab267f044c52979a93b7409a83dcdc0e3e35 | /other/ML/3D Hist-KNN.py | a6722be9da482840eef7fe6bad13d8d461f799d0 | [
"Apache-2.0"
] | permissive | tpsatish95/image-captioning | f8118d7a5e297fdb25b4607848b35d255a7e5bff | 5270e17b89b4b3d4f102a3e507f16a6abf9afaf8 | refs/heads/master | 2020-06-22T01:29:14.456909 | 2017-10-12T14:25:13 | 2017-10-12T14:25:13 | 74,763,401 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,250 | py | import os
"""import numpy as np
from scipy.misc import imread, imsave, imresize"""
from PIL import Image
import cv2
import pickle
import numpy as np
from sklearn.cross_validation import train_test_split
import sys
from time import time
from sklearn.feature_selection import SelectKBest, chi2
from sklearn.neighbors imp... | [
"tpsatish95@gmail.com"
] | tpsatish95@gmail.com |
ceae57020d4ad47be2ca699f301689b8e07be026 | 8bbb2cd199a76de35e383b09702d690a4dea1d9a | /ml/m32_outliers.py | c8c4e2dca877f7934cf57d90a7c31fb102233f20 | [] | no_license | wowodo/bit_seoul | 008c482b6c0fd8681ad219a7d70c3e752939f156 | 31363c2558738bb3fb88a06e5d5167a1a32fc2ba | refs/heads/main | 2023-02-01T10:26:06.846242 | 2020-12-18T07:39:34 | 2020-12-18T07:39:34 | 311,280,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import numpy as np
def outliers(data_out):
quartile_1, quartile_3 = np.percentile(data_out, [25, 75])
print("1사분위 : ", quartile_1) #3.25
print("3사분위 : ", quartile_3) # 97.25
iqr = quartile_3 = quartile_1 #94.25
lower_bound = quartile_1 = (iqr * 1.5)
upper_bound = quartile_3 + (iqr * 1... | [
"noreply@github.com"
] | wowodo.noreply@github.com |
e064521ebf15dac52a16e0d2873944a8ebf1b519 | cae1a61c2eb6701762320b3d5163d6621e02eb46 | /248 Page Improved Dijkstra.py | 44aa8879b18a98860a599c12c04e2fce4bf1750d | [] | no_license | LeeWoojin-99/Algorithm | b8f08756120378ced1e3214f0647037ae21decc9 | 680994a761042ed9a307fcad727dc5d1807ef832 | refs/heads/main | 2023-07-10T06:47:30.089557 | 2021-08-13T14:48:07 | 2021-08-13T14:48:07 | 342,619,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,903 | py | '''
248 Page
개선된 다익스트라 알고리즘
improved dijkstra algorithm
'''
import heapq
import sys
input = sys.stdin.readline
INF = int(1e9)
n, m = map(int, input().split())
#n : 노드의 개수, m : 간선의 개수
#print(n, m) #test
start = int(input()) #시작 노드 번호 입력
graph = [[] for i in range(n+1)]
#노드의 번호를 인덱스로 하여 바로 리스트에 접근할 수 있도록 하기 위한 n+1
#각 노드... | [
"lwj1316@naver.com"
] | lwj1316@naver.com |
ad170245afb2a35dafb0b8dc99269eb1db743c5d | 909c6f4c28e2a84d4524c57b237460b999b2c2f4 | /labuladong/二叉树/654.最大二叉树.py | 2c3dd0960bf76f5e8c919c9ae183e4968544351c | [] | no_license | Ehco1996/leetcode | e25711bef415569aa845c2f4f0c31965fca7e392 | e0ad5e52829345dd2ce4bc578295336ca07b2662 | refs/heads/master | 2021-07-12T08:13:21.533021 | 2021-03-24T00:47:29 | 2021-03-24T00:47:29 | 99,747,114 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | #
# @lc app=leetcode.cn id=654 lang=python3
#
# [654] 最大二叉树
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def constructMaximumBinaryTree(self, nums):
"""最... | [
"zh19960202@gmail.com"
] | zh19960202@gmail.com |
904dfece0f28a95dcfec99504e80253683af91e3 | e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488 | /thehive/komand_thehive/actions/get_cases/action.py | fc828efe207bd59de96f02390dc6d34dbdbf09ff | [
"MIT"
] | permissive | OSSSP/insightconnect-plugins | ab7c77f91c46bd66b10db9da1cd7571dfc048ab7 | 846758dab745170cf1a8c146211a8bea9592e8ff | refs/heads/master | 2023-04-06T23:57:28.449617 | 2020-03-18T01:24:28 | 2020-03-18T01:24:28 | 248,185,529 | 1 | 0 | MIT | 2023-04-04T00:12:18 | 2020-03-18T09:14:53 | null | UTF-8 | Python | false | false | 779 | py | import komand
from .schema import GetCasesInput, GetCasesOutput, Component
# Custom imports below
import requests
class GetCases(komand.Action):
def __init__(self):
super(self.__class__, self).__init__(
name='get_cases',
description=Component.DESCRIPTION,
i... | [
"jonschipp@gmail.com"
] | jonschipp@gmail.com |
2199aa65ce0c5a8f38a850d7028cc4d39db3568b | 68747ba592c252c952823ff4973c9508b7c8c5e9 | /Unittest/Codec/test_Pd0Codec.py | 194832a0fe5289dfc989abce7e3c577d0b6c7999 | [] | no_license | ricorx7/rti_python-1 | 50ce01e7acf60ad6d57c26cfe5d79ecd1fc84563 | 384edef9c14ae5296d7e123eec473b29905a8a58 | refs/heads/master | 2023-02-01T04:33:48.585793 | 2020-12-16T23:25:22 | 2020-12-16T23:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import pytest
from rti_python.Codecs.Pd0Codec import Pd0Codec
def pd0_ens_event(sender, ens):
print(ens)
def test_pd0_decode():
# PD0 File Path
file_path = "C:\\RTI_Capture\\Imperal Valley_20170816_094228_0_1.2 MHz 4 beam 20 degree piston_pd0.pd0"
pd0 = Pd0Codec()
pd0.ensemble_event += pd0_ens_... | [
"rcastelo@rowetechinc.com"
] | rcastelo@rowetechinc.com |
fc948e96ff4cbfdc1fbc86c5b776741472212a58 | f416ab3adfb5c641dc84022f918df43985c19a09 | /problems/code-jam/2021/broken-clock.py | d99d10e924eca2a137dcd6f162ba5e3cef9a6d38 | [] | no_license | NicoKNL/coding-problems | a4656e8423e8c7f54be1b9015a9502864f0b13a5 | 4c8c8d5da3cdf74aefcfad4e82066c4a4beb8c06 | refs/heads/master | 2023-07-26T02:00:35.834440 | 2023-07-11T22:47:13 | 2023-07-11T22:47:13 | 160,269,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | def interpret(t):
hours = 0
minutes = (t[1] - t[0]) / 12 / pow(10, 9) / 60
seconds = (t[2] - t[0]) / 720 / pow(10, 9)
nanoseconds = (seconds - int(seconds)) * pow(10, 9)
return [str(int(x)) for x in [hours, minutes, seconds, nanoseconds]]
def solve():
initial_time = [int(x) for x in input... | [
"klaassen.nico@gmail.com"
] | klaassen.nico@gmail.com |
6d6ca6dd47cddec7bd892c6a0cdb0bf544679f91 | 092dd56a1bf9357466c05d0f5aedf240cec1a27b | /pylith/faults/FaultCohesive.py | 0692eecade5eec75ed57a14986198bec4b2be735 | [
"MIT"
] | permissive | rwalkerlewis/pylith | cef02d5543e99a3e778a1c530967e6b5f1d5dcba | c5f872c6afff004a06311d36ac078133a30abd99 | refs/heads/main | 2023-08-24T18:27:30.877550 | 2023-06-21T22:03:01 | 2023-06-21T22:03:01 | 154,047,591 | 0 | 0 | MIT | 2018-10-21T20:05:59 | 2018-10-21T20:05:59 | null | UTF-8 | Python | false | false | 3,494 | py | # ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University at Buffalo
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copy... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
f5343f7fa9a73a2dcb764214c5504c84660ff86d | 8868d4ba927123ee598e18274c8594df583b7e77 | /rchitect/console.py | 9500262b8ca20181790419f3acfa42c13c557c51 | [
"MIT"
] | permissive | actuarial-tools/rchitect | 150aa60bde7e94325b49fe193647a2d5fbe1de16 | 7e56f507d5ef83e7ef54450668f2a31eb698ea5d | refs/heads/master | 2023-01-12T01:54:43.369605 | 2020-11-19T00:46:17 | 2020-11-19T00:46:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | from __future__ import unicode_literals
from six import StringIO
from contextlib import contextmanager
output_buffer = StringIO()
error_buffer = StringIO()
_flushable = True
_capture_state = False
_callback = None
def reg_callback(callback):
global _callback
_callback = callback
def write_console(buf, ot... | [
"randy.cs.lai@gmail.com"
] | randy.cs.lai@gmail.com |
57902071ba2b1769980268994f10d8613b03df4e | 73a601e61a44e1bbc2d33f88e096560acb2c487b | /loginReg/models.py | 91f09c415b80cb14c32e7c704ba1b87ea8e3db3d | [] | no_license | everhartC/CAMPlanner | 946fe1a6217e321d25b4e32a3788d68df93066af | 2c7e05b98f4f2f07076ed8c39126ef2e3bce5ffe | refs/heads/main | 2023-05-07T21:42:45.822721 | 2021-05-22T19:22:22 | 2021-05-22T19:22:22 | 369,889,235 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | from django.db import models
import re
import bcrypt
# Create your models here.
class UserManager(models.Manager):
def validator(self, postData):
errors = {}
# Checks to see that First and Last name are greater than 2 characters
if len(postData['fname']) < 2:
errors['fname'] = "... | [
"cameron.r.everhart@gmail.com"
] | cameron.r.everhart@gmail.com |
e478b553f8b9ebc1cf0d77118223036888d96065 | ea7d2090ba1d66fc5bf91b255742ae07e1f74c3d | /exploit_education/phoenix/challs/stack-four.py | 6b9053e6e641e74eac112b69fa95c828edb76ea4 | [] | no_license | arty-hlr/CTF-writeups | 1a3e29b9a3c3b80e33df0c9489cacd6ec09e46fe | 64bcda1d1d8893c2ece308f82348755a2c62ca9e | refs/heads/master | 2022-08-04T20:26:07.428393 | 2022-07-30T11:11:34 | 2022-07-30T11:11:34 | 167,851,059 | 4 | 3 | null | 2022-07-30T10:55:11 | 2019-01-27T19:47:03 | Python | UTF-8 | Python | false | false | 1,357 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwn import *
exe = context.binary = ELF('stack-four')
host = args.HOST or 'localhost'
port = int(args.PORT or 2222)
user = args.USER or 'user'
password = args.PASSWORD or 'user'
remote_path = '/opt/phoenix/amd64/stack-four'
# Connect to the remote SSH server
shell =... | [
"flrn.pjd@protonmail.com"
] | flrn.pjd@protonmail.com |
7849235e2487a8f05535a93f0ea27299b67c2e9c | 6b14d9a64a578239e5612e6098320b61b45c08d9 | /AUG09/11.py | 1f5f32a3c1e011f0558184c467e9c3981b20cc84 | [
"MIT"
] | permissive | Razdeep/PythonSnippets | 498c403140fec33ee2f0dd84801738f1256ee9dd | 76f9313894f511c487a99bc38bdf0fe5e594caf5 | refs/heads/master | 2020-03-26T08:56:23.067022 | 2018-11-26T05:36:36 | 2018-11-26T05:36:36 | 144,726,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # PASSWORD CHECKING WITH A WHILE LOOP
i=0
while(True):
password=input('Enter password ')
if(i>=2):
print('Access denied')
break
i=i+1
if(password=="password"):
print('Login successful')
break
print('Try again')
| [
"rrajdeeproychowdhury@gmail.com"
] | rrajdeeproychowdhury@gmail.com |
e4a1f4d6cad34255babf94db820ec8408c261cbc | ccf0d01f6f4096c382d2c0a527087e8aa87f21d7 | /script/gen_cub_segmentations.py | 4ad7e87e03c0716fffcb4114ec64f54d9fee5c12 | [] | no_license | jayelm/nldissect-fork | 3393931310ac737f169ac3eea2b83531e543742b | 691997fffb1c7b9c50b9a75ff6be0cf8fe0ab133 | refs/heads/master | 2022-04-16T19:24:03.019185 | 2020-04-03T06:01:38 | 2020-04-03T06:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | """
For each class, load images and save as numpy arrays.
"""
import numpy as np
import os
from PIL import Image
from tqdm import tqdm
import pandas as pd
import multiprocessing as mp
from scipy.spatial import KDTree
PARTS = [
"back",
"beak",
"belly",
"breast",
"crown",
"forehead",
"left ... | [
"6245103+jayelm@users.noreply.github.com"
] | 6245103+jayelm@users.noreply.github.com |
2febfb0e81caa3376b1bd0906feceebcc9cb5c01 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fc/rtfcfabricpol.py | 1029b75135bc3b6a408f8aecf7c772545ad1410f | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,683 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
db1d231501c5860e2521a7ccf6e1d4aee374b1c6 | 284f4775828d155fd289697f5da52cf138e8c937 | /arc081/a.py | c603a03b77485dc183e19a236d20b19c4cb2824f | [] | no_license | aikiyy/AtCoder | f006d9eec4bea0c265b700259fa4a43790f92df0 | e4208bcc708c301b088d01528294fe013a475f21 | refs/heads/master | 2020-06-29T16:57:29.692986 | 2020-01-20T04:53:08 | 2020-01-20T04:53:08 | 200,572,345 | 0 | 0 | null | 2020-01-19T15:36:57 | 2019-08-05T03:00:55 | Python | UTF-8 | Python | false | false | 271 | py | from collections import Counter
N = int(input())
A = Counter(list(map(int, input().split())))
ans = [0, 0]
for k in sorted(A.keys(), reverse=True):
if A[k] >= 2:
ans.append(k)
if A[k] >= 4:
ans.append(k)
ans = sorted(ans)
print(ans[-1]*ans[-2])
| [
"aiki.yougai@gmail.com"
] | aiki.yougai@gmail.com |
814ec1b6f291e322a95b5b0b194ad1bc0acf4622 | 7ce3442d2cf17e0a61544eb85c64213a084e36f1 | /web/__version__.py | 3792b80455b888e048436ff390de8387031fe62b | [
"MIT"
] | permissive | klookAppTest/atxserver2 | e8eaf6fec0755ddb9fe8b0f93302d9fa7a565fd7 | e798a3849faccfd22693544b9d77d74582ea9817 | refs/heads/master | 2020-09-07T19:22:13.432099 | 2020-01-03T08:32:50 | 2020-01-03T08:32:50 | 220,890,036 | 4 | 0 | MIT | 2019-11-11T03:02:50 | 2019-11-11T03:02:50 | null | UTF-8 | Python | false | false | 155 | py | # ....
__version__ = "x.x.x??"
__title__ = "atxserver2"
__url__ = "https://github.com/openatx/atxserver2"
__author__ = "codeskyblue"
__license__ = "MIT"
| [
"codeskyblue@gmail.com"
] | codeskyblue@gmail.com |
346acb9d223f0a18da6105e9846ddbf4f970a15e | 55f4b7ae0cb97a71fe06e3231bd9f48e5383aa39 | /exe10.py | 006e9d902e46ae22de5c144ee074addf945dbb1b | [] | no_license | andreplacet/reiforcement-python-tasks-2 | fc26d760a3307005d177c27e4e4fe60974b9009c | 8aab66cd4e8396e3a603d2d96056bf755399a9aa | refs/heads/master | 2022-12-25T12:31:09.457195 | 2020-10-14T23:32:57 | 2020-10-14T23:32:57 | 304,159,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # Exercicio 10
horario = str(input('Qual periodo voce estuda?\n[V] - Vespertino\n[O] - Diurno\n[N] - Nohorario\n --> ')).upper()
if horario == 'V':
print("Boa Tarde")
elif horario == 'D':
print("Bom dia")
elif horario == 'N':
print("Boav Noite")
else:
print("Entrada invalida") | [
"andreplacet@gmail.com"
] | andreplacet@gmail.com |
afa5a875ab111a6a1c3cd95e10f3230b6e50e222 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/mixedreality/v20200406preview/list_remote_rendering_account_keys.py | 1f6c8edbbb41b6219760781133787dbef4040360 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
d59b2b65d8afa4a322997d623693651a14c9bea1 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/zd/CB_ZD_Create_WireStation.py | cb64d47b8bb2faaddb800f4b004b34e29a09e35b | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | '''
Description:
Prerequisite (Assumptions about the state of the testbed/DUT):
1. Build under test is loaded on the AP and Zone Director
Required components: 'ZoneDirector', 'RuckusAP'
Test parameters:
Result type: PASS/FAIL
Results: PASS:
FAIL:
Messages: If FAIL the test script ... | [
"tan@xx.com"
] | tan@xx.com |
ea623ae1f90a2404bf784f56678702227b1f0e4b | babf1c585aeba48335fa73b6eaa85149308fa72d | /datadrivendota/items/migrations/0001_initial.py | 20c42da9f1457da303b1f94c1b3c592f2a2a34fe | [] | no_license | bwarren2/datadrivendota | 2656e1fd12870b6a342382a017203da9065af9a9 | dae6767974e2c218148181e31d01cf6d9f107a9a | refs/heads/master | 2021-06-17T09:48:55.111584 | 2017-05-22T20:05:33 | 2017-05-22T20:05:33 | 10,062,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(verbose... | [
"bwarren2@gmail.com"
] | bwarren2@gmail.com |
37f1829756c9e1c984da334dd55dbfaaeb1d0f86 | e0819e32cec26ead2a2942a021929f087e4faea5 | /localizacoes/models.py | ca7af90a3843840e3e6b41c76575fcf41e9c9ffe | [] | no_license | lssdeveloper/django-20-restful | a57857bd25af5912a18ca06480eca3c2d8fc6560 | 4a0f8085dab4daf0a0ce01463a4a464bb71ac6a0 | refs/heads/master | 2020-03-19T01:58:54.378912 | 2018-06-07T15:30:27 | 2018-06-07T15:30:27 | 135,588,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.db import models
class Localizacao(models.Model):
linha1 = models.CharField(max_length=150)
linha2 = models.CharField(max_length=150)
cidade = models.CharField(max_length=100)
estado = models.CharField(max_length=50)
pais = models.CharField(max_length=70)
latitude = models.IntegerFi... | [
"leandro.serra.10@gmail.com"
] | leandro.serra.10@gmail.com |
683597ac02ab4cdc9ee70024aaf0860e470cfd33 | e10b8d0229e9603a295f6d5b9acb3c4df33979db | /导入当日数据.py | e2706e248b098c55568860da3939d5cb21d074f0 | [] | no_license | kflyddn/tushare_env | 740d394eef5bd8a79be3693406507c8c86b69f12 | a40b7f513d94727dc8a7acedbe8b9e6dee97e68b | refs/heads/master | 2020-05-07T15:16:25.246110 | 2019-01-09T16:12:08 | 2019-01-09T16:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,639 | py | # -*- coding: utf-8 -*-
__author__ = 'SlovEnt'
__date__ = '2018/11/4 22:38'
from collections import OrderedDict
import os
import re
import time
import tushare as ts
from multiprocessing import Pool
import traceback
from chpackage.param_info import get_param_info
from chpackage import torndb
from exec_class import Tu... | [
"slovent@163.com"
] | slovent@163.com |
28a2527fba5989fcd30a0b78b7fa13edf0e75830 | dcc25b784213b17015d2080a7623c772d474dc22 | /reproduce/AlphaFold2-Chinese/tests/st/mindelec/networks/test_parameterization/src/dataset.py | 00f41cd06a8d796728fe36a1c882ba6f01e68137 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | mindspore-ai/community | 930c9d9fdbead852e3597d522a72fe5b66bfc005 | c72ce898482419117550ad16d93b38298f4306a1 | refs/heads/master | 2023-07-19T19:43:20.785198 | 2023-07-17T06:51:22 | 2023-07-17T06:51:22 | 250,693,100 | 193 | 10 | Apache-2.0 | 2022-10-29T10:01:40 | 2020-03-28T02:00:02 | Python | UTF-8 | Python | false | false | 4,623 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"deanyuton@gmail.com"
] | deanyuton@gmail.com |
3dff36d639e98443cf21891db08157963500201f | 92065e3b378edc8e0570e4295aca0968de3c852d | /rosalind_rvco.py | 8a8390d54b926fb9ba04fb3749c83db7fcf4e109 | [] | no_license | sunhuaiyu/rosalind | 18dc9fa78aaa84b478b112089a3b94d0f442b1bb | 7181cc9215d3ea0b5ad9d0811c00e01fd9f20b1c | refs/heads/master | 2020-04-04T17:53:17.437595 | 2019-04-11T17:03:52 | 2019-04-11T17:03:52 | 25,007,403 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # rosalind_rvco
from Bio import SeqIO
def revc(s):
pairs = { 'A':'T', 'T':'A', 'G':'C', 'C':'G'}
return ''.join(list(map(lambda n: pairs[n], s))[::-1])
seq = [str(i.seq) for i in SeqIO.parse(open('rosalind_rvco.txt'), 'fasta')]
n = 0
for s in seq:
if s == revc(s):
n += 1
print(n)
| [
"noreply@github.com"
] | sunhuaiyu.noreply@github.com |
58460f3f8dd9572b06698205c8db055ccb73e52b | 8dde6f201657946ad0cfeacab41831f681e6bc6f | /687. Longest Univalue Path.py | a89b573c15a02de816f71d2da43cbaee7ad2581d | [] | no_license | peraktong/LEETCODE_Jason | c5d4a524ba69b1b089f18ce4a53dc8f50ccbb88c | 06961cc468211b9692cd7a889ee38d1cd4e1d11e | refs/heads/master | 2022-04-12T11:34:38.738731 | 2020-04-07T21:17:04 | 2020-04-07T21:17:04 | 219,398,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def longestUnivaluePath(self, root):
"""
:type root: TreeNode
:rtype: int
"""
sel... | [
"caojunzhi@caojunzhisMBP3.fios-router.home"
] | caojunzhi@caojunzhisMBP3.fios-router.home |
54af1f8d18e7e762f8093d4a4031021048cd1941 | c0ef6bcdcf50f359d80d9fae5b5fd6a6dfe3d2cc | /class_creation.py | 9eb612eb1bdc81fdd9407aef4618b5ae318f2319 | [] | no_license | sbhusal123/Python-Data-Structures | f4e63323c70b92de44efb69aff9f5e6ddb9d9a96 | 0c10d2457f62eafbad0e8e62d5db89f448696123 | refs/heads/master | 2020-07-30T15:29:33.678565 | 2020-07-15T07:01:59 | 2020-07-15T07:01:59 | 210,276,899 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | class Employee:
def __init__(self,name,position):
self.name= name
self.position = position
@classmethod
def getName():
return "Hello this is me"
e = Employee()
e.getName()
| [
"="
] | = |
2a548f9fe54b1d29a8006526969089eef81ac61e | 57ddfddd1e11db649536a8ed6e19bf5312d82d71 | /AtCoder/ABC1/ABC146/ABC146E.py | dda141dd17e6d38f2d0f3547503d1bc45e77ad33 | [] | no_license | pgDora56/ProgrammingContest | f9e7f4bb77714dc5088c2287e641c0aa760d0f04 | fdf1ac5d1ad655c73208d98712110a3896b1683d | refs/heads/master | 2023-08-11T12:10:40.750151 | 2021-09-23T11:13:27 | 2021-09-23T11:13:27 | 139,927,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # TLE
n, k = map(int, input().split())
a = list(map(int,input().split()))
su = [0]
cnt = 0
def check():
global k, su, cnt
l = len(su) - 1 - k
if l < 0: l = 0
for i in range(l, len(su)-1):
if (su[len(su)-1] - su[i]) % k == len(su) - 1 - i:
cnt += 1
for i in a:
su.a... | [
"doradora.prog@gmail.com"
] | doradora.prog@gmail.com |
ab7b4010754b17be6275e8af10851215ed79182f | ba8f5d23d9878a25b30a32cf16e8833f93b25853 | /source_py2/python_toolbox/persistent/persistent.py | 5ba6c599c3a8f65f3fa354a664f961cbf2e0f9f8 | [
"MIT"
] | permissive | nastako/python_toolbox | af520cbec1468c8e0aae0b3b1c467ca5623af45b | 9713fd728608818630ee409ac6a6fdaf863af31b | refs/heads/master | 2020-12-11T09:07:19.681161 | 2015-01-16T21:26:37 | 2015-01-16T21:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | # Copyright 2009-2015 Ram Rachum.
# This program is distributed under the MIT license.
'''
This module defines the `Persistent` class.
See its documentation for more information.
Note: This module is still experimental
todo: need to raise an exception if we're getting pickled with
an old protocol?
todo: make it ... | [
"ram@rachum.com"
] | ram@rachum.com |
17f6f00ef83734b75807829958310e17d8ff8a45 | a2c90d183ac66f39401cd8ece5207c492c811158 | /Solving_Problem/daily_222/1115/swea_최소 이동거리.py | 0070cbbcaf53157bbaf9945d0140cacd897346e8 | [] | no_license | kwoneyng/TIL | 0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a | c6fbaa609b2e805f298b17b1f9504fd12cb63e8a | refs/heads/master | 2020-06-17T11:53:38.685202 | 2020-03-18T01:29:36 | 2020-03-18T01:29:36 | 195,916,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | from heapq import heappush, heappopfor t in range(1, int(input())+1):
n,su = map(int,input().split())
nxt_ls = [[] for i in range(su)]
for i in range(su):
s,e,w = map(int,input().split())
heappush(nxt_ls[s], [w,e])
q = []
q.append([0,0])
dist = [9999999999999999999999999999999]*s... | [
"nan308@naver.com"
] | nan308@naver.com |
2c9b844d798afba5ee297c2c797fb9f7037434dc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02891/s504739910.py | c916543d98c1b91669ff587ac949029b62e33c33 | [] | 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 | 566 | py | S = input()
K = int(input())
curr = S[0]
tmp = ""
T = []
for s in S:
if s == curr:
tmp += s
else:
T.append(tmp)
curr = s
tmp = s
T.append(tmp)
if len(T) == 1:
res = (len(S) * K) // 2
print(res)
exit(0)
res = 0
t_first = T[0]
t_last = T[-1]
if t_first[0] != t_last[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dd538f842778120f55b13c7d3cd9f046cdf10cdf | 64fe4fcaeb71b5e4d448abed92e03bebd838b1a2 | /Models/Utils.py | 036a76c46a7cd85427bf52d366a5e26b0e40ed14 | [] | no_license | Caster89/Scattering_Analysis | ea2ddbd9311f0beebae6f083a37d843f44d3d00b | 2bd14efb2d1bb6c1af5173a8ed98b668dbfc4673 | refs/heads/master | 2021-01-19T16:04:41.322316 | 2017-12-17T16:22:46 | 2017-12-17T16:22:46 | 88,247,591 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,405 | py | from lmfit import Parameter, Parameters
import numpy as np
import logging
from config import _lmfitParamsOrder
logger = logging.getLogger(__name__)
def create_parameters(parameter_list):
"""Create the parameters variable for the lmfit models to use. The information needed is passed as a dictionary
(possible O... | [
"="
] | = |
af63362b7399719c268813b02354737a7571da6d | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/GL/NV/texture_expand_normal.py | 64ac087029cece7005d6942b092e7232ba054100 | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 1,288 | py | '''OpenGL extension NV.texture_expand_normal
This module customises the behaviour of the
OpenGL.raw.GL.NV.texture_expand_normal to provide a more
Python-friendly API
Overview (from the spec)
This extension provides a remapping mode where unsigned texture
components (in the range [0,1]) can be treated as though ... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
d4f7536fbd947124828af090632b7237506b6c25 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/layout/yaxis/_showticklabels.py | 3a2806d4c0b55270d425f50cb460632dec34b8a9 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 438 | py | import _plotly_utils.basevalidators
class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name="showticklabels", parent_name="layout.yaxis", **kwargs
):
super(ShowticklabelsValidator, self).__init__(
plotly_name=plotly_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
957e981d9fcdc89eb3e57f832318a86978dd6f47 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/resources/types/merchant_center_link.py | 58bcebbee8f43a5c768f0092eaa4b404409a89db | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
07ab359927cc468af01c2372bb36338a7b61c280 | 330ba6024e2728ec2476ce2d9f8e6be20c60ed67 | /assignments/hw03/flagged.py | 62443f81fedf325ae0ea003fff9b87626bfbb32a | [] | no_license | foureyes/csci-ua.0479-spring2021-001 | ec008e797b569476cce7b062f2469d6dea56d670 | f7ee0f69c2e9150134f41f39676807e4f776f96e | refs/heads/main | 2023-06-27T15:44:38.192216 | 2021-08-01T17:35:55 | 2021-08-01T17:35:55 | 330,051,703 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | """
flagged.py - 7 points
=====
Create a program that generates a pattern for a flag.
* ask the user for a width of the flag
* the width should be greater than 0
* if it isn't, ask again until the user enters a valid value
* then... ask the user for a character
* the character can be any character except e... | [
"jversoza@cs.nyu.edu"
] | jversoza@cs.nyu.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.