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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61b0ab1ae3ca11fcf2581a67933b5271749e9756 | ef0f2c4557db4388f6ddf46c94abb0ef9c78813d | /main/uppath.py | 725351ab623335d2d4ee859971f2f16eed7c820a | [] | no_license | baopingli/HAttMatting | c3382ccbdcb77419cdfc615eb7380a5388c09419 | 851aba6d1acbcf41749508b8c9cb7d007e4837c2 | refs/heads/main | 2023-02-18T04:10:57.184518 | 2021-01-11T02:51:20 | 2021-01-11T02:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | import math
import cv2
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import pytorch_lightning as pl
from .conv_batchnorm_relu import ConvBatchNormRelu
class UpPath(pl.LightningModule):
def __init__(self, *args, **kwargs):
super(UpPath, self).__init__()
sel... | [
"vietnamican@gmail.com"
] | vietnamican@gmail.com |
cc454eceed7f736e10e8d949d9ebe9daf2909b01 | f5f62ed1f738f1f7a863468c7d6c0cf20af490f3 | /Vorlesung/src/Basic/date_class.py | 665b8a0a90ebb42f77ecf18b59b03b61caceeea7 | [] | no_license | AndrejLehmann/my_pfn_2019 | e0ceb7e0b999abb978c10bc15c7e05f31739b8ca | fe4d4ddb7192ecd2c0e0dbe043d72485c5ed9810 | refs/heads/master | 2020-08-31T01:53:37.486097 | 2020-04-20T20:48:08 | 2020-04-20T20:48:08 | 218,550,745 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python3
import sys, re, argparse
def is_leap_year(year):
return year % 400 == 0 or (year % 4 == 0 and year % 100 != 0)
class Date:
daysinmonth = {1: 31, 2: 28, 3: 31, 4: 30, 5: 31, 6:30,
7: 31, 8: 31, 9: 30, 10: 31, 11: 30, 12:31}
def __init__(self,dstring):
mo = re.searc... | [
"alehmann@physnet.uni-hamburg.de"
] | alehmann@physnet.uni-hamburg.de |
69f61deaa21aac62110923ba4cf7ab0bb97e8230 | 8f8e378c0ce4224244582c506c268edda3cc3b30 | /Common/DL/Day2/New/regression3.py | 3d37f5c556a00de3cebaf683e24d265254ed448a | [] | no_license | srsapireddy/Diploma-in-AI_NIELIT_Files | 223318319b2d4b8647d77b99d1ba03f0d6e15cf6 | 9e2ed78fbe03369ebef1aa81f3417fc21bdd4107 | refs/heads/master | 2021-05-17T14:28:00.059617 | 2020-03-29T09:28:04 | 2020-03-29T09:28:04 | 250,820,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # mlp for regression with mse loss function
from sklearn.datasets import make_regression
from sklearn.preprocessing import StandardScaler
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import SGD
from matplotlib import pyplot
# generate regression dataset
X, y = make_regression... | [
"sapireddyrahul@gmail.com"
] | sapireddyrahul@gmail.com |
029528a291961da7c442a5c7e15d8be06bc73bb3 | ddbb2bab9c96705c4ceb9e0d92e285d24d6acc0e | /Basic/chap08.py | 1b344e337ba1816ff33cd4ccd0aff94e429ba1e1 | [] | no_license | louisuss/CrawlingStudy | e25ca256be7c3c0bda026f1d404a9d91c36f9dd7 | 78f33939865bb8eba5adc042d63fe3def67382f2 | refs/heads/master | 2022-12-15T17:54:44.209175 | 2020-08-23T12:27:06 | 2020-08-23T12:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | # 다음 주식 정보 가져오기
import json
import urllib.request as req
from fake_useragent import UserAgent
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
# Fake Header 정보 (가상으로 UserAgent 생성)
ua = UserAgent()
# print(ua.chrome)
# print(ua.safari)
# print(ua.random)
# 헤더 정보
headers = {
'User-age... | [
"dobi1115@gmail.com"
] | dobi1115@gmail.com |
edd2294d74c818df111097d4dda5b7c88d015b4f | 0410c8e7db491283fe1383731aa2f130fccfaff1 | /main.py | 1d2b7f0dbb572a7087c63387a33e8b920811d516 | [] | no_license | simplifies/PassGetter | e1af86cfed2012cbea76c90c3c4a0b0ac9b7a4fa | d4ded9b966f18c6f7d3fe5718662ea02b2e1e3b3 | refs/heads/master | 2022-12-08T23:30:18.342699 | 2020-09-16T15:20:28 | 2020-09-16T15:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,687 | py | import os
import sys
import xml.etree.ElementTree as ET
import time
import sockets.client as client
import glob
from platform import system
system = system()
if system == "Windows":
import win32com.shell.shell as shell
else:
pass
def admin():
if system == "Windows":
if sys.argv[-1] != 'asadmin':
... | [
"noreply@github.com"
] | simplifies.noreply@github.com |
1fc6b77c43cbb4d11e20de82d9d104daac283aeb | f43d3731a21ee5df09298f5541b52484f408e010 | /spider/news/MongoPipeline.py | 687daf1f028f475fc148563dcbcad22e96ec0d0c | [] | no_license | cash2one/wechat_admin | 2ba8c35deffff37c263b7091229ba2d86f2aaeaf | af0712fdad867d76dcee2092abcf32cada49d075 | refs/heads/master | 2021-05-04T22:22:53.514787 | 2017-09-25T10:03:07 | 2017-09-25T10:03:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import json
from spider.loggers.log import crawler
from spider.news.Pipeline import Pipeline
from spider.util.MongoUtil import MongoUtil
class MongoPipeline(Pipeline):
def __init__(self, collection):
self.collection = collection
def put(self, item):
json_obj = item.to_dict()
MongoUti... | [
"“545314690@qq.com”"
] | “545314690@qq.com” |
c503f0ccea6b194021cfd21c8b840271f6821aaa | 6faedd57c152156ca508be06b15bcd04e27e974b | /peeringdb_server/management/commands/pdb_org_cleanup.py | ad73a8fda226376e7b8a26fe16491ec0c89c9c71 | [
"BSD-2-Clause"
] | permissive | grizz/peeringdb | 1dca75ac7cbb357ff6166285fb89de07a0a1ed5d | 355fff42924a62b1920bd1f263d83e696e96b74b | refs/heads/master | 2023-01-06T14:07:13.176255 | 2022-11-15T18:34:50 | 2022-11-15T18:34:50 | 164,004,395 | 0 | 0 | NOASSERTION | 2019-01-03T17:41:55 | 2019-01-03T17:41:54 | null | UTF-8 | Python | false | false | 1,617 | py | from django.core.management.base import BaseCommand
from peeringdb_server.models import Organization
class Command(BaseCommand):
help = "Cleanup deleted Organization objects"
def add_arguments(self, parser):
parser.add_argument(
"--commit",
action="store_true",
h... | [
"noreply@github.com"
] | grizz.noreply@github.com |
aaebaa9fae2392777c866f60bc43f48468fef328 | cd4eb25911d3e3b092aa97aaa7b8fbba6c3a0704 | /lang/python/gevent/testSigQuit.py | 266a8c3f7e07ad1e923b90327d24877fd4efdf12 | [
"MIT"
] | permissive | liuyang1/test | 29bb142982d2ef0d79b71e8fe5f5e0d51ec5258e | 9a154e0161a1a33baad53f7223ee72e702532001 | refs/heads/master | 2023-08-05T08:56:50.526414 | 2023-07-21T05:49:53 | 2023-07-21T11:16:09 | 26,949,326 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import gevent
import signal
def run_forever():
gevent.sleep(100)
if __name__ == "__main__":
gevent.signal(signal.SIGQUIT, gevent.shutdown)
thread = gevent.spawn(run_forever)
thread.join()
| [
"liuyang1@mail.ustc.edu.cn"
] | liuyang1@mail.ustc.edu.cn |
d6e5f838cf0ff1735ab58b6a342ba0064ed99f4a | b31f44faa4ff1b462585130aff31de959a3e1623 | /Python/Data Structure/Linear List/Sort Array By Parity II.py | 969ae2d0c825bea00b3571a4ee45cadff6fd370b | [] | no_license | fagan2888/Coding-Interview | ac66b1fc33aecdbc2f1e1ec66491561c424e3024 | fe7afbead2f1e252f4bc5692e0f94a6ce32f3c44 | refs/heads/master | 2021-04-21T05:16:34.002298 | 2020-02-02T15:41:05 | 2020-02-02T15:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | class Solution:
def sortArrayByParityII(self, A: List[int]) -> List[int]:
# two pointers
j = 1
for i in range(0, len(A), 2): #even
if A[i] % 2:
while A[j] % 2:
j += 2
A[i], A[j] = A[j], A[i]
return A | [
"LIUXinhe@outlook.com"
] | LIUXinhe@outlook.com |
aa93ad03fc44012a2b48b86533a29102093f9c58 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_35/176.py | e46c645d92b8969ad48b9b94179d7069226800fc | [] | 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 | 3,876 | py | def main(filename):
f = open(filename)
lines = f.readlines()
f.close()
outlines = []
NORTH, WEST, EAST, SOUTH = 0, 1, 2, 3
T = int(lines.pop(0))
def get_neighbours(arr, row, col):
neighbours = []
if row > 0:
neighbours.append((NORTH, arr[row - 1][co... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6c72a45ff32d4962d15076f7ce9e9857f7f46759 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/22/usersdata/107/11706/submittedfiles/av1_2.py | 1ed072be432d68e735832fde03663c7d7ac9cb0d | [] | 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 | 297 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a=int(input('digite o valor de a:'))
b=int(input('digite o valor de b:'))
c=int(input('digite o valor de c':))
d=int(input('digite o valor de d:'))
if ABAD==5393 and CBCD==6268:
PRINT('VERDADEIRO')
ELSE:
print('FALSA') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4dece2cdb4af6765f620558479f12b10a049bb03 | 8e3bd35267f40341d7ca03646e10a2b92eace0c7 | /series.py | b7a4817a18ddf7d719d6458cd6f4a7a4f031f87b | [] | no_license | shirsho-12/mathScripts | 2eb762b64ec61ffe8f0182f478353fda121d8c3b | 0ada093050221a2f4d9b33c09783b052c17fbcb3 | refs/heads/master | 2023-04-01T06:29:55.308901 | 2021-04-17T13:54:10 | 2021-04-17T13:54:10 | 354,479,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | import numpy
from sympy import Symbol, pprint, simplify
import sympy as sp
def get_series(var, expr, num_terms=10):
series = sp.series(expr, var, n=num_terms)
pprint(simplify(series))
x = Symbol("x")
expr = sp.ln(1 - 8*x**2)
# expr = sp.cos(x)
# expr = sp.atan(x**3)
# expr = sp.ln(sp.sec(x))
get_series(x, e... | [
"shirshajit@gmail.com"
] | shirshajit@gmail.com |
2974a98e4d774482aebe15fe8fd2b5970e282ff3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /XsJLwhAddzbxdQqr4_4.py | 27672ae255be132627d23a9dd8c94ef3d9a364fa | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | """
Create a function that takes a list and returns the **difference** between the
biggest and smallest numbers.
### Examples
difference_max_min([10, 4, 1, 4, -10, -50, 32, 21]) ➞ 82
# Smallest number is -50, biggest is 32.
difference_max_min([44, 32, 86, 19]) ➞ 67
# Smallest number is 19, big... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c8d933b28a46b474602a1ecd35e3973757ca6e7c | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/kenan/desktop/compiz/compizconfig-python/actions.py | 86771fd00f5ece6b0cc60cd32a33be547e5a41d2 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--disable-static")
def build()... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
a0f14bf59489e1820edcf0a4329a4155f3433160 | b55f7fe191a0ac499213505b297edffd2daab2ec | /DeepRLTrader/core/__init__.py | 31884eca75e1a3469faae7b5ec3c052da83623ad | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | chmbrs/DeepRLTrader | af77c33aee908d732fa760a1c48273f9b8ec6ae5 | 96ae2069a42e29838aa26165af0556835c1808dd | refs/heads/master | 2020-04-17T00:46:06.199575 | 2019-01-16T16:51:48 | 2019-01-16T16:51:48 | 166,061,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from .environnement import Local_env
from .environnement import Live_env
from .worker import Local_Worker
from .worker import Live_Worker
from .session import Local_session
from .session import Live_session
| [
"awakeproduction@hotmail.fr"
] | awakeproduction@hotmail.fr |
5e6b1e4f698c5c092aff75f1caa0e101fcacd01b | f0e8338762530bd6c2cc402cda64c43bcec329ae | /leetcode/35. 搜索插入位置.py | 2f9b313fad3d2a95b67f4af9fb389fa870e4f470 | [] | no_license | pengyuhou/git_test1 | bcd60554d2dadad972848047d00f888444462f05 | 5aa441f94a0aa713771bdd93b53a702032060f5d | refs/heads/master | 2022-11-22T08:52:52.767933 | 2020-07-18T03:50:22 | 2020-07-18T03:50:22 | 259,177,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | class Solution(object):
def searchInsert(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
import bisect
return bisect.bisect_left(nums, target)
if __name__ == '__main__':
# print(Solution().searchInsert([1, 3, 5, 6], 0))
... | [
"786490473@qq.com"
] | 786490473@qq.com |
d0377ce55de49112d96d6d73d6fdfc511bcc9219 | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/parser/template/graph_tests/test_authorise_usergroups.py | 070b6c41a40a3be42877c809d4c3b60fa8448c92 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,358 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
7b8a0f33c8c2cfce8e2214e673d7e23930159a0d | 1c762f8a085e851dcc38503008c3c997782c5c79 | /Data_Generator.py | 89fdbfcd546313b828a0742f5ac4328968277aa7 | [
"MIT"
] | permissive | Ajay2521/Face-Recognition-using-Siamese-Network | ca599ab2d05869a20accc22a3f3e17a77a193c18 | 0752e85b046599bf7ddb960cefeaf63b309e26c1 | refs/heads/main | 2023-05-13T21:14:56.740169 | 2021-06-11T03:37:41 | 2021-06-11T03:37:41 | 375,892,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,065 | py | # importing the neccessary libraries
# open cv for image processing
import cv2
# used to manipulate different parts
import sys
# used for manipulating array/matrics
import numpy as np
# used for accessing the file and folder in the machine
import os
# used for landmark's facial detector with pre-t... | [
"noreply@github.com"
] | Ajay2521.noreply@github.com |
2e8a3ba4e7038eac2ccc96263bdc2de8ad1ca6fe | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03761/s160390356.py | 6afd5b1b7f5508c82464c33c2033ab81a3670a86 | [] | 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 | 776 | py | import sys
from string import ascii_lowercase as alphabets
from collections import Counter
def main():
inf=100
alphd={x:0 for x in alphabets}
ansd={x:inf for x in alphabets}
n=int(input())
s=[input() for _ in range(n)]
for st in s:
for x in st:
alphd[x]+=1
for a in a... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b9edd3e6f9ac2e63615f9388ce32ecd2ad05b7ff | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03659/s513043584.py | 3aa6b000e56fcb4dfa57e4fb72410c1623d07084 | [] | 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 | 190 | py | n = int(input())
a_lst = list(map(int, input().split()))
x = a_lst[0]
y = sum(a_lst[1:])
diff = abs(y - x)
for a in a_lst[1:-1]:
x += a
y -= a
diff = min(diff, abs(y - x))
print(diff) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
db708b0106ae135b1760c606ca3898726edcde4b | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad_BN/pyr_Tcrop256_pad20_jit15/pyr_2s/L5/step11_L2345678.py | 08c22bc3cddbff4ee3e973086092e77275248d2a | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,975 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
ca50bb1529182918b335ff225b5d425669d78e7e | 56997c84a331433225f89f168520ad8d709083c1 | /Programmers/기타문제/압축/ziping_ver1.py | 7a9ba5815d01771a1bcea7d53a147f1cf8df61e5 | [] | no_license | miseop25/Back_Jun_Code_Study | 51e080f8ecf74f7d1a8bb1da404d29c8ba52325c | 1d993e718c37c571aae1d407054ec284dc24c922 | refs/heads/master | 2022-11-06T01:05:05.028838 | 2022-10-23T13:11:22 | 2022-10-23T13:11:22 | 200,828,984 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | def solution(msg):
answer = []
lzw_dict = dict()
word = "A"
for i in range(1, 27) :
lzw_dict[word] = i
word = chr(ord("A") + i )
m_index = 0
w = msg[0]
while m_index < len(msg):
if m_index + 1 < len(msg) :
temp = w + msg[m_index + 1]
else :
... | [
"richard25@naver.com"
] | richard25@naver.com |
bc16ca07017d65d4491e9ab5faa7546a0003799e | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/pcode/memstate/UniqueMemoryBank.pyi | 851ac4589eaa0006c84ab4e084c511aae767f320 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | pyi | from typing import List
import ghidra.pcode.memstate
import ghidra.program.model.address
import java.lang
class UniqueMemoryBank(ghidra.pcode.memstate.MemoryBank):
"""
An subclass of MemoryBank intended for modeling the "unique" memory
space. The space is byte-addressable and paging is not supported.
... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
dda51f8afb2664e55ffebcb38827068a86d57fc9 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/network/v20180201/get_virtual_network_gateway_bgp_peer_status.py | fde6e4b745e746cc3d66fd3df1e4a7b7d879a36e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 2,685 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
ab931e5ccb6b71bc187e3317e6c7844a9b49c6ea | 5d32d0e65aa3bfa677fd1b8c92569e07e9b82af1 | /Section 1 - Getting Started/Breakouts/Breakout 1.2 - Turtle Graphics/Turtle Shapes v2 - block1.py | dfff63c79e6078cc283ec4b1983b196f82b5dbf7 | [
"CC0-1.0"
] | permissive | pdst-lccs/lccs-python | b74ef2a02ac8ad2637f713fff5559f4e56c9827d | 95cb7ece05716521e9951d7a40de8fb20a88021f | refs/heads/master | 2023-05-28T00:46:57.313972 | 2023-05-22T10:16:43 | 2023-05-22T10:16:43 | 240,501,524 | 21 | 18 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # Event: LCCS Python Fundamental Skills Workshop
# Date: May 2018
# Author: Joe English, PDST
# eMail: computerscience@pdst.ie
# Purpose: Turtle Graphics - Further Activities
# Match the code blocks below to the corresponding shape
from turtle import * # import the turtle graphics library
forward(100)
right... | [
"noreply@github.com"
] | pdst-lccs.noreply@github.com |
1d3245d9d48900c68394b1f5a8a746a3c42b03d0 | 0e6ce40f5a8e302698c2d0ddf945f7fa34dd190a | /mysite/polls/urls.py | 111b32d6b36b0bdc1ba4287fa9ac61db213f246c | [] | no_license | ricetak/django_tutorial | c89887a8153fb6901d3980217318c5137f7d3495 | 370ebade46a1aeade28b6626c4014cfea5db3a8b | refs/heads/master | 2020-05-26T09:12:34.024688 | 2019-05-23T07:10:55 | 2019-05-23T07:10:55 | 188,181,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | from django.urls import path
from . import views
'''
app_name = 'polls'
urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),
# ex: /polls/5/
path('<int:question_id>/', views.detail, name='detail'),
# ex: /polls/5/results/
path('<int:question_id>/results/', views.resul... | [
"you@example.com"
] | you@example.com |
2298f7d32ab7b27f31caad11a0c3d60da1efc78d | a1b649fcd0b6f6c51afb13f406f53d7d823847ca | /studies/migrations/0031_merge_20170828_1227.py | f58fb7d972f9061d9e93b85af8e2e50c1173197c | [
"MIT"
] | permissive | enrobyn/lookit-api | e79f0f5e7a4ef8d94e55b4be05bfacaccc246282 | 621fbb8b25100a21fd94721d39003b5d4f651dc5 | refs/heads/master | 2020-03-27T01:54:00.844971 | 2018-08-08T15:33:25 | 2018-08-08T15:33:25 | 145,752,095 | 0 | 0 | MIT | 2018-08-22T19:14:05 | 2018-08-22T19:14:04 | null | UTF-8 | Python | false | false | 340 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-28 16:27
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('studies', '0030_merge_20170827_1909'),
('studies', '0030_merge_20170827_1539'),
]
o... | [
"cwisecarver@cos.io"
] | cwisecarver@cos.io |
52836a63f5ed574bbefa5ef16a42d4feb1fddf38 | 9505e191cb287507c7df05212ab562bea1eda553 | /Data structures&Algorithms/bst.py | af404b2867e2e4e6c1e26a024acf1a2cfc23779b | [
"MIT"
] | permissive | iisdd/Courses | c7a662305f3efe7d61eb23f766381290b1107bb8 | a47d202e0d7e1ba85a38c6fe3dd9619eceb1045c | refs/heads/main | 2023-04-15T17:40:36.474322 | 2021-04-27T14:31:42 | 2021-04-27T14:31:42 | 316,904,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,154 | py | # 二叉搜索树,取个英文名字方便调包
class BiTreeNode:
def __init__(self, data):
self.data = data
self.lchild = None # 左孩子节点
self.rchild = None # 右孩子节点
self.parent = None
class BST:
def __init__(self, li=None):
self.r... | [
"noreply@github.com"
] | iisdd.noreply@github.com |
b40d9aae99b9bedfefe3e549932913b1fbbe044c | e01ab8185f34be16777e61aa7ce71f00e037dcf3 | /scripts/parallel_align_seqs_pynast.py | d4b23c42dd44163a509d00625ff5dedd70c4da5d | [] | no_license | zellett/qiime | caf6eae9e8346f7cdd2fed1f9c580a1777046709 | 395ae76e03ccf57272dc17a6d6555edb15ce4783 | refs/heads/master | 2020-05-20T06:03:22.867386 | 2012-12-09T19:08:07 | 2012-12-09T19:08:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,681 | py | #!/usr/bin/env python
# File created on 09 Feb 2010
from __future__ import division
__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME Project"
__credits__ = ["Greg Caporaso"]
__license__ = "GPL"
__version__ = "1.5.0-dev"
__maintainer__ = "Greg Caporaso"
__email__ = "gregcaporaso@gmail.com"
__stat... | [
"gregcaporaso@gmail.com"
] | gregcaporaso@gmail.com |
322e397c0f0c080a5c48552626e6c1dd530072c3 | a83bafc38b514a0339a5991be15870551ac49681 | /test/test_raw_material.py | 408000cb4e9c5d50a4d0ba805ba5188e82f5dea7 | [] | no_license | bimdata/python-api-client | 4ec2f81e404ef88d3a7e4d08e18965b598c567a2 | c9b6ea0fbb4729b2a1c10522bdddfe08d944739d | refs/heads/master | 2023-08-17T13:38:43.198097 | 2023-08-09T12:48:12 | 2023-08-09T12:48:12 | 131,603,315 | 0 | 4 | null | 2022-10-10T15:21:26 | 2018-04-30T14:06:15 | Python | UTF-8 | Python | false | false | 900 | py | """
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1 (v1)
Contact: support@bimdata.io... | [
"infra@bimdata.io"
] | infra@bimdata.io |
b93e64133180e5336b6485e8319d6a56dcd396ef | b01f1b9bafc9c45125fff4c90f0dc5bca8707fe8 | /tests/test_fonts3.py | 76488d42dfc73fa0bb2f46163c86c4af2123e66a | [
"MIT"
] | permissive | bunkahle/PILasOPENCV | a573d0b42b00a22822a85e2260e83ea6f5f642ed | 832bae926614a16a5a3ae882a25576862aff4125 | refs/heads/master | 2023-04-06T19:39:02.163531 | 2022-03-09T16:04:04 | 2022-03-09T16:04:04 | 176,177,923 | 27 | 10 | MIT | 2023-03-19T12:25:54 | 2019-03-18T00:33:31 | Python | UTF-8 | Python | false | false | 711 | py | from __future__ import print_function
import PILasOPENCV as Image
import PILasOPENCV as ImageDraw
import PILasOPENCV as ImageFont
import cv2
# font = ImageFont.truetype("arial.ttf", 30)
size = 20
font = ImageFont.truetype("msgothic.ttc", 22+int(size/50), index=0, encoding="unic")
print(font)
im = Image.new("... | [
"noreply@github.com"
] | bunkahle.noreply@github.com |
fe3ff6faf74a462febd26d25acda2a52115ffadf | 5ac348d455265b9733b8ae930e45998213f226ac | /AI/lab2/part2/PCA.py | 60def303b7c472146f5b655cbb87f5394aca32a9 | [] | no_license | jsw-zorro/USTC-Junior-Lab | e5eed0f2e1e9b1487d7554f8f8302f74cd4116d1 | 35c3f11b505de72b14e5ca9ea5188825302dcfd9 | refs/heads/master | 2020-04-10T22:42:11.432863 | 2018-07-04T06:09:13 | 2018-07-04T06:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # -*- coding: utf-8 -*
import numpy as np
import os
import math
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from scipy import misc
SAMPLE_NUM = 10
CLASS_NUM = 40
IMG_SHAPE = (112, 92)
scale = 0.5
k = 8
principal_percent = 0.8
def load_faceimg(path_dir, shrink_rate=0.5, train_... | [
"632679697@qq.com"
] | 632679697@qq.com |
9486c9afd91cf41d204a2a553a2d8a52d5904654 | 0b0d3246d39974cb8faff7d269da2d539415afab | /problem_python/p643.py | f23a17357f6d483556d9499124308313657f5eea | [] | no_license | xionghhcs/leetcode | 972e7ae4ca56b7100223630b294b5a97ba5dd7e8 | 8bd43dcd995a9de0270b8cea2d9a48df17ffc08b | refs/heads/master | 2020-03-07T17:18:08.465559 | 2019-09-29T11:11:26 | 2019-09-29T11:11:26 | 127,607,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | class Solution(object):
def findMaxAverage(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: float
"""
tmp_sum = sum(nums[:4])
i = 0
ans = tmp_sum
for j in range(k, len(nums)):
tmp_sum = tmp_sum - nums[i] + nums[j]
... | [
"xionghhcs@163.com"
] | xionghhcs@163.com |
55c34c0724af09f837aabbb9a2eccc295dfd9049 | 60b35d9219c3cafd5be4c176ceb9694cc7e3f0aa | /planner.py | f9e2b91526eaa6532fd6464c9d70361fca11a84d | [] | no_license | mikesuhan/canvas_automation | 3b201290e4df0401614ffd24ada7b6da2582818b | 8274352ce526a8c2c70e0e8a3428924f72c7797f | refs/heads/main | 2023-02-12T07:37:48.150138 | 2021-01-11T19:30:44 | 2021-01-11T19:30:44 | 326,797,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | import datetime
from dateutil.parser import parse
def date_range(first_day=datetime.datetime(2021, 1, 11, 8, 30), last_day=datetime.datetime(2021, 5, 7, 8, 30)):
delta = last_day - first_day
return list(reversed([last_day - datetime.timedelta(days=x) for x in range(delta.days + 1)]))
def session_range(dates, ... | [
"you@example.com"
] | you@example.com |
91cd2668c52a78e788bcdfe46bbb7e63ca3de71d | 395f93442d1d41ad228d62d4c15d197dbc1d1363 | /apps/user_operation/migrations/0004_auto_20181204_0942.py | fea67e4bcad34420f151c4ff625b83f50c1fd67b | [] | no_license | vevoly/ShopDjango | e0e310538eb4cdad0977f8ced1da6382a1441c67 | 8c25cf35797951c2a2d16933afedfa28689b597c | refs/heads/master | 2020-04-23T22:03:31.200141 | 2019-02-19T14:34:57 | 2019-02-19T14:34:57 | 171,489,038 | 0 | 0 | null | 2020-02-12T02:44:05 | 2019-02-19T14:33:04 | JavaScript | UTF-8 | Python | false | false | 1,108 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-12-04 09:42
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_operation', '0003_auto_20181117_1121'),
]
operations = [
... | [
"jevoly@163.com"
] | jevoly@163.com |
6f1155fa56134bb787b2fc17e62b2b06bf1c3850 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_blitzes.py | e5dac4a2227faeea262af941d833107c53afb89e | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py |
from xai.brain.wordbase.verbs._blitz import _BLITZ
#calss header
class _BLITZES(_BLITZ, ):
def __init__(self,):
_BLITZ.__init__(self)
self.name = "BLITZES"
self.specie = 'verbs'
self.basic = "blitz"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
319f8d28ab811b2e7eaf832c142ce5a9f1993d33 | 6766c01dee6c6330a62e14d5c036eedb60887228 | /book/admin.py | 04b64bbc505dc63b03a804135fa5da5558baf3c5 | [] | no_license | whu2017/easyreading | 5fbf299ab1d2e489e6dfd881a466852d646bbb52 | 71b2936345f9253648c046a68839c7164e506bfe | refs/heads/master | 2020-04-06T04:13:32.918077 | 2017-05-24T01:27:06 | 2017-05-24T01:27:06 | 83,019,406 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from book.models import Category, Book, Comment
class CategoryAdmin(admin.ModelAdmin):
list_display = ('name', )
class BookAdmin(admin.ModelAdmin):
list_display = ('category', 'title', 'author', 'price', 'sco... | [
"doraemonext@gmail.com"
] | doraemonext@gmail.com |
9fa7197b8a44396a777f1f416ab3e8488903a9b1 | 5a1a695829a2d1dbf4daa0736f0fbd6feffc7e63 | /swexpert/1859(백만 장자).py | 88fa455f52e94d8e73ed650c5a4527801d43a941 | [] | no_license | juyi212/Algorithm_study | f5d263c5329c994a457bbe897e5e1405d2b1d67a | f225cc593a50b74686111f654f7133707a1d1310 | refs/heads/master | 2023-03-21T20:02:36.138688 | 2021-03-16T14:16:40 | 2021-03-16T14:16:40 | 325,008,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | import sys
sys.stdin = open('input1.txt','r')
T=int(input())
for i in range(0, T):
day = int(input())
dayprice = list(map(int, input().split()))
maxprice = dayprice[len(dayprice)-1]
benefit = 0
buy = 0
for j in range(day-2, -1, -1):
if dayprice[j] < maxprice:
benefit += max... | [
"dea8307@naver.com"
] | dea8307@naver.com |
13ad959a6218c2871702b4ef16bfccf686044504 | e1d6de1fb5ce02907df8fa4d4e17e61d98e8727d | /intro/searching.py | 7d3678bf41cb22f6d1c32d55870e4744d264fc59 | [] | no_license | neuroph12/nlpy | 3f3d1a8653a832d6230cb565428ee0c77ef7451d | 095976d144dacf07414bf7ee42b811eaa67326c1 | refs/heads/master | 2020-09-16T08:24:37.381353 | 2016-09-10T19:24:05 | 2016-09-10T19:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # this line will show some book samples in NLTK.
from nltk.book import *
## concordance
# print('Sense and Sensibility by Jane Austen 1811')
# print(text2.concordance('affection'))
# print('text5: Chat Corpus')
print(text5.concordance('lol'))
## similarity
# print(text1.similar('monstrous'))
## common contexts
# pr... | [
"anderscui@gmail.com"
] | anderscui@gmail.com |
fd6feb2ed457231f5f56dceff0819d45e00509b8 | 343bdaddfc66c6316e2cee490e9cedf150e3a5b7 | /0001_0100/0094/0094.py | b366673455e6be0051362104cde337887818eb30 | [] | no_license | dm-alexi/acmp | af7f6b4484b78f5922f3b464406a0ba5dea0d738 | 3fa0016d132adfeab7937b3e8c9687a34642c93a | refs/heads/master | 2021-07-09T15:14:25.857086 | 2020-10-20T19:08:54 | 2020-10-20T19:08:54 | 201,908,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | with open("input.txt", "r") as f, open("output.txt", "w") as q:
n, m, k = (int(x) for x in f.read().split())
q.write("1" if n >= m else "NO" if n <= k else str((m - n - 1) // (n - k) + 2))
| [
"dm2.alexi@gmail.com"
] | dm2.alexi@gmail.com |
39d81f04162ffe643e220fbda57ad7cee54f091e | 873d9322f0d9296a0eda49bba65faba3a7ba62e3 | /kontrasto/templatetags/kontrasto_tags.py | 9918722e2f02363153ae4fafe2370029bd7c40a1 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | nimasmi/kontrasto | d9910ca015f7d4263b7d9b829f3282936cfbb0b9 | 08fc0279e2b3e1da1a5cec769874572455fd0527 | refs/heads/main | 2023-04-19T21:18:47.677839 | 2021-05-15T00:42:50 | 2021-05-15T00:42:50 | 370,022,377 | 0 | 0 | MIT | 2021-05-23T10:28:35 | 2021-05-23T10:28:34 | null | UTF-8 | Python | false | false | 1,881 | py | from django import template
from kontrasto import wcag_2, wcag_3
register = template.Library()
@register.filter(name="dominant_color")
def dominant_color(image):
return image.get_dominant_color()
@register.filter(name="wcag_2_contrast")
def wcag_2_contrast(image, text_color: str) -> str:
return wcag_2.wca... | [
"thibaudcolas@gmail.com"
] | thibaudcolas@gmail.com |
065cde2487f798bbdd3629817a89aac06a72872c | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/Scaleform/daapi/view/meta/PremiumWindowMeta.py | 938001af0b0a21975d24c7e234953c27e7860c41 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,076 | py | # 2016.11.19 19:51:28 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/PremiumWindowMeta.py
from gui.Scaleform.daapi.view.meta.SimpleWindowMeta import SimpleWindowMeta
class PremiumWindowMeta(SimpleWindowMeta):
"""
DO NOT MODIFY!
Generated with yaml.
__autho... | [
"info@webium.sk"
] | info@webium.sk |
1ab1c26e10ab8717734ea8ad5224365ae174f7e4 | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /google_or_tools/futoshiki_sat.py | 0eac27b21330dd3171807643a0076cc4144a12bc | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 4,036 | py | # Copyright 2021 Hakan Kjellerstrand hakank@gmail.com
#
# 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 ... | [
"hakank@gmail.com"
] | hakank@gmail.com |
2fce7a68118cfb2a297a7f558fcf02e1990f725a | 882c2b3c410b838372d43e431d1ccd6e02ba45f6 | /AlMgSiMC/cylinder_khachaturyan.py | 7025b331326e9df285f6023052ba55b49b3f0ad5 | [] | no_license | davidkleiven/GPAWTutorial | d46f7b8750172ba5ff36ccc27f97089cac94fd95 | 0bffc300df1d048142559855d3ccb9d0d8074d2e | refs/heads/master | 2021-06-08T05:44:42.784850 | 2021-02-25T10:23:28 | 2021-02-25T10:23:28 | 98,557,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | import numpy as np
from apal import Khachaturyan
import matplotlib as mpl
mpl.rcParams.update({'font.size': 18, 'axes.unicode_minus': False, 'svg.fonttype': 'none'})
from matplotlib import pyplot as plt
C_al = np.array([[0.62639459, 0.41086487, 0.41086487, 0, 0, 0],
[0.41086487, 0.62639459, 0.41086487... | [
"davidkleiven446@gmail.com"
] | davidkleiven446@gmail.com |
9872ed3d75f6b59b33b85328df1ac8e4c7ea2837 | 214942f8cf694227d32077accd8aa379c26b4830 | /ooi_instrument_agent/utils.py | 2b2a23ad7e8bce1df9cd47a0b66c4ece8d784abe | [
"Apache-2.0"
] | permissive | oceanobservatories/ooi-instrument-agent | 76084b2c554f195983550aa67d3c86e66a39f525 | e22e4300079468bb99c543cbbf1cb5c8b4a96897 | refs/heads/master | 2021-01-21T14:58:10.847453 | 2016-06-21T18:15:19 | 2016-06-21T18:18:24 | 58,216,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,896 | py | import json
import logging
from flask import request
from werkzeug.exceptions import abort
from ooi_instrument_agent.client import ZmqDriverClient
DEFAULT_TIMEOUT = 90000
log = logging.getLogger(__name__)
def get_client(consul, driver_id):
"""
Create a ZmqDriverClient for the specified driver_id
:param... | [
"petercable@gmail.com"
] | petercable@gmail.com |
1a3dcd0ed91952cbd51126d875f0e262109a6f94 | 6244c2efe590494e0870253269e269848f8debe4 | /BooleanNetworks/LEMScores/parseLEMscores_malaria_40hr.py | 272717bc1a9856b72ebf33574f87bff521033bb8 | [] | no_license | breecummins/BooleanNetworks | 53db4dc4e50d5d571344ed55b65efb66a1c4328d | 074409a6dd569b2f0ce3602e7dfda496db08cd01 | refs/heads/master | 2021-09-03T20:31:53.237492 | 2018-01-11T19:55:32 | 2018-01-11T19:55:32 | 117,146,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,021 | py | import parseLEMscores_yeast_mouse as PLS
import parseLEMscores_malaria_20hr as PLS20
from networkbuilder_yeast_mouse import createNetworkFile
import time
def parseLEMfile(bound=0,fname='/Users/bcummins/ProjectData/malaria/wrair2015_v2_fpkm-p1_s19_40hr_highest_ranked_genes/wrair2015_v2_fpkm-p1_s19_90tfs_top25_dljtk_le... | [
"breecummins@gmail.com"
] | breecummins@gmail.com |
9a670955cc54404b943dfc93a7b7692e7f24ee44 | 00b5ad360284adc06f7e7ca9b2d1c2d3a0edd6f9 | /recycle/CRF-C-LR.py | 5571d01c9c38fafa50e8533efab0bdcfe00946ba | [] | no_license | ShenDezhou/CBLSTM | e09d36f609df2b34ace2ae8085d2232039838675 | b5ac4714f8ea14cf2bfd6ce6033eb697ef078686 | refs/heads/master | 2021-04-16T19:47:44.758194 | 2020-07-20T06:21:08 | 2020-07-20T06:21:08 | 249,381,106 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 2019年5月17日
@author: Administrator
'''
from sklearn.feature_extraction.text import CountVectorizer
import os
import codecs
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train... | [
"bangtech@sina.com"
] | bangtech@sina.com |
f91f09dca1cd6719bb83aa81dbb34abf79e48761 | f0b75bd94f133a13f469f429a696f26be3be9862 | /week_4/.history/class_exercise1_20200217114534.py | 797ca5e3e1d3292edc31ea02837aa9efe73bbf2a | [] | no_license | dechavez4/Python_handin_assignments | 023350fabd212cdf2a4ee9cd301306dc5fd6bea0 | 82fd8c991e560c18ecb2152ea5a8fc35dfc3c608 | refs/heads/master | 2023-01-11T23:31:27.220757 | 2020-05-22T10:33:56 | 2020-05-22T10:33:56 | 237,179,899 | 0 | 0 | null | 2022-12-30T20:14:04 | 2020-01-30T09:30:16 | Python | UTF-8 | Python | false | false | 1,235 | py | import numpy as np
a = np.arange(10,30).reshape(4,5)
#exercise 1 table
yellow = a[0,0]
green = a[:3, 2]
teal = a[:, (1,3)]
blue = a[::2, 4]
red = a[0, 1:4]
#print('yellow= ', yellow, 'green= ', green, 'blue= ', blue, 'teal=', teal, 'red=', red)
#exercise 2 cube:
c = np.arange(0, 27).reshape((3, 3, 3)) # = (z, y, ... | [
"chavezgamingv2@hotmail.com"
] | chavezgamingv2@hotmail.com |
bf6d916adf0631e19932c2e5f3d01cddfc18a72e | ee409ec2e421bdac5988fcbe6592b05824b51d58 | /google-datacatalog-qlik-connector/tests/google/datacatalog_connectors/qlik/scrape/engine_api_dimensions_helper_test.py | da581d76cc0bbe1954ca4808e0652eabc188a810 | [
"Apache-2.0",
"Python-2.0"
] | permissive | GoogleCloudPlatform/datacatalog-connectors-bi | 7b11ed25856e83c8bd4b701dd836e0d20815caf7 | 58cc57e12632cbd1e237b3d6930e519333c51f4e | refs/heads/master | 2023-04-01T14:27:24.548547 | 2022-02-12T09:55:56 | 2022-02-12T09:55:56 | 259,464,922 | 34 | 18 | Apache-2.0 | 2022-02-12T09:55:57 | 2020-04-27T21:51:45 | Python | UTF-8 | Python | false | false | 6,322 | py | #!/usr/bin/python
#
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
6c7b94252cf23796c1c645176f35159465ceabce | 33cf73bf603ffe09ad763fca4103e979ed50a4bc | /service_api/cd/NightWorkSpider.py | 43e27efb13f5b1eaca5c928bbe078a11de05959a | [] | no_license | daddvted/excavat0r | f73d05670766d5f47ef5d7e443289851fc172906 | 8c2c56b6395bede4135fd859b1338831345054b6 | refs/heads/master | 2022-06-09T11:51:34.461893 | 2018-12-12T10:06:42 | 2018-12-12T10:06:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,876 | py | """
夜间施工查询
URL: http://www.cdcc.gov.cn/QualitySafeShow/NightWorkList.aspx
"""
import re
import time
import random
import requests
import lxml.html
import mysql.connector
from urllib.parse import urlencode
class NightWorkSpider(object):
USER_AGENTS = [
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20... | [
"ski2per@163.com"
] | ski2per@163.com |
fc3a3a852a14c61bf200443577da2911fd89726f | d954e2f74d1186c8e35be8ea579656513d8d3b98 | /rllib/utils/metrics/learner_info.py | c3d0672ed9b43cee73cde9f6bbcb3ab1634805d6 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vakker/ray | a865de214e60f9e62d61c03ae7ce55ad6030f84c | de238dd626a48a16c8b3cd006f3482db75f63a83 | refs/heads/master | 2023-01-23T22:30:44.839942 | 2022-10-23T01:05:48 | 2022-10-23T01:05:48 | 171,845,804 | 0 | 1 | Apache-2.0 | 2023-01-14T08:01:04 | 2019-02-21T09:54:36 | Python | UTF-8 | Python | false | false | 4,034 | py | from collections import defaultdict
import numpy as np
import tree # pip install dm_tree
from typing import Dict
from ray.rllib.utils.annotations import DeveloperAPI
from ray.rllib.policy.sample_batch import DEFAULT_POLICY_ID
from ray.rllib.utils.typing import PolicyID
# Instant metrics (keys for metrics.info).
LEAR... | [
"noreply@github.com"
] | vakker.noreply@github.com |
3e034c1f69961ac0240eb97d3fa99c041e1ea2e1 | c9803fb67b885214f138a805990d77cf4d714818 | /proof_of_work/deep_q/v0/deepqagentv0.py | 8b0e078ffc9d708f5a50856f8a53fc868448bd46 | [
"MIT"
] | permissive | michaelneuder/parkes_lab_fa19 | e68247ad5253d54f4d6074593a0e63fe61fcfc18 | 18d9f564e0df9c17ac5d54619ed869d778d4f6a4 | refs/heads/master | 2020-07-12T10:32:15.585380 | 2020-01-26T21:45:05 | 2020-01-26T21:45:05 | 204,792,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,374 | py | import copy
from environmentv0 import Environment
from keras.models import clone_model
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam
import matplotlib.pyplot as plt
plt.style.use('seaborn-muted')
import numpy as np
import progressbar
import time
import util
np.rand... | [
"michael.neuder@gmail.com"
] | michael.neuder@gmail.com |
553c8bdce9310f714de89a953254547790cb5798 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_14/23.py | d377a8e795b0b42d56e3300bc9c3260586116e75 | [] | 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 | 728 | py | #!/usr/bin/env python
import gmpy,math
import sys
f=sys.stdin
n=int(f.next())
class Case(object):
def __init__(self):
self.res = "IMPOSSIBLE"
N,M,A = map(int,f.next().split())
if N*M < A:
return
for xb in range(N+1):
for yb in range(M+1):
for... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f264b6aefd6e4f3b76d8adff5912a5ebfda45ef3 | 3d89ff4093d989940e7d0e535343a748adb0a87f | /5690-ClosestDessertCost.py | 8389d0bb9e6e364114ec8116c04b9239786fe5fc | [] | no_license | Scott-Larsen/LeetCode | 129585bb3017fbb59c07c22f74afe4309b46c15d | f644afb34f15cd4e310026a00ccf4149ba8daf10 | refs/heads/main | 2021-06-22T23:02:06.515527 | 2021-06-12T16:30:31 | 2021-06-12T16:30:31 | 204,087,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | # 5690. Closest Dessert Cost
# You would like to make dessert and are preparing to buy the ingredients. You have n ice cream base flavors and m types of toppings to choose from. You must follow these rules when making your dessert:
# There must be exactly one ice cream base.
# You can add one or more types of... | [
"scott@scottlarsen.com"
] | scott@scottlarsen.com |
ff848fbbf9d48acf972b91af78b1a7f35fba2c83 | 53f3eb1730f94f89d9d9d3d80a4182360d4e4420 | /13/utils/scanners.py | 4ed34abbdb482bd8e2e43cd02a596e078e284442 | [
"MIT"
] | permissive | Magnificent-Big-J/advent-of-code-2017 | 964b1da28b4e4f4398a3562baa130d5fdd701e9a | b83a849752c9a045978a0ea5eceb409adbfca0f4 | refs/heads/master | 2021-09-01T06:59:10.604222 | 2017-12-23T14:52:22 | 2017-12-23T14:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | def load_scanners():
layers = {}
layer = 0
with open('input.txt') as f:
for line in f:
data = [int(i) for i in line.split(': ')]
while layer != data[0]:
layers[layer] = {'s': -1, 'd': -1, 'dir': None}
layer += 1
layers[data[0]] = {'... | [
"chris@chrxs.net"
] | chris@chrxs.net |
0a6db6f5367369ae8bb4340f78ad9fdd04f78a82 | 6a1975a11de163ce0e6a5f001df41758bea3686b | /1047. Remove All Adjacent Duplicates In String/Solution_栈.py | 5bd255435f7a6ac7e19295dca77315666a0668f4 | [] | no_license | Inpurple/Leetcode | 7f08e0e500d37913e9244f08ea8f603b3fc1ce88 | df2bcca72fd303100dbcd73d1dfae44467abbb44 | refs/heads/master | 2020-05-20T02:17:08.430557 | 2019-09-22T07:51:28 | 2019-09-22T07:51:28 | 185,327,908 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | class Solution(object):
def removeDuplicates(self, S):
"""
:type S: str
:rtype: str
"""
sta=[]
for i in S:
if sta and sta[-1]==i:
sta.pop()
else:
sta.append(i)
return ''.join(sta)
| [
"noreply@github.com"
] | Inpurple.noreply@github.com |
dcd366a00afd84b0b4dc0d78f57f34f918a3028d | 0fea8a6421fe5f5967f2202910022c2bfd277b4d | /164.生成一个随机的8位密码,要求4个字母和4个数字.py | c4b132ec248696b2fb5da097f6336c9a28df8e14 | [] | no_license | maohaoyang369/Python_exercise | 4dc10ec061aa0de2bcfe59c86be115e135fb3fab | 8fbee8854db76d09e2b1f9365ff55198ddabd595 | refs/heads/master | 2020-04-09T23:04:02.327118 | 2019-09-05T14:49:07 | 2019-09-05T14:49:07 | 160,646,057 | 0 | 2 | null | 2019-03-21T14:44:13 | 2018-12-06T08:50:19 | Python | UTF-8 | Python | false | false | 411 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# 生成一个随机的8位密码,要求4个字母和4个数字
import random
import string
spam_num = random.choices("0123456789", k=4)
print(spam_num)
spam_letters = random.sample(string.ascii_letters, 4)
print(spam_letters)
spam = spam_num+spam_letters
print(spam)
spam_num_letters = random.shuffle(spam)
... | [
"372713573@qq.com"
] | 372713573@qq.com |
07ed60f2ac262214e2aa84b74db7f7fd479050c3 | 5cc204e2ecb9a756127e7c71633a1edcdb3e989b | /pylmp/InKim/BGF_mergeBgf.py | 4e3d973e087898e5159c36b8879389f57020e8c7 | [] | no_license | hopefulp/sandbox | 1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8 | 4d26767f287be6abc88dc74374003b04d509bebf | refs/heads/master | 2023-06-27T17:50:16.637851 | 2023-06-15T03:53:39 | 2023-06-15T03:53:39 | 218,209,112 | 1 | 0 | null | 2022-09-13T13:22:34 | 2019-10-29T05:14:02 | C++ | UTF-8 | Python | false | false | 3,415 | py | #!/opt/applic/epd/bin/python
import sys, re, string, getopt, optparse, math, time
from os import popen
option = ""; args = ""; bgf_file = ""; mod_file = ""; out_file = ""
usage = """
Usage: mergeBGF.py -b bgf1_file -c bgf2_file -o out_file
"""
options, args = getopt.getopt(sys.argv[1:], 'hb:c:o:', ['help','bgf1=','b... | [
"hopefulp@gmail.com"
] | hopefulp@gmail.com |
4b33c4af014c182b96c8f0f664c28eb3b5f7d2b0 | 50d6a01aac56215c166d5659196dbcbcbf48c5d2 | /mongo/src/conn.py | 6bbf8572d94f3e70610b34726d5e16f6696228d2 | [] | no_license | HackUPCCrew/MachineLearning | c66541709165382b3c1e15c5d51bc2b068f57948 | 7697dcdf73a8e0a24f8793118612cbbf25653153 | refs/heads/master | 2021-07-14T01:25:59.521438 | 2017-10-17T19:35:45 | 2017-10-17T19:35:45 | 106,882,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | #!/usr/bin/env python3
from pymongo import MongoClient
from pprint import pprint
client = MongoClient("mongodb://34.224.70.221:8080")
db=client.admin
serverStatusResult=db.command("serverStatus")
pprint(serverStatusResult)
| [
"krishnakalyan3@gmail.com"
] | krishnakalyan3@gmail.com |
5c9f74d4f9302e90ca39b1dd80dce303ed88f773 | aedd3aeadfb13eda4489d26ee3d9762598878936 | /leetcode/1281. 整数的各位积和之差.py | f67fa9eb3bba6026574b965d007dd6e0b0c201b1 | [] | no_license | AnJian2020/Leetcode | 657e8225c4d395e8764ef7c672d435bda40584c7 | cded97a52c422f98b55f2b3527a054d23541d5a4 | refs/heads/master | 2023-03-26T16:25:36.136647 | 2021-03-26T07:04:10 | 2021-03-26T07:04:10 | 283,940,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | class Solution:
def subtractProductAndSum(self, n: int) -> int:
numList=list(str(n))
sum=0
product=1
for item in range(len(numList)):
numList[item]=int(numList[item])
sum+=numList[item]
product*=numList[item]
result=product-sum
ret... | [
"xuhao2018@foxmail.com"
] | xuhao2018@foxmail.com |
9b4871a27d15086682164ca0e12198fdb16cab67 | a4344e89e7f467d8bfd3f000f8cced17e36bfd70 | /predict.py | 3a781070190775ab4d7ab85cabf0b6a3f4912cfa | [] | no_license | Schnei1811/InsectClassifier | 5b8d90e21dd23857af82aa26d048591bb70a2cf5 | b8c22a103b7f2099058f4994681a8b2babc147a2 | refs/heads/master | 2023-04-18T08:51:07.753666 | 2021-03-14T03:07:49 | 2021-03-14T03:07:49 | 347,531,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,363 | py | import argparse
import cv2
from glob import glob
from tqdm import tqdm
import numpy as np
import os
import torch, torchvision
import torch.nn as nn
from torchvision import models, transforms
import json
import csv
# Number of classes in the dataset
img_size = 224
class GlobalAvgPool2d(nn.Module):
def forward (sel... | [
"stefan871@gmail.com"
] | stefan871@gmail.com |
36bd450f476d6d992245f98f6ee62e8f0459c471 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 10082 - WERTYU/main.py | f4cf71c10e1e6bc76858ecb5779421a0e7b80c6f | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | '''
Created on Jun 18, 2013
@author: Yubin Bai
All rights reserved.
'''
import time
from multiprocessing.pool import Pool
parallelSolve = False
INF = 1 << 30
def solve(par):
r1 = '`1234567890-' + 'qwertyuiop[' + 'asdfghjhkl' + 'zxcvbnm,.'
r2 = '1234567890-=' + 'wertyuiop[]' + 'sdfghjhkl;' + 'xcvbnm,./'
... | [
"xenron@outlook.com"
] | xenron@outlook.com |
14da669856411f17a43c79936abfc07ed1dc2c1c | d9e0406c275417791024f97abc0600c96910633f | /question/migrations/0005_auto_20210510_1025.py | 549c6daf667227fa8927f506dd141be48c18de81 | [] | no_license | lesage20/vuejs | 46c75e7528ae6e9834f351ed4f814869fae417ac | da0522280dd1e6cf858c90758f38c4da963785a1 | refs/heads/main | 2023-04-19T12:20:54.672778 | 2021-05-12T08:42:34 | 2021-05-12T08:42:34 | 366,649,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 3.1.7 on 2021-05-10 10:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('question', '0004_question_titre'),
]
operations = [
migrations.AlterField(
model_name='question',
name='prop',
... | [
"angezanou00@gmail.com"
] | angezanou00@gmail.com |
b6b1f4eed9917b484d8c00356460fcc6a66f2a3b | 04e080a00f37a3501c5060380d65c5a6cd669d90 | /thonnycontrib/m5stack/esp8266_api_stubs/uhashlib.py | 02e34e1294866de8ac040af1dc3d2d19287c2acc | [
"MIT"
] | permissive | thonny/thonny-m5stack | 473a2876e72b88d283d8b9d64189028ef7fea111 | a502579ad5e264342ae0bc2c554c78527053693b | refs/heads/master | 2020-04-20T14:57:15.605699 | 2019-11-18T22:28:36 | 2019-11-18T22:28:36 | 168,914,658 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
class sha1:
''
def digest():
pass
def update():
pass
class sha256:
''
def digest():
pass
def update():
pass
| [
"aivar.annamaa@gmail.com"
] | aivar.annamaa@gmail.com |
199dc7283ca9dfcf42146c61abe183d9955ad52c | 84dbd7dfdc2c63433b2088dd3fe711a07cf8b3b8 | /week13/day1/daily/phonedir/views.py | e34357f2c7c7e8e170399766febe68bd94355371 | [] | no_license | jfrance00/di-exercises | 623bebeddd3ff3ed062e1ad5097f15f7ed002362 | bbc97714c26b41ed76dfed35df5780e3aa482b5e | refs/heads/master | 2022-11-27T23:31:59.742231 | 2020-07-29T12:20:01 | 2020-07-29T12:20:01 | 257,882,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import flask
import wtforms as wtf
from . import forms, models
from . import app, db
@app.route('/', methods=['GET', 'POST'])
def index():
form = forms.SearchNameOrNumber()
return flask.render_template('index.html', form=form)
@app.route('/add-input', methods=['GET', 'POST'])
def add_input():
form = for... | [
"jfrance00@gmail.com"
] | jfrance00@gmail.com |
f8eb219a525fd3d56b4f5fae1875cccf536032f1 | ee7ca0fed1620c3426fdfd22e5a82bba2a515983 | /dsn_purchase_order/models/purchase.py | 843a5a966c61fcaa6cf586e164ee2d06c78cc085 | [] | no_license | disna-sistemas/odoo | 318d0e38d9b43bea56978fe85fc72850d597f033 | 0826091462cc10c9edc3cc29ea59c417f8e66c33 | refs/heads/8.0 | 2022-03-08T19:01:21.162717 | 2022-02-15T13:06:26 | 2022-02-15T13:06:26 | 99,210,381 | 0 | 5 | null | 2019-07-24T08:49:58 | 2017-08-03T08:36:55 | Python | UTF-8 | Python | false | false | 5,912 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2012 OpenERP SA (<http://openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"sistemas@disna.com"
] | sistemas@disna.com |
b93664d963b69f1fac7d321eef6d9a3d5390debd | ad357cfbec64afb8f4cc4043b212996768f9755c | /api/barriers/migrations/0038_auto_20200224_1622.py | 4bd3709007de448df0b1ecfc265d0b5a0b6953ae | [
"MIT"
] | permissive | uktrade/market-access-api | 6b4680e6455eb5c25480ccd3e3d9445654269f36 | 4da26d1be53843d22411577409d9489010bdda09 | refs/heads/master | 2023-08-30T14:47:10.373148 | 2023-08-29T13:58:08 | 2023-08-29T13:58:08 | 131,856,014 | 2 | 3 | MIT | 2023-09-14T08:04:42 | 2018-05-02T13:38:37 | Python | UTF-8 | Python | false | false | 968 | py | # Generated by Django 2.2.8 on 2020-02-24 16:22
from django.db import migrations
def populate_archived_reason(apps, schema_editor):
BarrierInstance = apps.get_model("barriers", "BarrierInstance")
BarrierInstance.objects.filter(
archived=True,
archived_reason__isnull=True,
).update(archive... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
d38479e4f3d5d36e535a5c308876ea91eff7adfb | aac11cb909c13b0f24e90e18bca098d0f52c048d | /makewiki/settings.py | e58696ce2984e1f9b308be7eea134585c125558a | [
"MIT"
] | permissive | LukazDane/makewiki_v2 | 7add2002bc9c9813a66461305b56b3b92ffe3c36 | d71790c99951ed47d202e5a00d1eb7480b8552bd | refs/heads/master | 2022-04-30T00:08:06.716424 | 2020-01-08T01:11:26 | 2020-01-08T01:11:26 | 221,078,482 | 0 | 0 | MIT | 2022-04-22T22:44:16 | 2019-11-11T22:04:27 | Python | UTF-8 | Python | false | false | 4,100 | py | """
Django settings for makewiki project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"deandrevidal@aol.com"
] | deandrevidal@aol.com |
51eb6471c303f10aa5f7d41241c0f542184c8c79 | 5d0e76e3c741adc120ce753bacda1e723550f7ac | /724. Find Pivot Index.py | d578d962c4b85d3f422ade4922f5502c890f4700 | [] | no_license | GoldF15h/LeetCode | d8d9d5dedca3cce59f068b94e2edf986424efdbf | 56fcbede20e12473eaf09c9d170c86fdfefe7f87 | refs/heads/main | 2023-08-25T12:31:08.436640 | 2021-10-20T04:36:23 | 2021-10-20T04:36:23 | 392,336,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | class Solution:
def pivotIndex(self, nums: List[int]) -> int:
right_sum = sum(nums)
left_sum = 0
prev = 0
for i in range(len(nums)) :
left_sum += prev
prev = nums[i]
right_sum -= nums[i]
if left_sum == right_sum :
return... | [
"todsapon.singsunjit@gmail.com"
] | todsapon.singsunjit@gmail.com |
e6361dfa82714822273013df5ab2d96aacb6a6a4 | f366c19ce822a3e8f3cd5f670b25c6fa54322d0b | /python_udemy/introducao-python/iterando-strings-while.py | 7f9c554e14042ea18c66b656f267db6dbad27279 | [] | no_license | marcelomatz/py-studiesRepo | b83875a366010c9a60bc15d853fcf81c31cee260 | ce99014228f00d8c73cc548dd6c4d5fedc3f1b68 | refs/heads/main | 2023-09-05T00:03:47.712289 | 2021-06-15T09:43:27 | 2021-06-15T09:43:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # iterar é passar por cada um dos elementos de uma string
# se tem índice é iterável
frase = 'o rato roeu a roupa do rei de roma'
tamanho_frase = len(frase)
contador = 0
nova_string = ''
while contador < tamanho_frase:
letra = frase[contador]
if letra == 'r':
nova_string += 'R'
else:
nova_... | [
"agenciahipster@gmail.com"
] | agenciahipster@gmail.com |
dc910c5e544db2555849a7d275f3d49ddc8c3178 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/nckkem001/question1.py | db30afcae4f531091f93b33fe973fe4a0f450d70 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | """Program to analyse student marks from source file and determine which students
are advised to consult an advisor.
Kemeshan Naicker
11 May 2014"""
#Prompt user for name of source file.
file = input("Enter the marks filename:\n")
#Open file for processing
txtfile = open(file, "r")
#Read file into a str... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
70ddfb5469533e9612ff63f5df784bca6e0d927f | 27a31ec197f5603fe6fb438171a78bb381bf43b1 | /examples/cifar10_cnn.py | f296605e6cfb4b38459aefcfd189cdd36da0de7b | [
"MIT"
] | permissive | seba-1511/gsoc15-demo | 42152c335e6eb8e91479dee4ab0db5376ba55ec4 | 7fa542f33fdb39d73e2b11318c046ecf35fb9bcf | refs/heads/master | 2021-01-18T14:34:28.686048 | 2015-04-20T02:26:10 | 2015-04-20T02:26:10 | 33,458,769 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.optimizers import SGD, Adadelta, Adagrad
from ke... | [
"seba-1511@hotmail.com"
] | seba-1511@hotmail.com |
b0343599369edefd5045f582b653e85406f9da25 | 5ce2e7ac259fa4482a9b5cb668346cbf14bc9a2d | /src/plt_roc.py | 223fee4ae7c5666b1d79a3ea41deda5ae39b1a20 | [] | no_license | Sapphirine/Analysis-on-Children-Learning-Performance | 708e65d1a0330fec6c873a5b0a96b9198b9fe7a4 | da522fc9019238c8cc332045b40541578ffc6ba0 | refs/heads/master | 2020-11-26T17:44:55.074527 | 2019-12-20T00:55:30 | 2019-12-20T00:55:30 | 229,163,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | import os
from src.model import model
def clear_temp():
for i in range(1, 4):
folder_name = 'result_' + str(i)
file_list = [f for f in os.listdir("static/temp/" + folder_name + '/') if f.endswith(".png")]
for f in file_list:
os.remove("static/temp/" + folder_name + '/'... | [
"noreply@github.com"
] | Sapphirine.noreply@github.com |
2435312c8826faf2062cab3201f18f92c06d0d66 | 1561c6b62982c33c2b9b028af1369832d7c190c3 | /synaptor/seg_utils/relabel.py | 91343bf2a92925a627505864733973550b225989 | [
"MIT"
] | permissive | nkemnitz/Synaptor | b60f33e51ed045e7cdaf18465af3d80edaca1cf3 | 40618786d5b762eb3877ecac49ff310f3e6f892d | refs/heads/master | 2020-05-06T15:43:38.584607 | 2019-04-07T17:31:57 | 2019-04-07T17:31:57 | 180,205,457 | 1 | 0 | NOASSERTION | 2019-04-08T18:05:03 | 2019-04-08T18:05:03 | null | UTF-8 | Python | false | false | 2,654 | py | import numpy as np
from . import describe
from . import _relabel
def relabel_data(d, mapping, copy=True):
"""
Relabel data according to a mapping dict.
Modify the entries of :param:d according to a :param:mapping dictionary.
If a value within :param:d doesn't match a key for :param:mapping,
leav... | [
"nturner.stanford@gmail.com"
] | nturner.stanford@gmail.com |
2f847646f43a261924fc84f50fb8e1f46ebf1b26 | 5b01236940cb3b1bb2e987797a0e07868133a85b | /app/error.py | bd23e12d9065af85513cc0e57d88c9b0ff65e2c4 | [] | no_license | dicksonkariuki/Watchlist | 47cf68c45d1ecd810c986a12cb8934ab8453e09c | 2089a577ff6b8bf07d14232658ce9671b6ebb899 | refs/heads/master | 2020-08-08T19:03:24.766702 | 2019-10-17T07:28:38 | 2019-10-17T07:28:38 | 213,634,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from flask import render_template
from app import app
@app.errorhandler(404)
def four_Ow_four(error):
"""
Function to render the 404 page
"""
return render_template ('fourOwfour.html'),404 | [
"dicksonkariuki4@gmail.com"
] | dicksonkariuki4@gmail.com |
d9b3012794241a6b430ddc7807eaaf0d74e8c56f | d8ea695288010f7496c8661bfc3a7675477dcba0 | /examples/raspberry_pi/relay.py | 01f0a68e794f40467c91592b842f2802038c96ef | [] | no_license | dabolau/demo | de9c593dabca26144ef8098c437369492797edd6 | 212f4c2ec6b49baef0ef5fcdee6f178fa21c5713 | refs/heads/master | 2021-01-17T16:09:48.381642 | 2018-10-08T10:12:45 | 2018-10-08T10:12:45 | 90,009,236 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import RPi.GPIO as GPIO
import time
def relay(i=0):
# 设置针脚模式为(BOARD)
GPIO.setmode(GPIO.BOARD)
# 禁用警告
GPIO.setwarnings(False)
# 设置针脚
PIN = 40
# 设置针脚为输出模式
GPIO.setup(PIN, GPIO.OUT)
# 设置开关(0/1),0表示关,1表示开。
INT = i
# 开(闭合)
if INT == 1:
GPIO.output(PIN, GPIO.HIGH) #... | [
"dabolau@qq.com"
] | dabolau@qq.com |
c6eb011206a6832c3dd908dc6cb075ac850cb450 | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/binary-tree-right-side-view.py | c8b32518fe78924faa153d9767c0efaaf96c2cc5 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 1,306 | py | # Time: O(n)
# Space: O(h)
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
# @param root, a tree node
# @return a list of integers
def rightSideView(self, root):
result = []
... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
be894f7257499ff10f4f259ce795d3033f32e04e | b1f748d761751e89f62cf5b8a2b13adac5bf3a29 | /metermaster/urls.py | dcdb41d64262561d4761bce0daa60a73a5e3078d | [] | no_license | sangeeth-subramoniam/buildingmanagementheroku | 7b77be693fa73dbd2dff9c816bf50daf1e501029 | db26de549f7088d2ff80a303abeeaaa548d43e0b | refs/heads/master | 2023-07-08T13:46:06.384694 | 2021-08-10T06:50:14 | 2021-08-10T06:50:14 | 392,492,925 | 0 | 0 | null | 2021-08-04T02:46:57 | 2021-08-04T00:14:10 | Python | UTF-8 | Python | false | false | 409 | py | from django.urls import path,include
from . import views
app_name = 'metermaster'
urlpatterns = [
path('', views.home , name = "home"),
path('metermaster_update_form/<int:pk>', views.updatemeterForm , name = 'updateMeterForm'),
path('metermaster_delete_form/<int:pk>', views.deletemeterForm , name = 'delete... | [
"s-sangeeth-k@sicis.co.jp"
] | s-sangeeth-k@sicis.co.jp |
1999c84509f04a543cf1c61c698ae75b971dd835 | f3ed1631f5cfb10ec3c03974a04f73e1e8dd5829 | /handofcats/middlewares/__init__.py | 2a4c39ee259addb6db2d9c2c2ba965c6c9a45062 | [] | no_license | tell-k/handofcats | 9839e20eb3731890a16dcb6d864b7fc13ee80032 | 135e9abac83db318a7b07337191a1d4f699f7ef2 | refs/heads/master | 2020-12-25T22:29:35.495296 | 2016-01-10T00:29:30 | 2016-01-10T00:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | # -*- coding:utf-8 -*-
from functools import wraps
class MiddlewareApplicator(object):
def __init__(self, fns):
self.middlewares = [middlewarefy(fn) for fn in fns]
def register(self, fn):
self.middlewares.append(middlewarefy(fn))
def __call__(self, fn):
def call(*args, **kwargs):... | [
"podhmo+altair@beproud.jp"
] | podhmo+altair@beproud.jp |
3588b3df70f9fbd1b7167ef3bfa267d162441634 | a487691662edb19792007571fc084e68f180af0a | /2020/mapreduceInPython/mapper.py | d3bd22bddd279da6ca99da7d3585b8bd1619f2ba | [] | no_license | eiahb3838ya/PHBS_BigData_2019 | a74231817b1114079961c7d4dba8b7adc2794cad | 91b71d229188cf750e4acf093615bfba5e27ca96 | refs/heads/master | 2021-07-15T06:23:43.505842 | 2020-11-12T03:32:29 | 2020-11-12T03:32:29 | 225,119,161 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 4 19:31:24 2020
@author: eiahb
"""
import sys
from multiprocessing import Pool
import time
def main():
# 读入每行input
for line in sys.stdin:
aRecord = line.split(",")
stockTimeStamp = "{}_{}".format(aRecord[0], aRecord[1][:12])
... | [
"eiahb3838ya@gmail.com"
] | eiahb3838ya@gmail.com |
c4a51811da26e90ea2d38213de6bbed6a36e762f | fd60c2370bf5fb2355c4b30a30ad5ce9c62bc10d | /orc/arp.py | 6e98cd52efe755a4ea35da057dff2e7af733f3f8 | [] | no_license | hecanjog/hcj.py | 08e43edf62330e1b9e0448edf549c7d18e2e9699 | e42538cd48499bb9e9c11321b2f9db56f15486b4 | refs/heads/master | 2021-01-21T04:54:46.693980 | 2020-01-24T02:03:06 | 2020-01-24T02:03:06 | 19,010,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | from pippi import dsp
from pippi import tune
from hcj import fx
midi = {'pc': 3}
def play(ctl):
param = ctl.get('param')
lpd = ctl.get('midi').get('pc')
lpd.setOffset(111)
key = 'g'
#bd = dsp.read('/home/hecanjog/sounds/drums/Tinyrim2.wav').data
#bd = dsp.read('/home/hecanjog/sounds/drums/... | [
"erik@hecanjog.com"
] | erik@hecanjog.com |
ba436d0fe6e4b79670c1531daca1fcb18e165398 | 48fcd5b9203c5f34dcad9483259c0f3d46f5d48b | /codeacademy-python3/base_exponent.py | 17a5f5046f4816dd6ad60e798125ea7c861562f1 | [] | no_license | ssaulrj/codes-python | 438dd691815d0a688d264928eb07187ba30c2138 | 04b75b001de60a5e202ad373f3379864753ce203 | refs/heads/master | 2022-11-17T11:40:18.883096 | 2020-07-06T00:57:58 | 2020-07-06T00:57:58 | 234,440,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # Write your large_power function here:
def large_power(base, exponent):
if base**exponent > 5000:
return True
else:
return False
# Uncomment these function calls to test your large_power function:
print(large_power(2, 13))
# should print True
print(large_power(2, 12))
# should print False
| [
"noreply@github.com"
] | ssaulrj.noreply@github.com |
1032cddc93ebd229103c6e5a1e6c3da61571fa57 | 4c6cb7019d06a1c0c588bb98fb359a536c8ae8ea | /04-03/todolist/buy/models.py | 05fdbd3c8532d624dc018c762eb55337dd07c3ec | [] | no_license | hanifmisbah/tugas_bersama | 2be54f4b386a470b04ca29aa293246985b44707a | 4bd4e195b56090ca9256b9e319bb34b92a86d032 | refs/heads/master | 2022-12-19T03:15:33.085665 | 2020-09-10T09:07:56 | 2020-09-10T09:07:56 | 294,304,050 | 0 | 0 | null | 2020-09-10T04:37:28 | 2020-09-10T04:37:28 | null | UTF-8 | Python | false | false | 229 | py | from django.db import models
# Create your models here.
class Buy(models.Model):
name = models.TextField(default='')
brg = models.TextField(default='')
jmlh = models.TextField(default='')
price = models.TextField(default='') | [
"hanifmisbah97@gmail.com"
] | hanifmisbah97@gmail.com |
d6a4beafdd972f88c046bce2fb861e95ccfb9b20 | ea767918d1391d950714d3fafabf65330bade863 | /odin/bay/distributions/quantized.py | bf60b13f432ab1ab8ac1ca5af1b42c52e44d16aa | [
"MIT"
] | permissive | tirkarthi/odin-ai | f5bb33d02047025029891e1282b9bd389eb4eb07 | 7900bef82ad8801d0c73880330d5b24d9ff7cd06 | refs/heads/master | 2023-06-02T20:15:11.233665 | 2020-09-25T09:57:28 | 2020-09-25T09:57:28 | 298,744,248 | 0 | 0 | MIT | 2020-09-26T05:29:11 | 2020-09-26T05:29:10 | null | UTF-8 | Python | false | false | 1,797 | py | from __future__ import absolute_import, division, print_function
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow_probability.python.bijectors import exp as exp_bijector
from tensorflow_probability.python.distributions import (
NegativeBinomial, Normal, QuantizedDistribution, TransformedDistrib... | [
"nickartin13@gmail.com"
] | nickartin13@gmail.com |
c6281301f2104fda3c8e84f6c963abd6f8f8925d | fb84fa89744e25a6842e5a22cc9aa35f17cb9c79 | /pyquant/marketdata/spot.py | 845f68291cb39b90413809921767447a73b176ad | [] | no_license | masa4u/pyquant-xmlrpc | dbcf92d257cb89d033f9c7811799126412bca9f8 | 54565f0e71fa819a69ba3e3b92a012dbf5a8046f | refs/heads/master | 2016-09-06T10:47:01.093006 | 2015-03-30T02:00:16 | 2015-03-30T02:00:16 | 30,795,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from pyquant.marketdata.marketdata import MarketDataType
from pyquant.marketdata.single import MarketDataSingle
class MarketDataSpot(MarketDataSingle):
def __init__(self):
super(MarketDataSpot, self).__init__()
print MarketDataSpot().data_type
print MarketDataSpot().value
if __name__ == '__main__':
... | [
"masa4u@gmail.com"
] | masa4u@gmail.com |
37919b373e29fe85008749e2a8c1d126d697b1f8 | 6c677098c78b3f410019ac26f116cd8539949d35 | /utils/money.py | b1e72ef7c897fae87de3c441e35f2689b539d670 | [
"MIT"
] | permissive | Pythonian/bsawf | eb05dcf7eeb3fab10dad269f9018fc3aa56c967e | 3e422a81cfb1b157119473c20b94a9a01f8b9672 | refs/heads/master | 2023-05-27T20:32:25.965703 | 2022-03-16T14:57:26 | 2022-03-16T14:57:26 | 253,907,876 | 0 | 0 | MIT | 2023-05-02T20:53:12 | 2020-04-07T20:44:53 | Python | UTF-8 | Python | false | false | 375 | py | def cents_to_dollars(cents):
"""
Convert cents to dollars.
:param cents: Amount in cents
:type cents: int
:return: float
"""
return round(cents / 100.0, 2)
def dollars_to_cents(dollars):
"""
Convert dollars to cents.
:param dollars: Amount in dollars
:type dollars: float
... | [
"prontomaster@gmail.com"
] | prontomaster@gmail.com |
f280c39f7214cc27bd841b0e53dbfb11c472c4c1 | a9672f0eb530d0d550070b48fe9d324063ace40b | /dataset/extend_existing_dataset.py | 483a1e4831792d7f6b9b1a2af81868d98beb345d | [
"BSD-3-Clause"
] | permissive | SandUhrGucker/Voice-Cloning-App | 7e025e5493ec0db723e057478e4a11080ed327a3 | 58488aa5690fcb94c778fb6f4d4d909b9f223c72 | refs/heads/main | 2023-07-31T13:10:53.383959 | 2021-09-20T18:53:59 | 2021-09-20T18:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | import argparse
import logging
import os
from os.path import dirname, abspath
import sys
sys.path.append(dirname(dirname(abspath(__file__))))
from dataset.audio_processing import convert_audio
from dataset.clip_generator import extend_dataset, MIN_LENGTH, MAX_LENGTH
from dataset.analysis import save_dataset_info
de... | [
"bandrew01@qub.ac.uk"
] | bandrew01@qub.ac.uk |
c8266c779bd15012980580dab2a2b0f598c212e9 | 38ba13df9ea6e53c7b924cad1f3bea2de59c7a6a | /nibbler/trading/collectors/AlgoTrader/utils/__init__.py | 35df5938672fc9ea34ff2f1b55ef71e5816f2d1b | [] | no_license | JizzFactoryEmployee/nibblerppman | 0fbc1ce662cf8b4868b41a97291250fae29dc41d | 160e557578a3e8a614450354f6ade233d32b052f | refs/heads/master | 2022-11-14T01:10:31.743000 | 2020-07-04T01:21:52 | 2020-07-04T01:21:52 | 273,835,770 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | time_frames = {
'1m': 60*1000,
'5m': 60*1000,
'15m': 60*1000,
'1h': 60*60*1000,
'2h': 2*60*60*1000,
'4h': 4*60*60*1000,
'12h': 12*60*60*1000,
'd': 24*60*60*1000,
'w': 7*24*60*60*1000,
'M': 30*24*60*60*1000,
}
from .function_time_frame_multiplier import (
time_frame_mex, time... | [
"52958901+JizzFactoryEmployee@users.noreply.github.com"
] | 52958901+JizzFactoryEmployee@users.noreply.github.com |
c7486e10f1985261033d2b69fb7b594037405208 | 8d3dddecd11126f51440a4aebe8913d90b6d4e0e | /attractions_qunar/attractions_qunar/pipelines.py | d8ef0ed2a585de97f717b11bada2a590c8da4982 | [] | no_license | ivanliu1989/routes-scraper | 108168c4225df70172df4a41869e650efd0ff0dc | 251e03a68d09fd311f0e49545001b777eb8460df | refs/heads/master | 2020-04-22T16:05:11.328359 | 2019-03-03T08:24:38 | 2019-03-03T08:24:38 | 170,497,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class AttractionsQunarPipeline(object):
def process_item(self, item, spider):
return item
| [
"ivan.liuyanfeng@gmail.com"
] | ivan.liuyanfeng@gmail.com |
647ee5c0365253201ebc228f53866ed68e2dac87 | f55d730de1f9740aa8cc56b5d404b454dc560963 | /todo_app/todo/apps.py | 26ae8991b56b54f8890c2dd09e5b7dc38b2cd723 | [] | no_license | momchilantonov/ToDoApp | 4857e5d1c7f9d5ae8b2051f0114d1e59666d9a54 | 546032b977658ef1b5767abc049e4cced1840def | refs/heads/main | 2023-06-01T03:02:37.347426 | 2021-06-23T10:07:11 | 2021-06-23T10:07:11 | 374,223,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.apps import AppConfig
class TodoConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'todo_app.todo'
| [
"eng.antonov@gmail.com"
] | eng.antonov@gmail.com |
866d59ff1f0d2711412caf59b1629bc830a0a8ba | 7486b3af4d4413a96b3e0bf76f776cd8605d7c05 | /WonyJeong/programmers/level2/124.py | 3c76022eaa94e98f79a36ece320078fa5e57430b | [] | no_license | WonyJeong/algorithm-study | 7146e18ec9a3d7f46910e31890768b2e37f8b9b4 | dd659bf75c902800bed226d392d144b691d8e059 | refs/heads/main | 2023-03-31T14:38:47.365622 | 2021-04-02T01:35:36 | 2021-04-02T01:35:36 | 334,309,434 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # def solution(n):
# answer = ""
# arr = ["4", "1", "2"]
# while n:
# answer = arr[n % 3] + answer
# n = n // 3 - (n % 3 == 0)
# return answer
# for i in range(1, 15):
# print(i, " : ", solution(i))
# 9494
import sys
input = sys.stdin.readline
if __name__ == "__main__":
N = ... | [
"59948675+WonyJeong@users.noreply.github.com"
] | 59948675+WonyJeong@users.noreply.github.com |
5454e587a38bd0c25fc6e81b25d9de677ba6d29e | ef3a7391b0a5c5d8e276355e97cbe4de621d500c | /venv/Lib/site-packages/wasabi/tables.py | a6c71603a2adcb97ef07d9afa29efc2944a607c1 | [
"Apache-2.0",
"MIT"
] | permissive | countBMB/BenjiRepo | 143f6da5d198ea6f06404b4559e1f4528b71b3eb | 79d882263baaf2a11654ca67d2e5593074d36dfa | refs/heads/master | 2022-12-11T07:37:04.807143 | 2019-12-25T11:26:29 | 2019-12-25T11:26:29 | 230,090,428 | 1 | 1 | Apache-2.0 | 2022-12-08T03:21:09 | 2019-12-25T11:05:59 | Python | UTF-8 | Python | false | false | 3,941 | py | # coding: utf8
from __future__ import unicode_literals, print_function
from .util import to_string, zip_longest, basestring_
ALIGN_MAP = {"l": "<", "r": ">", "c": "^"}
def table(
data,
header=None,
footer=None,
divider=False,
widths="auto",
max_col=30,
spacing=3,
aligns=None,
mu... | [
"bengmen92@gmail.com"
] | bengmen92@gmail.com |
c890957d28cadac134e3484f1a486d85c08e3454 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_buffets.py | 235a40b7167bfe4459bba376990f1586441cf568 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from xai.brain.wordbase.verbs._buffet import _BUFFET
#calss header
class _BUFFETS(_BUFFET, ):
def __init__(self,):
_BUFFET.__init__(self)
self.name = "BUFFETS"
self.specie = 'verbs'
self.basic = "buffet"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1be6d2a87f5e4bc6b2fb71d1525a1f78a6dadd41 | e04dbc32247accf073e3089ed4013427ad182c7c | /sumitb2019/C.py | 3653705f97554a609bfbf09a858d5d307f6c71a6 | [] | no_license | twobooks/atcoder_training | 9deb237aed7d9de573c1134a858e96243fb73ca0 | aa81799ec87cc9c9d76de85c55e99ad5fa7676b5 | refs/heads/master | 2021-10-28T06:33:19.459975 | 2021-10-20T14:16:57 | 2021-10-20T14:16:57 | 233,233,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # from math import factorial,sqrt,ceil,gcd
# from itertools import permutations as permus
from collections import deque,Counter
# import re
# from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize=1000)
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)
# import ... | [
"twobookscom@gmail.com"
] | twobookscom@gmail.com |
9be1a32eae5acfc9bd5b8570c0052eb586a1891e | 956fd28ea7a7ec83b62cd85691c512e735e60b3a | /bin/azure/mgmt/datamigration/models/project_task_properties_py3.py | cbd010514ded3c5031944e6c904da5df706b5e3a | [
"MIT"
] | permissive | zdmc23/bash-lambda-layer | 5517a27809d33801c65504c11f867d0d511b2e1c | e762df0189cfb894dab2d96bae1655b8857d5efb | refs/heads/master | 2021-01-05T02:32:20.765963 | 2020-02-16T09:41:47 | 2020-02-16T09:41:47 | 240,846,840 | 0 | 0 | MIT | 2020-02-16T06:59:55 | 2020-02-16T06:59:54 | null | UTF-8 | Python | false | false | 2,820 | 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 ... | [
"191707+zdmc23@users.noreply.github.com"
] | 191707+zdmc23@users.noreply.github.com |
381379527748a48ff699ba2f1009df2440fa6a78 | 906b969c383a440940af12f0e1cc01daedc475aa | /data_store/mongo_paginator.py | 07c4ecb439f02eb6a36d85a57a4e659afb6101f2 | [] | no_license | ok-water-survey/api | 6f11a1ac2bb0f4b6822c26fae684447a726bc24b | 3e39910ae9c09d208ce2a855a8920d659ed7049b | refs/heads/master | 2021-01-22T03:54:27.868634 | 2015-01-14T16:53:16 | 2015-01-14T16:53:16 | 25,709,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | __author__ = 'mstacy'
import ast
import math
import collections
from ordereddict import OrderedDict
from rest_framework.templatetags.rest_framework import replace_query_param
def MongoDataPagination(DB_MongoClient, database, collection, query=None, page=1, nPerPage=None, uri=''):
db = DB_MongoClient
if query... | [
"mbstacy@gmail.com"
] | mbstacy@gmail.com |
805c58d57c9fad852f9e5bb34ff321d60b1010a5 | 11f5853044bdfe25c85951b5c540bf759478c7d0 | /test/test_sequence_context.py | 76aa96db3e0a72c7c035b926cc88ed29fd55fb41 | [
"Apache-2.0"
] | permissive | alexanderwhatley/pepnet | 2dbe894d31cfeef4b7404092ad6034640a33e791 | 82a3087262917d4780ed8facbd49b766f2ff9200 | refs/heads/master | 2020-04-21T06:03:12.297328 | 2019-02-06T20:55:50 | 2019-02-06T20:55:54 | 169,356,393 | 0 | 0 | Apache-2.0 | 2019-02-06T04:49:07 | 2019-02-06T04:49:06 | null | UTF-8 | Python | false | false | 745 | py | from pepnet import Predictor, SequenceInput, Output
import numpy as np
def test_model_with_fixed_length_context():
model = Predictor(
inputs={
"upstream": SequenceInput(length=1, variable_length=False),
"downstream": SequenceInput(length=1, variable_length=False),
"pept... | [
"alex.rubinsteyn@gmail.com"
] | alex.rubinsteyn@gmail.com |
c2cd7ebdf774bed98d83547aca4237ab5a6368de | e76fda1fba459456c4bc105e7a6dcc6277a1a26c | /django_cv/blog/views.py | 8c57056ca229de5098c6a2de02c156e4b20facf7 | [] | no_license | lafabo/i-love-tutorials | 6bb2a684a201975ab523d9721b02761a6269853c | eafcd47fd62e770107c7e1f08e0d6d60a539f1ec | refs/heads/master | 2021-01-21T04:46:56.365199 | 2016-07-20T17:38:03 | 2016-07-20T17:38:03 | 47,709,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from django.shortcuts import render, get_object_or_404
from django.utils import timezone
from .models import Post
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(request, 'blog/post_list.html', {'posts':... | [
"lazyfatboy@ya.ru"
] | lazyfatboy@ya.ru |
f71826cc4a17768511a502866746130a64bd50c5 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/145.py | fdf3695e27e276ca2a4e819ce28982205a858fd0 | [] | 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 | 4,398 | py | """ imports """
from __future__ import division
import glob, pickle, os, time, sys, argparse
from copy import copy
from numpy import array, sin, cos
import numpy as np
from pylab import *
from pprint import pprint
""" global variables """
""" classes """
""" functions """
def solve(C, F, X):
current_production =... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
fd357ce22203e6ff0b435b0b66e4f227c52cbb08 | 4c0cfe74b972b6f758d479920118185f07b3ae66 | /lab/lab01/tests/q3_1_2.py | fbb2f30f45921e7bc06228e82c457a74816bf068 | [
"BSD-3-Clause"
] | permissive | ds-modules/Colab-data-8 | 20a72aee6b7d051d2aff50a49f02c89891201971 | cccaff13633f8a5ec697cd4aeca9087f2feec2e4 | refs/heads/main | 2023-05-29T04:05:47.976935 | 2021-06-02T23:15:06 | 2021-06-02T23:15:06 | 333,593,562 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | test = { 'name': 'q3_1_2',
'points': 1,
'suites': [ { 'cases': [ { 'code': ">>> #It looks like you didn't give anything the name;\n"
">>> # seconds_in_a_decade. Maybe there's a typo, or maybe you ;\n"
'>>> # ... | [
"cheungclj108@berkeley.edu"
] | cheungclj108@berkeley.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.