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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
727d16455790234bc5ad2fa656380bfc5a8ff77a | 1852be4726dc1d83780740678819192277159e0f | /LC/97.py | 4b43cefdb31dc175807adac8a7da8d074298f5c2 | [
"MIT"
] | permissive | szhu3210/LeetCode_Solutions | f0a32e30df54b655fdb9c7d48622382f29781409 | 64747eb172c2ecb3c889830246f3282669516e10 | refs/heads/master | 2020-06-30T05:45:40.550146 | 2017-08-11T04:10:25 | 2017-08-11T04:10:25 | 74,389,515 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | class Solution(object):
def isInterleave(self, s1, s2, s3):
"""
:type s1: str
:type s2: str
:type s3: str
:rtype: bool
"""
## iterative (DP) (35ms)
l1=len(s1)
l2=len(s2)
l3=len(s3)
co=[(-1,-1)]
x=0
while... | [
"szhu@email.arizona.edu"
] | szhu@email.arizona.edu |
ec1b3f7c328d034d94959ab8c0c4ca7566c4ba57 | 03f1560cedc273f99d64a93224fe7a2211aa5680 | /src/vsc/report/coverage_report.py | 510e26b55a5197191af6e48a1e4d499269a02eb5 | [
"Apache-2.0"
] | permissive | cmarqu/pyvsc | 9be19fbcd3df37a406ecaa1cdf46b5209e9e9866 | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | refs/heads/master | 2021-06-14T07:19:25.381354 | 2020-04-08T01:50:49 | 2020-04-08T01:50:49 | 254,485,300 | 0 | 0 | Apache-2.0 | 2020-04-09T21:47:58 | 2020-04-09T21:47:57 | null | UTF-8 | Python | false | false | 1,100 | py | '''
Created on Mar 25, 2020
@author: ballance
'''
from typing import List
class CoverageReport(object):
"""Coverage report in object-model form. Converted to text for display"""
def __init__(self):
self.covergroups : List['CoverageReport.Covergroup'] = []
class Coveritem(object):
... | [
"matt.ballance@gmail.com"
] | matt.ballance@gmail.com |
21c40f16baa986546f9ac952a9717fba5b578383 | 8e576efb1b76a038cf7e7ec631eb33db9f1c0155 | /continue_debug.py | 9ca606d666a9cec932b2851b03fb61c42c2edf8a | [] | no_license | sugar-activities/4378-activity | 779ec91bb60f05c617edb5b5393fe95b454a9b71 | eedab96fc1bf541983eb66f0aaf417d767cc0df7 | refs/heads/master | 2021-01-19T23:14:24.238128 | 2017-04-21T05:52:23 | 2017-04-21T05:52:23 | 88,937,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,823 | py | #!/usr/bin/env python
#
# Copyright (C) 2007, Red Hat, 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 2 of the License, or
# (at your option) any later version.
#
# This p... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
42464cf07abf0758db1a5c82e682019c368ab0cf | 2e50af6e12bf1c815c8efb3695a5bb41507d66bd | /ppomppu/crawling_data/migrations/0001_initial.py | 23053b1d9b999d1506fdd26719ba032e71a32c7e | [] | no_license | KimDoKy/Ppomppu_check | e5fe57ba2bed84e4236742bfc4352460b7313f89 | b7d09ac1ab46d051636f54b5890f190b3ad97419 | refs/heads/master | 2022-12-15T10:42:10.717898 | 2021-06-22T12:46:20 | 2021-06-22T12:46:20 | 167,160,601 | 2 | 1 | null | 2022-12-08T01:48:49 | 2019-01-23T10:01:49 | JavaScript | UTF-8 | Python | false | false | 871 | py | # Generated by Django 2.1.5 on 2019-01-30 14:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CrawlingData',
fields=[
('id', models.AutoF... | [
"makingfunk0@gmail.com"
] | makingfunk0@gmail.com |
d64e9569c2249f8d5cf47948bb273030c95f0a6c | a14b3e43705d74da97451de8663e9a98c088aec3 | /dohq_teamcity/models/vcs_roots.py | 1fe9c882557685c3fed4ad0ab2c3b8e4d637f5b0 | [
"MIT"
] | permissive | devopshq/teamcity | b5a36d6573cdde2f7c72e77a8e605198a7c7124d | 7a73e05c0a159337ed317f8b8d8072e478a65ca6 | refs/heads/develop | 2023-01-16T07:06:07.514297 | 2022-12-30T10:24:07 | 2022-12-30T10:24:07 | 153,228,762 | 29 | 13 | MIT | 2023-09-08T08:49:56 | 2018-10-16T05:42:15 | Python | UTF-8 | Python | false | false | 3,982 | py | # coding: utf-8
from dohq_teamcity.custom.base_model import TeamCityObject
# from dohq_teamcity.models.vcs_root import VcsRoot # noqa: F401,E501
class VcsRoots(TeamCityObject):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
... | [
"allburov@gmail.com"
] | allburov@gmail.com |
defa0295f0381cbdb2f43c562eabaa220ee5df58 | f8e8d0e3820eb6fd25d3ce621686316ce196c4d0 | /Cookie Synchronization/ccs_sync_measurements.py | 641962026495bda938f5f99f4b04cc4b779b6d14 | [
"MIT"
] | permissive | amirunpri2018/Web-Tracking-in-Indian-Partisan-News-Websites | 511b0345fde3cd01473f4918c9e6b82d5bc8c20e | f68c4ae011a499c0519bed0b0cb953a12f438902 | refs/heads/main | 2023-04-29T12:31:41.879296 | 2021-05-24T19:27:23 | 2021-05-24T19:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,894 | py | '''
This is the primary code for computing cookie-synchronization across different pairs of websites within each crawl
'''
import extract_cookie_ids
import extract_id_knowledge
import census_util
import find_site_leaning
import classify_domains
from collections import defaultdict
import sqlite3 as lite
import queue
... | [
"noreply@github.com"
] | amirunpri2018.noreply@github.com |
4614138089e9786f27b020db0dca4e5c32f2cf16 | f160d992d0ea5fa4e36af0025b5637c8962f2a29 | /dz101_spider/questions/mini_spider/dz101_question_mini_spider.py | f38e3cf331ad1a52bb4a38d8cdce2becab852b51 | [] | no_license | Zachypentakill/Afanti_tiku | 369dde43a32cecb136eb1207bf4223f6decd9843 | aebee5b3d8dce76f95620cb52fda5a0f19965945 | refs/heads/master | 2021-07-11T15:59:03.099600 | 2017-10-11T10:27:43 | 2017-10-11T10:27:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,615 | py | # -*- coding: utf-8 -*-
import asyncio
import logging
import json
from achihuo_mini.async_loop import AsyncLoop
from achihuo_mini.item import Item
from afanti_tiku_lib.utils import md5_string
from afanti_tiku_lib.dbs.mysql_pool import CommonMysql
from afanti_tiku_lib.dbs import html_archive
from afanti_tiku_lib.dbs.... | [
"yanfeng.li@lejent.com"
] | yanfeng.li@lejent.com |
50635945d92a8a30c541386a94cb0d6921c5d146 | 933cf8cc4cff1083f9e2d24528c97a94758bc8e0 | /astropy/wcs/wcsapi/utils.py | 53379b993dc646aa57a45e54f4c0a676d7dfff9e | [
"BSD-3-Clause"
] | permissive | eteq/astropy | e728384624d0c5d497bc5561f303f2a1bc4582ff | 6a4f41e22bd8bc6a0031415c771aa8f9d744e34e | refs/heads/staging | 2023-09-01T08:51:08.804445 | 2021-12-07T00:51:15 | 2021-12-07T00:51:15 | 2,103,466 | 1 | 1 | BSD-3-Clause | 2018-12-20T19:56:55 | 2011-07-25T21:02:57 | Python | UTF-8 | Python | false | false | 677 | py | import importlib
def deserialize_class(tpl, construct=True):
"""
Deserialize classes recursively.
"""
if not isinstance(tpl, tuple) or len(tpl) != 3:
raise ValueError("Expected a tuple of three values")
module, klass = tpl[0].rsplit('.', 1)
module = importlib.import_module(module)
... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
3c6e5cf00966edb4796301a929fbbc97791f5cd9 | 4d387b596167e6636341bae268b2e582b22d5ff8 | /scripts/Meta/Copy_Files.py | 86fb8385b7b207de12f8ea0d64c6141be3e8cd91 | [] | no_license | tanmayshankar/Visualize_Primitives | f3357b1da95759567bf3abf4bf592cfddef5211e | 58f346208cc89265219295ecd5b617e1b8c9dd97 | refs/heads/master | 2021-01-19T13:52:57.156669 | 2017-03-26T23:01:58 | 2017-03-26T23:01:58 | 82,424,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | #!/usr/bin/env python
import os
import subprocess
import sys
import shutil
import time
import signal
import numpy as npy
# FRCNN_DIR = "/home/tanmay/Code/py-faster-rcnn/tools"
# CPM_DIR = "/home/tanmay/Code/Realtime_Multi-Person_Pose_Estimation/testing/python"
# INTERP_DIR = "/home/tanmay/Code/Meta_Scripts"
IMG_DIR = ... | [
"tanmay.shankar@gmail.com"
] | tanmay.shankar@gmail.com |
38d791179d75775bfc94f3b94fcadf5825a1ce61 | 642b7138da231474154a83c2dc3b4a2a42eb441b | /dp/subset_sum_divisible_by_num.py | e26d12eb1e480aa628c9042d7900f4e49be48bc5 | [] | no_license | somanshu/python-pr | 15465ed7182413591c709f9978420f6a16c9db91 | 7bfee6fc2a8340ba3e343f991a1da5bdb4ae9cb2 | refs/heads/master | 2020-07-02T17:21:37.132495 | 2019-08-22T08:04:11 | 2019-08-22T08:04:11 | 201,602,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # Given a set of non-negative distinct integers, and a value m, determine if
# there is a subset of the given set with sum divisible by m.
def get_subset(s, index, m, currentSum):
if currentSum > 0 and currentSum % m == 0:
return True
if index < 0:
return False
return get_subset(s, index... | [
"somanshu@logos.social"
] | somanshu@logos.social |
d3217f0ee0a2b85006978be11d3a0ae29fb0ac17 | 84a1f9d626828b6ecaee4ef037081f4d8750a990 | /编程/程序/十进制转二进制.py | 06d8e39924ca9cd5220c784d369d7cdda9e95e6b | [] | no_license | dujiaojingyu/Personal-programming-exercises | 5a8f001efa038a0cb3b6d0aa10e06ad2f933fe04 | 72a432c22b52cae3749e2c18cc4244bd5e831f64 | refs/heads/master | 2020-03-25T17:36:40.734446 | 2018-10-01T01:47:36 | 2018-10-01T01:47:36 | 143,986,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | def Dec2Bin(dec):
temp = []
result = ''#字符串
while dec:
quo = dec % 2
dec = dec // 2
temp.append(quo)
while temp:
result += str(temp.pop())
return result
print(Dec2Bin(62))
| [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
dc4917189b065071bb39984413668e2ac2c859f5 | 793913495349a2a53565c9238915ff928995b555 | /django-easyvisa/english_page/views.py | a3028e1c80e00cc3317da7ef9721274453469c6d | [] | no_license | Naumov1889/django_easyvisa | 48ff9f56569e5950dbb700159c2a4b7515d87413 | 8c81f9e37ef4c6f44ad1f5aef3d00c136ef7bc40 | refs/heads/master | 2023-04-09T07:26:38.432411 | 2021-04-03T09:16:43 | 2021-04-03T09:16:43 | 277,068,342 | 0 | 0 | null | 2021-04-03T09:16:44 | 2020-07-04T08:15:02 | JavaScript | UTF-8 | Python | false | false | 235 | py | from django.shortcuts import render
from english_page.models import EnglishPrice
def english_page(request):
prices = EnglishPrice.objects.all().first()
return render(request, 'english_page/english.html', {'prices': prices})
| [
"144112passgitword"
] | 144112passgitword |
35e0daa8466311b20ce6fa92c764d84d2f973a23 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/networkx/generators/tests/test_duplication.py | 6f0c7bba2b4170d7128591683cf7b26ad6244ece | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:99d43639bea0ce795ffc6fcf063a2bc982ee6f2e94b736c4b58c242837a71094
size 1945
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
9406c2bdaf5dddc7a4148100cbd8ef8babd66090 | 3ee1bb0d0acfa5c412b37365a4564f0df1c093fb | /keras/keras36_hist5_diabets.py | 4fabc80b4372746cb9370aec93a29547b2966c07 | [] | no_license | moileehyeji/Study | 3a20bf0d74e1faec7a2a5981c1c7e7861c08c073 | 188843c6415a4c546fdf6648400d072359d1a22b | refs/heads/main | 2023-04-18T02:30:15.810749 | 2021-05-04T08:43:53 | 2021-05-04T08:43:53 | 324,901,835 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | # hist를 이용하여 그래프를 그리시오
# loss, val_loss
import numpy as np
#1. 데이터
from sklearn.datasets import load_diabetes
dataset =load_diabetes()
x = dataset.data
y = dataset.target
print(x.shape)
print(y.shape)
from sklearn.model_selection import train_test_split
x_train, x_test, y_train, y_test = train_test... | [
"noreply@github.com"
] | moileehyeji.noreply@github.com |
9757613bcff8082143262d20e2291b9e7dc4f47c | 3b3585bb12becfe72af03814cec645b0c8e6c779 | /satchmo/fulfilment/modules/six/config.py | 5843693df8d189a95a02372e005d2daf69ad4a29 | [
"BSD-2-Clause"
] | permissive | juderino/jelly-roll | aac548073487511c5b935d9fb20c5a995c665b9b | ccac91bf3aab06fec4f83a7f9eabfa22d41b922a | refs/heads/master | 2021-01-18T21:04:15.232998 | 2015-07-21T20:35:26 | 2015-07-21T20:35:26 | 36,597,803 | 0 | 0 | null | 2015-05-31T10:16:21 | 2015-05-31T10:16:21 | null | UTF-8 | Python | false | false | 1,680 | py | from django.utils.translation import ugettext_lazy as _
from satchmo.configuration import (
ConfigurationGroup,
config_register_list,
StringValue,
BooleanValue,
)
from satchmo.fulfilment.config import ACTIVE_FULILMENT_HOUSE
import logging
log = logging.getLogger(__name__)
ACTIVE_FULILMENT_HOUSE.add_c... | [
"tony@ynottony.net"
] | tony@ynottony.net |
11bcf91fc23f175de6c1f7766a58c9558e8198ab | 29f6b4804f06b8aabccd56fd122b54e4d556c59a | /CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/tests/storage/test_impl_log.py | a12a4c4a5e8878baa8e02622ebde5d5722f131db | [
"Apache-2.0"
] | permissive | obahy/Susereum | 6ef6ae331c7c8f91d64177db97e0c344f62783fa | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | refs/heads/master | 2020-03-27T11:52:28.424277 | 2018-12-12T02:53:47 | 2018-12-12T02:53:47 | 146,511,286 | 3 | 2 | Apache-2.0 | 2018-12-05T01:34:17 | 2018-08-28T21:57:59 | HTML | UTF-8 | Python | false | false | 1,134 | py | #
# Copyright 2012 New Dream Network, LLC (DreamHost)
#
# Author: Doug Hellmann <doug.hellmann@dreamhost.com>
#
# 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.apac... | [
"abelgomezr45@gmail.com"
] | abelgomezr45@gmail.com |
0088554cddbce79223fbc75f4ed10baaafd29148 | 50de76eb887892c2085e1aa898987962a5d75380 | /_8_TensorFlowBasics/Kaggle/MNIST_example/MyVersion.py | 303758586192ffed1c2223ce19a995b6a0619cd1 | [] | no_license | cyrsis/TensorflowPY36CPU | cac423252e0da98038388cf95a3f0b4e62d1a888 | 6ada50adf63078ba28464c59808234bca3fcc9b7 | refs/heads/master | 2023-06-26T06:57:00.836225 | 2021-01-30T04:37:35 | 2021-01-30T04:37:35 | 114,089,170 | 5 | 2 | null | 2023-05-25T17:08:43 | 2017-12-13T07:33:57 | Jupyter Notebook | UTF-8 | Python | false | false | 3,555 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import seaborn as sns
np.random.seed(2)
from sklearn.model_selection import train_test_split
from sklearn.metrics import confusion_matrix
import itertools
from keras.utils.np_utils import to_categorical # convert... | [
"em3888@gmail.com"
] | em3888@gmail.com |
631df51128d1ead7ea74a4165ad84d1ae6ba2c21 | 113b962bd5e2eb770067bd374a15dfe8a1c2d09f | /py_scripts/ALC_Classify_mem.py | ac329f05c8175852db002aa7f765e64b208a2500 | [] | no_license | aungthurhahein/biotech_script | ecce51950bcef69405843da12ece2f84ea5541d6 | 2fda699343e6c46543fa1df2412c8ca2f2622cda | refs/heads/master | 2020-12-24T06:20:13.028141 | 2016-07-06T15:23:34 | 2016-07-06T15:23:34 | 25,574,741 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | #! /usr/bin/env/ python
"""
#
# usage:
# output:
# Dev: __author__ = 'aung'
# Date:
"""
import sys
A_id = sys.argv[1] # A
L_id = sys.argv[2] # L
C_id = sys.argv[3] # C
Cu_id = sys.argv[4] # C Unmap
cluster_file = sys.argv[5] # cluster parsed file
open_Aid = open(A_id, 'r')
open_Lid = open(L_id, 'r')
open_Cid... | [
"aungthurhahein@gmail.com"
] | aungthurhahein@gmail.com |
068c7cd5bd637d350ce9bd048c76e37c66724ddc | 84617010027b08e65412b0e187bc0612a59cfbc7 | /nomenklatura/views/sessions.py | 52b22af40c4de8eb7066b51ea550ebcf98409300 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gabelula/nomenklatura | 16d52def8bb1c0dbc5a6aa386336366de31ffd79 | eae335a44ef6bb08728083d4d10386f3a9e16def | refs/heads/master | 2020-12-02T15:07:10.350344 | 2013-12-02T11:35:02 | 2013-12-02T11:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | import requests
from flask import url_for, session, Blueprint, redirect
from flask import request
from flask.ext.utils.serialization import jsonify
from nomenklatura import authz
from nomenklatura.core import db, github
from nomenklatura.model import Account, Dataset
section = Blueprint('sessions', __name__)
@secti... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
2208cbadde363d62f16946fc23a172732d054aa5 | b54eb04ec2de1dec11a7143c6b5049a1d031ddaf | /test/baselines/ppo1/pposgd_simple.py | 8f4c641bc5bc34fd88a1303b2e9a5e4e895fff54 | [] | no_license | Jerryxiaoyu/CR_CPG_RL | 78c4c6e7539f08465b1f55125e04f982b1323bf2 | 69213cc48440ea66c42fbe3ace35163174686321 | refs/heads/master | 2020-03-28T12:11:51.491796 | 2018-09-14T04:32:33 | 2018-09-14T04:32:33 | 148,277,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,514 | py | from test.baselines.common import Dataset, explained_variance, fmt_row, zipsame
from test.baselines import logger
import test.baselines.common.tf_util as U
import tensorflow as tf, numpy as np
import time
from test.baselines.common.mpi_adam import MpiAdam
from test.baselines.common.mpi_moments import mpi_moments
from m... | [
"drl@wjy.com"
] | drl@wjy.com |
c71e76456021d181e3109d58483b2b6cb52826cc | 811e4542f6728e2f3de98fc227f9f4a111d4eb1e | /templates/topics/math/factorization.py | 4c5332d9ce120a59f4ac95ff1464c5f004608320 | [] | no_license | Alfred-Walker/ppst | ab2902f04a73048f73b50d3c79d9e80cd257a985 | 8685d0ca7e89be34372a7d2673e21abb77bb3778 | refs/heads/master | 2021-01-04T05:07:08.813035 | 2020-02-19T02:35:07 | 2020-02-19T02:35:07 | 240,400,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | """factorization examples"""
class PrimeFactorization:
@staticmethod
def factorization(number):
ret = []
for i in range(2, int(number ** 0.5) + 1):
while number % i == 0:
ret.append(i)
number //= i
if number > 1:
ret.append(numbe... | [
"studio.alfred.walker@gmail.com"
] | studio.alfred.walker@gmail.com |
52460ba2ae00e285614d14e7ba0f7598278c93fb | 406bf29e4cfc59bc2cc6005813e4a63065c642bb | /jhyouk_universal_filter/13_SV/Delly_annotation_scripts/06.07.count_frag_find_newBP.py | c222cee64e94a9ee3a7e529a296aa1a6b0011040 | [] | no_license | leehs96/Emergency_backup | 630c5efbe17f3175851ee80ef6dde72f5f613fe7 | 9bc30b7a5eda03ac207b16f83d93559a5637ac19 | refs/heads/main | 2023-02-10T11:43:40.172101 | 2021-01-05T06:10:33 | 2021-01-05T06:10:33 | 326,903,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,062 | py | #Arg1: sv file
#Arg2: tumor bam
#Arg3: normal bam
#190226 line427 change '=' inserted
import sys,pysam, collections, itertools
print('### SVvaf new BP')
print(sys.argv[1])
sv_file=open(sys.argv[1]) #CHR1 POS1 CHR2 POS2 MH Terminal SVtype
t_file=pysam.AlignmentFile(sys.argv[2],'rb') #Cancer bam
n_file=pysam.AlignmentF... | [
"hs960201@gmail.com"
] | hs960201@gmail.com |
17cc97ea656c6d3d58dba14ba7110219c4c455a7 | 9e27f91194541eb36da07420efa53c5c417e8999 | /twilio/rest/chat/v1/__init__.py | 7698c973fa1814942bb972c9ac2a08709c89c066 | [] | no_license | iosmichael/flask-admin-dashboard | 0eeab96add99430828306b691e012ac9beb957ea | 396d687fd9144d3b0ac04d8047ecf726f7c18fbd | refs/heads/master | 2020-03-24T05:55:42.200377 | 2018-09-17T20:33:42 | 2018-09-17T20:33:42 | 142,508,888 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from admin.twilio.base.version import Version
from admin.twilio.rest.chat.v1.credential import CredentialList
from admin.twilio.rest.chat.v1.service import ServiceList
class V1(Version):
def __... | [
"michaelliu@iresearch.com.cn"
] | michaelliu@iresearch.com.cn |
68a6a2550cc81753aa234a09cb81ae0d79c49c3b | 2b15168bc67ee935446f51c46045f73346369c5a | /extract_ckpt_to_h5_weight.py | faeda2d12d610e45a0d94bce680cbd2a9bfed7bc | [] | no_license | jason9075/tf2_arcface | 6c37500c9c14170ea6731f6a0d79a19f088c32d3 | 6fabcdf9c3c9a12603456476fc8052de2830684d | refs/heads/master | 2023-04-30T11:42:52.845549 | 2021-04-01T06:59:39 | 2021-04-01T06:59:39 | 311,858,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | import tensorflow as tf
from convert_tensorflow import create_training_model
num_of_class = 20000
IMAGE_SIZE = (112, 112)
CKPT = 'checkpoints/2021-03-29-10-26-19_e_1400'
MODEL_TYPE = 'mobilenetv3'
def main():
model = create_training_model(IMAGE_SIZE, num_of_class, mode='train', model_type=MODEL_TYPE)
model.... | [
"jason9075@gmail.com"
] | jason9075@gmail.com |
d0df7bd7de21e649e7b4d18ce66c317f65bf0a22 | 9e9e0b52248d8c4a9026d266ebeb02529bbc8e9f | /lightGBM/docs/conf.py | 637447ed627ca9d6df815867ffeda3b97017e4f6 | [
"MIT",
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | arXiv-research/Quatm | 79b870a754eb8173675da7316b10c6dac76de92f | 541fc48b88f4236767059f3265c7d34b9eacb85f | refs/heads/main | 2023-07-16T13:37:54.326816 | 2021-09-03T11:17:22 | 2021-09-03T11:17:22 | 338,906,115 | 2 | 1 | MIT | 2021-09-03T11:17:23 | 2021-02-14T21:30:28 | C++ | UTF-8 | Python | false | false | 11,826 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# LightGBM documentation build configuration file, created by
# sphinx-quickstart on Thu May 4 14:30:58 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# a... | [
"noreply@github.com"
] | arXiv-research.noreply@github.com |
66620a99f9c591d0399fb64135bc18f5511daf3e | 9fa8c280571c099c5264960ab2e93255d20b3186 | /system/scientist/experiment/remove/view.py | e49dc213fd8a1d49e71b132d6416187033778689 | [
"MIT"
] | permissive | thuchula6792/AutoOED | 8dc97191a758200dbd39cd850309b0250ac77cdb | 272d88be7ab617a58d3f241d10f4f9fd17b91cbc | refs/heads/master | 2023-07-23T16:06:13.820272 | 2021-09-08T14:22:18 | 2021-09-08T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from system.gui.widgets.factory import create_widget
class RemoveExperimentView:
def __init__(self, root_view):
self.window = create_widget('toplevel', master=root_view.root, title='Remove Experiment')
self.widget = {}
self.widget['experiment_name'] = create_widget('labeled_combobox', ma... | [
"yunsheng@mit.edu"
] | yunsheng@mit.edu |
9a38399c9e91b0b590e07ffec154c506173b08a7 | e526543920e4974504cb62802c393d5bc46559db | /female-labor-force/female_labor_force.py | 8661eaf2f43beec409de2f01b78fb6af53fc144d | [] | no_license | mare-astrorum/python-crash-course-practice | b843f2067208b749558c4423556498e643c5fa42 | 47423808902b75af9d7888d4f9fa9f083bce88f4 | refs/heads/master | 2020-09-06T19:02:09.837740 | 2019-11-08T17:30:52 | 2019-11-08T17:30:52 | 220,516,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | import csv
from pygal_maps_world.maps import World
from country_codes import get_country_code
# Load the data.
filename = 'data/female_labor_force.csv'
with open(filename) as f:
reader = csv.reader(f)
# Find the header row.
for i, row in enumerate(reader):
if i == 4:
header_row = row... | [
"a@a.com"
] | a@a.com |
967ce7d0a562a19af62f740ed144332b93de848f | 89055b2f91fb608806d4cb92754ee51f9fd7b436 | /sign_up_students_first_version/signup_stats.py | 0c99c7abfe71c556a5e98605529d69cc7cf6a7f1 | [] | no_license | rosedu/web-workshops | 52c778242e62dd7dbf8e629ab5fc8424e86a63f4 | 28ff91dca7f84a4a58f2ece6b94f28403e667776 | refs/heads/webdev-landing | 2023-05-11T06:38:48.370896 | 2023-05-03T16:47:58 | 2023-05-03T16:47:58 | 2,889,807 | 2 | 0 | null | 2023-05-03T16:47:59 | 2011-12-01T08:53:18 | HTML | UTF-8 | Python | false | false | 1,222 | py | import sys
from collections import defaultdict
import yaml
mail_blacklist = ['google@gigibecali.ro']
def main():
count = defaultdict(int)
for document in list(yaml.load_all(sys.stdin))[5:-1]:
if document['email'] in mail_blacklist:
continue
count['_total'] += 1
value_sunt... | [
"alex@grep.ro"
] | alex@grep.ro |
e037b4c7567e546162b66093e9500d87196bea8f | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/compute/target_http_proxies/list.py | e0e69989cde89c8fa89a984c02884926d50f4f55 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 2,877 | py | # -*- coding: utf-8 -*- #
# 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
8ee1e63fa12d87ff629257f88095d3dd0647cd17 | 92874c7364a5c7f026fbff1f06d3100280438724 | /pelicanconf.py | 54517ea5a124a86cd208cd1e99324be8e4b4bbcc | [] | no_license | quintusdias/quintusdias.github.io-src | 0c3e9d4d17def5a8761f0a1636d52c1147c9288f | 1dd2b3143abcc38d88d0f056e5023251c615ba36 | refs/heads/master | 2021-01-21T11:16:15.017329 | 2017-03-04T12:50:16 | 2017-03-04T12:50:16 | 83,545,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'John Evans'
SITENAME = 'https://quintusdias.github.io'
SITEURL = 'https://quintusdias.github.io'
PATH = 'content'
TIMEZONE = 'America/New_York'
DEFAULT_LANG = 'en'
DEFAULT_DATE = 'fs'
# Feed generation is usually not desired when developin... | [
"john.g.evans.ne@gmail.com"
] | john.g.evans.ne@gmail.com |
0a360c6b7f3a6caf3da4bcdc61eee7acace23b5c | 75d04e22b2688bc0b2c0a8dd14a4336eeb4be3bd | /distribute_data.py | 69002acf95b7fa55d644aaa6f411974aa0a92fb3 | [] | no_license | vbvg2008/CAPSNET | 2cae7580b5e5ded96bceb67f80083f2f06654e08 | 5d069f7fbd8c42e2f24807f7740a97682172c254 | refs/heads/master | 2020-03-06T20:04:47.583855 | 2018-04-27T20:15:30 | 2018-04-27T20:15:30 | 127,044,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | import os
from shutil import copyfile
original_root = '/home/jenno/Desktop/core50_128x128/'
train_root = '/home/jenno/Desktop/core50_static/train'
test_root = '/home/jenno/Desktop/core50_static/test'
train_session = ['s1','s2','s4','s5']
test_session = ['s3','s6']
#now begin copy training data
for s_current in train... | [
"shawnmengdong@gmail.com"
] | shawnmengdong@gmail.com |
0f04671661041f0b708c2620229f78f0c46f83c2 | 4d66af0a7c2cbcfae37fa12f650ccc2accf2708b | /NPAF_pb2_grpc.py | 1266fb26145d2dccfccf06644f48145b69d4b02d | [] | no_license | Tiffanyyor23/gRPC | 804a38bcce2c509feffee101b998385d529fad80 | 18c06a9cb14eae7e8a673fce5aad7811c7821c3a | refs/heads/master | 2023-08-01T09:42:44.731850 | 2021-09-16T04:10:43 | 2021-09-16T04:10:43 | 407,016,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import NPAF_pb2 as NPAF__pb2
class RouteDataStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
40876e5aad4716d60a85e698a8107b820be76212 | 2f19adddc875673df742475c1c97b5aca720cac7 | /venv/Lib/site-packages/pygame/examples/audiocapture.py | a5688898e35d724f0f1d1a57201e42275c36d548 | [] | no_license | rosepcaldas/Cursoemvideo | 4e71b1ce0fe6e5c2ac83a15ff9e18768778d1dab | c722b1f7f902e43168279cd4e0414215b8395dc6 | refs/heads/master | 2020-07-28T20:19:46.004918 | 2019-09-19T10:24:31 | 2019-09-19T10:24:31 | 209,524,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | import time
import pygame as pg
if pg.get_sdl_version()[0] < 2:
raise SystemExit('This example requires pygame 2 and SDL2.')
from pygame._sdl2 import (
get_audio_device_name,
get_num_audio_devices,
AudioDevice,
AUDIO_F32,
AUDIO_ALLOW_FORMAT_CHANGE
)
pg.mixer.pre_init(44100, 32, 2, 512)
pg.in... | [
"rosepcaldas@gmail.com"
] | rosepcaldas@gmail.com |
3f17b54387be42dfd49e4162f5fb2bc7f40790a5 | f046ecf6ec2bdc41e7bbd7012ec6d46846644af3 | /carzone/cars/migrations/0001_initial.py | c085282e607a7fee584eb908c0995f3aa2ba1644 | [] | no_license | varunjha18/carzone_project_updated | 9f08e5b47cc6dc3d00c003797e8bc667737eb330 | 5853f8c569eac6c05cfe41b1a957586b1c83d48b | refs/heads/main | 2023-04-28T10:59:27.598746 | 2021-05-26T12:55:36 | 2021-05-26T12:55:36 | 369,875,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | # Generated by Django 3.1.1 on 2021-05-22 13:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Car',
fields=[
('id', models.AutoField(auto... | [
"varunjha2000@gmail.com"
] | varunjha2000@gmail.com |
fe123e0751e952b397db20f1c47b285ee1f6d27b | f569978afb27e72bf6a88438aa622b8c50cbc61b | /douyin_open/ShareIdShareId/__init__.py | b05b76dadef0b38f532e88c1a0b30e636ba79cb3 | [] | no_license | strangebank/swagger-petstore-perl | 4834409d6225b8a09b8195128d74a9b10ef1484a | 49dfc229e2e897cdb15cbf969121713162154f28 | refs/heads/master | 2023-01-05T10:21:33.518937 | 2020-11-05T04:33:16 | 2020-11-05T04:33:16 | 310,189,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | # coding: utf-8
# flake8: noqa
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import a... | [
"strangebank@gmail.com"
] | strangebank@gmail.com |
4a0beee1ac136b3e523feffcfa1e9a36ce6d967f | 9c58a1f594e18cee20128f2c8dad8257429b10d1 | /custom_business_reports/wizard/sales_per_product.py | 495d5e1113521f969a5ae62178d4d361b1ebd2c6 | [] | no_license | gastonfeng/Odoo-eBay-Amazon | e8919768b2a1500209f209ee3aecc7f2fb10cda7 | a9c4a8a7548b19027bc0fd904f8ae9249248a293 | refs/heads/master | 2022-04-05T00:23:50.483430 | 2020-02-19T04:58:56 | 2020-02-19T04:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from pytz import timezone
import pytz
from odoo import models, fields, api
class SalesPerProduct(models.TransientModel):
_name = 'sales.per.product.wizard'
period_start = fields.Date('Period start', help="Date when the current period start... | [
"yjm@mail.ru"
] | yjm@mail.ru |
ab83b4c18b59a01c63603528d3559e0f3d384862 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Mastering-Machine-Learning-scikit-learn/NumPy-Beginner/CODE/Chapter2/shapemanipulation.py | b1649ea9beac68249de1ddd6e164eba87ed89124 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,451 | py | from __future__ import print_function
import numpy as np
# Chapter 2 Beginning with NumPy fundamentals
#
# Demonstrates multi dimensional arrays slicing.
#
# Run from the commandline with
#
# python shapemanipulation.py
print("In: b = arange(24).reshape(2,3,4)")
b = np.arange(24).reshape(2,3,4)
print("In: b")
print... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
8db48489893a0ddd39db9dc8bd3cba251c0a46ba | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_determinations.py | 19cd727e8dba49b7d873037177329135ce8d5944 | [
"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 | 287 | py |
from xai.brain.wordbase.nouns._determination import _DETERMINATION
#calss header
class _DETERMINATIONS(_DETERMINATION, ):
def __init__(self,):
_DETERMINATION.__init__(self)
self.name = "DETERMINATIONS"
self.specie = 'nouns'
self.basic = "determination"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
83c9ee9ea54b7d98e295f2b62de4a2bc7770d39d | a6cea8d1455f4927126b848c8598310a9242ab86 | /Handlers/Account.py | 53bd377011f4f62cef75ae4977af6e7d137b55db | [] | no_license | martin-woolstenhulme/sendwithfriends | 35b4410bda49fbfdfaf8920311e217db6758d2cf | 2daa32553dbace291c950ccd6de1bc5107ef50f7 | refs/heads/master | 2020-06-08T19:41:36.802905 | 2014-09-07T09:13:13 | 2014-09-07T09:13:13 | 23,756,328 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | from flask import make_response
from flask import render_template, request, url_for, redirect, session, flash
from db_schema.db_functions import *
import json
from flask import jsonify
import logging
def signup_account():
data = request.json
print data
# retrieve information
password = data.get('passwo... | [
"elaine.ou@gmail.com"
] | elaine.ou@gmail.com |
4c93cf5084fb9a5d19b1bb301af8711a8767007c | 75169b83f2b975bff8baf61f0cf1264cf4b71a28 | /worker/Reversion/model/alert.py | 5d39269c05c0207078a50efc165d26a768c682bb | [] | no_license | Pangpang2/Python | a27024587ae51923954deefaaff304a26e5a944f | 0b3bcfbdcaa71253c798090713c052fd397bff3f | refs/heads/master | 2022-12-01T10:03:23.214443 | 2020-08-26T00:21:15 | 2020-08-26T00:21:15 | 290,171,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py |
class Alert(object):
def __init__(self):
self.id = ''
self.description = ''
def to_dictionary(self):
alert_dict = {}
alert_dict['id'] = self.id
alert_dict['description'] = self.description
return alert_dict
| [
"may.li@internetbrands.com"
] | may.li@internetbrands.com |
9d831a96d6db798d73e1650111af5d03adeab6f4 | 89260668655a46278e8f22a5807b1f640fd1490c | /mySite/records/migrations/0014_auto_20170529_0026.py | 0f52f66b638d5bcb22cd6f408f1e76344fa3d40d | [] | no_license | happychallenge/mySite | 926136859c5b49b7fd8baff09b26f375b425ab30 | ddbda42d5d3b9c380a594d81a27875b4ad10358b | refs/heads/master | 2020-12-30T13:28:31.018611 | 2017-11-08T02:52:18 | 2017-11-08T02:52:18 | 91,218,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-29 00:26
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependenc... | [
"happychallenge@outlook.com"
] | happychallenge@outlook.com |
0805fbf1572f603152c9f49194310966efe9515c | 846906de1e1ce1579ed8c0bc6ba3454f87791856 | /NetworkBehaviour/Logic/TensorflowModules/TensorflowBehaviour.py | 262439e6a4403a4cd3f4d29f39b56674682f1f88 | [] | no_license | abahmer/PymoNNto | 48d1a53d660c6da7f45048e61f6bd8954f24ecaf | 17e117c971c1faa44205a69fc095a392aa7a7b9a | refs/heads/master | 2023-03-21T07:40:42.336567 | 2021-03-08T12:28:46 | 2021-03-08T12:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from PymoNNto.NetworkCore.Behaviour import *
import numpy as np
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
class TensorflowBehaviour(Behaviour):
def set_variables(self, neurons):
if not hasattr(neurons, 'tf'):
neurons.tf = tf
super().set_variables(neuro... | [
"mv15go@gmail.com"
] | mv15go@gmail.com |
e2eb4050d6367ccba352643e8999a26590f0a3d0 | 453ca12d912f6498720152342085636ba00c28a1 | /leetcode/backtracking/python/wildcard_matching_leetcode.py | 67c7f721cab4c6eab9cd03006a6c461377f9bfb3 | [] | no_license | yanbinkang/problem-bank | f9aa65d83a32b830754a353b6de0bb7861a37ec0 | bf9cdf9ec680c9cdca1357a978c3097d19e634ae | refs/heads/master | 2020-06-28T03:36:49.401092 | 2019-05-20T15:13:48 | 2019-05-20T15:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,976 | py | """
https://leetcode.com/problems/wildcard-matching/
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover the entire input string (not partial).
The function prototype shou... | [
"albert.agram@gmail.com"
] | albert.agram@gmail.com |
ef815d59dad6b7592dd1e4fd7515e8cce1897def | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractMasterpasterWordpressCom.py | 4f0f90aed8ef9c7ad57e152828a2279189a98583 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 647 | py | def extractMasterpasterWordpressCom(item):
'''
Parser for 'masterpaster.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('shinmai', 'Shinmai Maou no Keiyakusha', ... | [
"something@fake-url.com"
] | something@fake-url.com |
bbdfd97c6d54ce1442ecff7b01a9b00e9c63b75a | 8bb950ffb6036dc89e78d89cb5dd633d8878ab08 | /Phys_Seg/predict_case.py | f89c8f5f57db5001dba2b8125cb781f206090803 | [
"Apache-2.0"
] | permissive | pedrob37/Phys_Seg | 0d8a2be4188cf9a33cce079a8c99da54acaafda6 | 7adc65d7b228b3a5702acfa9e6d0494d6b4c2dee | refs/heads/main | 2023-07-31T06:46:02.617742 | 2021-10-01T17:53:09 | 2021-10-01T18:23:18 | 387,182,741 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,857 | py | import torch
import numpy as np
from typing import Callable, Union
import torch.nn.functional as F
from monai.data.utils import compute_importance_map, dense_patch_slices, get_valid_patch_size
from monai.utils import BlendMode, PytorchPadMode, fall_back_tuple
# def pad_patient_3D(patient, shape_must_be_divisible_by=1... | [
"p.borges.17@ucl.ac.uk"
] | p.borges.17@ucl.ac.uk |
9b1e420a0e4354604283ca8f209c4beef3dcbce4 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/rttoepgforepgtoepgtask.py | eb38250be2a5a73454884d50578ab1d72c276477 | [] | 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 | 18,769 | 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 |
9f6345850132d48dabb1e26044ea02ea449056c4 | 4c9a5f1b44ad6fa84a984b8164414c99aba7f391 | /pepper/modules/python/Stitch.py | 0734eb61c124c59b09ff199496d23bcc7754cb4f | [
"MIT"
] | permissive | kishwarshafin/pepper | 20760a2a820d77ca5fc798957f0de658e936dcca | 30c8907501b254bb72d8f64dfb8cf54a1b7a60eb | refs/heads/r0.8 | 2023-08-04T07:03:53.564606 | 2022-07-08T18:22:01 | 2022-07-08T18:22:01 | 185,895,043 | 219 | 41 | MIT | 2023-07-22T05:17:46 | 2019-05-10T01:13:11 | Python | UTF-8 | Python | false | false | 5,521 | py | import h5py
import sys
from os.path import isfile, join
from os import listdir
import concurrent.futures
import numpy as np
from collections import defaultdict
import operator
from pepper.modules.python.Options import ImageSizeOptions
from datetime import datetime
label_decoder = {1: 'A', 2: 'C', 3: 'G', 4: 'T', 0: '... | [
"kishwar.shafin@gmail.com"
] | kishwar.shafin@gmail.com |
6557d0f91c736194fd7b901916bf5c217d93a5c8 | e2f20ded13f4877248b2db7d5251c701bc586745 | /hggStyle.py | b743da4cb04a28f2693918482b6b945763ab6a92 | [] | no_license | flashgg-validation/plotZeeValidation | 965f1c8c8dd5aa5e7250abad04add18a48955ee8 | 0c845060d7498ce92780839ec2da46515145abf3 | refs/heads/master | 2021-01-17T07:52:56.292151 | 2017-02-13T15:18:21 | 2017-02-13T15:18:21 | 60,186,146 | 0 | 2 | null | 2016-06-03T15:03:54 | 2016-06-01T14:53:36 | Python | UTF-8 | Python | false | false | 1,451 | py | import ROOT
def hggStyle():
hggStyle = ROOT.TStyle("hggPaperStyle","Hgg Paper Style")
hggStyle.SetFrameFillColor(0)
hggStyle.SetStatColor(0)
hggStyle.SetOptStat(0)
hggStyle.SetTitleFillColor(0)
hggStyle.SetCanvasBorderMode(0)
hggStyle.SetPadBorderMode(0)
hggStyle.SetFrameBorderMode(0)
... | [
"matteosan1@gmail.com"
] | matteosan1@gmail.com |
868f76281959f6253538cf380f9a2a1802982d27 | 80bbc5a4a5ebbf1be75afc8cd0102dcd60a6a081 | /huaula/github.py | 3aa2e1ee9344de60626d53cb4631a59a37e5ffcd | [
"MIT"
] | permissive | renzon/hu | 642dc6bac9501eaee99623108d4c5c0aa04a1c52 | 4147f38e138e73db54cd9a81812795e793bdb921 | refs/heads/master | 2021-01-01T05:01:03.889460 | 2016-05-13T20:55:08 | 2016-05-13T20:55:08 | 58,227,578 | 2 | 1 | MIT | 2019-10-22T18:03:47 | 2016-05-06T18:38:25 | Python | UTF-8 | Python | false | false | 501 | py | import json
from os import path
import requests
diretorio_dese_arquivo = path.dirname(__file__)
diretorio_huaula = path.join(diretorio_dese_arquivo, '..')
diretorio_do_projeto = path.abspath(diretorio_huaula)
import sys
sys.path.append(diretorio_do_projeto)
from huaula import dunder_main
def buscar_avatar(nome):
... | [
"renzon@gmail.com"
] | renzon@gmail.com |
9e677bece07b63a388f96d5c6dd85353008dfab7 | 531c5c6fab45a69c36b716196c713fa1b67cc88f | /0x00_ret2win/32-bit/exploit.py | 11229c37cbfd158ba3eb985b9b7c4fcab0a002ed | [] | no_license | youngkao/ROP_Emporium | b79a06bb97db9fc3d156c064a84f35e585493fa5 | d4ca8b99bf2960e2c867f3360c901e649a614f8c | refs/heads/master | 2022-02-19T04:05:33.706883 | 2019-09-25T12:23:39 | 2019-09-25T12:23:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import sys; sys.path.append("../..")
import shared_pwn
from pwn import *
BINARY_NAME = "ret2win32"
BUFFER_LEN = 44
io = process(f"./{BINARY_NAME}")
junk = b"\x90" * BUFFER_LEN
# Pointers
win_addr = p32(0x08048659)
# Payload creation
payload = b""
payload += junk
payload += win_addr
io.recvuntil("> ")
io.send(payl... | [
"afray@protonmail.com"
] | afray@protonmail.com |
c036217771fed754eb3e8ccbcefae4fe4921134a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_variegated.py | 066dd80491cf63f80a64cabdac0ff24abbe116a3 | [
"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 | 414 | py |
#calss header
class _VARIEGATED():
def __init__(self,):
self.name = "VARIEGATED"
self.definitions = [u'having a pattern of different colours or marks: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsond... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1b0da8a0baa221478bc19fb0a1088a711ad3a254 | 6ea679ac5cdaf5e6f8d9584194ad74440762eea3 | /lib/exabgp/bgp/message/open/capability/capability.py | 7a6fccdf09ef4c9778a8b12e6ea3e2e5c7eff9fa | [] | no_license | h-naoto/exabgp | 0d7b307d9e23e50a295bc70283141c58f9ef83f1 | 05a96e99c35256160df8923e7a17f57e3ca36e3d | refs/heads/master | 2021-01-15T18:04:42.333066 | 2015-02-05T08:11:37 | 2015-02-05T08:11:37 | 30,223,499 | 0 | 0 | null | 2015-02-03T03:48:25 | 2015-02-03T03:48:25 | null | UTF-8 | Python | false | false | 4,190 | py | # encoding: utf-8
"""
capability.py
Created by Thomas Mangin on 2012-07-17.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""
from exabgp.bgp.message.notification import Notify
# =================================================================== Capability
#
class Capability (object):
class CODE (i... | [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
2afaad96ff00e3e3de0b221b11e2f3db5bd578bf | d1f971b9fa0edfa633b62887cf9d173d6a86a440 | /data_structures_and_algorithms/exercises/Recursions/sum_digits_iterative.py | d6529b86b2ccb00c3aef778d5028fdab5cc12eec | [] | no_license | papan36125/python_exercises | d45cf434c15aa46e10967c13fbe9658915826478 | 748eed2b19bccf4b5c700075675de87c7c70c46e | refs/heads/master | 2020-04-28T10:01:10.361108 | 2019-05-10T13:45:35 | 2019-05-10T13:45:35 | 175,187,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # Linear - O(N)
def sum_digits(n):
if n < 0:
ValueError("Inputs 0 or greater only!")
result = 0
while n is not 0:
result += n % 10
n = n // 10
return result + n
sum_digits(12)
# 1 + 2
# 3
sum_digits(552)
# 5 + 5 + 2
# 12
sum_digits(123456789)
# 1 + 2 + 3 + 4...
# 45
| [
"noreply@github.com"
] | papan36125.noreply@github.com |
80bbc6e2f6bcd9d7b41013d8b2c550e98e0920ed | da853ef2c9946344ae34829355a507052f1af411 | /PycharmProjects/tuples.py | cf7ab20f7eeaa1f522356d52123c7c22e400e309 | [] | no_license | SubhamSingh1/star | c4f3d2ac0470e81847fef4436c0cbd3e1ea9bf6c | 33531c1f224e0a553d93d877724db673bf6941db | refs/heads/master | 2022-12-21T13:27:03.969571 | 2021-10-01T07:31:17 | 2021-10-01T07:31:17 | 235,774,208 | 0 | 0 | null | 2022-12-14T11:40:12 | 2020-01-23T10:43:20 | Python | UTF-8 | Python | false | false | 57 | py | tuple1 = (1,2,3,4,5)
print(tuple1[-1])
print(tuple1[-4])
| [
"60218236+SubhamSingh1@users.noreply.github.com"
] | 60218236+SubhamSingh1@users.noreply.github.com |
51278c6c7c276bdac6699685e2380d14239b4a52 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binaryTree2_20200617161602.py | 904a5a72342f25c5640e14213b27638d3386851d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # Create a node and assign a value to the node
# A tree node contains data then pointer to left child and pointer to right child
class Node:
def __init__(self,data):
# designate one node as root
self.data = data
# then the two others as child nodes
self.left = None
self.... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
a7b54272021537b38792b78c662b99775170cab6 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqpt/ingrerrpktshist.py | dbdeaffa4a8787bcd1449adb1fd085f6c88d4156 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 24,286 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
c5c6fbb99ac0691b8a7dfdef534b8d24fd07f978 | 7b9527f6a66bf544071c07498163883ae33ff9ec | /python/1890.py | abe9b60579196c7c25b4d2637e34034451d9754d | [] | no_license | rhyun9584/BOJ | ec4133718934e59689cdcc0d3284bad9a412dc7a | f4c651da7c4840595175abf201d07151d4ac9402 | refs/heads/master | 2023-08-31T21:29:07.550395 | 2023-08-25T16:53:53 | 2023-08-25T16:53:53 | 225,122,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | # 갈 수 없는 경로에 대해 체크할 수 있으면 시간이 더 줄어들것같은데...
import sys
sys.setrecursionlimit(10**5)
N = int(input())
maps = [list(map(int, input().split())) for _ in range(N)]
dp_table = [[0]*N for _ in range(N)]
dp_table[N-1][N-1] = 1
road = []
def dfs(x, y):
global count
d = maps[x][y]
if dp_table[x][y] > 0:
... | [
"rhyun9584@naver.com"
] | rhyun9584@naver.com |
f0273087f58f8b16f942e2277ca294b63150082b | 7e40c8bb28c2cee8e023751557b90ef7ef518326 | /npuctf_2020_bad_guy/npuctf_2020_bad_guy.py | 932efdc96ee2919b873e1565c181f2bb8861c812 | [] | no_license | 1337536723/buuctf_pwn | b6e5d65372ed0638a722faef1775026a89321fa3 | cca3c4151a50c7d7c3237dab2c5a283dbcf6fccf | refs/heads/master | 2023-08-29T19:35:04.352530 | 2021-11-16T14:06:20 | 2021-11-16T14:06:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | from pwn import *
#context.log_level = 'debug'
context.arch = 'amd64'
#p = remote('node4.buuoj.cn', )
libc = ELF('libc-2.23.buu.so')
ru = lambda s : p.recvuntil(s)
sn = lambda s : p.send(s)
sla = lambda r, s : p.sendlineafter(r, s)
sa = lambda r, s : p.sendafter(r, s)
sl = lambda s : p.sendline(s)
rv = lambda s : p... | [
"admin@srmxy.cn"
] | admin@srmxy.cn |
7280ce1423804ba07d711d41cda2d662613bc199 | 809e1b7ca0d9e265c4f3e49e18e4e3c64e561526 | /login/loginreg/views - Copy.py | f0f7cf87a84a6fd07bf8955930eddf73b1b74626 | [] | no_license | gitanjali1077/Login | e4a9c6ede5916a2d42440b29fdf424ad6a80a688 | 5823579b14df68874c8df07a95ec9a796b705207 | refs/heads/master | 2021-01-22T21:41:33.529308 | 2017-08-14T15:45:43 | 2017-08-14T15:45:43 | 85,465,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,251 | py | from login.settings import SENDER,PASS
import smtplib
from django.shortcuts import render,render_to_response
from django import forms
from django.views.generic import View
from django.views.generic.edit import FormView
from django.views import generic
#require a form to create a new object
from django.views.generic.edi... | [
"gitanjali1077@gmail.com"
] | gitanjali1077@gmail.com |
65804be70908e44da99b1c7b18eab58a05435784 | 5fff534c0f5b5c1de498a9be7d7cd7f1f86ba5a1 | /myvenv/bin/viewer.py | 8aaa5b0ed68e599bb3af7c711324c71e7f4f1f55 | [] | no_license | baidoosik/portfolio | 1287d2e4803608f83e1ba4190d82af76fd29db08 | 6f4b2c861231fae326d47cbbe9711139ab041d59 | refs/heads/master | 2021-01-18T03:14:01.288730 | 2017-06-14T14:59:51 | 2017-06-14T14:59:51 | 85,835,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | #!/Users/doosikbai/worldnomade/myvenv/bin/python3
#
# The Python Imaging Library
# $Id$
#
from __future__ import print_function
try:
from tkinter import Tk, Label
except ImportError:
from Tkinter import Tk, Label
from PIL import Image, ImageTk
#
# an image viewer
class UI(Label):
def __init__(self, m... | [
"qoentlr37@naver.com"
] | qoentlr37@naver.com |
7b710a4e7e7137dd09a8b44701b6dd14e45c605a | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/arithmetic_slices.py | c77282972d02cdeaf46c52a16d55caf6ef39dc8d | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.
For example, these are arithmetic sequence:
1, 3, 5, 7, 9
7, 7, 7, 7
3, -1, -5, -9
The following sequence is n... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
1a28e3779dba8c219f0d15eae95d6f27d2cc046a | 99ec9dbc139fda4d2b29509dcf606cf836eacc5f | /Dust-wave/zones-v-n-plane-RSG.py | 6625fd7fe00248f28491c893b585b5e894f714c3 | [] | no_license | will-henney/bowshock-shape | 1f1caa9a6fea2681ce356d5679cafacef2aab9e1 | dfdb1f997bf05fa0f8a5b5101aeaa8d4292e012f | refs/heads/master | 2022-11-17T09:22:46.334456 | 2020-07-14T04:29:22 | 2020-07-14T04:29:22 | 5,662,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,705 | py | import sys
import numpy as np
from matplotlib import pyplot as plt
import seaborn as sns
from vec_root import chandrupatla
figname = sys.argv[0].replace('.py', '.pdf')
sns.set_style('ticks')
sns.set_color_codes('dark')
fig, axes = plt.subplots(1, 1, sharex=True, sharey=True, figsize=(3.3, 4))
stardata = [
[20.0, ... | [
"will@henney.org"
] | will@henney.org |
84b098542f09ce09f47cdfecd5c51858d6f9b957 | 088314e3bd6ca7ef34d15f2aa45b743b363641d9 | /tasks/NDH/eval.py | c642e81a150d653a372f2db34e9c4c14b3f370b0 | [
"MIT"
] | permissive | weituo12321/PREVALENT_R2R | 7a27d580fcbe8f72a209697d053ca3eb2013e3a0 | 868fb53d6b7978bbb10439a59e65044c811ee5c2 | refs/heads/master | 2022-11-24T00:54:32.385940 | 2020-07-24T17:56:42 | 2020-07-24T17:56:42 | 248,832,547 | 8 | 7 | MIT | 2022-11-22T02:10:54 | 2020-03-20T19:07:08 | Python | UTF-8 | Python | false | false | 8,272 | py | ''' Evaluation of agent trajectories '''
import json
import os
import sys
from collections import defaultdict
import networkx as nx
import numpy as np
import pprint
pp = pprint.PrettyPrinter(indent=4)
from env import R2RBatch
from utils import load_datasets, load_nav_graphs
from agent import BaseAgent, StopAgent, Ran... | [
"weituo.hao@gmail.com"
] | weituo.hao@gmail.com |
5e388aaa8b1c889e2a5ad3e841a1666c7eaea2b3 | 74b12c96a73d464e3ca3241ae83a0b6fe984b913 | /python/tvm/relay/backend/contrib/ethosu/tir/pooling.py | 7fdebf05f068c8a5c0a9529650aaaf625625f4c4 | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | masahi/tvm | cf765bb892655f02135e1ce3afde88698f026483 | c400f7e871214451b75f20f4879992becfe5e3a4 | refs/heads/master | 2023-08-22T20:46:25.795382 | 2022-04-13T08:47:10 | 2022-04-13T08:47:10 | 138,661,036 | 4 | 2 | Apache-2.0 | 2021-09-03T20:35:19 | 2018-06-25T23:39:51 | Python | UTF-8 | Python | false | false | 3,729 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | masahi.noreply@github.com |
79e117c269dacbcef4971383833eb94557dd58d8 | b48ca98425b9510d16623277a0761a33c00d028d | /SeatReservation-Version3.0/SeatReservation-master/venv/Lib/site-packages/pip-9.0.1-py3.6.egg/pip/utils/ui.py | f036ae7639247d194c377af4e8f5227175c154ff | [] | no_license | billgoo/WHULibSeatReservation | f74a01db19f51a2034772d932c59afd9f63c7753 | 5423ef7df253739ccf279365c1dec1ebfe7f2c4f | refs/heads/master | 2020-04-02T07:18:33.174744 | 2018-12-23T15:26:15 | 2018-12-23T15:26:15 | 154,190,237 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,872 | py |
import itertools
import sys
from signal import signal, SIGINT, default_int_handler
import time
import contextlib
import logging
from pip.compat import WINDOWS
from pip.utils import format_size
from pip.utils.logging import get_indentation
from pip._vendor import six
from pip._vendor.progress.bar impor... | [
"noreply@github.com"
] | billgoo.noreply@github.com |
9042bc2e7dfed5812249fb189fa1277d8d1c2be2 | 8f26514c451e2398d5e3688c184ea74d1dad21b2 | /month_02/teacher/day16/epoll_server.py | d519fab12014a4ac0890707f142243e5f1733a11 | [] | no_license | CircularWorld/Python_exercise | 25e7aebe45b4d2ee4e3e3afded082c56483117de | 96d4d9c5c626f418803f44584c5350b7ce514368 | refs/heads/master | 2022-11-21T07:29:39.054971 | 2020-07-20T10:12:24 | 2020-07-20T10:12:24 | 281,081,559 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | """
基于epoll方法实现IO并发
重点代码 !
"""
from socket import *
from select import *
# 全局变量
HOST = "0.0.0.0"
PORT = 8889
ADDR = (HOST,PORT)
# 创建tcp套接字
tcp_socket = socket()
tcp_socket.bind(ADDR)
tcp_socket.listen(5)
# 设置为非阻塞
tcp_socket.setblocking(False)
p = epoll() # 建立epoll对象
p.register(tcp_socket,EPOLLIN) # 初始监听对象
# 准备工作,... | [
"jiayuhaowork@163.com"
] | jiayuhaowork@163.com |
6ab5b5216d0eb2a8650fcd1a62bcbabf049f5313 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/abc/089c_2.py | 94da387294f84700a87543a31909ed7bb1b5e285 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from itertools import combinations
from collections import defaultdict
import sys
input = sys.stdin.readline
N = int(input())
cnt = defaultdict(int)
for _ in range(N):
s = input()
cnt[s[0]] += 1
ans = 0
for h in combinations(['M', 'A', 'R', 'C', 'H'], r=3):
prd = 1
for s in h:
prd *= cnt[s]
... | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
9515c0bdd85d803050097e6ea7dac81417d8aa7d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC2883.py | 3831cd0f21334b15907eb8542ea5d15be806d7d0 | [
"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,471 | py | # qubit number=4
# total number=40
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
fc65a08e5902987c77d2744f2246f2ddbcaabf20 | 2ce27b05f45cef6ce3ae5c02b8e83e548def2fc6 | /ADVANCE/Functions/Built in Function/reversed( ).py | dee1fad79a5a200d090d2edf08814e238497790f | [] | no_license | Ajay2521/Python | 775b7d99736e83e4d0c37302b91d1413dd2c0d3b | a426dd7717de8a5e60e584d208ae7120bb84c1b3 | refs/heads/master | 2022-12-01T17:49:12.672061 | 2020-08-15T14:55:12 | 2020-08-15T14:55:12 | 273,632,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # In this lets see about the "Built-in functions" in python.
# Built-in function is defined as the functions whose functionality is pre-defined in the python compiler.
# Lets see about "reversed( ) bilt-in function" in python.
# reversed( ) - Used to returns the reversed iterator of the given sequence.
# He... | [
"noreply@github.com"
] | Ajay2521.noreply@github.com |
2f7fe328ac611be8426399a64197dce120f4b2ec | 978e8e7397237a269ce55dff551aee65948d3803 | /trading/settings.py | 5f9f8f43ae749e67986d13bd7fa39f95cfc9ae2c | [] | no_license | AlexsandroMO/Bitcoin | cca28beeb712b63f31c7ef1c54aced47d8de3153 | e19498660d5e3a9fdaee7fdb17e9a5464ebdac8d | refs/heads/master | 2020-09-26T02:47:41.616660 | 2019-12-05T16:48:48 | 2019-12-05T16:48:48 | 226,146,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,176 | py |
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = '#v!6idcn2=1^#6s_2x=v*r7ru(^ktkf@rz8#w)jk(_l!po4!yv'
DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sess... | [
"sandrobass@hotmail.com"
] | sandrobass@hotmail.com |
15c9a8ad3e8f75753d97ea1fff7da9f2912bb9ec | 5387c60df3941243b869547e67eebf2b4bf899e4 | /restfullmusiccrud/manage.py | de3f5d6c490f265ac2a7ee428fe76d12b0efc9d5 | [
"Apache-2.0"
] | permissive | v22kumar/MyTestexcs | 9148a433368b9081c0da23ae35f5da16bf6e33c0 | 392cf8220fa86349f29d1550dfd514dd99b304c8 | refs/heads/master | 2021-04-12T20:01:48.829192 | 2020-04-08T06:59:07 | 2020-04-08T06:59:07 | 249,106,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "restfullmusiccrud.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dj... | [
"you@example.com"
] | you@example.com |
2e1b85709112fd757467515b49f272c9a5c81781 | c7cc93a740664b907e1aec01f908b2aff3e8280c | /chainer_/chainercv2/models/mobilenetv3.py | 42fbc2ddeb9c7746290924ef4abe19500e1eb822 | [
"MIT"
] | permissive | avinash-chouhan/imgclsmob | 9f2e46c9fd4fc0bb542de27e2ae4b9fc347964cc | ff46766065ea7846f8b36701451afc2bf6d667d3 | refs/heads/master | 2020-06-01T20:56:55.259224 | 2019-06-08T10:53:51 | 2019-06-08T10:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,808 | py | """
MobileNetV2, implemented in Chainer.
Original paper: 'Searching for MobileNetV3,' https://arxiv.org/abs/1905.02244.
"""
__all__ = ['MobileNetV3', 'mobilenetv3_small_w7d20', 'mobilenetv3_small_wd2', 'mobilenetv3_small_w3d4',
'mobilenetv3_small_w1', 'mobilenetv3_small_w5d4', 'mobilenetv3_large_w7d... | [
"osemery@gmail.com"
] | osemery@gmail.com |
0a6d031e52c377dfeb5f3cf7f389bdc52a2c51d4 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20170901/application_security_group.py | ac52e3a85dabe4f471e82c5f7c30605886353ff6 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,134 | 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
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
e89f4fa1910b5e1ead9f3d1bcd08b5811ee1944a | 5a8214b3a452c574e6c883bf5d90ba58ba87c461 | /leetcode/1140.stone-game-ii.py | abbfd17a569afa2a85d2de22865c2faaa350ab43 | [] | no_license | phlalx/algorithms | 69a3c8519687816e3c6333ec12b40659d3e3167f | f4da5a5dbda640b9bcbe14cb60a72c422b5d6240 | refs/heads/master | 2023-02-03T10:30:30.181735 | 2020-12-26T09:47:38 | 2020-12-26T09:47:38 | 129,254,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | #
# @lc app=leetcode id=1140 lang=python3
#
# [1140] Stone Game II
#
# https://leetcode.com/problems/stone-game-ii/description/
#
# algorithms
# Medium (62.00%)
# Likes: 335
# Dislikes: 75
# Total Accepted: 11.4K
# Total Submissions: 18.4K
# Testcase Example: '[2,7,9,4,4]'
#
# Alex and Lee continue their games w... | [
"phlalx@users.noreply.github.com"
] | phlalx@users.noreply.github.com |
c1b22849629d6c3615ebfb29f802a866b205482b | 3b79a802f8dd9f26bee0bfde4630ac0cab932803 | /srcHashTag/statisticHashtag.py | 11eb49bb3a43550f017598f6d4cfd9ad00cbd48b | [] | no_license | qolina/Twevent | 87fc4706564088361e9db6ddc44efc10647e67fe | 4b90b0604493b20dee90448c17e0a8e0d557165e | refs/heads/master | 2021-06-24T19:06:02.022882 | 2017-08-15T05:20:09 | 2017-08-15T05:20:09 | 100,341,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,044 | py | #! /usr/bin/env python
#coding=utf-8
import time
import re
import os
import math
import cPickle
############################
## load tweets' social feature
def loadsocialfeature(filepath):
inFile = file(filepath,"r")
tweSFHash = cPickle.load(inFile)
inFile.close()
print "### " + str(time.... | [
"qolina@gmail.com"
] | qolina@gmail.com |
7efa918f1bb495b80442d7de7a5651b98bfc7627 | 6437a3a4a31ab9ad233d6b2d985beb50ed50de23 | /PythonistaAppTemplate/PythonistaKit.framework/pylib_ext/sympy/functions/elementary/miscellaneous.py | 9f57f5abdd1fb7364e12d77da04ab50572d84e26 | [] | no_license | sreyemnayr/jss-lost-mode-app | 03ddc472decde3c17a11294d8ee48b02f83b71e7 | 3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa | refs/heads/master | 2021-05-02T08:50:10.580091 | 2018-02-08T20:32:29 | 2018-02-08T20:32:29 | 120,813,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,913 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"ryanmeyersweb@gmail.com"
] | ryanmeyersweb@gmail.com |
8e3884896f59a39e13d0286dd45828194ff0cc9f | c5746efe18a5406764c041d149d89c0e0564c5a5 | /1. Python语言核心编程/1. Python核心/Day07/exercise/exercise02.py | 32cc7fbbb5ffb79abbadf328b32b5dc4fe0f60f2 | [] | no_license | ShaoxiongYuan/PycharmProjects | fc7d9eeaf833d3711211cd2fafb81dd277d4e4a3 | 5111d4c0a7644c246f96e2d038c1a10b0648e4bf | refs/heads/master | 2021-12-15T05:45:42.117000 | 2021-11-23T06:45:16 | 2021-11-23T06:45:16 | 241,294,858 | 3 | 1 | null | 2021-02-20T15:29:07 | 2020-02-18T07:06:08 | Jupyter Notebook | UTF-8 | Python | false | false | 528 | py | def if_same_element(target_list):
"""
判断列表中是否有相同元素
:param target_list: 一个列表
:return: 是否有相同元素
"""
# result = False
for i in range(len(target_list) - 1):
for a in range(i + 1, len(target_list)):
if target_list[i] == target_list[a]:
return True
... | [
"ysxstevenpp123@gmail.com"
] | ysxstevenpp123@gmail.com |
853c926761dfcdcbcd017ed1b743532f010314aa | 9e55f933b1228d50597b3ee723881674b8c25adf | /store_backend/config/settings/common.py | fd2c0b762d042217d8b942c8c0c2fb4bba89c152 | [
"MIT"
] | permissive | rudolphpienaar/ChRIS_store | e77abdcc892bb5066d697add5673f1c9e198fa4f | db924ded8e3323bc77b5eb974516df1d70cdd4d4 | refs/heads/master | 2020-03-06T21:41:59.060552 | 2019-11-14T02:43:31 | 2019-11-14T02:43:31 | 127,084,343 | 0 | 0 | null | 2018-03-28T04:37:25 | 2018-03-28T04:37:24 | null | UTF-8 | Python | false | false | 4,016 | py | # -*- coding: utf-8 -*-
"""
Django settings for chris_backend project.
Generated by 'django-admin startproject' using Django 1.9.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/r... | [
"jbernal0019@yahoo.es"
] | jbernal0019@yahoo.es |
fefdc0b44aed4811b72cf261766d16d88f7f1353 | 1bd3076902117867ec048210905195ba2aaaaa6b | /exercise/leetcode/python_src/by2017_Sep/Leet395.py | b0a38ca7d29434c505c9378e24dcca7f581c9b1f | [] | no_license | SS4G/AlgorithmTraining | d75987929f1f86cd5735bc146e86b76c7747a1ab | 7a1c3aba65f338f6e11afd2864dabd2b26142b6c | refs/heads/master | 2021-01-17T20:54:31.120884 | 2020-06-03T15:04:10 | 2020-06-03T15:04:10 | 84,150,587 | 2 | 0 | null | 2017-10-19T11:50:38 | 2017-03-07T03:33:04 | Python | UTF-8 | Python | false | false | 1,068 | py | class Solution(object):
def longestSubstring(self, s, k):
"""
:type s: str
:type k: int
:rtype: int
"""
if len(s) == 0:
return 0
return self.divideRecursive(s, k)
def divideRecursive(self, s, k):
cntDict = {}
for i in s:
... | [
"ziheng_song@126.com"
] | ziheng_song@126.com |
738462812ea73a23745bc0c307d24cb2fdd2bd41 | 677189954b8efda10f743a22a5758707ee0d6862 | /extended_choices/helpers.py | c4f69af697b712b73afb3702ae804bd9278885e2 | [
"BSD-3-Clause"
] | permissive | areski/django-extended-choices | 5526aa43f2d562ac95be2db5e2f18d8352d5021e | ec7f8b23509174623e04a1c1d0d3832bd4c0d7fe | refs/heads/master | 2021-01-21T03:16:07.006461 | 2015-10-14T21:20:06 | 2015-10-14T21:20:06 | 47,980,892 | 0 | 0 | null | 2015-12-14T14:45:50 | 2015-12-14T14:45:50 | null | UTF-8 | Python | false | false | 10,205 | py | """Provides classes used to construct a full ``Choices`` instance.
Notes
-----
The documentation format in this file is numpydoc_.
.. _numpydoc: https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt
"""
from __future__ import unicode_literals
from builtins import object
try:
import cPickle as... | [
"s.angel@twidi.com"
] | s.angel@twidi.com |
8d9d148953206e97e3b9e765ea30a82e1f309b3c | b52781b9065f6c571beb1b87cc1bbe2bd121d272 | /homework02-2.py | ec526d0046c8919a827e61fc4c767ff2980b0b1d | [
"Apache-2.0"
] | permissive | liuhuihui123/liuhuihui | 97e4182bb2003b95d1236f8f8e108215beaa9dfa | 5dfa7b6ba7bc752edc48e981dd71f81017d3b673 | refs/heads/master | 2020-03-29T18:06:07.971173 | 2018-10-12T01:28:21 | 2018-10-12T01:28:21 | 150,194,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | '''#1
import math
a, b, c = eval(raw_input("Enter a, b, c:"))
n = b*b-4*a*c
if (n>0):
r1 =( -b + math.sqrt(b*b-4*a*c))/2*a
r2 =( -b - math.sqrt(b*b-4*a*c))/2*a
print(r1 , r2)
elif (n==0):
r1 =( -b + math.sqrt(b*b-4*a*c))/2*a
r2 =( -b - math.sqrt(b*b-4*a*c))/2*a
r1 = r2
print(r1)
if (n<0) :
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9687778c402ee8e82a0755b2f05fcccedc652e9c | 747afe9a5915c28831b86b0a5e2c044212664da5 | /20170908/lyrichu_20170908_02.py | c61772bc56e104218c145a6deb05cb7f8116d16d | [] | no_license | nitinreddy3/Python-Machine-Learning-Homework | 61c7b882b49e868ca37443feaa89494d5b6eba4a | b088bdcdb24892260e1db416d50f0750872e80bc | refs/heads/master | 2021-07-17T04:42:12.233768 | 2017-10-23T15:29:24 | 2017-10-23T15:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/9/8 17:55
# @Author : Lyrichu
# @Email : 919987476@qq.com
# @File : lyrichu_20170908_02.py
'''
@Description:
2、100个人围成一圈,编号从1开始到100.从1开始报数,报到M的人自动退出,下一个人接着从1开始报数,直到剩余人数小于M。求最后剩余人的编号。
样例输入:
3
样例输出:
58 91
样例输入2:
4
样例输出2:
34 45 97
'''
m = int(raw_input())
r... | [
"919987476@qq.com"
] | 919987476@qq.com |
53736c845010ca9ab5541f5868401ff5198989c3 | c8e6cf760a78ec45dbc2d3b6452e352d12da1f43 | /build/android/gyp/compile_resources.py | a40864b8c3e4aa1f405d00e52b7c2a1ecf967b08 | [
"BSD-3-Clause"
] | permissive | tojoyccnu/chromium | 15479d1d9e8159d5eecd61571d33effa78e573b7 | 8cba72403a712767289acb2c7cd06d1116db42cc | refs/heads/master | 2023-03-04T11:55:25.131615 | 2018-06-26T13:34:07 | 2018-06-26T13:34:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,111 | py | #!/usr/bin/env python
#
# Copyright (c) 2012 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.
"""Compile Android resources into an intermediate APK.
This can also generate an R.txt, and an .srcjar file containing the prope... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
aa5f9d8ad652004e8dfb05b3084f3c093ae308dc | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/pastel/stack.py | 54fb6dca9019d5c0546ee62d3ff5dcb3ade6c880 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/e2/22/00/6320ecd2562677b93d64e56de7c5734b6c4600779bf16003fa0927c1d3 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
2fc342fc0eebc6669e50dc50c0c1d8ca898780a2 | 234c7fb0bdabdd696c8e4c6a449ac2c8e3f14ad5 | /build/PureCloudPlatformClientV2/models/flow_outcome_division_view_entity_listing.py | c6276c1beb04093276698b7e5c4e77068b3ab77d | [
"Apache-2.0",
"MIT"
] | permissive | humano7/platform-client-sdk-python | 2a942c43cc2d69e8cb0c4113d998e6e0664fdedb | dd5b693b1fc90c9dcb36885d7227f11221db5980 | refs/heads/master | 2023-04-12T05:05:53.932393 | 2021-04-22T03:41:22 | 2021-04-22T03:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,784 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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... | [
"purecloud-jenkins@ininica.com"
] | purecloud-jenkins@ininica.com |
07a0488b1aea8b5844b465d7c255d1e90e95f08c | 45034fd848c701ecdcb5f3bd1d3ea43d24abce2d | /agency/xml/feed_avito.py | cb819342318182284342678e39ff819c7382551e | [] | no_license | JazinBazin/height | b5740d17fb5e6e184f8af40d16ccad12d57cea58 | 06fd76fc62567efd3688688197cc66a205a0c309 | refs/heads/master | 2020-05-20T17:05:20.892218 | 2019-06-29T13:40:40 | 2019-06-29T13:40:40 | 185,679,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,041 | py | import xml.etree.ElementTree as ET
avito_feed_file_name = 'feed_avito.xml'
def avito_add_lot_offer(instance):
try:
if instance.transaction_type != 'p':
return
tree = ET.parse(avito_feed_file_name)
feed = tree.getroot()
avito_create_lot_offer(feed, instance)
tre... | [
"yudenichaa@yandex.ru"
] | yudenichaa@yandex.ru |
c9b0c8e2dfee1bbb42c1b6a641db68ca4e2c25d9 | 037877a31670a85fa78b61df9ceabe981cfdfbf6 | /sympy/concrete/__init__.py | ad08eb41b7aa48ef70be397eb1ba68e3f15b61f0 | [] | no_license | certik/sympy_gamma | 6343b02e5d6d1c7d511a3329bbbd27cd11cd7ec8 | b0e555ca03f8476533cb1c19575f4461533837de | refs/heads/master | 2020-12-25T03:52:40.132034 | 2010-02-15T08:02:31 | 2010-02-15T08:02:31 | 344,391 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 136 | py |
from products import product, Product
from summations import sum, Sum
from sums_products import Sum2
from gosper import normal, gosper
| [
"ondrej@certik.cz"
] | ondrej@certik.cz |
03dfab3cd71fc24f153386023aa51f38c46348bd | 612325535126eaddebc230d8c27af095c8e5cc2f | /src/build/android/gyp/pack_relocations.py | 89c01f05a61391682feebe40ddd3c8c1930db4b5 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,671 | py | #!/usr/bin/env python
#
# 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.
"""Pack relocations in a library (or copy unchanged).
If --enable-packing and --configuration-name=='Release', invoke the
r... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
b5261996143a809047a41f5fd39fe46b57b79f0c | 15b12d69ac3123d1562986970ce01d7a47d171de | /typings/nltk/misc/wordfinder.pyi | 8fbb7b9a5fbec1e043e6e51712347842946e93d0 | [
"Apache-2.0"
] | permissive | simplymanas/python-learning | 9b67b5a7acfb3a7c2455a7d1fc66203a2b419c37 | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | refs/heads/master | 2021-07-11T06:40:24.803589 | 2021-06-20T12:06:02 | 2021-06-20T12:06:02 | 241,769,614 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | pyi | """
This type stub file was generated by pyright.
"""
def revword(word):
...
def step(word, x, xf, y, yf, grid):
...
def check(word, dir, x, y, grid, rows, cols):
...
def wordfinder(words, rows=..., cols=..., attempts=..., alph=...):
"""
Attempt to arrange words into a letter-grid with the speci... | [
"manas.dash@tesco.com"
] | manas.dash@tesco.com |
6f9545c1c44ca8d988e519fb3ea7915411b32e56 | bf76afd4a984e5cee607a76f2bb9490797010b33 | /accounts/api/urls.py | 33d0ccc97a22e3b2c5a927ae38ee366e7f23f25f | [] | no_license | itsloys/tweet | a0c75718dd78971aae03129895b0e710dad0b7cc | dfd3a745ac83842999ca9af9085ab26adb150295 | refs/heads/master | 2021-09-07T02:51:33.646734 | 2018-02-16T05:55:49 | 2018-02-16T05:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from django.conf.urls import url
from tweets.api.views import (
TweetListAPIView
)
urlpatterns = [
url(r'^(?P<username>[\w.@+-]+)/tweet/$', TweetListAPIView.as_view(), name='list'),
] | [
"louisaleksieb.dagusen@gmail.com"
] | louisaleksieb.dagusen@gmail.com |
ead0e0a903999cb85caad2b76d28601ad31e19a1 | 590a4f34de0dd9b964b52e41d84cf3218609c9d4 | /climbingStairs.py | 1ca699fb1a7c1009fc8ee36c297063024d7130f0 | [] | no_license | zhrmrz/climbingStairs | 81d97c5b23b811116192ea27172170a9ff55aa68 | 0455ad42e56dca3a1ee66c121323faf90d1efc98 | refs/heads/master | 2020-04-23T03:50:25.962986 | 2019-02-15T15:52:32 | 2019-02-15T15:52:32 | 170,889,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | class Sol:
def climbing_stairs(self,numOfStairs):
if numOfStairs ==1 or numOfStairs ==0:
return 1
return self.climbing_stairs(numOfStairs - 1) + self.climbing_stairs(numOfStairs - 2)
if __name__ == '__main__':
numOfStairs=5
p1=Sol()
print(p1.climbing_stairs(numOfStairs))
| [
"noreply@github.com"
] | zhrmrz.noreply@github.com |
666e846a19ec40bfb77ca6238787a9f10d1e0bc6 | aaad70e69d37f92c160c07e4ca03de80becf2c51 | /filesystem/usr/lib/python3.6/typing.py | 38eba04e677eb46599d1e8690a84dbc547044f3f | [] | 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 | 186 | py | {
"MIME": "text/x-python",
"inode_type": "REG",
"magic_type": "Python script, ASCII text executable",
"mode": "-rw-r--r--",
"sha1": "827ca9e64ac471213db81b20b50191728a1e0db3"
} | [
"mathieu.tarral@protonmail.com"
] | mathieu.tarral@protonmail.com |
c2d8c4486d51afdfedb04e6bdffca8563e713970 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02801/s692186683.py | 101c9198ef90d45399d7eca841820863bdf5ef86 | [] | 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 | 39 | py | C = input()
D = chr(ord(C)+1)
print(D) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e7d02b3f6ce84fe8eae213ef42f6cb8167f57557 | 6f69ec5f27716b36d7a61b2d150408118bb65559 | /app/views/clients.py | 5dd16656b768657d3c7388690c44440372371d8c | [
"MIT"
] | permissive | m3ssana/memegen | a3c35a51cc7a45e9ab3556ee5665775b578985f8 | 20510753d7c6811a75295580f6fdb2c459124e7d | refs/heads/main | 2023-03-15T18:50:23.546416 | 2022-07-12T21:19:46 | 2022-07-12T21:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | from sanic import Blueprint, response
from sanic_ext import openapi
from .. import utils
from .helpers import preview_image
from .schemas import AuthResponse, ErrorResponse
blueprint = Blueprint("clients", url_prefix="/")
@blueprint.post("/auth")
@openapi.summary("Validate your API key")
@openapi.response(200, {"ap... | [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com |
2525bb90231a226a0ea32ccb99249f17ba841247 | 60715c9ea4c66d861708531def532814eab781fd | /python-programming-workshop/list/24.listmethods.py | 4cee5ef936923f1209b1adfc70b9c2d7c66add57 | [] | no_license | bala4rtraining/python_programming | 6ce64d035ef04486f5dc9572cb0975dd322fcb3e | 99a5e6cf38448f5a01b310d5f7fa95493139b631 | refs/heads/master | 2023-09-03T00:10:26.272124 | 2021-11-01T08:20:52 | 2021-11-01T08:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py |
fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
print(fruits[0])
print(fruits.count('apple'))
print(fruits.count('tangerine'))
print(fruits.index('banana'))
print(fruits.index('banana', 4)) # Find next banana starting a position 4
print(fruits.reverse()) # the fruits reverse is returning No... | [
"karthikkannan@gmail.com"
] | karthikkannan@gmail.com |
c18ebb7f50f1f17388bcd0a8d07ad564c0918332 | e570b6d6ffee8b600d0047ff9eeb8eb671660a58 | /7. NLTK/NLTK Code.py | 40695e3ab519bbe04b320d5813447a5f4f4e4df1 | [] | no_license | ShashankSinha98/MachineLearning | 06619687bb83a47c9425dee3a5947747f49bbbb8 | 3b6e94107a8dad6bd25faef400bcc94ed1a77ca4 | refs/heads/master | 2022-07-09T14:33:44.674227 | 2020-05-12T19:27:22 | 2020-05-12T19:27:22 | 256,843,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | #!/usr/bin/env python
# coding: utf-8
# In[7]:
import nltk
# In[9]:
from nltk.corpus import brown
# In[10]:
# Corpus- Large collection of text
brown.categories()
# In[11]:
data = brown.sents(categories='fiction')
# In[18]:
print(" ".join(data[1]))
# In[19]:
from nltk.corpus import stopwords
sw =... | [
"34626597+ShashankSinha98@users.noreply.github.com"
] | 34626597+ShashankSinha98@users.noreply.github.com |
36cc8b3c58ca68674925a18aac8712498e09708e | d225ec04301d8abd681d68ad8d7316befc404bc1 | /ZShape/EffAcc/python/scans/EE_mean_Apr12_1251_cfg.py | e60ceb0aea80a1df554aef8fd6b6e2792995aa08 | [] | no_license | UMN-CMS/ZShape_Analysis | 372ea0083d6c0bda2dbba30322ef01269501afa8 | 83bff158b21210b048afbcff0af1e803780ad4bd | refs/heads/master | 2020-06-07T10:34:40.227684 | 2013-12-11T16:59:25 | 2013-12-11T16:59:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,424 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Zefficiency")
process.TimerService = cms.Service("TimerService")
process.load('FWCore.MessageService.MessageLogger_cfi')
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(Tr... | [
"klapoetke@physics.umn.edu"
] | klapoetke@physics.umn.edu |
8064eb59894b1a18df1ff8998010971ec3b593f0 | 9cabdeb8dce5718e8f4f490f3684eba0eb1f2d2e | /test/functional/minchainwork.py | 159c107cadbc5d27259a8c9fbe3ae4678e647321 | [
"MIT"
] | permissive | wolfoxonly/woo | fcfe275007cb102fff10239b0f722264dbbd40e2 | a5fb13575afe855b58915bd8e15cbffb9015e5e2 | refs/heads/master | 2020-03-09T17:00:57.668308 | 2018-05-13T15:21:17 | 2018-05-13T15:21:17 | 127,590,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,949 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Woochain Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test logic for setting nMinimumChainWork on command line.
Nodes don't consider themselves out of "initial ... | [
"415313577@qq.com"
] | 415313577@qq.com |
f1b6352f34d1c818206ce4aea972ca832c438851 | 208d8a40d1497b1623a9ea78ece4a493e5182661 | /redwood/settings.py | a34acff441c423ca7fc5296cf908b114ce437a42 | [] | no_license | muremwa/RedWood | 273de7c5edfac3b43c4e91f03921062375312912 | c0735999f517b280de8211022daeead4ea45bb17 | refs/heads/master | 2021-07-08T02:17:09.659659 | 2020-08-09T15:33:51 | 2020-08-09T15:33:51 | 166,394,652 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,454 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the... | [
"danmburu254@gmail.com"
] | danmburu254@gmail.com |
66b497a4b3bbb7bdc22d36c21f835862ef2a988e | efd517e88c1016ae23156c7efd31ef35421b00e8 | /oscar/apps/partner/migrations/0012_no_null_in_charfields.py | c79c27f5415ba8b14cdf187f870ac9034bee3785 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | harshadbhatia/django-oscar | 2b387f002059c3b8a1dcb231384bc3d7bc6c0bad | d6b51d8719bc9f7a633c157197405ba59eb07f3b | refs/heads/master | 2022-07-27T17:03:51.074089 | 2014-06-20T15:36:43 | 2014-06-20T15:36:43 | 21,063,503 | 0 | 0 | BSD-3-Clause | 2023-08-24T20:08:25 | 2014-06-21T07:56:14 | Python | UTF-8 | Python | false | false | 20,661 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from oscar.core.compat import AUTH_USER_MODEL, AUTH_USER_MODEL_NAME
class Migration(DataMigration):
def forwards(self, orm):
orm.PartnerAddress.objects.filter(first_name__isnul... | [
"m@maikhoepfel.de"
] | m@maikhoepfel.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.