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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65a3b84cb2692468b65657e6dc567f76583f422a | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /1501-1600/1509/1509_Python_1.py | a81dabed5044e21876eab4cd64e16a0bc1224e8f | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | from typing import List
# O(N)
# 数组
class Solution:
def minDifference(self, nums: List[int]) -> int:
# 处理长度小于4的情况
if len(nums) <= 4:
return 0
# 4个最小值和4个最大值
min_val = list(sorted(nums[:4])) # 从小到大
max_val = min_val[::-1] # 从大到小
# 遍历数组寻找4个最小值和4个最大值
... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
281a54cb866dc0945854892d04439f46ab5d46fd | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /pinpoint_read/app_get.py | 49615062a2854164d146ec6a45e43304fb693ad3 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import read_no_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/pinpoint/get-apps.html
if __name__ == '__main__':
... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
161d9abda0122db7ed67ca567bbd4b8d9a714c4c | 5ffea03ae74ac36b98c9269dd36f9626ea78cbc3 | /python/samples/hhAnalyzeSamples_2017_nanoAOD.py | 89558b2c77efeaa7502f70954de6060faaa5dcf8 | [] | no_license | HEP-KBFI/hh-multilepton | 15dde6e98a848ee87227f323d7d19e2ae3683202 | 31ed2138a7db874196681b18a95b358b073ee7c2 | refs/heads/master | 2023-05-25T00:11:01.603391 | 2023-05-19T12:38:07 | 2023-05-19T12:38:07 | 146,444,424 | 1 | 5 | null | 2021-09-13T14:27:41 | 2018-08-28T12:30:15 | Python | UTF-8 | Python | false | false | 482,985 | py | from collections import OrderedDict as OD
# file generated at 2021-01-20 18:48:30 with the following command:
# create_dictionary.py -m python/samples/metaDict_2017.py -p python/samples/sampleLocations_2017_nanoAOD_hh_multilepton.txt -N samples_2017 -E 2017 -o python/samples -g hhAnalyzeSamples_2017_nanoAOD.py -M
sam... | [
"karlehataht@gmail.com"
] | karlehataht@gmail.com |
7b16093029a84ad02f62e5d13fde0f6ef5058c50 | daab05e0e76ee59f77f630af787ceba308404fd0 | /tests/profiling/test_profiler.py | 15c49c19e6413e496b6619d35a07973387e716c8 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | isabella232/dd-trace-py | 07e99927bc87e06920de94a6fc1df013f33cbe94 | ee4684b9ec8fe5552d4d64661cedcf18f9c1a8cf | refs/heads/master | 2023-02-07T12:22:18.000027 | 2020-12-28T10:33:27 | 2020-12-28T10:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,348 | py | import os
import subprocess
import sys
import pytest
import ddtrace
from ddtrace.profiling import profiler
from ddtrace.profiling.collector import stack
from ddtrace.profiling.exporter import http
def test_status():
p = profiler.Profiler()
assert repr(p.status) == "STOPPED"
p.start()
assert repr(p.s... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
727c8b8c0164ddb259f49ea7b31cfdee2b908240 | 45560786af3eddd0a538edcbf3027bd688b9a763 | /pj_2-master/pj_2-master/pj_2/asgi.py | 50054bb92cb1205b984a4d9f1bef7ca55467c9be | [] | no_license | MunSeoHee/gachonlikelion8th | 9c1d2470fcf27b87558c933afd14c1c748cb6ff6 | 9eff4a10e09764ac7ae6d6156f6b6c81eac4f2da | refs/heads/master | 2023-03-31T05:57:50.094402 | 2020-08-18T09:53:50 | 2020-08-18T09:53:50 | 273,183,296 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for pj_2 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"58267660+immaruel@users.noreply.github.com"
] | 58267660+immaruel@users.noreply.github.com |
21b43ac2e3772ece0116a75b47f07afe012a41ef | cdc9ab5e09e53c01ded5a871b57828ebacd1480d | /templates/python/facebook_business/api.py | 2a408c8394fd2df5ce7475a37fd29131c6ddd983 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-facebook-software-license",
"MIT"
] | permissive | supasate/facebook-business-sdk-codegen | 3f1b99f0a4d2c096068a07409a25719571ddd21a | 65d97be34890e15057c0bac43504f0d34ca86318 | refs/heads/main | 2023-09-03T14:48:21.849011 | 2021-10-25T22:00:06 | 2021-10-25T22:26:28 | 424,064,693 | 1 | 0 | MIT | 2021-11-03T02:21:11 | 2021-11-03T02:21:11 | null | UTF-8 | Python | false | false | 30,473 | py | # Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Fa... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
58e06b8fac4817cbddbdae2345f9b1ff6d3c7250 | d3dd54733c72bd8984daa21b1c8276baa5d0bc84 | /dlint/namespace.py | b09e174f3f9a9b66088db6a58532676cecf99ac6 | [
"BSD-3-Clause"
] | permissive | santoshkatageri/dlint | 6331ce8261acaf6b11563f97982e71c2b01a18e2 | 09b18eb221a6a9e390d5c2f1bddedf5185daec88 | refs/heads/master | 2020-08-09T03:09:54.415045 | 2019-10-07T16:35:58 | 2019-10-07T16:35:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | #!/usr/bin/env python
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
)
import ast
import copy
class Namespace(object):
def __init__(self, imports, from_imports):
self.imports = imports
self.from_imports = from_imports
@classmethod
d... | [
"schwag09@gmail.com"
] | schwag09@gmail.com |
12538c832688f714aa4379a1b6b5911ca9066944 | 739b764438a4b82edc5ae63dd5b1d715779dc7a1 | /python-coding-bat/list-2/sum13/test_module.py | 669d5efda5760f6c1da02c0779a45fc0a935641e | [] | no_license | mgermaine93/python-playground | 2cbf3994ebc0faf51515aac233a69f926ba9cccd | 6fc7c6ee0e2d17b585469c60a748c4ae41030f87 | refs/heads/master | 2021-05-17T04:03:58.460331 | 2021-04-09T20:32:05 | 2021-04-09T20:32:05 | 250,613,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | import unittest
from sum13 import sum13
class UnitTests(unittest.TestCase):
def test_1_2_2_1_returns_6(self):
actual = sum13([1, 2, 2, 1])
expected = 6
self.assertEqual(
actual, expected, 'Expected calling sum13() with [1, 2, 2, 1] to return "6"')
def test_1_1_returns_2(s... | [
"mgermaine93@gmail.com"
] | mgermaine93@gmail.com |
7dff09457081d329e0eb78aca16f48fc1ca98a16 | 30b3de3cbe6aa81651964d8dec7ff03bdf5c23a6 | /startup/GafferScene/filterCompatibility.py | 495bc8a1ed240be3cca0acb8ea1a919cd5d7bc27 | [
"BSD-3-Clause"
] | permissive | Eryckz/gaffer | 64d37e94c5e045c0b147efd8386dab20749a69a4 | 4ae545b807b27c79e8a3a5cd916eb3f0cd86259f | refs/heads/master | 2020-12-25T16:13:54.824774 | 2015-08-20T16:24:43 | 2015-08-20T16:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | ##########################################################################
#
# Copyright (c) 2015, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | [
"thehaddonyoof@gmail.com"
] | thehaddonyoof@gmail.com |
b90416461fbc4c362ad4cb4c8d76fdaae3100164 | cb1d377e30e1ee4311616f4dae9105ba83f7f149 | /models/rnn_model_no_state.py | fab1c6cfb0a992b1aa1203f32e7251d3ca227094 | [] | no_license | lysh/tensorflow_novelist-master | 36737c1ca9af40738456ec1fb5e6a4488fbb2eaf | d9e4a25fe77b4149209339c62dbcaed9d60b4ed7 | refs/heads/master | 2021-07-12T10:50:12.672980 | 2017-10-19T02:59:29 | 2017-10-19T02:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | # Copyright 2017 Jin Fagang. 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 law or a... | [
"charlesxu86@163.com"
] | charlesxu86@163.com |
f156a205b3ff12d8c9519457f7f9824897bc19c7 | 85ea8cf4f606186b05227c1f6119206c1071ffc9 | /bin/atlas-peer-exchange | 8fd8caf52530d44e3a52a3c8ffc7e0e07021fb56 | [] | no_license | jcnelson/dotfiles | c585d901aeb6470fc208c48aff644e5c41b6e373 | ecc0decc47b5ebfa0a10a601b0c9d423f029d8d5 | refs/heads/master | 2023-07-09T13:18:48.316138 | 2021-08-16T21:37:15 | 2021-08-16T21:37:15 | 393,789,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | #!/usr/bin/env python2
import blockstack.lib.client as client
import sys
if len(sys.argv) != 3:
print 'Usage: {} URL MY_HOSTPORT'.format(sys.argv[0])
sys.exit(1)
url = sys.argv[1]
my_hostport = sys.argv[2]
res = client.atlas_peer_exchange(url, my_hostport)
if 'error' in res:
print >> sys.stderr, res['er... | [
"judecn@gmail.com"
] | judecn@gmail.com | |
d54e85142ee0ab8f96cfcfa18e4bc96d72515270 | 664c2a605b66a5c7f0736dce4ec931121c902e92 | /pc_parts_and_pre_bu_19330/urls.py | 4f27e4f1ef58d5a59aabe15fd3f620f41bfd30c8 | [] | no_license | crowdbotics-apps/pc-parts-and-pre-bu-19330 | 1d928c00be21ebab34370c87b85298918524e1b8 | ab5497354982bb8b98ef6b6d2babf8e5b5603106 | refs/heads/master | 2022-11-25T11:21:37.302246 | 2020-08-03T06:06:46 | 2020-08-03T06:06:46 | 284,617,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | """pc_parts_and_pre_bu_19330 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2d73ae6bac6536c5fda033ec2ce494c8844caaa2 | ed89100f62a65dd695dcebf1edbf7ef6d1e52e05 | /backend/virtus_vendas_26667/settings.py | 61d7b40db2ab20efc25c914b65875e3c9c023cda | [] | no_license | crowdbotics-apps/virtus-vendas-26667 | 2cb5b4033e4a165d8548f829482d035e4ca76a61 | c1eb82acb5819e4713d3eeb0b652183c7e70dca8 | refs/heads/master | 2023-04-28T05:26:52.770353 | 2021-05-13T19:01:40 | 2021-05-13T19:01:40 | 367,144,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,241 | py | """
Django settings for virtus_vendas_26667 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
be9b8b1ef80a08ce5d2987a73bd9cd358b7d84a6 | 1b97466b9acf6b2f869d658d5b59f562cf5969f7 | /neutron_lib/tests/unit/api/definitions/base.py | 8c643b608be662eda3cec5213e568003e7a780ae | [] | no_license | HunterTOne/for_openstack | 8367ffdde47043f3935addda9f845c6121bf5da0 | f5b8c351eefb511ad3f5b4c04c3cfee176e2b800 | refs/heads/master | 2023-03-16T18:19:52.058437 | 2018-07-25T09:11:04 | 2018-07-25T09:11:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,599 | 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
# d... | [
"705034079@qq.com"
] | 705034079@qq.com |
b55eba2f854cced26d5770b3c0ee40d080c079a0 | 76f2a4ea3896a74b155ff970b3ddd538f268ebd4 | /07_deque/deque_02.py | 48450fda9420eecb7d5448e55c8aa86fab977bd1 | [] | no_license | jnjnslab/python-sample | fb91c34aa274ae6371c9548637e9fe2994da63ff | ce71ceff2854e59c020c646831360a04f6eba0c0 | refs/heads/main | 2023-02-03T01:36:59.926884 | 2020-12-23T10:18:13 | 2020-12-23T10:18:13 | 309,023,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from collections import deque
d = deque(['a', 'b', 'c', 'b', 'd'])
print(d)
#末尾の要素を取り出して削除する
print(d.pop())
print(d)
#先頭の要素を取り出して削除する
print(d.popleft())
print(d)
#引数に指定した値と等しい最初の要素を削除する
d.remove('b')
print(d)
#すべての要素を削除する
d.clear()
print(d)
| [
"jnjnslab@gmail.com"
] | jnjnslab@gmail.com |
d7a3a625d375b2fc728468998a8e491c40986a90 | 401ea01ffb848f1eabd8aa17690ec1ff5dc8e6bd | /bimdata_api_client/models/perspective_camera.py | 81295868aebd5a2fbc1496edbc721a77a164eaa9 | [] | no_license | bbrangeo/python-api-client | 735acda3627d7a0ddd78ecb1e9617bb4082c9001 | c2481e0cd012a41aeceefdce289d48509540b909 | refs/heads/master | 2020-03-14T18:24:20.888631 | 2018-04-30T14:47:47 | 2018-04-30T14:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,165 | py | # coding: utf-8
"""
BIMData API
BIMData API documentation # noqa: E501
OpenAPI spec version: v1
Contact: contact@bimdata.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from bimdata_api_client.models.direction import Di... | [
"hugo.duroux@gmail.com"
] | hugo.duroux@gmail.com |
aa75d38b8c07193242713845244d81c0842b4c6f | 2e86ab87cb86ae4ffed162bc3e1109da7b362915 | /supervisor/host/network.py | 952e34e467aa9cf8ae2901b27ea15bcf8c703ae1 | [
"Apache-2.0"
] | permissive | swipswaps/supervisor | c5cae4ecad4d9bc53191c3882f4337d3edc5219a | 2d294f68418fbbcdbad776cdd9c614ef952074c4 | refs/heads/main | 2023-01-24T13:18:51.463358 | 2020-11-30T17:00:12 | 2020-11-30T17:00:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,204 | py | """Info control for host."""
from __future__ import annotations
import asyncio
from ipaddress import IPv4Address, IPv4Interface, IPv6Address, IPv6Interface
import logging
from typing import List, Optional, Union
import attr
from ..coresys import CoreSys, CoreSysAttributes
from ..dbus.const import (
DBUS_NAME_NM_... | [
"noreply@github.com"
] | swipswaps.noreply@github.com |
b17dd32c9b3b25d8d89706ae61319b7f74242d34 | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/matplotlib/backends/backend_qt4.py | 9c109809d762262687035e940ac8a7bd94b53d42 | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8df3ca074fdce38cb1384b45572090176efc6f415c3f79b357016ac7d863bf02
size 528
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
01cce0e35a1904c3bab0d2da31df70a6256fd38f | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/pqp.py | 688b17541bd602bcd95f9460398f8d76ae2fe6f4 | [] | 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 |
61ffe576631b7639fed1c6f6e26f9b39ca48035d | 6f8741acf8a45bd982bb6df2062aba9c07e487aa | /example/restful/getorder.py | 595b7b387eb2a3f86c257f3cd671e7f6d9a68ba7 | [
"Apache-2.0"
] | permissive | icemilk00/huobi_Python | 1e384ae63ed5ef11c8bda72451d0bbd08f812bd4 | 0cccd98ed926faa21e0bfc34033e29755788a36e | refs/heads/master | 2022-10-16T12:29:28.714765 | 2020-06-12T06:43:39 | 2020-06-12T06:43:39 | 271,703,672 | 0 | 0 | Apache-2.0 | 2020-06-12T03:55:14 | 2020-06-12T03:55:13 | null | UTF-8 | Python | false | false | 772 | py | from huobi import RequestClient
from huobi.constant.test import *
from huobi.model import *
request_client = RequestClient(api_key=g_api_key, secret_key=g_secret_key)
client_order_id_tmp = "abc022602"
symbol_test = "eosusdt"
order_id = request_client.create_order(symbol_test, AccountType.SPOT, OrderType.BUY_LIMIT, a... | [
"devin0thinking@gmail.com"
] | devin0thinking@gmail.com |
6af23b0025e372d0d1e5a84011fd6e10a3ecf3b0 | 61e98b0302a43ab685be4c255b4ecf2979db55b6 | /sdks/python/.tox/lint/lib/python2.7/site-packages/isort/pie_slice.py | d8a35769ece93fcace90e1f43aab24952b59bef8 | [
"Apache-2.0",
"BSD-3-Clause",
"EPL-2.0",
"CDDL-1.0",
"WTFPL",
"GPL-2.0-only",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | dzenyu/kafka | 5631c05a6de6e288baeb8955bdddf2ff60ec2a0e | d69a24bce8d108f43376271f89ecc3b81c7b6622 | refs/heads/master | 2021-07-16T12:31:09.623509 | 2021-06-28T18:22:16 | 2021-06-28T18:22:16 | 198,724,535 | 0 | 0 | Apache-2.0 | 2019-07-24T23:51:47 | 2019-07-24T23:51:46 | null | UTF-8 | Python | false | false | 17,903 | py | """pie_slice/overrides.py.
Overrides Python syntax to conform to the Python3 version as much as possible using a '*' import
Copyright (C) 2013 Timothy Edmund Crosley
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to ... | [
"alex.barreto@databricks.com"
] | alex.barreto@databricks.com |
fa437bbc63266f5902b881468fed8899cc846ac1 | 408099135939ccdb7fc52f110792ce651fb6b00a | /test/data/pkg_config_system/build.bfg | eb007f59c0272373e4d1023c20c2a7e168d369a3 | [
"BSD-3-Clause"
] | permissive | thomasrockhu/bfg9000 | 757271db484ddcd06e8b391c3b8818882857f66e | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | refs/heads/master | 2022-11-29T00:07:15.914649 | 2020-07-24T21:12:38 | 2020-07-24T21:12:38 | 282,257,111 | 0 | 0 | BSD-3-Clause | 2020-07-24T15:37:41 | 2020-07-24T15:37:40 | null | UTF-8 | Python | false | false | 412 | bfg | # -*- python -*-
project('hello', '1.0')
ogg = package('ogg')
include = header_directory('include', include='*.hpp')
inner = library('inner', files=['src/inner.cpp'], packages=[ogg])
lib = library('hello', files=['src/hello.cpp'], includes=[include],
libs=[inner])
install(lib, include)
pkg_config(
... | [
"itsjimporter@gmail.com"
] | itsjimporter@gmail.com |
ba137d980af801fbc0772ae038da8ee2e596429e | 159b10d4348cec34d8e00b0a29b290122e299c86 | /filter/migrations/0002_auto_20210113_0802.py | 63c5a165acc7b5d4efc5f307e2e375a455f8608d | [] | no_license | mhkmcp/test-haystack | 1368076eda6a4092786734fc7d8e2199af5307c5 | 3bde362a128f69bad4cf1cbcdef0f76f85428aac | refs/heads/master | 2023-02-16T17:02:08.433658 | 2021-01-14T05:07:09 | 2021-01-14T05:07:09 | 329,344,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | # Generated by Django 3.1.5 on 2021-01-13 08:02
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('filter', '0001_initial'),
]
operations = [
migrations.RemoveIndex(
model_name='filter',
... | [
"mhkmcp@yahoo.com"
] | mhkmcp@yahoo.com |
9b645127a297483f26e03eff8f268ae39a19c0e6 | c718328deda2330bb223d7ff603b6347829fa312 | /backend/home/migrations/0002_load_initial_data.py | 1fb729cb217df741592b3c77d11e7b077b0bbcea | [] | no_license | crowdbotics-apps/fs-alliance-group-25655 | 37ce58469315f66cf6ab89ecfaba1683424e5f72 | 3078903549cfab0dafdc994a6b282b5233b28a50 | refs/heads/master | 2023-04-11T14:33:21.997422 | 2021-04-13T03:32:16 | 2021-04-13T03:32:16 | 357,412,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "FS Alliance Group"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9f1cece0a19132f15f9742ef20b9fac897301517 | 967056372d123ad5a86705156aea928d7352fe6a | /python基础/unittest/set_tear_模块级别.py | f243ba9645eb8de4518cf4f5fd1960acad801cb9 | [] | no_license | lxy39678/Python | ea179ef929eb9ddddb2460656aad07880ae67f84 | aba0434bc8ca7a2abdaa3ced3c4d84a8de819c61 | refs/heads/master | 2020-04-18T22:05:11.683134 | 2019-01-27T07:49:09 | 2019-01-27T07:49:09 | 167,783,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/python
# -*- coding:utf-8
import unittest
import logging
def setUpModule():
print("setup method\n")
global foo
foo = list(range(10))
class simple_test(unittest.TestCase):
def test_1st(self):
logging.info('info')
logging.error('error')
print('simple_test1_1'+str(fo... | [
"895902857@qq.com"
] | 895902857@qq.com |
ef6ab6f833cf0d1a174e3470a89507efdf155538 | f90a30cfafc5d786a3dc269f3ca48dce3fc59028 | /Payload_Types/poseidon/mythic/agent_functions/jobkill.py | 0a16b46a30567742a0e95f0c002e7cf98be4bef3 | [
"BSD-3-Clause",
"MIT"
] | permissive | NotoriousRebel/Mythic | 93026df4a829b7b88de814e805fdce0ab19f3ab9 | 4576654af4025b124edb88f9cf9d0821f0b73070 | refs/heads/master | 2022-12-03T01:19:20.868900 | 2020-08-18T03:48:55 | 2020-08-18T03:48:55 | 288,780,757 | 1 | 0 | NOASSERTION | 2020-08-19T16:20:19 | 2020-08-19T16:20:18 | null | UTF-8 | Python | false | false | 878 | py | from CommandBase import *
import json
class JobKillArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {
}
async def parse_arguments(self):
pass
class JobKillCommand(CommandBase):
cmd = "jobkill"
needs_admin = False
... | [
"codybthomas@gmail.com"
] | codybthomas@gmail.com |
db4ed8224152fe2f46831dfd2849c1cc3a67804c | 7e25d64f7755193acc10daff6909c40f92d61a92 | /python/lsst/eotest/sensor/Fe55GainFitter.py | 6de10f461b2dbc16cbe95e7308831397404e526a | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mfisherlevine/eotest | 958491a976ef75d163596c786cda08bcf2853675 | 28a43328286d02b70a05c9862c29e600fb1f6aef | refs/heads/master | 2021-07-20T00:03:37.435893 | 2017-07-21T23:36:14 | 2017-07-21T23:36:14 | 100,418,494 | 0 | 0 | null | 2017-08-15T20:52:44 | 2017-08-15T20:52:44 | null | UTF-8 | Python | false | false | 5,950 | py | #!/usr/bin/env python
"""
@brief Function to fit the Fe55 signal distribution to obtain the
system gain.
@author J. Chiang <jchiang@slac.stanford.edu>
"""
import numpy as np
import scipy.stats
import scipy.optimize
import pylab
import pylab_plotter as plot
import lsst.afw.math as afwMath
from fe55_yield import Fe55Yie... | [
"jchiang@slac.stanford.edu"
] | jchiang@slac.stanford.edu |
b1badc637211cea06eb91713c2e09f96e6863cf3 | 717fbff92a7998660dc572666b045500cf028dff | /Configuration/Generator/python/old_config_files/SingleMuPt75_3rdbin.py | c80dd59994b58864d73499559ca073aa93bc939f | [] | no_license | neharawal14/muon_gun_project | 20c84874c14b75cb5fed4e9b7958927f6ddaf9f9 | efccbc36c4d511f1b8dafed8292604331b7b38ae | refs/heads/main | 2023-08-22T15:24:21.255977 | 2021-09-22T17:46:25 | 2021-09-22T17:46:25 | 409,301,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | import FWCore.ParameterSet.Config as cms
generator = cms.EDFilter("Pythia8PtGun",
PGunParameters = cms.PSet(
MaxPt = cms.double(75.01),
MinPt = cms.double(74.99),
ParticleID = cms.vint32(-13),
AddAntiParticle = cms.bool(False),
MaxEta = cms.double(0.6),
... | [
"nrawal@lxplus.cern.ch"
] | nrawal@lxplus.cern.ch |
4310e519cdd2d079bdcf6360012403b8671a458e | 1b4d6bb4aadf76e8fe773e8e74d26cdf88232029 | /tzj_scrapy/tzj_scrapy/spiders/muzishijian.py | ebe1c2270ac1ffed8fa26c7249a0c8b2874af5a3 | [] | no_license | mengguiyouziyi/touzijie | 3b82c607cd2f67c1c7da0f8c97b725d1281b53dd | e88b3a65efff3361ef1b0ba3b9f117f48bc91e97 | refs/heads/master | 2021-07-07T03:00:29.919756 | 2017-09-28T08:38:00 | 2017-09-28T08:38:00 | 104,538,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.selector import Selector
from tzj_scrapy.items import MzsjItem
# from tzj_scrapy.utils.get1 import get_key
from urllib.parse import urljoin
import io
import sys
# sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
class TouzishijianSpider(scrapy.Spide... | [
"775618369@qq.com"
] | 775618369@qq.com |
344e0a6dc278d4db4fa4920c2cc7c60a907b0d12 | 7684ffabb75ed2d6396d3a720c56ed0ee09ee77d | /crack_detection/gcloud/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/file/v1beta1/file_v1beta1_messages.py | bd808c5c645aa9dcb49b8d1741dfd0142f5651d6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/CrackPropAPI | da7cc7a1ef046d20992423f7c7a148e390bb70e7 | 24c0cfd1f258eeaa7e5e953253b5d778f2fbecb5 | refs/heads/master | 2022-11-09T07:15:41.142453 | 2020-07-02T14:34:15 | 2020-07-02T14:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,057 | py | """Generated message classes for file version v1beta1.
The Cloud Filestore API is used for creating and managing cloud file servers.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools... | [
"yopi1838@gmail.com"
] | yopi1838@gmail.com |
b4c434a83704ff472db17fc9932a1198e3bd06f2 | f2b3588ff5405c1fd85c2ccefd11f0dba78d4d64 | /aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/DescribeVodStreamURLRequest.py | f389ceebd8c958228773158b8a926d8ab06c1ff4 | [
"Apache-2.0"
] | permissive | stefan-pan/aliyun-openapi-python-sdk | 456cc6e82c86bce3095f0420a1fc68efe6125f60 | d598b3a57531fbaa1f3f118a1e50ee528648eb25 | refs/heads/master | 2020-06-26T09:38:31.809193 | 2019-07-29T10:09:01 | 2019-07-29T10:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | 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 ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
a55133d12f601d2b8e694115aef89e7d4fb54e11 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/lobby/battle_pass/tooltips/battle_pass_points_view.py | e285400ec3df8978f9c6d6ecb02042389c610cf8 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 3,031 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/lobby/battle_pass/tooltips/battle_pass_points_view.py
import logging
from frameworks.wulf import ViewSettings
from gui.impl import backport
from gui.impl.gen import R
from gui.impl.gen.view_models.views.lobby.battle_pass.to... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
0ef194497106b9c216469bae7adcdbd040d4dd27 | 0399e77a5ce36cf78ce17101efc56edf7e038672 | /manage.py | 5c67269c53138c95b9533ba21c5677277996178a | [] | no_license | crowdbotics-apps/my-test-app-27999 | 46078efd471a34bb00e4e5dafa8c1c543b319746 | 76bece69aa667f7c8d1dca9c9aa358b8a8599e12 | refs/heads/master | 2023-05-17T12:49:47.663070 | 2021-06-15T19:53:06 | 2021-06-15T19:53:06 | 377,273,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_test_app_27999.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
ra... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fdc5ad4f4cada1514ec33e31db0ca8bafd165dc5 | d873d529a24a30e2a9fc3e5a15ef6fe595c1423e | /blockchain-env/Lib/site-packages/aiohttp/hdrs.py | f04a5457f9fea68942d254fb968588077a62cc2a | [
"MIT"
] | permissive | AdityaStark7/blockchain_backend | 2731d733a0029614565b484ec5820d04f615bfe7 | a019dda3bd4160ae962ced5bd95d060ad33f7f07 | refs/heads/main | 2023-08-19T12:26:38.211892 | 2021-10-15T05:31:18 | 2021-10-15T05:31:18 | 385,313,460 | 8 | 1 | MIT | 2021-10-11T17:28:22 | 2021-07-12T16:31:53 | Python | UTF-8 | Python | false | false | 3,446 | py | """HTTP Headers constants."""
# After changing the file content call ./tools/gen.py
# to regenerate the headers parser
from multidict import istr
METH_ANY = "*"
METH_CONNECT = "CONNECT"
METH_HEAD = "HEAD"
METH_GET = "GET"
METH_DELETE = "DELETE"
METH_OPTIONS = "OPTIONS"
METH_PATCH = "PATCH"
METH_POST = "POST"
METH_PU... | [
"ak511046@gmail.com"
] | ak511046@gmail.com |
33a662147a6c1400d1f49d9ae7295a2b77483e4d | 95548a6b58060385c4d4d73e1c25a61ede022997 | /bin/retangular_mesh.py | 290f8c7fedcf6b45f5565f7525b8fe5a9bc8fdaf | [] | no_license | HenriqueCCdA/fortranFVCell | 9399528c13205db14dec6d56053e2ee40abec228 | 6bab0184ac5b5fe778e6a75f806002fa96e4df35 | refs/heads/main | 2023-04-11T17:08:00.139532 | 2021-05-16T02:10:18 | 2021-05-16T02:10:18 | 366,568,963 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,083 | py | #!/usr/bin/python
import sys
#**********************************************************************
def main(argv):
progArg = (['largura altura nl nh fileOut'])
#checando os agumentos
nArgs = len(argv)
if nArgs < 4:
sys.stderr.write("Usage: %s "%argv[0])
for arg in progArg:
print arg
return... | [
"devnull@localhost"
] | devnull@localhost |
9a003388b3ed0bee760200d6e87b92c0279dd563 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/client/gui/battle_controlvehicle_state_ctrl.py | 32b0d03ac0e056d2fc0e66115199675052b10828 | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,935 | py | # Embedded file name: scripts/client/gui/battle_control/vehicle_state_ctrl.py
import math
import weakref
import BigWorld
import Event
import SoundGroups
import nations
from debug_utils import LOG_CURRENT_EXCEPTION
from gui.battle_control import avatar_getter
from gui.battle_control.battle_constants import VEHICLE_VIEW_... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
aa65722d795a51e1fa43b8a818b92c7219530408 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/abc/094a.py | 00a1760953de8bbe77b1ab90f19059811925e618 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | A, B, X = map(int, input().split())
if A <= X <= A + B:
print('YES')
else:
print('NO') | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
8fe6410dd8284adf91c79d838b3cf0d6a5d78c29 | aed1572b9050c984bd4db5d4e39ea7dc287019ea | /test/test_cores/test_video/test_lt24lcd_driver.py | 25db5ac65403408df6b72ed6ba7d543bf7e7e52b | [
"MIT"
] | permissive | sanojb/rhea | 19072b02ca88eb7a1b3f86eaf2d9c0f265b83d23 | c09932eebfb59f3ca01cb93a42fa34f9570af00c | refs/heads/master | 2021-01-12T08:00:49.919641 | 2017-01-05T21:15:50 | 2017-01-05T21:15:50 | 77,093,377 | 0 | 0 | null | 2016-12-21T23:21:59 | 2016-12-21T23:21:59 | null | UTF-8 | Python | false | false | 3,157 | py |
from __future__ import absolute_import
from random import randint
import myhdl
from myhdl import Signal, intbv, delay, instance, StopSimulation
from rhea import Global, Clock, Reset
from rhea.cores.video.lcd import LT24Interface
from rhea.cores.video.lcd.lt24lcd_driver import lt24lcd_driver
from rhea.models.video i... | [
"chris.felton@gmail.com"
] | chris.felton@gmail.com |
227f91621d79edc404bcdcacd50b4872b040f64a | 1fc7fc8cc0ad49133ba9a4dae910fd7d6e9b242c | /pyqtgraph/opengl/items/GLImageItem.py | 7bd0ec02adaebb698c014daacf77601088526f39 | [
"MIT"
] | permissive | Yingzhang1122/DiffractionLimitedAnalysis | 2a67ac2ac87e9fdaf9262a565cc717899e439561 | 6ea260b738a624962a329dcb7ae19ee048515edf | refs/heads/main | 2023-06-03T16:12:15.684375 | 2021-05-26T18:47:40 | 2021-05-26T18:47:40 | 368,825,659 | 0 | 0 | MIT | 2021-05-19T10:11:17 | 2021-05-19T10:11:17 | null | UTF-8 | Python | false | false | 3,785 | py | from OpenGL.GL import *
from .. GLGraphicsItem import GLGraphicsItem
from ...Qt import QtGui
import numpy as np
__all__ = ['GLImageItem']
class GLImageItem(GLGraphicsItem):
"""
**Bases:** :class:`GLGraphicsItem <pyqtgraph.opengl.GLGraphicsItem>`
Displays image data as a textured quad.
"""
... | [
"zengjie.xia7@gmail.com"
] | zengjie.xia7@gmail.com |
3b308f3b2a7c423b5dba1f292fcdbe7bf083b16f | 745e6abeaed0d1f9c178bd8a86821d1c8f0f66ac | /B.py | 6c65a4209f7ee5192c6537155545f68ae20167c6 | [] | no_license | alireza-shirmohammadi/python_client_kafka_elastic | 6e92478501cb3dfff6c864b46efd9b4839c8dff2 | 4a67d666b8e9369d18ec178983eab79afc48d7ef | refs/heads/master | 2023-03-10T19:16:00.288264 | 2021-02-24T07:46:00 | 2021-02-24T07:46:00 | 341,819,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | from confluent_kafka import Consumer, KafkaError, KafkaException
import sys
from confluent_kafka import Producer
import socket
conf = {
"bootstrap.servers": "0.0.0.0:9092,0.0.0.0:9092",
"group.id": "foo",
"auto.offset.reset": "smallest",
"enable.auto.commit": True,
}
consumer = Consumer(conf)
msg_coun... | [
"alireza.sh076@gmail.com"
] | alireza.sh076@gmail.com |
dee95a9c8fddcfe05faa9c07fcb39a0d011a3e37 | 96a8bc21de27af635edf78d59381bcd3d1630ce0 | /mainapp/models.py | 913a075d4f731aac974591ae273b447a5eec78e3 | [] | no_license | spoliv/geekshop | 00d5174871f7fa1ed53e598414d65557bad96079 | d61e1b2db368a13856709fd823faf114cf72d20b | refs/heads/master | 2022-12-28T18:34:55.263207 | 2020-10-07T10:01:01 | 2020-10-07T10:01:01 | 299,283,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | from django.db import models
class ProductCategory(models.Model):
class Meta:
verbose_name='Категория'
verbose_name_plural='Категории'
name = models.CharField(verbose_name='имя_категории', max_length=64, unique=True)
description = models.TextField(verbose_name='описание_категории', blank=... | [
"spoliv@rambler.ru"
] | spoliv@rambler.ru |
5d86c65af7c40ebee43f88b38a8a53e211660c97 | 4cc7c74b4bb7b818562bedffd026a86f9ec78f41 | /build/android/pylib/utils/test_filter_test.py | 8ee3d211c196313c9bab7de89a0c93d5bc62b12c | [
"BSD-3-Clause"
] | permissive | jennyb2911/chromium | 1e03c9e5a63af1cf82832e0e99e0028e255872bd | 62b48b4fdb3984762f4d2fd3690f02f167920f52 | refs/heads/master | 2023-01-10T01:08:34.961976 | 2018-09-28T03:36:36 | 2018-09-28T03:36:36 | 150,682,761 | 1 | 0 | NOASSERTION | 2018-09-28T03:49:28 | 2018-09-28T03:49:27 | null | UTF-8 | Python | false | false | 1,473 | py | #!/usr/bin/env vpython
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import unittest
from pylib.utils import test_filter
class ParseFilterFileTest(unittest.TestCase):
def testParseFilterF... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
0c76d9e242660273fb2d8c15107808332b8503b4 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /xbZR26rHMNo32yz35_4.py | b087852dd80715994832789ae4f716185e753b52 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py |
def calc_age(age):
return age*365
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e5d65fa47e818fc11d230e04e1a6fa7a33045034 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /editable_graph_temporal/script_train.py | 8c4782af8e3a669d3914fd961e9030afc169d6d4 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 4,262 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
e839e3d267f984ef71dad346a1ed248ab1eb33f3 | 437e905d8c214dc25c559b1dc03eaf9f0c85326f | /is28/lebedeva28/z4/5.py | 794652a791e7488b019579bcab33ed23cebcbf64 | [] | no_license | AnatolyDomrachev/karantin | 542ca22c275e39ef3491b1c0d9838e922423b5a9 | 0d9f60207e80305eb713fd43774e911fdbb9fbad | refs/heads/master | 2021-03-29T03:42:43.954727 | 2020-05-27T13:24:36 | 2020-05-27T13:24:36 | 247,916,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | def poisk(str1):
str2=input("Введите искомyю строкy: "
stro=str1.find(str2)
if stro>0:
result=True
else:
result=False
return result
str1=input("Введите начальнyю строкy: ")
result=poisk(str1)
print(result) | [
"you@example.com"
] | you@example.com |
c45a32ef8638382f32be9f2c1f303f2c899f3e48 | 77044831b2f8a659ab5a14951ee19638d232233e | /python_test/python_test/settings.py | b3e9bccd03ce15f5bc34a6a24d29f06cdb070d5f | [] | no_license | pnija/Assignment | 225df21fc4b02e25cfd642a29101fd525574cfac | 64eaa18644799f5239e4adea8e0ccfc993afae28 | refs/heads/master | 2022-05-03T02:47:53.161815 | 2019-05-24T10:31:23 | 2019-05-24T10:31:23 | 188,402,980 | 0 | 0 | null | 2022-04-22T21:19:39 | 2019-05-24T10:30:25 | HTML | UTF-8 | Python | false | false | 3,317 | py | """
Django settings for python_test project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impor... | [
"nijap@techversantinfotech.com"
] | nijap@techversantinfotech.com |
b9f7dbf621a1d4f84ce5c0caff547a838d6d0483 | a1ce33bcd9bde0e044c88dbd591774952f0469dc | /unidade-7/primeiro-menor/primeiro_menor.py | fcbbbd36978cddc84287e8a78c7f687dca64e2ac | [] | no_license | juliafealves/tst-lp1 | 91420522fcc9e3f66ad451aa4c500f5df24e51b7 | 1f324d66429a95796e02f718f0cd35dd7e7bd4a2 | refs/heads/master | 2021-09-07T11:08:34.420830 | 2018-02-22T02:40:50 | 2018-02-22T02:40:50 | 107,728,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # coding: utf-8
# Programação 1 - 2017.2 UFCG
# Aluna: Júlia Fernandes Alves (117211383)
# Atividade: Primeiro Menor - Unidade 7
# Através do separador, "explode" os elementos
# e cria uma lista com os elementos.
def explode(cadeia, separador=" "):
lista = []
palavra = ""
for caracter in cadeia:
... | [
"juliafealves@gmail.com"
] | juliafealves@gmail.com |
a78da0f5b91353d74746af603bf2f516e6a485e8 | 066799c583257ec32433727a564e21a25c5c3273 | /staff_toolbar/loading.py | 48b9448df01713b509d2cae04025abbfe4466c13 | [
"Apache-2.0"
] | permissive | edoburu/django-staff-toolbar | 238de3b86e751be1a56a63111776a8e8129768af | 4b5e14f1ca3a26e78febbc3f5ef4a308a212712b | refs/heads/master | 2021-11-30T21:30:07.167267 | 2021-11-16T21:38:52 | 2021-11-16T21:38:52 | 20,481,245 | 7 | 1 | Apache-2.0 | 2020-03-12T15:02:12 | 2014-06-04T11:47:14 | Python | UTF-8 | Python | false | false | 2,499 | py | """
The internal machinery to load the toolbar items.
"""
import inspect
import sys
import traceback
from django.core.exceptions import ImproperlyConfigured
from staff_toolbar import appsettings
from staff_toolbar.items import Group, RootNode
try:
from importlib import import_module
except ImportError:
from ... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
92eca656b59e2a3d42d71008a6cded115d3c0818 | 190f56bb215311c293e2c07e40be3d7cc3a5e189 | /carts/migrations/0003_auto_20200816_0457.py | a156738784aa747e9aa7b8ab608e2fcf0b8626e8 | [] | no_license | Omsinha017/Ecommerce | 457dec1c5dcc313d4fae6dff0b1d7c7f43874655 | d4e57576eef18626d458f0c06b186d0b8a6bc753 | refs/heads/master | 2023-06-21T11:21:46.495736 | 2021-07-24T09:09:16 | 2021-07-24T09:09:16 | 305,804,444 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.0.3 on 2020-08-15 23:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carts', '0002_auto_20200816_0455'),
]
operations = [
migrations.AlterField(
model_name='cart',
name='total',
... | [
"omsinha017@gmail.com"
] | omsinha017@gmail.com |
59ae9dedd1d2a3a4e522924f6c274868833a57f0 | a550aece79bda789826b463280b91abffbf2d372 | /books/python-3-oop-packt/Chapter12/12_05_skipping_tests.py | 766e873236e512511ee845050ba334664937c0c7 | [
"MIT"
] | permissive | phiratio/learn_python | 20376470eaa292c157fd01f52b3077e3a983cd5a | a32240d4355fb331805d515f96e1d009914e5c47 | refs/heads/master | 2022-11-27T07:07:45.712373 | 2020-12-03T22:04:31 | 2020-12-03T22:04:31 | 189,397,679 | 1 | 0 | MIT | 2022-11-22T04:40:27 | 2019-05-30T10:56:10 | Python | UTF-8 | Python | false | false | 620 | py | import unittest
import sys
class SkipTests(unittest.TestCase):
@unittest.expectedFailure
def test_fails(self):
self.assertEqual(False, True)
@unittest.skip("Test is useless")
def test_skip(self):
self.assertEqual(False, True)
@unittest.skipIf(sys.version_info.minor == 4,
... | [
"phiratio161@gmail.com"
] | phiratio161@gmail.com |
ba3d2d73701796bdcb0a965d3a3f57aba23a3fed | d75703c2083dfc508c5608c4c35167b67d1a4308 | /1st Chapter/__name__.py | ebf2b140ffdc50cef40abd441a7cfae51e4e0d8e | [] | no_license | vubon/Python-core | e8159763d281152a1b64da3a0534899fd3def2b5 | a415ef3c6159f0c85afa3240a762a00b2c68bd02 | refs/heads/master | 2020-07-03T17:08:10.091827 | 2016-12-09T19:26:51 | 2016-12-09T19:26:51 | 67,540,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | #print ("first module's name: {} ".format(__name__))
def main():
print("first module's name: {}".format(__name__))
if __name__ == "__main__":
main()
| [
"vubon.roy@gmail.com"
] | vubon.roy@gmail.com |
0e915b8fa649f8119e3617babc75f80b3285124a | 59bd9c968a3a31a73d17f252fe716a3eacdf7f4f | /portfolio/Python/scrapy/tec7/houseoffrasercouk.py | 00cd8309e7d885a087611c5d1334dc7b286ba0fa | [
"Apache-2.0"
] | permissive | 0--key/lib | 113ff1e9cf75e446fa50eb065bc3bc36c090d636 | a619938ea523e96ab9e676ace51f5a129e6612e6 | refs/heads/master | 2023-06-23T22:17:54.244257 | 2023-06-21T17:42:57 | 2023-06-21T17:42:57 | 23,730,551 | 3 | 5 | null | 2016-03-22T08:19:30 | 2014-09-06T08:46:41 | Python | UTF-8 | Python | false | false | 795 | py | from scrapy.contrib.spiders import CSVFeedSpider
from product_spiders.items import Product, ProductLoader
class HouseoffraserCoUkSpider(CSVFeedSpider):
name = 'houseoffraser.co.uk'
allowed_domains = ['localhost']
start_urls = (
'http://localhost/tec7products.csv',
)
delimiter = ','
... | [
"a.s.kosinov@gmail.com"
] | a.s.kosinov@gmail.com |
19cef521d681fa721cdc15f7de6b56a066f23ec6 | a0e4afcfa3fd6bd778e12f69b0516413c3528a5c | /fetch-changes-api.py | acc2acf51a7405a67623de157d44afc11cdcf958 | [] | no_license | andylolz/ynmp-contrib | 69791782bbd1b2f6d5bd4d10c4f7a30ac48f4d61 | 72c029275bd2954914302dd71d4b97c498d6af7f | refs/heads/master | 2021-04-09T12:59:49.886634 | 2018-03-16T10:32:09 | 2018-03-16T14:41:13 | 125,392,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from os import system
import json
import requests
tmpl = 'https://candidates.democracyclub.org.uk/api/v0.9/' + \
'logged_actions/?format=json&page={}&page_size=200'
page = 1
data = []
while True:
print('Page {} - {} found. Latest: {}'.format(
page,
len(data),
data[-1]['created'][:7... | [
"a.lulham@gmail.com"
] | a.lulham@gmail.com |
40dd6fe468883b4dc04a345f4a9a54ca48f41dbd | 4be918050c009b2c45e0ba19a8d7629a76ab41cc | /2017_CSIE/Course-0/pwn1.py | 1889bdab6776bd48f028695e6f7cd43e4b336665 | [
"MIT"
] | permissive | Dr-34m-3r/CTF | 43b4394d43536be2bb77c2fae02995211b9fffa2 | 094390d19a59eec89d7ccddd2fd8638d76ab90e5 | refs/heads/master | 2022-08-13T22:24:27.103593 | 2018-04-08T12:08:21 | 2018-04-08T12:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | #!/usr/bin/env python3
from pwn import *
off = 40
addr = 0x400566
r = remote('csie.ctf.tw', 10120)
r.send('a'*off+p64(addr))
#print(r.recv())
r.interactive()
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a31d3dbce257684abd711d2ce723f60067f405ea | da8b41d57ab5e062da157d9d556a6944a39e8c94 | /Preselection/loop.py | ca10ae53d9fc1a46c6c4ab9a6085bb8747beb80f | [] | no_license | yashmehra028/HggAnalysisDev | 352b6aedeefbe97fd3a7773e106ce02f77913dc5 | e1f99885b45ceb3b72fa531e516a0f89126cca84 | refs/heads/main | 2023-09-04T00:04:31.533555 | 2021-07-15T21:02:28 | 2021-07-15T21:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,281 | py | import json
import argparse
from helpers import loop_helper
"""
This script is an all-purpose looper which performs a selection and writes
all events passing this selection to a pandas dataframe
"""
parser = argparse.ArgumentParser()
# Physics content
parser.add_argument(
"--samples",
help = "path to json f... | [
"sammay@ucla.edu"
] | sammay@ucla.edu |
741245bdf7aee6afe704af80c317972890e1e3a2 | 890c89ce2389a6876a132260262b06814b573082 | /Seu健康申报定时填报体温/2021-1-10/Main_seu_health.py | d7cd4f305cf8118ab818ed6e4d91ce439e18eaca | [] | no_license | WangDooo/Little-ExE | e99484123dcff7b6efc819a756f4409566ce2285 | ba1dfa7d865de22877911e71c4efbdfdfce2cc87 | refs/heads/master | 2021-05-26T05:59:54.676595 | 2021-01-10T10:47:08 | 2021-01-10T10:47:08 | 127,772,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,230 | py | import requests
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8') #改变标准输出的默认编码
# POST发送到的网址
url_login = "https://newids.seu.edu.cn/authserver/login"
url_login_info = "https://newids.seu.edu.cn/authserver/login"
url_login_pwd = "https://newids.seu.edu.cn/authserver/needCaptcha.html?... | [
"wangbc1993@163.com"
] | wangbc1993@163.com |
c3f3c4f9d372019f085a24ec3b1932e11a0b96b3 | 759bab1e7bec6db3893bcfc880c15268c4ba43d7 | /tests/test_retina.py | 13adc0f2e9cfd061a259e9318e863594b523789a | [
"MIT"
] | permissive | malashinroman/recurrent-visual-attention | 89e2b788918b2e88d30fcc907610f82a1c284118 | 7a0ba286e35565bf52eea7995e277d2c7c03d1ad | refs/heads/master | 2022-08-03T15:33:21.570558 | 2020-05-22T15:04:10 | 2020-05-22T15:04:10 | 265,047,838 | 0 | 0 | MIT | 2020-05-18T19:59:30 | 2020-05-18T19:59:29 | null | UTF-8 | Python | false | false | 4,327 | py | import sys
sys.path.append("..")
import torch
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from PIL import Image
from modules import retina
from functools import reduce
from torch.autograd import Variable
from utils import img2array, array2img
# params
TEST_GLIMPSE = True
T... | [
"kevinarmandzakka@gmail.com"
] | kevinarmandzakka@gmail.com |
bb2b8ff1b2c6895e6d5d78f981281a7ba5869fc6 | 390a679e7c121eb512bc50f1c5e9ed0185676950 | /0527/2210104019/kadai1.py | 3835cd26ca37bdbbfe5e58b1a67de8715abad6aa | [] | no_license | YTsuchimoto/EC21 | e0ca2861deeee0157bffbdac1ed567978a883281 | 01f61d5f9c28d6cc7271530eab46fdf60e08a5ac | refs/heads/main | 2023-06-20T11:29:02.719879 | 2021-07-14T10:51:00 | 2021-07-14T10:51:00 | 363,017,958 | 0 | 0 | null | 2021-04-30T03:41:39 | 2021-04-30T03:41:38 | null | UTF-8 | Python | false | false | 790 | py | def is_sosuu(n):
for _n in range(2,n):
if n%_n==0:
return False
return True
def sosuulist(_min = 2, _max=100):
ret = []
for n in range(_min, _max):
if is_sosuu(n):
ret.append(n)
return ret
ans = 100
ansS = []
sosuu_2_100 = sosuulist(2,100)
for i in range(2**len(sosuu_2_100)):
Sa, Sb = ... | [
"noreply@github.com"
] | YTsuchimoto.noreply@github.com |
916968dd8780fcd6b71ee5167beb02be0e39dbd4 | fd01e75f6e5cb4544484bfba48cb307f0e712ab0 | /LC/122_선택제어문_형성평가3.py | a5518866710168e494f4b631af24580371f55909 | [] | no_license | hybae430/Jungol | 2b30aae434f6cc54f2b03e5aa9e8a5d98dc7f170 | a11dae5e6043f37fc9802ba317159f528f92b9f7 | refs/heads/master | 2023-03-24T09:57:53.905035 | 2021-03-20T09:16:48 | 2021-03-20T09:16:48 | 328,375,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | y = int(input())
if (not y % 400) or (not y % 4 and y % 100):
print('leap year')
else:
print('common year') | [
"violet9643@naver.com"
] | violet9643@naver.com |
f9f563de993598650fdbf4c432cb6248a9652cd6 | fd981b47482467291576ae4650d2925d6fa00564 | /robot_ws/src/rtcrobot/rtcrobot_base/nodes/mission.py | f6c00c3a1e3f4b0d1fdcba8c07f08b9eec97671c | [] | no_license | Forrest-Z/rtcrobot | 7337271e726db794ce08953f333ad9a0f8e70027 | 229ce1d7e77af9348eac870e00a2c4049e4562f1 | refs/heads/master | 2022-12-16T00:14:17.525845 | 2020-05-18T09:28:09 | 2020-05-18T09:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,221 | py | #!/usr/bin/env python
import math
import rospy
import roslib
import rospkg
import actionlib
import tf
import std_srvs.srv
from nav_msgs.msg import Odometry
import time
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
from actionlib_msgs.msg import GoalStatus
from geometry_msgs.msg import Pose, Point, Quater... | [
"mtk@mtk"
] | mtk@mtk |
2b7b9adce7809a6e42fa3b9c9afd42d05c899708 | 05dba5f83f158d583dca648e07a9a7bc863812a8 | /cythonize/cython_practice.py | e01366b2beb5a93e26c78453531e9074045fac99 | [] | no_license | scott858/equations | 40c61cabd7267c12acbadbddf79c8178f0239081 | 9440998c513d91e1e19c14d8c740ac4a4be71546 | refs/heads/master | 2020-04-10T03:11:47.257754 | 2016-01-21T03:27:05 | 2016-01-21T03:27:05 | 41,645,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | import os
print(os.uname())
def fib(n):
a, b = 0.0, 1.0
for i in range(n):
a, b = a + b, a
return a
| [
"scott.lee@nucleusscientific.com"
] | scott.lee@nucleusscientific.com |
192919a9448e01d9ac2b25a05aefbe6bc19bab1d | c0ed4442be47ebe8bd08dfa002a2dab5aefe18e7 | /olc_webportalv2/cowbat/migrations/0014_sequencingrun_progress.py | 56167d38f9283a0673c5644999af6e2ea1b39529 | [
"MIT"
] | permissive | OLC-Bioinformatics/olc_genomics_portal | c061de820b5c1859a450b54e8037df211c1b0c4e | d70ec669a3a49106f8290fff5dee089726259a23 | refs/heads/master | 2023-01-07T03:21:53.917853 | 2020-03-12T18:37:07 | 2020-03-12T18:37:07 | 163,865,619 | 3 | 59 | null | 2022-12-26T20:38:51 | 2019-01-02T16:40:01 | JavaScript | UTF-8 | Python | false | false | 415 | py | # Generated by Django 2.1.5 on 2019-09-06 14:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cowbat', '0013_auto_20190823_1932'),
]
operations = [
migrations.AddField(
model_name='sequencingrun',
name='progres... | [
"adam.koziol@inspection.gc.ca"
] | adam.koziol@inspection.gc.ca |
faedabe7c4b5873fc859905740e2b5e9b3db31f0 | db9c836d513b70a0a1c6150635d196b96fefefa0 | /Draw/draw_atoms.py | b3a73557050e475829b16438d5c7610e8e7e7d98 | [] | no_license | ansko/Draw | a00ff53795b99a75a0480fc0e4b6f16684d0618e | bf9cbf1ed93e27aecb14960c45245a74b05479e7 | refs/heads/master | 2021-01-17T23:39:45.265031 | 2017-03-07T18:48:35 | 2017-03-07T18:48:35 | 84,233,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,998 | py | #!/usr/bin/env python3
#coding utf-8
import sys
from PyQt5.QtWidgets import QWidget, QApplication
from PyQt5.QtGui import QPainter, QBrush, QLinearGradient, QColor, QRadialGradient
from PyQt5.QtCore import Qt
import pprint
pprint = pprint.PrettyPrinter(indent=4).pprint
import lat
import lat.read_atoms
#-----------... | [
"skomorokhov@phystech.edu"
] | skomorokhov@phystech.edu |
6e3d10b2a1e9796103ac2484666a5a4c6b509d45 | da6d953d2493b830a87dce2b1b02b863a3257fde | /proj_mfa/clustering/dao/mysql/db_mysql.py | 055a7bbae8ffe85e40fa73600dd572a87a4f0e07 | [] | no_license | xuhuanyunxiao/jupyter-notebook | 6f19143442ab1301e22d49745ad1a14b25ab801a | 20ca911cde18d977d062f269f165185ea0c684b2 | refs/heads/master | 2021-07-21T03:26:54.359203 | 2020-04-22T13:18:42 | 2020-04-22T13:18:42 | 135,554,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,375 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import os
import sys
import MySQLdb
from DBUtils.PooledDB import PooledDB
from MySQLdb.cursors import DictCursor
from utils.logger import logger
reload(sys)
sys.setdefaultencoding('utf-8')
class BaseMysql(object):
"""
MYSQL数据库对象,负责产生数据库连接 , 此类中的连接采用连接池实... | [
"605828203@qq.com"
] | 605828203@qq.com |
1ec85d31075a8d98051b0a0ab1ff3e460ceeee20 | 9c88ee174f74a5a8352ec8cf487a302aa87053d0 | /pylark/api_service_mail_public_mailbox_member_delete.py | 85d34ad006d75a29dc4bc2f4bb2d693dae988d53 | [
"Apache-2.0"
] | permissive | duzx1/pylark | bcf34231218ec5079b8f9820a77864fbcffa4426 | a54cce6b814935fd3c72668b262b54c8ee461484 | refs/heads/master | 2023-08-23T13:10:00.324018 | 2021-11-01T06:29:28 | 2021-11-01T06:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # Code generated by lark_sdk_gen. DO NOT EDIT.
from pylark.lark_request import RawRequestReq, _new_method_option
from pylark import lark_type, lark_type_sheet, lark_type_approval
import attr
import typing
import io
@attr.s
class DeletePublicMailboxMemberReq(object):
public_mailbox_id: str = attr.ib(
defa... | [
"chyroc@qq.com"
] | chyroc@qq.com |
2ab36093f801a64579654882a382ca496938e798 | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/activity/upgrades/to4303.py | 0ebe3c972231fb0e09425de504f2d894442134c2 | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 1,752 | py | from opengever.core.upgrade import SchemaMigration
class DropPsqlServerDefaults(SchemaMigration):
"""Unify definition of autoincrementing SQL columns.
Add explicit Sequence to enable autoincremet for oracle.
Make server-side tables/sequences consistent with other model definitions
that have been cre... | [
"david.erni@4teamwork.ch"
] | david.erni@4teamwork.ch |
dac3c6c03b239eaebdc55e04d0886e7e7edf680e | 336f11ee8934581f05ab620c5324c601ba864b05 | /jb_adaptive_python/Problems/Converting Fahrenheit to Celsius/Programming/tests.py | 8a4d65cca9f21ffcf1a57d3d63bf5e3d581a0d19 | [] | no_license | ancient-clever/sandbox | 01adeee2638a23533965cf57ca873a30e7dfad3d | 87dec3bf8860a67a36154ee5d7c826d919d3111b | refs/heads/master | 2022-05-17T04:49:54.703068 | 2020-01-19T17:44:27 | 2020-01-19T17:44:27 | 206,946,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from test_helper import check_samples
if __name__ == '__main__':
check_samples(samples=[["84\n","84.0 degrees Fahrenheit is 28.88888888888889 degrees Celsius"],["128\n","128.0 degrees Fahrenheit is 53.333333333333336 degrees Celsius"],["-122\n","-122.0 degrees Fahrenheit is -85.55555555555556 degrees Celsius"]]) | [
"ancient-clever@outlook.com"
] | ancient-clever@outlook.com |
eed87f9d2a5cc89d0c00942b14b993b9a49bd46e | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/regionmove/azure-mgmt-regionmove/azure/mgmt/regionmove/operations/__init__.py | fb98319827bc240680bacc87ba3acfb867bd99ff | [
"MIT",
"LicenseRef-scancode-generic-cla",
"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 | 914 | 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"
] | Azure.noreply@github.com |
cd1d5ae088fc786391b2a0ff3c27dd874420d13f | 7410903c6cd5ef35c592af00c934fb21c369cbf2 | /00_Code/01_LeetCode/332_ReconstructItinerary.py | 3ee88e3f20da0e6edc80dd73b27d366383a5dcce | [
"MIT"
] | permissive | KartikKannapur/Algorithms | f4e4726170599db0622d18e8c06a382e9bce9e77 | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | refs/heads/master | 2020-12-25T18:32:41.086518 | 2020-10-19T02:59:47 | 2020-10-19T02:59:47 | 93,961,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | """
Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tickets belong to a man who departs from JFK. Thus, the itinerary must begin with JFK.
Note:
If there are multiple valid itineraries, you should return the itinerary th... | [
"kartikkannapur@gmail.com"
] | kartikkannapur@gmail.com |
af1feb5e1262a993a98957d9492fad43a5113227 | 95b5d532a4efa24164a5f138104195033cff72a7 | /group7/migrations/0003_auto_20150630_1828.py | 6bb94d1840ba48798f621bda0bbbcf76ec70eb9e | [] | no_license | tachagon/DB_Project | e7052f887e0d68440b0924736ddd93a9caec4aa8 | b41989df877a310632baea05fcfec6665f3bc8e6 | refs/heads/master | 2021-01-23T06:29:17.934674 | 2015-09-16T14:31:19 | 2015-09-16T14:31:19 | 33,464,227 | 0 | 12 | null | 2015-09-16T14:31:19 | 2015-04-06T03:03:33 | HTML | UTF-8 | Python | false | false | 391 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('group7', '0002_auto_20150630_1802'),
]
operations = [
migrations.RenameField(
model_name='order',
ol... | [
"o_k_t@hotmail.com"
] | o_k_t@hotmail.com |
b0ada9567d8253e8915cebbc621049f93f0c5b2b | 2359b1c510ccf775f96d3b1615558da2529c179e | /Interview Prep/Dynamic Programming/mapDecoder.py | 75095da646b98bb2ed71c25b9a74aef11537f3ec | [] | no_license | Gendo90/CodeSignal-Interview-Prep | 57abe7209b31af49d6d159db3c1905c67ddf1b31 | 4ac839c2f56392e4a0f91210b19e0ed8d52d53bc | refs/heads/master | 2023-04-06T19:07:59.806179 | 2023-03-24T20:08:24 | 2023-03-24T20:08:24 | 264,281,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | #"Hard" question, supposed to take 30 min but took me almost 2 hours
#the zeros really threw me a curveball
#asked by MS, Uber, FB apparently
def mapDecoding(message):
counts = [0, 1]
size = len(message)
#special cases
if(size == 0):
return 1
if(int(message[0]) == 0):
return 0
... | [
"patrick.gendotti@gmail.com"
] | patrick.gendotti@gmail.com |
59e6c2996146f9e98f9bc89f6213ed3866f23686 | 7690d57d0ec12f8da1acf9d86c2648c672f029b4 | /4_anycase/error_handling.py | f96e02ceebd0ca5895c72dc89dfe69afaf084497 | [] | no_license | ducksfrogs/scrayPy | 27f5b4f1f8d37b9e9e99961fcfa03a65fd7095ea | 43d05e32f542a24b7d6853809e2094a9d139539d | refs/heads/master | 2022-11-23T02:23:36.125834 | 2020-07-25T21:57:52 | 2020-07-25T21:57:52 | 261,369,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | import time
import requests
TEMPORARA_ERROR_CODES = (400, 500, 502, 503, 504)
def main():
response = fetch('http://httpbin.org/status/200,404,503')
if 200 <= response.status_code < 300:
print("Success!")
else:
print("Error")
def fetch(url: str) -> requests.Response:
"""
指定したURL... | [
"ma_yamaki@yahoo.com"
] | ma_yamaki@yahoo.com |
a567c87410ce775e2097c9075596e579d883b899 | ffa17bc5ac608ba71d8e5dc7861d3b8a63e2a43b | /apps/wish_app/urls.py | ec3632c71dfc648d6bb546863ead38c91a54614b | [] | no_license | samuellly/python_belt | 1dec46d162d77e571487992abff9377101846295 | 07904a8e828d1064cb302e7caf692145d9616c0e | refs/heads/master | 2021-01-21T10:45:47.448007 | 2017-02-28T21:51:08 | 2017-02-28T21:51:08 | 83,480,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^create$', views.create, name='create'),
url(r'^process$', views.process, name='process'),
url(r'^display/(?P<item_id>\d+)$', views.display, name='display'),
url(r'^join/(?P<item_id>\d+... | [
"gjqorgus900327@gmail.com"
] | gjqorgus900327@gmail.com |
c3bde1083e886423eaeb977b92104944dcafc1a6 | 2b6a02a34ee6bf68820ad185245e2609b296e0aa | /116.py | b6a5c9ea9e849141c2e2b01cbe0d2caf4257559b | [] | no_license | shants/LeetCodePy | 948e505b6fcb0edcb9a1cf63a245b61d448d6e27 | 2337b5031d4dfe033a471cea8ab4aa5ab66122d0 | refs/heads/master | 2020-03-28T08:43:04.606044 | 2019-11-25T05:03:15 | 2019-11-25T05:03:15 | 147,984,830 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # Definition for binary tree with next pointer.
class TreeLinkNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
self.next = None
class Solution:
# @param root, a tree link node
# @return nothing
def connectNext(self,root,next):
if root... | [
"mailtoshants@gmail.com"
] | mailtoshants@gmail.com |
aff26b49cd0083276b4597ebdd6300953f3f62bd | e6eb1d609a8749eea5c3a5105be002985af27936 | /mkt/regions/tests/test_init.py | ef44f6e6cc12b01baa84537c9850ca19878899ca | [] | no_license | jlongster/zamboni | ad224f9110021c8a84fed959a0285c7743fc549e | 68508bfcb85fa0ac5c47c792a801544036c7059e | refs/heads/master | 2021-01-18T12:05:51.875480 | 2013-06-04T19:32:08 | 2013-06-12T21:41:08 | 5,633,847 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import mock
from nose.tools import eq_
import mkt.constants.regions as regions
from mkt.regions import get_region, get_region_id, set_region
@mock.patch('mkt.regions._local', None)
def test_get_region_empty():
eq_(get_region(), regions.WORLDWIDE.slug)
eq_(get_region_id(), regions.WORLDWIDE.id)
@mock.patch(... | [
"me@mattbasta.com"
] | me@mattbasta.com |
8b48d5c3b60e2c2da837dcf782090162e3314e1b | 297497957c531d81ba286bc91253fbbb78b4d8be | /gfx/skia/generate_mozbuild.py | 57f8c589b8a57b2e0e1a8b052a4fc5b0d785b4d9 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 11,401 | py |
import locale
import subprocess
from collections import defaultdict
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
header = """
#
# ##### ####### # # # # # #
# ## # # # # # # # # # # # #
# ## # # # # # # # # # # #
# ##... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
b494a36d98895f7449a8c2e71b802f88881f9e3e | 1548ce77537dcd50ab04b0eaee050b5d30553e23 | /autotabular/pipeline/components/classification/mlp.py | 470d5a1da4a3ff544158b7c9b87fc343216d4997 | [
"Apache-2.0"
] | permissive | Shamoo100/AutoTabular | 4a20e349104246bf825ebceae33dca0a79928f2e | 7d71bf01d2b7d84fcf5f65c9f45c5cea1255d8a2 | refs/heads/main | 2023-08-13T21:34:34.329888 | 2021-10-02T07:06:00 | 2021-10-02T07:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,270 | py | import copy
import numpy as np
from autotabular.pipeline.components.base import AutotabularClassificationAlgorithm, IterativeComponent
from autotabular.pipeline.constants import DENSE, PREDICTIONS, SPARSE, UNSIGNED_DATA
from autotabular.util.common import check_for_bool
from ConfigSpace.conditions import InCondition
f... | [
"jianzhnie@126.com"
] | jianzhnie@126.com |
4bc96ba104ab1c792c29cbdb001f21191e206552 | ebadf7eea3facd23f54b67d11dc026be8f005bd1 | /async-examples/coroutines.py | 46243372783b7376ff7e6eb14e37e9d7838ac8d5 | [] | no_license | alphashooter/python-examples | fc42cd21e635b4c6387daaaa8201c8c10758a26a | 513cb06720b50c2d48879098160f293b07c217d0 | refs/heads/master | 2021-07-14T09:33:10.510922 | 2020-06-22T21:34:44 | 2020-06-22T21:34:44 | 152,864,523 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | from asyncio import *
import time
async def print1():
for i in range(50):
print("coroutine-1: %d" % i)
await sleep(0.1) # это sleep не из модуля time, а из модуля asyncio
print("coroutine-1: exit")
async def print2():
for i in range(50):
print("coroutine-2: %d" % i)
awai... | [
"a.p.strelkov@gmail.com"
] | a.p.strelkov@gmail.com |
765bb02a3ec93624c250dbdceb1864711d4b65d5 | 79e1d04867c4298b23c907f92c7119e4bea8ef02 | /ParlAI/tests/suites.py | 8b6c95030296cad6c7c63c625e3d299c19ef1b65 | [
"MIT",
"Apache-2.0"
] | permissive | ethanjperez/convince | 53db0bcd978831799c68fe63ecb0c91473ec40c4 | ccf60824b28f0ce8ceda44a7ce52a0d117669115 | refs/heads/master | 2023-01-08T09:12:16.722614 | 2021-11-03T18:50:30 | 2021-11-03T18:50:30 | 205,189,291 | 27 | 8 | Apache-2.0 | 2023-01-05T22:43:12 | 2019-08-29T15:03:34 | Python | UTF-8 | Python | false | false | 2,034 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import parlai.core.testing_utils as testing_utils
def _clear_cmdline_args(fn):
"""
Helper deco... | [
"ethanperez18@gmail.com"
] | ethanperez18@gmail.com |
11e112b907aee37124f026dcb9a86ebeb19cc921 | 3b9d763180410bf0abf5b9c37391a64319efe839 | /toontown/coghq/DistributedBeanBarrel.py | 7e746507d2922979bf27f1a6462474209ce12b71 | [] | no_license | qphoton/Reverse_Engineering_Project_ToonTown | 442f15d484324be749f6f0e5e4e74fc6436e4e30 | 11468ab449060169191366bc14ff8113ee3beffb | refs/heads/master | 2021-05-08T00:07:09.720166 | 2017-10-21T02:37:22 | 2017-10-21T02:37:22 | 107,617,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # File: D (Python 2.4)
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from toontown.toonbase.ToontownGlobals import *
from direct.directnotify import DirectNotifyGlobal
import DistributedBarrelBase
class DistributedBeanBarrel(DistributedBarrelBase.DistributedBarrelBase):
... | [
"Infinitywilee@rocketmail.com"
] | Infinitywilee@rocketmail.com |
c0895eb44c3ab1d7ea3498499e28f842a931af65 | 76a68cbbaf9c4aa15ec9b59455e33c6784229bdb | /MECS_gym/build/lib/baselines/env_V_sweep_v7.py | 7025a9971f5e7752d16a95c5917944674c59ea81 | [
"MIT"
] | permissive | Python-Repository-Hub/KAIST_MEC_simulator | e63f704bd20b36fd1a8ffa30b7e736c50351d1cc | 26556a8216e2bbdfa5c5ee377e9deb51ea7602f8 | refs/heads/master | 2023-08-30T06:57:39.003766 | 2021-11-18T16:16:48 | 2021-11-18T16:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,985 | py | # -*- coding: utf-8 -*-
import csv
import logging
import pathlib
import random
import numpy as np
import collections
from baselines.servernode_w_appqueue_w_appinfo_cores import ServerNode as Edge
from baselines.servernode_w_totalqueue_cores import ServerNode as Cloud
from baselines.environment import Environment
from... | [
"elasteam88@gmail.com"
] | elasteam88@gmail.com |
48d2627d454fa80cf8f67ce6424766c52692e5e6 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/vz/afilter.py | 4cf11db5b2d45054d60f972374e9c51753bd11de | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,671 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
5740ab584abccbabe3c1b0f7872140db8004d0de | 6af9e2c81ebea33c45b89111cb243528f381d0d5 | /script_12m/merge_cubes_into_bigone.py | 119fb71f63d1cbcb19e952b202846ac2cc7887f7 | [] | no_license | fanyimeng/SgrB2_ALMA_3mm_Mosaic | de69ea050c40c4afc0bd7875ec119995e83ba11b | c29892016f3fec280188e7ee1af32ea805f2b38e | refs/heads/master | 2020-12-25T00:50:06.890684 | 2016-01-29T22:05:11 | 2016-01-29T22:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | """
http://docs.astropy.org/en/stable/io/fits/appendix/faq.html#how-can-i-create-a-very-large-fits-file-from-scratch
"""
from astropy import log
from astropy.io import fits
import numpy as np
import glob
import re
import os
from astropy.utils.console import ProgressBar
def make_spw_cube(spw='spw0'):
# First set u... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
56d6c65f0a0163f5f36c04d176579d84e39c6e05 | e867517068ade1572691ac86c6f2ad6596c0d559 | /film20/geo/models.py | be2a72e45a6707f1f0267e9d863d633828174169 | [] | no_license | manlan2/filmaster | 044ec124d91da0b6dcf2eb5b8af5aec6f0fffd53 | 90b2bb72c2bab9dfea0c0837971a625bc6880630 | refs/heads/master | 2021-05-26T22:24:55.012908 | 2012-05-27T09:30:37 | 2012-05-27T09:30:37 | 107,661,541 | 1 | 0 | null | 2017-10-20T09:51:53 | 2017-10-20T09:51:53 | null | UTF-8 | Python | false | false | 15,567 | py | # This is an auto-generated Django model module created by ogrinspect.
from django.db import models
from django.conf import settings
import logging
logger = logging.getLogger(__name__)
from .middleware import LazyGeo
from film20.core.models import Profile
models.signals.post_save.connect(LazyGeo.profile_post_save, s... | [
"young.jiandong@gmail.com"
] | young.jiandong@gmail.com |
1b152aa1119907f204b4a6f48d7b60bd6250d0ba | 76c30f62af9979f7e7402ca1a31dfc599e02bb6a | /mongopychef/resources/r_cookbook.py | e317244dd8cc9816618b7b4a9a14291b4f9de3b7 | [] | no_license | rick446/MongoPyChef | d628e70ea0c843a987abab737018f756877926f8 | 92830381c185f5517fc4a3f3634b286b75a886b7 | refs/heads/master | 2020-12-24T14:53:05.486271 | 2012-05-28T19:14:26 | 2012-05-28T19:14:26 | 3,700,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | from webob import exc
from .. import model as M
from .r_base import Resource, ResourceCollection
class Cookbooks(Resource):
__name__ = 'cookbooks'
def __init__(self, request, parent, account):
self.__parent__ = parent
self.request = request
self.account = account
def __g... | [
"rick@arborian.com"
] | rick@arborian.com |
5f5112737c799aed52137204a8f0f53d8c5214f2 | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/hosting/migrations/0010_removed_ssl_status_info.py | 21e8b46b5da5a6c01acd670f1d660350b923c19e | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-01-12 17:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hosting', '0009_hosting_ssl_status_info'),
]
operations = [
migrations.RemoveField(
model_name='hosting',... | [
"rk@23doors.com"
] | rk@23doors.com |
ccca2e6e8f0a3eab65b44167e5be8d99c9978e8f | 7c08d8a19af8fc3d0e286c35c8930247de0967da | /model.py | c95922ac466cabb8df5a56e9c8409cf98f62a3be | [
"Apache-2.0"
] | permissive | agermanidis/DeepLabV3 | 065b687b32735199091e51e2a75a40bbf3084c31 | bc67e8013c104b7c40bf6626ca74f50feeda20d6 | refs/heads/master | 2020-06-14T17:10:31.286711 | 2019-07-18T15:49:50 | 2019-07-18T15:49:50 | 195,068,186 | 3 | 2 | Apache-2.0 | 2019-09-13T23:03:53 | 2019-07-03T14:15:49 | Python | UTF-8 | Python | false | false | 1,478 | py | import os
from io import BytesIO
import tarfile
import tempfile
from six.moves import urllib
import numpy as np
from PIL import Image
import tensorflow as tf
class DeepLabModel(object):
"""Class to load deeplab model and run inference."""
INPUT_TENSOR_NAME = 'ImageTensor:0'
OUTPUT_TENSOR_NAME = 'SemanticPredict... | [
"agermanidis@gmail.com"
] | agermanidis@gmail.com |
971668070e5e3f43ccc93dab266ff04b44239578 | f083b2e3bb2623843ae7b2fb1e7ce14c2d6e3041 | /tfx/types/standard_component_specs.py | 2d7379f84380ba2c12b88bd035ee38681301604b | [
"Apache-2.0"
] | permissive | ettiee/tfx | eee3999bbc606cb55e6e83a6d0761f321f83092e | 8e60b158df72d1e6811ade1c934f68d08df25a0c | refs/heads/master | 2021-02-18T16:37:05.194158 | 2020-03-05T06:01:05 | 2020-03-05T06:01:51 | 245,214,139 | 0 | 0 | Apache-2.0 | 2020-03-05T16:31:46 | 2020-03-05T16:31:45 | null | UTF-8 | Python | false | false | 11,041 | py | # Lint as: python2, python3
# Copyright 2019 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 req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
583e3ae5eff76e2fd3ba0d90aeb307f376fc7741 | 15d6fc0826740aa901e24b4be2866a056175b2d4 | /howareyou/hello.py | f270dda1cc925ab700eea5dc3a7fd3e19622290b | [] | no_license | faassen/howareyou | 245584803fb3b6f4a3212e0db97d68fad0abb819 | aba1be678af915f9c737b59ac1d9d3aa4dcd94b0 | refs/heads/master | 2021-01-18T20:56:11.384401 | 2016-10-09T15:43:11 | 2016-10-09T15:43:11 | 69,457,087 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | from .compat import BytesIO, ntob
environ = {
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;'
'q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE': 'uk,en-US;q=0.8,en;q=0.6',... | [
"faassen@startifact.com"
] | faassen@startifact.com |
00c1491c3ac556cea947f23123d331c21cad1f78 | 0daf6763c960cd898e9bb5612b1314d7e34b8870 | /graph1/data.py | 55bf8f88acd2ad97722ad02ee99a8bbf0e4722fc | [
"MIT"
] | permissive | evanthebouncy/nnhmm | a6ba2a1f0ed2c90a0188de8b5e162351e6668565 | acd76edaa1b3aa0c03d39f6a30e60d167359c6ad | refs/heads/master | 2021-01-12T02:27:32.814908 | 2017-04-01T05:01:24 | 2017-04-01T05:01:24 | 77,956,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,254 | py | import numpy as np
import random
from scipy.misc import imresize
from scipy.ndimage.filters import gaussian_filter
from tensorflow.examples.tutorials.mnist import input_data
from saved_graph import *
from numpy.linalg import norm
DIR_CHANGE = 0.9
# SPLIT_PR = 0.1
SPLIT_PR = 0.0
DIR_SPL_CHG = 0.2
L = N
X_L = 10
N_BAT... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
2362ffb8e22ebb9b9b9a18592d93c5c2eee9384d | 67f70009f2e1ded752788f349c998c25cc2a7674 | /agsci/common/indexer.py | 6630a60570c4e089dbd063e69e18d78f8309a30c | [] | no_license | tsimkins/agsci.common | 83b58e4646115e9a5cdc9d39037386579c3ac2d9 | a833b2e5257da35786f21916e279f8b1082b2faa | refs/heads/master | 2023-08-18T05:19:25.121259 | 2023-08-16T20:29:47 | 2023-08-16T20:29:47 | 35,234,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,939 | py | from Acquisition import aq_base
from plone.app.contenttypes.indexers import SearchableText, \
_unicode_save_string_concat
from plone.dexterity.interfaces import IDexterityContent
from plone.indexer import indexer
from zope.component import provideAdapter
from .content.behavi... | [
"trs22@psu.edu"
] | trs22@psu.edu |
b62cab022e9c20a976936882068bb499394f2615 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /NC888jKPkquSDqaaH_18.py | a7441feb115f9ef0133722da9e3d6362a8f2a527 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,864 | py | """
You are in the midst of organizing all of your coding projects. It's a mess!
Every file you've ever created is located in the same folder.
To clean it up, you've decided that you will use one of two organization
methods.
1. The `prefix` method: You will group all files with the same project name under the sa... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c3dfa053d86aba596cca132551ee27097b72593c | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/hackerrank/Hackerrank_Python/Itertools/IterablesandIterators.py | 2937417f4243411d6b46f4c135c99d76cd700d82 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 433 | py | '''
Title : Iterables and Iterators
Subdomain : Itertools
Domain : Python
Author : Ahmedur Rahman Shovon
Created : 15 July 2016
Problem : https://www.hackerrank.com/challenges/iterables-and-iterators/problem
'''
from itertools import combinations
n = int(input())
ar = input().split()
k = int(input())
comb... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b15daa4e09561ebf0eebde215fcc6dcd134d77a7 | df9d6118190e84f17707b028c4d412f089dc8f2e | /config/settings/test.py | f4c74448e87e97a5433c955293e8aed9a7c809a5 | [
"MIT"
] | permissive | SeptumDevs/lose_weightapp | 98fc10704f2a07cea5891c2d30be85a72f263f31 | 2c39ba45aa6aef37820b385c3060c83a73f8f910 | refs/heads/master | 2022-12-01T03:31:13.150296 | 2020-06-17T17:32:26 | 2020-06-17T17:32:26 | 229,223,338 | 1 | 0 | MIT | 2022-11-22T04:38:01 | 2019-12-20T08:30:35 | Python | UTF-8 | Python | false | false | 919 | py | """Testing settings.
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
DEBUG = False
SECRET_KEY = env(
"DJANGO_SECRET_KEY",
default="nY2Z82jyFtSp4dNT7aOsXyCaiV3VvJt8eHOMFjuPVPdhW8rzJ7T6amlonnkfFl2p",
)
TEST_RUNNER = "django.test.runner.DiscoverRunner"
# C... | [
"ducode@outlook.com"
] | ducode@outlook.com |
8d7b9956e9c4a8952bdc09ec3bac4012eae6b0c0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_082/ch150_2020_04_13_19_59_32_110309.py | c78e319f4085f520edfbd6d0a9b38be90115c765 | [] | 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 | 130 | py | def calcula_pi(n):
pi= []
for i in range(n):
pi.append((6 / n ** 2)**(1/2))
pi_2= sum(pi)
return pi_2 | [
"you@example.com"
] | you@example.com |
df3d5ce13bb790a13326c57c23f04c6ee9cf78a8 | 1f68b6f9f55afaa7cb32df262f4fe0864472da05 | /人工智能/python人工智能深度学习/part_1_neural networks/numpy练习/lianxi.py | e56620b9cca9bcc10ca6b37c43540a4058ff06e1 | [] | no_license | faker-hong/testOne | 7c4496362cb5495c25c640076102fe0704f8552f | 768edc4a5526c8972fec66c6a71a38c0b24a1451 | refs/heads/master | 2022-12-04T14:47:53.614685 | 2020-10-30T03:17:50 | 2020-10-30T03:17:50 | 196,514,862 | 1 | 0 | null | 2022-11-22T02:43:32 | 2019-07-12T05:35:09 | Python | UTF-8 | Python | false | false | 2,193 | py | # Use the numpy library
import numpy as np
def prepare_inputs(inputs):
# TODO: create a 2-dimensional ndarray from the given 1-dimensional list;
# assign it to input_array
input_array = np.array(inputs)
# TODO: find the minimum value in input_array and subtract that
# value from all t... | [
"42666723+hongcheng97@users.noreply.github.com"
] | 42666723+hongcheng97@users.noreply.github.com |
9fa06d7b680aa88d51f6633f694fcdc9625d3d83 | 220ae0b14f4254a5688f9482802a551a4e61305f | /lemon_test.py | 179831011f096c43f60700c7ceb504958d5463d1 | [] | no_license | surajpaib/OpenCV | a8d71a31bb68708c68856d8366af6c766bc120bb | 64e6b39dcd4cb982760d446fec926a5c056ffac9 | refs/heads/master | 2021-01-20T08:06:24.031059 | 2017-05-11T22:11:37 | 2017-05-11T22:11:37 | 90,093,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | """
Lemon.py
"""
import timeit
import numpy as np
import cv2
import cv2.cv as cv
class LemonRecognizer(object):
"""
Class Lemon Recognizer
"""
def __init__(self, image_file):
self.image = cv2.imread(image_file)
self.circles = None
self.radius = None
self.feature_image =... | [
"surajballambat@gmail.com"
] | surajballambat@gmail.com |
a760f8196a56d1590dd444982344e7908d526ba3 | 7d8e040cb703e6f6e2d55b5dc64fc9124d85dde8 | /tests/test_algebra_onnx_operators_scan.py | e90c808b1d1146a1ab86a32ae0d3e4328a3210a3 | [
"MIT"
] | permissive | Global-localhost/sklearn-onnx | fc44aa481a91482f187cfd2307df6061b77742af | a8267e7ba946d8b0596951060e5dca39fec47439 | refs/heads/master | 2023-03-23T00:19:31.474251 | 2021-03-03T19:17:12 | 2021-03-03T19:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,679 | py | import unittest
import warnings
from distutils.version import StrictVersion
from collections import OrderedDict
import numpy as np
from numpy.testing import assert_almost_equal
from scipy.spatial.distance import pdist, squareform, cdist as scipy_cdist
import onnx
from onnx.onnx_cpp2py_export.checker import ValidationEr... | [
"noreply@github.com"
] | Global-localhost.noreply@github.com |
37b2db4b2b4490ec1243041035f12a4232676853 | cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5 | /swea/D2/SWEA_4873_반복문자지우기_구진범.py | 7158ee725b59c9fda57b4110ca6fc1429a345391 | [] | no_license | jbsam2/algo_problem | 141c17003e88a69afdeea93a723e7f27c4626fdc | 18f2cab5a9af2dec57b7fd6f8218badd7de822e4 | refs/heads/master | 2023-05-18T10:03:00.408300 | 2021-06-02T10:36:50 | 2021-06-02T10:36:50 | 282,104,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | for t in range(int(input())):
p=[]
for i in input():
if len(p)==0:p.append(i)
elif i!=p[-1]:p.append(i)
else:p.pop()
print(f'#{t+1}',len(p)) | [
"kbsam2@gmail.com"
] | kbsam2@gmail.com |
8681e81de9730c185b0e815583f0aaa1350e1f4b | 82256676fd6b857b7a9fd54ab339d390c1364ab0 | /py/testdir_single_jvm/test_frame_split_iris.py | 744257640396bd13fc49ad12cb2ea16af2846212 | [
"Apache-2.0"
] | permissive | ivanliu1989/h2o | 8d0def46c070e78718ba13761f20ef2187545543 | e00b367df0a33c400ae33bc869a236f254f625ed | refs/heads/master | 2023-04-27T20:40:16.666618 | 2014-10-23T02:12:36 | 2014-10-23T02:12:36 | 25,618,199 | 0 | 0 | Apache-2.0 | 2023-04-15T23:24:35 | 2014-10-23T03:49:40 | null | UTF-8 | Python | false | false | 1,578 | py | import unittest, time, sys, random
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_glm, h2o_hosts, h2o_import as h2i, h2o_jobs, h2o_exec as h2e
DO_POLL = False
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
lo... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.