blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b1c38b5c878766c01da5a18679414e6c7da92591 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_yref.py | 7e6de12fbde3d181d7496e94eb85d4bc1c52ff16 | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 489 | py | import _plotly_utils.basevalidators
class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="yref", parent_name="scatter3d.marker.colorbar", **kwargs
):
super(YrefValidator, self).__init__(
plotly_name=plotly_name,
parent_n... | [
"liam@plot.ly"
] | liam@plot.ly |
0b6359ff6e3d4a1aad8a712944c8a1246ff1efa7 | 28ce113cc12aab7f2809c2cb26763055f1722293 | /groceryProject/groceryProject/wsgi.py | 082460953e1d280c971b7a18c90b76e6d43315ab | [] | no_license | sd8917/GroceryWebApp | a899263b5220436d52a0c7a9beb7a379d3f6e112 | 5aa4f3c3e2c9fe0351dafe9ca9471a9fb2fad49e | refs/heads/master | 2022-04-15T15:09:41.375925 | 2020-04-13T10:07:39 | 2020-04-13T10:07:39 | 255,280,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for groceryProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setd... | [
"sudhanshuraj8917@gmail.com"
] | sudhanshuraj8917@gmail.com |
8d1f53f681778dcace34d0bad67e4ce83baac7db | 58d832a76c6cf2d80c31310631efca20658f68d6 | /neural_network/word2vec/createDataset.py | 8280f31ba06e3928f5b80bb70f24df59431b160b | [] | no_license | OneClickDeepLearning/classificationOfResidentialRequests | e6fe0071054337af8cf14acaa3b598123575ce6c | 397dfa6ef0e08669b329f17bd5741de0484e3c9c | refs/heads/master | 2020-05-30T18:52:01.085590 | 2019-09-16T02:36:36 | 2019-09-16T02:36:36 | 189,906,790 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import csv
import re
import jieba
import pandas as pd
file1 = '/Users/sunjincheng/Desktop/Prof-project/NLPproject/data/valid_data_all.csv'
# df = pd.read_csv(file1,encoding='gb18030')
file2 = '../data/split_data.txt'
read_file = open(file1, encoding='gb18030')
lines = csv.reader(read_file)
count=0
lengths = []
write_f... | [
"sjc951213@gmail.com"
] | sjc951213@gmail.com |
789e558277eb3ba1fd9cfb152bc79cdc9a2e5c2c | 53eb6921a7e6ad41f4cf1636290b7704ed0aa736 | /update_recipe.py | 1a87ab2ec667e87d845bffb44d576e825a547cbf | [] | no_license | jakirkham/conda_recipe_tools | 17e903695c1ab4505283efcc7d6e5e73f340e3a2 | 18545e04f3436ec7c67a38274e21e3fb76083797 | refs/heads/master | 2021-01-19T23:48:56.938068 | 2017-01-31T23:55:19 | 2017-01-31T23:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,110 | py | #! /usr/bin/env python
import argparse
import json
import re
from urllib.request import urlopen
try:
from packaging.version import parse as parse_version
except ImportError:
from pip._vendor.packaging.version import parse as parse_version
import jinja2
import yaml
class GitHubSource(object):
RELEASE_UR... | [
"jjhelmus@gmail.com"
] | jjhelmus@gmail.com |
3e32bdba53b1986cb51d700d78ad9809ec72fd2a | 2eeeefe48c56d0dfae4fd568dbaee3c8d2cf3463 | /0Demo/networkanalysisDemo/dns.py | e043c685cc2249e44892b70aef683077cc79c071 | [] | no_license | lijianmingCN/pybase | f6377f7944c043f7241452fcffccc3f49ef0cef9 | 7286a022ff7f40a7289cf69d73e8418a1ecf7b88 | refs/heads/master | 2021-01-02T08:10:42.215672 | 2017-08-01T03:16:29 | 2017-08-01T03:16:29 | 98,953,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # -*- coding: utf-8 -*-
import pcap,dpkt
pc = pcap.pcap()
#We'll start off by setting pypcap's BPF expression to "udp dst port 53"
pc.setfilter('tcp port 80')
for ts, pkt in pc:
eth = dpkt.ethernet.Ethernet(pkt)
ip = eth.data
tcp = ip.data
print tcp.sport
print tcp.dport
if tcp.dport == 80 an... | [
"lijianming@baidu.com"
] | lijianming@baidu.com |
d3e2f4e03843e37f530804f7007b2e645767f953 | 70b50139dcee04f94de958a9ce13236ef4c3bc34 | /modules/ImageChannels.py | 5276cc81486c8a68314652c3c956420809e48bf7 | [
"MIT"
] | permissive | CGL-Deeplearning/KalleR | 8bf8918b25c2afd5ab4dd6a269c2459413d1a96d | d788020a8e63657ed4f26e64be93b92648ee8d9f | refs/heads/master | 2021-09-07T17:41:27.563516 | 2018-02-27T01:28:03 | 2018-02-27T01:28:03 | 119,736,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,868 | py | DEFAULT_MIN_MAP_QUALITY = 5
IMAGE_HEIGHT = 300
IMAGE_WIDTH = 300
IMAGE_BUFFER = 0
CIGAR_MATCH = 0
CIGAR_IN = 1
CIGAR_DEL = 2
MAX_COLOR_VALUE = 254.0
BASE_QUALITY_CAP = 40.0
MAP_QUALITY_CAP = 60.0
MAP_QUALITY_FILTER = 10.0
class ImageChannels:
"""
Handles how many channels to create for each base and their way... | [
"kishwar.shafin@gmail.com"
] | kishwar.shafin@gmail.com |
994c43c41bf04d16ce58d05102eb476e9d4a0d08 | 8f2e6e38bb7ba2205cba57b0beae146d29f0ad3b | /chap7/chap7_1_ngram_2.py | de7b69eb1d767e0de948234dc5e5071f6c3c5927 | [] | no_license | KimDoKy/WebScrapingWithPython | fa08ba83ba560d4f24cddb5e55de938a380dfec2 | bc7dd8a36d3ee0f8e3a13ae9fe0d074733b45938 | refs/heads/master | 2020-12-02T19:20:26.285450 | 2017-08-25T14:27:36 | 2017-08-25T14:27:36 | 96,326,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
def ngrams(input, n):
input = re.sub('\n+', " ", input)
input = re.sub(' +', " ", input)
input = bytes(input, "UTF-8")
input = input.decode("ascii", "ignore")
print(input)
input = input.split(' ')
output = []
for... | [
"makingfunk0@gmail.com"
] | makingfunk0@gmail.com |
df057008387983d394659ff6fc680fea42885a44 | 52e83d67c8b76f83278b61a4c0787abebfa2423c | /DeepLense/Shubham Jain/pipelines/beginner/features/sub_gridding.py | 1d1655e7801803a7e6f870c7e9a0151e7059e250 | [] | no_license | mlsft/gsc_tasks- | 3935142c93cebc978ff35e3f37486438c4dceeed | 84b62aa04f2333d26f8f95a7c0b24c3922bac647 | refs/heads/master | 2022-04-13T16:22:18.054908 | 2020-04-14T11:59:45 | 2020-04-14T11:59:45 | 249,394,940 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,955 | py | import autofit as af
import autolens as al
### PIPELINE DESCRIPTION ###
# In this pipeline we use sub-grids with different resoultions, that oversample the calculation of light profile
# intensities and mass profile deflection angles. In general, a higher level of sub-gridding provides numerically
# more precise resu... | [
"alihariri@MacBook-Air-de-Ali.local"
] | alihariri@MacBook-Air-de-Ali.local |
72d053c6d05b60d62f967c533e27d55e1dabc622 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/combine82/20-tideGauge.py | 998dddd3759e2e9b2093bf2a17792b529133cbb8 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,115 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 16 16:11:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
dir_in = '/lustre/fs0/home/mtadesse/er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
cbfc17ecc8356e425a4ddb2c99cb8b93386b6a16 | 8e2e28a191fa5ec5a6c070ec7e9ccad98c8b4a0b | /test/45-类的getattr属性的链式调用.py | b3eac894c94b012291f1fb95de6113032241a472 | [
"Apache-2.0"
] | permissive | kellanfan/python | 4cd61cbc062e2eee3a900fa7447ca5f0b8f1a999 | 912dc05a3bd0ded9544166a68da23ca0a97b84da | refs/heads/master | 2023-04-06T03:04:38.851928 | 2023-04-01T02:45:56 | 2023-04-01T02:45:56 | 65,542,280 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | #/usr/bin/env python
# pylint: disable=no-member
# -*- encoding: utf-8 -*-
'''
@File : ex_chain.py
@Time : 2019/06/04 14:54:20
@Author : Kellan Fan
@Version : 1.0
@Contact : kellanfan1989@gmail.com
@Desc : 现在很多网站都搞REST API,像:http://api.server/user/timeline/list
如果要写SDK,给每个URL对应的API都... | [
"icyfk1989@163.com"
] | icyfk1989@163.com |
26bf48c842613a75440758d9f1938cf84989e3ca | 868a66fc60f314dfdb8f434f88d2e8d7c2a6552c | /src/marketing/migrations/0001_initial.py | d626ccf4668a311c8695e8fee618007be70012f6 | [] | no_license | RommelTJ/ecommerce | cdd7a1323ff505b70363f6abc2ce9dff9f52b0a5 | 694dab843b0ca2d4c7cd3b671c3fdb69f063d14b | refs/heads/master | 2023-08-14T22:54:23.368159 | 2023-05-31T05:07:30 | 2023-05-31T05:07:30 | 118,721,454 | 0 | 0 | null | 2023-07-25T20:47:48 | 2018-01-24T06:17:34 | Python | UTF-8 | Python | false | false | 974 | py | # Generated by Django 2.0.1 on 2018-03-05 00:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"rommeltj@gmail.com"
] | rommeltj@gmail.com |
34c6a52952b931e9219f69d24931833e3c778a63 | d26f0a7571f951c5c17688a4a395d1bf9039c453 | /torchbiggraph/filtered_eval.py | 0c883dfc9fbf735a3d3863b287df42e059237910 | [
"BSD-3-Clause"
] | permissive | 007vasy/PyTorch-BigGraph | c538af56ff03487b3e108e17747d8a7c4e4d0e7b | c649cf3b70d083d74d253cc95f509eb74fd64fce | refs/heads/master | 2021-01-05T13:38:52.949899 | 2020-02-16T11:40:26 | 2020-02-16T11:41:56 | 241,037,539 | 1 | 0 | NOASSERTION | 2020-02-17T06:42:25 | 2020-02-17T06:42:24 | null | UTF-8 | Python | false | false | 3,744 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE.txt file in the root directory of this source tree.
import logging
from collections import defaultdict
from typing import Dict, List, Tup... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f3772896550c91f8ddfe5217abbaf0e8bf640fc2 | 66a2276f011feb5386db5e480bc0f9c2da6f4f3f | /3ProjectEuler/i101_125/i112bouncy_numbers.py | cd28bd1e6ce44784988e2521946541bbf3762d51 | [] | no_license | greatabel/puzzle_I_cracked | 09edee29464974f9b5358910c5097aa1b4d9aec2 | 7dc252923f17fd89de201dc2ac7540d54d69420d | refs/heads/master | 2021-06-02T11:05:19.962065 | 2019-10-19T14:21:56 | 2019-10-19T14:21:56 | 31,331,091 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | '''
Working from left-to-right if no digit is exceeded by the digit to its left it is called
an increasing number; for example, 134468.
Similarly if no digit is exceeded by the digit to its right it is called a decreasing number;
for example, 66420.
We shall call a positive integer that is neither increasing nor de... | [
"myreceiver2for2github@gmail.com"
] | myreceiver2for2github@gmail.com |
1e01b6ba10197c7552618bd21d4987fae7536559 | 1a7b21525a2bc95511c2c382f301250dec3a2c39 | /test/test_validation.py | d2a5d61c8202f27b843d8dabd336f8325021aec0 | [
"BSD-2-Clause"
] | permissive | ajbansal/sphinxcontrib-confluencebuilder | 4ad742dc1ca73402076f51ff991e8196f8a62cab | 330e31afc4d80b78595113a538b057ecd3323867 | refs/heads/master | 2020-03-28T02:26:55.020788 | 2018-08-08T08:26:08 | 2018-08-08T08:26:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,850 | py | # -*- coding: utf-8 -*-
"""
:copyright: Copyright 2018 by the contributors (see AUTHORS file).
:license: BSD-2-Clause, see LICENSE for details.
"""
from sphinxcontrib.confluencebuilder.builder import ConfluenceBuilder
from sphinxcontrib_confluencebuilder_util import ConfluenceTestUtil as _
from subprocess impo... | [
"james.d.knight@live.com"
] | james.d.knight@live.com |
32c7fb2166b64dd14f3224dddb5854d96e353e2d | d32c039a725c9c1e22c4432d777144584b10c040 | /testcase/Shop_test16_shop_follow.py | 46af76e5e59cb07fd757029bf397274daa6a9296 | [] | no_license | heyu1229/Vaffle_interface | 311a2e6f0be4120aaeaccdeb13203529c6f240ca | 0c78ec8709c6af7d31b28f8e2efc8efe4cc3797c | refs/heads/master | 2022-11-24T04:30:48.698641 | 2020-07-22T05:22:47 | 2020-07-22T05:22:47 | 281,582,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | # -*- coding:UTF-8 -*-
import unittest
import requests
import sys,time
import json,xlrd
# sys.path.append("/usr/lib/python3/heaven_interface_vaffle2.0_auto2/public")
import global_list
sys.path.append(global_list.path+"/public_1")
from get_url import Url
from get_version import Version
from get_token import Token
from ... | [
"1004856404@qq.com"
] | 1004856404@qq.com |
e9009e7baa2f49697d7ccc13779a6d676cf5539c | 1f5ecc9bf6dbc82719a94145916b36a76a4e4207 | /mysqlapp/models.py | 79ff5e99b02b29c0eb2c475e84f0bfbe39dfeaf6 | [] | no_license | GanapathiAmbore/Django-with-Multiple-databases | ad32c56af20f3cdaf546f78636aa65257498da33 | f13594e831f136b331554803fa25287642a24c35 | refs/heads/master | 2020-05-30T21:36:25.063995 | 2019-06-03T11:25:49 | 2019-06-03T11:25:49 | 189,973,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from django.db import models
from django.core.validators import RegexValidator
class Teacher(models.Model):
name=models.CharField(max_length=50)
phone_regex = RegexValidator(regex=r'^\+?1?\d{9,15}$',
message="Phone number must be entered in the format: '+91XXXXXXX'. Up to 10 di... | [
"ganapathiambore@gmail.com"
] | ganapathiambore@gmail.com |
49fc4bd9ec51d4875264fe2d0a104fd1b0a32a30 | 20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7 | /old/s3c/gen.py | c350d19d23465b2c9eeb5b5c3d8bc2e898069c2a | [] | no_license | sarahboufelja54/galatea | f5664f0b3117629b2c5bbe078a1bd52bb5e359e6 | 002a9f2905868be25b71770190fb2d5eda11c861 | refs/heads/master | 2020-12-04T13:45:07.697189 | 2018-12-12T16:27:09 | 2018-12-12T16:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | #script = open('config/6x6/extract/H_interm.sh','w')
for i in xrange(10):
start = i * 5000
end = (i+1) * 5000
char = chr(ord('A')+i)
fname = 'config/6x6/extract/H_interm_exp_h_3_train_cpu_'+char+'.yaml'
#script.write('THEANO_FLAGS="device=gpu0" python extract_features.py '+fname+'\n')
f = o... | [
"goodfellow.ian@gmail.com"
] | goodfellow.ian@gmail.com |
f3cba79e478e55147fa74e9fbd0f25f9ede5f85e | 8af71789222675dddd541bafba681143162f4206 | /apps/descuentos/functions.py | 53dd6efeaf6dbe9c64bcf9da39bf5b304bf74a74 | [] | no_license | RubenAlvarenga/nhakanina | b82d23d80e06aaf49693c8fb65a70ee73e130994 | 3e39a522029c9a6cbb455b2e736ce335ebc4bf1d | refs/heads/master | 2021-01-10T15:32:01.550423 | 2016-03-07T17:34:09 | 2016-03-07T17:34:09 | 43,449,047 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from apps.entidades.models import Persona
def es_socio_afemec(request):
try: persona = Persona.objects.get(pk=int(request.POST['id_persona']))
except: persona = Persona.objects.get(pk=int(request.POST['persona']))
if persona.socio_afemec: return True
else:... | [
"rubenalvarengan@gmail.com"
] | rubenalvarengan@gmail.com |
28e423a7b1759f7093939087b0f412e5562322e7 | f521c77da715d4a1deba79af95e8f95465a9679f | /plot_ZonalTAS_NCEP.py | 22386514675e786724ad9a4873dd003a4deafb99 | [
"MIT"
] | permissive | hairui-hao/ArcticSeaIce | 37e4891d77ad6070e7aa66bfeaf1530be7794384 | 32f630c931e145e1d492aa32a5f32ca3c998876f | refs/heads/master | 2022-03-28T19:25:12.083837 | 2017-10-24T05:25:36 | 2017-10-24T05:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | """
Plots Arctic mean surface temperature (1948-2016) for Jan-month
Website : http://www.esrl.noaa.gov/psd/cgi-bin/data/timeseries/timeseries1.pl
Author : Zachary M. Labe
Date : 15 May 2016
"""
### Import modules
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as c
### Directory... | [
"zml5@cornell.edu"
] | zml5@cornell.edu |
265d659a26b92f71678e40a3fcd28a041cc9a42a | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev1889-1952/base-trunk-1889/exe/engine/attachmentidevice.py | 38aeb4d13f3b951965ace76cba69d9ed7c493573 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,517 | py | """
An Attachment Idevice allows a file to be attached to a package.
"""
from exe.engine.idevice import Idevice
from exe.engine.path import Path
from exe.engine.translate import lateTranslate
from exe.engine.resource import Resource
import logging
log = logging.getLogger(__name__)
class AttachmentIdevice(Idevic... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
57d10a493096e2eeeb88d8446c7a2a26f7492e49 | ec523d48de9c38e0c5d81ac865d43779117650aa | /apps/school/migrations/0007_auto_20210206_1152.py | f836f0186d39b5ae72c999e876c2070cf52dd30a | [] | no_license | drc-ima/moon-school | b4b82e2c71d14a6b57aa75e36100851015f3696a | 94c7675642583ed4b97a4eb716015510fe93ca84 | refs/heads/master | 2023-03-06T10:22:56.699977 | 2021-02-11T15:28:16 | 2021-02-11T15:28:16 | 334,768,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | # Generated by Django 3.1.6 on 2021-02-06 11:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"emmanuelofosu472@gmail.com"
] | emmanuelofosu472@gmail.com |
e18554ebd5d4e16b5fa0cf27ef48a8651a8f5eca | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03148/s022846837.py | b6ba33db833753e64e34435339d47116fcc3ac8b | [] | 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 | 934 | py | import sys
n,k=map(int,input().split())
data=[]
for i in range(n):
t,d=map(int,input().split())
data.append([d,t])
data.sort(reverse=True)
flag=[0]*(n+1)
eat=[]
lst=[]
count=0
for u in data:
d,t=u
if flag[t]==0:
eat.append(u)
flag[t]=1
count+=1
if count==k:
br... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
32671589ba59b738fb6c30283f9d8173ee8e4853 | 48894ae68f0234e263d325470178d67ab313c73e | /sa/apps/reportobjectsummary/tests/test.py | ed8238d78acdc906a1aa1807b5128c5cc4843525 | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## reportobjectsummary Test
##----------------------------------------------------------------------
## Copyright (C) 2007-2009 The NOC Project
## See LICENSE for details
##--------------------------------------------------... | [
"dvolodin7@gmail.com"
] | dvolodin7@gmail.com |
b5321f30fb4be916f71c029472ed6c1fd1b65cc0 | 3844f6dce7967f56585474d96e609da2ee251ed4 | /backend/tony_test_0630_dev_22679/settings.py | 63bec43e250ae0fcdeec769bcb1b50874a5fcd6d | [] | no_license | crowdbotics-apps/tony-test-0630-dev-22679 | 66d13e68dcd8cf48e561984b4118e874af6a2824 | 885bd36fc55149688f46130c0d3606411811123e | refs/heads/master | 2023-06-06T18:17:34.140606 | 2021-06-30T19:37:29 | 2021-06-30T19:37:29 | 381,814,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,209 | py | """
Django settings for tony_test_0630_dev_22679 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
66dd03de2184826c0ac554612f22e8026e2888a4 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/리스트_20200628151653.py | daf2fc9fc4c9d7445937cfe68f4f1d4f67f6b05a | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | # 리스트 []
# 지하철 칸별로 10명, 20명, 30명
# subway1 = 10
# subway2 = 20
# subway3 = 30
subway = [10, 20, 30]
print(subway)
subway = ["유재석", "조세호", "박명수"]
print(subway)
# 조세호씨가 몇 번째 칸에 타고 있는가?
print(subway.index("조세호"))
# 다음 정류장에서 하하씨가 탔다.
subway.append("하하")
print(subway)
# 정형돈씨를 유재석 / 조세호 사이에 넣어본다.
subway.insert(1, "정형돈"... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
f95a708b13556e954e95830289cd4ceab5e767c8 | 0db05f7b843e8450bafd5ae23f8f70f9a9a8c151 | /Src/StdLib/Lib/site-packages/win32com/demos/outlookAddin.py | 8e4ced151dd05e5396080c1dc369becfa471b8d6 | [
"BSD-3-Clause",
"Python-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | IronLanguages/ironpython2 | 9c7f85bd8e6bca300e16f8c92f6384cecb979a6a | d00111890ce41b9791cb5bc55aedd071240252c4 | refs/heads/master | 2023-01-21T21:17:59.439654 | 2023-01-13T01:52:15 | 2023-01-13T01:52:15 | 91,620,472 | 1,171 | 288 | Apache-2.0 | 2023-01-13T01:52:16 | 2017-05-17T21:11:51 | Python | UTF-8 | Python | false | false | 4,637 | py | # A demo plugin for Microsoft Outlook (NOT Outlook Express)
#
# This addin simply adds a new button to the main Outlook toolbar,
# and displays a message box when clicked. Thus, it demonstrates
# how to plug in to Outlook itself, and hook outlook events.
#
# Additionally, each time a new message arrives in the Inbox, ... | [
"pawel.jasinski@gmail.com"
] | pawel.jasinski@gmail.com |
c8a7d31b96a73a8e2c8054f70ecfe0934ec53a43 | 9ab6875589442c7c27f1796de06c6711ffb34d1f | /torchelastic/distributed/launch.py | ecf5cb61b3d7063b2aa7890336b394a8f7ae1875 | [
"BSD-3-Clause"
] | permissive | pytorch/elastic | 4acd9569cc19dcc8a843cc37857008bd55e6ee44 | bc88e6982961d4117e53c4c8163ecf277f35c2c5 | refs/heads/master | 2023-08-29T22:53:09.679927 | 2022-06-15T12:59:47 | 2022-06-15T12:59:47 | 212,205,845 | 777 | 110 | BSD-3-Clause | 2022-05-03T20:08:46 | 2019-10-01T21:48:15 | Python | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/env/python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import os
os.environ["LOGLEVEL"] = "INFO"
# Since logger initialized during imoprt stat... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
cb0027a369d0113ba738205dedcaf8a48f3b7e4e | 82256676fd6b857b7a9fd54ab339d390c1364ab0 | /py/testdir_0xdata_only/test_parse_airline_multi_hdfs_many.py | 1e17b907d870ce16f8b97798c409591f80397d9d | [
"Apache-2.0"
] | permissive | ivanliu1989/h2o | 8d0def46c070e78718ba13761f20ef2187545543 | e00b367df0a33c400ae33bc869a236f254f625ed | refs/heads/master | 2023-04-27T20:40:16.666618 | 2014-10-23T02:12:36 | 2014-10-23T02:12:36 | 25,618,199 | 0 | 0 | Apache-2.0 | 2023-04-15T23:24:35 | 2014-10-23T03:49:40 | null | UTF-8 | Python | false | false | 3,566 | py | import unittest, sys, random, time
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_browse as h2b, h2o_import as h2i, h2o_hosts, h2o_jobs as h2j
RANDOM_UDP_DROP = False
if RANDOM_UDP_DROP:
print "random_udp_drop!!"
# NAME_NODE = 'mr-0x6'
# VERSION = 'cdh4'
NAME_NODE = 'mr-0xd6'
VERSION = 'hdp2.1'
TRIAL_MA... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
e4b92222521611368b819e3349ccd7734bf50406 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/sword2offer/000剑指0_Offer_04._二维数组中的查找.py | feea5d7d328dfdb05f6f63ef45fde22a96c9592e | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,662 | py | '''
from up-right to bottom-left
T: O(M + N)
S: O(1)
执行用时:48 ms, 在所有 Python3 提交中击败了17.63%的用户
内存消耗:19.1 MB, 在所有 Python3 提交中击败了45.87%的用户
通过测试用例:129 / 129
'''
class Solution:
def findNumberIn2DArray(self, matrix: List[List[int]], target: int) -> bool:
n, m = len(matrix), len(matrix[0]) if matrix else 0
... | [
"laoxing201314@outlook.com"
] | laoxing201314@outlook.com |
caa343d8d4edab26a54015730302a0d32560c803 | a372a816373d63ad626a9947077e137eac2e6daf | /pyquiz/leetcode/WordLadder.py | b6f0657c1efc7f109343211ef78947d12c497129 | [] | no_license | DmitryPukhov/pyquiz | 07d33854a0e04cf750b925d2c399dac8a1b35363 | 8ae84f276cd07ffdb9b742569a5e32809ecc6b29 | refs/heads/master | 2021-06-13T14:28:51.255385 | 2021-06-13T08:19:36 | 2021-06-13T08:19:36 | 199,842,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | import collections
from collections import deque, defaultdict
from typing import List, Set
class WordLadder:
"""
127. Word Ladder
Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest
transformation sequence from beginWord to endWord, such that:
Only o... | [
"dmitry.pukhov@gmail.com"
] | dmitry.pukhov@gmail.com |
925d5b3d47f5b7bcf1fc083d4694149fae7043f5 | 9399d687b2e41245968ba0e9d413a6789d773b1d | /CI/python-coroutine/download_server/scheduler.py | 095d52c381995a12aa0a59eb12fc4de1054779f9 | [] | no_license | jiangliu888/DemoForSpeed | be41bdb85a1d1f5ca9350a3a1f681ced5ec9b929 | 11319bc19c074327d863ac2813a04cef3487f8d6 | refs/heads/main | 2023-08-23T14:16:21.686155 | 2021-10-17T12:01:34 | 2021-10-17T12:01:34 | 388,452,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,573 | py | # -*- encoding=utf-8 -*-
import os
import prettytable
import utils
from const import CalcType
from modules.downloader import Downloader
from modules.hasher import Hasher
from modules.storager import Storager
class Scheduler:
"""调度模块
"""
def __init__(self):
self.downloader = Downloader()
... | [
"admin@example.com"
] | admin@example.com |
e31fc49bffcfe984a800f9e7b2471b955301d6ae | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02901/s081848102.py | c85e2160af148705771e000edbc7bda04900a5b9 | [] | 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 | 464 | py | def main():
N, M = map(int, input().split())
inf = 10**9
p = 1<<N
dp = [inf]*p
dp[0] = 0
for i in range(M):
a, b = map(int, input().split())
C = list(map(int, input().split()))
c_bit = sum([1<<(c-1) for c in C])
for j in range(p):
#print(min(dp[i][j|c_bit], dp[i][j] + a))
dp[j|... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8009bc9f9d4141df5d051625b246946cb0fc9952 | 6c418592d5f6ab598dbba3451ab6be3be11ece0a | /env/bin/thresholder.py | 4a23a3afa73c7133de719519cd42fa85dc8f249c | [] | no_license | maxhasan882/Online | 0b9b77ed6fef8462b9d7544487e510833353462b | 53f33b8d39c6d546b7b3da13c5dc8d021f38e263 | refs/heads/master | 2022-11-27T22:05:13.740413 | 2019-12-28T05:09:20 | 2019-12-28T05:09:20 | 230,561,289 | 1 | 0 | null | 2022-11-22T01:40:38 | 2019-12-28T05:07:42 | Python | UTF-8 | Python | false | false | 1,914 | py | #!/home/hasan/PycharmProjects/wiz_sns_updated/env/bin/python
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates how a 1-bit BitmapImage can be used
# as a dynamically updated overlay
#
try:
from tkinter import *
except ImportError:
from Tkinter import *
from PIL import Image, ImageTk
impor... | [
"rhmithu50@gmail.com"
] | rhmithu50@gmail.com |
37829dfedbbb50d23a8a2bfa1dacda84f5575b25 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/breadcrumbs/DEPS | dd3a8164073471de8250f98e1c77abfbbaf839ac | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 187 | include_rules = [
"+base",
"+components/crash/core/common/crash_key.h",
"+components/infobars/core",
"+components/keyed_service/core",
"+net/base/net_errors.h",
"+ui/base",
]
| [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com | |
808f5e2470653a06b31ae8ad6859d95156e9b594 | dce02a47c3c7f5affc2f0628fb0c21c8582b9b12 | /src/Microsoft_LexicographicallySmallestString.py | 53abb0caea17e33a8d0445683a73cb0b7fb82d2c | [] | no_license | varshajayaraman/SheCodesInPython | c7e6a9b3441f14bf6ebe31f7cc0c1e39eb502020 | d71327e16fdf2702542ec585fd6eb48a9a0dc8d0 | refs/heads/master | 2021-06-19T19:01:41.054234 | 2021-06-11T04:19:32 | 2021-06-11T04:19:32 | 218,898,393 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | def sol(strs):
res=""
i=0
while i < len(strs)-1:
if strs[i]>strs[i+1]:
break
else:
res+=strs[i]
i+=1
if i == len(strs)-1:
return res
for j in range(i+1, len(strs)):
res+=strs[j]
return res | [
"vjayar6@uic.edu"
] | vjayar6@uic.edu |
30c605defe051db8df4ec0debf6d86f4a0faf4aa | a929ce53417526ea532607450fed0a75a1134ba3 | /albumy/extensions.py | df75477d29d3cddff3ff1fdfcc4d618f8f701161 | [
"MIT"
] | permissive | tbshow/albumy | 8da9b42f0e199313317cd3ab9ea8681c7a9db1fb | 18ccd51a8ecbeecdea0f693beb10dbba75be09e4 | refs/heads/master | 2022-11-16T12:34:14.553618 | 2020-07-04T04:11:38 | 2020-07-04T04:11:42 | 276,822,110 | 0 | 0 | MIT | 2020-07-03T06:12:32 | 2020-07-03T06:12:31 | null | UTF-8 | Python | false | false | 1,314 | py | # -*- coding: utf-8 -*-
"""
:author: Grey Li (李辉)
:url: http://greyli.com
:copyright: © 2018 Grey Li <withlihui@gmail.com>
:license: MIT, see LICENSE for more details.
"""
from flask_avatars import Avatars
from flask_bootstrap import Bootstrap
from flask_dropzone import Dropzone
from flask_login import ... | [
"withlihui@gmail.com"
] | withlihui@gmail.com |
b7e37eec06094261814cdf3bc44dd856aa98368d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ET2voBkuSPLb3mFSD_10.py | bc52bfbef9c3e6d242755af581c701c41dc92e22 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py |
def sum_every_nth(numbers, n):
l = len(numbers)
index_list = []
for i in range(l):
k = i+1
if k % n == 0:
index_list.append(i)
count = 0
for location in index_list:
count += int(numbers[location])
return(count)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
40a80f492736a92b65f5641c675ab9c35eb15034 | 2f15fdd78643f449f2749b31a3f8c84f2d4703b5 | /braintree/android_pay_card.py | 33c56f0b7be0ee70891583fddee9e98c2bebc78b | [
"MIT"
] | permissive | bhargavrpatel/braintree_python | 131fbbf5c9f1aaa0f37dec2f435e469e5f05ae05 | 89219d691eafe763a09ad28f04400c4fcef4991e | refs/heads/master | 2020-03-28T23:50:48.283637 | 2019-05-21T15:07:41 | 2019-05-21T15:07:41 | 149,311,839 | 1 | 2 | MIT | 2019-05-06T01:15:34 | 2018-09-18T15:34:12 | Python | UTF-8 | Python | false | false | 789 | py | import braintree
from braintree.resource import Resource
class AndroidPayCard(Resource):
"""
A class representing Braintree Android Pay card objects.
"""
def __init__(self, gateway, attributes):
Resource.__init__(self, gateway, attributes)
if hasattr(self, 'expired'):
self.i... | [
"code@getbraintree.com"
] | code@getbraintree.com |
cd325c42334ca0c47afcfd380347919d3b16607b | 3f46af2da32d9f02d1ebbdef6784ece1d64aace3 | /Production/python/PrivateSamples/EMJ_2016_mMed-1500_mDark-10_ctau-0p1_unflavored-down_cff.py | c47c46d40e0cf697bb2cd8e8fbee4e1818232468 | [] | no_license | cms-svj/TreeMaker | 53bf4b1e35d2e2a4fa99c13c2c8b60a207676b6d | 0ded877bcac801a2a394ad90ed987a20caa72a4c | refs/heads/Run2_2017 | 2023-07-19T07:14:39.175712 | 2020-10-06T21:10:26 | 2020-10-06T21:10:26 | 305,753,513 | 0 | 0 | null | 2021-01-26T18:58:54 | 2020-10-20T15:32:19 | null | UTF-8 | Python | false | false | 1,892 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'gsiftp://hepcms-gridftp.u... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
23e21a35aa2873bd64b2132d86b739f15a362f81 | ffb78204e89b36509a0e76dc04c551aa56ebbee0 | /draw/ciyun_cn.py | bf607fa73b6fa7575cc2c047444c95f4ea181d02 | [] | no_license | b1668952669/python_study | c3624fcb6341341cc7baf267a7999c9246e0d309 | fa2c2b323c1a83f62d569c0576341e26f34ea456 | refs/heads/master | 2022-12-26T19:02:30.031100 | 2020-10-14T09:57:12 | 2020-10-14T09:57:12 | 302,525,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # -*- coding: utf-8 -*-
from os import path
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import jieba
from wordcloud import WordCloud, STOPWORDS
###当前文件路径
d = path.dirname(__file__)
# Read the whole text.
file = open(path.join(d, 'alice.txt')).read()
##进行分词
#刚开始是分完词放进txt再打开却总是显示不出中文很奇怪
de... | [
"you@example.com"
] | you@example.com |
c8e34fd1a8706819e83a5c25f9985ce4e9eb8215 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-cognitiveservices-search-customimagesearch/setup.py | 455120b62d9306c1671ae6ef4302e6df0f223100 | [
"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,917 | py | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
cd28bd5ff31c255a37db6a9689eb48cc564517f2 | 49002dd74a1e00ba0d9358912881586f26ce45b9 | /tags/models.py | 80b12639fdfa3b2c35f1423b9510ffd272c3dd8b | [] | no_license | aditya2222/django-ecommerce | 9da44959405694f2f97afa753474b5f437d319ec | 57c33a384346c4be905efde804541c91a789d750 | refs/heads/master | 2020-03-16T01:48:32.653692 | 2018-09-19T16:06:11 | 2018-09-19T16:06:11 | 126,989,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | from django.db import models
from django.db.models.signals import pre_save
from ecommerce.utils import unique_slug_generator
from django.urls import reverse
from products.models import Product
# Create your models here.
class Tag(models.Model):
title = models.CharField(max_length=120)
slug = models.SlugField... | [
"adityasingh222247@gmail.com"
] | adityasingh222247@gmail.com |
aad632055722322373c3263a9680cb624f5c8ac4 | a74ea2dcde5d47344177606da383e0f006f2f35c | /test/unit/test_browserstack.py | 3c2d53ab901db3129f4ace09545f79478abefb7d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | mikalindh/qweb | 050344a55c7e4e1c9070f1ecb8b0371bdbe3b435 | d497e60081cf440ebd0eb70f84f11f7ad405100a | refs/heads/master | 2023-03-25T09:30:45.082882 | 2021-03-24T09:49:50 | 2021-03-24T09:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | # -*- coding: utf-8 -*-
# --------------------------
# Copyright © 2014 - 2020 Qentinel Group. All rights reserved.
#
# The software code and any other material contained in this file are property
# of Qentinel Group and protected by international copyright laws.
# Any copying, re-licensing, re-distribution, developmen... | [
"tuomas.koukkari@qentinel.com"
] | tuomas.koukkari@qentinel.com |
1b7080fb26e0ce9cf9dbd7d96cff8cbea8235f30 | 63b7671b5296b97aa5271d076540e0d81b85d599 | /strongr/schedulerdomain/model/vm.py | e6068057a52774cf1b55e44b231bfcae90ef6e46 | [
"Apache-2.0"
] | permissive | bigr-erasmusmc/StrongR | bd30d7f41c1fef87bd241c0c4ea059f88c5c426e | 48573e170771a251f629f2d13dba7173f010a38c | refs/heads/master | 2021-10-10T10:17:15.344510 | 2018-11-20T10:21:50 | 2018-11-20T10:21:50 | 112,336,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | import strongr.core.gateways as gateways
from sqlalchemy import Column, ForeignKey, Integer, String, Enum, DateTime, func
from sqlalchemy.orm import relationship, synonym
from strongr.schedulerdomain.model.vmstate import VmState
Base = gateways.Gateways.sqlalchemy_base()
class Vm(Base):
__tablename__ = 'vms'
... | [
"thomas@tphil.nl"
] | thomas@tphil.nl |
e1e388a78a05c376e2cbdfeb5ec293a6dca9f083 | d048a865519b5f944e1430c6181d00399c979d9c | /Assingnment/gallery/img_gallery/migrations/0001_initial.py | 8fb53d3015c4545c39b089c4691af2117f8fda08 | [] | no_license | jithinvijayan007/PaceWisdom- | 5f84261c4ba7f51e25c8c21074b48214a24cb6d2 | 1ba00814a757edb327923afcaf20fe04652efa0e | refs/heads/master | 2023-03-06T04:00:21.729404 | 2021-02-21T18:56:54 | 2021-02-21T18:56:54 | 340,974,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | # Generated by Django 3.0.3 on 2021-02-21 15:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"jithinvijayan007@gmail.com"
] | jithinvijayan007@gmail.com |
7bc1b6b21028f0853439b41809f0d22eaed51200 | f11ecb59dab63af605c6e5f256ee59e00447ecc1 | /412-fizz-buzz.py | 9f47ee36c12dc713615cf3877642178d6e215b00 | [] | no_license | floydchenchen/leetcode | 626d55f72ec914764385ce82b0f3c57f5a7e9de8 | 9d9e0c08992ef7dbd9ac517821faa9de17f49b0e | refs/heads/master | 2022-10-07T20:33:55.728141 | 2020-06-08T16:09:17 | 2020-06-08T16:09:17 | 269,525,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # 412. Fizz Buzz
# Write a program that outputs the string representation of numbers from 1 to n.
#
# But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”.
# For numbers which are multiples of both three and five output “FizzBuzz”.
#
# Example:
#
# n = 15,... | [
"chen2918@umn.edu"
] | chen2918@umn.edu |
88d6064b90f738ef9c08e4382d55d2de6915acf0 | 32174f2b74b286a52a2f3b0bfd120a0711bfc6dc | /src/mediafiles/urls.py | 57a892f53a61549764e3bdc61a328905c8a3fadb | [
"MIT"
] | permissive | hdknr/django-mediafiles | d13172162506cba2abdab0d85bc2815e2e24b6e6 | 7526e35eb7f532e36c95e7aa76290bb95a9ac41a | refs/heads/master | 2020-06-04T03:16:28.824865 | 2014-10-30T04:10:40 | 2014-10-30T04:10:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | from django.conf.urls import patterns, include, url
from views import *
urlpatterns = patterns('',
url('thumbnail/(?P<id>.+)/(?P<width>\d+)x(?P<height>\d+)',thumbnail,name='mediafiles_thumbnail'),
url('preview/(?P<id>.+)',preview,name='mediafiles_preview'),
url('download/(?P<id>.+)',download,name='mediafi... | [
"gmail@hdknr.com"
] | gmail@hdknr.com |
cd6044a0a3f8e54b2352e2173edf15d2d0c570ee | 55e7503b0b4370c9537334359019cdc8e0e70096 | /Liao/051Pillow.py | 2863be318ecb27f0aaba22bcdd341e3e21d78976 | [] | no_license | dumin199101/PythonLearning | 4f3a86e529c3c873174cf12baf694c4d6c3ef5eb | deece6b4d0b44d4817f24e1cf9da6d69301139d4 | refs/heads/master | 2021-01-22T07:52:25.668045 | 2018-06-13T02:03:29 | 2018-06-13T02:03:29 | 92,582,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!/usr/bin/env python3
# _*_ coding=utf-8 _*_
from PIL import Image
# 打开一个jpg图像文件,注意是当前路径:
im = Image.open('test.jpg')
# 获得图像尺寸:
w, h = im.size
print('Original image size: %sx%s' % (w, h))
# 缩放到50%:
im.thumbnail((w//2, h//2))
print('Resize image to: %sx%s' % (w//2, h//2))
# 把缩放后的图像用jpeg格式保存:
im.save('thumbnail.jpg', 'j... | [
"1766266374@qq.com"
] | 1766266374@qq.com |
99d67089539c2c79d725824080ed8b7654b0f8f4 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2009/kernel/default/kernel/files/scripts/bump-config.py | 02e04e83c5aae09d6cc0f57ef41f91c4685e14fb | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import pisi
oldwd = os.getcwd()
kpspec = pisi.specfile.SpecFile('pspec.xml')
kworkdir = kpspec.source.archive.name.split('.tar.bz2')[0]
kname = kpspec.source.name
kver = kpspec.history[0].version
krel = kpspec.history[0].release
kpath = "/var/pisi/%s-%s-%s/work/%s"... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
1977dce0a9d97752ddddd0f13ff2041d285c3f7e | 9468507c1beeb2cb69591889605ea155d2cb7a63 | /polls/urls.py | 8256069f1b75de4dabb4adbe29504e0dff123368 | [] | no_license | nimal54/drf-polls | 2375e2f5b78670de40c72b51eb616a69e7f49a65 | 9b29230998146eb225e0cffa0703d6bed1cc876a | refs/heads/master | 2020-04-25T00:21:14.952917 | 2018-03-16T11:54:53 | 2018-03-16T11:54:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.urls import path
from .views import QuestionViewSet
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register('', QuestionViewSet, base_name='questions')
urlpatterns = router.urls | [
"will@wsvincent.com"
] | will@wsvincent.com |
23dd4389391429f8cce0aacb515e18bd761cbdf1 | 4c62ac4d7e5e28baf41eb44a39a41225d1b56d6f | /prospection/settings.py | 9e563e2848c2859065428dc47c083fb042aef606 | [] | no_license | RogerMendez/prospection | de10fc3d67f5c80d475b68c43fd3579eed8d5fc3 | 1634ff07ac25ae3280ec4f02bd99c408ab9fec86 | refs/heads/master | 2016-08-12T13:47:51.349905 | 2016-04-04T15:42:51 | 2016-04-04T15:42:51 | 53,613,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,944 | py | """
Django settings for prospection project.
Generated by 'django-admin startproject' using Django 1.9.4.
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/ref/settings/
"""
import o... | [
"Roger.Mendez.R@gmail.com"
] | Roger.Mendez.R@gmail.com |
2c4e66fe5238df3f91668e2e39749c7c36ffcfd5 | 13d93c2922005af35056d015f1ae3ebebe05ee31 | /python/oreilly/cours_python/chap12/formes.py | 862c0a179aa1ad87fcd1a5f2d597996742b25e61 | [] | no_license | scls19fr/openphysic | 647cc2cdadbdafd050d178e02bc3873bd2b07445 | 67bdb548574f4feecb99b60995238f12f4ef26da | refs/heads/master | 2021-04-30T23:16:26.197961 | 2020-11-16T20:21:17 | 2020-11-16T20:21:17 | 32,207,155 | 1 | 1 | null | null | null | null | ISO-8859-1 | Python | false | false | 959 | py | #! /usr/bin/env python
# -*- coding: Latin-1 -*-
class Rectangle:
"Classe de rectangles"
def __init__(self, longueur =0, largeur =0):
self.L = longueur
self.l = largeur
self.nom ="rectangle"
def perimetre(self):
return "(%d + %d) * 2 = %d" % (self.L, self.l,
... | [
"s.celles@gmail.com@41f3eeec-7763-abce-c6e2-0c955b6d8259"
] | s.celles@gmail.com@41f3eeec-7763-abce-c6e2-0c955b6d8259 |
e0c94600e33f8b9d33d36a64155d9371bb088189 | 349a835358dd431feb78ca0d62e1c22b3eb1b7a5 | /instatools/instaapp/insta.py | 6b137bcf1f7be3cc2d42c21668bfd29c331e609b | [] | no_license | priyankush-siloria/Insta | 44b04334ca7b6b4d195288f00daa647c0ed6f5f1 | e3a1ecfe2c6a4e646ea0bc10e836f649a36eef91 | refs/heads/master | 2020-07-07T13:18:39.976166 | 2019-08-20T11:02:27 | 2019-08-20T11:02:27 | 203,359,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,091 | py |
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import time
from selenium.common.exceptions import NoSuchElementException,StaleElementReferenceException, TimeoutException
import random
from selenium.webdriver.support.ui import WebDriverWait
from selenium.we... | [
"you@example.com"
] | you@example.com |
85df5a236ac20d443220e956a0d722c99f0526b5 | 1df7ba55c4b61772c1a31c503e6b8881f1456dc5 | /untitled9/apps/courses/migrations/0012_auto_20170211_1218.py | c583d480b497bd5e2a05121592b29b4d9fca5848 | [] | no_license | fzk466569/python-django-pro | 35918756060fcae375d3c99ea1a6934949b6d605 | 9add086b7a910f255df5b192268f1e117057e053 | refs/heads/master | 2021-01-19T13:18:14.141880 | 2017-02-19T12:16:29 | 2017-02-19T12:16:29 | 82,374,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-02-11 12:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses', '0011_course_is_banner'),
]
operations = ... | [
"fzk466569"
] | fzk466569 |
e9da4a005399d3609d065e6748fe5a15aa10506a | 6daaf3cecb19f95265188adc9afc97e640ede23c | /排序.py | cb6b07db9e984f205c218909dd2b24b41c29796d | [] | no_license | guoweifeng216/python | 723f1b29610d9f536a061243a64cf68e28a249be | 658de396ba13f80d7cb3ebd3785d32dabe4b611d | refs/heads/master | 2021-01-20T13:11:47.393514 | 2019-12-04T02:23:36 | 2019-12-04T02:23:36 | 90,457,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | #coding=utf-8
"""
@athor:weifeng.guo
@data:2018/9/28 14:41
@filename:排序
"""
from operator import itemgetter
alist = [('2', '3', '10'), ('1', '2', '3'), ('5', '6', '7'), ('2', '5', '10'), ('2', '4', '10')]
# 多级排序,先按照第3个元素排序,然后按照第2个元素排序:
print sorted(alist, cmp=None, key=itemgetter(2, 1), reverse=False)
print sorted(a... | [
"weifeng.guo@cnexlabs.com"
] | weifeng.guo@cnexlabs.com |
e56eec74dc030dc0c2711eb24adffbec735c8b01 | dc418f7d888ffe73b8f8df2e1fe7b7795f12518a | /code/treePlotter.py | 7590055925b488adca592c1794421e26d0ac2fc8 | [] | no_license | ForrestPi/ML | f936458fa48033940c4d1629e7bc85a0f28a601d | 4e931f2f09beecadbaa79aed5061ae11f5b5d456 | refs/heads/master | 2021-01-17T12:55:10.832957 | 2016-07-12T15:13:32 | 2016-07-12T15:13:32 | 60,149,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,820 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
import matplotlib.pyplot as plt
font = FontProperties(fname=r"c:\windows\fonts\simsun.ttc", size=14)
decisionNode = dict(boxstyle="sawtooth",fc="0.8")
leafNode = dict(boxstyle="round4",fc="0.... | [
"forrest_zhu@foxmail.com"
] | forrest_zhu@foxmail.com |
3bfa859eb68da1097de82b39eef158ca52df3a1f | 7298d1692c6948f0880e550d6100c63a64ce3ea1 | /deriva-annotations/catalog50/catalog-configs/PDB/pdbx_ion_info.py | 819386249a80989fe62fcaf387987aa437a1ee7b | [] | no_license | informatics-isi-edu/protein-database | b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d | ce4be1bf13e6b1c22f3fccbb513824782609991f | refs/heads/master | 2023-08-16T10:24:10.206574 | 2023-07-25T23:10:42 | 2023-07-25T23:10:42 | 174,095,941 | 2 | 0 | null | 2023-06-16T19:44:43 | 2019-03-06T07:39:14 | Python | UTF-8 | Python | false | false | 3,844 | py | import argparse
from deriva.core import ErmrestCatalog, AttrDict, get_credential
import deriva.core.ermrest_model as em
from deriva.core.ermrest_config import tag as chaise_tags
from deriva.utils.catalog.manage.update_catalog import CatalogUpdater, parse_args
groups = {}
table_name = 'pdbx_ion_info'
schema_name = 'P... | [
"brinda.vallat@rcsb.org"
] | brinda.vallat@rcsb.org |
7a42e8446c4f29d13b600eb38a85f23b73061de8 | f640fcb49bf99ebec5f34603748121fbbe9171dc | /lib_openshift/apis/apisextensions_api.py | d993d831c5339f04067ee7968dc716a0c3814209 | [] | no_license | tbielawa/lib_openshift | bea8a11c4904a7d6c815abdd2b206de5a4cc7a93 | 34ca0f6a0c5388624a040223f29552dc4c0f8c49 | refs/heads/master | 2023-06-16T22:41:15.894021 | 2016-07-11T21:26:59 | 2016-07-11T21:26:59 | 63,156,531 | 0 | 0 | null | 2016-07-12T12:35:29 | 2016-07-12T12:35:29 | null | UTF-8 | Python | false | false | 3,843 | py | # coding: utf-8
"""
ApisextensionsApi.py
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 req... | [
"jdetiber@redhat.com"
] | jdetiber@redhat.com |
4de59e27dae5a22267169f15cda395acfeff2630 | 3b9d763180410bf0abf5b9c37391a64319efe839 | /toontown/suit/DistributedMintSuit.py | ea4e5dffb2a6dd4f64898cc7fb7e2feeab0c0a9e | [] | no_license | qphoton/Reverse_Engineering_Project_ToonTown | 442f15d484324be749f6f0e5e4e74fc6436e4e30 | 11468ab449060169191366bc14ff8113ee3beffb | refs/heads/master | 2021-05-08T00:07:09.720166 | 2017-10-21T02:37:22 | 2017-10-21T02:37:22 | 107,617,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # File: D (Python 2.4)
from toontown.suit import DistributedFactorySuit
from direct.directnotify import DirectNotifyGlobal
class DistributedMintSuit(DistributedFactorySuit.DistributedFactorySuit):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedMintSuit')
| [
"Infinitywilee@rocketmail.com"
] | Infinitywilee@rocketmail.com |
2029409d84ed8500355b47b38c34f3ef01a08359 | 473568bf080e3637ee118b374f77e9f561286c6c | /InterviewCorner/HourGlassSum.py | 398c30d4e7319db8e920ee42c4d229357d020db2 | [] | no_license | VineetPrasadVerma/GeeksForGeeks | c2f7fc94b0a07ba146025ca8a786581dbf7154c8 | fdb4e4a7e742c4d67015977e3fbd5d35b213534f | refs/heads/master | 2020-06-02T11:23:11.421399 | 2020-01-07T16:51:18 | 2020-01-07T16:51:18 | 191,138,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | arr = [
[1, 1, 1, 0, 0, 0],
[0, 1, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 0],
[0, 0, 2, 4, 4, 0],
[0, 0, 0, 2, 0, 0],
[0, 0, 1, 2, 4, 0]
]
lst_hourglass_sum = []
def find_hour_glass_sum(upper_limit, lower_limit):
temp = 0
while temp < 4:
per_hou... | [
"vineetpd1996@gmail.com"
] | vineetpd1996@gmail.com |
5ad94a29bd0907446a9d0f90e76f1aeacadf8912 | bb151500b0fc5bb9ef1b1a9e5bba98e485b4b34d | /problemSet/593D-Happy_Tree_Party.py | 1cffb9c69b44fe7fcb384b86014bc74d21c8e1d5 | [] | no_license | yamaton/codeforces | 47b98b23da0a3a8237d9021b0122eaa498d98628 | e0675fd010df852c94eadffdf8b801eeea7ad81b | refs/heads/master | 2021-01-10T01:22:02.338425 | 2018-11-28T02:45:04 | 2018-11-28T03:21:45 | 45,873,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | """
Codeforces Round #329 (Div. 2)
Problem 593 D. Happy Tree Party
@author yamaton
@date 2015-11-04
"""
import itertools as it
import functools
import operator
import collections
import math
import sys
def solve(triples):
pass
def print_stderr(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
d... | [
"yamaton@gmail.com"
] | yamaton@gmail.com |
b321a58832872eba95d18547d884255292ba442a | 6a3dfbf1c0398731520dc34663423e18149a8976 | /web/pgadmin/browser/server_groups/servers/databases/schemas/tests/test_schema_delete.py | 53f33c2d45d0f4e6c9546878070462a2e9151a49 | [
"PostgreSQL"
] | permissive | Kibetchirchir/pgadmin4 | 29272912aa5ee32d33d0f8267e86ed958e4f2dd7 | fe264aafa7e2fb8eced49a5c24e13484a3552fdf | refs/heads/master | 2022-05-24T17:52:55.485701 | 2020-04-28T05:34:43 | 2020-04-28T05:34:43 | 259,569,015 | 1 | 0 | NOASSERTION | 2020-04-28T07:52:51 | 2020-04-28T07:52:51 | null | UTF-8 | Python | false | false | 2,865 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2020, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import uuid
from... | [
"dpage@pgadmin.org"
] | dpage@pgadmin.org |
edfad5971dddb8103a563afe3f46f6723ef8c121 | 1273032fadcc1abc6e660a0e076b3ce3b3f893ab | /goccina.com/news/migrations/0007_news_slug.py | 983e617db8e7506c2233352d66476d661df39d7d | [] | no_license | munisisazade/heroku_app | ed998ba147aea6fdef9884f26f2563c6f0a2741c | 65ee5b5b434a1c70bc84d5b7bc63c35c2a6aedb8 | refs/heads/master | 2021-01-10T23:13:06.104198 | 2016-10-11T15:33:40 | 2016-10-11T15:33:40 | 70,607,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-09-23 23:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0006_auto_20160924_0233'),
]
operations = [
migrations.AddField(
... | [
"munisisazade@gmail.com"
] | munisisazade@gmail.com |
aa99931fa026da073c3ccbdea753003a3ddf62ec | 59239e9aecc4b0611cd1f82dad74a13b21c0a97e | /rest/Api/imanwser.py | d4b75c496cfc85b66207de2b6c8ad645710390dc | [] | no_license | charlesXu86/FAQ | 53a8160fef2920c1e5005ea4f55a642071986494 | d5e253f44377f63b3af9accd9eab39fc599ed7a7 | refs/heads/master | 2023-01-10T10:45:21.403238 | 2020-11-11T13:40:23 | 2020-11-11T13:40:23 | 278,859,443 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | # -*- coding: utf-8 -*-
"""
@Author : Xu
@Software: PyCharm
@File : imanwser.py
@Time : 2020/7/11 6:17 下午
@Desc : im
"""
from model.FAQ import FAQ
def get_imanwser(msg):
result = {
'domain': '',
'content': '',
'type': 0,
'classId': 0,
'confiden... | [
"charlesxu86@163.com"
] | charlesxu86@163.com |
b2aff70c810164f73e9a845e63406d1878b09603 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v6_0_2f/brocade_firmware_rpc/activate_status/input/__init__.py | 5e225c3a63434f93fb5ae9625fe499cce76048a9 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,831 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
090cb207ec1894ba12c2bc9f032823a404b11034 | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /AtCoder/AtCoder Beginner Contest 261/C.py | 80c46b4e0f48dc7c68108583ac091a34d9dde988 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from collections import defaultdict
n = int(raw_input())
d = defaultdict(int)
for i in xrange(n):
name = raw_input()
if name not in d:
d[name] += 1
print name
else:
print "%s(%d)" % (name, d[name])
d[name] += 1
'''
^^^^^TEST^^^^
5
newfile
newfile
newfolder
newfile
newfold... | [
"noreply@github.com"
] | Wizmann.noreply@github.com |
3246316975880ba09b2b8cf825732fd6fea112a2 | f4c0172e70ca5ffbe01695245e82a28291f88d04 | /v0.5.3-all/input_data.py | d80d7a4534edc1daf6653dc858591f3c3196b1fa | [] | no_license | huangxinkid/DeepLearning_Wavelet-LSTM | a84e667d5f2db477ac5a9993d8ae329ec9fd115f | b726f99a8631fc48e6943655ace222b0f6b0290b | refs/heads/master | 2020-03-24T07:11:52.832149 | 2018-05-30T18:43:38 | 2018-05-30T18:43:38 | 142,556,218 | 0 | 1 | null | 2018-07-27T09:21:18 | 2018-07-27T09:21:18 | null | UTF-8 | Python | false | false | 5,692 | py | # coding:utf-8
import os.path
import sys
import re
import os
import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
from MyController import Algorithm_CWT
from Model.Seg import SegFile
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
#python pkl 文件读写
import pickle as pic... | [
"hello.sea@qq.com"
] | hello.sea@qq.com |
d1495d37ceae7e3add58730e45b460716c5aef2f | 8e52db8ea2d4911ab852420e17b40ac9c0d6099b | /app/apps/coreExtend/context_processors.py | 825742d8964ccb45a7983f03bbb8f40dbc6e31a3 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | hilam/alifewellplayed.com | 11519cfea2507e0bc98393ae31ded1b1a7eb68f5 | 008645d1ccf1774f9fd3a4440cd82a9fc17e944e | refs/heads/master | 2021-05-06T11:16:49.863554 | 2017-12-03T03:50:18 | 2017-12-03T03:50:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from django.conf import settings
import datetime
def template_settings(request):
return {
'network_name': settings.SITE_NAME,
'network_desc': settings.SITE_DESC,
'network_author': settings.SITE_AUTHOR,
'network_url': settings.SITE_URL,
'network_register': settings.ALLOW_NEW_... | [
"underlost@gmail.com"
] | underlost@gmail.com |
efe7f75a141578bfe254481977e20d289245b4f6 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2527/60829/277886.py | 63da376f91a582d2e5ce16635bb2d6e52a6c1726 | [] | 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 | 332 | py | x=list(input())
a=int(input())
b=int(input())
c=int(input())
d=[]
res=[]
for i in range(0,len(x)):
y=x[i]
if a==1:
if y[2]==1 and y[3]<b and y[4]<c:
res.append(y)
else:
if y[3]<b and y[4]<c:
res.append(y)
d={}
for i in range(0,len(res)):
d[res[i][0]]=d[i][1]
d.sor... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
85d39ae7b28e171faad85e8dc46454c04082b5b2 | 9e765b38a03c2996e221a42c2a0dbc0fe02824cb | /cracking_the_coding_interview_qs/17.26/sparse_similarity.py | 8f2387f5edc2669ca227f3afc0c75688a110fa18 | [
"Apache-2.0"
] | permissive | angelusualle/algorithms | f709b4ae0c3275cece204d5fb56fd6ec34b4683b | 86286a49db2a755bc57330cb455bcbd8241ea6be | refs/heads/main | 2023-07-02T19:25:11.720114 | 2021-08-12T16:33:00 | 2021-08-12T16:33:00 | 269,791,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | from collections import defaultdict
# O(DW + PW)
def sparse_similarity(doc_words):
word_doc = defaultdict(set)
for k in doc_words:
for w in doc_words[k]:
word_doc[w].add(k)
doc_sim = []
for k in doc_words:
docs = set()
for w in doc_words[k]:
for d in word_... | [
"angelusualle@gmail.com"
] | angelusualle@gmail.com |
d01244a9f5f1e964c98b499b578a85e9ac829603 | 5a545262f7c053c1cfd1f7984664e3220c745161 | /exit_queue_tests/exit_queue_tester.py | 2be58b9aa2c02c4672079958833c81544f2b89c8 | [
"MIT"
] | permissive | ethereum/research | 2c523e5796cfdb6055e0107dc1768fbf164ecad0 | bb873f8ad0e673803ec6a55be26678e1f99b9ece | refs/heads/master | 2023-09-04T19:11:51.507361 | 2023-08-30T01:52:05 | 2023-08-30T01:52:05 | 42,808,596 | 1,774 | 603 | MIT | 2023-04-21T07:20:21 | 2015-09-20T10:13:12 | Python | UTF-8 | Python | false | false | 4,081 | py | from numpy.random import poisson
import math
# Target active staker size
TARGET_AMOUNT_STAKING = 312500
# Average time staking before withdrawal
AVG_STAKING_TIME = 500
# How many withdrawals are permitted in
# one day given a certain validator count?
def withdrawals_per_day(validators, total_eth_exiting):
# return... | [
"v@buterin.com"
] | v@buterin.com |
c0f361d63969b7199316fa90ed6ae5fbb8b313bc | d0efa2026b7ed22ff4f9aa76c27ae2474c30f26d | /test/test_fraud_registration_response.py | a1fe7795c438367145d0919119d7d783346461d5 | [] | no_license | begum-akbay/Python | 2075650e0ddbf1c51823ebd749742646bf221603 | fe8b47e29aae609b7510af2d21e53b8a575857d8 | refs/heads/master | 2023-03-28T00:11:00.997194 | 2021-03-25T16:38:17 | 2021-03-25T16:38:17 | 351,499,957 | 0 | 0 | null | 2021-03-25T16:38:17 | 2021-03-25T16:15:16 | Python | UTF-8 | Python | false | false | 1,178 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
0c5e91d431b0fb904a58137a798ae36099255259 | 578690b6babcbd691d8b6a96c65c9a17dcbbf27f | /build/catkin_generated/generate_cached_setup.py | 599e598cfa02738d95dc98f0cf8e325d40026202 | [
"MIT"
] | permissive | Sinchiguano/Multi-agent-system | d48c97b5c564cced68de096e0de2f05776d78e20 | 2b54ca6d08ea6fb42050aaf12788a34a53da60a1 | refs/heads/master | 2020-03-31T13:00:35.497228 | 2018-12-12T12:33:32 | 2018-12-12T12:33:32 | 152,238,167 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"cesarsinchiguano@hotmail.es"
] | cesarsinchiguano@hotmail.es |
2a0e897eb6010e63a6c52b6b416a1314f113e5f1 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part001908.py | 3700d31361a5cebcba18b3adf131fc03892afed3 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,500 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
8a017d59c6a3aae183377f5536bffeb884407ec1 | 382e9ce9b99ce514ca16e08c029c1d0e9e14daef | /Python3/206. 反转链表 copy.py | fe988b891116477c04219ac5948443906ce3e3b2 | [] | no_license | a289237642/myLeetCode | e3e757f66af84f4e5b635c75f56424f92dd12b39 | 70ae207af6272ce5b8d246e3d7f092108a5272d7 | refs/heads/master | 2021-01-06T14:10:26.155778 | 2020-07-14T04:56:08 | 2020-07-14T04:56:08 | 241,354,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
prev = None
curr = head
while curr:
next = curr.next
curr.next = prev
... | [
"a289237642@163.com"
] | a289237642@163.com |
383231ffdea33c2c4585c837f01e0ce08ac5d8dd | d2845579ea6aa51a2e150f0ffe6ccfda85d035ce | /kernel/components/boosting/horzsecureboost/horz_secureboosting_arbiter.py | e83061cb0e3f057a976ff5cde2226a0fc6884aae | [
"Apache-2.0"
] | permissive | as23187/WeFe | d8de9ff626f9f3e5d98e0850b0b717a80fd73e72 | ba92871d4b1d2eef6c606c34795f4575e84703bd | refs/heads/main | 2023-08-22T12:01:06.718246 | 2021-10-28T01:54:05 | 2021-10-28T01:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,544 | py | # Copyright 2021 Tianmian Tech. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"winter.zou@welab-inc.com"
] | winter.zou@welab-inc.com |
35ba3b1715093fb966f96ff2d6575a4a330714a5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02613/s533268389.py | 55553dc522e04c9c67b08c00fbde302fb1cc5c78 | [] | 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 | 271 | py | N = int(input())
S = [input() for _ in range(N)]
dic = {"AC":0, "WA":0, "TLE":0, "RE":0}
for i in range(N):
dic[S[i]] += 1
print("AC x {}".format(dic["AC"]))
print("WA x {}".format(dic["WA"]))
print("TLE x {}".format(dic["TLE"]))
print("RE x {}".format(dic["RE"]))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4b49df01e8cff7cd872cc4fdd703ee17d9f854de | d7e098fe9086a5a1a437e96e8ad977ad95f5457d | /lunch/lunch/lunch/settings/base.py | 9769cfaf61e1ab197d14a8dea7d2389d6630640c | [] | no_license | victorzhangw/django-tutorial-for-programmers | 6c03cca7ecdbe870d4769a0ff31d903f5d1e2553 | 98b734b83189e69dfdf39a0bda3376769d2ecc68 | refs/heads/master | 2021-01-15T14:11:41.015793 | 2014-10-20T02:57:13 | 2014-10-20T02:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | """
Django settings for lunch project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impo... | [
"uranusjr@gmail.com"
] | uranusjr@gmail.com |
c7740205e18c19615aa6a9809aeadbeba39e5275 | c78a135789f13c257da664bfbbe9a50e0aa34fc2 | /code/testing.py | f55e8bf3cc14b1181b60946345825c43c908d6d7 | [
"MIT"
] | permissive | mkness/TheCannon | f6049a7dab16ab38b32b228cdc68dfadc3d1df72 | da1aa0baa3d42e79b6cd1e511da477a021547936 | refs/heads/master | 2021-01-17T04:02:11.378483 | 2017-11-08T23:54:05 | 2017-11-08T23:54:05 | 22,962,109 | 6 | 1 | null | 2014-12-15T13:55:49 | 2014-08-14T17:14:40 | Python | UTF-8 | Python | false | false | 1,035 | py | def main():
nobservations = 4
a, b, c = 3.0, 2.0, 1.0
f, x, y, z = generate_data(nobservations, a, b, c)
# print 'Linear results (should be {}, {}, {}):'.format(a, b, c)
# print linear_invert(f, x, y, z)
#
# print 'Non-linear results (should be {}, {}, {}):'.format(a, b, c)
# print nonlinear_in... | [
"whatever"
] | whatever |
c7696f623e0fb4101aab65316da05917049a962a | f2807f439602ba047048791318e925bd43037089 | /src/GraphEmb_2/metapath2vec_g_executor.py | 9bc6984b526f3b4dc146a745a3223739f3cc0ae3 | [] | no_license | ddatta-DAC/AD_v2 | 49a88bb75d0e1b0753ca7df2da201dde57302cf9 | bfa9216da7d05d8a3a77c2bbef87f5563534e33e | refs/heads/test1 | 2022-12-01T23:24:10.365604 | 2020-04-29T19:58:44 | 2020-04-29T19:58:44 | 229,307,044 | 0 | 0 | null | 2022-11-21T21:55:15 | 2019-12-20T17:19:14 | Jupyter Notebook | UTF-8 | Python | false | false | 4,408 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# ---------------
# Author : Debanjan Datta
# Email : ddatta@vt.edu
# ---------------
import yaml
import glob
import pandas as pd
import numpy as np
import os
import argparse
import pickle
import sys
sys.path.append('./../..')
sys.path.append('./..')
try:
from .metapat... | [
"ddatta@vt.edu"
] | ddatta@vt.edu |
521c287bd10bbbd9bbfde41e796c499eaee32c7a | 40d5ae8a553a39145d4396fe58b562d911bbd5da | /battles/migrations/0016_invite.py | 3aeb071dc539b3f05c1667ed638a626600b01840 | [
"MIT"
] | permissive | vanessa/pokebattle | 56a5f5592ddba999cc6a62aa080795a781ce9316 | 3017ad226bc05cc06cb5eb34455c13d959be10ab | refs/heads/develop | 2021-04-06T09:12:10.829904 | 2018-07-13T07:35:01 | 2018-07-13T07:35:01 | 125,147,775 | 3 | 2 | MIT | 2021-01-05T01:18:02 | 2018-03-14T03:08:22 | Python | UTF-8 | Python | false | false | 863 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-14 18:28
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_depend... | [
"vanessa@vinta.com.br"
] | vanessa@vinta.com.br |
78a5c21745ea8870d2d34bb1b868db982f4cf262 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/managednetwork/get_scope_assignment.py | f9ad938e743b2ff22373807430e29e91f6ab691a | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,226 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | morrell.noreply@github.com |
caf39698290e129ad3792b9107ca5687a357449d | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/dygraph_to_static/test_layer_hook.py | 55f4681a99005507aabe9e6bededeba3816e3732 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 2,894 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
7c4f05135628bb093508fbb078b0550daa3593df | d7defc3b3753cecb97c6f2874c3e5210bf8557ce | /dashboard/admin.py | 16726e9cd1a13fb231939d07c2de53a659ce7219 | [] | no_license | vineetkashyap/tranageapp | 6f769febecc3d92827da1ea98707ae17a13f5b89 | cfc1d9b36f38fbebc290886661c25b05829412ec | refs/heads/master | 2023-06-02T00:05:30.059420 | 2021-06-22T11:26:12 | 2021-06-22T11:26:12 | 365,577,655 | 0 | 1 | null | 2021-06-21T17:18:55 | 2021-05-08T17:50:20 | CSS | UTF-8 | Python | false | false | 755 | py | from django.contrib import admin
from .models import Add_update,Add_project,Employee_model
# Register your models here.
@admin.register(Add_update)
class Add_update_Admin(admin.ModelAdmin):
list_display = ['id','heading','description','location','expiry_date']
@admin.register(Add_project)
class Add_project_Admin(... | [
"vkvineet66@gmail.com"
] | vkvineet66@gmail.com |
7a2771ae7026f81dd8da84ca58cb0fc21461e410 | 71a7c4bacbc361fa6966464506468cea247d70bc | /euler45.py | 46e6fe54334aa76e96ac17ef6343ca9944abb526 | [] | no_license | sputnick1124/ProjectEuler | d347297798c5ec8802c9f3148e0ce71e345f71b5 | 8b6b770d54a7932dd8a14ec5ad596405f9a75916 | refs/heads/master | 2020-03-27T03:42:01.547600 | 2015-05-17T19:54:04 | 2015-05-17T19:54:04 | 31,292,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from time import time
def ispent(num):
n=((24*num+1)**.5+1)/6
return int(n)==n
def ishex(num):
n=((8*num+1)**.5+1)/4
return int(n)==n
def isall(num):
return ispent(num) and ishex(num)
t1=time()
tph=40755
t=285
while tph==40755:
t+=1
tri=(t*t+t)/2
if isall(tri):
tph=tri
print(tri... | [
"sputnick1124@comcast.net"
] | sputnick1124@comcast.net |
2f5249c862bf38aff8a5601b4bafa5931ff822c8 | 75c8b9ff2fa8fcb5ea4029a4e640c1d3cd92fc79 | /examples/mailbox/distributed/pong.py | a3e758fb5efc7548e232cf3c8c7d081b8ce142b3 | [
"ISC"
] | permissive | victorpoluceno/xwing | b4244b86e1196c6b08ad1d9ea8bd92e49dea756d | a6d2b9ddfa1bdf383cbf52d4dc81035222ebeefa | refs/heads/development | 2021-01-18T12:14:13.771561 | 2016-10-22T16:44:21 | 2016-10-22T16:44:21 | 49,905,226 | 12 | 2 | null | 2016-10-22T16:44:21 | 2016-01-18T21:06:00 | Python | UTF-8 | Python | false | false | 436 | py | from xwing.mailbox import init_node, start_node, spawn
async def pong(mailbox):
while True:
data = await mailbox.recv()
if len(data) == 1 and data[0] == 'finished':
print('Pong finished')
break
print('Pong received ping')
message, pid = data
await m... | [
"victorpoluceno@gmail.com"
] | victorpoluceno@gmail.com |
2ac2f027c2ebfbff13ac3ef457a9b83b6a35ce07 | 42c899d6ef5df0b93cef6257af4f444f8db2d610 | /mtdg/inputters/inputter.py | 9cb9d5ef34ef02afa50941468d932786ae1977e4 | [] | no_license | hongweizeng/Multi-Turn-Dialogue-Generation | 97031255b49f18634fb2acb5c742f3d4a8bcb1a3 | 9dbf7e9e9eb36550bbbb9a98627d28bc5f8906c3 | refs/heads/master | 2022-11-29T18:38:41.190486 | 2018-09-05T01:45:27 | 2018-09-05T01:45:27 | 141,300,694 | 3 | 2 | null | 2022-11-28T18:46:29 | 2018-07-17T14:24:16 | Python | UTF-8 | Python | false | false | 1,461 | py | def read_and_tokenize(dialog_path, min_turn=3):
"""
Read conversation
Args:
dialog_path (str): path of dialog (tsv format)
Return:
dialogs: (list of list of str) [dialog_length, sentence_length]
users: (list of str); [2]
"""
with open(dialog_path, 'r', encoding='utf-8') a... | [
"zhw1025@gmail.com"
] | zhw1025@gmail.com |
e76ee9bd2e39b0f9c9ba6271d6e3596c11174f81 | e616ea35ead674ebb4e67cae54768aaaeb7d89c9 | /project/alma/sections/enum.py | 22fa36ba0bcd4ed43e21f687c26270bc03f661d2 | [] | no_license | VWApplications/VWAlmaAPI | 12bb1888533cf987739b0e069737afa6337141e1 | 3a8009b17518384c269dfee3c8fe44cbe2567cc0 | refs/heads/master | 2022-04-02T10:26:49.832202 | 2020-02-12T04:46:31 | 2020-02-12T04:46:31 | 161,098,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from enum import Enum
class MethodologyTypeSet(Enum):
"""
Tipos de metodologia aplicado a seção.
"""
TRADITIONAL = "TRADITIONAL"
TBL = "TBL"
class ConfigTitleSet(Enum):
"""
Títulos de avaliações.
"""
TRADITIONAL = "TRADITIONAL"
EXERCISE = "EXERCISE"
IRAT = "IRAT"
GR... | [
"victorhad@gmail.com"
] | victorhad@gmail.com |
d88a28daced63f58af574720f1837e5b7d61e973 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/205.py | a6d9f9958d2fbf7364dcebe57e5ba6b53efb58ec | [] | 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 | 852 | py |
t = int(input())
for i in range(1, t + 1):
value = input();
goal, other_horses = [int(s) for s in value.split(" ")];
#print("gola:{}".format(goal))
#data containers
start_poses = [0 for h in range(other_horses)]
speeds = [0 for h in range(other_horses)]
#read input
for h in range(0, other_horses):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2d04b36b8338a3cac4b74f030f5291425fd10e78 | b5f9f93a415a5cc0117a580c5da12804e68c141d | /scripts/motions/cvfilter1.py | 8504c5b1c6492a3996f710f7d07ab0847a7e8899 | [] | no_license | akihikoy/lfd_trick | 71f89d80abc27ffc6fbd5bc609322918a4f8264e | b7bf0189db7bcef07772db17de29302d6e8ba2bf | refs/heads/master | 2021-01-10T14:22:53.341666 | 2016-03-29T18:16:15 | 2016-03-29T18:16:15 | 50,623,958 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | #!/usr/bin/python
from core_tool import *
def Help():
return '''Filter for cv (color_detector nodes).
Usage:
cvfilter1
Test this filter
Use CVApplyFilter from other scripts.
'''
#idx: index of color detection node (1 or 2)
def CVApplyFilter(cvfiltered, msg, idx):
if 'amount' not in cvfiltered:
... | [
"info@akihikoy.net"
] | info@akihikoy.net |
f540455aeea0a47f0e5910571ffd339bbb8d69e8 | 33982dafec0e388d911853ebd81f7870a364f39e | /src/micro_client/registry/__init__.py | 53b6fa80b624f65047510adcc05bac5834516859 | [
"MIT"
] | permissive | ashcrow/micro-client | cc0cea27ceee21b36addda0c2075b31f7ebd8eb6 | cfe6ac45606eea7310a2336c5e733e2b540d5e01 | refs/heads/master | 2021-09-15T20:31:40.644763 | 2018-06-10T16:41:47 | 2018-06-10T16:43:13 | 115,768,076 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | # Copyright 2017 Steve 'Ashcrow' Milner
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, ... | [
"stevem@gnulinux.net"
] | stevem@gnulinux.net |
88286460c7a9c654aa130ade5dde04444853e9bb | ad9c2138ab8e0e8b50277f294ccdb29ef9d67747 | /tests/endpoints/test_password_reset.py | 98cce8b19c91cd3e9ed20d9460ce405ae3561eee | [
"MIT"
] | permissive | accent-starlette/starlette-auth | 3c6e3804a7d49b673cf108e4874aff426b55da74 | d07f4bf7f856c54d05eb08b0ddff5d1bcbdda3d9 | refs/heads/master | 2022-01-02T02:17:25.041209 | 2021-12-10T17:19:37 | 2021-12-10T17:19:37 | 183,644,203 | 11 | 5 | MIT | 2021-12-10T17:00:58 | 2019-04-26T14:35:29 | Python | UTF-8 | Python | false | false | 2,956 | py | import pytest
from starlette_auth import config
def test_get(client):
response = client.get("/auth/password/reset")
assert response.status_code == 200
assert "form" in response.context
assert "request" in response.context
def test_post_redirects(client, monkeypatch):
# its important here that t... | [
"stuart@accentdesign.co.uk"
] | stuart@accentdesign.co.uk |
ed74886fda93206bc1650e8609437a1e31ba4732 | c42b8493a2d6fa0729772a4be32770cae185adfe | /nullandnotnull.py | 59860175376670cbdfa4c8eb6c04a907be67f3d2 | [] | no_license | ashishjsharda/Pandas | f834d2e88f62c6b989910fc4ea54475abc270cc5 | a4ffcbc5cb27f4007c56658eb0df08cabc7854d5 | refs/heads/master | 2023-01-30T01:09:56.160918 | 2020-12-15T04:43:45 | 2020-12-15T04:43:45 | 282,204,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import pandas as pd
import numpy as np
ser=pd.Series([1,5,0,-1,np.nan,12])
print(ser)
print(ser.isnull())
print(ser.isna())
print(ser.notnull())
| [
"noreply@github.com"
] | ashishjsharda.noreply@github.com |
d1c440b76e4ab9e6077d3c54b44f9f8d30eb178c | 1f4204f903657884d9cccfd44b19ecb531b59ded | /test_settings/196_4_8_1000.py | c1b10e5ab910361946660ce5b7f94f0cb0b45ce4 | [] | no_license | fmcc/StylometricAnalyser | 795a8e4abe264ee18ab3bcb34bd128bcd06ac5ca | e86305a63c95d8b533cab4a3be0010c2fee0ff14 | refs/heads/master | 2021-01-23T08:38:44.961082 | 2013-08-31T20:23:36 | 2013-08-31T20:23:36 | 11,097,508 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py |
import os
DB_PATH = os.getcwd() + '/database/greek_texts.db'
LOGGING = True
DB_LOGGING = False
NGRAM_WORDS = False
NGRAM_LENGTHS = {
'MIN': 4,
'MAX': 8
}
NO_SPACES = True
RESTRICT_VECTOR_SPACE = 1000
# If selected, texts will be divided according to their original top-level divisions (Books etc... | [
"finlaymccourt@gmail.com"
] | finlaymccourt@gmail.com |
432413c5286986b43d8a1b35ae09e90cc1a0ab84 | 6cefb77248f43559a7aab1ef0a18dc513d408483 | /prokmer.py | e0bd448eb2bc912b48d69ad90a99e67042a4cc98 | [] | no_license | zheins/rosalind_algorithms | 8df10d0028d8c60e06a969c6b0d835fe2c498926 | b9856796e562cf5993f13da75adebed58aa3ca8f | refs/heads/master | 2021-01-10T01:48:20.209208 | 2015-10-31T17:35:39 | 2015-10-31T17:35:39 | 45,252,883 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | import sys
def hamming(pattern, check):
match = False
distance = 0
for i in range(len(pattern)):
if check[i] != pattern[i]:
distance += 1
return distance
def neighbors(s, d):
l = []
if d==0 or len(s)==0:
return[s]
for n in 'ACGT':
d1 = d-1
... | [
"="
] | = |
86e9016bc78025af85dd85536ca4111085b867e2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2403/60839/290002.py | c20b0c3053800cbafb785bcf5e7ba93343c0316d | [] | 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 | 268 | py | x=int(input())
y=int(input())
left=x
ans=[]
for i in range(0,y):
ans.append(0)
i=0
while left!=0:
if left-i-1>=0:
ans[i%y]+=i+1
left=left-i-1
else: #left!=0:
ans[i%y]+=left
left=left-left
i+=1
print(ans) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
bf00bd4f26d68eb020febf813f8adec10ef4cb6c | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/ipython-1.2.1-py27_0/lib/python2.7/site-packages/IPython/nbconvert/writers/base.py | 914e9c4ffc8e4f2e55879544145da9b06d0d1302 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,770 | py | """
Contains writer base class.
"""
#-----------------------------------------------------------------------------
#Copyright (c) 2013, the IPython Development Team.
#
#Distributed under the terms of the Modified BSD License.
#
#The full license is in the file COPYING.txt, distributed with this software.
#-------------... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
f9d4657e2b79d5391ae2e83c6bd47eaa7573ac62 | cd741a0d675ff99c297ed226439561f99ca2932c | /OOP_day01/gun.py | 8917eccc0d7226cbc55e1846378a3f5fc2772b2f | [] | no_license | SoliDeoGloria31/OOP | f5e52461f9e6f60f31af8f6e00641d88443626f2 | b09f6db93879b9f985770488dae513d77aa91942 | refs/heads/master | 2020-04-18T11:03:32.737852 | 2019-01-25T04:59:03 | 2019-01-25T04:59:03 | 167,405,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # gun.py
# 枪械类
class Gun:
def __init__(self,
name, max_bullets, bullets_left,
dest_ratio, firing_bullets):
self.name = name # 名称
self.max_bullets = max_bullets # 弹夹容量
self.bullets_left = bullets_left
self.dest_ratio ... | [
"mortaltiger@163.com"
] | mortaltiger@163.com |
25c1c8dfa5ffc6fc27bb4c8b331aacd80bc386e7 | 43e900f11e2b230cdc0b2e48007d40294fefd87a | /ReferenceSolution/82.remove-duplicates-from-sorted-list-ii.139653354.ac.py | 72447ddba7e7ef7601e80c11712580e36a28d21c | [] | no_license | DarkAlexWang/leetcode | 02f2ed993688c34d3ce8f95d81b3e36a53ca002f | 89142297559af20cf990a8e40975811b4be36955 | refs/heads/master | 2023-01-07T13:01:19.598427 | 2022-12-28T19:00:19 | 2022-12-28T19:00:19 | 232,729,581 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | #
# [82] Remove Duplicates from Sorted List II
#
# https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/description/
#
# algorithms
# Medium (29.87%)
# Total Accepted: 127.7K
# Total Submissions: 427.4K
# Testcase Example: '[]'
#
#
# Given a sorted linked list, delete all nodes that have duplicate n... | [
"wangzhihuan0815@gmail.com"
] | wangzhihuan0815@gmail.com |
a9faca58ec4af00b6958d150bad0356673a11d1d | 057d662a83ed85897e9906d72ea90fe5903dccc5 | /.PyCharmCE2019.2/system/python_stubs/-1247971762/nacl/_sodium.py | f5d9843c516b16c196d8f850286b3017439858e2 | [] | no_license | Karishma00/AnsiblePractice | 19a4980b1f6cca7b251f2cbea3acf9803db6e016 | 932558d48869560a42ba5ba3fb72688696e1868a | refs/heads/master | 2020-08-05T00:05:31.679220 | 2019-10-04T13:07:29 | 2019-10-04T13:07:29 | 212,324,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # encoding: utf-8
# module nacl._sodium
# from /usr/lib/python3/dist-packages/nacl/_sodium.abi3.so
# by generator 1.147
# no doc
# no imports
# no functions
# no classes
# variables with complex values
ffi = None # (!) real value is '<CompiledFFI object at 0x7fc5088234d0>'
__loader__ = None # (!) real value is '<_fr... | [
"karishma11198@gmail.com"
] | karishma11198@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.