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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c6f5f3941b86fc9197ffda49361b9e893dd4af5d | d87483a2c0b50ed97c1515d49d62c6e9feaddbe0 | /.history/get_positions_20210205015710.py | 71c1dcc17b16ec8ec382841ca4d884e1bb8d3c0f | [
"MIT"
] | permissive | HopperKremer/hoptrader | 0d36b6e33922414003cf689fb81f924da076a54b | 406793c10bc888648290fd15c7c2af62cf8c6c67 | refs/heads/main | 2023-06-12T15:51:00.910310 | 2021-07-06T16:15:41 | 2021-07-06T16:15:41 | 334,754,936 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | # Buy top tickers from Financhill
import requests
from tda import auth, client
from tda.orders.equities import equity_buy_market, equity_buy_limit
from tda.orders.common import Duration, Session
import os, sys
import time
from selenium import webdriver
import json
currentdir = os.path.dirname(os.path.realpath(__file__... | [
"hopperkremer@gmail.com"
] | hopperkremer@gmail.com |
ad9989eac00b34fb5d4c74cacffaf49e07c379a3 | 042bd40e554ac7fcd618c334ae98b4f43248a250 | /examples/python/gpu/tensors/ocean_cast_01.py | ce97706ce32728f5fa42af5c74d567a917e63ef7 | [
"Apache-2.0"
] | permissive | kant/ocean-tensor-package | 8a62df968335de2057ff095f0910e5ad5fcff8e1 | fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d | refs/heads/master | 2020-03-29T04:01:22.064480 | 2018-09-19T19:17:19 | 2018-09-19T19:17:19 | 149,511,923 | 0 | 0 | Apache-2.0 | 2018-09-19T21:03:14 | 2018-09-19T21:03:14 | null | UTF-8 | Python | false | false | 388 | py | import ocean
A = ocean.asTensor([1,2,3])
B = A.storage
C = ocean.int8(10)
print(ocean.gpu[0](A))
print(ocean.ensure(A,ocean.float,ocean.gpu[0]))
ocean.ensure(A,ocean.half,ocean.gpu[0],True)
print(A)
print(ocean.gpu[0](B))
print(ocean.ensure(B,ocean.int8,ocean.gpu[0]))
ocean.ensure(B,ocean.gpu[0],True)
print(B)
pr... | [
"evandenberg@us.ibm.com"
] | evandenberg@us.ibm.com |
a2b91eceee4b8605757728c8196874fbfb1c1d05 | 71469cb9d9dd41438373be83c1e43b67bca25649 | /tests/test__util.py | 5f8dd6d9d82c8331fe015eef296620530e1e28c4 | [
"MIT"
] | permissive | achillesrasquinha/honcho | 7494042775f205b5c0690676856a49185f4ef5d1 | aab83cb10b1d4832c82a4dd3661a6b6df1e1e021 | refs/heads/master | 2020-03-26T10:00:02.351236 | 2018-08-17T18:37:34 | 2018-08-17T18:37:34 | 144,776,468 | 0 | 0 | MIT | 2018-08-14T22:03:08 | 2018-08-14T22:03:08 | null | UTF-8 | Python | false | false | 397 | py | from honcho._util import (
_get_if_empty,
_listify
)
def test__get_if_empty():
assert _get_if_empty("foo", "bar") == "foo"
assert _get_if_empty(None, "bar") == "bar"
def test__listify():
assert _listify("foo") == ["foo"]
assert _listify(12345) == [12345]
assert _listify(["foo"]) == ["... | [
"achillesrasquinha@gmail.com"
] | achillesrasquinha@gmail.com |
ce9cacb177ce5e5ab233a69cca7469454d7a56e2 | 61dcd9b485bc5e6d07c4adf14f138eabaa9a23b5 | /evennumberedexercise/Exercise10_2.py | 484e16240b641b4684b13211c0c81be57f8d9814 | [] | no_license | bong1915016/Introduction-to-Programming-Using-Python | d442d2252d13b731f6cd9c6356032e8b90aba9a1 | f23e19963183aba83d96d9d8a9af5690771b62c2 | refs/heads/master | 2020-09-25T03:09:34.384693 | 2019-11-28T17:33:28 | 2019-11-28T17:33:28 | 225,904,132 | 1 | 0 | null | 2019-12-04T15:56:55 | 2019-12-04T15:56:54 | null | UTF-8 | Python | false | false | 303 | py | def main():
# Read numbers as a string from the console
s = input("Enter numbers separated by spaces from one line: ")
items = s.split() # Extracts items from the string
numbers = [ eval(x) for x in items ] # Convert items to numbers
numbers.reverse()
print(numbers)
main() | [
"38396747+timmy61109@users.noreply.github.com"
] | 38396747+timmy61109@users.noreply.github.com |
6f52e25526d91b14a03debb468ee2df71da8d084 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_Loctet_exo3_2.py | bf23d8a702249cdbeb9c90068dad392df81c129c | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 943 | py | def flip(s):
s=s[::-1]
final=""
for i in s:
if i=="-":
final+="+"
else:
final+="-"
return final
def lastOccur(s):
l=len(s)
l-=1
while l>=0:
if s[l]=="-":
return l
l-=1
return -1
input = open("B-large.in"... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
e999a16e6adfdf17446ba8992e64289a3804c4f2 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/intermediate/125_get_most_recommended_books/save2_nopass.py | 797bdd2662c2b1d825c4e4a7e7ca198722722ac8 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,283 | py | from collections import Counter
from bs4 import BeautifulSoup
import requests
AMAZON = "amazon.com"
# static copy
TIM_BLOG = ('https://bites-data.s3.us-east-2.amazonaws.com/'
'tribe-mentors-books.html')
MIN_COUNT = 3
def load_page():
"""Download the blog html and return its decoded content"""
wit... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6633aaf841c66798b7f26e53ce98722ba6c11f37 | 086c199b617f304f5edcbb3481a82119b9cec99d | /build/turtlebot3_simulations/turtlebot3_gazebo/catkin_generated/pkg.installspace.context.pc.py | 71b5c21b7cabd6268333c28e49d1b4f0f942a34c | [] | no_license | canveo/catkin_ws | 59634bee66aa9f5ed593acd85e6bd4e2e2eaab01 | 3c931df576529ad7e1e48dc0e69ba131914d18dc | refs/heads/master | 2023-02-28T13:23:43.653964 | 2021-02-03T23:00:45 | 2021-02-03T23:00:45 | 325,388,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;sensor_msgs;geometry_msgs;nav_msgs;tf;gazebo_ros".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WIT... | [
"canveo@gmail.com"
] | canveo@gmail.com |
fafa22e9f1df1fccc783dd15e51ccf5964a48f0e | 406bf29e4cfc59bc2cc6005813e4a63065c642bb | /jhyouk_universal_filter/13_SV/Delly_annotation_scripts/04.find_BP.py | d0fd9fd9b0bc1c2085ea05b43aee84e05620e0cd | [] | no_license | leehs96/Emergency_backup | 630c5efbe17f3175851ee80ef6dde72f5f613fe7 | 9bc30b7a5eda03ac207b16f83d93559a5637ac19 | refs/heads/main | 2023-02-10T11:43:40.172101 | 2021-01-05T06:10:33 | 2021-01-05T06:10:33 | 326,903,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,499 | py | #Arg1: delly output # must be sorted. (del 3-5, dup 5-3, inv pos1<pos2, tra chr1<chr2; 1...22,X,Y,MT)
#Arg2: Tumor bam
#Arg3: Normal bam
import sys, pysam
import collections
from scipy.stats import ttest_ind
print('### Find BP')
print(sys.argv[1])
dl_file=open(sys.argv[1]) # delly output
dl_line=dl_file.readline()... | [
"hs960201@gmail.com"
] | hs960201@gmail.com |
c156856679b73744598416c2c230ac998017c6fb | 762742b3c5cb5706e93e12dbdc3f8c46fc65f0db | /Tests/scripts/utils/get_modified_files_for_testing.py | 6333c7c2593b8c7ec585000499dfa924647c6328 | [
"MIT"
] | permissive | EmersonElectricCo/content | 018f95f7fe7de13819e093a3661587a18407e348 | 82c82bbee7d428f0b14991a88c67672e2c02f5af | refs/heads/master | 2021-06-17T04:54:22.938033 | 2021-05-06T16:39:59 | 2021-05-06T16:39:59 | 161,693,191 | 2 | 0 | MIT | 2018-12-18T15:16:49 | 2018-12-13T20:47:26 | Python | UTF-8 | Python | false | false | 8,790 | py | """
This class replaces the old get_modified_files_for_testing function in collect_tests_and_content_packs
"""
import glob
import os
from typing import Dict, Set, Optional
import demisto_sdk.commands.common.constants as constants
from demisto_sdk.commands.common.constants import FileType
from Tests.scripts.utils.colle... | [
"noreply@github.com"
] | EmersonElectricCo.noreply@github.com |
0f1fe0d7b7427e43223e7a9c0c4c64f6116a45f0 | caf8cbcafd448a301997770165b323438d119f5e | /.history/spider/car_spider_20201124011404.py | ac405951f74aa797df77660aae074658fec4ce27 | [
"MIT"
] | permissive | KustomApe/nerdape | 03e0691f675f13ce2aefa46ee230111247e90c72 | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | refs/heads/main | 2023-01-23T10:13:26.584386 | 2020-11-28T22:29:49 | 2020-11-28T22:29:49 | 309,897,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | from selenium import webdriver
import pandas as pd
import time
"""[Initial Setting]
初期設定
"""
options = webdriver.ChromeOptions()
options.add_argument('--headeless')
options.add_argument('--disable-gpu')
options.add_argument('--lang-ja')
browser = webdriver.Chrome(chrome_options=options, executable_path='./chromedriver... | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
9bf5f9186fe2f542ae87d34473bbfe712d6079a5 | df816f41be8f02107f08b7651e9397b1c905c154 | /1_Classic_RL/Exercises/6 - TD Learning/CliffWalking/plot_utils.py | 8d5b55b91b46530e339d7d36f6b5878fe45467bf | [] | no_license | PabloRR100/Reinforcement-Learning | 7f11caeb2eb2bc68b2ae6b2b3bc7fb4b651eae68 | 8d926cdae59f89a215391ca825d9f07f778dbd96 | refs/heads/master | 2020-03-27T18:39:42.969119 | 2018-12-17T19:01:36 | 2018-12-17T19:01:36 | 146,935,269 | 1 | 2 | null | 2018-09-07T23:37:01 | 2018-08-31T19:36:43 | Jupyter Notebook | UTF-8 | Python | false | false | 620 | py | import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style("white")
import warnings
warnings.filterwarnings('ignore', 'DeprecationWarning')
def plot_values(V):
# reshape the state-value function
V = np.reshape(V, (4,12))
# plot the state-value function
fig = plt.figure(figsize=(15,5))
... | [
"pabloruizruiz10@gmail.com"
] | pabloruizruiz10@gmail.com |
6cc279aca08425752f46c34dd433ac0d8c904369 | 94c8f0b09ced7ae86fba0d09faf4310e508c18e5 | /scaler/dp2/dp4/largest_rectangle.py | ab95e9ec10944ed6e47c17d22cc8956dfee29a56 | [] | no_license | navkant/ds_algo_practice | 6e7dd427df6ac403ac23fa68b079b162b839447a | a2b762d08b151f6dbbc12d76dd930f6cd7b9017d | refs/heads/master | 2023-06-24T02:56:25.886991 | 2021-06-13T03:42:24 | 2021-06-13T03:42:24 | 376,431,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | import sys
class LargestRectangle:
def nearest_minimum_left(self, a):
n = len(a)
ans_arr = []
stack = []
for i in range(n):
if not stack:
ans_arr.append(-1)
stack.append(i)
else:
if a[i] > a[stack[-1]]:
... | [
"navkanttyagi@MacBook-Air.local"
] | navkanttyagi@MacBook-Air.local |
fd5d20da9b0ffd715c0a27df62cb9aa1293849d8 | 1eb7fa8b1745d4e51cefb4eceb44621862516aa6 | /Company Interview/FB/regularExpressionMatching.py | 7c2ad7787f3d25cd13d93fb3a68ba0ddc93ad340 | [] | no_license | geniousisme/CodingInterview | bd93961d728f1fe266ad5edf91adc5d024e5ca48 | a64bca9c07a7be8d4060c4b96e89d8d429a7f1a3 | refs/heads/master | 2021-01-10T11:15:31.305787 | 2017-03-06T00:03:13 | 2017-03-06T00:03:13 | 43,990,453 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | class Solution(object):
def isMatch(self, string, pattern):
if not pattern:
return not string
if len(pattern) == 1 or pattern[1] != "*":
if len(string) > 0 and (pattern[0] == string[0] or pattern[0] == '.'):
return self.isMatch(string[1:], pattern[1:])... | [
"chia-hao.hsu@aiesec.net"
] | chia-hao.hsu@aiesec.net |
195a360a6648a5e09af02d18b5658a57ef3334fd | 158bee983b2cf6586b64ed499a05eb816f898fda | /aws/pdfbook/browser/__init__.py | 4a7b943a175af8909c0f6e2ca7a0c68515e7b4ea | [] | no_license | collective/aws.pdfbook | 35a8bd05eee4a7e94c6ac8ec415c213a289f664d | e8c72ab4a46cff832994dd3623025be8093dfdda | refs/heads/master | 2023-06-26T13:38:25.735929 | 2018-03-02T12:05:57 | 2018-03-02T12:05:57 | 12,920,175 | 0 | 0 | null | 2018-03-02T12:06:00 | 2013-09-18T10:25:53 | Python | UTF-8 | Python | false | false | 123 | py | # -*- coding: utf-8 -*-
# $Id: __init__.py 116190 2010-04-26 20:36:44Z glenfant $
"""Browser view resources for PDFBook"""
| [
"thomas.desvenain@gmail.com"
] | thomas.desvenain@gmail.com |
6b6d42eb3d030728790f8497fe392eada6aed1ca | 7f4fae8e0a9e29fc3abee784a2d7d0beb8252bd5 | /wulifang/nuke/_rotopaint_dopesheet.py | 23d06b434f378fa9e35ffc0575925e1cbec8a39d | [] | no_license | WuLiFang/Nuke | a303646e927c9745f2eaf8dad4e5e1ccc09a30e7 | 49df48ded0985771147b1a40707b5454291eab19 | refs/heads/master | 2023-07-21T13:36:27.423572 | 2023-07-17T10:34:04 | 2023-07-17T10:34:04 | 100,696,180 | 16 | 5 | null | 2020-03-08T11:50:16 | 2017-08-18T09:28:26 | Python | UTF-8 | Python | false | false | 5,497 | py | # -*- coding=UTF-8 -*-
# pyright: strict, reportTypeCommentUsage=none
from __future__ import absolute_import, division, print_function, unicode_literals
import re
import nuke
import nuke.rotopaint
import nuke.curvelib
from wulifang._util import cast_str, cast_text
from wulifang.nuke._util import (
iter_deep_rot... | [
"NateScarlet@Gmail.com"
] | NateScarlet@Gmail.com |
1ef74bbd7592936fff5d016713ea948ded5646f2 | af4d559792c4255d5f26bc078cd176b70c0e643f | /hpsklearn/components/cross_decomposition/_pls.py | bdad86189563c644c43df8232c49ae1312194937 | [
"BSD-3-Clause"
] | permissive | hyperopt/hyperopt-sklearn | ec7d5f97ba8fd5a2c283dfec2fa9e0170b61c6ce | 4b3f6fde3a1ded2e71e8373d52c1b51a0239ef91 | refs/heads/master | 2023-08-02T07:19:20.259964 | 2022-12-15T17:53:07 | 2022-12-15T17:53:07 | 8,293,893 | 1,480 | 292 | NOASSERTION | 2022-12-15T17:53:08 | 2013-02-19T16:09:53 | Python | UTF-8 | Python | false | false | 3,586 | py | import typing
from hpsklearn.components._base import validate
from hyperopt.pyll import scope, Apply
from hyperopt import hp
from sklearn import cross_decomposition
import numpy as np
@scope.define
def sklearn_CCA(*args, **kwargs):
return cross_decomposition.CCA(*args, **kwargs)
@scope.define
def sklearn_PLS... | [
"38689620+mandjevant@users.noreply.github.com"
] | 38689620+mandjevant@users.noreply.github.com |
eb4a254fb36a421c34158c7005be74caf6428b30 | d56da1af021d7ebb876b70e7a7c3c3b2ac28087e | /dpxdt/server/operations.py | 4a4808f4ebcdde1cb227f4bb16d43c91e29929af | [
"Apache-2.0"
] | permissive | rudbaby/dpxdt | 7173146ea7d8e27a7db10732e4258605af8c7e82 | 8fbf14bb45ac01932fa5ca170d15c54880db5eff | refs/heads/master | 2022-11-19T18:03:57.823869 | 2013-08-05T08:23:06 | 2013-08-05T08:23:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,276 | py | #!/usr/bin/env python
# Copyright 2013 Brett Slatkin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"brett@haxor.com"
] | brett@haxor.com |
6be9a2f554cfe414a831a4e52764e37f7205a2d7 | 53b9432487fbb62a5f48d37754d0404e2672a0f7 | /facebookspider-master2/facebookspider/redyurl.py | 038eeda369fb5b503d2adbd739ca578de300743c | [] | no_license | swg0110/facebook_spider | ff7c3caeb76fccd3bbc2b23b586a2b5825a77598 | a5e3b12d56cb2759942b486b7f4da3b94dfa6839 | refs/heads/master | 2021-09-17T18:33:09.636336 | 2018-07-04T11:53:14 | 2018-07-04T11:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #-*- coding: UTF-8 -*-
import pymongo
import time
from datetime import datetime
# import sys
# reload(sys)
# sys.setdefaultencoding('utf8')
client = pymongo.MongoClient(host="127.0.0.1", port=27017)
db = client["singapore"]
db.authenticate("yufei", "xjtu@2017")
coll = db["facebook2"]
a = coll.find()
print (a.count())
... | [
"492741071@qq.com"
] | 492741071@qq.com |
a67fb27375b43889f824b029ae74c17f764a8f1a | 02abe19ffa1b832c989911807cc01c10c83c92bc | /src/djangosaml2_spid/views.py | e3e370420663cb3759b027e457c2ff651a02319b | [
"Apache-2.0"
] | permissive | peppelinux/djangosaml2_spid | b244a8b007486f815ac86aed44fa28466bd5373e | b7bda086e8da081e28aa337e6eab1b5ef84679d0 | refs/heads/main | 2023-03-03T21:07:01.046213 | 2021-02-16T09:24:38 | 2021-02-16T09:24:38 | 335,000,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,792 | py | import base64
import logging
import random
import saml2
import string
from django.conf import settings
from django.contrib import auth
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from django.dispatch imp... | [
"giuseppe.demarco@unical.it"
] | giuseppe.demarco@unical.it |
fb9fff047ea9f91c6306fde600390b8cc180df7f | ebd6f68d47e192da7f81c528312358cfe8052c8d | /swig/Examples/test-suite/python/cpp11_uniform_initialization_runme.py | ecb468ccbab5774868fae2adf8e1162f13d56457 | [
"LicenseRef-scancode-swig",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | inishchith/DeepSpeech | 965ad34d69eb4d150ddf996d30d02a1b29c97d25 | dcb7c716bc794d7690d96ed40179ed1996968a41 | refs/heads/master | 2021-01-16T16:16:05.282278 | 2020-05-19T08:00:33 | 2020-05-19T08:00:33 | 243,180,319 | 1 | 0 | Apache-2.0 | 2020-02-26T05:54:51 | 2020-02-26T05:54:50 | null | UTF-8 | Python | false | false | 554 | py | import cpp11_uniform_initialization
var1 = cpp11_uniform_initialization.cvar.var1
if var1.x != 5:
raise RuntimeError
var2 = cpp11_uniform_initialization.cvar.var2
if var2.getX() != 2:
raise RuntimeError
m = cpp11_uniform_initialization.MoreInit()
if m.charptr != None:
raise RuntimeError, m.charptr
m.charp... | [
"inishchith@gmail.com"
] | inishchith@gmail.com |
5aad7e0cb8a7d3330496ab6719606b80e1ce9362 | d963fb56dbb92cc7317c0a042c9059239ebaa028 | /problems/LC31.py | f1c1a4832845498896b69b66f880c332d2a9f312 | [] | no_license | ClaudioCarvalhoo/you-can-accomplish-anything-with-just-enough-determination-and-a-little-bit-of-luck | 20572bde5482ddef379506ce298c21dd5e002492 | df287ed92a911de49ed4bc7ca5a997d18a96c3f6 | refs/heads/master | 2023-06-02T16:27:57.994351 | 2021-06-24T23:16:47 | 2021-06-24T23:16:47 | 284,845,707 | 1 | 0 | null | 2020-10-29T21:35:30 | 2020-08-04T01:24:23 | Python | UTF-8 | Python | false | false | 958 | py | # O(n)
# n = len(nums)
class Solution:
def nextPermutation(self, nums: List[int]) -> None:
breakIndex = self.findFirstDescending(nums)
if breakIndex is None:
self.reverseSubList(nums, 0)
return
swapIndex = breakIndex + 1
for i in range(breakIndex + 2, len(n... | [
"carvalhooclaudio@gmail.com"
] | carvalhooclaudio@gmail.com |
f901eff5d7fb9faf694cb612fd1d8cc57d32500f | 9dc423fe2c14e3949a171b81da9d02f87b1c2063 | /day06/02_SQLAlchmey.py | c51e800634f4b59002e9eb4fdc5cfc37bf0b76a7 | [] | no_license | 1751660300/Flask | a09ca944f21070cc04116d5fb929cacf386e56cd | 9fbf6955649f0c5e2e7acd98b29e28ebfdb99cd7 | refs/heads/master | 2022-11-09T13:10:45.462516 | 2020-06-28T02:47:19 | 2020-06-28T02:47:19 | 271,776,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # -*- coding:utf-8 -*-
"""
SQLAlchmey详细:https://www.cnblogs.com/wupeiqi/articles/8259356.html
1.SQLAlchmey 是python中一种orm框架
目标:将对类/对象的操作 -> sql语句(通过pymysql模块来执行sql语句) -> 对数据库的操作
"""
import time
import threading
import sqlalchemy
from sqlalchemy import create_engine
from sqlalchemy.engine.base import Engine
engine ... | [
"1751660300@qq.com"
] | 1751660300@qq.com |
7397afa12e4a2262330657cc6cba2765d23f42be | 3135f67392febe5f85a743d1545d00bac40beb5a | /cn_stock_holidays/cn_stock_holidays/gateway/__init__.py | 657b3d4964a852cdccfb0de7f59f08ca7fa443ff | [] | no_license | xiyongjian/gateway | b8ebda77fed3995f75c63c5f61dc520bfe9c7897 | 59d3c410ce3005c616b354f0d1ad64cf77798573 | refs/heads/master | 2022-10-22T21:01:02.063293 | 2018-07-08T04:48:49 | 2018-07-08T04:48:49 | 120,036,602 | 2 | 2 | null | 2022-10-01T12:06:20 | 2018-02-02T22:08:03 | Python | UTF-8 | Python | false | false | 231 | py | from cn_stock_holidays.gateway.exchange_calendar_hkex import HKExchangeCalendar
from cn_stock_holidays.gateway.exchange_calendar_shsz import SHSZExchangeCalendar
__all__ = [
'HKExchangeCalendar',
'SHSZExchangeCalendar',
] | [
"xiyongjian@hotmail.com"
] | xiyongjian@hotmail.com |
d30bc0c7e55dda9955dd8a25d1ead5b969592d85 | 90e02be4ea2461e4e4a0fd504ce516aadf427c69 | /old/polysem.py | 426ea7e7fdecb878ccd048fd5354c90808906cb3 | [] | no_license | thoppe/polysemous-emoji | df5150fce38663389926aff4991c85d3bc442963 | 50b2107b50a3d8ab9719d2736c8925cc68a75180 | refs/heads/master | 2021-01-10T02:34:17.728953 | 2017-06-05T20:59:27 | 2017-06-05T20:59:27 | 51,712,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | from ksvd import KSVD
import h5py, os
from gensim.models.word2vec import Word2Vec
# Load the config files
from configobj import ConfigObj
wcon = ConfigObj("config.ini")["word2vec"]
kcon = ConfigObj("config.ini")["kSVD"]
from gensim.models.word2vec import Word2Vec
f_features = wcon["f_features"].format(**wcon)
clf = W... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
8d4856c6c849a5bc71aa203dc7a9dd6ec06bbf27 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_042/ch44_2020_10_07_13_08_47_151008.py | 10a4ee19987b7143968c5c8eef6249ca9ea6b94d | [] | 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 | 263 | py | nome_mes = input('Qual o nome do mes?')
nome_meses = ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro']
i=0
while i < 12:
if nome_meses[i] == nome_mes :
print (i+1)
i += 1 | [
"you@example.com"
] | you@example.com |
0c25dd68f7abaaf858f4ffb5e3109947576dcbbe | 2e3d63726c1d05b73b9cc22e5bcbead30246a8dc | /Facepad/wsgi.py | ac7aeeae354627af07c474d0569514805a849d2c | [] | no_license | rolycg/tiny_social_network | 041f6e4ab503bb82eca4cf1efb436d3b5250343a | e7ec45d053d291d53bd9d58bbb882b4b3edb6355 | refs/heads/master | 2021-01-10T04:27:16.344700 | 2016-03-23T18:19:49 | 2016-03-23T18:19:49 | 54,581,800 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for Facepad project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"rolycg89@gmail.com"
] | rolycg89@gmail.com |
689b90a020d0df47a96c87657ee3a6532ccac798 | e7e5cc4353671d4cb410acf12fb3de92e8f4ac58 | /machine-learning/tensorflow_test_SNH/SNH_run.py | b17e76f1094e00d56c971d60e846ec7c2695910c | [] | no_license | zooniverse/hco-experiments | f10d128f4258e830098564477c66bfa2a13dc5d7 | fb9f4e476f2402fd0d66fb770f6d1b5c433dafbf | refs/heads/master | 2021-04-30T16:40:11.182769 | 2017-07-12T17:22:34 | 2017-07-12T17:22:34 | 80,105,222 | 4 | 2 | null | 2021-01-08T09:56:44 | 2017-01-26T10:27:23 | Python | UTF-8 | Python | false | false | 4,846 | py | # Train a simple CNN using Keras
import keras
from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras.preprocessing.image import I... | [
"will5448@umn.edu"
] | will5448@umn.edu |
147a83153243b6c3af4bed4247b1099ee9793600 | 29789d90224f4c08c5413dacb546572a44d95071 | /cases/hangar/richards_wing.py | 3f0a3b2324dbf005a9a655e6feaed338bde0da23 | [
"BSD-3-Clause"
] | permissive | Bo-Zhang1995/sharpy | 3388ef5937950a2a95f23086e0a1d1eac56b26c6 | fcc768cba988b2a2999c6ebe362ab59b84f3695c | refs/heads/master | 2020-09-13T03:36:05.537835 | 2019-11-17T17:36:04 | 2019-11-17T17:36:04 | 222,645,290 | 1 | 0 | BSD-3-Clause | 2019-11-19T08:23:50 | 2019-11-19T08:23:49 | null | UTF-8 | Python | false | false | 13,582 | py | """
Simple Horten Wing as used by Richards. Baseline and simplified models
"""
import numpy as np
from cases.hangar.horten_wing import HortenWing
import sharpy.utils.algebra as algebra
class Baseline(HortenWing):
def set_properties(self):
# Wing geometry
self.span = 20.0 # [m]
self.swe... | [
"ng213@ic.ac.uk"
] | ng213@ic.ac.uk |
67d5a8da55c644e91aa539b2449116477ff95e23 | ba41dbc2183bd91e6e9a8669904b85f342775530 | /mgmt/dump-function-calls.py | d5620c7a17ded957d08beb4af09694250bb26f38 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | fish2000/libimread | 5d835f98083a897e1d0d9fde4f816cea4496e35f | 781e2484559136de5171d577d54afa624ca4c8b4 | refs/heads/master | 2022-04-28T18:14:27.189975 | 2022-03-20T23:57:15 | 2022-03-20T23:57:15 | 30,621,253 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | #!/usr/bin/env python
# dump_function_calls.py:
# Originally from: https://github.com/smspillaz/scripts/blob/master/list_non_inlined_symbols/dump_function_calls.py
#
# Copyright (c) 2014 Sam Spilsbury <smspillaz@gmail.com>
# Licenced under the MIT Licence.
#
# Looks at the DWARF data for a library and dumps to stdout... | [
"fish2000@gmail.com"
] | fish2000@gmail.com |
9a8d1f2c92d9086aa11eccf289f7c95d6b8f29d0 | b37d4c6ae5fa90c5afc6346088c272d3b7c8a37c | /backend/course/api/v1/viewsets.py | dafe5676cfef6a5d35ce42d0bb66ce7f52f6daf6 | [] | no_license | crowdbotics-apps/staeci-27357 | 3f18579fe25b97c64db661205c7398a8f27905e7 | e63469a44549e38d3d01046fbf75c394ef4ec435 | refs/heads/master | 2023-04-28T20:35:58.657031 | 2021-05-24T22:53:33 | 2021-05-24T22:53:33 | 370,503,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | from rest_framework import authentication
from course.models import (
Recording,
Event,
Subscription,
Course,
Group,
Module,
PaymentMethod,
SubscriptionType,
Enrollment,
Lesson,
Category,
)
from .serializers import (
RecordingSerializer,
EventSerializer,
Subscript... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d07149fc3d7c5b9da5eb276482171723605c7fab | 0eb1d32c5e2770ad6d6e8f09061e9d5a09f3c37d | /Order/migrations/0005_auto_20210211_0723.py | e8f4fb7d13903a1b3498f229ffb1fffe4aa16799 | [] | no_license | HadiGhazali/digikala | da4e993a590d17801b4bf3ce3be37f62e0fce5d8 | 4ccbf199b5c848e0e7550eb8ebaaeaa0bc096cd2 | refs/heads/main | 2023-03-12T13:00:22.000792 | 2021-03-04T14:38:25 | 2021-03-04T14:38:25 | 322,250,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.1.4 on 2021-02-11 07:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Order', '0004_auto_20210209_1157'),
]
operations = [
migrations.AlterModelOptions(
name='payment',
options={'verbose_name': ... | [
"hadivardanjani1378@gmail.com"
] | hadivardanjani1378@gmail.com |
cae3368e7e8e0c5c1919e14f58e1fb7b2e2170bf | d61a6df81bca12df0b743053643bc386d15a4b56 | /Exercise05/5-47.py | 2a7a135a3f62d27047e4a304ce8bbba0597e3f54 | [
"Apache-2.0"
] | permissive | ywyz/IntroducingToProgrammingUsingPython | 9108bea2a79f8d24693144dc127aa6b32896121f | 614d59eacb7e37aece871a00f7d1518f7de88708 | refs/heads/master | 2020-04-20T06:29:02.999774 | 2019-12-22T12:52:46 | 2019-12-22T12:52:46 | 168,685,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | '''
@Date: 2019-11-09 20:43:16
@Author: ywyz
@LastModifiedBy: ywyz
@Github: https://github.com/ywyz
@LastEditors: ywyz
@LastEditTime: 2019-11-09 20:52:15
'''
import turtle
import random
turtle.penup()
turtle.goto(-60, 50)
turtle.pendown()
turtle.forward(120)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtl... | [
"admin@ywyz.tech"
] | admin@ywyz.tech |
9626d1af7e4791e3842aaade47f2f09341e089c1 | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartA/np_random_permutation.py | 06fb8394f942ddc765d854ae411e48f230a80e94 | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py |
import numpy as np
print(np.random.permutation(10))
# 结果为:[4 1 0 2 8 5 9 6 3 7]
| [
"2901429479@qq.com"
] | 2901429479@qq.com |
ddbd6da647684177e27247cfbc0320dccf56315f | 551dabfe10ea6778546f380d3ee9f0500f352b0f | /1.6 Data Split/1.6.2.1.py | 755230539a32648d535e948fddd664f504a670e2 | [] | no_license | mohamedalemam/sklearn | c32843b6a04fe4b2a326870ba3658e8c1fc3b424 | 387c21357b165a1bc3593f8303ac5f9a672bd62a | refs/heads/main | 2022-12-29T15:38:06.534505 | 2020-10-17T21:26:59 | 2020-10-17T21:26:59 | 301,839,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #Import Libraries
from sklearn.model_selection import KFold
#----------------------------------------------------
#KFold Splitting data
kf = KFold(n_splits=4, random_state=44, shuffle =True)
#KFold Data
for train_index, test_index in kf.split(X):
print('Train Data is : \n', train_index)
print('Tes... | [
"noreply@github.com"
] | mohamedalemam.noreply@github.com |
1bb76202345c93a96430e6d954e9f8e763c960ab | 3b00f143f858c495df46cf88a27a18bee388c6b6 | /Dynamic Programming/edit_distance.py | 6e0ae8490c463511868684b515372c7cfc18406a | [] | no_license | deepcpatel/data_structures_and_algorithms | 5a4d70e9d74e933a16b132d6701a0dc6b19d9203 | 2c7849f1e31c5c60924eb70830e524b44306d652 | refs/heads/master | 2023-01-01T04:47:19.704199 | 2020-10-27T17:35:48 | 2020-10-27T17:35:48 | 307,295,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | # Link: https://leetcode.com/problems/edit-distance/
# Not my Solution
'''
Explanation:
Define dp(i, j) as the minimum number of operations required to convert word1[i:] to word2[j:].
Then we'll get the recursion below:
dp(i, j) = dp(i + 1, j + 1) if word1[i] == word2[j]
dp(i, j) = 1 + min(dp(i + 1, j + 1), dp(i, j +... | [
"deepcpatel@yahoo.in"
] | deepcpatel@yahoo.in |
7215342ad719cd58db15232b77161fed026d9444 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /mas_nitro-python-1.0/massrc/com/citrix/mas/nitro/resource/config/services/perf/perf_lb_ssl_traffic_report.py | fc21491573e23b5e55686c38164097e8f4b9c5f0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 10,097 | py | '''
Copyright (c) 2008-2015 Citrix Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
ed617556fb90a2bcacc41fc0dd07aad3bf86d7ba | 71f00ed87cd980bb2f92c08b085c5abe40a317fb | /Data/GoogleCloud/google-cloud-sdk/data/cli/gcloud_completions.py | c93dd5a72968127b9526867a954447386eb4b703 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | factoryofthesun/Rao-NLP | 2bd8269a8eed1cb352c14c8fde88e3111ccca088 | 87f9723f5ee51bd21310d58c3425a2a7271ec3c5 | refs/heads/master | 2023-04-18T08:54:08.370155 | 2020-06-09T23:24:07 | 2020-06-09T23:24:07 | 248,070,291 | 0 | 1 | null | 2021-04-30T21:13:04 | 2020-03-17T20:49:03 | Python | UTF-8 | Python | false | false | 1,941,962 | py | # -*- coding: utf-8 -*- #
"""Cloud SDK static completion CLI tree."""
# pylint: disable=line-too-long,bad-continuation
STATIC_COMPLETION_CLI_TREE = {
"commands": {
"access-context-manager": {
"commands": {
"levels": {
"commands": {
"conditions": {
"commands": {
... | [
"guanzhi97@gmail.com"
] | guanzhi97@gmail.com |
3e1821a70e48e45f7d23a8a598e644fd55aa3267 | ffeacff13af906bf5e7a02018a2543902f5dc8ef | /01-Python核心编程/代码/04-数据序列/02-列表/hm_02_查找.py | 507751dc98470c528285216532fc445039e51cd8 | [
"MIT"
] | permissive | alikslee/Python-itheima-2019 | 457080ee83d0f5f7eaba426da0ea86405d2d5248 | 691035d5ff0e362139c7dbe82f730ec0e060fd2e | refs/heads/main | 2023-01-01T16:27:20.062463 | 2020-10-22T16:20:29 | 2020-10-22T16:20:29 | 305,959,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | name_list = ['TOM', 'Lily', 'ROSE']
# 1. index()
# print(name_list.index('TOM'))
# print(name_list.index('TOMS'))
# 2. count()
# print(name_list.count('TOM'))
# print(name_list.count('TOMS'))
# 3.len()
print(len(name_list))
| [
"lee079074256@gmail.com"
] | lee079074256@gmail.com |
ceb2448af505fefb48dabe7e0516eaf2d46eb5a4 | a8769709aeb7299fa3757f0e7bba5c617eb8cfe3 | /lesson-3/k8s/lib/python2.7/site-packages/kubernetes/client/models/v1beta1_api_service_condition.py | d851edd6c77101268757fb7d42c4ef39c4686464 | [
"Apache-2.0"
] | permissive | simox-83/workshop-k8s | 2ac5e8b282bb7c3337acc726a7d972717bf649cc | 04cb18e8b5925a3cfd84ca316952a6cb64960b31 | refs/heads/master | 2020-03-31T20:52:21.421995 | 2018-10-11T14:43:08 | 2018-10-11T14:43:08 | 152,558,678 | 0 | 0 | Apache-2.0 | 2018-10-11T08:37:20 | 2018-10-11T08:37:20 | null | UTF-8 | Python | false | false | 6,769 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.11.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"simone.dandreta@concur.com"
] | simone.dandreta@concur.com |
bf04013c6f0f8ddcd9f3d419707fd2261e896529 | 3fadf661bd3ad1cc530d9197f157b3a4255034b6 | /romani/migrations/0023_auto_20170107_2116.py | df7334c894a9469ccede7ea6d450e969024a0d15 | [] | no_license | wkov/labiadas | 69b1c69063edafe4f16467df53f58969c63db5c7 | bb32de63cbbea951a0df49bc0bf800caaca7fc35 | refs/heads/master | 2022-11-28T11:46:55.735429 | 2020-01-11T18:13:37 | 2020-01-11T18:13:37 | 84,640,857 | 0 | 1 | null | 2022-11-22T03:03:08 | 2017-03-11T10:09:42 | JavaScript | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('romani', '0022_auto_20170107_2114'),
]
operations = [
migrations.RemoveField(
model_name='comanda',
... | [
"borruey.sergi@gmail.com"
] | borruey.sergi@gmail.com |
6a9e91b65c2d88c02d3a75ffe8f476040710e5f7 | a5020f97ac75e480e2ac386daf758df33289b8f9 | /manage.py | af14ecd321e4edfa57d8336d47993a5852b335af | [] | no_license | emakarov/ovarenik | c7adcbd4b771f3264168b2ae3c2438302a7ff520 | 466e55645da223163bd065939fcbac068f16a043 | refs/heads/master | 2020-04-11T09:54:25.310143 | 2014-06-22T22:46:36 | 2014-06-22T22:46:36 | 12,011,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ovarenik.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"evgeni.makarov@gmail.com"
] | evgeni.makarov@gmail.com |
78e397b8a58f688d5430a680877377c3a2db36f3 | 73b5d880fa06943c20ff0a9aee9d0c1d1eeebe10 | /tinyos-1.x/contrib/t-mac/apps/taskthread.py | aaf638497ee5b76570d3204810ec2548a90fdc4e | [
"Intel"
] | permissive | x3ro/tinyos-legacy | 101d19f9e639f5a9d59d3edd4ed04b1f53221e63 | cdc0e7ba1cac505fcace33b974b2e0aca1ccc56a | refs/heads/master | 2021-01-16T19:20:21.744228 | 2015-06-30T20:23:05 | 2015-06-30T20:23:05 | 38,358,728 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | import threading
class TaskThread(threading.Thread):
"""Thread that executes a task every N seconds"""
def __init__(self):
threading.Thread.__init__(self)
self._finished = threading.Event()
self._interval = 15.0
def setInterval(self, interval):
"""Set the number of seconds we sleep between executing our... | [
"lucas@x3ro.de"
] | lucas@x3ro.de |
9dfd42487ccf8e73d4d4d17ab1e7e7ba183ef477 | 9a6323fd69286f2ddce8a755612fb235a4b85956 | /cruzdb/sequence.py | 30e04e8a8cfcd79bf5f6b0eedf6e1ed94650416c | [
"MIT"
] | permissive | lardenoije/cruzdb-1 | 44b544ede144e11462b33967c6ce63cf7a7cecb0 | 7858dc4da7c2574751ccace41b3a525c11e629dc | refs/heads/master | 2022-12-14T13:06:37.660233 | 2020-08-27T11:55:14 | 2020-08-27T11:55:14 | 289,082,044 | 0 | 0 | MIT | 2020-08-20T18:37:47 | 2020-08-20T18:37:45 | null | UTF-8 | Python | false | false | 782 | py | import urllib as U
__all__ = ('sequence', )
def _seq_from_xml(xml):
start = xml.find(">", xml.find("<DNA")) + 1
end = xml.rfind("</DNA>")
return xml[start:end].replace(' ', '').replace('\n', '').strip()
def sequence(db, chrom, start, end):
"""
return the sequence for a region using the UCSC DAS
... | [
"bpederse@gmail.com"
] | bpederse@gmail.com |
549cb424af0757bf36fd12680c9129b25d719bc8 | 1a95cda55573a6836ac631bc6e16ec312e07759b | /server.py | 494512434222bc9a674e78746f4547874003cbfc | [] | no_license | olajowon/dormer-web | b021c01694f72b31b8fc498811ec54da99786daa | d7a06a7c2be5ca6d34bedff26fbf70cd9e969ae8 | refs/heads/master | 2023-03-13T10:43:04.280104 | 2021-03-11T08:39:23 | 2021-03-11T08:39:23 | 320,578,280 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | # Created by zhouwang on 2020/11/13.
import os
import sys
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
VENV_DIR = os.path.join(PROJECT_DIR, 'venv')
def start():
print('#### start\n')
os.system(f'rm -rf {PROJECT_DIR}/static && \cp -rf {PROJECT_DIR}/ui/dist/static {PROJECT_DIR}/static')
os.sys... | [
"zhouwang@yunniao.me"
] | zhouwang@yunniao.me |
e78a3b00445a74f43bada0cdbef0f2f5aeff4fcd | 9eb972f4623e6eb424238dd747ea0a480efd0e8a | /futura_ui/app/ui/dialogs/transfer_production.py | 012029c15e6f9aad783b6cb7d84ef193cf8d2005 | [
"BSD-3-Clause"
] | permissive | pjamesjoyce/futura | 727136dedeebed7fbf464612192f0472c31d1f6d | c0f129b4964f2b01a2853828b83d57ed53eabcb8 | refs/heads/master | 2023-04-13T02:09:03.476138 | 2023-03-16T10:32:50 | 2023-03-16T10:32:50 | 218,276,474 | 9 | 2 | BSD-3-Clause | 2020-01-15T10:05:07 | 2019-10-29T11:59:27 | Python | UTF-8 | Python | false | false | 1,163 | py | from PySide2 import QtWidgets, QtGui
from ..utils import load_ui_file
import os
class TransferProductionDialog(QtWidgets.QDialog):
def __init__(self, parent=None):
super(TransferProductionDialog, self).__init__(parent)
ui_path = 'transfer_production.ui'
ui_path = os.path.join(os.path.dirn... | [
"pjamesjoyce@gmail.com"
] | pjamesjoyce@gmail.com |
214cffef313952a222cba262570dd66683aed317 | b424a13f032d5a607e6df4dd78bc47ad1d06a147 | /scipy/integrate/tests/test_integrate.py | dbfd7b670fcccfdfb768c789b5b1e0a794bbe1da | [] | no_license | EnjoyLifeFund/macSierra-py36-pkgs | 1e7eeb9b55415da6eb12465d67730d76e9cc619a | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | refs/heads/master | 2021-01-20T10:23:50.044019 | 2017-09-05T02:53:26 | 2017-09-05T02:53:26 | 90,333,987 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | ../../../../../../Cellar/scipy/0.19.1_1/lib/python3.6/site-packages/scipy/integrate/tests/test_integrate.py | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
6d04867690361f9c47fb28ebc97f304c557ec557 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /output/StudentProblem/10.21.9.62/1/1569576134.py | 10eaa60b5f53e410b34cd127f6fbef1654f01b12 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | ============================= test session starts ==============================
platform darwin -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /tmp
collected 0 items / 1 error
==================================== ERRORS ====================================
________________________ ERROR collecting te... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
6f7c62cb236795bd7f112d1fae1ae534b8839097 | a7ea1fa36385301db3c8abdf2281916f09006a2a | /057.py | e1348e00e7c99c5286e46d67667aa931c9422298 | [] | no_license | sanand0/euler | a3995c155e32dd8415cf31a1558674f9f0f8e425 | 6ae583d94f968e27102fa5bb7216bb0645dcc42c | refs/heads/master | 2020-05-07T09:31:50.356639 | 2017-08-05T04:43:23 | 2017-08-05T04:43:23 | 1,225,954 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | '''
It is possible to show that the square root of two can be expressed as an infinite continued fraction.
sqrt(2) = 1 + 1/(2 + 1/(2 + 1/(2 + ... ))) = 1.414213...
By expanding this for the first four iterations, we get:
1 + 1/2 = 3/2 = 1.5
1 + 1/(2 + 1/2) = 7/5 = 1.4
1 + 1/(2 + 1/(2 + 1/2)) = 17/12 = 1.416... | [
"root.node@gmail.com"
] | root.node@gmail.com |
5e7b99cc19ea8b6717e0e650adb3a97b3ef95fb0 | 6e932aa6ec9424ae0238c559112fdd0214c52be6 | /ffawp/ch03/9_excel_value_meets_condition_all_worksheets.py | 381e78707679567f29dfa8a3629e04d9d439b903 | [] | no_license | LingChenBill/python_first_introduce | d1c780dcd3653ef4cda39cc4a0c631a99071f088 | 32ff4a16fe10505fcb49e4762fc573f5f1c62167 | refs/heads/master | 2020-07-29T13:03:15.447728 | 2020-06-09T13:39:07 | 2020-06-09T13:39:07 | 209,813,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | # Date:2020/5/25
# Author:Lingchen
# Mark: 要使用基础Python在所有工作表中筛选出销售额大于$2000.00的所有行
# python 9_excel_value_meets_condition_all_worksheets.py data/sales_2013.xlsx data/output/9_output.xlsx
import sys
from datetime import date
from xlrd import open_workbook, xldate_as_tuple
from xlwt import Workbook
input_file = sys... | [
"lingchen1316@163.com"
] | lingchen1316@163.com |
b4e8c6cb0792e24ed9f5af9691b4122d19f58c30 | 923a14dd594191d77e30465027ece8371f28a7a6 | /web-serpng/code/serpng/resume/jbb_models.py | 7959db7ad4c4f889f70568473d152808c93a3e96 | [] | no_license | alyago/django-web | 3af7b3389df59104eaf5e50ed9cc2c3e730fed7f | da3073eec6d676dfe0164502b80d2a1c75e89575 | refs/heads/master | 2021-01-10T19:33:45.425520 | 2013-11-21T09:43:37 | 2013-11-21T09:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,038 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to ... | [
"oleg@simplyhired.com"
] | oleg@simplyhired.com |
807223eb8782e42786914cfe301694dc05950c8c | c47340ae6bcac6002961cc2c6d2fecb353c1e502 | /test/test_ctmvar_get_result_item.py | 468eb96cb02f551c4285294922b0852f7b500fd4 | [
"MIT"
] | permissive | rafaeldelrey/controlm_py | 6d9f56b8b6e72750f329d85b932ace6c41002cbd | ed1eb648d1d23e587321227217cbfcc5065535ab | refs/heads/main | 2023-04-23T09:01:32.024725 | 2021-05-19T00:25:53 | 2021-05-19T00:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.115
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import con... | [
"dcompane@gmail.com"
] | dcompane@gmail.com |
9aada7ffa4c35d680378a0d38aae50a69952de0c | cb2882bd79c4af7a145f0639a5c7f473b1d22456 | /tutorials/auto_scheduler/tune_network_x86.py | 8526abbbe6caafb3058012337f24f4792401da75 | [
"Apache-2.0",
"Zlib",
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense"
] | permissive | vinx13/tvm | 8e37dd7735eeadc476596ba96f683a93f44a26c3 | fe398bf206d01b54a2d74603e6bc9c012d63b2c9 | refs/heads/master | 2023-08-30T17:50:49.337568 | 2021-02-17T08:16:26 | 2021-02-17T08:16:26 | 141,384,391 | 4 | 0 | Apache-2.0 | 2022-09-21T18:53:08 | 2018-07-18T05:16:49 | Python | UTF-8 | Python | false | false | 14,204 | 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"
] | vinx13.noreply@github.com |
c0d47f8307c3798e6edc8b33f7c824987feb7e12 | c848015268e430b10f1bc39a2fd5a6f7a8cda44d | /bin/Compare_unique/Sum_unique.py | b751b593c4924b7a4001cba2afeabe8f2079e20b | [] | no_license | wangpanqiao/Transposition | 36b87d2f9032170112fce993f17454b6562bb108 | e102de63df2bcd5f7b41075a447eb937ee753832 | refs/heads/master | 2020-08-27T00:07:00.923134 | 2015-12-01T22:30:45 | 2015-12-01T22:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,987 | py | #!/opt/Python/2.7.3/bin/python
import sys
from collections import defaultdict
import numpy as np
import re
import os
import argparse
from Bio import SeqIO
def usage():
test="name"
message='''
python Sum_unique.py --input RIL275_RelocaTEi.CombinedGFF.characterized.unique_mPing.gff
'''
print message
de... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
5c39feec3f3cde848840efa165bb4fa1ed38e075 | 4bc5f6cc69448d54a7d0fd3be19317613999ceb3 | /authentication-with-flask-login/app/forms.py | 05908ee49f2e2d0610662672ff5bbe608e021d63 | [] | no_license | ThiaguinhoLS/flask-repo | 9aee2b6ff7bf9d61001ee3e3cbea1478caf108cd | 81e68c85ee8a1560a33bbaf78cbcb581c351ebb9 | refs/heads/master | 2020-04-26T16:24:32.721289 | 2019-03-12T06:26:27 | 2019-03-12T06:26:27 | 173,677,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # -*- coding: utf-8 -*-
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, EqualTo
class RegisterForm(FlaskForm):
username = StringField("Username", validators=[DataRequired()])
password = PasswordField("Password", validator... | [
"tthiaguinho638@gmail.com"
] | tthiaguinho638@gmail.com |
89c5b5ad7eff9c309c5857ac05d9e101834971dd | d9be34d92ec5bfec5756d5310c2e34226d726cb4 | /topics/number_line.py | 6f56af6f116629d093bcf1c05d295bd9366b7025 | [] | no_license | Oldpan/manim | 43119e4cf0b2d7c17affd66d1f64ce7a6c3bce81 | ac079f182a977bf0d830ab7647971b67cf9e5160 | refs/heads/master | 2021-07-20T11:23:45.752896 | 2017-10-27T22:12:29 | 2017-10-27T22:12:29 | 108,652,804 | 1 | 0 | null | 2017-10-28T13:47:39 | 2017-10-28T13:47:39 | null | UTF-8 | Python | false | false | 11,515 | py | from helpers import *
from mobject import Mobject1D
from mobject.vectorized_mobject import VMobject, VGroup
from mobject.tex_mobject import TexMobject
from topics.geometry import Line, Arrow
from scene import Scene
class NumberLine(VMobject):
CONFIG = {
"color" : BLUE,
"x_min" : -SPACE_WIDTH,
... | [
"grantsanderson7@gmail.com"
] | grantsanderson7@gmail.com |
9f635f6fa32ef161386cd71ad13f0caeb9e69192 | 419d6346d722589ecff72a33f2431775f9bf3dfa | /sampleCode/sample8/cities.py | 8453e6fb5a1129f1be656645813d88e7dec5d11d | [] | no_license | wzmf038827/pythonFlask | dc414c37322ace036a1b9858ce5626a59dcbda4e | 216db3c846ecc7a49c7f3cc7d1b15d6d3be7905a | refs/heads/master | 2023-04-11T17:44:52.093854 | 2021-05-03T06:06:11 | 2021-05-03T06:06:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | import os
import sqlite3
from flask_sqlalchemy import SQLAlchemy
from main import app
basePath = os.path.abspath(os.path.dirname(__file__))
cityPath = os.path.join(basePath, 'citys.db')
conn = sqlite3.connect(cityPath)
print('開啟資料庫成功')
c = conn.cursor()
cursor = c.execute("select * from city")
print(cursor.__class__... | [
"roberthsu2003@gmail.com"
] | roberthsu2003@gmail.com |
a7c6313e7d96e4efb70302abea076553c2bc4427 | d9c1890cf137489fa24bf0419d565b1e1edbd2cd | /circus/web/server.py | 6d6a07d58bb2fade819c4a6daa5b3e13ab132590 | [
"MIT",
"Apache-2.0"
] | permissive | magopian/circus | 47f7b6fcab833eaec19af6e9822d769bc9dd5050 | e2eef7f008050c30e43d1a10d615dd920fb6583a | refs/heads/master | 2021-01-18T04:54:23.720743 | 2012-11-11T19:07:39 | 2012-11-11T19:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | import socket
from bottle import ServerAdapter
class SocketIOServer(ServerAdapter):
def __init__(self, host='127.0.0.1', port=8080, **config):
super(SocketIOServer, self).__init__(host, port, **config)
self.fd = config.get('fd')
if self.fd is not None:
self.fd = int(self.fd)
... | [
"tarek@ziade.org"
] | tarek@ziade.org |
4d952b651224199a592af47dc19fd9166eb94aa9 | 6e12c2e6d453ea1caf64c0eafaf3410b30f434e0 | /shop/migrations/0011_auto_20160607_1347.py | b6dc57869b17135e8c679bb3ac3d6d5cf83edca0 | [] | no_license | andreynovikov/django-shop | 43b66ec639037473cd72f7480f83811d911104fb | 8f843b0b15354903a335c324daa65714bfb2f8cc | refs/heads/master | 2023-04-28T01:26:16.938227 | 2023-04-22T15:33:29 | 2023-04-22T15:33:29 | 43,815,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0010_manufacturer'),
]
operations = [
migrations.CreateModel(
name='Sup... | [
"novikov@gmail.com"
] | novikov@gmail.com |
0c4bb10e987777fae9cc78ed90940998e95d1024 | 6805b5299355005536d7408a2092db5cdf7f78d3 | /utils/saver.py | 94ca9f01d939bba00e341c74d18af9c619879727 | [] | no_license | harisris/draw-mnist | 050609c9bcc3a1690836467179660af186d544a9 | 7cfaa76336714ec4c290d84243115b5184142768 | refs/heads/master | 2021-01-12T10:03:39.163704 | 2016-06-08T09:19:53 | 2016-06-08T09:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,863 | py | import cslab_environ
import fnmatch
import logger
import os
import yaml
import tensorflow as tf
kModelOptFilename = 'model_opt.yaml'
kDatasetOptFilename = 'dataset_opt.yaml'
kMaxToKeep = 2
class Saver():
def __init__(self, folder, model_opt=None, data_opt=None):
if not os.path.exists(folder):
... | [
"renmengye@gmail.com"
] | renmengye@gmail.com |
aa00df2b260e6c6ab031c83ba1170fc89fa50eee | f6814281de06f6d6eff1cc9b40f9596274455ece | /segmentation/local_maxima.py | 7ba208efda2582ce2001beca2c44eabccf246bdb | [
"MIT"
] | permissive | file-campuran/scikit-image-clustering-scripts | 806ad366202f3054bf0f602e414c083428372177 | 2197f23b904463b358421bc8a8bd85a3cb4cc2f1 | refs/heads/master | 2022-10-07T23:17:18.814705 | 2020-06-02T18:00:37 | 2020-06-02T18:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | #!/usr/bin/env python
# http://stackoverflow.com/questions/9111711/get-coordinates-of-local-maxima-in-2d-array-above-certain-value
import numpy as np
from osgeo import gdal
import scipy.ndimage as ndimage
import scipy.ndimage.filters as filters
# initialize driver
driver = gdal.GetDriverByName('GTiff')
def write_imag... | [
"h.benoudjit@gmail.com"
] | h.benoudjit@gmail.com |
8d46d4d91c2a121fd214c9ccf2d35f826893683b | 750932da205e48eb860f72fa35579e2f7c78b69c | /django-silk-example/manage.py | 8201ceddde55f39f2b499d0d80c3635e4f50de0d | [
"MIT"
] | permissive | 510908220/django-performance-optimization | 8251682c41be4695947c07d958fa96f2e6b162af | 53f62dc8741b1c72f1f97155a1e2c05c1483bd92 | refs/heads/master | 2022-12-13T14:48:40.864496 | 2018-04-28T02:04:20 | 2018-04-28T02:05:28 | 130,834,744 | 1 | 0 | MIT | 2022-12-08T02:04:24 | 2018-04-24T10:07:39 | Python | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "silk_example.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django.... | [
"510908220@qq.com"
] | 510908220@qq.com |
8d81c075adcadeca3d6affb1dc0c87707221c661 | 75e8f932e1e08c7e71380e6b71d85ddd04f052dd | /SDAPythonIntermediateRegularExpressions/sample_5.py | a68baa55b53395b2eb11480aac8076c72260917d | [] | no_license | aeciovc/sda_python_ee4 | fe470a253126ad307c651d252f9f9b489da32835 | 9e1e8be675fcafe4a61c354b55b71f53ad2af0fe | refs/heads/master | 2023-08-29T15:17:34.033331 | 2021-10-31T09:41:57 | 2021-10-31T09:41:57 | 365,678,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | import re
print(re.sub(r"[a-z]{8}", "dog", "Alice has elephant")) | [
"aeciovc@gmail.com"
] | aeciovc@gmail.com |
6ba44a2283a1c3e70f0210af98521fbb9c634623 | 294c35259125e1c55cfdd5247cee651a07b3cc01 | /src/map/migrations/0001_initial.py | 52a0310446ae9821e95ec290c04c7762db920978 | [
"MIT"
] | permissive | andgein/sis-2016-winter-olymp | a82557d61b7748c6813e31779bcc74e92874a96c | 70962d861b3cf69e982949878ae4dccc2818b618 | refs/heads/master | 2021-08-30T15:00:10.691639 | 2017-12-18T11:05:27 | 2017-12-18T11:05:27 | 114,627,656 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,224 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-31 05:13
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import djchoices.choices
import relativefilepathfield.fields
class Migration(migrations.Migration... | [
"andgein@yandex.ru"
] | andgein@yandex.ru |
02a32ea594f73011395598d554f22b7b5b9e2724 | d52a193fbcc4fda5dddef59c5bd691933c81fe0b | /isomaticAppWeb/preguntaDiez.py | 762c49090454dde7f39501730cea10e8dbf6c5c9 | [] | no_license | solprmat/solpromatcore | 69c299357bb6f307b2822d985692b06db6f4c73c | 56dabd4f0189831215578bec5a623e99aeea143f | refs/heads/master | 2022-12-10T16:56:46.629211 | 2019-11-09T20:58:08 | 2019-11-09T20:58:08 | 205,091,159 | 0 | 0 | null | 2022-12-08T06:05:07 | 2019-08-29T05:57:38 | Python | UTF-8 | Python | false | false | 412 | py | from django import forms
class PreguntanDiez(forms.Form):
RESPUESTA_PREGUNTA_DIEZ = (
('a', 'a. Ana'),
('b', 'b. Jana'),
)
respuesta = forms.TypedChoiceField(
# label='preubas',
choices=RESPUESTA_PREGUNTA_DIEZ,
widget=forms.RadioSelect(attrs={
'class':... | [
"cyateya35439@universidadean.edu.co"
] | cyateya35439@universidadean.edu.co |
b05a1a04d85fa13fa3689baf4a17a6bdfd88cd21 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/302/77727/submittedfiles/testes.py | a6dfe79fe6c3e23239396c351525102e509059c7 | [] | 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 | 108 | py | n = float(input('Digite um número: '))
if n >= 0:
n = n**(1/2)
print(n)
else:
n = n**2 | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b5612e469ab15c7cfa726e1f6d7ef51c8a9253ec | fe4073028c22079c9908bba9d1f558256b3d3a73 | /app.py | d3eb02e6315a5462f6f5a86462442f07596f4069 | [] | no_license | romanannaev/BlogFlaskFinish | fb35c8fbe3a77753f0664641215cc44f4617b98f | 3aaecab0b1c3694aa584229963d7c521a301c33e | refs/heads/master | 2021-10-22T08:45:07.250060 | 2020-01-08T14:29:54 | 2020-01-08T14:29:54 | 231,746,001 | 0 | 0 | null | 2021-03-20T02:37:58 | 2020-01-04T10:37:40 | Python | UTF-8 | Python | false | false | 2,169 | py | import os
from flask import Flask, request
from flask_sqlalchemy import SQLAlchemy
#create admin
from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
#flask security, the storage of users, roles
from flask_security import SQLAlchemyUserDatastore
from flask_security import Security
app = Flask(... | [
"romanannaev1992@gmail.com"
] | romanannaev1992@gmail.com |
e34ddccd94638c82612a301dcb783977751ee558 | 685038d4be188fa72e9dba1d2213a47ee3aa00a2 | /ECOS2021/Demands/Inputs/Surveys/A/S4/Jul_S4_A.py | 39db06fef88624a9f7eead973c903d14f3b922fc | [] | no_license | CIE-UMSS/Tradeoff-between-Installed-Capacity-and-Unserved-Energy | e5599e4e4ac60b97f0c4c57c5de95e493b1b5ac4 | 459f31552e3ab57a2e52167ab82f8f48558e173c | refs/heads/master | 2023-06-01T18:09:29.839747 | 2021-06-19T15:56:26 | 2021-06-19T15:56:26 | 343,720,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 31 14:33:07 2020
@author: alejandrosoto
Script for 2 class of household in Raqaypampa.
"""
# -*- coding: utf-8 -*-
"""
@author: Alejandro Soto
"""
from core import User, np
User_list = []
#User classes definition
HI = User("high income",1)
Us... | [
"asm19971997@gmail.com"
] | asm19971997@gmail.com |
e25e5edb0703725283c9e674fc6085ad431c3b52 | ed4587c16e0708f0b618d8703b0ea9e86f5c3237 | /Layers/HiddenLayer.py | c0b7f6809f033afd968f23563e71d82e0f8955df | [] | no_license | CaoDuyThanh/NN_Autoencoder | b85256e4c4a1a71072c876c45098606244966cf8 | 0a0fc8e23e39249c6562249cf538e3b5898037f5 | refs/heads/master | 2021-01-23T22:15:06.380045 | 2017-02-26T13:33:50 | 2017-02-26T13:33:50 | 83,121,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,858 | py | import theano
import numpy
import cPickle
import theano.tensor as T
from theano.tensor.shared_randomstreams import RandomStreams
class HiddenLayer:
def __init__(self,
rng, # Random seed
input, # Data input
numIn, #... | [
"caoduythanhcantho@gmail.com"
] | caoduythanhcantho@gmail.com |
ea5aa679209b5f87452309f4ae5d2b6780c1cbc6 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634697451274240_0/Python/elsw/revenge_pancakes.py | 5b7acca8e7d41f5d660ecf7e2208da6c469f5d79 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #/usr/bin/env python
# Google Code Jam Qualification Round 2016
# B. Revenge of the Pancakes
# https://code.google.com/codejam/contest/6254486/dashboard#s=p1
def happy(stack):
s = stack + '+'
t = s[0]
c = 0
for p in s[1:]:
if p != t:
c += 1
t = p
return c
with open(... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
9c53ab1aae60600743db9747d0c63fc33815b1d3 | 32809f6f425bf5665fc19de2bc929bacc3eeb469 | /src/0435-Non-overlapping-Intervals/0435.py | 7ead2f6d87451d06255ac7a691c7621aab8a49fb | [] | no_license | luliyucoordinate/Leetcode | 9f6bf01f79aa680e2dff11e73e4d10993467f113 | bcc04d49969654cb44f79218a7ef2fd5c1e5449a | refs/heads/master | 2023-05-25T04:58:45.046772 | 2023-05-24T11:57:20 | 2023-05-24T11:57:20 | 132,753,892 | 1,575 | 569 | null | 2023-05-24T11:57:22 | 2018-05-09T12:30:59 | C++ | UTF-8 | Python | false | false | 533 | py | class Solution:
def eraseOverlapIntervals(self, intervals: List[List[int]]) -> int:
intervals.sort(key=lambda x: x[0])
result, pre = 0, None
for cur in intervals:
if prev and prev[1] > cur[0]:
result += 1
if cur[1] < prev[1]:
p... | [
"luliyucoordinate@outlook.com"
] | luliyucoordinate@outlook.com |
4a1a2aa093ea9f5082e68fb215190fec44f67e96 | b88ddf1bbc0e203b403584428078d73593715454 | /builder/igloo_director.py | ea3e87cb018003a80ebf063c557b4af64e4ccf29 | [] | no_license | keys4words/designPatterns | ef28289a92d68652f3d34a9a609aebe986e785bb | 0d6ebd5dc1f8c3be725f7405bb785436eec37a89 | refs/heads/main | 2023-04-15T01:15:27.231107 | 2021-04-20T13:31:25 | 2021-04-20T13:31:25 | 348,728,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from house_builder import HouseBuilder
class IglooDirector:
"One of the Directors, that can build a complex representation."
@staticmethod
def construct():
return HouseBuilder().set_building_type("Igloo").set_wall_material("Ice").set_number_doors(1).get_result() | [
"keys4words@gmail.com"
] | keys4words@gmail.com |
924e843bf762ca9d9e88f6d17f4e35920d84013f | 4bb6a8cbd7ac887ec4abc6abc97f0cb17415e82d | /Chapter 5 Strings/numbers2text.py | 7d27d3705f77296072ca8408e9a44d5c200e6e9c | [] | no_license | jbhennes/CSCI-220-Programming-1 | cdc9cab47b4a79dccabf014224a175674e9a7155 | ac9e85582eeb51a205981674ffdebe8a5b93a205 | refs/heads/master | 2021-01-01T03:54:50.723923 | 2016-05-02T16:06:55 | 2016-05-02T16:06:55 | 57,902,553 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # numbers2text.py
# A program to convert a sequence of ASCII numbers into
# a string of text.
import string # include string library for the split function.
def main():
print "This program converts a sequence of ASCII numbers into"
print "the string of text that it represents."
print
... | [
"jbhennes@g.cofc.edu"
] | jbhennes@g.cofc.edu |
832e473b8c911f7063df943d58fecbe31724ce10 | 2868a3f3bca36328b4fcff5cce92f8adeb25b033 | /+200ns/Ni_default/step1_dc/set.py | 23f82640e2dddefec72eb6201e99726773cd9099 | [] | no_license | linfranksong/TM-enzyme_input | 1c2a5e12e69c48febd5b5900aa00fe2339d42298 | 6e46a5b2c451efb93761707b77917a98ca0bfedc | refs/heads/master | 2022-03-19T19:49:09.373397 | 2019-12-04T00:11:59 | 2019-12-04T00:11:59 | 205,220,795 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | import os
dir = os.path.dirname(os.path.realpath(__file__)) + '/'
for a in [150,200,250,300,350,400,450,500,550,600]:
#for a in [150]:
#for a in [200,250,300,350,400,450,500,550,600]:
os.system("rm -r %s_dc"%(a))
os.system("cp -r temp/ %s_dc"%(a))
adir=dir+ "%s_dc/"%(a)
os.chdir(adir)
os.system("sed -i 's/MM... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
807bd4413ac24f6180b70539c7ef6c6621b7e9db | 372185cd159c37d436a2f2518d47b641c5ea6fa4 | /142. 环形链表 II.py | 83c889995bd0403eefdbd90103e6fe0fd1b3b7b1 | [] | no_license | lidongze6/leetcode- | 12022d1a5ecdb669d57274f1db152882f3053839 | 6135067193dbafc89e46c8588702d367489733bf | refs/heads/master | 2021-07-16T09:07:14.256430 | 2021-04-09T11:54:52 | 2021-04-09T11:54:52 | 245,404,304 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def detectCycle(self, head: ListNode) -> ListNode:
if head == None or head.next == None:
return None
fast = slow = head
temp = False # 记录是否有环
while fast.next and fa... | [
"lidongze6@163.com"
] | lidongze6@163.com |
d8e84ed478a875c489750a51825632d3d1309f59 | 98383e62e61321f65450bb0fd901215ccbe6293b | /hanlp/components/coref/__init__.py | 83097d68d94078f4c9e9298921041daa3ced94cd | [
"Apache-2.0",
"CC-BY-NC-4.0",
"Python-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | leobert-lan/HanLP | 155a66b5c93720abeb816616cb3b9ef4f7942e83 | 39c3ede99c3f99d7ea39bbbd470601dc7ef0ad62 | refs/heads/master | 2021-06-16T17:51:54.485767 | 2021-03-26T02:36:12 | 2021-03-26T02:36:12 | 178,836,942 | 1 | 0 | Apache-2.0 | 2021-03-26T02:36:13 | 2019-04-01T10:09:21 | Java | UTF-8 | Python | false | false | 64 | py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-07-05 19:56 | [
"jfservice@126.com"
] | jfservice@126.com |
32fe88969c29acd42125c481d6f2bd756033c283 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02685/s529348276.py | 65a166ca77210af61f1ce19dd156965d2e9ccf58 | [] | 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 | 542 | py | mod=998244353
fact=[1]
for i in range(1,2*10**5+1): #mod上での階乗を求める
fact.append((fact[-1]*i)%mod)
revfact=[1]
for i in range(1,2*10**5+1): #mod上での階乗の逆元をフェルマーの小定理を用いて求める
revfact.append(pow(fact[i],mod-2,mod))
n,m,k=map(int,input().split())
ans=0
for i in range(k,-1,-1): #各m(N-K<=m<=N)について場合の数を求める
group=n-i
tmp=fact[n-... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
156869ad9e5674ab69c9b1b1d37b2d2d4946460c | 7ae374f11cc2e9673fb2c39d00e942253418b41a | /connect_H351/telnet_H351.py | 199d5322ff7cbbf4f64dcf01e540e2edbee3d854 | [] | no_license | zeewii/H351 | 44c05acf0f814558f1fa8d8e2a9c942fee707985 | 80231ff0434a15835d6b484cbc498b2f963d048c | refs/heads/master | 2021-01-10T00:57:18.501664 | 2015-09-28T10:39:24 | 2015-09-28T10:39:24 | 43,277,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | #coding=utf-8
#描述:本模块为通过使用pexpect模块登录telnet输入命令,并取出输入结果
#作者:曾祥卫
import datetime
import pexpect
#输入:user-登录名,ip-登录ip,password1-登录密码1,password2-登录密码2,command-输入命令
#输出:输入命令返回的结果
def telnet_command(user,ip,password1,password2,command):
try:
#远程主机登录后出现的字符串
finish = ":/#"
# 为telnet命令生成一个spawn类... | [
"zeewii@sina.com"
] | zeewii@sina.com |
5131a9c888902430b3d4a3d54233d26783ca9679 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/abc/065d.py | 9fc11d2c49550f58cf2f400ec67dd7e78aefe5b5 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | import heapq
N = int(input())
cities = [0 for _ in range(N)]
for i in range(N):
x, y = map(int, input().split())
cities[i] = (i, x, y)
edges = [[] for _ in range(N)]
cities.sort(key=lambda A : A[1])
for i in range(N - 1):
a, xFrom, yFrom = cities[i]
b, xTo, yTo = cities[i + 1]
cost = min(abs(xFr... | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
1e1e14496a4ff4181136795e1206bfc147a0a3b7 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0751_0800/LeetCode759_EmployeeFreeTime.py | ff1eb9feb5d31dc20ea349c46e94b43ceaedee09 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,595 | py | '''
Created on Mar 30, 2018
@author: tongq
'''
# Definition for an interval.
class Interval(object):
def __init__(self, s=0, e=0):
self.start = s
self.end = e
class Solution(object):
def employeeFreeTime(self, schedule):
"""
:type schedule: List[List[Interval]]
:rtype: ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
4e96486fda291297b6b7b7b5830180b891f7de07 | 54df8336b50e8f2d7dbe353f0bc51a2b3489095f | /Django/Django_Old/disa-py/member/admin.py | f571a992fa1e04afacdcd4fa42521d6044b42e0d | [] | no_license | SurendraKumarAratikatla/MyLenovolapCodes1 | 42d5bb7a14bfdf8d773ee60719380ee28ff4947a | 12c56200fcfd3e5229bfeec209fd03b5fc35b823 | refs/heads/master | 2023-06-17T15:44:18.312398 | 2021-07-19T10:28:11 | 2021-07-19T10:28:11 | 387,358,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | from django.contrib import admin
# Register your models here.
from models import *
from django.contrib.admin import ModelAdmin
from django.db.models.fields import Field
from django.contrib.admin import SimpleListFilter
'''#from assign.disa-py.disa.admin_site import custom_admin_site
class country(SimpleListFilter):
... | [
"suendra.aratikatla1608@gmail.com"
] | suendra.aratikatla1608@gmail.com |
39d359c0ace912c7ed11aeb496577e257dfdcd23 | d52413173437ba73ecdf822ca895e659f00a8ce7 | /kiwibackend/application/module/skill/admin.py | 5dd10402159c123e12d215cf4d186a1bd65287e3 | [] | no_license | whiteprism/mywork | 2329b3459c967c079d6185c5acabd6df80cab8ea | a8e568e89744ca7acbc59e4744aff2a0756d7252 | refs/heads/master | 2021-01-21T11:15:49.090408 | 2017-03-31T03:28:13 | 2017-03-31T03:28:13 | 83,540,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.contrib import admin
from skill.models import Skill
admin.site.register(Skill)
| [
"snoster@163.com"
] | snoster@163.com |
1d2db470220c93818fef669f95833c53bfc67818 | 0dc9968c34f74f6ff15435104806956169d6c82a | /algorithm/compare_tripet.py | 519515ce23471f85179b0b6a1b0551eacbbf7458 | [] | no_license | tasnuvaleeya/hackerRank | 5ac0e5b089e8da83980b37b1dea45def20fe02e0 | 7259324ea0692ce36c494d9b8913eef8e2211aa9 | refs/heads/master | 2021-04-09T17:37:41.769210 | 2018-04-12T13:55:56 | 2018-04-12T13:55:56 | 125,638,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import sys
def solve(a0, a1, a2, b0, b1, b2):
# Complete this function
a = (1 if a0 > b0 else 0) + (1 if a1 > b1 else 0) + (1 if a2 > b2 else 0)
b = (1 if b0 > a0 else 0) + (1 if b1 > a1 else 0) + (1 if b2 > a2 else 0)
return (a, b)
a0, a1, a2 = input().strip().split(' ')
a0, a1, a2 = [int(a0), int(a1... | [
"tasnuva2606@gmail.com"
] | tasnuva2606@gmail.com |
b2b27bb05f6ee9fa684ab184aab98b2328e8fb80 | 16dcbf88ae9514109151fe5ff447b2b653ddf48b | /2016/012-polynom/polynom 2.py | 2847370b97cc567bdecda9cfbb8aa6c5054e1f08 | [] | no_license | ChristerNilsson/Lab | efa55ef5e79dff84b232dfcf94473eacdb263175 | b1f730f45ec6e901bd14c1e4196aa5e0f591ecd2 | refs/heads/master | 2023-07-06T04:35:09.458936 | 2023-06-24T21:40:54 | 2023-06-24T21:40:54 | 48,474,249 | 8 | 8 | null | 2022-12-10T07:03:31 | 2015-12-23T06:51:11 | JavaScript | UTF-8 | Python | false | false | 4,381 | py | # -*- coding: utf-8 -*-
from sympy import S
# Polynom 2: Lista 0,1,2,3,... Value, Add, Mul, Diff, Integrate, Prettyprint
# Objektorienterat
class Polynom(object):
def __init__(self, polynom):
self.polynom = polynom
def __call__(self, x):
return sum([factor * x ** exponent for exponent,facto... | [
"janchrister.nilsson@gmail.com"
] | janchrister.nilsson@gmail.com |
456d1b7dcc9770fbbd73c74764f549079b035733 | 4fd56b22ba00072817904c45f6b18844034f58f0 | /projectapi/urls.py | 4bc4445e2366ca58c269085b94fa45c39e920dd6 | [
"MIT"
] | permissive | kelvinrono/projectApi | 0bf7a2766a5279ca4b27e8b3d55e352f7661f083 | 873ea90bff9ec1004d1f936d4fdcec47f95759c3 | refs/heads/master | 2023-06-19T16:04:26.886938 | 2021-07-20T20:47:40 | 2021-07-20T20:47:40 | 386,591,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | from django.contrib import admin
from django.urls import path,include
from django.contrib.auth import views
from django.conf import settings
from django.conf.urls.static import static
from django_registration.backends.one_step.views import RegistrationView
urlpatterns = [
path('admin/', admin.site.urls),
path(... | [
"ronohkelvin99@gmail.com"
] | ronohkelvin99@gmail.com |
57d4560a43aef2d5d6a28cf6a9081b60926353ed | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-mgmt-sql/azure/mgmt/sql/operations/job_target_groups_operations.py | 0bf98a502cb80ea748c22f25a5de17d8b4d37e78 | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 15,765 | 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 ... | [
"noreply@github.com"
] | ashirey-msft.noreply@github.com |
7d24cd93a7fba526abe473e1a5d4a570cd1114e6 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2741/60760/298464.py | 353a99580a2dc99629300bfe0b7b2f83c5ddb862 | [] | 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 | 335 | py | def func(arr: list):
length=len(arr)
l=length
while l>0:
for j in range(length+1-l):
temp=arr[j:j+l]
temp2=sorted(set(temp))
if temp==temp2:
return l
l=l-1
return 0
b = input()
arr = list(map(int, b[1:len(b)-1].split(',')))
p... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2308b0c04994fcc9e120f82195135253102e7f8a | eaa284e89ce848e7500d08cc16b40b6c465e6b5c | /cthaeh/app.py | 7efe62c7464f73d3379b74d3b80e4182bd7ca3a7 | [
"MIT"
] | permissive | pipermerriam/cthaeh | bfac951546977eeb078df9bffb5a07536f6772ee | a3f63b0522d940af37f485ccbeed07666adb465b | refs/heads/master | 2023-08-28T08:49:23.966610 | 2020-04-28T18:17:02 | 2020-04-28T18:17:02 | 259,418,354 | 0 | 0 | MIT | 2020-04-27T18:30:54 | 2020-04-27T18:30:53 | null | UTF-8 | Python | false | false | 2,077 | py | import logging
import pathlib
from typing import Optional
from async_service import Service
from eth_typing import BlockNumber
from sqlalchemy import orm
import trio
from web3 import Web3
from cthaeh.exfiltration import Exfiltrator
from cthaeh.ir import Block as BlockIR
from cthaeh.loader import BlockLoader
from ctha... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
e511daa839d5f5ec938a1828c6f4e1d08361e541 | 3f7c27ccd0ab1fcbd2583cf4b764b81bd27dd718 | /apps/members/migrations/0003_auto__add_field_member_address__add_field_member_city__add_field_membe.py | bfad4ac11b208f53dc018a2f15b4d2636362d119 | [] | no_license | adamtlord/foreverland | 001ca1a91a3cc468405efb80fe7981e75b82021c | 8206ddeeb8cfbd2752ef6fa9839424718cb96e07 | refs/heads/master | 2020-04-16T00:50:51.582008 | 2016-09-21T03:27:39 | 2016-09-21T03:27:39 | 11,668,672 | 0 | 0 | null | 2016-09-04T03:46:51 | 2013-07-25T19:05:55 | Python | UTF-8 | Python | false | false | 7,747 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Member.address'
db.add_column(u'members_member', 'address',
self.gf('d... | [
"adam.lord@gmail.com"
] | adam.lord@gmail.com |
dd7b3751dac42303218c555346b4dc3e265685c4 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20170801/network_watcher.py | 6baeb361ea8cee421d8b1a6957351992333fc362 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,727 | 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
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
557626a838a5516f574530c6f9b0f8abecfe9102 | d438590c032484c00674def5d5949ff2d33dcc07 | /io2_portal/urls.py | 73d87a3bda881992df1e612b5720ec749307d100 | [] | no_license | map34/io2_portal | 52503504334a355e2bfcbcd23b07206e543768b4 | 1890313104218ad1f6c9baa259341e3a689afc04 | refs/heads/master | 2020-03-25T01:00:43.877008 | 2018-08-02T17:22:41 | 2018-08-02T17:22:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | """io2_portal URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"landungs@uw.edu"
] | landungs@uw.edu |
8a69b3abdbe989e9632031a056e21efcc892c649 | c15a28ae62eb94dbf3ed13e2065195e572a9988e | /Cook book/src/9/preserving_function_metadata_when_writing_decorators/example.py | e5e1850554e8f722b7368d301f04da5a8473d8a1 | [] | no_license | xuyuchends1/python | 10798c92840a1a59d50f5dc5738b2881e65f7865 | 545d950a3d2fee799902658e8133e3692939496b | refs/heads/master | 2021-01-25T07:07:04.812140 | 2020-02-28T09:25:15 | 2020-02-28T09:25:15 | 93,647,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import time
from functools import wraps
def timethis(func):
'''
Decorator that reports the execution time.
'''
@wraps(func)
def wrapper(*args, **kwargs):
start = time.time()
result = func(*args, **kwargs)
end = time.time()
print(func.__name__, end - start)
... | [
"xuyuchends@163.com"
] | xuyuchends@163.com |
b1b37aea147f4eae935359ca21d61807d97cf417 | bbb8d941d0aa439ca435e0f00ddbd7330ad2db79 | /cpp/cc1.py | ee3d587fa2a2f8a3948cee50ae517e7285bcf118 | [] | no_license | dimritium/Code | 7ca940124074d7f7bca28559e0fe2f3cba24f846 | e6678b3dabe21fcd05e362bb8115f7812ad9abb8 | refs/heads/master | 2021-07-25T06:35:22.755474 | 2017-11-04T15:07:50 | 2017-11-04T15:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | t = int(input())
for i in range(t):
s = str(input())
dic = {}
for i in range(len(s)):
try:
dic[s[i]].append(i)
except:
dic[s[i]] = [i]
for k,v in dic.items():
flag = 0
if len(dic[k])>1:
if dic[k][-1]!=len(s)-1:
dic[... | [
"dimrishubhi@gmail.com"
] | dimrishubhi@gmail.com |
19449a8c3d7391986351f441cf5c2b743a3dbcb2 | 2c143ba64032f65c7f7bf1cbd567a1dcf13d5bb1 | /腾讯/回溯算法/022括号生成.py | c5dd0dd441e7531fdd68cfbbe845ec6452796fcd | [] | no_license | tx991020/MyLeetcode | 5b6121d32260fb30b12cc8146e44e6c6da03ad89 | cfe4f087dfeb258caebbc29fc366570ac170a68c | refs/heads/master | 2020-04-09T21:43:41.403553 | 2019-03-27T18:54:35 | 2019-03-27T18:54:35 | 160,611,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,960 | py | '''
给出 n 代表生成括号的对数,请你写出一个函数,使其能够生成所有可能的并且有效的括号组合。
例如,给出 n = 3,生成结果为:
[
"((()))",
"(()())",
"(())()",
"()(())",
"()()()"
]
'''
'''
class Solution:
def generateParenthesis(self, n):
"""
:type n: int
:rtype: List[str]
"""
self.res = []
self.singleStr('', 0,... | [
"wudi@hetao101.com"
] | wudi@hetao101.com |
62cd735bf3bd66bfa41f89911b1a16366b1a19e7 | 72f5adc4b6f79dd40e975c86abcdbd3d0ccada86 | /venv/bin/gunicorn_paster | 43cf72ceadbb1d9db6993812ddd5ce212904fb7e | [] | no_license | katrek/flask_vacancy_parser | 77101604ec5bfeb47c009b9d8329b42d9d30bf4a | bbea4ae860bb78f7264b05e92c6664f8e4c4b3cf | refs/heads/master | 2023-01-11T11:58:09.275448 | 2019-08-29T06:36:53 | 2019-08-29T06:36:53 | 204,666,913 | 1 | 1 | null | 2023-01-03T12:19:03 | 2019-08-27T09:22:35 | Python | UTF-8 | Python | false | false | 271 | #!/Users/artemtkachev/PycharmProjects/flask_parser2/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"akatrek@gmail.com"
] | akatrek@gmail.com | |
bf5cc25038b36bbd8db9b85a2521712b8946591a | 2775947a01c2b10671737eae47725435957890a5 | /to-be-implemented/vstruct/win32.py | 908eb8ab7618a154c12ecf06dbb1a4dddd3235df | [] | no_license | albertz/pydbattach | 7b4bd4b7b22ec3c0aa82b45ba29674d3c852a9a4 | bbcc187627fc80ae4bd6fc98eefe41316f722a91 | refs/heads/master | 2022-10-25T12:34:05.045449 | 2022-10-11T14:53:18 | 2022-10-11T14:53:18 | 1,798,590 | 79 | 10 | null | 2022-02-09T12:43:01 | 2011-05-25T11:52:27 | Python | UTF-8 | Python | false | false | 7,453 | py |
from vstruct.primitives import *
from vstruct import VStruct,VArray
DWORD = v_uint32
class NT_TIB(VStruct):
_fields_ = [
("ExceptionList", v_ptr), # ExceptionRegistration structures.
("StackBase", v_ptr),
("StackLimit", v_ptr),
("SubSystemTib", v_ptr),
("FiberData", v_ptr)... | [
"albert.zeyer@rwth-aachen.de"
] | albert.zeyer@rwth-aachen.de |
222cf635654899e2f70d56d71f7342f179ea4fdd | a4753147801dbabfec45f6f9f47572cda77efb81 | /debugging-constructs/ibmfl/aggregator/fusion/dt_fusion_handler.py | 6888cde3062ef7e198ffce36cd05995513cf56c0 | [
"MIT"
] | permissive | SEED-VT/FedDebug | e1ec1f798dab603bd208b286c4c094614bb8c71d | 64ffa2ee2e906b1bd6b3dd6aabcf6fc3de862608 | refs/heads/main | 2023-05-23T09:40:51.881998 | 2023-02-13T21:52:25 | 2023-02-13T21:52:25 | 584,879,212 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,110 | py | """
Licensed Materials - Property of IBM
Restricted Materials of IBM
20221069
© Copyright IBM Corp. 2022 All Rights Reserved.
"""
import numpy as np
import logging
from ibmfl.model.dt_fl_model import DTFLModel
from ibmfl.model.model_update import ModelUpdate
from ibmfl.aggregator.fusion.fusion_handler import FusionHan... | [
"waris@vt.edu"
] | waris@vt.edu |
87a95868383862865aaa76c7f00e32695dc68955 | bb373604f1b17f3ea4030dfd98eebad6d03da2ff | /utils/tokenizer.py | a3ba38049444c5b8f82630370a8ddc6e9b0329f7 | [] | no_license | dystudio/classic_chinese_punctuate | 43d348625e55e8ecb24ef469fd1dfe516135e23b | 9a657690fdd203e370957ecf6574a1a5d63a5062 | refs/heads/master | 2023-03-26T22:30:09.366543 | 2018-11-27T10:44:03 | 2018-11-27T10:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,602 | py | # encoding: utf-8
"""
@author: BrikerMan
@contact: eliyar917@gmail.com
@blog: https://eliyar.biz
@version: 1.0
@license: Apache Licence
@file: tokenizer
@time: 2018/11/24
"""
import os
import random
import json
import h5py
import numpy as np
import tqdm
from typing import List, Dict
from keras.preprocessing import se... | [
"eliyar917@gmail.com"
] | eliyar917@gmail.com |
4d4d51aa814dfd29d50290261d6d9ce681a302e8 | d2c4151eff768af64946ababc2e41c13d8973cd3 | /ARC105/a.py | f9f21d8dd457a05c96bd9eb45c5f8bcd344e63e9 | [] | no_license | Intel-out-side/AtCoder | 2de19b71981247135432aed2d6d9c2a16c3ab7f0 | 0c419d2df15fff02032432cb1b1323612484e16e | refs/heads/master | 2022-06-23T04:21:12.886072 | 2022-06-13T14:39:07 | 2022-06-13T14:39:07 | 235,240,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import math
N = int(input())
for a in range(1, 100):
tmp = N - 3**a
if tmp < 5:
print(-1)
exit()
for b in range(1, 100):
if 5**b == tmp:
print(a, b)
exit()
print(-1)
| [
"so.eng.eng.1rou@gmail.com"
] | so.eng.eng.1rou@gmail.com |
bb5260b71015d345a88ae42ed0488418d428fac1 | 1f3bed0bb480a7d163dab73f1d315741ecbc1072 | /vtkplotter_examples/other/trimesh/section.py | 5dbcbdb40fe1f58a43833bc7fec62a29fa4cd2b8 | [
"MIT"
] | permissive | ismarou/vtkplotter-examples | 1ce78197182da7496b016b27f1d5eb524c49cac6 | 1eefcc026be169ab7a77a5bce6dec8044c33b554 | refs/heads/master | 2021-03-11T18:43:22.313457 | 2020-03-03T22:11:25 | 2020-03-03T22:11:25 | 246,551,341 | 4 | 0 | null | 2020-03-11T11:18:48 | 2020-03-11T11:18:47 | null | UTF-8 | Python | false | false | 1,721 | py | import trimesh
import numpy as np
from vtkplotter import show, Plane, Text2D, printc, download
# load the mesh from filename, file objects are also supported
f = download('https://github.com/mikedh/trimesh/raw/master/models/featuretype.STL')
mesh = trimesh.load_mesh(f)
# get a single cross section of the mesh
txt = T... | [
"marco.musy@gmail.com"
] | marco.musy@gmail.com |
3dc9519fbdd363764163d3eefaebd7907a2214a1 | ac0957824d2730170603b6af26e38177965208a6 | /build/beginner_tutorials/catkin_generated/pkg.develspace.context.pc.py | fc1d02a638249646cd9aab97cb2ef6c8c924b854 | [] | no_license | JelenaKiblik/jekibl-rtech | 6c9c0ee78e4a2bf539ecac9f050110e96551171f | a3b4ef8bdfaba64a1209d695db78b6b7d7074c19 | refs/heads/master | 2020-08-01T06:29:20.727647 | 2019-11-17T10:38:14 | 2019-11-17T10:38:14 | 210,897,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ubuntu/jekibl-rtech/devel/include".split(';') if "/home/ubuntu/jekibl-rtech/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(... | [
"jekibl@ttu.ee"
] | jekibl@ttu.ee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.