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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9c91809b744ff16932feb411b09b7423b511a93b | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/models/AppConfig.py | b3e39931ac2f8eb97496fa5f9e2cc1cdee59154c | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | # -*- coding: utf-8 -*-
import settings_sub
from django.db import models
from platinumegg.app.cabaret.models.base.models import Singleton, BaseModel
from platinumegg.lib.opensocial.util import OSAUtil
from platinumegg.app.cabaret.models.base.fields import TinyIntField,\
AppDateTimeField, JsonCharField, PositiveAuto... | [
"shangye@mail.com"
] | shangye@mail.com |
c9fe70da36618c2cb74ba704579300f060bdfe9c | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/asyncio_echo_client_coroutine.py | 05309a636fa1c68dedb183a41da0a63c3998acb5 | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | # asyncio_echo_client_coroutine.py
import asyncio
import logging
import sys
MESSAGES = [
b"Questo e' il messaggio. ",
b"Sara' inviato ",
b'in parti.',
]
SERVER_ADDRESS = ('localhost', 10000)
logging.basicConfig(
level=logging.DEBUG,
format='%(name)s: %(message)s',
stream=sys.stderr,
)
log = l... | [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
5aac4802175c9e01e52b360b66fd915af1002463 | e17680647cbaee4d2661246eac1357d7f1de1536 | /apps/organization/migrations/0004_auto_20180519_1313.py | bd9fef39819fa3e7e26363ba7b8ccf81ebee32c0 | [] | no_license | chenjb04/LearnOnline | 0cad4da6917121e889ce03928acd06f0e72313fc | 35dadcc73e3a803ca7756a51bbcc3e408912ab12 | refs/heads/master | 2020-04-26T17:21:43.360876 | 2019-05-06T08:18:43 | 2019-05-06T08:18:43 | 173,710,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Generated by Django 2.0.5 on 2018-05-19 13:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('organization', '0003_courseorg_catgory'),
]
operations = [
migrations.RenameField(
model_name='courseorg',
old_name='catgory... | [
"chenjb04@163.com"
] | chenjb04@163.com |
21d3203a342aae2ceed8f3725d137594722bd3ba | 41efe260c251c719f87e883cc97f3c796569c5ce | /deving/pstats_merge.py | 16347e4301e36cb3b64c3fd8be4318a421ce91cc | [] | no_license | orenovadia/deving | f49c4bb7a354d420644afc87c87c163f95ad4987 | 6b18347e43a556599593ec5f09248945966167de | refs/heads/master | 2020-03-10T07:10:47.326670 | 2019-02-10T23:21:18 | 2019-02-10T23:21:18 | 129,256,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from __future__ import print_function
import pstats
import click
@click.command(name='pstats_merge')
@click.argument(
'from_files',
type=click.Path(exists=True, file_okay=True, dir_okay=False, resolve_path=False),
required=True,
nargs=-1
)
@click.argument(
'to_file',
type=click.Path(exists=F... | [
"orenovad@gmail.com"
] | orenovad@gmail.com |
bfc3d935394fc6ca878f5a81da542c5dea036d5d | 82d6e248d6498f53455f9ccb40b6ff9667da8f2e | /Params/xgb_cv_params.py | 46a7ba704b2ce3ce71ca634f5f5c6062b486bd36 | [] | no_license | marvinxu-free/data_analysis | 650ddf35443e66c395c8c503cacc328e547298a5 | 7a552959fd6272a54488c59091fa8b820c3f19ce | refs/heads/master | 2020-03-22T04:00:09.938423 | 2018-07-02T16:32:20 | 2018-07-02T16:32:20 | 139,466,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | # -*- coding: utf-8 -*-
# Project: local-spark
# Author: chaoxu create this file
# Time: 2017/10/13
# Company : Maxent
# Email: chao.xu@maxent-inc.com
from __future__ import print_function, division
xgb_base_params = {
'objective': 'binary:logistic',
# 'objective' : 'binary:logitraw',
'nthread': -1,
... | [
"marvinxu_free@163.com"
] | marvinxu_free@163.com |
d0023e8273cd6e97b2ad2bfdf9a6782d33bfc3e3 | bb109bd629c67a30a57850ebc97f9a9625aa998f | /wmtexe/cmi/git.py | 748d4b4a734ecdbb8b4082128123fa2889aa607b | [
"MIT"
] | permissive | csdms/wmt-exe | b0966f27792be853e8469f12a7e78aea24da6bfa | 9f6e5a20e65765389682161b985cab186db88fce | refs/heads/master | 2022-11-15T06:27:23.589160 | 2022-10-25T23:57:21 | 2022-10-25T23:57:21 | 22,662,428 | 0 | 2 | MIT | 2022-10-25T23:57:22 | 2014-08-05T23:04:09 | Python | UTF-8 | Python | false | false | 1,616 | py | #! /usr/bin/env python
import os
from .utils import which, check_output, system, cd, status
def git_repo_name(url):
(base, _) = os.path.splitext(os.path.basename(url))
return base
def git_repo_sha(url, git=None, branch='master'):
git = git or which('git')
lines = check_output([git, 'ls-remote', ur... | [
"mcflugen@gmail.com"
] | mcflugen@gmail.com |
8f5359219eca321f19a6e87ffc21568d1cd514cd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02422/s434334605.py | 0f8d8509dfbc38c56d306e2d546cad7fb3863b38 | [] | 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 | 420 | py | S = input()
n = int(input())
for i in range(n):
q = input().split()
q[1] = int(q[1])
q[2] = int(q[2])
if q[0] == "print":
print(S[q[1]:q[2] + 1])
elif q[0] == "reverse":
if q[1] == 0:
S = S[:q[1]] + S[q[2]::-1] + S[q[2] + 1:]
else:
S = S[:q[1]] + S[q[2... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fdd3bcccc3ab81cc1c4dd4ecddb857fc92b52c6c | 8f24e443e42315a81028b648e753c50967c51c78 | /rllib/algorithms/td3/tests/test_td3.py | 977c91fea4939895fe9cb6997559ab256cd0dcd1 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 4,032 | py | import numpy as np
import unittest
import ray
import ray.rllib.algorithms.td3 as td3
from ray.rllib.utils.framework import try_import_tf
from ray.rllib.utils.test_utils import (
check,
check_compute_single_action,
check_train_results,
framework_iterator,
)
tf1, tf, tfv = try_import_tf()
class TestTD... | [
"noreply@github.com"
] | simon-mo.noreply@github.com |
123fa1bf54e8b6e07efb17bac26e992b93729f39 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /output/StudentProblem/10.21.11.45/3/1569578443.py | 1753098b316b763fb20e3410fc4080977f4d3725 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | ============================= test session starts ==============================
platform darwin -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /tmp
collected 1 item
../../../../../tmp F [100%]
=================================== FAILURES ==========... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
e5220636500572d14722d578ed0d36e272a73c4c | d5125ccc1ef9915ffd72c575225a620aac5cb347 | /development/django_test_project/django_mysite/blog/models.py | dec8106056e3e47a4cc70ec40a2e11f392eae651 | [] | no_license | yurui829/stefanbo | 2231074e0e4f04438aff647563299ad1947bd760 | 449f862c81a3b4ae3e079ecb4a15b3a5cbcca701 | refs/heads/master | 2021-01-24T23:42:52.064783 | 2014-07-02T03:05:04 | 2014-07-02T03:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | from django.db import models
# import easy_thumbnail
from easy_thumbnails.fields import ThumbnailerImageField
############################################################
class BlogPost(models.Model):
title = models.CharField(max_length=150)
body = models.TextField()
timestamp = models.DateTimeField()
########... | [
"stefan_bo@163.com"
] | stefan_bo@163.com |
cce604d7c87324c908134270009a9e2f9e3e3505 | bd9a09a3f1a8b2b5166c540ada93cc5b30591605 | /scanner/plugins/cms/others/hnkj_researchinfo_dan_sqli.py | 45e7bf7e021770805dc12e1b41a3c2330a28bc57 | [
"MIT"
] | permissive | iceyhexman/onlinetools | 3cb6e349fc30c515f96429abeab5fbcc430ac0cc | 61f2df7ff8e6ad97ca7901728c3ab749679a2bd0 | refs/heads/master | 2023-08-06T19:31:51.328657 | 2022-10-28T04:01:38 | 2022-10-28T04:01:38 | 119,565,769 | 1,662 | 358 | MIT | 2023-03-31T14:34:13 | 2018-01-30T16:51:46 | Python | UTF-8 | Python | false | false | 1,064 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: 汇能群管理系统SQL注入
referer: http://wooyun.org/bugs/wooyun-2010-0152664
author: Lucifer
description: 链接/main/model/childcatalog/researchinfo_dan.jsp?researchId=1中 researchID未过滤存在SQL注入漏洞
'''
import sys
import requests
class hnkj_researchinfo_dan_sqli_BaseVerify:
de... | [
"834430486@qq.com"
] | 834430486@qq.com |
a34bf01cdd8b3293561d1ade7fa2babcf4b1d786 | 7034b7dec4a068493adde012e576891cb60c8d1e | /python/setup.py | f80a66c4f82ee2e5adb8436f2e19d3106f5beb50 | [
"MIT",
"LicenseRef-scancode-x11-xconsortium-veillard"
] | permissive | OpenCMISS-Dependencies/libxml2 | 4ed6741cfc7a9c89b03972422522203b28e6fc16 | 29930a028df0e92e6cec778f461194acc16d9c04 | refs/heads/v2.7.6 | 2022-05-02T03:33:26.421280 | 2022-04-26T21:26:34 | 2022-04-26T21:26:34 | 3,723,092 | 0 | 5 | NOASSERTION | 2021-04-19T21:25:51 | 2012-03-14T22:40:54 | C | UTF-8 | Python | false | false | 6,679 | py | #!/usr/bin/python -u
#
# Setup script for libxml2 and libxslt if found
#
import sys, os
from distutils.core import setup, Extension
# Below ROOT, we expect to find include, include/libxml2, lib and bin.
# On *nix, it is not needed (but should not harm),
# on Windows, it is set by configure.js.
ROOT = r'/usr'
# Thre... | [
"h.sorby@auckland.ac.nz"
] | h.sorby@auckland.ac.nz |
af3fb2b3688a0e354caa5b88c3565eebf0664c0f | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/product_20211026231719.py | 291ef58343af0bae5fbd6dccf33cceea045d6ea9 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 6,967 | py | import data as list_product
import random
def __init__(self, Id, Product_code, Product_name, Brand, Year, Size):
self.Id = Id
self.Product_code = Product_code
self.Product_name = Product_name
self.Brand = Brand
self.Year = Year
self.Size = Size
# Thêm sản phẩm
def AddProduct():
print("T... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
b89b38a5777080f39b5b0af78beb817fc594e3fe | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/390208_Matlablike_spy_pcolor/recipe-390208.py | af0402c8845b6bd612d208af863b90832966c331 | [
"MIT",
"Python-2.0"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 3,546 | py | def spy_matrix_pil(A,fname='tmp.png',cutoff=0.1,do_outline=0,
height=300,width=300):
"""\
Use a matlab-like 'spy' function to display the large elements
of a matrix using the Python Imaging Library.
Arguments:
A Input Numpy matrix
fname Output filename to which ... | [
"betty@qburst.com"
] | betty@qburst.com |
9166bba17e84a36d0e3627b66fc47d717a04d0ec | d3a8892f7e8a9d7767b3d797b0274004bf53e109 | /caffe/examples/notebook/original/brewing-logreg.py | 288d437ed475c854b70fc17a5e97ba4a9b78cde9 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | QI1002/machinelearning | 27d3217430c3440fce81f42e70aa88762dd9529c | 8daa4a54a5010ec702cb56b56f6373f5f09c891b | refs/heads/master | 2020-05-23T12:44:09.767397 | 2019-05-15T12:36:06 | 2019-05-15T12:36:06 | 186,762,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,606 | py | # based on Ipython Notebook script in https://github.com/QI1002/caffe/blob/master/examples/brewing-logreg.ipynb
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import os
os.chdir('..')
import sys
sys.path.insert(0, './python')
import caffe
import os
import h5py
import shutil
import tempfile
... | [
"alanchang544@gmail.com"
] | alanchang544@gmail.com |
832d35a685c7bd0a682533fa880372e0d17ad7b8 | 12ddeca149e1a95aa404d494a8856536c3a7022b | /mesh_tensorflow/utils.py | 8a4fc9aa67c1d2f8b7d8c4e971a75021fe2c75b3 | [
"Apache-2.0"
] | permissive | brettkoonce/mesh | bbe1c2c08aaa4ce50bd91497c122f1a9f252fb27 | 07417c92a061978f5b6ec10af5ebb6aa48de1d7e | refs/heads/master | 2020-04-08T10:29:55.910960 | 2018-11-25T02:31:42 | 2018-11-25T02:32:56 | 159,271,264 | 0 | 0 | null | 2018-11-27T03:35:58 | 2018-11-27T03:35:58 | null | UTF-8 | Python | false | false | 2,209 | py | # coding=utf-8
# Copyright 2018 The Mesh TensorFlow Authors.
#
# 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 applicab... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
7710a9642e9f3d373a1295f5cfb9c1067f40da35 | be4892e723db5039c56f961e117cb95258168eca | /lectures/lecture6/mysqrt.py | 6c1b85a74369b42e6707344be08f3d44fe3a4d16 | [] | no_license | Physicist91/uwhpsc | 121ebef0d0cd9fd7b038f97b4cb93a1f2272844a | d3ce5217796c82b19c131a04d7aecad1b9c4bae2 | refs/heads/master | 2021-01-10T21:12:00.235642 | 2014-04-05T23:29:07 | 2014-04-05T23:29:07 | 19,096,883 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | """
Module for approximating sqrt.
This is a sample module developed in earlier lectures.
"""
def sqrt2(x, debug=False):
"""
more details.
"""
from numpy import nan
if x==0.:
return 0.
elif x<0:
print "*** Error, x must be nonnegative"
return nan
assert x>0. and... | [
"rjl@ned"
] | rjl@ned |
0030964604d33aa135c50d750f448c4688055868 | 3256af0d6c19732bb84b256a9f792aaf7f3d901a | /f5/bigip/tm/asm/policies/test/functional/test_session_tracking.py | 787fdfeaad06ce0b34a159e408f247c5a80fe15b | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-common-python | 73e33ea489d989399d205077163f24ce584d83b9 | 3050df0079c2426af99b9a1b8f93d0b512468ff4 | refs/heads/development | 2023-08-29T10:11:23.713392 | 2022-09-21T02:45:03 | 2022-09-21T02:45:03 | 45,062,555 | 286 | 180 | Apache-2.0 | 2023-05-12T23:13:03 | 2015-10-27T18:48:06 | Python | UTF-8 | Python | false | false | 2,340 | py | # Copyright 2017 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"caphrim007@gmail.com"
] | caphrim007@gmail.com |
3dacd79b61a449dd121c4692ecef1e73c0a3611d | 779291cb83ec3cab36d8bb66ed46b3afd4907f95 | /library_strategy-wf/scripts/plot_umap_library_strategy.py | 8893a1ca40907af4f128ed47502fc90d159e6127 | [] | no_license | Shengqian95/ncbi_remap | ac3258411fda8e9317f3cdf951cc909cc0f1946e | 3f2099058bce5d1670a672a69c13efd89d538cd1 | refs/heads/master | 2023-05-22T06:17:57.900135 | 2020-11-01T17:16:54 | 2020-11-01T17:16:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | """UMAP of Library Strategy"""
import sys
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sys.path.insert(0, "../src")
from ncbi_remap.plotting import style_use
CATEGORIES = ["RNA-Seq", "EST", "WGS", "ChIP-Seq", "Other"]
COLORS = ["C0", "C1", "C2", "C4", "lightgray"]
ZORDER = [4, 3, 2, 1, 0... | [
"justin.m.fear@gmail.com"
] | justin.m.fear@gmail.com |
d8ca834b99ba70263bf23cc4cca4378f4ddc1fc7 | 6aee7149a16a71389e0916de1854f4edea026c2b | /docs/conf.py | ec1c141aa03b02802683dd91900e56f31946a7a8 | [
"BSD-2-Clause"
] | permissive | orionzhou/maize | d5e3c66af285d5d3a490fe09e85f840bd033240a | 605c895c397c9f614955a6df8eed0edc553f543d | refs/heads/main | 2022-12-27T02:08:26.747564 | 2022-11-24T07:57:30 | 2022-11-24T07:57:30 | 11,537,821 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,192 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# robin documentation build configuration file, created by
# sphinx-quickstart on Sun Dec 11 23:07:57 2016.
#
# 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
# auto... | [
"zhoupenggeni@gmail.com"
] | zhoupenggeni@gmail.com |
1f956806ded26833499f7cf94f5aa6c07baf85ca | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_62/226.py | 7ad140bdb3f8909e25cea0499824da525e9f42ab | [] | 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 | 364 | py | fi=open("A-large.in")#")
import sys
sys.stdout=open("out.out",'w')
T=int(fi.readline())
for i in range(T):
N=int(fi.readline())
lst=[map(int,fi.readline().split()) for j in range(N)]
cnt=0
for j in range(N):
for k in range(j+1,N):
cnt+=(lst[k][0]>lst[j][0])==(lst[k][1]<lst[... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d2e0473e0664d8e1a1e333368970ecc639a0840e | 1e8142725aa06844713d18fa38c6779aff8f8171 | /tndata_backend/notifications/views.py | cfeca79f817dd6db55ce8cd517ebe98b2e9b6884 | [
"MIT"
] | permissive | tndatacommons/tndata_backend | 8f4db3e5cf5272901c9087a85e21d7560240bb3b | 3d22179c581ab3da18900483930d5ecc0a5fca73 | refs/heads/master | 2020-12-03T07:53:17.339769 | 2017-03-27T06:18:58 | 2017-03-27T06:18:58 | 68,407,220 | 1 | 2 | null | 2017-03-27T06:18:59 | 2016-09-16T18:59:16 | Python | UTF-8 | Python | false | false | 6,049 | py | from collections import defaultdict
from datetime import datetime, timedelta
from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.http import JsonResponse
f... | [
"brad@bradmontgomery.net"
] | brad@bradmontgomery.net |
8b225ee618d2c0e039ce2c2d41cf4951ba7b6028 | c1c5a8dc79cacf3b419bad77881213c5db2f80c3 | /Kattis/Hangman.py | 540add223680299e4c243eee7ae10b1621c955f5 | [] | no_license | EoinDavey/Competitive | 7ff8b6b6225814ac60c3ace659bb63190eb52420 | b2b6909b93f5c073b684477f8a4b06dac22ec678 | refs/heads/master | 2023-01-08T00:06:19.076941 | 2022-12-26T14:00:31 | 2022-12-26T14:00:31 | 67,259,478 | 17 | 1 | null | 2022-01-19T18:17:59 | 2016-09-02T22:46:26 | C++ | UTF-8 | Python | false | false | 189 | py | w = set(raw_input())
r = set()
s = raw_input()
i = 0
for c in s:
if c in w:
r.add(c)
else:
i+=1
if len(r) == len(w):
break
if i < 10:
print "WIN"
else:
print "LOSE"
| [
"eoind@vey.ie"
] | eoind@vey.ie |
d03b9dea06bfefc925406420ce6441c7af6a6826 | 3da69696601b2b3ad7bc1285a5f0343c7eafea80 | /lc417.py | 4fde0896c49f578ad3744a0571ca5a994537d5c7 | [] | no_license | GeorgyZhou/Leetcode-Problem | ee586463a2e4e75c910c095bdc057f1be70b5c1b | d6fac85a94a7188e93d4e202e67b6485562d12bd | refs/heads/master | 2021-06-30T15:58:04.698200 | 2020-12-18T22:55:49 | 2020-12-18T22:55:49 | 66,054,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | class Solution(object):
def pacificAtlantic(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[List[int]]
"""
import heapq
row = len(matrix)
if row == 0:
return []
col = len(matrix[0])
if col == 0:
return []
... | [
"michaelchouqj@gmail.com"
] | michaelchouqj@gmail.com |
cf9536970a1d384e5d71709808001cf25fb90dc5 | 39e1e256acae3fe9be4434024d42b9bb47bdd02f | /analysis/submissions/844088c7077d499fa3533250ae504e7f_task2-2_1595958872/task2-2/main_patch.py | 9487fafad846fe1eb836cae4a61d574d42fae035 | [] | no_license | neulab/tranx-study | 9fb67b9a2181f0b362e4f97316c502eee4539b19 | e2a7089689f7f95e773e19c8f19513abe4fb8b9b | refs/heads/master | 2023-06-14T04:46:01.010892 | 2021-07-08T09:29:05 | 2021-07-08T09:29:05 | 250,357,553 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | from os import listdir
from os.path import isfile, join
from shutil import copyfile
def clean(file):
with open(file, 'r', encoding="ISO-8859-1") as f:
print(file)
return '\n'.join([line for line in f.read().strip().splitlines()]).encode('utf-8')
for fname in listdir('data/'):
fpath = join('d... | [
"frankxu2004@gmail.com"
] | frankxu2004@gmail.com |
4814556209a63b3749122e9e8c239c4aabab5d69 | 75402b6c851a12ae41359fdd83e89d2160c308af | /zentral/contrib/mdm/views/base.py | e87ecd36b7d41addde0cb28c75645741a6dd1b1d | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-commercial-license"
] | permissive | neocode12/zentral | 7b05aeeb823a5a3d7d268cc2b01e0bf1a5e4be71 | 9ecc8d8334148627fcccaa875f100adacd7a018b | refs/heads/main | 2023-04-09T12:06:45.355559 | 2023-03-15T14:05:05 | 2023-03-15T14:05:05 | 327,651,549 | 0 | 0 | Apache-2.0 | 2021-01-07T15:30:00 | 2021-01-07T15:30:00 | null | UTF-8 | Python | false | false | 1,481 | py | from django.core.exceptions import SuspiciousOperation
from zentral.utils.http import user_agent_and_ip_address_from_request
class PostEventMixin:
_setup_done = False
def dispatch(self, request, *args, **kwargs):
self.setup_with_request(request)
return super().dispatch(request, *args, **kwarg... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
57b0f77bec4f7eec3adf821f20ae402b5af51d66 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/carbon/common/lib/cherrypy/tutorial/bonus-sqlobject.py | 28b698ecccf4841092d2c84d53dee0097cbcc5cf | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,502 | py | #Embedded file name: carbon/common/lib/cherrypy/tutorial\bonus-sqlobject.py
"""
Bonus Tutorial: Using SQLObject
This is a silly little contacts manager application intended to
demonstrate how to use SQLObject from within a CherryPy2 project. It
also shows how to use inline Cheetah templates.
SQLObject is an Object/Re... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
7be5c1610311e38a44408af45228a5092697cb36 | 9e765b38a03c2996e221a42c2a0dbc0fe02824cb | /general_interview_qs/serialize_deserialize_binary_tree/binary_search_tree.py | 7d69deb9bc0240ce5a5c30d0940e79d08821b1f2 | [
"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 | 684 | py | import json
class Node():
def __init__(self, value):
self.value = value
self.left_child = None
self.right_child = None
def serialize_bst(root):
return json.dumps(serialize_bst_recursive(root))
def serialize_bst_recursive(root):
return root and (root.value, serialize_bst_recursive(ro... | [
"angelusualle@gmail.com"
] | angelusualle@gmail.com |
3cce911205ad7d207806b4df38a18d5029619084 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /11_Time_Series_Forecasting_with_Python/08/random_walk_persistence.py | 0a9ec3767d6c6e19c7e37f6146090e3366394702 | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # persistence forecasts for a random walk
from math import sqrt
from random import random
from random import seed
from sklearn.metrics import mean_squared_error
# generate the random walk
seed(1)
random_walk = list()
random_walk.append(-1 if random() < 0.5 else 1)
for i in range(1, 1000):
movement = -1 if random(... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
32a2d37244020f9f94575b7edd8b299c75941baa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03131/s755210567.py | 2089454a42165092751754963ddeb69a197d66c8 | [] | 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 | 337 | py | K, A, B = map(int, input().split())
if B - A <= 2:
print(K + 1)
else:
ans = 0
# 初回のA枚→B枚まで A-1 回かかる
rest = K - A + 1
# このときにはA枚持っている
ans += A
# 残りをすべてA枚→B枚
ans += rest // 2 * (B - A)
if rest % 2 != 0:
ans += 1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7379d7c195155642ce162043732d4f0040240093 | 3ad8887aca54daa74b1fe446cb35cd0902e1e9bd | /jackdaw/nest/ws/protocol/cmdtypes.py | dcd8aaa5c412c3cc29a7fc3200dcf7f1c5990f79 | [] | no_license | huangzccn/jackdaw | 6ea5f3f7901c1c64b469ea4c25de0e77a3fc49a2 | 1a9800152fb8f19d5db43fcd235f45f6db2e3878 | refs/heads/master | 2023-08-29T11:44:46.692776 | 2021-10-23T20:00:36 | 2021-10-23T20:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | import enum
class NestOpCmd(enum.Enum):
GATHER = 'GATHER'
KERBEROAST = 'KERBEROAST'
KERBEROASTRES = 'KERBEROASTRES'
ASREPROAST = 'ASREPROAST'
ASREPROASTRES = 'ASREPROASTRES'
KERBEROSTGS = 'KERBEROSTGS'
KERBEROSTGSRES = 'KERBEROSTGSRES'
KERBEROSTGT = 'KERBEROSTGT'
KERBEROSTGTRES = 'KERBEROSTGTRES'
SMBSESSIONS... | [
"info@skelsec.com"
] | info@skelsec.com |
463916eb7f9d2c84f8495c3cd2cf86f69b7f2b47 | b0d0e585c82b29aaabcb141f9f54280559abac69 | /Datastructures/spiral.py | 2b6df640797337c222abd54d3fabf6c6e852253b | [] | no_license | prem1806/python-practice-files | 32a6eb7236a9779dec0fb75d3792c34533e6491c | 3f152e4b62fb7f81e5113dced06b4dc7cce4b440 | refs/heads/master | 2021-05-29T16:59:00.349844 | 2015-10-06T17:58:56 | 2015-10-06T17:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | def auto(A):
m = len(A)
n = len(A[0])
T = 0
B = m - 1
L = 0
R = n - 1
direction = 0
ret = []
while T <= B and L <= R:
if (direction == 0):
for i in range(L,R+1):
ret.append(A[T][i])
T += 1
direction = 1
elif ... | [
"rohith.uppala369@gmail.com"
] | rohith.uppala369@gmail.com |
d4ed1afb2f18e5872a87afc51949c67782c4d55e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_cams.py | 79899c97da6b6f7a5750ef111987199a2e5323fe | [
"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 | 217 | py |
from xai.brain.wordbase.nouns._cam import _CAM
#calss header
class _CAMS(_CAM, ):
def __init__(self,):
_CAM.__init__(self)
self.name = "CAMS"
self.specie = 'nouns'
self.basic = "cam"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d8b1f1388e4a768f0006ce3f1ac5e57574bc519b | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /time_or_world/see_long_case_under_year/early_day_or_hand.py | e5672fa966bf5cb831f37a71568f7efcaca277b6 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py |
#! /usr/bin/env python
def early_fact(str_arg):
place_and_young_government(str_arg)
print('other_problem')
def place_and_young_government(str_arg):
print(str_arg)
if __name__ == '__main__':
early_fact('great_man_or_man')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
e5f64d8df89dd8374d572ba638269fb1af708fd3 | c9e0227c3958db89747488328bd2b255e54f008f | /solutions/0748. Shortest Completing Word/0748.py | a4b585f171fb2752d25e76439753fa102ae11038 | [] | no_license | XkhldY/LeetCode | 2deba28b7491c36b4f224c3132fb89feea318832 | 94e23db2668615d9fe09e129a96c22ae4e83b9c8 | refs/heads/main | 2023-04-03T08:17:30.743071 | 2021-04-14T23:34:03 | 2021-04-14T23:34:03 | 358,136,537 | 1 | 0 | null | 2021-04-15T05:20:21 | 2021-04-15T05:20:21 | null | UTF-8 | Python | false | false | 492 | py | class Solution:
def shortestCompletingWord(self, licensePlate: str, words: List[str]) -> str:
def isMatch(word: str) -> bool:
wordCount = Counter(word)
return False if any(wordCount[i] < count[i] for i in string.ascii_letters) else True
ans = '*' * 16
count = defaultdict(int)
for c in li... | [
"walkccray@gmail.com"
] | walkccray@gmail.com |
9da8ce2b393a9e221c614b46da6993a8350023c7 | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /visit_report/migrations/0051_remove_cite_steps.py | 76dc57044caf2e095a4415fa7a366948cb1549e3 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from django.db import migrations
def remove_cite_steps(apps, schema_editor):
Steps = apps.get_model('visit_report', 'Step')
Steps.objects.filter(category="financing", milestone="work-end", nature="cite").delete()
class Migration(migrations.Migration):
dependencies = [
('visit_report', '0050_add... | [
"norman@xael.org"
] | norman@xael.org |
0ef74428d763b21c1f13e563f623565510db01d0 | a3c662a5eda4e269a8c81c99e229879b946a76f6 | /.venv/lib/python3.7/site-packages/pylint/test/functional/star_needs_assignment_target_py35.py | 58e43dbacb50b64cee73eb2d348f19ea84d2a1ee | [
"MIT"
] | permissive | ahmadreza-smdi/ms-shop | 0c29da82c58b243507575672bbc94fb6e8068aeb | 65ba3f3061e2ac5c63115b08dadfe7d67f645fb6 | refs/heads/master | 2023-04-27T19:51:34.858182 | 2019-11-24T20:57:59 | 2019-11-24T20:57:59 | 223,616,552 | 6 | 2 | MIT | 2023-04-21T20:51:21 | 2019-11-23T16:09:03 | Python | UTF-8 | Python | false | false | 445 | py | """
Test PEP 0448 -- Additional Unpacking Generalizations
https://www.python.org/dev/peps/pep-0448/
"""
# pylint: disable=superfluous-parens
UNPACK_TUPLE = (*range(4), 4)
UNPACK_LIST = [*range(4), 4]
UNPACK_SET = {*range(4), 4}
UNPACK_DICT = {'a': 1, **{'b': '2'}}
UNPACK_DICT2 = {**UNPACK_DICT, "x": 1, "y": 2}
UNPACK... | [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
f2e355dfe0f62b71a7bc35dd20e268a5f7c5387a | 6ceeb3adb08da8754f59a117f39d401948988f0a | /spark/datadog_checks/spark/config_models/defaults.py | 30ebbb0df826f22f540c8c68a8b26011fb804c1b | [
"BSD-3-Clause",
"BSD-3-Clause-Modification",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LGPL-2.1-only",
"LGPL-3.0-only",
"CC0-1.0",
"Unlicense",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Smartling/integrations-core | 794c3822f05c772c7e36fdde8b68c8c3284e71e3 | 79088364600aa8f06ec38500800f3803db77feed | refs/heads/master | 2023-04-15T14:21:50.017308 | 2023-04-11T20:13:26 | 2023-04-11T20:13:26 | 159,552,127 | 0 | 1 | BSD-3-Clause | 2023-04-07T16:38:06 | 2018-11-28T19:14:55 | Python | UTF-8 | Python | false | false | 4,552 | py | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x va... | [
"noreply@github.com"
] | Smartling.noreply@github.com |
2f21c748d4601d3ee19276f8b0c2227ee5efcd28 | 88030f69f438cbeed773d144949c00859a447a52 | /tests/delimited_file_utils/test_delimited_file_utils.py | a0a223117aa766b4de1fbb2e21a722e85ac8d3d9 | [] | no_license | ryanGT/krauss_misc | 05f5845e9915e522cb595b165e81b580019969db | d693dfd19a42ba893a0200630a0f3435711666ee | refs/heads/main | 2022-09-27T22:57:06.738155 | 2022-09-02T14:51:13 | 2022-09-02T14:51:13 | 240,044 | 24 | 16 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | import delimited_file_utils
import glob
from numpy import array
files = glob.glob('email_update_grades_test*.csv')
good_labels = array(['Group Name','Content/Progress','Clarity','Writing','Apparent Effort','Overall Grade','Notes'])
passes = []
failures = []
for curfile in files:
curarray = delimited_file_utils... | [
"ryanlists@gmail.com"
] | ryanlists@gmail.com |
5df4cb7698d616222b871122a1bd80d5a80a62ff | d5e279c64f7615cd14d82c59aca2ee17eef1c8f1 | /scripts/deploy-layer.py | 6830a56542322f06b17f3d9bd32892a6ce3a7194 | [] | no_license | kylebarron/cogeo-layer | d075ca12b95edf4731d89c2d68a548ec68c8a881 | f04d14ebf99dfcfa71ae5584a818956e91e8f0fa | refs/heads/master | 2021-04-18T14:25:31.567363 | 2020-03-24T03:08:34 | 2020-03-24T03:08:34 | 249,553,335 | 5 | 0 | null | 2020-03-23T23:25:28 | 2020-03-23T21:58:23 | null | UTF-8 | Python | false | false | 2,576 | py |
import click
import hashlib
from boto3.session import Session as boto3_session
AWS_REGIONS = [
"eu-central-1",
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
]
def _md5(fname):
hash_md5 = hashlib.md5()
with open(fname, "rb") as f:
for chunk in iter(lambda: f.read(4096), b"... | [
"vincent.sarago@gmail.com"
] | vincent.sarago@gmail.com |
f9cfddcd3da8437fd43cbe1a9e37a49a32c199a0 | 0b406d2c041c76d9ef8789539e0e3af9a50e3613 | /Extract_refactor/WebScrapy/manager.py | 37fd76cb4a79a41b493987d4e7ca799edc0f8929 | [] | no_license | aise17/ExtractPdf | 221b47c5f0e75a823284b4f52981917962042592 | 7e1bfbc759cb7473d727574e5df78eaaac9fa8a4 | refs/heads/master | 2022-02-26T06:39:14.265795 | 2019-06-04T15:01:39 | 2019-06-04T15:01:39 | 184,154,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | from Extract_refactor.settings import IMAGENES_PATH
from .web_info import WebInfo
import unicodecsv as csv
class Manager(WebInfo):
def __init__(self, ruta_entrada):
#self.resultados = {'status': 200, 'alexa': u'\n\n4,484,464 ', 'language': u'es-es', 'url': 'http://todosaintseiya.com', 'platform': ['p... | [
"sergio.martinez-g@hotmail.com"
] | sergio.martinez-g@hotmail.com |
7d1a8e1308c251ab8962fd8e55d64f1b6591f4cd | 0c0168a4676bce7453836a7509e7133044aa8975 | /byceps/services/shop/order/models/action.py | a522c5bf75985a56a31b5bdbfde5a96a124daac9 | [
"BSD-3-Clause"
] | permissive | byceps/byceps | 0aad3c4d974f76c6f8c3674d5539a80c9107b97a | eaee2b7fdc08c76c16ddf7f436110e0b5f1812e5 | refs/heads/main | 2023-09-01T04:03:13.365687 | 2023-09-01T03:28:18 | 2023-09-01T03:28:18 | 40,150,239 | 44 | 23 | BSD-3-Clause | 2023-05-16T18:41:32 | 2015-08-03T22:05:23 | Python | UTF-8 | Python | false | false | 565 | py | """
byceps.services.shop.order.models.action
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2014-2023 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from dataclasses import dataclass
from typing import Any
from uuid import UUID
from byceps.services.shop.article.models import Ar... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
2e0c98154ff9965f3b78d4ec24114cbfb88b9b4a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/209/32491/submittedfiles/swamee.py | 4e0b7ced6a958750f520d5f31ba92b776a1694b6 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
f=float(input('digite o valor f:'))
L=float(input('Digite o valor L:'))
Q=float(input('Digite o valor Q:'))
DELTAH=float(input('Digite o valor DELTAH:'))
V=float(input('digite o valor V:'))
g=9.81
e=0.000002
D=((8*f*L*(Q**2))/((math.pi**2)*g*DELTAH))**(1/5)
Re... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
30017f7b526335a428e035841353278b9d337ae7 | 997180420fabdd6f730f4673dba1f979bd91e699 | /apps/goods/t1.py | 70106faaf0574a7c9f66d963b3cb6942a4f54227 | [] | no_license | bwisgood/drf20F_api_pro | 66bb17479594247a2e74e4eef7434cdaf8b54de9 | ff4579ce8eaca7071ea27b5d071a58dbf63c2385 | refs/heads/master | 2020-03-27T02:52:28.973201 | 2018-09-20T05:01:40 | 2018-09-20T05:01:40 | 145,823,482 | 1 | 0 | null | 2018-08-23T14:00:24 | 2018-08-23T08:20:25 | JavaScript | UTF-8 | Python | false | false | 243 | py | class A:
a = 1
def __init__(self):
b = 2
def __repr__(self):
return "123"
def __str__(self):
return "456"
if __name__ == '__main__':
a = A()
print(repr(a))
print(a.__repr__())
print(a) | [
"857464370@qq.com"
] | 857464370@qq.com |
588728ae141a1688b6adb628431a81037164d133 | 7b437e095068fb3f615203e24b3af5c212162c0d | /enaml/qt/qt_time_selector.py | 44ed2090c63a693722eb360745f4e4e37af26edb | [
"BSD-3-Clause"
] | permissive | ContinuumIO/enaml | d8200f97946e5139323d22fba32c05231c2b342a | 15c20b035a73187e8e66fa20a43c3a4372d008bd | refs/heads/master | 2023-06-26T16:16:56.291781 | 2013-03-26T21:13:52 | 2013-03-26T21:13:52 | 9,047,832 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
9c55db4b00565f4ffe3a2d50ced5d3e2220ced2e | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/PictureUpdateRequest.py | b32556481ce925c61750073a18148e80e3b936fa | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class PictureUpdateRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.new_name = None
self.picture_id = None
def getapiname(self):
return 'taobao.pictu... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
2157f5ad78c10962340a58bdd733a32257639f36 | 6e3d061f94468905841a918278a352d4e5df89a1 | /hashicorp_vault_client/test/test_body70.py | 4abc0cc541b05ec6a2c886617b334da9410acb06 | [
"Apache-2.0"
] | permissive | drewmullen/HAC | 179a4188e6e6ce3a36d480e45f238fd0901a710f | fb185804fd244366f8f8d01df22835b3d96e7512 | refs/heads/master | 2020-08-03T12:13:08.785915 | 2019-10-03T18:33:04 | 2019-10-03T18:33:04 | 211,749,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # coding: utf-8
"""
HashiCorp Vault API
HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501
OpenAPI spec version: 1.2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
... | [
"drew@nebulaworks.com"
] | drew@nebulaworks.com |
bc31123ae5db9b82f65e97d1036afeff59cb28f4 | 5af41b5507a535cc228673f05c5da215c93a76b5 | /practice/puzzles/medium/Flood fill Example.py | 79d3877a13788695f417bc1a52f1ef3d83e793f1 | [] | no_license | mithrantir/CodinGame | d308f50f3d74bb105e678d0b66e439c68b07f9a1 | 306ead31859b3b499019adadbdd41631781ad192 | refs/heads/master | 2022-07-14T20:41:05.380179 | 2020-05-17T21:15:15 | 2020-05-17T21:15:15 | 259,610,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py |
with open('000.txt') as f:
read_data = f.read().split('\n')
w = int(read_data[0])
h = int(read_data[1])
# w = int(input())
# h = int(input())
alderaan = []
for i in range(h):
# alderaan.append([c for c in input()])
alderaan.append([c for c in read_data[2+i]])
tower = {}
for i in range(h):
for j in ra... | [
"christophoros.mouratidis@gmail.com"
] | christophoros.mouratidis@gmail.com |
9a7925334b208a1c4ede6feb518cced7303356b4 | fb0018545b1f0646a59a51522fd32ccbaf4c0bb7 | /py/escher/tests/test_urls.py | 1fd5806a34e1380e1a858f5be0f0e0a1b333f9ad | [
"MIT"
] | permissive | DD-DeCaF/escher | 083341268dad2195b402ae80391eb93e54b88365 | cd2c81bc62199f9349a9f24dd7a0a148fa6adc46 | refs/heads/master | 2022-07-24T18:49:55.835648 | 2020-02-15T14:48:52 | 2020-02-15T14:51:22 | 84,944,610 | 1 | 0 | NOASSERTION | 2018-10-08T08:50:49 | 2017-03-14T12:06:53 | JavaScript | UTF-8 | Python | false | false | 887 | py | from escher.urls import (
get_url,
get_filepath,
root_directory,
)
from escher.version import (
__version__,
__schema_version__,
__map_model_version__,
)
from os.path import join, exists
from pytest import raises
def test_online():
url = get_url('escher')
assert url == 'https://unpkg.c... | [
"zaking17@gmail.com"
] | zaking17@gmail.com |
d2309b65fbdf81233c3fec89a1b2055bfd35d8cb | d8761daf7bf2b75b9925b12450da2a6ea3d31140 | /tlbo/utils/rank_svm.py | c29c536605ebe543d3a59c20d0899f65957ca633 | [] | no_license | pyz2020/efficient-tlbo-DL-Model-Reoptimizations | 5dcc2c522d9430b4fab534689fd338fbfc6a6945 | dd2ed9c91b970e0ab4c0ed82382567ec0df6c42b | refs/heads/master | 2023-01-06T18:33:33.726527 | 2020-11-04T08:09:13 | 2020-11-04T08:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | import itertools
import numpy as np
from scipy import stats
from sklearn import svm, linear_model, model_selection
def transform_pairwise(X, y):
"""Transforms data into pairs with balanced labels for ranking
Transforms a n-class ranking problem into a two-class classification
problem. Subclasses implement... | [
"1225646303@qq.com"
] | 1225646303@qq.com |
82575ef7f307733145700be6a98b158fd12278da | d0d1e07c984651f96bd9386d546c85c0341e46b2 | /scripts/kivy_experiments/importing/wombat2.py | 17307767b7aa1edc3ac0fe22fb3bb81f93eacf4a | [
"MIT"
] | permissive | timedata-org/timedata | 61cde905b1fe9eb60ac83ecbf5a5a2114793c45d | 3faac7450678aaccd4a283d0d41ca3e7f113f51b | refs/heads/master | 2020-04-11T12:03:57.962646 | 2019-06-09T10:05:16 | 2019-06-09T10:05:52 | 51,217,217 | 5 | 3 | null | 2016-09-18T16:20:43 | 2016-02-06T19:13:43 | C++ | UTF-8 | Python | false | false | 173 | py | from kivy.uix.label import Label
class Wombat2(Label):
def __init__(self, *args, **kwds):
super().__init__(*args, **kwds)
print('wombat2 constructed')
| [
"tom@swirly.com"
] | tom@swirly.com |
4ed252d7f3459a256fba7d6f46a04fdc456dec6c | 3d50f97420e7aa79be37cc238555ef2038064afb | /stocks/tests/models/test_HSGTCGHold.py | 5bc7b08ac0cbc7b9c39c326e5fcb5beff4924753 | [
"MIT"
] | permissive | tauruswang/wanggeService | d6948704f5e28c1603e864e32986cc91eaf816b2 | 7aa6687ece9a865930c5dbab506cad5955848457 | refs/heads/master | 2020-03-19T05:52:36.264023 | 2018-06-01T03:32:27 | 2018-06-01T03:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,490 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
@File : test_HSGTCGHold.py
Description :
@Author : pchaos
date: 2018-5-31
-------------------------------------------------
Change Activity:
18-5-31:
@Contact : p19992003#gmail.com
-----... | [
"drifthua@gmail.com"
] | drifthua@gmail.com |
0417c2835eac339494cbb1098e8e8fd018780afa | 8d86f0d90a36b97903d07455edb37611a6958832 | /Apps/users/migrations/0001_initial.py | d7bdc634de207e4003b00c5aec1e4d014aaca00a | [] | no_license | urimeba/diagnosticapp | 4615232224e61e513dcce6557197eeca9b9ece86 | 311bdadabe6c2883c6d7395963cd23c3d7ebca03 | refs/heads/main | 2023-01-21T07:48:04.510799 | 2020-11-30T21:28:21 | 2020-11-30T21:28:21 | 313,359,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | # Generated by Django 3.1.3 on 2020-11-23 19:29
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_m... | [
"urimeba511@gmail.com"
] | urimeba511@gmail.com |
7bb83d0baa185fe756143ee095e6f0fecca1c70b | dafafb8f65cd93dd1f6567d9b8e431e31f19ae68 | /dms/views/apply/music.py | de272d9f96fe77147c3b2527b8dad48277fe174a | [
"MIT"
] | permissive | SangminOut/DMS-Sanic | 7fb877b2a772de808b7391428e151b2a2645c59d | bbb65c584711fa23dbf0455300307c2acceba013 | refs/heads/master | 2020-06-15T06:11:33.116199 | 2019-07-14T12:57:11 | 2019-07-14T12:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from sanic.request import Request
from sanic.views import HTTPMethodView
class MusicApplyView(HTTPMethodView):
def get(self, request: Request, weekday: int):
"""
Response Music Apply Status
"""
pass
def post(self, request: Request, weekday: int):
"""
Apply Musi... | [
"python@istruly.sexy"
] | python@istruly.sexy |
24430bb2f438aace2477e6ae54cfe4c876848f5c | 4dd695521343d56ff943e8c1768343d7680714e3 | /experiments/scripts_auto_closedset_ynoguti/config_SVM_128_fold10.py | f5343d3ddb38f0516fe592dabbc19c413e186cf9 | [] | no_license | natharb/environment | ea659ee541f6473e92b5b30c549e52b66f47b280 | 86e6cee6e01d2370abeb7c55a2c8a15001735919 | refs/heads/master | 2021-09-28T02:39:02.222966 | 2018-11-13T12:03:34 | 2018-11-13T12:03:34 | 139,762,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
#Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br)
import sys
sys.path.insert(0, '.')
import bob.bio.spear
import bob.bio.gmm
import numpy
import scipy.spatial
temp_directory = './results/closedset_ynoguti/SVM/128/fold_10/temp/'
result_directory = './r... | [
"nathbapt@decom.fee.unicamp.br"
] | nathbapt@decom.fee.unicamp.br |
de9de4589510affd0dcae62be57fd19a0178ca96 | 2baf095631192604a2aabdeeb2aa230b4229076c | /benchmark/plot.py | ce577c556d017b0073c4627b5c3a452d4c50a29d | [] | no_license | ximitiejiang/machine_learning_algorithm | 14ea7cf991381375b6cbe34030a477e6a949abe1 | a26c64a561985444c1fc23db4ab298af255d1177 | refs/heads/master | 2020-03-26T23:02:10.614960 | 2019-12-05T14:54:49 | 2019-12-05T14:54:49 | 145,505,075 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,736 | py | import progressbar
#from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.cm as cmx
import matplotlib.colors as colors
import numpy as np
#from mlfromscratch.utils.data_operation import calculate_covariance_matrix
#from mlfromscratch.utils.data_operation import calculate_correlation... | [
"ximitiejiang@163.com"
] | ximitiejiang@163.com |
7fa07c81e77c3c7452bffd7ef527182c0b399ad3 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/host_internet_scsi_hba_authentication_capabilities.py | c35666aac4c0338cccda1bb6bc8f959b7d9f3d45 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def HostInternetScsiHbaAuthenticationCapabilities(vim, *args, **kwargs):
'''The authentic... | [
"jmb@pexip.com"
] | jmb@pexip.com |
5ae62e7a2aebbe4228d9013bd093f34148deefa5 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/nanachi_20200619190147.py | 86f02fde6c3e6677051477be28e1a4ea19c0aee3 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import telebot
bot = telebot.TeleBot('776550937:AAELEr0c3H6dM-9QnlDD-0Q0Fcd65pPyAiM')
@bot.message_handler(content_types=['text'])
def send_text(message):
if message.text[0].lower() == "н" and :
bot.send_message(message.chat.id, message.text + message.text[1:] )
bot.polling()
def c | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
f6ce243146b5a953f28c66da59306e9142735527 | bad0f9497e549d729d342f84d7fae197cccdd198 | /docs/source/conf.py | 77b14d6ed6f15026ed9dce76aebf1bae589ece6e | [
"BSD-3-Clause"
] | permissive | talpor/django-activity-stream | 2f900dc95561d9bdaf23934463524c68bae567de | 8348bec4ee80be2cc19aa17932ecaf81f6df9def | refs/heads/master | 2021-01-15T23:02:45.341247 | 2018-05-17T18:50:50 | 2018-05-17T18:50:50 | 32,185,029 | 0 | 0 | null | 2015-03-13T22:55:08 | 2015-03-13T22:55:06 | Python | UTF-8 | Python | false | false | 5,763 | py | # -*- coding: utf-8 -*-
#
# Django Activity Stream documentation build configuration file, created by
# sphinx-quickstart on Sat Oct 1 12:35:29 2011.
#
# 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
# autogenerate... | [
"justquick@gmail.com"
] | justquick@gmail.com |
5ece19536166f0b866ad549915f7002b119a6b49 | 1b3e62ac5655fbcbb7cf95724354c8e69d487745 | /HSE WEEK 5/HSE 5 Task 31.py | c9619f61ea9d0944c84c7a376de659ef19fa3cc9 | [] | no_license | syth0le/HSE.Python | 7d97f38e9b57825b54ac2576b00731240eef227c | e9a15b1ed5e21d56281e4619a39198d5d2838f0b | refs/heads/master | 2021-01-14T17:35:30.427970 | 2020-03-24T17:23:30 | 2020-03-24T17:23:30 | 242,698,160 | 5 | 1 | null | 2020-03-23T19:41:20 | 2020-02-24T09:43:15 | Python | UTF-8 | Python | false | false | 167 | py | numList = input().split()
for i in range(0, len(numList), 2):
numList[i:i+2] = numList[i:i+2][::-1]
readylist = list(map(str, numList))
print(' '.join(readylist))
| [
"chdan565@gamil.com"
] | chdan565@gamil.com |
7180394060ae55aeb4c339d0562f330eaaf40bca | 56bf6c68e78257e887de9e5eae11fc6652ce7f06 | /bbdd/Scripts/bbdd/productos/migrations/0002_auto_20170313_1111.py | 971ae6caf6b0803bf878e97cde5caee4a2089a6a | [] | no_license | CarlosSanz81/bbdd | 1d1c670e16f0e8ee81fb929767d8f65b7361cbe3 | 3b1febaddfef93fffeb34c3970281e4a37d05146 | refs/heads/master | 2023-01-09T03:20:02.042514 | 2017-03-13T11:07:15 | 2017-03-13T11:07:15 | 84,815,195 | 0 | 1 | null | 2022-12-20T09:00:14 | 2017-03-13T10:45:00 | Python | UTF-8 | Python | false | false | 3,508 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-13 10:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('productos', '0001_initial'),
]
operations = [
migrations.RenameField(
... | [
"carlossanzgarcia81@gmail.com"
] | carlossanzgarcia81@gmail.com |
62c94db115f11585424e8df49b2baf70d5c8bc4d | 9a486a87e028303a551fbd0d1e1b6b650387ea14 | /propose/anim/me_send/human_skin.py | 23974e36ca1961c8edd87e9707c50518b46b0440 | [] | no_license | shanlihou/pythonFunc | 7b8e7064fddd4522e492c915c086cc6c5abc6eec | 646920256551ccd8335446dd4fe11aa4b9916f64 | refs/heads/master | 2022-08-24T20:33:12.287464 | 2022-07-21T12:00:10 | 2022-07-21T12:00:10 | 24,311,639 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py |
skin = [
('head', (174, 229), 'me.png', True, True, 0.2),
('upper_arm1', (11, 56), 'all.png', True, True, 0.2),
('lower_arm1', (11, 59), 'all.png', True, True, 0.2),
('upper_arm2', (9, 60), 'all.png', True, True, 0.2),
('lower_arm2', (8, 60), 'all.png', True, True, 0.2),
('upper_leg1', (11, 58)... | [
"shanlihou@gmail.com"
] | shanlihou@gmail.com |
a99808919eadfeaef81265b7cda8db9b9fd19fe4 | b834509b4d3bf3b9161c3ac9ea2984af17bebf5e | /icvUI/dbsession/panel.py | de24cb4c4d427413ea39deb950f953065b7ee523 | [] | no_license | RichardZhong/meiduo | a338dc6b78da71df60ebff7827c5ba6225081650 | 4d530b4870d3353daaf4b1505998156595055073 | refs/heads/master | 2020-08-22T12:12:07.870793 | 2018-09-26T03:26:49 | 2018-09-26T03:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,861 | py | from icvUI.dbsession import *
# 获取属于面板功能的camera
def query_panel_camera():
try:
conn = mc.connect(**fs_icv_db)
cursor = conn.cursor(dictionary = True)
query_sql = "SELECT panel_ori.camera_id,description,ori_data FROM camera,panel_ori WHERE FIND_IN_SET('panel',application) AND panel_ori.came... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
a7c4f424709c906decef7ac3409403229846dd1c | c77a40408bc40dc88c466c99ab0f3522e6897b6a | /Programming_basics/Exercise_7/AgencyProfit.py | a3938967800366d45453b1a08b8b42eed96dad4e | [] | no_license | vbukovska/SoftUni | 3fe566d8e9959d390a61a4845381831929f7d6a3 | 9efd0101ae496290313a7d3b9773fd5111c5c9df | refs/heads/main | 2023-03-09T17:47:20.642393 | 2020-12-12T22:14:27 | 2021-02-16T22:14:37 | 328,805,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | name = input()
elder_tickets = int(input())
child_tickets = int(input())
elder_ticket_price = float(input())
fee = float(input())
elder_fin_price = elder_ticket_price + fee
child_fin_price = elder_ticket_price * 0.3 + fee
total = elder_tickets * elder_fin_price + child_tickets * child_fin_price
profit = total * 0.2
... | [
"vbukovska@yahoo.com"
] | vbukovska@yahoo.com |
74707c9d2c81498ed5fdb4c8f86098f7a2885d48 | a31de016611f3b4efc7a576e7113cad1a738419b | /2017/turtle_grafik/101computing.net/turtle_clock.py | 807e976a1aea285185ccdd4507415e444013ccf9 | [] | no_license | Ing-Josef-Klotzner/python | 9d4044d632672fff966b28ab80e1ef77763c78f5 | 3913729d7d6e1b7ac72b46db7b06ca0c58c8a608 | refs/heads/master | 2022-12-09T01:40:52.275592 | 2022-12-01T22:46:43 | 2022-12-01T22:46:43 | 189,040,355 | 0 | 0 | null | 2022-12-01T19:52:37 | 2019-05-28T14:05:16 | Python | UTF-8 | Python | false | false | 2,072 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
"""
Created on Mon Sep 25 23:16:54 2017
@author: josef
"""
import turtle, datetime, time
myPen = turtle.Turtle()
myPen.shape("arrow")
myPen.tracer(0)
myPen.speed(0)
myPen.shapesize(.5,1)
turtle.delay(0)
myPen.... | [
"josef.klotzner@gmail.com"
] | josef.klotzner@gmail.com |
c4b6a3f62693ae3839dab962a54b3148f679bc02 | 21c8e8fee35d736938d22bfd01d4f8aa0f81b79e | /app.py | 14a3dc6627e061c994804fbd9b2d09ae8cab479f | [
"MIT"
] | permissive | betatim/etherbrain | 320d4accdc789325b94feafab18aa6e49cea8564 | 910152032825861248cc300b0388c07112fff5db | refs/heads/master | 2021-01-16T21:22:31.676169 | 2016-02-11T17:32:28 | 2016-02-11T17:32:28 | 51,532,606 | 1 | 0 | null | 2016-02-11T17:33:01 | 2016-02-11T17:33:00 | null | UTF-8 | Python | false | false | 2,028 | py | import os
import requests
from github3 import login
from flask import (
Response,
Flask,
g,
request
)
GH_TOKEN = os.getenv("TOKEN")
FORK_ME = """<a href="https://github.com/etherpad-archive/etherbrain"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.c... | [
"betatim@gmail.com"
] | betatim@gmail.com |
ecc34043983b03b3988be9dcd00276282e219b79 | 41523dd4871e8ed1043d2b3ddf73417fcbdde209 | /day10/第三方模块.py | 160b4dccef65869bcc8a653e7c6817dce1eb9e80 | [] | no_license | WayneChen1994/Python1805 | 2aa1c611f8902b8373b8c9a4e06354c25f8826d6 | a168cd3b7749afc326ec4326db413378fd3677d5 | refs/heads/master | 2020-03-30T23:19:00.773288 | 2018-11-02T10:47:40 | 2018-11-02T10:47:40 | 151,697,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Wayne.Chen
'''
第三方的库都需要安装
第一种:使用pip安装
命令格式:pip install 库名
若发生错误,先更新错误,再切换网络
第二种:使用pycharm进行安装
'''
from PIL import Image
# 打开图片,生成一个image对象
im = Image.open('ppp.jpg')
# 从打开的图片中获取图片信息
# im.format:图片格式信息
# im.size:图片尺寸
print(im.format, im.size)
# 设置图片的尺寸,生成缩略... | [
"waynechen1994@163.com"
] | waynechen1994@163.com |
692ffcf5c4f607be9f55703706c8341c7ac328f9 | 16640092d62417c32677ee2f7c63a913c11de51a | /test.py | ba098b066ee0dc2ba43422cf0389de84cad9cdf9 | [] | no_license | reakain/rob538hw2 | 2cacd5ea0c394d262420093f31c50acd029322ff | 07249df900380353020be57ce8a4eebed904e904 | refs/heads/main | 2022-12-25T17:11:08.513206 | 2020-10-13T03:10:24 | 2020-10-13T03:10:24 | 303,574,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py | # from https://amunategui.github.io/reinforcement-learning/index.html
import numpy as np
import pylab as plt
# map cell to cell, add circular cell to goal point
points_list = [(0,1), (1,5), (5,6), (5,4), (1,2), (2,3), (2,7)]
goal = 7
import networkx as nx
G=nx.Graph()
G.add_edges_from(points_list)
pos = nx.spring_la... | [
"reakain@users.noreply.github.com"
] | reakain@users.noreply.github.com |
f8c13f56bef005c37b573d17ed303454226ba230 | 7136e5242793b620fa12e9bd15bf4d8aeb0bfe7a | /examples/adspygoogle/dfp/v201101/get_lica.py | 121e4466b8d92878321c9c97d2374a5552ef0e28 | [
"Apache-2.0"
] | permissive | hockeyprincess/google-api-dfp-python | 534519695ffd26341204eedda7a8b50648f12ea9 | efa82a8d85cbdc90f030db9d168790c55bd8b12a | refs/heads/master | 2021-01-10T10:01:09.445419 | 2011-04-14T18:25:38 | 2011-04-14T18:25:38 | 52,676,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | #!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138"
] | api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138 |
048ac96b3f749f1c876f5b098fc2d9c763c14bfd | c418bd9d730bc17653611da7f0642bdd25cba65f | /djangosite/myapp/models.py | 24937ec6ecd5ae57cc064366c022229598fdac16 | [] | no_license | ErDeepakSingh/Ajax-State-City | ae18a4f4b8ef8e90932d8aed74553897d7ac9b3b | 72a31424bd9402ef2c76198ee80934ac399fccf9 | refs/heads/master | 2020-08-16T02:29:36.081445 | 2019-10-16T02:51:22 | 2019-10-16T02:51:22 | 215,443,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from django.db import models
# Create your models here.
class Student(models.Model):
name = models.CharField(max_length=25)
email = models.EmailField(unique=True)
joined = models.DateTimeField(auto_now_add=True)
phone = models.CharField(max_length=10, default='')
password = models.CharField(max_l... | [
"deepakthakur755@gmail.com"
] | deepakthakur755@gmail.com |
82dac2f11d268d0f7a2d30e10b1a6ca670013859 | 9c4e02ba5201794a4c5cbff548db1be7c87409c1 | /venv/lib/python3.9/site-packages/pygments/lexers/trafficscript.py | 67ecd243cb3c15db119f07cd6007ebb986f19d42 | [
"MIT",
"Apache-2.0"
] | permissive | ClassWizard/PodLockParser | 4faf4679d404158b3cf2b1ceb4faabca461b0008 | 84f6d3fced521849657d21ae4cb9681f5897b957 | refs/heads/master | 2022-12-23T20:39:48.096729 | 2022-02-08T09:49:01 | 2022-02-08T09:49:01 | 167,668,617 | 2 | 1 | MIT | 2022-12-14T10:01:41 | 2019-01-26T08:50:35 | Python | UTF-8 | Python | false | false | 1,512 | py | """
pygments.lexers.trafficscript
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lexer for RiverBed's TrafficScript (RTS) language.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer
from pygments.token import String... | [
"chenlongwei@camera360.com"
] | chenlongwei@camera360.com |
ff9be30ad7a3fb60856edfe43f45d57c5a03eb04 | b9a2097b1ff526f0f980cb44f321ecdecc071baf | /backend/nwh_elkhart_metrics_26614/urls.py | 8e7b3ab44b091f930ad0b1b58e0f93406437830a | [] | no_license | crowdbotics-apps/nwh-elkhart-metrics-26614 | ce08c984d6c939b7f7cd5158b5c39fe37be94dcc | e86088482281f83fe789ce0b492e76981df1c08c | refs/heads/master | 2023-05-01T08:17:44.464562 | 2021-05-12T18:42:43 | 2021-05-12T18:42:43 | 366,794,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | """nwh_elkhart_metrics_26614 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
94cf66b41704c274309334be3fe3b838b8a69b17 | 304a2c58a1bd0713b876d093a39a21f3fc7bd3d1 | /skimage/morphology/greyreconstruct.py | 9e447800d30f9549466eb9c8f628a5c0124ea194 | [
"BSD-3-Clause"
] | permissive | ludwigschwardt/scikits-image | 72042e548aa9004d94dbb3da518134be28ba0f4b | 571151958f94842c642f0a17b73968757326e672 | refs/heads/master | 2023-09-05T02:28:15.470227 | 2012-08-27T10:16:40 | 2012-08-27T10:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,158 | py | """
This morphological reconstruction routine was adapted from CellProfiler, code
licensed under both GPL and BSD licenses.
Website: http://www.cellprofiler.org
Copyright (c) 2003-2009 Massachusetts Institute of Technology
Copyright (c) 2009-2011 Broad Institute
All rights reserved.
Original author: Lee Kamentsky
"""... | [
"tsyu80@gmail.com"
] | tsyu80@gmail.com |
97baeed7c56a0db84cf7856d975f4a404250a4bf | f321c54e5745a21e41842c1cdccaefa5256d918c | /magnetos/utils/string_utils.py | e285d77142c2a32673e542aecca927e326123fca | [
"MIT"
] | permissive | gitshaozhong/magnetos | 5104f90782ac03a2b0b5c86b7333d72b1c27338c | f48dcd7450a46d619dcbe64c11c9aa1c119cd307 | refs/heads/master | 2022-01-05T10:06:04.193597 | 2019-07-12T00:54:05 | 2019-07-12T00:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # -*- coding: utf-8 -*-
# Created by restran on 2017/9/26
from __future__ import unicode_literals, absolute_import
def fixed_length_split(data, width):
"""
固定长度分割字符串
:param data:
:param width:
:return:
"""
# 使用正则的方法
# import re
# split = re.findall(r'.{%s}' % width, string)
ret... | [
"grestran@gmail.com"
] | grestran@gmail.com |
1b5ec767df5eb39a49ccdf40dca40eea62760f90 | 0fa82ccc0b93944c4cbb8255834b019cf16d128d | /2020/TopNBuzzWords.py | ace88f6781b44057f221aa1f992be9d1b7504886 | [] | no_license | Akashdeepsingh1/project | 6ad477088a3cae2d7eea818a7bd50a2495ce3ba8 | bdebc6271b39d7260f6ab5bca37ab4036400258f | refs/heads/master | 2022-12-13T23:09:35.782820 | 2020-08-27T14:22:37 | 2020-08-27T14:22:37 | 279,722,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | '''
You work on a team whose job is to understand the most sought after toys for the holiday season. A teammate of yours has built a webcrawler that extracts a list of quotes about toys from different articles. You need to take these quotes and identify which toys are mentioned most frequently. Write an algorithm that ... | [
"Akashdeep_S@Dell.com"
] | Akashdeep_S@Dell.com |
631d16757e7af9733f9944dc7b6eabb43ed2f47e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02691/s319336614.py | 171ddfd157899a75a6f611fe7687282c54e7f3f4 | [] | 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 | 519 | py | import sys
from functools import lru_cache
from collections import defaultdict
inf = float('inf')
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**6)
def input(): return sys.stdin.readline().rstrip()
def read():
return int(readline())
def reads():
return map(int,... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
49ac678e7399622d7dbfa5d8fa346354eeae6c27 | c73fc798764f40ea6fa466a573fb01223e367ce3 | /sorting_algo/bubble_sort13_08_3.py | ec228d9d7c593673db252adc5d40e3d6bc431de2 | [] | no_license | mohitsh/python_work | b1385f62104aa6b932f5452ca5c2421526345455 | 223a802dea5cdb73f44a159856c7432983655668 | refs/heads/master | 2020-04-24T00:34:15.427060 | 2018-08-21T19:12:07 | 2018-08-21T19:12:07 | 37,491,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py |
def bubble_sort(alist):
for passnum in range(len(alist)-1,0,-1):
for i in range(passnum):
if alist[i] > alist[i+1]:
temp = alist[i]
alist[i] = alist[i+1]
alist[i+1] = temp
return alist
alist = [9,8,7,6,5,4,3,2,1,0]
print alist
print bubble_sort(alist)
| [
"mohitsh114@gmail.com"
] | mohitsh114@gmail.com |
5fe4808fdc7b9720b6dae56130107ff7859b3d6b | 6ceea2578be0cbc1543be3649d0ad01dd55072aa | /src/fipy/solvers/trilinos/preconditioners/jacobiPreconditioner.py | 3e0dbb4faff0fe48dc559db8e9f7fb07afb4f0e3 | [
"LicenseRef-scancode-public-domain"
] | permissive | regmi/fipy | 57972add2cc8e6c04fda09ff2faca9a2c45ad19d | eb4aacf5a8e35cdb0e41beb0d79a93e7c8aacbad | refs/heads/master | 2020-04-27T13:51:45.095692 | 2010-04-09T07:32:42 | 2010-04-09T07:32:42 | 602,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | #!/usr/bin/env python
##
# -*-Pyth-*-
# ###################################################################
# FiPy - Python-based finite volume PDE solver
#
# FILE: "jacobiPreconditioner.py"
#
# Author: Jonathan Guyer <guyer@nist.gov>
# Author: Daniel Wheeler <daniel.wheeler@nist.gov>
# Author: James W... | [
"regmisk@gmail.com"
] | regmisk@gmail.com |
2ef23df228ff2888553798a422f860c67c12f531 | 9b4de05054f37a65dce49857fb6a809a370b23ca | /gd/migrations/0015_auto_20171223_1531.py | 689f60c8c2b35e98aa6e6472d8595be6fc32c8c3 | [] | no_license | susahe/gis | f6b03b8f23abf7ca22c0069a4cdf603bfe879808 | 6b8d433cd5f672994ac138c1b656136425d0c345 | refs/heads/master | 2021-05-12T01:50:12.862559 | 2018-01-27T02:25:31 | 2018-01-27T02:25:31 | 117,569,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | # Generated by Django 2.0 on 2017-12-23 15:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gd', '0014_auto_20171222_2045'),
]
operations = [
migrations.AlterField(
model_name='person',
name='p_birthdate',
... | [
"sumudu.susahe@gmail.com"
] | sumudu.susahe@gmail.com |
16510b4dbee33035e4fd00ce92137fff7639b46b | 9c74814f9bf90529d5ccd7a1dcebe062235ca67c | /third_party/saltedge/test/test_oauth_reconnect_request_body.py | 1c76997806170372a731a2fa2c93794dbc1cbd38 | [
"MIT"
] | permissive | ltowarek/budget-supervisor | 63196fe7cef78f0f54a25891d65870745cc7cf49 | 618e01e15a7a76ed870dafccda399720a02b068b | refs/heads/master | 2021-12-15T06:41:37.531689 | 2021-11-08T19:51:58 | 2021-11-08T19:53:03 | 26,971,315 | 1 | 0 | MIT | 2021-07-04T10:56:24 | 2014-11-21T17:56:36 | Python | UTF-8 | Python | false | false | 1,000 | py | # coding: utf-8
"""
Salt Edge Account Information API
API Reference for services # noqa: E501
OpenAPI spec version: 5.0.0
Contact: support@saltedge.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_cl... | [
"lukasz.towarek@gmail.com"
] | lukasz.towarek@gmail.com |
2439b6370f69f389a08685af7bde72b0f33ded1f | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/ac7e62ec08d10df30b76ffd035b8d449a1a097d9-<target_login>-bug.py | 51ff00075ca0161b03de61784815c1b6a53ae43d | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | def target_login(module, target):
node_auth = module.params['node_auth']
node_user = module.params['node_user']
node_pass = module.params['node_pass']
if node_user:
params = [('node.session.auth.authmethod', node_auth), ('node.session.auth.username', node_user), ('node.session.auth.password', no... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c2a810bd301d8844f561beed00989c879eb6d363 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02787/s385554448.py | eb0de844cf83ff51298317f61169298255d1ec6e | [] | 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 | 310 | py | H,N = map(int,input().split())
inf = 1000000000
dp = [inf for _ in range(20001)]
magics = []
dp[0] = 0
for i in range(N):
magic = list(map(int,input().split()))
magics.append(magic)
for j in range(10001):
for k in magics:
dp[j+k[0]] = min(dp[j]+k[1],dp[j+k[0]])
ans = dp[H:]
print(min(ans)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
980d5b518857f99a7f02371be9dd4c0741d704b7 | e53b7bbcea1a6f06175a9f14e31d5725fe80e804 | /Question_100/Q11_MeanFilter.py | a8d91f259b3b5bae65693816b60b3a60b2e928ac | [] | no_license | Zpadger/ObjectDetection | 5777c8d78c71dca1af6bccf25b01288dca7100c3 | aa0193a38f3d5c3a318501c3a59e89b73d3e244b | refs/heads/master | 2020-08-16T02:58:45.412713 | 2019-12-14T08:18:51 | 2019-12-14T08:18:51 | 215,446,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #均值滤波
import cv2
import numpy as np
#read image
img=cv2.imread("imori.jpg")
h,w,c=img.shape
#mean filter
K_size=3
#zero padding
pad=K_size//2
out=np.zeros((h+pad*2,w+pad*2,c),dtype=np.float)
out[pad:pad+h,pad:pad+w]=img.copy().astype(np.float)
tmp=out.copy()
for y in range(h):
for x in range(w):
for c... | [
"noreply@github.com"
] | Zpadger.noreply@github.com |
9534e203e71c3a4144e688ecb9c1a247d5e1c057 | f7d28900c8b49748d7b31f3b8dd384042f07fb36 | /misc/glp_stats/collect_glyph_stats.py | 3fd8c44a1fbb977f719fa9b026e673da5d53f1e9 | [] | no_license | TeluguOCR/datagen_initio | 0f2f4823a08bca24a1012fbd0508cdf12ed01dc1 | f405e91f66c770efa6ae94a71430fcec6bae449f | refs/heads/master | 2021-01-10T15:12:45.431308 | 2015-12-06T00:24:02 | 2015-12-06T00:24:02 | 47,477,987 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,080 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
from PIL import Image
import sys, os, re
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <Directory>/ \n'
'This Program finds the stats of images of each glyph class'
'Directory is location of the directories containing image files for each glyph'... | [
"rakeshvar@gmail.com"
] | rakeshvar@gmail.com |
0ffce78daacdd1e2459e140c917feb0bfcac0095 | bd71b063f13958e07c9e16cd171d3fc0e1c58e4d | /0x0F-python-object_relational_mapping/11-model_state_insert.py | 293b9e47a1719bc9fa3f2594d981cfa01588d16b | [] | no_license | feliciahsieh/holbertonschool-higher_level_programming | 2aecd291f85fe69ab11331bb2d5372c6d67e1af6 | 017e8b87f9d8967b55ccc68ed30921572d4ddb65 | refs/heads/master | 2021-01-01T20:46:36.901665 | 2019-04-10T18:24:59 | 2019-04-10T18:24:59 | 98,931,138 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | #!/usr/bin/python3
"""
Add the State object Louisiana to database hbtn_0e_6_usa
"""
import sys
from model_state import Base, State
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
if __nam... | [
"felicia@tixwriteoff.com"
] | felicia@tixwriteoff.com |
a1df8dd1d107a12098b59d231076994ca9958a2d | 16807220b95bf9a559b97ec0de16665ff31823cb | /lcd/screens/exitscreen.py | 52556eede378c20732b65cfc92504200ed9657d1 | [
"BSD-3-Clause"
] | permissive | cuauv/software | 7263df296e01710cb414d340d8807d773c3d8e23 | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | refs/heads/master | 2021-12-22T07:54:02.002091 | 2021-11-18T01:26:12 | 2021-11-18T02:37:55 | 46,245,987 | 76 | 34 | null | 2016-08-03T05:31:00 | 2015-11-16T02:02:36 | C++ | UTF-8 | Python | false | false | 506 | py | import cairo
from screen import Screen
class ExitScreen(Screen):
def get_name(self):
return "exit"
def draw(self, cr):
cr.set_source_rgb(1.0, 0, 0)
cr.select_font_face("FreeSans", cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_NORMAL)
cr.set_font_size(150)
cr.move_to(10, 1... | [
"leader@cuauv.org"
] | leader@cuauv.org |
32661b4325599ee456d1c452634fb18c9f48db6e | 62a5beed83b968fb5b2082a453744bb0fe79f3f2 | /ch04/negative_sampling_layer.py | 4bef31b3c270418dcf048aabbbadfc7483bdc585 | [] | no_license | show2214/deep-learning-from-scratch-2 | 05c8515f7c00947387661a05005f2fd00cb0543b | 2deb28e68d6e0281aebf2df03c619299591d0660 | refs/heads/master | 2023-08-09T12:40:26.877054 | 2021-09-15T04:43:42 | 2021-09-15T04:43:42 | 403,802,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | import sys
sys.path.append('..')
from common.np import * # import numpy as np
from common.layers import Embedding, SigmoidWithLoss
import collections
class EmbeddingDot:
def __init__(self, W):
self.embed = Embedding(W)
self.params = self.embed.params
self.grads = self.embed.grads
s... | [
"show2214@icloud.com"
] | show2214@icloud.com |
6cf60993a32a3c90768425762696112fcbe27ec0 | 95b8130d908c79f8192c6813fee6220ccb05c5c3 | /tests/test_stumped.py | c4744d728110eaecf1b9f334aa45e69bec1187bc | [
"BSD-3-Clause"
] | permissive | canslove/stumpy | 4ac96d44eeef24f8e2add3dd0bab0788cb117d32 | 2c1a9ace0d7241435d1e5c6578e7dca45e541108 | refs/heads/master | 2020-06-01T06:16:22.238904 | 2019-06-06T18:50:22 | 2019-06-06T18:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,692 | py | import numpy as np
import numpy.testing as npt
import pandas as pd
from stumpy import stumped, core
from dask.distributed import Client, LocalCluster
import pytest
import warnings
@pytest.fixture(scope="module")
def dask_client():
cluster = LocalCluster(n_workers=None, threads_per_worker=2)
client = Client(cl... | [
"seanmylaw@gmail.com"
] | seanmylaw@gmail.com |
78fb6dfd977597e0296dba31f5b7f924af76d0ee | 32997e6a8607358765254ea81d2f867269ae2b35 | /09-problems/ed_002_max_cpu_load.py | d7ce673b607b109f2ba41cecf865ebb19e7f70fa | [
"MIT"
] | permissive | aman-singh7/training.computerscience.algorithms-datastructures | 0ace578ebcec13c5293b4d4dccdaa7634788604d | a4e1d1973b091589690fd2efc5dcb3c1a4df6c4c | refs/heads/master | 2023-06-09T12:27:55.569254 | 2021-06-29T20:16:37 | 2021-06-29T20:16:37 | 401,133,325 | 1 | 0 | MIT | 2021-08-29T20:12:50 | 2021-08-29T20:12:49 | null | UTF-8 | Python | false | false | 2,706 | py | """
1. Problem Summary / Clarifications / TDD:
[[1,4,3], [2,5,4], [7,9,6]]: 7
[[6,7,10], [2,4,11], [8,12,15]]: 15
[[1,4,2], [2,4,1], [3,6,5]]: 8
Output: 8
2. Intuition:
1. Store store current end time and current load
2. Compute current load: current load + curr_j... | [
"mamid1706@hotmail.fr"
] | mamid1706@hotmail.fr |
19eeeb6f65f752d9650f12b7db8cbd7fd4e52021 | 0fac73e70eeb8e3b8635de8a4eaba1197cd42641 | /shop/migrations/0009_auto_20161218_1423.py | 6c991c55ff7db73b3fcce1e6b9e86531343964e6 | [] | no_license | gauraviit1/myshop_aws | 0e6c9d822cbbc6505eb7c7a71654d34591e7b168 | 261b296d79cfdf8fa4cb9105b4e2fe70e864f6a6 | refs/heads/master | 2021-01-19T13:44:12.977253 | 2017-03-03T07:52:58 | 2017-03-03T07:52:58 | 82,444,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-12-18 08:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0008_auto_20161218_1418'),
]
operations = [
migrations.AlterField(
... | [
"mcjail.shi.hp@gmail.com"
] | mcjail.shi.hp@gmail.com |
cf7a6073c70b6641ce1642c80b71357c98691c98 | 441f0b4b4f2016ace7bed37431779b3352b9c2e4 | /YouTube Ignorancia Zero/Ferramentas de Sistema/105 - Ferramentas de Sistema I: Básico módulo sys/105.py | 00f7f36c467e269506283635dc65f9c6e2a2bbff | [] | no_license | AlexGalhardo/Learning-Python | 936b2eae814d148b0b3b77cc76cf81b45fbb4a02 | b710952101a0409f585ba975e2854bf0e0286ac7 | refs/heads/master | 2020-05-19T23:32:49.285710 | 2019-09-04T17:37:27 | 2019-09-04T17:37:27 | 134,312,273 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py |
##### Modulo sys #####
"""
platform = devolve a plataforma de execução
path = lista com todas as pastas ligadas ao programa
exit([args]) = termina a execução de um programa
modules = todos os módulos carregados
exc_info = tupla que contem a ultima excessão levantada
"""
import sys
#if 'win' in sys.platform:
# impo... | [
"aleexgvieira@gmail.com"
] | aleexgvieira@gmail.com |
85c31e40b493df1d537fa5c1d68f81571561acf1 | 6cc35793f2bac664d2ab9273911b37a256933418 | /Aula18/1.py | 8a83b57ae03116a3b36484bd55697b3268cfeffc | [] | no_license | MarcianoPazinatto/TrabalhosdePython | a6d8384b3586d5619654a70c73a978ce9def9b8a | 74ccf0541de426ad795700234643218953d7b0a0 | refs/heads/master | 2020-09-05T21:28:13.264266 | 2020-03-10T13:40:48 | 2020-03-10T13:40:48 | 220,218,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,749 | py | # Aula 18 - 03-11-2019
# Exercicios para lista simples
# Dada a seguinte lista, resolva os seguintes questões:
lista = [10, 20, 'amor', 'abacaxi', 80, 'Abioluz', 'Cachorro grande é de arrasar']
print('1: Usando a indexação, escreva na tela a palavra abacaxi')
print(lista[3])
#######################################... | [
"marciano.et@hotmail.com"
] | marciano.et@hotmail.com |
3873bba1c404a7e7984c0597b55e018dc11f41f4 | 0bb8e1d97434d079d02f2645b54a4489bee91264 | /openpyxl2/drawing/tests/test_properties.py | 4823cbedbad3cc0ed424805f97df27bcf1649e43 | [
"MIT"
] | permissive | j5int/openpyxl2 | 1313dba978179161acfc005e147ed7eed34c249a | 3c82567c33d6cad5b0b26eea97da7bb39ba7f4c8 | refs/heads/master | 2020-04-05T12:50:02.977837 | 2018-11-09T11:55:31 | 2018-11-09T11:55:31 | 156,882,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,858 | py | from __future__ import absolute_import
# Copyright (c) 2010-2018 openpyxl
import pytest
from openpyxl2.xml.functions import fromstring, tostring
from openpyxl2.tests.helper import compare_xml
@pytest.fixture
def NonVisualDrawingProps():
from ..properties import NonVisualDrawingProps
return NonVisualDrawingP... | [
"charlie.clark@clark-consulting.eu"
] | charlie.clark@clark-consulting.eu |
3c913a3354033d6adee53f32448dc623a7fb194f | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Es985FEDzEQ2tkM75_17.py | e8efaf329556cd3f9c55aca68288ccd6ac325fca | [] | 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 | 161 | py |
def caesar_cipher(txt, key):
return ''.join(chr(65+(ord(c)-65+key)%26) if c.isupper() else\
chr(97+(ord(c)-97+key)%26) if c.islower() else c for c in txt)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2fd9398df9b19b15aae4de2492f5fc6f7afa17cd | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/1478.py | 364c4fc8e1d4c920705b9f693c1fbc451d1e49f2 | [] | 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 | 412 | py | t = int (input() )
for i in range(t):
d,n = map(int,input().split() )
horse=[]
for j in range(n):
temp1,temp2= map(int,input().split() )
horse.append([temp1,temp2])
ans=0
for j in range(n):
need = (d-horse[j][0])/horse[j][1]
if(need > ans):
an... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8531d5d6b9c1ce71600a47c0591f26494c47860b | e22c17c4f6b83a48a5bbe75bc35ad2132d93ebce | /opl/migrations/0008_auto_20200305_1559.py | 42b9942ce85a1c8cd5a98bd086312d86a9ec9375 | [] | no_license | MATT143/Snippets | f568b4117f2fe097ea5611e0bab764c4e13bb724 | 17a816b926a3ec5e9658739801d6bf3095b0128a | refs/heads/master | 2022-04-23T01:40:50.447026 | 2020-04-18T04:09:25 | 2020-04-18T04:09:25 | 256,666,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # Generated by Django 2.2.11 on 2020-03-05 10:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('opl', '0007_auto_20200305_1302'),
]
operations = [
migrations.AddField(
model_name='oplorderdetails',
name='subscri... | [
"mnahak@cisco.com"
] | mnahak@cisco.com |
6415c261c52b6628e5b7cacc8a70924cc04f753a | 53ed8b8d650439ba9aac764f5de5d96b67cbd77a | /867. Transpose Matrix.py | b2f1e40fd1c10e63a14c2f6c0f60df89da6dad8c | [] | no_license | IrwinLai/LeetCode | df49d152b4bf439c966afa53eecfe3022fb043ae | 779c3a98d9052a12d319c0219324e5d0f5517fc6 | refs/heads/master | 2021-07-03T08:02:55.425285 | 2021-03-21T11:19:46 | 2021-03-21T11:19:46 | 221,848,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | class Solution:
def transpose(self, A: List[List[int]]) -> List[List[int]]:
ret = [[] for i in range(len(A[0]))]
for r in range(len(A)):
for c in range(len(A[0])):
ret[c].append(A[r][c])
return ret | [
"noreply@github.com"
] | IrwinLai.noreply@github.com |
294df0914a41007122338f4e5fa1725bdd8373de | ed257bb11c2916f8e849a753911f9cf866687774 | /code/experiment_001.py | a5b859e304fa0846047472a516150bb217036621 | [
"MIT"
] | permissive | forero/BetaSkeleton | 737000f5f0a132a0040b5184c90a803490cbcdd9 | 9714f11904bb9c990285815bd29303c08d6aafac | refs/heads/master | 2020-04-06T03:57:08.299294 | 2014-07-31T20:39:14 | 2014-07-31T20:39:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | from subprocess import call
total_mocks = 27
base_mass = [1.0E13]
base_f_in = [1.0]
rsd_options = [1,0]
beta_values = [1,2,5,10,20,30]
min_theta=90.0
max_theta=180.0
min_phi=[0.0,89.0]
max_phi=[1.0,90.0]
min_r=0.0
max_r=2000.0
omega_m_values = [0.30]
w_values = [-1.0]
for i_mock in range(total_mocks):
for rsd in... | [
"j.e.forero.romero@gmail.com"
] | j.e.forero.romero@gmail.com |
4dde39c66097431c01d8dbfe496e121fd7f4e9b6 | a1b42a61f2f179ee0a12746d9526253ab3a407c8 | /data/boada/analysis_all/MLmethods/calc_errors_ML.py | d3e84a3acc0ac2df776c97a138a636a2b70de5ae | [
"MIT"
] | permissive | sazabi4/vpCluster | 1436c3df8d6721d67ef7dcc68c381b2bd776c45b | d0bf5e209c83b3d7781997066d61181fe60bf3af | refs/heads/master | 2021-01-16T21:27:29.776100 | 2016-04-26T20:36:21 | 2016-04-26T20:36:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | import numpy as np
import h5py as hdf
from scipy import stats
def error(true, pred, mu):
''' Unused, but kept to see how I did it when I wasn't using the Scipy
functions. Calculates the error on the mean.
'''
print true.size,
if true.size > 1:
var = np.sum((pred - true - mu)**2) /(true.siz... | [
"stevenboada@gmail.com"
] | stevenboada@gmail.com |
3ff28d2310a0f022eadd873154775534e6ed3f7d | 4936c1d20aef7a93ad2ded2f5731b102631ad8b2 | /Tablas/tablas/Ruido20/maxVotos/EF/menu_1.py | bbbc4a429fa3ea9ad1f3048aeb9cae99d255b9a6 | [
"LicenseRef-scancode-other-permissive"
] | permissive | jcarlosorte/pyMIL-BNF | 530f60081607deecfee7c72264000c0ba34984fe | 36e282e35242815bf57310db98707da70d69b183 | refs/heads/master | 2022-11-12T20:58:49.058513 | 2020-07-06T15:35:01 | 2020-07-06T15:35:01 | 182,646,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 10 10:11:00 2019
@author: Usuario
"""
import sys,os,warnings
os.chdir('../../../../MILpy')
sys.path.append(os.path.realpath('..'))
warnings.filterwarnings('ignore')
#from funciones import fvc
from filters import EF
from filters import CVCF
from filters import IPF
folds... | [
"jcarlosorte@ugr.es"
] | jcarlosorte@ugr.es |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.