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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f32746191c1cdb68cba6ceff436e1725c23ccd61 | 09021accfc6241a7eb3b17821394881518e78c84 | /backend/settings/development.py | 7e4853ea4e2f7e29e445273125de5c9c0e65fec0 | [] | no_license | mrporsh/ecommerce-core | c37ec314b7fe2a79524ed110a014b148be1edcf1 | 20de529dad2d52df20a75956d1be1d23cfa241af | refs/heads/master | 2022-11-08T02:08:05.358421 | 2020-06-15T08:18:56 | 2020-06-15T08:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | from backend.settings.base import *
SECRET_KEY = '6h03)d($%+c4r#p65#ctnk3*u21^v@q+*e^ue0+llrq%zv(94z'
DEBUG = True
ALLOWED_HOSTS = ["*", ]
# Database
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# django-cors-headers
C... | [
"onteripaul@gmail.com"
] | onteripaul@gmail.com |
d24c822be4efd0de82f39e9ae11c2a6453533063 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_006/ch83_2020_04_13_17_27_42_530852.py | 8bd9a1e46cf9d29bc7a0f99413f2f1b5c8b8d247 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | def medias_por_inicial(dicio):
dicio2={}
listaL=[]
a=1
for i in dicio:
if i[0] not in listaL:
listaL.append(i[0])
dicio2[i[0]]=dicio[i]
else:
a=a+1
dicio2[i[0]]=(dicio2[i[0]]+dicio[i])/a
return dicio2 | [
"you@example.com"
] | you@example.com |
2d5e425ebcdd855dda89d0709c5e580068264bb4 | 99deab5f52fd7262a26de9aa5d0163bfa738590f | /python/leetcode/string/468_valid_ip_address.py | d2bed0cf860f5b1cad696de3bf10c6009a3861a1 | [] | no_license | zchen0211/topcoder | e47fc07c928b83138e27fd6681b373ce499480b0 | 4d73e4c1f2017828ff2d36058819988146356abe | refs/heads/master | 2022-01-17T16:54:35.871026 | 2019-05-08T19:26:23 | 2019-05-13T05:19:46 | 84,052,683 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,186 | py | """
468. Validate IP Address (Medium)
Write a function to check whether an input string is a valid IPv4 address or IPv6 address or neither.
IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers, each ranging from 0 to 255, separated by dots ("."), e.g.,172.16.254.1... | [
"chenzhuoyuan07@gmail.com"
] | chenzhuoyuan07@gmail.com |
00bc2dabdcd7e010bc2735303ed4cc9a35ed7325 | 776fa03e088c148578c5fe4b361734d1b5517249 | /comments/signals.py | c1ff8c39e82d81fdff911228614f931b6a3f1618 | [] | no_license | zhexuejia53/book_share_demo | de8b8801bf9af757f19e280cbf0d98d4ea80bfa7 | 7c810b06bc1f810650e471fd8bbe902c657c048b | refs/heads/master | 2020-04-06T14:40:03.226213 | 2018-11-14T14:17:47 | 2018-11-14T14:17:47 | 157,549,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # encoding: utf-8
"""
@author: Sunmouren
@contact: sunxuechao1024@gmail.com
@time: 2018/9/29 16:58
@desc: data change signals
"""
from django.db.models.signals import m2m_changed
from django.dispatch import receiver
from .models import Comment
@receiver(m2m_changed, sender=Comment.like_user.through)
def like_user_c... | [
"sunxuechao1024@gmail.com"
] | sunxuechao1024@gmail.com |
bf63be0f63eb2aec45ffda446384b490c422dca9 | b129b450cf5edce677f284858a1ab14c003edca6 | /project/chapter6/user.py | e2fbbd4ec01ad4e9adca8fee5e79f4ce95fe0312 | [] | no_license | mentalclear/PythonCrashCourse | 7ab5a7691cd6ece83043ded2b91049723945b6e0 | 11d96ed6c7e36d254158ee49586ee40aa09493a1 | refs/heads/master | 2023-07-18T17:24:49.046848 | 2021-08-16T14:05:08 | 2021-08-16T14:05:08 | 233,722,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | user_0 = {
'username': 'efermi',
'first': 'enrico',
'last': 'fermi',
}
for key, value in user_0.items():
print("\nKey: " + key)
print("Value: " + value)
# Fav languages sample too
favorite_languages = {
'jen': 'python',
'sarah': 'c',
'edward': 'ruby',
'phil': 'python',
}
for name, l... | [
"mentalclear@gmail.com"
] | mentalclear@gmail.com |
a991f2bbc4f316c01fa0ef216d76f54796d6cf5f | a59d55ecf9054d0750168d3ca9cc62a0f2b28b95 | /.install/.backup/lib/googlecloudsdk/gcloud/sdktools/auth/revoke.py | 563c17681dffdf72d8b48e802ca6e428a1e526f5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/google-cloud-sdk | bb2746ff020c87271398196f21a646d9d8689348 | b34e6a18f1e89673508166acce816111c3421e4b | refs/heads/master | 2022-11-26T07:33:32.877033 | 2014-06-29T20:43:23 | 2014-06-29T20:43:23 | 282,306,367 | 0 | 0 | NOASSERTION | 2020-07-24T20:04:47 | 2020-07-24T20:04:46 | null | UTF-8 | Python | false | false | 1,945 | py | # Copyright 2013 Google Inc. All Rights Reserved.
"""Revoke credentials being used by the CloudSDK.
"""
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import exceptions as c_exc
from googlecloudsdk.core import log
from googlecloudsdk.core import properties
from googlecloudsdk.core.credentials ... | [
"alfred.wechselberger@technologyhatchery.com"
] | alfred.wechselberger@technologyhatchery.com |
0bd5fa45d9a802e9ef2aad12ba344f7a145ca37c | f6688132ec14a9d03c8bb05e85819f810fd3e4e6 | /tfold/nets/nets_factory.py | 2f93c133b7f6deb9c1be5c4a6d13a25aadb0c6aa | [
"Apache-2.0"
] | permissive | mariusionescu/tfold | 44515b9eba027a8d4a9265e6f7299dc08294dc42 | b6a9913d29a62326bfc3086fa14ed317d1e02a0a | refs/heads/master | 2020-04-08T19:59:39.676558 | 2018-12-05T19:47:57 | 2018-12-05T19:47:57 | 159,679,441 | 0 | 0 | Apache-2.0 | 2018-11-29T14:33:13 | 2018-11-29T14:33:12 | null | UTF-8 | Python | false | false | 7,298 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"marius@mi.www.ro"
] | marius@mi.www.ro |
022ecb8993edbe27c3273a1472d037923525e9ec | ff8aa03818c31db7dea740d65b79f5517385ec79 | /lib/flows/general/checks_test.py | b19f9ae9dbc87be3b99214a1b50e989da81dbd48 | [
"DOC",
"Apache-2.0"
] | permissive | pchaigno/grr | cdaf4db3289cf80359441fef5be39bbf0729d3ac | 69c81624c281216a45c4bb88a9d4e4b0613a3556 | refs/heads/master | 2021-01-21T08:24:45.699745 | 2015-08-03T17:01:30 | 2015-08-03T17:01:30 | 25,120,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,783 | py | #!/usr/bin/env python
"""Test the collector flows."""
import os
from grr.client import vfs
from grr.lib import action_mocks
from grr.lib import aff4
from grr.lib import config_lib
from grr.lib import flags
from grr.lib import flow
from grr.lib import test_lib
from grr.lib.checks import checks
from grr.lib.checks impor... | [
"github@mailgreg.com"
] | github@mailgreg.com |
e3bd418f73a95ee66b1b3560cdfc93ce323bfebc | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/deploy/delivery_pipelines/describe.py | 627fd4b62b1af7f91ba485c9069aa7c4c39558ac | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 3,850 | py | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
99ede0972e7ffe258fd362c118aec60acac4a6b8 | 1034ae0e71c91b5258364e216ed724cfeed563f8 | /benchbuild/projects/benchbuild/python.py | 1a76ea30ae3b86d66b5514c305b6b900485ec4b2 | [
"MIT"
] | permissive | PolyJIT/benchbuild.projects | 4367b27f8380fc036ac8bc1ec5a767f29fdf18d6 | 878e2906aff2ae13abdd7f8515b8643bc7cf1f15 | refs/heads/master | 2020-12-20T14:07:01.130075 | 2020-01-24T23:42:54 | 2020-01-24T23:42:54 | 236,102,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | from plumbum import local
from benchbuild.project import Project
from benchbuild.environments import container
from benchbuild.source import HTTP
from benchbuild.utils.cmd import make, tar
class Python(Project):
""" python benchmarks """
NAME: str = 'python'
DOMAIN: str = 'compilation'
GROUP: str = ... | [
"simbuerg@fim.uni-passau.de"
] | simbuerg@fim.uni-passau.de |
17caa79403632a3b3f95dbf1c801017b4f05e9e9 | 8e2e28a191fa5ec5a6c070ec7e9ccad98c8b4a0b | /test/26-踢足球游戏.py | abb3a54a35b9b9bb2ac3c5ace47cca32545f1481 | [
"Apache-2.0"
] | permissive | kellanfan/python | 4cd61cbc062e2eee3a900fa7447ca5f0b8f1a999 | 912dc05a3bd0ded9544166a68da23ca0a97b84da | refs/heads/master | 2023-04-06T03:04:38.851928 | 2023-04-01T02:45:56 | 2023-04-01T02:45:56 | 65,542,280 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | # pylint: disable=no-member
# -*- encoding: utf-8 -*-
'''
@File : 26-踢足球游戏.py
@Time : 2019/05/13 12:02:17
@Author : Kellan Fan
@Version : 1.0
@Contact : kellanfan1989@gmail.com
@Desc : None
'''
# here put the import lib
from random import choice
def kick():
direction = ['right','centor','l... | [
"icyfk1989@163.com"
] | icyfk1989@163.com |
a6d8127d0f13569d36182f1a485ab2c96da12105 | 5530d0d6e37e89f0f5b54b2f192c836f8f6ca24e | /gypfiles/toolchain.gypi | bb016e72a28c402edbed71272a5284682edc2406 | [
"BSD-3-Clause",
"bzip2-1.0.6"
] | permissive | smishenk/v8 | 96f63c1f9e4d0f2d1cc6909405d74a8b93393180 | 2d7ea2277846fb99d3e4d1d926421248801f80b7 | refs/heads/master | 2021-01-12T21:09:37.011400 | 2015-03-19T13:35:38 | 2016-05-12T12:42:53 | 46,791,557 | 0 | 0 | null | 2015-11-24T12:54:35 | 2015-11-24T12:54:35 | null | UTF-8 | Python | false | false | 47,229 | gypi | # Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
7f850a7311c4ab54b2e4f5163041ce9a69043473 | 10717fe6f68c4ee9bcf27ee62e89581f4a030b8e | /extractor/yinyuetai.py | f2d6b0987afa3d3aec66c8646cac574045296fd1 | [] | no_license | HagerHosny199/Testing_Project | ff7f9a54b7a213c9d9ade0c5192845c2a29adc8b | 9bc170263e239cc24ccfb2aa33b9913ff799ffe9 | refs/heads/master | 2020-05-17T20:57:01.750640 | 2019-05-08T22:13:06 | 2019-05-08T22:13:06 | 183,954,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from utils import ExtractorError
class YinYueTaiIE(InfoExtractor):
IE_NAME = 'yinyuetai:video'
IE_DESC = '音悦Tai'
_VALID_URL = r'https?://v\.yinyuetai\.com/video(?:/h5)?/(?P<id>[0-9]+)'
_TESTS = [{
'url':... | [
"hagarhosny19@gmail.com"
] | hagarhosny19@gmail.com |
dd14425012d9898f41e0b4d01a2bf77781ef2e0f | dc7cdeecb1ed52a7bdd18cd20c69aa43897f0830 | /tests/test_client.py | 30074fd13d9005482b77f433b0d3db42355a31fb | [
"MIT"
] | permissive | hurricane1260/wechatpy | 421b0a27b78bbb3bcc33bc6e6685b6beacd55dde | 0d7916e1a894f208dcea18b33803751166378c3d | refs/heads/master | 2021-01-17T18:37:14.535895 | 2014-11-02T16:27:31 | 2014-11-02T16:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import os
import unittest
import six
from httmock import urlmatch, HTTMock, response
from wechatpy import WeChatClient
from wechatpy._compat import json
_TESTS_PATH = os.path.abspath(os.path.dirname(__file__))
_FIXTURE_PATH = os.path.jo... | [
"messense@icloud.com"
] | messense@icloud.com |
e6856f744724e6cea8dfb6a8c977e79fefe77c2a | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_workflow_task_definition.py | 6383f9477bc25ea8445ff05bcb735a47813a139b | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,947 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
8ed1681fc62924eb80b4530f47c9b3d96fe5780c | d4f1bd5e52fe8d85d3d0263ede936928d5811bff | /Python/Problem Solving/BOJ/boj4447.py | 78b645da41f81e8c32a268b9227f79879a0f3d92 | [] | no_license | ambosing/PlayGround | 37f7d071c4402599995a50cac1e7f1a85c6d10dd | 0d5262dbb2fa2128ecb3fd969244fa647b104928 | refs/heads/master | 2023-04-08T04:53:31.747838 | 2023-03-23T06:32:47 | 2023-03-23T06:32:47 | 143,112,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | for _ in range(int(input())):
g_cnt = 0
b_cnt = 0
s = input()
g_cnt = s.count("g") + s.count("G")
b_cnt = s.count("b") + s.count("B")
if g_cnt > b_cnt:
print("%s is GOOD" % s)
elif g_cnt < b_cnt:
print("%s is A BADDY" % s)
else:
print("%s is NEUTRAL" % s)
| [
"ambosing_@naver.com"
] | ambosing_@naver.com |
5bedc972f286c59f96ef05600017bc9acb6d35bf | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/xac.py | 88dad3260b5a8193be2b8e255bd7c20ce6d9cf58 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
437621c6e78ad2b8f5d18b9dee728605c4e2ab83 | 5b4fe473179b5fadaf59ec96d55b2ec4cb326f65 | /test/runtime/frontend_test/chainer_test/deconvolution_2d_test.py | aefdcd02fcb65a69c034af9228ac2b131f2cd466 | [
"Zlib",
"MIT"
] | permissive | TarrySingh/webdnn | 13d3f1ec4936916abacfb67e270f48571e2fcff2 | b31b19de0798d8ca198b78d19cb06e4fce1bc260 | refs/heads/master | 2021-05-07T02:24:47.500746 | 2017-11-13T13:00:24 | 2017-11-13T13:00:24 | 110,582,816 | 0 | 1 | null | 2017-11-13T18:03:46 | 2017-11-13T18:03:46 | null | UTF-8 | Python | false | false | 1,218 | py | import chainer
import numpy as np
from test.util import generate_kernel_test_case, wrap_template
from webdnn.frontend.chainer.converter import ChainerConverter
@wrap_template
def template(ksize=3, stride=1, pad=0, nobias=True, description=""):
link = chainer.links.Deconvolution2D(4, 10, ksize=ksize, stride=strid... | [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
b0929f0060f43e6b4f8c23bb6e328c6a8eba810c | 00d7e9321d418a2d9a607fb9376b862119f2bd4e | /utils/html_listdir.py | 95e8bd4b432f439975c4e5bad7b9591c6079d854 | [
"MIT"
] | permissive | baluneboy/pims | 92b9b1f64ed658867186e44b92526867696e1923 | 5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13 | refs/heads/master | 2021-11-16T01:55:39.223910 | 2021-08-13T15:19:48 | 2021-08-13T15:19:48 | 33,029,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | #!/usr/bin/env python
import os
# customize as needed
def is_hz_file(filename):
return 'hz_' in filename
def createHTML(input_dir, output_html, predicate=None):
files = os.listdir(input_dir)
files.sort(reverse=True)
with open(output_html, "w") as f:
f.write("<html><body><ul>\n")
for f... | [
"ken@macmini3.local"
] | ken@macmini3.local |
536c72531fb568599059bffe6a9f02954ffcda14 | efdadd6e203b362531f342129040c592d4078936 | /bin/wheel | 9ae90fd44c2312bf46e13f0888ec161f5fac19d9 | [] | no_license | rameshkonatala/ML_coursera | 7ce57bc1d16f8de1258bbea49ff726145f7dea1b | 6e7413e70da82932834dc88cd52d878f2b4d53da | refs/heads/master | 2021-01-23T07:49:47.588761 | 2017-06-08T09:16:16 | 2017-06-08T09:16:16 | 86,448,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | #!/home/ramesh/Desktop/ML_coursera/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"konatalaramesh@gmail.com"
] | konatalaramesh@gmail.com | |
c04ae99a874b0f3d9592e05d4a459edae6af9a79 | e4183adfc4ffc9ba7c464160d4fa1ccecdeb6b69 | /scripts/gen_hcd_random.py | ef03523b1be0f9db297e4a755138cded9d5a1eef | [] | no_license | akrherz/LADOT | 0013597e6ef26077b6db08d48cb9f5b4fb6b9d6c | a3a689429dea1713760378f0c353a3a8834abe0a | refs/heads/master | 2016-09-05T15:53:58.668906 | 2015-11-02T21:00:38 | 2015-11-02T21:00:38 | 16,581,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,136 | py | """
Generate .hcd file for Pavement Design Guide
YYYYMMDDHH,Temperature (F),Wind speed (mph),% Sun shine, Precipitation,
Relative humidity.
"""
import math
import numpy as np
import netCDF4
import mx.DateTime
import subprocess
periods = [
[mx.DateTime.DateTime(1970,1,1), mx.DateTime.DateTime(1974,12,31)],
[... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
78be2980e4abff671aec736dc918fc381e2e9ae8 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/matplotlib/2017/12/test_image.py | c66f1f1eecad09909f8a4025a8d4df300252dd2c | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 26,207 | py | from __future__ import absolute_import, division, print_function
import six
from copy import copy
import io
import os
import warnings
import numpy as np
from numpy import ma
from numpy.testing import assert_array_equal
from matplotlib import (
colors, image as mimage, mlab, patches, pyplot as plt,
rc_contex... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
6427606cdfb9e8ac014d88fa3a9a64784d4caf6e | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/test_detection_config_async.py | 3b7c25326bf9cc5cd045fe1e2a69425c332810d0 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 59,013 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import py... | [
"noreply@github.com"
] | hivyas.noreply@github.com |
d62acf7a2f6c04a99d7d888c3b7f1b86e68b4223 | 1342deb03620f60f0e91c9d5b579667c11cb2d6d | /3rd/pil_test2.py | 9bc143f0720b8aae2d5edb76b3fcd7307e3fd1a9 | [] | no_license | ahuer2435/python_study | 678501ff90a9fc403105bff7ba96bcf53c8f53e2 | 8a7cc568efefdc993c5738ffa2100c2e051acdb7 | refs/heads/master | 2021-01-15T18:00:43.851039 | 2018-04-04T05:37:50 | 2018-04-04T05:37:50 | 99,775,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
import Image,ImageFilter
im = Image.open("./test.jpg")
im2 = im.filter(ImageFilter.BLUR)
im2.save("./test2.jpg","jpeg")
#使用ImageFilter模块使图像变模糊。 | [
"18221079843@139.com"
] | 18221079843@139.com |
4b6ef532a08cccc3f197c7a8b880fd26edb0bc16 | 813b0d666d9ff31644814d35ab9ca26eab5b66e7 | /demo/q_model_demo.py | 4d1c01ebd1b49ce5269215c80ba9280443a1dd3b | [] | no_license | Seraphli/TankAI | 81548c74868ed52b32972b9ae8cd39def1c2b4b8 | 79020201e07d90eb6cbfe542147252b668d65d1e | refs/heads/master | 2020-04-05T11:57:48.251054 | 2018-11-01T09:02:32 | 2018-11-01T09:02:32 | 156,852,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | from tank.env import Env
from qlearn.q_learn import QLearn as AI
from qlearn.state import State
import numpy as np
import time
ai = AI('tank_test', 5, False)
ai.epsilon = 0.01
ai.nn.load('./model')
env = Env()
for g_id in range(10):
ai.logger.debug(f'=== Game start ===')
end = env.reset()
ai.logger.debug(f... | [
"seraphlivery@gmail.com"
] | seraphlivery@gmail.com |
7701324dac2ab0297fab37a0659b155df30e6258 | 6df0d7a677129e9b325d4fdb4bbf72d512dd08b2 | /PycharmProjects/my_python_v03/spider/pingpangball.py | 5fb5d4dcbb27a14b8d00e96072d6a49500c5b795 | [] | no_license | yingxingtianxia/python | 01265a37136f2ad73fdd142f72d70f7c962e0241 | 3e1a7617a4b6552bce4a7e15a182f30e1bae221e | refs/heads/master | 2021-06-14T15:48:00.939472 | 2019-12-13T05:57:36 | 2019-12-13T05:57:36 | 152,200,507 | 0 | 0 | null | 2021-06-10T20:54:26 | 2018-10-09T06:40:10 | Python | UTF-8 | Python | false | false | 1,664 | py | #!/usr/bin/env python3
#__*__coding: utf8__*__
import pygame
from pygame.locals import *
from sys import exit
import random
basket_x = 0
basket_y = 600
ball_x = 10
ball_y = 10
screen_width = 1000
screen_height = 800
score = 0
pygame.init()
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.displ... | [
"root@room8pc205.tedu.cn"
] | root@room8pc205.tedu.cn |
b9b704a2706e4fbeac5baf13eb273c69a7d11a4f | 0093f254452db5f88803ea628374fa3c7cb90a9b | /single_class_lab_start_code/team_class/tests/team_test.py | fe7333549c4587ffec356d8a197e2b1f2004ecec | [] | no_license | klamb95/classes_lab | 571b7917a0e3e3b8d9935250df08b6e6328b27c8 | 7a450335b1c925372232c7b1631f62434cb32230 | refs/heads/main | 2023-03-30T21:46:04.600475 | 2021-04-05T14:47:39 | 2021-04-05T14:47:39 | 354,841,095 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | import unittest
from src.team import Team
class TestTeam(unittest.TestCase):
def setUp(self):
players = ["Derice Bannock", "Sanka Coffie", "Junior Bevil", "Yul Brenner"]
self.team = Team("Cool Runnings", players, "Irv Blitzer")
#@unittest.skip("delete this line to run the test")
def test_t... | [
"klamb1995@gmail.com"
] | klamb1995@gmail.com |
ec9bf3a1657578cef3c799a64c88df9d2330ab36 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02801/s476351492.py | b420a8db4e4113e395c824a3e2527764c60322bc | [] | 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 | 126 | py | c = input()
s = list('abcdefghijklmnopqrstuvwxyz')
for i in range(25):
if c == s[i]:
print(s[i+1])
exit() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
082e25c98d24038da1c0d418b1754b577b7e5b3f | d3b77550a40b860970450e702b6bcd28d5f9b3e4 | /LeetCode/code_night/reverse_string.py | ea53e4669e81124fafeac0940165a0e8030ec430 | [] | no_license | CateGitau/Python_programming | 47bc9277544814ad853b44a88f129713f1a40697 | 6ae42b3190134c4588ad785d62e08b0763cf6b3a | refs/heads/master | 2023-07-08T03:08:46.236063 | 2021-08-12T09:38:03 | 2021-08-12T09:38:03 | 228,712,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 8 03:58:29 2020
@author: aims
"""
text = ["h","e","l","l","o"]
i = 0
j = len(text)- 1
while i<j:
text[i], text[j] = text[j], text[i]
i+=1
j-=1
print(text) | [
"catherinegitau94@gmail.com"
] | catherinegitau94@gmail.com |
9a0e5d2e12de67097ad5e464ddf79e47e12149f5 | f1238c2f2079cd4fdf63cf47fe8a389f77d256fc | /homeassistant/helpers/event.py | 3934a6c52ef9f55cbcfb2c63a0aa2a02d2371b39 | [
"MIT"
] | permissive | williamluke4/home-assistant | 2d305b7133303829c38946bf5b1a626e46488d61 | 2e899bd61c0ff5ae4d576ff3cb8413fc90534e43 | refs/heads/dev | 2023-04-07T01:26:13.029469 | 2016-01-04T02:39:21 | 2016-01-04T02:39:21 | 48,983,167 | 0 | 0 | MIT | 2023-04-03T23:42:14 | 2016-01-04T08:09:21 | Python | UTF-8 | Python | false | false | 5,557 | py | """
Helpers for listening to events
"""
import functools as ft
from ..util import dt as dt_util
from ..const import (
ATTR_NOW, EVENT_STATE_CHANGED, EVENT_TIME_CHANGED, MATCH_ALL)
def track_state_change(hass, entity_ids, action, from_state=None,
to_state=None):
"""
Track specific s... | [
"paulus@paulusschoutsen.nl"
] | paulus@paulusschoutsen.nl |
94ef87477fd68dd839dab16fcf06f7519b4e6eb8 | e7a87d9eca87d8be7b23b3a57c1d49f0ad6d20bc | /django_evolution/models.py | 5ca35457a74747a0aed0aa4be52aed585f71386c | [
"BSD-2-Clause"
] | permissive | beanbaginc/django-evolution | 19a775a223b61861f503925216fb236b822122c0 | 756eedeacc41f77111a557fc13dee559cb94f433 | refs/heads/master | 2023-06-22T07:25:32.401292 | 2022-11-10T03:23:50 | 2022-11-10T03:23:50 | 14,189,401 | 22 | 13 | null | 2015-01-07T01:15:08 | 2013-11-07T00:04:43 | Python | UTF-8 | Python | false | false | 8,738 | py | """Database models for tracking project schema history."""
from __future__ import unicode_literals
import json
from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.signals import post_init
from django.utils.timezone import now
from django_evolution.compat import six
... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
18187ad1700d5c8dae585133239b763f6a402a8d | c4a57dced2f1ed5fd5bac6de620e993a6250ca97 | /huaxin/huaxin_restful_service/restful_xjb_service/v1_services_account_matchsalarycard_entity.py | c33344a6c2cb1dc4e942635adb7d56ee975d07c7 | [] | no_license | wanglili1703/firewill | f1b287b90afddfe4f31ec063ff0bd5802068be4f | 1996f4c01b22b9aec3ae1e243d683af626eb76b8 | refs/heads/master | 2020-05-24T07:51:12.612678 | 2019-05-17T07:38:08 | 2019-05-17T07:38:08 | 187,169,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | import json
from code_gen.lib.basic_troop_service_entity_handler import BasicTroopServiceEntityHandler
DOMAIN_NAME = u'10.199.111.2'
URL = u'http://%s/V1/services/account/matchSalaryCard'
BODY_DATA = u'{}'
_BODY_DATA = ''
if BODY_DATA:
_BODY_DATA = json.loads(BODY_DATA)
QUERY_DATA = ''
METHOD_TYPE = u'post'
CONTEN... | [
"wanglili@shhxzq.com"
] | wanglili@shhxzq.com |
7f0e2f52088c6e75b7368d2a10b3685d21df0cfd | af6e7f0927517375cb4af833f4c52e301bad0af5 | /corpus_processor/topic_aware/filter_qa_corpus_by_douban_tags.py | 92a050d0aef2a7f2289a7de7ace4392858d4757f | [] | no_license | wolfhu/DialogPretraining | 470334fd815e1299981b827fdc933d237a489efd | eeeada92146d652d81ca6e961d1298924ac8435d | refs/heads/main | 2023-06-25T15:22:54.728187 | 2021-07-21T01:40:23 | 2021-07-21T01:40:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | # encoding: utf-8
import sys
import json
from util.trie import Trie
douban_tag_file_path = '/home/t-yuniu/xiaoice/yuniu/dataset/douban_title/douban_title.json'
tag_black_dict = {}
tag_black_dict.setdefault('游戏', True)
tag_trie = Trie()
def detect_tag(sentence):
"""
Judge if sentence contain as least a ta... | [
"yuwu1@microsoft.com"
] | yuwu1@microsoft.com |
4a223198785e6cf114ac528d49f2445079b91eae | 392e81cad1a563eb3a63c38e4d32782b14924cd2 | /openregistry/lots/loki/tests/blanks/transferring.py | 0775b6747de9ab5526e2e8d09bc6479b4f081441 | [
"Apache-2.0"
] | permissive | EBRD-ProzorroSale/openregistry.lots.loki | 8de71ee4e6a0db5f3fb6e527658722f7a664fc1a | 178768ca5d4ffefa428740502bce0ef48d67aa61 | refs/heads/master | 2020-09-29T17:57:00.696627 | 2019-06-25T09:07:22 | 2019-06-25T09:07:22 | 227,088,853 | 0 | 0 | Apache-2.0 | 2019-12-10T10:19:08 | 2019-12-10T10:19:07 | null | UTF-8 | Python | false | false | 1,028 | py | # -*- coding: utf-8 -*-
def switch_mode(self):
# set test mode and try to change ownership
auth = ('Basic', (self.first_owner, ''))
self.__class__.resource_name = self.resource_name
resource = self.create_resource(auth=auth)
resource_access_transfer = self.resource_transfer
self.__class__.re... | [
"leitsius@gmail.com"
] | leitsius@gmail.com |
5478e186191f05f9c3c4401549ee3ff8e1687157 | d308fffe3db53b034132fb1ea6242a509f966630 | /pirates/effects/HitStar.py | be3298d218d9fc5e5af3d31213510d77d2b026f3 | [
"BSD-3-Clause"
] | permissive | rasheelprogrammer/pirates | 83caac204965b77a1b9c630426588faa01a13391 | 6ca1e7d571c670b0d976f65e608235707b5737e3 | refs/heads/master | 2020-03-18T20:03:28.687123 | 2018-05-28T18:05:25 | 2018-05-28T18:05:25 | 135,193,362 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,103 | py | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.effects.HitStar
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.particles import Part... | [
"33942724+itsyaboyrocket@users.noreply.github.com"
] | 33942724+itsyaboyrocket@users.noreply.github.com |
94666a658e5cb75a54cc8eeee091a7c8ead1b8ed | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_262/ch3_2020_03_02_17_05_54_018019.py | 2faec9a442bc949e97a0ac509db5996e9bbdcd9b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | import math
def calcula_gaussiana(x,μ,σ):
s=(1**(-1/2)*(x-μ/σ)**2)/σ**1/2*2*math.pi
return s | [
"you@example.com"
] | you@example.com |
bc9ec64559d8ddc0d928b45b24d931e67b5b2478 | f49758370f6cea9f154847ba663b357d9f3f1742 | /lib/mathShape/cmd_exportCurrentFont.py | bf583d2e0ff89292ec5bf64365fffce6e2fa9848 | [
"BSD-3-Clause"
] | permissive | gr91/responsiveLettering | 7ff34aac81da0c334dabe5c5b8494f31d1c9ae2c | 00550eefb17f927442bb342d165495aeeb5f4547 | refs/heads/master | 2020-12-29T00:01:12.259874 | 2016-05-03T12:35:18 | 2016-05-03T12:35:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,705 | py | # -*- coding: utf-8 -*-
import os
import json
import vanilla
from mojo.UI import *
from AppKit import NSColor
from exportTools import makeSVGShape, makeMaster
import makePage
reload(makePage)
from makePage import PageMaker
import tempfile
class ExportUI(object):
shapeColorLibKey = "com.letterror.mathshape.prev... | [
"erik@letterror.com"
] | erik@letterror.com |
2bced5615b9527f6da87e4a188c01cf1caa2d008 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/python/ops/bitwise_ops_test.py | a54f76c6da8a73255621281de950eac643a22a4e | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,208 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
a80ff9f1386aa36409ab1e29afa7136b24ce7cf5 | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-framework-UserNotifications/PyObjCTest/test_unnotificationcontent.py | 07f1f32f52d7b614a570c4574cae012390965548 | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | from PyObjCTools.TestSupport import TestCase, min_sdk_level, min_os_level
import UserNotifications
import objc
class TestUNNotificationContent(TestCase):
def test_constants(self):
self.assertEqual(UserNotifications.UNNotificationInterruptionLevelPassive, 0)
self.assertEqual(UserNotifications.UNNot... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
bfd02018abdd0ca950150f959ccfe9a90d5e08e0 | cc95bf6a35fa6e17cfc87867a531b1fc01f1e49a | /py/rsync_dash_changes/rsync_dash_changes.py | 2ae7a019127a9344351854c81892bc3f466289a9 | [] | no_license | SMAPPNYU/smapputil | d88d9c65c79afd6a65f7cb991c09015f53ccff0a | 242a541c1e8687e003c37f1807a92112423b40d6 | refs/heads/master | 2023-01-04T03:09:34.725955 | 2019-06-25T15:37:07 | 2019-06-25T15:37:07 | 50,049,153 | 7 | 3 | null | 2022-12-26T20:24:55 | 2016-01-20T18:01:30 | Python | UTF-8 | Python | false | false | 4,010 | py | import os, sys, csv
import logging
import paramiko
import argparse
import subprocess
from os.path import expanduser
def paramiko_list_crontab(collector_machine, username, key):
logger = logging.getLogger(__name__)
# login to paramiko and list the crontab
ssh = paramiko.SSHClient()
ssh.load_system_hos... | [
"yvanscher@gmail.com"
] | yvanscher@gmail.com |
a174ee4171661f8f51a4134585318720494b7f9c | 870639af1487cf59b548f56c9cd1a45928c1e2c2 | /homeassistant/components/renault/const.py | 2a0ea3a0d491d12cc02ae3fb6c36daf208f1c918 | [
"Apache-2.0"
] | permissive | atmurray/home-assistant | 9f050944d26c084f8f21e8612a7b90c0ae909763 | 133cb2c3b0e782f063c8a30de4ff55a5c14b9b03 | refs/heads/dev | 2023-03-19T04:26:40.743852 | 2021-11-27T05:58:25 | 2021-11-27T05:58:25 | 234,724,430 | 2 | 0 | Apache-2.0 | 2023-02-22T06:18:36 | 2020-01-18T11:27:02 | Python | UTF-8 | Python | false | false | 826 | py | """Constants for the Renault component."""
from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN
from homeassistant.components.device_tracker import DOMAIN as DEVICE_TRACKER_DOMAIN
from homeassistant.components.select import... | [
"noreply@github.com"
] | atmurray.noreply@github.com |
c167a5ed864f0c71faeaa6557cdedbd3318036e3 | bb970bbe151d7ac48d090d86fe1f02c6ed546f25 | /arouse/_dj/db/models/sql/datastructures.py | 8cd5c8082763c6c5b5c61f9a8c74fca055a950b4 | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | thektulu/arouse | 95016b4028c2b8e9b35c5062a175ad04286703b6 | 97cadf9d17c14adf919660ab19771a17adc6bcea | refs/heads/master | 2021-01-13T12:51:15.888494 | 2017-01-09T21:43:32 | 2017-01-09T21:43:32 | 78,466,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,623 | py | """
Useful auxiliary data structures for query construction. Not useful outside
the SQL domain.
"""
from arouse._dj.db.models.sql.constants import INNER, LOUTER
class EmptyResultSet(Exception):
pass
class MultiJoin(Exception):
"""
Used by join construction code to indicate the point at which a
multi... | [
"michal.s.zukowski@gmail.com"
] | michal.s.zukowski@gmail.com |
bb8dcd4996df41998cc78aeffd36cfdb322f4fde | d308fffe3db53b034132fb1ea6242a509f966630 | /pirates/leveleditor/worldData/kingshead_area_island.py | 60f13af8888c6eadc7c5279689d11d8194a1b1d6 | [
"BSD-3-Clause"
] | permissive | rasheelprogrammer/pirates | 83caac204965b77a1b9c630426588faa01a13391 | 6ca1e7d571c670b0d976f65e608235707b5737e3 | refs/heads/master | 2020-03-18T20:03:28.687123 | 2018-05-28T18:05:25 | 2018-05-28T18:05:25 | 135,193,362 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 350,445 | py | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.leveleditor.worldData.kingshead_area_island
from pandac.PandaModules import Point3, VBase3, Vec4, Vec3
objectStruct = {'Interact... | [
"33942724+itsyaboyrocket@users.noreply.github.com"
] | 33942724+itsyaboyrocket@users.noreply.github.com |
df53c41904066323666c62a3aee1435fa56e1656 | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-Cocoa-2.5.1/Examples/Twisted/WebServicesTool/Main.py | 03773e75ad513f0b55d85bedd372b220d75cb187 | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 299 | py | import sys
from PyObjCTools import AppHelper
from twisted.internet._threadedselect import install
reactor = install()
# import classes required to start application
import WSTApplicationDelegateClass
import WSTConnectionWindowControllerClass
# pass control to the AppKit
AppHelper.runEventLoop()
| [
"opensource@apple.com"
] | opensource@apple.com |
6f42b29f6189ff7c8f8ff3c4b7144ce247a6c9d6 | 131cf803a1f7b9638ab0a604d61ab2de22906014 | /tests/system/_test_send_data_log.py | 9de000f4cc9269b98beb90050bb6822169108554 | [
"Apache-2.0"
] | permissive | dimensigon/dimensigon | 757be1e61e57f7ce0a610a9531317761393eaad0 | 079d7c91a66e10f13510d89844fbadb27e005b40 | refs/heads/master | 2023-03-09T06:50:55.994738 | 2021-02-21T11:45:01 | 2021-02-21T11:45:01 | 209,486,736 | 2 | 0 | Apache-2.0 | 2021-02-26T02:59:18 | 2019-09-19T07:11:35 | Python | UTF-8 | Python | false | false | 7,017 | py | import os
import time
from asynctest import patch, TestCase
from testfixtures import LogCapture
from dimensigon.domain.entities.log import Log
from dimensigon.utils.helpers import encode
from dimensigon.web import create_app, repo, interactor
from tests.helpers import set_response_from_mock, wait_mock_called
from tes... | [
"joan.prat@knowtrade.eu"
] | joan.prat@knowtrade.eu |
70bd17e954d28ddca64b7dd70aeef2d4453d70f9 | bb876209ee0dd24e0e8703776993ddae574ab2e5 | /scheduler/models.py | 9c07645aebb37f7d8df20ca56a431bd48cf57a5d | [] | no_license | VBGI/scheduler | 76e382e50198749f458e0ca42801c509c1223c5e | bab7994499399b00f5132950a8a8c15ae5f2725b | refs/heads/master | 2020-12-25T14:12:42.235567 | 2019-05-28T23:30:45 | 2019-05-28T23:30:45 | 61,006,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | #coding: utf-8
import datetime
from django.db import models
from django.utils import timezone
from django.utils.translation import gettext as _
from cms.models.pluginmodel import CMSPlugin
from django.contrib.auth import get_user_model
import uuid
class ScheduleName(models.Model):
name = models.CharField(max_l... | [
"kislov@easydan.com"
] | kislov@easydan.com |
eea43de376cb897b20a61bb982a7b05e4f2fae81 | 453ca12d912f6498720152342085636ba00c28a1 | /leetcode/design/python/moving_average_from_data_stream.py | 55d1641ad0ec216e4ab718f3c23ae61e9a5ad5d4 | [] | no_license | yanbinkang/problem-bank | f9aa65d83a32b830754a353b6de0bb7861a37ec0 | bf9cdf9ec680c9cdca1357a978c3097d19e634ae | refs/heads/master | 2020-06-28T03:36:49.401092 | 2019-05-20T15:13:48 | 2019-05-20T15:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | """
https://leetcode.com/problems/moving-average-from-data-stream/
Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window.
Example:
MovingAverage m = new MovingAverage(3);
m.next(1) = 1
m.next(10) = (1 + 10) / 2
m.next(3) = (1 + 10 + 3) / 3
m.next(5) = (10 + ... | [
"albert.agram@gmail.com"
] | albert.agram@gmail.com |
eca07cb004b4613516ccb414988d5bb9a8e160c7 | 6a253ee7b47c5f70c826bbc97bb8e33cd1dab3b6 | /1.Working with Big Data/Filtering WDI data in chunks.py | 47f95bac4b95fdcdf114f490697e9b72817d33e9 | [] | no_license | Mat4wrk/Parallel-Programming-with-Dask-in-Python-Datacamp | 19a646d6d16ff46173964c25639ff923407c8f32 | 535f69b78adb50cffc7f402f81ddff19f853eea1 | refs/heads/main | 2023-03-06T19:52:39.495066 | 2021-02-13T13:27:06 | 2021-02-13T13:27:06 | 338,565,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Create empty list: dfs
dfs = []
# Loop over 'WDI.csv'
for chunk in pd.read_csv('WDI.csv', chunksize=1000):
# Create the first Series
is_urban = chunk['Indicator Name']=='Urban population (% of total)'
# Create the second Series
is_AUS = chunk['Country Code']=='AUS'
# Create the filtered chunk: f... | [
"noreply@github.com"
] | Mat4wrk.noreply@github.com |
cf384d5aaa2c2e59d5a966f204789d3d44decda4 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc010/abc010_3/8100691.py | 6ae85719796706bdbb385f17a52778fd58ebedee | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | tmp = list(map(int, input().split()))
t = [[tmp[0], tmp[1]], [tmp[2], tmp[3]]]
T = tmp[4]
V = tmp[5]
n = int(input())
home = [list(map(int, input().split())) for i in range(n)]
def dis(a, b, c, d):
return (abs(c-a)**2 + abs(d-b)**2)**0.5
for i in range(n):
tmp = 0
d = dis(t[0][0], t[0][1], home[i][0], h... | [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
c1bef48cd261ed57b3cab96e4aa30c381dbf94b6 | 53ae656e1e06c6ef46e2222043ae49b0c005218c | /pdfstream/callbacks/composer.py | 2641a2f65fd3d93d93d5f9958c9cb420c9a19b2f | [
"BSD-3-Clause"
] | permissive | st3107/pdfstream | de5e6cedec0f4eb034dc7a8fec74f0dd773d6260 | 6e1829d889e5f5400386513efe993ad0596da8a5 | refs/heads/master | 2023-02-15T21:13:56.288827 | 2021-01-14T01:02:39 | 2021-01-14T01:02:39 | 315,751,081 | 0 | 0 | BSD-3-Clause | 2020-11-24T20:59:20 | 2020-11-24T20:59:20 | null | UTF-8 | Python | false | false | 1,805 | py | """Event model run composer from files."""
import time
import typing as tp
import uuid
import numpy as np
from event_model import compose_run, ComposeDescriptorBundle
def gen_stream(
data_lst: tp.List[dict],
metadata: dict,
uid: str = None
) -> tp.Generator[tp.Tuple[str, dict], None, None]:
"""Genera... | [
"st3107@columbia.edu"
] | st3107@columbia.edu |
7eb3bbc5bac236563777724a446040038ea1a596 | 205be8d429df36e27cdfc048bfca9212c5a62a87 | /env/bin/pip3 | e8e16f9ea539e3d0d10e41c86176dad493bfce75 | [] | no_license | KennyChrisUmurundi/HOsto | 16c8f926282fc48c981532447f1685fbbc2b457c | 33fa31524a08934f3deb8f622a1b1554d8ef1af4 | refs/heads/master | 2022-04-01T02:42:39.146227 | 2020-01-07T11:44:08 | 2020-01-07T11:44:08 | 193,458,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | #!/home/jason/project/hosto/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ndayikennysmuusic@gmail.com"
] | ndayikennysmuusic@gmail.com | |
bfb366650bfeb39f05a2007bb95d868bc8e7e798 | 049d0f7e867b7454e8cec70f1b46f96960be0d1b | /contact_model/admin.py | 68d8097941409cb539835c4283c950efa005055a | [] | no_license | Dimas4/StartApp-BackEnd | 8f06f9f73062ffe8dbffdfc28f3962551f5926b7 | 96a2b62d789408dcb8a1e90142aacae2e54d97c8 | refs/heads/master | 2020-03-30T03:59:09.845794 | 2018-09-28T19:16:35 | 2018-09-28T19:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.contrib import admin
from .models import Contact
admin.site.register(Contact)
| [
"ivanshatukho@yandex.ru"
] | ivanshatukho@yandex.ru |
e2be5f3aac3643696d95714676176f061a50f3d0 | f195c155cea434ec4f300f149ee84ecb3feb3cbc | /2019/08 August/dp08252019.py | 2ae41c879f7eaf13b9d1ccef4c4acab76f43bf91 | [
"MIT"
] | permissive | ourangzeb/DailyPracticeProblemsDIP | 7e1491dbec81fa88e50600ba1fd44677a28559ad | 66c07af88754e5d59b243e3ee9f02db69f7c0a77 | refs/heads/master | 2022-04-08T15:51:06.997833 | 2020-02-24T05:51:11 | 2020-02-24T05:51:11 | 257,056,516 | 1 | 0 | MIT | 2020-04-19T17:08:23 | 2020-04-19T17:08:22 | null | UTF-8 | Python | false | false | 1,223 | py | # This problem was recently asked by Google:
# You are given a hash table where the key is a course code, and the value is a list of all the course codes
# that are prerequisites for the key. Return a valid ordering in which we can complete the courses.
# If no such ordering exists, return NULL.
import operator
def ... | [
"vishrutkmr7@gmail.com"
] | vishrutkmr7@gmail.com |
97b49a82997a7b5e9e070a347ec462d9e32909cc | 3d8871ed3dc79f47c2972b6169f1e7d169276a5e | /tests/examples/test_sirs.py | 8fcf1d9fdddde4e61ec4970d2f89f6c639ef1220 | [
"MIT"
] | permissive | clprenz/de_sim | 70bb19af92cc611e2ba0ab8578aed1300d4cd148 | 3944a1c46c4387a78e1c412d760b7f6ade27a1c0 | refs/heads/master | 2022-11-18T14:27:50.033529 | 2020-07-15T19:54:40 | 2020-07-15T19:54:40 | 280,269,848 | 0 | 0 | MIT | 2020-07-16T22:15:47 | 2020-07-16T22:15:46 | null | UTF-8 | Python | false | false | 2,906 | py | """ Test SIR model
:Author: Arthur Goldberg <Arthur.Goldberg@mssm.edu>
:Date: 2020-07-09
:Copyright: 2020, Karr Lab
:License: MIT
"""
import unittest
import random
import warnings
from capturer import CaptureOutput
from de_sim.examples.sirs import SIR, SIR2, RunSIRs
class TestSIRs(unittest.TestCase):
""" Test ... | [
"artgoldberg@gmail.com"
] | artgoldberg@gmail.com |
e8866fd37a49161f55b890db8ddbc65e28b002a8 | 2f5ede8cdd60198f636a3ceba114e9a1e8ed8300 | /app/blog/__init__.py | bf8a16654d6b04a56a187eb703641e22b5766022 | [
"MIT"
] | permissive | AryaEver/market | b8b1d7dac4e780330cee49184851a15f8402f0ae | 03149871e9c309f7676d878fdea5441398a84571 | refs/heads/main | 2023-06-23T06:19:28.044240 | 2021-07-11T17:28:10 | 2021-07-11T17:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from app.blog.views import blog # noqa
from app.blog import errors # noqa
| [
"aniekanokono@gmail.com"
] | aniekanokono@gmail.com |
0f816613b12f5b6aa964906c9c6177e82f93e869 | 5e989188eb0cfde46f57e033679bd7817eae6620 | /liteeth/phy/ku_1000basex.py | 89cf17cfeca716831b10f858f99c66075a52fe60 | [
"BSD-2-Clause"
] | permissive | telantan/liteeth | 1f85b086a7740013f4adfcecc92644fd147085e3 | 73bd27b506211f12f8c515ad93a3cc65a3624dc3 | refs/heads/master | 2020-12-13T16:37:47.229699 | 2020-01-16T14:29:49 | 2020-01-16T14:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,807 | py | # This file is Copyright (c) 2018 Sebastien Bourdeauducq <sb@m-labs.hk>
# This file is Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr>
# License: BSD
from migen import *
from migen.genlib.resetsync import AsyncResetSynchronizer
from migen.genlib.cdc import PulseSynchronizer
from liteeth.phy.pcs_1000ba... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
84574100863381fff6d24ce33e761d3e93026164 | bce797646db81b18625f71bb7427de2ff3c006fc | /core/db/mongo_pool.py | eb6fe4d32e0aa23fdf8f642ad7b512c1263a54d8 | [] | no_license | lihaineng/IPProxyPool | 3389cd437e80997d3f4bab4c96f9ada77d859d51 | 46818b454fc9e8422fc3fd459288a8b755653315 | refs/heads/master | 2020-04-26T07:20:37.676838 | 2019-03-04T08:12:54 | 2019-03-04T08:12:54 | 173,387,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,199 | py | import random
import pymongo
from pymongo import MongoClient
from domain import Proxy
from settings import MONGO_URL
from utils.log import logger
class MongodbPool(object):
def __init__(self):
# 1.1. 在init中, 建立数据连接
self.client = MongoClient(MONGO_URL)
# 1.2 获取要操作的集合
self.proxies... | [
"123456@qq.com"
] | 123456@qq.com |
49e6ceb93b732efc5346d3b2ccd762bd11f2c49b | a3385f7636ceb232e97ae30badee0ba9145138f8 | /egs/thchs30/s5/local/dae/add-noise-mod.py | 8327fc325ee911b1c8db5ca3c470637e82c131fa | [
"Apache-2.0"
] | permissive | samsucik/prosodic-lid-globalphone | b6a6ccdcece11d834fc89abaa51031fc9f9e37e1 | ca6a8e855441410ab85326d27b0f0076d48d3f33 | refs/heads/master | 2022-11-29T09:17:24.753115 | 2021-02-03T18:17:16 | 2021-02-03T18:17:16 | 149,014,872 | 3 | 2 | Apache-2.0 | 2022-09-23T22:17:01 | 2018-09-16T16:38:53 | Shell | UTF-8 | Python | false | false | 4,788 | py | #!/usr/bin/env python
# Copyright 2016 Tsinghua University (Author: Chao Liu, Dong Wang). Apache 2.0.
from __future__ import print_function
import optparse
import random
import bisect
import re
import logging
import wave
import math
import struct
import sys
import os
try:
import pyximport; pyximport.install()
... | [
"s1531206@ed.ac.uk"
] | s1531206@ed.ac.uk |
fd4d7663ac9bf14c7f4b27e5d5e298c49f144d01 | 964cbf507211afda901721d81b900c916c60c106 | /ax/models/discrete/thompson.py | 78342461ec8c64680dd5333410dd48306eaaf236 | [
"MIT"
] | permissive | DrDanRyan/Ax | c3390bc7a0cf4d936c5a8308e9ea818938db7f77 | fa40536aa1a2a29ac8791c7563c28ba2d0539a3e | refs/heads/master | 2020-08-23T16:02:53.595033 | 2019-10-21T19:35:32 | 2019-10-21T19:37:28 | 216,657,015 | 0 | 0 | MIT | 2019-10-21T20:18:44 | 2019-10-21T20:14:28 | null | UTF-8 | Python | false | false | 11,619 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import hashlib
import json
from typing import Dict, List, Optional, Tuple
import numpy as np
from ax.core.types import TConfig, TParamValue, TParamValueList
from ax.models.discrete_base import DiscreteModel
from ax.utils.co... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3b0048baefe9388272b2c05c43ada7d692e0f571 | 8e235a4ba4521497dd0ef66630ed47cbdf0f7bc7 | /fixed_headers.py | b4d7ee7aad48fc2f9ccd6aabbe084ed42a00894b | [] | no_license | albertogeniola/mqtt_dissector | 86264b681845dc362b2f8e65664a84e35e20a4f8 | 4e75db9ae64fbe3e4ff0a2f9ac21280b4f41b748 | refs/heads/master | 2021-06-04T07:54:53.106429 | 2020-11-14T12:26:01 | 2020-11-14T12:26:01 | 148,671,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | from myutils import Byte
from protocol_constants import ControlType, QoS
class FixedHeader(object):
length = 2 # Fixed length of 2 bytes!
def __init__(self):
self.control_packet_type = None
self.flags = 0
self.formatted_flags = None
# The Remaining Length is the number of by... | [
"albertogeniola@gmail.com"
] | albertogeniola@gmail.com |
801ae0d07a3597575800d8b3e57a79175586ebea | 251027f6bead0d031bb6f8578524553ab5cc4ec6 | /backend/tpf1_23455/wsgi.py | 4fffe5790b7dcbf71900d9bc99be9e39efbde492 | [] | no_license | crowdbotics-apps/tpf1-23455 | e469fe659661b9332b531f439f08ee450e132af2 | c5cd1469a714a2f5077aeb72fd03a47b72206be2 | refs/heads/master | 2023-02-01T04:39:53.899927 | 2020-12-19T00:37:37 | 2020-12-19T00:37:37 | 322,735,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for tpf1_23455 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fa5a0eb88b53a58cab15123043cbd54786388e40 | 9737a5e2cfe5521bb9731a356a7639d0dc3692de | /notes/week_2_netmiko/test_config.py | fe1ca580d2ec30f7c565cc3470cef141dc96fe08 | [] | no_license | akushnirubc/pyneta | 5c53cbcf42e2450ce6a2d7e6591d671661e84ba0 | ee68205c0b91974ea1cd79b8c06c36ae083fb02c | refs/heads/main | 2023-06-18T18:02:56.242732 | 2021-07-13T21:43:51 | 2021-07-13T21:43:51 | 358,647,513 | 0 | 0 | null | 2021-05-24T21:39:18 | 2021-04-16T15:45:34 | JavaScript | UTF-8 | Python | false | false | 533 | py | from netmiko import ConnectHandler
from getpass import getpass
device1 = {
"host": 'cisco1.lasthop.io',
"username": 'pyclass',
"password": getpass(),
"device_type": 'cisco_ios',
#"session_log": 'my_session.txt',
}
net_connect = ConnectHandler(**device1)
print(net_connect.find_prompt())
# cfg ... | [
"alex.kushnir@ubc.ca"
] | alex.kushnir@ubc.ca |
dd0af2b2f00b6883dce700c511427c06c56b72bd | 94f584fb8ed0a0d23c8a03fe402e4cfcd57aa956 | /slurm/2.import_sentences.py | 98b11a8414869cff07649eb55521617afbd60dd8 | [] | no_license | vsoch/neurosynth-nlp | 3627b198cfea20848048bc9ee30e24429385c31f | f63adcae79744b9058e4be7a2a7125ddbb647076 | refs/heads/master | 2020-12-24T12:02:21.993536 | 2015-10-10T00:12:17 | 2015-10-10T00:12:17 | 41,841,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | #!/usr/bin/python
# This script will read in the output, and import each into the sentences table
import os
from glob import glob
output_base = '/work/02092/vsochat/wrangler/DATA/NEUROSYNTH-NLP/corenlp/extractions'
# Get number of text files with input
input_files = glob("%s/*.txt" %output_base)
# load the data in... | [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
866cf44e2a88e0a9cd27070016c9e3e5cf2036ea | 7a20dac7b15879b9453150b1a1026e8760bcd817 | /Curso/ExMundo3/Ex080Listas3AdicionandoValores.py | ec1132f3bf525b6dd536f9554c873009a610d01b | [
"MIT"
] | permissive | DavidBitner/Aprendizado-Python | 7afbe94c48c210ddf1ab6ae21109a8475e11bdbc | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | refs/heads/master | 2023-01-02T13:24:38.987257 | 2020-10-26T19:31:22 | 2020-10-26T19:31:22 | 283,448,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | lista = []
for cont in range(0, 5):
n = int(input('Digite um valor: '))
if cont == 0 or n > lista[-1]:
lista.append(n)
print('Valor adicionado ao fim da lista...')
else:
pos = 0
while pos < len(lista):
if n <= lista[pos]:
lista.insert(pos, n)
... | [
"david-bitner@hotmail.com"
] | david-bitner@hotmail.com |
5ab8fd2d4d54815e373fb20810c273cf56ce74d7 | b7853adb67d24f2ee5134f87f15eb353553f9af9 | /lighter/coal_and_stick/trainer_events/trainer_event.py | 2344c8b9500d1f14b1163b6f7f631b86715f998c | [
"Apache-2.0"
] | permissive | susautw/lighter | cc1422646c134226049d2f4063ab6f7d618f3215 | 5f78e5ba595f84805fd428a5086d5566e27cb55d | refs/heads/master | 2020-08-07T23:14:34.283568 | 2019-10-21T05:00:36 | 2019-10-21T05:00:36 | 213,618,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from .. import BaseTrainer
from ...events import Event
class TrainerEvent(Event):
def __init__(self, trainer: BaseTrainer):
super().__init__(trainer)
| [
"susautw@gmail.com"
] | susautw@gmail.com |
6991f98fb07f2dd43df9226c30b6f54d6678bf42 | 600cc377329781ab01466fe7a27ec1653a2c77bb | /app/exceptions.py | 175762a8f415d8b62fec4df328dcb8cef023233e | [] | no_license | volitilov/Flask_microblog | 3efa83f6a34eebc1fcdf7b4ba4519d398503e159 | 7769628d622508b16c9e42aad00109bdd4e36167 | refs/heads/master | 2022-12-12T22:54:28.070099 | 2018-09-16T11:54:52 | 2018-09-16T11:54:52 | 104,367,584 | 0 | 0 | null | 2022-12-08T02:08:08 | 2017-09-21T15:44:01 | Python | UTF-8 | Python | false | false | 223 | py | # app/exceptions.py
#
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
class ValidationError(ValueError):
pass | [
"volitilov@gmail.com"
] | volitilov@gmail.com |
cda70d98d6053a2d048b93d31ef5d48ebfdf681b | dc7dc1ab85403a4467044d4c0c936c17fff5225a | /fstmerge/examples/Fail2ban/rev579-759/right-branch-759/server/transmitter.py | 4462e1f90f9eefa96e14a0509562cea26dfe7726 | [] | no_license | RoDaniel/featurehouse | d2dcb5f896bbce2c5154d0ba5622a908db4c5d99 | df89ce54ddadfba742508aa2ff3ba919a4a598dc | refs/heads/master | 2020-12-25T13:45:44.511719 | 2012-01-20T17:43:15 | 2012-01-20T17:43:15 | 1,919,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,943 | py | __author__ = "Cyril Jaquier"
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2010-07-25 12:46:29 $"
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
__license__ = "GPL"
import logging, time
logSys = logging.getLogger("fail2ban.comm")
class Transmitter:
def __init__(self, server):
self.__server = se... | [
"joliebig"
] | joliebig |
6ef8d6902b117fc89fa883b3075f1414f73391a4 | 8c7efb37b53717c228a017e0799eb477959fb8ef | /wmm/scenario/migrations/0077_auto.py | 3adc40b5ae2e01f5f35728e4e69d0b74677d1196 | [] | no_license | rhodges/washington-marinemap | d3c9b24265b1a0800c7dcf0163d22407328eff57 | e360902bc41b398df816e461b3c864520538a226 | refs/heads/master | 2021-01-23T11:47:50.886681 | 2012-09-24T18:38:33 | 2012-09-24T18:38:33 | 32,354,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,785 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing M2M table for field input_substrate_nearshore_conservation on 'MOS'
db.delete_table(... | [
"sfletche@gmail.com"
] | sfletche@gmail.com |
930e761640dc0e0307b8801873263d3d485c8594 | 7b1a5db0a067766a9805fe04105f6c7f9ff131f3 | /pysal/explore/esda/tests/test_smoothing.py | 53185e57f83992c8edc588d3db86645428da4121 | [] | permissive | ocefpaf/pysal | 2d25b9f3a8bd87a7be3f96b825995a185624e1d0 | 7e397bdb4c22d4e2442b4ee88bcd691d2421651d | refs/heads/master | 2020-06-26T17:13:06.016203 | 2019-07-31T19:54:35 | 2019-07-31T19:54:35 | 199,696,188 | 0 | 0 | BSD-3-Clause | 2019-07-30T17:17:19 | 2019-07-30T17:17:18 | null | UTF-8 | Python | false | false | 24,686 | py | import unittest
import pysal.lib
from pysal.lib.weights.distance import KNN, Kernel
from .. import smoothing as sm
import numpy as np
from pysal.lib.common import RTOL, ATOL, pandas
PANDAS_EXTINCT = pandas is None
class TestFlatten(unittest.TestCase):
def setUp(self):
self.input = [[1, 2], [3, 3, 4], [5, ... | [
"sjsrey@gmail.com"
] | sjsrey@gmail.com |
9a2d672646bb8506167150dd31ba1b5a6c03ecfe | 62c171e0b3890d69a220353ca7c9419d2e265de1 | /django_app/introduction_to_models/migrations/0011_auto_20170607_0600.py | 27261ec4a0b474e11d81c4e641f9e613fecccdac | [] | no_license | fcdjangostudy/documentation | 45c07f22ab88d49849bb72374c1772eb10f74533 | b7bfc047e288227352c7c06e061367c4ea8e742d | refs/heads/master | 2021-01-24T07:42:30.867343 | 2017-06-08T05:08:42 | 2017-06-08T05:08:42 | 93,354,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-07 06:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('introduction_to_models', '0010_student_teacher'),
]
operations = [
migratio... | [
"gaius827@gmail.com"
] | gaius827@gmail.com |
c753e9cfdf6dfe85da40b9bf8ae6beb439530e7f | 2805e59cd84d1535e405183a43990f327b0838c9 | /2020/day7/day7.py | 74bcb03ab6a71db25889c368fdb073ba2bde2452 | [] | no_license | nthistle/advent-of-code | b1ff4ae2646228fea59913c2878f26c9ae38444e | 7950850b77da77c1c2a4ca15c10f793c60e7ec73 | refs/heads/master | 2023-01-24T12:04:09.433385 | 2022-12-25T10:30:37 | 2022-12-25T10:30:37 | 160,138,710 | 29 | 12 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import regex
nums_regex = regex.compile("((?P<nums>\\d+)([^\\d]*))*")
def nums(s):
m = nums_regex.match(s)
vals = m.capturesdict()["nums"]
return [int(x) for x in vals]
# yeah, i know this should be dfs but
valid = set()
last_len = -1
while len(valid) != last_len:
last_len = len(valid)
for color ... | [
"11429656+nthistle@users.noreply.github.com"
] | 11429656+nthistle@users.noreply.github.com |
1470565acd9a215c3e26945dd322f9f728fd44ba | d6aa13cb1021773d88e2ef780bc4450b38455644 | /apex/contrib/conv_bias_relu/conv_bias_relu.py | c873ebe1c60bbc3d5bc7a9bed06b0f6026cde230 | [
"BSD-3-Clause"
] | permissive | NVIDIA/apex | f54a9ced5d8b1c14f777e6bb53f11b3dc3ff2d6b | 7995de18677295c5edeeab082179edbfdb6ee16a | refs/heads/master | 2023-08-21T13:25:44.408616 | 2023-08-19T04:36:48 | 2023-08-19T04:36:48 | 130,725,814 | 7,932 | 1,381 | BSD-3-Clause | 2023-09-13T16:09:42 | 2018-04-23T16:28:52 | Python | UTF-8 | Python | false | false | 3,336 | py | import pdb
import torch
from torch.autograd import gradcheck
from apex import check_cudnn_version_and_warn
import fused_conv_bias_relu
check_cudnn_version_and_warn(__name__, 8400)
class ConvBiasReLU_(torch.autograd.Function):
@staticmethod
@torch.cuda.amp.custom_fwd(cast_inputs=torch.half)
def forward(... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
f36cd201e2b22989f917f1c86478122f8d4bc944 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/not/sample_good305.py | 61286ed7edec8a126ec2feaab96109f978f73237 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import difflib
import textwrap
import random
nterms = 210
n1, n2 = 0, 1
if nterms <= 0:
print("Please provide a positive integer.")
elif nterms == 1:
print("Fibonacci sequence upto", nterms, ":")
print(n1)
else:
print("Fibonacci sequence:")
count = 0
while 0 is True and 0 < 210:
print(n1)
nth = n1 + n2
n1 =... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
3518f1fa23fd1883fbffe373f737a23500137da8 | 30d5b6876c3ae8d792525aa1f61de7ce7fc2c1ca | /download.py | 3f9672ee8abdbc14089a1cb70e143f920e7aa9b2 | [] | no_license | codeinthehole/pyvideo2quicktime | 3b498277a8e7c7633e77791c0a595dbaf804ef8d | 0e4fd7fd6cd20a163e1f7e5c1ba8c801d007f35a | refs/heads/master | 2021-01-22T11:10:37.697696 | 2013-03-20T09:37:31 | 2013-03-20T09:37:31 | 3,751,112 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from urlparse import urlparse, parse_qs
import os
def download(youtube_url, filename):
foldername = 'quicktime'
if not os.path.exists(foldername):
os.mkdir(foldername)
notify('Downloading %s (%s)' % (youtube_url, filename))
flv_filename = download_video(youtube_url)
m4v_filepath = '%s/%s.m... | [
"david.winterbottom@gmail.com"
] | david.winterbottom@gmail.com |
0ffa0f53ff82464df6d214d3fe81c5e9e8e5c6e8 | 3dcc44bf8acd3c6484b57578d8c5595d8119648d | /pdb_to_psipred_ss2.py | dd09d3224514a6565329d7f20d555550d90f8e17 | [] | no_license | rhiju/rhiju_python | f0cab4dfd4dd75b72570db057a48e3d65e1d92c6 | eeab0750fb50a3078a698d190615ad6684dc2411 | refs/heads/master | 2022-10-29T01:59:51.848906 | 2022-10-04T21:28:41 | 2022-10-04T21:28:41 | 8,864,938 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | #!/usr/bin/python
#Adapted from phil bradley's make_coords_file.py
# Rhiju, Feb 2006.
import string
import sys
from os import popen,system
import pdb
if len(sys.argv) !=3:
print '\n'+'-'*75
print 'Usage: %s <pdb> <chain> > <coords_file>'
print '-'*75+'\n\n'
assert 0==1
pdb_file = sys.argv[1]
chain =... | [
"rhiju@stanford.edu"
] | rhiju@stanford.edu |
dbeeca429a6289fb3a9b68ce852f30c266ab920f | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/AMWIDealTaker/FPythonCode/FFpMLACMDeriveInstrumentType.py | b9bce2f1668eae45e83a2ac2b9b213dadaacaa39 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,982 | py | """------------------------------------------------------------------------
MODULE
FFpMLACMDeriveInstrumentType -
DESCRIPTION:
This file is used to infer the instrument type that needs to be created for an incoming FpML if the productType details are not present in the FpML
VERSION: 1.0.30
RESTRICTIONS/ LIMITAT... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
7b28138416d72a200b73e445b541f3f762da16a2 | 164c059989934bca6943df15552c5dc5e6b6dbbd | /src/run_extractquerylog.py | 1e58861ee31a93bdefab9a080953fe2b99c7f6c1 | [] | no_license | afcarl/densequery2vec | a9674987d49aa3deb67cccfa14eb9ae5edd915de | 7196e5a6676776681e436d5d53e388ddf70227af | refs/heads/master | 2020-03-22T10:19:48.318129 | 2014-07-17T13:56:39 | 2014-07-17T13:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | #coding=cp936
import os
files = os.listdir('/data2011/d3/uigs/2012/201204')
fout = open('runall.sh','w')
for f in files:
print f
fout.write('nohup python extractquerylog.py '+f+' > ../data/log/'+f+'.log &\n')
fout.close()
| [
"luochengleo@gmail.com"
] | luochengleo@gmail.com |
5965ffb179a0ddb4183651b082dc4ab1bcde2e4c | c18a63e2e37712025794bc7d0bb824ca3a8cde51 | /asset/views.py | df510a3203b462b0858c704e3e45616a3fa282e8 | [] | no_license | wuqiangchuan/Xproxxx | 9202767573a3f0bfc1b00b6069eaf6ef9bc25907 | 6403bde2bc091faab55cca5ac9fff62b13d6a0cb | refs/heads/master | 2021-01-01T17:48:55.335991 | 2017-07-20T10:00:52 | 2017-07-20T10:00:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,102 | py | #coding:utf-8
from django.shortcuts import render, render_to_response,HttpResponseRedirect,redirect
from django.http.response import HttpResponse
from django.contrib.auth.decorators import login_required
from django.template import RequestContext
import json
from devops import models
import utils_cmdbInfoUpdate
f... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
047ddfc0315a95ce84f0397cf7b3c06deb87acb7 | 0337e02c15f18985537587f6c298391f9af077c5 | /testcases/test_login_001.py | 3c9b301e582c3e10c2c01bf27ef7836f9ee7e063 | [] | no_license | khandepc/Guru99BankProject | 9c48c181f720bbce08012ac72a47cbeec581e60b | 55bfa560d7ca593cbfb84ede630a19b848f4426b | refs/heads/main | 2023-02-06T03:31:13.205028 | 2020-12-16T06:45:24 | 2020-12-16T06:45:24 | 321,257,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | import time
import pytest
from utilities.custom_logger import LogGen
from utilities.readProperties import ReadConfig
from pageobjects.login_page import LoginPage
class Test_Login_001:
base_url=ReadConfig.get_base_URL()
user_name=ReadConfig.get_user_name()
password=ReadConfig.get_password()
log=LogGen.... | [
"khandepc@gmail.com"
] | khandepc@gmail.com |
15d888f88d1679039bf18f71120ac99d0ea01b0f | 2d276785c3663d4798be462115291c4706dbd255 | /Python从菜鸟到高手/chapter14/demo14.01.py | 29f3934d32d88fe51f876eff78ae813d90498efa | [] | no_license | bupthl/Python | 81c92433bd955663e6cda5fe7cab5ea3d067c3de | bdb33aeeb179a43100b9ef7129a925c63a133fd3 | refs/heads/master | 2022-02-21T11:02:40.195265 | 2019-08-16T05:49:18 | 2019-08-16T05:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | '''
--------《Python从菜鸟到高手》源代码------------
欧瑞科技版权所有
作者:李宁
如有任何技术问题,请加QQ技术讨论群:264268059
或关注“极客起源”订阅号或“欧瑞科技”服务号或扫码关注订阅号和服务号,二维码在源代码根目录
如果QQ群已满,请访问https://geekori.com,在右侧查看最新的QQ群,同时可以扫码关注公众号
“欧瑞学院”是欧瑞科技旗下在线IT教育学院,包含大量IT前沿视频课程,
请访问http://geekori.com/edu或关注前面提到的订阅号和服务号,进入移动版的欧瑞学院
“极客题库”是欧瑞科技旗下在线题库,请扫描源代码根目录中的小程序码安装“极客... | [
"registercn@outlook.com"
] | registercn@outlook.com |
044b9145da1f28e2db11e6dbb1cb13463c17a9bc | fb16f7024e0d93ecb07c122e633c1a957a8ab645 | /inheritance/demo2.py | 5859d83e5f89c9c64c80a1b4b2ac35a6999df16c | [] | no_license | rajeshanu/rajeshprograms | c23cf550e060040c7b336242a805e274d3305371 | 83f0fc9c4a8628bba590d1066ca93fd98137f0bc | refs/heads/master | 2020-04-04T13:17:55.986558 | 2018-11-03T06:42:51 | 2018-11-03T06:42:51 | 155,956,676 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | class A:
company_name="rajesh"
def display(self):
print("this is display")
class B(A):
def show(self):
print("this is show")
#calling static variable using class A
print(A.company_name)
#calling static variable using class B
print(B.company_name)
b1=B()
b1.show()
b1.display()
| [
"44720126+rajeshanu@users.noreply.github.com"
] | 44720126+rajeshanu@users.noreply.github.com |
0dd964acad8dd7a11d0395be4c59bd0f1587f633 | 0547d1826e99eedb959a3463520d73985a3b844e | /Data Scientist with Python Track Github/06-Merging DataFrames with pandas/04- Case Study - Summer Olympics/09-Merging to compute influence.py | 65b57dce70597328d7a83026604030c048af75f0 | [] | no_license | abhaysinh/Data-Camp | 18031f8fd4ee199c2eff54a408c52da7bdd7ec0f | 782c712975e14e88da4f27505adf4e5f4b457cb1 | refs/heads/master | 2022-11-27T10:44:11.743038 | 2020-07-25T16:15:03 | 2020-07-25T16:15:03 | 282,444,344 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | '''
Merging to compute influence
This exercise starts off with the DataFrames reshaped and hosts in the namespace.
Your task is to merge the two DataFrames and tidy the result.
The end result is a DataFrame summarizing the fractional change in the expanding mean of the percentage of medals won for the host country i... | [
"abhaysinh.surve@gmail.com"
] | abhaysinh.surve@gmail.com |
2b9fb6b71bd3380b6ab336b7a73dca869d7d67e4 | ef4a1748a5bfb5d02f29390d6a66f4a01643401c | /algorithm/algorithm_week/week1/bubble.py | 2fa44823a30b25b9c819d6b99bd400329f717866 | [] | no_license | websvey1/TIL | aa86c1b31d3efc177df45503d705b3e58b800f8e | 189e797ba44e2fd22a033d1024633f9e0128d5cf | refs/heads/master | 2023-01-12T10:23:45.677578 | 2019-12-09T07:26:59 | 2019-12-09T07:26:59 | 162,102,142 | 0 | 1 | null | 2022-12-11T16:31:08 | 2018-12-17T08:57:58 | Python | UTF-8 | Python | false | false | 355 | py | # for i in range(2,10):
# for j in range(1,10):
# a = i * j
# print(a)
def bubbleSort(data):
for i in range(len(data)-1, 0, -1): # 4 3 2 1
for j in range(0, i): # 4 3 2 1 번
if data[j] < data[i]:
data[j], data[j+1] = data[j+1], data[j]
data = [55, 78, 7, 12,... | [
"websvey1@gmail.com"
] | websvey1@gmail.com |
935e864d4bed53c8504125ab2060120e036f07fd | 45a506c5622f366e7013f1276f446a18fc2fc00d | /tests/framework/cli/test_registry.py | 2b1fdda7006dcce18dcd328ffbcbdd634fe71e28 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sbrugman/kedro | 3e48bcc56cc61fbe575d1a52c4f5bf3e84b6f974 | 25c92b765fba4605a748bdaaa801cee540da611e | refs/heads/develop | 2023-07-20T11:24:07.242114 | 2021-10-08T14:05:03 | 2021-10-08T14:05:03 | 404,517,683 | 1 | 2 | NOASSERTION | 2021-09-08T22:53:09 | 2021-09-08T22:53:09 | null | UTF-8 | Python | false | false | 3,994 | py | # Copyright 2021 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS",... | [
"noreply@github.com"
] | sbrugman.noreply@github.com |
9c6289b0041874829730bd9cd38e88160dc3d661 | 49c2e3ebf7f5d2f79af6e26c44b4d07ec14a20d5 | /Hello World/venv/Lib/site-packages/pip/_vendor/requests/cookies.py | 7b7e84140ac9b0330e638ca7604721268ef62056 | [] | no_license | TaylorHoll/Python_Projects | a0d86642463bdc5b3ea67dae0146c115185c1db2 | a8285b058ed0b4e0a366753d61526056dab23cd3 | refs/heads/master | 2020-06-13T09:04:29.666639 | 2020-01-07T03:40:25 | 2020-01-07T03:40:25 | 194,608,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,431 | py | # -*- coding: utf-8 -*-
"""
requests.cookies
~~~~~~~~~~~~~~~~
Compatibility code to be able to use `cookielib.CookieJar` with requests.
requests.utils imports from here, so be careful with imports.
"""
import time
import calendar
import copy
from ._internal_utils import to_native_string
from .compat import cookie... | [
"taylorholloway1984@gmail.com"
] | taylorholloway1984@gmail.com |
b3712cec61edb7ce27ef60bd2b0341d12e27f6e3 | f487b395f47116bc7480fcbdc32be21354d8e0ea | /test.py | 9e0cd0712d8cd5065b6cd1b6f7f7bb1c1217d0ac | [] | no_license | greenmac/kaggle_digit_recognizer | cbd3bed60bc5d386e09fb71bff665048e1a9f2cb | d864d47874dad96a3fa44a99d076630379a2fb10 | refs/heads/master | 2021-01-07T04:22:56.478579 | 2020-03-16T06:33:05 | 2020-03-16T06:33:05 | 241,577,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | import random
import time
from datetime import datetime
'''
class RanDate():
def strTimeProp(self, start, end, prop, frmt):
stime = time.mktime(time.strptime(start, frmt))
etime = time.mktime(time.strptime(end, frmt))
ptime = stime + prop * (etime - stime)
return int(ptime)
def... | [
"alwaysmac@msn.com"
] | alwaysmac@msn.com |
fd575982d90e09ee5b0320c34f170d2652cc7322 | 453dba4c0f167faf97cfc80233bf1acc5b87e58e | /_unittests/ut_documentation/test_notebook_javascript.py | 12c52fd9f4d5427b2c237f594636478929c16b5d | [
"MIT"
] | permissive | sdpython/code_beatrix | 6a092dacbf830a90d374e8c4871d8749e096d5a3 | e39f8ae416c23940c1a227c11c667c19104b2ff4 | refs/heads/master | 2023-02-06T10:52:51.418417 | 2023-02-04T12:11:45 | 2023-02-04T12:11:45 | 32,282,235 | 1 | 2 | MIT | 2022-10-16T15:20:28 | 2015-03-15T20:26:17 | Jupyter Notebook | UTF-8 | Python | false | false | 1,335 | py | # -*- coding: utf-8 -*-
"""
@brief test log(time=59s)
"""
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder, add_missing_development_version
from pyquickhelper.ipythonhelper import execute_notebook_list_finalize_ut
from code_beatrix.automation.notebook_test_h... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
33c663db4ac2ac5d3f963fc3e0ab25c673c7cba7 | 6b181f5640e2c3df91d1a6d5c95cf1989012f0d5 | /client/canyons-of-mars/client_utils.py | 5c047f04104e32a1a2b0ca5bc61396532f2e39d0 | [
"MIT"
] | permissive | GamesCreatorsClub/GCC-Rover | 9b84dcd84cce60c321906223f8c24f99722d1bae | 25a69f62a1bb01fc421924ec39f180f50d6a640b | refs/heads/master | 2021-01-11T18:04:05.876976 | 2019-10-01T15:20:30 | 2019-10-01T15:20:30 | 79,477,472 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,762 | py |
#
# Copyright 2016-2019 Games Creators Club
#
# MIT License
#
import os
import pyros
import time
from rover import Rover, RoverState
from telemetry import TelemetryStreamDefinition
from telemetry.telemetry_client import PubSubTelemetryClient
class PyrosTelemetryClient(PubSubTelemetryClient):
def __init__(self,... | [
"natdan@users.noreply.github.com"
] | natdan@users.noreply.github.com |
d98e4ec858d215f4a007844da9a85f99fada5ab0 | 043a11e5b4834231abec1cd51ce682ee91ac8e27 | /keystoneclient/fixture/v3.py | a0896f067fd700a8e76bfa3e89d1b28eb48b5e19 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jamielennox/python-keystoneclient | c6d96ff9b3921777f2a557a29baaeb8eec8424a7 | a1bc48c0fc475db6bca761a9023c35adab740dab | refs/heads/master | 2021-01-18T06:34:36.885196 | 2014-07-08T04:34:26 | 2014-07-08T04:34:26 | 12,315,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,917 | py | # 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 writing, software
# distributed under t... | [
"jamielennox@redhat.com"
] | jamielennox@redhat.com |
78ae01813d9135d215eaddfa321fc99bd7b6143c | 6f866eb49d0b67f0bbbf35c34cebe2babe2f8719 | /app/data_models/fulfilment_request.py | 2a505c4cf7f376af16fcb182b36776ef386e4ff9 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | ONSdigital/eq-questionnaire-runner | 681b0d081f9cff0ee4ae3017ecc61f7390d553bf | 87e7364c4d54fee99e6a5e96649123f11c4b53f1 | refs/heads/main | 2023-09-01T21:59:56.733363 | 2023-08-31T15:07:55 | 2023-08-31T15:07:55 | 219,752,509 | 12 | 18 | MIT | 2023-09-14T11:37:31 | 2019-11-05T13:32:18 | Python | UTF-8 | Python | false | false | 876 | py | from abc import ABC, abstractmethod
from datetime import datetime, timezone
from functools import cached_property
from typing import Mapping
from uuid import uuid4
from app.utilities.json import json_dumps
class FulfilmentRequest(ABC):
@abstractmethod
def _payload(self) -> Mapping:
pass # pragma: no... | [
"noreply@github.com"
] | ONSdigital.noreply@github.com |
69abc1688de4f8f5f99b6a5cd6477c25dc505f9d | 2196f8fc48d24a27243f395ab849cd4410cbe87b | /test/test_zero_tensors.py | 972a08d4b27a95e4d4a891ab977d31aac52c43f8 | [
"MIT"
] | permissive | zuru/pytorch_scatter | 8097bffb9732464e185c2bae266c9e8aea96d4e6 | d7dbb0807dede6a9a1021ce3dc2bc2972b168a24 | refs/heads/master | 2021-12-14T01:38:18.737462 | 2021-12-08T10:03:04 | 2021-12-08T10:03:04 | 238,142,178 | 0 | 0 | MIT | 2020-02-04T06:51:02 | 2020-02-04T06:51:01 | null | UTF-8 | Python | false | false | 229 | py | import torch
from torch_scatter import scatter
def test_zero_elements():
x = torch.randn(0, 16)
index = torch.tensor([]).view(0, 16)
print(x)
print(index)
scatter(x, index, dim=0, dim_size=0, reduce="add")
| [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
07985a0deb76d16dc2d01d2243eb8775632649e1 | 7a398f8dbcf465dc182d63dfe11a71d94a68c235 | /SyntaxEx14/venv/bin/easy_install | d7af2d3dad86685f38c4d10f8fbefef699e5d161 | [] | no_license | apolonis/PythonExamples | 48b0bd6c0e86388cc2772b27fcdeffacb7d0191f | 018c3ccf0f1f57f807e8e9059afa3db408094a5c | refs/heads/master | 2020-09-20T07:48:22.233460 | 2019-12-16T14:39:34 | 2019-12-16T14:39:34 | 224,413,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | #!/home/marko/PycharmProjects/SyntaxEx14/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"riddickschronicles@gmail.com"
] | riddickschronicles@gmail.com | |
ae32e8e8c755c8a31f1fdbce1a01816ab57aec48 | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/28/28-30_wat_20Abox/set_1ns_equi_m.py | e7ec5a1ea8866d3680ac187e668d1044c1d1e7a9 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L28/wat_20Abox/ti_one-step/28_30/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
858bd6899eb9a8332d79dda00ceb3117f216ca37 | 8b9fcb5f2207b98da1113a26c1b7915ae0961684 | /tests/publishing/test_geocodesddraft.py | 14e9acc16e03e8a73c1d8f016ccd655a39084e87 | [
"BSD-3-Clause"
] | permissive | dcworldwide/arcpyext | fe4bcef3fd7ac0ffb8fd5e89fd925a951dc22fd6 | 02fe4dcd3ed728c91a078dee255abacb0fe2aed0 | refs/heads/master | 2022-01-21T09:14:49.937159 | 2018-10-15T01:30:04 | 2018-10-15T01:30:04 | 155,815,154 | 0 | 0 | BSD-3-Clause | 2018-11-02T04:45:09 | 2018-11-02T04:45:08 | null | UTF-8 | Python | false | false | 1,850 | py | from __future__ import (absolute_import, division, print_function, unicode_literals)
from builtins import (bytes, dict, int, list, object, range, str, ascii, chr, hex, input, next, oct, open, pow, round,
super, filter, map, zip)
import os.path
import shutil
import arcpyext
import pytest
from ar... | [
"DavidWhittingham@users.noreply.github.com"
] | DavidWhittingham@users.noreply.github.com |
a72e4cd9b490f00aa9e20de7fee6ccd519ab65cc | eeb4752a22ef99152784c0ef6f720f8e4f2dd9d9 | /myrest/talk/models.py | 5a922ffc710e4b3be17cc2d911aa1ac6044503fc | [] | no_license | borko81/django-rest-test | 9a63d328fea8155029bb3d1d29ab624ea4a0027b | e21d41494154622c2472b679df40d5f42d8ab356 | refs/heads/main | 2023-08-05T22:36:10.099746 | 2021-09-10T17:54:20 | 2021-09-10T17:54:20 | 318,290,143 | 0 | 0 | null | 2021-08-23T18:51:22 | 2020-12-03T18:53:44 | Python | UTF-8 | Python | false | false | 232 | py | from django.contrib.auth.models import User
from django.db import models
from talk.helpers.add_update import Helper
class Post(Helper):
author = models.ForeignKey(User, on_delete=models.CASCADE)
text = models.TextField()
| [
"bstoilov81@gmail.com"
] | bstoilov81@gmail.com |
769f3f0ffd325b7149094498e3a6cc184d03189f | 51cbd904e17e45f6adb5303c3532a6ff0519ab42 | /sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_repository_client.py | 9c6e44c188306de7999d7701012eed0f61d1635f | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | heaths/azure-sdk-for-python | 203e9a6052d7dff5b5f2346bced86b9406be3419 | 77feaf14471eba6642f5c7ae2f3f06981ff361d7 | refs/heads/master | 2022-07-26T06:46:57.067502 | 2021-04-15T21:35:26 | 2021-04-15T21:35:26 | 239,629,447 | 0 | 0 | MIT | 2020-02-10T22:46:20 | 2020-02-10T22:46:19 | null | UTF-8 | Python | false | false | 18,541 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from typing import TYPE_CHECKING
from azure.core.exceptions import (
ClientAuthenticationError,
ResourceNotFoundError,
ResourceExistsError,
... | [
"noreply@github.com"
] | heaths.noreply@github.com |
0405d240f84c528173e565e91cefbc577b86971f | f166c56b51fbf494df0eb46c23a3f5be0f94c555 | /libpyclingo/clingo/theory_atoms.py | 7d4f0bc4fcb30319b3470a312c620d24e2e9dbf8 | [
"MIT"
] | permissive | vishalbelsare/clingo | 86d91a16e41e580612067ef2f7b0f28f94a90c30 | e0c91d8f95cc28de1c480a871f9c97c30de83d40 | refs/heads/master | 2023-08-25T06:35:25.661440 | 2022-01-29T10:38:08 | 2022-01-29T10:38:08 | 165,138,167 | 0 | 0 | MIT | 2022-03-14T01:13:23 | 2019-01-10T22:09:12 | C++ | UTF-8 | Python | false | false | 7,053 | py | '''
Functions and classes to work with theory atoms.
Examples
--------
>>> from clingo.control import Control
>>>
>>> ctl = Control()
>>> ctl.add('base', [], """\\
... #theory example {
... t { };
... &a/0 : t, head
... }.
... {c}.
... &a { t: c }.
... """)
>>> c... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
a22bdda7a5301f2d8302d95c2778cd23dd7c3afe | ff9dcc6a63480378f43a5ce2121865373bc88f23 | /2017/Comptes-Rendus/TP1/SAVADOGO_DIACK/TP1 SAVADOGO- DIACK/tp1.py | dce307ef619e1d3cff6b1a25ca540924db2823ed | [] | no_license | jpcp13/L2 | d1cd5bb6cc5679f4971ca51ef3e8df797aa4ca1a | e5b2aaac3b4772222a1f3fd5c01582d4079ec6cc | refs/heads/master | 2018-12-08T01:18:31.656209 | 2018-10-25T05:01:26 | 2018-10-25T05:01:26 | 105,018,512 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,621 | py | def f(x):
return x**2 - x - 1
def df(x):
return 2*x - 1
def g(x):
return 1 + 1/x
def point_fixe(g, x0 ,epsi):
x = x0
nbiter = 0
delta = 2*epsi
while delta > epsi :
nbiter += 1
x1=g(x)
delta = abs(x1-x)
x=x1
print (x)
return x, nbiter
def newton(f, df, x0 ,epsi):
nbiter = 0
x = x0
delta ... | [
"jpcp13@gmail.com"
] | jpcp13@gmail.com |
1ed8d4703442d5c5bc5030797efcd92cf55f2648 | e7f4c2cfa0ebcb3c3fac2e269739bbf703ea9a06 | /tests/unit-tests/test_confluence_metadata.py | 6f1a5f27bb353c5d842dff7d9035d237fd53d196 | [
"BSD-2-Clause"
] | permissive | Embodimentgeniuslm3/confluencebuilder | e81441375e1b1d519dfdb38b7cc23c456124791e | a9390240dca1cb7e3ff011a3417fd170477703b1 | refs/heads/master | 2023-08-25T06:39:29.703644 | 2021-10-24T02:50:35 | 2021-10-24T02:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | # -*- coding: utf-8 -*-
"""
:copyright: Copyright 2020-2021 Sphinx Confluence Builder Contributors (AUTHORS)
:license: BSD-2-Clause (LICENSE)
"""
from tests.lib import prepare_conf
from tests.lib import prepare_sphinx
from tests.lib import prepare_sphinx_filenames
import os
import unittest
class TestConfluenceMetadat... | [
"james.d.knight@live.com"
] | james.d.knight@live.com |
a4900cf97e06644f9b1079c0d8d34267b54ad5ef | e57d7785276053332c633b57f6925c90ad660580 | /sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/aio/_configuration.py | b682db120b9a301c2c0411fb1a0542fd5f1ff1a8 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 2,960 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | adriananeci.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.