blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7d153215cdaf6e880f5ca74101116bc24be6340e | b2e9e3db0202a6bd06b5d1f4c4fd3369b5260261 | /python/p032.py | 2e8202df7f17ac73122932747adf0ec4d9e10ad0 | [] | no_license | jackmoody11/project-euler-solutions | 66e7128cae130499ce518c2008e5df91a6883a68 | 8b6e00bfac7855f5c892f5b3094415935358cb98 | refs/heads/master | 2020-04-12T23:52:57.347142 | 2020-01-10T00:23:16 | 2020-01-10T00:23:16 | 162,831,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | from utils import is_pandigital
def is_nine_pandigital_product(a, b):
my_str = str(a) + str(b) + str(a*b)
if len(my_str) == 9 and is_pandigital(my_str):
return True
else:
return False
def compute():
# 1 will never return a pandigital product (will repeat digits)
pandigitals = set()... | [
"jackmoody@unc.edu"
] | jackmoody@unc.edu |
4f504c0716dacadf713fabd2507a80603e3b8c13 | d2b53b3568890dd805575035d09635c422c6bc4d | /python/ray/autoscaler/util.py | d436be426411827e6fe4f2b19e777c1de368ccc8 | [
"Apache-2.0",
"MIT"
] | permissive | mehrdadn/ray | 939deda7099eb30371cbb920a9725b314c58c0b5 | 3506910c5da257215d38d02f424acc4f419ddbaf | refs/heads/master | 2020-09-03T15:33:35.578248 | 2020-07-31T21:33:27 | 2020-07-31T21:33:27 | 219,498,150 | 2 | 1 | Apache-2.0 | 2019-11-04T12:37:23 | 2019-11-04T12:37:22 | null | UTF-8 | Python | false | false | 6,188 | py | import collections
import hashlib
import json
import jsonschema
import os
import threading
from typing import Any, Dict
import ray
import ray.services as services
from ray.autoscaler.node_provider import get_default_config
from ray.autoscaler.docker import dockerize_if_needed
REQUIRED, OPTIONAL = True, False
RAY_SCHE... | [
"noreply@github.com"
] | mehrdadn.noreply@github.com |
eeeb8737f788a99b63bc14fa4ee601c37472ba24 | 28dbe47aba287ed94ef7bba734203736bcc06249 | /.history/run_dmac_20200702162638.py | 87a34ccf19b64f8739c194e0fbccc0dad71a4485 | [] | no_license | ntung88/Trading_Algorithms | 242fd816b19df95e02e9fcd8c5c91c862d2ede40 | d96488b1754e3751f739d9c3f094a8f8dc54a0a9 | refs/heads/master | 2022-11-19T16:04:07.800344 | 2020-07-17T21:14:10 | 2020-07-17T21:14:10 | 276,239,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | '''
Script for running dmac on current data. Outputs decision for paper trading since I don't have the resources
to trade electronically :(((
'''
import dmac
import yfinance as yf
import numpy as np
import sys
def main():
args = sys.argv[1:]
tickers = ' '.join(args)
data = yf.download(tickers, period='max'... | [
"nathantung@Nathans-MacBook-Pro.local"
] | nathantung@Nathans-MacBook-Pro.local |
97d790031b2efb4f1acf57eee08a3880d3106887 | 0bbd11c91de6ed2315a463809cb1094d6523ca02 | /proj03/lattice5/step-afm.py | 690ed8ae14b16b5ae6e3f4b02c7c33b88e22ddfe | [] | no_license | impurity80/emto | b232048829002f2ba721019c45df420696f48973 | 0a7a0d2fcdf41e7763bb4de4244d6598a74ab270 | refs/heads/master | 2021-01-18T19:46:39.102514 | 2017-02-20T04:04:42 | 2017-02-20T04:04:42 | 69,660,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,175 | py |
import csv
import os
from ase import Atom, Atoms
from ase.lattice.cubic import *
from ase.visualize import view
from numpy import *
from emto import *
from ase.utils.eos import EquationOfState
import matplotlib.pyplot as plt
from ase.lattice import bulk
name = 'afm'
curr_dir = os.getcwd()
os.system('mkdir eos')
os.s... | [
"impurity@postech.ac.kr"
] | impurity@postech.ac.kr |
8daa6b9759fb0bebb3876f6b8de6e79afbb4fbc0 | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/M2Crypto/httpslib.py | 32f536fe85e061063e6ea82c5dbb835c0e73650b | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 10,229 | py | from __future__ import absolute_import
"""M2Crypto support for Python's httplib.
Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved."""
import base64
import socket
from M2Crypto import SSL, six, util
from urlparse import urlsplit, urlunsplit
from httplib import * # noqa
from httplib import HTTPS_PORT # T... | [
"admin@example.com"
] | admin@example.com |
e165ad0b94f1b8de683540cc8e774ccd5204c0cb | 59ac1d0f09ebfb527701031f3ab2cfbfb8055f51 | /soapsales/event/apis/__init__.py | dfde242069a4b49a35ed6d838fa738e62af56bcf | [] | no_license | DUMBALINYOLO/erpmanu | d4eb61b66cfa3704bd514b58580bdfec5639e3b0 | db979bafcc7481f60af467d1f48d0a81bbbfc1aa | refs/heads/master | 2023-04-28T13:07:45.593051 | 2021-05-12T09:30:23 | 2021-05-12T09:30:23 | 288,446,097 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | from .event import *
| [
"baridzimaximillem@gmail.com"
] | baridzimaximillem@gmail.com |
f9a8acabb60a466dfe29c4ce1b191ff815101635 | 574c640c4adf212db0bcc1f93e9ca48d2296ad72 | /backend/delivery_order/migrations/0001_initial.py | 479852031897524fe8d7963958bdc69b06220b1b | [] | no_license | crowdbotics-apps/test2-27795 | 15331bc54c504607a5cb97369f557e08b1a28343 | 593c571eb9fff06e48e392b4fbcd2c3cb9f82151 | refs/heads/master | 2023-05-12T02:36:09.348868 | 2021-06-07T08:28:50 | 2021-06-07T08:28:50 | 374,590,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | # Generated by Django 2.2.20 on 2021-06-07 08:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('delivery_user_profile', '0001_initial'),
('menu', '0001_initial'),
]
operations = [
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b92a4b791f5e98e824c6bf9f13238386d080e65d | 996003d0ee6444480f98eeb496793be6420c9b63 | /tests/mongodb/events/test_database_events.py | bc5eb31811161a6ce52e572e2f77568a27c43dfe | [
"BSD-3-Clause",
"BSD-3-Clause-Clear"
] | permissive | Wytamma/fasteve | fb8b54cd6d8c8bb7c058a04543dfa3781a3a869c | 0d28a50dc6b6e017bbae5ff82150d081e3ad818e | refs/heads/master | 2023-06-08T04:52:02.510353 | 2023-06-01T07:32:07 | 2023-06-01T07:32:07 | 199,584,609 | 41 | 1 | BSD-3-Clause-Clear | 2022-03-17T12:04:28 | 2019-07-30T05:58:32 | Python | UTF-8 | Python | false | false | 1,136 | py | from typing import Optional
from fasteve import Fasteve, MongoModel, Resource, MongoObjectId
from starlette.testclient import TestClient
from pydantic import Field
class People(MongoModel):
id: Optional[MongoObjectId] = Field(alias="_id")
name: Optional[str]
people = Resource(
name="people",
model=P... | [
"wytamma.wirth@me.com"
] | wytamma.wirth@me.com |
5c7c7fdbcb35fd6878837d4f230c5bc598b4168c | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/vitchyr/disentanglement/mix_vectorized_and_single_reward/pnp_first_try.py | 740841243f26fa33669cbc0f7de986c37b36b3b4 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,205 | py | import torch.nn.functional as F
import rlkit.misc.hyperparameter as hyp
from rlkit.launchers.experiments.disentanglement.contextual_encoder_distance_launcher import (
encoder_goal_conditioned_sac_experiment
)
from rlkit.launchers.launcher_util import run_experiment
if __name__ == "__main__":
variant = dict(
... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
a78915eef8809887752870022b28b634ec01beb0 | aea74a8c1d4ad17eb65b7c70da5342c01fd1a930 | /websites_postgres/scraper_topwatch.py | 9889b1522ed08d8759a96633ee4c81cc9235c4e1 | [] | no_license | savusebastian/angular_project | 4e6d8b398e17ca91842d7579d8f4da8650e7a13a | 9c28c25e4b9875abf346f7e9a7e8baa34bc3f9ee | refs/heads/main | 2023-04-17T07:03:32.016850 | 2021-05-09T09:07:55 | 2021-05-09T09:07:55 | 365,710,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | from bs4 import BeautifulSoup
import psycopg2
import requests
def topwatch_DB():
con = psycopg2.connect(
host='localhost',
database='postgres',
user='postgres',
password='winding1127!'
)
cur = con.cursor()
URL = 'https://www.topwatch.ro/fossil-fs4735'
shop = URL.split('/')[2].split('.')[1]
page = requ... | [
"savusebastianf@gmail.com"
] | savusebastianf@gmail.com |
63724cd5abaef45153bdee596d8bdd703ee2dcdc | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /crossref/models/gov/nih/nlm/ncbi/jats1/table_wrap_group_orientation.py | ec33b15cb988fe0f5c36ce8ce7d99b32f3e84539 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 170 | py | from enum import Enum
__NAMESPACE__ = "http://www.ncbi.nlm.nih.gov/JATS1"
class TableWrapGroupOrientation(Enum):
LANDSCAPE = "landscape"
PORTRAIT = "portrait"
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
e3feccc9956618a66353c2c0564ac4e266a9b46c | a9c359681631e8344f55163a2d69018ed02c0a90 | /openr/py/openr/cli/commands/tech_support.py | 2193ec40af9b74d4d2d772c4d554f30c0e0d3e8f | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | facebook/openr | 66c82707ae47fa5ed711c20f0355ad7100a3cf1c | 8e4c6e553f0314763c1595dd6097dd578d771f1c | refs/heads/main | 2023-09-03T02:55:03.399114 | 2023-07-26T16:46:46 | 2023-07-26T16:46:46 | 108,306,129 | 936 | 295 | MIT | 2023-08-31T23:03:31 | 2017-10-25T17:59:53 | C++ | UTF-8 | Python | false | false | 4,893 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import subprocess
import sys
from builtins import object
from openr.cli.commands import config, decision,... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c8c60f4d6c2defd5798062f40691b3b44f82ac3c | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Basic Programming/Implementation/Basics of Implementation/Bear and Medals/test.py | eef855d601ec9351deb2295e35c080702103ba53 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 619 | py | import io
import unittest
from contextlib import redirect_stdout
from unittest.mock import patch
class TestQ(unittest.TestCase):
@patch('builtins.input', side_effect=[
'2',
'4',
'0 0 2',
'1 2 1',
'2 0 0',
'0 2 0',
'1',
'0 1000 0',
])
def test... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
2403716147c912ea268a503b86ef1623df2f12a0 | bdbc9cd8c64cfa92efffb9e138cb282d36f69b0a | /addons/anonymization/anonymization.py | e89bd173883e90e39936edaa10347503992baf19 | [] | no_license | clebaresu/impra-adns | d330cece1b710643625627bfd7ed66bac7d233ef | 8b9889d86c6ea194cfb7b0db8bdc3284635cc081 | refs/heads/master | 2020-05-02T16:51:41.798969 | 2019-03-27T22:03:32 | 2019-03-27T22:03:32 | 178,080,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,273 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or mo... | [
"clebaresu@gmail.com"
] | clebaresu@gmail.com |
374819e09c7095e180257d044a6656442ae72ef5 | 5fcc3fd608a794d260368318c62547f74d4c1416 | /lindenmayer.py | db17a6e4335ac8dda5edf69ca1b53747b3ec0257 | [] | no_license | ds-gurukandhamoorthi/intro-python-exs | 241fb9158096479a100ef378f291ba83e1a7d5d4 | 68c386e51c13d0f31e273016eefc4e29ddecdc04 | refs/heads/master | 2022-02-25T22:28:41.061722 | 2019-10-22T18:36:46 | 2019-10-22T18:36:46 | 103,829,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | def lindenmayer(frm, production_rules,nb_transf=1):
if nb_transf < 1:
return frm
transformed = ''.join(production_rules.get(c, c) for c in frm)
if nb_transf == 1:
return transformed
return lindenmayer(transformed, production_rules, nb_transf - 1)
return
if __name__ == "__main__":
... | [
"ds.gurukandhamoorthi@gmail.com"
] | ds.gurukandhamoorthi@gmail.com |
4c91ab1744fb3d18d6e5459b8bb50c5db92d0031 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-kms/huaweicloudsdkkms/v2/__init__.py | ce5630e2e36d2d2fb42f93f95413a83a2d84865e | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 11,734 | py | # coding: utf-8
from __future__ import absolute_import
from huaweicloudsdkkms.v2.kms_client import KmsClient
from huaweicloudsdkkms.v2.kms_async_client import KmsAsyncClient
from huaweicloudsdkkms.v2.model.action_resources import ActionResources
from huaweicloudsdkkms.v2.model.api_link import ApiLink
from huaweiclou... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
c0862bd436f7908175d607f2dbb549efe9d45c55 | e5504d8c4880993b82d5583a11c5cc4623e0eac2 | /LeetCode/30-day-challenge/June/june 8th - june 14th/randomizedSet.py | d1ab1fc8c9c3c8e3c1c1da13ad85aa74f7ab096b | [] | no_license | noorulameenkm/DataStructuresAlgorithms | e5f87f426fc444d18f830e48569d2a7a50f5d7e0 | 7c3bb89326d2898f9e98590ceb8ee5fd7b3196f0 | refs/heads/master | 2023-06-08T19:29:42.507761 | 2023-05-28T16:20:19 | 2023-05-28T16:20:19 | 219,270,731 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | import random
class RandomizedSet:
def __init__(self):
"""
Initialize your data structure here.
"""
self.random_set = []
self.index_store = {}
def insert(self, val: int) -> bool:
"""
Inserts a value to the set. Returns true if the set did not already co... | [
"noorul.km@people10.com"
] | noorul.km@people10.com |
7a36658ae593bde936c367f2ef8c46229d4f76b0 | 22fbe9c0fc8cc366123111f54f103e3c109bce7a | /zeabus_vision/src/read_exposure.py | fcc70b006aa286c7a67b094dcef463adeab7568c | [] | no_license | zeabusTeam/zeabus_software_ros1 | 3730021eb3eb6d98df585d172a44c4d6176e8963 | 86a07f4da03457bad3ce9b0c63b3867403780bc0 | refs/heads/master | 2020-03-25T23:02:22.816144 | 2019-03-19T17:30:37 | 2019-03-19T17:30:37 | 144,256,396 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | #!/usr/bin/python2.7
"""
File name: read_exposure.py
Author: zeabus
Date created: 2018/10/16
Python Version: 2.7
"""
import rospy
import cv2 as cv
import numpy as np
import matplotlib.pyplot as plt
from statistic import Statistic
from sensor_msgs.msg import CompressedImage
from dynamic_reconfigure.cl... | [
"supakit.kr@gmail.com"
] | supakit.kr@gmail.com |
985e9efd8ab0fefb39ec3e631887fb7ce65a29f5 | 811ee1e3bba45419e6c17068027d54bf6c8d4f07 | /python/gpmp_utils/plotPlanarMobile2Arms.py | e6aa3a802cbaf75ae3a9859c50c99e102c449c40 | [
"BSD-3-Clause"
] | permissive | kalyanvasudev/gpmp2 | 7dfe19873c72a7b9202c06eb794ef779c2917032 | 1ee99c743d978ab20dc804c8cd9cfa7813084957 | refs/heads/master | 2021-12-23T13:01:27.320270 | 2020-05-03T00:44:59 | 2020-05-03T00:44:59 | 227,194,751 | 0 | 0 | NOASSERTION | 2019-12-10T19:01:00 | 2019-12-10T19:00:59 | null | UTF-8 | Python | false | false | 1,366 | py |
import numpy as np
from gtsam import *
from gpmp2 import *
def plotPlanarMobile2Arms(figure, axis, marm, p, vehsize, color, width):
#PLOTPLANARMOBILE2ARMS Summary of this function goes here
# Detailed explanation goes here
# color = [(r,g,b)] where all values lie between 0 and 1
pose = p.pose()
# vehicle cor... | [
"kalyan051993@gmail.com"
] | kalyan051993@gmail.com |
2fec9430049b72f2e0ef566a4a08ec641022877e | 926c7a9760702d3c56adfa3eec0e164cb2c766b6 | /gunnery/gunnery/settings/development.py | 8dcd148202883fecfc670ba753d381b3add3c197 | [
"Apache-2.0"
] | permissive | hunslater/gunnery | 7d947942f0c9db56d4102e68758b95b4292efbc3 | 2b9457ef899f7367dc07ba28cc1b7e4ff2c47d8e | refs/heads/master | 2021-01-17T23:14:38.387308 | 2014-06-11T20:43:51 | 2014-06-11T20:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from .common import *
ENVIRONMENT = 'development'
DEBUG = True
TEMPLATE_DEBUG = True
INSTALLED_APPS += (
'debug_toolbar',
'django_nose',
)
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
from fnmatch import fnmatch
class glob_list(list):
def __contains__(self, key):
... | [
"pawel.olejniczak@gmail.com"
] | pawel.olejniczak@gmail.com |
bdfc04a2ac39f2bc9a169b4e3ae7b83d76b39078 | c9e616e6f5146805c6d9c19d35220e9b76c93aa6 | /박현채/비타알고 시즌2/19년9월1주차/시공의 폭풍속으로.py | d5b58e5858d58444c9471d2b902b1d7e5b4f7e13 | [] | no_license | inje-illab/Algorithmer | 2d29244d38a2aeec07ad83e47e69016269ff4e88 | ed5c67d0a1b0c720e5a8ce8fe5bafba4bb0f36b8 | refs/heads/master | 2023-03-16T05:46:41.795826 | 2020-01-05T14:59:36 | 2020-01-05T14:59:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | TEAM_SELECT_HERO = []
USER_SELECT_HERO = []
USEABLE_HERO = []
TEAM_SELECT_HERO.extend(map(int, input().split()))
USER_SELECT_HERO.extend(map(int, input().split()))
USEABLE_HERO = list(set(USER_SELECT_HERO) - set(TEAM_SELECT_HERO)) # 사용자 선택 영웅의 리스트 집합 - 팀 선택 영웅의 리스트 집합
print(len(USEABLE_HERO)) # 사용가능 영웅 리스트 길이 출력 | [
"park19996@naver.com"
] | park19996@naver.com |
af9ab97508d3762e24f80f6c7f04143f5b825c27 | bbf3a1b2f2f4ec3fa468a089c042643ec8243c15 | /ML/research/object_detection/webcam_detection.py | 35ee40f148009ce924d3b470369ca8ad01da9298 | [
"Apache-2.0"
] | permissive | lasarox/Code | 94aa9b3d816016a171e4a3babd9127cb01a6cd03 | 2c04be4e7a066340f1cf2b45bec18298d010312a | refs/heads/master | 2023-04-05T16:51:46.159055 | 2021-05-01T06:24:02 | 2021-05-01T06:24:02 | 361,516,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,099 | py | import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
from collections import defaultdict
from io import StringIO
from matplotlib import pyplot as plt
from PIL import Image
from utils import label_map_util
from utils import visualization_util... | [
"you@example.com"
] | you@example.com |
27a2bfac21348a6fb2463f4306fb6d253e6c0790 | 1c343f610133030fbe160a1cd864bfc29be84fa8 | /tests/test_topicmod_visualize.py | 8d7321d8a7c0276326733f8c7338eda06ac194ec | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcooper/tmtoolkit | 56e585c71a553b3344c05a9a1e77adfa5044b29a | cdfbaf7f20095ea45edbdf9e773544e3bb63089d | refs/heads/master | 2020-04-29T01:09:42.137637 | 2019-03-15T23:37:06 | 2019-03-15T23:37:06 | 175,721,140 | 0 | 0 | Apache-2.0 | 2019-03-15T00:35:56 | 2019-03-15T00:35:56 | null | UTF-8 | Python | false | false | 3,586 | py | import os
import six
import PIL
from tmtoolkit.topicmod import model_io, visualize
try:
from wordcloud import WordCloud
def test_generate_wordclouds_for_topic_words():
py3file = '.py3' if six.PY3 else ''
data = model_io.load_ldamodel_from_pickle('tests/data/tiny_model_reuters_5_topics%s.pi... | [
"markus.konrad@wzb.eu"
] | markus.konrad@wzb.eu |
fa557f36f229ffae04fde795ddaad2491c3d8cb8 | fe6cbc51ef5043ff2f953fd2202540fd0f7d7cbc | /mnist_deploy.py | 025830d8ddccfeeac54cc4347bec752d88be5c3a | [] | no_license | Tveek/caffe_learning | f87c9abecb879a9807368b733772d669315cca41 | e841abb2d0f92c5e0f9f558fbdd9e128c526f1b2 | refs/heads/master | 2021-01-22T07:32:57.173028 | 2016-09-26T13:32:45 | 2016-09-26T13:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # -*- coding: utf-8 -*-
from caffe import layers as L,params as P,to_proto
root='./'
deploy=root+'mnist/deploy.prototxt' #文件保存路径
def create_deploy():
#少了第一层,data层
conv1=L.Convolution(bottom='data', kernel_size=5, stride=1,num_output=20, pad=0,weight_filler=dict(type='xavier'))
pool1=L.Pooling(conv1, po... | [
"857332641@qq.com"
] | 857332641@qq.com |
c0c907c9480629a7fb74fc8e8f851f465c9ed21a | 5b85703aa0dd5a6944d99370a5dde2b6844517ec | /03.Python/13.XML1_Find_the_Score.py | a6dcf1e4cc24fe1e036199a2dd8a7b3941d3931c | [] | no_license | alda07/hackerrank | 255329196e6a4b9d598c3f51790caf4a99a755bc | a09091f859e87462c95ee856cbbd0ad9b5992159 | refs/heads/master | 2021-10-24T07:38:34.795632 | 2019-03-23T17:29:32 | 2019-03-23T17:29:32 | 90,329,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import sys
import xml.etree.ElementTree as etree
def get_attr_number(node):
# your code goes here
count_atribs = 0
for element in node.iter():
count_atribs += len(element.attrib)
return count_atribs
if __name__ == '__main__':
sys.stdin.readline()
xml = sys.stdin.read()
tree = etre... | [
"hanh.vo.programmer@gmail.com"
] | hanh.vo.programmer@gmail.com |
bb290fb3de03a8e1382fb626fc7fa2776ea5e699 | f18003f682be98942b0955f76c8b3d39cacadda3 | /ansible/roles/kubernetes-modules/library/k8s_v1alpha1_initializer_configuration_list.py | 8de3f563a370fa778896525df707b708ad0c3bd9 | [
"Apache-2.0",
"MIT"
] | permissive | request-yo-racks/infra | 77c205d3b887ead8a249a5865edcecd213023dc3 | deade6804bf061bdf69325f0442695bd4ad55ef5 | refs/heads/master | 2022-01-22T06:56:41.271540 | 2019-05-09T18:58:43 | 2019-05-09T18:58:43 | 111,489,644 | 1 | 8 | MIT | 2018-11-11T03:44:46 | 2017-11-21T02:41:50 | Python | UTF-8 | Python | false | false | 26,052 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from ansible.module_utils.k8s_common import KubernetesAnsibleModule, KubernetesAnsibleException
DOCUMENTATION = '''
module: k8s_v1alpha1_initializer_configuration_list
short_description: Kubernetes InitializerConfigurationList
description:
- Retrieve a list of initializer_con... | [
"noreply@github.com"
] | request-yo-racks.noreply@github.com |
e0cdf5d0874e4a9d85af092ca398c8a044ce45d5 | 681602725fe045a2c63be02d7b8e1aacfd8c70de | /InvenTree/stock/views.py | 4ac415ef23ed5623ca6544fa78a500588fff35d7 | [
"MIT"
] | permissive | Zeigren/InvenTree | 6af06992a3a7be75e82fa57424655d8d8ce83624 | 6c415bc9227063ef3bf21b66d2f6b51b995aaf56 | refs/heads/master | 2020-11-26T17:08:17.565941 | 2020-02-18T13:02:59 | 2020-02-18T13:02:59 | 229,151,367 | 0 | 0 | MIT | 2019-12-19T22:53:13 | 2019-12-19T22:53:12 | null | UTF-8 | Python | false | false | 33,206 | py | """
Django views for interacting with Stock app
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.exceptions import ValidationError
from django.views.generic.edit import FormMixin
from django.views.generic import DetailView, ListView, UpdateView
from django.forms.models import model... | [
"oliver.henry.walters@gmail.com"
] | oliver.henry.walters@gmail.com |
2e18be84a9b21e63411b034b37872fab50661b4a | b7125b27e564d2cc80a2ce8d0a6f934aa22c8445 | /.history/sudoku_20201101180452.py | 0b0cccefb8ae974ad8a008aea7fbc96caffa7116 | [] | no_license | JensVL96/Puzzle-solver-for-fun | 4c15dcd570c3705b7ac555efb56b52913e81083c | 6d8a4378a480372213a596a336a4deca727a00fc | refs/heads/master | 2021-07-15T05:19:42.185495 | 2020-11-08T13:59:49 | 2020-11-08T13:59:49 | 224,855,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,035 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from config import *
from create_board import *
from solve_bloard import *
from display_board import *
from string import *
from math import floor
import pygame as pg
import numpy as np
# For error highlighting
def set_highlight(row, col, blk, lock):
g... | [
"jle040@uit.no"
] | jle040@uit.no |
f31fee6475c7cf0e9200fc4f6762bf92a3f9cdb1 | 7dd88d4ae218b8de8fe54780fb48884ef92c0b5c | /python/leetcode/search.py | 0e887d9acf7a2cc74431826670bfe92836cdbc67 | [] | no_license | BenThomas33/practice | c98654ec3bb38740d7f69a21ea5832782abdb4f8 | 5dffbdfbdb65f959a534ed2e2ec7773ab4bc7ed9 | refs/heads/master | 2021-01-17T23:26:11.538707 | 2014-10-18T20:49:12 | 2014-10-18T20:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | class Solution:
# @param A a list of integers
# @param target an integer
# @return a boolean
def search(self, A, target):
| [
"xinzhou918@gmail.com"
] | xinzhou918@gmail.com |
45a39d564c5ccfcb158db6c41322736bf97d4f25 | 830b34e369fcfb94a8eaa855c918ab66ed2050b2 | /gui/layouts/grid.py | 4725707f04c497a09f57f383344ad657c886ec53 | [] | no_license | treinaweb/treinaweb-kivy-framework-python | 78e8ab1087a49e8463ebf4ecafca80fe41286cb7 | 2ddf0a881f28209a118ec893019c179bc39e75fc | refs/heads/master | 2020-03-27T16:47:07.452396 | 2019-10-15T19:04:14 | 2019-10-15T19:04:14 | 146,805,958 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.widget import Widget
class TelaApp(GridLayout):
pass
class Grid(App):
def build(self):
return TelaApp()
Grid().run() | [
"fagnerpinheirosantos@gmail.com"
] | fagnerpinheirosantos@gmail.com |
446864b08c4d7945ec228b68519031d1bbce51c0 | 5be79d6cbc8a55f0b6518b28fb748c34316b385d | /sentinel_api/__init__.py | 01de33cdaec552e63d559aea414ed9ab6e1d9c99 | [
"MIT"
] | permissive | jonas-eberle/esa_sentinel | 1b9aa57a78972d93a20d03bbf0875c35f7bee4b2 | c9498e8835ae0a585068cfd6be953319ea34ca29 | refs/heads/master | 2022-06-24T18:44:42.726012 | 2022-06-06T16:15:52 | 2022-06-06T16:15:52 | 47,712,138 | 51 | 16 | MIT | 2019-10-17T15:45:06 | 2015-12-09T18:57:35 | Python | UTF-8 | Python | false | false | 238 | py | from .sentinel_api import SentinelDownloader
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
| [
"john.truckenbrodt@uni-jena.de"
] | john.truckenbrodt@uni-jena.de |
630fa7c67e54aef67a51ee9d03be97d872a64cc5 | ec1f8cdbf52bcc5516a833e02ac99301a1664ed9 | /setup.py | 0e962f9c6b7ca5a5352113a317f655c549c3cf3b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | senarvi/theanolm | 8fe85dcf07358a331807b9002a56b6089d5f0ff3 | 9904faec19ad5718470f21927229aad2656e5686 | refs/heads/master | 2023-06-24T10:39:21.985241 | 2023-06-12T06:55:26 | 2023-06-12T06:55:26 | 42,454,187 | 95 | 37 | Apache-2.0 | 2020-11-05T11:22:31 | 2015-09-14T14:35:54 | Python | UTF-8 | Python | false | false | 2,563 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""This setup script can be used to run unit tests, manually install the
package, and upload the package to PyPI.
python3 setup.py --help - Display help.
python3 setup.py test - Execute unit tests.
python3 setup.py install - Install the package.
python3... | [
"seppo.git@marjaniemi.com"
] | seppo.git@marjaniemi.com |
aa4a3ec5872f3bd9c81e30dbe94c795cb732bc34 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GstVideo/VideoAggregatorConvertPadPrivate.py | 52c003b39ff29287c99298ff8a25c4d0fb82cb6b | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,481 | py | # encoding: utf-8
# module gi.repository.GstVideo
# from /usr/lib64/girepository-1.0/GstVideo-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes o... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
13bda21c18d48ad3eb96b1e6efb52ec7823dc23b | 81fbac614ad0f6795960a7a1f615c1a7d2938fa8 | /setup.py | cc4ce16119bf94cc444d7050bfea2abeedc051df | [
"MIT"
] | permissive | Rue-Foundation/eth-bloom | f0c4a0fc4b41b16cb1ed103c693a44c22464d805 | 930b740267992fc7c2fbc7f38eed8c1ea3c79d40 | refs/heads/master | 2021-08-20T09:03:18.794271 | 2017-11-28T17:50:35 | 2017-11-28T17:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='eth-bloom',
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
version='0.5.2',
description="""Python implementation of the Ethereum Trie structure""",
long_des... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
017b467592469746e83158bfd8f35d935f1207e6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_385/ch44_2019_04_22_23_24_01_514593.py | 3006efd7bceca5e33b58e34e164af9c84824b29a | [] | 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 | 148 | py | def soma_valores(soma):
lista = []
i=0
soma=0
while i<len(lista):
soma+= lista (i)
i+=1
return soma
| [
"you@example.com"
] | you@example.com |
97b909e4b45e90041f2deb5ee471e5666c2c7ab2 | b5f05426d811303c0bc2d37a7ebff67cc369f536 | /python/crawl/study_crawl.py | fb7bde6519e53d66be9f5bca6de409ba80581f1b | [] | no_license | chenwangwww/paddlehub | 54a310c2b627868aa22e6172497d60ddd2291d24 | 8583a705af6f82512ea5473f3d8961a798852913 | refs/heads/master | 2023-03-13T10:17:55.589558 | 2021-03-01T02:35:43 | 2021-03-01T02:35:43 | 293,667,091 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | import requests
from bs4 import BeautifulSoup
from dbCtr import ctr
from funcs import listToStr
rooturl = 'http://www.cn56.net.cn/diming/'
def insertFullData(tb, data):
for item in data:
result = {
'name': item.get_text(),
'link': item.get('href'),
}
ctr.insertData(... | [
"chenwangwww@sina.com"
] | chenwangwww@sina.com |
2b88fd7b2e949c24551cc1cf034ead697fef65d5 | f5a53f0f2770e4d7b3fdace83486452ddcc996e1 | /netbox/netbox/tests/test_api.py | 0ee2d78dc1d0d9df2df846ce9c7d29f4c43c5347 | [
"Apache-2.0"
] | permissive | fireman0865/PingBox | 35e8fc9966b51320d571b63967e352a134022128 | 0f00eaf88b88e9441fffd5173a1501e56c13db03 | refs/heads/master | 2023-01-20T07:55:59.433046 | 2020-03-15T13:36:31 | 2020-03-15T13:36:31 | 247,466,832 | 1 | 0 | Apache-2.0 | 2022-12-26T21:30:32 | 2020-03-15T12:59:16 | Python | UTF-8 | Python | false | false | 298 | py | from django.urls import reverse
from utilities.testing import APITestCase
class AppTest(APITestCase):
def test_root(self):
url = reverse('api-root')
response = self.client.get('{}?format=api'.format(url), **self.header)
self.assertEqual(response.status_code, 200)
| [
"fireman0865@gmail.com"
] | fireman0865@gmail.com |
ff1cfc0d4c92efc8ad7d7076ffb8e161a74bc3e5 | 709b1549033c9a547c67ee507fdc10b7e5d234ad | /octopus_deploy_swagger_client/models/resource_collection_library_variable_set_resource.py | 771a9e5e32ec2f7362c72fef0cb8929bf52d9827 | [
"Apache-2.0"
] | permissive | cvent/octopus-deploy-api-client | d622417286b348c0be29678a86005a809c77c005 | 0e03e842e1beb29b132776aee077df570b88366a | refs/heads/master | 2020-12-05T14:17:46.229979 | 2020-01-07T05:06:58 | 2020-01-07T05:06:58 | 232,135,963 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,367 | py | # coding: utf-8
"""
Octopus Server API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a
Generated by: https://github.com/swagger-api... | [
"d.jain@cvent.com"
] | d.jain@cvent.com |
e40a4cc665597fd71aa392ec795fc50fe1fd605a | 8e8e4becd0ccf35a4d2397eac05c46741941a3f2 | /examples/e2e/cli/04ignore/commands.py | 981edeb546ef06f9b1979175c86be2be29e5cb76 | [] | no_license | podhmo/monogusa | 13469c59e3a366f11e2d0b1d649991aceed40092 | 1129249cbfbf2d7925f69e484f1488799d2f637d | refs/heads/master | 2020-09-30T18:28:27.215942 | 2020-02-29T15:17:05 | 2020-02-29T15:17:05 | 227,347,182 | 0 | 0 | null | 2020-02-29T15:17:06 | 2019-12-11T11:13:47 | Python | UTF-8 | Python | false | false | 137 | py | from monogusa import ignore
def hello() -> None:
pass
def byebye() -> None:
pass
@ignore
def ignore_me() -> None:
pass
| [
"noreply@github.com"
] | podhmo.noreply@github.com |
947eeef7fb19a7b211cedd5dbc26edf741e2fb26 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_rut.py | cfbcb5070a3a50c4c9cb663637014cb5d57b50f5 | [
"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 | 499 | py |
#calss header
class _RUT():
def __init__(self,):
self.name = "RUT"
self.definitions = [u'a deep, narrow mark made in soft ground especially by a wheel', u'the period of the year during which particular male animals, especially deer and sheep, are sexually active: ', u'(of particular male animals) sexually excit... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5e16fc0774c5c554570383b8aa8d7141c4ca1c84 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/dials/test/command_line/test_integrate.py | 51a33e5e0fce78bea4ee4271c99a79e1a8c316d1 | [
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 11,135 | py | from __future__ import absolute_import, division, print_function
import json
import math
import os
import pickle
import shutil
from dials.array_family import flex
import procrunner
def test2(dials_data, tmpdir):
# Call dials.integrate
result = procrunner.run(
[
"dials.integrate",
... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
0c4043442316a2cf94c4f5be142ff5d603430e8d | 4b3ae6048ced0d7f88a585af29fa3a7b15005749 | /Python/Django/dojo_ninjas/apps/books_authors/models.py | 69cda65e65a601d28283fe6149c273df57bf038c | [] | no_license | ajag408/DojoAssignments | a6320856466ac21d38e8387bdcbbe2a02009e418 | 03baa0ff5261aee6ffedf724657b3a8c7cdffe47 | refs/heads/master | 2022-12-11T15:50:46.839881 | 2021-06-07T20:57:17 | 2021-06-07T20:57:17 | 79,872,914 | 0 | 0 | null | 2022-12-08T00:35:09 | 2017-01-24T02:58:15 | Python | UTF-8 | Python | false | false | 915 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Book(models.Model):
name = models.CharField(max_length = 255)
desc = models.TextField()
created_at = models.DateTimeField(auto_now_add = True)
updated_at = models.DateTimeField(auto_now = True)
de... | [
"akashjagannathan408@gmail.com"
] | akashjagannathan408@gmail.com |
73e8001de0324ba056ab3490a6008921eeda2852 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/efc5dac52cdfab25c3b163958830325f6898d3b6-<exec_command>-fix.py | c96b8e5b71acfcfaf0ad856b372cd9ccc0252b3f | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | def exec_command(self, cmd, in_data=None, sudoable=True):
' run a command on the local host '
super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable)
display.debug('in local.exec_command()')
executable = (C.DEFAULT_EXECUTABLE.split()[0] if C.DEFAULT_EXECUTABLE else None)
displa... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
273883a6eab58c2867888d3648f56983ccb66680 | c577f5380b4799b4db54722749cc33f9346eacc1 | /BugSwarm/scikit-learn-scikit-learn-423768208/buggy_files/sklearn/impute.py | b9afbc76bd2d8053e2234938c1f6e21776c954d5 | [] | no_license | tdurieux/BugSwarm-dissection | 55db683fd95f071ff818f9ca5c7e79013744b27b | ee6b57cfef2119523a083e82d902a6024e0d995a | refs/heads/master | 2020-04-30T17:11:52.050337 | 2019-05-09T13:42:03 | 2019-05-09T13:42:03 | 176,972,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,369 | py | """Transformers for missing value imputation"""
# Authors: Nicolas Tresegnie <nicolas.tresegnie@gmail.com>
# Sergey Feldman <sergeyfeldman@gmail.com>
# License: BSD 3 clause
from __future__ import division
import warnings
import numbers
import time
import numpy as np
import numpy.ma as ma
from scipy import ... | [
"durieuxthomas@hotmail.com"
] | durieuxthomas@hotmail.com |
3c0bf67436cd0e0e3ae2dbe2ecd91f8ab58dff95 | 047d6c1f1097e1a6055b4408e3bf80a9e01c7e5d | /avrae/misc/rspell.py | 09a575c4bea6b09ebe476924d931863a592b0eec | [] | no_license | countpauper/countpauper | 274246f50e297a9ec1cd8d7842149e0ef1da53bd | efb1eea44152e9a55aed1ee1478e29df447c24c3 | refs/heads/master | 2023-07-23T00:35:58.619290 | 2023-07-08T14:09:06 | 2023-07-08T14:09:06 | 20,813,292 | 4 | 1 | null | 2021-02-15T08:48:50 | 2014-06-13T18:11:51 | C | UTF-8 | Python | false | false | 358 | py | !alias rspell <drac2>
spell_db=spell_list=load_json(get_gvar('13dc3e0a-a230-40ca-8fb3-a39846300b18'))
args=argparse(&ARGS&)
levels=args.get('l',type_=int) or range(10)
spells=[n for n,p in spell_db.items() if p.level in levels]
if not spells:
return f'echo No spells {levels}'
spell=spells[randint(len(spells))]
... | [
"countpauper@gmail.com"
] | countpauper@gmail.com |
c205af018c3d6e98d0415f1a316565f2cdd8032e | d799ab92fff30ec3b4efc5aa079628971451c17a | /coilmq/tests/functional/test_basic.py | e4d4f999aa12ffc165ce4254075aa8d103028381 | [] | no_license | LucaLanziani/coilmq | cf87a3daed400ccc64548873827f148097d7d780 | dce6254801617b5612816dc8d95c3249a284e99a | refs/heads/master | 2021-01-15T16:00:07.231608 | 2014-12-18T12:29:30 | 2014-12-18T12:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,156 | py | # -*- coding: utf-8 -*-
"""
Functional tests that use the default memory-based storage backends and default
scheduler implementations.
"""
import zlib
from coilmq.auth.simple import SimpleAuthenticator
from coilmq.tests.functional import BaseFunctionalTestCase
__authors__ = ['"Hans Lellelid" <hans@xmpl.org>']
__copyr... | [
"hans@xmpl.org"
] | hans@xmpl.org |
388d6c6f32594b5c7de8fdd8ce1816fdb26a9b8c | b11da8046764b45911f358593db746d93005d359 | /crew/__init__.py | 95f5e4521e0d8d3b5ccddc3e348987c721673216 | [] | no_license | linearregression/crew | 4f1848ca587e3fac777e305fb5ae481ec3df0c4a | d6c01f5ff2ffc83d5a672206ad2819968887c778 | refs/heads/master | 2021-01-17T20:58:37.969353 | 2015-06-16T15:42:04 | 2015-06-16T15:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from .exceptions import TimeoutError, ExpirationError, TaskError, DuplicateTaskId
| [
"me@mosquito.su"
] | me@mosquito.su |
ec540c52386303d5ed7435b2de48a96f7ed7af0b | ff5eea95bb0827cb086c32f4ec1c174b28e5b82d | /gammapy/background/template.py | 73305041b2c8006fd38496bb6d09cdbd15753079 | [] | no_license | pflaumenmus/gammapy | 4830cc5506a4052658f30077fa4e11d8c685ede0 | 7b5caf832c9950c886528ca107203ce9b83c7ebf | refs/heads/master | 2021-01-15T23:27:46.521337 | 2013-09-25T14:23:35 | 2013-09-25T14:23:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Template background estimation
Reference: http://adsabs.harvard.edu/abs/2003A%26A...410..389R
"""
from __future__ import division
| [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
2685dacd5f1d60f180f0a4944f949508f8762f83 | 8ce2ef401bfa8a7edc075f30671ceb7e12001566 | /tensorflow/contrib/all_reduce/python/all_reduce_test.py | 304fd7fb8a37f1aab91f47d754eb2efba81304a5 | [
"Apache-2.0"
] | permissive | TomZRoid/tensorflow | e8167a31dcd707279365c8ee5ec283c00edaafba | 89390faf68c153ef8bea0e20ba128c0d54cee0e0 | refs/heads/master | 2020-03-30T22:38:50.662448 | 2018-11-08T06:25:34 | 2018-11-08T06:25:34 | 151,673,686 | 2 | 0 | Apache-2.0 | 2018-10-05T05:15:45 | 2018-10-05T05:15:44 | null | UTF-8 | Python | false | false | 10,522 | py | # Copyright 2017 The TensorFlow 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
cb9b245593a93be30c210ad1b70214a87685c0a0 | fa32f7fe4068323b719725558423927ad307cc4b | /build_isolated/rostopic/catkin_generated/pkg.develspace.context.pc.py | 531b3ad0a23091aaac1729f6620ee17b90c89e2e | [] | no_license | CJohnson5136/ros_catkin_ws | d07ee8c20bc1ebe6c05abdea24ef1f5dab14954b | 05193a7e587ab82e696c66176b151c43d2bcef82 | refs/heads/master | 2021-05-09T03:05:12.373334 | 2018-01-28T03:13:33 | 2018-01-28T03:13:33 | 119,227,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rostopic"
PROJECT_SPACE_DIR = "/home/... | [
"cody.johnson@ucollege.edu"
] | cody.johnson@ucollege.edu |
0313e4040f7e129dd7f7dc51cb61c6c53b03576d | 3dcc44bf8acd3c6484b57578d8c5595d8119648d | /casp9_scripts/truncate_rosetta_files.py | 57c62df38219834ef0e52eba352a85cd322a04aa | [] | no_license | rhiju/rhiju_python | f0cab4dfd4dd75b72570db057a48e3d65e1d92c6 | eeab0750fb50a3078a698d190615ad6684dc2411 | refs/heads/master | 2022-10-29T01:59:51.848906 | 2022-10-04T21:28:41 | 2022-10-04T21:28:41 | 8,864,938 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | #!/usr/bin/python
from os import popen,system
from os.path import exists,dirname,basename,expanduser
import sys
import string
from glob import glob
indir = sys.argv[1]
outdir = sys.argv[2]
PYDIR = expanduser('~rhiju')+'/python/'
assert( exists( PYDIR ) )
inputres = 0
if len(sys.argv)>4:
startseq = int(sys.argv[... | [
"rhiju@stanford.edu"
] | rhiju@stanford.edu |
fe461e7e82c4c955bb78b8eb572cb70236f500b7 | 9508879fcf1cff718f3fe80502baff8b82c04427 | /misc/divide_and_conquer/max_subarray.py | cb0fa14f92663cf7a62457fc0285511c67efa967 | [] | no_license | davidozhang/hackerrank | e37b4aace7d63c8be10b0d4d2bffb4d34d401d55 | bdc40d6ff3e603949eb294bbc02a1e24a4ba5b80 | refs/heads/master | 2021-05-04T11:31:59.110118 | 2017-11-15T09:17:27 | 2017-11-15T09:17:27 | 47,906,672 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | #!/usr/bin/python
def max_subarray(l, left, right):
if left == right:
return l[left]
else:
middle = (left+right)/2
l1 = max_subarray(l, left, middle)
l2 = max_subarray(l, middle+1, right)
return max(l1, l2, max_crossing(l, left, middle, right))
def max_crossing(l, left, middle, right):
left_sum, right_s... | [
"davzee@hotmail.com"
] | davzee@hotmail.com |
b1265bbbf4df82bff42bdc625d6cc5ff1f518356 | e5838acd890b711d53fa7b37e0405c236dd52bb2 | /trails/feeds/emergingthreatscip.py | 63efdf9f7f92e5e3dc6e6c4843a8a14c2c631072 | [
"MIT"
] | permissive | stamparm/maltrail | 34c40fe593f82c5f78d511c21a1cbe049aa04856 | 21422d7acbdfd1157c0b2188b5050f74d0adecbb | refs/heads/master | 2023-08-31T20:08:48.881765 | 2023-08-31T19:39:55 | 2023-08-31T19:39:55 | 27,561,102 | 5,663 | 1,193 | MIT | 2023-08-14T03:13:03 | 2014-12-04T21:33:46 | Python | UTF-8 | Python | false | false | 655 | py | #!/usr/bin/env python
"""
Copyright (c) 2014-2023 Maltrail developers (https://github.com/stamparm/maltrail/)
See the file 'LICENSE' for copying permission
"""
from core.common import retrieve_content
__url__ = "https://rules.emergingthreats.net/open/suricata/rules/compromised-ips.txt"
__info__ = "compromised (suspi... | [
"miroslav.stampar@gmail.com"
] | miroslav.stampar@gmail.com |
7f953edebb9ebf147f2adabc9dbc217311cbcf9e | c3b766858bacfec396b839fd881f719db5ef5fc5 | /setup.py | ef9419515da41c4cfa21ea315f99c875c440ad3e | [
"MIT"
] | permissive | ferchaure/spikesorters | 2e20dcdeac67c4e5b442628fadc851c38fc090d5 | 8577572c63c531a239452cdb48f631ec1f490121 | refs/heads/master | 2021-06-16T07:49:31.758572 | 2021-04-24T15:22:11 | 2021-04-24T15:22:11 | 254,942,645 | 0 | 0 | MIT | 2020-04-11T19:44:04 | 2020-04-11T19:44:03 | null | UTF-8 | Python | false | false | 990 | py | from setuptools import setup, find_packages
d = {}
exec(open("spikesorters/version.py").read(), None, d)
version = d['version']
long_description = open("README.md").read()
pkg_name = "spikesorters"
setup(
name=pkg_name,
version=version,
author="Alessio Buccino, Cole Hurwitz, Samuel Garcia, Jeremy Magland... | [
"alejoe9187@gmail.com"
] | alejoe9187@gmail.com |
2a36e5cd3f010c2f1259d602719aaf71b79d3889 | a5e56a1f20f41714987fd8567359b9b6ab4b1a97 | /src.baseline/src/chapter19/ks19_07/mainwindow.py | 31df047b8011a03a20b98a8ec8d0fa14e413f893 | [] | no_license | mach8686devops/pyside-example | cc40996b888b71b73334bffecf368c640e367129 | 090710b60fc55dbe3c8fb14a8a2c15150659704a | refs/heads/main | 2023-04-16T08:25:03.055200 | 2021-04-25T14:08:50 | 2021-04-25T14:08:50 | 361,446,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,865 | py | # -*- coding: utf-8 -*-
from PyQt5.QtWidgets import QMainWindow, QAction, QActionGroup, QMenu, QLabel, QFrame, QMessageBox
from PyQt5.QtGui import QIcon, QKeySequence
from PyQt5.QtCore import Qt, QFile, QTextStream, pyqtSignal, QThread
from textedit import CTextEdit
import os
from splashscreen import CSplashScree... | [
"zhangjohn202@gmail.com"
] | zhangjohn202@gmail.com |
b44795123712f010089fc09f81ce2ff9435eb6cb | c849188f25de5cb87d9278aa7cfd0772c698c870 | /account_report/hooks.py | 4916696af10ec7bf8ad6c2c28c86dfe43bf6f541 | [
"MIT"
] | permissive | dineshpanchal93/helpremove | 19c36131dc2d057ddfaf316c5f964cd211878e1b | 37e03e922645d52a7bc5d293fa936b0b82017715 | refs/heads/master | 2020-03-27T10:35:04.729818 | 2019-02-09T07:24:45 | 2019-02-09T07:24:45 | 146,430,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "account_report"
app_title = "Account Report"
app_publisher = "Scantech Laser"
app_description = "Account Report"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_email = "it@scantechla... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
ef64daf27156245233a072e330507895eb46631f | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-storage/azure/mgmt/storage/v2018_02_01/models/immutability_policy_py3.py | 443d619aebb4752e5b7a550f3121f3b8f72c4077 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,824 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
6d1ebf844e5baa83b39344681b4d72082c9febf4 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.CJK/Sans_8/pdf_to_json_test_Latn.CJK_Sans_8.py | b43ef12d4a3dacb970cc1f264903b07fa9b8562d | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.CJK/Sans_8/udhr_Latn.CJK_Sans_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
392606df599ab62daa2196de81f893ba6d951e9a | 3d705ec48c94373817e5f61d3f839988910431e3 | /lib/framework/executor_factory.py | eb8e1df9bd2b302e3f38b0f6e9fbf3d701c5b010 | [] | no_license | namesuqi/zeus | 937d3a6849523ae931162cd02c5a09b7e37ebdd8 | 3445b59b29854b70f25da2950016f135aa2a5204 | refs/heads/master | 2022-07-24T14:42:28.600288 | 2018-03-29T08:03:09 | 2018-03-29T08:03:09 | 127,256,973 | 0 | 0 | null | 2022-07-07T22:57:57 | 2018-03-29T07:53:16 | Python | UTF-8 | Python | false | false | 1,231 | py | # coding=utf-8
"""
The factory of Test Executor
__author__ = 'zengyuetian'
"""
from lib.framework.executor_server import *
from lib.framework.executor_sdk import *
from lib.framework.executor_system import *
from lib.framework.executor_idc import *
from lib.framework.executor_leifeng import *
from lib.framework.exec... | [
"suqi_name@163.com"
] | suqi_name@163.com |
3c2efb6cba7827d71aa97b9a1dc2926375aafbe1 | d6e8601fa673876cb079b4eeaae6b40427371772 | /neurolib/encoder/normal.py | 7c183e035822c7ceeba4a1b916ce275b9bc21196 | [] | no_license | cunningham-lab/_neurolib_deprecated | 8e70703d32701983a8fed9df489360acba856831 | bf44a6b4c40347caeacd4fd38dd9d1c1680c9a65 | refs/heads/master | 2020-03-30T19:08:58.065181 | 2018-10-26T19:49:12 | 2018-10-26T19:49:12 | 151,530,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,911 | py | # Copyright 2018 Daniel Hernandez Diaz, Columbia University
#
# 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 applicabl... | [
"dh2832@columbia.edu"
] | dh2832@columbia.edu |
0ba77e2df756227b36206e5f571302ee7607a904 | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/openflowlayer3learningrate/testconfig/testconfig.py | 8610e460cf2b0510e643c2f4857f4fd09141ad33 | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,490 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# 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,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
f03ff950e29f53407416b268cd4acfd7d155443a | bbf7787d94e97d4e0c9bceb46203c08939e6e67d | /django-python/static-folder/login/views.py | 0e51c75484eddd9ea3a346b0875ef9d67ba47164 | [] | no_license | llanoxdewa/python | 076e6fa3ed2128c21cdd26c1be6bc82ee6917f9c | 6586170c5f48827a5e1bcb35656870b5e4eed732 | refs/heads/main | 2023-06-16T05:31:52.494796 | 2021-07-09T09:04:30 | 2021-07-09T09:04:30 | 362,782,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from django.shortcuts import render
def loginPage(req):
data = {
'title':'login-page',
'header':'selamat datang di login page',
'fileG':"login/img/pemandangan-laut-es.png",
'fileCss':"login/css/style.css"
}
return render(req,'login/index.html',data)
| [
"llanoxdew4@gmail.com"
] | llanoxdew4@gmail.com |
9c7f7b6ddabf4942b20c4d5a3a928eb8dcdb991a | 1424812c4f211d3d5e356e8b3889a689162062f3 | /arcade/python/07_simple_sort.py | 0effd8a406a26d4473e379c6084693df95b8d82e | [] | no_license | nazomeku/codefights | cb7d3c40be0809695ec524a87c88dbebcf5b47bc | b23f6816f9b5b0720feac1c49c31163923e0a554 | refs/heads/master | 2021-01-22T12:49:35.905165 | 2017-11-21T19:03:37 | 2017-11-21T19:03:37 | 102,357,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """Write a function that, given an array ofintegers arr, sorts its elements
in ascending order."""
def simple_sort(arr):
n = len(arr)
for i in range(n):
j = 0
stop = n - i
while j < stop - 1:
if arr[j] > arr[j + 1]:
temp = arr[j]
arr[j] = arr... | [
"cols.nazo@gmail.com"
] | cols.nazo@gmail.com |
9861697b7c1a4508bd7837414f8d091fc945c6be | 57b4ee27801c23cdd6a6d974dbc278f49740f770 | /re100-l.py | 55bc9b3a71d50c10ac3093535afa7ffe0b7a4c4b | [] | no_license | zwhubuntu/CTF-chal-code | 4de9fc0fe9ee85eab3906b36b8798ec959db628c | 8c912e165f9cc294b3b85fab3d776cd63acc203e | refs/heads/master | 2021-01-20T18:39:26.961563 | 2017-09-25T14:07:56 | 2017-09-25T14:07:56 | 62,563,092 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | '''
@author: wenhuizone
'''
a=[23,5,1,2,4,6,734,3,12,98]
tmp=''
output=''
'''
for ( i = 1; i != 10; ++i )
{
v5 = *(&v6 + i);
for ( j = i - 1; j >= 0 && *(&v6 + j) < v5; --j )
*(&v6 + j + 1) = *(&v6 + j);
*(&v6 + j + 1) = v5;
}
'''
for i in range(1,len(a)):
tmp=a[i]
for j in range(0,i-1... | [
"zwhubuntu@hotmail.com"
] | zwhubuntu@hotmail.com |
4ead3a4d6b2dd62eb5e2c44cd2fdb8c23e30b661 | b424c3262c9eacf8dd4230019eba7e05a9b95461 | /.history/ndn_server_20200530135406.py | 840339130aa5f97be97960d50d1841aebddd005c | [] | no_license | leonerii/aer_tp | 30e47f29bcda69512718a6279a7cad32e9a01b14 | d8f46b188b5be9f315dd155ed147880ce7dce169 | refs/heads/master | 2022-09-30T03:27:24.375971 | 2020-06-04T14:23:16 | 2020-06-04T14:23:16 | 245,219,806 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | from threading import Thread
from ndn_receive_handler import Receive_Handler
from ndn_hello_sender import NDN_HelloSender
import socket
class NDN_Server(Thread):
def __init__(self, localhost, port=9999, data_ids={}):
Thread.__init__(self)
self.localhost = localhost
self.port = port
... | [
"aseie@Adrianos-MBP.lan"
] | aseie@Adrianos-MBP.lan |
a048bde9c8c91cb49b73978b44bfbf744c108af1 | a2af438d5180922fb55b0805f9702d4b93103202 | /setup.py | 0001d547f35d284ce13cca0cfcc1883359573c59 | [
"WTFPL"
] | permissive | JJediny/django-leaflet-storage | cff60100a8d721d202bb913051dc2b1abd89a53c | eb4dd4632f09241255bc13e30970ec55fafed816 | refs/heads/master | 2021-01-18T10:57:16.198138 | 2015-05-08T04:22:06 | 2015-05-08T04:22:06 | 32,661,595 | 0 | 2 | null | 2015-03-22T04:21:35 | 2015-03-22T04:21:35 | null | UTF-8 | Python | false | false | 1,342 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
from setuptools import setup, find_packages
import leaflet_storage
long_description = codecs.open('README.rst', "r", "utf-8").read()
with open('requirements.pip') as reqs:
install_requires = [
line for line in reqs.read().split('\n') if (line ... | [
"yb@enix.org"
] | yb@enix.org |
14bdf727a834b4e51ab11f617e8bd79033ee437b | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/medium/6_3.py | c29fdaedebb04ad1825458082585935d28145298 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,845 | py | Integrating TinyMCE with Django
TinyMCE is a online rich text editor which is fully flexible and provides
customisation. mostly used to get dynamic data such as articles in GFG and
much more, their is no static database for posts
**Installation –**
To integrate it with Django web app or website you need... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
c98d726a4abb22a8daeee2ba7c22d6dde58d525e | 7858da232b9dbfb9c32d6900de51e14e5d48e241 | /lesson_7_3_2.py | 1c43af55a0b611e9985a9c1383853dc4ac62717a | [] | no_license | Mameluke8888/QA_Automation_Lesson_7_3 | 4069e202ca3f5a0de1f1a0734654f7fd19e12ed5 | 9d2b5735da2fe4850c15236e675cc48b24d16a1d | refs/heads/main | 2023-04-27T19:32:48.868635 | 2021-05-06T09:06:10 | 2021-05-06T09:06:10 | 364,848,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # Exercise #2
# Find the mistake in the following code snippet and correct it:
# corrected snippet
def compute_patterns(inputs=None, pattern="new pattern"):
if inputs is None:
inputs = []
inputs.append(pattern)
patterns = ["a list based on "] + inputs
return patterns
# just some tests - you ... | [
"evgenyabdulin@Evgenys-Mac-mini.local"
] | evgenyabdulin@Evgenys-Mac-mini.local |
f4a3176508cead2efd0dac5166b08d926c5466c8 | 3f7d5999bb7e5a75454c8df2c5a8adcd1a8341ff | /tests/unit/modules/network/fortios/test_fortios_system_tos_based_priority.py | 830074ea6df0b233f478eb88f93417570258ce60 | [] | no_license | ansible-collection-migration/ansible.fortios | f7b1a7a0d4b69c832403bee9eb00d99f3be65e74 | edad6448f7ff4da05a6c856b0e7e3becd0460f31 | refs/heads/master | 2020-12-18T13:08:46.739473 | 2020-02-03T22:10:49 | 2020-02-03T22:10:49 | 235,393,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,345 | py | # Copyright 2019 Fortinet, Inc.
#
# This program 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, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
6bf7f969c43b526df2273d8c69f24b6846b19657 | 96b6f183cda10aac03f9fb4ffa11cba6445c35aa | /algoriz/settings.py | 57f2ac9bf3f2798173af3decde8ebb0931baa17b | [] | no_license | akshar-raaj/algoriz | 3a6ea60b15dc35e848a5534cdd7f6b047fd9a7d3 | 21e0797a7d19248043c5810fed89ba7c50e551f9 | refs/heads/master | 2020-04-03T03:38:53.705683 | 2018-10-27T19:51:31 | 2018-10-27T19:51:31 | 154,991,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,429 | py | """
Django settings for algoriz project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"akshar@agiliq.com"
] | akshar@agiliq.com |
6188b38f2b472324d725074b31351f8de45d833f | 94b4177306b898b86601cae5ff1e580eb95e502f | /mysite/settings.py | 54d6592cf1cb0a445fbc3a37c96516f7e8d54fef | [] | no_license | inho2736/my-first-blog | c797b0d4b613fa17ac3b23962d39835df514926b | 591750ee222425fc96910040b6b84f4bc4236a7e | refs/heads/master | 2020-03-22T07:39:31.308553 | 2018-07-04T11:53:32 | 2018-07-04T11:53:32 | 139,715,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.14.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"you@example.com"
] | you@example.com |
cce11633fa807ab1e0c49731aec532e272ae6b07 | 00e16b7e658d3e173dfd626de2463defb9957684 | /goodbye.py | 3fd73bb00434824ea6cff73115fd84e642204a77 | [] | no_license | mohira-books/python-cli-introduction | 96cd05bc849dfbdc6d7c01425e8edf2aea316454 | 2fa9501e43c4a301657d3a4ddd1aed11cdfeb8d8 | refs/heads/main | 2023-01-31T03:00:32.263834 | 2020-12-07T08:28:22 | 2020-12-14T09:46:06 | 319,252,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | def main():
print('Good Bye!')
if __name__ == '__main__':
main()
| [
"shukatsudaison@gmail.com"
] | shukatsudaison@gmail.com |
2d89ffe2040450be51655549fc2da71608ecba62 | b6c931fea41658914844ceae8906a2cb03294614 | /math/0x06-multivariate_prob/0-mean_cov.py | 8ae4bbede7e0867b9a69d2b891f075cfb6ace21b | [] | no_license | sidneyriffic/holbertonschool-machine_learning | 05ccbe13e1b4b9cb773e0c531a1981a7970daa1b | 56356c56297d8391bad8a1607eb226489766bc63 | refs/heads/master | 2021-07-04T07:45:22.919076 | 2020-12-19T01:09:01 | 2020-12-19T01:09:01 | 207,622,396 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | #!/usr/bin/env python3
"""Return means and covariance matrix of a multivariate data set"""
import numpy as np
def mean_cov(X):
"""Return means and covariance matrix of a multivariate data set"""
if type(X) != np.ndarray or len(X.shape) != 2:
raise TypeError("X must be a 2D numpy.ndarray")
... | [
"sidneyriffic@gmail.com"
] | sidneyriffic@gmail.com |
c0db67f8c6058f56c14538cc13211ec25f597b7b | ca8d183f5d6f1f260483a3555efd05870fe1d891 | /com_blacktensor/cop/fin/model/finance_dto.py | 1bcd1fd81dbed5d0d30270dcf7bec28453dc22d2 | [
"MIT"
] | permissive | Jelly6489/Stock-Proj | b559304f10614122ddaa00e39c821a65faa9f91d | 3e7b1ad5cddc5b142f0069e024199fe969c7c7e8 | refs/heads/main | 2023-01-13T17:18:33.729747 | 2020-11-13T08:19:33 | 2020-11-13T08:19:33 | 312,512,688 | 0 | 0 | MIT | 2020-11-13T08:11:04 | 2020-11-13T08:11:04 | null | UTF-8 | Python | false | false | 2,764 | py | import csv
import json
import pandas as pd
from com_blacktensor.ext.db import db, openSession, engine
# from com_blacktensor.ext.routes import Resource
class FinanceDto(db.Model):
__tablename__ = 'finance'
__table_args__={'mysql_collate' : 'utf8_general_ci'}
no : int = db.Column(db.Integer, primary_key = T... | [
"rlaalsrlzld@naver.com"
] | rlaalsrlzld@naver.com |
432a27bf6bb59950798f0e4f47ac1df8b7450b5c | e32a75c44ef9c964bc5f97712c8e0e845ee3f6ca | /models_vqa/question_prior_net.py | be677105c8efe0cf16b6a818c5e33d76fc1e7e38 | [] | no_license | ankita-kalra/ivqa_belief_set | 29c40ec4076433ac412728aea603e4e69ce530eb | 6ebba50ff001e1af6695bb3f4d2643e7072ee153 | refs/heads/master | 2020-04-05T17:17:00.834303 | 2018-08-27T09:59:16 | 2018-08-27T09:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | from __future__ import absolute_import, division, print_function
import tensorflow as tf
from tensorflow import convert_to_tensor as to_T
from tensorflow.python.ops.nn import dropout as drop
from n2mn_util.cnn import fc_layer as fc, fc_relu_layer as fc_relu
# The network that takes in the hidden state of the
def qu... | [
"liufeng@seu.edu.cn"
] | liufeng@seu.edu.cn |
8b0efbb4b751dd8f8ecb1415f39e7f826639b65b | 7060196e3773efd535813c9adb0ea8eca9d46b6c | /stripe/api_resources/radar/value_list_item.py | be28d2723dbe75b3c3803bf54a5689df657277d2 | [
"MIT"
] | permissive | henry232323/stripe-python | 7fc7440a8e8e0a57a26df577d517d9ba36ca00d0 | 953faf3612522f4294393d341138800691f406e0 | refs/heads/master | 2020-05-01T06:27:05.154381 | 2019-03-23T19:21:20 | 2019-03-23T19:21:20 | 177,330,547 | 0 | 0 | MIT | 2019-03-23T19:17:54 | 2019-03-23T19:17:54 | null | UTF-8 | Python | false | false | 326 | py | from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class ValueListItem(
CreateableAPIResource, DeletableAPIResource, ListableAPIResource
):
OBJECT_NAME = "radar.value_list_... | [
"ob@stripe.com"
] | ob@stripe.com |
d1d63f4db31cb55a4752c2393b7ca13a60c16749 | 814fd0bea5bc063a4e34ebdd0a5597c9ff67532b | /mojo/mojo_edk_tests.gyp | f3809b4e9cbd7778f1890afa25d022e375b653cd | [
"BSD-3-Clause"
] | permissive | rzr/chromium-crosswalk | 1b22208ff556d69c009ad292bc17dca3fe15c493 | d391344809adf7b4f39764ac0e15c378169b805f | refs/heads/master | 2021-01-21T09:11:07.316526 | 2015-02-16T11:52:21 | 2015-02-16T11:52:21 | 38,887,985 | 0 | 0 | NOASSERTION | 2019-08-07T21:59:20 | 2015-07-10T15:35:50 | C++ | UTF-8 | Python | false | false | 10,276 | gyp | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'mojo_variables.gypi',
],
'targets': [
{
'target_name': 'mojo_edk_tests',
'type': 'none',
'dependencies': [
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
66f9427f087031cb76ce0ece746fb895f97913ca | 59c34dcbcc14b5482d5c41f174f5221b56ab87f0 | /api.py | 9270e163b157c793847eab967d0d7f3ba505c71d | [
"MIT"
] | permissive | wwhalljr/api.spaceprob.es | b73b670b65ff47537b1db7e02991134122a7807f | 20ee8f9d14314c83f07ec31d62601a75b62c7d44 | refs/heads/master | 2020-12-31T05:25:29.978826 | 2016-03-15T19:00:37 | 2016-03-15T19:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,401 | py | from __future__ import print_function
import os
import sys
import redis
import logging
import ephem
import requests
from flask import Flask, render_template, redirect, jsonify
from json import loads, dumps
from util import json, jsonp, support_jsonp
from scrapers.dsn import get_dsn_raw
app = Flask(__name__)
REDIS_URL ... | [
"lballard.cat@gmail.com"
] | lballard.cat@gmail.com |
555210dfa338e3acc4ba9d4c8dd080d07b9e8135 | 115b5356242176b8873ae7e43cd313e41cbd0ee6 | /compustat/oct22/graph.py | ecfefa51ab30673d385a339b280ebcf6edfdde87 | [] | no_license | squeakus/bitsandbytes | b71ec737431bc46b7d93969a7b84bc4514fd365b | 218687d84db42c13bfd9296c476e54cf3d0b43d2 | refs/heads/master | 2023-08-26T19:37:15.190367 | 2023-07-18T21:41:58 | 2023-07-18T21:42:14 | 80,018,346 | 2 | 4 | null | 2022-06-22T04:08:35 | 2017-01-25T13:46:28 | C | UTF-8 | Python | false | false | 4,775 | py | """A module for plotting results"""
import pylab, pygame, sys
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
filetype = '.png'
def plot_3d(results_list, title):
"""show all results in parallel"""
x_range = range(len(results_list[0]))
fig = plt.figure()
#... | [
"jonathanbyrn@gmail.com"
] | jonathanbyrn@gmail.com |
73e6777165b5b279414a6bc9d929bcc99ec5ba2d | 4e7946cc3dfb2c5ff35f7506d467c06de0e5e842 | /dlldiag/common/FileIO.py | be06510d944586dde4e451fb901b193965ea2f8e | [
"MIT"
] | permissive | GabLeRoux/dll-diagnostics | 745a346ee6076a5e55dc852601afa2a5b5f99994 | df579e03dff28645d42eb582f44cb9d340ba08e5 | refs/heads/master | 2023-02-27T18:54:37.074222 | 2021-01-29T07:39:31 | 2021-01-29T07:39:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | class FileIO(object):
'''
Provides functionality for performing file I/O
'''
@staticmethod
def writeFile(filename, data):
'''
Writes data to a file
'''
with open(filename, 'wb') as f:
f.write(data.encode('utf-8'))
| [
"adam.rehn@my.jcu.edu.au"
] | adam.rehn@my.jcu.edu.au |
c92c67b45c126a4e1149a656da12ecf610334d07 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02836/s788041328.py | bf63c9bc5433a668bac86ce231dadf570827c52c | [] | 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 | 178 | py | S=input()
N=len(S)
ans=0
T=""
U=""
if N%2==0:
T=S[:N//2]
U=S[N//2:][::-1]
else:
T=S[:N//2]
U=S[N//2+1:][::-1]
for i in range(N//2):
if T[i]!=U[i]:
ans+=1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bf72c107e63b31d4671dcb3dfe4c0a70cbdb005f | 5b5c9a286e217340f816901b843281129ad0f596 | /plaso/cli/storage_media_tool.py | 2fee45d4f6963c9d263b32b6e95b687ddddd6c96 | [
"Apache-2.0"
] | permissive | aarontp/plaso | 403c43a47d5833a5ed3540cce907982bebaeac3c | 0ee446ebf03d17c515f76a666bd3795e91a2dd17 | refs/heads/master | 2021-01-20T23:41:01.382721 | 2016-10-11T19:47:21 | 2016-10-11T19:47:21 | 67,898,934 | 1 | 0 | null | 2016-09-10T23:07:53 | 2016-09-10T23:07:53 | null | UTF-8 | Python | false | false | 40,975 | py | # -*- coding: utf-8 -*-
"""The storage media CLI tool."""
import getpass
import logging
import os
import sys
from dfvfs.analyzer import analyzer as dfvfs_analyzer
from dfvfs.analyzer import fvde_analyzer_helper
from dfvfs.credentials import manager as credentials_manager
from dfvfs.helpers import source_scanner
from ... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
715ba8bc8516cdd86958db4fbcfa74c56889341d | a7d5fad9c31dc2678505e2dcd2166ac6b74b9dcc | /tests/functional/utilities/authorization.py | aa7a619aa2545fac7fecf6f81b16c2cd68a23581 | [
"MIT"
] | permissive | mitsei/dlkit | 39d5fddbb8cc9a33e279036e11a3e7d4fa558f70 | 445f968a175d61c8d92c0f617a3c17dc1dc7c584 | refs/heads/master | 2022-07-27T02:09:24.664616 | 2018-04-18T19:38:17 | 2018-04-18T19:38:17 | 88,057,460 | 2 | 1 | MIT | 2022-07-06T19:24:50 | 2017-04-12T13:53:10 | Python | UTF-8 | Python | false | false | 20,086 | py | import pickle
from copy import deepcopy
from dlkit.primordium.id.primitives import Id
from dlkit.primordium.type.primitives import Type
from dlkit.runtime import PROXY_SESSION, RUNTIME
from dlkit.runtime.proxy_example import User, SimpleRequest
from dlkit.runtime import configs
BOOTSTRAP_VAULT_GENUS = Type(**{
... | [
"cjshaw@mit.edu"
] | cjshaw@mit.edu |
a7adbadd3ec5c7f3767cfb61f2e5937a2539c716 | 390f5efd244d9f9dba429702bf6edea6d920b604 | /simple_linear_regression.py | 1fc64badd3529b835b4fd4a272ae39864d51d18c | [] | no_license | pkdism/Machine-Learning-A-Z | a8a936ed607fe5f805f0e1aa54092f69a159bbce | 750c4e12dea53924323f94bb11bae3660ae89c17 | refs/heads/master | 2020-09-01T14:28:09.938111 | 2020-04-01T11:19:53 | 2020-04-01T11:19:53 | 218,979,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | # Data Preprocessing
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Import the dataset
dataset = pd.read_csv('Salary_Data.csv')
X = dataset.iloc[:, :-1].values # matrix of features
y = dataset.iloc[:, 1].values # dependent variable
# Splitting the dataset into the ... | [
"pawan.dwivedi94@gmail.com"
] | pawan.dwivedi94@gmail.com |
7b5cc67b6668a3f476faa1fb8f3b6964c3dd2f05 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/websms/testcase/firstcases/testcase7_024.py | 7dd0b4d9b7d57caf3af1ef44d6cac15cba5129d7 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,301 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
c8ba62216d55b8af369b3c3e792bbf4792c047b3 | a32ebed23c068ffcf88feccc795205fca9b67b89 | /python_curso-em-video_guanabara/Mundo 1/a10_x033.py | 0c4f87591963ae71bd6312074bbd375691c98f1d | [] | no_license | AlefAlencar/python-estudos | c942bc20696442c62782fe7e476cd837e612632e | 7e3807e6dbdec8037d688a986933eb8fd893c072 | refs/heads/master | 2023-08-27T23:38:30.397907 | 2021-11-03T02:18:51 | 2021-11-03T02:18:51 | 412,178,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # LEIA 3 números
# RETORNE qual é o maior e qual é o menor
import math
n1 = int(input('Digite um número: '))
n2 = int(input('Digite outro: '))
n3 = int(input('Digite só mais um outro: '))
n = [n1, n2, n3]
n.sort()
print('O menor número é o {}, e o maior é o {}'.format(n[0], n[-1]))
| [
"89526613+AlefAlencar@users.noreply.github.com"
] | 89526613+AlefAlencar@users.noreply.github.com |
b0a3b3b326b43c4ec7aa7be3ba5ecd6387a7746f | 5ffe544f2521eec78763a7e46e4a343ea37017df | /base/urls.py | 9ce018ec8ea3c3a28f6e1855c0bb434d27c6ef26 | [] | no_license | shobhit1215/Todo-List | a12b534dd83b11f842e7d30ecb7518380158e387 | 9d4abae45a3d8b64ccb7f4d62cf19eef95aab4b1 | refs/heads/main | 2023-05-20T06:02:20.199679 | 2021-06-12T08:26:10 | 2021-06-12T08:26:10 | 370,610,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | from django.urls import path
from . import views
from django.contrib.auth.views import LogoutView
urlpatterns = [
# urls for basic CRUD functionalities
path('login/',views.CustomLoginView.as_view(),name='login'),
path('logout/',LogoutView.as_view(next_page='task'),name='logout'),
path('register/',views... | [
"imshobhit.sb@gmail.com"
] | imshobhit.sb@gmail.com |
daa3132c4e9943f96e7f3a82def5e1ddf2f19fce | 0a2fb03e288ab52c9f5c4a7a93151866543de259 | /examples/wav2vec/wav2vec_featurize.py | 445a5d0213c14e676889308b74c64a2f80070c3a | [
"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 | 7,110 | py | #!/usr/bin/env python3
# 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.
"""
Helper script to pre-compute embeddings for a wav2letter++ dataset
"""
import argparse
import glob
import os
from ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4c8749b2d80f01ba74b7c6db161be159e1559f96 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2969/60797/319692.py | 2a883483b572dc58a26b0baa0d5faca6cc0fe850 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | # tag
if __name__ == '__main__':
s = input()
if s=='ababa':
print('2 4 5')
elif s=='XXQQQQTTTT':
print('1 2 10')
else:
print(s)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
50ac5625581762c31d894f94c285e8771cc518e4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/534.py | fd9f27d19f9b6a1fc1d4744bb6ffa2d71c37595c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | #!/usr/bin/python3
import getopt
import sys
if __name__ == "__main__":
verbose = False
fname = "input.txt"
if sys.version_info[0] < 3:
print("This script requires Python 3. (You are running %d.%d)" % (
sys.version_info[0], sys.version_info[1]))
sys.exit()
try:
o... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0decaa5a7e8de4ca806bec782fbfaf910bda6d33 | 0da100539db20cbac6af3da753b1e9a0540c6b63 | /uptime.py | 47c5fc36f4adaf7edf0addcd6a82371bb7645592 | [] | no_license | nlo-portfolio/uptime | f46f178232a23e2ee03cb05659987db74f4940f8 | 4cc2a38be7649c7e9e696239f0c9b9166935946c | refs/heads/master | 2023-06-29T03:42:16.465186 | 2021-02-01T16:00:00 | 2021-02-01T20:00:00 | 379,499,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,867 | py | #!/usr/bin/env python
import curses
import logging
import os
import queue
import requests
import socket
import sys
import threading
import time
import yaml
from collections import deque
from queue import Queue
from classes import Site
from modules import request_worker
def parse_config(filename):
'''
Opens ... | [
"anonymous"
] | anonymous |
a5c960db7926692eb5a1ba8cf3eac7a66286c4dd | e14f85856a8b2e65199b441b7fb71bf862237cc5 | /scripts/tectonic_cache.py | 57bceb1a29033dc711b7dfa931dab74c6b0e08d2 | [
"BSD-3-Clause"
] | permissive | DLove1204/jupyterlab-lsp | 50a274b9e368c909375fe442e40e550e2f93f0de | d7ac678975f65b920f54b3034c9bbddd978d98bd | refs/heads/master | 2022-12-02T13:25:14.984264 | 2020-08-11T19:39:06 | 2020-08-11T19:39:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import subprocess
from pathlib import Path
from tempfile import TemporaryDirectory
HERE = Path(__file__).parent
EXAMPLE = HERE.parent / "atest/examples/example.tex"
def tectonic_cache():
""" warm up the tectonic cache so that it doesn't fail the acceptance test
"""
with TemporaryDirectory() as td:
... | [
"nick.bollweg@gmail.com"
] | nick.bollweg@gmail.com |
599ca3f5da22b0f37690706eb61e7de3aab99de1 | ade0043b6c686a65d8ee4cb412102755cd8464a2 | /scripts/fuzzing/merge_corpus.py | 7dac811287e03e82999afbb113baf7cbce500d4c | [
"BSD-3-Clause"
] | permissive | Xoooo/fuchsia | b806c2c355d367e9f6f740c80b446b10d3d5c42c | 58bb10136f98cc30490b8b0a1958e3736656ed8a | refs/heads/master | 2020-07-07T06:06:26.206594 | 2019-08-13T05:55:19 | 2019-08-13T05:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | #!/usr/bin/env python2.7
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import os
import sys
from lib.args import Args
from lib.cipd import Cipd
from lib.device import Device
from lib.fuzz... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
61197560944d89b4d35b1796a4d1e2220479dec1 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert-CRF_for_PyTorch/examples/basic/basic_language_model_roformer.py | 51de31d6692c08e090cfe84e93550492e3736efb | [
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,351 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
d0e3573e788ceea3f15dd4092633258a48664f50 | da29f1f5b4459fbfec968bb694bedb9586f87b14 | /new_algs/Numerical+algorithms/Metropolis-Hastings+algorithm/decode.py | 6d665dbad8e50ed9fa8c19f4970ee2a733f9e186 | [] | no_license | coolsnake/JupyterNotebook | 547806a45a663f090f313dc3e70f779ad9b213c0 | 20d8df6172906337f81583dabb841d66b8f31857 | refs/heads/master | 2023-01-13T18:55:38.615312 | 2020-11-17T22:55:12 | 2020-11-17T22:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,756 | py | import numpy as np
import csv
with open('test/jperczel/alphabet.csv', 'rb') as csvfile:
alphabet_reader = csv.reader(csvfile, delimiter=',', quotechar='|')
alphabet_string = ""
for row in alphabet_reader:
for character in row:
alphabet_string = alphabet_string + character[0]
#size of al... | [
"chenqh@uci.edu"
] | chenqh@uci.edu |
195c5f2eb43979422738ca58a4619048f98a7214 | 1fe37d571b240274fd3aee724f57d8cd3a2aa34e | /detools/info.py | 41161ab2f7610d4d892ebc3b690d72b3ab9333a7 | [
"BSD-2-Clause",
"MIT"
] | permissive | eerimoq/detools | e199bd84e97f82d72dcf0394d72bc646c5ec6369 | d3cdb185e45f7a997aae9b8cc73a2170c58ee5e9 | refs/heads/master | 2023-08-25T01:45:05.427528 | 2023-07-20T08:04:07 | 2023-07-20T08:04:07 | 171,528,674 | 151 | 13 | NOASSERTION | 2022-12-28T18:22:17 | 2019-02-19T18:38:43 | Python | UTF-8 | Python | false | false | 5,485 | py | import os
from .errors import Error
from .apply import read_header_sequential
from .apply import read_header_in_place
from .apply import read_header_hdiffpatch
from .apply import PatchReader
from .common import PATCH_TYPE_SEQUENTIAL
from .common import PATCH_TYPE_IN_PLACE
from .common import PATCH_TYPE_HDIFFPATCH
from ... | [
"erik.moqvist@gmail.com"
] | erik.moqvist@gmail.com |
542cdb30ac871d10f35856ab599f982138e1621d | 01382c58ae18404aa442533eea992330ec941d35 | /tests/conftest.py | cb9a33ea61524b31b55a6fa68da1b8f7b971a8e0 | [] | no_license | gitter-badger/ens.py | 124d5bfc0b27b2c3ebe7ff1c6f4c14eacc687f18 | 565bf0cb0afc1f628c6ba29616bb6bb362aa4de9 | refs/heads/master | 2021-01-01T17:41:33.595961 | 2017-07-24T01:12:27 | 2017-07-24T01:12:27 | 98,136,264 | 0 | 0 | null | 2017-07-24T01:16:31 | 2017-07-24T01:16:31 | null | UTF-8 | Python | false | false | 1,806 | py |
import pytest
from unittest.mock import Mock
from web3 import Web3
from web3.providers.tester import EthereumTesterProvider
from web3utils import web3 as REAL_WEB3
from ens import ENS
def mkhash(num, digits=40):
return '0x' + str(num) * digits
@pytest.fixture
def addr1():
return mkhash(1)
@pytest.fixture
... | [
"ut96caarrs@snkmail.com"
] | ut96caarrs@snkmail.com |
be2dc666d75895d3982eec08d8ee9aadf03f0225 | 5b46e6fd5bbd44a7ccd1333184e13fc4703a084b | /tcex/datastore/__init__.py | d577b98c26aec2178b1c0f1e03622b3b52f830dd | [
"Apache-2.0"
] | permissive | TpyoKnig/tcex | 1fc297a5f93a17e4bc4a7786335714eb89b6e21d | 7cf04fec048fadc71ff851970045b8a587269ccf | refs/heads/master | 2022-12-25T19:20:49.675331 | 2020-09-30T10:05:37 | 2020-09-30T10:05:37 | 254,921,370 | 0 | 0 | Apache-2.0 | 2020-08-24T23:21:27 | 2020-04-11T17:38:28 | null | UTF-8 | Python | false | false | 115 | py | """DataStore module for TcEx Framework"""
# flake8: noqa
from .cache import Cache
from .datastore import DataStore
| [
"bsummers@threatconnect.com"
] | bsummers@threatconnect.com |
9200a771ec7bef264c6449eeb3e335264b19aa41 | 871b10e6abd1ca9db406af9acddb391e4c2ec693 | /scholar_sanction_criteria.py | 34a704895205a13e9804ad37b4d10eb132400b9b | [] | no_license | Novasoft-India/wakf | d64efc557584a2bb0fadfdebf33ee738b2063253 | d27ff6bb88a36f33bcf173d9c814345294ab7def | refs/heads/master | 2020-12-24T16:50:25.632826 | 2014-09-18T13:42:19 | 2014-09-18T13:42:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | from osv import osv
from osv import fields
class SWS_Scholar_sanction_Criteria(osv.osv):
_name = 'sws.scholar.sanction.criteria'
_description = 'sws.scholar.sanction.criteria'
_columns = {
'name':fields.char('Criteria Name:', required=False),
'criteria_no':fields.integ... | [
"hashir.haris@gmail.com"
] | hashir.haris@gmail.com |
84b0505f88884cf5adf7c93c363c044118cdfb83 | 90ca69d5d6bd9d08ee2d2b8150eb2fa6a6b00e72 | /src/entities/metric.py | 868bfa0563f670af8963e4937589ca2bae921afc | [
"CC-BY-4.0"
] | permissive | budh333/UnSilence_VOC | 07a4a5a58fd772230bfe1ffbcb8407de89daa210 | f6ba687f96f2c23690c84590adcb24ee239aa86b | refs/heads/main | 2023-05-26T20:49:49.105492 | 2023-05-12T23:18:50 | 2023-05-12T23:18:50 | 388,462,045 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | from __future__ import annotations # This is so we can use Metric as type hint
from typing import Dict, List
import numpy as np
class Metric:
def __init__(
self,
amount_limit: int = 5,
metric: Metric = None):
self._accuracies: Dict[str, List[float]] = {}
self._losses: List[... | [
"kztodorov@outlook.com"
] | kztodorov@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.