blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da919e0179455f6b53d11e7136b6f369f5bed978 | ebe7c57183b0eeba9af1bdc72f0f81b9b8129ca9 | /1. backtracking/047.py | d0866e064c3641441032f85b63db44d36015a6ae | [] | no_license | proTao/leetcode | f2e46392b56b69606e1dd25cf5738cb0ad275645 | 97533d53c8892b6519e99f344489fa4fd4c9ab93 | refs/heads/master | 2021-11-24T10:23:56.927122 | 2021-11-18T04:28:05 | 2021-11-18T04:28:05 | 110,225,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | class Solution:
def permuteUnique(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
res = []
if len(nums) == 0:
return []
distinct_nums = set(nums)
rest = {}
for i in nums:
if i in rest:
... | [
"836807627@qq.com"
] | 836807627@qq.com |
4dbf967617143afff7502d5004d540220460004e | fa58068fa4e0fd4c1c3713d27752c9c36efe8a44 | /paket/main.py | c8843f50bd8aa984c6277fdbd565fab3476ac472 | [] | no_license | Zadrayca/Kourse | f611f4d3627286eeb5f1eedb7ce9bc5d06454cdc | e9a1bf6b658573eab556d9d1fa1297d452a6dfff | refs/heads/master | 2020-06-14T09:41:41.631712 | 2017-03-09T19:00:41 | 2017-03-09T19:00:41 | 75,203,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from calk import pow, multi, summa
from calk.pow import pow as r
y = multi.multi(3, 5)
x = summa.summa(5, 7)
z = r(3, 5)
print(x, y, z)
print(dir(pow))
| [
"coxatiy@gmail.com"
] | coxatiy@gmail.com |
ea2f608d540ed8ad36f731c18dc431613e5ab8fb | 2db5bf5832ddb99e93bb949ace1fad1fde847319 | /beginLearn/googleclass/class3/test.py | 7ffd1cdf702097daef8aa3a03597ae2ab5d4ac2c | [] | no_license | RoderickAdriance/PythonDemo | 2d92b9aa66fcd77b6f797e865df77fbc8c2bcd14 | 98b124fecd3a972d7bc46661c6a7de8787b8e761 | refs/heads/master | 2020-04-06T17:36:46.000133 | 2018-11-15T07:07:03 | 2018-11-15T07:07:03 | 157,666,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | from __future__ import print_function
import math
from sklearn import metrics
from IPython import display
from matplotlib import cm
from matplotlib import gridspec
from matplotlib import pyplot as plt
import numpy as np
import pandas as pd
import tensorflow as tf
from tensorflow.python.data import Dataset
tf.logging.... | [
"1371553306@qq.com"
] | 1371553306@qq.com |
a87804e82e918b9342cafbd8410b9e04151ab2e4 | aee5f372ba1b5fbb1c8acf6080c4c86ae195c83f | /java-stubs/security/acl/__init__.pyi | e7af442f7ef702bb8b5218efb30dde7f6f0f22a0 | [] | no_license | rdemaria/pjlsa | 25221ae4a4b6a4abed737a41a4cafe7376e8829f | e64589ab2203338db4253fbc05ff5131142dfd5f | refs/heads/master | 2022-09-03T13:18:05.290012 | 2022-08-16T13:45:57 | 2022-08-16T13:45:57 | 51,926,309 | 1 | 5 | null | 2019-07-11T11:50:44 | 2016-02-17T13:56:40 | Python | UTF-8 | Python | false | false | 2,887 | pyi | import java.lang
import java.security
import java.util
import typing
class AclEntry(java.lang.Cloneable):
def addPermission(self, permission: 'Permission') -> bool: ...
def checkPermission(self, permission: 'Permission') -> bool: ...
def clone(self) -> typing.Any: ...
def getPrincipal(self) -> java.s... | [
"michi.hostettler@cern.ch"
] | michi.hostettler@cern.ch |
55f4632468c9a46223772b259e528fabae433016 | ee6074aad7bef8b8279130fa561b6eb0a6e66b1e | /modules/sample.py | 20032a1959f97a7f6c2401e185e308b900bece59 | [
"MIT"
] | permissive | antiquefu/pycameresp | 23ca208c2a19d445d164fbdc25303d4be040f381 | d86814625a7cd2f7e5fa01b8e1652efc811cef3a | refs/heads/main | 2023-08-01T01:40:04.384937 | 2021-09-19T17:30:48 | 2021-09-19T17:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | # Distributed under MIT License
# Copyright (c) 2021 Remi BERTHOLET
from server.httpserver import HttpServer
from htmltemplate import Br,ButtonCmd,Option,SwitchCmd,Tag,SliderCmd,ComboCmd,Paragraph
from webpage.mainpage import *
from tools import useful
# Called when the button pressed
@HttpServer.addRoute(b'... | [
"remi_bertholet@yahoo.fr"
] | remi_bertholet@yahoo.fr |
3f3cbc27b98cf2f962ea71902a23a95e4451122e | ee6acbd5fcd0fcd16230e96a4a539de41a02c97e | /operators/ibmcloud-iam-operator/python/pulumi_pulumi_kubernetes_crds_operators_ibmcloud_iam_operator/_tables.py | 0e341dd0c30a19d942a6a75299bc8fdb6db597f2 | [
"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 | 2,128 | 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! ***
SNAKE_TO_CAMEL_CASE_TABLE = {
"access_group_def": "accessGroupDef",
"access_group_id": "accessGroupID",
"access_group_name": "accessGroupName",
"acce... | [
"albertzhong0@gmail.com"
] | albertzhong0@gmail.com |
e5ee33c78f39ec07d8e46db54f732e895ef0f629 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/203.py | 5e6817c4973f210cb1eb8eadcf2f4966ec3e3bb1 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py |
import sys
in_ = sys.stdin
T = int(in_.readline())
for t in xrange(T):
r1 = int(in_.readline())
a1 = [map(int, in_.readline().split(' ')) for i in xrange(4)]
r2 = int(in_.readline())
a2 = [map(int, in_.readline().split(' ')) for i in xrange(4)]
res = set(a1[r1 - 1]).intersection(a2[r2 - 1])
pr... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
90218a595c5ced9205138e11fb5e03416aa92719 | fe75ab418adfd723f48b8eafc80515c9fd913395 | /LeetCode/!0232. Implement Queue using Stacks.py | 7230a81dac20ba8732640c59c0492c589d73a031 | [] | no_license | AshkenSC/Programming-Practice | d029e9d901f51ef750ed4089f10c1f16783d2695 | 98e20c63ce1590deda6761ff2f9c8c37f3fb3c4a | refs/heads/master | 2021-07-20T06:41:12.673248 | 2021-06-25T15:44:06 | 2021-06-25T15:44:06 | 127,313,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | '''
0232. Implement Queue using Stacks
请你仅使用两个栈实现先入先出队列。队列应当支持一般队列的支持的所有操作(push、pop、peek、empty)。
'''
class MyQueue:
def __init__(self):
"""
Initialize your data structure here.
"""
self.stk = []
self.temp = []
self.current_queue = 0
def push(self, x: int) ->... | [
"393940378@qq.com"
] | 393940378@qq.com |
7476d47d2554a91d4a8cb9c7d91816e908594d7e | 830a0667f2e70177e83ef394bce9972533ea449c | /arrayMaxConsecutiveSum.py | cd8969f3e5943780526236b2440a188963b4a77c | [] | no_license | porosya80/codesignal | 8659fba8cd9001efdca798590bacbfb4d41dc5b5 | f26d5c739b093019a149047317cc32d9aa92541b | refs/heads/master | 2020-03-22T21:54:23.342397 | 2018-12-05T05:05:51 | 2018-12-05T05:05:51 | 140,720,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | def arrayMaxConsecutiveSum(a, k):
res = [sum(a[0:k])]
for i in range(1, len(a)-k+1):
res.append(res[i-1]-a[i-1]+a[i+k-1])
return(max(res))
inputArray = [1, 3, 2, 4]
k = 3
# , the output should be
print(arrayMaxConsecutiveSum(inputArray, k))
# = 9.
# All possible sums of 2 consecutive elem... | [
"porosya@gmail.com"
] | porosya@gmail.com |
2984b7bfb6e62a07535587dad44f16d99b08ffe2 | 9647524c0f4d93fb1c8a992c20fe9f9d2710cde3 | /2-content/Python/pcc-master/chapter_12/ship.py | 0df9da197640b0152c6bf885473c945151b024c2 | [
"MIT"
] | permissive | bgoonz/web-dev-notes-resource-site | 16161aa68e8eecafeaba4dc7abeb957aaee864c5 | e7dc9c30393597cb39830c49c3f51c1486b97584 | refs/heads/master | 2023-09-01T14:04:20.867818 | 2021-06-17T07:56:20 | 2021-06-17T07:56:20 | 329,194,347 | 7 | 5 | MIT | 2021-07-05T06:36:49 | 2021-01-13T04:34:20 | JavaScript | UTF-8 | Python | false | false | 1,417 | py | import pygame
class Ship():
def __init__(self, ai_settings, screen):
"""Initialize the ship, and set its starting position."""
self.screen = screen
self.ai_settings = ai_settings
# Load the ship image, and get its rect.
self.image = pygame.image.load('images/ship.bmp')
... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
8cb6535c3e1792c0646c81b62e0b3497165a47f3 | bb976142e482afa6843271ed5c994734eca53e74 | /FPV_ANN_pureRes_4D/utils/AdamW.py | 314264d226666363e86465213d0d5b1a050a1c7e | [
"MIT"
] | permissive | mhansinger/combustionML | 552a7540864a2d6b173204cccfdc82ef8c8b2f8c | 9e60324bbd026979d4241fbdd62faaff873ce2a9 | refs/heads/master | 2021-07-09T18:34:09.462100 | 2020-05-20T11:16:31 | 2020-05-20T11:16:31 | 102,774,653 | 0 | 2 | MIT | 2019-02-27T17:55:15 | 2017-09-07T18:57:16 | Jupyter Notebook | UTF-8 | Python | false | false | 5,130 | py | """From built-in optimizer classes.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import six
import copy
from six.moves import zip
from tensorflow.keras import backend as K
from tensorflow.keras.utils.generic_utils import serialize_keras_object
from t... | [
"maximilian.hansinger@unibw.de"
] | maximilian.hansinger@unibw.de |
e664fe95ab614d5939008f413cf277a1b48a0f36 | 3017b7399869057a8be7fb11ee9341b9c8f97ba4 | /qa/elgs/pix_area.py | 87c35a1217fde6a4aa8aaa86526db6b23f0097de | [] | no_license | michaelJwilson/SV-QA | 8f486422eb71b3fbd0d395904fd654ba432bd777 | dd6095d570442852bb28ac9da0f18be7b83cddce | refs/heads/master | 2020-07-29T16:04:55.759155 | 2019-12-20T14:37:23 | 2019-12-20T14:37:23 | 209,872,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,625 | py | import os
import sys
import glob
import fitsio
import matplotlib
import pylab as pl
import pandas as pd
import numpy as np
import astropy.io.fits as fits
import matp... | [
"mjwilson@lbl.gov"
] | mjwilson@lbl.gov |
2f566142ff25a00fdbacb0a7a723b1cd6b2bad90 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/90/usersdata/197/60329/submittedfiles/matriz2.py | 85af8758f0a532d442df4077a2a04b076b7f95fe | [] | 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 | 176 | py | # -*- coding: utf-8 -*-
import numpy AS np
n=int(input('Digite o numero de linhas e colunas:'))
a=np.zeros((n,n))
for i in range (0, a.shape[0]
def somas iguais(a):
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5dc345bc932009a8b62c1f5f0ee1a5f1c621fe79 | faf4c1055f50ca4dd81d0fc2f16f5e95905e3827 | /protocol/split_mutations.py | ec227caabe40b8148918a621e55bf3e32706bad5 | [] | no_license | Ningshiqi/protocol | 07e0e95c57d74e0ea2bbbfd7d49f9dc42c5dc37e | 8a906a79a2835a61d252cafc2452b407230c4409 | refs/heads/master | 2021-01-20T07:27:38.880511 | 2016-06-22T18:39:15 | 2016-06-22T18:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | from random_split import RandomSplit
import pandas as pd
import sys
import argparse
import os
def mymkdir(dir_path):
try:
os.mkdir(dir_path)
except OSError:
pass
def parse_arguments():
d = ('Generate splits of the data while respecting the proportion '
'of each tumor type in the ... | [
"collintokheim@gmail.com"
] | collintokheim@gmail.com |
2421c173dbdd049106e02be81e7dfa5430fd987e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02629/s238693041.py | ab02df2f11872200d5371b13356ba05aa505c465 | [] | 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 | 418 | py | import sys , math
from bisect import bisect
N=int(input())
alp="abcdefghijklmnopqrstuvwxyz"
R=[]
i=1
tot = 0
while tot < 1000000000000001:
tar = 26**i
tot+=tar
R.append(tot+1)
i+=1
keta = bisect(R , N)+1
if keta == 1:
print(alp[N-1])
sys.exit()
ans = ""
M = N - R[keta - 1]
for i in range(keta... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
da07d731ba5449ac6f1e1a753266a1d267e42d87 | 99af867b8112a2a7ca55b204d795141ccf6a3906 | /ironbox/evaluation_models/classify_fcnet.py | 7a5e081fc1718e43c924985a3198e2a21d39fccc | [] | no_license | evanthebouncy/class_and_style | 5f165f75e3850919e90a05a72533209429efed04 | d434e2414526bece7d6757f4c9c1ccb94263769f | refs/heads/master | 2020-03-29T18:09:36.417411 | 2019-02-04T22:10:33 | 2019-02-04T22:10:33 | 150,197,318 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,454 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.autograd import Variable
# ===================== FC NN CLASSIFIER =====================
def to_torch(x, dtype, req = False):
tor_type = torch.cuda.LongTensor if dtype == "int" else torch.cuda... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
b761885bc3e88a2116f44fd2680442026270b9cd | 30b4d3122db7146d07a6eb431f6c1030f716aaa8 | /memegen/memegen/routes/examples.py | a25caff591e76aece6f65e128a388b085439301a | [
"MIT"
] | permissive | flavienbwk/memegen | b00df3d2a2fb68f7b2de88e0ed158280f99f7fa7 | dcb5635ad556d1c855fc3851609b32b1be133441 | refs/heads/master | 2020-11-25T03:38:56.626649 | 2019-12-16T23:59:24 | 2019-12-16T23:59:24 | 228,484,764 | 0 | 0 | NOASSERTION | 2019-12-16T22:09:08 | 2019-12-16T22:09:07 | null | UTF-8 | Python | false | false | 482 | py | from flask import Blueprint, render_template, current_app, make_response
from ._utils import samples
blueprint = Blueprint('examples-page', __name__)
@blueprint.route("/examples")
def get():
sample_images = list(samples())
html = render_template(
"examples.html",
sample_images=sample_images... | [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com |
d003a7c6ff75f74dbe0eb5bd94675975cd7a687c | b7a31624f827b16f2b6e1cc6b61bf8529191ff0f | /matplotlib/多序列堆积条状图.py | 49140fe1a9bbbb3e291ee0348f5d86c95563913a | [] | no_license | thj120000/python | eb7daddefef6b9a1039e8ef58c3af88e05ffb794 | a52aad1e57b100064db3e1e3a2af3c02eded4bf7 | refs/heads/master | 2020-04-24T19:29:48.741308 | 2019-03-03T11:11:12 | 2019-03-03T11:11:12 | 172,213,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | #!@Author : Sanwat
#!@File : .py
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
'''
bar()类型,可以将pandas 的dataframe he series用图表表示出来
'''
plt.figure(1)
series1= np.array([3,4,5,3])
series2= np.array([1,2,2,5])
series3= np.array([2,3,3,4])
index= np.arange(4)
plt.axis([0,4,0,15])
plt.bar(index,serie... | [
"2464237217@qq.com"
] | 2464237217@qq.com |
c2a45a4d33438fa9313023600490c3ba37f977e5 | 751b094918ae9200afe7824d58804549082caa95 | /src/python/WMComponent/DBS3Buffer/Oracle/DBSBufferFiles/SetLocationByLFN.py | b5ca849beb2bedc814bf1f1956da2893d1dd3764 | [] | no_license | cinquo/WMCore | 7ebd13269f42eb97f416f8f2bdaca05fa93c6afc | 122f9332f2e944154dd0df68b6b3f2875427b032 | refs/heads/master | 2021-01-09T06:28:58.947626 | 2013-06-05T08:31:53 | 2013-06-05T08:31:53 | 2,965,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | #!/usr/bin/env python
"""
_SetLocationByLFN_
Oracle implementation of DBSBuffer.SetLocationByLFN
"""
from WMComponent.DBS3Buffer.MySQL.DBSBufferFiles.SetLocationByLFN import SetLocationByLFN as MySQLSetLocationByLFN
class SetLocationByLFN(MySQLSetLocationByLFN):
"""
Set the location of files using lfn as ... | [
"sfoulkes@4525493e-7705-40b1-a816-d608a930855b"
] | sfoulkes@4525493e-7705-40b1-a816-d608a930855b |
15c3b44a518019dd9db25700f49622a3c9501ea3 | 488ae9723f148082e949448eed2fdcb4c111e784 | /bill-calculator.py | 61c9064f33cd5cda10414550cac73be05a057b70 | [] | no_license | priyanka-advani/hba_functions_exercise | 91b55ab221557d6358a6364bc8d26bb9644b12fc | d4a1d6cbfc90cc3fbee8157ba2e8707d36ef8484 | refs/heads/master | 2021-01-20T02:39:11.656709 | 2017-04-26T04:20:16 | 2017-04-26T04:20:16 | 89,437,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | """
This is Part 4 of the Hackbright Prep functions exercise
"""
def calculate_tip(bill_amt, tip_percentage):
"""Given the bill amount and tip percentage, calculates the tip."""
# ENTER YOUR CODE HERE
tip_amt = bill_amt * tip_percentage
return tip_amt
def calculate_total(bill_amt, tip_amt):
... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
493c4d78f5463a27107352a23c732fa1f16841e4 | def4838e05acb0932f3b51ce689b5b264bf4ebfd | /apps/users/forms.py | bfaf6e3a5f29e314158102103fa93e41451581f5 | [] | no_license | shishengjia/Django_By_Example_Bookmarks | 6ce125b2f15348b6b2fec26c4ff8694f000194e6 | 377d7ce31ea66e5e55032fcf47d84a1afd9acdbe | refs/heads/master | 2021-01-19T14:16:52.566325 | 2017-04-27T12:23:41 | 2017-04-27T12:23:41 | 88,141,126 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | from django import forms
from .models import UserProfile
class LoginForm(forms.Form):
username = forms.CharField(error_messages={'required': '请填写您的姓名'})
password = forms.CharField(min_length=6, error_messages={'required': '请填写您的密码',
'min_length': '密... | [
"shishengjia1@live.com"
] | shishengjia1@live.com |
d50e226c0416782f1bbf88fe9f0570b0fca3618a | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_thailand_idcard_request.py | b0ea673ab51acb3c850cea2011a6aae59dd80fec | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,613 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class RecognizeThailandIdcardRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
c4cf4c885cd3eb01d8f58c317d42c028c234ea00 | 2103809bc3df62449488328946d0914241ced863 | /Project Specific Demo/TrackingInput.py | d24851795ed6c84c16062e6b02261e832b991cd9 | [] | no_license | PMiskew/Year9DesignCS4-PythonPM | b5fb4382091cd8be63a43371ac614be74fb4c268 | eeeace0b0ff89e1e4a65361f4e40167e7f4c3cc4 | refs/heads/master | 2021-06-23T17:09:22.626668 | 2019-09-21T23:30:25 | 2019-09-21T23:30:25 | 148,173,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | import tkinter as tk
def submit():
print("Submit pressed")
list.append(ent.get())
print(list)
lab.config(text = "Changed")
#This function will parse a string and
#add a new element to the list for all
#values
#creates an empty list
list = []
root = tk.Tk()
lab = tk.Label(root, text = "Input Food")
lab.pack... | [
"paul.miskew@gmail.com"
] | paul.miskew@gmail.com |
61b9db032c2ab839765d189ba8fcfa04f26494d8 | 6a6984544a4782e131510a81ed32cc0c545ab89c | /src/production-histograms/.svn/pristine/61/61b9db032c2ab839765d189ba8fcfa04f26494d8.svn-base | 65cb661716719f6def08c48e49a24dc9e8215348 | [] | no_license | wardVD/IceSimV05 | f342c035c900c0555fb301a501059c37057b5269 | 6ade23a2fd990694df4e81bed91f8d1fa1287d1f | refs/heads/master | 2020-11-27T21:41:05.707538 | 2016-09-02T09:45:50 | 2016-09-02T09:45:50 | 67,210,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | from math import cos, log10, isnan
from I3Tray import I3Units
from icecube import icetray, dataclasses
from icecube.production_histograms.histograms.histogram import Histogram
from icecube.production_histograms.histogram_modules.histogram_module import HistogramModule
class CORSIKAWeightModule(HistogramModule):
d... | [
"wardvandriessche@gmail.com"
] | wardvandriessche@gmail.com | |
2efbf244a54953af90a9268a39fcbe2a09738c25 | ac15eda44e8dcfee6dff62f514c5b98a3382f50d | /python/pygame/ftetris/lib/main.py | a645b4bdff5dcc5af6ca9c0ec63994b06f58037b | [] | no_license | yangruihan/raspberrypi | 5789c1a2e72d4012d46563d0644b08d032d346e6 | 22bc1a06b25e129a4314f4bc9cec5112affda136 | refs/heads/master | 2022-12-27T09:27:05.102020 | 2020-10-13T09:41:24 | 2020-10-13T09:41:24 | 32,977,936 | 4 | 0 | null | 2022-12-16T01:47:53 | 2015-03-27T09:30:43 | Java | UTF-8 | Python | false | false | 374 | py | import tetris
class Main:
def __init__(self, screen):
self.screen = screen
def run(self, elapse):
return self.tetris.update(elapse)
def start(self, kind):
if kind == 6:
self.tetris = tetris.Tetris(self.screen)
else:
self.tetris = eval(
... | [
"yangruihan@vip.qq.com"
] | yangruihan@vip.qq.com |
5a8960b4e94e566305e39cc4e66dbd7bf77d4ab6 | 1dadb20cff6127dd950521aa5a747f6309eac7cd | /users/models.py | c3e6b289a6deca7d3547d180502d55e9938f8027 | [] | no_license | profmcdan/csu-core | a40ca42104728146e5951bdb2856c75d0090a96a | 24091936f167fb03988da9226b76a90d1a6259d9 | refs/heads/master | 2022-12-12T12:15:06.106113 | 2019-11-17T13:04:09 | 2019-11-17T13:04:09 | 220,621,544 | 0 | 0 | null | 2022-12-08T06:51:12 | 2019-11-09T09:44:07 | Python | UTF-8 | Python | false | false | 1,955 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin
from django.db import models
from .managers import UserManager
class User(AbstractBaseUser, PermissionsMixin):
created_on = models.DateTimeField(
auto_now_add=True,
... | [
"danielale9291@gmail.com"
] | danielale9291@gmail.com |
40a7027d6d97d67adb0811ae98b4be1e70558c8a | 05a70c12df808455100598d8a6fdb5635c641ab8 | /Ago-Dic-2019/Ejemplos/Design Patterns/Strategy/ShellSortStrategy.py | a79568c20a8f1ce41d829d0bea6a44c82658e388 | [
"MIT"
] | permissive | Jonathan-aguilar/DAS_Sistemas | 991edcc929c33ba9bb8bc84e741b55c10a8420a3 | 4d02efc64161871084df1bff258112351e5d1241 | refs/heads/development | 2023-07-24T12:26:54.698452 | 2021-09-02T20:52:26 | 2021-09-02T20:52:26 | 289,764,892 | 1 | 0 | MIT | 2021-09-02T20:52:27 | 2020-08-23T20:54:55 | Python | UTF-8 | Python | false | false | 192 | py | from SortStrategy import SortStrategy
class ShellSortStrategy(SortStrategy):
"""docstring for ShellSortStrategy"""
def sort(self, my_list = []):
return "Lista ordenada con Shell Sort!"
| [
"anhell.death999@gmail.com"
] | anhell.death999@gmail.com |
9370579be77282af8b2b53e2f4fac9a305ab7f6d | 825c73b9a0db8f65d948a127bd8ed772192f42a3 | /tsai/models/RNN.py | 138e27f0cfda1214a4fe9ca97f9c829c59e52f4c | [
"Apache-2.0"
] | permissive | avimec13/tsai | d9dd5b7529554f238984ac82ab74cc41cc419b83 | 8ffa0afbcac6f886c3cb8310fa60d636becb1799 | refs/heads/main | 2023-06-15T16:34:44.215741 | 2021-07-17T19:34:32 | 2021-07-17T19:34:32 | 388,736,804 | 1 | 0 | Apache-2.0 | 2021-07-23T08:47:26 | 2021-07-23T08:47:26 | null | UTF-8 | Python | false | false | 1,203 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/105_models.RNN.ipynb (unless otherwise specified).
__all__ = ['RNN', 'LSTM', 'GRU']
# Cell
from ..imports import *
from .layers import *
# Cell
class _RNN_Base(Module):
def __init__(self, c_in, c_out, hidden_size=100, n_layers=1, bias=True, rnn_dropout=0, bidirecti... | [
"“oguiza@gmail.com”"
] | “oguiza@gmail.com” |
8eecc943b82223f0ac6ee54536b2991412a8e8e1 | af2e728ecbec0c55b183dbbfc9ee58f0da7ae1a5 | /django/contrib/contenttypes/migrations/0002_remove_content_type_name.py | 1b91437dbc5b33a0bc3cc8ac834231ca7fcea139 | [
"BSD-3-Clause"
] | permissive | mdiener21/django | 797f366d506a590e4d9dd52d20bfa12436b0c183 | c62791bfe4e9e18304bb125e5619c34d8afeb19f | refs/heads/master | 2021-01-22T13:02:52.947589 | 2015-01-23T10:13:27 | 2015-01-23T10:13:27 | 29,727,259 | 1 | 0 | null | 2015-01-23T10:06:18 | 2015-01-23T10:06:18 | null | UTF-8 | Python | false | false | 1,107 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def add_legacy_name(apps, schema_editor):
ContentType = apps.get_model('contenttypes', 'ContentType')
for ct in ContentType.objects.all():
try:
ct.name = apps.get_model(ct.app_label, c... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
cce788f7d4808adac6a84342dfe4fc04fb0035c7 | 5e27c7f5426c169fd348b26e94b65c35f9cdc459 | /tutorial/canvas/start3/workers/coloredtextbox_panda.py | c908c7a9b44518334e0eeb4234d8fe945f96a599 | [
"BSD-2-Clause"
] | permissive | agoose77/hivesystem | e2c9c27408233b5794151ca74f541d2e6063d58a | e1f55c5ea530a989477edb896dcd89f3926a31b8 | refs/heads/master | 2020-07-21T23:07:37.178856 | 2014-08-23T02:13:19 | 2014-08-23T02:13:19 | 20,776,359 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | # try to import Panda3D, but delay exceptions until the class is actually used
try:
from panda3d.core import NodePath, TextNode
import panda3d
except ImportError:
panda3d = None
#coloredtextbox class: this will be converted to a canvas drone using "build_canvasdrone"
class coloredtextbox(object):
#... | [
"goosey15@gmail.com"
] | goosey15@gmail.com |
52a3f85e87f9b45fb9ac69bf0e8ce6265b792311 | 933376c11498a6567da8d7eb7d2675100895c3ba | /pyzoo/zoo/tfpark/text/estimator/bert_classifier.py | 1e804709fef7c112b4e4207be94bb878986e0527 | [
"Apache-2.0"
] | permissive | intel-analytics/analytics-zoo | 320a461765f86d41dd456b598b1cf1d51d57f4c4 | 7cc3e2849057d6429d03b1af0db13caae57960a5 | refs/heads/master | 2023-08-13T20:47:58.621714 | 2023-07-06T00:49:11 | 2023-07-06T00:49:11 | 90,328,920 | 3,104 | 996 | Apache-2.0 | 2023-09-06T01:51:18 | 2017-05-05T02:27:30 | Jupyter Notebook | UTF-8 | Python | false | false | 4,312 | py | #
# Copyright 2018 Analytics Zoo 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 applicable law or agreed to... | [
"noreply@github.com"
] | intel-analytics.noreply@github.com |
73f56c7dd6bb05eaef9d510dce43223ccdce3a6e | 25a362a695a33a2c5766d56974a541888ac6a783 | /permeability/scripts/Analyze.py | b73d1fc9de7acd6904114fd27edc501922c0ece7 | [
"MIT"
] | permissive | ahy3nz/permeability | 86f5137c73cc8df8755e4c560f297df6051e5b3a | 809b92f15c0a8edb775f95910511079429c5e741 | refs/heads/master | 2020-12-14T08:48:00.434712 | 2018-02-27T22:53:25 | 2018-02-27T22:53:25 | 95,495,251 | 0 | 0 | null | 2018-02-15T23:04:51 | 2017-06-26T22:35:52 | Python | UTF-8 | Python | false | false | 3,292 | py | import os
import permeability as prm
import matplotlib.pyplot as plt
import pickle as pickle
from os import system
import pdb
import numpy as np
import mdtraj as mdt
#data_dir = '/Users/rmhartkamp/Dropbox/PostDoc_2_Vanderbilt/Simulation/Permeability/DSPC_C12OH_3_1'
#data_dir = '/raid6/homes/ahy3nz/Trajectories/Data/1... | [
"alexander.h.yang@vanderbilt.edu"
] | alexander.h.yang@vanderbilt.edu |
6aaba650193d59b002abe106baec671a25cc7974 | 99f43f4591f63d0c57cd07f07af28c0b554b8e90 | /python/beckjun/백준_2169_로봇 조종하기_백트래킹.py | 566123bd84b9a58d89a268e73e253affbd74684f | [] | no_license | SINHOLEE/Algorithm | 049fa139f89234dd626348c753d97484fab811a7 | 5f39d45e215c079862871636d8e0306d6c304f7e | refs/heads/master | 2023-04-13T18:55:11.499413 | 2023-04-10T06:21:29 | 2023-04-10T06:21:29 | 199,813,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from collections import deque
n, m = map(int, input().split())
mat = [list(map(int, input().split())) for _ in range(n)]
di = (0,0,1)
dj = (1,-1,0)
dp = [[[-1000000001] * 3 for _ in range(m)] for _ in range(n)]
q = deque([(mat[0][0], 0, 0, 0)])
dp[0][0][0] = max(dp[0][0][0], mat[0][0])
c = 0
while q:
cnt, x, y, ... | [
"dltlsgh5@naver.com"
] | dltlsgh5@naver.com |
fb05e50ae82b67f2faf5468a91a946c9c47ed1ab | 193b261c4e5a893a5798ade17dea172af0be8dd4 | /tools/code_coverage/package/tool/parser/llvm_coverage_segment.py | 17d7c18975ff94a6a24b56b5638cfea90b9a0633 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | ahirner/pytorch | 616291823ddab5def3d35d5bd5693d62789bd710 | fb620a27d08fc5ad00b386505e23e2a51f02366b | refs/heads/master | 2021-07-25T14:19:44.053789 | 2021-06-10T19:25:58 | 2021-06-10T19:29:57 | 153,104,181 | 1 | 2 | NOASSERTION | 2021-06-12T06:35:46 | 2018-10-15T11:51:36 | C++ | UTF-8 | Python | false | false | 1,975 | py | from typing import List, NamedTuple, Optional, Tuple
class LlvmCoverageSegment(NamedTuple):
line: int
col: int
segment_count: int
has_count: int
is_region_entry: int
is_gap_entry: Optional[int]
@property
def has_coverage(self) -> bool:
return self.segment_count > 0
@prope... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
16f59fda29cf8113314e0316016f0a0ce62a268b | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4042/149004042.py | a1fcdf274ced8b3da938a656143708a70d73b544 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,788 | py | from bots.botsconfig import *
from records004042 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'NT',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 99999},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
8b15c70ba21396494d75e7deb3f8b022da626582 | 1403d8670aa2e3ad6b72524688ca6318a84cd1f2 | /Chapter 12/nest_egg_mcs_1st_5yrs.py | a61e2eff6343367a5e2e3d49f1a142488cc3f307 | [] | no_license | afettouhi/ImpracticalPythonProjects-py38 | 033037a9b9b4af1401b968fa6f51fa0adde8be3f | 074b9f8b77d72cac2bb33f57a918c509a4f0ef17 | refs/heads/master | 2023-01-07T08:05:42.849002 | 2020-11-02T06:12:58 | 2020-11-02T06:12:58 | 304,799,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,641 | py | """
Retirement nest egg calculator using Monte Carlo simulation.
"""
import sys
import random
import matplotlib.pyplot as plt
def read_to_list(file_name):
"""
Open a file of data in percent, convert to decimal & return a list.
"""
with open(file_name) as in_file:
lines = [float(line.strip()) f... | [
"A.Fettouhi@gmail.com"
] | A.Fettouhi@gmail.com |
25f0f93e00812237893b74b780d979cce30a1d81 | 5a1eea357eb4fc0c5a1d1478e69ff7779b8a686a | /test/view_helpers/test_Maps_Views.py | 34f1185e2d51515ee91331a2041ac2d85e7a2bc9 | [
"Apache-2.0"
] | permissive | dariovillalon/OSBot-browser | 77059951bb0d2bc6bae13559e17fc84f5268d837 | bcb7e9f4b8c6980afb32d9ba1299c20fc744bf9d | refs/heads/master | 2021-05-18T20:05:01.597025 | 2020-03-29T23:17:27 | 2020-03-29T23:17:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | from unittest import TestCase
from osbot_aws.apis.Lambda import Lambda
from pbx_gs_python_utils.utils.Dev import Dev
from osbot_browser.browser.Browser_Lamdba_Helper import Browser_Lamdba_Helper
from osbot_browser.view_helpers.Maps_Views import Maps_Views
from gw_bot.Deploy import Deploy
class Test_Maps_Views(TestC... | [
"dinis.cruz@owasp.org"
] | dinis.cruz@owasp.org |
e6f1611a6eb8c993d49fa2bcc2526dd8bfc0c6dc | 6d4e31ef0e828db01775dbb22a43b11680f86059 | /mysql_proto/plugins/plugin.py | ba82307a5223e7938bcaaa46ecdaa8922781fd69 | [
"MIT"
] | permissive | alvinzane/PyMP | a81a1e07a962604f96d5c68ef89cbf9947cbbccf | cfe426dbca4afae95714d6026903d2678a46ddc4 | refs/heads/master | 2020-04-07T20:12:49.004874 | 2019-01-05T15:18:43 | 2019-01-05T15:18:43 | 158,679,588 | 0 | 0 | null | 2018-11-22T10:08:29 | 2018-11-22T10:08:29 | null | UTF-8 | Python | false | false | 996 | py | # coding=utf-8
class Plugin(object):
def init(self, context):
raise NotImplementedError()
def read_handshake(self, context):
raise NotImplementedError()
def send_handshake(self, context):
raise NotImplementedError()
def read_auth(self, context):
raise NotImplemented... | [
"kormoc@gmail.com"
] | kormoc@gmail.com |
594a901265ccc41397cbed360de2d2e85a9e531b | 91da8a59561d6f2c7852c0548298434e0ede2ac7 | /Tree/Construct_Binary_Tree_from_Preorder_and_Postorder_Traversal.py | 2c68547cd8733c752bd84ee60f23b160ede1ed3f | [] | no_license | prashant97sikarwar/leetcode | 6d3828772cc426ccf53dad07edb1efbc2f1e1ded | e76054e27a5d4493bd1bcef2ebdeb21d257afb63 | refs/heads/master | 2023-08-23T05:06:23.181869 | 2021-10-28T18:19:10 | 2021-10-28T18:19:10 | 286,057,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #Problem Link :- https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/
"""Return any binary tree that matches the given preorder and postorder traversals.
Values in the traversals pre and post are distinct positive integers."""
# Definition for a binary tree node.
class TreeNode:
... | [
"prashant97sikarwar@gmail.com"
] | prashant97sikarwar@gmail.com |
8ede1ff4e6d2f58b5266da7f5c33d2592bcb46ca | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=29/params.py | 8755b15b27c0b917e2860a10c7ce53504eaaa02b | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.547667',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 29,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
391dd31b81e74cd0e0f234e71ed4001eaee94ad6 | 0478abafc05f1dd55ddf6054d95fef73e9fa03e9 | /quati/features.py | 30821e305cafde7bfdb2a894b5c9975c70a85fb5 | [
"MIT"
] | permissive | deep-spin/quati | 89bce0868b36b0d7902659507b72acfbd01ada98 | 62a6769475090182fe2990b2864d66f8e2081a32 | refs/heads/master | 2023-03-12T09:22:31.520259 | 2021-03-02T15:13:22 | 2021-03-02T15:13:22 | 330,678,540 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | """Useful for sequence tagging tasks like POS or NER."""
from quati import opts
from quati.dataset.fields.affixes import AffixesField
from quati.dataset.fields.caps import CapsField
def build(options):
prefixes_field = AffixesField()
suffixes_field = AffixesField()
caps_field = CapsField()
fields_tup... | [
"marcosvtreviso@gmail.com"
] | marcosvtreviso@gmail.com |
80d6da4ad8540d5da3fd49cc9e8e50e91ea0b833 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03673/s956353086.py | bb1c4270936c6d0fa8f2322285846a5e4b4a2c72 | [] | 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 | 493 | py | n = int(input())
a = list(map(int,input().rstrip().split(" ")))
b1 = []
b2 = []
ans = []
if n % 2 == 0:
for i in range(n):
if i % 2 == 0:
b1.append(a[i])
else:
b2.append(a[i])
b2.reverse()
ans = b2 + b1
print(" ".join(str(i) for i in ans))
else:
for i in range... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7a98373803beb4dd79354dd8d95b1d9369c097d6 | 9eec6ca0e14c50298d0ecaa6e2f75b8a7c0f76c4 | /resolwe/flow/migrations/0015_refactor_relations_1.py | 96ddbc7acd5f125e651bdcc17c9c5d09d0c47f30 | [
"Apache-2.0"
] | permissive | mzagmajster/resolwe | 81e65fca94bd14c59b6da718e2f6c4c0b41481b1 | da371a3ec0260a45ccab848704c6a339a0de79cc | refs/heads/master | 2022-02-20T05:23:41.953200 | 2019-08-27T16:36:25 | 2019-08-27T16:36:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-06 02:13
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('flow', '0014_track_resources'),
]
operations = [
... | [
"domen@blenkus.com"
] | domen@blenkus.com |
e9e391dcd37dfd9a072ffaaf80a20be09106b74f | 8578ae5be776b49559fa95ce30f6b45b6a82b73a | /test/functional/feature_filelock.py | c25d6215ebf2c07361b684e43b155e7f75109040 | [
"MIT"
] | permissive | devcoin/core | 3f9f177bd9d5d2cc54ff95a981cfe88671206ae2 | f67e8b058b4316dd491615dc3f8799a45f396f4a | refs/heads/master | 2023-05-25T03:42:03.998451 | 2023-05-24T07:59:22 | 2023-05-24T08:02:14 | 21,529,485 | 16 | 13 | MIT | 2022-01-07T17:04:18 | 2014-07-05T22:42:13 | C | UTF-8 | Python | false | false | 2,539 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2020 The Bitcoin Core and Devcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Check that it's not possible to start a second devcoind instance using the same datadi... | [
"fernando@develcuy.com"
] | fernando@develcuy.com |
e8b4f296e257361089611d6c61f6e971a91144f8 | 4feaf520374804d6f3feebe3700fb448692a44ba | /pullenti/ner/booklink/internal/EpNerBooklinkInternalResourceHelper.py | 903e0b5ab200e9414e8adbf15e7a5c0b1f55b3a4 | [] | no_license | MihaJjDa/APCLtask | f7be3fb6b0f31801196bf779f6a7e62ce245493b | 4745b45e199887d433ab256bb2e2ebf5dbe3f7cd | refs/heads/master | 2020-04-16T17:15:10.846647 | 2020-02-24T16:06:43 | 2020-02-24T16:06:43 | 165,769,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | # Copyright (c) 2013, Pullenti. All rights reserved. Non-Commercial Freeware.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project (www.pullenti.ru).
# See www.pullenti.ru/downloadpage.aspx.
import io
from pullenti.unisharp.Utils import Utils
class EpNerB... | [
"danila.puchkin@mail.ru"
] | danila.puchkin@mail.ru |
89525c39e243900cdcdb007d0a3d31922db4db1d | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_feature_set/feature_set_specification_schema.py | 761c250e8023cf2bbbee0291d9fdcfb5aa45d48e | [
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",
"ODbL-1.0",
"GPL-3.0-only",
"Z... | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 660 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
# pylint: disable=unused-argument,no-self-use
from marshmallow import fields, post_load
from azure.ai.ml._schema.core.schema import Patch... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
d3f2ade7125fbc5347a5c7961cb691e2c8b5d211 | a5826609647289ca4c3406a99114da0abacacc2f | /vycontrol/config/models.py | 010b353f1efba2c54df058bcac17af6d89cad9c8 | [
"MIT"
] | permissive | Akmon47/vycontrol | a18f50dcaeaf350525858b20bd33e4d6ac2ee7a0 | 898c2ec0e5d315f89c37f07e87a6bc1b096b0e8e | refs/heads/master | 2023-03-29T16:42:03.361002 | 2021-04-05T07:38:52 | 2021-04-05T07:38:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django.db import models
from django.contrib.auth.models import Group
class Instance(models.Model):
hostname = models.CharField(max_length=120, primary_key=True)
alias = models.CharField(max_length=30)
port = models.IntegerField()
key = models.CharField(max_length=100)
https = models.BooleanFi... | [
"roberto.berto@gmail.com"
] | roberto.berto@gmail.com |
fe0dca761fc20048bba333252839b707f4c21d9d | 1cf380b819a399c3f58a7ad13f5daeb5659cead3 | /wrf_management/modules/compress_cli.py | ddd637fdc060ad1c63957c75b5fa0d272afc416e | [] | no_license | daliagachc/wrf_management | dd88cf5d6279457f4e2b414acfa0d0cbaaad3873 | 4ee88c668ed0252e68713aa756b74344ecada615 | refs/heads/master | 2021-06-13T09:39:08.477315 | 2021-04-09T14:43:21 | 2021-04-09T14:43:21 | 171,271,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # project name: wrf_management
# created by diego aliaga daliaga_at_chacaltaya.edu.bo
# todo still under construction
import sys
import wrf_management.modules.CompressOut as CO
import os
zip_path = os.path.join(os.path.dirname(sys.argv[1]),'compresser_log_xxx')
input_dic = dict(
source_path = sys.argv[1],
zip_... | [
"diego.aliaga@helsinki.fi"
] | diego.aliaga@helsinki.fi |
dc44b2f609558f860a5b9afec10dfdf9fedc3d50 | 78b7b3e27553ccf0b89c24cbd11662600db26b4c | /ScrapeNASAPicDayWebsite/.history/scraper_20190701160044.py | 59d3cf70adc9b86d844ece27249a8b2220f9b34b | [] | no_license | web3-qa/intermediatePython | 2c23408bd6d6dffc070b92e1155d3c072cfe040c | b4791db2bcb59aaf9c447cf50ffd4d21cacbe16b | refs/heads/master | 2023-02-08T14:18:54.288227 | 2019-07-18T13:31:23 | 2019-07-18T13:31:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | import urllib.request
import urllib.parse import urljoin
from bs4 import BeautifulSoup
baseURL = "http://apod.nasa.gov/apod/archivepix.html"
content = urllib.request.urlopen(baseURL).read()
BeautifulSoup(content, "lxml").findAll("a") | [
"dcolmer@statestreet.com"
] | dcolmer@statestreet.com |
4646d73a7577d2a17ca8a2c885d77ab9eac866e3 | 3670f2ca6f5609e14cce8c31cb1348052d0b6358 | /xacro/geometry_tutorials/turtle_tf2/nodes/dynamic_tf2_broadcaster.py | 19ed163e4729d54006864bd9232a374a93da9573 | [] | no_license | jincheng-ai/ros-melodic-python3-opencv4 | b0f4d3860ab7ae3d683ade8aa03e74341eff7fcf | 47c74188560c2274b8304647722d0c9763299a4b | refs/heads/main | 2023-05-28T17:37:34.345164 | 2021-06-17T09:59:25 | 2021-06-17T09:59:25 | 377,856,153 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code... | [
"shuyuanhao@cetiti.com"
] | shuyuanhao@cetiti.com |
2be0c0e3c831afe398c67d50454cbc3f21f0f197 | 68c4805ad01edd612fa714b1e0d210115e28bb7d | /CoreSource/speechRec.py | 56cbe4229ae9f989177c560c5608cfb22f72d205 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Happy-Egg/redesigned-happiness | ac17a11aecc7459f4ebf0afd7d43de16fb37ae2c | 08b705e3569f3daf31e44254ebd11dd8b4e6fbb3 | refs/heads/master | 2022-12-28T02:40:21.713456 | 2020-03-03T09:04:30 | 2020-03-03T09:04:30 | 204,904,444 | 2 | 1 | Apache-2.0 | 2022-12-08T06:19:04 | 2019-08-28T10:18:05 | Python | UTF-8 | Python | false | false | 561 | py | # coding=<encoding name>
from aip import AipSpeech
# 百度智能云账户参数配置
APP_ID = '17134145'
API_KEY = 'yDTW0ljcQd24ZKyaHYRTDleX'
SECRET_KEY = 'O6de7NZmhxd6KZILjZj2oHoqITdRoHyg'
client = AipSpeech(APP_ID, API_KEY, SECRET_KEY)
# 读取文件
def get_file_content(file_path):
with open(file_path, 'rb') as fp:
return fp.rea... | [
"yangyang4910709@163.com"
] | yangyang4910709@163.com |
b6dfbdbb85b92e08ea92fb40b6b8d4f6337b17e6 | 525c6a69bcf924f0309b69f1d3aff341b06feb8e | /sunyata/layer/recurrent/gru.py | acaaf611f7d5a7031bf259e99180d2c6b3d077f7 | [] | no_license | knighton/sunyata_2017 | ba3af4f17184d92f6277d428a81802ac12ef50a4 | 4e9d8e7d5666d02f9bb0aa9dfbd16b7a8e97c1c8 | refs/heads/master | 2021-09-06T13:19:06.341771 | 2018-02-07T00:28:07 | 2018-02-07T00:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | from ... import backend as Z
from ... import init
from ..base import LinkBuilder
from .base import RecurrentLayer, RecurrentSpec
class GRULayer(RecurrentLayer):
def __init__(self, forward, last, input_kernel, recurrent_kernel, bias):
dim = input_kernel.shape[1] // 3
dtype = input_kernel.dtype.name... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
4a0ccc2edeb0ad94a72db5238966a8e5fe4d0216 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/networks_utils.py | 20c83238fe96135876a0ed78af16ad4cb15c5574 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 1,052 | py | # Copyright 2015 Google Inc. 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 applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
aeccd1e46dde4148b0683a43aaf35d79b4119967 | 5932b41c973fb4f0d61ea2668a3036bd2af31903 | /ue4docker/infrastructure/BuildConfiguration.py | 30d53fc7710820b4646512a3355a42b508a2ec20 | [
"MIT"
] | permissive | hackertron/ue4-docker | d711290fba75cfdf4509762cd301dec7796191f5 | f849ae89f75644c5f34276e8ebe76ef03528029c | refs/heads/master | 2020-04-19T22:51:26.502673 | 2019-01-29T08:48:54 | 2019-01-29T08:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,589 | py | from .PackageUtils import PackageUtils
from .WindowsUtils import WindowsUtils
import humanfriendly, os, platform, random
# Import the `semver` package even when the conflicting `node-semver` package is present
semver = PackageUtils.importFile('semver', os.path.join(PackageUtils.getPackageLocation('semver'), 'semver.py... | [
"adam.rehn@my.jcu.edu.au"
] | adam.rehn@my.jcu.edu.au |
c3503b21d2104e0e4b8f3d87ebe23954c6c35551 | d12cadea9d18ec6599b2ef650ce6af1a0d39afb1 | /Server.py | 5b0908b7852dfeadf2bb64c4853ad4c9596f6219 | [] | no_license | zhantong/wetwo-server | 074facf45695f054855eaff26bd2dc3272a1aba0 | 7271acc9047da65d647a572160683b043b8163a1 | refs/heads/master | 2021-08-27T19:41:40.549066 | 2017-11-28T05:19:50 | 2017-11-28T05:19:50 | 103,080,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,088 | py | from flask import Flask, request, render_template, redirect, jsonify, g
import flask_login
from WeTwo import WeTwo
app = Flask(__name__)
app.secret_key = '\xecG>\xc3\xe6\xe5\xbds\xa5\xf1\xae\x81u\x19\xb0`\x88W\xc6\\\xb7\xfeL\xcc'
login_manager = flask_login.LoginManager()
login_manager.init_app(app)
class User(flas... | [
"zhantong1994@163.com"
] | zhantong1994@163.com |
2f6b30e1b2d944c0354a536d1c08f9eff2fa2e31 | 867846ed1df7f560ccc473413a70020155f66ad4 | /fixMarkdownHeadings.py | 1645916fdfb4c594d76c9f5feaf75e762005a85a | [] | no_license | abhineet123/PTF | 84297bf5aa95320dbc2d34f422f2dd563ff65a58 | 0c63f7f8251af0d70c329b2cef53694db76c1656 | refs/heads/master | 2023-08-18T18:34:40.513936 | 2023-08-09T17:28:51 | 2023-08-09T17:28:51 | 157,794,848 | 5 | 1 | null | 2021-05-16T18:48:32 | 2018-11-16T01:24:05 | MATLAB | UTF-8 | Python | false | false | 2,487 | py | import pyperclip
from Tkinter import Tk
from anytree import Node, RenderTree
def findChildren(_headings, root_level, _start_id, _root_node, n_headings):
nodes = []
_id = _start_id
while _id < n_headings:
_heading, line_id = _headings[_id]
words = _heading.split(' ')
curr_level = wo... | [
"asingh1@ualberta.ca"
] | asingh1@ualberta.ca |
271a78833a1218dfa0f8b72a67a4f57a00c22f77 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /pa65DgwG5HMbtf6iY_17.py | 75b738a5317af85ec0083358898136fca0256512 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py |
class player():
def __init__(self, name, age, height, weight):
self.name = name
self.age = age
self.height = height
self.weight = weight
def get_age(self):
return self.name + " is age " + str(self.age)
def get_height(self):
return self.name + " is " + str(self.height) + "cm... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f92344a7b55176c215b569cd01d99ec9c4fd8ee9 | 4c7baee40b96e6499f96d6fe81935437264c9c88 | /stock_scraper/Indicators/RSI.py | d153d32174cf5e1a805325812081c1df70ba9210 | [
"MIT"
] | permissive | webclinic017/Stock-Analysis | 083d376484adebcad2d52113749a513aa48b09a8 | eea8cb5bcb635f12eb15ac13306ef16e2892cd92 | refs/heads/master | 2022-04-13T00:20:54.287730 | 2020-03-29T21:05:22 | 2020-03-29T21:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | import sys
from os import path
sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) )
import pandas as pd
class kRSI():
def __init__(self):
#do nothing
print "In kRSI class"
def CalculateRSI(self, avgGain, avgLoss):
if avgLoss == 0:
return 100
r... | [
"singhanurag50@gmail.com"
] | singhanurag50@gmail.com |
2d46b4f1438042afecc40c4acf20344806223487 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_Class245.py | b531b8a8a74a4a467b8ee86bca4983619acd57d1 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,321 | py | # qubit number=3
# total number=46
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
0c5ab6e315afa21be876ef1a62aeaa6b3aaaff97 | 379a473d6f572b7fb0c00ffa3387931a6bebb082 | /Chapter9/plot_confusion_matrix.py | 061034801b4a3a58edac77979b4adc9847936748 | [] | no_license | Willianan/Data_Analysis_and_Mining | 6746f75dcade79f9134574d5962ec5bc19da51de | 8c526e5d12a535fde1b8b5c84b21007289b8eb20 | refs/heads/master | 2020-04-28T15:26:58.227850 | 2019-04-07T13:51:41 | 2019-04-07T13:51:41 | 175,367,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | import matplotlib.pyplot as plt
import numpy as np
import itertools
def plot_confusion_matrix(cm, classes,
normalize=False,
title='Confusion matrix',
cmap=plt.cm.Blues):
"""
This function prints and plots the confusion matrix.... | [
"noreply@github.com"
] | Willianan.noreply@github.com |
4decd0022d8b9f5903a2348dd6c8ca81a7787360 | d25c89a54ad980c68bc8d247eb43f88499617dda | /src/ocr_line_curation_chars.py | 1dda0fa5a2a17ad15a2000d2ca7bd195293a99de | [] | no_license | nakamura196/amami | 5922e396b89850d18660e465d8e6af498b28b967 | 19bdc712bb24ab325806c3cb2bb4666d16182768 | refs/heads/master | 2023-01-07T05:29:19.145424 | 2020-11-06T04:31:16 | 2020-11-06T04:31:16 | 286,902,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | from PIL import Image
import sys
sys.path.append('/path/to/dir')
import json
import pyocr
import pyocr.builders
tools = pyocr.get_available_tools()
if len(tools) == 0:
print("No OCR tool found")
sys.exit(1)
tool = tools[0]
print("Will use tool '%s'" % (tool.get_name()))
langs = tool.get_available_languages()
... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
9013611ed7ed83fb4065f9d6e3bb601c6efacc71 | 9f84d91a8ae3df53b07fe3267992fba00a99ac9e | /torch_geometric/graphgym/contrib/__init__.py | 47365d98aadd0b304b67af8266d8e4228eb52f85 | [
"MIT"
] | permissive | pyg-team/pytorch_geometric | ebea601eae228f3905465b5c2349d3fb3bb5cb26 | a52af694b8ce6a80811e20966fe6d08a3e7511fe | refs/heads/master | 2023-08-31T04:13:40.943308 | 2023-08-30T12:48:42 | 2023-08-30T12:48:42 | 106,024,057 | 6,775 | 1,563 | MIT | 2023-09-14T17:10:18 | 2017-10-06T16:03:03 | Python | UTF-8 | Python | false | false | 389 | py | from .act import * # noqa
from .config import * # noqa
from .encoder import * # noqa
from .head import * # noqa
from .layer import * # noqa
from .loader import * # noqa
from .loss import * # noqa
from .network import * # noqa
from .optimizer import * # noqa
from .pooling import * # noqa
from .stage import * ... | [
"noreply@github.com"
] | pyg-team.noreply@github.com |
0ce6670c9e67f8a7231b9c6d03cec2f066c58ab0 | 376c8f2c9051b8dffe851fab7c831f96dcf06ddb | /dp/1965_상자넣기.py | e430c04d04043fdf653ac4dee4d15404c6d63625 | [] | no_license | getChan/algorithm | cad3ac74ac686ec4306ad8db551700d35e27a782 | 6a82c04cdbf670e3140b1a8685480a3f37c82c62 | refs/heads/master | 2021-06-30T01:08:42.270514 | 2020-09-19T07:55:45 | 2020-09-19T07:55:45 | 140,247,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | n = int(input())
boxes = [int(_) for _ in input().split()]
dp = [1 for _ in range(n)]
# 최장증가수열 문제
# dp[i] : i에서 끝나는 최장증가수열
answer = 1
for i in range(0, n):
for j in range(0, i):
if boxes[i] > boxes[j] and dp[i] < dp[j]+1:
dp[i] = dp[j] + 1
if dp[i] > answer:
answer = dp[i]
print(answ... | [
"9511chn@gmail.com"
] | 9511chn@gmail.com |
1a0fbf08f1e836f3287ff05cb95026d3db0e9c4d | 071ca9494ce811cdf52dc585ec863dc621a7865b | /test_coroutines.py | c82bc510a64e9c940b63bebf76764d13498b1922 | [] | no_license | phaustin/parallel_project | 37d7ea7dbc6de8406d50e47142b271e05c1552eb | 821cca5ad7dcf5c3b6caa2ca3f20358b86120d06 | refs/heads/master | 2021-08-22T08:18:01.675473 | 2017-11-29T17:56:57 | 2017-11-29T17:56:57 | 112,510,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | #http://blog.thumbtack.net/python-coroutines/
def coroutine(f):
def wrapper(*arg, **kw):
c = f(*arg, **kw)
c.send(None)
return c
return wrapper
@coroutine
def logger(prefix="", next=None):
while True:
message = yield
print("{0}: {1}".format(prefix, message))
... | [
"paustin@eos.ubc.ca"
] | paustin@eos.ubc.ca |
957b52ebdc5a273f9ccdd5b16a60f4b0053ff1bd | 2a4be1e256ed19c8dd5d37cb3cfbe7f50bb4f8f6 | /Landing/wsgi.py | 7a21379d42a306591ffa506ec52344f303075fa1 | [] | no_license | Miker69/Landing_telebot | 55c3b34aac3db5753203260421ae7f2584160122 | f32538d563c74108053418b177340b634f26c5f3 | refs/heads/master | 2023-04-04T03:48:58.941446 | 2021-04-13T15:37:36 | 2021-04-13T15:37:36 | 357,578,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for Landing project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
1a7fafcd552464eccc415a7cd7f6c13f568bd217 | c2c03e034513a766c7de8298be428fb3eab3ab7b | /chainerrl/NeverSay20/env/bin/wheel | 6aec0ddb9ff1fc7d022b5e8ab8645344758aa131 | [] | no_license | hamko/sample | 434adeca12e11587edce8cad799162b84c7f5071 | 9b0624b99e3e551d6b72b632d3a7d1a38aac7a9f | refs/heads/master | 2021-01-17T02:51:25.174354 | 2018-10-23T02:40:04 | 2018-10-23T02:40:04 | 9,640,383 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/home/hamko/git/sample/chainerrl/TicTacToe/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"wakataberyo@gmail.com"
] | wakataberyo@gmail.com | |
f8022236e53f1c2f42d0dfc05b69d592acb001a4 | 0d0c13d80924b6e5cfc74a623eb250a5fd2e2cca | /Stacks/sliding window maximum.py | b848b90e9f5e374590087d07587cd492462bd090 | [
"Apache-2.0"
] | permissive | Akashdeep-Patra/problemSolving | 54e2fc3c3a9587b8c976921f6fc45364af1dfcac | c278e5d090af7370e56789e68b7bb73dc37165f8 | refs/heads/master | 2022-11-15T19:20:54.585886 | 2020-06-29T10:47:39 | 2020-06-29T10:47:39 | 258,956,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | from collections import deque
class Solution:
# @param A : tuple of integers
# @param B : integer
# @return a list of integers
def slidingMaximum(self, a, k):
q=deque()
for i in range(k):
if(len(q)==0 or a[q[-1]]>=a[i]):
q.append(i)
else:
while(len(q)!=0 and a[q... | [
"replituser@example.com"
] | replituser@example.com |
779a04c19db092d2dee3ac7a2cee5ec9378b58bc | da47e42519b6d5eb37bdb634fd618672706e79da | /localizacion_metromed/Txt_file_module/models/txt_activo.py | d825bda0ddc8ed2165a4344dd28d866ff52ec13b | [] | no_license | Tysamncaweb/produccion2 | 02bbbccefc4f4cd0d0948b1b0552d931f804fb9b | b95909d0689fc787185290565f0873040a6027cf | refs/heads/master | 2022-04-26T13:51:22.316294 | 2020-04-29T19:58:35 | 2020-04-29T19:58:35 | 260,013,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,580 | py | # -*- coding: utf-8 -*-
# Part of BrowseInfo. See LICENSE file for full copyright and licensing details.
from datetime import datetime, timedelta
from odoo import models, api, fields
from logging import getLogger
_logger = getLogger(__name__)
class bono(models.TransientModel):
_inherit = "account.wizard.generaci... | [
"soporte.innova2129@gmail.com"
] | soporte.innova2129@gmail.com |
d4156f6b387f2c2bbfab43d6331fe0e83479c75c | d2332604fc80b6d622a263b2af644425a7e703de | /facebook/trees_and_graphs/12_accounts_merge.py | 9d2fd775ac9e45fdb77ea0793a06731010f2ed00 | [] | no_license | abhijitdey/coding-practice | b3b83a237c1930266768ce38500d6812fc31c529 | 6ae2a565042bf1d6633cd98ed774e4a77f492cc8 | refs/heads/main | 2023-08-14T23:31:06.090613 | 2021-10-18T21:35:56 | 2021-10-18T21:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | from typing import List
"""
1. First, create a graph (adjacency list) connecting all emails that are related to the same account
2. Second, keep track of the account name for each unique email
3. Find connected components in the graph:
a. Each connected component refers to the same account.
b. So, all unique ... | [
"ashiz2013@gmail.com"
] | ashiz2013@gmail.com |
8556153eee128df8d4a4b2c68b116c9fc5edad6e | 67416177cd9e221db0b20332c02dcc7680fcdd0e | /이것이 취업을 위한 코딩 테스트다/Chapter05_DFS_BFS/Q04_S.py | 0e89d038a59dde7bce9a39cb6bf567d78488ff5a | [] | no_license | svclaw2000/Algorithm | 4fe5e3bf50888b974df4f3d87387a003b5249352 | b6d92cf0d18997e9e973d5f731ecb44a7935d93a | refs/heads/main | 2023-06-21T21:50:13.089719 | 2021-07-11T14:18:47 | 2021-07-11T14:18:47 | 363,825,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | from collections import deque
N, M = map(int, input().split())
maze = [list(map(int, input())) for _ in range(N)]
ds = ((-1, 0), (0, 1), (1, 0), (0, -1))
def dfs(x, y):
queue = deque()
queue.append((x, y))
while queue:
x, y = queue.popleft()
for dx, dy in ds:
nx, ny = x + dx, ... | [
"svclaw2000@gmail.com"
] | svclaw2000@gmail.com |
4ce810b7a98c0b77591ee5e277abc2db6860b0c2 | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/profiler/profiler_v2_test.py | 42fbeba1e98be36f2c2c401a3db60bfbe1f1b5a8 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 4,412 | py | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
2a812d45d9da8870b85821736661cd9b51ad3c61 | c7cebec6209866b02ee654cffeafe0f2cf0646f1 | /implementation/oceangame.py | 8c2fcb4e93ffdc7cf0b2c1af8292a4326c4b7a2d | [] | no_license | dondon17/algorithm | 5492cf039a96ecf5a944816bdca9b5755e5a2623 | da4d6ca1c21c31c6521a62b38855e0b9cf4b0d91 | refs/heads/master | 2023-05-02T14:54:35.185914 | 2021-05-30T07:31:40 | 2021-05-30T07:31:40 | 323,802,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | n, m = map(int, input().split())
x, y, _dir = map(int, input().split())
check = [[0]*m for _ in range(n)] # 0으로 채워진 n * m 행렬 생성
check[x][y] = 1 # 시작 위치 방문 처리
_map = []
for i in range(n):
_map.append(list(map(int, input().split())))
count = 1
turn_time = 0 # 4방이 이미 방문한 곳이거나 바다인 경우를 체크하기 위함
dx = [-1, 0, 1, 0]
dy =... | [
"qwerqw889@ajou.ac.kr"
] | qwerqw889@ajou.ac.kr |
f45b44a0ce075baa3867c855c1d857223d4631c4 | ef4a1748a5bfb5d02f29390d6a66f4a01643401c | /algorithm/algorithm_week/week3/problem_3.py | 1dfac10225edd5d46d7a5f1b0aee2c62ba86901b | [] | no_license | websvey1/TIL | aa86c1b31d3efc177df45503d705b3e58b800f8e | 189e797ba44e2fd22a033d1024633f9e0128d5cf | refs/heads/master | 2023-01-12T10:23:45.677578 | 2019-12-09T07:26:59 | 2019-12-09T07:26:59 | 162,102,142 | 0 | 1 | null | 2022-12-11T16:31:08 | 2018-12-17T08:57:58 | Python | UTF-8 | Python | false | false | 498 | py | import sys
sys.stdin = open("problem_3.txt", "r")
T = int(input())
for tc in range(1, T+1):
comp = input()
total = input()
len_comp = len(comp)
len_total = len(total)
empty_list = [0] * len_comp
result = 0
# print(empty_list)
for i in range(len_comp):
for j in range(len_total):
... | [
"websvey1@gmail.com"
] | websvey1@gmail.com |
d4263f84ee75cfae0c1c0448bd6e638c64abaaec | f68e0b205bd3eb036905c60bd03a8d9c7f3b1d88 | /gluon-tutorials-zh-master/chapter_optimization/adagrad-gluon.py | 9fe3fd6be483681cf7e1719444f2b19373cdcb0f | [
"Apache-2.0"
] | permissive | SleepyBag/TrivialPractice | c31458d0c28afba158cb4090cb7013267ff54bb2 | 8e006fbe1425f62b52b2a5fe5b6404ea1883f3ab | refs/heads/master | 2020-03-22T00:34:37.415074 | 2018-06-30T14:02:04 | 2018-06-30T14:02:04 | 139,253,389 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import mxnet as mx
from mxnet import gluon, nd
from mxnet.gluon import nn
import sys
sys.path.append('..')
import utils
# 生成数据集。
num_inputs = 2
num_examples = 1000
true_w = [2, -3.4]
true_b = 4.2
features = nd.random.normal(scale=1, shape=(num_examples, num_inputs))
labels = true_w[0] * features[:, 0] + true_w[1] * fe... | [
"xueqianming200@gmail.com"
] | xueqianming200@gmail.com |
86fee19decbe6fbd99256621b5d77459a4c80b51 | a6cc157fdd1a15e9d451af653cf3eadbdac60885 | /cpp_develop/catkin_ws/src/ros_arduino_bridge/ros_arduino_python/src/ros_arduino_python/calibrate_linear.py | 3ab1f901ef9a959a737978f37d4c3bb5cebabeba | [] | no_license | miaoruonan/morn | 9b4f0b64241c12140e8adc571579974d9e35a14b | 88e353ce480265b0b0b12f22a67ce13dd2ff42f3 | refs/heads/master | 2021-06-26T05:18:58.321932 | 2021-01-28T07:21:51 | 2021-01-28T07:25:16 | 214,172,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,792 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist, Point
from math import copysign, sqrt, pow
import tf
class CalibrateLinear():
def __init__(self):
#give the node a name
rospy.init_node('calibrate_linear', anonymous=False)
#set rospy to execute a shutdown function wh... | [
"15879209474@163.com"
] | 15879209474@163.com |
7ffae845f088fb2c95c7c37d9f6e0559af611adc | 6d9fbe6e6a2abfd8455e92f6dba67a5f02d87f41 | /lib/phonenumbers/data/region_AC.py | 243d707a8213496a114091c66baa4551350d4629 | [] | no_license | JamesBrace/InfluenceUWebLaunch | 549d0b48ff3259b139cb891a19cb8b5382ffe2c8 | 332d25940e4b1b45a7a2a8200f77c8413543b199 | refs/heads/master | 2021-09-04T04:08:47.594900 | 2018-01-15T16:49:29 | 2018-01-15T16:49:29 | 80,778,825 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | """Auto-generated file, do not edit by hand. AC metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_AC = PhoneMetadata(id='AC', country_code=247, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[46]\\d{4}|[01589]\\d{5}', possible_numb... | [
"james.brace@mail.mcgill.ca"
] | james.brace@mail.mcgill.ca |
9f628a3fcb3ba15724f1abcb004ff2ed34f398a2 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/nonNegativeInteger/Schema+Instance/NISTXML-SV-IV-atomic-nonNegativeInteger-enumeration-3-2.py | b576ac7679de66f6d806e4fa821974abf9447594 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 648 | py | from output.models.nist_data.atomic.non_negative_integer.schema_instance.nistschema_sv_iv_atomic_non_negative_integer_enumeration_3_xsd.nistschema_sv_iv_atomic_non_negative_integer_enumeration_3 import NistschemaSvIvAtomicNonNegativeIntegerEnumeration3
from output.models.nist_data.atomic.non_negative_integer.schema_ins... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
52164c85a80608ac931cec19edf6440abf757d17 | e48a43af1b285f19137cf1c839ea5836312c6793 | /toutiao.py | f330e711018b71ad4b9619c8c133b9cad3456107 | [] | no_license | willfengis/toutiao | 5f933aadebd6a24d5f4a69c162a61efb4dcd68d0 | 10fc31a46368f9cc08e5889f4a644a2e0ffc7028 | refs/heads/master | 2021-01-21T10:47:17.788795 | 2017-08-31T10:09:27 | 2017-08-31T10:09:27 | 101,987,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | import requests
from urllib.parse import urlencode
from requests.exceptions import RequestException
import json
from bs4 import BeautifulSoup
import re
import pymongo
import os
from multiprocessing import Pool
from hashlib import md5
from com.it.ttconfig import *
client = pymongo.MongoClient(MONGO_URL,connect=False)
db... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
651465018b3370f246d12c0b45dead9a006898ac | 5488617b1b05c436b1f8c8642ea75ca754719f8d | /phenomenological/Single_TOP/select_scripts/script/script_1065.py | 07afd7a1b201fed85dd725acf70a9ea4ba7a34d7 | [] | no_license | wenxingfang/TW_Top | fdb1ba136be6ace8fdacaade58cb4ca4fcdc3c9e | 389e76c904d08a59d9141b9b66ec15d2583f8e9a | refs/heads/master | 2021-02-05T06:54:27.908688 | 2020-02-28T13:24:00 | 2020-02-28T13:24:00 | 243,754,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import os
import ROOT
ROOT.gSystem.Load("/user/wenxing/ST_TW_channel/CMSSW_8_0_25/src/Phynomenological_study/Single_TOP/select_scripts/select_save_parton_C.so")
ROOT.gROOT.ProcessLine('select_save_parton("1065")')
print 'Done!' | [
"wenxing.fang@cern.ch"
] | wenxing.fang@cern.ch |
781541a1f0b86a43ce728e170b53055a99749d93 | 12123592a54c4f292ed6a8df4bcc0df33e082206 | /py2/pgms/sec6/flask/db_create.py | 667c9a87acb3e16e1bbb26111a89d32eaae62ba8 | [] | no_license | alvinooo/advpython | b44b7322915f832c8dce72fe63ae6ac7c99ef3d4 | df95e06fd7ba11b0d2329f4b113863a9c866fbae | refs/heads/master | 2021-01-23T01:17:22.487514 | 2017-05-30T17:51:47 | 2017-05-30T17:51:47 | 92,860,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | #!venv/bin/python
# db_create.py - create database
from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
from app import db
import os.path
db.create_all()
if not os.path.exists(SQLALCHEMY_MIGRATE_REPO):
api.create(SQLALCHEMY_MIGRATE_REPO, 'database ... | [
"alvin.heng@teradata.com"
] | alvin.heng@teradata.com |
c384ec15b71a910edb23a3ece597828f1918efc1 | ba80ca143ba35fd481730786a27ebdb1f88ce835 | /algorithm/Daily Coding Problem/전체탐색/5.py | b00f4a6021504dc364e8ea5b32dbdadd7ce6fbe1 | [] | no_license | uiandwe/TIL | c541020b65adc53578aeb1c3ba4c6770b3b2e8b3 | 186544469374dd0279099c6c6aa7555ee23e42fe | refs/heads/master | 2022-02-15T08:33:07.270573 | 2022-01-01T15:22:54 | 2022-01-01T15:22:54 | 63,420,931 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # -*- coding: utf-8 -*-
"""
Given an array of integers where every integer occurs three times except for one integer,
which only occurs once, find and return the non-duplicated integer.
For example, given [6, 1, 3, 3, 3, 6, 6], return 1. Given [13, 19, 13, 13], return 19.
Do this in O(N) time and O(1) space.
"""
de... | [
"noreply@github.com"
] | uiandwe.noreply@github.com |
bcc9c809b5e3b2f36a892d4ae81d9509a2aba905 | 4cbc8b81d197bc392d1b57856254300331b9738f | /python/voz.py | 9a63b10843050891efa76b73fcb08d8c72ccf6b6 | [
"MIT"
] | permissive | vcatafesta/chili | 87b9606f17cda645ba44cbf2bb4cc4637e18d211 | 5c734ac88454db76eb2f4e92c13364a5bbc7a93a | refs/heads/main | 2023-09-01T01:39:09.457448 | 2023-08-29T21:23:28 | 2023-08-29T21:23:28 | 171,972,556 | 2 | 2 | null | 2019-02-22T01:38:49 | 2019-02-22T01:26:46 | null | UTF-8 | Python | false | false | 260 | py | # coding: cp860
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as s:
r.adjust_for_ambient_noise(s)
while True:
audio = r.listen(s)
print("Voce respondeu:", r.recognize_google(audio, language = 'pt'))
| [
"vcatafesta@gmail.com"
] | vcatafesta@gmail.com |
00fc5380aacd4b854d68cc5cd1802c1879b9e2e4 | 260306e56beaaa5ecad8f783d094ecbabef4705b | /blog.py | 3bfbbfd1ea4129429f2520d6cd12680037202c45 | [] | no_license | xxnbyy/mytools | dd5f09033b2b794b3e56bf16b9d4f28fe1377503 | 88d99614f09dd7a96f787236d0bbf674dfc5fcf2 | refs/heads/master | 2021-04-29T10:13:07.230358 | 2016-12-29T13:16:56 | 2016-12-29T13:16:56 | 77,874,884 | 0 | 1 | null | 2017-01-03T01:49:32 | 2017-01-03T01:49:32 | null | UTF-8 | Python | false | false | 899 | py | #############################################################
###
### _|_|_| _| _| _| _|
### _| _| _| _|_|_| _|_| _| _| _|_|_|_|
### _|_| _|_| _| _| _| _| _| _| _|
### ... | [
"quanyechavshuo@gmail.com"
] | quanyechavshuo@gmail.com |
7428a6f9ed8f18d1d5b40f66c207c09dbccfea2e | 58ee1dc37b57e0b4f06cf383c6a9e0654f490150 | /python-zict/lilac.py | 74172c63bc984bdbddbadf099461698472befd29 | [] | no_license | MikeyBaldinger/arch4edu | f3af87ef3a8d4cd78fde7e0ef75658c17dbe8c06 | c1775bf7fe0ffc87f3c8b4109fb1e8acde12a430 | refs/heads/master | 2022-12-23T16:40:55.513537 | 2020-09-28T21:00:59 | 2020-09-28T21:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | #!/usr/bin/env python3
from lilaclib import *
maintainers = [{'github': 'petronny', 'email': 'Jingbei Li <i@jingbei.li>'}]
update_on = [{'aur': None}, {'alias': 'python'}]
build_prefix = 'extra-x86_64'
repo_depends = ['python-heapdict']
pre_build = aur_pre_build
post_build = aur_post_build
if __name__ == '__main__':
... | [
"i@jingbei.li"
] | i@jingbei.li |
5cf4e3cccdec114e403ab352d32e8640f5a6250b | b99bbc50ab1d039948ccf853963ae044a97498fb | /src/api/symbols/views/__init__.py | 9f0254365c9be66a905516f608870a81172d33c2 | [] | no_license | fan1018wen/Alpha | 26899cc0eb6761bf6bd8089e7d12716c9e7ae01e | c50def8cde58fd4663032b860eb058302cbac6da | refs/heads/master | 2021-05-12T12:54:15.747220 | 2017-10-11T10:58:51 | 2017-10-11T10:58:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,736 | py | from django.core.paginator import Paginator
from django.db.models import Q
from rest_framework.views import APIView
from common.models import BackstageHTTPResponse
from common.utils import log_exception
from symbols.filters import SymbolFilter
from symbols.models import Symbol
from symbols.serializers import SymbolSer... | [
"mengqiang@1b2b.cn"
] | mengqiang@1b2b.cn |
9ae6c6e071cb9074c94b0058901696c52d416298 | a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c | /notebook/union_find_basic_usage.py | 01c45b5560292afba9712dec8f754ebe83733393 | [
"MIT"
] | permissive | nkmk/python-snippets | a6c66bdf999502e52f4795a3074ced63bf440817 | f9dd286a9cf93f474e20371f8fffc4732cb3c4d5 | refs/heads/master | 2023-08-03T04:20:05.606293 | 2023-07-26T13:21:11 | 2023-07-26T13:21:11 | 98,900,570 | 253 | 77 | MIT | 2020-10-25T01:12:53 | 2017-07-31T14:54:47 | Jupyter Notebook | UTF-8 | Python | false | false | 1,721 | py | from union_find_basic import UnionFindBasic, UnionFindPathCompression, UnionFindByRank, UnionFindBySize, UnionFind
ufb = UnionFindBasic(5)
print(ufb.parents)
# [0, 1, 2, 3, 4]
ufb.union(3, 4)
print(ufb.parents)
ufb.union(2, 3)
print(ufb.parents)
ufb.union(1, 2)
print(ufb.parents)
ufb.union(0, 4)
print(ufb.parents)
# ... | [
"nkmk.on@gmail.com"
] | nkmk.on@gmail.com |
5be778cd62c0fc4fb164b11572b2864f06dd6ffe | 4a0f8c5c0e8324fa614da776f2a704b5c369ccbb | /topologyTest/GetDDIs_150_250Examples_WithDifferentDomainNames.py | cafde521581bfddd4fd57d7b907fcb2ae3e1149d | [] | no_license | magic2du/contact_matrix | 9f8ae868d71e7e5c8088bf22a9407ea3eb073be6 | 957e2ead76fabc0299e36c1435162edd574f4fd5 | refs/heads/master | 2021-01-18T21:15:07.341341 | 2015-09-16T02:14:53 | 2015-09-16T02:14:53 | 24,237,641 | 0 | 0 | null | 2015-09-10T19:58:24 | 2014-09-19T16:48:37 | null | UTF-8 | Python | false | false | 1,903 | py | import _mysql
from dealFile import *
#Get of Domains which has more than 2 interfaces have 16-20 examples
db=_mysql.connect(host="localhost",user="root",passwd="zxcv4321",db="DDI")
#db.query("""select COUNT(*) from PPI inner join example on (ID = PPI_ID) where domain1="ACT" and domain2="ACT" and topology_1 = 6 and topo... | [
"magic2du@gmail.com"
] | magic2du@gmail.com |
b5ab5cda1555793b46c2e5542858767a98e8ef6e | 658e2e3cb8a4d5343a125f7deed19c9ebf06fa68 | /course_DE/udacity-data-engineering-projects-master/Project 5 - Data Pipelines with Airflow/exercises/dags/3_ex3_subdags/dag.py | bc6617c67ca71e8cfaa562b89339fc7fdf1fc524 | [] | no_license | yennanliu/analysis | 3f0018809cdc2403f4fbfe4b245df1ad73fa08a5 | 643ad3fed41961cddd006fadceb0e927f1db1f23 | refs/heads/master | 2021-01-23T21:48:58.572269 | 2020-10-13T22:47:12 | 2020-10-13T22:47:12 | 57,648,676 | 11 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | # Instructions
# In this exercise, we’ll place our S3 to RedShift Copy operations into a SubDag.
# 1 - Consolidate HasRowsOperator into the SubDag
# 2 - Reorder the tasks to take advantage of the SubDag Operators
import datetime
from airflow import DAG
from airflow.operators.postgres_operator import PostgresOperator
... | [
"f339339@gmail.com"
] | f339339@gmail.com |
a0fcd76bb531bd1b8db92bfd0f143b1ac789e17f | f983d2fc949bc0de944755a19e57e5d15466dd98 | /homeads/mails.py | a837ea5fa7f51062eae6d086a491ffecd86079ce | [] | no_license | wd5/localized_classified_ads | 2c523a58372a3963d15f01e52709e1923df20ca7 | 49414088a8ba7f09da35f005b15652efd2bcdb18 | refs/heads/master | 2020-12-25T15:30:40.113192 | 2012-11-01T15:29:02 | 2012-11-01T15:29:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,646 | py | #-*- coding: utf-8 -*-
from django.contrib.sites.models import Site
from utils.mails import AdEmailMultiAlternatives
class HomeEmail(AdEmailMultiAlternatives):
"""
Class used to send multi alternavies email (text + html)
for AcheterSansCom and LouerSansCom
"""
def get_default_context(self):
... | [
"samuel.goldszmidt@gmail.com"
] | samuel.goldszmidt@gmail.com |
2d91f87c27aff3220f48df0e44ec5d65370af653 | c831e7f6c434900d817f59a11b25e78a1a5090ad | /Calibration/CalibConfigFiles/MuonCalibration/CalibConfig_DetModel89_RecoStage38.py | 4f213b2a710dcce9269a2f654daa625b68761bfc | [] | no_license | StevenGreen1/OptimisationStudies | 8cca03f57d2cbf81e5fb609f13e2fa4b9c9880f6 | c5741e8d2fab4752ceca8b10cc5f2bbc1a7fafa9 | refs/heads/master | 2021-01-18T21:30:51.418785 | 2017-02-21T16:27:50 | 2017-02-21T16:27:50 | 44,306,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | # Digitisation Constants - ECal
CalibrECal = 42.121331495
# Digitisation Constants ILDCaloDigi - HCal
CalibrHCalBarrel = 47.5716455642... | [
"sg1sg2sg3@hotmail.co.uk"
] | sg1sg2sg3@hotmail.co.uk |
836dfafcfdee968679acbc1cd37e6add131774e2 | 994a82e4d859e605cf67736446aadcaf3cca2ec8 | /examples/query_horizon.py | f5d72107849b8b207524dd159b162cfb44653d09 | [
"Apache-2.0"
] | permissive | kingdavid6336/py-stellar-base | fe7a5af576b7f03f7d36badca6a540232719e7cc | 5e22370113e81eca1096ae62d58a5e663ffebca7 | refs/heads/master | 2021-12-18T14:20:01.146139 | 2020-06-21T07:55:59 | 2020-06-21T07:58:57 | 231,694,118 | 1 | 0 | Apache-2.0 | 2020-06-21T12:04:49 | 2020-01-04T01:52:57 | Python | UTF-8 | Python | false | false | 464 | py | from stellar_sdk import Server
server = Server(horizon_url="https://horizon-testnet.stellar.org")
# get a list of transactions that occurred in ledger 1400
transactions = server.transactions().for_ledger(1400).call()
print(transactions)
# get a list of transactions submitted by a particular account
transactions = se... | [
"4catcode@gmail.com"
] | 4catcode@gmail.com |
b6d49962e507d1202269880c14641540b5bffc8d | b22778ed4a21cc1102512ae7da7e8225b5f5299e | /examples/vector_v3.py | b5c655b305449e8e06758c7fe3ff2eeb22089f93 | [
"MIT"
] | permissive | afcarl/pythonic-api | 4722358935075878ff91a640174a2e5d0ae5764d | 764cb9dba9418c591d6d0cef20401b58d8ce0b1b | refs/heads/master | 2020-03-18T16:41:40.297453 | 2016-07-30T19:45:41 | 2016-07-30T19:45:41 | 134,980,879 | 1 | 0 | null | 2018-05-26T17:18:08 | 2018-05-26T17:18:08 | null | UTF-8 | Python | false | false | 1,369 | py | """
A multi-dimensional ``Vector`` class, take 3
"""
from array import array
import math
import reprlib
import numbers
class Vector:
typecode = 'd'
def __init__(self, components):
self._components = array(self.typecode, components)
def __len__(self):
return len(self._components)
de... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
daebceb3498025be0ba64616015b483e5246c793 | 3c54f853a782e07675b809cada049debe3d415b1 | /main/rates/management/commands/get_rate_data.py | a5e02efdf4c86d7cd7a4d9b3c79e36f983ab86be | [
"MIT"
] | permissive | Hawk94/coin_tracker | ebf82a17aff1ae84aa7de872734dbf1616022de5 | 082909e17308a8dd460225c1b035751d12a27106 | refs/heads/master | 2021-01-24T08:12:37.041745 | 2017-08-10T11:01:19 | 2017-08-10T11:01:19 | 93,378,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from main.rates.models import Rate
import requests
import datetime
import decimal
class Command(BaseCommand):
help = 'Gets todays BTC price and saves it to the database'
def handle(self, *args, **options):
... | [
"x99tom.miller@gmail.com"
] | x99tom.miller@gmail.com |
123ff2163d0dea2759b84eef2ebe3fab6a5fdbff | 7cc53a80f8ca9716e2e6893b6fd98ddab326061c | /iHome/web_html.py | 453a18b89d1a6db8eec578debdba818165338f0e | [] | no_license | zengsiquan/ihome | 4b98c476fdf381ad18113b070a44e48432b51a58 | 40926f74d46bc76de4aecd98cfc52302ecf72f1b | refs/heads/master | 2020-03-10T00:55:06.484107 | 2018-04-10T13:22:52 | 2018-04-10T13:22:52 | 129,093,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # -*- coding:utf-8 -*-
from flask import Blueprint,current_app,make_response
from flask_wtf import csrf
html = Blueprint('html',__name__)
@html.route('/<re(".*"):file_name>')
def get_html(file_name):
if not file_name:
file_name = 'index.html'
if file_name != "favicon.ico":
file_name= 'html/... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
718743c7da0e3030a59f7358c4988be1a2d87356 | 534570bbb873293bd2646a1567b63d162fbba13c | /Python/Data Structure/Binary Tree/Serilization:Deserialization/Verify Preorder Serialization of a Binary Tree.py | 9a2274a297c9e044d6cc6fe2a8830f27f34a8bea | [] | no_license | XinheLIU/Coding-Interview | fa3df0f7167fb1bc6c8831748249ebaa6f164552 | d6034c567cef252cfafca697aa316c7ad4e7d128 | refs/heads/master | 2022-09-17T14:30:54.371370 | 2022-08-19T15:53:35 | 2022-08-19T15:53:35 | 146,382,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | class Solution:
def isValidSerialization(self, preorder: str) -> bool:
stack = []
top = -1
preorder = preorder.split(',')
for s in preorder:
stack.append(s)
top += 1
while self.endsWithTwoHashes(stack,top):
h = stack.pop()
... | [
"LIUXinhe@outlook.com"
] | LIUXinhe@outlook.com |
1cae18ce8bce6554011b5d4dd4091266f3224738 | 4d9b7b5f12b343e515609b063bdf5c31fe89a4f9 | /asynchttp/websocket.py | ad23d2e17d1975f029217e182f7e79048da1b7f1 | [
"BSD-3-Clause"
] | permissive | oohlaf/asynchttp | 6aa956695dd82a60854d98afbf09741ce5c1fee9 | 2fb6a3b321c130e7b87cf1de03f042b89579a702 | refs/heads/master | 2021-01-16T19:47:18.929253 | 2013-10-10T23:36:13 | 2013-10-10T23:36:13 | 13,546,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,484 | py | """WebSocket protocol versions 13 and 8."""
__all__ = ['WebSocketParser', 'WebSocketWriter', 'do_handshake',
'Message', 'WebSocketError',
'MSG_TEXT', 'MSG_BINARY', 'MSG_CLOSE', 'MSG_PING', 'MSG_PONG']
import base64
import binascii
import collections
import hashlib
import struct
from asynchttp im... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
67624c3041be101cc92c160d6d7e7fd3442377f3 | 832f86e052d90916fb0c8156825c87dc13c0443e | /imported-from-gmail/2020-05-03-invert-a-binary-tree.py | 3afada0e040cf5b62868c3542fa850c26f003171 | [] | no_license | johncornflake/dailyinterview | 292615849cea62cb945ecc7039c594b6966a81f3 | 91bb0edb9e25255e6222279109c15ae9d203970c | refs/heads/master | 2022-12-09T21:02:12.204755 | 2021-06-07T13:09:34 | 2021-06-07T13:09:34 | 225,059,833 | 0 | 0 | null | 2022-12-08T11:27:38 | 2019-11-30T19:24:58 | Python | UTF-8 | Python | false | false | 1,226 | py | Hi, here's your problem today. (You've reached the end of the problems for now - in the meanwhile, here is a random question. And visit
CoderPro
for more practice!) This problem was recently asked by Twitter:
You are given the root of a binary tree. Invert the binary tree in place. That is, all left children shou... | [
"chadeous@gmail.com"
] | chadeous@gmail.com |
5e45efaf0a3d7732008c6b31f63ea03a3f44c0fe | d75359fde22b08a4109b30bb39c9db27961fa417 | /loginpass/github.py | 794d62418c269dca14a72d1f15a6c4568fd4dea5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | authlib/loginpass | 58f0881b4e5975c305e633337d1b86657bea907b | 635823a78a2a92cf8630f9935aebb9afcccb8656 | refs/heads/master | 2022-06-08T13:08:09.271879 | 2020-12-08T06:04:39 | 2020-12-08T06:04:39 | 128,506,236 | 280 | 95 | BSD-3-Clause | 2022-05-13T19:30:54 | 2018-04-07T07:26:46 | Python | UTF-8 | Python | false | false | 1,775 | py | """
loginpass.github
~~~~~~~~~~~~~~~~
Loginpass Backend of GitHub (https://github.com).
Useful Links:
- Create App: https://github.com/settings/developers
- API documentation: https://developer.github.com/v3/
:copyright: (c) 2018 by Hsiaoming Yang
:license: BSD, see LICENSE for more ... | [
"me@lepture.com"
] | me@lepture.com |
ee32eb4c5bf0fa3b9827e0a11a8b943fbb9b709d | 5c5b53b686cd11b76772768096d096b1f2e0636b | /codingtest/findCityBJ18352.py | d3ad4ff983e5fb5e1aeb7f0e0ff5922c2ea6daa9 | [] | no_license | jewerlykim/python_Algorithm | 3e72fe9b145ff172ca76c9d59fd1be6246513ae5 | e83b7e8fc58807ebf05f423d962ad9ce37100ada | refs/heads/main | 2023-08-22T10:23:29.764080 | 2021-10-14T16:13:14 | 2021-10-14T16:13:14 | 322,784,608 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | import sys
from collections import deque
# sys.stdin = open("/Users/jewerlykim/Desktop/python_Algorithm/codingtest/18352.txt", 'r')
cityNumber, roadNumber, distance, startCityNumber = map(int, sys.stdin.readline().split())
graph = [[] for _ in range(cityNumber+1)]
visited = [False for _ in range(cityNumber+1)]
distan... | [
"jsjs21good@gmail.com"
] | jsjs21good@gmail.com |
0064386a9682b065d6f45192f430c384290a799a | c929632612012a436fdec27771a6a8716cdb24bf | /setup.py | 047ed9b775f9449564700e84813c16890e9b8e7d | [] | no_license | imclab/python-ucto | bae2f082068261b70bf71ea681b92bf6e2e6263b | a07e87f568cdb342b84f7b76e9f466d507567211 | refs/heads/master | 2021-01-14T10:30:27.892695 | 2016-03-10T14:49:58 | 2016-03-10T14:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | #!/usr/bin/env python
from distutils.core import setup, Extension
from Cython.Distutils import build_ext
import glob
import os
import sys
from os.path import expanduser
HOMEDIR = expanduser("~")
VERSION = '0.3.0'
includedirs = [HOMEDIR + '/local/include/','/usr/include/', '/usr/include/libxml2','/usr/local/include/' ... | [
"proycon@anaproy.nl"
] | proycon@anaproy.nl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.