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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00a28eba49468a1ad60be7557e25bf47c81a625d | 5c61990fc1a79f389111a3e449c1fadf65fc1b8c | /wt_purchase_request_extend/wizard/__init__.py | 4a8b3ced37d82b713d2749dab73c646d07c99004 | [] | no_license | brahim94/portnet | 3befb64009fd014b74e01151cc429a613d3d2f11 | f1120ce4806ba2fd7e26132ca918d1ce8b9ad32c | refs/heads/master | 2023-04-14T07:17:40.956207 | 2021-04-27T16:37:48 | 2021-04-27T16:37:48 | 356,211,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | # -*- coding: utf-8 -*-
from . import prl_make_po
from . import purchase_req_line_wizard
from . import submission_date_increment_wizard
| [
"brahim-ayad@hotmail.com"
] | brahim-ayad@hotmail.com |
b4b31bce7b7ba1ab687942e373405d63b294461d | bebc317eebad1e0f136c2d959e5b9882e123d366 | /game/pacman/src/classes/block.py | ab473a21e93c56cea72287464b818f43b86e02f5 | [
"Apache-2.0"
] | permissive | GuillaumeFalourd/formulas-games | 62ac5b87e6868db29de022e52fd56993ec9c3c46 | 7530ef09cc85f30157e62b8761868c2a0eddb93d | refs/heads/main | 2023-07-14T04:33:11.666127 | 2021-08-29T23:21:16 | 2021-08-29T23:21:16 | 369,598,803 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | import pygame
from pygame.sprite import Sprite
white = (255,255,255)
# This class represents the ball
# It derives from the "Sprite" class in Pygame
class Block(pygame.sprite.Sprite):
# Constructor. Pass in the color of the block,
# and its x and y position
def __init__(self, color, width, height):
... | [
"guillaume.falourd@zup.com.br"
] | guillaume.falourd@zup.com.br |
7299a12c9876588ab2292fe8bc7c34821896a73b | 559f3dec0964d2e0f86c6c871371fe779cf3726c | /Matting/tools/train.py | a01145ff06e0d92a0ca9aec928c32cd45a671d4c | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSeg | 319ab26665ea492527a1949671650135123ffc39 | 2c8c35a8949fef74599f5ec557d340a14415f20d | refs/heads/release/2.8 | 2023-08-31T09:08:06.724717 | 2023-08-18T01:59:56 | 2023-08-18T01:59:56 | 204,380,779 | 8,531 | 1,866 | Apache-2.0 | 2023-09-12T02:30:42 | 2019-08-26T02:32:22 | Python | UTF-8 | Python | false | false | 6,939 | py | # Copyright (c) 2021 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 applic... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
18ba9632419e59de3d6def5b472c24c141bfb5de | 6e8d40ef950ac0ec633c6dc521da3a0c1181422e | /Utils/getScore.py | c680c87345beb8761221752adf356b1039105ece | [] | no_license | yinyinyin123/graduateProject | f5ac650e5b7e80332499ecc8142022146b4b2031 | 90e95339cb83aac60e1eb0ca2e1b89a64c07b5fe | refs/heads/master | 2022-12-22T00:03:35.334288 | 2020-09-25T03:16:20 | 2020-09-25T03:16:20 | 298,456,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | import json
import os
from preprocessData import CoQAExample
import pickle
import string
import re
from collections import Counter
def _normalize_answer(s):
def remove_articles(text):
return re.sub(r'\b(a|an|the)\b', ' ', text)
def white_space_fix(text):
return ' '.join(text.split())
d... | [
"1350526138@qq.com"
] | 1350526138@qq.com |
7a81492ff67582123a92c3e82a855b57f90a5a0f | d0f8ec284ad35ad32ed4082e5ae78be4c0918484 | /pycheribuild/projects/cross/sqlite.py | d7ef50a3f897933a2483c911a51740bd6f9a5322 | [
"BSD-2-Clause"
] | permissive | tupipa/cheribuild | a2a3311710772f21ef02411023a023e3104e0aa5 | 396b1ae9e7651bf6628141c3cab10fd968e299e0 | refs/heads/master | 2023-01-29T09:17:26.821790 | 2020-12-10T11:12:19 | 2020-12-10T11:16:25 | 271,748,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,066 | py | #
# Copyright (c) 2017 Alex Richardson
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
# ("CTSRD"), as part of the DARPA CRASH research programme.
#
# Redistribution and use in source and binary ... | [
"Alexander.Richardson@cl.cam.ac.uk"
] | Alexander.Richardson@cl.cam.ac.uk |
af4a8294601aceb5803ec63aed9cf9748d093296 | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/sqlalchemy/orm/mapper.py | 2a1b9e6190aa836c4c3bc97de9ed81df36e50ebc | [
"MIT"
] | permissive | jhkuang11/UniTrade | f220b0d84db06ff17626b3daa18d4cb8b72a5d3f | 5f68b853926e167936b58c8543b8f95ebd6f5211 | refs/heads/master | 2022-12-12T15:58:30.013516 | 2019-02-01T21:07:15 | 2019-02-01T21:07:15 | 166,479,655 | 0 | 0 | MIT | 2022-12-07T03:59:47 | 2019-01-18T22:19:45 | Python | UTF-8 | Python | false | false | 115,133 | py | # orm/mapper.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Logic to map Python classes to and from selectables.
Defines the :class:`~sqlalche... | [
"jhkuang11@gmail.com"
] | jhkuang11@gmail.com |
c0c13eb078a05b1d3b1506fe810918540545ff34 | d7d25574246fd8585396a02ebd2ca8450e49b082 | /leetcode-py/leetcode464.py | 178a9b816fc5f0648b8b6be3162e8816ded7a3b3 | [] | no_license | cicihou/LearningProject | b6b1de2300e574835f253935d0c0ae693b194020 | 3a5649357e0f21cbbc5e238351300cd706d533b3 | refs/heads/master | 2022-12-04T06:18:14.856766 | 2022-11-29T08:54:16 | 2022-11-29T08:54:16 | 141,606,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,910 | py | class Solution:
def canIWin(self, maxChoosableInteger: int, desiredTotal: int) -> bool:
'''
method 1
Brute Force,TLE
acc 表示当前累计的数字和
dfs(acc) 就表示当传入一个当前的和时,己方会不会赢
如果当前的 acc 已经 >= target,那么 P1 无法再加数,游戏已经在上一轮结束了,代表对方处于赢的状态
如果当前的 acc 尚未到达 tar... | [
"houxi_zuel@163.com"
] | houxi_zuel@163.com |
c698049350b37f26bf00398c6d4d048e0619ea95 | 088452dfea945536abc826960a9b3d3fa7db71ed | /powny/core/api/__init__.py | 6b4978bb1ce94b0230838855bda24c6fa03c6ea8 | [] | no_license | nikicat/powny | 7f81df69f7b8b4e8dec09b897f9149a0654572f4 | a46df062aead114a2e8e8de2fcb1656bda5b46bd | refs/heads/master | 2021-01-17T06:40:14.671282 | 2014-11-28T12:32:46 | 2014-11-28T12:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | import abc
from contextlog import get_logger
import flask
# =====
class ApiError(Exception):
def __init__(self, code, message, result=None):
super(ApiError, self).__init__()
self.code = code
self.message = message
self.result = result
class Resource(metaclass=abc.ABCMeta):
... | [
"mdevaev@gmail.com"
] | mdevaev@gmail.com |
7a28ff3a1c4c450d605237317858326188652bfc | c55c9580207a2e29c14a12a7f8521b9ae3d75e67 | /keras_module/hwh_layers.py | a3a6bf6d88e6b61da464a97bcdca7c85653ba841 | [
"Apache-2.0"
] | permissive | sinianyutian/pycharm-project | f98fc9988eda9c010d066703ff414393a76faff5 | 29e677418820a620e58dd22a85feb4ac3f28651a | refs/heads/master | 2020-03-14T06:58:27.431980 | 2017-04-17T07:07:25 | 2017-04-17T07:07:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,856 | py | from keras.engine import Layer, InputSpec
from keras import initializers, regularizers
from keras import backend as K
from keras.utils.generic_utils import get_custom_objects
import numpy as np
class BatchRenormalization(Layer):
"""Batch renormalization layer (Sergey Ioffe, 2017).
Normalize the activations o... | [
"614047311@qq.com"
] | 614047311@qq.com |
9b36e0d191113e2bcb2089ae2ce096f99cdcf95a | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/keras_applications/resnet_common.py | 7c191bd95968e61b799b00c5aef9d41dbcf8bce4 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:cf0afaf9134ba043aada8580326bcef12f0710297d8b75560fb75addaffc6a69
size 22244
| [
"github@cuba12345"
] | github@cuba12345 |
c63858f71a9bf372685f1ad49b81b4a1c02d7a3d | 904e75e2ceff81c18a432fe1b951b683e859cbed | /pluto/asgi.py | d06a48cdbf7f5dea806000e8a02e7dd912bc043f | [] | no_license | PUYUP/plutoborn | a42c65fa360de41a1236af00b5718948dc1b9940 | e6b47b7f183fcff60fa803329e11c2e87de560ef | refs/heads/master | 2022-12-05T17:06:10.049472 | 2020-08-19T09:12:45 | 2020-08-19T09:12:45 | 254,116,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
ASGI config for pluto project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"hellopuyup@gmail.com"
] | hellopuyup@gmail.com |
216f7d0603927d4757bd073833bac709df090128 | 6ed7bcf59ffacc72f9f815916719add7dd1255be | /util/__init__.py | 4af60ebc60a3faa4d4966914c878ca129c636588 | [] | no_license | nilesh93/results-tabulation-tallysheets | 406b2542b36e92ac3c451281e878e6c5fa2580a3 | f057e36a6609bfdeb725995b271cf5e31e3faa1d | refs/heads/master | 2020-07-03T10:03:13.371732 | 2019-08-12T06:52:07 | 2019-08-12T06:52:07 | 201,873,648 | 0 | 0 | null | 2019-08-12T06:52:08 | 2019-08-12T06:47:34 | Python | UTF-8 | Python | false | false | 477 | py | import connexion
class RequestBody:
def __init__(self, body):
self.body = body
def get(self, property_name):
if property_name in self.body:
return self.body[property_name]
else:
return None
class Auth:
def get_user_id(self):
return 2
def get_pag... | [
"l.dinukadesilva@gmail.com"
] | l.dinukadesilva@gmail.com |
2792cae5a110fc3a2c649245a61cd28c1ffba8a5 | 59453f279255ed7e65ba6b134ab428e5b8c3a565 | /chapter6/ans_58.py | 73839f6e645a4ab8e3256543cf9d8323e26e307a | [] | no_license | takapy0210/nlp_2020 | b42497f0db95f947e7ad61ec058769e824bbbc9c | 085747a8c22573a095658e202faccb7197a7041e | refs/heads/master | 2023-07-12T20:32:34.225335 | 2021-08-21T04:31:12 | 2021-08-21T04:31:12 | 258,741,277 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,435 | py | """
58. 正則化パラメータの変更
ロジスティック回帰モデルを学習するとき,正則化パラメータを調整することで,学習時の過学習(overfitting)の度合いを制御できる.
異なる正則化パラメータでロジスティック回帰モデルを学習し,学習データ,検証データ,および評価データ上の正解率を求めよ.実験の結果は,正則化パラメータを横軸,正解率を縦軸としたグラフにまとめよ.
"""
import numpy as np
import pandas as pd
import pickle
import texthero as hero
from sklearn.linear_model import LogisticRegression
... | [
"takanobu.030210@gmail.com"
] | takanobu.030210@gmail.com |
154a57f3423e14690430261ee3fb36023583d794 | c205a38f0317ac25f0e8d684df43dd66141f1c7c | /trans/to_docx.py | 2c89c62804a91faa18d2ae5722bfb6bdf334ccb9 | [] | no_license | mikegleen/hrmsrc | 0808c2f8b4aa9997faeb97a950ef10c80b1dd585 | 2dd75b3855b57b0d07b622590cf5afbcd410492a | refs/heads/master | 2021-11-21T15:39:33.919462 | 2021-09-11T11:48:18 | 2021-09-11T11:48:18 | 146,715,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | """
"""
import docx
from docx import Document
from docx.enum.style import WD_STYLE_TYPE
import os.path
import pandas as pd
import sys
import time
HRMDIR = os.path.join('/', 'Users', 'mlg', 'Documents', 'hrm')
TEMPLATEPATH = os.path.join(HRMDIR, 'doc', 'hr_template.docx')
RESULTSDIR = os.path.join(HRMDIR, 'results')
X... | [
"mike.gleen@gmail.com"
] | mike.gleen@gmail.com |
3b5879a3e1b311f3bb70131dc46dd2e40026d5d7 | eb518a18d8055400c85d1b2f714fe9d4d654b941 | /_done/tests/check_segworm.py | 2533ad9ba319262f711e02e44d323b2e2b1f58dc | [] | no_license | ver228/single-worm-analysis | c755709354025f629f7c774749394743c7b9a46b | 8d0a442fb93ad25aa30743f6c31f883639524a4d | refs/heads/master | 2021-09-14T11:31:17.761390 | 2018-05-12T23:00:54 | 2018-05-12T23:00:54 | 79,457,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 12 12:38:33 2016
@author: ajaver
"""
import h5py
import pandas as pd
import numpy as np
import matplotlib.pylab as plt
from scipy.interpolate import interp1d
from scipy.signal import savgol_filter
from scipy.interpolate import InterpolatedUnivariateSpline, Uni... | [
"ajaver@MRC-8791.local"
] | ajaver@MRC-8791.local |
2fd2efb1652b043a99e1486df9fdf89b90e8830f | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/cuemacro_finmarketpy/finmarketpy-master/setup.py | e2925c81846492ed65531318ebbc16d39e6c1e09 | [] | 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 | 716 | py | from setuptools import setup, find_packages
setup(name='finmarketpy',
version='0.11',
description='Trading Backtest library',
author='Saeed Amen',
author_email='saeed@cuemacro.com',
license='Apache 2.0',
keywords = ['trading', 'markets', 'currencies', 'pandas', 'data', 'Bloomberg', ... | [
"659338505@qq.com"
] | 659338505@qq.com |
644f08390a8f08c248465bac0b7772371ba10ff5 | 2f655ac0efd7cb35e5b113cbf5d2f2628a2fc5b4 | /users/users/auth/tests/test_backend.py | 339535baf64523de95bdf60c692b0d968b8e9c5a | [
"MIT"
] | permissive | madEng84/pycon | 2420b76d217e0d908af14a938af0573fd2fef6fe | 31d71b7a86398a7b0518e909ae939aaffd181091 | refs/heads/master | 2021-06-23T14:30:52.293925 | 2021-03-03T00:54:00 | 2021-03-03T00:54:00 | 214,874,068 | 0 | 0 | MIT | 2019-10-13T18:41:38 | 2019-10-13T18:41:37 | null | UTF-8 | Python | false | false | 3,846 | py | from datetime import datetime
from unittest.mock import MagicMock, patch
from starlette.authentication import AuthenticationError
from ward import raises, test
from users.auth.backend import JWTAuthBackend
from users.domain.entities import Credential, User
from users.domain.tests.fake_repository import FakeUsersRepos... | [
"marcoaciernoemail@gmail.com"
] | marcoaciernoemail@gmail.com |
17564e62239d25e80359b62832f3dfdeed5cb6e1 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Vinayak/Python/2 June/Stack/Implement Stack.py | 9d7f290505c2d23f220962ebda9e0e0c7b0c8bd6 | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 482 | py | from collections import deque
class Stack:
def __init__(self):
self.items=deque()
def is_empty(self):
return self.items == []
def push(self, data):
self.items.append(data)
def pop(self):
return self.items.pop()
s = Stack()
while True:
n=int(input("Enter what... | [
"ravva.vinayak98@gmail.com"
] | ravva.vinayak98@gmail.com |
05ed687abd106e1bf168975cd08a8c2493a11f52 | 1ff9b6d2402ed968b642d3c719d1311d4b46353a | /control_flow/continue_ex3.py | e2fb1963a02aa77ec4ddfa2131dddb08097392af | [] | no_license | Gyanesh-Mahto/Practice-Python | 9abcadcf9247bbe9d2082681271d47a00e6add49 | 4dcfb6b47314d8e61a5ec1e99d18c80da9a2dcb0 | refs/heads/master | 2023-02-13T03:40:04.833073 | 2021-01-09T18:19:26 | 2021-01-09T18:19:26 | 273,037,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | cart=[10,20,3000,50,600,70]
for item in cart:
if item>500:
print("Order value is {} for which insurance is required. So, skipping this item".format(item))
continue
print("Processing Order: ",item)
'''
O/P:
----
Processing Order: 10
Processing Order: 20
Order value is 3000 for which insurance is required... | [
"noreply@github.com"
] | Gyanesh-Mahto.noreply@github.com |
7adfc8f231189e9ae5567555d58d130f97f6fd6a | 140929bb7a81dd76688d5acc923f28aa0ff539d8 | /env/lib/python3.6/site-packages/pyglet/app/xlib.py | f3c16270896c3f239b3b10e620e7ebfb9e1a0889 | [
"Apache-2.0"
] | permissive | boodahDEV/Soni-IA | bd4436895c6c61c191e8968a964667af174121cd | c452c0b3df3a3ced4b5027c2abb4f3c22fd0f948 | refs/heads/master | 2020-05-05T01:27:04.810504 | 2019-05-27T06:48:08 | 2019-05-27T06:48:08 | 179,603,282 | 2 | 1 | Apache-2.0 | 2019-05-27T06:38:43 | 2019-04-05T01:39:46 | Python | UTF-8 | Python | false | false | 4,427 | py | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
"boodah21@protonmail.com"
] | boodah21@protonmail.com |
529749d8fd676cba40a6e53ae2b1b410b89287f2 | 822f88dd0d1f74825a8a35591a8d56e2773a79ab | /BinarySearch/binarysearch.py | f7cba885a6139b036e83b78b65e6db7899c443f3 | [] | no_license | eBLDR/Algorithms | 98bc308630374ed1d458d607772d3e426a5ad131 | 185f77c1a57f0614bc881959be7259dfe578f57f | refs/heads/master | 2020-03-24T23:54:38.930757 | 2019-06-13T17:33:51 | 2019-06-13T17:33:51 | 143,159,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | """
BINARY SEARCH ALGORITHM
Finds a value in a sorted data.
Halves the data, will take a maximum of log2 n + 1 rounded up
attempts, where n is the number of values in the data.
1. Let min=1 and max=n.
2. Compute guess as the average of max and min, rounded down so that it is an integer.
3. If the guess is equal to t... | [
"ed.bldr@gmail.com"
] | ed.bldr@gmail.com |
44570d57ee90e6bf102d95ef335d23c583a0e2cb | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/rename/renameOldStyleProperty.py | 57b9326c7e0786836718b7909d2ab046738e3de4 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 289 | py | class C(object):
def __init__(self):
self._foo = 'foo'
def get_foo(self):
return self._foo
def set_foo(self, value):
self._foo = value
def __str__(self):
return self.foo
foo = property(get_foo, set_foo)
c = C()
print(c.f<caret>oo)
| [
"andrey.vlasovskikh@jetbrains.com"
] | andrey.vlasovskikh@jetbrains.com |
9b0b82217f6a6b169640fb58e9a8f41273ca8ca9 | 3f60b999ea7bda83c9586f75f52463dc20337f24 | /sensitive_user_portrait/cron/flow2/scan_ip_reducer.py | adf51a33a620addb73a8f0ac30ca04a928148b55 | [] | no_license | jianjian0dandan/sensitive_user_portrait | 629e49ce71db92b50634bac9c828811cdb5381e9 | cacc30267ebc0e621b1d48d4f1206277a0f48123 | refs/heads/master | 2021-01-20T23:18:07.138057 | 2016-05-22T12:09:40 | 2016-05-22T12:09:40 | 42,869,287 | 0 | 0 | null | 2015-09-21T13:55:12 | 2015-09-21T13:55:11 | null | UTF-8 | Python | false | false | 1,801 | py | # -*- coding: UTF-8 -*-
# ip_2013-09-01
import sys
import json
import time
import redis
from mappings import mapping
reload(sys)
sys.path.append('../../')
from time_utils import ts2datetime, datetime2ts
from global_utils import redis_ip
from global_utils import redis_activity
from parameter import RUN_TYPE, DAY, ip_i... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
cc98dc7f9f12bc3cb9d29941ec371b853ecb91e9 | ba382f5fce9c646984d14111578073461e9cd2d5 | /superpixels.py | 4532430fcb142cf8a561fac84102b8c5918d0ec5 | [
"MIT"
] | permissive | stefanv/lloyd | 58b6a86e1d2dedb64cb3e956b4de8f2b972fbc36 | 0afc80a8ac54ae55ab35db4fb3d871495c727832 | refs/heads/main | 2023-04-29T08:34:08.679149 | 2021-04-22T07:26:52 | 2021-04-22T07:26:52 | 360,428,899 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | """
Example of how to use Lloyd iteration to generate more-or-less
equally spaced points inside of a given boundary.
"""
from skimage import io
import numpy as np
from lloyd import lloyd
from moore import boundary_trace
from shapely.geometry import Polygon, Point
import matplotlib.pyplot as plt
N = 50
mask = io.im... | [
"stefanv@berkeley.edu"
] | stefanv@berkeley.edu |
4dc0e8f659d062913c97f50c03adb04509eef624 | b07836ca8c12114682fa1ab1019fc698a9f7ddd6 | /graphapi/tyalents/schema.py | a42d0d27a4fd4cedc0e585f79b674c3a37219c64 | [] | no_license | Tushant/tyalent-api | dbe467b5765deffef9060994dc2357f992cec916 | 1217254b6db9754d86acdebe65287eaa8c5bbd9d | refs/heads/solve-merge-issue | 2021-11-10T06:09:52.866116 | 2019-06-12T15:50:06 | 2019-06-12T15:50:06 | 191,601,298 | 0 | 1 | null | 2021-11-01T06:41:50 | 2019-06-12T15:49:39 | Python | UTF-8 | Python | false | false | 2,225 | py | from graphene import relay, ObjectType, Field
from graphene_django.types import DjangoObjectType
from graphene_django.fields import DjangoConnectionField
from graphene_django.filter.fields import DjangoFilterConnectionField
from apps.tyalents import models
class TyalentNode(DjangoObjectType):
class Meta:
... | [
"programmertushant@gmail.com"
] | programmertushant@gmail.com |
1d9823f3bdb6c3c4e0b07ae53b1d9150c246f03c | 1fdc185a28941b2a4c2770f9437c9f4a159828d1 | /fetcher/migrations/0007_auto_20200313_1745.py | 6045a2db47a25678996362a490d8cebf0896b25c | [
"MIT"
] | permissive | RockefellerArchiveCenter/pisces | a9847116ef4b681e220b736b7da36347df7b0719 | a8c0fe4d1a3908e51fed8211c553c9cd5f1718c6 | refs/heads/base | 2023-08-17T03:16:48.637942 | 2023-08-07T13:37:50 | 2023-08-07T13:37:50 | 179,168,147 | 1 | 2 | MIT | 2023-09-08T20:59:33 | 2019-04-02T22:27:51 | Python | UTF-8 | Python | false | false | 655 | py | # Generated by Django 2.2.10 on 2020-03-13 21:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fetcher', '0006_auto_20200304_1804'),
]
operations = [
migrations.AlterField(
model_name='fetchrun',
name='object_t... | [
"helrond@hotmail.com"
] | helrond@hotmail.com |
a9d3698583989c70bdd01e630e8cd651ffb1bced | 53732df43e31885d9510894c3dfc313c11d49153 | /multiworld/envs/goals/multi_domain/custom.py | f3ee52425faca0b783fbf52a4802dd5f38bcd143 | [
"MIT"
] | permissive | Neo-X/R_multiworld | 154cc7fa17825ef11582d80cbc9470e9024095f4 | 839513a48ddf2f5ae2eadc43435ac6981ddea1f4 | refs/heads/master | 2022-12-16T18:49:42.346905 | 2020-09-11T22:12:57 | 2020-09-11T22:12:57 | 277,875,380 | 0 | 0 | MIT | 2020-07-07T17:01:42 | 2020-07-07T17:01:41 | null | UTF-8 | Python | false | false | 1,997 | py |
import pickle
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
import numpy as np
# tasks = [# Pushing
# {'task': 'push_1' , 'obj1_init_pos': np.array([0.1, 0.65 , 0.02]) , 'goal_pos': np.array([0.1, 0.75, 0.02]) , 'obj2_init_pos': np.array([-0.1, 0.65 , 0.02]) } ,
# {'task': 'push... | [
"russellm@berkeley.edu"
] | russellm@berkeley.edu |
68d89ce3812adb0dfbfe5bf28358dd753f98d29e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/308/84724/submittedfiles/testes.py | b363144ef2a96c521dd266ab66ac53ca74a27590 | [] | 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 | 423 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
def escrever(texto):
print(texto)
def receberreal(texto):
a = float(input(texto))
return a
def mostredez(a, b):
for i in range (a,a+11*b, b):
print(i)
def multiplicacao(c, d):
resultado = (c*d)
return resultado
def soma(c, d):
resultado = (... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
226023ed1364331db90880926421493db68aa0cb | bd81142f05e57b637cc0ddd63edbc3c6b5b4a0a2 | /knowledge-driven-dialogue/retrieval_paddle/tools/construct_candidate.py | 8697fcb86fdb3a2906adef7599b663ea23683255 | [
"MIT"
] | permissive | Chriszhangmw/ChatBots | 876d751f30d1d8ea759440fe1e7d4beb6ef94087 | 0735918e326bd6ff20b70388ae199ec11d9cbc11 | refs/heads/master | 2021-12-14T04:10:53.452552 | 2021-11-28T12:23:10 | 2021-11-28T12:23:10 | 210,681,028 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
######################################################################
# Copyright (c) 2019 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.
# ... | [
"zhangmw_play@163.com"
] | zhangmw_play@163.com |
b745c032635e5ba8d51ff15b1fd484b8de0338ae | 93997ad9312957f8a677a298e92f407a30a5a0cf | /src/Filtering/ImageIntensity/ComputeSigmoid/Code.py | db42f8375b3479bcf9be475796f1387d3259f33d | [
"Apache-2.0"
] | permissive | GRSEB9S/ITKExamples | ccdf4ab4a3e8549815444228710c46133b896a2a | c04b9e5c195be6c3bb495efabe9e0069ab2d1625 | refs/heads/master | 2021-05-27T15:25:05.204218 | 2015-01-08T18:33:22 | 2015-01-08T18:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | #!/usr/bin/env python
#==========================================================================
#
# Copyright Insight Software Consortium
#
# 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 Licen... | [
"michkapopoff@gmail.com"
] | michkapopoff@gmail.com |
49e487d9baf2529184f902996335fc4f7ec63a05 | eb26ab726444c6f5c77695273e9fa8281a42378e | /lshViz/config.py | 6327446f91be75744f3cb90d5e1bc652bb1b2ef2 | [] | no_license | zhakguder/lshViz | 894b9923653d678f7c5203bfcab0e31935a649d0 | 6c655a413c3d7092514fc266b929d8372d0e4ab7 | refs/heads/master | 2020-10-01T04:20:58.108230 | 2019-12-11T20:54:09 | 2019-12-11T20:54:09 | 224,287,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | from collections import namedtuple
from math import log, ceil
from hashing import get_hashes
from datetime import datetime
from serialize import PickleNames
from ipdb import set_trace
class LshConfig:
def __init__(
self,
per_label_dataset_size=None,
stages=1,
hashing_function="get_... | [
"zeynep.hakguder@huskers.unl.edu"
] | zeynep.hakguder@huskers.unl.edu |
b0308e6268b48e986af8726805d94b565f3338b6 | 40926c43aa8b0e9c579fb3afd5d0348f25f15ee9 | /backend/vncopaken_21369/wsgi.py | fef704a944c0b23776ca3c3ddc157239d91b0ced | [] | no_license | crowdbotics-apps/vncopaken-21369 | 9f8c1f03ad49359433eb5273b546defb1dab9a5c | cff273493ddf48193b6e95010fa0124116a6dc24 | refs/heads/master | 2022-12-26T16:37:50.489714 | 2020-10-11T18:54:16 | 2020-10-11T18:54:16 | 303,190,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for vncopaken_21369 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("DJAN... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d7eb2d79452cda8e72ddd1f732f62faeab7614cb | 556357a07c95176d8aa260795eb99b15970a1135 | /FCI_RS/fci_15_admin_su.py | 30092d566cdc14e17d5ccea2f40ae48cebee5573 | [] | no_license | sanjaymanegit/testRepo | db11ba5d02d47b78f6c9762c9a0628b22946e446 | 92a02cbe0add7d14b751b79e612e85a062e37498 | refs/heads/master | 2023-09-02T07:46:35.164047 | 2023-08-29T12:53:49 | 2023-08-29T12:53:49 | 42,922,622 | 1 | 1 | null | 2023-04-16T18:45:53 | 2015-09-22T08:53:13 | Python | UTF-8 | Python | false | false | 16,936 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'fci_15_admin_su.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from fci_20_wifi import ... | [
"sanjaymane1610@gmail.com"
] | sanjaymane1610@gmail.com |
74c47b15c94fbb3c30dfedd174eabc220bec0610 | c1284a01ff91cd5a354342360b8be090a1c5a9c8 | /douban/douban/items.py | 1a9ba8c48f031862857e2a59b0f8b1f8202a5d7f | [] | no_license | TSLNIHAOGIT/znfw_crawer | 1bc6adb1d5d742340fc98ba1d4ab4de11563ce98 | 02a1986f6492eff1fc0c37b6a59dac486c011fd5 | refs/heads/master | 2020-04-15T16:20:45.825288 | 2019-01-09T09:26:30 | 2019-01-09T09:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
# import scrapy
#
#
# class DoubanItem(scrapy.Item):
# # define the fields for your item here like:
# # name = scrapy.Field()
# pass
import scrapy
class... | [
"2509072638@qq.com"
] | 2509072638@qq.com |
e9a05a9d4647456abf0eaf115c3d905af2994d03 | ad59fb12042bfd3f5c43eca057d0f747f9e148cf | /MSNweather-NP/Plugins/Extensions/MSNweather/plugin.py | 4af920149cbf6951fc39181b6e006cd952fafe79 | [] | no_license | lexlong2007/eePlugins | d62b787100a7069ad5713a47c5688008063b45ec | 167b262fe36901a2d3a2fae6d0f85e2307b3eff7 | refs/heads/master | 2022-03-09T05:37:37.567937 | 2022-02-27T01:44:25 | 2022-02-27T01:44:25 | 253,012,126 | 0 | 0 | null | 2020-04-04T14:03:29 | 2020-04-04T14:03:29 | null | UTF-8 | Python | false | false | 8,855 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import #zmiana strategii ladowania modulow w py2 z relative na absolute jak w py3
from . import _ , readCFG, PyMajorVersion
from Plugins.Extensions.MSNweather.debug import printDEBUG, clearLogs
from Plugins.Extensions.MSNweather.version import Version
from Plugins... | [
"zdzislaw22@windowslive.com"
] | zdzislaw22@windowslive.com |
fd0cb68fc8cbcd224bc1dd787a098b17154019d9 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/tu-.py | 5071ece8ed4f527908b7dcace3c5b386993435db | [] | 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 |
bd0274030dd4cf0605e78ade5c8b71ef2d1adc4c | 0ee39556b48fe2b8427b97c2d14731cdbcedbd30 | /Combine/Combine_4-3.py | f65ff3b5f5524363e8982900dd0af7afdef3cbd4 | [] | no_license | zibb03/BlackBox | 9978df048abb4d45cba2553d3d0d8e426433cbee | 65388af4a24b10757eaedbc685bb5a100b3b5b97 | refs/heads/main | 2023-08-22T04:04:57.650444 | 2021-10-02T05:04:34 | 2021-10-02T05:04:34 | 383,138,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,011 | py | # PoseNet만 사용하는 코드
# 멘토님이 수정해주신 코드
import os
#os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="0"
# main.py
import cv2
import time
#import math
#import face_recognition
#from PIL import Image, ImageDraw
BODY_PARTS_BODY_25 = {0: "Nose", 1: "Neck... | [
"64014435+zibb03@users.noreply.github.com"
] | 64014435+zibb03@users.noreply.github.com |
ff406a52518b90521f80318df6fb640a0b9a6324 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/automl/v1beta1/automl-v1beta1-py/google/cloud/automl_v1beta1/services/auto_ml/transports/grpc.py | a262f74594698bb7db5e6e248597e205d0ecb1a7 | [
"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 | 41,066 | 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 |
2813979d80ac6826230703f48b198343678c0f1a | 748c475ea550cbb56160bf101a0837fae1b7f32d | /Curso Udemy/Modulo 04 - Pyhton OO/Aula11 - Sobreposicao/main.py | 8abbbb750ed547ba528cff51e88698f30173eecc | [] | no_license | RenanBertolotti/Python | a33943b5f74ace88cb1b1cde6b1e2b69a506fc2a | 8e298034dadd968113ebebf364ecbd4191716303 | refs/heads/master | 2023-04-11T14:31:12.171609 | 2021-04-20T20:59:16 | 2021-04-20T20:59:16 | 359,607,099 | 0 | 0 | null | 2021-04-19T22:41:34 | 2021-04-19T21:46:50 | Python | UTF-8 | Python | false | false | 222 | py | from pessoa import Pessoa
from cliente import Cliente
from clientevip import ClienteVip
c1 = Cliente("Renan", 23)
c1.comprar()
print()
c2 = ClienteVip("Ivan", 23, "Bunda-Mole")
c2.comprar()
c2.falar()
print(c2.apelido) | [
"renan.bertolotti@gmail.com"
] | renan.bertolotti@gmail.com |
61aef5324b6a1ef76f4b6b4389b82d3d1a9788fb | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/create_configuration_aggregator_response.py | 8667b3a424ed8e27ea4920385891ca8d7722d2cb | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 9,778 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateConfigurationAggregatorResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
75d0caff1a051a2b711348bc76831811e19bc8aa | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/pandas/tests/series/methods/test_describe.py | 173bf39390cdbd8b527ad98cddc368004eba32e6 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:80ab803c72520b611a786bf65ef46312182431177c5dac85c8d9d259dbfeb7d0
size 4640
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
2b19b1ca4830d0ff5e6f5822c1d01c957ca06466 | e5b4ed93d6666e195e96a265d3e7cfe4243a7300 | /pbase/day19/code/mynumber.py | 68cb60e3920f2827bad218f6ec5da8281e2ca95f | [] | no_license | Spider251/python | 934f5b8b923c2b61186a6df8445957290e5c4c74 | 8b1931f862e1d5c29fed9af624bcac94c1d25755 | refs/heads/master | 2020-04-05T11:58:04.558098 | 2018-11-09T12:06:06 | 2018-11-09T12:06:06 | 156,852,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # mynumber.py
class MyNumber:
'''此类用于定义一个自定义的数字类型'''
def __init__(self,value):
self.data = value # data
def __str__(self):
'''重写object类中的__str__(obj)'''
print("MyNumber.__str__被调用")
return "数字%d" % self.data
n1 = MyNumber(100)
s1 = str(n1) # s1 = '数字100'
s2 = repr(n1)
p... | [
"1419418693@qq.com"
] | 1419418693@qq.com |
0913e4ef61a8680f15e184dcab35f9927cf6fd6e | 3527ff6346f98a5b7c51ce3c58428227f4bc8617 | /leetcode/python/134.py | 8ac9c2ebcd6796bfbdd807656cb0156141e938ca | [] | no_license | ShawnDong98/Algorithm-Book | 48e2c1158d6e54d4652b0791749ba05a4b85f96d | f350b3d6e59fd5771e11ec0b466f9ba5eeb8e927 | refs/heads/master | 2022-07-17T04:09:39.559310 | 2022-07-13T15:46:37 | 2022-07-13T15:46:37 | 242,317,482 | 0 | 0 | null | 2020-10-11T14:50:48 | 2020-02-22T09:53:41 | C++ | UTF-8 | Python | false | false | 859 | py | from typing import List
class Solution:
"""
如果总油量减去总消耗大于等于零那么一定可以跑完一圈,说明 各个站点的加油站 剩油量rest[i]相加一定是大于等于零的。
每个加油站的剩余量rest[i]为gas[i] - cost[i]。
i从0开始累加rest[i],和记为curSum,一旦curSum小于零,说明[0, i]区间都不能作为起始位置,起始位置从i+1算起,再从0计算curSum。
"""
def canCompleteCircuit(self, gas: List[int], cost: List... | [
"ShawnDong98@gmail.com"
] | ShawnDong98@gmail.com |
f60695bce83e3df59a310e8b1f361b0c2f695897 | aaad70e69d37f92c160c07e4ca03de80becf2c51 | /filesystem/usr/lib/python3.6/email/mime/audio.py | d29e9504d7e2d864e77ce2e7c7ec09303502df5e | [] | no_license | OSWatcher/ubuntu-server | 9b4dcad9ced1bff52ec9cdb4f96d4bdba0ad3bb9 | 17cb333124c8d48cf47bb9cec1b4e1305626b17a | refs/heads/master | 2023-02-10T18:39:43.682708 | 2020-12-26T01:02:54 | 2020-12-26T01:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | {
"MIME": "text/x-python",
"inode_type": "REG",
"magic_type": "Python script, ASCII text executable",
"mode": "-rw-r--r--",
"sha1": "f2a05fb0bc7b05ed86e3f9ff7d10432b943cea6c"
} | [
"mathieu.tarral@protonmail.com"
] | mathieu.tarral@protonmail.com |
f9f3ce7e44f5f3abe7ae862614412a95f222070d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2251/60759/247156.py | fa97755a391b88fc505a886529415b788847d638 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | sum = eval(input())
lst = []
for i in range(sum):
lst.append(eval(input()))
max = 0.0;
for i in range(sum - 2):
for j in range(i + 1, sum - 1):
for k in range(j + 1, sum):
s = 0.5 * (lst[i][0] * (lst[j][1] - lst[k][1]) + lst[j][0] * (lst[k][1] - lst[i][1]) + lst[k][0] * (lst[i][1] - lst[j][1... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1090ed31235e885fc611c9d74605e4ded7d9c7fe | 315c3cfe98b3adcd7bcb03a269ce00e52320e8dd | /PRA/migrations/0001_initial.py | 443729868d5bff7c78ff9562e92375c997cf47d5 | [] | no_license | anjayluh/Pneuma-Registration | b85de057526e36ac72d8f0128995c05eb2b396ee | 01efdecfbf36263abe6d1813e6aaf657c5fef8aa | refs/heads/master | 2021-04-18T22:45:28.902644 | 2018-03-26T07:46:34 | 2018-03-26T07:46:34 | 126,791,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | # Generated by Django 2.0.1 on 2018-03-19 10:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.A... | [
"jmbawomye@gmail.com"
] | jmbawomye@gmail.com |
beaa29a9abad1c7ffdced2d81e2225c1eb808b49 | a4a3a8c796c224cb6d4aca4dd08a4bf771b531c4 | /saltstack/views/server_views.py | 7ab88f66d52fe8fde8cfe22c274a7c5d1a434fe6 | [] | no_license | ITzhe/zherr | a8475c2ac8cbbfe2d4c606a77140950fb924da1e | 27f875dd1b0e04e773aaafa130b2fca44ad3e7a5 | refs/heads/master | 2021-10-12T02:53:23.799177 | 2018-10-10T14:20:55 | 2018-10-10T14:20:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,692 | py | # /usr/bin/python
# -*- coding: utf-8 -*-
from django.http import JsonResponse
from django.db import transaction
from django.shortcuts import render, HttpResponse,redirect
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
import salt.client
from saltstack import models
def index... | [
"you@example.com"
] | you@example.com |
d6d9cdb1eb4a774b9f0ec0ee06bce59a4e0e4da0 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/retail/v2/retail-v2-py/docs/conf.py | 649b212337890b5e4e96ec690e0fa1a3c5718ad3 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,458 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
1bbd0df8c3a74578620d93a403b42c284e57ede0 | 88ae8695987ada722184307301e221e1ba3cc2fa | /components/sync/android/DEPS | a51ceb609b9f9f7c679118618c4f0359894fce6a | [
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 96 | include_rules = [
"+components/sync/base",
"+components/sync/test", # For sync test tools
]
| [
"jengelh@inai.de"
] | jengelh@inai.de | |
8df13ac12e4c3f0425b2640a6e58d9396fe76faf | 81734eadc347d67a1ef53e53c800f107a3f6c54a | /tests/test_thetvdb.py | 34a9e4c3604aba7b1e8073e03b87803cafc9b73d | [
"MIT"
] | permissive | StunMan/Flexget | e9453fc25dc0a1cfef4ceff612383320143cf783 | bc8d11921444a49e68dddca439d63e50aafb4261 | refs/heads/master | 2020-12-25T17:14:29.078067 | 2013-01-31T00:40:10 | 2013-01-31T00:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,698 | py | from __future__ import unicode_literals, division, absolute_import
from nose.plugins.attrib import attr
from flexget.manager import Session
from flexget.plugins.api_tvdb import lookup_episode
from tests import FlexGetBase
class TestThetvdbLookup(FlexGetBase):
__yaml__ = """
presets:
global:
... | [
"chase.sterling@gmail.com"
] | chase.sterling@gmail.com |
e446edac0f132c67decf780b542341bfa49ab6ed | d15e80e41af30effc42c923631d7ed55d4a852ff | /forms.py | 5ce5062b296122c96a4af1e52c1460fc6efb7361 | [] | no_license | Larrygf02/flask | 973b05a3338f5a299c27159d0308d0f56584363d | 53fa6335b96fe7a189c750c738b1d457a4d7acc8 | refs/heads/master | 2020-04-17T19:45:36.406362 | 2019-08-26T01:29:57 | 2019-08-26T01:29:57 | 166,877,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | from wtforms import Form
from wtforms import StringField, TextField
from wtforms.fields.html5 import EmailField
from wtforms import HiddenField
from wtforms import validators
def length_honeypot(form, field):
if len(field.data) > 0:
raise validators.ValidationError('El campo debe estar vacio')
class Comm... | [
"raulgf_02@hotmail.com"
] | raulgf_02@hotmail.com |
14f9d93bdb7475830a8d7586c30a3ac347ce4876 | eb59f8212f40bd7c316e1ef3be03bf7da3dde65f | /input/scr_ucaea.py | 3ca9d2d630bd436430ad762df30ffc5bb8a85df6 | [] | no_license | shtkn/frameDataParser | 764cc3197051966717990f7ca3eb2f02639cf438 | 690d44d4bf188a14c4e5ebebd95bdc75b827f5e5 | refs/heads/master | 2021-07-05T00:52:53.316670 | 2020-10-03T18:16:52 | 2020-10-03T18:16:52 | 187,556,058 | 0 | 0 | null | 2019-11-25T05:36:06 | 2019-05-20T02:40:24 | Python | UTF-8 | Python | false | false | 88,231 | py | @State
def __5A_Eff():
def upon_IMMEDIATE():
Unknown1096(1200)
sprite('Action_074_00', 4)
sprite('Action_074_01', 2)
sprite('Action_074_02', 2)
@State
def __5AAA_Eff():
def upon_IMMEDIATE():
Unknown4009(3)
teleportRelativeX(100000)
Unknown23089('0000000000000000000... | [
"shtkn001@gmail.com"
] | shtkn001@gmail.com |
183683625b76751d79470c132fe5e41e991cd794 | cb0e7d6493b23e870aa625eb362384a10f5ee657 | /solutions/python3/0581.py | 805aa1d45b67aad11294ad8d464a68f06a10b403 | [] | no_license | sweetpand/LeetCode-1 | 0acfa603af254a3350d457803449a91322f2d1a7 | 65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94 | refs/heads/master | 2022-11-14T07:01:42.502172 | 2020-07-12T12:25:56 | 2020-07-12T12:25:56 | 279,088,171 | 1 | 0 | null | 2020-07-12T15:03:20 | 2020-07-12T15:03:19 | null | UTF-8 | Python | false | false | 754 | py | class Solution:
def findUnsortedSubarray(self, nums: List[int]) -> int:
mini = float('inf')
maxi = float('-inf')
flag = False
for i in range(1, len(nums)):
if nums[i] < nums[i - 1]:
flag = True
if flag:
mini = min(mini, nums[i]... | [
"walkccray@gmail.com"
] | walkccray@gmail.com |
b462ffca2402fdd16f52a0786797371baa0275b5 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/scaleform/daapi/view/dialogs/demountdevicedialog.py | 5011b1cad120d15175bb62156921ab5fd6f94d56 | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,419 | py | # 2016.05.01 15:21:22 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/dialogs/DemountDeviceDialog.py
from gui.Scaleform.daapi.view.dialogs import DIALOG_BUTTON_ID
from gui.Scaleform.daapi.view.dialogs.IconPriceDialog import IconPriceDialog
class DemountDeviceDialog(IconPriceDia... | [
"info@webium.sk"
] | info@webium.sk |
612dd1561c1430bd3c9108fb5faebc9ec02bc801 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit1202.py | e5eb97bcd24c85ca48e7e6ec09a03a7028f566eb | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,234 | py | # qubit number=5
# total number=51
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as np
import networkx as ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
1c5833db8203eddb3a7a24ee3f81dbfc05054952 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/wikipedia/testcase/interestallcases/testcase3_016_3.py | d3ad730975ea87fe7b7fe64b2a72476cb70ae887 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,975 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
86b5fc20a08de4197e57f44c0939d97e6701390a | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /tutorials/embedding/word2vec_test.py | e254ff6f8a3ae2c5c4f6e53f181aeb9c7a802f79 | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 2,282 | py | # Copyright 2015 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... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
f82d74b19cd9bffd226dbfb004531ab97dabb7c4 | eb90252fc88342309fc1917467aaa7b3ba9da218 | /datafreeze/__init__.py | 6ecb82f72ff30b51679ff33765a1a7c227a6ea21 | [
"MIT"
] | permissive | DataGreed/datafreeze | 100bbdccd494134b74fe484c2e8b28a83250d184 | 8d75e0cfb2c6f6f59112c0c86abd264d7078aaa8 | refs/heads/master | 2023-01-19T05:11:59.661284 | 2020-11-19T15:26:21 | 2020-11-19T15:26:21 | 314,287,724 | 0 | 0 | MIT | 2020-11-19T15:26:22 | 2020-11-19T15:22:44 | null | UTF-8 | Python | false | false | 54 | py | from datafreeze.app import freeze
__all__ = [freeze]
| [
"friedrich@pudo.org"
] | friedrich@pudo.org |
681a7722bc88af5246294f8c2f23a7949230ee6f | 944837a77e39c0871179b00d84307d8f5eda1c57 | /feedme/urls.py | 0eb2d89a8aef874b44ca72e0576ce5bd2aa4d21f | [] | no_license | taylanpince/hackto | 4b425288c8d8192d2f17c0c43fe1f2d3c0e23bfa | 9ea0e6fac5fabd4dbc5bac1ebd3d9bb3a676d051 | refs/heads/master | 2016-08-06T21:21:58.504596 | 2010-05-18T16:36:50 | 2010-05-18T16:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('recommender.views',
url(r'^$', 'landing', name="recommender_landing"),
url(r'^recommend/$', 'recommend_with_url', name="recommender_url"),
url(r'^recommend/google/$', 'recommend_with_google', name="recommender_google"),
)
| [
"taylanpince@gmail.com"
] | taylanpince@gmail.com |
d5b1dc97d6bb7163445111ce1574955ff70c2a31 | 0a7d49300a547eecc823b78a891057f1017db1b2 | /socket_test/FTP_PRACTICE/FTP_server/core/main.py | 70940aa61d07559a3a1cc862f79561180489e64f | [] | no_license | PeterZhangxing/codewars | f315b2ce610207e84a2f0927bc47b4b1dd89bee4 | 8e4dfaaeae782a37f6baca4c024b1c2a1dc83cba | refs/heads/master | 2020-09-22T12:09:59.419919 | 2020-03-02T12:52:55 | 2020-03-02T12:52:55 | 224,330,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | #!/usr/bin/python3.5
import optparse,socketserver
from conf import settings
from core import server
from core import mylogger
my_log = mylogger.MyLogger()
class ArgvHandler(object):
def __init__(self):
self.op = optparse.OptionParser()
options,args = self.op.parse_args()
self.verify_args... | [
"964725349@qq.com"
] | 964725349@qq.com |
36e995b036ddb350d97293355e5adc7d84ef4adf | c59d7bdba7baba2069d05b5a835085892032fb96 | /app/views.py | 7c4c60db0efffa519465a1d09ae0e413789e29c4 | [] | no_license | fagnerpsantos/django_login | fedf10d07bf56c9105e3dd0e05711a3eb49fcfb6 | 786e25ff7589eaf50d0287c85cb93b30e4f24cf9 | refs/heads/master | 2020-06-06T12:35:27.942533 | 2019-06-19T14:12:37 | 2019-06-19T14:12:37 | 192,741,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | from django.shortcuts import render, redirect
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth import authenticate, login, logout
# Create your views here.
def cadastrar_usuario(request):
if request.method == "POST":
form_usuario = UserCreationForm(request... | [
"fagnerpinheirosantos@gmail.com"
] | fagnerpinheirosantos@gmail.com |
31d2bf67f162ffdcce6ca6ef2ea6b29f6b52c16e | 747dfcc50b3bd2ab522d49a2cb70f5f397db0bb2 | /tests/test_table.py | 2be3c071743a0d2eb3deb71f03110144a00fe981 | [
"MIT"
] | permissive | MalkeshDalia/rich | f79f4e97f27ad58ff21468fb4c25a80b5be27c16 | e0a1fd3052a54144f54a20eb97bfc3f397658675 | refs/heads/master | 2023-04-06T05:04:20.319280 | 2020-07-09T16:02:14 | 2020-07-09T16:02:14 | 278,583,178 | 0 | 0 | MIT | 2023-04-04T00:08:16 | 2020-07-10T08:40:05 | null | UTF-8 | Python | false | false | 16,326 | py | # encoding=utf-8
import io
import pytest
from rich import errors
from rich.console import Console
from rich.measure import Measurement
from rich.table import Table
from rich.text import Text
def render_tables():
console = Console(
width=60,
force_terminal=True,
file=io.StringIO(),
... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
1db2fa9f88f3c0ae123d2bc063a1aefa81606b56 | b1018e272ed284ab70ffe6055b90726e879004b3 | /MIDI Remote Scripts/MackieControl/TimeDisplay.py | f19e92fb8028560e53995eb76c2cd073469b25cc | [] | no_license | aumhaa/livepy_diff | 8e593ffb30b1e7909225352f3a0084d4de2e51e6 | 266a7380c4d5a162c051c23f534f74cb7eace538 | refs/heads/master | 2020-04-12T03:17:56.545373 | 2017-04-24T02:02:07 | 2017-04-24T02:02:07 | 13,946,086 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py |
from MackieControlComponent import *
class TimeDisplay(MackieControlComponent):
"""Represents the Mackie Controls Time-Display, plus the two LED's that show the"""
def __init__(self, main_script):
MackieControlComponent.__init__(self, main_script)
self.__main_script = main_script
self... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
b27ab395a1c6cbc6d5e6251c5a2acda92a5824b6 | 5d34003423b4bcf641cb31b3d58c062d2011c7b7 | /Abnormal/test-1.py | 8a5ac23331c0f892c7206b6f6b2b9d4a82574ea7 | [] | no_license | feiwl/Coding | a9f84cb867f7a84f0924b848a412dc1bedbb7d84 | 85973fe3d839b65f4f0b73c35ca0d0134588a76d | refs/heads/main | 2023-02-17T21:54:04.441162 | 2021-01-07T04:25:19 | 2021-01-07T04:25:19 | 327,518,641 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py |
# print('~~~~~~~~~~~~~~~~', __name__)
#
# print('this is test1 module')
#
# class A:
# def show(self):
# print(type(self).__name__)
# print("============", self.__module__)
#
# print(__file__)
#
# if __name__ == "__main__":
# a = A()
# a.show()
# else:
# print('in module {} '.format(__n... | [
"feiwl8378@163.com"
] | feiwl8378@163.com |
e1e2dc9287f1c55b22810b8051ba5ef3b528da82 | 49de6de6d99b6b935abe4a0430df26fee049c709 | /tests/test_max.py | 6a44e8f7e494949e98001e373182ed128701cd2e | [
"MIT"
] | permissive | alliefitter/iterable_collections | f620da90d87f52ec20aeb799d08637e6bae7b6c3 | 4e8fb4b05517406cbffe9c3276a1c0c956ba263c | refs/heads/master | 2021-11-24T06:23:51.243335 | 2018-11-07T22:14:39 | 2018-11-07T22:14:39 | 135,495,335 | 4 | 2 | MIT | 2021-11-11T21:49:53 | 2018-05-30T20:40:22 | Python | UTF-8 | Python | false | false | 1,013 | py | import unittest
from iterable_collections import collect
class TestMax(unittest.TestCase):
def test_list(self):
c = collect(list(range(10)))
self.assertEqual(c.max(), max(list(range(10))))
def test_set(self):
c = collect(set(range(10)))
self.assertEqual(c.max(), max(set(rang... | [
"afitter@cellcontrol.com"
] | afitter@cellcontrol.com |
58c33e0200a75ea962ab4622b52dff085311ed93 | e8ca006476bec6e8638024dc0f9c3e1e6d75f6f3 | /shape_opt/write_current_dir.py | c78ebed81673ef76e0f32f6b28a2a56dd9c738fd | [
"MIT"
] | permissive | cjekel/shape_optimization_rubber_gasket_Abaqus | 94ceacb6285b2b616e8ce70185a27e0ab278cbec | 0a58c60146613bf74156b7b403c728f9d564a30d | refs/heads/master | 2023-03-21T04:57:55.447220 | 2018-04-25T16:43:21 | 2018-04-25T16:43:21 | 126,387,624 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | import os
cwd = os.getcwd()
# open the Abaqus replay files
with open('write_inp_template.py','r') as f, open('write_res.py','r') as d:
write_inp_template = f.readlines()
write_res = d.readlines()
if os.name == 'nt':
# if windows
write_inp_template[12] = "mydir = r'" + cwd + "'\n"
wr... | [
"cjekel@gmail.com"
] | cjekel@gmail.com |
953c0469b57f7f5f51e438b3f2d8ab19cd0fe71f | 1e15758bb7f146117775d5598e3a05d6a17a177b | /flask/flaskEnv6/bin/flask | 54975eeedd9894adceb72f86b58dee1927d9c337 | [] | no_license | py1-10-2017/MinhN-py1-10-2017 | f80d9eb3a60b8a4dfed8c0254415be81eeabb233 | 156c4f32f4aea9bd9d94d27228a225be6c8bbf7d | refs/heads/master | 2021-07-17T05:16:17.216554 | 2017-10-24T05:27:09 | 2017-10-24T05:27:09 | 105,573,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/Users/homefolder/Desktop/py1-10-2017/flask/flaskEnv6/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nguyenhminhp@gmail.com"
] | nguyenhminhp@gmail.com | |
20e57d622c60b6a6ce0c1b9570a69f88a39c68bb | f02c7165ccbbfcec635ca9a35388901ee2bcb782 | /models/product_template.py | 78e551f030ea6e32aeeab3cc9b23657b15811987 | [
"BSD-2-Clause"
] | permissive | aroodooteam/insurance_management | ca36ac7d83b0d01d8fe6ddd9b5fd3a6f3a37bea6 | 066465fe906bfd06af7988a4bfbdd23f7f81d109 | refs/heads/master | 2021-09-14T23:29:29.624529 | 2018-03-09T16:32:49 | 2018-03-09T16:32:49 | 103,093,410 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # -*- coding: utf-8 -*-
from openerp import api, fields, models
import logging
logger = logging.getLogger(__name__)
class ProductTemplate(models.Model):
_inherit = 'product.template'
commissionable = fields.Boolean(
string='Commissionable',
help='Check if this product is commissionable')
... | [
"aroodoo@asus.aro"
] | aroodoo@asus.aro |
0bd61344afceee14ce470469f504c21af725d199 | 7f2d9e56a6712edd421f15e9e550e38a8957f513 | /dbViewer_app.py | 61e18e761f993dfe8a4562b6d58940049ed78df2 | [] | no_license | ChanonVilaiyuk/matteTools | d7b55746736575cfd27d580d6ed33abbf5771143 | afb1248a293e8f4a457a7d59ff2f5a974de0c5eb | refs/heads/master | 2021-06-14T14:55:17.066422 | 2017-03-14T10:58:01 | 2017-03-14T10:58:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,056 | py | #Import python modules
import os, sys
import sqlite3
#Import GUI
from PySide import QtCore
from PySide import QtGui
from PySide import QtUiTools
from shiboken import wrapInstance
# Import Maya module
import maya.OpenMayaUI as mui
import maya.cmds as mc
import maya.mel as mm
# import pipeline modules
from tool.utils... | [
"ta.animator@gmail.com"
] | ta.animator@gmail.com |
89aca55b71e87897dcd6a5ce560e7993877f5aa6 | dda45bb697279ed01237019fa7a9a1f4d6653fbf | /home/migrations/0002_load_initial_data.py | dc11e478cf5a69ce96d7a27b7234298ed4d07694 | [] | no_license | crowdbotics-apps/yaca-23007 | 501433ff87b8257a212e1d5b0c81bf508c80cf99 | 1b5df12df7e26d0f6084bd65e463793352183de4 | refs/heads/master | 2023-01-19T05:25:32.929444 | 2020-11-27T02:39:55 | 2020-11-27T02:39:55 | 316,382,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "YACA"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
home... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
42623b86f2aee2033af025148d2fd0ee537a153c | c8e85e31178e5f6c95bc9c5867104e4bafe00d87 | /tools/associate.py | ab1a4eb6717d43e90b97e7debe4321157427ee4d | [
"Apache-2.0"
] | permissive | IshitaTakeshi/DVO | c49c3d8d67dca520cebe5aad8cd9a08223b5fa0d | 2c5a3db1db7e651bfaa7808bbf79a6c1c6a42fc5 | refs/heads/master | 2020-04-06T17:22:54.045473 | 2020-02-03T09:38:10 | 2020-02-03T09:38:10 | 157,656,817 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,279 | py | #!/usr/bin/python
# Software License Agreement (BSD License)
#
# Copyright (c) 2013, Juergen Sturm, TUM
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must... | [
"ishitah.takeshi@gmail.com"
] | ishitah.takeshi@gmail.com |
240be91b51250018d2b54892415192391cd0429c | bcc8bc4e062d27b9768e4512c186af989500f61c | /keras_cv/models/task.py | c7a86b996937df55520bc4f7d3fb2b2d0fbb5fb8 | [
"Apache-2.0"
] | permissive | SamuelMarks/keras-cv | 7f611ba1de56dc0772174e631b872ba42c683235 | a90e4685b010d63905cf852bd029b24f7d61dd45 | refs/heads/master | 2023-09-04T17:36:48.125965 | 2023-07-27T00:05:35 | 2023-07-27T00:05:35 | 318,777,906 | 0 | 0 | null | 2020-12-05T12:04:07 | 2020-12-05T12:04:06 | null | UTF-8 | Python | false | false | 7,536 | py | # Copyright 2023 The KerasCV 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | SamuelMarks.noreply@github.com |
f3657bddf62dec372b43e2b609ad0c89ac7be57e | 7b96e1a916aeb7139121a7675fb6b08092754def | /steps/step12.py | dcff09302a2e54dc4b76f1aff6a60079019b3403 | [] | no_license | show2214/deep-learning-from-scratch-3 | 57562a33aedd01da32d38b6ad37713041cf9a03c | 90ac8fcbcb65c1f81226ed8722efa1c884a69bd5 | refs/heads/master | 2023-08-24T12:39:40.534851 | 2021-09-21T07:45:34 | 2021-09-21T07:46:20 | 406,617,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,177 | py | import numpy as np
class Variable:
def __init__(self, data):
if data is not None:
if not isinstance(data, np.ndarray):
raise TypeError('{} is not supported'.format(type(data)))
self.data = data
self.grad = None
self.creator = None
def set_creator(se... | [
"show2214@icloud.com"
] | show2214@icloud.com |
fcbefd3af27f9dd1bc3baf9d6c8a2e338a00dc24 | 55a4d7ed3ad3bdf89e995eef2705719ecd989f25 | /main/law/spark_short/spark_short_limai_and_wenshu_origin/court_reason_province-2018-04-27.py | a759f67dc2c932e41c6360613598099668da7ab7 | [] | no_license | ichoukou/Bigdata | 31c1169ca742de5ab8c5671d88198338b79ab901 | 537d90ad24eff4742689eeaeabe48c6ffd9fae16 | refs/heads/master | 2020-04-17T04:58:15.532811 | 2018-12-11T08:56:42 | 2018-12-11T08:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,362 | py | # -*- coding: utf-8 -*-
from pyspark import SparkContext,SparkConf
from pyspark.sql import SQLContext
from pyspark.sql.types import *
import os
import re
if __name__ == "__main__":
conf = SparkConf()
sc = SparkContext(conf=conf)
sqlContext = SQLContext(sc)
# PYSPARK_PYTHON = "C:\\Python27\\python.e... | [
"985819225@qq.com"
] | 985819225@qq.com |
d4bdf4c3116c45c74e5fe6a0882c546b9a6bf630 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Mastering-Machine-Learning-scikit-learn/Mastering-Probabilistic-Graphical-Python/code/B04016_03_code/B04016_03_07.py | 1d1c7adb011922920d5a7fffac0917d3b46b1849 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,869 | py | from pgmpy.models import BayesianModel
from pgmpy.factors import TabularCPD, Factor
from pgmpy.inference import BeliefPropagation
# Create a bayesian model as we did in the previous chapters
model = BayesianModel([('rain', 'traffic_jam'),
('accident', 'traffic_jam'),
('traf... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
4f82d4306d538748b283b6adcc11fac3385ad380 | 9189089752d970ced51a1c50503fce399b93f589 | /v0.02/test/test_package/find-steps-between.py | 2960dd066762234ec531dedddf8717badbeb6026 | [] | no_license | SwannedLakee/Feynman-knowledge-engine | 464b0d187213b28d9e3995c5e27b41e216359046 | 9a09ff8041dda20dadc3368700b718266757cf24 | refs/heads/master | 2023-03-24T05:25:30.320650 | 2020-03-13T12:31:59 | 2020-03-13T12:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,036 | py | #!c:/Python34/python.exe
#######################################################################
# find steps between two nodes
#
# Author: Garry Morrison
# email: garry -at- semantic-db.org
# Date: 24/3/2018
# Update: 24/3/2018
# Copyright: GPLv3
#
# Usage: ./find-steps-between.py sw-examples/new-imdb.sw
#
##########... | [
"garry@semantic-db.org"
] | garry@semantic-db.org |
a72edbe0a5ad53df8678c7a5947602ac05442065 | 95f9e297ce5c7a123eff14bf70ea3106a020063b | /config/__init__.py | 83cd1d04504f735dfa8252eb1dea82da2c7bcb6a | [] | no_license | TimothyJao/image-slackbot | 8a53454887b7e02033d2b453c9cc53f95f2599bc | 906149d25a6d8f634fa2682510e29a73d31e94b8 | refs/heads/master | 2022-12-13T10:36:18.768180 | 2019-08-27T23:49:27 | 2019-08-27T23:49:27 | 204,584,713 | 0 | 0 | null | 2022-12-08T06:04:34 | 2019-08-27T00:22:31 | Python | UTF-8 | Python | false | false | 213 | py | from os import path, environ
from dotenv import load_dotenv
env_path = path.join(path.dirname(__file__), path.pardir, '.env')
load_dotenv(env_path, override = True)
def get_env(key):
return environ.get(key) | [
"timothy.i.jao@gmail.com"
] | timothy.i.jao@gmail.com |
c04fa98e3164c5006db266675f578bbe1f89d52d | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/statsmodels-0.6.1-np110py27_0/lib/python2.7/site-packages/statsmodels/distributions/__init__.py | 5306ddc9f89a38bb64a2d0cc5ca53e871e0a50e9 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 116 | py | from .empirical_distribution import ECDF, monotone_fn_inverter, StepFunction
from .edgeworth import ExpandedNormal
| [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
e2490fba205fe937a0d6def8adc90744c88a0547 | b43af72e789c720e177c935c059937b1cfa79d9e | /packages/reporting-server/rest_server/routers/__init__.py | abe2d985302bc647737d462c89217b8d776638cb | [
"Apache-2.0"
] | permissive | matiasbavera/romi-dashboard | d4a65ad293e438fdb56f1d0dd3fa5d519bbe77a1 | ac3a15014ad3c3bdac523a6550934a06653cfba1 | refs/heads/master | 2023-07-24T13:09:23.417613 | 2021-09-01T02:20:49 | 2021-09-01T02:20:49 | 260,000,923 | 0 | 0 | Apache-2.0 | 2021-10-30T13:17:53 | 2020-04-29T17:53:36 | TypeScript | UTF-8 | Python | false | false | 82 | py | from .log import router as log_router
from .report import router as report_router
| [
"noreply@github.com"
] | matiasbavera.noreply@github.com |
67a5fe84289bbf077f5b715b5345856a909c69ab | 99dcb18a9e3ea367272f740b8cbf3c34285a0c08 | /samples/generated_samples/aiplatform_generated_aiplatform_v1_vizier_service_suggest_trials_sync.py | 1b733b2f9fd8ccaa14ada64642b93b113ffae7e0 | [
"Apache-2.0"
] | permissive | googleapis/python-aiplatform | 926a4873f35dbea15b2fd86c0e16b5e6556d803e | 76b95b92c1d3b87c72d754d8c02b1bca652b9a27 | refs/heads/main | 2023-08-19T23:49:02.180075 | 2023-08-19T13:25:59 | 2023-08-19T13:27:27 | 298,017,988 | 418 | 240 | Apache-2.0 | 2023-09-14T21:08:33 | 2020-09-23T15:43:39 | Python | UTF-8 | Python | false | false | 1,639 | 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... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
cd3a96fca93eaf0d22d9e5ffaaf8e7484810bec1 | f9d5bc590bd6c6274d7a6efec0f60cac1d8286b2 | /assets/coins/deeponion/deeponionImportBlocks.py | 4aaa2e5e62dca54ed5fe9ea7bae4bb416c9e5f34 | [] | no_license | pr0logas/grepblockBEpython | 35c83c1bf2114fc9417bedff6cf2a6e2ad2e667e | bbeaa290d13d80f993d843c7f1dbbfd373eee332 | refs/heads/master | 2022-10-03T23:35:44.600740 | 2020-03-09T08:24:53 | 2020-03-09T08:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | #:: By GrepBlock.com developers // pr0logas
#:: Modified date: 2019-11-30
#:: Description: This file is a workspace for block importation.
import sys, time
from time import gmtime, strftime
from deeponion import *
sys.path.append('../../../')
from mongoDB import *
from explorer import iquidusExplorer
from parseBlocks ... | [
"prologas@protonmail.com"
] | prologas@protonmail.com |
7221dbd189f14e0b29c8e9e10ef682f366cbbb40 | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/dialogs/waterfall_dialog_20170814153008.py | 2428479e5cbc7b50f7643f26d5c0ed7c6dc6d044 | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,179 | py | '''
Refs:
Embedding plot: https://sukhbinder.wordpress.com/2013/12/16/simple-pyqt-and-matplotlib-example-with-zoompan/
'''
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
import matplotlib.pyplot a... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
9e3c53f7b950810a0ba768d2ec91a23a95967642 | 1c5eee60f989f86e02cc54f4821bab1b035a6e8a | /constants.py | b089439d598c87ce441026840dbb06c9019b86e8 | [
"CC-BY-4.0"
] | permissive | phaustin/cookbook | 0870051f70def7a52e86dfc4d3c0aab667fba319 | e0a13907de6b9ba370d0c4dd046e0a14b53e1856 | refs/heads/master | 2021-01-17T05:58:20.390215 | 2014-02-09T18:34:54 | 2014-02-09T18:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | #http://stackoverflow.com/questions/1606436/adding-docstrings-to-namedtuples-in-python
from collections import namedtuple
def my_namedtuple(typename, field_names, verbose=False,
rename=False, docstring=''):
'''Returns a new subclass of namedtuple with the supplied
docstring appended to the ... | [
"paustin@eos.ubc.ca"
] | paustin@eos.ubc.ca |
ccd32f5a3a00e967d7c8632bf26e07ef55510812 | 9534e4c3574e40fa4f8d628bf2319884c9808ab9 | /范本/python注释范本.py | 991cf24ccb36c036763b566b2400c65a1f33ab7d | [] | no_license | jhfwb/Web-spiders | f394b95dcc7b30a36e3eb71b11345fa8988f40d7 | 5eda21e66f65dd6f7f79e56441073bdcb7f18bdf | refs/heads/master | 2023-06-17T21:03:31.631157 | 2021-07-17T01:55:55 | 2021-07-17T01:55:55 | 270,164,582 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | class Test2:
pass
class Test:
"""这是一个测试类
Usage::
>>> import 范本.python注释范本
>>> Test().test(s='为了掩饰跨行语法,我特地被'+
... '劈成两断')
"""
name="张三"
"""我是属性注解"""
def test2(self,a,b,c):
# type: (str,int,Test) -> str
pass
def test3(self,s,fontColor,end):
... | [
"527077832@qq.com"
] | 527077832@qq.com |
21ae6588ae6ea227553c69178f33108a12842a9a | 3fe272eea1c91cc5719704265eab49534176ff0d | /scripts/quest/q22721e.py | 5524d8e55c1d14173e33915d01009690788df126 | [
"MIT"
] | permissive | Bratah123/v203.4 | e72be4843828def05592298df44b081515b7ca68 | 9cd3f31fb2ef251de2c5968c75aeebae9c66d37a | refs/heads/master | 2023-02-15T06:15:51.770849 | 2021-01-06T05:45:59 | 2021-01-06T05:45:59 | 316,366,462 | 1 | 0 | MIT | 2020-12-18T17:01:25 | 2020-11-27T00:50:26 | Java | UTF-8 | Python | false | false | 3,350 | py | # Created by MechAviv
# Kinesis Introduction
# Map ID :: 331002000
# School for the Gifted :: First Floor Corridor
KINESIS = 1531000
JAY = 1531001
YUNA = 1531002
sm.lockForIntro()
sm.setIntroBoxChat(YUNA)
sm.sendNext("Did you get all of the signatures? Nice.")
sm.sendSay("#face3#Hey, #b#h0##k... Don't you think maybe... | [
"pokesmurfuwu@gmail.com"
] | pokesmurfuwu@gmail.com |
e25d71699616f07035797730399c62f186b1a0c2 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Programming_Collective_Intelligence/PCI_Code Folder/chapter8/optimization.py | 840025edc8576fe687a281d4523f4c7d37b22ef8 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 4,741 | py | import time
import random
import math
people = [('Seymour','BOS'),
('Franny','DAL'),
('Zooey','CAK'),
('Walt','MIA'),
('Buddy','ORD'),
('Les','OMA')]
# Laguardia
destination='LGA'
flights={}
#
"""
for line in file('schedule.txt'):
origin,dest,depar... | [
"bb@b.om"
] | bb@b.om |
9b7ebf29fc78cf160361291530a3339ee5e0122a | 50001d401b28800551acc65edb872f996dc0d422 | /c语言中文网/py/7.函数和lambda表达式/7.1py函数/main.py | fb38974a3e58b35c94f9d406316abf952a85d9ae | [] | no_license | maq-622674/python | 08fea61b85bf811653207b497e9d194886a54bb3 | cb8d7233dcae3fdc4bb3550a8826dd394dd1c31d | refs/heads/master | 2023-01-22T10:09:55.646601 | 2020-12-03T08:11:10 | 2020-12-03T08:11:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | '''
Python函数(函数定义、函数调用)用法详解
'''
n=0
for c in "http://c.biancheng.net/python/":
n = n + 1
print(n)
#自定义 len() 函数
def my_len(str):
length = 0
for c in str:
length = length + 1
return length
#调用自定义的 my_len() 函数
length = my_len("http://c.biancheng.net/python/")
print(length)
#再次调用 my_len() 函数
length ... | [
"lws__xinlang@sina.com"
] | lws__xinlang@sina.com |
30104f9adb42ee4e3c53f5f2afdccf9ed4761807 | fa0429d84538128f7859ba85bec6c6153f4995fe | /django-master/EXCEPTION HANDLING/1_Exception.py | 8c4988e38fc8dae5895107c7f9fe334998bffb26 | [] | no_license | dilshamony/python_django | fd6b8cd044517dca9d33a289e0b7b6d3ba54a28a | 73a1d609b60f86d5fbc6c019e6a1ce8564cae538 | refs/heads/master | 2023-04-28T17:11:29.722993 | 2021-05-24T05:33:12 | 2021-05-24T05:33:12 | 366,759,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | #Exception handling devices
#Try Except Finally
# num1=int(input("enter num1"))
# num2=int(input("enter num2"))
# res=num1/num2
# print(res)
# print("database transaction")
# print("file operation")
#-----> in this when num2=0, error occurs. we have to handle the exception
#Exception handling
# num1=int(... | [
"dilsham998@gmail.com"
] | dilsham998@gmail.com |
9533079e93ecd64ce029667ad50a9d027b87e15c | 9b01f7d430f7ee87217618cfa4567f42635e8923 | /22-06-2017/cloudformation/nginx-demo-1/ansible/.env/lib/python2.7/site-packages/ansible/module_utils/facts.py | df60e99800a851ed2d0873a954175d46d768f92c | [] | no_license | awsusergroupsantiago/demos | ccb045545d2a407a39d865cf19800d2b6d284b8f | e7f0dc8d9a4e8f2547c33a5a294fd76bf3ac9c9c | refs/heads/master | 2022-04-30T23:43:30.646556 | 2020-08-08T01:35:40 | 2020-08-08T01:35:40 | 95,129,959 | 2 | 0 | null | 2022-03-29T21:54:09 | 2017-06-22T15:29:25 | Python | UTF-8 | Python | false | false | 150,869 | py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible 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 of the License, or
# (at your option) any lat... | [
"eduardo.miranda.becerra3@gmail.com"
] | eduardo.miranda.becerra3@gmail.com |
cb892d24a92604a4925be761c6f882d3298f42e1 | 2c3e2d7da1e62bd75229fad0c8e18431a420b8a1 | /tidy_headers/_parse_item.py | 816d33bddaa8d7f84e39b112ae6d1846486ccf5c | [
"MIT"
] | permissive | ksunden/tidy_headers | 9526c3b522257f9dec4729fcdbcc09e7db68b6b3 | 060942204b5bb87a8b209e81e1b64fd3cbb0691f | refs/heads/master | 2020-03-13T02:55:24.394455 | 2017-11-13T03:08:06 | 2017-11-13T03:08:06 | 130,934,077 | 0 | 0 | null | 2018-04-25T01:34:24 | 2018-04-25T01:34:24 | null | UTF-8 | Python | false | false | 3,006 | py | """Parse item."""
# --- import -------------------------------------------------------------------------------------
import sys
import ast
import numpy as np
from ._parse_array import array2string, string2array
# --- define -------------------------------------------------------------------------------------
... | [
"blaise@untzag.com"
] | blaise@untzag.com |
b6d0207bfaa66505f97d7da8cc61db6946c4c25d | cda43bf6a84f7e55fab26aa70cda934683a51fe5 | /GANs_/main.py | ea2b49f8a5a6a9c7ab4ba68f8c2e3423538a34f5 | [] | no_license | nikolaosdionelis/NeuralNetworksNNs | abb55622882e31c8d130a8986868b3d19ede186f | 8a217490ad5bb3f7fccf4002c6b43a06c1e562fc | refs/heads/master | 2022-11-13T00:50:23.578197 | 2020-07-12T18:52:20 | 2020-07-12T18:52:20 | 279,042,013 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,272 | py | import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="1"
#import os
import scipy.misc
import numpy as np
np.random.seed(0)
from model import DCGAN
#from utils import pp
import json
from moModel import DCDCDCGAN
import tensorflow as tf
tf.set_random_seed(0)
from utils2 import pp... | [
"noreply@github.com"
] | nikolaosdionelis.noreply@github.com |
0cecc0fa70e16bbe4ca78b88344e4abcb732c6d8 | 4d32915e23196e85f113643e27361a20b5944432 | /Imagene.02/submit_not_dvars.py | 84291ffc9ec0b3e73d3c6d9c35c7e2e9208800b6 | [
"MIT"
] | permissive | DVS-Lab/duke-archive | a857aa2e6521b14edb578fece28e8a38ad55afe6 | 8d127f18d5930803410e716a4b62aac7d4aa4beb | refs/heads/master | 2020-04-21T05:32:32.138744 | 2019-02-06T07:09:48 | 2019-02-06T07:09:48 | 169,344,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,915 | py | #!/usr/bin/env python
import sys,os,time,re,datetime,smtplib
#########user section#########################
#user specific constants
username = "smith" #your cluster login name (use what shows up in qstatall)
useremail = "smith@biac.duke.edu" #email to send job notices to
template_f = file("not_dvars.sh... | [
"dvs3@biac-cluster-login1.dhe.duke.edu"
] | dvs3@biac-cluster-login1.dhe.duke.edu |
d5d0b3989d05deff417500cb0d8700915a301f10 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/DSG-IF-MIB.py | 22d018eb538c6d9248a3713a197561eb3df7ddab | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 43,882 | py | #
# PySNMP MIB module DSG-IF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DSG-IF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:45:12 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
d83b4b4cc546424a09f532e9d3732e8964243688 | ca23bd142b47ccac7ef83449dbc884a9c49f756e | /model/indexer.py | 861b3703148fd579180641d2d1c68cca1e4524a2 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | Stanford-PERTS/bele-library | da35709af6085f69047f53e31e4b3aa78bd9a429 | ad2bbda6e7a03d3579b52b5de30771d9990cabac | refs/heads/master | 2022-11-08T13:33:59.567358 | 2020-06-14T17:36:36 | 2020-06-14T17:36:36 | 272,249,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,716 | py | """
Indexer Model
===========
Model for searchable content indexer
"""
from google.appengine.api import search
from google.appengine.ext import ndb
import datetime
import logging
import config
import util
from .lesson import Lesson
from .model import Model
from .practice import Practice
class Indexer(ndb.Model):
... | [
"chris@perts.net"
] | chris@perts.net |
8c5a0c61483c58f1533b4b425f55791018b6e695 | f9a2e67dd2f40b37d8ff81bf6cdce47c38d2dee4 | /mock_concept/tasks.py | 8808b310a040f22bd904732f85d72cc91c7d3d7c | [] | no_license | mohan277/backend_repo | 4eae065cf0fffa29866a2b549028cb8df4c97643 | 25dbb4d0f1c174b6da95f4c73737e49db9978429 | refs/heads/master | 2022-11-13T00:08:37.600743 | 2020-07-09T04:36:44 | 2020-07-09T04:36:44 | 278,259,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | # Task 1
class ObjectDoesNotExists(Exception):
pass
def get_count_field_from_object(database_handler, object_id):
try:
obj = database_handler.get(id=object_id)
except Exception:
raise ObjectDoesNotExists
return obj.count
# Task 2
class MyClass:
def __init__(self, name, age):
... | [
"senammohanakrishna@gmail.com"
] | senammohanakrishna@gmail.com |
3e12f8d45881b88b4866145b2440ce8232484e56 | dfb2be224fc8e2581c65cd886a45f04df7c1c4eb | /test_user.py | fbad6b42d6f30d1882a889b226496a99164fe799 | [] | no_license | nicky-code/watchlist | a9a20a67a119edd0d83e3de3d0d96450414f72d3 | c5f38f53df3151c78c7972f219f8ba09085561cb | refs/heads/master | 2020-07-23T15:08:40.360050 | 2019-09-19T13:17:54 | 2019-09-19T13:17:54 | 207,603,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import unittest
from app.models import User
class UserModelTest(unittest.TestCase):
def setUp(self):
self.new_user = User(password = 'banana')
def test_password_setter(self):
self.assertTrue(self.new_user.pass_secure is not None)
def test_no_access_password(self):
with self.... | [
"aline.nicole7@gmail.com"
] | aline.nicole7@gmail.com |
e6cbe42c2ec7e1f0bfd4a43ab06cce0cbe48919e | 18453fe92e0162a32af4d6735d3d419f10973d60 | /data_exploration/dataset_explorer.py | 931426edb58401dd3097b8f1e0772a8dcd8677ff | [] | no_license | Krishnaarunangsu/XpressoDataVersioning | 40a5b2f8db01d347b9231737f24abb239f90c91d | c511ceed1a378f233ddf1c5dde07b61cdd7faf78 | refs/heads/master | 2020-07-02T18:08:32.874500 | 2019-08-29T16:57:13 | 2019-08-29T16:57:13 | 201,616,841 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | __all__ = ['Explorer']
__author__ = 'Srijan Sharma'
from xpresso.ai.core.data.dataset_info import DatasetInfo
class Explorer:
def __init__(self, dataset):
self.dataset = dataset
def understand(self):
self.dataset.info.understand_attributes(self.dataset.data, self.dataset.type)
def exp... | [
"arunangsutech@gmail.com"
] | arunangsutech@gmail.com |
4cd0e42455b81364d3de65df50d225bd0c42ff57 | 1811d37ed6474ab7eaeafff3c82d3bb7c0466e3d | /parts/zodiac/venusian/tests/fixtures/subpackages/__init__.py | b0b0dff175ac025dca0245e26c1f4f5f77c230f5 | [] | no_license | bernatcortina/zodiac | ed384fe96f6739d841a3a777d10bad4b33fd0e78 | aa0ecb2c386fc5b54ff60ba94e0a1bc5a7493f17 | refs/heads/master | 2021-01-18T14:02:44.978553 | 2014-02-07T17:33:27 | 2014-02-07T17:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | /Users/Bernat/GitHub/zodiac/eggs/venusian-1.0a8-py2.7.egg/venusian/tests/fixtures/subpackages/__init__.py | [
"bernatcortina@gmail.com"
] | bernatcortina@gmail.com |
2d2cf36457bcd3ff3adefcf61862d2b64a4812ec | f826060dbbfb8ff97d2afb25c684ca6e4979a78b | /workplace/functions/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/gameservices/v1beta/resources.py | 83ff8fdeb60f771dc20c7cb60bc1e1f4925fc4f7 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Shiyu-D/webset | abfdc26b521553141deffdf5f25598317712bc5f | 9d895045aaa0a3abb94d267405c5dfc5f60497b9 | refs/heads/master | 2023-01-30T06:04:44.500358 | 2020-02-24T12:23:29 | 2020-02-24T12:23:29 | 242,727,245 | 1 | 1 | null | 2023-01-09T12:14:57 | 2020-02-24T12:11:51 | Python | UTF-8 | Python | false | false | 2,952 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"barbaradsy@gmail.com"
] | barbaradsy@gmail.com |
11e069901feb660bbd4a61d3805c94b05975336b | 182c63ffa3ea6d8b20c6f92670d95b143910a2db | /main.py | 14ea861ee75d3da1cedd4e44bf0b41a9af6d851f | [
"MIT"
] | permissive | ephreal/rollbot | ad6f074a4d576d734866f50ecd422c34777e6637 | b6947b225e789497eeb5e2375130e24f61c9d60a | refs/heads/master | 2023-08-03T00:09:41.827697 | 2023-07-20T15:57:06 | 2023-07-20T15:57:06 | 156,770,105 | 2 | 1 | MIT | 2023-07-20T15:57:07 | 2018-11-08T21:17:43 | Python | UTF-8 | Python | false | false | 2,279 | py | # -*- coding: utf-8 -*-
"""
This software is licensed under the License (MIT) located at
https://github.com/ephreal/rollbot/Licence
Please see the license for any restrictions or rights granted to you by the
License.
"""
import asyncio
import bot
import importlib
import json
import os
import sys
def load_config():
... | [
"tjannx@hotmail.com"
] | tjannx@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.