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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20cf578ea6073fca3dfa9da09f0e4bc6c7d586bb | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnflv.py | 83031709fddd620f39b5c267f38413dd5128695d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 44 | py | ii = [('RogePAV2.py', 1), ('KnowJMM.py', 1)] | [
"[email protected]"
] | |
309daa07bda7b7eb3525eaae9158ed897a52e6ba | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_209/611.py | 0d8528d812df07b274136b7d9c4ebae4a50cbb69 | [] | 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,235 | py | t = input()
from collections import defaultdict
def solve(pancakes, n, k, dp):
# print "calling for {0}, {1}".format(n, k)
if ((n, k)) in dp:
# print 'returning {0} for {1}, {2}'.format(dp[(n, k)], n, k)
return dp[(n, k)]
if n == 0:
# print 'returning {0} for {1}, {2}'.format(0, n, k)
return 0
if k < 0:
... | [
"[email protected]"
] | |
cda7cfa1c3424a8cf95d97f5dc12e578a7e2e2a3 | 72d010d00355fc977a291c29eb18aeb385b8a9b0 | /BeatStep/__init__.py | 49897318ae58c967be09a28d7820359edcc8d56d | [] | no_license | maratbakirov/AbletonLive10_MIDIRemoteScripts | bf0749c5c4cce8e83b23f14f671e52752702539d | ed1174d9959b20ed05fb099f0461bbc006bfbb79 | refs/heads/master | 2021-06-16T19:58:34.038163 | 2021-05-09T11:46:46 | 2021-05-09T11:46:46 | 203,174,328 | 0 | 0 | null | 2019-08-19T13:04:23 | 2019-08-19T13:04:22 | null | UTF-8 | Python | false | false | 761 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/BeatStep/__init__.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
import _Framework.Capabilities as caps
from .BeatStep import BeatStep
def ... | [
"[email protected]"
] | |
67fc5124fecf25cc232eeef083e19524746f2a48 | 668ff51f34eac31931511ec3641c66f82bffaee5 | /myewb/contrib/haystack/backends/solr_backend.py | a93c5e0b73ec7fc31132bae044f0e8a33ca81be7 | [] | no_license | ewbcanada/myewb2 | 4a81668b37b286638ad80c9f2535770ada200cfc | 50cf7698899bed1b31d0a637f72a1e9a5b7fa07a | refs/heads/master | 2020-12-01T01:15:09.592117 | 2011-10-18T22:02:07 | 2011-10-18T22:02:07 | 380,073 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 19,198 | py | import logging
import sys
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.models.loading import get_model
from haystack.backends import BaseSearchBackend, BaseSearchQuery, log_query, EmptyResults
from haystack.constants import ID, DJANGO_CT, DJANGO_ID
from haystac... | [
"[email protected]"
] | |
e92d33a3da585f26e3b3a9469af88fc980b959e5 | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L3FQ/3FQ-2Z_MD_NVT_rerun/set_1ns_equi_2.py | 161c95b5097a3036c69d374da8142c6f04ce088a | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L3FQ/MD_NVT_rerun/ti_one-step/3FQ_2Z/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_2.in'
temp_pbs = filesdir + 'temp_1ns_equi_2.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
f... | [
"[email protected]"
] | |
42cf064d1f9437f636bbc909d434fb6771d510ca | dd3b8bd6c9f6f1d9f207678b101eff93b032b0f0 | /basis/AbletonLive10.1_MIDIRemoteScripts/Push2/browser_list.py | 6c9e839bb69da206779694dbbdc57b2e2d1b4c9d | [] | no_license | jhlax/les | 62955f57c33299ebfc4fca8d0482b30ee97adfe7 | d865478bf02778e509e61370174a450104d20a28 | refs/heads/master | 2023-08-17T17:24:44.297302 | 2019-12-15T08:13:29 | 2019-12-15T08:13:29 | 228,120,861 | 3 | 0 | null | 2023-08-03T16:40:44 | 2019-12-15T03:02:27 | Python | UTF-8 | Python | false | false | 3,765 | py | # uncompyle6 version 3.4.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10)
# [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push2/browse... | [
"[email protected]"
] | |
1fadf1c096fcdb36625f731a3599aee37afaedfa | 8b321ef16f11701f66898cb5b0e186bed50aaf46 | /6/3_Gems_admin_page/Gems/urls.py | 0509da185d5d17d740ef0167d6c3f10070c07a5e | [] | no_license | TrellixVulnTeam/django_H5IO | 6bed043acfda0e3373fe5b352805f1c11b038e2a | 1ee5407e93f1bbbaeb12b90b7c5d7b96e3ba13e2 | refs/heads/master | 2023-03-16T05:25:59.900947 | 2017-04-18T08:21:47 | 2017-04-18T08:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | """Gems URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"[email protected]"
] | |
9a1e3984821d93a2119fe1e81d2bbc7589548289 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/hcipsec/entity.py | bdce01d6f76c3216322d49e73d93fa048d3e5e28 | [] | 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 | 6,859 | 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... | [
"[email protected]"
] | |
f6160ac2811a35c0f86566abde0bb2c6d5321a80 | 2a6f1afa7678e5d76efe01b1474eda59d442ae0f | /venv/Lib/site-packages/jesse/__init__.py | b199a71f6bf197fa4922b5ebba279d9913858687 | [] | no_license | cagridincel/CagriTrade | 6b50c785efc3eb43487724be59511a5850a92145 | 86839e6604eb18850f6410acf5f6993da59b74ec | refs/heads/master | 2023-03-03T09:16:29.965177 | 2021-02-16T13:01:18 | 2021-02-16T13:01:18 | 338,672,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,925 | py | import os
import sys
from pydoc import locate
import click
import pkg_resources
import jesse.helpers as jh
# Hide the "FutureWarning: pandas.util.testing is deprecated." caused by empyrical
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
# Python version validation.
if jh.python_vers... | [
"[email protected]"
] | |
27985cba501ed020a79ad113c0a1a0bdf10f2538 | 28c614942558229bb9adca33070331b04d454015 | /py/schwenk.py | ea995519b24521c1300e79ca9af769b144f98a1e | [] | no_license | qdv/Colorly | 95827b077b888251dea3a2ed58e8a37e98837409 | 6891a2d550a66e374c5da441b452256abccaffad | refs/heads/gh-pages | 2021-05-28T02:57:53.409957 | 2014-11-12T03:00:26 | 2014-11-12T03:00:26 | 100,415,084 | 1 | 0 | null | 2017-08-15T20:05:44 | 2017-08-15T20:05:44 | null | UTF-8 | Python | false | false | 33,254 | py | PALETTE = [
{
"name": "Y1-2-03",
"label": "y1-2-03",
"hex": "#efc84f"
},
{
"name": "Y1-2-04",
"label": "y1-2-04",
"hex": "#fae698"
},
{
"name": "Y1-2-05",
"label": "y1-2-05",
"hex": "#f9e599"
},
{
"name": "Y1-2-06"... | [
"[email protected]"
] | |
63e86a6b7e20c8757cc548bbcc34e73f7ec7a7b5 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_36671.py | da11b4df30e8b638e72b0392d485f68d63020e13 | [] | 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,845 | 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... | [
"[email protected]"
] | |
995436ff7e70706bbea6b85818dcb895c3ff70c7 | 4cfbc12903651dedbc799f53a8078433196e7919 | /Pre Processing/Topic 1 - Numpy/Class 1 - IntroductionProgram.py | c3b196507a0ce2566d2dcc1315350a927e618dbd | [] | no_license | gautam4941/Machine_Learning_Codes | 78bf86ab3caf6ee329c88ff18d25927125627a2c | 0009d12ca207a9b0431ea56decc293588eb447b1 | refs/heads/main | 2023-02-06T18:05:44.154641 | 2023-01-30T17:04:25 | 2023-01-30T17:04:25 | 353,594,523 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | #How to create numpy array
#Mutability and Immutability
import numpy as np
l = [ [5, 6, 9, 10, 11], [ 1, 2, 3, 5, 6 ] ]
print( l, type(l), len(l) )
arr = np.array( l )
print( f"arr = { arr }", type( arr ), len( arr ), arr.shape )
print()
print( "Printing Numpy Array in the loop" )
for i in arr:
pr... | [
"[email protected]"
] | |
a8dc43d429450527feb94790ee8b87c4ec620417 | 209c876b1e248fd67bd156a137d961a6610f93c7 | /python/paddle/fluid/tests/unittests/dygraph_to_static/test_slice.py | 96bcc6d016e0c78a32c9b6424844cd81ed8f6f88 | [
"Apache-2.0"
] | permissive | Qengineering/Paddle | 36e0dba37d29146ebef4fba869490ecedbf4294e | 591456c69b76ee96d04b7d15dca6bb8080301f21 | refs/heads/develop | 2023-01-24T12:40:04.551345 | 2022-10-06T10:30:56 | 2022-10-06T10:30:56 | 544,837,444 | 0 | 0 | Apache-2.0 | 2022-10-03T10:12:54 | 2022-10-03T10:12:54 | null | UTF-8 | Python | false | false | 8,857 | py | # Copyright (c) 2020 PaddlePaddle 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 appli... | [
"[email protected]"
] | |
b43697e594bc2ebd2a22cf5aee7a1546b8119f53 | bfbb78b6e6c69644ba70709ad528eb450bcf0cf5 | /public/utils/wraps.py | a4e53c35ad111716201f0036cfb76f1e0a381ff1 | [
"MIT"
] | permissive | xiaoxiaolulu/AndroidAuto | 98b2248175e017d02f5da5b7d11f0f20d4f92dc8 | b8cdba360664f7d1c73b9ab290c7901eaf814f0c | refs/heads/master | 2020-04-12T15:36:25.554509 | 2018-12-20T13:58:06 | 2018-12-20T13:58:06 | 162,586,748 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ========================================================
# Module : wraps
# Author : Null
# Create Date : 11/11/2018
# Amended by : Null
# Amend History : 11/11/2018
# ========================================================
| [
"[email protected]"
] | |
61bea83fdb813ea82fcd443956c102d9bf5bc6e1 | d24cef73100a0c5d5c275fd0f92493f86d113c62 | /SRC/engine/skeleton.py | 0b58d6332707f5a4b9d108688304cda8dd1a450c | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rlinder1/oof3d | 813e2a8acfc89e67c3cf8fdb6af6b2b983b8b8ee | 1fb6764d9d61126bd8ad4025a2ce7487225d736e | refs/heads/master | 2021-01-23T00:40:34.642449 | 2016-09-15T20:51:19 | 2016-09-15T20:51:19 | 92,832,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128,537 | py | # -*- python -*-
# $RCSfile: skeleton.py,v $
# $Revision: 1.346.2.6 $
# $Author: langer $
# $Date: 2014/09/17 21:26:56 $
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities a... | [
"[email protected]"
] | |
c18094385c97b85f0c38cca69b68abf5c9662bf7 | 573d470c9fcb3799e8822e6953e1259b74e0672c | /Course/modules/example_13.py | 4016b39419fd2a8cbe5a54f901788f7a01d1fdc1 | [
"Apache-2.0"
] | permissive | zevgenia/Python_shultais | e6f35773e54a72477ea5ee83520dbecfbee7ff48 | e51c31de221c5e7f36ede857a960138009ec8a05 | refs/heads/master | 2020-03-31T21:46:25.061571 | 2018-10-11T13:43:47 | 2018-10-11T13:43:47 | 152,593,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | # -*- coding: utf-8 -*-
import physics5
print(physics5.ek(100, 10))
| [
"[email protected]"
] | |
3c314f559c4a02cdd9399e88687faf1aaef55518 | 062fa6891dfe2278bcfa36a00cc8bed4356e9f5b | /mlflow/tracking/fluent.py | 3acff190107205ff8b9891e6429614e2e541b88d | [
"Apache-2.0"
] | permissive | sepidehhosseinzadeh/mlflow-cpp | f43ffb1dba0e57b9b67fad696966bae683328527 | 724eeaeafbee829201859033315a9d2ebf314844 | refs/heads/master | 2022-12-12T13:41:28.825923 | 2020-06-10T20:42:55 | 2020-06-10T20:42:55 | 158,026,349 | 2 | 0 | Apache-2.0 | 2022-12-08T05:37:42 | 2018-11-17T21:27:07 | Makefile | UTF-8 | Python | false | false | 11,447 | py | """
Internal module implementing the fluent API, allowing management of an active
MLflow run. This module is exposed to users at the top-level :py:mod:`mlflow` module.
"""
from __future__ import print_function
import numbers
import os
import atexit
import sys
import time
from mlflow.entities import Experiment, Run,... | [
"[email protected]"
] | |
7c4402a03d6196f44369aae48542ac89a72a363f | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_managed_database_vulnerability_assessment_scans_operations.py | ce14b2f5af91e3cff8bce7e213cbbf2069ae91ee | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 21,958 | 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 ... | [
"[email protected]"
] | |
6e6e2d47512cdbd5432c4001855a5b23687540ae | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/cv/image_classification/Cars_for_TensorFlow/automl/vega/search_space/networks/tensorflow/backbones/prune_resnet.py | a5b32faa79ca4e832eea9a0341de8e9c088213d8 | [
"Apache-2.0",
"MIT"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 3,242 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"[email protected]"
] | |
2c4aed5ed7cb5ee974c114d183f12163eb2fc911 | d331f11cf1e779e5ccf72c20f700388d07065b19 | /BB_HRRR/GLM_and_HRRR/save_GLM_HRRR_binary_fields.py | 5e56de136638fc61b18ed129afce5c529ea38bc9 | [] | no_license | geofbaum/pyBKB_v3 | cd54d886348547a67a712e4aa1f8299e43667e39 | 8cf483e5296c8b38b57e31a0f65ea29762b57f38 | refs/heads/master | 2020-07-02T18:39:46.296555 | 2019-08-08T18:36:31 | 2019-08-08T18:36:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | ## Brian Blaylock
## May 7, 2019
"""
Generate HRRR-GLM binary Lightning tables and store data in a dictionary.
Save the dictionary for later use. Store on Horel-Group8 (approx. 150 GB).
"""
import numpy as np
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
import multiprocessing
import os
im... | [
"[email protected]"
] | |
6c64949db5c6e14dc709d406fa53c415dabe40cb | fa7d04cb1eb932d609cc2e4567920b77b2080b57 | /基础学习/python_work/Chapter 6/people_message_homework.py | a9596bcd4f98211383f405e04153752e22902adf | [] | no_license | Yangqqiamg/Python-text | 3b74088781e46a21534dcded49e8deae9c458e5d | 426e15d4993c1658909a4e1a848829d09b029c96 | refs/heads/master | 2020-04-11T15:07:06.825475 | 2019-01-01T14:32:19 | 2019-01-01T14:32:19 | 161,880,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | #one
people_message = {
'first_name': 'add',
'last_name': 'mike',
'age': 24,
'city': 'shanghai',
}
print(people_message)
#two
people_num = {
'mike': 6,
'joe': 8,
'mary': 9,
'lihua': 15,
}
print('joe like ' + str(people_num['joe']))
| [
"[email protected]"
] | |
183e6bcb3efbec82b96f70e5665e476ceaf85779 | 3ac9deb93c7ef377749e1a92589757ff70e95011 | /modules/python_file.py | 788862f475b882abaf33013495a9abd80862cc83 | [] | no_license | sambapython/raisingstarts | 6afc9ecfe8b6c21d1cbed87802465a0de581ddc8 | c186dd0d58ecfd845c5092ddf4801e42ef698cae | refs/heads/master | 2021-01-20T16:09:36.802216 | 2016-09-20T08:36:55 | 2016-09-20T08:36:55 | 62,765,486 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | import file1
import file2
import file3
import mod1
import sqlite3
print mod1.f1.fun1()
print (file1.fun1())
print (file3.fun3())
try:
con=sqlite3.connect("db2.db")
#con.execute("create table persons(id int,name varchar(60))")
#con.commit()
except Exception as err:
print err
finally:
pass
#con.close()
#print (file... | [
"[email protected]"
] | |
b3eaae4f74a3d95d15111b18db8173f26b41fbb7 | ff1e3e87e0432173e67782e4c529701426918624 | /PRODUSTRY/asgi.py | d4c0c582eb72d65389b47fbaef83d4187dcc768b | [] | no_license | Rayhun/Produstry | dd7c13e39114f893d4ba3ea012d903ea1723d9ff | 325e74c573c333f00f0842c14d92052818a85d5c | refs/heads/master | 2023-04-22T20:52:49.058342 | 2021-05-11T19:47:13 | 2021-05-11T19:47:13 | 294,981,881 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for PRODUSTRY 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"[email protected]"
] | |
a90afeed2963880cc5342b8ffd1de1542126abeb | 2b7434bef25ce9c1d603faa4c63eebc6ea629e7c | /backend/lizz_8_19_events_19655/settings.py | 619ecde25e9e8d41c048934650eaae9d2e43da81 | [] | no_license | crowdbotics-apps/lizz-8-19-events-19655 | 56052b34125ecc66283a1e53930f20bc4b50d500 | 1da47d86b2323cabfca599e76f796972c79dae67 | refs/heads/master | 2022-12-05T21:21:25.258180 | 2020-08-19T18:28:27 | 2020-08-19T18:28:27 | 288,789,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,867 | py | """
Django settings for lizz_8_19_events_19655 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/
""... | [
"[email protected]"
] | |
a42149122e6f49793dcbcd256512cec4d76d656a | 04975a41eb459f1528dcbdcb1143a3cb535aa620 | /Dynamic_easy/inter_08_01.py | 24efcaf21c829d2f7f98ade60f94fb5317623546 | [] | no_license | RickLee910/Leetcode_easy | 2a50d632379826979a985e1b9950d4cf6bbd8b18 | c2687daf334f96a908737067bb915b8b072d0d56 | refs/heads/master | 2023-01-29T11:09:26.701243 | 2020-12-02T04:36:14 | 2020-12-02T04:36:14 | 294,952,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | class Solution:
def waysToStep(self, n: int) -> int:
if n == 1 or n == 2:
return n
if n == 3:
return 4
a, b, c = 1, 2, 4
for i in range(3, n + 1):
a, b, c = b, c, (a + b + c) % (1000000007)
return c
s = Solution()
a = 5
print(s.waysToSte... | [
"[email protected]"
] | |
ff5069979385848256736247d30c20bb6994c6b2 | 239464e12610791457d393e2573f79babd776456 | /njupt/models/aolan.py | 4565792529ff5435486f548d760f855b108507df | [] | no_license | sanmumuzi/NJUPT-API | a6f48a963521b36940d59525cc730811561fbae6 | 621960fb0749e34da8c22e809b5264639071a853 | refs/heads/master | 2021-09-01T05:02:37.669007 | 2017-12-25T00:20:59 | 2017-12-25T00:20:59 | 115,200,611 | 0 | 0 | null | 2017-12-23T14:27:14 | 2017-12-23T14:27:14 | null | UTF-8 | Python | false | false | 2,605 | py | import hashlib
from njupt import settings
from njupt.models.base import Model
from njupt.urls import URL
class Aolan(Model):
def login(self, account, password):
"""
登录奥兰系统 jwxt.njupt.edu.cn
:param account: 南邮学号、考生号、身份证号
:param password: 密码
:return: {'r': 1, "msg": "登录失败"} ... | [
"[email protected]"
] | |
38ba2d08e22e3d858578639be012ec3575f7804f | d2cb930ed5df0b1b5f7944e00f6f884bf014803d | /yeko_demo/yeko_demo/settings.py | 2b5ddd20cb874abdfd2ed78b7de8f06e217beff2 | [] | no_license | sixDegree/python-scrapy-demo | 3cae4298b01edab65449cfe9af56b2fa59f4c07d | b66530e54156be8c7877f1fc4d497fd497b6fdda | refs/heads/master | 2020-06-17T03:16:23.038061 | 2019-07-08T09:25:15 | 2019-07-08T09:25:15 | 195,777,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | # -*- coding: utf-8 -*-
# Scrapy settings for yeko_demo project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/top... | [
"[email protected]"
] | |
beaf7eedb60db50e4bbda23836ec2a0cd5e63f0a | ea4e24693bddf0d986e7a4dd84a9208b3c28536f | /paayesh/wsgi.py | 6a178fc93c375ca0905a9ebd480f764faf773bb1 | [] | no_license | Amirsorouri00/Django-Modular-Components | ec28812ab603c021a83080c701799f5e0d6a127b | d982c77ef291411718a19bf80d90fa61be65891a | refs/heads/master | 2020-04-14T13:12:05.182391 | 2019-01-06T14:27:20 | 2019-01-06T14:27:20 | 163,862,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for paayesh 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"[email protected]"
] | |
fa966d0266e2001c844d1fe290ad644e65465252 | f2641cd50b3c875ade04ea7537b7e1df7cadb688 | /pycon_schemas/version.py | 9ad58278b78ad8f19fb03944cb3683d9d0140a1b | [
"MIT"
] | permissive | PythonSanSebastian/pycon-schemas | 35c4dabe6a89d1d77aa5bc709740544b87c8c130 | 645ec032d4976fd45b3b050bd71820816212cf68 | refs/heads/master | 2022-07-07T01:44:13.295431 | 2019-10-25T20:05:12 | 2019-10-25T20:05:12 | 216,343,062 | 1 | 0 | MIT | 2020-07-01T16:57:51 | 2019-10-20T10:20:44 | Python | UTF-8 | Python | false | false | 60 | py | """Release version number."""
__version__ = '0.0.1' # noqa
| [
"[email protected]"
] | |
881c5c08827486887ff44acd266e89c45dddfd03 | 8898273f9811fab29eb5621734bafcdf204d8229 | /scipy-stubs/integrate/_ivp/common.pyi | 81dabab39e5cfc7ed3b65529e100e1954d3d90d1 | [] | no_license | tyrion/scipy-stubs | 628ad6321a7e1502683a2b55a759777508ab4b67 | bf49a91313523c4f635bc3e5d14444c1361caf64 | refs/heads/master | 2020-05-30T21:59:43.001510 | 2019-06-03T10:30:54 | 2019-06-03T10:30:54 | 189,984,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | pyi | # Stubs for scipy.integrate._ivp.common (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
EPS: Any
def validate_max_step(max_step: Any): ...
def warn_extraneous(extraneous: Any) -> None: ...
def validate_tol(rtol: Any, atol: Any, n: Any): ...
... | [
"[email protected]"
] | |
9f9d2fbbb6901dac95d02409b10aefadfdaf84b4 | a0a9fca2b93a53625e2043e0c64da29388ff8613 | /tests/unit/virt/libvirt/fakelibvirt.py | 75cd4ef9abb7c3212466edc4bc50a6f62e76f076 | [] | no_license | bopopescu/nova-fet-demo | 8460602a54e897179303d50f7141dc5518b1b2da | b435913a306e97288294933afaffb3d457f548a2 | refs/heads/master | 2022-11-20T08:31:09.019870 | 2017-08-29T06:45:23 | 2017-08-29T06:45:23 | 282,086,612 | 0 | 0 | null | 2020-07-24T00:40:07 | 2020-07-24T00:40:05 | null | UTF-8 | Python | false | false | 41,364 | py | # Copyright 2010 OpenStack Foundation
#
# 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 l... | [
"[email protected]"
] | |
e58665ff3fd90ce5824d7791abbdc9f0b0b97237 | b454c3af46b3c495d298bf4f4554718b3ca0f7cb | /_syntax/number.py | c387793f6f2c35935d9a986f5ad9d77d7dd285ee | [] | no_license | jaelyangChoi/CodingTest | fd9bab94cbcad0308631d2b663acd07b87216f6c | 8d81035f04a05fcfc8ccdafe8627800648bc73cc | refs/heads/master | 2023-06-01T23:05:38.521250 | 2021-06-19T03:53:20 | 2021-06-19T03:53:20 | 339,958,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | a = 1e9 # 1억
print(int(a))
pi = 314e-2
print(pi)
# 실수는 오차를 포함한다. 이진수는 실수를 정확히 표현할 수 없다.
a = .3 + .6
print(a) # 0.8999999999999999
# => round로 반올림
print(round(a, 1)) # 0.9
print(round(3.1423, 2)) # 3.14
| [
"[email protected]"
] | |
0432977e460d9740d98c78b2f667853a927bfa88 | 1e15b421142c26e5285d16a58ac6aca0b062cbef | /venv/Scripts/django-admin.py | bfe0e1fb72c8c2509cf247d49ece44c756696536 | [] | no_license | subha3495/subhacookiesproj | c2d49a5eb154aba27bfc99d194cee49efb8e89c3 | 3068f104dc83c76c81bd7a227c790f3f4d4d1b0f | refs/heads/master | 2020-05-17T03:50:07.209409 | 2019-04-25T18:55:32 | 2019-04-25T18:55:32 | 183,492,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | #!C:\Users\subha\PycharmProjects\subhacookiesproj\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"[email protected]"
] | |
6c078604796dd123c75509a7767be4cb0dd37108 | a978d41e3754a2ece3d649888d7dc549b319817e | /apps/store/migrations/0002_auto_20171026_0244.py | a1a36f76d7053b9e39316b910dd3d5eb0ebab4e4 | [] | no_license | Ericksmith/board_games | ace0ca4d04b4eb508114c8c43d14ff3f5322b9f8 | 4c8a41f9e7bac8dfc59d1cba35c8c10b345d2e57 | refs/heads/master | 2021-09-05T07:15:23.888922 | 2018-01-25T04:39:24 | 2018-01-25T04:39:24 | 108,183,604 | 0 | 0 | null | 2018-01-25T04:39:24 | 2017-10-24T21:05:31 | Python | UTF-8 | Python | false | false | 434 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-10-26 02:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"[email protected]"
] | |
8179ed536b854e23b05d411c6409878d9f8fbeef | 599069eeeae294950aab730ca8d4858ac1929a5c | /bemani/backend/bishi/base.py | d7ace86131c74ce846cf138365fdb3868d06b493 | [] | no_license | ByteFun/bemaniutils | 232d057d4b548f929af4da4f145565ad51482113 | bd467a9b732a25a1c8aba75106dc459fbdff61b0 | refs/heads/master | 2020-12-04T07:45:45.503620 | 2019-12-08T21:57:08 | 2019-12-08T21:57:08 | 231,683,196 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # vim: set fileencoding=utf-8
from typing import Optional
from bemani.backend.base import Base
from bemani.backend.core import CoreHandler, CardManagerHandler, PASELIHandler
from bemani.common import GameConstants
class BishiBashiBase(CoreHandler, CardManagerHandler, PASELIHandler, Base):
"""
Base game class... | [
"[email protected]"
] | |
d1f7f4d7645b9e48ae6990d58072c273a9c73196 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/c703e319a1c79cd92f373c6c99dd4a40/snippet.py | f0eb1096bf3bccd9d42dd6d8a64c2f5536dbc3d2 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 446 | py | people = 30
cars = 40
buses = 15
if cars > people:
print("we should take the cars.")
elif cars < people:
print("we should not take cars.")
else:
print("we can't decide.")
if buses > cars:
print("too many buses.")
elif buses < cars:
print("maybe we could take the buses.")
else:
print("we still ... | [
"[email protected]"
] | |
ad553c348469b6a023c2b222cff54e6aaa95712d | 6ff318a9f67a3191b2a9f1d365b275c2d0e5794f | /python/day8/add.py | e060b151f7e7662949c0265338cee9b7d3e34c06 | [] | no_license | lvhanzhi/Python | c1846cb83660d60a55b0f1d2ed299bc0632af4ba | c89f882f601898b5caab25855ffa7d7a1794f9ab | refs/heads/master | 2020-03-25T23:34:00.919197 | 2018-09-13T12:19:51 | 2018-09-13T12:19:51 | 144,281,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | with open('test.txt','a',encoding='utf8')as f:
f.write('哈哈哈,打不过我吧,没有办法\n') | [
"[email protected]"
] | |
9dc8f2e6c9f60331c1c4894e1182c096842a971a | f9a587ffcc42e06294f12ac761bcc589ba202f85 | /lesson04/del_r.py | 01a034a4317736930147e9cc21cb34e12acce1b3 | [] | no_license | Bulgakoff/files_utf8_04 | 3c49d5f8b637eaa834dd99fd6f140f37ebf96794 | a6299e9c088812c63e1967290a97a2798bc19d1c | refs/heads/master | 2020-09-16T09:10:00.268684 | 2019-11-27T14:58:14 | 2019-11-27T14:58:14 | 223,722,605 | 0 | 0 | null | 2019-11-27T14:58:15 | 2019-11-24T09:51:44 | Python | UTF-8 | Python | false | false | 158 | py |
with open('del.txt', 'rb') as f:
result = f.readlines()
print(result)
f_var = []
for p in result[:]:
f_var.append(p.decode('utf-8'))
print(f_var) | [
"[email protected]"
] | |
454704723c91aaa38436e984d0a865a2c976bf16 | 45f93a9d47204d76b8bf25a71dfb79403e75c33c | /Trees_and_Graphs/Binary Trees/__Right-Sibling-Tree.py | 5274bf5cf821019dce12066fb96d3cb3d3954489 | [] | no_license | tahmid-tanzim/problem-solving | 0173bce1973ac3e95441a76c10324c0e1b0a57c3 | 6ddb51de6772130f209474e76f39ca2938f444f0 | refs/heads/master | 2023-06-25T02:18:03.690263 | 2023-06-20T06:58:46 | 2023-06-20T06:58:46 | 137,173,850 | 4 | 1 | null | 2022-03-30T08:28:41 | 2018-06-13T06:44:25 | Python | UTF-8 | Python | false | false | 1,842 | py | #!/usr/bin/python3
# https://www.algoexpert.io/questions/Right%20Sibling%20Tree
"""
Write a function that takes in a Binary Tree, transforms it into a Right Sibling Tree, and returns its root.
A Right Sibling Tree is obtained by making every node in a Binary Tree have
its right property point to its right siblin... | [
"[email protected]"
] | |
5b49f9ed2760916b19bd8f252a154986087ef41b | 23b686feb2d0ab9082a7ce622fc055946ed99c55 | /.history/atkd/views_20190409152250.py | 368f52282a2afbb37d8b96dd4a13e80011e77a5e | [] | no_license | jasvr/atkd | a18b9840bf9948a7560684cd5eb0d5e22f6c52c7 | daf61f7aa11cfc812171298894b1d0019641c4bd | refs/heads/master | 2020-05-07T09:35:56.343837 | 2019-04-12T16:17:09 | 2019-04-12T16:17:09 | 180,383,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django.shortcuts import render
from .models import Parent, Student
def parent_list(request):
parents = Parent.objects.all()
return render(request) | [
"[email protected]"
] | |
5485a970566a26513ba7761fcf092dac48138d02 | ee561aa019a80f621007f82bdb21fe6ed8b6278f | /devel/turtlebot3-melodic-devel/turtlebot3_description/catkin_generated/pkg.installspace.context.pc.py | b595bae6cb52a86f7d280558d437f0187c648e65 | [] | no_license | allanwhledu/agv_edu_prj | 4fb5fbf14cf0a14edd57ee9bd87903dc25d4d4f2 | 643a8a96ca7027529332f25208350de78c07e33d | refs/heads/master | 2020-09-23T23:32:54.430035 | 2019-12-04T07:47:55 | 2019-12-04T07:47:55 | 225,613,426 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "urdf;xacro".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot3_description"
PRO... | [
"[email protected]"
] | |
8525100e60ff3148ec5d2892294ea3ed84fb74f7 | b0cc5920a18d31bc22d346ae10e99e6b78b12b32 | /wsgi/zosiaproject/agenda/views.py | 4132c02e6a381bf1a3b0baeaae4c4ff632a0ba79 | [] | no_license | kamarkiewicz/zosiaproject | de33525b786908585edd03dfb235c67031bcd440 | 440316ae1dea4feff5b6a9ac6f40c19382022d91 | refs/heads/master | 2021-01-17T09:51:34.944777 | 2016-01-03T21:06:58 | 2016-01-03T22:07:47 | 41,800,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from django.views.generic.base import TemplateView
from django.utils import timezone
from .models import Agenda
class AgendaView(TemplateView):
template_name = 'agenda.html'
def get_context_data(self, **kwargs):
context = super(AgendaView, self).get_context_data(**kwargs)
context['agenda'] =... | [
"[email protected]"
] | |
343654a6ff8b9ad62dfae3413bb5577c2026f7eb | 5966449d2e29c9b64351895db2932f94f9de42da | /catkin_ws/build/detection/catkin_generated/pkg.installspace.context.pc.py | d0f2a9e6ba34e48a5a09cbb48f107f358d311951 | [] | no_license | godaeseong/GoHriProject | 8cbce6934485b8ba3253fc7b6c5b5b59397b4518 | 425e70b7c91b6215f5477fc2250d2b0ac96577be | refs/heads/master | 2021-05-11T22:11:56.099580 | 2018-01-15T02:20:43 | 2018-01-15T02:20:43 | 117,484,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,577 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/hri/catkin_ws/install/include;/opt/ros/kinetic/include/opencv-3.3.1;/opt/ros/kinetic/include/opencv-3.3.1/opencv".split(';') if "/home/hri/catkin_ws/install/include;/opt/ros/kinetic/include/openc... | [
"[email protected]"
] | |
35fbfc803b4c58ed3877c42a9dea8ca8ed8cce89 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_180/ch39_2019_09_04_15_02_03_498630.py | 0029d8ac133813a2cedbf0938fddc211d09ee1cd | [] | 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 | 144 | py | soma = 0
while True:
numa = int(input("Numeros para somar: "))
soma = soma + numa
if numa == 0:
break
print(soma)
| [
"[email protected]"
] | |
0f677f5d072eb753b88fe94e2feeead2bb50a595 | f714db4463dd37fc33382364dc4b1963a9053e49 | /src/sentry/analytics/events/first_transaction_sent.py | d972abeae1561c5b7482283e597056d244743902 | [
"BUSL-1.1",
"Apache-2.0"
] | permissive | macher91/sentry | 92171c2ad23564bf52627fcd711855685b138cbd | dd94d574403c95eaea6d4ccf93526577f3d9261b | refs/heads/master | 2021-07-07T08:23:53.339912 | 2020-07-21T08:03:55 | 2020-07-21T08:03:55 | 140,079,930 | 0 | 0 | BSD-3-Clause | 2020-05-13T11:28:35 | 2018-07-07T11:50:48 | Python | UTF-8 | Python | false | false | 443 | py | from __future__ import absolute_import
from sentry import analytics
class FirstTransactionSentEvent(analytics.Event):
type = "first_transaction.sent"
attributes = (
analytics.Attribute("organization_id"),
analytics.Attribute("project_id"),
analytics.Attribute("platform", required=Fal... | [
"[email protected]"
] | |
d1865dd785d2765014d2581d2626fbe175aced68 | 049d1262acb5e0a0be1201a12b479a7a111cb6b9 | /jacob/bin/wheel | 3dc16ecb462f5c5b1a855b258c3c3b4aceb27f2e | [] | no_license | jaybenaim/day13-reinforcements | c579c908ac35abbe541431a85158f3c3b4ae55bf | d31e89d340465aff7e5f7917924f0ed64566a34a | refs/heads/master | 2020-06-22T01:53:54.259573 | 2019-07-19T17:33:42 | 2019-07-19T17:33:42 | 197,604,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | #!/Users/jay/bitmaker/projects/day13-oop/assignments/reinforcements/jacob/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
aeef4cd9ad9cf60858a571c69a45edf2eaedd352 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/appengine/v1/google-cloud-appengine-v1-py/google/cloud/appengine_admin_v1/services/firewall/pagers.py | fb10d4619bc29c2163fff3b9ab11c3472f65e6f1 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,937 | 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
47cc7185780e69d639c732ae362796e493f9cf77 | baaeb8c1d335e258fd49b5ef024ac39790fd660f | /backend/alembic_users/versions/ed860c399094_added_is_gold_evaluation_cols_to_jobs_.py | bab6dc2c44ecb1672d28025e6494b2f2c7d15e48 | [] | no_license | ReactARDev/React_Redux_Python | f0b80a9d2a603b38f8e144966bc899c5aa3690e6 | afdb4a55f82fdff86686ad955448a4168d05c739 | refs/heads/master | 2021-10-10T19:28:05.142652 | 2019-01-15T21:24:06 | 2019-01-15T21:24:06 | 159,198,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | """added is_gold_evaluation cols to jobs and topic annotations
Revision ID: ed860c399094
Revises: 9528026442d1
Create Date: 2017-12-18 12:43:18.402875
"""
# revision identifiers, used by Alembic.
revision = 'ed860c399094'
down_revision = '9528026442d1'
branch_labels = None
depends_on = None
from alembic import op
i... | [
"[email protected]"
] | |
223487d09c1e1f4d2f04e6c6301688924842dd39 | 2b6a02a34ee6bf68820ad185245e2609b296e0aa | /216.py | ddb1b4fc0c865ef4cd4c335fb5586c6825614993 | [] | 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,491 | py | class Solution(object):
def __init__(self):
self.d = {}
# def is_solution(self, k,n,i, a):
# if n == 0 and len(a)==k:
# return True
# else:
# return False
#
# def process_solution(self, k,n,i,a):
# p = a[:]
# a = sorted(a, reverse=False)
... | [
"[email protected]"
] | |
64a479d9e6ee5f31fe84d13d53432ef96d720493 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Difference/trend_LinearTrend/cycle_30/ar_/test_artificial_32_Difference_LinearTrend_30__0.py | 292b04ae191d6b03a01bd8034a851358326c8b29 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 271 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 30, transform = "Difference", sigma = 0.0, exog_count = 0, ar_order = 0); | [
"[email protected]"
] | |
fd8ba159c5468455865fc833112aeb035392e82b | a5e28d513cc29ca39d4b31d44585def1ee6d0ae9 | /tests/conftest.py | 4977ec1f1af76acf593f7155d01c3553166725d7 | [
"Apache-2.0"
] | permissive | blakev/ulid | 1e9c79d0acc3a82bcbf3c01601127e50d7ab15ce | 089c76595c15fd614a1ee0b989353079052abce5 | refs/heads/master | 2021-04-15T12:07:36.881868 | 2017-06-16T05:12:10 | 2017-06-16T05:12:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,928 | py | """
conftest
~~~~~~~~
High level fixtures used across multiple test modules.
"""
import calendar
import datetime
import os
import pytest
import random
from ulid import base32
@pytest.fixture(scope='function')
def ulid_bytes_year_1990(valid_bytes_80):
"""
Fixture that yields a :class:`~bytes` ins... | [
"[email protected]"
] | |
ebc3dcd37e323817823673c28a9a13d8be293c95 | f8ea3582884df87172cb747e424ebd0c20223614 | /tests/oldtests/testrastdist.py | 7ed004fabdd17a007282c998395e528001d9933a | [
"MIT"
] | permissive | karimbahgat/PythonGis | 94f52f800a769ee54b12c7277604ead011465321 | fb99148a15bcbe0438ddca67b484a15076bd961a | refs/heads/master | 2023-04-12T15:59:08.522464 | 2022-09-09T22:48:32 | 2022-09-09T22:48:32 | 47,153,255 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 678 | py |
import pythongis as pg
from time import time
# test distance
vect = pg.VectorData(r"C:\Users\kimo\Downloads\cshapes_0.6\cshapes.shp",
)#select=lambda f: f["GWCODE"]==666)
hist = vect.histogram("GWCODE")
#hist.view()
t = time()
distrast = pg.raster.analyzer.distance(vect, bbox=[-180,90,180,-90], ... | [
"[email protected]"
] | |
a414ae6cc75cc2bab26ee9b925f10d8309d71118 | 59cc4c5983dd486b93e409da3df9e20cd8dbd04e | /metaprog/composition.py | db929ad1fa422c0eb02708e1d27df290842f8ba0 | [] | no_license | titu1994/Python-Work | a95866bf47a3aba274376ec72b994e2e4fbda634 | bc7f201ed01e2f7c49ae8d143d29e87e94420dc9 | refs/heads/master | 2023-04-27T02:33:30.731988 | 2023-04-22T19:13:03 | 2023-04-22T19:13:03 | 53,428,058 | 13 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py |
def custom_dir(c, add):
return dir(type(c)) + list(c.__dict__.keys()) + add
class BaseComposite:
"Base class for attr accesses in `self._extra_params` passed down to `self.components`"
@property
def _extra_params(self):
if not hasattr(self, 'components'):
self.components = []
... | [
"[email protected]"
] | |
e9aac60d8d793b04b8cce53945eca54786292b2b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_328/ch25_2020_03_09_20_08_11_452435.py | e45f3d0a86b1198f3a6d0682673b1b7ed61d8b3e | [] | 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 | 330 | py | from math import sin, radians
jacas = float(input("qual a velocidade de lançamento de sua jaca: "))
jacas2 = float(input("qual o ângulo de lançamento da sua jaca: "))
d = (jacas**2*sin*(radians(2*jacas2))/9.8
if d < 98:
print("Muito perto")
elif d >= 98 and d <= 102:
print("Acertou!")
else:
print("Muito lon... | [
"[email protected]"
] | |
7b927918987478127db33e25f638d3774ffa6cbb | d41c15b9c68ab2ee70740044d25d620e6b90a09e | /app/mod_cmd/commands/status.py | 2faf54044feec0dddce8af23988a4ef47d2decb9 | [
"Apache-2.0"
] | permissive | jaycode/Arthur.workspace | 9093b54cda983d2e8b6745b894403b5fa1282b56 | 7a581104141ee5f556e058b1276b4087a2921dfc | refs/heads/master | 2021-01-10T10:36:35.599700 | 2016-03-21T19:37:49 | 2016-03-21T19:37:49 | 55,436,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | """This module is useful to allow user finds out current state of their work.
"""
from app.mod_cmd.client_instruction import ClientInstruction
from app.helpers import docs_path
from zipfile import ZipFile
from app import app, mongo
def run(project = None, args = [], **kwargs):
"""Show status of current project. Ke... | [
"[email protected]"
] | |
7f027a5f8990360a411659c96ad45506c18ae5a9 | 8319c9859bde5e21eba2ba60219ebe496646470b | /src/stratis_cli/_stratisd_constants.py | 86f901513a72fc8576ab0bd4c5884a268bb8d66e | [
"Apache-2.0"
] | permissive | stratis-storage/stratis-cli | 0be83c0903c1050ac3cf75a19121ba19be97c4a6 | 399c95edd7c37e5fb9494f7829d5355c011fb7d7 | refs/heads/master | 2023-08-31T23:24:02.710481 | 2023-08-30T20:18:02 | 2023-08-30T20:18:02 | 66,956,943 | 107 | 44 | Apache-2.0 | 2023-09-08T18:25:33 | 2016-08-30T16:09:39 | Python | UTF-8 | Python | false | false | 2,347 | py | # Copyright 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"[email protected]"
] | |
3eab99e78874519237ee18fbd383413183909b24 | 92b7afd4c17088a63a38d80d2f981cf146eae988 | /Chapter02/U02_Ex05_ConvertCtoF_Table.py | 612668d6c17270152ff0932fe7173e0c27aaa9b4 | [] | no_license | billm79/COOP2018 | 6d3e5d9f8309646beab0078a2f84bb6fe30b18fc | 6588c0ebfa932fbae7eec11c20270e4a8e969377 | refs/heads/master | 2020-03-28T02:00:28.959515 | 2019-05-13T17:51:05 | 2019-05-13T17:51:05 | 147,540,965 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # U02_Ex05_ConvertCtoF_Table.py
#
# Author: Bill Montana
# Course: Coding for OOP
# Section: A3
# Date: 18 Nov 2017
# IDE: PyCharm Community Edition
#
# Assignment Info
# Exercise: 5
# Source: Python Programming
# Chapter: 2
#
# Program Description
# Computes and prints a table of Celsius temperatur... | [
"[email protected]"
] | |
cf77e4bc9a182a406270a6fd7cf2558350304f7c | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatterpolargl/unselected/marker/_opacity.py | 3cb2d6a2455082c340af789b6b315dfff4f79427 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 500 | py | import _plotly_utils.basevalidators
class OpacityValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name='opacity',
parent_name='scatterpolargl.unselected.marker',
**kwargs
):
super(OpacityValidator, self).__init__(
plotly_n... | [
"[email protected]"
] | |
57fa882d992e873136c6e65dba8a3c40fc606e37 | 95efc2300bd2936eb9b4ca8f9cda55764047f094 | /django1/src/customlogin/urls.py | 14fcc5ea0182abaa54ff28601abb0ce65e803934 | [] | no_license | gittaek/jeong | d207d6e41398803475aff82a49bea01e21a86901 | 20808cbb97daff79a4c0b4a017106519f99d919f | refs/heads/master | 2020-04-21T23:11:17.202531 | 2019-02-10T03:20:57 | 2019-02-10T03:20:57 | 169,938,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #하위 URLConf
#app_name: 하위 URLConf 파일의 등록된 URL들의 그룹명
#urlpatterns: URL과 뷰함수를 이그트형태로 등록하는 변수
from django.urls import path
from .views import *
app_name = 'cl'
urlpatterns = [
path('signup/', signup, name= 'signup'),
path('signin/', signin, name= 'signin'),
path('signout/', signout, name= 'signout')... | [
"user@DESKTOP-37GULAI"
] | user@DESKTOP-37GULAI |
68618a7466a5c4c5db83220054f3f89a5f25af56 | 4c7914bf0eb52f2fe5dab70fa630a322a9449e05 | /淘宝美食/spider_tb.py | 979bf47a13e824f3edf29f2d47cb5b352420348d | [] | no_license | xhongc/pythonCrawl | f334d737326a47782d2533c4db23734729f13099 | a38e59496dd78b6e070ea6882043b1744190103e | refs/heads/master | 2022-12-10T01:22:01.608193 | 2020-01-12T09:43:19 | 2020-01-12T09:43:22 | 93,115,695 | 4 | 5 | null | 2022-11-22T02:36:28 | 2017-06-02T01:47:22 | Python | UTF-8 | Python | false | false | 3,288 | py | import re
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import json
import pymysql
f... | [
"[email protected]"
] | |
ea2438007b0386076e93ad827190c5c71c47f32f | 99efa551de2a4586767d109b211d8c016c5454c4 | /String/App1/K.py | 17d6884198554cfa3fc90d41e6451d43c863783f | [] | no_license | Vijay-Ky/Anit_Rooman_Python_Training | 9decf34b651ea8455bdd4cdf1e2239a77cf1bc7e | 155ba84620c28fd64a7219013c3bdd43f76fa278 | refs/heads/master | 2020-05-31T23:22:45.865104 | 2019-06-18T09:33:10 | 2019-06-18T09:33:10 | 190,537,707 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | var1 = 'Hello World!'
var2 = "Python Programming"
print ("var1[0]: ", var1[0])
print ("var2[1:5]: ", var2[1:5])
| [
"[email protected]"
] | |
dc75718ca509b24cafd770b46279b39533e4dce4 | 1c74a2e075793e1d35c441518e2e138e14e26ea5 | /Tree/124. 二叉树中的最大路径和.py | b4a70b63656b087e29f283c107cc12e1c831c361 | [] | no_license | Dawinia/LeetCode | 1a385bfadbc4869c46dc1e9b8ca7656b77d746a0 | e1dcc71ca657b42eb8eb15116697e852ef4a475a | refs/heads/master | 2021-07-20T00:56:01.058471 | 2020-07-22T14:07:04 | 2020-07-22T14:07:04 | 197,305,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def __init__(self):
self.ans = -1000000000
def maxPathSum(self, root: TreeNode) -> int:
self.traverse(root)
... | [
"[email protected]"
] | |
c6705abcd1b38cd180cd1869f249ca60fb5c4516 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc017/C/answers/121328_akio0803.py | 35e70dd74eb09b1c6b633e244a904471419d122e | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | N, M = [int(_) for _ in input().split()]
res = [0] * (M + 2)
ans = 0
for _ in range(N):
l, r, s = [int(_) for _ in input().split()]
res[l] = res[l] + s
res[r+1] = res[r+1] - s
ans += s
for i in range(M+1):
res[i+1] = res[i] + res[i+1]
print(ans - min(res[1:-1])) | [
"[email protected]"
] | |
c2a251f706de272919eee0bf2b981f3e0def3bbe | 17268419060d62dabb6e9b9ca70742f0a5ba1494 | /pp/assert_grating_coupler_properties.py | e4623d5afe7b5f3da50f619ba7c002a9a0e798c3 | [
"MIT"
] | permissive | TrendingTechnology/gdsfactory | a19124423b12cbbb4f35b61f33303e9a012f82e5 | c968558dba1bae7a0421bdf49dc192068147b776 | refs/heads/master | 2023-02-22T03:05:16.412440 | 2021-01-24T03:38:00 | 2021-01-24T03:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from pp.component import Component
def assert_grating_coupler_properties(gc: Component):
assert hasattr(
gc, "polarization"
), f"{gc.name} does not have polarization attribute"
assert gc.polarization in [
"te",
"tm",
], f"{gc.name} polarization should be 'te' or 'tm'"
asse... | [
"[email protected]"
] | |
dfd15b290e3345001bd70e8dccef8397e16bb767 | e56b63fa189d6c1e84eda135a41ae63d6177c10e | /setup.py | 29e819082c2ce53fd58b560ba7c80ae49b497ba4 | [] | no_license | bibi21000/janitoo_scene | 22ededfc79866a806b22770f8c347169407523cb | c9c8f6b58f5109c47ae302b1fbc58c39d1c35857 | refs/heads/master | 2021-01-17T18:10:49.644483 | 2016-06-22T22:10:42 | 2016-06-22T22:10:42 | 60,803,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup file of Janitoo
"""
__license__ = """
This file is part of Janitoo.
Janitoo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 ... | [
"[email protected]"
] | |
10e2d1487315bb928296b66298978da171a19fac | fb909b0716f62ae118afa7d505cbcbd28f62bc63 | /main/views.py | 8282565f82dee5405121aed7cdc52d07b5200ebf | [] | no_license | dkalola/JustAsk-Final | a5b951462cd3c88eb84320bb8fcf10c32f959090 | c2e7c2ffae4d3c2d870d5ba5348a6bae62db5319 | refs/heads/main | 2023-05-24T16:02:17.425251 | 2021-06-16T19:33:52 | 2021-06-16T19:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74,259 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import login, logout, authenticate
from django.contrib import messages
from .forms import NewUserForm
from . models import Student,Question,Answer,EBook,... | [
"[email protected]"
] | |
8283b7f68b360f419fd5896d84b4879f9089d354 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /kfwTnnJjo3SKG2pYx_3.py | e7ac90f207041dbf5f864dab33c4a2d7ea29af06 | [] | 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,576 | py | """
Replace the numbers in a string with their binary form.
### Examples
replace_nums("I have 2 sheep.") ➞ "I have 10 sheep."
replace_nums("My father was born in 1974.10.25.") ➞ "My father was born in 11110110110.1010.11001."
replace_nums("10hell76o4 boi") ➞ "1010hell1001100o100 boi"
### Not... | [
"[email protected]"
] | |
b4822ca44563f6be4ba21dc3c949c510cffc59b8 | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav143.py | 69e2c39d1de031eb531fff7484cfaf7bc99323d5 | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/python
import sys
def compute(prey):
if prey[0] != 0:
temp0 = prey[1] % prey[0]
else:
temp0 = prey[0]
temp1 = temp0 * prey[0]
temp1 = prey[1] + prey[0]
temp2 = max(temp1, prey[0])
temp3 = temp1 + temp1
if prey[1] > prey[0]:
temp4 = temp0 + prey[1]
else:
temp4 = temp1 + prey[0]
temp1 = temp4... | [
"[email protected]"
] | |
9308ae4ebcf181f0896ffd022dd31f4ecff6f8df | f4c753c85b23014faa43f905aef817e8d493e187 | /core/fill/fill_types.py | c35def3435f65e21e0c6c7c44920c1335e35f5ec | [
"MIT"
] | permissive | bdrydyk/building_tool | 61cbfe76af7b4af56ea714670609961efd809385 | 8da3d17d74591a556d597a4f360d3730d1ae4c1a | refs/heads/master | 2020-06-25T16:56:58.726059 | 2019-07-21T17:51:26 | 2019-07-21T17:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,067 | py | import bmesh
from mathutils import Vector, Matrix
from bmesh.types import BMEdge, BMVert
from ...utils import (
filter_geom,
calc_edge_median,
calc_face_dimensions,
filter_vertical_edges,
filter_horizontal_edges,
)
def fill_panel(bm, face, prop):
"""Create panels on face
"""
if prop.pa... | [
"[email protected]"
] | |
6fe5f23bd91afed7a5a5a947bc2ecfc947a7495a | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/pfnet_chainer/chainer-master/examples/ptb/gentxt.py | c034207b2ef2a5e688211a486a4d0ed0e00d2277 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 3,083 | py | #!/usr/bin/env python
"""Example to generate text from a recurrent neural network language model.
This code is ported from following implementation.
https://github.com/longjie/chainer-char-rnn/blob/master/sample.py
"""
import argparse
import sys
import numpy as np
import six
import chainer
from chainer import cuda
... | [
"[email protected]"
] | |
111e184e4618fc600d7bfced3ff6d93feb9e5217 | 975da64ee000833af92148b647ea1bea1deac6fe | /test/test_replace_phone_number_params.py | 188e89fc12c3deeca09f0ee74c12b0cc356e1bbf | [] | no_license | bitlayergit/API-SDK-python | 41c84eadae31556fae818e636565723d3112aa2c | 111b4eb9b725d7a8feb31b8e0af8bb2ee79dcda3 | refs/heads/master | 2021-07-06T08:51:56.984499 | 2017-09-28T15:37:20 | 2017-09-28T15:37:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # coding: utf-8
"""
Phone.com API
This is a Phone.com api Swagger definition
OpenAPI spec version: 1.0.0
Contact: [email protected]
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import swagge... | [
"[email protected]"
] | |
5ae8e4f6bff9c4bb0c4b6d58c9158e149983f7ed | 372edad1cd6399cadba82818e9fb9682c3bac1b4 | /packages/python/plotly/plotly/validators/_histogram2d.py | b2bbad238bb208885da6ffff8f69637c6d5e0789 | [
"MIT"
] | permissive | OGVGdev/plotly.py | 78bfa9e25e92c367f0da30af7885cdd163ba612b | 96a9101c79aa588023f56153bf274d0d570ffcf6 | refs/heads/master | 2022-11-10T16:44:06.732450 | 2020-06-26T13:07:06 | 2020-06-26T13:07:06 | 275,173,321 | 1 | 0 | MIT | 2020-06-26T14:19:41 | 2020-06-26T14:19:40 | null | UTF-8 | Python | false | false | 16,417 | py | import _plotly_utils.basevalidators
class Histogram2DValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="histogram2d", parent_name="", **kwargs):
super(Histogram2DValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"[email protected]"
] | |
148d097216699d2a68a987361655c5f84bc8326b | 248f56b1fb0cb20796e5a29736a37fa4106fa0bb | /2022KAKAOBLIND/solution3.py | ed3658e9ce984ff7a5c5eca0daef151660b3f2a1 | [
"MIT"
] | permissive | KOOKDONGHUN/programmers | b24d672c67180765daca3036c72600ba17e0bd50 | 87ac8fcc23b14b3293c37933e4b9bbf663792830 | refs/heads/main | 2023-08-15T21:44:04.462043 | 2021-10-02T05:35:23 | 2021-10-02T05:35:23 | 401,706,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | from datetime import datetime
import math
def solution(fees, records):
answer = []
t_ls = []
car_num_ls = []
check_ls = []
car_num_ls2 = []
minute = 60
dead_line = "23:59"
log = dict()
for record in records:
t, car_num, check = record.split()
t_ls.append(t)
... | [
"[email protected]"
] | |
c43a49ab156f7382d0fb726caf88d66387bbe7c9 | 184310f55b58e854dc3b6c58599ef99bc4c95739 | /hujian_api/API_service/Templight/tt.py | f8dec3403639f1cdd677b97b36c29b6ed379a8ac | [] | no_license | tanjijun1/Python_API | c8585821a627c399fea1ab31bb024be6b82dd3ab | 3c4771875870ffe425d2d39fc28a50449b1752f2 | refs/heads/master | 2023-01-07T23:30:30.284433 | 2020-11-11T08:43:10 | 2020-11-11T08:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | import time
now = time.time()
print(now)
Content-Type: multipart/form-data; boundary=-----------13418483933
-----------13418483933
Content-Disposition: form-data; name="service_key"
-----------13418483933
Content-Disposition: form-data; name="device_sn"
-----------13418483933
Content-Disposition: form-data; name=... | [
"[email protected]"
] | |
b5892daa2cf40600c3c171d16b4d33890e637c5d | 3e381dc0a265afd955e23c85dce1e79e2b1c5549 | /hi-A3/not_hesaplama.py | 57a517a822a6edc22adf30f92c4369c4d4857351 | [] | no_license | serkancam/byfp2-2020-2021 | 3addeb92a3ff5616cd6dbd3ae7b2673e1a1a1a5e | c67206bf5506239d967c3b1ba75f9e08fdbad162 | refs/heads/master | 2023-05-05T04:36:21.525621 | 2021-05-29T11:56:27 | 2021-05-29T11:56:27 | 322,643,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | dosya = open(file="notlar.txt",mode="r",encoding="utf-8")
metin = dosya.read()
dosya.close()
donem_ortalamasi=0.0
not_adet=0
for satir in metin.split("\n"):
ders_adi=satir.split(":")[0].strip()
notlar = satir.split(":")[1].strip().split(" ")
ortalama=0.0
for nt in notlar:
ortalama = ortalama + f... | [
"[email protected]"
] | |
56364384fadab6ba2a8360d6af96ab70e100b200 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_006/ch3_2020_03_09_20_04_20_580816.py | d72a113c6ad8ecb6326c442c0399dc5570cc0f35 | [] | 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 | 134 | py | def calcula_gaussiana(x, mi, sigma):
resultado=(1/(sigma*((2*math.pi)**0.5)))*(math.e**(-0.5(((x-mi)/sigma)**2))
return resultado | [
"[email protected]"
] | |
1b7ee83080c836f6c279d09bbbe341b44e72147b | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/win32/Demos/CopyFileEx.py | 4aa24f877a44e08b33f9917690f24b5da1da55db | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import os
import win32api
import win32file
def ProgressRoutine(TotalFileSize, TotalBytesTransferred, StreamSize, StreamBytesTransferred,
StreamNumber, CallbackReason, SourceFile, DestinationFile, Data):
print(Data)
print(TotalFileSize, TotalBytesTransferred, StreamSize, StreamBytesTransfe... | [
"[email protected]"
] | |
55fd8f6731ac12dc4c43cec0146a397ec6063002 | 9028516ff0b2d95b8000b9fc4c44c29aa73c926c | /qa/rpc-tests/listtransactions.py | 2aa4910074d08c894f8f572dd90a502a1019280f | [
"MIT"
] | permissive | lycion/TripOne | a9e546eac9ad6179c0b6bd4f868162f70930b6ac | c6ae7d9163ef4095fe0e143d26f3311182551147 | refs/heads/master | 2020-03-28T22:29:06.119551 | 2018-09-18T06:07:06 | 2018-09-18T06:07:06 | 149,236,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,913 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Copyright (c) 2015-2017 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import test_framework.loginit
# Exercise the li... | [
"[email protected]"
] | |
621333841f77d8f450e89b6da4802214a1f72bd0 | f0066a2eb7b2f92d7c04dc314af6be320724c614 | /nova/tests/unit/virt/libvirt/test_vif.py | 19be56c65db380d64cd184e26a58870aeed718fe | [
"Apache-2.0"
] | permissive | hyphon81/nova-for-gpu-passthrough | 80392ea7462ade8457e77843482387d8f6593797 | 7c164980d7355d8fc40a6b155e31e325191b6a5e | refs/heads/master | 2021-01-20T14:10:38.016142 | 2017-02-10T08:03:45 | 2017-02-10T08:03:45 | 82,746,438 | 0 | 1 | Apache-2.0 | 2020-07-24T00:41:48 | 2017-02-22T01:31:23 | Python | UTF-8 | Python | false | false | 77,088 | py | # Copyright 2012 Nicira, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"[email protected]"
] | |
9727f8d73ce82c5146d695bcfb555813b543ff79 | fa82dad9e83206d4630a55141bf44f50cbf0c3a8 | /day1_python/01_python200_src/022.py | 164a540eabd104f453b2caa203a01db62f7e7434 | [] | no_license | jsh2333/pyml | 8f8c53a43af23b8490b25f35f28d85f1087df28d | 157dfa7cc2f1458f12e451691a994ac6ef138cab | refs/heads/master | 2021-03-27T22:26:38.254206 | 2020-04-26T06:35:11 | 2020-04-26T06:35:11 | 249,114,580 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | a = True
b = False
print(a == 1) # True가 출력됨
print(b != 0) # False가 출력됨
| [
"[email protected]"
] | |
ada46b035a399992d1b92db668b619ceb6f7a703 | 35e00d1996515ccf3151067ff28ff3357078f0b6 | /google/pubsub_v1/services/subscriber/transports/base.py | d50b8baf683cbde3f253dee4f766efed2d53690a | [
"Apache-2.0"
] | permissive | googleapis/python-pubsub | 5bb18674307bd89236a61c0d7c5079f10e19467e | 1b9724324c58d27bcee42020b751cda58d80fddb | refs/heads/main | 2023-09-03T13:14:22.894233 | 2023-08-28T13:18:36 | 2023-08-28T13:18:36 | 226,992,581 | 321 | 195 | Apache-2.0 | 2023-09-10T23:29:10 | 2019-12-10T00:09:52 | Python | UTF-8 | Python | false | false | 19,653 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"[email protected]"
] | |
de94c56c7667c7a7c99683be9a0bf04d00ecca56 | a5688a923c488414ecffcb92e3405d3876f1889d | /examples/computer_vision/mmdetection_pytorch/configs/guided_anchoring/ga_faster_x101_64x4d_fpn_1x_coco.py | 28f4fd4b13801f9cb47ceb3d715244d40c281c70 | [
"Apache-2.0"
] | permissive | armandmcqueen/determined | ae6e7a4d5d8c3fb6a404ed35519643cf33bd08e4 | 251e7093b60a92633b684586ac7a566379442f15 | refs/heads/master | 2023-05-28T17:52:18.915710 | 2021-06-09T23:55:59 | 2021-06-09T23:55:59 | 259,449,481 | 0 | 0 | Apache-2.0 | 2021-04-09T12:13:11 | 2020-04-27T20:47:23 | Go | UTF-8 | Python | false | false | 376 | py | _base_ = "./ga_faster_r50_fpn_1x_coco.py"
model = dict(
pretrained="open-mmlab://resnext101_64x4d",
backbone=dict(
type="ResNeXt",
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type="BN",... | [
"[email protected]"
] | |
3af8710d6b01d30dfe73cc770a65abe5f3cdfb70 | 99da8a6d2392472cb66e5b12c03142c90640186a | /BOJ/DFS&BFS/2573.py | 784c81d48ea577cc9b507ab56b9611ea6bc47a60 | [] | no_license | chorwonkim/__Algorithms__ | cf6cf4ae5cf091d856397369b6db1bb41f925377 | 0c1e58410ae90b72c0d7e44a6179b8fedc786131 | refs/heads/master | 2022-09-28T16:59:20.841482 | 2022-09-25T09:57:58 | 2022-09-25T09:57:58 | 130,082,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | # import sys
# sys.setrecursionlimit(100000)
#
# dx = [-1, 0, 1, 0]
# dy = [0, -1, 0, 1]
#
# N, M = map(int, sys.stdin.readline().rstrip().split())
# ice_map = []
# ice_map_checker = []
# result = 0
#
#
# def func_2573(p, q):
# ice_map_checker[p][q] = True
#
# for k in range(4):
# ice_p = p + dx[k]
# ... | [
"[email protected]"
] | |
6fe6df1f0c3cf8fbc8b71b768fcb421f521466e2 | 2d4127f5fa1bca8ba41b9da48d9180c64680b327 | /openid_connect_op/utils/jwt.py | 7c7f306b1959045ffe75b8aaff0c8c8189a54732 | [
"MIT"
] | permissive | WilliBobadilla/django-openid-op | ce02b7fe9db4fa8aca0cec4df003c905927dfbe3 | 732812cab7610080289ae70b8ea791ba9f0105ad | refs/heads/master | 2023-04-19T08:49:19.962249 | 2021-05-03T18:21:26 | 2021-05-03T18:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,642 | py | import datetime
from functools import lru_cache
import python_jwt as jwt
import jwcrypto.jwk as jwk
from django.conf import settings
from os import urandom
from jwcrypto.jws import JWS
from jwcrypto.common import base64url_encode, json_encode, json_decode
from calendar import timegm
# need to add "kid" header which... | [
"[email protected]"
] | |
80147bbb0710f00faafe35228d6fa40ec6be58de | 57d88ae2ee752f9624c10d81bb46fc979176f86d | /gisty.py | 966290439f230e79fb9a5d17832126519bda27c3 | [] | no_license | lambdamusic/Snipplr_2_Gist | e346cba5762ffb50cef63aa93430e229016b07f4 | bf23e99595cd43abfd301649c8727a894c80c2f6 | refs/heads/master | 2021-01-10T21:37:28.916160 | 2013-02-07T21:57:11 | 2013-02-07T21:57:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,673 | py | # mikele: I modified this so that I can pass stuff directly from console
# In [1]: from gisty import *
# In [2]: gist_list("username", "password")
# https://gist.github.com/3808121 - [u'new_gist.py'] 'Python: take input from stdin and create a new public gist with it'
# https://gist.github.com/3807911 - [u'base.html'... | [
"[email protected]"
] | |
24e1af42b6cf8518e8c366fe186394139c53ee9a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /2f9vjBiynkBtF3TBi_2.py | 78016bb10def75086de7b057fd4c4c5f57730f40 | [] | 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,053 | py | """
In this challenge, you must verify the equality of two different values given
the parameters `a` and `b`.
Both the _value_ and _type_ of the parameters need to be equal. The possible
types of the given parameters are:
* Numbers
* Strings
* Booleans (`False` or `True`)
* Special values: `None`
What hav... | [
"[email protected]"
] | |
32f75d1ab64a5f215393d6f5c1848e0138edc409 | eb5fa3bdbad17674e95b360694e6d794387a557c | /menuhin/middleware.py | 2f5bf781bf9e2cac82946707eb46785c3e434752 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | kezabelle/django-menuhin | 0648bc923fe159612846282a526f2c60d0f535a9 | b9c4111eed04e241c29ca8ec95c8a3ffeaac48da | refs/heads/master | 2021-05-02T02:00:44.896065 | 2014-12-19T10:00:50 | 2014-12-19T10:00:50 | 14,557,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | import logging
from django.utils.functional import SimpleLazyObject
from django.conf import settings
from django.core.urlresolvers import reverse, NoReverseMatch
from .models import MenuItem
from .utils import (LengthLazyObject, get_menuitem_or_none,
get_relations_for_request)
logger = lo... | [
"[email protected]"
] | |
da11b4cca48ae0c88eb3b8c66a041828ea0b021e | e38db85f6a13b32c60bf66d78838d6ed348f1798 | /healthplans/tests.py | 549fcf58df9886eecfa78cb4e957f908105e148f | [
"BSD-2-Clause"
] | permissive | westurner/health-marketplace | ab72d60d9469c9f3622bc64c391b222018c7c7a1 | 15f5379cc213e2e2b2150e967b56092ea8468db2 | refs/heads/master | 2020-12-28T21:28:09.415775 | 2013-11-09T17:55:08 | 2013-11-09T17:55:08 | 14,261,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,880 | py | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
from healthplans.models import Provider
from healthplans.models import Plan
class HealtplansModelsTes... | [
"[email protected]"
] | |
098c796afacb67484884c0be523186710e54f517 | 32e6e405bebc7c63ca0a1721512a9abe4c2ed7cb | /food_reference_listing/database/archive_loader/initialize_database.py | 86532879fe4e3fdf107fdcc2b05257eba61c3ebd | [
"MIT"
] | permissive | bfssi-forest-dussault/food_reference_listing | d034d853a966967a94b6a1e82beee442786f1e7f | 85372a81a9201dda02797ab0c11b1bd710f9b70d | refs/heads/master | 2023-01-03T22:44:13.388149 | 2020-10-29T18:40:18 | 2020-10-29T18:40:18 | 241,152,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | import sys
import django
from pathlib import Path
# Need to do this in order to access the database models
sys.path.append("/app")
django.setup()
# For some bizarre reason I need to import all functions, rather than have them be defined in this file vOv
from food_reference_listing.database.archive_loader.helpers impo... | [
"[email protected]"
] | |
0e73a9a57c08e990f0dd90913c0a96dfe81fc02a | 6f7032e954334d102a9e1eff8f420f0a8b7ee70a | /pytestpackage/test_conftest_demo1.py | 2820a6af2e706f8e8ff16ee55e6d55b40b53b7c1 | [] | no_license | suchismitarout/selenium_practice | 186596e14ed66550ef184703a04aa323faad9f45 | 2281e6a3a526f2ff5c1c566517dc85b4ae23b85b | refs/heads/master | 2022-12-26T12:16:17.297471 | 2020-10-06T06:21:04 | 2020-10-06T06:21:04 | 301,632,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import pytest
def test_demo_conf1(onetimesetUp):
print("This is conftest demo")
def test_demo_conf2(onetimesetUp):
print("This is second conftest demo") | [
"[email protected]"
] | |
d16c9b91a5c897f61fb9bd659fd74a37ceeb379c | 5995b039f039accf17538283a51668be929aeaea | /red_mind/red_mind/wsgi.py | 6eb39eb6bbcbd2a0289055e40fd2dc5560db6e82 | [] | no_license | harshitdixit69/red_mind_heart | 0c9bed294a8e89b05ecdd93590da25f79139ad6c | 8693ddef44e949219eab6670a3b1b862646f3dd8 | refs/heads/main | 2022-12-29T23:17:51.061114 | 2020-10-14T21:12:21 | 2020-10-14T21:12:21 | 304,288,555 | 0 | 0 | null | 2020-10-15T10:21:03 | 2020-10-15T10:21:02 | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for red_mind 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"[email protected]"
] | |
d271a9cf8126ae56eb7272193959b38f7de60c87 | 7463a66dfa00572f4e4d8ef4349309531f0105ae | /ServerDL/cfgs/configfiles.py | 3ba6e38d4d33dfb1119a53e1b5ed363987540186 | [] | no_license | fx19940824/DetectionModel | f2e380fd21f4b31a17fd175a6dea1067b8f0d5cc | edc0d2f9eea481d2bc6f3abb2f222b59fdc25538 | refs/heads/master | 2022-12-20T19:58:32.224829 | 2019-05-30T01:16:05 | 2019-05-30T01:16:05 | 188,800,679 | 2 | 0 | null | 2022-11-22T02:39:23 | 2019-05-27T08:13:38 | Python | UTF-8 | Python | false | false | 2,983 | py | from ServerDL.apis.transformers import *
from ServerDL.apis.postprocesses import *
from Algorithm.classifications.utils.model_factory import classification
from Algorithm.segmentation.deeplabv3plus.modeling.deeplab import DeepLab
model_register_table = dict()
model_register_table["maskrcnn_box"] = {
"model_w... | [
"[email protected]"
] | |
8196a02855f2ae340915ff324e2199e99211f8a6 | 3eadf176c95f0c924af53770441afc0797d7c6ff | /memberships/admin.py | ccbd60dec107d29cc05318f498a7790d51b957e8 | [
"MIT"
] | permissive | Maneesh9063/video-membership | d144d559fe721e4a077659d610e6c0e8c35062d6 | c241310a6a4e3b7ee831b1d65ae8afaef7d3076a | refs/heads/master | 2022-12-08T23:58:37.176632 | 2020-09-04T15:41:40 | 2020-09-04T15:41:40 | 292,874,425 | 0 | 0 | MIT | 2020-09-04T14:52:54 | 2020-09-04T14:52:53 | null | UTF-8 | Python | false | false | 227 | py | from django.contrib import admin
# Register your models here.
from .models import Membership, UserMembership, Subscription
admin.site.register(Membership)
admin.site.register(UserMembership)
admin.site.register(Subscription)
| [
"[email protected]"
] | |
eb4dea118069aa919f4783f664f547821c76ec42 | ae91e7f7e80f891a8116cdaba5b52b1b3175f7c3 | /tests/hwsim/test_ap_tdls.py | c4d6dbc2f137a30970a572ce685454db44de2b23 | [
"BSD-3-Clause"
] | permissive | AlejandroAbad/hostap | fda648e9f874be650193519dd552f8f31fdd210d | 60400d5e1f21f4a1357185d4c8e3a4f781375e25 | refs/heads/master | 2020-06-04T20:27:33.386538 | 2014-04-02T18:25:05 | 2014-04-02T18:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,893 | py | # TDLS tests
# Copyright (c) 2013, Jouni Malinen <[email protected]>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import time
import logging
logger = logging.getLogger()
import hwsim_utils
from hostapd import HostapdGlobal
from hostapd import Hostapd
import hostapd
fro... | [
"[email protected]"
] | |
2b1638999ca31a03dac9b7ae400bf86815b43735 | 0e8dd5901b1f98934c44a85b133eb7ca6f44b4b9 | /osr2mp4/Parser/osrparser.py | 398325f8b59fc702a5af1c87a8170c270acdc087 | [] | no_license | Hazuki-san/osr2mp4-core | dbd2f4d44a3d0e90974214c97b434dcbb2eedd18 | 83dc5c47bc73dcb0b4d4b6a5ae1924771c13c623 | refs/heads/master | 2022-11-24T13:41:15.703261 | 2020-07-03T14:00:54 | 2020-07-03T14:00:54 | 279,099,127 | 1 | 0 | null | 2020-07-12T16:02:35 | 2020-07-12T16:02:34 | null | UTF-8 | Python | false | false | 2,041 | py | import osrparse
# index for replay_event
from ..CheckSystem.Judgement import DiffCalculator
# noinspection PyTypeChecker
from ..EEnum.EReplay import Replays
def setupReplay(osrfile, beatmap):
replay_info = osrparse.parse_replay_file(osrfile)
replay_data = [None] * len(replay_info.play_data)
start_time = beatm... | [
"[email protected]"
] | |
3ec57b2531ab6a937124feee52ac1b6da03020ff | b5ef3b9da130f604f111bd469128b73e78d6ba9d | /bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getProjectItemList.py | 43b31ee9f20c5d1e877c6974693c15afe6a456ef | [] | no_license | soediro/erp5 | 154bb2057c4cd12c14018c1ab2a09a78b2d2386a | 3d1a8811007a363b7a43df4b295b5e0965c2d125 | refs/heads/master | 2021-01-11T00:31:05.445267 | 2016-10-05T09:28:05 | 2016-10-07T02:59:00 | 70,526,968 | 1 | 0 | null | 2016-10-10T20:40:41 | 2016-10-10T20:40:40 | null | UTF-8 | Python | false | false | 1,341 | py | """Returns all validated projects.
This script is indented to be used on custom listfields for accounting lines, and on reports.
If this script returns an empty list, it means that reports by project are disabled.
"""
from Products.ERP5Type.Message import translateString
portal = context.getPortalObject()
# case 1: s... | [
"[email protected]"
] | |
2309594889f7eaf0567ecb3881e41ae564d04ca9 | 22fa0db584e41a9f06d829a5dd06b32bcdeb3646 | /registration/mobile_backend.py | dfb3c3b608616dec696f7b31dceed277b810a84c | [] | no_license | muthuraj-python/muthuinterview | 186ecd4efd173fa0fe7ce25e721ebadbeabc94f7 | d51b03f90fea9abd6aa763cf666dd39ead7a4753 | refs/heads/master | 2021-02-22T07:24:10.319876 | 2020-03-15T13:37:16 | 2020-03-15T13:37:16 | 245,371,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.backends import ModelBackend
class MobileBackend(ModelBackend):
def authenticate(self, request, **kwargs):
UserModel = get_user_model()
try:
user = UserModel.objects.get(mobile_number=kwargs.get('username'))
... | [
"[email protected]"
] | |
64cd0072445b206c8f730510ee8bb8e3f9fedfcd | 7765acf96f3c334a073f647ead1e6c862046fd41 | /tex/figures/photometry_nullspace.py | 6cb74974a958ef681cf8425500f031c951b3c321 | [
"MIT"
] | permissive | rodluger/fishy | da752a2e7aab159b10d24eb0433251b8485d6983 | 94bb393b01ade283e416589ea013d604166749e3 | refs/heads/master | 2020-05-06T15:15:44.725979 | 2019-07-08T13:19:04 | 2019-07-08T13:19:04 | 180,179,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*-
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import starry
ydeg = 10
theta = np.linspace(-180, 180, 1000)
s = np.zeros(((ydeg + 1) ** 2, len(theta)))
map = starry.Map(ydeg, lazy=False)
n = 0
for l in range(ydeg + 1):
for m in range(-l, l + 1):
map.reset()
... | [
"[email protected]"
] | |
3bd32d35fa515727b1d2fdf19b6da268ce008399 | 5a42ce780721294d113335712d45c62a88725109 | /project/graphdata/module/yiyiyuan/model/yi_favorite_contacts.py | 03a9050f0826ae4d25e32f4863e189e8bd71ffc5 | [] | no_license | P79N6A/project_code | d2a933d53deb0b4e0bcba97834de009e7bb78ad0 | 1b0e863ff3977471f5a94ef7d990796a9e9669c4 | refs/heads/master | 2020-04-16T02:06:57.317540 | 2019-01-11T07:02:05 | 2019-01-11T07:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | # -*- coding: utf-8 -*-
# sqlacodegen mysql://root:123!@#@127.0.0.1/xhh_test --outfile yyy.py --flask
from lib.application import db
from .base_model import BaseModel
from .yi_user import YiUser
class YiFavoriteContact(db.Model, BaseModel):
__bind_key__ = 'xhh_yiyiyuan'
__tablename__ = 'yi_favorite_contacts'
... | [
"[email protected]"
] | |
1603f794730d82775b9c08df1c1c6289ae8cf270 | f68cd225b050d11616ad9542dda60288f6eeccff | /testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_5GHzIsRadioAutoBlockAckEnabled.py | 342c1a28d36b0e908ebc40dcbfc9e62a2bb7a193 | [
"Apache-2.0"
] | permissive | cablelabs/tools-tdkb | 18fb98fadcd169fa9000db8865285fbf6ff8dc9d | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | refs/heads/master | 2020-03-28T03:06:50.595160 | 2018-09-04T11:11:00 | 2018-09-05T00:24:38 | 147,621,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,337 | py | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2017 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.