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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
efce919b3664c741e5e5cdd3efddf076345b6093 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/02-pyth/PyPattyrn-master/pypattyrn/structural/decorator.py | 947743818a1dceeb4c5e662540bafd0242dc5234 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 2,788 | py | from functools import partial
from abc import ABCMeta, abstractmethod
class Decorator(object, metaclass=ABCMeta):
"""
Base Decorator class that all decorator classes inherit from.
- External Usage Documentation: U{https://github.com/tylerlaberge/PyPattyrn#decorator-pattern}
- External Decorator Patte... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
ef0eff35233191513b76fde38c78e1f3e0f13ea5 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Attack/Attack.spec | c15c4364b14dd93124576beac54254b27f0aea6d | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 975 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['Attack.py'],
pathex=['D:\\Users\\dhhyey\\Code'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
9099b68c27e3fbffcb996837b243735fb81db3c4 | cc5eb8eb50d64ffbca780c42a908053ec549f295 | /Python Course CSe11309x/quiz3_prog3.py | 2b9ed7f99272eb84762ebb8b2b6185efa3fb98e4 | [] | no_license | bemagee/LearnPython | 328b1f7a9d5046fe1503aece8a5134a7dd2727d2 | a42565f8fb45f9e2ebbcdcf359ebb9092bf837c2 | refs/heads/master | 2020-12-13T02:45:30.308604 | 2016-10-24T03:09:12 | 2016-10-24T03:09:12 | 10,793,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/env python3
# Write a program that asks the user for a positive number 'n' as input. Assume that the user
# enters a number greater than or equal to 3 and print a triangle as described below.
# For example if the user enters 6 then the output should be:
#*
#**
#***
#****
#*****
#******
#*****
#****
#***
#*... | [
"bemagee@gmail.com"
] | bemagee@gmail.com |
d58ebf4ac0db230cddebff1dad95bb3e7734694c | 6ae1ba7d2ad2a97725699e1467171cc2deebb0d4 | /文件、异常/02-文件的路径.py | 3e1488362ed58e9b33d2e32db13dabf3db3ec841 | [] | no_license | weizt/python_studying | 6a95edcf781bd91d8b5f2684f1c6046a40a6d432 | 6dace3a6b73032de220c4b3ea4b3c37d47880ff1 | refs/heads/master | 2023-01-18T19:45:48.291898 | 2020-12-02T00:59:01 | 2020-12-02T00:59:01 | 293,965,283 | 2 | 0 | null | 2020-09-13T01:15:50 | 2020-09-09T01:04:03 | Python | UTF-8 | Python | false | false | 1,156 | py | # 路径:绝对路径 和 相对路径
# 绝对路径:是从盘符开始的路径,详细的路径
# 相对路径:从当前路径开始的路径,简写的路径 推荐
# 技巧:右键点击文件名,打开Show in Explorer。直接打开文件位置
import os
print(os.sep) # 在windows操作系里,文件夹之间用 \ 分隔;
# 而python中\表示字符串转义,所以会冲突
# 解决\冲突的三种方法
# 1.用两个\\表示一个\\
# 2.在字符串前加 r
# 3.在非windows系统用 / 推荐这一种
# file = open('D:\\桌面备份文件\\207操作手册.txt', encoding='gbk')
# fi... | [
"weizhetao3@163.com"
] | weizhetao3@163.com |
0d03883d7784067097556669a9d66f4dde920729 | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Medium/360.sort-transformed-array.py | 0f69da25ba1935966ee90c3a22fa9f0d71097b1f | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | #
# @lc app=leetcode id=360 lang=python3
#
# [360] Sort Transformed Array
#
# https://leetcode.com/problems/sort-transformed-array/description/
#
# algorithms
# Medium (48.92%)
# Total Accepted: 35.5K
# Total Submissions: 72.6K
# Testcase Example: '[-4,-2,2,4]\n1\n3\n5'
#
# Given a sorted array of integers nums and... | [
"kevin.wkmiao@gmail.com"
] | kevin.wkmiao@gmail.com |
df255a93aa6826829f42b9c50283a11d91b9f72d | 25d2afe5d12fe58a97da7b51e23fdc55929e38f5 | /anonymise_dataset_folder.py | 18e10508f9b9043df95dc7985d4acfe30a7b2071 | [] | no_license | apmoore1/tdsa_comparisons | 071396efe0c5e0bad297119d2ce48bf0c1cbb42f | ba613afece15239e6a38f277c455a035739f0b2d | refs/heads/master | 2021-06-23T16:00:49.803589 | 2021-05-25T09:32:53 | 2021-05-25T09:32:53 | 225,565,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | import argparse
from pathlib import Path
from target_extraction.data_types import TargetTextCollection
def parse_path(path_string: str) -> Path:
path_string = Path(path_string).resolve()
return path_string
if __name__ == '__main__':
save_dir_help = ('File Path to directory where the anonymised results '
... | [
"andrew.p.moore94@gmail.com"
] | andrew.p.moore94@gmail.com |
b223c25deb92c2584942abe587611364fd6452fb | 47c39800fa6f928e0d13f26727ba52bda2aa6ff0 | /venv/Lib/site-packages/aliyunsdkrds/request/v20140815/DescribeDBInstanceNetInfoRequest.py | aaaad8b6f364419423cb88b61323a126dae4413a | [
"MIT"
] | permissive | dddluke/zhihuipingtai | 952ed5f9a4011cb4fb2765a0571c978af784d708 | 4e46e01440f8c270c05259ac0f38bd56dd04016c | refs/heads/master | 2023-03-09T03:32:47.807760 | 2021-02-26T02:36:10 | 2021-02-26T02:36:10 | 341,816,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,765 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"lukeli0306@gmail.com"
] | lukeli0306@gmail.com |
a0ed35e6fc27549ff2800fb20c22fb6efdff37bf | ce3499f5d09396e72151f4d742a5562ebdb127c3 | /godap.py | 367a6d0ef7f1af07ba0250eebd821485442e3696 | [] | no_license | jscouet/godap | 08fb0e020b95e00e92f3a94df3761cc965dda52d | e0dda750aba60ad59dfb7183e9beead62712dbe4 | refs/heads/master | 2021-01-01T04:06:41.399768 | 2016-05-24T15:35:37 | 2016-05-24T15:35:37 | 59,554,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,244 | py | #!/usr/bin/python3
"""
script d'envoie de user dans LDAP
"""
VERSION = 0.2
import logging
logging.basicConfig(filename='client_application.log', level=logging.DEBUG)
from ldap3 import Server, Connection, SUBTREE
from ldap3.utils.log import set_library_log_detail_level, OFF, BASIC, NETWORK, EXTENDED, PROTOCOL
import ... | [
"gogs@fake.local"
] | gogs@fake.local |
5f5c2d5fd25e62e92717b420b164f974576182c3 | 3539d0e3ddd7849a14876e95f0332428ec28ebf7 | /Data Scientist Career Path/3. Python Fundamentals/6. Python Loop/2. List Comprehension Code Challenge/18. ages.py | e5fdc328f0eaafe3e447ed0b4cf91a74ee9f7ef5 | [
"MIT"
] | permissive | DincerDogan/Data-Science-Learning-Path | ff146de2cf4ebc5fedfa9377babf959208dfe7e6 | 2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb | refs/heads/main | 2023-05-08T10:53:47.449974 | 2021-06-06T21:27:31 | 2021-06-06T21:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | names = ["Shilah", "Arya", "Kele"]
ages = [14, 9, 35]
users = ["Name: " + x[0] + ", Age: " + str(x[1]) for x in zip(names, ages)] | [
"aristyanto2320@gmail.com"
] | aristyanto2320@gmail.com |
1347a718ac0fe7a1d32610c9e403b982b3bd4506 | c5f58af61e3577ded52acda210f4f664651b598c | /template/mmdetection/configs/vfnet/vfnet_x101_32x4d_fpn_mstrain_2x_coco.py | 9f445458c8365c10abb325f59a583923ce416a73 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hojihun5516/object-detection-level2-cv-02 | 0a4ee5cea9a77ef5d43fb61a4b37fe3a87cb0eac | bc8a08286935b31b8e7e597c4b1ca2cbbaeb9109 | refs/heads/master | 2023-08-31T09:50:59.150971 | 2021-10-16T15:00:19 | 2021-10-16T15:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | _base_ = "./vfnet_r50_fpn_mstrain_2x_coco.py"
model = dict(
backbone=dict(
type="ResNeXt",
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type="BN", requires_grad=True),
norm_eval=True... | [
"hojihun5516@daum.net"
] | hojihun5516@daum.net |
3a68029f539876708281d23051be8c94c328cd85 | 3171b42757e60a61c2a71474cb07f81b9219ee50 | /tests/test_upload.py | ebf1b3cf99f8570e73ec3366ba494fdd4c1da8d1 | [] | no_license | yoophi/flaskygram | cde431d1a177e5bf54558ab83bb07886b93bc9ed | 363e29f393ab3e1b8d40102add09b1f9bff65670 | refs/heads/main | 2023-05-14T15:11:05.307578 | 2021-06-05T06:55:53 | 2021-06-05T06:55:53 | 57,872,879 | 0 | 0 | null | 2023-05-02T20:26:02 | 2016-05-02T07:40:40 | Python | UTF-8 | Python | false | false | 695 | py | """
TestCase migration with Flask-Testing
"""
from flask import url_for
from cStringIO import StringIO
from flaskygram.models import Media
from tests import BaseTestCase
class MediaTest(BaseTestCase):
def test_upload(self):
res = self.client.post(url_for('api.media_upload'),
... | [
"yoophi@gmail.com"
] | yoophi@gmail.com |
1bdad74646ded2dbe5d41d72449d186dbcc5986a | fa9bae32c203323dfb345d9a415d4eaecb27a931 | /492. Construct the Rectangle.py | 223ca17420f3b701265528b09aa68d0b6bc71233 | [] | no_license | IUIUN/The-Best-Time-Is-Now | 48a0c2e9d449aa2f4b6e565868a227b6d555bf29 | fab660f98bd36715d1ee613c4de5c7fd2b69369e | refs/heads/master | 2020-09-14T12:06:24.074973 | 2020-02-15T06:55:08 | 2020-02-15T06:55:08 | 223,123,743 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | class Solution:
def constructRectangle(self, area: int) -> List[int]:
mid = int(math.sqrt(area))
while mid > 0:
if area % mid == 0:
return [int(area // mid), int(mid)]
mid -= 1
| [
"liuyijun0621@hotmail.com"
] | liuyijun0621@hotmail.com |
3a335ae6cc7bab264be2c947c01ec8df7a6e941e | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/age-range-compatibility-equation/Python/solution1.py | 3657a02d2a92ac4c93199e60e1489bc9fdc04b1a | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # Python - 3.4.3
from math import floor
def dating_range(age):
minage = lambda a: (a / 2) + 7 if a > 14 else 0.9 * a
maxage = lambda a: (a - 7) * 2 if a > 14 else 1.1 * a
return '%d-%d' % (floor(minage(age)), floor(maxage(age)))
| [
"d79523@hotmail.com"
] | d79523@hotmail.com |
d55ce02404f32b0877e1a295d5b671b302e5db52 | 0466559817d3a1be9409da2c83db99c4db3bacfe | /hubcheck/pageobjects/widgets/members_profile_mailpreference.py | cdbdc54f4a0ca509c4b8a5bcbc0be220497cb01e | [
"MIT"
] | permissive | ken2190/hubcheck | 955cf9b75a1ee77e28256dfd3a780cfbc17de961 | 2ff506eb56ba00f035300862f8848e4168452a17 | refs/heads/master | 2023-03-20T15:17:12.949715 | 2015-09-29T16:11:18 | 2015-09-29T16:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,363 | py | from hubcheck.pageobjects.basepageelement import Radio
from hubcheck.pageobjects.basepageelement import Select
from hubcheck.pageobjects.widgets.members_profile_element import MembersProfileElement
class MembersProfileMailPreference1(MembersProfileElement):
def __init__(self, owner, locatordict={}):
super(... | [
"telldsk@gmail.com"
] | telldsk@gmail.com |
a9a1d3f8224ac0897447a887e426b0391bef5786 | 788f1d32045560ffafff468476c9c9897dabb31c | /Curso em Vídeo/Mundo 1 Fundamentos/Desafios/desafio019.py | 9a32db158cf6b88cdf869f23df5dd89ebfe57efa | [
"MIT"
] | permissive | henriqueumeda/-Python-study | 7f8d911e9e724aa2f183e652e6a7ae31b742b90e | 28e93a377afa4732037a29eb74d4bc7c9e24b62f | refs/heads/main | 2023-08-10T21:10:32.360808 | 2021-09-21T02:37:16 | 2021-09-21T02:37:16 | 330,294,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from random import choice
primeiroAluno = input('Primeiro aluno: ')
segundoAluno = input('Segundo aluno: ')
terceiroAluno = input('Terceiro aluno: ')
quartoAluno = input('Quarto aluno: ')
choiceList = [primeiroAluno, segundoAluno, terceiroAluno, quartoAluno]
print('O aluno escolhido foi {}'.format(choice(choiceList))) | [
"issamuumeda@gmail.com"
] | issamuumeda@gmail.com |
de4d019cf164022898f2466c7ffb7d80085142ed | bb150497a05203a718fb3630941231be9e3b6a32 | /models/Paddle2ONNX/ocr_v2/main_test.py | 5e669c2b5e142253e0524cf4ddc5edf09bee4f17 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 4,519 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
main test
"""
import os
import shutil
import platform
class OcrV2Test(object):
"""
test Ocr to onnx tipc
"""
def __init__(self):
if os.path.exists("tipc_models_url_PaddleOCR_latest.txt"):
... | [
"825276847@qq.com"
] | 825276847@qq.com |
ed2aff3a66672c8a682fc5200fdd435cdc11b20a | 7386480f7e09101b0518cf1f92b5902726c8816e | /RTMinuit/minuit_html.py | 46e3db8756e812009af255ede952105be3242ba4 | [] | no_license | mattbellis/RTMinuit | 51458bc9fd5a83895eba959c44895826e070741b | d67c35b9aaf904bed278d4ce237cc2e6cf9485dc | refs/heads/master | 2020-12-25T03:00:43.769380 | 2012-05-21T19:09:56 | 2012-05-21T19:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,872 | py |
class MinuitHTMLResult:
def __init__(self,m):
"""
:param m:
:type m Minuit:
"""
self.varnames = m.varname
self.values = m.values
self.errors = m.errors
self.mnerrors = m.minos_errors()
def _repr_html_(self):
tmp = []
header = u"""... | [
"piti118@gmail.com"
] | piti118@gmail.com |
f1c9b9076961020c81cbaf3646daba66e73e364d | 8f6cc0e8bd15067f1d9161a4b178383e62377bc7 | /Video_future_frame_prediction/fc_lstm_n202_ubu/old_code/old_code_v0002/models/lstmcell_simple_encoder_decoder.py | 95a2bc4e593826921cf1006deb6946f36735942c | [] | no_license | humorbeing/python_github | 9c4dfc61a3cefbb266fefff335f6b28d05797e5e | e4b4b49bee7e7e3843c6874717779ce8d619bd02 | refs/heads/master | 2023-01-22T21:51:20.193131 | 2020-01-26T21:47:23 | 2020-01-26T21:47:23 | 163,707,778 | 0 | 0 | null | 2022-12-27T15:37:48 | 2019-01-01T01:58:18 | Python | UTF-8 | Python | false | false | 1,400 | py |
# encoder decoder, only 1 layer, flatten style
# lstmcell
# v0004
import torch
import torch.nn as nn
import numpy as np
class FC_LSTM(nn.Module):
def __init__(self):
super(FC_LSTM, self).__init__()
self.encoder_lstmcell = nn.LSTMCell(4096, 4096)
self.decoder_lstmcell = nn.LSTMCell(4096, 40... | [
"geemguang@gmail.com"
] | geemguang@gmail.com |
d7fff55e5019e9289ac54ee81bc8c3b1546d4e16 | 91a9f5a7afb398f4238527708cbc155dc972cbfa | /data_analysis/third_party_code/rrt.py | 081eec2a0241365b13ab63425ad28e696f407a8b | [] | no_license | bddmodelcar/kzpy3.2 | cd6f9bf6b7b8b920c79b4ee36c2592b992ae4332 | b044b26649b19b240bd580feca20424a237374b1 | refs/heads/master | 2021-01-19T21:01:58.687712 | 2017-08-23T22:39:56 | 2017-08-23T22:39:56 | 101,243,308 | 0 | 1 | null | 2017-08-24T02:04:50 | 2017-08-24T02:04:50 | null | UTF-8 | Python | false | false | 1,651 | py | #!/usr/bin/env python
# rrt.py
# This program generates a simple rapidly
# exploring random tree (RRT) in a rectangular region.
#
# Written by Steve LaValle
# May 2011
import sys, random, math, pygame
from pygame.locals import *
from math import sqrt, cos, sin, atan2
# constants
XDIM = 640
YDIM = 480
WINSIZE = [XDIM... | [
"karlzipser@berkeley.edu"
] | karlzipser@berkeley.edu |
ec6f2aa9f46031fe2b4e7abef4c1302d1c1116dd | b4ea052a5c9d9602ac7a3d7c3d341ef13c0f7b64 | /tuple.py | 9beabaddaeeddf86af319b30c7863c3ff432841a | [] | no_license | iehoshia/math | e74409d68ebd60d8deb1c4a41b0dc0dd96772b94 | d9139fd7de15a10230fc3d76c0f57c5f66be66ef | refs/heads/master | 2021-06-27T08:37:48.210371 | 2020-07-05T18:01:48 | 2020-07-05T18:01:48 | 221,271,881 | 0 | 0 | null | 2021-03-20T03:08:07 | 2019-11-12T17:16:35 | Python | UTF-8 | Python | false | false | 137 | py | msg = "('UserError', ('El campo de es obligatorio.', ''))"
print(type(msg))
ts = eval(msg)
print(type(ts))
print(ts[0])
print(ts[1][0]) | [
"jepgez@gmail.com"
] | jepgez@gmail.com |
e950a96f99338a6581c70f7a239071ec9857cc9a | 2876a5a8e7d50d97039b4e63c25f5eaf1cc20808 | /src/odontology/person/migrations/0006_remove_patient_reciently_added.py | fa65de12e835d148fed6cd7e7a0620ba29ebeb5c | [
"Apache-2.0"
] | permissive | nanomolina/JP | 6fcd01b75d71aa560781d4c0350ff76025f85f92 | 248a47bced4dac850f85d28968ddf279cd123400 | refs/heads/master | 2022-11-29T09:31:43.449654 | 2019-07-16T18:25:20 | 2019-07-16T18:25:20 | 51,620,989 | 2 | 0 | Apache-2.0 | 2022-11-22T01:11:25 | 2016-02-12T22:33:24 | HTML | UTF-8 | Python | false | false | 401 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-14 08:24
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('person', '0005_auto_20160214_0517'),
]
operations = [
migrations.RemoveField(
... | [
"nanomolinacav@gmail.com"
] | nanomolinacav@gmail.com |
30f8c99090912bd768c74d849e02e4c932b3ae47 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day03/jiangyi/day03/code/str2.py | 414e203cb3fc038b2e548595d370a0630461fc59 | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | # str.py
print('ABC\n123')
print('ABC\t123')
print("ABCDE\rab")
print("ABCDE\b\babcd")
print("==ABCD==")
print("==\x41\x42\x43\x44==") # ABCD
print('\x68\x65\x6c\x6c\x6f')
print("hello")
| [
"442315617@qq.com"
] | 442315617@qq.com |
701edda3fc08ca5e204e91994d360e36880706aa | 532a28255249530c98eea8985cdcfb093dbf28b1 | /testing/test_boxed.py | bee936735f1ff0a109346bf20f8150639e74bb0f | [
"MIT"
] | permissive | lukas-bednar/pytest-xdist-convert | 8dc09ebae810344f8ebf031b3d04de4e9a62602c | 255c0617159b611eaa94b80c7b61568c5c8ce082 | refs/heads/master | 2021-01-23T12:18:04.783539 | 2015-09-01T15:28:21 | 2015-09-01T15:28:21 | 41,746,483 | 1 | 0 | null | 2015-09-01T15:21:30 | 2015-09-01T15:21:30 | null | UTF-8 | Python | false | false | 1,610 | py | import pytest
import os
needsfork = pytest.mark.skipif(not hasattr(os, "fork"),
reason="os.fork required")
@needsfork
def test_functional_boxed(testdir):
p1 = testdir.makepyfile("""
import os
def test_function():
os.kill(os.getpid(), 15)
""")
resu... | [
"holger@merlinux.eu"
] | holger@merlinux.eu |
3b71545bbfa3cf0b81dc43c505f9b0ee6d8e556f | 5ded398a05f59f08f2add076fa50e42bfcb5cc92 | /home/migrations/0002_load_initial_data.py | 3fb748150d45554121b7e71e3ea15175052fd015 | [] | no_license | crowdbotics-apps/vool-22192 | 1dc764992f07ce542f6691693503375007175a6d | d8c48223d5df02577fe997f6a50fdbd83eb96dce | refs/heads/master | 2023-01-09T11:42:10.989994 | 2020-11-01T19:20:38 | 2020-11-01T19:20:38 | 309,170,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "vool"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
home... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
21aa8958edca79602fd8a9062a0ca2fb5d5a8527 | c06d18ac5b87b3b82fc486454c422b119d6c1ee9 | /src/demo/_tensorflow/notebooks/2_BasicModels/linear_regression.py | db1a4d9133a9a5e089a49002de6f171371fd87ae | [
"MIT"
] | permissive | tangermi/nlp | b3a4c9612e6049463bf12bc9abb7aff06a084ace | aa36b8b20e8c91807be73a252ff7799789514302 | refs/heads/master | 2022-12-09T12:33:15.009413 | 2020-04-03T04:03:24 | 2020-04-03T04:03:24 | 252,056,010 | 0 | 0 | null | 2022-12-08T07:26:55 | 2020-04-01T02:55:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,211 | py | # -*-coding:utf-8-*-
from __future__ import absolute_import, division, print_function
# %%
import tensorflow as tf
import numpy as np
rng = np.random
# %%
# Parameters.
learning_rate = 0.01#学习率
training_steps = 1000#总共训练次数
display_step = 50
# %%
# Training Data.
X = np.array([3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.... | [
"n10057862@qut.edu.au"
] | n10057862@qut.edu.au |
0584bb10c38dba33bffbd8942a3bc1da49985993 | d903801965f5a203360a989c5e5330160bb8f509 | /pragmatics_2/settings/base.py | 2de70505263bd2f12c487534bdb5eabadcb1482f | [] | no_license | matt700395/server_test | fbc63fe4a9aea29610089b3ec87dcf5834047d27 | c21618bdf4d7f38889410d3204c15e4c61c15a54 | refs/heads/master | 2023-07-25T02:12:24.187475 | 2021-08-11T01:51:30 | 2021-08-11T01:51:30 | 387,237,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | """
Django settings for pragmatics_2 project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
"gkgk"
f... | [
"matt7003@korea.ac.kr"
] | matt7003@korea.ac.kr |
0fa6083c10d10d0fd237b63dd89a046cd5d7ecf6 | 61efd764ae4586b6b2ee5e6e2c255079e2b01cfc | /azure-graphrbac/azure/graphrbac/models/graph_error.py | 0bfa9744e63d8b4251f72750eb08d46a828b3f80 | [
"MIT"
] | permissive | AutorestCI/azure-sdk-for-python | a3642f53b5bf79d1dbb77851ec56f4cc0c5b3b61 | 60b0726619ce9d7baca41f6cd38f741d74c4e54a | refs/heads/master | 2021-01-21T02:23:59.207091 | 2018-01-31T21:31:27 | 2018-01-31T21:31:27 | 55,251,306 | 4 | 3 | null | 2017-11-13T17:57:46 | 2016-04-01T17:48:48 | Python | UTF-8 | Python | false | false | 1,392 | 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 ... | [
"autorestci@microsoft.com"
] | autorestci@microsoft.com |
797f75d711c35e8f51c4b63311f9c718f07a6b4c | 91b6b36c7eba4ef0f97eea76a32c297760e24034 | /games/migrations/0001_initial.py | a999330944ff2ace8f32685de6c1ac1b44d755f4 | [] | no_license | joescaos/Tienda-video-juegos | ddfbba3affdb4302077d205d1a6b408cc08cf670 | 8b05f15d655398f7efc77af126fe022fec6d3261 | refs/heads/main | 2023-02-11T05:43:33.950151 | 2021-01-07T03:06:01 | 2021-01-07T03:06:01 | 327,482,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # Generated by Django 3.0.8 on 2020-07-04 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Game',
fields=[
('id', models.AutoField(aut... | [
"jxexcxo@gmail.com"
] | jxexcxo@gmail.com |
0d04fa2c27807dd543aa96a8eb34f13b5aa285a3 | 48b8ef4cb13195bd48c3bd741df407f4df7a7db1 | /py2vega/functions/date_time.py | 52cb563af5f98569f0a6115a6e91a96ee9e73dd4 | [
"BSD-3-Clause"
] | permissive | QuantStack/py2vega | 7c6d1e114e97f835ae2d3ef47950680d8a9b7e55 | 049f8a89adc4197a69a384160bbbb633c61abaf8 | refs/heads/master | 2021-06-22T22:38:32.885585 | 2021-03-03T09:46:31 | 2021-03-03T09:46:31 | 203,118,828 | 9 | 3 | BSD-3-Clause | 2021-03-03T08:32:02 | 2019-08-19T07:15:29 | Python | UTF-8 | Python | false | false | 4,165 | py | """Module that implements mocking Vega date and time functions."""
date_time_functions = [
'now', 'datetime', 'date', 'day', 'year', 'quarter', 'month', 'hours',
'minutes', 'seconds', 'milliseconds', 'time', 'timezoneoffset', 'utc',
'utcdate', 'utcday', 'utcyear', 'utcquarter', 'utcmonth', 'utchours',
... | [
"martin.renou@gmail.com"
] | martin.renou@gmail.com |
ff1b3b0dca727f260be29d791c3eb863c60bb44c | e40111dda0ad509d474adfe4c52ae9b5525f388e | /show_weather/migrations/0001_initial.py | 257aa28f000c8c31d9e0659e17bdad9c05474fe7 | [] | no_license | XeyyamSherif/Weather-App | 2fb997fcfb5a6885ffffbf05e6ebe2127fd2bccf | 6de019cf289ff60d299b9f1e58c1f8c04fa3517f | refs/heads/master | 2023-01-23T06:57:55.655632 | 2020-12-04T20:10:42 | 2020-12-04T20:10:42 | 318,623,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | <<<<<<< HEAD
# Generated by Django 3.0.3 on 2020-03-01 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='added_cities',
fields=[
('id',... | [
"you@example.com"
] | you@example.com |
a67658f0ba4e3957c2b07e683cf18f9d800d4d49 | 962b7a864f6a85d4418292be2ad3f3c58ae89400 | /docs/conf.py | 1f83660b90ecd881682aa1743e2a7298a72d00e1 | [
"MIT"
] | permissive | ArtusU/one_buy | eb415697d4d314f1a23f255b83486f75fa1f6adb | 5d74a691f78f162eb6b16d9c3a2049043c36b0b0 | refs/heads/master | 2023-08-20T20:31:41.931260 | 2021-09-11T11:51:00 | 2021-09-11T11:51:00 | 405,059,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"artusrock@hotmail.com"
] | artusrock@hotmail.com |
aa6d9a1822835aebdd5132c6ba6a72d4ff601275 | c49590eb7f01df37c8ec5fef00d0ffc7250fa321 | /openapi_client/models/market_details_quote.py | 9be5f6cec718e266059c4b82e375d42004f2e4ce | [] | no_license | harshad5498/ks-orderapi-python | 373a4b85a56ff97e2367eebd076f67f972e92f51 | 237da6fc3297c02e85f0fff1a34857aaa4c1d295 | refs/heads/master | 2022-12-09T19:55:21.938764 | 2020-09-03T05:22:51 | 2020-09-03T05:22:51 | 293,533,651 | 0 | 0 | null | 2020-09-07T13:19:25 | 2020-09-07T13:19:24 | null | UTF-8 | Python | false | false | 3,151 | py | # coding: utf-8
"""
KS Trade API's
The version of the OpenAPI document: 1.0
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
class MarketDetailsQuote(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://op... | [
"thebhushanp@gmail.com"
] | thebhushanp@gmail.com |
a00eaff7c43f2734cc5e34167a1e3b2535928b9c | 3b9082ed8c0717d40165f5cc520937c23e9c49c0 | /lib/streamifiers/public_suffix.py | 672978920b94dfef4ec6ab269c416a679a78dd1c | [
"BSD-3-Clause"
] | permissive | CYBAI/compression-test | 2915c0d929be4689ba0df3beb1c19d808aef1405 | ea1306131e32f44f97b197550e7b3a5d7734ad0b | refs/heads/master | 2021-03-20T07:55:10.844035 | 2019-01-19T05:11:25 | 2019-01-19T05:11:25 | 247,191,443 | 1 | 0 | NOASSERTION | 2020-03-14T01:31:04 | 2020-03-14T01:31:03 | null | UTF-8 | Python | false | false | 1,103 | py | #!/usr/bin/env python
from collections import defaultdict
from . import BaseStreamifier, Stream
from publicsuffix import PublicSuffixList
class Streamifier(BaseStreamifier):
"""
Use the Public Suffix List <http://publicsuffix.org> to split the messages
into streams, one per direction per suffix.
"""
def _... | [
"mnot@mnot.net"
] | mnot@mnot.net |
9cc14a0d8484b7a1274d7519a78757f8a1879fbc | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res_bw/scripts/common/lib/ctypes/test/test_numbers.py | d22b4be81fa25957e12f9a9ea14e9e9cab2b4b56 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 6,859 | py | # 2015.11.18 12:02:44 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/ctypes/test/test_numbers.py
from ctypes import *
import unittest
import struct
def valid_ranges(*types):
result = []
for t in types:
fmt = t._type_
size = struct.calcsize(fmt)
a = struct.unpack(fmt... | [
"info@webium.sk"
] | info@webium.sk |
356c3d0d2080ca4ad61b6ecd2046b5002212c549 | 0dd881b86146eff46a99e3100a12addcb5b1bde9 | /weipinghui2019_zifuchuanxiangjia.py | 9450013b2f20ba2c8819ba996bb4dcb91ebcc8c8 | [] | no_license | BaijingML/leetcode | 8b04599ba6f1f9cf12fbb2726f6a1463a42f0a70 | 0ba37ea32ad71d9467f73da6f9e71971911f1d4c | refs/heads/master | 2020-03-22T05:07:17.884441 | 2020-01-10T12:13:54 | 2020-01-10T12:13:54 | 138,399,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: python3.6
@Author : Zhangfusheng
@Time : 2019/8/18 12:04
@File : weipinghui2019_zifuchuanxiangjia
@Software: PyCharm
"""
if __name__ == "__main__":
s1, s2 = input(), input()
result = ""
add = 0
if len(s1) < len(s2):
s1, s2 = s2, s1
... | [
"2670871693@qq.com"
] | 2670871693@qq.com |
899115ede16865c53b02a851dff925b61a1bf92a | 6eef7d400474384c9e36cafbbae95e3c34dbb6ad | /ben_kremer_clinvitae/urls.py | 61103ac498270fed074b36b27f1ff25b7c810666 | [] | no_license | codeAligned/clinvitae | 61d3c160e9dbc65d548818292681a27501d330ce | 4a75c14113dc562991c7d2d1a5812d2db91e2da0 | refs/heads/master | 2020-05-17T12:02:33.514187 | 2019-02-21T06:47:35 | 2019-02-21T06:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('genomic_variants.urls')),
]
| [
"kremerdesign@gmail.com"
] | kremerdesign@gmail.com |
25d1da88d1366f1ccb7cbe8670e06b566940541c | c62c9f5cb72e23d9ac35260d9c556b35ae1861e4 | /collective/z3cform/html5widgets/widget_contenteditable.py | e3cdb08143c1fe06cda58e75623139d08489612d | [] | no_license | collective/collective.z3cform.html5widgets | 667cb567d1873cf0ca439df564df8c0cdf4ea6e6 | 3357495e8b445b5d75ccfc14608c55019b01bf6e | refs/heads/master | 2023-03-22T16:39:43.686088 | 2013-12-05T17:01:54 | 2013-12-05T17:01:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | #-*- coding: utf-8 -*-
from zope import interface
import z3c.form.interfaces
import z3c.form.browser.widget
import z3c.form.widget
class IContentEditableWidget(z3c.form.interfaces.IWidget):
""" ContentEditable widget marker for z3c.form"""
class ContentEditableWidget(
z3c.form.browser.widget.HTMLTextIn... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
2bdb1b2385181fd239dace5a48e5ffa805a4bd4e | 3c582a006b945cd95974d910ab5b0ff551ab42fa | /tsuru_dashboard/auth/tests/test_change_password_form.py | 7842f5c31e26fd2cb7f2eda76671938ed23b4712 | [] | no_license | tsuru/tsuru-dashboard | f8be15a72366a5cefeadd4a3aac117ed760e85bc | c94b0b1a6ec30d7f59b939adcff41646bad00e87 | refs/heads/master | 2023-06-22T12:01:20.024933 | 2022-10-20T19:50:47 | 2022-10-20T19:50:47 | 5,112,553 | 119 | 60 | null | 2023-06-13T17:53:35 | 2012-07-19T16:31:42 | Python | UTF-8 | Python | false | false | 1,514 | py | from django.test import TestCase
from django.forms import PasswordInput
from tsuru_dashboard.auth.forms import ChangePasswordForm
class ChangePasswordFormTest(TestCase):
def test_form_is_valid(self):
data = {
"old": "old",
"new": "new",
"confirm": "new",
}
... | [
"andrewsmedina@gmail.com"
] | andrewsmedina@gmail.com |
18ec3b9176c0cadcb71400f69ac095ea871c5eee | b4339826d3def43a2553f0ac8d357ed393a8f471 | /apps/operation/models.py | 1447f0a0a33afa24c352bdb28c638b809f5acae7 | [] | no_license | buzzzzx/MultiUser_blog | e8c19537d29ab4d8bc97a2ca62703110adc9d683 | 1ff6c2c345051406b5862d902ca51939be755528 | refs/heads/master | 2021-08-08T11:47:06.666011 | 2017-11-10T08:51:28 | 2017-11-10T08:51:59 | 110,224,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from django.db import models
from account.models import UserProfile
from blog.models import Post
# Create your models here.
class PostComment(models.Model):
post = models.ForeignKey(Post, related_name='comments') # 可通过post.comments.all()
user = models.ForeignKey(UserProfile, related_name='blog_comments') ... | [
"buzzzzx233@gmail.com"
] | buzzzzx233@gmail.com |
77916008cef97dbe592ed28bdeb1fc24ef507f5b | 770801815a644df6de1d252799be520f69e467be | /dataResearch.py | 6b536432e9bb4642b8725ba2d3387a16d122c71f | [] | no_license | chutianwen/CapitalOneHackerthon | ad2b693694945ff56fa5e2ebf1c3a00dfec75439 | 5337b954b529c03c87816e8927cf1620a26e8a49 | refs/heads/master | 2021-05-07T13:37:39.336866 | 2017-11-05T17:03:44 | 2017-11-05T17:03:44 | 109,598,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | from collections import Counter
with open("./Dataset/merchant_list.txt") as f:
text = f.read()
merchant_names = text.split(",")
text = text.lower()
text = text.replace('.', ' <PERIOD> ')
text = text.replace(',', ' <COMMA> ')
text = text.replace('"', ' <QUOTATION_MARK> ')
text = text.replace(';', ' <SEMICOLON> ')
t... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
45d2a65651be56165f6cfe5b28a341f127eb57a5 | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage1-model/pytz/zoneinfo/America/Boa_Vista.py | 297b01070fa499ceb5132271bc1a11bdd52ca2e8 | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | '''tzinfo timezone information for America/Boa_Vista.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i
class Boa_Vista(DstTzInfo):
'''America/Boa_Vista timezone definition. See datetime.tzinfo for details'''
zone = 'Amer... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
663175d84618b1612f00e593024da938380a9840 | 98accbb4d8c8f972bfda31e12fabab7c3ca37533 | /linux_lou_plus/step_7/multiprocess/process_sys.py | 4d33b61e088ad55ac86b641f5138761583f1014d | [] | no_license | qimanchen/interview_plan | 49e5a323f35b8b3496d5dc4baba0f12a1b2c2a13 | 6a11a1927a14ce3fc439149e907a3febbee446a7 | refs/heads/master | 2022-12-10T05:25:54.927847 | 2020-06-13T02:54:25 | 2020-06-13T02:54:25 | 194,584,004 | 0 | 0 | null | 2022-12-08T05:25:13 | 2019-07-01T02:08:27 | Python | UTF-8 | Python | false | false | 555 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
from multiprocessing import Process, Value, Lock
def func(val, lock):
for i in range(50):
time.sleep(0.01)
with lock:
val.value += 1
if __name__ == "__main__":
# 多进程无法使用全局变量,multiprocessing 提供的 Value 是一个代理器,
# 可以实现在多进程中共享这个变量
v = Value('i', 0... | [
"1033178199@qq.com"
] | 1033178199@qq.com |
0b01324db38b6537c084e6e7d7954b7f84f49fa4 | 45d1478e29cdc173085e9fe2ae092f4c71ea19f2 | /retinaface/modeling/__init__.py | e09b09632129673b7c4c911168f1f58126455bdd | [
"MIT"
] | permissive | OxYunzhe/RetinaFace.detectron2 | 0c5f8659d17fb2e46c194dc0fcbbac7732cd54ab | 3edf1c2d539763115741819bcf16816d7c2e4c91 | refs/heads/master | 2023-03-16T07:50:51.572555 | 2020-06-10T09:41:29 | 2020-06-10T09:41:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | '''
@Copyright (c) tkianai All Rights Reserved.
@Author : tkianai
@Github : https://github.com/tkianai
@Date : 2020-04-21 13:11:05
@FilePath : /RetinaFace.detectron2/retinaface/modeling/__init__.py
@Description :
'''
| [
"tkianai@163.com"
] | tkianai@163.com |
264ccf1d747e420a00b8a22c7b1db3529c65867c | a8d68074db5c2b2697650ed0281979d3e00cf5a8 | /python-spider/shuaia.py | 4f3d70d1d53400532bacaf55f467f8d4bb664164 | [] | no_license | 15807857476/bogdata-2 | 9595609ea2ae5ae0a48c511f911df2498456467e | 1934cdfa234b77ca91e349b84688db113ff39e8c | refs/heads/master | 2023-05-26T19:10:18.439269 | 2019-05-24T02:50:41 | 2019-05-24T02:50:41 | 188,327,526 | 3 | 1 | null | 2023-05-22T21:37:27 | 2019-05-24T00:53:28 | Python | UTF-8 | Python | false | false | 1,583 | py | # -*- coding:UTF-8 -*-
from bs4 import BeautifulSoup
from urllib.request import urlretrieve
import requests
import os
import time
if __name__ == '__main__':
list_url = []
for num in range(1,3):
if num == 1:
url = 'http://www.shuaia.net/index.html'
else:
url = 'http://www.shuaia.net/index_%d.html' % num
h... | [
"2397955090@qq.com"
] | 2397955090@qq.com |
27662d158b11bc9bb0943ec4d1b442d23925248b | b75fa0885bc3ba3f153225fd3396aadef6c1f97e | /slides/pypyjs/lib-py3k/modules/_functools.py | e51a4aa7f3b13c9b4d6cc9168e73ea720b598012 | [
"MIT"
] | permissive | rfk/talk-pypyjs-what-how-why | e084303185167dbc9b704c3568e0c31d0a1f6885 | 1ab62ee32ff9495ae9313ec81e8ee2044212ea71 | refs/heads/master | 2016-09-06T05:27:09.800382 | 2015-04-10T03:12:07 | 2015-04-10T03:12:07 | 22,421,369 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | """ Supplies the internal functions for functools.py in the standard library """
try: from __pypy__ import builtinify
except ImportError: builtinify = lambda f: f
sentinel = object()
@builtinify
def reduce(func, sequence, initial=sentinel):
"""reduce(function, sequence[, initial]) -> value
Apply a function of t... | [
"ryan@rfk.id.au"
] | ryan@rfk.id.au |
5bcff5cffd28731828328a79715cde3f608f37b3 | 9fefd87bf65dd0be051988ead6fa532ad968371c | /01_MathBasic/ex15.py | 574694f9302e6bc50f1d3caf72765a3d1df5dfee | [] | no_license | et0511/linear-algebra-basics | b94659832dd16342bdc73bace18ab21d1fc3458d | b9f3a91ea9ba5b1011d619d374f238dd56c09c9a | refs/heads/master | 2023-01-22T05:35:56.850516 | 2020-11-20T08:39:14 | 2020-11-20T08:39:14 | 313,239,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # 행렬의 산술 연산: 곱셈
import numpy as np
m1 = np.array([
[1, 2, 3],
[4, 5, 6]
])
m2 = np.array([
[10, 20, 30],
[40, 50, 60]
])
m3 = m1 * m2
print(m3)
m4 = np.multiply(m1, m2)
print(m4)
| [
"shinwon0511@gmail.com"
] | shinwon0511@gmail.com |
80a7bbe98fb1db2e7affb126f6379fbca8deaffa | 0be27c0a583d3a8edd5d136c091e74a3df51b526 | /pro_6.py | cd9f08e7650bc6d5eabf300b5b77d29d6bc94b75 | [] | no_license | ssangitha/guvicode | 3d38942f5d5e27a7978e070e14be07a5269b01fe | ea960fb056cfe577eec81e83841929e41a31f72e | refs/heads/master | 2020-04-15T05:01:00.226391 | 2019-09-06T10:08:23 | 2019-09-06T10:08:23 | 164,405,935 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | n=int(input())
l=list(map(int,input().split()))
c=0
for i in range(len(l)-2):
for j in range(i+1,len(l)-1):
for k in range(j+1,len(l)):
if l[i]<l[j]<l[k]:
c=c+1
print(c)
#no.of triplet...
| [
"noreply@github.com"
] | ssangitha.noreply@github.com |
f46db137e5ffc06d2d219a96623c75d5281f13d1 | 49986759cb09afe8888e87cb5d3d02defedf7fcf | /examples/openpyxl/openpyxl__loadedFiles_example.py | 43f14fe2d32458d4bd9f8b34649c22fd76ea9b62 | [] | no_license | Ze1598/Python_stuff | ca7e8a85ab693efb1909b1aaf3075906419ab43b | df4d9b85eeff4e14c91533135a347b59d52812c7 | refs/heads/master | 2023-04-10T16:50:37.719570 | 2023-03-26T15:06:31 | 2023-03-26T15:06:31 | 117,886,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,790 | py | '''
File that goes over basic operations with the openpyxl module: a
module for working with Excel files (.xlsx) and LibreOffice Calc
(.xls), that is, workbook files.
This file goes over the basic operations performed with these files,
without touching any writing to the files.
'''
import openpyxl
# Used to pretty-pri... | [
"jose.fernando.costa.1998@gmailcom"
] | jose.fernando.costa.1998@gmailcom |
d64351067c60d186c1b36d2c2daa144f70f80fb5 | 9d931ad4bb1ee0806a0b1012cf551d77199416ae | /isobar/pattern/harmony.py | b1d8ece983fa44e188235e02acd85ed1e43070e7 | [
"MIT"
] | permissive | EnigmaCurry/isobar | 9d8a92c44f9ba7e0eb8b8527fdb1a61691b85fe4 | 05de0d105984b642eeaca3286abf08e02e309362 | refs/heads/master | 2022-05-24T23:07:35.859526 | 2020-04-28T23:05:08 | 2020-04-28T23:05:08 | 259,672,137 | 1 | 0 | MIT | 2020-04-28T15:11:04 | 2020-04-28T15:11:02 | null | UTF-8 | Python | false | false | 576 | py | from isobar.pattern.core import *
class PFilterByKey(Pattern):
def __init__(self, input, key):
self.input = input
self.key = key
def __next__(self):
note = next(self.input)
key = Pattern.value(self.key)
if note in key:
return note
else:
r... | [
"daniel@jones.org.uk"
] | daniel@jones.org.uk |
6f3ef8ad3d317b58bdc8a750c23661686421a08f | 810b7b2bb5829bf9ce0d921395ad6ca22563915c | /question-type-fine-num-classifier-builder.py | 19e0daeeb9bccff0320b77706b209ea2dbd8f908 | [] | no_license | daksh-ddt/QuestionTypeClassifier | 5f1ee8e8f017fbe4836e24f943e92dd14ecaebe5 | 33cffbefe1869612f8d39c83bb3e72602060893d | refs/heads/master | 2020-12-25T03:01:05.344465 | 2014-03-22T16:01:24 | 2014-03-22T16:01:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | #!/usr/bin/env python
"""
Best score: 0.928
Best parameters set:
clf__alpha: 1e-06
clf__n_iter: 50
clf__penalty: 'elasticnet'
tfidf__norm: 'l1'
tfidf__use_idf: True
vect__max_df: 0.75
vect__max_features: 5000
vect__ngram_range: (1, 2)
vect__stop_words: None
"""
__author__ = 'gavin ha... | [
"gavinhackeling@gmail.com"
] | gavinhackeling@gmail.com |
2a5efff102c4a2919f73211d409750b6f210d7c8 | 8aa9ecfe421b196589b6c9fdc0e954d02d927feb | /sphinx/source/docs/user_guide/examples/data_linked_brushing_subsets.py | 49c98cd13e1f65a5c2be6677d3b998058f107edb | [
"BSD-3-Clause"
] | permissive | hongyu9000/bokeh | b384484925c6c145e4eaf87460a3f776095e81ed | b19f2c5547024bdc288d02e73fdb65e65991df5f | refs/heads/master | 2020-09-03T15:57:31.157443 | 2019-11-04T05:25:46 | 2019-11-04T05:25:46 | 219,503,733 | 1 | 0 | BSD-3-Clause | 2019-11-04T13:06:20 | 2019-11-04T13:06:19 | null | UTF-8 | Python | false | false | 1,055 | py | from bokeh.plotting import figure, output_file, show
from bokeh.layouts import gridplot
from bokeh.models import ColumnDataSource, CDSView, BooleanFilter
output_file("linked_selection_subsets.html")
x = list(range(-20, 21))
y0 = [abs(xx) for xx in x]
y1 = [xx**2 for xx in x]
# create a column data source for the plo... | [
"bryanv@continuum.io"
] | bryanv@continuum.io |
b9ae2e9946a3611c2159abe0a20a624591d0eeca | 01abb5fe2d6a51e8ee4330eaead043f4f9aad99d | /Repo_Files/Zips/plugin.video.streamhub/resources/lib/ssources/moviesplanet.py | 60b053928b8fa5b276249a2f1673279da57f3e1c | [] | no_license | MrAnhell/StreamHub | 01bb97bd3ae385205f3c1ac6c0c883d70dd20b9f | e70f384abf23c83001152eae87c6897f2d3aef99 | refs/heads/master | 2021-01-18T23:25:48.119585 | 2017-09-06T12:39:41 | 2017-09-06T12:39:41 | 87,110,979 | 0 | 0 | null | 2017-04-03T19:09:49 | 2017-04-03T19:09:49 | null | UTF-8 | Python | false | false | 7,208 | py | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any l... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
7af29a7adb10691bd1d3489aa0ba317b07c05725 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03433/s436709756.py | e163d74f4c2ebdcbfc9df05eb5845a02f71786d2 | [] | 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 | 312 | py | import sys
def input(): return sys.stdin.readline().strip()
def resolve():
def main():
n=int(input())
a=int(input())
for i in range(21):
for j in range(a+1):
if 500*i+1*j==n:
return 'Yes'
return 'No'
print(main())
resolve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
977adbcee4f7e66c212151bd3cd2debce6e3a296 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/datamgr/metadata/metadata/service/cli/sync.py | c2b92b897f7fd23b10f29fadae1e110bf5e28230 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 2,562 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
711ef1d902fdb1f8db2c88e55e3da7671dffe1c3 | c974cf94626d04a83f3d5ccb25e06a99df537e21 | /python/ray/rllib/dqn/models.py | c3f4a08eb943e954dbe72a3c3e31f0a9cde49a0b | [
"MIT",
"Apache-2.0"
] | permissive | vtpp2014/ray | 00db3465812eb85890351dd345c43d2ed29745b8 | 4e4a4e4e062d37f3fb1c518ea5b0d0d7a32e5a60 | refs/heads/master | 2021-01-21T09:20:47.322556 | 2017-08-31T06:40:46 | 2017-08-31T06:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,153 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import tensorflow.contrib.layers as layers
from ray.rllib.models import ModelCatalog
def _build_q_network(inputs, num_actions, config):
dueling = config["dueling"]
hiddens = c... | [
"pcmoritz@gmail.com"
] | pcmoritz@gmail.com |
ffd098afc7c7363e15f0181d9a02f89ec7709a69 | a77802040fac0c1207902946f3a1e8a2d9a4fbd0 | /examples/ccxt.pro/py/binance-reload-markets.py | 50ad40b078a268a69c9fd85cc548d15e0af10bb8 | [
"MIT"
] | permissive | ndubel/ccxt | 6eef84cddc9ac42db2fd03b9eaa04befd59775e6 | 982a12b1ab0f02a11911bee8a0aba8ad4f35ded1 | refs/heads/master | 2023-07-29T15:45:37.941234 | 2022-04-05T10:26:05 | 2022-04-05T10:26:05 | 331,591,556 | 1 | 0 | MIT | 2021-01-21T10:24:16 | 2021-01-21T10:24:15 | null | UTF-8 | Python | false | false | 1,360 | py | import ccxtpro
from asyncio import get_event_loop, gather
print('CCXT Pro version', ccxtpro.__version__)
async def watch_order_book(exchange, symbol):
while True:
try:
orderbook = await exchange.watch_order_book(symbol)
datetime = exchange.iso8601(exchange.milliseconds())
... | [
"igor.kroitor@gmail.com"
] | igor.kroitor@gmail.com |
ea01353fee3883e777cd572d6adebbe811a1ae98 | 8a61f0803e9d18772d867857a5a2a15e9549e6f5 | /pnu/urls.py | 6434f255de0516ae85606ecbb65c5bbecf72cc79 | [] | no_license | hjlee73/pnu-django-201904 | 94504935bf5bdb511d7b99c138e3ea3d9ac5f758 | 6e39a9b63525a8312968cabcc190f8661e1aa9e3 | refs/heads/master | 2020-05-20T18:19:55.389915 | 2019-04-12T08:22:12 | 2019-04-12T08:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from django.contrib import admin
from django.urls import include, path
# FIXME: 이 코드는 RedirectView에 의해서 제거될 것입니다.
from django.shortcuts import redirect
def root(request):
return redirect("/shop/")
urlpatterns = [
path('admin/', admin.site.urls),
path('shop/', include('shop.urls')),
path('', root),
]
| [
"me@askcompany.kr"
] | me@askcompany.kr |
552213ea699ee5c5dbeb98cc9cf8b5eaf76bed64 | cf6646983a0088248acfc5dafefd847a350bac94 | /posts/views/admin.py | 0e677adb3fb805b838df242ecf343a7ae63fbd7b | [
"MIT"
] | permissive | Toxblh/vas3k.club | a370239e95b496f234cd6dd018881f1dcfa78d69 | 97fa3c815b25a6af789ba04892627f6c6c822113 | refs/heads/master | 2022-11-09T01:43:56.581340 | 2020-07-05T18:51:21 | 2020-07-05T18:51:21 | 277,580,310 | 1 | 0 | MIT | 2020-07-06T15:30:57 | 2020-07-06T15:30:56 | null | UTF-8 | Python | false | false | 1,896 | py | from django.shortcuts import get_object_or_404, render
from auth.helpers import auth_required, moderator_role_required
from bot.common import render_html_message
from notifications.telegram.posts import announce_in_club_channel
from posts.admin import do_post_admin_actions
from posts.forms.admin import PostAdminForm, ... | [
"me@vas3k.ru"
] | me@vas3k.ru |
048521fbf9c0d46993e2505ccc84c3e21302ed2a | ec65636f2f0183c43b1ec2eac343b9aa1fc7c459 | /train/abnormal_detection_new/10.133.200.69/session_active.py | 17249ec5279b8fc88290cc73764f849af4dd5cb5 | [] | no_license | tyroarchitect/AIOPs | db5441e5180fcace77b2d1022adb53bbd0b11f23 | 46fe93329a1847efa70e5b73bcbfd54469645cdd | refs/heads/master | 2020-04-16T13:45:02.963404 | 2018-11-15T06:50:57 | 2018-11-15T06:51:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,203 | py | import tensorflow as tf
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# settings of lstm model
timesteps = 20
batch_size = 64
epochs = 5
lstm_size = 30
lstm_layers = 2
filename = "../../../datasets/1-10.133.200.69_20181027_20181109.csv"
model = "../../../model/abnormal_detection_model_new/10... | [
"873869027@qq.com"
] | 873869027@qq.com |
899ddad0ccaa03f1cccb2693cbfe0916db0a2112 | cd781c114deb0ee56fcd8e35df038397ebf8dc09 | /Classes and Objects basics/Class.py | 90dd512abd00251408ad11e23ac9c5e7d11cfc57 | [] | no_license | GBoshnakov/SoftUni-Fund | 4549446c3bb355ff74c14d6071d968bde1886de5 | de9318caaf072a82a9be8c3dd4e74212b8edd79e | refs/heads/master | 2023-06-06T04:56:14.951452 | 2021-06-30T21:50:44 | 2021-06-30T21:50:44 | 381,817,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | class Class:
__students_count = 22
def __init__(self, name):
self.name = name
self.students = []
self.grades = []
def add_student(self, name, grade):
if Class.__students_count > len(self.students):
self.students.append(name)
self.grades.append(grade)
... | [
"boshnakov.g@gmail.com"
] | boshnakov.g@gmail.com |
f2427f13f588cf7376778e89b011741ee33122e9 | 24eeb28433680606f9d1e099b19ec595552cf06b | /repo/plugin.video.shadow/resources/modules/mediaurl.py | e9b928533b79bd2f69b6f54703a5a709481a89e7 | [] | no_license | irmu/arda | d8ecdedc17bb01650b538dc9e00f438b6d0eed5a | 9b7cab3656c2497c812ab101a56ed661dd8cf4a7 | refs/heads/main | 2023-09-01T08:48:02.823681 | 2023-08-29T18:11:28 | 2023-08-29T18:11:28 | 151,835,016 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | '''
Copyright (C) 2014-2016 ddurdle
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is di... | [
"zacharias.sama@gmail.com"
] | zacharias.sama@gmail.com |
7864ee4973a26fb92dac10a132763892fb308197 | b54eb04ec2de1dec11a7143c6b5049a1d031ddaf | /test/baselines/bench/monitor.py | de942e56796664c57ce2c88a82de1e85341665de | [] | no_license | Jerryxiaoyu/CR_CPG_RL | 78c4c6e7539f08465b1f55125e04f982b1323bf2 | 69213cc48440ea66c42fbe3ace35163174686321 | refs/heads/master | 2020-03-28T12:11:51.491796 | 2018-09-14T04:32:33 | 2018-09-14T04:32:33 | 148,277,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,832 | py | __all__ = ['Monitor', 'get_monitor_files', 'load_results']
import gym
from gym.core import Wrapper
import time
from glob import glob
import csv
import os.path as osp
import json
import numpy as np
class Monitor(Wrapper):
EXT = "monitor.csv"
f = None
def __init__(self, env, filename, allow_early_resets=Fa... | [
"drl@wjy.com"
] | drl@wjy.com |
2df22224aa226dc75cbe956bcad704c9efbeb719 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /uhd_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/dhcpv6serverglobals/dhcpv6serverglobals.py | 321f4303de80c42f3b8c01d087612a4cd30a8aff | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,767 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
10d43faffcf81b8dde6fa7ea3ea774c52a986c6b | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Numerical_Heat_Transfer_and_Fluid_Flow_Patankar/CFD_books_codes-master/Patnakar/2D_SIMPLE_algorithm.py | 1ede47be2bee4e11dc15afb666b92bb83cea0fe6 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 4,324 | py | import numpy as np
from matplotlib import pyplot as plt
# Peclet function scheme
def funcPeclet(P, n):
if n == 1:
# Central Difference
return 1 - 0.5*np.mod(P, 1)
if n == 2:
# Upwind
return 1
if n == 3:
# Hybrid
return max(0, 1 - (0.1 * pow(np.... | [
"me@yomama.com"
] | me@yomama.com |
5d73acd96034f8bcfb122c5a8fd790141f859aa3 | 50b2a447cccfbad70ca2f7d19d4550a708a74cbe | /blog/urls.py | 6bfee92f9dce6c0387b338a007edade69a9decda | [] | no_license | halsayed/portfolio_project | c07fa9f21f252d5cce130c78220ceefed2504675 | c22c3d219b126b71951377285b18ce1b438a1b1d | refs/heads/master | 2020-03-20T11:25:37.333806 | 2018-06-17T21:18:50 | 2018-06-17T21:18:50 | 137,402,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.allblogs, name='allblogs', ),
path('<int:blog_id>/', views.blogdetail, name='blogdetail')
] | [
"husain@alsayed.ws"
] | husain@alsayed.ws |
6c04ed9d151a7bd672fa94d24da5c68676b8669c | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /cogdominium/CogdoBarrelRoom.py | 2bda0b18b835d5204d88476acf5c89a676ed85f0 | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 7,736 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.cogdominium.CogdoBarrelRoom
from panda3d.core import Camera, Fog, Lens, Light, Point3, Vec3
import random
from direct.interval.IntervalGlobal import *
from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import ToontownGlobals... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
46fe97177f3bbbce62cfb44bf9651cb61d005666 | 39d17148ac0517af1b0fdfc9e0f2d962183b7953 | /dev/benchmarks/bench_check.py | d393c4fdb7662e18e06543bc2386b656eabe00af | [
"Apache-2.0"
] | permissive | Erotemic/progiter | a784f69fbca990a53d7f5abd56527f56b720c7f1 | 2d8e1a90b2de59e74c21b5f026832a119aa840e1 | refs/heads/main | 2023-06-22T05:01:03.177353 | 2023-06-20T17:36:08 | 2023-06-20T17:36:08 | 134,924,299 | 15 | 2 | Apache-2.0 | 2023-06-11T21:35:08 | 2018-05-26T02:59:51 | Python | UTF-8 | Python | false | false | 3,753 | py | import ubelt as ub
import progiter
import timerit
def basic_benchmark():
"""
Run the simplest benchmark where we iterate over nothing and compare the
slowdown of using a progress iterator versus doing nothing.
"""
N = 100_000
ti = timerit.Timerit(21, bestof=3, verbose=2)
for timer in ti.r... | [
"erotemic@gmail.com"
] | erotemic@gmail.com |
88983ba58579d66596f8efac20102f270c9fba97 | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code-Python 3.0.1/ch405.py | 6791b224e8992f7ce92ddf7376f1155f90e2870e | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
## 宣告user變數與passwd變數來接收使用者輸入的帳號與密碼
user = input("login:")
passwd = input("password (empty for guest):")
## 使用string.strip()函數將使用者輸入的空白字元刪除, 因為使用者可能會輸入空白字元
user = user.strip()
passwd = passwd.strip()
if (user == "" and passwd == "") or (user =="" and passwd !=""):
prin... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
64b5a847f9463a91bd9efb546c74636a4fb7aec1 | 8c73955b7b3b8e7893e8ff3d78341a99a66f6c12 | /src/train.py | 8c7ed1b65cf8e7129a30f83b730aafb482fdd906 | [] | no_license | akiFQC/shinra-attribute-extraction | ba9452d005830b6c24c80d166a8ff3bcf82a70b8 | 633f65ec5b61b8937fdf9cf24fe4ae07960e93fd | refs/heads/main | 2023-07-14T03:22:16.927915 | 2021-08-12T08:34:03 | 2021-08-12T08:34:03 | 396,015,806 | 0 | 0 | null | 2021-08-14T13:22:14 | 2021-08-14T13:22:13 | null | UTF-8 | Python | false | false | 5,631 | py | import argparse
import sys
from pathlib import Path
import json
import torch
from torch.utils.data import DataLoader
from torch.nn.utils.rnn import pad_sequence
import torch.optim as optim
from transformers import AutoTokenizer, AutoModel
from tqdm import tqdm
from seqeval.metrics import f1_score, classification_repor... | [
"suzzz428@gmail.com"
] | suzzz428@gmail.com |
93b678058a71e6771be47a04bd1790e2246fbffb | bbac91977974702ce52fc0be2e279dc7750f7401 | /backend/serializers.py | 435150b1d1ced60909c704c0a6783b467c8af0fc | [] | no_license | Occy88/BiddingSystem | bbb0cc85a3621622cbbcb1313fbe1f1fc74a8f72 | a8619bad0efee8d2256ef11f358d99c21e5a67b2 | refs/heads/master | 2023-01-13T08:53:16.450312 | 2019-12-19T18:19:59 | 2019-12-19T18:19:59 | 226,520,713 | 0 | 0 | null | 2022-12-13T00:50:21 | 2019-12-07T13:48:08 | JavaScript | UTF-8 | Python | false | false | 2,235 | py | from rest_framework import serializers
from .models import Bid, Session
from django.contrib.auth.models import Group
from django.conf import settings
from pydoc import locate
from guardian.shortcuts import assign_perm, remove_perm
class BidSerializer(serializers.ModelSerializer):
# to work out all the fk relatio... | [
"octavio.delser@gmail.com"
] | octavio.delser@gmail.com |
9ef29961f26a8da8006d6b5e60b61e46c0c62589 | 50500f7e7afc0a401cfa99bdaf438d3db90072f2 | /biothings_explorer/tests/test_biolink.py | 4e4ee740fe09c60983633aab11272b78500c4821 | [
"Apache-2.0"
] | permissive | andrewsu/bte_schema | 903112b8344512bfe608d77948d864bb134596df | b727dfded0d10b32ef215094715171ef94c38e34 | refs/heads/master | 2020-07-27T02:59:40.552124 | 2019-11-12T17:48:18 | 2019-11-12T17:48:18 | 208,845,945 | 0 | 0 | Apache-2.0 | 2019-09-16T16:23:42 | 2019-09-16T16:23:42 | null | UTF-8 | Python | false | false | 7,109 | py | import unittest
from biothings_explorer.registry import Registry
from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher
class TestSingleHopQuery(unittest.TestCase):
def setUp(self):
self.reg = Registry()
def test_anatomy2gene(self):
# test <chemical, interactswith, ana... | [
"kevinxin@scripps.edu"
] | kevinxin@scripps.edu |
3ffaa9adfc101e07ad05a1009bd90c9f436236e6 | 8ecf4930f9aa90c35e5199d117068b64a8d779dd | /TopQuarkAnalysis/SingleTop/test/Mu_2011A_08Nov_part_13_cfg.py | c75a13863b8955018a45775a881133abc70b43f0 | [] | no_license | fabozzi/ST_44 | 178bd0829b1aff9d299528ba8e85dc7b7e8dd216 | 0becb8866a7c758d515e70ba0b90c99f6556fef3 | refs/heads/master | 2021-01-20T23:27:07.398661 | 2014-04-14T15:12:32 | 2014-04-14T15:12:32 | 18,765,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,786 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("SingleTopSystematics")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(True),
FailPath = cms.untracked.vstring('ProductNotFound','Type Mismatch')
)
process.load(... | [
"Francesco.Fabozzi@cern.ch"
] | Francesco.Fabozzi@cern.ch |
0c1eaf6ef7a2bb9f5dddea73b74a3522c161aa8e | 31a0b0749c30ff37c3a72592387f9d8195de4bd6 | /release/ray_release/cluster_manager/full.py | 766362e1e86753db1292ea1840b740d60951cc41 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | longshotsyndicate/ray | 15100bad514b602a3fa39bfe205288e7bec75d90 | 3341fae573868338b665bcea8a1c4ee86b702751 | refs/heads/master | 2023-01-28T15:16:00.401509 | 2022-02-18T05:35:47 | 2022-02-18T05:35:47 | 163,961,795 | 1 | 1 | Apache-2.0 | 2023-01-14T08:01:02 | 2019-01-03T11:03:35 | Python | UTF-8 | Python | false | false | 4,391 | py | import time
from ray_release.exception import (
ClusterCreationError,
ClusterStartupError,
ClusterStartupTimeout,
ClusterStartupFailed,
)
from ray_release.logger import logger
from ray_release.cluster_manager.minimal import MinimalClusterManager
from ray_release.util import format_link, anyscale_cluste... | [
"noreply@github.com"
] | longshotsyndicate.noreply@github.com |
17a8ecc861f7d8cd4aca3b5ccae2459c6969877e | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/reverseString/reverseString.py | 8d30b5defc2ca207f40965dab0c6cfe7eaa1a921 | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/reverse-string/
# Author: Miao Zhang
# Date: 2021-02-03
class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
return s.rever... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
5d6169c3b0d31fc740377c9c1c9ff5e09fb5a40d | 71bc873c20fbc45bb5e13095d2474496818a23f9 | /service_coldstart/code/redundant_code/send_email_withAttachment.py | 6027018a46aac7ab761d72c23456d9367df891aa | [] | no_license | 2877992943/lianyun | f31c44ea2e266bae51cae4fa464d1bae368c8d3f | a872d6cd1b2eff402bcccb326d33d086816d87af | refs/heads/master | 2021-01-20T16:17:20.226401 | 2017-05-10T06:49:31 | 2017-05-10T06:49:31 | 90,830,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,904 | py | #!/usr/bin/env python
#coding: utf-8
import pandas as pd
"""
http://www.cnblogs.com/leetao94/p/5460520.html
"""
import smtplib
from email.mime.text import MIMEText
from email.header import Header
import email.MIMEMultipart
import email.MIMEText
import email.MIMEBase
import os.path
def SendEmail(fromAdd, toAdd... | [
"2877992943@qq.com"
] | 2877992943@qq.com |
f326d396098af535a466262caabde1b751d25673 | e8fef7552fb0c354d1084d2b4e7bf16efb7b9021 | /tests/__init__.py | de4f4ac5908f313553e18bad2d117aacd1fda75c | [
"MIT"
] | permissive | TristanTTran/feets | 180ea67030c88b9eebb77923fe1af6746f654b30 | 48b16a5f2b95c0a4c05b47a88b396250faf168d6 | refs/heads/master | 2023-03-28T01:07:48.636265 | 2021-03-26T01:28:36 | 2021-03-26T01:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
# Copyright (c) 2017 Juan Cabral
# 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 withou... | [
"jbc.develop@gmail.com"
] | jbc.develop@gmail.com |
e21891fa297ee7c4ca8a4e8d84c6160a9d883849 | 84c5ce2f75ec8d4d9704dc993682ba52745a3e12 | /m_layer/m_layer.py | d1b535b8a4da916f3951a00e1000943a97f0ea0c | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | yang-song/google-research | d0610748ae8056cfa2f89345053b386e976a1b82 | 34119b64214af089db8c675e6a03b30a0f608f66 | refs/heads/master | 2022-12-16T06:05:40.561237 | 2020-09-17T20:39:13 | 2020-09-17T20:42:11 | 296,450,555 | 1 | 0 | Apache-2.0 | 2020-09-17T21:55:10 | 2020-09-17T21:55:09 | null | UTF-8 | Python | false | false | 3,595 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5311c7de6d4c19bc5c23b7024f94490d6e4da152 | 648f742d6db2ea4e97b83c99b6fc49abd59e9667 | /common/vault/oas/models/global_parameters_create_global_parameter_request.py | 13908154762177b2ca58227508b96bd210f59d49 | [] | no_license | jmiller-tm/replit | c56ce63718f6eb2d9b53bd09d3f7b3ef3496cb86 | c8e6af3268c4ef8da66516154850919ea79055dc | refs/heads/main | 2023-08-30T00:49:35.738089 | 2021-11-16T23:09:08 | 2021-11-16T23:09:08 | 428,809,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,259 | py | # coding: utf-8
"""
vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/... | [
"jmiller@jmiller-tm00769-mbp.nomad.thomac.net"
] | jmiller@jmiller-tm00769-mbp.nomad.thomac.net |
200c75fdff4fa1317c02a08f43dc506d3c02c506 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/330/usersdata/302/93449/submittedfiles/lista1.py | 3c901a262a68d819c6cfc03bf35fedd1961bb928 | [] | 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 | 171 | py | # -*- coding: utf-8 -*-
n = int(input('DIgite a quantidade de valores da matriz: '))
a = []
for i in range(0,n,1):
a.append(float(input('Digite a%d:' %(i+1))))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
12f159b5cb51056d3aa2a0c1960d1e41b4d15d73 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /73/73.set-matrix-zeroes.661615342.Accepted.leetcode.python3.py | e41b638e253235c385e74103532f377b5bc54df6 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | class Solution:
def setZeroes(self, matrix):
if not matrix or not matrix[0]:
return
h = len(matrix)
w = len(matrix[0])
rows_to_remove = set()
cols_to_remove = set()
for i in range(h):
if i not in rows_to_remove:
for j in range(w... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
27b7bea7760d2aae277db6002c3ca2da3c455373 | b8842700c2e071408bfab20bd499c6a4a47d0ccc | /week8/longest_subseq.py | 235e90d05bcab9175a7c4d4306fc0cd8ada18942 | [] | no_license | kobso1245/Algorithms | c74439b662d32b116b8ea3c7e6958b77d1a85bf5 | 1566a3b5e636f6a83f486382f17bff640da923a4 | refs/heads/master | 2016-08-10T10:11:14.314792 | 2015-10-05T21:36:45 | 2015-10-05T21:36:45 | 36,860,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | def longest_subs(elems):
table = [(0, "") for x in range(len(elems))]
max_elem = elems[0]
curr_max_elem = 0
max_length = 0
max_pos = len(elems)
for i in range(len(elems) - 1, -1, -1):
curr_max_elem = 0
curr_max_index = i
for j in range(i + 1, len(elems)):
if e... | [
"kalo.evt@mail.bg"
] | kalo.evt@mail.bg |
b43371ed5b350666c780f23524655c92cfef2f34 | 7c7236aa95ebebe241f04b98d55f3033b19dadc2 | /cms/venv/Scripts/pip3.6-script.py | c9130b7fc695e3c6029ee434982930129888e925 | [] | no_license | taisuo/cms | 57d792bb47d85bf6a4a39558a1bc34457a355c26 | dd8baa834d6426a2ce7406ea0b74eab252ef7789 | refs/heads/master | 2020-08-03T13:49:44.754754 | 2019-10-08T04:00:21 | 2019-10-08T04:00:21 | 211,765,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!G:\pythonwork\server\cms\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.ex... | [
"3148378928@qq.com"
] | 3148378928@qq.com |
8cab479aead0b05b07915bd2b9ec453d151bf9d4 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_capsules.py | 32a574bf1d186e135bc230087ec65675e0aa1fde | [
"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 | 226 | py |
#calss header
class _CAPSULES():
def __init__(self,):
self.name = "CAPSULES"
self.definitions = capsule
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['capsule']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
41548045a42748d17ade7d29eac099167198820d | dd32c5788caab10641c055b89c8c08f7b8a05361 | /pippin/config.py | 427652c0d1c6b105281b48ba0a698b382be69a79 | [
"MIT"
] | permissive | jcraig5/Pippin | bae71ab24e819f02ca732d18560cfe3543b18050 | 85db01173dd4a4f12af39cd3a2bad3a713e8767d | refs/heads/master | 2020-05-31T09:55:08.416338 | 2019-06-13T16:45:39 | 2019-06-13T16:45:39 | 190,225,226 | 0 | 0 | MIT | 2019-06-13T16:45:40 | 2019-06-04T15:09:56 | Python | UTF-8 | Python | false | false | 3,032 | py | import configparser
import inspect
import os
import logging
import hashlib
import shutil
import os
import shutil
import stat
def singleton(fn):
instance = None
def get(*args, **kwargs):
nonlocal instance
if instance is None:
instance = fn(*args, **kwargs)
return instance
... | [
"samuelreay@gmail.com"
] | samuelreay@gmail.com |
0b227badbe12d72eda1d08bf7b85c82dca9a0cc6 | 008c5aa9d132fa2549e089ae8df2ef1ce15ad020 | /response_timeout/middleware.py | dd8597205cd6de79d9e8ffdb02f0c87431542156 | [
"MIT"
] | permissive | movermeyer/django-response-timeout | 0c0cedc5c838011d314c57e4ab42252639b350f7 | 38f7462ab71d967749efc3be914e2a7a2df80f33 | refs/heads/master | 2021-01-25T14:33:17.576026 | 2013-07-20T13:56:44 | 2013-07-20T13:56:44 | 123,708,880 | 0 | 0 | MIT | 2018-03-03T16:17:38 | 2018-03-03T16:17:38 | null | UTF-8 | Python | false | false | 571 | py | from django.conf import settings
from django.utils.cache import patch_response_headers
class SetCacheTimeoutMiddleware(object):
"""
Request-phase middleware that sets the timeout of each response based on
the RESPONSE_CACHE_SECONDS
If using with UpdateCacheMiddleware, must be placed after so that it ... | [
"s.shanabrook@gmail.com"
] | s.shanabrook@gmail.com |
4cdc462c66dbf52bd65ffa90d47ca5bfebbb3f68 | 6e3e1834eaad3a0c97bf645238e59a0599e047b4 | /blog/urls/entries.py | b1a1b1567818f862b31ae4101bac790aab9a1abd | [
"JSON"
] | permissive | davogler/davsite | 2dc42bfebb476d94f92520e8829999859deae80b | edd8ceed560690fa2c3eefde236416ffba559a2e | refs/heads/master | 2021-01-19T06:31:20.655909 | 2014-01-03T19:04:13 | 2014-01-03T19:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | from django.conf.urls.defaults import *
from django.views.generic.dates import YearArchiveView, MonthArchiveView, DayArchiveView, DateDetailView
from blog.models import Entry
entry_info_dict = {'queryset':Entry.live.all(), 'date_field': 'pub_date', }
urlpatterns = patterns('',
# Pagination for the equivalent of arch... | [
"dave@sparkhouse.com"
] | dave@sparkhouse.com |
b2b0bcb274470509901337f8aafa2e13ec47fc33 | 278d7f4467a112416d1adfbcd3218033ff0fd9b3 | /configs/gfl/gfl_r50_fpn_mstrain_2x_coco.py | ace084ddd452aab6f3f34cc7bc60057b5b0e2962 | [] | no_license | Young-1217/detection | e3d67938b454e955b5b7a82d5ae222e62f9545fb | 6760288dac92e00ddc3e813ed0e1363c1fa1ce2d | refs/heads/main | 2023-06-01T21:41:37.998947 | 2021-06-21T10:03:01 | 2021-06-21T10:03:01 | 371,868,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | _base_ = './gfl_r50_fpn_1x_coco.py'
# learning policy
lr_config = dict(step=[16, 22])
total_epochs = 24
# multi-scale training
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
train_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='LoadAnnotations... | [
"noreply@github.com"
] | Young-1217.noreply@github.com |
f4c5184a6cca72d60a9a2cf2d98f15f9d2314811 | f907f8ce3b8c3b203e5bb9d3be012bea51efd85f | /around_square.py | b2b414eff97fad0c386ab0b4c9d138fc545e7555 | [] | no_license | KohsukeKubota/Atcoder-practice | 3b4b986395551443f957d1818d6f9a0bf6132e90 | 52554a2649445c2760fc3982e722854fed5b8ab1 | refs/heads/master | 2020-08-26T15:17:29.344402 | 2019-10-26T11:14:24 | 2019-10-26T11:14:24 | 217,052,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import math
N = int(input())
res = 0
for i in range(int(math.sqrt(N))+1):
val = i**2
if val > res:
res = val
print(res)
| [
"kohsuke@KohsukeKubotas-MacBook-Air.local"
] | kohsuke@KohsukeKubotas-MacBook-Air.local |
02e4fbe4535d2b7c0983b305399c7b442082d716 | 251d56a94b0d879a07a3d47a41f21258fa452a1f | /soqt/lilac.py | 4127feb783bb69597b471987d0d06cc245cd1b83 | [] | no_license | paroque28/arch4edu | d9bb5f5af008989454fe71677621149ae45c58cc | 24df17749cf556ed668c3a886a698ecbdcca211c | refs/heads/master | 2020-12-26T13:33:43.987122 | 2020-01-27T16:41:41 | 2020-01-27T16:41:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #!/usr/bin/env python3
from lilaclib import *
maintainers = [{'github': 'petronny'}]
update_on = [{'aur': None}]
repo_depends = ['coin']
build_prefix = 'extra-x86_64'
pre_build = aur_pre_build
post_build = aur_post_build
if __name__ == '__main__':
single_main(build_prefix)
| [
"i@jingbei.li"
] | i@jingbei.li |
e007362f985c8d2e6793d6f6d5e7ba3a6cdecbdd | d6254d3a0996d7977816c167bc2af76677a52b87 | /bigsi/cmds/search.py | cdbdd27ce5975e51c6880a3a79b9cbab407014af | [
"MIT"
] | permissive | rpetit3/BIGSI | f95c57a58e4ccfdd3d098737d76962a44565163e | d3e9a310e6c91c887d7917ced5609b6002a67623 | refs/heads/master | 2020-04-03T11:30:04.683289 | 2018-06-08T14:47:33 | 2018-06-08T14:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | #! /usr/bin/env python
from __future__ import print_function
# from bigsi.utils import min_lexo
from bigsi.utils import seq_to_kmers
from bigsi.graph import BIGSI as Graph
import argparse
import os.path
import time
from Bio import SeqIO
import json
import logging
import sys
logger = logging.getLogger(__name__)
from big... | [
"wave@phel.im"
] | wave@phel.im |
56aceb4af73c59684df5c5acbffce3711e16c735 | abcfd07772ce75f34e51592189c29cf84d1a3611 | /flask/lib/python3.6/site-packages/sqlparse/utils.py | a620f2d3c17fbfba4d56e6a4d8608c27420f4868 | [] | no_license | yuhaihui3435/p_mc | 66d89bcccf214e53729b26a0f80ddee8797e9e3e | 3039a5c691b649fc88e941a2553b1a7e0aac2a0a | refs/heads/master | 2021-06-28T18:52:00.111385 | 2017-09-15T00:26:02 | 2017-09-15T00:26:58 | 103,524,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2016 Andi Albrecht, albrecht.andi@gmail.com
#
# This module is part of python-sqlparse and is released under
# the BSD License: https://opensource.org/licenses/BSD-3-Clause
import itertools
import re
from collections import deque
from contextlib import contextmanager
from sql... | [
"125227112@qq.com"
] | 125227112@qq.com |
ca7fe2126b290de9c15044feaa402731564a284c | 846506a6c9023a21ff831c637f71cffd3b0aab62 | /Python/X_Archive/AddLabelSplits.py | 585014bdeeaa59c66a2eac711aee31123872d4e2 | [] | no_license | emonson/Weinfurt_DocFreq | b90378e57af7c17d32c72e5924a1b9af9f0f6584 | 1c9082d8ce4c0d002b6a65d446421840e24435fd | refs/heads/master | 2020-05-29T21:05:01.397101 | 2015-01-22T13:53:53 | 2015-01-22T13:53:53 | 29,681,004 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | # After changing data labels to new dataXXX scheme, automating
# some of the sentence splits based on the Datamap...xls sheet
import xlrd
book = xlrd.open_workbook('Datamap with Sentence IDs.xls')
sh = book.sheet_by_index(0)
ids = sh.col_values(0,12)
sentences = sh.col_values(1,12)
f = open('LongVer_newLabelsPrelim... | [
"emonson@cs.duke.edu"
] | emonson@cs.duke.edu |
75f33a50056f2286b145c44e8361185d4ff87561 | 16b4229a925a4e3b0e760f401d80c4d2adb793a9 | /models/real_nvp/coupling_layer.py | d8b2581f2febe1eaab92fecde288e1f539fd103a | [
"MIT"
] | permissive | ahmadkhajehnejad/real-nvp | 4fc5a6a5f23fe076304b5652277a8de70ab4f068 | 15f51eb91388fc232334123ac11467c4d3aa3d33 | refs/heads/master | 2022-08-11T09:37:32.353605 | 2020-05-18T12:24:39 | 2020-05-18T12:24:39 | 261,586,549 | 0 | 0 | MIT | 2020-05-05T21:25:51 | 2020-05-05T21:25:50 | null | UTF-8 | Python | false | false | 3,919 | py | import torch
import torch.nn as nn
from enum import IntEnum
from models.resnet import ResNet
from util import checkerboard_mask
class MaskType(IntEnum):
CHECKERBOARD = 0
CHANNEL_WISE = 1
class CouplingLayer(nn.Module):
"""Coupling layer in RealNVP.
Args:
in_channels (int): Number of channe... | [
"chutechristopher@gmail.com"
] | chutechristopher@gmail.com |
7f77fb3562993641b617a5b8f28eb60e5b4690d8 | 615f83418985b80f2a2a47200acb08dfa9418fc7 | /identities/widgets.py | f59c91e055afcef5e61baf70b159870a655016a6 | [
"MIT"
] | permissive | alejo8591/maker | a42b89ddc426da326a397765dc091db45dd50d8e | 001e85eaf489c93b565efe679eb159cfcfef4c67 | refs/heads/master | 2016-09-06T19:36:01.864526 | 2013-03-23T06:54:21 | 2013-03-23T06:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # encoding: utf-8
# Copyright 2013 maker
# License
"""
Identities module widgets
"""
WIDGETS = {'widget_contact_me': {'title': 'My Contact Card',
'size': "95%"}}
def get_widgets(request):
"Returns a set of all available widgets"
return WIDGETS | [
"alejo8591@gmail.com"
] | alejo8591@gmail.com |
9fa1eef441427dbc31a6b3821675d6bfcc0a7512 | da8adef15efbdacda32b19196b391f63d5026e3a | /ITMO/ML/Lab5/main.py | 5fbef8d876250cd8a74ae41ce03cc26e95b369ec | [] | no_license | rubcuadra/MachineLearning | 05da95c1f800e6acbce97f6ca825bd7a41d806a6 | aa13dd007a7954d50586cca6dd413a04db18ef77 | refs/heads/master | 2021-03-19T17:33:14.080691 | 2018-10-19T23:43:27 | 2018-10-19T23:43:27 | 100,544,903 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,440 | py | '''
You should implement the feature selection algorithm based on the utility metric (the Filter method).
Implement several utility metrics and compare their performance at classification tasks.
https://en.wikipedia.org/wiki/Feature_selection
https://machinelearningmastery.com/an-introduction-to-feature-selection/... | [
"rubcuadra@gmail.com"
] | rubcuadra@gmail.com |
09dc4b8c4826d5758b97747fe4b4d51aa543a01a | 5053116ea6876add7903bf9433a9cf5da6aa5cbb | /CI_final project/rbfnet/RBF.py | 37606ac2732850630bf4bcd555651a1ffac725a9 | [] | no_license | Yasaman1997/Computatioanal-Intelligence | 4c400643bc4eb8ab30e51fc1fe7e76cf2d2ca2e5 | 65607a5d3ff6e08269584f9055f4feba5358abe2 | refs/heads/master | 2020-12-27T07:41:18.100841 | 2020-02-02T19:29:28 | 2020-02-02T19:29:28 | 237,819,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,066 | py | import math
import matplotlib.pyplot as plt
import numpy as np
import FCM
import code
class RBF:
def __init__(self, path, clusters, fuzziness_parameter, gama, n_class):
path = path
self.dataset = code.prepare_data()
self.n_cluster = clusters
self.m = fuzziness_param... | [
"noreply@github.com"
] | Yasaman1997.noreply@github.com |
2a38b18643398080afdf4fbe89533401fdd3c67d | 4c300a18ba13bed9e0fa933a9f6d01187e005468 | /devrun/cmd/web.py | d2a193d5aa0a8dded14213a28127cad236a46f7a | [] | no_license | smurfix/devrun | 08def56eda1090e9489b2f3c33d2a26d9a143277 | d6098fafc79c81d65468a6cbdaaf0b8633ebde97 | refs/heads/master | 2021-01-25T01:22:05.091114 | 2017-06-22T10:54:40 | 2017-06-22T10:54:40 | 94,753,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division, unicode_literals
##
## This file is part of devrun, a comprehensive controller and monitor for
## various typed code.
##
## devrun is Copyright © 2016 by Matthias Urlichs <matthias@urlichs.de>,
## it is licensed under the GPLv3. S... | [
"matthias@urlichs.de"
] | matthias@urlichs.de |
a32077954feaaf66d2e4a23b6ccbfb1d5d8009ef | bcc199a7e71b97af6fbfd916d5a0e537369c04d9 | /leetcode/solved/53_Maximum_Subarray/solution.py | 4b9dd9a6ff3ffd63395f61fdf9315a2b1fb9c7b9 | [] | no_license | sungminoh/algorithms | 9c647e82472905a2c4e505c810b622b734d9d20d | 1389a009a02e90e8700a7a00e0b7f797c129cdf4 | refs/heads/master | 2023-05-01T23:12:53.372060 | 2023-04-24T06:34:12 | 2023-04-24T06:34:12 | 87,406,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 sungminoh <smoh2044@gmail.com>
#
# Distributed under terms of the MIT license.
"""
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
A subarray is... | [
"smoh2044@gmail.com"
] | smoh2044@gmail.com |
eeed637ae329962457dea76e8a46dd6381f588f2 | 1832a909b2c564bc623bca36dd3eea8c5587e2db | /server/core/migrations/0007_auto_20170206_0100.py | 30aa6f8b8b22f8af086a24dce4fe314c5837a1d1 | [] | no_license | bravesoftdz/tramsdaol | ea4370b93ccba6ba569e948d552bab89042fb337 | e726a00a0296454582f18d18956140c67be8cf8d | refs/heads/master | 2020-03-20T02:57:25.088779 | 2017-04-01T01:31:49 | 2017-04-01T01:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-06 01:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0006_geographiccoordinate_search_address'),
]
operations = [
migrations.Alt... | [
"johni.douglas.marangon@gmail.com"
] | johni.douglas.marangon@gmail.com |
fe74a07943cbbc198295913a72e0c97901d333e8 | 4bbb67ae8d51c29641b153371e1f404b9af404f0 | /tetris/tetris.py | d54e00fbee9dd349be46d1875ea764db646c4d88 | [] | no_license | timurbakibayev/python_advanced | e328dd3b26d4b94a05e9218be483e97b149fa8bf | da7beace64e2c17c447efec314d757f8181b6acf | refs/heads/master | 2023-01-30T04:07:19.296989 | 2020-12-08T12:47:34 | 2020-12-08T12:47:34 | 291,979,925 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,905 | py | import pygame
import random
pygame.init()
colors = [
(0, 0, 0),
(120, 37, 179),
(100, 179, 179),
(80, 34, 22),
(80, 134, 22),
(180, 34, 22),
(180, 34, 122),
]
transparent = (255,255,255,40)
figures = [
[[1, 5, 9, 13], [4, 5, 6, 7]],
[[4, 5, 9, 10], [2, 6, 5, 9]],
[... | [
"timurbakibayev@gmail.com"
] | timurbakibayev@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.