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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ce8ccd899ef5747227ca57c857d08a157cfbb8f | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1691171/homework04/program02.py | 0ddc9b0fb7d97defca38c796be185ea9029c4698 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,123 | py | '''
Il tris e' un popolarissimo gioco. Si gioca su una griglia quadrata di 3×3 caselle.
A turno, i due giocatori scelgono una cella vuota e vi disegnano il proprio simbolo
(un giocatore ha come simbolo una "o" e l'avversario una 'x').
Vince il giocatore che riesce a disporre tre dei propri simboli in linea retta
orizzo... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
bdb805c9c100c4eeb157fd8e8bb7f24f7e2ecae6 | 7434ef0a0840da62c449b73a3810d11bcf300644 | /clients/__init__.py | 77fcc047932cc131e2628935ae149d626a4e0a78 | [] | no_license | webmalc/maxibooking-billing-django | 40f497dc794e0b29868a01b482b5865764b35fd3 | d5ca86c3701b86e359b0648a5b76b0b71faa7810 | refs/heads/master | 2022-12-17T21:50:42.210125 | 2019-08-14T09:33:02 | 2019-08-14T09:33:02 | 202,347,569 | 2 | 0 | null | 2022-12-09T22:25:58 | 2019-08-14T12:36:22 | Python | UTF-8 | Python | false | false | 50 | py | default_app_config = 'clients.apps.ClientsConfig'
| [
"m@webmalc.pw"
] | m@webmalc.pw |
ad6e418fcef3da5deace711f83b1103f0fa9591f | 6d25434ca8ce03f8fef3247fd4fc3a1707f380fc | /[0309][Medium][Best_Time_to_Buy_and_Sell_Stock_with_cooldown]/Best_Time_to_Buy_and_Sell_Stock_with_cooldown.py | 4e910ac3451b252f51c0a8562ef3c3a46be683e0 | [] | no_license | sky-dream/LeetCodeProblemsStudy | 145f620e217f54b5b124de09624c87821a5bea1b | e0fde671cdc9e53b83a66632935f98931d729de9 | refs/heads/master | 2020-09-13T08:58:30.712604 | 2020-09-09T15:54:06 | 2020-09-09T15:54:06 | 222,716,337 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | # solution 1, one time traversal of the price list.
# leetcode time cost : 44 ms
# leetcode memory cost : 13.2 MB
# Time Complexity: O(N)
# Space Complexity: O(1)
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
n = len(... | [
"xxm1263476788@126.com"
] | xxm1263476788@126.com |
b210c1b8e7c3179f9819020273c9df6260c6ee62 | 4e2616ce4c02907979d94b45042875e8e85f9e4d | /rc/rcc.py | 0b41d108113c6d5dcb26b9c7a6040059b09d9e78 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fengjixuchui/RISVM | de8ebf9e353a3392b24fd8976ccfef9d3a33807e | d2d87f43399ebb9413de6e258c6955f22b9664ed | refs/heads/master | 2021-10-09T08:54:13.488794 | 2018-12-25T01:45:22 | 2018-12-25T01:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | import sys
import os
import argparse
sys.path.append("..")
import rc_parse
from rc_visitor import PrintVisitor
from rc_semantics import SemanticAnalyzer
from rc_compiler import ASMCompileVisitor
#from assembler.internals import process_file, write_bytecode
parser = argparse.ArgumentParser(
description="Compile o... | [
"noreply@github.com"
] | fengjixuchui.noreply@github.com |
25295b656ba229bec247391796afacea23e15dcb | 6484cdf98189f5f5736950c81a9d8d30e0f0c0db | /utility/passwordModel.py | 8f744ac503eec0a2d8673ab0ec970bdd8d4423d2 | [] | no_license | AlexFrundin/great_app_example | e0e9c91f06bfba76058f3af5b113a9399945bf6c | 23225e7e88f2ee51359d23cac2200b32b8bd6e20 | refs/heads/main | 2023-05-30T15:02:22.035811 | 2021-06-17T06:40:06 | 2021-06-17T06:40:06 | 339,434,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | class passwordModel:
Password=''
Salt=''
def __init__(self,_password,_salt):
self.Password=_password
self.Salt=_salt | [
"aleksey.frundin@gmail.com"
] | aleksey.frundin@gmail.com |
cbc88f3f2d6b5faf19ada514a2104a12854f95c0 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayOpenMiniMiniappFavoriteAddRequest.py | 1cfced8840e22ca2d3ee9aecc4e550bc9459ca31 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,992 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayOpenMiniMiniappFavoriteAddModel import AlipayOpenMiniMiniappFavoriteAddModel
class AlipayOpenMiniMiniappFavoriteAddRequest(obj... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
4848bcb0a3b953d3447371234778ab91f2d5c564 | 0617c812e9bf58a2dbc1c1fef35e497b054ed7e4 | /venv/Lib/site-packages/pyrogram/raw/functions/account/get_all_secure_values.py | b7ff48c8e64e66f91207545911a13a67f06f4db6 | [] | no_license | howei5163/my_framework | 32cf510e19a371b6a3a7c80eab53f10a6952f7b2 | 492c9af4ceaebfe6e87df8425cb21534fbbb0c61 | refs/heads/main | 2023-01-27T14:33:56.159867 | 2020-12-07T10:19:33 | 2020-12-07T10:19:33 | 306,561,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | [
"houwei5163"
] | houwei5163 |
4bdcf903892e4a9177f3e10685fd8d74e6b745df | a9243f735f6bb113b18aa939898a97725c358a6d | /0.16/_downloads/plot_compute_source_psd_epochs.py | e3a0ac106fda6112a6960760efcbe65cd0f28be3 | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 2,826 | py | """
=====================================================================
Compute Power Spectral Density of inverse solution from single epochs
=====================================================================
Compute PSD of dSPM inverse solution on single trial epochs restricted
to a brain label. The PSD is compu... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
f61fe7706e6df5980c0c15fb54819de848b358b5 | 6bd21a64c5fbeba1682c3e65221f6275a44c4cd5 | /vega/networks/pytorch/customs/modnas/contrib/arch_space/elastic/sequential.py | 3f151c3293ab90d96aa2af08507301d48d7cc02d | [
"MIT"
] | permissive | yiziqi/vega | e68935475aa207f788c849e26c1e86db23a8a39b | 52b53582fe7df95d7aacc8425013fd18645d079f | refs/heads/master | 2023-08-28T20:29:16.393685 | 2021-11-18T07:28:22 | 2021-11-18T07:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,786 | 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 ... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
c49d299d8fefc2003543a164259906fb1e2e0f6f | d7016f69993570a1c55974582cda899ff70907ec | /sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/aio/operations/_operations.py | b4838be8359548275348d278c5214f030c987b8b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 4,963 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
46bca499e430ff78b4090599ae4d6a1434c1fa6f | f889bc01147869459c0a516382e7b95221295a7b | /swagger_client/models/customer_data_region_extension_interface.py | 74cc7f9b516d76a5a840ef9093899a7b85a35105 | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
8079e55efa8c63fafed46bce13e7d30c4af31b73 | 31557b23e43b1e2c277601fcc8c1276507eb3b71 | /Social/images/admin.py | 5f0b6cef0683442dce6f0069fb06ed554daf9e09 | [] | no_license | talenhao/django_by_example | ef5ca15650f991d932c9fb66cba530fb73e42e20 | f784a4643e15a9325e8eeaa4843fecdac175f681 | refs/heads/master | 2021-01-20T02:57:46.248474 | 2017-12-03T16:14:53 | 2017-12-03T16:14:53 | 89,477,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from django.contrib import admin
# Register your models here.
from .models import Image
class ImageAdmin(admin.ModelAdmin):
list_filter = ['title', 'slug', 'image', 'created', "total_likes"]
list_display = ("title", 'slug', 'image', 'created', "total_likes")
search_fields = ['created']
admin.site.regis... | [
"talenhao@gmail.com"
] | talenhao@gmail.com |
fcabef1d2243a59f6ed4e712de6f39387514990d | bb2e9401499974a3ba6a2c083eba54af301736f9 | /lectures/110opengl/gmtutorials/110framebuffer/gm117deeptv.py | 76af1f43b1d0f067304148b15db1c8f732d94197 | [] | no_license | geofmatthews/csci480 | 69188cd6ffc5d5ed3e9d9ea9d3c98deb6988e3f2 | fc21f487b57629ecaa042447d05f83b0837edf16 | refs/heads/master | 2021-01-10T11:18:53.451056 | 2015-11-30T23:10:22 | 2015-11-30T23:10:22 | 43,301,371 | 2 | 6 | null | 2016-04-27T19:28:24 | 2015-09-28T13:06:20 | Python | UTF-8 | Python | false | false | 6,791 | py | # Using framebuffers to make a tv monitor.
# Now we render the second camera into a framebuffer,
# and use that to texture the tv monitor.
import os,sys
from OpenGL.GL import *
from OpenGL.GL.shaders import compileShader, compileProgram
import pygame
from pygame.locals import *
import numpy as N
sys.path.insert(0, ... | [
"geoffrey.matthews@wwu.edu"
] | geoffrey.matthews@wwu.edu |
d0c7dc3497a5b6235b3d5cc88a43c467728381c6 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/enterprise_channel_node_py3.py | d43c220b0e043ac836494a3f1e22827eb74344ad | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 2,333 | 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 ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
081051b241358d533578ee017fef8222339f5bca | a71fbf421c43fcb34fe7c8000eb807677821683c | /ML/m15_randomizedSearchCV1.py | ded1d1b9d2d1fd127e93f1facd8b64d541a208a2 | [] | no_license | leekyunghun/bit_seoul | ccd96dca3774f259e04b8388e134d6183b974268 | b76a3d5f83b77f5345d61cf3baa68aaefc25cd2a | refs/heads/master | 2023-02-06T08:12:17.768076 | 2020-12-22T13:35:19 | 2020-12-22T13:35:19 | 311,286,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | import pandas as pd
from sklearn.model_selection import train_test_split, KFold, cross_val_score, GridSearchCV, RandomizedSearchCV
from sklearn.metrics import accuracy_score
# from sklearn.utils.testing import all_estimators
from sklearn.svm import LinearSVC, SVC
from sklearn.metrics import r2_score, accuracy_score
fro... | [
"oh_pizza@naver.com"
] | oh_pizza@naver.com |
a07fb2ebf63e0735d797d1033590267f973066ab | c39c5983db9a04a306e1413939c25e54bd0bf04d | /day11/app_00/apps/jxlg0102auth/forms.py | bd19bc43aee598c4ea624bf1c18677bb53703dd8 | [] | no_license | wangyinzong/learngit | dba5d584182b8d7bcfb81aa76a52a03c3f280715 | 98d5e9f4b3ce699b579fff945684cbfa17d53280 | refs/heads/master | 2020-06-04T09:19:48.046474 | 2019-07-04T07:01:33 | 2019-07-04T07:01:33 | 191,962,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | from django import forms
from apps.forms import FormMixin
| [
"1370818974@qq.com"
] | 1370818974@qq.com |
6fb0867c23d3abed8561b0dd03bb8431421b6d8e | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/longestUncommonSubsequenceI/longestUncommonSubsequenceI.py | 3517b7b78edd420a6492861d15ecdafbfb830887 | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/longest-uncommon-subsequence-i/
# Author: Miao Zhang
# Date: 2021-02-19
class Solution:
def findLUSlength(self, a: str, b: str) -> int:
return -1 if a == b else max(len(a), len(b))
| [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
fd8a8c5019a166dab2f138b5380c24b117e99de2 | 4cc4a8b27a3657c0dde7a054ff97fa428d5864c8 | /experiments/double_rfcn/double_rfcn_end2end_train_test.py | 3fee16bb06bc2a29bb7ced22a5d92df5d89306b0 | [
"MIT"
] | permissive | chengdazhi/Flow-Guided-Feature-Aggregation | b98e758a499d923bb5aa13440ef18bd15c9049ad | 63cdffb3d4837d87fb590530b1d16dd59ccb292b | refs/heads/master | 2020-03-22T17:19:08.605837 | 2018-07-10T03:02:57 | 2018-07-10T03:02:57 | 140,388,072 | 1 | 0 | MIT | 2018-07-10T06:36:12 | 2018-07-10T06:36:11 | null | UTF-8 | Python | false | false | 630 | py | # --------------------------------------------------------
# Flow-Guided Feature Aggregation
# Copyright (c) 2017 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Yuwen Xiong
# --------------------------------------------------------
import os
import sys
os.environ['PYTHONUNBUFFERED'] ... | [
"xvjiarui0826@gmail.com"
] | xvjiarui0826@gmail.com |
20173f71f46dc087c0b3b5359d9e26d7c2d03c5a | b5fabc6c6de064690f8d4ee423001cf9365a3d9f | /flash/core/data/io/input_base.py | d8c58746a1bb93529cc29b502fab3d346769e2cc | [
"Apache-2.0"
] | permissive | dmarx/lightning-flash | 021dfd76bde6e30309f14feb5853020b0babe90d | 4cda031c1f9c8d8754fd36b5720d2a5a7d866765 | refs/heads/master | 2023-09-06T06:24:29.856354 | 2021-11-24T23:38:14 | 2021-11-24T23:38:14 | 422,352,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,006 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | dmarx.noreply@github.com |
4202d98531e6d8eb9a333dda86d83639ef72d1d7 | 09e4b7c55279dca3914f69e27eadceb4ceeac885 | /huggingface/huggingface_ner.py | 21cb16507b4308d55c0624a6c4447e66a06b03f3 | [
"Apache-2.0"
] | permissive | Mageswaran1989/ai4e | 2ea14b2019990b31e36ccb9fbe8955ba0509da4d | 16fe8fc8c7886d36aac3df3c9c6e28414a5286c8 | refs/heads/main | 2023-07-27T18:20:35.393336 | 2021-09-03T02:22:41 | 2021-09-03T02:22:41 | 316,110,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | """
Reference: https://huggingface.co/dslim/bert-base-NER
"""
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("dslim/bert-base-NER")
model = AutoModelForTokenClassification.from_pretrained("dslim/bert-base-NER")
nlp... | [
"mageswaran1989@gmail.com"
] | mageswaran1989@gmail.com |
5fd523669dbc851bce9e91089a6ef855ea5ceb32 | 80d596df8a8ce8f9c844b325d2df5a1185581595 | /clld/tests/util.py | d12cbefde9b4def90f41769f29d8c2ad9abfeffd | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | FieldDB/clld | 780d2893d6fdc766f91df0886280c0ea02f640eb | 4738caf5125648dc952a97692c38f90ba13011b1 | refs/heads/master | 2021-01-15T15:15:55.131288 | 2014-02-17T20:25:10 | 2014-02-17T20:25:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,317 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
import threading
from collections import namedtuple
import time
from wsgiref.simple_server import make_server, WSGIRequestHandler
import unittest
import re
from tempfile import mkdtemp
from xml.etree import cElementTree as et
imp... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
99039c37ea44f946b4b30120694d57f49083eaa2 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/VH_TTH/TTH_HToGG_M_95_TuneZ2star_8TeV_pythia6_cff.py | baa316c1a9c4d7109b40ac4d1a8deb01e8e3b5c4 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 3,030 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
from GeneratorInterface.ExternalDecays.TauolaSettings_cff import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaPylistVerbosity = cms.untracked.int32(1),
# put here the efficiency of your filte... | [
"sha1-c8b28d70dd1f4235246c4a027e80dcdcf397db6f@cern.ch"
] | sha1-c8b28d70dd1f4235246c4a027e80dcdcf397db6f@cern.ch |
5d1d88cea8d798a3e149bb130ec2bc229079458b | 066e874cc6d72d82e098d81a220cbbb1d66948f7 | /assistantAIfunctions.py | 0b16b6bc349c67402973e2d3bf7128ffa36a6314 | [] | no_license | webdeveloper001/flask-inboundlead | 776792485a998a0eaa4b14016c3a2066e75ff2a2 | d0a539d86342e9efc54d0c0a1adc02c609f0f762 | refs/heads/master | 2021-01-19T01:34:55.241144 | 2017-04-05T00:42:03 | 2017-04-05T00:42:03 | 87,248,885 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,919 | py | import os
from app import config
import requests
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
import smtplib
import quotequail
from html2text import html2text
import talon, constants
from talon import quotations
from werkzeug.utils import secure_filename
talon.init()
import clearb... | [
"jamesbrown1018@outlook.com"
] | jamesbrown1018@outlook.com |
6fff9c6cc941b5fe45e9595ea0da9e13d0294371 | f086dd8ff17c16a83f1681ab5360b2d08b410007 | /Data_Quality/insert_oracle_sql.py | 0c7bdb370a1a17cc280bb3434649b7cee0994d12 | [] | no_license | mattstirling/CTR_DQ | 812af6d4731359700cfae9a572d118743fbd6c79 | 115715273620ac4eb929e37b02118280f0111ade | refs/heads/master | 2021-01-10T07:24:00.176216 | 2016-04-18T19:56:05 | 2016-04-18T19:56:05 | 44,831,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | '''
Created on Nov 13, 2015
@author: mstirling
'''
import cx_Oracle,glob,os
#open vm db connecttion
conn = cx_Oracle.connect('ctrmso/password@10.6.134.243:1527/orcl')
cursor = conn.cursor ()
os.chdir("c:/temp/python/out/SQL/2016-02-23 W2 R7 IST/")
#loop dir with txt file
for file in glob.glob(... | [
"mstirling@ScotiaFalcon"
] | mstirling@ScotiaFalcon |
3566b73ea1f966231d0813c34e16d9cf0fadc993 | ef11cb7a2ee550e4fb95be46cd4d67d6cc230787 | /python/Top Interview Questions - Easy/Dynamic Programming/buysellstock.py | 5456dc87404ca01618ad4a5cfc746fa4fc95d379 | [] | no_license | Hilldrupca/LeetCode | 44b32161743ba982ea5e3fe593ff8a27c96e9350 | c6d600bc74afd14e00d4f0ffed40696192b229c3 | refs/heads/master | 2023-03-31T22:21:17.967663 | 2021-04-07T16:18:17 | 2021-04-07T16:18:17 | 288,544,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | from typing import List
class Solution:
def maxProfit(self, prices: List[int]) -> int:
'''
Maximum profit if you could only buy and sell one stock once.
Params:
prices - A list of integers of stock prices.
Returns:
int - The maximum prof... | [
"hilldrupca@gmail.com"
] | hilldrupca@gmail.com |
7a159666033113c223b8fc2fb74413a15686c973 | 899333009fba85623eb6307663b96e1d7448c31f | /Src/product/migrations/0004_auto_20181013_1021.py | ed502f9848ff9abc3cda3ee2ef6db26741621a78 | [] | no_license | Shamsulhaq/fastpick | f2d79591ad25173f1e26b7ba063c9785f4d91832 | 2c26df7e1766e51088123cebaf64cc2324007d70 | refs/heads/master | 2022-12-03T04:15:33.658505 | 2020-08-06T04:16:06 | 2020-08-06T04:16:06 | 150,855,035 | 0 | 1 | null | 2022-11-22T03:18:41 | 2018-09-29T10:51:38 | JavaScript | UTF-8 | Python | false | false | 402 | py | # Generated by Django 2.1.1 on 2018-10-13 04:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0003_auto_20181011_1911'),
]
operations = [
migrations.AlterField(
model_name='booklist',
name='descripti... | [
"bmshamsulhaq65@gmail.com"
] | bmshamsulhaq65@gmail.com |
49345c5bba2b2363e6a0151b4ecb9e42b712861d | 6bb80d482bfd0cd5feb6f2d37c7235a27b3466d6 | /malaya_speech/train/model/fastsplit/loss.py | d151e8ab87da42a69b850dbcdfd05d29ecdddaa0 | [
"MIT"
] | permissive | dakmatt/malaya-speech | deadb00e1aa8a03593721c26457f35158e67d96d | 957cfb1952760c30d3b4a2a2e60b7f142394cbd3 | refs/heads/master | 2023-04-03T13:56:53.675046 | 2021-04-19T03:31:40 | 2021-04-19T03:31:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import tensorflow as tf
import numpy as np
from itertools import permutations
from tensorflow.python.ops import weights_broadcast_ops
EPS = 1e-8
def cal_abs_with_pit(
source, estimate_source, source_lengths, C, method = tf.abs
):
# estimate_source = B, T, S, D
# source = B, S, T, D
# estimate_source... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
2e742d18f43e20baf85bd757a0af0759bc2561c6 | 6f90c762bda98e09e0a152652748b9359198a780 | /ecogtools/strf.py | a5fb12137b056c172454238ff8dfecaefa8610e6 | [
"BSD-2-Clause"
] | permissive | monfera/ecogtools | 2f7e40b1b4b8723b476e965f33414f850adee8cf | a418b898d76e24e32da2999a98a2fd2b30fe3702 | refs/heads/master | 2021-01-17T07:47:58.025129 | 2016-05-29T20:26:53 | 2016-05-29T20:26:53 | 59,964,131 | 1 | 0 | null | 2016-05-29T21:14:25 | 2016-05-29T21:14:24 | null | UTF-8 | Python | false | false | 21,230 | py | from __future__ import division
import numpy as np
from sklearn.cross_validation import KFold, LabelShuffleSplit, LeavePLabelOut
from sklearn.linear_model import Ridge
from sklearn.grid_search import GridSearchCV
from sklearn.metrics import mean_squared_error
from sklearn.pipeline import Pipeline
from mne.utils import ... | [
"choldgraf@berkeley.edu"
] | choldgraf@berkeley.edu |
e005cf185e67046bb1e8f5b8a535d571af2fa3d1 | fed0736dcd16356a74aa405aa730dec14d95fbec | /controller/apps/slices/migrations/0020_factor_sliver_defaults_out_of_slice.py | 91a39b6632491dc9e78717119c05d1b1b6614e61 | [] | no_license | m00dy/vct-controller | 78e233930c17487d736dccdd6f62ca964a4907ad | dd798dc9bd3321b17007ff131e7b1288a2cd3c36 | refs/heads/master | 2020-12-28T22:01:17.251131 | 2015-01-22T14:16:52 | 2015-01-22T14:16:52 | 29,681,858 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,169 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Dump related Sliver data on Slice to SliverDefaults."
# Note: Don't use "from... | [
"santiago@pangea.org"
] | santiago@pangea.org |
0ba76aebb42b3f755e2106806f4c48368bff3fdd | 3bbcda4d74d9aa65e5c705352a4a60d9db0c6a42 | /third_party/github.com/ansible/awx/awx/main/dispatch/publish.py | f7fd7cf4fb2362860c0f29984a3cc27dd564557e | [
"Apache-2.0"
] | permissive | mzachariasz/sap-deployment-automation | 82ecccb5a438eaee66f14b4448d4abb15313d989 | cb4710f07bb01248de4255a0dc5e48eda24e2d63 | refs/heads/master | 2023-06-25T15:09:53.505167 | 2021-07-23T18:47:21 | 2021-07-23T18:47:21 | 388,017,328 | 1 | 0 | Apache-2.0 | 2021-07-23T18:47:22 | 2021-07-21T06:29:55 | HCL | UTF-8 | Python | false | false | 3,469 | py | import inspect
import logging
import sys
import json
from uuid import uuid4
from django.conf import settings
from . import pg_bus_conn
logger = logging.getLogger('awx.main.dispatch')
def serialize_task(f):
return '.'.join([f.__module__, f.__name__])
class task:
"""
Used to decorate a function or clas... | [
"joseph.wright@googlecloud.corp-partner.google.com"
] | joseph.wright@googlecloud.corp-partner.google.com |
4ea12ddfa3df0e175d62b100cf901fb65f22da9f | ac1e944eb288c8b13a0bef0ee7de85ee6d30b4c0 | /django/the-downloaders-master/video/urls.py | 730c9cbd327870c5c5a37ffb9d05832ae3c04f25 | [] | no_license | Jayson7/random-projects | 05dd175d00e9bd62cb39973c3439846f641675c8 | cdbebb896a0ecea0de543f16ecf4661e519ec0bb | refs/heads/master | 2023-06-19T01:54:08.339954 | 2021-07-19T01:40:09 | 2021-07-19T01:40:09 | 383,971,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from .views import videoView, video_list
from video import views
urlpatterns = [
path("home", videoView.as_view(), name="video"),
path('search', views.video_l... | [
"lexxiijoo70@gmail.com"
] | lexxiijoo70@gmail.com |
b0cdcdabab2b8b875971f1467a0eefa143c6c553 | ef6db15efda8b7b472b73ebd6bea3530ab30d45a | /tests/function/token/test_token_base.py | 3b6a7a644715a6cf0be0edeea08ea86938c28f96 | [
"BSD-3-Clause"
] | permissive | Denisfench/openclean-core | 57698fc9ac8b1bccc848262721d0e705529cf27f | e3d0e04f90468c49f29ca53edc2feb12465c24d5 | refs/heads/master | 2023-09-01T02:21:35.133098 | 2021-10-04T19:34:57 | 2021-10-04T19:34:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # This file is part of the Data Cleaning Library (openclean).
#
# Copyright (C) 2018-2021 New York University.
#
# openclean is released under the Revised BSD License. See file LICENSE for
# full license details.
"""Unit tests for the base token class."""
from openclean.function.token.base import Token
def test_tok... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
c3b1f88cae9f354e31128a8db60e65c81f8da4fa | 876c58860fdb6c4d4edfcc4b56e97c2176b67f98 | /src/utils/__init__.py | 048ee573512adc472d28541b9fd696bf476868fd | [] | no_license | Otumian-empire/py-quiz | 6dbc7915fc0e22f8de1beb30f2071677b0dc413c | b4ee681837add64b039afda3dfc286995199288a | refs/heads/main | 2023-08-31T04:43:36.778235 | 2021-10-15T04:00:13 | 2021-10-15T04:00:13 | 349,536,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | from .utils import clear_screen, placeholder_update
| [
"popecan1000@gmail.com"
] | popecan1000@gmail.com |
fd423f6ad90deba95c52d84c0a7000cccfbde8ce | f819fe72c5b18b42a25a71dc2900c7fa80e17811 | /pandas/tests/arrays/period/test_arrow_compat.py | 7d2d2daed349721fdf85a3f6df57f558f40be4fa | [
"BSD-3-Clause"
] | permissive | JMBurley/pandas | 34d101425acb0ac35a53bcf29fbd47c2d4c88fda | b74dc5c077971301c5b9ff577fa362943f3c3a17 | refs/heads/master | 2022-11-06T00:48:41.465865 | 2022-06-13T19:30:11 | 2022-06-13T19:30:11 | 229,853,377 | 1 | 0 | BSD-3-Clause | 2019-12-24T02:11:54 | 2019-12-24T02:11:53 | null | UTF-8 | Python | false | false | 3,429 | py | import pytest
from pandas.core.dtypes.dtypes import PeriodDtype
import pandas as pd
import pandas._testing as tm
from pandas.core.arrays import (
PeriodArray,
period_array,
)
pa = pytest.importorskip("pyarrow", minversion="1.0.1")
def test_arrow_extension_type():
from pandas.core.arrays.arrow._arrow_ut... | [
"noreply@github.com"
] | JMBurley.noreply@github.com |
1d92f0fff88989f59b8d1d00a7a8fd627a275089 | d4d40a3bd2a7cfcb7b45850ab6462df86283cc21 | /finance/yahoo_values/admin.py | 24407ee8bde98a70a3428f75aa62ff4620f9ef6f | [
"MIT"
] | permissive | coole123/Finance-dashboard | f993a7f61a19433db918604a6d23f0ab610918f6 | 48d1264b342479127c4eb61f0436114d3a1a34d5 | refs/heads/master | 2021-06-01T08:12:37.983529 | 2016-02-14T21:44:45 | 2016-02-14T21:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from __future__ import unicode_literals
from django.contrib import admin
from .models import YahooData, YahooWebService
# Register your models here.
class YahooWebServiceAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'url_', 'scraper',)
list_display_links = ('title',)
def url_(self, instance):
return '... | [
"cmmwaura@ucdavis.edu"
] | cmmwaura@ucdavis.edu |
389e79d61b79ce1ac8a6682d827fc06740fc95ab | bdf83518313769f2c4470e15d1ec3965ed1997fb | /Store/Store/urls.py | e09067c491cda3fc04b454e0f6037e160d5de5ab | [
"MIT"
] | permissive | BreezeDawn/DjangoStore | fb53a8f792fbd79ab8af392d6a7b73c7630b7ae3 | b1e9aee53f77c1a63ff0650f6dd464926c8cb939 | refs/heads/master | 2020-03-28T17:22:37.645355 | 2018-10-02T08:57:27 | 2018-10-02T08:57:27 | 148,783,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | """Store URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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')
Class-base... | [
"BreezeGent@gmail.com"
] | BreezeGent@gmail.com |
a470ff828d0bb89f10e4f0a9a56a1aa79f749b7e | 027b57b674f7b70433b1d0fd791cd9e5812274ea | /backend/manage.py | 4cdbd714960e5b363460f197d57835c1853f70d2 | [] | no_license | crowdbotics-apps/skorious-club-19601 | 4dbbb0ca571587356668ff1dcc7455b90a667109 | e3def3fecbe6710f6218c69f284daab3bc6f7afb | refs/heads/master | 2022-12-02T06:01:38.746825 | 2020-08-17T01:26:11 | 2020-08-17T01:26:11 | 288,055,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'skorious_club_19601.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8584c4873fd6768b03e2efd69c66e0218af4dda8 | 9d6ffb22c4cc47e932341307aa72cce801547b16 | /Python编程思想/10.面向对象的编程思想/访问对象的属性与方法.py | 5288c6a7a003e4258d6e08de1a372e804254e1c7 | [] | no_license | xiaohaiz1/PythonStudy | 419cc7eb5babbebe4c842108e19bea976f7ce696 | 6819c89abe6d52153821bb87e09a9cb73c685111 | refs/heads/master | 2022-01-08T14:46:54.055289 | 2019-07-03T06:22:19 | 2019-07-03T06:22:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | class Person(object):
#定义属性(定义变量)
name = ""
age = 0
height = 0
weight = 0
#定义方法(定义函数)
#注意:方法的参数必须以self当第一个参数
#self代表类的实例(某个对象)
def run(self):
print("run")
def eat(self, food):
print("eat" + food)
'''
访问属性
格式:对象名.属性名
赋值:对象名 = 值
'''
'''
访问方法:
格式:对象名.方法名(参数列表) #从se... | [
"1095505742@qq.com"
] | 1095505742@qq.com |
4987b731a8a9c47e815c5c0b4a40fa6fd94b84d3 | 4aa7e427bd53f788a89917e7fd521a0698e731dc | /udn_crawler.py | f41aec8bbdeabdfa44bbde920fae92a802f9594a | [] | no_license | eggachecat/predict_stock_price_based_on_news | 8c4c632e8786b0d6605d11988f218b2b4d2319e5 | b63528130a848a33e6caade5fc160686d5b001e9 | refs/heads/master | 2021-04-29T01:43:31.252940 | 2016-12-31T17:46:05 | 2016-12-31T17:46:05 | 77,750,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,154 | py | # -*- coding: utf-8 -*-
from requests import session
from bs4 import BeautifulSoup
import threading
import csv
import os
import time
import html5lib
import random
SEED_LOGIN_URL = "http://udndata.com.tw/ndapp/Login"
SEED_CRAWLER_URL = "http://udndata.com.tw/ndapp/SearchCategory?cateID="
ROOT_URL = "http://udndata.... | [
"sunao_0626@hotmail.com"
] | sunao_0626@hotmail.com |
44ea7be8139c5b819acdd35ad4e3ff193072d1d6 | 053d34c1661a9fcedf7122fddddd46616e480066 | /ch09/after_refactor_v1/state_stopped.py | e0dd4f4468d226932fcbc2f8842d6ee1b155bc1e | [] | no_license | Juice178/refactoring | 9ccd41e9ac582c55296c542c534d6bf4a37e11cd | c0c7f91a2be6c85c6f10616dfdcfead497051d44 | refs/heads/main | 2023-03-12T04:57:49.480933 | 2021-02-21T13:52:40 | 2021-02-21T13:52:40 | 338,266,153 | 0 | 0 | null | 2021-02-21T13:52:40 | 2021-02-12T08:52:00 | Python | UTF-8 | Python | false | false | 196 | py | from state import State
from logger import Logger
class StateStopped(State):
def __init__(self) -> None:
pass
def get_typecode(self) -> int:
return Logger.STATE_STOPPED | [
"kenasuzuki5555@gmail.com"
] | kenasuzuki5555@gmail.com |
c33c3cd6b490180311949674a4d75be23c9460a2 | d225ec04301d8abd681d68ad8d7316befc404bc1 | /ZShape/EffAcc/python/scans/HF_mean_Jul26_0822_cfg.py | 98b2f5a677e5ee4cc46676ee691f212e59bdae65 | [] | no_license | UMN-CMS/ZShape_Analysis | 372ea0083d6c0bda2dbba30322ef01269501afa8 | 83bff158b21210b048afbcff0af1e803780ad4bd | refs/heads/master | 2020-06-07T10:34:40.227684 | 2013-12-11T16:59:25 | 2013-12-11T16:59:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,891 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Zefficiency")
process.TimerService = cms.Service("TimerService")
process.load('FWCore.MessageService.MessageLogger_cfi')
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(Tr... | [
"klapoetke@physics.umn.edu"
] | klapoetke@physics.umn.edu |
38c5fdece72d56f7bcbfb3b5248229c13aa8ee59 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/cone/_hovertemplate.py | 3c637028a8083bae7ccdf3a39f4841515b2f1f4c | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 462 | py | import _plotly_utils.basevalidators
class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(self, plotly_name="hovertemplate", parent_name="cone", **kwargs):
super(HovertemplateValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_n... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
3eca86473a9749a1bbc3ab1aca086db203b169af | 74549d7c57b4746ac2a9c275aa12bfc577b0e8af | /s10-binomial-distribution-2.py | 27007133f603c4c064b9ed87e4af497279a87ac7 | [] | no_license | abidkhan484/hackerrank_solution | af9dbf6ec1ead920dc18df233f40db0c867720b4 | b0a98e4bdfa71a4671999f16ab313cc5c76a1b7a | refs/heads/master | 2022-05-02T11:13:29.447127 | 2022-04-13T03:02:59 | 2022-04-13T03:02:59 | 99,207,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # simple combinatorics function
def make_combination(n, r):
total = 1
for i in range(n, r, -1):
total *= i
another = 1;
for i in range(1, n-r+1):
another *= i
return total//another
per, n = map(int, input().split())
m = per/100
f = 1-m
# here n is given
# an... | [
"noreply@github.com"
] | abidkhan484.noreply@github.com |
3714ce8af050192333d20ec59002878346fb5da6 | 21b632797ed6257b13574c341cdd14e6534728a9 | /ryu/services/protocols/bgp/core_managers/import_map_manager.py | d8cf2061205ee3c83bca35749a3f35a99c6e295c | [
"Apache-2.0"
] | permissive | MrCocoaCat/ryu | 0473f04e2a840e027e9002f8a6af81745eaf7094 | 9e9571991a73380099b7ba7c6f37e0e587080a6a | refs/heads/master | 2021-06-19T18:09:52.833590 | 2020-05-12T08:17:21 | 2020-05-12T08:17:21 | 163,072,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | # Copyright (C) 2014 Nippon Telegraph and Telephone Corporation.
#
# 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 ... | [
"MrCocoaCat@aliyun.com"
] | MrCocoaCat@aliyun.com |
a92e4690cf8c011236ab60eeba0847e5f795f283 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch32_2020_10_05_23_07_30_594875.py | 2e8fa540b4ab9b7206840a459992dcdb7ad4fc95 | [] | 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 | 504 | py | def eh_primo (x):
if x==2:
return True
elif x==0 or x==1:
return False
elif x%2==0:
return False
else:
n = 3
while n < x:
if (x%n==0):
return False
n += 2
return True
def lista_primos(n):
lista=[]
... | [
"you@example.com"
] | you@example.com |
a97f9451317c6d180f49f4674cc81946692b8d23 | 99d7765da35926279c4a4fd7313d55908786f4b8 | /1/6/16430/16430.py | 1e3c8533a1f2043110a0fc4ed79406f643227518 | [
"MIT"
] | permissive | chr0m3/boj-codes | b8294c5d4d10a5af25b5276427bccd74d0866ef5 | d71d0a22d0a3ae62c225f382442461275f56fe8f | refs/heads/master | 2021-08-16T15:24:57.733088 | 2021-03-22T13:13:10 | 2021-03-22T13:13:10 | 91,523,558 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | p, q = map(int, input().split())
print(f'{q - p} {q}')
| [
"chr0m3@users.noreply.github.com"
] | chr0m3@users.noreply.github.com |
63c30b357d61fd697a7bb05865ac5c45128ea635 | 8d78281ec7c97f7a1f2bd1691264c9f95c695c44 | /tests/cloudshell/shell/flows/connectivity/test_basic_flow.py | 33f504a70f995a2684c1f6f9c6544e01beb54d77 | [] | no_license | Costya-Y/cloudshell-shell-connectivity-flow | 2fa15c262741e6668d5242dd264937b9defb3e5d | b5b673394ea3abbd696e0c0c3e66db112ea29a5c | refs/heads/dev | 2020-08-29T15:55:46.914908 | 2019-12-31T10:20:02 | 2019-12-31T10:20:02 | 218,082,417 | 0 | 0 | null | 2019-12-31T10:20:03 | 2019-10-28T15:39:18 | null | UTF-8 | Python | false | false | 18,795 | py | import sys
import unittest
from collections import defaultdict
from cloudshell.shell.flows.connectivity.basic_flow import AbstractConnectivityFlow
if sys.version_info >= (3, 0):
from unittest import mock
else:
import mock
class TestConnectivityRunner(unittest.TestCase):
def setUp(self):
self.log... | [
"saklar13@gmail.com"
] | saklar13@gmail.com |
bec0848a81b788b4b238b6843986dfe763ffa5d0 | f0ccc658a4ff3cbbde0fba7103a592f5e4174ede | /python_scripts/array_to_csv.py | 95d55fdc1ceb5b3830a817a167df5739f91924cf | [] | no_license | camilne9/capacitance_sensing | ef1f22344916c164dcaf1a5c4764f045e8ef3b59 | 69ae052e4dda5c7137b8766e0dd3778d4c29e422 | refs/heads/main | 2023-07-17T19:09:26.976691 | 2021-08-24T13:39:20 | 2021-08-24T13:39:20 | 371,374,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | import numpy as np
def clean_readings(file):
test_text = str(open(file, "r").read())
test_text = test_text.replace("\n", "").replace("c", "").split("!")
if test_text[-1] == '':
test_text = test_text[:-1]
test_text = list(map(int, test_text))
# test_text = [int(n) for n in test_text]
ret... | [
"="
] | = |
28ee6414a5105d1a448f620283c38a15db6ad471 | 22b348a0d10519cb1f1da5e886fdf2d3c167cf5a | /myweb/test/process_and_thread/process_pool.py | 40327c8eaf583b29e545d79f03339cef6cfa5720 | [] | no_license | liuluyang/openstack_mogan_study | dab0a8f918ffd17e0a747715998e81304672b75b | 8624f765da7f5aa0c210f0fa945fc50cf8a67b9e | refs/heads/master | 2021-01-19T17:03:15.370323 | 2018-04-12T09:50:38 | 2018-04-12T09:50:38 | 101,040,396 | 1 | 1 | null | 2017-11-01T02:17:31 | 2017-08-22T08:30:22 | Python | UTF-8 | Python | false | false | 795 | py | #coding:utf8
from multiprocessing import Pool, Queue
import os, time, random
from func_timelimit import timelimit
def run_task(name, dic):
print '>>running subprocess %s %s'%(name, os.getpid())
start = time.time()
t = random.random()*5
#q.put(t)
print '%s %s seconds'%(name, t)
dic[str(name)]... | [
"1120773382@qq.com"
] | 1120773382@qq.com |
86e9d58503eb39505c1cdfea8b5bd5062eafe9c1 | 1cbcf8660d3ea833b0a9aa3d36fe07839bc5cfc5 | /apps/sources/urls/__init__.py | ee8ebc15833facc2bdce9b14a904a01d952a5142 | [] | no_license | zhanghe06/migration_project | f77776969907740494281ac6d7485f35d4765115 | 0264b292873b211bfeca0d645cc41abc9efe883f | refs/heads/master | 2022-12-12T10:55:43.475939 | 2019-09-29T09:19:13 | 2019-09-29T09:19:13 | 185,584,884 | 0 | 1 | null | 2022-12-08T05:04:58 | 2019-05-08T10:31:57 | Python | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: __init__.py.py
@time: 2019-04-26 15:08
"""
def func():
pass
class Main(object):
def __init__(self):
pass
if __name__ == '__main__':
pass
| [
"zhang_he06@163.com"
] | zhang_he06@163.com |
6119eb93479a5c4b7d009bdded86a2573afc5664 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/online_deployment.py | bf4e19792c0cc99b7263b292a817411e57550c25 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,422 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
d98d69b0f693f721bf162cd0c313dc2b3928eebb | feeea4b64dce63ac52bb09c76a910693fe24f825 | /seller_profile/admin.py | 22384709a833c50699571628ee9768c84e925793 | [] | no_license | samirpatil2000/Django_eCommerce | bf7a8795cb5dc6de8edfa4a7198c9c44cc929464 | 06c9d9cae4d95717c7decff8dede364bca421fc2 | refs/heads/master | 2023-01-09T00:14:20.631124 | 2020-10-25T17:36:36 | 2020-10-25T17:36:36 | 299,405,048 | 0 | 0 | null | 2020-10-25T17:35:43 | 2020-09-28T19:00:52 | JavaScript | UTF-8 | Python | false | false | 317 | py | from django.contrib import admin
from seller_profile.models import SellerCategory,SellerProfileCreateAdmin,SellerProfileForUser#,SellerProfile,SellerProfileOption
# Register your models here.
admin.site.register(SellerCategory)
admin.site.register(SellerProfileCreateAdmin)
admin.site.register(SellerProfileForUser)
| [
"samirspatil742099@gmail.com"
] | samirspatil742099@gmail.com |
114728d113bb56fcfcb2b9988d92ca36b4afd0e5 | f4b38f013019443a2039bbc2d8e2f17c254ce4cf | /02_Text/text_33.py | b98fc6316a18cc6e2898f8a9325385de432c5304 | [] | no_license | JSerwatka/Idea-Bag-2 | 174ee39972cf3ee5ce4878528df642c980022835 | 2079986910daba036e567e40c85ae1f7e3a25ae0 | refs/heads/master | 2023-02-11T16:18:14.004096 | 2021-01-05T13:17:58 | 2021-01-05T13:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | # Username generator
def username_switch(name, surname, version):
if version == 1:
return name[0] + surname
elif version == 2:
if len(surname) >= 4:
return name + surname[:4]
else:
return name + surname
elif version == 3:
if len(name) >= 4:
... | [
"kubaserw@gmail.com"
] | kubaserw@gmail.com |
116e8304f98b86b3e36cf2e87dcf769af42d0991 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/75_14.py | 64f51f46ad1d2e39b8079f03165ead0585d15a76 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,001 | py | Python – Nested record values summation
Sometimes, while working with records, we can have problem in which we need to
perform summation of nested keys of a key and record the sum as key’s value.
This can have possible applications in domains such as Data Science and web
development. Lets discuss certain ways... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
ad4a5d5108cea41331fd075513f75433fc01fb2e | 9424fd0c7d04364c28e19078d89a74d0ba0db7b1 | /test_speed.py | 82983c94a42c15d8afdc18da47899235b578aea9 | [] | no_license | miracleyoo/linux-noise-detect-with-DL | 66035dbe68a5ad07faf6c4bdd6dcd180b3fbd240 | f96ed9267ee8c47d93336dc29e401c053b378f12 | refs/heads/master | 2020-03-29T04:25:27.118286 | 2018-10-04T22:17:55 | 2018-10-04T22:17:55 | 149,530,919 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | # coding: utf-8
# Author: Zhongyang Zhang# coding: utf-8
# Author: Zhongyang Zhang
import torch
import os
import numpy as np
import time
from torch.autograd import Variable
from models import miracle_net, miracle_wide_net, miracle_weight_wide_net, miracle_lineconv_net
time_elapsed = []
class Config(object):
def ... | [
"786671043@qq.com"
] | 786671043@qq.com |
e1d64cc60c1716cdb7a0af7f8ffb59ad72b877a5 | e6b81f7baea244e5d9b2a0850bd0e8d24802bacf | /cartpole/ppo_lstm.py | 4be1e79a84f6363646f0f64f32b90fe417bc3292 | [
"MIT"
] | permissive | leaderj1001/bag-of-rl | 0a28dd259aa0630ebf97c9a0ee3b06fa01c64586 | 154d83a7fca3ec0bc06a49da17f6b28527d04a94 | refs/heads/master | 2022-11-21T01:36:35.779014 | 2020-07-27T08:46:12 | 2020-07-27T08:46:12 | 282,787,927 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,873 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.distributions import Categorical
from config.cartpole_config import load_args
from environment.load_environment import load_env
from draw_plot.draw_plot import draw_plot
import numpy as np
from collections import... | [
"leaderj1001@gmail.com"
] | leaderj1001@gmail.com |
0821ea4405107f34aa6297c9341eb247b5a5495b | 81555545cd6e294472dce05489155829ae7064dc | /year2020/day19/tests/test_year2020day19.py | 3da30cd38e313c38dcb983fb26c0b7128b3e8b36 | [] | no_license | flxdot/adventofcode | b9a6d2f6dd39350e964386edc646e21061c2a74e | aa4275cc70443e391b79b76c6fd1c6d505400275 | refs/heads/main | 2023-02-05T12:07:42.614646 | 2020-12-25T14:57:03 | 2020-12-25T14:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | from os.path import join, relpath, dirname
import pytest
from common import read_input
from year2020.day19.year2020day19 import solve_part1, solve_part2, input_converter
def test_solve_part1():
test_input = read_input(
join(relpath(dirname(__file__)), "test_input.txt"), input_converter
)
assert 1... | [
"Felixfang@gmx.de"
] | Felixfang@gmx.de |
4d4e624ce012d9aec15fbdac7e991598b17632a9 | d20dcb6d0ba07d63d7ad2b7b70de21c9c279637b | /IPTVPlayer/tsiplayer/addons/resources/hosters/vidia.py | 2c2018a34f3f34615aba1d5765fd131487cb412e | [] | no_license | Blindspot76/e2iPlayer | 82a72253c22f06063cd4f5957645d4845ddbd551 | 04c5bdb7bf1eddd8f010765ce233cc8f33d4c241 | refs/heads/master | 2023-07-19T18:03:58.447200 | 2023-07-11T15:48:02 | 2023-07-11T15:48:02 | 194,056,681 | 18 | 26 | null | 2019-10-25T08:42:30 | 2019-06-27T08:38:57 | Python | UTF-8 | Python | false | false | 2,338 | py | # -*- coding: utf-8 -*-
# vStream https://github.com/Kodi-vStream/venom-xbmc-addons
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.lib.handler.requestHandler import cRequestHandler
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.lib.parser import cParser
from Plugins.Extensions.IPTVPlayer.... | [
"echosmart76@gmail.com"
] | echosmart76@gmail.com |
88d19465abe109f81a53e287e9011c7c241c33a7 | 351ad84952502794f5acf55344c4ea230b5c6327 | /main.py | 633aeeba41935f95144b55305e580fa44f0c5afe | [] | no_license | Artemis21/guessers-and-liars | 0d44a65f2a81c867009813d858842e301cda7fe0 | b07e01839f15c9ecb89c206bb1378c73f5fad500 | refs/heads/main | 2023-03-22T00:10:33.571719 | 2021-03-20T12:26:57 | 2021-03-20T12:26:57 | 346,054,126 | 1 | 2 | null | 2021-03-12T19:28:33 | 2021-03-09T15:32:10 | Python | UTF-8 | Python | false | false | 10,259 | py | """The entrypoint that runs the submissions."""
import argparse
import contextlib
import itertools
import logging
import random
import string
import time
from collections import defaultdict
from typing import Any, Callable
import guessers
from guessers import * # noqa:F401,F403 - Needed to load guessers, not used.
... | [
"artemisdev21@gmail.com"
] | artemisdev21@gmail.com |
7dcd05417367f56d9b502903fc65a044e25850f2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03555/s560161145.py | 4e09ebde07bd8614c1e311e91f113cd5836bdbc9 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from sys import stdin
from sys import setrecursionlimit
setrecursionlimit(10 ** 7)
s = input()
t = input()[::-1]
if s == t:
print("YES")
else:
print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f98ecbe21a7c222408c8392153ca6c61011f509d | 508100dd49629021d4dcc7c761ee64fac5e0210b | /tests/watson/framework/debug/test_listeners.py | c11f95dd4d8b436ae1706e0c8c96ab6c61890e28 | [
"BSD-2-Clause"
] | permissive | watsonpy/watson-framework | e3f4c92ea9c35e789365a8a007bb883ad5dee928 | ffe157cb3fe24366ee55869d4260cce778012b4a | refs/heads/master | 2021-05-24T02:48:19.753723 | 2019-10-03T04:28:39 | 2019-10-03T04:28:39 | 16,093,806 | 69 | 8 | BSD-3-Clause | 2021-03-29T20:36:27 | 2014-01-21T05:39:46 | Python | UTF-8 | Python | false | false | 563 | py | # -*- coding: utf-8 -*-
from watson.events import types
from watson.framework import applications
from watson.framework.debug import listeners, toolbar
class TestInit(object):
def test_execute(self):
app = applications.Http({
'debug': {
'enabled': True,
'toolbar... | [
"simon.coulton@gmail.com"
] | simon.coulton@gmail.com |
3d8c06b5272f5ad9d974d67356e3e093a4e06221 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab7/set2/JOHN J WELSH_11325_assignsubmission_file_lab7/lab7/P1.py | 421b9a77bd8b981102469a88d51cd2e0fc01e218 | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from sys import argv
op, num1, num2 = argv[1], float(argv[2]), float(argv[3])
if op == '*':
answer = num1 * num2
print answer
elif op == '+':
answer = num1 + num2
print answer
elif op == '-':
answer = num1 - num2
print answer
elif op == '/':
try:
answer = num1 / num2
print answer
except:
print "denomin... | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
50b287276d1e95e9dba89ac5b8f895a115fa4bf2 | 8159c2c650d53fb188a26b508dfff524296707d1 | /pages/orders/view_intorders.py | c2c7ca92fa78f24aee3745dc92f2b5ed434f6e00 | [] | no_license | Teifion/Rob3 | 501663bf5077da0c28a7db4960c74c4477dd11bf | 81fc2f9930434b5a4de52b75eb6a8d78dd708f77 | refs/heads/master | 2021-01-16T19:20:29.666426 | 2011-05-30T13:34:17 | 2011-05-30T13:34:17 | 1,819,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | import database
from pages import common
from functions import player_f, order_post_f
from queries import team_q
from classes import world
page_data = {
"Title": "Orders",
"Admin": True,
}
def main(cursor):
team_id = int(common.get_val("team", 0))
turn = int(common.get_val("turn", -1))
if team_id < 1:
retu... | [
"sarkalian@gmail.com"
] | sarkalian@gmail.com |
b99a4eae4e4583ed6b940cbef217176715cf593d | f879be78003d04f5332ea18373ef0de1a17f5817 | /ververica_sdk/rest.py | 71c143ea3b366e12c38ef79e2a122c34f6a057ae | [] | no_license | justlikemikezz/ververica-sdk | 8228b1d1e9bb9c0530842162f771f7708d1b1555 | b946aa879cc80ad25b8c746b8c2cdc6bde086cbb | refs/heads/master | 2020-12-22T15:58:27.469611 | 2020-01-29T00:33:21 | 2020-01-29T00:33:21 | 236,849,548 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,199 | py | # coding: utf-8
"""
Ververica Platform API
The Ververica Platform APIs, excluding Application Manager. # noqa: E501
OpenAPI spec version: 2.0.0
Contact: platform@ververica.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import io... | [
"michael.handria@bird.co"
] | michael.handria@bird.co |
21c1870bb24d6f27bf02ee338b50950ac84f69b7 | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/pgadmin4/config.py | a6afa45ebd5cd3ed8b95b641d902542d11672f09 | [
"MIT",
"PostgreSQL"
] | 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 | 13,036 | py | # -*- coding: utf-8 -*-
##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# config.py - Core application configuration settings
#
############... | [
"jhkuang11@gmail.com"
] | jhkuang11@gmail.com |
a93b91f27a24723613597d8499c8abf18a5d11e3 | f90c6c9d716fb242c96c9f9274359c5d98e8c9d6 | /test/irreps/test_character_tables.py | 9340f255821cc17d1606ec5478576cfbeecbbe5d | [
"MIT"
] | permissive | biswa79230/upho | fded06de8d00fb297e27753ee7e008f869855cc7 | 838f19584bd939eb0552050b3a7f1ed356956ff4 | refs/heads/master | 2021-05-08T23:47:07.741943 | 2017-06-12T11:41:16 | 2017-06-12T11:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division,
print_function, unicode_literals)
__author__ = "Yuji Ikeda"
import unittest
from upho.irreps.character_tables import character_tables
class TestCharacterTables(unittest.TestCase):
def test_ir_... | [
"ikeda@IKEDA-MBA.local"
] | ikeda@IKEDA-MBA.local |
d61806ed564f8096f9b891f5bd4285819d7691ba | d65128e38be0243f279e0d72ef85e7d3c5e116ca | /base/site-packages/django/db/backends/mysql/validation.py | 2ce957cce7655af41b6550fc286a1e4845b536dc | [
"Apache-2.0"
] | permissive | ZxwZero/fastor | 19bfc568f9a68f1447c2e049428330ade02d451d | dd9e299e250362802032d1984801bed249e36d8d | refs/heads/master | 2021-06-26T06:40:38.555211 | 2021-06-09T02:05:38 | 2021-06-09T02:05:38 | 229,753,500 | 1 | 1 | Apache-2.0 | 2019-12-23T12:59:25 | 2019-12-23T12:59:24 | null | UTF-8 | Python | false | false | 829 | py | from django.db.backends import BaseDatabaseValidation
class DatabaseValidation(BaseDatabaseValidation):
def validate_field(self, errors, opts, f):
"""
MySQL has the following field length restriction:
No character (varchar) fields can have a length exceeding 255
characters if they h... | [
"edisonlz@163.com"
] | edisonlz@163.com |
4a2817560b7af0f3319d5e81d2164525c32d7178 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/M/monkeycycle/franklin_expedition_-_ship_log.py | a3586af54ead5790cd29fc011cbd582e3b70936a | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,232 | py | import scraperwiki
import urllib2
import time
import datetime
import dateutil.parser
from time import strftime
from datetime import datetime
from BeautifulSoup import BeautifulSoup
def removeNL(x):
"""cleans a string of new lines and spaces"""
s = x.split('\n')
s = [x.strip() for x in s]
x = " ".join... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
f6793fc303c600dd732c2c7b8a34c1cc2a185761 | 2ee9ed1db1d869bb3e15c1574c265bc12b4d1d5c | /food_menu/manage.py | debb23ed0c8e6bd2b1adf45148d9c5300f825c23 | [] | no_license | raviteja2250/FoodMenu | 92c34b8895bd48c8145b7ad85f2a87b1b62c5897 | 800adcca453b2f2264be8772ef73602c8f53f285 | refs/heads/master | 2023-03-21T05:49:38.576533 | 2021-03-05T04:38:47 | 2021-03-05T04:38:47 | 344,691,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'food_menu.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"raviteja.damera1@gmail.com"
] | raviteja.damera1@gmail.com |
a96d6048e1d28e4c361b9247f52d993ff4ecb761 | 994e5b7156a8c1429238facc1463ad1846f1a89a | /models/official/vision/beta/modeling/layers/roi_sampler.py | 7f96caf97777c11763957c7674ac35d74cb8d365 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/Felect_M46O | f0c2a9a6c48695705e0b68c92c3a414bacfaa599 | 6d8b80e216c40233d2c1b9e51fe6f605a3b5ef4b | refs/heads/main | 2023-04-22T11:33:59.448117 | 2021-05-06T13:01:12 | 2021-05-06T13:01:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,112 | py | # Copyright 2020 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... | [
"noreply@github.com"
] | TrellixVulnTeam.noreply@github.com |
330b7d016ebdac103a00cb382eaf4bced90e6bd7 | 5a1a695829a2d1dbf4daa0736f0fbd6feffc7e63 | /swexpert/5207(이진탐색).py | ad1cd5e9792473d9b1e586f1ea1716ac94f33e10 | [] | no_license | juyi212/Algorithm_study | f5d263c5329c994a457bbe897e5e1405d2b1d67a | f225cc593a50b74686111f654f7133707a1d1310 | refs/heads/master | 2023-03-21T20:02:36.138688 | 2021-03-16T14:16:40 | 2021-03-16T14:16:40 | 325,008,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py |
# def check(l, r, value): # 이진탐색
# global cnt
# m = (l+r)//2
#
# if n_arr[m] == value:
# cnt += 1
# return
# elif l <= r:
# if value < n_arr[m]:
# check(l, m-1, value)
# if n_arr[m] < value:
# check(m+1, r, value)
# else:
# return
for... | [
"dea8307@naver.com"
] | dea8307@naver.com |
4c812f1ef94db29bba3e25d8817db6c9ba3f4696 | ce990be34e8759efb96b890d9676da313fd2d9b4 | /tests/python/unittest/test_tir_transform_lower_cross_thread_reduction.py | 2bf898e66b083f30797c1401f23a7579ebb34776 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | tmoreau89/tvm | 291c0b1beb13503e18b1e45f135aaf334660b68d | 8136173a631bf6c7274d26285349225fcf6e495f | refs/heads/master | 2022-11-23T08:36:24.853648 | 2022-11-21T07:36:57 | 2022-11-21T07:36:57 | 119,757,672 | 5 | 1 | Apache-2.0 | 2019-03-22T23:06:53 | 2018-01-31T23:41:33 | Python | UTF-8 | Python | false | false | 59,882 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | tmoreau89.noreply@github.com |
a5e33a6d7bf392afe77d912d9701cac934c7f24b | 15bfc2b3ba52420d95ed769a332aaa52f402bbd2 | /video/v1/subscribed_track/read-default/read-default.6.x.py | 9ae33ae14c08a0ebce1d8b1cc220ad3b46f609a5 | [] | no_license | synackme/sample-code | 013b8f0a6a33bfd327133b09835ee88940d3b1f2 | 5b7981442f63df7cf2d17733b455270cd3fabf78 | refs/heads/master | 2020-03-17T04:53:07.337506 | 2018-05-07T16:47:48 | 2018-05-07T16:47:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
subscribed_tracks = client.... | [
"jose.oliveros.1983@gmail.com"
] | jose.oliveros.1983@gmail.com |
c35529a0e41e4c840dc44632dd214d8af6984f38 | 50b55d45583e9306ce213d3f4adefae5f66eff43 | /nova/tests/unit/policies/test_server_metadata.py | 89c6480adcaf94431b998b588d5d1a1cb8b7affa | [
"Apache-2.0"
] | permissive | sapcc/nova | 8530103677154af0878f877b4d73c072b17fb789 | 4dec35ff7519b200d4b9a5c0fa0a43754a1a5e27 | refs/heads/stable/xena-m3 | 2023-08-24T18:05:42.977197 | 2023-08-10T12:44:52 | 2023-08-22T13:42:03 | 64,930,457 | 2 | 8 | Apache-2.0 | 2023-08-31T16:49:05 | 2016-08-04T11:50:26 | Python | UTF-8 | Python | false | false | 8,938 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"gmann@ghanshyammann.com"
] | gmann@ghanshyammann.com |
c27d058124194e3fb16e6a7a533dadabbcccf5ba | cf29e004d22a6f72416011e3f6c5b858b8622bd4 | /otherConfessions.py | 43360ab4d847903a9c2148a9b5a7df245085cf87 | [] | no_license | paularindam/FacebookConfessions | a60bf8b3c034ad83d5b51ec15a135a4a475ab9f3 | 82c4056232a96979fff0ef3a57cdba468fd2c6b5 | refs/heads/master | 2021-01-10T05:26:00.199206 | 2015-12-17T22:43:31 | 2015-12-17T22:43:31 | 48,202,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | import re
import urllib2
from BeautifulSoup import BeautifulSoup
# Only scraping first confession boards
lines = open("FCB.dat").readlines()
page_ids = []
notFound = []
#dictionary1 = {}
#dictionary2 = {}
for line in lines:
values = line.split("\n")[0].split("\t")
if "facebook" in values[4]:
ids = values[4].rspl... | [
"arindampaul.bits@gmail.com"
] | arindampaul.bits@gmail.com |
ce2e3dbe2eb3189fa969bcd91f668c917c3a8a98 | 9d37379564162512b54409fec469d44edfc2315b | /setup.py | a10373dce0f7e24f2b958e5b0d469bfc5fbeb164 | [
"BSD-3-Clause"
] | permissive | christopher-burke/crispy_notes | e5396f1c243ee859b437f449c3897eda9f418cc9 | 23d1384cf0cc53e205fe9336d3c716561b2e275e | refs/heads/master | 2020-12-24T17:26:22.084485 | 2014-11-22T03:49:45 | 2014-11-22T03:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='crispy_notes',
version='0.1',
... | [
"christopherjamesburke@gmail.com"
] | christopherjamesburke@gmail.com |
b0139f38b34616facba97b089b10ef5680e423c9 | 0fa2591db7643b85de1ff433f04434b9e1048412 | /dataset_toolkit/Export/TFRecordExport.py | 7794b11ccd243eb477b6fbedb65ad142661862e0 | [
"MIT"
] | permissive | PeloriTech/DatasetToolkit | dec0a859f403aa1ccf654682cd10f3fbcef27d05 | e11e709b59b8d3bbc0e322489f02f1307f251368 | refs/heads/master | 2020-12-01T13:57:19.772226 | 2020-01-12T23:24:02 | 2020-01-12T23:24:02 | 230,649,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,899 | py | import os
import cv2
import hashlib
import numpy as np
from lxml import etree
import tensorflow as tf
import xml.etree.cElementTree as ET
from dataset_toolkit.Export.AbstractExport import AbstractExport
from dataset_toolkit.Model.AnnotationModel import AnnotationModel
class TFRecordAnnotationSave(AbstractExport):
... | [
"samcrane8@gmail.com"
] | samcrane8@gmail.com |
23a7089456d5df65a8c2e17485c133052be87fd2 | 80760d4c8a6b2c45b4b529bdd98d33c9c5509438 | /Practice/atcoder/ABC/139/src/b.py | 0f398f231c752e28f2fa15741f6d2ae41739f9ac | [] | no_license | prrn-pg/Shojin | f1f46f8df932df0be90082b475ec02b52ddd882e | 3a20f1122d8bf7d95d9ecd205a62fc36168953d2 | refs/heads/master | 2022-12-30T22:26:41.020473 | 2020-10-17T13:53:52 | 2020-10-17T13:53:52 | 93,830,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # 1つだけaであとはa-1個
# a, b = map(int, input().split())
# if b <= a:
# print(1)
# else:
# cur = a
# c = 1
# while cur < b:
# c += 1
# cur += a - 1
# if cur -
# print(c)
# なぜかダメなので愚直
a, b = map(int, input().split())
c = 0
cur = 1
while True:
if cur >= b:
break
cur += a ... | [
"h4l@yahoo.ne.jp"
] | h4l@yahoo.ne.jp |
fecff2001f5b8b09615cad652eda85b5c2183b78 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D01A/CONDPVD01AUN.py | 8380648879c488e987d107b7ab971b1c9eb6a693 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,124 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD01AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 9},
{ID: 'AUT', MIN: 0, MAX: 2},
{ID: 'FTX'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
80096b3cfe3e80d4a23359538090778b71c07f99 | 70022f7e5ac4c229e412b51db248fdd08a0a5b28 | /src/preprocessing/profile_tools/cleaner.py | d59789b95b6951718b018fd1b5126c27fd5268e5 | [] | no_license | agrippa/chimes | 6465fc48f118154e9d42fbd26d6b87a7dce7c5e9 | 695bb5bb54efbcd61469acda79b6ba6532e2d1d9 | refs/heads/master | 2020-12-25T14:02:17.752481 | 2016-07-04T02:20:59 | 2016-07-04T02:20:59 | 23,259,130 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | #!/usr/bin/python
import os
import sys
import shutil
def replace_allocation(line, basename):
index = line.find(basename + '_wrapper')
while index != -1:
comma_offset = index
while line[comma_offset] != ',':
comma_offset += 1
paren_offset = comma_offset
paren_nesting ... | [
"jmaxg3@gmail.com"
] | jmaxg3@gmail.com |
009716f68ffca88aca1676178fe7e2d83aa5939c | 107e62a03254c9ebe2e1830977a47861633b0d33 | /Babu.py | eb00b2495b450b4549c2de37450c7a9257749f62 | [] | no_license | prasanna-ranganathan/mypython | bb798c0782cfb79a27b0730e924921b802da2a44 | 25fa93602e2465ec6ccb0c3ff30a2bbf90da96e4 | refs/heads/master | 2021-06-03T18:35:31.129399 | 2016-08-28T14:21:44 | 2016-08-28T14:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | #http://ideone.com/bOxFqJ
#http://stackoverflow.com/questions/4223313/finding-abc-mod-m
def totient(n) :
result = 1
p = 2
while p**2 <= n :
if(n%p == 0) :
result *= (p-1)
n /= p
while(n%p == 0) :
result *= p
n /= p
if p==2:
p ... | [
"prassanna.mit@gmail.com"
] | prassanna.mit@gmail.com |
3d42e364a78fc0dcc0b9e514ccccd53acc212f07 | aa99c064c1214dc0e88384055e715f0db89ca541 | /config/logging_example.py | 11bb94d23fcab9cc74ba030f1a2362bc227bd8e5 | [
"MIT"
] | permissive | sartography/cr-connect-workflow | 2624abfe91136e47c0c92482e28bf405752e7cb4 | 8755bc8b291f763e7f0630582c2816dc03d3321a | refs/heads/dev | 2023-06-22T23:01:52.004441 | 2023-06-07T19:29:41 | 2023-06-07T19:29:41 | 221,730,216 | 6 | 4 | MIT | 2023-05-02T22:15:45 | 2019-11-14T15:34:05 | Python | UTF-8 | Python | false | false | 1,408 | py | # This is the basic logging file, but with some additional details like SMTP Configuration
# which we will want to use on the production servers, which will fire off emails to administrators
# in the event of a failure.
logging_config = {
'version': 1,
"loggers": {
"console": {
"level": "DEBUG",
"pr... | [
"daniel.h.funk@gmail.com"
] | daniel.h.funk@gmail.com |
c2efaab99b3c4a774c346e428ec01c51b2f7d25f | faa31cd7358ed6badda3207a22b9134bdb580618 | /scripts/VOCProc.py | c87852493a6384a714daf66d4f6b342ddfe81892 | [
"MIT"
] | permissive | lotusPlant/CvPytorch | 91261156d42478a5d67bf9608dbd540345dc15f1 | 0ad04222ba929c52be180cbf212bc07f416e3c85 | refs/heads/master | 2023-06-08T18:10:11.547918 | 2021-06-25T00:55:49 | 2021-06-25T00:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | # !/usr/bin/env python
# -- coding: utf-8 --
# @Time : 2020/7/30 13:16
# @Author : liumin
# @File : VOCProc.py
import os
import shutil
import sys
import cv2
from glob import glob
def produceImgAndLabelList():
root_path = '/home/lmin/data/VOCdevkit/'
stages = ['train','val']
years = ['VO... | [
"569793357@qq.com"
] | 569793357@qq.com |
59d13764e22d0e32ba04e35010a73045375536ff | 4351a81d4a4fae778711643cb9644534e595920d | /Python 3/LeetCode/lc889_pre_post.py | 99be3a564daaf89b7f7fd89f62c752673798cc8a | [] | no_license | nsmith0310/Programming-Challenges | ba1281127d6fa295310347a9110a0f8998cd89ce | 7aabed082826f8df555bf6e97046ee077becf759 | refs/heads/main | 2023-08-13T14:47:10.490254 | 2021-10-13T04:35:57 | 2021-10-13T04:35:57 | 416,565,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | 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 recur(self,pre,post):
if pre!=[]:
val = pre[0]
node = TreeNode(val)
del pre[0]
... | [
"92414264+nsmith0310@users.noreply.github.com"
] | 92414264+nsmith0310@users.noreply.github.com |
9573c7dde4e21a24689f417b2c5b8b2a9e1899e4 | a48cff82e98279e19c0f759ff15974e6ace4feab | /docs/myServices_services.py | 2ac1d6c549e09d1262633ab2f40d914d01c0f1df | [
"MIT"
] | permissive | LamCiuLoeng/jcp | 59cd503f3553a7fd2cc966ac9d39bac0036c2688 | a9efaa5fe26714465a690e1bc0d820713bf11080 | refs/heads/master | 2021-01-22T11:20:41.772418 | 2014-05-30T09:18:04 | 2014-05-30T09:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | ##################################################
# JCPenney_x0020_Ticket_x0020_Request_x0020_Web_x0020_Service_services.py
# generated by ZSI.generate.wsdl2python
##################################################
from JCPenney_x0020_Ticket_x0020_Request_x0020_Web_x0020_Service_services_types import *
import urlp... | [
"lamciuloeng@gmail.com"
] | lamciuloeng@gmail.com |
2956c3278b1c1236465de7e36ffa543a32494c79 | 89272b8a4adae8641250972e36f73334b7341cac | /test_file.py | af02b791cd4c3fd5ce927c8f654b8370d1f03763 | [] | no_license | BUEC500C1/quality-tufengxu | 75264665f4b1d824070c4c78c89d96c7c90976ca | 8861ff10aef9fb8cc5489ec8c1100d07dab65f2e | refs/heads/master | 2020-12-19T08:31:46.319646 | 2020-01-27T22:53:36 | 2020-01-27T22:53:36 | 235,681,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from int_to_Roman import int_to_Roman
def test_ans():
assert int_to_Roman(14) == 'XIV'
assert int_to_Roman(18) == 'XVIII'
assert int_to_Roman(80) == 'LXXX'
assert int_to_Roman(99) == 'XCIX'
assert int_to_Roman(199) == 'CXCIX'
assert int_to_Roman(1437) == 'MCDXXXVII'
assert int_to_Roman(188... | [
"noreply@github.com"
] | BUEC500C1.noreply@github.com |
c17541efc3971e5f8c8642e05370e568466390aa | 12c64f1ba1fbd4e54c56f4356f1a732f36b7a735 | /backend/schema/attendant_schema.py | a93916c70336eb8090cd19df2360a8dbd948f440 | [] | no_license | KivutiBrian/ddd_solution | 42be736c82aa62fa101b838d315351914d41f0f4 | 055103fa8b5cc7820dd60d056afda932cf46c243 | refs/heads/main | 2023-05-08T14:35:13.057676 | 2021-05-06T13:10:38 | 2021-05-06T13:10:38 | 364,589,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from pydantic import BaseModel
from typing import List, Optional, Any
from datetime import datetime
class AttendantBase(BaseModel):
FirstName: str
LastName: str
EmailAddress: str
PrimaryNumber: str
class AttendantPost(AttendantBase):
Password: str
class Attendant(AttendantBase):
Id: str
P... | [
"briankivuti1@gmail.com"
] | briankivuti1@gmail.com |
92e5b024a8c4a2bda6536f519e3ab2010da0e6f6 | 62f58189f7969cf4c9aa849006bb937dacb012f4 | /social_auth/backends/contrib/orkut.py | ebd3021bc8c15174d8f188db0f5393c33e2289b0 | [
"BSD-2-Clause"
] | permissive | statico/django-social-auth | d629d47a07503c624fac0152aea2ac21ad894a74 | 472cc13ccbea47b7c2f13af06e2c1fa439c2fbd7 | refs/heads/master | 2021-01-15T20:33:00.707700 | 2011-04-27T07:48:01 | 2011-04-27T07:48:01 | 1,669,508 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | """
Orkut OAuth support.
This contribution adds support for Orkut OAuth service. The scope is
limited to http://orkut.gmodules.com/social/ by default, but can be
extended with ORKUT_EXTRA_SCOPE on project settings. Also name, display
name and emails are the default requested user data, but extra values
can be specifie... | [
"matiasaguirre@gmail.com"
] | matiasaguirre@gmail.com |
edaeab6bbe16f0fbfa37b62c5d7af5c1289dea60 | 8f8d9428c68aa6bb1e6d131c505c217403979955 | /Python/1905. 【认证试题】销售点分布调查.py | 7eaa42feae047cd93f1a770b460975d0f6f0ec9c | [] | no_license | yang4978/Huawei-OJ | fb3799c0f807b853fcfd4574b809fed5740fc6ea | ea3cccb2b070545574fadd64aecd38f73804361d | refs/heads/main | 2023-04-17T22:04:44.526675 | 2021-04-30T03:40:26 | 2021-04-30T03:40:26 | 337,046,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | """
Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
Description: 上机编程认证
Note: 缺省代码仅供参考,可自行决定使用、修改或删除
"""
class Solution:
def point_sale_survey(self, total_sales, relation_map, appoint_sales):
# 在此添加你的代码
result = [1, 1]
queue = [appoint_sales]
layer = 1
... | [
"noreply@github.com"
] | yang4978.noreply@github.com |
0631e20be1cbd8bbd44274d9dc8382e3e6e0245a | 23d3ff8877cc9a019f40f0e3a7c6f62618606ec9 | /video_upload/api/uploads.py | f7ea452789cc36ecaf831779dcb128a505ad87e7 | [] | no_license | themylogin/video-upload | 756ed063fd56a819b3eec7071f3e465a3e69eea9 | 9685854fa90a52d125021d8bb76a955a03d2b2f2 | refs/heads/master | 2021-01-19T05:40:17.653064 | 2017-04-06T14:50:13 | 2017-04-06T15:08:34 | 87,441,124 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | # -*- coding=utf-8 -*-
from flask_restplus import fields, Resource
import logging
from video_upload.app import api
from video_upload.db import db
from video_upload.models import UploadedMediaFile, UploadedMediaFileState
from video_upload.worker.ffmpeg import process_uploaded_media_file
logger = logging.getLogger(__na... | [
"themylogin@gmail.com"
] | themylogin@gmail.com |
4d7c8ca3ff1aff31dfc87eb0fa096df9baaf7c1c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /BxKT4agPnm9ZNpDru_6.py | 6f6d085a9f2a4a8a6cf2590101f3421bc9f297f5 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py |
def zip_it(women, men):
return list(zip(women, men)) if len(women) == len(men) else "sizes don't match"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8e81845a4a93525a29239f220cd46453baa725a3 | 15e73563c0576ecc6186d0995e875c22f8df4bb5 | /instserver/beagle_bone.py | 5435da71e8f2aeaf95dd39b42db28d63bfd4e87b | [] | no_license | JulianMuenzberg/UUServer | 3cbd62dae4f64468a38ca483d1da0e460704a129 | 25e644892a94867f09f0412d8731c7fb36eca5ad | refs/heads/master | 2020-04-20T16:15:08.775331 | 2017-04-11T13:16:44 | 2017-04-11T13:16:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | """
instserver.beagle_bone
----------------------
Simple example of how to run on a beaglebone
"""
import Adafruit_BBIO.GPIO as GPIO
import Adafruit_BBIO.ADC as ADC
from time import sleep
class BeagleBone(object):
def __init__(self):
self.name = 'Beagle'
def blink(self, times):
"... | [
"aquiles@aquicarattino.com"
] | aquiles@aquicarattino.com |
6a529024f0123c4cb313c3c07a6df6800ea2b3ab | b321ca6310cd84bd8603fa9685365bb2a4acc945 | /niuke/2_1_array_classify.py | 4bbe2b2a732221c7401cfc90fc2774dd3a2dafbe | [] | no_license | baixiaoyanvision/python-algorithm | 71b2fdf7d6b57be8a2960c44160f2a7459e153ae | 6cbb61213af8264e083af1994522929fb7711616 | refs/heads/master | 2020-08-27T03:41:08.332322 | 2019-10-02T13:28:49 | 2019-10-02T13:28:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # -*- coding:utf-8 -*-
def classify_arr(arr, num):
left = 0 # 0- left 存储小于num的元素
for i in range(len(arr)):
if arr[i] < num:
arr[left], arr[i] = arr[i], arr[left]
left += 1
if __name__ == "__main__":
arr = [45,2,5,78,2,87,5,4,7,23,45,56,89]
classify_arr(arr, 10... | [
"18310523922@163.com"
] | 18310523922@163.com |
393d4af3265f7bcf958e62b342f8043f936a83a3 | 45129489b5556a70d3caa6020b0f035de8019a94 | /probn/23.03/16.py | 4a5321923448d0d46706fb55fa1a3d968a1ea0a4 | [] | no_license | trofik00777/EgeInformatics | 83d853b1e8fd1d1a11a9d1f06d809f31e6f986c0 | 60f2587a08d49ff696f50b68fe790e213c710b10 | refs/heads/main | 2023-06-06T13:27:34.627915 | 2021-06-23T20:15:28 | 2021-06-23T20:15:28 | 362,217,172 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def f(n):
if n <= 3:
return n
if n % 2 == 0:
return 2 * n + f(n - 1)
else:
return n * n + f(n - 2)
k = []
for i in range(1, 101):
a = f(i)
if a % 3 == 0:
k.append(i)
print(k)
print(len(k))
| [
"noreply@github.com"
] | trofik00777.noreply@github.com |
8c60840f4136d69b4df86c6d239bc096483e2d0b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_175/ch15_2019_03_01_17_14_55_804095.py | 21e4a87b1f380cdc0bf95f13eab150e8063575c3 | [] | 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 | 93 | py | from math import*
def volume_da_pizza(z, a):
resultado = pi*(z**2)*a
return resultado | [
"you@example.com"
] | you@example.com |
946a553810adcd5c1dc3ca4b7155124c40e7d771 | ce32ff8c0ad1ad9e42e6b59e201c70df754aa51e | /farmmonitor/farm/views.py | c332bb7cd5908f0204995857f1f6220419f0d952 | [] | no_license | wangxiaoying/farm-monitor | d7710559194c2771d09012b6dd204bae12669b6e | 413ddaf1a23655f705da8b65978d06b704c81723 | refs/heads/master | 2021-01-10T21:33:35.643549 | 2015-06-16T09:07:14 | 2015-06-16T09:07:14 | 32,635,833 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,310 | py | from django.shortcuts import render
from farm.models import *
from farm.forms import *
from django.views.decorators.csrf import csrf_exempt
from django.db.models import Q
import time as single_time
import simplejson
import numpy as np
from datetime import datetime, timedelta, time
from scipy import interpolate
from ma... | [
"wangxiaoying0369@gmail.com"
] | wangxiaoying0369@gmail.com |
bbfb70c7cc80bb18d1730e40969d18482ce76da8 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_value_list_request.py | 31475aa44e1092e2a4eb2caad78fb6f6c750ebe9 | [
"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 | 4,599 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateValueListRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attri... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
2ce2427ff44bf8fb6c54e7e25fb6f49b6029b588 | f7e5d947d7b6da17923d84dc8140fc3ff6f1dcc4 | /beta/aff.py | 412bf887733e5e3d2dcbbfa76ecd35f40b8f2977 | [] | no_license | liweiye89/JD_Diy | e15bf0fea098a3e6c6d42c208b623a2e8966e396 | cdc028f85d2c883e5e374936723144812169a842 | refs/heads/master | 2023-06-25T18:24:56.072055 | 2021-07-16T12:43:55 | 2021-07-16T12:43:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | from .. import chat_id, jdbot, _JdbotDir, logger
from telethon import events
import asyncio
@jdbot.on(events.NewMessage(from_users=chat_id, pattern=r'^/aff$'))
async def myaff(event):
try:
img_file = f"{_JdbotDir}/diy/aff.jpg"
msg = await jdbot.send_message(chat_id, '感谢您的赞助', file=img_file)
... | [
"chiupam@126.com"
] | chiupam@126.com |
e345e8c76f83820fb7fcbe705b9e633c32eb976b | 898be346f3fd476f625489ec6e85f97240e32ae5 | /LeetCode001TwoSum.py | 686b82f89197048d6322eb3c31b4592c85c12be7 | [] | no_license | lonely7yk/LeetCode_py | e3a0c47f274db8ef3e4540d4d570a874e198dfcd | 67054f724c6c0e1699118248788522cec624b831 | refs/heads/master | 2023-01-10T19:10:13.772069 | 2022-12-29T17:32:50 | 2022-12-29T17:32:50 | 228,568,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | """
Given an array of integers nums and an integer target, return indices of the two numbers such that
they add up to target.
You may assume that each input would have exactly one solution, and you may not use the same element
twice.
You can return the answer in any order.
Example 1:
Input: nums = [2,7,11,15], ta... | [
"893077810@qq.com"
] | 893077810@qq.com |
98b4fd45441665450ed56a9a565c5d3f30b0d9b8 | 5cb756dd1bc779b4bdb81ac70464d2bb39061af7 | /virtual/bin/autopep8 | 5cbd65f077fa9f592553e1f04ff768fc8b6c8997 | [
"MIT"
] | permissive | DuncanArani/blog2 | a8bc324fa3e886817c24dc033fd690149f228d38 | 10169a835d81a88590691ecf3ba2265a2e3380dd | refs/heads/master | 2020-04-02T00:25:02.964316 | 2018-10-22T08:04:28 | 2018-10-22T08:04:28 | 153,803,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | #!/home/dunco/Desktop/blog2/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from autopep8 import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"duncanarani@gmail.com"
] | duncanarani@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.