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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3800854302dd23a2b91645a282642a890b8aa887 | 4809471274d6e136ac66d1998de5acb185d1164e | /pypureclient/flasharray/FA_2_5/models/array_connection_path_response.py | de0fc1399cbe7b264e3b2ab8d767e8ab33deda4c | [
"BSD-2-Clause"
] | permissive | astrojuanlu/py-pure-client | 053fef697ad03b37ba7ae21a0bbb466abf978827 | 6fa605079950765c316eb21c3924e8329d5e3e8a | refs/heads/master | 2023-06-05T20:23:36.946023 | 2021-06-28T23:44:24 | 2021-06-28T23:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from .... | [
"hubert.chan@purestorage.com"
] | hubert.chan@purestorage.com |
e76448cde7ed936c5dde66db96302816ecafc4b1 | 36bdbbf1be53ba5f09b9a2b1dd15e91f8f6b0da1 | /learn/migrations/0004_auto_20181116_1649.py | 2880faadffc2f92d5d293b247452f5857c030eaf | [] | no_license | phufoxy/fotourNew | 801ab2518424118020dc6e5f31a7ba90a654e56a | 6048c24f5256c8c5a0d18dc7b38c106a7c92a29c | refs/heads/master | 2023-04-13T01:34:22.510717 | 2018-12-26T03:46:09 | 2018-12-26T03:46:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Generated by Django 2.1 on 2018-11-16 09:49
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('learn', '0003_auto_20181116_1648'),
]
operations = [
migrations.AlterField(
model_name='speak',
name='... | [
"vanphudhsp2015@gmail.com"
] | vanphudhsp2015@gmail.com |
41d11890310ec3f84d4e94f421d3c69ba64b9cd6 | 5af277b5819d74e61374d1d78c303ac93c831cf5 | /tcc/evaluate.py | 1b7afa40c2f407e4510e06c080a912498d6e67ae | [
"Apache-2.0"
] | permissive | Ayoob7/google-research | a2d215afb31513bd59bc989e09f54667fe45704e | 727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7 | refs/heads/master | 2022-11-11T03:10:53.216693 | 2020-06-26T17:13:45 | 2020-06-26T17:13:45 | 275,205,856 | 2 | 0 | Apache-2.0 | 2020-06-26T16:58:19 | 2020-06-26T16:58:18 | null | UTF-8 | Python | false | false | 5,634 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
108773ee0e769f568f2c93989888421559ae51cc | 07af444dafa5bde373b0730e92d67e455d4ff4df | /SFData/StackOverflow/s50483715_ground_truth.py | 1a82f2ca14d03d0b9d9658ab76abf93061a4d9a0 | [] | no_license | tensfa/tensfa | 9114595b58a2e989780af0c348afb89a2abb04b4 | 415dcfaec589b0b14c5b9864872c912f3851b383 | refs/heads/main | 2023-06-30T14:27:38.217089 | 2021-08-03T01:33:30 | 2021-08-03T01:33:30 | 368,465,614 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | from tensorflow.keras.layers import Activation, Dropout, Flatten, Dense
from tensorflow.keras.layers import Conv2D, MaxPooling2D
from tensorflow.keras.models import Sequential
from tensorflow.keras.preprocessing.image import ImageDataGenerator
import os
img_width, img_height = 150, 150
train_data_dir = os.path.dirnam... | [
"tensfa@yeah.net"
] | tensfa@yeah.net |
fe28322254d51f1964fb264c3851963777900a5d | 7e11a563876a05771152448c8c80cf262f3bbc40 | /python1基础/day10/lambda.py | 805a2a35b789dcbb7d86fc3d0d48ab5ad7f3a71a | [] | no_license | qiujiandeng/- | ee8eb1c828177c9796b3a1bda547aa036c19914d | bb376535ff9f2fe23828bee32efb1d9010aa38e6 | refs/heads/master | 2020-05-25T11:56:39.471770 | 2019-05-21T07:52:22 | 2019-05-21T07:52:22 | 187,779,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | # lambda.py
# def myadd(x,y):
# return x + y
myadd = lambda x,y: x + y#只能放表达式
# x + y
# max("abc")
# print("hello")
# True if x > y else False
# [x**2 for x in range(10)]
print("20+30=",myadd(20,30)) #50
print("1+2=",myadd(1,2)) #3
| [
"961167272@qq.com"
] | 961167272@qq.com |
371f962ddc772c29c413d8755c2a6f5596366739 | d6c117812a618ff34055488337aaffea8cf81ca1 | /serve/Servr-Servr-desktop-edition/Servr - desktop edition.py | 66b42077ca95dfcca1875a39f12bbabe7a15c24f | [
"Apache-2.0"
] | permissive | c0ns0le/Pythonista | 44829969f28783b040dd90b46d08c36cc7a1f590 | 4caba2d48508eafa2477370923e96132947d7b24 | refs/heads/master | 2023-01-21T19:44:28.968799 | 2016-04-01T22:34:04 | 2016-04-01T22:34:04 | 55,368,932 | 3 | 0 | null | 2023-01-22T01:26:07 | 2016-04-03T21:04:40 | Python | UTF-8 | Python | false | false | 2,121 | py | #!/usr/bin/env python
from wsgiref.simple_server import make_server
import mimetypes
import os
config_filename = 'Config.txt'
source_directory = 'Resources'
def get_contents_of_file(filepath):
with open(filepath) as in_file:
return in_file.read()
def get_files_dict(directory):
return {filename : get_conten... | [
"itdamdouni@gmail.com"
] | itdamdouni@gmail.com |
0cf3d5c34ba015e36ea3bcae5895e8dd880d5346 | 14557ac358f90f9f055d9072e14ba494d565f072 | /tool/gaussianElimination.py | 95ae3fe91b949bae52269de21a66ffda95dbfd1a | [] | no_license | August-us/exam | d8143359aa85bd8f4047024f3e9f83b662fa23bb | 092a800a15bdd0f3d0c8f521a5e0fc90f964e8a8 | refs/heads/master | 2021-07-01T04:16:15.297648 | 2021-06-26T15:14:31 | 2021-06-26T15:14:31 | 203,525,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | import numpy as np
def gaussianElimination(A,b):
A=np.matrix(A,dtype=np.float)
b=np.array(b)
assert len(A.shape)==2, "Coefficient matrix is not 2d. "
assert A.shape[0]==b.shape[0], "Coefficient and b do not match."
A=np.concatenate([A,b[:,None]],axis=1)
for i in range(b.shape[0]):
for ... | [
"August_us@163.com"
] | August_us@163.com |
4960ea804db2bb114054817e0b17cc24f476368c | f7e5f77292c2bf595ae034e0a67bf8e01a6e82b1 | /p957/test_solution.py | f63de72edfe3a4b41502aaa4b0da7fa80a572715 | [] | no_license | carwestsam/leetCode | af0d64d8d52597c88441b811ce6609a056ef290e | 8075fbb40987d5e6af8d30941a19fa48a3320f56 | refs/heads/master | 2021-01-20T22:28:59.652051 | 2019-03-22T01:11:30 | 2019-03-22T01:11:30 | 60,820,215 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from unittest import TestCase
from p957.Solution import Solution
class TestSolution(TestCase):
def test_prisonAfterNDays(self):
sol = Solution()
self.assertEqual([0, 0, 1, 1, 0, 0, 0, 0], sol.prisonAfterNDays([0, 1, 0, 1, 1, 0, 0, 1], 7))
self.assertEqual([0, 0, 1, 1, 1, 1, 1, 0], sol.pri... | [
"carwestsam@gmail.com"
] | carwestsam@gmail.com |
b746bc216e8a269465b30ae48c46f3f6e68f5839 | afd85583cd544f6c909797579f4c28aae89e0828 | /src/main/seg/common/Term.py | 6f33143d1a58375ace4f45cc3634404ecd5475bd | [] | no_license | chuanfanyoudong/python_hanlp | a127f61b0847031677532ea7ec54cdbb65ac7486 | 5417778c51f7a209e8a866b884de6c7a6392b203 | refs/heads/master | 2020-04-13T08:50:26.386240 | 2019-01-14T15:10:35 | 2019-01-14T15:10:35 | 163,093,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | """
@author: zkjiang
@contact: jiang_zhenkang@163.com
@software: PyCharm
@file: Term.py
@time: 2019/1/1 21:49
"""
"""
单词类,用户可以直接访问单词的全部属性
"""
class Term(object):
def __init__(self, word, nature):
self.word = word # 词语
self.nature = nature # 词性
def __str__(self):
return self.word +... | [
"qaz3762541@163.com"
] | qaz3762541@163.com |
89b0a495c98f20d50c6e691bc32418e7e00fad4c | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/CISCO-OTN-IF-CAPABILITY.py | 5833aa4037e5d433623814f3321764e4b7c56cee | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 3,182 | py | #
# PySNMP MIB module CISCO-OTN-IF-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-OTN-IF-CAPABILITY
# Produced by pysmi-0.3.4 at Wed May 1 12:09:01 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
08ea0a3e72f2032472b9d2361c3bc7deb129556c | ce03ceec096f467a27461506e2f278e1f83bd4b2 | /v2/api/models/survivors.py | c3f1feec904c55665709f03cf81c3410a7e62bbb | [] | no_license | CalebKester/kdm-manager | 729ef10ad4fcb615762f2f607aa3b347a2738b11 | 76e5e90f38f90ad8770c8077d2f4e597c25d020b | refs/heads/master | 2021-08-15T23:41:40.230703 | 2017-11-18T16:03:56 | 2017-11-18T16:03:56 | 107,457,554 | 0 | 0 | null | 2017-10-18T20:10:03 | 2017-10-18T20:10:03 | null | UTF-8 | Python | false | false | 111,967 | py | #!/usr/bin/python2.7
from bson import json_util
from bson.objectid import ObjectId
from copy import copy
from datetime import datetime
from flask import request, Response
import json
import random
import Models
import utils
from assets import survivor_sheet_options, survivors
from models import abilities_and_impairm... | [
"toconnell@tyrannybelle.com"
] | toconnell@tyrannybelle.com |
d604e16f013648aa96e6c8375ee065fe2b13f4bc | 044d385c3d86eef5f2aee7ea1912c2461da37604 | /venv/Scripts/easy_install-3.7-script.py | 493d3b53a1eb3a2c1889dfc9b02e04445bb8cd09 | [] | no_license | Y-Ali/calculator_oop | d1147b294feb87d2343b6441e225367aa24bf45e | d1cf65cbe78a3930758c3bc7df5d07e61cd850e3 | refs/heads/master | 2020-05-16T19:23:03.723285 | 2019-04-24T15:37:57 | 2019-04-24T15:37:57 | 183,258,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | #!C:\Users\yali\PycharmProjects\calculator_tdd\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"yousuf-123@hotmail.co.uk"
] | yousuf-123@hotmail.co.uk |
b3dcd0daa543202e55b42bfd4a1b1515215608b5 | 57c570d1b5a621158d8763f935e2069be6b8c90a | /tykj-operation/tykj-operation/MarketSearchCrawler/MarketSearch/items.py | 61a4e605750086427e3a5512fa008afb0e632c3b | [] | no_license | liuliainio/liuli | e011decf45f7eca7009a12ad4a96f33a17055945 | 203fbf4f135efb6432c77b937633003ce2f2c9a2 | refs/heads/master | 2021-01-10T20:35:08.070770 | 2018-08-21T05:52:59 | 2018-08-21T05:52:59 | 25,625,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,684 | py | # Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/topics/items.html
from MarketSearch.utils import strip_space
from scrapy.contrib.loader.processor import MapCompose, Join, TakeFirst
from scrapy.item import Item, Field
from scrapy.utils.markup import remove_comments, unq... | [
"liuliainio@163.com"
] | liuliainio@163.com |
ddf0882909a579898ddb49cf6223619f3e4ae28f | ac6743eb881c77ba8b80e19638969a032f0c5df3 | /leo/src/leoGlobals.py | 9eaa5ccd6cd7c3c5ec16d4c45095f681ad3b3726 | [] | no_license | leo-editor/leo-cvs-2006-2008 | 4a983046e293d809698f11aa47eae640ad4fd07a | da696020bda4752700bf96f6417751346c92e3c4 | refs/heads/master | 2016-09-08T01:20:34.767629 | 2008-02-27T19:56:03 | 2008-02-27T19:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184,203 | py | # -*- coding: utf-8 -*-
#@+leo-ver=4-thin
#@+node:ekr.20031218072017.3093:@thin leoGlobals.py
#@@first
"""Global constants, variables and utility functions used throughout Leo."""
#@@language python
#@@tabwidth -4
#@@pagewidth 80
# __pychecker__ = '--no-import --no-reimportself --no-reimport --no-constCond --no-cons... | [
"edreamleo@gmail.com"
] | edreamleo@gmail.com |
120381ac7f07d8aab59ed666511478e8e1f171ec | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/linux_os_info_fragment.py | a7b98b278ea789ddba8dba8d41a36115adb68fee | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,148 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
56ea4ad0b716b48c1a5d574a64c6d641fbb21a2a | 4a36b5979b0753b32cff3956fd97fb8ed8b11e84 | /0.23/_downloads/6a455d4d592574555169872fa244fae6/mne_inverse_connectivity_spectrum.py | 3cc10a8a9c242abf902bf27a70eee7a722a71e14 | [] | permissive | mne-tools/mne-tools.github.io | 8aac7ae10bf2faeeb875b9a351a5530dc0e53154 | 495e878adc1ef3374e3db88604504d7542b01194 | refs/heads/main | 2023-09-03T07:06:00.660557 | 2023-09-03T04:10:18 | 2023-09-03T04:10:18 | 35,639,371 | 12 | 16 | BSD-3-Clause | 2023-05-05T19:04:32 | 2015-05-14T22:04:23 | HTML | UTF-8 | Python | false | false | 3,460 | py | """
==============================================================
Compute full spectrum source space connectivity between labels
==============================================================
The connectivity is computed between 4 labels across the spectrum
between 7.5 Hz and 40 Hz.
"""
# Authors: Alexandre Gramfort... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
e2a8989b66d3ad45d2be9f182be166ca7a4515a9 | 46ef191ca0c170ca1d8afc5eb5134de52eba15f1 | /abc168/venv/Scripts/easy_install-3.7-script.py | 54aa9f90fc46556f9acbb79cd356c099bb1877ad | [] | no_license | anthonyouch/Competitive-Programming- | 9a84cd7ff4b816d2e7ece4e4d6438dbeb23f5795 | 39109a7be1cd007bd0080a9694ac256efc10eab9 | refs/heads/master | 2023-03-04T00:49:00.688118 | 2021-02-05T13:19:46 | 2021-02-05T13:19:46 | 334,131,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | #!"C:\Users\Anthony Ouch\PycharmProjects\atcoder168\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(... | [
"anthonyouch.programmer@gmail.com"
] | anthonyouch.programmer@gmail.com |
3a55742c3f10a2301ca0cb2c6e923ffe93ec7d73 | 5cc3925d0b9790733d67bf1ae74f5d2db9c07c91 | /ephys_nlm/example_datasets/__init__.py | 8be94b37d2b0ce1d4f7dedeb20eb9bb3fb312989 | [
"Apache-2.0"
] | permissive | magland/ephys_nlm | a17bb77bbf6e6e6fadc3466695c155acf99684fd | e4109c8f123174d9cefe25065ad78e49a4ddb894 | refs/heads/master | 2021-07-01T04:07:39.873354 | 2021-05-24T20:24:59 | 2021-05-24T20:24:59 | 237,340,358 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from .toy_example import toy_example
from .synthesize_random_firings import synthesize_random_firings
from .synthesize_random_waveforms import synthesize_random_waveforms
from .synthesize_timeseries import synthesize_timeseries
| [
"jmagland@flatironinstitute.org"
] | jmagland@flatironinstitute.org |
8d7ea9d63120eb522d967efccb92a92d86189d5a | 66634946aec18840c00b0e568c41faf3e9f473e7 | /Level2/Lessons17686/gamjapark.py | 162143a6889a0bd6b0edd4c59ff9e13c0cc3a062 | [
"MIT"
] | permissive | StudyForCoding/ProgrammersLevel | 0525521b26ad73dcc1fe58a1b2f303b613c3a2f6 | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | refs/heads/main | 2023-08-14T23:15:53.108351 | 2021-10-05T16:04:32 | 2021-10-05T16:04:32 | 354,728,963 | 0 | 1 | MIT | 2021-10-05T16:04:33 | 2021-04-05T05:26:25 | Python | UTF-8 | Python | false | false | 1,317 | py | # [3차] 파일명 정렬
import re
def solution(files):
answer = []
for i in range(len(files)):
name = re.split('(\d+)',files[i]) # 숫자 문자 split
name.append(name[0].lower())
name.append(int(name[1][:5]))
answer.append(name)
answer.sort(key=lambda x: (x[-2],x[-1]))
answer = list(map... | [
"gojang4@gmail.com"
] | gojang4@gmail.com |
87dc014de771f52f91b8ca34703b75633023e3d9 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sets_20200605191738.py | d7dbc86902639a050395ada6e3df8d94816b350c | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | def Strings(str):
values = {}
newArray = []
for i in str:
i.split(':')
Strings(["A:1","B:3","C:3","A:4","B:2"])
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
dad188cc567965957bad39f4ac1d5ce4fc0d2b77 | 5b8073c92445d9934f56c8f4b1df29f6bae83c75 | /.history/app_20190813205014.py | c5ff78835facedfcdf4559d07eeda2e91d305b25 | [] | no_license | lodorg/bcrest | 60dd80fd53158038fedcecc00f32965722a4f6dc | b44b84bc5b5c80f50e2385ed504107f4e0134f4e | refs/heads/master | 2022-02-25T22:14:42.097130 | 2019-08-13T17:40:30 | 2019-08-13T17:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | from flask import Flask, request, flash, redirect
from werkzeug import secure_filename
import os
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = 'imgs'
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
def allowed_file(filename):
return '.' ... | [
"probirds123@gmail.com"
] | probirds123@gmail.com |
6681b5acb57afb651ba249239227b893cdf1ee7e | 9ab9d9a3883471763edbceea59a0e83170581b5f | /eggs/Cheetah-2.2.2-py2.7-linux-i686-ucs4.egg/EGG-INFO/scripts/cheetah | 3a2f5a77680766e80358be89ad2dadf17b39984a | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | asmmhossain/phyG | 24dc211dad5b3e89c87ff384e841f2e98bbd52db | 023f505b705ab953f502cbc55e90612047867583 | refs/heads/master | 2022-11-21T12:43:46.172725 | 2014-02-14T12:33:08 | 2014-02-14T12:33:08 | 13,800,552 | 0 | 1 | NOASSERTION | 2020-07-25T21:05:41 | 2013-10-23T11:04:25 | Python | UTF-8 | Python | false | false | 119 | #!/afs/bx.psu.edu/project/pythons/linux-i686-ucs4/bin/python2.7
from Cheetah.CheetahWrapper import _cheetah
_cheetah()
| [
"mukarram819@gmail.com"
] | mukarram819@gmail.com | |
3e6d34849453d3637b8ab09d1c78e6147d34e310 | 0ba1743e9f865a023f72a14d3a5c16b99ee7f138 | /problems/test_0190.py | ad62eb3b35a711a2e1a2cf135cd8719826a02c15 | [
"Unlicense"
] | permissive | chrisxue815/leetcode_python | d0a38a4168243b0628256825581a6df1b673855c | a33eb7b833f6998972e5340d383443f3a2ee64e3 | refs/heads/main | 2022-06-20T15:09:27.221807 | 2022-06-02T21:55:35 | 2022-06-02T21:55:35 | 94,590,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | import unittest
class Solution:
# @param n, an integer
# @return an integer
def reverseBits(self, n):
# Hacker's Delight, Figure 7-1
# See OpenJDK Integer.reverse():
# https://github.com/openjdk/jdk/blob/f37d9c8abca50b65ed232831a06d60c1d015013f/src/java.base/share/classes/java/lang... | [
"chrisxue815@gmail.com"
] | chrisxue815@gmail.com |
9415624b699589da280acdebd953fda62063c25c | 35573eebb47cf243f04e1125725920b252de6261 | /python/ray/train/base_trainer.py | e38c4080bc297942c2dead159066af0e4633e35b | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | timgates42/ray | 05df4fe47a16a028c92fea106c4a2b316665001d | cd95569b014cf06479b96875c63eba171e92ec97 | refs/heads/master | 2023-03-18T00:59:27.757929 | 2022-07-13T21:57:24 | 2022-07-13T21:57:24 | 227,523,984 | 0 | 0 | Apache-2.0 | 2019-12-12T05:01:58 | 2019-12-12T05:01:57 | null | UTF-8 | Python | false | false | 17,102 | py | import abc
import inspect
import logging
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Type, Union
import ray
from ray.air._internal.config import ensure_only_allowed_dataclass_keys_updated
from ray.air.checkpoint import Checkpoint
from ray.air.config import RunConfig, ScalingConfig, ScalingCo... | [
"noreply@github.com"
] | timgates42.noreply@github.com |
feb11aba73a832be17f8688f1d9779063737160f | 45d01a6c5fbf766ad4d996c044412dc2b268ef07 | /autoimpute/utils/patterns.py | c11d401512afe81a83b68c8ae768f1fa071447fb | [
"MIT"
] | permissive | kearnz/autoimpute | 2cf88d8cf4a1ab6b8b6579c8dca2ecd38eb1aaf9 | 6ef82663464aad187fd341fcace8e97bd0222aaf | refs/heads/master | 2023-06-07T21:08:23.584459 | 2023-05-24T04:43:28 | 2023-05-24T04:43:28 | 168,429,609 | 245 | 27 | MIT | 2022-09-10T22:36:57 | 2019-01-30T23:09:47 | Python | UTF-8 | Python | false | false | 13,147 | py | """Methods to numerically assess patterns in missing data.
This module is a collection of methods to explore missing data and its
patterns. The module's methods are heavily influenced by those found in
section 4.1 of Flexible Imputation of Missing Data (Van Buuren). Their main
purpose is to identify trends and pattern... | [
"josephkearney14@gmail.com"
] | josephkearney14@gmail.com |
fc7b97550c2640523513a8ada604f94e0c97df40 | ac5d55e43eb2f1fb8c47d5d2a68336eda181d222 | /Greedy/392. Is Subsequence.py | 439737d72f004b8f25d690b2355b677978a02aa8 | [] | no_license | tinkle1129/Leetcode_Solution | 7a68b86faa37a3a8019626e947d86582549374b3 | 1520e1e9bb0c428797a3e5234e5b328110472c20 | refs/heads/master | 2021-01-11T22:06:45.260616 | 2018-05-28T03:10:50 | 2018-05-28T03:10:50 | 78,925,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | # - * - coding:utf8 - * - -
###########################################
# Author: Tinkle
# E-mail: shutingnjupt@gmail.com
# Name: Is Subsequence.py
# Creation Time: 2017/9/25
###########################################
'''
Given a string s and a string t, check if s is subsequence of t.
You may assume that there is on... | [
"496047829@qq.com"
] | 496047829@qq.com |
037b9190c649cf36abbd016974d528e2fec1ac1a | b1c17f43cb08740f519b0bd32bb93d9095135fc7 | /sawyer/mujoco/tasks/__init__.py | 15848b59633bc62899fafbfacf1cf4f8af3bbc6a | [
"MIT"
] | permissive | rlworkgroup/gym-sawyer | 05f2a28a8c3e1a3031c6539db0f6b503e771d07b | 90d706cb0594c27045162bc9a00d56389f17615f | refs/heads/master | 2020-04-01T19:12:37.672577 | 2019-12-11T19:56:43 | 2019-12-11T19:56:43 | 153,541,945 | 37 | 10 | MIT | 2019-12-11T19:56:45 | 2018-10-18T00:45:57 | Python | UTF-8 | Python | false | false | 334 | py | from sawyer.mujoco.tasks.reacher_tasks import ReachTask
from sawyer.mujoco.tasks.pick_and_place_tasks import PickTask, PlaceTask
from sawyer.mujoco.tasks.toy_tasks import (InsertTask, RemoveTask, OpenTask,
CloseTask)
__all__ = [
"ReachTask", "PickTask", "PlaceTask", "InsertTask", "RemoveTask",
"OpenTask", ... | [
"noreply@github.com"
] | rlworkgroup.noreply@github.com |
75479224841b2e9b2a1fd91e22ae53f2418b53f7 | ded17d7d269daf933a04bb1e3a6e181c6f51598a | /version_1/data_processing/data_util.py | fa9307c65896c89f4ba31f4d5bf773f1fdee2e28 | [] | no_license | JDwangmo/weiboStanceDetection | 296d6bb4a1eae0546d5fce1ee1eb4ac071e6240d | 3a5196d31c4748334330e16a819e85041a04e17d | refs/heads/master | 2020-04-12T07:35:32.321179 | 2017-01-02T06:52:14 | 2017-01-02T06:52:14 | 58,032,790 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,646 | py | #encoding=utf8
__author__ = 'jdwang'
__date__ = 'create date: 2016-06-24'
__email__ = '383287471@qq.com'
import numpy as np
import pandas as pd
import logging
import timeit
from sklearn.feature_extraction.text import CountVectorizer
from data_processing_util.jiebanlp.jieba_util import Jieba_Util
class DataUtil(objec... | [
"383287471@qq.com"
] | 383287471@qq.com |
9530f6b796f2fe2f1a57edbf76ec8b76d220b4fa | ab68d9fd15daf0460e92a471a417b188d4594b8f | /key.py | 729f60405a7dfe20726759a3e31bcbf83bfe09f0 | [] | no_license | baifengbai/Console | 63a911c850eb3c6c64e8381a14ae34e18fc4a95e | d40cb568d9dd1268379616e5d351073e303abfaa | refs/heads/master | 2020-03-20T15:55:40.782551 | 2018-06-15T18:43:09 | 2018-06-15T18:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | # adopted from TerminalView
_KEY_MAP = {
"enter": "\r",
"backspace": "\x7f",
"tab": "\t",
"space": " ",
"escape": "\x1b",
"down": "\x1b[B",
"up": "\x1b[A",
"right": "\x1b[C",
"left": "\x1b[D",
"home": "\x1b[1~",
"end": "\x1b[4~",
"pageup": "\x1b[5~",
"pagedown": "\x1... | [
"randy.cs.lai@gmail.com"
] | randy.cs.lai@gmail.com |
6128f590ded0ddb1e220721dbb0a679f211cf24d | 54fcfec16e6c8b4bcd8830e9cfec6b354c8ba19f | /filer/walker.py | f6f26f3751dc5df243fa0d71bdb027445793d305 | [] | no_license | rboulton/filer | 752efe318b5cb5784c7ecd8690cf9648659274fa | 37732344ce592a4ddd08f93a65c4e3ddc441e392 | refs/heads/master | 2021-01-14T06:00:59.698775 | 2021-01-03T03:15:22 | 2021-01-03T03:15:22 | 242,620,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,650 | py | import hashlib
import heapq
import os
import re
import stat
import subprocess
import time
import pyinotify
import asyncio
from . import db
REGULAR_FILE = 1
SYMLINK = 2
class Walker:
def __init__(self, config):
self.config = config
self.exclude_patterns = [
re.compile(pattern) for pa... | [
"richard@tartarus.org"
] | richard@tartarus.org |
079530cbf8ae21cb0804fcd789d21375b6add52c | cae8adc520ee71ffd9cfc82418152b4ec63f9302 | /static_server/template/merge_sort.py | 380683eb6d36d3135c3d8ad67c8363ce46d08626 | [] | no_license | dong-c-git/WSGIServer | 55111c04f4bbefe239949ddaea16c71221b7f795 | 1f0b58977e2a951f3c6dec335854dd9d6e31cdfd | refs/heads/master | 2020-08-01T17:03:30.307962 | 2019-11-09T01:45:30 | 2019-11-09T01:45:30 | 211,054,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | #coding:utf-8
def merge_sort(alist):
"""归并排序"""
n = len(alist)
if n <= 1:
return alist
mid = n//2
#left 采用归并排序后形成的有序的新列表
left_li = merge_sort(alist[:mid])
#right 采用归并排序后形成的有序新列表
right_li = merge_sort(alist[mid:])
#将两个有序的子序列合并成一个新的整体
#merge(left,right)
left_pointer,rig... | [
"dc111000@hotmail.com"
] | dc111000@hotmail.com |
ab876d1b73e4a42e5ab1153009f3462a8f05167a | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/keras/distribute/multi_worker_callback_tf2_test.py | 285e942adc5dcccb678b01547af6cc7e8662d14f | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,732 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
c84aa32b0caf67da5aad77ebd9a75e59de60da5e | 69ffb7b27636d0f83994d46f5ea0a63d06a549ef | /usv_model/tcp_usv_15.py | e6ef95ee894eb1d514061141bd9a37ae644b8f63 | [] | no_license | Miao1127/code-charpter4 | 5b09f9584520af195c1f5107086e58e747ed856e | 5ce1d50fa603a04a4f68709d8e1d654b8753bbe8 | refs/heads/master | 2023-07-10T23:40:41.987689 | 2021-08-23T01:21:47 | 2021-08-23T01:21:47 | 398,938,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,248 | py | # _*_ coding:utf-8 _*_
# 开发人员:103中山分队-苗润龙
# 开发时间:2020/04/22 16:00
# 文件名:usv_1_ip.py
# 开发工具:PyCharm
# 版本说明:IP端口传输数据模式
# 功能:模拟 #1 usv,马尔科夫决策局部协同搜索,具备串口收发功能和运动能力.
# 过程描述:1. 初始化栅格概率地图和随机生成USV起始位置,此时记为k时刻;2.将当前USV探测范围内的栅格概率更新到栅格概率地图
# 中,另外,当前USV需要通过集群网络,将探测到的概率信息广播给集群中其他USV;3.遍历USV的所有可选行为策略,行
# 为策略... | [
"Miao@DESKTOP-AJA95IE"
] | Miao@DESKTOP-AJA95IE |
61023febae45328ee0de5fd4f4e2f7f2e10987be | 1347434410c173c0eed165acabfda66e3bbf735e | /bruhat/interp.py | 842ad172afe9367baaa8a1088680ba92f7786790 | [
"MIT"
] | permissive | punkdit/bruhat | f6a857e1c7a289440f293f86ca4be9c781243347 | 6c9f94ee725843550459ac04ee9351700f90fcf1 | refs/heads/master | 2023-08-30T22:31:44.915358 | 2023-08-29T11:58:21 | 2023-08-29T11:58:21 | 86,669,985 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,973 | py | #!/usr/bin/env python3
from operator import mul
from functools import reduce
import numpy
from bruhat.poly import Poly, Q
from bruhat.util import cross, all_subsets, factorial
from bruhat.argv import argv
from bruhat.elim import solve, shortstr
ring = Q
a = Poly("a", ring)
def interp(vals):
n = len(vals)
... | [
"simon@arrowtheory.com"
] | simon@arrowtheory.com |
c95ae527b44134a8cadd967e79f37488605ec84d | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/c09595ef061b70e4df39ae8cf5cc8b1905550faec62d2ffdd3e03598833e50ce/PyQt5/QtQuick/QSGMaterial.py | 93e72583b02cd1bd2751c8b8edd627440be97d51 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | # encoding: utf-8
# module PyQt5.QtQuick
# from C:\Users\Doly\Anaconda3\lib\site-packages\PyQt5\QtQuick.pyd
# by generator 1.147
# no doc
# imports
import PyQt5.QtCore as __PyQt5_QtCore
import PyQt5.QtGui as __PyQt5_QtGui
import PyQt5.QtQml as __PyQt5_QtQml
import sip as __sip
class QSGMaterial(__sip.wrapper):
"... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
fa7a3160b9d8970589e8b2ca45c4b350ba6993d8 | 73f09d06295ae4cf949b4b18a8dced861d3067f2 | /cli/almond_cloud/cmd/k8s/tail.py | fc4cd3f4732b7178b8f4db39c1e47032b8bdac03 | [
"Apache-2.0"
] | permissive | tribe-health/almond-cloud | b7d8f6aeca83e047dfc28e5f84bb441f7b9646a7 | 95744da7aec789359093689704f4e2a989de1600 | refs/heads/master | 2023-06-28T02:39:32.162066 | 2022-12-20T03:24:54 | 2022-12-20T03:24:54 | 269,748,762 | 0 | 0 | NOASSERTION | 2020-06-05T19:12:45 | 2020-06-05T19:12:44 | null | UTF-8 | Python | false | false | 3,637 | py | from typing import Iterable, List, NoReturn, Optional
from queue import Queue
from threading import Thread
import splatlog as logging
from kubernetes import client, config
from kubernetes.watch import Watch
from kubernetes.client.models.v1_pod import V1Pod
from clavier import arg_par, err, io
from almond_cloud.lib im... | [
"neil@neilsouza.com"
] | neil@neilsouza.com |
f327539d93e11b288578e502e51e08a094303cb7 | 10b4c22bdb4a1737028c730136d924e1665196c4 | /src/TheLanguage/Grammars/v1_0_0/IntegrationTests/PassStatement_IntegrationTest.py | 88edae76da4a931c98fbfec7c935bf7df1615856 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"Python-2.0"
] | permissive | misharp/DavidBrownell_TheLanguage | 54bd886aae3814cd691328aad9ee1e4f65c7c427 | cae8cbef94b2054f80f6df06e945e70a13a0da69 | refs/heads/master | 2023-05-23T16:11:26.372177 | 2021-06-17T04:27:06 | 2021-06-17T04:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | # ----------------------------------------------------------------------
# |
# | PassStatement_IntegrationTest.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2021-06-15 17:09:30
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2021
# |... | [
"db@DavidBrownell.com"
] | db@DavidBrownell.com |
c904e60f7ce81205000cd204b1bbed82b6936fa4 | e953ae5da775a934b86379cfa3d864bb7376fe36 | /06 basic_python/1.py | 22e6ddfdbac0d85f102006479e6e997e28f9fad7 | [] | no_license | agyenes/greenfox-exercises | 1481f17d1ddd78099d17022aa1800955ae39d92b | a2c7912c61708c6ebc53c9a22f8c09550432d4c3 | refs/heads/master | 2020-04-11T00:42:17.842170 | 2016-10-19T06:10:22 | 2016-10-19T06:10:22 | 68,081,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # Create a `Circle` class that takes it's radius as cinstructor parameter
# It should have a `get_circumference` method that returns it's circumference
# It should have a `get_area` method that returns it's area
import math
class Circle():
def __init__(self, radius):
self.radius = radius
def get_circumferenc... | [
"aron.gyenes@gmail.com"
] | aron.gyenes@gmail.com |
75904dffa7c7e1533d4cdc92760c5409cdef2da5 | f00699824a8c5def54421ee3cf836ec2cd15d957 | /3/django_1703_day3/app01/views.py | 594e5317ae6464d78852b58176e46267d82e60db | [] | no_license | ZhiqiWu/student_manage | 9171d78c32d6900b08de9034b9a2f50c9e24d0b8 | da12ebaf4e9d6357cd9f832144ed756a55510433 | refs/heads/master | 2023-03-29T04:56:09.486061 | 2020-01-24T08:11:50 | 2020-01-24T08:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | #coding:utf8
from django.shortcuts import render,HttpResponse,render_to_response
import logging
from django.template import Template,Context
import datetime
# Create your views here.
#创建一个日志器
mylogger = logging.getLogger('app01')
class Human(object):
name = '人'
age = 10000
def sayGoodBye(self):
#... | [
"1049939190@qq.com"
] | 1049939190@qq.com |
40f84b9fcfd36bd03c76173a2577863e43c9fd11 | a122d660fb6484d3dc2c5a13c7cf686e2bff0ee3 | /jr/meg/artefact.py | cefd441b4e6a1e14a53551c22abdae8a74e4a1e3 | [
"BSD-2-Clause"
] | permissive | LauraGwilliams/jr-tools | 13e27a013f2a7e194f7701aa6716ade2849f8446 | cd2c9ed90eccea320b8cece0f5923960e3174829 | refs/heads/master | 2021-01-17T11:45:33.525798 | 2016-04-30T16:21:05 | 2016-04-30T16:21:05 | 57,447,042 | 0 | 0 | null | 2016-04-30T14:46:09 | 2016-04-30T14:46:08 | null | UTF-8 | Python | false | false | 9,082 | py | # Author: Jean-Remi King <jeanremi.king@gmail.com>
#
# Licence : GNU GPLv3
import numpy as np
from sklearn.base import BaseEstimator
from joblib import Parallel, delayed
class SelfRegression(BaseEstimator):
""" Fit a series of regressors that aim at predicting each feature when
the latter is hidden from the ... | [
"jeanremi.king+github@gmail.com"
] | jeanremi.king+github@gmail.com |
95a048abac7170e8cce10bc4791ad785d762f8aa | 3db1c06cd10d4a72c3e778006364d5a83d1c5e2c | /subisuhostcheck/oltcheck/apps.py | fc0613338602d6c6160a1f1a6a130ee5b7050f1f | [] | no_license | shaktijeet-ego/hostdown | 14f07d309c0346ea0a67d321d774a788d2a1b75e | 9eab7ff08746c0c276bdc46bd1f52d2f02d7d2bb | refs/heads/master | 2023-04-05T19:22:57.064463 | 2021-04-28T03:35:34 | 2021-04-28T03:35:34 | 353,187,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class OltcheckConfig(AppConfig):
name = 'oltcheck'
| [
"shaktijeet.tripathi@gmail.com"
] | shaktijeet.tripathi@gmail.com |
70b004e7a623bdaba5208a8f234471c520d7a44b | f157635f2e0d175bbbe4d0fdc615cd00e313ea80 | /ClassificationAndRegression/GeneralizedLinearModels/ARDRegression.py | e3df0c5fd3cb189ff63d077914a1d3c28a75eeb3 | [
"MIT"
] | permissive | kopok2/MachineLearningAlgorithms | 66a20884bb40fabd0351b33e37ed04ec69bf2691 | 9d5eb9c17a1354e726b79e9cfae9e5638976b919 | refs/heads/master | 2021-06-30T14:47:01.490219 | 2020-11-30T09:08:11 | 2020-11-30T09:08:11 | 196,454,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # coding=utf-8
"""ARD Regression.
Automatic Relevance Determination.
"""
import numpy as np
from sklearn import linear_model
from sklearn.metrics import r2_score
import matplotlib.pyplot as plt
from scipy import stats
if __name__ == "__main__":
print("Generating data...")
n_samples, n_features = 2000, 50
... | [
"oleszek.karol@gmail.com"
] | oleszek.karol@gmail.com |
eaddf9c02bba01b2e67dcfbd369737b7a59732e4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch57_2020_04_13_15_35_20_007820.py | c5500bc24504c86df8f638052c8b4955a9d7877c | [] | 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 | 608 | py | def verifica_progressao(lista):
razaopa=lista[1]-lista[0]
razaopg=(lista[1]/lista[0])
if lista[0]==0:
razaopg=lista[2]-lista[1]
for i in range (1,len(lista)):
if (lista[i+1]-lista[i])==razaopa and (lista[i+1]/lista[i])==razaopg:
return 'AG'
else:
if lista[... | [
"you@example.com"
] | you@example.com |
11c200638fbf348a5ea5e1f13aec2570258ce52e | 917aecb0568e70b2b0e3a6969076b0f28e48eca3 | /archive/wiki_web_traffic_predict/LSTM_train_V1.py | a036778335788c1c296e1c898044070e1a1f3d2f | [] | no_license | yennanliu/Kaggle.com_mini_project | d708af67172144ca2e4bac317e1dc44a59b99a95 | 9ca654692acf5c29c466c26cd101b10d1dd98a7c | refs/heads/master | 2020-05-21T14:00:45.873899 | 2020-03-28T01:36:17 | 2020-03-28T01:36:17 | 50,233,788 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | # ops
import numpy as np
import pandas as pd
import datetime as dt
import time
import math
import re
# DL
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
from sklearn.metrics import mean_squared_error
from keras.models import Sequential
from keras.layers.core imp... | [
"f339339@gmail.com"
] | f339339@gmail.com |
f59cf85c3391d05a7cd3c647b118d27d9acc8f44 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_run_commands_operations.py | 0abb8cec5a340f97b7a6b41b4d141a7d9fcc1479 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 7,966 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
c0ae26be6c3e7f00a90660c2254e971d71819294 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02997/s890368623.py | 91aaff9a40a4f404716381112f1c21a775c6e166 | [] | 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 | 302 | py | N,K=map(int,input().split())
fil=int((N-1)*(N-2)/2)
if K>fil:
print(-1)
else:
M=N-1+fil-K
print(M)
for i in range(N-1):
print(1,i+2)
count=0
list=[]
for j in range(2,N):
for k in range(j+1,N+1):
list.append((j,k))
for i in range(fil-K):
print(list[i][0],list[i][1]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4920502b9c8a0d5803967e8e6e59f571e503e028 | ba78d67c366d213c54d7fd88cef0d0bc1d40b1cd | /51.py | 1307af3e0e3d2a0b1e38eff320796cbaf4ad662c | [
"MIT"
] | permissive | thaisNY/GuanabaraPy | 4de00dce606a729fe18936481d77b18efd5f6859 | a0a3acbd9242a39491a365b07562037d7a936bba | refs/heads/main | 2023-08-23T17:00:28.479117 | 2021-11-05T03:29:17 | 2021-11-05T03:29:17 | 424,429,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #Leia o primeiro termo de uma pa
#Leia a razão da pa
#Imprima os 10 primeiros termos da pa
a1 = int(input('Digite o primeiro termo da Pa'))
r = int(input('Digite a razão da Pa'))
termo = 0
cont = 0
for c in range (a1,11):
termo = a1 + (cont*r)
print(termo)
cont = cont + 1
| [
"71556315+thaisNY@users.noreply.github.com"
] | 71556315+thaisNY@users.noreply.github.com |
f06779f7e8828690d06957ef4314a50c7af1296d | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/3215bc98fe934f21f37fc5cc38ae5f123f444140-<get_srid_info>-fix.py | 61033a70af5b915d436643ecaa2d98431d9a883a | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | def get_srid_info(srid, connection):
'\n Returns the units, unit name, and spheroid WKT associated with the\n given SRID from the `spatial_ref_sys` (or equivalent) spatial database\n table for the given database connection. These results are cached.\n '
from django.contrib.gis.gdal import SpatialRe... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
5ea7e91fd5e4d0c40cc4286bb01cc7771ee6343c | 8a2474f61a49b0e24812456b34f59948b756a94e | /autotest/test_gwt_lkt01.py | 4971e5c94125ddf25a82b9ac3bd4b2326e24b07e | [
"LicenseRef-scancode-warranty-disclaimer",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | MODFLOW-USGS/modflow6 | 6e913abcab5c23686ed05b1cceac85f90282955d | 43f6198125867c487eedc64b17e9adaceb73f5ab | refs/heads/master | 2023-09-01T20:51:30.970467 | 2023-06-28T20:17:59 | 2023-06-28T20:17:59 | 116,149,490 | 158 | 111 | NOASSERTION | 2023-09-14T17:02:58 | 2018-01-03T15:00:55 | Fortran | UTF-8 | Python | false | false | 12,602 | py | # Simple one-layer model with a lak. Purpose is to test a constant
# stage and constant concentration lake with a value of 100. The aquifer
# starts with a concentration of zero, but the values grow as the lake
# leaks into the aquifer.
import os
import flopy
import numpy as np
import pytest
from framework import T... | [
"noreply@github.com"
] | MODFLOW-USGS.noreply@github.com |
eb5ec60604bedf1e414bdc0f40d2044b46690a1e | ab32e6384b7c679a327a4bf1df6dd24c058b78a5 | /core/site_utils.py | 449603b8ffa124f07af3cb5eb922b8628204b060 | [] | no_license | webmaxdev0110/digi-django | ad2497791d6d3b6aa74eb697dd7eef324ebb5846 | 4cd52c07bb64e9d9381a957323d277489a02181a | refs/heads/master | 2020-03-23T13:37:12.600565 | 2017-07-10T10:23:15 | 2017-07-10T10:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from django.contrib.sites.models import Site
from django.http.request import split_domain_port
try:
# python 2
from urlparse import urlparse
except ImportError:
# Python 3
from urllib.parse import urlparse
def get_site_from_request_origin(request):
origin = request.META.get('HTTP_ORIGIN', None)
... | [
"webmax0110.dev@gmail.com"
] | webmax0110.dev@gmail.com |
4dc2667a569aca4ad5058cc12a464ca8ebe81cdc | a81984a197944169935f005f95a0e69e8c64143b | /artifacts/default/Ubuntu_16/get-sdk-2019.01.01-Ubuntu_16.py | 02eac38bda03b95afbf5e893ac65df8df933f711 | [] | no_license | pulp-platform/pulp-sdk-release | d6531bfb2f55335d02103a63fc5af90877333af3 | a3ad33b4bd5bcf704580857b9a1adcba3ed2a7ff | refs/heads/master | 2021-06-05T02:10:59.317545 | 2020-01-09T09:12:05 | 2020-01-09T09:12:05 | 132,143,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,268 | py | #!/usr/bin/env python3
# This file has been auto-generated and can be used for downloading the SDK it has
# been generated for.
import os
import tarfile
import os.path
import argparse
src="59b44701b6ac8390a97936cbd049256fc2917212"
artefacts=[
["https://iis-artifactory.ee.ethz.ch/artifactory/release/Ubuntu_16/pul... | [
"germain.haugou@iis.ee.ethz.ch"
] | germain.haugou@iis.ee.ethz.ch |
bc38d2efb5600eba0aec10d2e7009307896556f1 | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/plugins/GCodeReader/MarlinFlavorParser.py | 482285a2c9508de5ae79665113c0b1fd84a5663f | [
"LGPL-3.0-only",
"GPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 305 | py | # Copyright (c) 2017 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from . import FlavorParser
# This parser is intented for interpret the Marlin/Sprinter Firmware flavor
class MarlinFlavorParser(FlavorParser.FlavorParser):
def __init__(self):
super().__init__() | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
60e0c37b3231d5f3a8af1f4f81ace45335df8286 | 457b687219cb723585164e84417ed3bacc8c234d | /qianfeng_400/爬虫/网络编程/1,TCP客户端.py | 2d367d1a423db6b3b0d86786545c5eebc10f4263 | [] | no_license | jxy147258/qianfeng_python | ffdc77fb05cfb2302af51fc3047efa0eadeb2064 | 0f6c06fdf19a47f7b5083cde4e1eb2011442c5f7 | refs/heads/master | 2021-07-16T15:19:45.759356 | 2021-02-03T16:04:14 | 2021-02-03T16:04:14 | 237,947,869 | 2 | 2 | null | 2020-02-07T06:41:06 | 2020-02-03T11:17:13 | Python | UTF-8 | Python | false | false | 362 | py | # 使用socket模块
import socket
client = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client.connect(("localhost",8081))
count = 0
while True:
count += 1
data = input("请输入数据")
client.send(data.encode("utf-8"))
info = client.recv(1024)
print("服务器说:"+info.decode("utf-8"))
if count > 10:
... | [
"1162591945@qq.com"
] | 1162591945@qq.com |
4c6cd8fa2c76f07442cc03436bacac23835e402e | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/robort_20200727105954.py | bf79f5392d4aaf3cefaba3da6918f708fb08598f | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | def uniquePaths(m,n):
# use dynamic programming and answer is at arr[m][n]
# let's create and empty grid with 0's
grid = [[0 for x in range(m)] for y in range(n)]
print(grid)
# then using the top down uproach we shall prefill all the
# i,j i = 0 and j+1
# then i +1 ,j = 0
for i in r... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
53761b003841d9f17b9bd786b1199e029573d183 | ff23900a911e099595c392a7efab1d268b4f5f7d | /python_modules/libraries/dagster-snowflake-pandas/dagster_snowflake_pandas_tests/test_snowflake_pandas_type_handler.py | 045f02682b567ae7c7cbb3a15986b9b2d4dfdf84 | [
"Apache-2.0"
] | permissive | zkan/dagster | bbf2da091bdc7fca028c569db72b9c68ddf55e98 | b2b19edb71fc8985f505b116927350dd23b4a7d9 | refs/heads/master | 2022-08-24T03:20:12.583577 | 2022-08-16T00:01:23 | 2022-08-16T00:01:23 | 244,012,061 | 0 | 0 | Apache-2.0 | 2020-02-29T17:33:24 | 2020-02-29T17:33:24 | null | UTF-8 | Python | false | false | 7,662 | py | import logging
import os
import uuid
from contextlib import contextmanager
from typing import Iterator
from unittest.mock import patch
import pandas
import pytest
from dagster_snowflake import build_snowflake_io_manager
from dagster_snowflake.resources import SnowflakeConnection
from dagster_snowflake.snowflake_io_man... | [
"noreply@github.com"
] | zkan.noreply@github.com |
38c9cd8dc8eff9b5dc906dfce24d42353280b930 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /cn.sc/py/C3303.py | 30d8242ea489520331139f30afd0a81ca0e0f40f | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 11,332 | py | from ED6SCScenarioHelper import *
def main():
SetCodePage("gbk")
# 蔡斯
CreateScenaFile(
FileName = 'C3303 ._SN',
MapName = 'Zeiss',
Location = 'C3303.x',
MapIndex = 1,
MapDefaultBGM = "ed60032",
Flags ... | [
"zhenjian.c.yang@gmail.com"
] | zhenjian.c.yang@gmail.com |
71ba1fab1dc153bbad617aeb8002714868377f16 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /19100101/qiming09/d5_exercise_stats_text.py | 9123ccf331de4f4c95e8ba80583a8abffaa4e99a | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 1,456 | py | # this is d5 excercise_2 for text
# date : 2019.3.22
# author by : qiming
# 原始文本
text = '''
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Reada... | [
"6396023+realcaiying@users.noreply.github.com"
] | 6396023+realcaiying@users.noreply.github.com |
3ae0ae43b2a62b7f1488f67bc1f6544159d9e898 | ee6acbd5fcd0fcd16230e96a4a539de41a02c97e | /operators/crossplane/python/pulumi_pulumi_kubernetes_crds_operators_crossplane/workload/v1alpha1/_inputs.py | 826df05576fb8c04615d93c4721b9ec5c5646afd | [
"Apache-2.0"
] | permissive | isabella232/pulumi-kubernetes-crds | 777e78137aaf6525a44b61a02dccf91bf0d87a14 | 372c4c0182f6b899af82d6edaad521aa14f22150 | refs/heads/master | 2023-03-15T04:29:16.039753 | 2020-12-30T19:35:54 | 2020-12-30T19:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,238 | py | # coding=utf-8
# *** WARNING: this file was generated by crd2pulumi. ***
# *** 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
from ... import _utilities, _tables
__all__ = [
'... | [
"albertzhong0@gmail.com"
] | albertzhong0@gmail.com |
ebccb5939007fff56633866cd7d1b87aa282bfec | f2411753c4eb2dd04ee9136c594784c073d1de02 | /graphene/contrib/django/debug/sql/tracking.py | 47f7a30c5d9283dbb046f20617a21cb2349d971f | [
"MIT"
] | permissive | AdrielVelazquez/graphene | 9a5dbcfa02102cbf4c7463476fd1c51dcdefb107 | 4d15bc4f796db403e1ed4877665b80422b516eca | refs/heads/master | 2020-12-28T23:50:29.035822 | 2016-05-20T19:20:10 | 2016-05-20T19:20:10 | 59,317,384 | 0 | 0 | null | 2016-05-20T18:29:37 | 2016-05-20T18:29:37 | null | UTF-8 | Python | false | false | 4,857 | py | # Code obtained from django-debug-toolbar sql panel tracking
from __future__ import absolute_import, unicode_literals
import json
from threading import local
from time import time
from django.utils import six
from django.utils.encoding import force_text
class SQLQueryTriggered(Exception):
"""Thrown when templat... | [
"me@syrusakbary.com"
] | me@syrusakbary.com |
f73a5a5a3e638c2d9e725a8cc34c709f5d3794e8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2327/60621/239684.py | 40d8b72fef8bfd3b2b5a04ac9e8fd343edc92093 | [] | 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 | 381 | py | a=input()
I=a.count("I")
D=a.count("D")
b=[0]
for i in range(len(a)):
b.append(i+1)
b1=[i for i in b[0:I]]
b2=[j for j in b[I:]]
b2.sort(reverse=True)
c=[];cu1,cu2=0,0
for i in a:
if i=="I":
c.append(b1[cu1])
cu1+=1
else:
c.append(b2[cu2])
cu2+=1
if(cu1!=len(b1)):
c.app... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
74c1927ddec50a5fd6abea8524720bce578f3c39 | da052c0bbf811dc4c29a83d1b1bffffd41becaab | /core/stock_count_link_inv_adjust/models/stock_count.py | 320955c28c49a62f0247469c7f96181c6750588d | [] | no_license | Muhammad-SF/Test | ef76a45ad28ac8054a4844f5b3826040a222fb6e | 46e15330b5d642053da61754247f3fbf9d02717e | refs/heads/main | 2023-03-13T10:03:50.146152 | 2021-03-07T20:28:36 | 2021-03-07T20:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from odoo import fields, models, api
class StockCountInherit(models.Model):
_inherit = "stock.count"
def action_done(self):
self.action_inventory_adjustment()
self.inv_id.action_done()
print("inv id=====1111111=======", self.inv_id)
self.inv_id.write({'state': 'confirm'})
... | [
"jbalu2801@gmail.com"
] | jbalu2801@gmail.com |
45f034a56235052cb6039c6ce0f0280c9bfbc65c | 1533e34bec5adac39a27d42971c39f7cf610dc00 | /migrations/versions/77190eba98d9_vamo.py | 706a1baee8e798abbe085b43f9244e70f67af49d | [] | no_license | apocalipsys/florabot | 3d8c510d88ca20260471ae0916f406c8715beb4a | ff181430e20cd5739b1f3e6f872d4506002f9a7f | refs/heads/rama-desert | 2022-12-10T04:07:17.181809 | 2020-02-25T06:04:12 | 2020-02-25T06:04:12 | 241,262,587 | 2 | 0 | null | 2022-12-08T03:39:03 | 2020-02-18T03:22:14 | Python | UTF-8 | Python | false | false | 842 | py | """vamo
Revision ID: 77190eba98d9
Revises:
Create Date: 2019-08-11 03:10:10.235839
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '77190eba98d9'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by ... | [
"martinvargas82@gmail.com"
] | martinvargas82@gmail.com |
11266b5585922b736d205d227e1d6801bc5a9630 | cfd2df2e798d85805970ab9f355ee33ff20f0d6e | /array_find_repeat.py | f19559e5d4e105dc9c934943b234dc804e5dd3aa | [] | no_license | chaichai1997/python-algorithm | 483691ec4e3f386acac26412edaaae328cce3fae | 3b4815f3cc27eaceb9ad0b15b5e45077a9cd62a5 | refs/heads/master | 2022-11-15T22:37:28.035141 | 2020-07-13T13:01:35 | 2020-07-13T13:01:35 | 261,659,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | # -*- coding: utf-8 -*-
# author = "chaichai"
"""
找到数组中的唯一重复元素
"""
"""
借助字典实现,以空间换时间
"""
def find(array):
if array is None:
return -1
lens = len(array)
hash_table = dict()
for i in range(lens):
hash_table[array[i]] = 0
j = 0
for j in range(lens):
if hash_table[array[... | [
"1224816105@qq.com"
] | 1224816105@qq.com |
43add3d270a3864bc374264f663d6631bb82c1bc | f60b964dc39ba54bb84f1c4949be3b91a92b8346 | /track_order/forms.py | 07a601aa7dea5764b5b5fcc4168a15febb3a3310 | [
"Apache-2.0"
] | permissive | jiejiang/courier | 4b0b4fc56c5510228ffcc4de51b074c7aff9502f | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | refs/heads/master | 2022-11-30T14:24:53.950502 | 2019-12-06T16:42:00 | 2019-12-06T16:42:00 | 195,387,643 | 0 | 0 | Apache-2.0 | 2022-11-22T01:22:33 | 2019-07-05T10:08:19 | Python | UTF-8 | Python | false | false | 5,108 | py | # *- coding: utf-8 -*
from django.core.validators import RegexValidator
import re
from django.shortcuts import get_object_or_404
from django import forms
from django.db.models.manager import Manager
from django.utils.translation import ugettext as _
from mezzanine.accounts.forms import LoginForm, PasswordResetForm, Pr... | [
"mail.jie.jiang@gmail.com"
] | mail.jie.jiang@gmail.com |
f405684acdf758881166e153094be05f1bd7e74f | 0191140830e827ddfde9300d5cc5962018a7bac1 | /stats/repository/profile_repository.py | e5cb1f59a579dc58327fccc72662973f10bf9cc2 | [] | no_license | NicolleLouis/LouisNicolle | d816a60f30d92a9c2bc1b6ef6443c477505bf1bc | b99ae034d58afce5670d0b2fb0e5f3ce57bf1449 | refs/heads/master | 2023-08-17T20:37:29.024430 | 2021-09-13T14:26:02 | 2021-09-13T14:26:02 | 291,709,252 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from stats.models.profile import Profile
class ProfileRepository:
@staticmethod
def get_queryset():
return Profile.objects.all()
@staticmethod
def get_by_id(profile_id):
return Profile.objects.get(user__id=profile_id)
| [
"louisxnicolle@gmail.com"
] | louisxnicolle@gmail.com |
ab1b81423c60f8d6124f9ae265efaabae2dc2218 | 06476bc4cb7fc3ce378beb357fac7d5aacb87b3b | /Prototype/env/lib/python3.8/site-packages/numba/targets/base.py | e44b60224e131b42f5f71dd9513eef2b77f2e2de | [
"MIT"
] | permissive | marc-ortuno/VOPEC | 44d3a74d3e0686474dd57fcb21e845fd5fd48897 | e7ed1f13cc1868a824f4036dd08ec6bed4266c08 | refs/heads/main | 2023-06-12T19:15:18.060897 | 2021-07-01T17:15:03 | 2021-07-01T17:15:03 | 344,433,646 | 0 | 0 | MIT | 2021-06-14T19:15:47 | 2021-03-04T10:22:05 | Python | UTF-8 | Python | false | false | 43,040 | py | from __future__ import print_function
from collections import namedtuple, defaultdict
import copy
import os
import sys
from itertools import permutations, takewhile
from contextlib import contextmanager
import numpy as np
from llvmlite import ir as llvmir
import llvmlite.llvmpy.core as lc
from llvmlite.llvmpy.core i... | [
"you@example.com"
] | you@example.com |
15a5b9f4edafc0425bbc71ad0fadb13380abbce3 | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py | 46531f04cc5ac47ca4ff16d82187736d37233b04 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,609 | py | # basictimerapp - a really simple timer application.
# This should be run using the command line:
# pythonwin /app demos\basictimerapp.py
import string
import sys
import time
import timer
import win32api
import win32con
import win32ui
from pywin.framework import app, cmdline, dlgappcore, cmdline
class TimerAppDialog... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
3ea816954b53404bf8485c9a0d61ec4f52b95ec5 | ea3e35eb82436bfa1e544346267b126bd80888e6 | /verb_filter.py | 6f71b4c06076e8329e81faadebc86f830d37683a | [] | no_license | amazingguni/commits-dataset | 5800ed7c9624d036c0e286b7e6e14887ed6d261e | 688eea9b1906859e2538cd8eda50dac82b006738 | refs/heads/master | 2022-11-29T18:14:43.623696 | 2020-08-04T08:03:54 | 2020-08-04T08:03:54 | 261,342,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | import sys
from pathlib import Path
from utils import tokenize, overlap_two_seq, starts_with_verb, remove_tag_issue_number,\
remove_http_urls, remove_redundant_white_space, remove_last_special_char, starts_with_verb2, remove_no_english_str
import random
def main(path):
preprocessed_dir = Path(path)
f_all_inde... | [
"amazingguni@gmail.com"
] | amazingguni@gmail.com |
23c84214c30992885af2c6f196c75971c9b62e9f | e88a8bb96ee85d52fdd21613356a1b48a0aba18e | /src/analyse/run.py | 2dcf1d51eec94f97723cefce71980c8ca2528fdd | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | timtroendle/money-land | b5c3f527e7a30eaa25dd47cf2f1082c5dbb6bb29 | fe3ed6e531cfe91156886d4fa685a14840749f36 | refs/heads/master | 2023-06-28T16:42:27.982087 | 2021-08-04T15:07:51 | 2021-08-04T15:07:51 | 229,407,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,718 | py | import calliope
from calliope.core.util.logging import set_log_verbosity
import calliope.backend.run
import calliope.backend.pyomo
import calliope.core.attrdict
import calliope.exceptions
from calliope.analysis import postprocess
import pyomo.core as po
ROOFTOP_TECH_NAME1 = "roof_mounted_pv_n"
ROOFTOP_TECH_NAME2 = "ro... | [
"tim.troendle@usys.ethz.ch"
] | tim.troendle@usys.ethz.ch |
8aa2163b58f7138a4de76912ea66304b7649d175 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_327/ch178_2020_08_14_14_01_59_028335.py | 7badb3c3c79c26e0d310b79dcaf29de895cd1704 | [] | 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 | 214 | py | def junta_nomes(l0,l1,l2):
result = []
for i in l0:
for e in l2:
result.append(i + " " + e)
for a in l1:
for b in l2:
result.append(a + " " + b)
return result | [
"you@example.com"
] | you@example.com |
f9d3a990ff56d875f011dbad5ee2666d88489f69 | d6b7b16b6e9c3287ffcac3869d11b4c4286f4b89 | /pmg/models/posts.py | 8f1926e2c73c2377ec6ccd75b099b8ed739e0bc9 | [
"Apache-2.0"
] | permissive | havanhuy1997/pmg-cms-2 | 39e3e66f2b9f57a347e56b93d963c87554983fa7 | 21571235cf3d9552013bca29ab9af288b08e00d6 | refs/heads/master | 2020-06-27T20:05:05.776667 | 2019-08-01T07:46:47 | 2019-08-01T07:46:47 | 200,036,932 | 0 | 0 | Apache-2.0 | 2019-08-01T11:21:00 | 2019-08-01T11:20:59 | null | UTF-8 | Python | false | false | 1,502 | py | from sqlalchemy import func, sql
from sqlalchemy.orm import validates
from .base import FileLinkMixin
from pmg import db
class Post(db.Model):
__tablename__ = 'post'
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String, nullable=False)
slug = db.Column(db.String, nullable=False,... | [
"jbothma@gmail.com"
] | jbothma@gmail.com |
6bf6394e69ea92fd3ce0755abb504a5cbf668f18 | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/addons/io_mesh_raw/export_raw.py | b5c5ef36fea3b28cc3b7d5627738ef87e4a9815a | [
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
"GPL-2.0-or-lat... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 2,896 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program 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 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"admin@irradiate.net"
] | admin@irradiate.net |
3e6f3db8997dc8059f9c74f10b8bd93d869af08e | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/addons/presets/operator/mesh.primitive_xyz_function_surface/catalan.py | 8c8767584bda51ce6cf33a934249ef20f9c3c6f2 | [
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
"GPL-2.0-or-lat... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 446 | py | import bpy
op = bpy.context.active_operator
op.x_eq = 'u-sin(u)*cosh(v)'
op.y_eq = '4*sin(1/2*u)*sinh(v/2)'
op.z_eq = '1-cos(u)*cosh(v)'
op.range_u_min = -3.1415927410125732
op.range_u_max = 9.42477798461914
op.range_u_step = 32
op.wrap_u = False
op.range_v_min = -2.0
op.range_v_max = 2.0
op.range_v_step = 128
op.wrap... | [
"admin@irradiate.net"
] | admin@irradiate.net |
bfae4fb55b4f57600152cc8d3cb55d720b812077 | b9959cb19e518674b722e2a6fb879056c0f1ba83 | /kozmic/builds/views.py | 73a8d199b00b7c502aeff64b890e322d89a53943 | [] | no_license | bazilio91/kozmic-ci | d186d7c5b61081ea5eec972d36091c17ecfdf4be | f3ddc9145e4eb93803caae1511e1bcb4a9b18c7a | refs/heads/master | 2021-01-16T01:07:50.770776 | 2014-12-24T06:59:28 | 2014-12-24T07:40:16 | 31,765,700 | 0 | 0 | null | 2015-03-06T11:05:36 | 2015-03-06T11:05:35 | null | UTF-8 | Python | false | false | 3,379 | py | import json
import github3
import sqlalchemy
from flask import request, redirect, url_for
from kozmic import db, csrf
from kozmic.models import Project, Build, Hook, HookCall
from . import bp, tasks
def get_ref_and_sha(payload):
action = payload.get('action')
if action is None:
# See `tests.func_fi... | [
"anthony.romanovich@gmail.com"
] | anthony.romanovich@gmail.com |
64060e6e7e281f5870da0bd130d6b4b05662328c | e2ca3205bb5240a1e4c87de0bdb13faa70241f16 | /src/verify/image/alpine/proxy/setup.py | f3dc277e61ded0dff9250e7536da94e2549aecb9 | [
"Apache-2.0"
] | permissive | random-python/nspawn | 67da4d96d54dcbf537adaf3421a03020ea5c1769 | 25f53aa565c0685842a89d48d949b0459b1de0a6 | refs/heads/master | 2023-05-11T21:27:44.557577 | 2023-05-07T17:00:18 | 2023-05-07T17:00:18 | 184,904,641 | 21 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | #!/usr/bin/env python
# import os, runpy
# this_dir = os.path.dirname(os.path.abspath(__file__))
# runpy.run_path(f"{this_dir}/a.py")
from nspawn.setup import *
import platform
epoch = "3.10"
release = f"{epoch}.3"
hardware = platform.machine()
machine_name = "alpa-proxy"
network_face = TOOL.select_interface()
IM... | [
"andrei.pozolotin@gmail.com"
] | andrei.pozolotin@gmail.com |
865c1a19719a5537fde1e8a41f62e258ab016386 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/mtsmol017/question3.py | c1a527c00cceea2444895527ffa725ec32f0b7c3 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | x=input("Enter the message:\n")
y=eval(input("Enter the message repeat count:\n"))
b=eval(input("Enter the frame thickness:\n"))
v=b-1
u=len(x)
p=u+2
c=p+2*v
e=0
space=0
for i in range(v):
print("|"*e,"+","-"*c,"+","|"*e,sep="")
c=c-2
space=space+1
e=e+1
if b>0:
print("|"*v,"+",p*"-",... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
ada0361a5b786a11fe3b4e3330a7fe7f771d22a9 | f6a36e12544e228d327c22f17e425d9c1b69b988 | /SignalMC/python/AMSB_chargino_FilterSumPt50_cfi_py_GEN_SIM_DIGI_L1_DIGI2RAW_HLT_RAW2DIGI_L1Reco_RECO_PU.py | ae3e47d1a5520b7582cfed77a42a0938e92ec0da | [] | no_license | srimanob/DisappTrks | 1fcbe1bf6ac8ab0be5cde802d0da89efe52a5694 | 21c4edab368ea873502179352d9f186e6bd9ea69 | refs/heads/master | 2021-01-18T12:04:35.492215 | 2016-07-01T15:51:01 | 2016-07-01T15:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,685 | py | # Auto generated configuration file
# using:
# Revision: 1.381.2.27
# Source: /local/reps/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: DisappTrks/SignalMC/python/AMSB_chargino_FilterSumPt50_cfi.py -s GEN,SIM,DIGI,L1,DIGI2RAW,HLT:7E33v2,RAW2DIGI,L1Reco,RECO --co... | [
"wulsin.1@osu.edu"
] | wulsin.1@osu.edu |
b3254a295aa190918b3fac6417611cf475e45b40 | 4bb8b5ba278b26ce13e9adc0ca6c9d22daebea97 | /equivariantExperiments/trainOnMultipleGPUsCcFC_angles.py | 6c218f0b7f2c3c0995ab4a37b401332345bec5b9 | [] | no_license | thodorisGeorgiou/rotation_in-equivariance_experiments | 7a2d1389d25af99e8b6771b1524da40f50b92095 | 02722225547ba237cf3515892cdeeca621d16809 | refs/heads/main | 2023-03-13T02:53:18.150069 | 2021-03-04T12:17:05 | 2021-03-04T12:17:05 | 344,463,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,610 | py | import os
import sys
import numpy
import pickle
import scipy.ndimage
# from multiprocessing import Pool
import multiprocessing
sys.path.append("/scratch/georgioutk/cliffordConvolution/")
import tensorflow as tf
import cliffordConvolution as cc
import preprocessing
import ccCnnCcFC as network
# import perCInCcCnnCcFC a... | [
"thodorisgeorgiou65@gmail.com"
] | thodorisgeorgiou65@gmail.com |
b687da01dd8d2a85a8e6edf65dbb440abe5934a3 | 5a5b109bb29b21d3e2805a1cdac72261d862e2ae | /loop/ForElse.py | 2ad6e235650d27e97659178806759d836ac3da80 | [] | no_license | 3454833326/geek | 428030f7f780e9cd6b6f775b4518f295c6b6bb2d | 39214ff8c68e60b065f636da6dcb04c52e2a787a | refs/heads/master | 2021-05-27T04:20:16.035334 | 2020-04-08T23:27:25 | 2020-04-08T23:27:25 | 254,203,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | for i in range(1,10):
for j in range(1,i+1):
print(f'{i}*{j}={i*j}',end=' ')
print()
for i in range(1,6):
for j in range(1,i+1):#控制
print('*',end=' ')
print()
| [
"you@example.com"
] | you@example.com |
a86077f8cd3c3a560ec3bc48a61c949481ea7daf | aaf4ac03bc2497e5dc6df63a7c6ac8b88ec535be | /Notebooks/week-8/day1/twitter/settings.py | ae1e1d647a123e993c49e6e7dbb899f71894f85a | [] | no_license | tiy-gvl-python-2015-09/class-notes | ae7864e868eb052a7bd182c0416f4feba11c5182 | e7b1f4849f6045d657f5034d3432070c6cc08c57 | refs/heads/master | 2016-09-06T15:41:42.356534 | 2015-11-02T17:05:04 | 2015-11-02T17:05:04 | 42,471,740 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py | """
Django settings for twitter project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | [
"jtaddei@gmail.com"
] | jtaddei@gmail.com |
d12a52f71e3698240804934cd88872171f43888d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/79/usersdata/247/43511/submittedfiles/serie1.py | 90e784d791ec3951343a353ba1a25c5d7cf6ffee | [] | 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 | 222 | py | # -*- coding: utf-8 -*-
import math
n=int(input('digite n: '))
d=1
c=1
soma=0
t=1
while t<=n:
d=d+1
c=d**2
t=t+1
if t%2==0:
soma=soma-(d//c)
else:
soma=soma+(d//c)
print(c)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3219371d6d9064ce91bbce562de29eee8403174a | 4da55187c399730f13c5705686f4b9af5d957a3f | /resources/sumo_exporter/crossroad.py | 066119d5b50767c46efb4945edfc1ac6845750d0 | [
"Apache-2.0"
] | permissive | Ewenwan/webots | 7111c5587100cf35a9993ab923b39b9e364e680a | 6b7b773d20359a4bcf29ad07384c5cf4698d86d3 | refs/heads/master | 2020-04-17T00:23:54.404153 | 2019-01-16T13:58:12 | 2019-01-16T13:58:12 | 166,048,591 | 2 | 0 | Apache-2.0 | 2019-01-16T13:53:50 | 2019-01-16T13:53:50 | null | UTF-8 | Python | false | false | 3,345 | py | """Road class container."""
import math
import re
from re_definitions import floatRE, intRE
from data_structures import grouper
from lxml import etree as ET
class Crossroad(object):
"""Class matching with a Webots Crossroad, containing facilities to export to SUMO junctions."""
crossroads = []
def __i... | [
"David.Mansolino@cyberbotics.com"
] | David.Mansolino@cyberbotics.com |
d7f490aa2885aa9e485209b26c0ef98369f6b933 | 6bfda75657070e177fa620a43c917096cbd3c550 | /kubernetes/client/models/v1beta1_daemon_set.py | 60bc14e1d3b94368a23f36ef626edc220da4a1ff | [
"Apache-2.0"
] | permissive | don41382/client-python | 8e7e747a62f9f4fc0402eea1a877eab1bb80ab36 | e69d4fe204b98f7d7ee3ada3996b4f5fbceae5fe | refs/heads/master | 2021-01-19T23:15:50.172933 | 2017-04-18T18:00:48 | 2017-04-18T18:00:48 | 88,943,866 | 0 | 0 | null | 2017-04-21T05:19:52 | 2017-04-21T05:19:52 | null | UTF-8 | Python | false | false | 7,290 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
85b2df707765c4c88c8d8c146a13f60e046de768 | 460b244bbec6b389628eeb764b5e0b7e867e02cb | /optimization/core/util_data.py | 55284667810af9c0a148fac5e10e8db3e6ceaed7 | [] | no_license | chrisgarcia001/Synchronized-Multi-Assignment-Orienteering | e570af8fbc43d8731bf02b2abcd24a2c092aae23 | 70479c06d621086b7f9f2f675176aea5032bbdd3 | refs/heads/master | 2023-04-13T11:25:16.588814 | 2022-11-01T04:08:21 | 2022-11-01T04:08:21 | 427,838,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,931 | py | #-----------------------------------------------------------------------------------------------------
# Author: cgarcia@umw.edu
# Created: 2/20/2020
# About: This file contains some utility functions for generating data.
#
# Revision History:
# Date Author Change Description
# 2/20/2020 cgarcia ... | [
"chrisgarcia001@gmail.com"
] | chrisgarcia001@gmail.com |
42b4d2cf9e093309d52964fb146fcb504ce9a272 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/iul.py | db39819f804cf833bbe9f7691ab507e47bf45447 | [] | 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 |
03af5da735bc880fd6176f87063e0985480a8d6a | af82475dc7eb45c478414372c222e7b6016359d4 | /python书籍/Python For Finance Code/Code of Python For Finance/4375OS_09_Code/4375_09_21_binomial_Su_Sd.py | c2af289baf7f964e56e4f84512260d98c35b921b | [] | no_license | enfangzhong/PythonBaseCode | 8f58c8b817eb9f4b0f0a5be437a52d5b5fab3433 | 9ab4a578b2692fdbb6aeeacb310251d51f72e953 | refs/heads/master | 2020-05-17T16:26:02.598344 | 2019-04-27T20:49:40 | 2019-04-27T20:49:40 | 183,817,172 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | """
Name : 4375OS_09_21_binomial_Su_Sd.py
Book : Python for Finance
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 12/26/2013
email : yany@canisius.edu
paulyxy@hotmail.com
"""
import matplotlib.pyplot as plt
xlim(0,1)
plt.figtext(0.18,0.5,'S')
plt.figtext(0.6,0.... | [
"944727327@qq.com"
] | 944727327@qq.com |
614e8846da19530315cf0a985d7bc505b4ad1ffa | 03052ddcbda8944b836248ba3de58fecc946974e | /cardinal_pythonlib/rnc_text.py | 41945d8709dd3bbff2f51a2390ef19664823c865 | [
"Apache-2.0"
] | permissive | kileung-at-cb/pythonlib | 1bc31ebd78b3404bfefb77ce675a7d3a19dda89d | b79595de03a09796b48e7d6d19d4c37ddcb643ac | refs/heads/master | 2021-01-01T06:42:24.240931 | 2017-05-02T08:52:11 | 2017-05-02T08:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,763 | py | #!/usr/bin/env python
# -*- encoding: utf8 -*-
"""Textfile results storage.
Author: Rudolf Cardinal (rudolf@pobox.com)
Created: 2009
Last update: 24 Sep 2015
Copyright/licensing:
Copyright (C) 2009-2015 Rudolf Cardinal (rudolf@pobox.com).
Licensed under the Apache License, Version 2.0 (the "License");
... | [
"rudolf@pobox.com"
] | rudolf@pobox.com |
0dd4858585bb91807053895813bd9c5cfe6a5169 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/warmheartli_ChatBotCourse/ChatBotCourse-master/subtitle/preprocess/mv_zip.py | abd02f4f9029aae4f962d508e75b310134b61ee9 | [] | 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 | 481 | py | import glob
import os
import fnmatch
import shutil
import sys
def iterfindfiles(path, fnexp):
for root, dirs, files in os.walk(path):
for filename in fnmatch.filter(files, fnexp):
yield os.path.join(root, filename)
i=0
for filename in iterfindfiles(r"./input/", "*.ZIP"):
i=i+1
newfil... | [
"659338505@qq.com"
] | 659338505@qq.com |
ccfcc740765b86fd30656349bd302d96acc5b0ac | 2194b6c17f3153c5976d6ac4a9ab78211027adab | /otoroshi_admin_api_client/models/otoroshiutilsmailer_generic_mailer_settings.py | a92d1005941524a407022b597ec668261a6a32e8 | [] | no_license | krezreb/otoroshi-admin-api-client | 7fab5e873c9c5950d77fffce6bcf80d3fdf4c319 | 9b3156c11eac227024cfe4a26c0129618deb2c4d | refs/heads/master | 2023-05-08T08:32:00.982987 | 2021-05-27T09:55:00 | 2021-05-27T09:55:00 | 371,324,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.otoroshiutilsmailer_email_location import OtoroshiutilsmailerEmailLocation
from ..models.otoroshiutilsmailer_generic_mailer_settings_headers import OtoroshiutilsmailerGenericMailerSettingsHeaders
from ..models.otoroshiutilsmailer_gener... | [
"josephbeeson@gmail.com"
] | josephbeeson@gmail.com |
84255a0dd811e56d25d5f188a90e82f3cde0ebfd | f360c6fe06fb9859039a5d39fad5815fd4aff372 | /community/community/settings.py | 03c23fe8c6938d3fa32e191fc23503d3ce85174c | [] | no_license | gwjczwy/Django-CMS | d6297055957548997e86d383d54ae051062c8854 | f1a00d637c65809d606df3d4b96bcc594af09bd8 | refs/heads/master | 2020-04-24T21:57:44.818864 | 2019-03-03T08:41:50 | 2019-03-03T08:41:50 | 172,295,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,206 | py | """
Django settings for community project.
Generated by 'django-admin startproject' using Django 2.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"zwy053@163.com"
] | zwy053@163.com |
0f78b322495fcc4b94ab7128cbaa72bd339f862a | b8bbdfc593b6d816e67a344f720f90ec05236778 | /dev/mypy/plugin/decorators.py | 1957b59996576d5742ee2d4702404edfd4a247c8 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | apache/airflow | ed78db0a8bab7e096990e143926e52f518e288ab | 1b122c15030e99cef9d4ff26d3781a7a9d6949bc | refs/heads/main | 2023-09-01T08:37:34.556097 | 2023-09-01T06:49:05 | 2023-09-01T06:49:05 | 33,884,891 | 22,756 | 11,558 | Apache-2.0 | 2023-09-14T20:12:36 | 2015-04-13T18:04:58 | Python | UTF-8 | Python | false | false | 2,942 | 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... | [
"noreply@github.com"
] | apache.noreply@github.com |
db7d202b86ebe4b5f5f44e2c932195e11dc2d9d3 | 2a157b0378fb3b59ffea8160de942b780e433bac | /surf.py | 4209986097b2a2ce431fe7d24d3a078c7d6202cf | [] | no_license | WeixinGithubJiang/imgret | bb05a5b4c71a5e023882f474007df468070264bd | 28ac6461de815e37539f1893c29d4af6d1c1647d | refs/heads/master | 2021-10-09T01:03:43.443255 | 2018-12-19T14:08:18 | 2018-12-19T14:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | import cv2
from local_feature import LocalFeature
class SURF(LocalFeature):
def __init__(self,
image_size,
keypoint_image_border_size,
max_keypoint_count,
ldescriptor_length,
hessian_threshold,
extended,
... | [
"osemery@gmail.com"
] | osemery@gmail.com |
82e74179866ad9243cd200fd873cdcc54082b43c | eabf9d677b9ccd59f42e5359e46720899bf8cf10 | /PyFunceble/status/reputation/domain_and_ip.py | 6e54eed6e74d4487e4bbead828c16010eb4cac60 | [
"Apache-2.0"
] | permissive | Phyleas/PyFunceble | 26263c55f7cf1f282348660cdadcb6c9c3989d70 | 1f6fb58e1afc29fc4418ffc84d1e066cbd836125 | refs/heads/master | 2023-08-21T22:27:14.448059 | 2021-06-13T08:50:33 | 2021-06-13T08:50:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,178 | py | """
The tool to check the availability or syntax of domain, IP or URL.
::
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝
██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █... | [
"contact@funilrys.com"
] | contact@funilrys.com |
b63576e0ab27f1712ffce71a6a7894c4cfe75dca | 6b19ed8845f7cb020ad49da57a0c0fe85314a274 | /zerver/migrations/0154_fix_invalid_bot_owner.py | 831dd1298d504d5f67ce28e23ff86f7dfc463cd7 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | jahau/zulip | eb4da13858892065591caced88fc9a086fa0e0d2 | 51a8873579b9d4bb95219cd4a5c859fa972fa06b | refs/heads/master | 2021-05-18T03:44:32.003307 | 2020-03-27T22:29:55 | 2020-03-28T19:04:36 | 251,087,399 | 1 | 0 | Apache-2.0 | 2020-03-29T17:11:42 | 2020-03-29T17:11:42 | null | UTF-8 | Python | false | false | 890 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-04-03 01:52
from __future__ import unicode_literals
from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def migrate_fix_invalid_bot_owner_values(ap... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
b73696b3d2790af9f065fd9f7d86caf8d4ac6135 | 812045c3ec6587827aeb18bde666237dfffc21ae | /tf_quant_finance/models/heston/approximations/__init__.py | 5432abd6f5a8def3d371ed7293d0a56b73ae16a4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | google/tf-quant-finance | 2062082c85e8679b71e69bbeb579fe338c1b0288 | 0d3a2193c0f2d320b65e602cf01d7a617da484df | refs/heads/master | 2023-08-31T01:58:15.415811 | 2023-08-15T07:37:46 | 2023-08-15T07:38:22 | 198,669,252 | 4,165 | 557 | Apache-2.0 | 2023-08-04T19:25:55 | 2019-07-24T16:09:50 | Python | UTF-8 | Python | false | false | 1,143 | py | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"tf-quant-finance-robot@google.com"
] | tf-quant-finance-robot@google.com |
e71034657c2ddde1dd53e31bbc3a037549103ec6 | 433a24663b73fa3550069fafe3a8af24c61a864c | /pyscreenshot/plugins/pyside2_grabwindow.py | 39b0cd494cb67bc94d84ddb506b22f64c38cc2d1 | [
"BSD-2-Clause"
] | permissive | robocorp/rpaframework-screenshot | 472c9f73237df27266e68ff43dd96e2402eb6325 | 7cf03b23f4bdf1e4a2e3df1893de598e852dd346 | refs/heads/master | 2021-06-13T21:31:47.342026 | 2020-04-12T18:16:34 | 2020-04-12T18:16:34 | 254,451,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | import logging
from PIL import Image
from pyscreenshot.plugins.backend import CBackend
from pyscreenshot.util import py2
if py2():
import StringIO
BytesIO = StringIO.StringIO
else:
import io
BytesIO = io.BytesIO
log = logging.getLogger(__name__)
# TODO:PY2 error:
# TypeError: 'PySide2.QtGu... | [
"ponty@home"
] | ponty@home |
dbf9838d8a0fe09396539ff90c7f896781279b36 | d489eadec9d4499ed066223f8e4881f14c3cc777 | /.ci/prep_azure.py | 5199a87e0ef8d5042c35777013a9fdcd20065a68 | [
"BSD-3-Clause"
] | permissive | lumatijev/mitogen | d0121faa8c3aa87a08b09bbe5967d6c0a3ac1263 | b610b0c93bbab1bc0fbe86cfcc4f3a56fd2b2c14 | refs/heads/master | 2020-04-28T15:48:12.177452 | 2019-03-13T16:59:48 | 2019-03-13T16:59:48 | 175,389,282 | 0 | 0 | BSD-3-Clause | 2019-03-13T09:34:01 | 2019-03-13T09:34:00 | null | UTF-8 | Python | false | false | 616 | py | #!/usr/bin/env python
import os
import sys
import ci_lib
batches = []
if ci_lib.have_apt():
batches.append([
'echo force-unsafe-io | sudo tee /etc/dpkg/dpkg.cfg.d/nosync',
'sudo add-apt-repository ppa:deadsnakes/ppa',
'sudo apt-get update',
'sudo apt-get -y install python2.6 pyth... | [
"dw@botanicus.net"
] | dw@botanicus.net |
6acd32f865beb3eb546bed1a532bd159c0d26e2f | 940d7b93fb27e8eead9b6e52bc5c7444666744dd | /python/src/Tools/msi/msi.py | 38731e25c61d6c00a1c1f91fb9ced0156963d8d9 | [
"Apache-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Python-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi"
] | permissive | pilotx45/sl4a | d446531d310cc17d93f24aab7271a0813e8f628d | 150e3e46b5103a9b9a391034ef3fbc5bd5160d0f | refs/heads/master | 2022-03-24T19:48:30.340479 | 2022-03-08T16:23:58 | 2022-03-08T16:23:58 | 277,016,574 | 1 | 0 | Apache-2.0 | 2022-03-08T16:23:59 | 2020-07-04T01:25:36 | null | UTF-8 | Python | false | false | 58,459 | py | # Python MSI Generator
# (C) 2003 Martin v. Loewis
# See "FOO" in comments refers to MSDN sections with the title FOO.
import msilib, schema, sequence, os, glob, time, re, shutil
from msilib import Feature, CAB, Directory, Dialog, Binary, add_data
import uisample
from win32com.client import constants
from distutils.spa... | [
"damonkohler@gmail.com"
] | damonkohler@gmail.com |
33863f605bfdb090461483e022ae5109bdf4aec5 | 41a008ceea2ae75b94cf2110a1370af1f789ff3f | /lava/helper/tests/test_dispatcher.py | 1eb1b3a512256d244782fd34e41b11f1e0982a9f | [] | no_license | guanhe0/lava_v1 | 937916a0009c0a3f801e61f7580b96e324da64b1 | c49e753ce55104e3eadb0126088b7580a39446fe | refs/heads/master | 2022-10-28T02:33:52.924608 | 2017-01-04T07:24:59 | 2017-01-04T08:43:37 | 78,068,030 | 0 | 1 | null | 2022-10-07T02:00:16 | 2017-01-05T01:36:27 | Python | UTF-8 | Python | false | false | 2,855 | py | # Copyright (C) 2013 Linaro Limited
#
# Author: Milo Casagrande <milo.casagrande@linaro.org>
#
# This file is part of lava-tool.
#
# lava-tool is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation
#
... | [
"fanghuangcai@163.com"
] | fanghuangcai@163.com |
88a28ce29d0031ad716e0bbc7ad2035a3d388f17 | 05f4b73f8fab3a7b995bf2bd28b9f7eeba89d9e7 | /2_20210127.py | ff3d5f3cf95828e755cc4f194752270dd86c6d17 | [] | no_license | AlgorithmOnline/jaeeun | c7ee9504dd8109a8e0154e0ce514f35796ba368c | 65dfee579d7a75bcc240a190e7edff10d285d113 | refs/heads/master | 2023-04-20T02:52:12.673218 | 2021-05-07T13:56:05 | 2021-05-07T13:56:05 | 286,736,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | N, M = map(int, input().split())
print(N+M)
| [
"rha3122@naver.com"
] | rha3122@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.