blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
746cd2a1f61ed05f5602945dce3850c3f41e5e4a | f0b741f24ccf8bfe9bd1950425d83b6291d21b10 | /components/google-cloud/google_cloud_pipeline_components/v1/dataproc/__init__.py | c23660af80759e169b3e288ffbefe38ceaaff513 | [
"Apache-2.0"
] | permissive | kubeflow/pipelines | e678342b8a325559dec0a6e1e484c525fdcc8ce8 | 3fb199658f68e7debf4906d9ce32a9a307e39243 | refs/heads/master | 2023-09-04T11:54:56.449867 | 2023-09-01T19:07:33 | 2023-09-01T19:12:27 | 133,100,880 | 3,434 | 1,675 | Apache-2.0 | 2023-09-14T20:19:06 | 2018-05-12T00:31:47 | Python | UTF-8 | Python | false | false | 1,424 | py | # Copyright 2023 The Kubeflow 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 applicabl... | [
"nobody@google.com"
] | nobody@google.com |
2c593f0c394889b99375a489bc508ced79208a18 | f56e4bb2d3a91b068292d698388ac5e82a40f078 | /inkshop/apps/utils/backends.py | cda1f8bb15efed905ac26e68ae9fc2365ccc9452 | [] | no_license | inkandfeet/inkshop | 979064eb902c86dc95a6399e79ac753efbe547d1 | 691187b3eb4435782f8054e6404f1203e7d0c383 | refs/heads/master | 2022-12-13T01:26:02.361970 | 2021-11-18T23:01:50 | 2021-11-18T23:01:50 | 175,481,726 | 1 | 1 | null | 2022-12-08T04:59:16 | 2019-03-13T18:59:17 | Python | UTF-8 | Python | false | false | 957 | py | from django import forms
from clubhouse.models import StaffMember
from people.models import Person
from utils.encryption import lookup_hash, encrypt, decrypt, create_unique_hashid
class EncryptedEmailBackend(object):
def authenticate(self, request, username=None, password=None):
try:
try:
... | [
"steven@quantumimagery.com"
] | steven@quantumimagery.com |
409269bf410dd87f111fadf453c8172aae0618ac | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/peewee/test.py | ba9b8ff8eecd577b954ce29252989a847b2bcfe9 | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | import peewee
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
bb79daf3dda133c0387011855c40ce27cc0bc132 | 97e557d328b89adbd1459f8988a12ec3a9f4adc7 | /ns1/datadog_checks/ns1/__init__.py | e6ee0076e28c1760bc143ed9385daa9cad5827cf | [] | permissive | DataDog/integrations-extras | 1b9c9928af4e5a146b9611aed29db206f420710c | 1d20f8d945ef802fa6e01b41b6ba99148ac508a4 | refs/heads/master | 2023-08-31T04:01:33.555722 | 2023-08-30T18:51:09 | 2023-08-30T18:51:09 | 51,574,196 | 221 | 667 | BSD-3-Clause | 2023-09-14T16:07:56 | 2016-02-12T07:55:28 | Python | UTF-8 | Python | false | false | 102 | py | from .__about__ import __version__
from .check import Ns1Check
__all__ = ['__version__', 'Ns1Check']
| [
"noreply@github.com"
] | DataDog.noreply@github.com |
f78ba8a25ebbd41be29ce2d6501d489551150f9a | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/vns/absfuncprof.py | bde147c5e65f17edfa4d8e6747546184254ddc72 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 16,992 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
dc12fddc12f7b8c7565e0765a8b65e59f29aae67 | 6e57aed6e283e155a7db4c55edd9c07d5640af40 | /astetik/plots/overlap.py | 57ca0a188eb84fe9e149bca87586e52dbe9fa17d | [
"MIT"
] | permissive | meirm/astetik | 78c3c52e7f4a0fd2521fe1b123dfff30bae46a99 | ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7 | refs/heads/master | 2022-12-12T06:18:36.229953 | 2020-08-30T15:31:43 | 2020-08-30T15:31:43 | 291,494,532 | 0 | 0 | MIT | 2020-08-30T15:13:00 | 2020-08-30T15:12:59 | null | UTF-8 | Python | false | false | 5,049 | py | import seaborn as sns
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from ..style.titles import _titles
from ..style.template import _header
from ..utils.transform import _groupby
from ..style.formats import _thousand_sep
def overlap(data,
x,
y,
label_col,
... | [
"mailme@mikkokotila.com"
] | mailme@mikkokotila.com |
ecf40465f4b1dd775d2299c8d1727e0608e88d53 | 7d7192d2880d02a825d8d2aedadbabaecc688fc6 | /lidar/slicing.py | ea1f26de0103465d6d1ba57b5c27d96a3a457c98 | [
"MIT"
] | permissive | omarseleem92/lidar | 712276c6e14f3fa47e38538772cbc79b69d141e5 | 949de689d80d3f20197b43263b252101561a6b85 | refs/heads/master | 2023-03-16T08:44:37.595772 | 2021-03-09T18:58:31 | 2021-03-09T18:58:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,048 | py | """Module for the level-set algorithm.
"""
import os
import math
import time
import shutil
import numpy as np
import richdem as rd
from scipy import ndimage
from skimage import measure
from osgeo import gdal, ogr, osr
class Depression:
"""The class for storing depression info.
"""
def __init__(self... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
c07ce663afb1257e042f97cbbb71ec660097c870 | d85d2cc40f074ab22905f23279aca4e6ebcd017c | /service/reduction_service.py | dcf1c1e234a9a6ab258f8e271df7a93a3385a6b6 | [] | no_license | bprajwal1/ML3-UnsupervisedLearning | c870bc6fce73701f9eee282b0cbc41ee312948ab | f2421395425836e4f8f4f2f9c25b100b3e352b80 | refs/heads/master | 2020-04-30T14:45:16.509608 | 2019-01-19T22:03:31 | 2019-01-19T22:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | from sklearn.decomposition import PCA, FastICA
from sklearn.random_projection import GaussianRandomProjection
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
def reduce_train_test_split(reduction_algo, feature_data_train, feature_data_text, labels_train, n_components):
reduction_model = buil... | [
"boyko11@gmail.com"
] | boyko11@gmail.com |
27fbafb603bc55974240015ac7068d73f3830b7a | 67b7e6d2c08f08403ec086c510622be48b8d26d8 | /src/test/tinc/tincrepo/mpp/gpdb/tests/queries/basic/cursors/test_cursors.py | 09b0d6eeda1c7838486e2d6139bbe7739c73c3b8 | [
"Apache-2.0",
"PostgreSQL",
"LicenseRef-scancode-rsa-md4",
"OLDAP-2.8",
"HPND-sell-variant",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"Zlib",
"LicenseRef-scancode-zeusbench",
"LicenseRef-scancode-mit-modification-obligations",
"OpenSSL",
"MIT",
"LicenseRef-scancode-other-copyleft",
"bzip2-1.0.6"... | permissive | sshyran/gpdb | 41012411d22b0294204dfb0fe67a1f4c8d1ecaf6 | 2d065ecdd2b5535cb42474f17a0ee6592b4e6837 | refs/heads/master | 2023-04-09T14:05:44.030212 | 2016-11-12T08:33:33 | 2016-11-12T08:34:36 | 73,544,159 | 0 | 0 | Apache-2.0 | 2023-04-04T00:30:10 | 2016-11-12T09:43:54 | PLpgSQL | UTF-8 | Python | false | false | 2,317 | py | """
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | [
"jyih@pivotal.io"
] | jyih@pivotal.io |
59df7855ec70d08af143048e1aa1bc8e7972e619 | 7d17161a77ad04ea1de1dabe84619b6c4fffe2ad | /test/python/quantum_info/operators/symplectic/test_pauli.py | b72fe2940ca8dc1c8b982824b76331a9a87df754 | [
"Apache-2.0"
] | permissive | annos-IBM/qiskit-terra | 5e3b93a089a6e00c9279bf82735d78b497e92023 | 78ece7ad9baba64395eea98c45fb83a30b04c835 | refs/heads/main | 2023-05-28T20:42:19.805833 | 2021-06-09T03:47:48 | 2021-06-09T03:47:48 | 375,329,407 | 1 | 0 | Apache-2.0 | 2021-06-09T11:22:14 | 2021-06-09T11:22:14 | null | UTF-8 | Python | false | false | 13,070 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | annos-IBM.noreply@github.com |
db2dec30007a56b958be5df14fc31cc43222bbf3 | dd4d1a61ec680a86d4b569490bf2a898ea0d7557 | /appengine/monorail/features/test/hotlistpeople_test.py | 151b295e2793391ae4ef114afc1b6c089e7a89f2 | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-infra | f1a68914b47bcbe3cd8a424f43741dd74fedddf4 | 09064105713603f7bf75c772e8354800a1bfa256 | refs/heads/master | 2022-10-29T23:21:46.894543 | 2017-05-16T06:22:50 | 2017-05-16T06:22:50 | 91,423,078 | 1 | 1 | BSD-3-Clause | 2022-10-01T18:48:03 | 2017-05-16T06:23:34 | Python | UTF-8 | Python | false | false | 8,978 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is govered by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""Unittest for Hotlist People servlet."""
import mox
import unittest
import logging
from thir... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
d31c776481fd364a69f142b802d07b602b554709 | 6a77b42871d1996b9037e3be4fea31436315c8ab | /ex010.py | 3b6f1fbb97495408980a0eb09e2484890909cee1 | [] | no_license | RaphaelMolina/Curso_em_video_Python3 | 4e1e299681695db69a0439107b32ae90cdea32f5 | f22100865d7137bc420b677f118c848d963ee90a | refs/heads/master | 2022-01-10T09:48:25.777665 | 2022-01-06T16:23:52 | 2022-01-06T16:23:52 | 244,028,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | limpar = str('\033[m')
texto = {'vermelho': '\033[31m',
'roxo': '\033[35m',
'verde2': '\033[36m'}
e = str('{} Exercício 10 {}'.format(texto['vermelho'], texto['verde2']))
print('{}{:=^30}{}\n'.format(texto['verde2'], e, limpar))
real = float(input('{}Informe o valor que você tem: R${}'.format(texto... | [
"manson1307@gmail.com"
] | manson1307@gmail.com |
595c56fcc014bb1788d24e282c081e6312b22474 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/e75506567100fd23fb9cfac67ee2e5a327bd5106svnsync.py | e75506567100fd23fb9cfac67ee2e5a327bd5106 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 759 | py | from django.core import management
from django.utils.translation import ugettext as _
from cobra.core.loading import get_model
Repository = get_model('svnkit', 'Repository')
class Command(management.BaseCommand):
help = _('Get repository changes')
args = _('<repository repository ...>')
def handle(... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
15f042bfdb833b3208d5ce43dd07ced63845ca7d | e2df44c68460fb29084ba0ed6f3266d8802f6cb1 | /catkin_ws/build/sweep-ros/catkin_generated/pkg.installspace.context.pc.py | 3a4d51f308fd00dd98a43315afe661999fdaabaf | [] | no_license | harshilpatel312/TSRT10 | 879bfcbb882d6bc32111f3145f3637c1df8e2b55 | be8d3a90c75a6655fb82392a43c75135686a7eb8 | refs/heads/master | 2020-03-22T15:03:35.347270 | 2017-12-14T08:22:26 | 2017-12-14T08:22:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "sweep_ros"
PROJECT_SPACE_D... | [
"fregu856@student.liu.se"
] | fregu856@student.liu.se |
e0a1077fbd17413ed11b60a19920e236e5011c79 | b63142e8540cb30bb0c663332e29a4112721073e | /991_bulb_switcher.py | b0edfd386263155bb770ccc464f73ea73b088d90 | [] | no_license | HaydenInEdinburgh/LintCode | 025bb2f0d75686097061de324c0fd292536dbb14 | dbeae2bf631e57667d1415164d452d5ca2df7447 | refs/heads/master | 2023-08-18T19:52:54.561623 | 2021-10-06T21:46:50 | 2021-10-06T21:46:50 | 370,733,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | import math
class Solution:
"""
@param n: a Integer
@return: how many bulbs are on after n rounds
"""
def bulbSwitch(self, n):
# Write your code here
return int(math.sqrt(n)) | [
"bony960323@gmail.com"
] | bony960323@gmail.com |
26e22b6839aef35f5e82a48054dc5008d70a29de | 82a63effc9886c749b349bb0672238dc4a68e66d | /2019/007_Pixel_3a_low_level_checker/blog_img/blog_sample.py | f051aede8dc403684662dc5bc6450cd5aad8e342 | [
"BSD-3-Clause"
] | permissive | toru-ver4/sample_code | 6250f4bf7b437b7ee394cbc198d48fd2de209c3f | 58e9925af645e110e4a4a306001ba73599d0b192 | refs/heads/develop | 2023-07-22T00:52:48.568631 | 2023-07-15T07:03:00 | 2023-07-15T07:03:00 | 201,731,599 | 32 | 4 | BSD-3-Clause | 2023-09-10T14:46:41 | 2019-08-11T07:19:29 | Python | UTF-8 | Python | false | false | 1,453 | py | import numpy as np
from colour import xyY_to_XYZ, XYZ_to_RGB, RGB_to_XYZ, XYZ_to_xyY
from colour.models import BT709_COLOURSPACE
# BT.709色域外の xyY データ。Y は Green の Primariy に合わせた。
xyY_bt2020 = np.array([[0.26666249, 0.47998497, 0.67799807],
[0.25055208, 0.5328208, 0.67799807],
... | [
"toru.ver.11@gmail.com"
] | toru.ver.11@gmail.com |
c15e6f6228c343e9f14a01e55ca845ac24416893 | c30ea40903626c46d0ffdbd18fa29caf15b60633 | /setup.py | b11b9328ca3779182467af8051f79b2e085f5cb8 | [
"MIT"
] | permissive | zcutlip/WithTimer | d5c36d3e25d0abd0002ed23cc26cd060b42690e5 | f35e0c20656d782ceb03b0839f24c58441a2d4f2 | refs/heads/master | 2020-06-26T17:16:07.998239 | 2019-10-02T23:04:53 | 2019-10-02T23:04:53 | 199,696,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | from __future__ import absolute_import
from setuptools import setup
about = {}
with open("withtimer/__about__.py") as fp:
exec(fp.read(), about)
with open("README.md", "r") as fp:
long_description = fp.read()
setup(name=about["__title__"],
version=about["__version__"],
description=about["__summary... | [
"uid000@gmail.com"
] | uid000@gmail.com |
c4bae031a577fcea75547d1ba262bda935942fca | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Anscombe/trend_LinearTrend/cycle_0/ar_/test_artificial_128_Anscombe_LinearTrend_0__100.py | 973499cfb993888a51e2d2621daa4fe908a9f9dd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 266 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 0, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
8b5efe98fef0e5252e6c998598fe9ecaf19a706e | 651a296c8f45b5799781fd78a6b5329effe702a0 | /polpak/eulerian.py | 3ef0e9fa8c13e3e673239e4e69f7e2443d391722 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | #!/usr/bin/env python
#
def eulerian ( n ):
#*****************************************************************************80
#
## EULERIAN computes the Eulerian number E(N,K).
#
# Definition:
#
# A run in a permutation is a sequence of consecutive ascending values.
#
# E(N,K) is the number of permutations of N ... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
bbe9549071f9a440a30dfdc52585c6d3a061d9a8 | de220992793da3fedd11953c54efe32b0bf70535 | /remoterun/__main__.py | df999132bffc7ce3da0dde6adff12af3ae8ffb3c | [
"MIT"
] | permissive | phizaz/remote-run | f358a28d75bb629fe4119104830e4da74099f83a | 9694596a371a69a472622d6990f8402ad6927932 | refs/heads/master | 2020-01-27T10:05:55.583090 | 2019-08-20T14:18:55 | 2019-08-20T14:18:55 | 66,771,111 | 1 | 0 | null | 2019-08-20T14:18:56 | 2016-08-28T13:59:40 | Python | UTF-8 | Python | false | false | 69 | py | if __name__ == '__main__':
from .remoterun import main
main() | [
"the.akita.ta@gmail.com"
] | the.akita.ta@gmail.com |
0130a9aa669218ef045af0d2fc6e46d6775d1618 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/tests/unit/gapic/googleads.v4/services/test_hotel_performance_view_service.py | fb8466e0ab5bc9d8740b76b906fbd17bbad29c94 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,872 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
f088c65f4fa33a034de7b94bd162a19cf66086a6 | 18bf8cc986763d381c35ae2a38560cce655020b1 | /week10/01-Vehicle-Repair-Manager/example/database_layer/database.py | 766313fd3c4a3e42afb3d74a228069ff65644fd0 | [] | no_license | markomatke/Programming101-Python-2018 | 3d2e467bec283469a372a55d66a911e231ca780c | 9e3181a98f8df2e2a0801faca04d4e41acb9b6f4 | refs/heads/master | 2020-04-08T11:50:36.277683 | 2018-06-13T13:50:21 | 2018-06-13T13:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | import sqlite3
class Column:
def __init__(self, name, column_type, is_nullable=False,
is_fk=False, ref_table=None):
self.name = name
self.column_type = column_type
self.is_nullable = is_nullable
self.is_fk = is_fk
self.ref_table = ref_table
@property
... | [
"ross_zz@mail.bg"
] | ross_zz@mail.bg |
9367da03a729c28a42db9948dbd97391e306a02b | 6e6103826c37d26ffefdebee1fcd5b4a580c8b5e | /정리/20180206/urllib function 2.py | 8c53e80aebcc13997a9975103941c1df75c26a22 | [] | no_license | ljg95924/multicampus_bigdata | 34023a1bb121aa0f96910805bd70d7206534c738 | 75178c65fd2000dd1181860f5f7166c7635a5715 | refs/heads/master | 2021-05-09T05:34:54.657655 | 2018-02-26T08:00:35 | 2018-02-26T08:00:35 | 119,315,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import os
print(os.path.split("C:\\python36\\NEWS.txt"))
#파일과 폴더의 경로를 구분해주는 함수
join_1=os.path.split("C:\\python36\\news.txt")
print(join_1)
print(os.path.join(join_1[0],join_1[1]))
#파일 이름과 폴더 이름을 합쳐주는 함수
print(os.path.dirname("C:\\python36\\news.txt"))
print(os.path.basename("C:\\python36\\news.txt"))
| [
"ljg95924@naver.com"
] | ljg95924@naver.com |
921e4f26abedf4bc46920425a197ff9ff3695829 | e7e53dfb57f1ad027c70c82a6d5bfc2bff7fe381 | /vis_imagine_static_voxels/lib/modules/kld.py | 03919ed0593994178677af5314e509af48396f92 | [
"Apache-2.0"
] | permissive | standardgalactic/EmbLang | 555855dcfc858d856159997c5425bd5099a67761 | 169b0468ccda554896973bcc226afb3e762a70e7 | refs/heads/master | 2023-07-09T16:46:01.900556 | 2021-07-24T11:53:36 | 2021-07-24T11:53:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import tensorflow as tf
import numpy as np
from keras import backend as K
class KLD(tf.keras.Model):
def __init__(self):
super(KLD, self).__init__()
@tf.function
def call(self, mu, var):
kld = 0.5 * K.sum(K.exp(var) + K.square(mu) - 1. - var)
return kld | [
"mihirp1998.mp@gmail.com"
] | mihirp1998.mp@gmail.com |
a7d6092aab9b8be864eedc389fddfad246976898 | b84ff2535544ffe11b81332a99fd6b1c73a9a04b | /01/taokecheng/work2.py | f07d5f956bd897ab03e554265c2a2c9a039eafca | [] | no_license | imsilence/actual_05_homework_mage | ea9170fbae181c524c606e87a86882735c6741a1 | 66c7b581c5f396083318d451c8e066b04569ba32 | refs/heads/master | 2021-05-11T09:24:17.095398 | 2018-01-19T04:05:46 | 2018-01-19T04:05:46 | 118,074,930 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | #!/bin/evn python
#encoding:utf-8
import random
random_num = random.randint(0,100)
sum = 0
print('游戏开始,有5次机会猜数字...')
guest_num = input('请输入你猜测的数字(0-100): ')
while True:
if len(guest_num.strip()) == 0 or not guest_num.strip().isdigit():
print('-'*40)
guest_num = input('错误! 只能输入数字,请重新输入,范围是(0-100):')
... | [
"imsilence@outlook.com"
] | imsilence@outlook.com |
20c6867b8db3f9a1eb5100ddb0bec47224a0c8fb | 285e244795836b9ab725383f34bac5f1d1fd08e7 | /Competitive Coding/DCL2015A.py | 32747d852a762a10fc53358621496e38c1f2a394 | [] | no_license | Swarajk7/Programs | 2ef5d98d9d1fddefcde6147af7e9404f229f759f | 9fb7224058c6d20963d3562a8bc16124dc2e7742 | refs/heads/master | 2020-05-16T08:41:50.251925 | 2017-05-19T11:29:41 | 2017-05-19T11:29:41 | 32,454,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | val=10005
primes=[True]*val
primes[0]=primes[1]=-1
for i in range(2,val):
if not primes[i]: continue
j=i+i
while j<val:
primes[j]=False
j+=i
def get(i):
if i>='a': return ord(i)-ord('a')
else: return ord(i)-ord('A')+26
t=int(input())
for i in range(t):
#print i,
a=raw_input()... | [
"swarajk7@gmail.com"
] | swarajk7@gmail.com |
daefeef00873041839c6900ac98b2dfb959857c0 | 779af350dd09ac5fa685d1d94e9576240d5c4fdf | /env_var.py | 4b424fa10df92cc96d7fe8986a70e19ef1abe350 | [] | no_license | RaenonX-DL/dragalia-site-back | 543227245f37174eaff88adb46609cad7e34a00d | d15a4821c8249ec2ab80ca6f1ce91066e4f93b48 | refs/heads/main | 2023-04-30T04:02:18.447944 | 2021-05-11T21:52:04 | 2021-05-11T21:52:04 | 305,549,653 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | """Convenient functions to extract information from the environment variables."""
import os
__all__ = ("is_testing",)
def is_testing() -> bool:
"""
Check if the environment variable ``TEST`` has been set to ``1`` to indicate it's testing.
:return: if the environment variables indicates it's testing
... | [
"raenonx0710@gmail.com"
] | raenonx0710@gmail.com |
b0436ffaab15913c99d36cd1257f032d228d8b8a | d8c1f119d1349dd8ad2e48619a8c258967cd9a31 | /PS_vsCode/1080. 행렬.py | 1d3b82b7881ffb630ce862db8db6ce0f3e3d3600 | [] | no_license | Seonghyeony/DataStructure-Algorithm | c7c006ee705b68fc4d2d04dc6baaf0aeb80fc83e | 4121289cafd0050bda408934fcb14d88052c956f | refs/heads/master | 2023-04-12T16:30:17.039109 | 2021-05-08T10:31:05 | 2021-05-08T10:31:05 | 286,371,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | N, M = map(int, input().split())
def input_str():
return [list(map(int, list(input()))) for _ in range(N)]
A, B = input_str(), input_str()
def flip(x, y, A):
for i in range(3):
for j in range(3):
A[x+i][y+j] ^= 1
ans = 0
for i in range(N-2):
for j in range(M-2):
if A[i][j] !... | [
"sunghyun7949@naver.com"
] | sunghyun7949@naver.com |
f3e2c539d1e61d68557b3c7e88d64a39aeae697a | b3b066a566618f49ae83c81e963543a9b956a00a | /Introduction to Data Visualization with Matplotlib/04_Sharing visualizations with others/02_Switching between styles.py | bf6b64d0240f4478453438edd343b540448f1297 | [] | no_license | ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020 | 666c4129c3f0b5d759b511529a365dfd36c12f1a | f3d20b788c8ef766e7c86c817e6c2ef7b69520b8 | refs/heads/master | 2022-12-22T21:09:13.955273 | 2020-09-30T01:16:05 | 2020-09-30T01:16:05 | 289,991,534 | 2 | 0 | null | 2020-08-24T17:15:43 | 2020-08-24T17:15:42 | null | UTF-8 | Python | false | false | 1,231 | py | """Switching between styles
Selecting a style to use affects all of the visualizations that are created after this style is selected.
Here, you will practice plotting data in two different styles. The data you will use is the same weather data we used in the first lesson: you will have available to you the DataFrame s... | [
"Your-Email"
] | Your-Email |
6ac3c62e2a4226a5f65d4d9dfc0d061c2efcf72d | 700bbd29624158c86402933b43f863e794e0ab7e | /register/migrations/0008_auto_20180218_2047.py | eb49eb56e7d02d34db8ffbabb2d1227a826e7dc1 | [] | no_license | gitanjali1077/volunteer | ab0391ab3319c88b5ecd40e6ff480ae15d30fdf4 | bd9dbd056624b6ebde3c46c8640b0b5786f0665f | refs/heads/master | 2021-04-27T08:16:22.889332 | 2018-02-23T17:29:38 | 2018-02-23T17:29:38 | 122,651,909 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-02-18 15:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('register', '0007_auto_20180218_1221'),
]
operations = [
migrations.AlterFie... | [
"gitanjali1077@gmail.com"
] | gitanjali1077@gmail.com |
183f84f9f7d40335c152e532c4984ba51ff94712 | 45fdc51cf264bbd50e59655440eefc91451c50ea | /data_compression/gzip_write.py | f3b6aff0f49da10c94b226d6b5f66cb97e318bb9 | [] | no_license | blindij/python3_stl | 2163043f3a9113eac21a48a35685a4a01987e926 | ea138e25f8b5bbf7d8f78e4b1b7e2ae413de4735 | refs/heads/master | 2021-12-24T20:37:54.055116 | 2021-09-29T13:37:38 | 2021-09-29T13:37:38 | 191,508,648 | 0 | 0 | null | 2019-08-27T15:45:53 | 2019-06-12T06:10:30 | Python | UTF-8 | Python | false | false | 349 | py | import gzip
import io
import os
outfilename = 'example.txt.gz'
with gzip.open(outfilename,'wb') as output:
with io.TextIOWrapper(output, encoding='utf-8') as enc:
enc.write('Contents of the example file go here.\n')
print(outfilename,'contains',os.stat(outfilename).st_size, 'bytes')
os.system('file -b --m... | [
"blindij@users.noreply.github.com"
] | blindij@users.noreply.github.com |
3466cea2b26cd096e9d52e1486e519f5b67ff809 | 779be2cae4bcfa24d47c2f681dd77bd2419099e9 | /atcoder_py/Archive/ABC204_B_20210606.py | 34f664ca2463da63dc4c79e7c18f14cb75b8b3d2 | [] | no_license | ynanigashi/til | f72d586427981c5b4543546193f8bfcb0d65a8c8 | 9de4453300ea5b084f4348a3e25ccedb0627d10c | refs/heads/master | 2023-08-10T18:30:44.599474 | 2021-09-26T12:50:39 | 2021-09-26T12:50:39 | 274,137,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in a:
if i > 10:
ans += i - 10
print(ans) | [
"26033486+ynanigashi@users.noreply.github.com"
] | 26033486+ynanigashi@users.noreply.github.com |
6f10dd392a12325ac3735eafb29f3c589fdb6589 | b106753e5abe4a72f669b4c25f1770fa2a2b2eb8 | /students/views/demo.py | b974a5fd30e6a79fb223444d10a2ca6429d50e4c | [] | no_license | ofisser86/last_chance | 1f614634b93ca2267c31679f052b0b32e9699738 | a808cc7b632ea4545e8a5628fec02a5bb1bc6ac1 | refs/heads/master | 2021-03-27T20:28:03.970568 | 2017-11-18T16:31:10 | 2017-11-18T16:31:10 | 100,600,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import HttpResponse
from django.shortcuts import render
def demo(request):
return render(request, 'students/demo.html', {}) | [
"ofisser86@gmail.com"
] | ofisser86@gmail.com |
e15f7ed60d6d2af4ab3f888cd3311c6379368064 | 9b79dc0b4b2f13dea85a1d29177e5eb266b6e7f7 | /var/lib/python-support/python2.6/orca/speechdispatcherfactory.py | 31e58bb001a0fb51493d502e586a90fdaae23fbf | [] | no_license | haniokasai/netwalker-rootfs | 0bc87efc0ae478338b6326fd9118befcbcc5cd06 | d08f7bf370a82b6970387bb9f165d374a9d9092b | refs/heads/master | 2021-01-10T11:04:34.436513 | 2016-01-12T06:09:50 | 2016-01-12T06:09:50 | 36,504,146 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | /usr/share/python-support/gnome-orca/orca/speechdispatcherfactory.py | [
"htek@haniokasai.com"
] | htek@haniokasai.com |
f461f4dbc105464039c3e003fd8a2673ea8b1da6 | 9aabbb426a3382017e99f9199e23bd0dd0133734 | /natlas-server/migrations/versions/997bbd9a505a_.py | 77fe1fc4b5b945c73ed8c1d4e6a177f01f5ef31f | [
"Apache-2.0"
] | permissive | thesubtlety/natlas | 71702da863a8086ce4a7b21a91d143dfab96b869 | c7e6afc44244c5e0bb6dcadb3d11a45bd445540d | refs/heads/master | 2020-07-24T12:16:42.352028 | 2019-10-08T21:37:38 | 2019-10-08T21:37:38 | 207,923,055 | 0 | 0 | Apache-2.0 | 2019-09-11T23:16:54 | 2019-09-11T23:16:53 | null | UTF-8 | Python | false | false | 869 | py | """empty message
Revision ID: 997bbd9a505a
Revises: aeb6c660a13a
Create Date: 2018-07-17 13:21:47.150960
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '997bbd9a505a'
down_revision = 'aeb6c660a13a'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"0xdade@users.noreply.github.com"
] | 0xdade@users.noreply.github.com |
849cac2c6ffc592edc45a4f17cc1627b144adc08 | d21071464bef4f3fd51e554f280418d06975a77e | /leetcode/187 Repeated DNA Sequence.py | 2b569f7f04327396e11419362f64688b1bd117ae | [] | no_license | DeshErBojhaa/sports_programming | ec106dcc24e96231d447cdcac494d76a94868b2d | 96e086d4ee6169c0f83fff3819f38f32b8f17c98 | refs/heads/master | 2021-06-13T19:43:40.782021 | 2021-03-27T14:21:49 | 2021-03-27T14:21:49 | 164,201,394 | 1 | 0 | null | 2019-08-27T22:21:26 | 2019-01-05T09:39:41 | C++ | UTF-8 | Python | false | false | 814 | py | from collections import defaultdict
class Solution:
def findRepeatedDnaSequences(self, s: str) -> List[str]:
if len(s) < 11:
return []
ss = s
s = [ord(c)-64 for c in s]
ans = set()
alphabates = 4
mp = 4 ** 9
_hash = 0
for i in rang... | [
"noreply@github.com"
] | DeshErBojhaa.noreply@github.com |
7ccd59634356c252bf6755d8585b8d418f3c4fe8 | 4eeb40dcc265caf4a2b84bc90a28d481930d6a8a | /templatelistviewsproject/sampleproj/settings.py | 844c3cb74d437a2b1c1d20edbd32f7641cccf8be | [] | no_license | mprasu/Sample-Projects | eb7fc46e81b09d7c97c238047e3c93b6fff3fb8d | 7363baf630900ab2babb4af2afe77911d8a548b2 | refs/heads/master | 2020-04-16T06:43:16.345750 | 2019-01-12T07:07:34 | 2019-01-12T07:07:34 | 165,358,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | py | import pymysql
pymysql.install_as_MySQLdb()
import MySQLdb
"""
Django settings for sampleproj project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://d... | [
"muppuriprasanna5@gmail.com"
] | muppuriprasanna5@gmail.com |
eabefdbf9bf558615032877bb94b86116d7e60e4 | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Savene_WC500049102.py | 1fca99424e88a51f6a725a26ec3e053abee89057 | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | {'_data': [['Very common',
[['Infections', u'Postoperativ infektion'],
['GI', u'Illam\xe5ende'],
['General',
u'Sm\xe4rta vid injektionsst\xe4llet Pyrexi Flebit vid injektionsst\xe4llet Erytem vid injektionsst\xe4llet Utmattning Induration vid injektionsst\xe4llet']]... | [
"urudaro@gmail.com"
] | urudaro@gmail.com |
c8a18cb50e5375ab0e677a1fd6fe0d03669e9644 | 5c2e4266abf6d2be9102d5309bf94071a1eae1db | /cp 习题课练习/进阶练习/advance 15.3.py | 7609871116204497122b379e87dc17030c11979a | [] | no_license | 13834319675/python | 8176d5da47136b9b3ec290eaa0b699c6b1e7a8ab | 3e6f04670f6f01006f827794865488dd40bca380 | refs/heads/master | 2021-07-11T18:29:12.894401 | 2021-07-05T08:29:27 | 2021-07-05T08:29:27 | 171,112,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | """
假设,我们用一组tuple来表示学生的名字和成绩,
L = [("Bob",75),("Adam",92),("Bart",66),("List",88)]
用sorted()对上述列表按照名字排序
"""
l = [("Bob",75),("Adam",92),("Bart",66),("List",88)]
sorted1 = sorted(l,key=lambda x:x[1])
print(sorted1)
def By_name(n):
t = sorted(n[0],key=str.lower)
return t
l2 = sorted(l,key=By_name)
print(l2)
... | [
"1134876981@qq.com"
] | 1134876981@qq.com |
a3fa41af3d88f132cf6ccf311546fb57ae67bcfb | 390380434c2daede4de30de73df939572de6957d | /project/urls.py | d4a0cf3d7f2b4f09b92e6077e5d26a44759063d6 | [] | no_license | anykate/FullCRUD | 984a6ca85ba9bb7b8f1ec3c7b1589e09c24e182b | c3a9f565198ece38ae6b70c746844a37e7dea3e2 | refs/heads/master | 2021-04-30T05:07:09.453906 | 2018-02-13T16:52:34 | 2018-02-13T16:52:34 | 121,408,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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='home')
Class-based... | [
"aryamane.aniket@gmail.com"
] | aryamane.aniket@gmail.com |
74e05cab947be624208275e976fd92220ecc9323 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ief/huaweicloudsdkief/v1/model/probe_detail.py | 164248ef166385abad271c9e4dec0ea7902be286 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,416 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ProbeDetail:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
67a3294885373c7c6f4cffd3913b003c7454a49c | 9e9ce86ef979a179a5b99a349452765f7f6e5f8d | /src/sentry_opsgenie/plugin.py | b2d975efc69b9dc11980741702c811bf3df39148 | [
"Apache-2.0"
] | permissive | zsjohny/sentry-opsgenie | 49b273544544ee852396b984793f9c5319e849b4 | bc74d82a971da63d8faec4f03949d967851d7e7b | refs/heads/master | 2021-01-15T21:02:44.629556 | 2015-05-11T21:45:13 | 2015-05-11T21:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | """
sentry_opsgenie.plugin
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2015 by Sentry Team, see AUTHORS for more details.
:license: Apache 2.0, see LICENSE for more details.
"""
from __future__ import absolute_import
import logging
import sentry_opsgenie
from django import forms
from django.utils.html import escape
from... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
a7da8a97cddff33a27a682c204eedaf50d183a61 | 778633cb4adc0172015ad53452ff66d757a07fd8 | /src/collective/documentgenerator/content/merge_templates.py | c494702ffecfae0ab655fedcf406700fe3d37c4c | [] | no_license | malikrohit16/collective.documentgenerator | 0d2db10a6047ba208f2dadba9759eb50b22b76e6 | 1836b94f8eae17528d93f6cdee5bc245377ede96 | refs/heads/master | 2021-04-27T17:07:23.812486 | 2018-02-21T08:59:40 | 2018-02-21T08:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # -*- coding: utf-8 -*-
from collective.documentgenerator.interfaces import ITemplatesToMerge
from zope.interface import implements
class TemplatesToMergeForPODTemplate(object):
"""
"""
implements(ITemplatesToMerge)
def __init__(self, pod_template):
self.pod_template = pod_template
def... | [
"delcourt.simon@gmail.com"
] | delcourt.simon@gmail.com |
9b5ee6608d5f2fa48e239a47432b99fa77288040 | d6f31bf476f4ea4a810cf67b668246303ca0d8e3 | /python/data/price.py | 10b73fccba1a4eab0e626b69ec0bbe5627522a0b | [
"MIT"
] | permissive | sslab-gatech/ACon2 | b8201610a62ac71fefd92f876877dd169db783a6 | 17b5967b90bf43dae24ae52080b8df2fcbf7be49 | refs/heads/main | 2023-08-17T06:32:10.371013 | 2023-08-06T13:43:43 | 2023-08-06T13:43:43 | 607,729,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,781 | py | import os, sys
import numpy as np
import warnings
import pickle
import glob
class NoObservation(Exception):
pass
class SinglePriceDataset:
def __init__(self, path):
file_name = glob.glob(path + '*.pk')
if len(file_name) == 0:
path_split = path.split('/')
pair_name = pa... | [
"ggdons@gmail.com"
] | ggdons@gmail.com |
aea7154f5e4850a4eadaf03473dd5273450c16dc | 4e353bf7035eec30e5ad861e119b03c5cafc762d | /QtGui/QSplashScreen.py | b4f657ddc37548ddd2e716cf42fa2f6ccf8ad729 | [] | no_license | daym/PyQt4-Stubs | fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5 | 57d880c0d453641e31e1e846be4087865fe793a9 | refs/heads/master | 2022-02-11T16:47:31.128023 | 2017-10-06T15:32:21 | 2017-10-06T15:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,226 | py | # encoding: utf-8
# module PyQt4.QtGui
# from C:\Python27\lib\site-packages\PyQt4\QtGui.pyd
# by generator 1.145
# no doc
# imports
import PyQt4.QtCore as __PyQt4_QtCore
from QWidget import QWidget
class QSplashScreen(QWidget):
"""
QSplashScreen(QPixmap pixmap=QPixmap(), Qt.WindowFlags flags=0... | [
"thekewlstore@gmail.com"
] | thekewlstore@gmail.com |
371ae445aebcea943259ea3701f151c082bf13cb | cfb2d39ab0ed8603750711698108328ba65152bf | /Products/Bitakora/XMLImporter.py | 4201f2a26782b8bdde10c5157b6078771fbf02a8 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | codesyntax/Products.Bitakora | d4fc4ce48d7244d69d986de1c9e70ff7dfbd0ffb | 555dee0070263d4296b409ae587cbf3693fc8adc | refs/heads/master | 2021-01-10T21:24:17.062053 | 2016-10-13T09:38:32 | 2016-10-13T09:38:32 | 3,788,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,125 | py | # -*- coding: utf-8 -*-
# (c) Copyright 2005, CodeSyntax <http://www.codesyntax.com>
# Authors: Mikel Larreategi <mlarreategi@codesyntax.com>
# See also LICENSE.txt
from xml.sax.handler import ContentHandler
from xml.sax import make_parser
class XMLImporter(ContentHandler):
def __init__(self):
self.post... | [
"mlarreategi@codesyntax.com"
] | mlarreategi@codesyntax.com |
bdb3737c57abe52174c250ea7e721281ef182918 | 6444622ad4a150993955a0c8fe260bae1af7f8ce | /djangoenv/lib/python2.7/site-packages/django/contrib/contenttypes/views.py | fd09b8d32057cccdff25bb88a3b5dcf0e0a73b09 | [] | no_license | jeremyrich/Lesson_RestAPI_jeremy | ca965ef017c53f919c0bf97a4a23841818e246f9 | a44263e45b1cc1ba812059f6984c0f5be25cd234 | refs/heads/master | 2020-04-25T23:13:47.237188 | 2019-03-22T09:26:58 | 2019-03-22T09:26:58 | 173,138,073 | 0 | 0 | null | 2019-03-22T09:26:59 | 2019-02-28T15:34:19 | Python | UTF-8 | Python | false | false | 3,699 | py | from __future__ import unicode_literals
from django import http
from django.apps import apps
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.requests import RequestSite
from django.core.exceptions import ObjectDoesNotExist
from django.utils.translation import ugettext as _
def sh... | [
"jeremyrich@free.fr"
] | jeremyrich@free.fr |
e581f50177c0f06cd565e1b66f82f6d51dbb486e | 3fe272eea1c91cc5719704265eab49534176ff0d | /scripts/field/enter_402000600.py | 88f1149115492abf3117fdc9ac30cf77dc6fb2e6 | [
"MIT"
] | permissive | Bratah123/v203.4 | e72be4843828def05592298df44b081515b7ca68 | 9cd3f31fb2ef251de2c5968c75aeebae9c66d37a | refs/heads/master | 2023-02-15T06:15:51.770849 | 2021-01-06T05:45:59 | 2021-01-06T05:45:59 | 316,366,462 | 1 | 0 | MIT | 2020-12-18T17:01:25 | 2020-11-27T00:50:26 | Java | UTF-8 | Python | false | false | 312 | py | # Created by MechAviv
# Map ID :: 402000600
# Refuge Outskirts : Caravan Refuge
# Unhandled Message [47] Packet: 2F 02 00 00 00 B0 83 08 00 00 00 00 00 2E 02 00 00 00 00 00 80 05 BB 46 E6 17 02 00 00 B8 22 11 00 00 00 00 00 63 04 00 00 00 02 C0 6A 2A F2 79 D6 D4 01 0D 00 66 69 65 6C 64 5F 65 6E 74 65 72 3D 31
| [
"pokesmurfuwu@gmail.com"
] | pokesmurfuwu@gmail.com |
9cfdb317eb64642a51f6b25f90e07311be3c5efd | 5785d7ed431b024dd910b642f10a6781df50e4aa | /revise-daily/june_2021/epi/36_phone_mnemonics.py | 63ad8507a981dc8f93667cd57cd578a5835d1fea | [] | no_license | kashyapa/interview-prep | 45d77324446da34d99bf8efedb3544b367b5523e | 7060c090c40602fb9c4778eace2078e1b51e235b | refs/heads/master | 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | def phone_mnemonics(nums):
def rec(idx, mnemonic):
if idx == len(nums):
res.append(''.join(mnemonic.copy()))
return
str = mapping[int(nums[idx])]
for c in str:
mnemonic.append(c)
rec(idx+1, mnemonic)
mnemonic.pop()
return
... | [
"schandra2@godaddy.com"
] | schandra2@godaddy.com |
763c6f160fd22c8c58e34381dbfbaa07c2188275 | 397c28c703bd3c3a015f87ccf55b75fa18304b8b | /test/testRssEditor.py | 1cadc3c4426b8531282fb368439990880c84e0b8 | [] | no_license | jbarciauskas/rsseditor | 7f3f958d50e1c40ae433a0227cbd3eed9287c50e | 0e028d2de8eef7fbeb56727bbd47f8b68bd38b4e | refs/heads/master | 2021-01-20T04:32:23.294303 | 2011-04-19T04:59:13 | 2011-04-19T04:59:13 | 1,628,110 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import unittest
from rsseditor import RssEditor
from rsseditor import FeedLoader
class RssEditorTest(unittest.TestCase):
def setUp(self):
self.feedLoader = FeedLoader('http://news.ycombinator.com/rss')
self.classUnderTest = RssEditor(self.feedLoader)
def testEditTitle(self):
self.asse... | [
"barciajo@gmail.com"
] | barciajo@gmail.com |
e285754d1e6e6d0301acfcce6701a5d3b6ce7c50 | 87b006149b16a3028385fc58cf781f5a12c94ad9 | /tests/checker/syntax/test_ip.py | 5e85f4f92990830a381af3f5fcb90f2d33b47638 | [
"Apache-2.0"
] | permissive | spirillen/PyFunceble | 04d03b2678ad46ec81c520a32df5397832414451 | 3c8f62062bffa0e16d465c150a853af8bf2f2205 | refs/heads/master | 2023-05-12T04:32:04.587521 | 2022-11-20T11:19:06 | 2022-11-20T11:19:06 | 237,827,167 | 2 | 0 | Apache-2.0 | 2021-01-27T10:09:59 | 2020-02-02T19:50:47 | Python | UTF-8 | Python | false | false | 9,105 | py | """
The tool to check the availability or syntax of domain, IP or URL.
::
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝
██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █... | [
"contact@funilrys.com"
] | contact@funilrys.com |
b5e0858061319961de905ea6f567ecfdadd1c942 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2410/47937/267383.py | 6a19290da4da1af5ceca5da1b99f25f26281d7c3 | [] | 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 | 664 | py | a=input().split(",")
b=input()
#print(len(a))
c=[]
i=0
while i<len(a):
c.append(int(a[i]))
i=i+1
#print(c)
d=int(b)
i=0
end=1
while i<len(a):
length=1
i2=i+1
i3=i
while i2<len(a):
if(c[i2]-c[i3]==d):
i3=i2
i2=i2+1
length=length+1
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d2317d8ad686eebde79a7ade73a22b350beaadbe | 4cf3f8845d64ed31737bd7795581753c6e682922 | /.history/main_20200118154006.py | c21def57393197b390a3f4cce01282d5f58a3dce | [] | no_license | rtshkmr/hack-roll | 9bc75175eb9746b79ff0dfa9307b32cfd1417029 | 3ea480a8bf6d0067155b279740b4edc1673f406d | refs/heads/master | 2021-12-23T12:26:56.642705 | 2020-01-19T04:26:39 | 2020-01-19T04:26:39 | 234,702,684 | 1 | 0 | null | 2021-12-13T20:30:54 | 2020-01-18T08:12:52 | Python | UTF-8 | Python | false | false | 632,235 | py | from telegram.ext import Updater, CommandHandler
import requests
import re
# API call to source, get json (url is obtained):
contents = requests.get('https://random.dog/woof.json').json()
image_url = contents['url']
def get_url():
contents = requests.get('https://random.dog/woof.json').json()
url = cont... | [
"ritesh@emerald.pink"
] | ritesh@emerald.pink |
76968d454afd94bdffc453550ea7bb5da3329979 | 555eb9c234f86911df70188914d45c358c67bb62 | /tensorflow/python/autograph/pyct/static_analysis/liveness_test.py | 8a23abef6bc5c2df50fc8393342c2f8a9c23a5d6 | [
"Apache-2.0"
] | permissive | obeshor/tensorflow | 64b99bfec161e8680535104e7e90834b1060c5c3 | 0fd570848f7cd08904907640111d435dcb7fba8a | refs/heads/master | 2020-05-18T09:44:13.516187 | 2019-04-30T20:33:02 | 2019-04-30T21:32:19 | 184,335,557 | 2 | 1 | Apache-2.0 | 2019-04-30T21:43:01 | 2019-04-30T21:43:00 | null | UTF-8 | Python | false | false | 10,514 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d74f9bc9792a616e6c0933d06f78cde2201693ba | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc008/B/3719594.py | b69ea63898a0d7baadd01fe4aaeb65de1040ec21 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | N, K = map(int, input().split())
A = [int(a) for a in input().split()]
Plus, Whole = [0], [0]
for i in range(N):
Plus.append(Plus[-1] + max(A[i], 0))
Whole.append(Whole[-1] + A[i])
Score = max(max(0, Whole[K] - Whole[0]) + Plus[N] - Plus[K], Plus[N-K] - Plus[0] + max(0, Whole[N] - Whole[N-K]))
for i ... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
e3b1ca32371f220e5494e925dba257fd3aaf7afc | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/826.py | 291cb5bbbf8d6b2a6f742b0274197291c8258dd9 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # 弱智方法
class Solution:
def maxProfitAssignment(self, difficulty: List[int], profit: List[int], worker: List[int]) -> int:
w, p = {}, {}
for d,pri in zip (difficulty, profit):
w[d] = 1
if d in p:
p[d] = max(pri, p[d])
else:
p[d] = pr... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
2909cf54ad06e7340aeb3128d7794c1718acc4d6 | 76a6890c01006fff69a920719df0065e6109a5e9 | /full_django_blog/myblog/views.py | bba2acc11ab84388f7f433b809dac48a52bc09c4 | [] | no_license | prathmesh2048/full-django-blog | 0c94ce08c1a17b74c21420d4e658f1b5b5fe12d6 | b25c9af1d25b1677cf82b929d133f1067109b26b | refs/heads/master | 2022-11-21T21:50:39.990007 | 2020-07-23T15:59:39 | 2020-07-23T15:59:39 | 281,994,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.http import Http404
from django.shortcuts import render, redirect
from django.urls import reverse_lazy, reverse
from .models import Post
from django.utils.decorators import method_decorator
fr... | [
"prathmeshnandurkar123@gmail.com"
] | prathmeshnandurkar123@gmail.com |
32af5f9daa05db8a9394c42989ce82fece01f08d | 180a3795a115c0da71078f81efbde45ab2025ca0 | /machine_learning_book/CH02/plot.py | 614ec79097c9a7d30eb96456cd9a02dddfa28638 | [] | no_license | lizhe960118/Machine-Learning | a7593e6788433408bcf072e5e25672debd931ee4 | 2d6fe2373839964645d632895ed2a7dcb9de48b0 | refs/heads/master | 2020-03-31T15:53:57.408037 | 2019-08-18T12:29:11 | 2019-08-18T12:29:11 | 152,355,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # import matplotlib
import matplotlib.pyplot as plt
import KNN
from numpy import *
datingDataMat, datingLabels = KNN.file2matrix('datingTestSet2.txt')
# print(datingDataMat[0:100])
# print(datingLabels[0:20])
fig = plt.figure()
ax = fig.add_subplot(111)
'''
这些是编码为单个整数的子图网格参数。
例如,“111”表示“1×1 grid,first subplot”,“234”表... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
902bc632e7a592419bfbdd250fd9fe501cfafc04 | bbf1ae079309eca11270422d3f0d259d1515d430 | /numerical-tours/python/todo/solutions/multidim_2_volumetric.py | dc13ecfee2d90c85abdd280d18d22bef9a5a7d1f | [
"BSD-2-Clause"
] | permissive | ZichaoDi/Di_MATLABTool | 5e6a67b613c4bcf4d904ddc47c2744b4bcea4885 | c071291c63685c236f507b2cb893c0316ab6415c | refs/heads/master | 2021-08-11T07:28:34.286526 | 2021-08-04T18:26:46 | 2021-08-04T18:26:46 | 149,222,333 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 5,481 | py | def exo1():
"""
Implement the forward wavelet transform by iteratively applying these
transform steps to the low pass residual.
nitialize the transform
"""
MW = M
for j in 1: log2(n):
p = n/ 2^(j-1)
sel = 1: p
% average/ difference along X
MW(sel, sel, sel) = ... | [
"wendydi@compute001.mcs.anl.gov"
] | wendydi@compute001.mcs.anl.gov |
cb4bacfba02f35a4b06e50b9536f97f7af866298 | 7bd9be7f25be80791f9220b62025f06170273293 | /front-plugins/zstatuses/py_cerebro/__init__.py | aa488f1dd5c398d45e43845090805cd67b2b34de | [] | no_license | cerebrohq/cerebro-plugins | ab46b4844adcb12c51d14e21f2c0d8b758b0bb57 | e2e0f97b548ef22957e13d614200027ba89215e0 | refs/heads/master | 2021-11-12T16:25:48.228521 | 2021-10-22T11:25:58 | 2021-10-22T11:25:58 | 143,178,631 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # -*- coding: utf-8 -*-
"""
py_cerebro package contains modules that provide program interface for file storage (Cargador) and database.
The package includes the following modules:
* :py:mod:`py_cerebro.database` -- access to the database to execute :ref:`SQL-queries <sapi-sql>`.
* :py:mod:`py_cerebro.dbtypes` -- d... | [
"41910371+cerebroSupport@users.noreply.github.com"
] | 41910371+cerebroSupport@users.noreply.github.com |
a519345197a1a925a18bcdcaa5c384edde2d15d1 | c8335705ff06641622668c9b0a3020df9213bc77 | /core/migrations/0013_productpage.py | aae0848edcfab0b1936b19b0cfb191c9132025ec | [] | no_license | Richardh36/ANS | 0adedcc760a6acbf539c8cbedde8edc28186218a | 2c46d36cf349f3ab8556bf713d2a0125c415029a | refs/heads/master | 2016-09-11T02:42:21.952145 | 2015-05-03T14:03:10 | 2015-05-03T14:03:10 | 34,852,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0013_update_golive_expire_help_text'),
('core', '0012_contactpage_intro'),
]
operations = [
migration... | [
"karlhobley10@gmail.com"
] | karlhobley10@gmail.com |
f28bd4048ae55c0248d5c639b87f134d62a85807 | 37e87b3d5e1ee9009f0ea0671bc0c6edf0e233b7 | /088_3.py | 4cfa9bc9edcedf2f4efdb6f13e6e3b3d9d40b18f | [] | no_license | Jane11111/Leetcode2021 | d9f4987792938597bf89ff72ba6bbcb4a3f9d081 | a95b871578aae0103066962c33b8c0f4ec22d0f2 | refs/heads/master | 2023-07-14T21:29:41.196752 | 2021-08-23T03:28:02 | 2021-08-23T03:28:02 | 344,804,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # -*- coding: utf-8 -*-
# @Time : 2021-05-13 13:12
# @Author : zxl
# @FileName: 088_3.py
class Solution:
def merge(self, nums1 , m: int, nums2 , n: int) -> None:
"""
Do not return anything, modify nums1 in-place instead.
"""
if n==0:
return
p = m+n-1
... | [
"791057615@qq.com"
] | 791057615@qq.com |
40bef4374a23d5005e5255ead7feb9767a4d762d | d33352f90d3d046e2e2fa55a123b4b2828260fc3 | /LeetcodePython/Sqrt(x)69.py | 9a627c1f67d9355bb70af15dd91c73dbdcb574e3 | [] | no_license | DianaLuca/Algorithms | 272c27d7d5fa4b7aa03e7500af01a4d67f15d0bf | b3a2013d1c3c7a5a16727dbc2ecbc934a01a3979 | refs/heads/master | 2021-09-11T12:37:00.334011 | 2018-04-07T00:17:57 | 2018-04-07T00:17:57 | 68,707,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # Implement int sqrt(int x).
# Compute and return the square root of x.
class Solution(object):
def mySqrt(self, x):
"""
:type x: float
:rtype: float
"""
l, r = 0, x
while l + 1e-6 <= r:
print(l, r)
m = l + (r - l)/2
if m**2 <= x... | [
"lucadiana88@gmail.com"
] | lucadiana88@gmail.com |
dc039f93edf88b962ac46de478b4828a0973415a | 15a676a82a1344726172e5f422cf0ae56505be69 | /src/web/controller/spiderController.py | e555bdcf6a620c0e3da10c75e74f0176912cfc97 | [
"MIT"
] | permissive | 343695222/QQZoneMood | 35c12291ddf58c2571646723b7b8167da3912195 | 1c406d26bb63681e26d986bce57ab402808bf48a | refs/heads/master | 2020-08-20T19:45:35.602392 | 2019-10-14T06:26:29 | 2019-10-14T06:26:29 | 216,059,716 | 1 | 0 | MIT | 2019-10-18T15:57:34 | 2019-10-18T15:57:33 | null | UTF-8 | Python | false | false | 8,208 | py | from flask import Blueprint, session
import json
from src.util.constant import *
from flask import request
from src.spider.main import web_interface
import threading
from time import sleep
from src.web.controller.dataController import do_clear_data_by_user
from src.web.web_util.web_constant import INVALID_LOGIN, SUCC... | [
"maicius@outlook.com"
] | maicius@outlook.com |
0cac1a24f83e80e5ba1a814ae54c5fd731b17ba7 | eb38517d24bb32cd8a33206d4588c3e80f51132d | /grayscale.py | 5a20f7197e61735bd1df50f7d333c75f69b6fa50 | [] | no_license | Fernando23296/l_proy | 2c6e209892112ceafa00c3584883880c856b6983 | b7fdf99b9bd833ca1c957d106b2429cbd378abd3 | refs/heads/master | 2020-04-01T18:01:41.333302 | 2018-12-04T23:45:53 | 2018-12-04T23:45:53 | 153,466,681 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import cv2
image = cv2.imread('ex6.png')
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imshow('Original image', image)
cv2.imshow('Gray image', gray)
cv2.waitKey(0)
cv2.destroyAllWindows()
| [
"fernando23296@gmail.com"
] | fernando23296@gmail.com |
4bc12c51c6a8d4ba96daf796d0e2e6a2bb932602 | 787344a140b1f1ca05277b44dbf72fda3fa25cda | /bin/send_reports.py | 504319ea16ef9ba6c2a8c41f9fcdcd965bba3976 | [
"MIT"
] | permissive | poldrack/r-autograder | 6785b40dbd3011dfe5fb47c134c66a8d18985d21 | 58ab96bed7456aef2cec9e01ff6eff23daec0425 | refs/heads/master | 2020-12-29T22:57:53.816305 | 2020-03-05T22:33:24 | 2020-03-05T22:33:24 | 238,765,808 | 3 | 0 | null | 2020-02-06T19:25:53 | 2020-02-06T19:20:10 | Python | UTF-8 | Python | false | false | 976 | py | #!/usr/bin/env python
"""
send reports to students automatically
set up postfix gmail relay ala:
https://www.justinsilver.com/technology/osx/send-emails-mac-os-x-postfix-gmail-relay/
http://postfix.1071664.n5.nabble.com/MacOS-High-Sierra-10-13-and-Postfix-relaying-td93421.html
date | mail -s "Test Email" poldrack@gma... | [
"poldrack@gmail.com"
] | poldrack@gmail.com |
1b64159778f2c89847c2b168143a6810ad3f4711 | 5178f5aa20a857f8744fb959e8b246079c800c65 | /01_basic/text/src/03/if_ex3.py | fca268651ddcee0a837d8890fbf57c1392c708e2 | [] | no_license | murayama333/python2020 | 4c3f35a0d78426c96f0fbaed335f9a63227205da | 8afe367b8b42fcf9489fff1da1866e88f3af3b33 | refs/heads/master | 2021-05-19T04:03:46.295906 | 2021-03-09T22:23:58 | 2021-03-09T22:23:58 | 251,520,131 | 0 | 3 | null | 2020-10-26T01:20:09 | 2020-03-31T06:35:18 | Python | UTF-8 | Python | false | false | 153 | py | user_id = input("USER ID: ")
password = input("PASSWORD: ")
if user_id == "Alice" and password == "pass":
print("Success")
else:
print("Error")
| [
"murayama333@gmail.com"
] | murayama333@gmail.com |
9a22d4a6c8d7830da5918262acf228ed3eb581c7 | 6612bdba8a08219b36d73739585836fa979b1dc5 | /language/mentionmemory/tasks/eae_task.py | 14731798856a87eb03c93feff95ea20fb5fe0cae | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | insomnia1996/language | 5582cfacebe27607b051b11e928dd0e46e4e4b7b | 240cd2a1fd0307c6822b6f1f6c2abf1349a5a4da | refs/heads/master | 2023-08-29T20:40:36.960181 | 2021-10-08T05:19:32 | 2021-10-08T17:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,422 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
2bd783713fc5e7f9ca1abcb919e06d59ee812dd5 | 05d3b4d5e0a2b531429434f4500a0f60ec63785d | /Method_Using range in a function.py | f264dfbe02f502becf77e7fae829ed8d8c234943 | [] | no_license | golfnut1400/Python201 | 8fcce72bfee78aafef230b5fdb1bc47bad51b829 | 311a6d7d55b5e2f76623809102c58ef70464a722 | refs/heads/master | 2021-09-03T06:33:49.792487 | 2018-01-06T13:38:58 | 2018-01-06T13:38:58 | 110,043,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py |
import random
def request_range(start, end):
x = random.randrange(start,end) # creates a random number from the 2 arguments
print(x)
request_range(1,1000) # calls the request_range function and passes the 2 arguments
| [
"srcorpuz@hotmail.com"
] | srcorpuz@hotmail.com |
e4bc1036fc2022301460be8634e270c0ff35dfdc | 8ca045c0b94729222e8f3ffe184c0d4f564418c4 | /Image/composite_bands.py | 5969cc2f6e8204679acd4bee99030483ca72b467 | [
"MIT"
] | permissive | levi-manley/earthengine-py-notebooks | bc77632ca22ca85c0092c18f1eb8321abfbe874a | f5a888ddb6834f164e7399b20c683fb9cf604465 | refs/heads/master | 2021-01-02T12:17:27.974005 | 2020-02-09T02:59:20 | 2020-02-09T02:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | '''
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Image/composite_bands.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="_blank" hr... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
07d00c1fdef3a45ed0f84ae4231f2daf5452a390 | 58ca273d2a9ee7f75b4bde3990513f74441143f0 | /Python/Cryptography/Data diffusion calculator.py | 3db11d81443b4ff139c508f9c7c69195597faaec | [] | no_license | Al153/Programming | 6db4b3c9d34747e1248aed2b0ee7fb7a35cef8d2 | 26de0b5607c6329bed2d6454090f00b098bc837f | refs/heads/master | 2021-04-12T04:13:00.945021 | 2019-07-12T17:47:08 | 2019-07-12T17:47:08 | 12,439,227 | 2 | 2 | null | 2014-08-13T19:21:46 | 2013-08-28T16:47:08 | Game Maker Language | UTF-8 | Python | false | false | 4,785 | py | from decimal import Decimal
class Datadiffusion:
def __init__(self,text):
self.text = text
self.alphabet = []
for i in text:
if i not in self.alphabet:
self.alphabet.append(i)
def change_alphabet(self,newcharacters):
for i in newchara... | [
"al.taylor1105@gmail.com"
] | al.taylor1105@gmail.com |
369fd4ab3b738c3c268ae4549cc141ea8c623db8 | e5f5468ba082b1c057ac4167831aab95aa7c0d27 | /backend/home/migrations/0002_load_initial_data.py | c6bfce958c6507b9aeb1cb4243b11fe43b59d7ea | [] | no_license | crowdbotics-apps/mobile-28-oct-dev-14129 | bd98341f59a15200661a3896b1288b229247b906 | 02abe8260760b9eef10871767982e8407642b9b9 | refs/heads/master | 2023-01-09T13:41:10.439050 | 2020-10-28T11:31:33 | 2020-10-28T11:31:33 | 307,911,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "mobile 28 oct"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c11655dd2fa086b3766fa7d30fdd14a78dacded3 | 28c598bf75f3ab287697c7f0ff1fb13bebb7cf75 | /mud/world/immortalcommand.py | f344bee01f8e462c83032b469508b953238ba095 | [] | no_license | keaysma/solinia_depreciated | 4cb8811df4427261960af375cf749903d0ca6bd1 | 4c265449a5e9ca91f7acf7ac05cd9ff2949214ac | refs/heads/master | 2020-03-25T13:08:33.913231 | 2014-09-12T08:23:26 | 2014-09-12T08:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,469 | py | # Copyright (C) 2004-2007 Prairie Games, Inc
# Please see LICENSE.TXT for details
import math
from defines import *
from zone import Zone
from spawn import Spawn
from core import *
import sys
from mud.common.permission import User
from damage import XPDamage
# Volatile dictionaries for the immortal stasis functiona... | [
"mixxit@soliniaonline.com"
] | mixxit@soliniaonline.com |
87294359d3c089c38ac1634f9454dd7fffc84699 | 943dca755b940493a8452223cfe5daa2fb4908eb | /abc114/c.py | b6b7ae6b28b7b8b6d6eff7f89534a53858c8d4db | [] | no_license | ymsk-sky/atcoder | 5e34556582763b7095a5f3a7bae18cbe5b2696b2 | 36d7841b70b521bee853cdd6d670f8e283d83e8d | refs/heads/master | 2023-08-20T01:34:16.323870 | 2023-08-13T04:49:12 | 2023-08-13T04:49:12 | 254,348,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | n=int(input())
c=0
def a(i):
if int(i)>n:
return 0
r=1 if all(i.count(c)>0for c in '753') else 0
for c in '753':
r+=a(i+c)
return r
print(a('0'))
| [
"ymsk.sky.95@gmail.com"
] | ymsk.sky.95@gmail.com |
105f6318e16efd787729c4524688009e64c39a6b | 57023b55d9e136b8e2527e2c666b053f73bb6bc9 | /get_url.py | 9e8146918c444ca7b18e1f93400b9904f267d58e | [] | no_license | zengzhiyi/zhuanzhuan_pyspider | f98867742d9f7c760d7274528f85e91439964a48 | 4f27f410a75acec467de4fa73b759cb8a4d6351a | refs/heads/master | 2021-01-13T10:55:28.659431 | 2016-10-29T11:34:56 | 2016-10-29T11:34:56 | 72,281,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from pyspider.libs.base_handler import *
import pymysql
class Handler(BaseHandler):
crawl_config = {
}
#
# def __init__(self):
# self.db = pymysql.Connect('localhost', 'localhost', '123456', data=)
start_url = 'http://www.zhuanzhuan.com/'
grab_url = 'http://zhuanzhuan.58.com/detail/7... | [
"zengzhiyi@gearblade.com"
] | zengzhiyi@gearblade.com |
f5b6ae2f4f91bf6d468eaade82e1f94055a1de32 | 6f21068b31084e81f38db304a51a2609d8af37cd | /1_Crash_Course_on_Python_Basics/history.py | 520b3dd6c15086c052178edbb04320e38c777a0c | [] | no_license | vickyf/eurocontrol_datascience | 374b889cac7b8d377caa78079fb57098e73bba0a | 0a7c09002e3b5f22ad563b05a6b4afe4cb6791d7 | refs/heads/master | 2020-03-19T06:03:14.864839 | 2018-06-04T07:24:25 | 2018-06-04T07:24:25 | 135,986,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | %history -n 1-5 -f log.py | [
"vicky.froyen@infofarm.be"
] | vicky.froyen@infofarm.be |
40b7f46aecadddd429b5ea68491717f4c62a0d36 | a4ecd7798cfa04676e892898774d1e5824b095fb | /distributed/utils.py | 8e2136a99c71da5584d431ba41d5733e85db4cb9 | [] | no_license | kevineriklee/distributed | c48ccb6086861c1adb2a5d7091d792a923387a27 | b0b7c27e4ee6d7b5eebe6569fcf29b32418be440 | refs/heads/master | 2020-12-24T21:27:06.374245 | 2016-02-03T12:43:06 | 2016-02-03T12:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,049 | py | from __future__ import print_function, division, absolute_import
from collections import Iterable
from contextlib import contextmanager
import logging
import os
import re
import socket
import sys
import tempfile
import traceback
from dask import istask
from toolz import memoize
from tornado import gen
logger = logg... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
7fd3ef46896d70511ef8915b44227ec5c7aea8e2 | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/test/query-tests/Expressions/general/compare.py | 141b5e6a0286eb0877da38d45efaf28b0cf9277e | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 327 | py |
#OK
a = b = 1
a == b
a.x == b.x
#Same variables
a == a
a.x == a.x
#Compare constants
1 == 1
1 == 2
#Maybe missing self
class X(object):
def __init__(self, x):
self.x = x
def missing_self(self, x):
if x == x:
print ("Yes")
#Compare constants in assert -- ok
assert(1... | [
"mark@hotpy.org"
] | mark@hotpy.org |
ca8a8ac861ee58b34eefc98e9160ef198072392a | 145439ad19a9c3c9d40f805ccf9ff5794ca28d62 | /senseplot_es.1.py | 541013ab8d2377881041a491815ab1ede5137190 | [] | no_license | emawind84/sensehat-discotest | f5b122f004eee4e74ba63322aecb723d7a191583 | 87a7aff71969ef9beab0120eaddc132e0d16b561 | refs/heads/master | 2020-05-21T04:27:43.090658 | 2017-10-10T14:30:52 | 2017-10-10T14:30:52 | 46,617,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | #!/usr/bin/env python
import csv
import sys
import logging
import argparse
import matplotlib
import requests
import json
import dateutil.parser
matplotlib.use("Agg")
import matplotlib.dates as md
import matplotlib.pyplot as plt
logging.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s')
_logger = logging... | [
"emawind84@gmail.com"
] | emawind84@gmail.com |
640b1981de612c8310929ae47e05cb72c6ab8ffd | 243d0543f8d38f91954616c014456122292a1a3c | /CS1/0340_lists/challenge1.py | 34564036d9d41147eeed4c7ecb4f996fdaf78e98 | [
"MIT"
] | permissive | roni-kemp/python_programming_curricula | 758be921953d82d97c816d4768fbcf400649e969 | eda4432dab97178b4a5712b160f5b1da74c068cb | refs/heads/master | 2023-03-23T13:46:42.186939 | 2020-07-15T17:03:34 | 2020-07-15T17:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py |
#For 35 points, answer the following questions.
'''1. Write a function that takes a single number named x and returns
a list of all the numbers from x to 0 in descending order. For example,
if 5 is passed to the function, then the function should return a list
that equals [5,4,3,2,1,0].'''
'''2. The following p... | [
"neal.holts@gmail.com"
] | neal.holts@gmail.com |
65d7ff9326e1b49582142df46e4ec8e58c0ea585 | 32fdc94d1b8d98085db5d1e8caae4161d3e70667 | /3rd_party/python3.7/lib/python3.7/site-packages/aliyunsdkcore/acs_exception/exceptions.py | c5a3152d161d237e31cef9651573890127244bbf | [
"Python-2.0"
] | permissive | czfdlut/ticket_proxy | fa0f1924a86babfa7ce96cf97e929f7bf78643b7 | 0d7c19448741bc9030484a97c1b8f118098213ad | refs/heads/master | 2022-12-23T05:25:58.207123 | 2019-11-20T03:58:31 | 2019-11-20T03:58:31 | 174,579,562 | 1 | 3 | null | 2022-12-18T01:18:07 | 2019-03-08T17:22:48 | Python | UTF-8 | Python | false | false | 2,808 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"czfdlut@163.com"
] | czfdlut@163.com |
2e365c5f23fc5bd007dc780fa71c4e5598e856d1 | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/01919/1919.py2.py | 1a8557553de03d0c7ca6ef7a57f3254ee8eb8954 | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
462c1c5536931ffd74fe6adb0021f49f47a22917 | c4c4a825e361d15aa60603e52195bbeea2b31ad8 | /src/generator.py | ae550a23acdbb4d5b1895b970705ac88b8b828f5 | [] | no_license | brianyu28/accompaniment | cabb55cd26f6e0525dc60df7a493430860b702e8 | a2dd062631d7316bda38823ca23ea6fba33aafb4 | refs/heads/master | 2021-08-24T08:02:45.675990 | 2017-12-08T19:28:06 | 2017-12-08T19:28:06 | 109,048,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | import os
import uuid
from contextlib import redirect_stdout
from midi2audio import FluidSynth
from midiutil import MIDIFile
from pydub import AudioSegment
def generate(filename, sequence, configuration, mls, volumes):
"""
Generates merged audio file.
"""
print("Generating accompaniment audio...")
... | [
"brianyu28@gmail.com"
] | brianyu28@gmail.com |
d81fb844ab079e8c36d9a292a808fafb58ad814e | bde2d795de28f9bbfc414752cc49d8ec3e0f00fd | /syntext/test/test_dynamical_load_classes.py | 3f642821f1fa935e8ad25d61bfc44709cb6d2ac1 | [] | no_license | lem89757/syntext | b934cd9339fb938db1c0bb9228852cec3d6e5a03 | 9d3e2e9bb68b325122072d8378217623d3804641 | refs/heads/master | 2022-12-01T20:06:25.328315 | 2020-08-18T04:38:06 | 2020-08-18T04:38:06 | 294,897,996 | 1 | 0 | null | 2020-09-12T07:57:33 | 2020-09-12T07:57:32 | null | UTF-8 | Python | false | false | 370 | py | from syntext.utils.utils import dynamic_load
from syntext.text.generator import TextGenerator
module_name = "syntext.text.generator"
modules = dynamic_load(module_name, TextGenerator)
for module in modules:
print(module)
# RUN: python -m syntext.test.test_dynamical_load_classes
def test_fake_print(*arg):
pr... | [
"piginzoo@gmail.com"
] | piginzoo@gmail.com |
1296b16346d574fdf337b865e6e24fa10eae71f8 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2020_05_01_preview/aio/operations/_bandwidth_schedules_operations.py | 6e6e33810965c92218ce0476a26194e3548f85e4 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 26,515 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
36cf57e1c202ca5edbc650d557e7ec4d3e91c89f | c426a94f2e48a464a19076e4bea5d9553f11a979 | /src/collective/cover/tests/test_refresh_behavior.py | 9a99f022cfdeafc14722093a42b8a39cb6dacf3a | [] | no_license | Mubra/collective.cover | 36932c5ed3df295a9079db5e2786765370b68fcd | 410254dc73093181637e7982c25d18f63936fcb1 | refs/heads/master | 2020-07-31T18:49:26.617963 | 2019-10-01T15:18:52 | 2019-10-01T15:18:52 | 210,716,653 | 1 | 0 | null | 2019-10-01T15:18:54 | 2019-09-24T23:43:28 | Python | UTF-8 | Python | false | false | 2,325 | py | # -*- coding: utf-8 -*-
from collective.cover.behaviors.interfaces import IRefresh
from collective.cover.interfaces import ICoverLayer
from collective.cover.testing import INTEGRATION_TESTING
from plone import api
from plone.behavior.interfaces import IBehavior
from plone.dexterity.interfaces import IDexterityFTI
from ... | [
"hector.velarde@gmail.com"
] | hector.velarde@gmail.com |
66b3e2d6486ac2860cf3d9dc0e2ce7f27b2b2f61 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-rapidmigrationassessment/samples/generated_samples/rapidmigrationassessment_v1_generated_rapid_migration_assessment_create_collector_async.py | e8096a9b9f9911d1e03ce9c62faa838ef80f8c2b | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,128 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
7ae1c12e9f2be77ce9f0ab92c3f38e121f1a177c | 0b79d66196e9bef7cf81c0c17b6baac025b0d7f1 | /apps/institute/exchange/models/trans.py | 4df3228dfa5fefa15caa4a09069fda9dca77b0a5 | [] | no_license | tsevindik/sis-back | bf0244a803ba9432980844ff35498780ac664564 | 4ba942fe38cc150c70898db4daf211213b84a61a | refs/heads/master | 2021-03-24T09:35:49.199712 | 2017-01-25T08:19:37 | 2017-01-25T08:19:37 | 73,540,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from django.utils.translation import ugettext_lazy as _
from django.db import models
from utils.models import trans as trans_models
from . import main
class ExchangeProgramTrans(trans_models.Translation):
neutral = models.ForeignKey(
main.ExchangeProgram
)
name = models.CharField(
max_len... | [
"abdullahsecer@std.sehir.edu.tr"
] | abdullahsecer@std.sehir.edu.tr |
e4ad7da2163fa94929de33817be367d5a2304aa4 | 9c9c6b8deca524c9401dd24d19510d3843bebe4b | /lib/rosserial-0.7.7/rosserial_python/nodes/message_info_service.py | 255dc0b61ed3c8c8ee470478ca83f71d4bb5d3c3 | [
"MIT"
] | permissive | tku-iarc/wrs2020 | 3f6473c2f3077400527b5e3008ae8a6e88eb00d6 | a19d1106206e65f9565fa68ad91887e722d30eff | refs/heads/master | 2022-12-12T20:33:10.958300 | 2021-02-01T10:21:09 | 2021-02-01T10:21:09 | 238,463,359 | 3 | 8 | MIT | 2022-12-09T02:09:35 | 2020-02-05T14:00:16 | C++ | UTF-8 | Python | false | false | 3,811 | py | #!/usr/bin/env python
#####################################################################
# Software License Agreement (BSD License)
#
# Copyright (c) 2013, Clearpath Robotics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the... | [
"dual-arm@dualarm.com"
] | dual-arm@dualarm.com |
795dbc96c00507330fd13e6649af217203c656ca | ad10cd9aecb8e1b277996484a35f54544a3f56c4 | /websiteproject/website/hoster/apps.py | 6dad85d641b26d6d519eeb952a0427033c6c76b1 | [] | no_license | gokul05021992/whole-projects | 4a4264ec75e1878a3661145a63c99c2b4b7c8350 | 993a8b8db83266e434387730cc5f8b16e4a8b77e | refs/heads/master | 2023-05-22T18:36:38.651925 | 2021-06-13T01:09:11 | 2021-06-13T01:09:11 | 376,460,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class HosterConfig(AppConfig):
name = 'hoster'
| [
"bgokul92@gmail.com"
] | bgokul92@gmail.com |
e5ea6a00ec40529047d2c1c4091f48835b8d9bcf | ba3cd834eb2810dd672e026f5f809b8b32918052 | /app/models.py | c55325761c7e8e42ece2616e51e8e8765ad45bc3 | [] | no_license | JellyWX/stripe-donations | 6f9fb789fdfb09417b33964edf1c8c7083d7e248 | 1c4b38dace0c952dfb7a7eb425f83069312fed6a | refs/heads/master | 2020-03-21T01:06:57.410200 | 2018-07-23T17:29:56 | 2018-07-23T17:29:56 | 137,925,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from app import db
class SimpleUser(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String)
email = db.Column(db.String, index=True, unique=True)
user_id = db.Column(db.Integer, unique=True)
| [
"judewrs@gmail.com"
] | judewrs@gmail.com |
d7826c4912bd789949d878121f50e3572b86da3f | d05c946e345baa67e7894ee33ca21e24b8d26028 | /general/detect-fraudulent-transactions/producer.py | 158ba419a43b331f7a476d98ab26bb4e9fd7350e | [
"MIT"
] | permissive | x4nth055/pythoncode-tutorials | 327255550812f84149841d56f2d13eaa84efd42e | d6ba5d672f7060ba88384db5910efab1768c7230 | refs/heads/master | 2023-09-01T02:36:58.442748 | 2023-08-19T14:04:34 | 2023-08-19T14:04:34 | 199,449,624 | 1,858 | 2,055 | MIT | 2023-08-25T20:41:56 | 2019-07-29T12:35:40 | Jupyter Notebook | UTF-8 | Python | false | false | 641 | py | import os
import json
from time import sleep
from kafka import KafkaProducer
# import initialization parameters
from settings import *
from transactions import create_random_transaction
if __name__ == "__main__":
producer = KafkaProducer(bootstrap_servers = KAFKA_BROKER_URL
#Encode all ... | [
"fullclip@protonmail.com"
] | fullclip@protonmail.com |
fe18a1b59c75b08af2133e32331902343921e6ae | 5cd7a8e67a911d1a5562488349db38979ff1c047 | /CSV/exercise 25.1/exercise 25.1.py | 066d70d3f7456650d769f9e18d8de7595b1fc119 | [] | no_license | IshaanBAgrawal/Day-25 | 3f154186b040de35b19908fb790807954f5805dc | 070ab3178c5aa3dde25391e69065e08a69665ee1 | refs/heads/master | 2023-07-01T18:45:27.997485 | 2021-08-10T10:04:41 | 2021-08-10T10:04:41 | 394,603,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import pandas
squirrel_data = pandas.read_csv("Central_Park_Squirrel_census.csv")
print(type(squirrel_data))
squirrel_fur_color = squirrel_data["Primary Fur Color"]
black = 0
gray = 0
cinnamon = 0
for color in squirrel_fur_color:
if color == "Black":
black += 1
elif color == "Gray":
gray += 1
... | [
"agrawalishaan115@gmail.com"
] | agrawalishaan115@gmail.com |
2d948416a6dd66cd777ca2c42cfed3839faad9e4 | 25238196fd7f18fc2452c84264a9c1d7a9c3c34a | /ver11/chargingFunctions.py | 9a5383bfbf60dcb940153e1546bc884201c92aa6 | [] | no_license | jwcn97/Fleet-Simulation | c6765db96f2beacda19f375a3a5bb14a0a4f98c4 | 3f3ef5f994f68361b13a46336095ffd9fca9f177 | refs/heads/master | 2022-11-27T01:49:28.566534 | 2020-08-06T06:58:33 | 2020-08-06T06:58:33 | 204,433,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,217 | py | import pandas as pd
import numpy as np
import time
from chunks import chunks
from supportFunctions import *
######################################################
# FUNCTIONS WHICH SUPPORT CHARGING
######################################################
# ALLOCATE AN AVAILABLE CHARGE PT OR SELECT CURRENT CHARGE PT
def... | [
"you@example.com"
] | you@example.com |
d941836293931263f2257eb353b15328e1114bc3 | d6fd55ff015ddcc380ffea2da140d86c5fa9feff | /bin/thecannon | 5876059c39690095d755554b6735280b8df52036 | [
"BSD-3-Clause"
] | permissive | sdss/astra_thecannon | b3a461b91894ec391318fd4a098b5688299923b8 | 3062025aa2ac3b8af257490be63201587b23762d | refs/heads/master | 2021-07-05T01:08:12.774277 | 2020-10-06T12:37:53 | 2020-10-06T12:37:53 | 182,139,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,794 | #!/usr/bin/env python
# encoding: utf-8
import argparse
import numpy as np
import os
from astropy.table import (Table, join, unique)
from collections import Counter
from tqdm import tqdm
from warnings import warn
from astra import log
from astra.utils.data_models import parse_descriptors
from astra.tools.parsers.co... | [
"andycasey@gmail.com"
] | andycasey@gmail.com | |
4884e627947c1a84244aa794d41b96402c958e6a | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/sharepoint/marketplace/corporatecuratedgallery/addins/permission_request.py | c469197f73d604628987ef49b387a4b49065b3f0 | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 113 | py | from office365.runtime.client_value import ClientValue
class SPAddinPermissionRequest(ClientValue):
""""""
| [
"vvgrem@gmail.com"
] | vvgrem@gmail.com |
65cdcdf0253ddb4b8e88d7d4ee6ec35326b939af | 8e1844578805b43b7b5ef81b6a4efb85e5481af2 | /sysfacts/api.py | 0ea674167d2cec14bf352976739e2419bbfcdd07 | [
"MIT"
] | permissive | pmav99/sysfacts | d73720c42d00b5d8327e483cef0221bacd13035e | 09a5658a8f4e789db71844759dd4ae61369f4f4a | refs/heads/master | 2020-04-17T14:08:13.182321 | 2019-01-25T20:20:36 | 2019-01-25T23:31:03 | 166,644,847 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | # from __future__ import annotations
import platform
import cpuinfo # type: ignore
import distro # type: ignore
import pendulum # type: ignore
import psutil # type: ignore
# TODO @##@#$! mypy
def _to_dict(named_tuple) -> dict:
return dict(named_tuple._asdict())
def get_timestamp() -> str:
return str(p... | [
"pmav99@gmail.com"
] | pmav99@gmail.com |
07931e2f7377890e3555fc52ea41e287579a4de0 | c62fc7366ba080c22d54249561ce572dee085f07 | /tests/test_widget_selectdate.py | bc18260ede55a64d3e9fa4d93660e608ef939aa2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | wendelas/django-material | 9b69e7040e7279b88e45f82ad6aea33a46a82d02 | e29d1568bd450a8066b637d0018a9bf07d2f7948 | refs/heads/master | 2021-01-13T15:45:24.107306 | 2015-12-31T02:19:17 | 2015-12-31T02:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | import json
from django import forms
from django.test.utils import override_settings
from django_webtest import WebTest
from . import build_test_urls
try:
from django.forms.widgets import SelectDateWidget
except ImportError:
# django 1.8
from django.forms.extras import SelectDateWidget
class SelectForm(... | [
"kmmbvnr@gmail.com"
] | kmmbvnr@gmail.com |
282f92d219f4319d4135b439015cae5d7125a0fa | 80ac93cf96c5db72d1cd610585cf3243ec8565b1 | /tensorflow_federated/python/core/impl/intrinsic_bodies.py | ec213bc691bf19f66e3dbbdf6b702e6311d6636c | [
"Apache-2.0"
] | permissive | KaiqiangQi/federated | 6821ed387ce802dcb484054dd20ae2059b9c2a81 | d8c402686766897c735e74731bd17b9df373b77f | refs/heads/master | 2020-06-13T20:52:03.472327 | 2019-07-02T03:32:18 | 2019-07-02T03:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,380 | py | # Lint as: python3
# Copyright 2018, The TensorFlow Federated 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 ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
38b591a059118ab9ffeab0935c9478871024ae69 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fv/rtmontofveppinbandevent.py | 24b4d9e2fc69ef395df32b30f4c6e25c9bc538ef | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 4,643 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.