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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b218abc4a3878b1c37aa9b451d5db94469a9754 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_vials.py | e2e2135144acb3eec3b153e8a65f424466bd7147 | [
"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 | 224 | py |
from xai.brain.wordbase.nouns._vial import _VIAL
#calss header
class _VIALS(_VIAL, ):
def __init__(self,):
_VIAL.__init__(self)
self.name = "VIALS"
self.specie = 'nouns'
self.basic = "vial"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
668598c1677135991798fc681fc9b79dbb890462 | f4b7207e407d4b8d693cb1f549228f0e9dfe15f2 | /wizard/__init__.py | f5dd943f161b34c98e06101b0fee4d8e53968bd8 | [] | no_license | cgsoftware/BomForTemplate- | c74943790da9c49e44ac58ba3f15f9785f363483 | acbfcf0269c1c239c34a5505e01dca0653a046b9 | refs/heads/master | 2016-09-08T01:22:12.331360 | 2011-07-26T14:25:25 | 2011-07-26T14:25:25 | 2,107,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2009 Domsense SRL (<http://www.domsense.com>).
# All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the ... | [
"g.dalo@cgsoftware.it"
] | g.dalo@cgsoftware.it |
6063f7361ab755af9ef9d192f4341075d6c01b0e | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Cheese Boys/cheeseboys/character/navpoint.py | 2303769f6de56879ddc36d3ff5acaca3a6e1bd2d | [] | 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 | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e6854cdd531b75169a9912aa95b5fb937517d9124a0c484cac9b640d801e35fa
size 4235
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
112d51dc7aeee6b51999754cea1d6531ecd117dc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_personifies.py | cec8300a13cfbafaf3a5631fe6f9b682c22c0460 | [
"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 | 261 | py |
from xai.brain.wordbase.verbs._personify import _PERSONIFY
#calss header
class _PERSONIFIES(_PERSONIFY, ):
def __init__(self,):
_PERSONIFY.__init__(self)
self.name = "PERSONIFIES"
self.specie = 'verbs'
self.basic = "personify"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4f2aa479c10a74a807ed92d08466b41ffdcac02d | cb20ef5b4048457a2e6dca4a4cb45c53c9843744 | /scripts/migration/2017022_migraterouterosvlan.py | 6191cdfe265c19448e444e923ea100168d288c7c | [] | no_license | rudecs/openvcloud | 5001b77e8d943427c1bed563f3dcc6b9467936e2 | 12ccce2a54034f5bf5842e000c2cc3d7e22836d8 | refs/heads/master | 2020-03-24T00:00:10.422677 | 2018-11-22T13:41:17 | 2018-11-22T13:41:17 | 142,267,808 | 2 | 1 | null | 2018-07-25T08:02:37 | 2018-07-25T08:02:36 | null | UTF-8 | Python | false | false | 435 | py | from JumpScale import j
vcl = j.clients.osis.getNamespace('vfw')
ccl = j.clients.osis.getNamespace('cloudbroker')
for vfw in vcl.virtualfirewall.search({})[1:]:
space = next(iter(ccl.cloudspace.search({'gid': vfw['gid'], 'networkId': vfw['id']})[1:]), None)
if space:
externalnetwork = ccl.externalnetwo... | [
"deboeck.jo@gmail.com"
] | deboeck.jo@gmail.com |
4d44108df374a32aec622b77ee7de26ed9b32be8 | 0809ea2739d901b095d896e01baa9672f3138825 | /jobproject_4/jobApp/forms.py | c5d11f10832fc3d8d286690d106532d7052c0a19 | [] | no_license | Gagangithub1988/djangoprojects | dd001f2184e78be2fb269dbfdc8e3be1dd71ce43 | ea236f0e4172fbf0f71a99aed05ed7c7b38018e2 | refs/heads/master | 2022-11-15T23:46:46.134247 | 2020-07-15T06:37:51 | 2020-07-15T06:37:51 | 273,479,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django import forms
from jobApp.models import Hyderabad_jobs,Mumbai_jobs,Pune_jobs,Bangalore_jobs
class hydjobsForm(forms.ModelForm):
class Meta:
model=Hyderabad_jobs
fields='__all__'
class punejobsForm(forms.ModelForm):
class Meta:
model=Pune_jobs
fields='__all__'
class mu... | [
"djangopython1988@gmail.com"
] | djangopython1988@gmail.com |
375e89d3f8a2b3ccbf4dd393faeedd95a83ff1de | 2bc0ecba05876be2a674bdc215ed7bf7332956aa | /Challenges_2020_public/misc/Disconfigured/challenge/src/cogs/notes_cog.py | ae73712d66d0430e36af60d67846c105e562b1f3 | [
"MIT"
] | permissive | Silentsoul04/ctfs | 04c29c28347f3336d8feb945da20eba83326699e | fa3b187be2c8a1d20f414c2b37277d3961a366b0 | refs/heads/master | 2023-02-18T10:20:46.508273 | 2021-01-23T18:30:57 | 2021-01-23T18:30:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,749 | py | from __future__ import annotations
from datetime import datetime
from os import environ
from discord import ChannelType, Embed, Message
from discord.ext import commands, menus
from models.note import Note
from util import db
from util.logger import get_logger
logger = get_logger(__name__)
MAX_ALLOWED_NOTES = int(... | [
"you@example.com"
] | you@example.com |
8df9f667b2eeb9681ccbf493100549ddcaf96614 | 34691663465d37f3c24c004c27646ba070ef5198 | /tomopy_ui/config.py | 4837ee85aaeaa05d5d57573985fb07f5df696d6c | [] | no_license | cpchuang/tomopy_ui | ff8df8809286ff1a8dbf968e3b46b12c66da7d40 | a2e64d87b9b8269b90ba56be94f422474b905474 | refs/heads/main | 2023-07-15T19:48:18.801354 | 2021-08-19T02:14:01 | 2021-08-19T02:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,587 | py | import os
import sys
from ij import IJ
from os.path import expanduser
home = expanduser("~")
CONFIG_FILE_NAME = os.path.join(home, "tomopy_ui.txt")
class DatasetParameters:
def __init__(self, fields):
self.fields = fields
self.set()
def set(self):
self.fname = ""
self.ene... | [
"decarlof@gmail.com"
] | decarlof@gmail.com |
cf0b9cdd5d82ab982ce3bd9f1ff077f2de5eb38d | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/keyvault-preview/azext_keyvault_preview/vendored_sdks/azure_mgmt_keyvault/_version.py | 93ed747b94265f5417e23205ffd9859524ab0665 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 345 | 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.
# ---------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
365bda0ab035c045fe5cb3cca87d84322833509a | 6f21068b31084e81f38db304a51a2609d8af37cd | /2_Scientific_Libraries/plottypes.py | 35d0f603d222150bf508e57c4626974bd928f729 | [] | no_license | vickyf/eurocontrol_datascience | 374b889cac7b8d377caa78079fb57098e73bba0a | 0a7c09002e3b5f22ad563b05a6b4afe4cb6791d7 | refs/heads/master | 2020-03-19T06:03:14.864839 | 2018-06-04T07:24:25 | 2018-06-04T07:24:25 | 135,986,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | %matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
#simple plot
x = np.arange(0,2*np.pi,0.1)
y_cos,y_sin = np.cos(x),np.sin(x)
plt.subplot(2,2,1)
plt.plot(x,y_sin,color = "blue")
plt.plot(x,y_cos,color = "red", linewidth = 3, linestyle = '--')
plt.title('Simple plot')
plt.xticks(())
plt.yticks(())
... | [
"vicky.froyen@infofarm.be"
] | vicky.froyen@infofarm.be |
41d0a17ac3c3cc7c90992fc154448f084c0fd0cf | 06ee12fb2efa2c67ef1b711450df75af73ef45cd | /day15/08-飞机大战-抽取基类.py | 5c09a0f870bf57a7091073eb1b030bd7ec486959 | [] | no_license | itkasumy/PythonGrammer | c5ed00db3097b8a7dedd49cff79b817e3488d6d9 | 33f17c20ee6533beae1cf422ba5c1376b3765e20 | refs/heads/master | 2020-04-05T15:11:17.337134 | 2018-11-13T05:37:13 | 2018-11-13T05:37:13 | 156,957,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | import pygame
from pygame.locals import *
import time
import random
class Base(object):
def __init__(self, screen, x, y, imgPath):
# 子弹的坐标
self.x = x
self.y = y
# 子弹的图片
self.imagePath = imgPath
self.image = pygame.image.load(self.imagePath)
# 显示窗口
s... | [
"18500682038@163.com"
] | 18500682038@163.com |
355024ce6827f5d9554258b98a1491c97c09aa07 | 33c5ba033aaed849328a4d12a07d69603e3bf499 | /rer/groupware/multilanguage/extender.py | ebd4b7027e5f26470dab5904970fd637baa44348 | [] | no_license | PloneGov-IT/rer.groupware.multilanguage | aa543585b7838246c1f5febd19d4e6dc99133074 | 6ad3df7ee20be7d0e67845ffef00a6196f39e35f | refs/heads/master | 2021-01-21T17:46:05.658255 | 2014-11-24T09:49:38 | 2014-11-24T09:49:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | # -*- coding: utf-8 -*-
from archetypes.schemaextender.field import ExtensionField
from archetypes.schemaextender.interfaces import IBrowserLayerAwareExtender, ISchemaExtender
from Products.Archetypes.atapi import StringField
from Products.Archetypes.Widget import LanguageWidget
from Products.ATContentTypes.interface.i... | [
"andrea.cecchi85@gmail.com"
] | andrea.cecchi85@gmail.com |
c309b24c5233096607053ef27b246b64c8bf58cc | 1ceb35da7b1106a4da4e8a3a5620d23a326a68e4 | /corticalmapping/scripts/post_recording/analysis_pipeline_zstack/old/caiman/010_motion_correction_zstack_caiman_multichannel.py | fae38c75308d66e6f6d96c8dd03f31f6a74cf3e7 | [] | no_license | zhuangjun1981/corticalmapping | c3870a3f31ed064d77f209a08e71f44c375676a3 | 0ddd261b3993f5ce5608adfbd98a588afc56d20c | refs/heads/master | 2022-11-14T03:24:53.443659 | 2020-07-13T23:48:50 | 2020-07-13T23:48:50 | 84,975,797 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,145 | py | import sys
sys.path.extend([r"E:\data\github_packages\CaImAn"])
import caiman as cm
import numpy as np
import os
from caiman.motion_correction import MotionCorrect, tile_and_correct, motion_correction_piecewise
import tifffile as tf
import h5py
import warnings
from multiprocessing import Pool
base_folder = r"\\allen\... | [
"junz@alleninstitute.org"
] | junz@alleninstitute.org |
790e2066d1faca87986538cc4d7037df448d580e | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_VSCODE-extensions/vscode-jupyter/pythonFiles/vscode_datascience_helpers/daemon/__main__.py | 666f245b2a23462a33bfce132b6e6d3bdedd2a9d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 3,982 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import argparse
import importlib
import json
import os
import logging
import logging.config
import sys
log = logging.getLogger(__name__)
LOG_FORMAT = (
"%(asctime)s UTC - %(levelname)s - (PID: %(process)d) - %(name)s -... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
497196af0825121b296b2753bc579672864906c4 | 0258ce084f66f5c4080b686f7fd388ef8094ac75 | /Flask Programs/SQLite/crud.py | 83aaabb26dbec997c4d7e6a2081a619863c3a509 | [] | no_license | Jaydeep-07/Flask | 524be9056c9e5cc6e7733d5780f8ce1e110cc9b4 | 172b5fd30785d3876aeb5509eb685887f1692d52 | refs/heads/master | 2020-12-26T11:15:05.092803 | 2020-05-09T10:19:13 | 2020-05-09T10:19:13 | 237,491,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | from flask import *
import sqlite3
app = Flask(__name__,template_folder='Template')
@app.route("/")
def index():
return render_template("index.html");
@app.route("/add")
def add():
return render_template("add.html")
@app.route("/savedetails",methods = ["POST","GET"])
def saveDetails... | [
"jaydeepvpatil225@gmail.com"
] | jaydeepvpatil225@gmail.com |
4a20713389c308d697f51ef7fcbc1917e11778a8 | dae2da1b80124ba6923cb1674033208af01e031f | /problems/202101/R-boj-7453-합이 0인 네 정수.py | eedffde840ca2557e26440da7144a901cb79aa2b | [] | no_license | MaxKim-J/Algo | ad09fa19da3e764ba7af18d015bbaa186643f7fb | 34771c45361db4aade4c364179e13708c5004b3a | refs/heads/master | 2023-01-08T00:49:11.479545 | 2022-12-26T15:45:35 | 2022-12-26T15:48:52 | 237,583,281 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | # 부분수열 합이랑 똑같은 아이디어
#! 자료형을 임의로 나눠 시간을 줄이는 간단하고도 명쾌한 방법!!!!!!!!
#! n^4에는 당연히 못풀고 O(2n^2) 쯤으로 시간을 줄이는 방법이다. 이렇게 백트랙킹도 가능한듯
# 입력이 최대 4 * 4000이니 sys를 사용하자
import sys
N = int(sys.stdin.readline())
answer = 0
A = B = C = D = []
for _ in range(N):
a1, b1, c1, d1 = map(int, input().split(" "))
A.append(a1)
B.a... | [
"hwaseen@gmail.com"
] | hwaseen@gmail.com |
6dd1608accf61ff244bcb11ab0befc4eceb2c646 | 9d7d69178c6f1f1db6ed6767e0af32bfe836549c | /new_workspace/Gumtree_Workspace/Magnet/Yick/P9363/100 Alignment/20210130/Overnight/2021_time_55_5K_0Oe_bottom_40min.py | 2f815255bbf7912196d0d54ccc32594d35ba372e | [] | no_license | Gumtree/Quokka_scripts | 217958288b59adbdaf00a9a13ece42f169003889 | c9687d963552023d7408a8530005a99aabea1697 | refs/heads/master | 2023-08-30T20:47:32.142903 | 2023-08-18T03:38:09 | 2023-08-18T03:38:09 | 8,191,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,432 | py | histmem preset 60
histmem mode time
#Time scan
#-----------------------------------------------------------------
#System reset (15 minutes)
hset /sample/tc1/control/tolerance1 1
drive ma1_setpoint 0
drive tc1_driveable 90
wait 10
drive ma1_setpoint 0
wait 10
hset /sample/tc1/control/tolerance1 0.1
... | [
"quokka@DAV5-QUOKKA.nbi.ansto.gov.au"
] | quokka@DAV5-QUOKKA.nbi.ansto.gov.au |
728444c91e5b1c215f157d91c477de72e296153f | 7cf119239091001cbe687f73018dc6a58b5b1333 | /datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_CJXW_ZYCJ/ZX_CJXW_ZYCJ_CJW_HGSY.py | fa6658d4b23ae9065f2f10549ae13c7b765d6153 | [
"Apache-2.0"
] | permissive | ILKKAI/dataETL | 0f5b80c3482994f735f092a1e01fa1009bac4109 | 32f7ec3aaaf32b5074536a615cb9cd5c28bd499c | refs/heads/master | 2022-04-04T19:27:05.747852 | 2020-02-28T11:17:48 | 2020-02-28T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
from database._mongodb import MongoClient
def data_shuffle(data):
return data
if __name__ == '__main__':
main_mongo = MongoClient(entity_code="ZX_CJXW_ZYCJ_CJW_HGSY", mongo_collection="ZX_CJXW_ZYCJ")
data_list = main_mongo.main()
for data in data_list:
re_data = data... | [
"499413642@qq.com"
] | 499413642@qq.com |
f2c6e6187a2ca1c6010314be23e1c55da99dce8a | d8f1c299d1b1c3619272bb2f81197e170c88887a | /postgresqleu/confreg/migrations/0008_volunteers.py | 8861f16b53e93b766bb5df47fc697c623fa35b10 | [] | no_license | mhagander/pgeu-website | 1d324898a8ba47af80488d1f803fd8684157bc80 | c88cd42b39a84d16a056f2b668fd1949c893c4e0 | refs/heads/master | 2021-01-24T06:06:19.545244 | 2018-12-04T19:53:33 | 2018-12-04T19:55:40 | 619,420 | 0 | 2 | null | 2019-11-02T08:00:17 | 2010-04-20T11:51:40 | Python | UTF-8 | Python | false | false | 2,592 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.core.validators
import django.contrib.postgres.fields.ranges
class Migration(migrations.Migration):
dependencies = [
('confreg', '0007_new_specialtype'),
]
operations = [
... | [
"magnus@hagander.net"
] | magnus@hagander.net |
edae2068ba8fc33d1442dfb5bfa8df67c369737f | 18a2e479f4edef528fa7803723822f9f5974e5f8 | /17_adding_fips_to_counties.py | 706e66e8deef1a90e70c521945b4d6217b762bcd | [] | no_license | wpower12/RedditCountyBias | ee25cb870b807466ed53225471e9ac6f5eec1cd0 | 59f0b6642f20547ac129b47496ef3ca0ac135a39 | refs/heads/master | 2023-04-04T22:24:24.258295 | 2021-04-15T17:50:18 | 2021-04-15T17:50:18 | 329,438,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import pandas as pd
import praw
from psaw import PushshiftAPI
import time
import datetime as dt
import pymysql as sql
import progressbar
import requests
import math
COUNTY_FN = "./data/counties_fips.csv"
conn = sql.connect(host='localhost',
user='bill',
password='password',
database='reddit_data'... | [
"willpowe@gmail.com"
] | willpowe@gmail.com |
34569ddf4dde722008a3ee453027d40c2911e838 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/portal/azext_portal/vendored_sdks/portal/aio/operations_async/_operation_operations_async.py | aebe6bdf31d0b930019b5627d296786e99d0c031 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 4,017 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e7e1a396fe3a3d6b353cf863995d1b47d0be9c89 | cc86a7c9f27b45002c9d0d5388b6457b6470dc2c | /modern_business/settings.py | 0404b4aa16bb9461d3c290680556037305bad97c | [] | no_license | innotexak/DjangoCMS | 5bf18df6aa1212cf0c048c83e1faa203b93a7a36 | 6545f928fb9afb09a004b9c5935158e244d1086b | refs/heads/main | 2023-02-26T09:59:50.974034 | 2021-02-04T14:53:11 | 2021-02-04T14:53:11 | 331,692,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,452 | py | import os # isort:skip
gettext = lambda s: s
DATA_DIR = os.path.dirname(os.path.dirname(__file__))
"""
Django settings for modern_business project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full ... | [
"akuhinnocent2016@gmail.com"
] | akuhinnocent2016@gmail.com |
56288e8ec12376f3caaa2bf6670c4052cd21c2ce | b483c598fa375e9af02348960f210b9f482bd655 | /pythonbrasil/exercicios/repeticao/ER resp 39.py | 3530297090dcd38af2039607fba79850fa812d48 | [
"MIT"
] | permissive | brunofonsousa/python | 6f766d08bf193180ea9a4903cb93ffd167db588d | 8f2f26c77015c0baaa76174e004406b4115272c7 | refs/heads/master | 2022-09-30T14:58:01.080749 | 2020-06-08T09:55:35 | 2020-06-08T09:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | '''
Faça um programa que leia dez conjuntos de dois valores, o primeiro representando
o número do aluno e o segundo representando a sua altura em centímetros. Encontre
o aluno mais alto e o mais baixo. Mostre o número do aluno mais alto e o número do
aluno mais baixo, junto com suas alturas.
'''
quant_alunos = 10
cod... | [
"brunofonsousa@gmail.com"
] | brunofonsousa@gmail.com |
fef1cd77d6d0cf5499dee830c7afdd90b66cf0ef | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/PyBox/pybox2d-android/examples/test_OneSidedPlatform.py | 9ba5bf332a3936891263a8e35d4532d9f54a5d87 | [] | 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 | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:64a4150f4e7993b64261e93365583e48ee17c68fcd142d236d7ba99977f09b72
size 2957
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
c8fc07a03a64e1410fc4b6bf2d4fec67f8a9c97d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3919.py | 1c304f9ed5704b5147c1697d18850afa52e338ef | [] | 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 | 1,416 | py | Input = open( "C:\Users\josip kotarac\Desktop\A-small-attempt1.in", "r" )
Output = open( "C:\Users\josip kotarac\Desktop\output.txt", "w" )
array = []
chosenRow=0
maxRows = 4
possibleCards=[]
foundCard=0
cardFoundNumber=0
caseNum =0
setDone = False
for line in Input.readlines():
line = line.split()
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2e2e18df159c6ad3d657c307d0904d91462f0f63 | deaf14c242dc5e534e5ce7691e206f9b5305fdb1 | /blog/models.py | 02a89abaf5581be70f4424179254aa806ba755d8 | [] | no_license | Ulorewien/synergee | ac51462cb270efc4d0ef9bf22b1a946c46b6cc1d | 22b285393ff28e8cab8b228c12087bde22280fe7 | refs/heads/main | 2023-08-12T19:15:25.171103 | 2021-10-04T15:47:32 | 2021-10-04T15:47:32 | 332,399,492 | 0 | 1 | null | 2021-01-24T08:21:59 | 2021-01-24T08:21:58 | null | UTF-8 | Python | false | false | 559 | py | from django.db import models
from group.models import Member,Interest
class Post(models.Model):
"""
Attributes of Post Relational Model
"""
author = models.ForeignKey(Member,on_delete=models.CASCADE)
category = models.ForeignKey(Interest,on_delete=models.CASCADE)
title = models.CharField(max_l... | [
"shubhpathak07@gmail.com"
] | shubhpathak07@gmail.com |
95b84bdb31fb8d15a6125e393c6a3c410d477038 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_stationers.py | 8ecfa5c4d17eaa1e85497e432cc4e12608092d92 | [
"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 | 234 | py |
#calss header
class _STATIONERS():
def __init__(self,):
self.name = "STATIONERS"
self.definitions = stationer
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['stationer']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dd03466d913bf653258193e0979efba7236aa71e | b28b8dc227d9e6b015eeb19db9cb97ae067a3301 | /DivideTwoIntegers.py | f01458a232870b5efe7608a4457339f49dccd822 | [] | no_license | nbrahman/LeetCode | d5dd267e1b64d6d5ac6c7a312f286faa043a3444 | 3f94952eba038ca07ecd57f5dc51889daf7b663a | refs/heads/master | 2021-01-22T10:13:13.769444 | 2017-02-14T22:00:29 | 2017-02-14T22:00:29 | 81,993,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | '''
Divide two integers without using multiplication, division and mod operator.
If it is overflow, return MAX_INT.
'''
class Solution(object):
intRemainder = 0
intDivisor = 0
def divide(self, dividend, divisor):
"""
:type dividend: int
:type divisor: int
:rtype: int
... | [
"nikhil.brahmankar@gmail.com"
] | nikhil.brahmankar@gmail.com |
36be193c3b32fb7370569d601d089401790b81ab | 8a936bd3e28c9ec116244df37d3ba5aedd48c9cc | /dashboard/internal/pages/register.py | 93615c354eb570ed066b045a84732334169e0466 | [
"Apache-2.0"
] | permissive | AssassinDev422/PHP_Minera | a66bd23610cbcfd43545e5b6a689c2c1b1248814 | f507dbcc4b4609990f14995754d54f42dcaaa618 | refs/heads/master | 2020-03-15T13:16:30.708491 | 2018-05-04T16:20:05 | 2018-05-04T16:20:05 | 132,162,749 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import os
import sys
import json
import requests
import smtplib
def main():
sid = sys.argv[1]
email = sys.argv[2]
username = sys.argv[3]
password = sys.argv[4]
phone_number = sys.argv[5]
hashpower = sys.argv[6]
reg_user = {'referrals':0,'btcavailible':0,'username':username,'emai... | [
"saas.exp7@gmail.com"
] | saas.exp7@gmail.com |
8383a2063f9f853bc4844b765c99f5e3d10d5d33 | 6e5b8ef12d56a11aa0b68fd5a3700a4be0541acd | /.history/nets/yolov5_20210819163229.py | 028344d8484e367faf34fcceef742e37f85afac1 | [] | no_license | Arcofcosmos/MyYolov5_Pytorch | d8fc7f8398249aeb996fa4b07c3ecdc6fedd2308 | 07bcb7e3b1dd32ec25171d4aa860d462f5a01078 | refs/heads/main | 2023-07-15T16:07:52.624808 | 2021-08-21T07:13:42 | 2021-08-21T07:13:42 | 398,490,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,494 | py | '''
Author: TuZhou
Version: 1.0
Date: 2021-08-18 15:24:52
LastEditTime: 2021-08-19 16:32:29
LastEditors: TuZhou
Description:
FilePath: \my_yolov5\nets\yolov5.py
'''
import torch
import torch.nn as nn
from pathlib import Path
import yaml
import math
from CSPDarknet53 import preprocess_backbone, CSP2, CBL
#--------... | [
"tz2062750487@163.com"
] | tz2062750487@163.com |
dc74e72fedacff9e9cbca0a0d2f5af2dcede9eb3 | d1205c39ad5febd5f73526cb6eda5fd413e998a3 | /ambra_sdk/storage/request.py | e1ac6c7927dbe26c84ab730fc3b9daedbefa09a7 | [
"Apache-2.0"
] | permissive | ppolk-nocimed/sdk-python | 77364972c5559a43787f81373327b86204f9ec39 | 165a8049bbc38a201ef27f60a8ba1b980c1c9a64 | refs/heads/master | 2022-11-22T23:48:22.444967 | 2020-07-17T16:27:05 | 2020-07-17T16:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | from enum import Enum
from io import BufferedReader
from typing import TYPE_CHECKING, Any, Dict, Mapping, NamedTuple, Optional
from requests import Response
from ambra_sdk.exceptions.storage import AmbraResponseException
from ambra_sdk.storage.response import check_response
if TYPE_CHECKING:
from ambra_sdk.stora... | [
"akapustin@ambrahealth.com"
] | akapustin@ambrahealth.com |
47768f668c9203a6d7ed852b25fa14292f1fc879 | 64b6015e35bd45df2f25ba04bf68a3dc6905e841 | /User_App/migrations/0001_initial.py | 67d0ba5a7c289a319c796789b71d03a7b6e840c0 | [] | no_license | masudurHimel/Django_Reboot | 10904c14f001c90ef971340fcccfb5007846fc59 | 2de54484397eecd14f2a7425636beb17fd5cc12d | refs/heads/master | 2022-07-02T22:47:04.133111 | 2020-05-06T20:46:29 | 2020-05-06T20:46:29 | 257,648,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # Generated by Django 3.0.3 on 2020-05-05 19:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"masudurhimel@gmail.com"
] | masudurhimel@gmail.com |
3c2c3c043bbe9bcb82f9b7622ae402f18bd8c648 | cc5a3fa80d2ae90afc2626e4a82b9a927726dfa0 | /huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_sku_inventories_response.py | 124ef51c81c9c4847ae336042351acec75c390e9 | [
"Apache-2.0"
] | permissive | Logan118/huaweicloud-sdk-python-v3 | eca15e9b08bdccef7122e40735d444ddc958efa8 | bb230c03bd00225b9f5780a56adce596e9456420 | refs/heads/master | 2023-07-17T14:57:50.799564 | 2021-08-25T10:40:43 | 2021-08-25T10:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListSkuInventoriesResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b73808b7ece173bea9a10ffa904af73e32d72221 | bf15a97a377bc49495a8c278cd247387a08361fd | /intersight/models/vnic_fc_adapter_policy_ref.py | e5f956c79f737fa320ee12693e463e1fa5431998 | [
"Apache-2.0"
] | permissive | movinalot/intersight-python | ffcb434e5fdf3f6e857dd967c794a64b2d2e05de | cdc3b082d75eac93b74029ab610e16d3008fdd8c | refs/heads/master | 2020-12-18T15:46:06.780834 | 2019-10-29T00:39:49 | 2019-10-29T00:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,699 | py | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-961
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class VnicFcAdapterPolicyRef(object):
"""
NOTE: Thi... | [
"ategaw@cisco.com"
] | ategaw@cisco.com |
163b3454ba091eda53c8e7b350d2baac391e73ea | e8dd7dfabac2031d42608920de0aeadc1be8e998 | /thesis/Chapter4/Python/time_distance_plots.py | 0326f20bcb84ee5b7568f7808f713602ed90a9e4 | [
"MIT",
"CC-BY-4.0",
"BSD-2-Clause"
] | permissive | Cadair/Thesis | e7189dfdf74edf3ea2565ee0ec3bdc0777ad99b2 | 792ab1e8cf37af7b9ee52de3566faa928e580500 | refs/heads/master | 2022-05-03T18:29:43.366175 | 2017-01-06T13:37:54 | 2017-01-06T13:37:54 | 21,343,957 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,588 | py | # coding: utf-8
from __future__ import print_function
import os
from functools import partial
import numpy as np
from scipy.interpolate import interp1d
def get_filepath(base_path, driver, period, post_amp, tube_r, exp_fac):
if exp_fac is not None:
data_dir = os.path.join(base_path, '%s/%s_%s_%s_%s/'%(dr... | [
"stuart@cadair.com"
] | stuart@cadair.com |
4f8ac3edfd7e3d403c3648bd85382171104548c4 | 1325ecde27307dce9fe6edce88c0249d5c49ae60 | /day11/part2.py | 6fcbdfc51aa26a08e16ea53ce361bbca0406ec05 | [
"Apache-2.0"
] | permissive | jonasmue/adventofcode20 | 24208e7b9f2fb161d3fabb2bfd9b00f11b67840d | 437eb9ff82045ce825b68f1dcb3b79265723bba4 | refs/heads/main | 2023-02-04T17:43:40.082534 | 2020-12-26T08:51:54 | 2020-12-26T08:51:54 | 317,487,937 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from common import SeatingSystem
if __name__ == "__main__":
# O(s*n^2) time and O(n) space
# with s: number of steps until convergence, n: number of points in grid
# Time complexity could be optimized by saving and reusing neighbors of each point
seating_system = SeatingSystem(5, False)
seating_s... | [
"jonas.mueller@compitencies.com"
] | jonas.mueller@compitencies.com |
d70f750865ab7e20438deebfe95e9082fb4bc964 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1106+083/sdB_pg_1106+083_lc.py | ecb0d839b701604589194e291b9d3c266426ea9b | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[167.1825,8.030292], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1106+083/sdB_pg_1106+083_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__ =... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
129d670a19e33414131c1441c3be5449062746fd | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2009/py01/day05/stack2.py | d95af629d461f0dd46de18c3352ef00fc877d385 | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | stack = [] # 使用列表模拟栈
def push_it():
"用于压栈"
data = input("数据: ").strip()
if data: # 如果data非空
stack.append(data)
else:
print("未获取到数据。")
def pop_it():
"用于出栈"
if stack: # 如果stack非空
print("从栈中弹出: \033[31;1m%s\033[0m" % stack.pop())
else:
print("\033[31;1m栈已经是空... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
b5989f1e513e71181fa457b7defad96e57e6e4a9 | bf2d010229aece071359662f4fef44e48ba57951 | /fitness-combined | 60c7f5034e05a8c045965320b191f404c78aa9d4 | [] | no_license | Osrip/CriticalEvolution | b97398f74e2fc5b54c9ab92765b08ce3bf97257e | f77cae8acc626cb4c6d64d5a44fdf00310309c2e | refs/heads/master | 2021-06-24T03:44:03.283017 | 2021-04-03T13:09:42 | 2021-04-03T13:09:42 | 215,332,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,350 | #!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import colors
from matplotlib.lines import Line2D
from matplotlib.patches import Circle
import pickle
from os import makedirs, path
import os
'''
loadfiles = ['beta_experiment/beta-0-1/sim-20180512-105719',
'beta_expe... | [
"jan.prosi@hotmail.com"
] | jan.prosi@hotmail.com | |
93323b86ef220a5a72384a8c2174cc533f7e5ac5 | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/project/settings_20210405152615.py | 26c367c5f973efc1f18418c5f5bb4e41da83fb2b | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,682 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.1.
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/
"""
from pathlib i... | [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
01f79e945aa8ede3d9d38abea3cc7b1fb8882ac5 | 0c8214d0d7827a42225b629b7ebcb5d2b57904b0 | /examples/fileio/E002_Packages/main.py | 19e09b50a6ebd79e9cb6f9d8ecd726852d7fd3a3 | [] | no_license | mertturkmenoglu/python-examples | 831b54314410762c73fe2b9e77aee76fe32e24da | 394072e1ca3e62b882d0d793394c135e9eb7a56e | refs/heads/master | 2020-05-04T15:42:03.816771 | 2020-01-06T19:37:05 | 2020-01-06T19:37:05 | 179,252,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # Example 022: Package example
from Calculator.Math import add
import Calculator.Test.testFile
import Calculator.UI.button as button
Calculator.print_info()
add.print_info()
Calculator.Test.print_info()
Calculator.Test.testFile.print_info()
button.print_info()
Calculator.UI.print_info()
| [
"mertturkmenoglu99@gmail.com"
] | mertturkmenoglu99@gmail.com |
cded64f961102cd11ec1e54dc84e92ce55d24117 | 8cccdb1ca93d1b7ed690eb096522262523948a72 | /accounting/apps/books/templatetags/nav.py | 689c89c26b6fdc2af3ddbe4cf8790bda85d185e3 | [
"MIT"
] | permissive | newhub-spec/django-accounting | 6b886378219dbed1d4f2ee34e71be198a7b28eb5 | 12b01a944d368ce717b57957d26d7aa4ecd04285 | refs/heads/master | 2020-08-21T08:06:41.318805 | 2019-10-19T06:33:41 | 2019-10-19T06:33:41 | 216,116,659 | 0 | 0 | MIT | 2019-10-18T22:35:01 | 2019-10-18T22:35:01 | null | UTF-8 | Python | false | false | 438 | py | # encoding: utf-8
import re
from django import template
register = template.Library()
@register.simple_tag
def active(request, pattern, exact_match=False):
if exact_match:
if not pattern.startswith('^'):
pattern = '^' + pattern
if not pattern.endswith('$'):
pattern = patt... | [
"dulacpier@gmail.com"
] | dulacpier@gmail.com |
24274aec2247b51c41ce5a5a4b1cd459f9cc1319 | 34799a9e04b8e22c9d364d1f5dcaea05ea204fcb | /test-suite/tests/__init__.py | f1a56342ffdb3195695527f95065e03ae96c467d | [
"Apache-2.0"
] | permissive | ken-ebert/indy-agent | 90fa0da1f3cf0203ef0d88278c8f97753afb7ad9 | ecd8a2cc927d762acf4c4263cc6d3fc115188c7e | refs/heads/master | 2020-04-01T15:42:59.523802 | 2018-10-17T23:24:18 | 2018-10-17T23:31:38 | 153,348,553 | 0 | 0 | Apache-2.0 | 2018-10-16T20:17:39 | 2018-10-16T20:17:39 | null | UTF-8 | Python | false | false | 695 | py | """ Module containing Agent Test Suite Tests.
"""
import asyncio
import pytest
from typing import Callable
from transport import BaseTransport
async def expect_message(transport: BaseTransport, timeout: int):
get_message_task = asyncio.ensure_future(transport.recv())
sleep_task = asyncio.ensure_future(asyncio... | [
"daniel.bluhm@sovrin.org"
] | daniel.bluhm@sovrin.org |
18d5543138466a911998784eecb91c9d030002f5 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /important_man/company/seem_company_up_thing.py | 78bc48efc26459683f86fab76e7a748d4698894e | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py |
#! /usr/bin/env python
def other_way(str_arg):
think_able_day_about_long_woman(str_arg)
print('bad_work_and_long_time')
def think_able_day_about_long_woman(str_arg):
print(str_arg)
if __name__ == '__main__':
other_way('next_week')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
1c5c34211e4bc00f464ac84a0e9215cdd9aa535b | 3c2cc8910c4a333a44d2d7b22489ef8d5ddb6a13 | /src/zvt/factors/technical_factor.py | d0cc199697d42ffd729a0796da9dfaf84c4a99b8 | [
"MIT"
] | permissive | zvtvz/zvt | 6341dc765177b1e99727207f1608b730cbbb705a | 03aee869fd432bb933d59ba419401cfc11501392 | refs/heads/master | 2023-08-28T10:05:29.185590 | 2023-08-01T10:19:03 | 2023-08-01T10:19:03 | 179,451,497 | 2,782 | 922 | MIT | 2023-04-04T09:31:03 | 2019-04-04T08:06:57 | Python | UTF-8 | Python | false | false | 3,256 | py | from typing import List, Union, Type, Optional
import pandas as pd
from zvt.api.kdata import get_kdata_schema, default_adjust_type
from zvt.contract import IntervalLevel, TradableEntity, AdjustType
from zvt.contract.factor import Factor, Transformer, Accumulator, FactorMeta
from zvt.domain import Stock
class Techni... | [
"5533061@qq.com"
] | 5533061@qq.com |
55b52b8988367a4f538993e31d1b68bc5744700d | 636fae2d4fa7108c3cc30d55c9feef6dfd334cd8 | /NestedSerializer/api/models.py | d8890ec995bbea37c679ff6e986db7c5e1f2e14e | [] | no_license | anupjungkarki/Django-RESTFramework | 4ee3f5a46a98854284b45545d751822e27a715e1 | dc774c234de09f7e26c7fd5b84ba9359ecc75861 | refs/heads/master | 2023-02-15T02:34:46.421764 | 2021-01-11T08:04:15 | 2021-01-11T08:04:15 | 327,276,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django.db import models
# Create your models here.
class Singer(models.Model):
name = models.CharField(max_length=100)
gender = models.CharField(max_length=100)
def __str__(self):
return self.name
class Track(models.Model):
title = models.CharField(max_length=100)
singer = models.F... | [
"anupkarki2012@gmail.com"
] | anupkarki2012@gmail.com |
c80f313a023ea0d6910870d6c5fbb40985a35628 | 00faae803cfa2e5c2f5e662f560eb61bd0074690 | /src/python2/request/item_attachment_request_builder.py | 998217a7f8acc20f524fc5a161c255abfc56cb1c | [
"MIT"
] | permissive | gojohnkevin/msgraph-sdk-python | 6dc00723489eddf013cff82d34d86d677b4d7ecf | 7714c11043e76e856876dd731c6c1df7b37cdbef | refs/heads/master | 2022-07-09T14:35:30.422531 | 2022-06-23T15:52:17 | 2022-06-23T15:52:17 | 85,160,734 | 0 | 1 | null | 2017-03-16T06:29:59 | 2017-03-16T06:29:59 | null | UTF-8 | Python | false | false | 3,157 | py | # -*- coding: utf-8 -*-
"""
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
#
# This file was generated and any changes will be overwritten.
"""
from __future__ import unicode_literals
from .item_attachment_reque... | [
"robert.anderson@microsoft.com"
] | robert.anderson@microsoft.com |
67ac08f194336d675fc9d64d633658f8fd86b045 | 8f6a9ff4c63fd24d145088077d5da1c3e4caaa3a | /code/fv_show.py | bec775f7e12c9d5a361048b6fb24b83528b2fb7c | [] | no_license | liaofuwei/pythoncoding | 6fd2afba0d27c4a4bbb4b2d321b3fa402a60d6fe | 966bd99459be933cf48287412a40e0c7a3d0b8e5 | refs/heads/master | 2021-07-15T10:34:57.701528 | 2017-10-10T05:27:13 | 2017-10-10T05:27:13 | 107,651,470 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import numpy as np
from matplotlib.pyplot import *
from pylab import *
pv=1000
r=0.08
t=linspace(0,10,10)
fv=pv*(1+r)**t
plot(t,fv)
show()
| [
"459193023@qq.com"
] | 459193023@qq.com |
a248fff8e70b831ad000f09123fad1ffa2eeeac6 | c1b8ff60ed4d8c70e703f71b7c96a649a75c0cec | /ostPython2/FTL_tester.py | ed22531b4ea6f2f193bd5c2a0186bb3d3106022b | [] | no_license | deepbsd/OST_Python | 836d4fae3d98661a60334f66af5ba3255a0cda5c | b32f83aa1b705a5ad384b73c618f04f7d2622753 | refs/heads/master | 2023-02-14T17:17:28.186060 | 2023-01-31T02:09:05 | 2023-01-31T02:09:05 | 49,534,454 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | #!/usr/local/bin/python3
#
# File Type Lister Tester (FTL_tester.py)
# (tests FileTypeLister.py module)
#
# by David S. Jackson
# for OST Python 2 on Jan 15, 2015
#
# Instructor Pat Barton
#
"""This program calls the unittest module and tests the accuracy
of the program called FileType... | [
"deepbsd@yahoo.com"
] | deepbsd@yahoo.com |
53735cbef4d7f81e2d0940a29b398aa16adfcbe7 | 11f51735176e90f522db8d8250fcac4e28d03367 | /python_basic/ds-10.py | 2ea8e0d6259f9855dacc0e5aa76b02dfacedd5b7 | [] | no_license | schw240/Fastcampus_secondtest | 6d253c9d8e360e0f7c8927c902747981f452bbb6 | d89dc6d7dd031266abc6c0b51e51761c940123a4 | refs/heads/main | 2023-03-21T04:21:21.515959 | 2021-03-09T12:46:07 | 2021-03-09T12:46:07 | 340,637,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | # 해쉬 테이블
# 키에 데이터를 저장하는 데이터 구조
# 파이썬은 딕셔너리가 해쉬로 구현되어있으므로 별도로 구현할 필요없음
# 간단하게 hash table 구현하기
hash_table = list([0 for i in range(10)])
#print(hash_table)
# 간단한 해쉬함수
# 가장 간단한 방식인 Division 방법(나누기를 통한 나머지 값을 사용하는 기법)
def hash_func(key):
return key % 5
# 해쉬 테이블에 저장해보기
# 데이터에 따라 필요시 key 생성 방법 정의
data1 = "Andy"
data... | [
"schw240@gmail.com"
] | schw240@gmail.com |
112511cf83912aae4b88c376b5789ef936473501 | ae4d4087fd03511be038e4c2c8959a2f64f79198 | /doc/misc_plots/nonstationary_phase_plot.py | 2afaa337fe8f888d113810f179aa0a4eeb82ef33 | [] | no_license | jaidevd/pytftb | 88a6a829bd9bf83dc358604f9463189b75513542 | daa5a171ac0d53af0b81c1afd1267f8016bb8fc4 | refs/heads/master | 2021-07-16T18:50:44.302042 | 2021-06-28T06:26:03 | 2021-06-28T06:26:03 | 25,037,207 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from tftb.generators import fmlin, amgauss
import numpy as np
import matplotlib.pyplot as plt
y_nonstat, _ = fmlin(2048) # Already analytic, no need of Hilbert transorm
y_nonstat *= amgauss(2048)
plt.plot(np.real(y_nonstat), np.imag(y_nonstat))
plt.xlabel("Real part")
plt.ylabel("Imaginary part")
plt.show()
| [
"deshpande.jaidev@gmail.com"
] | deshpande.jaidev@gmail.com |
d2037a1236a4acc57abdf3ddd0792e134f3e7ba6 | 3ea1a45f61932ae0e8b504beb137be2a7c303d06 | /例子-0819-05.函数的返回值.py | 25edb9a4351c71de01443432766084d826f064f0 | [] | no_license | blackplusy/0810 | 8e650f7ce0e5d93b30e266bc7eef13491e588881 | e91290a1b0bea9966a85808935837f9af861f86f | refs/heads/master | 2022-12-14T11:12:27.585683 | 2020-09-05T08:29:49 | 2020-09-05T08:29:49 | 286,350,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #coding=utf-8
#1.一个返回值
#定义sum函数,需要传入2个参数
def sum(a,b):
#业务逻辑,相加
jisuan=a+b
#返回计算结果
return jisuan
#通过变量接收函数操作后的结果,注意,一定要传入2个参数
a=sum(20,30)
print(a)
#2.多个返回值
def ret(a,b):
a*=10
b*=100
return a,b
num=ret(3,7)
print(num)
print(type(num))
num1,num2=ret(10,20)
print(num1,... | [
"noreply@github.com"
] | blackplusy.noreply@github.com |
c7d15d2d77af850d7e49a03f2d46dbb68ed9f81a | fa8011b6942cac7b23d2dc781f7ae16d2cfab7f2 | /gravoicy/config/settings_local.py | 554622a9e704c6cbfa4d4071777e3fd73ca0964f | [] | no_license | indexofire/gravoicy | be99ae4995e81bf823841857742e60d689f20b1b | a516af5ec67e720ea2f1f695f28afadfb938cff4 | refs/heads/master | 2020-05-18T12:53:55.020633 | 2011-03-24T15:07:05 | 2011-03-24T15:07:05 | 948,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | # -*- coding: utf-8 -*-
import os
from settings import PROJECT_PATH
from config.settings_base import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
SECRET_KEY = '1F=(lta=1R9je3ze@g#fa^m#hJu^mv%@8+%fZ5p)*1$(*tvbh6'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '../../grav_data.d... | [
"indexofire@gmail.com"
] | indexofire@gmail.com |
5a9db80ab7d58772f4e96ff0ac9215bcd6c3eaf3 | fbe1718ba12e41d45524fa2966087d9f24ae18c3 | /pydal/parsers/sqlite.py | ea2331cc4617cd10dbe4fde350160cc02b923d21 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | michele-comitini/pydal | b5ab988c7ce1ea149128bc70d9f133700f7a0de3 | b6cd09a8bb1c3a27cdcd02297453f74d4380e79c | refs/heads/master | 2020-12-25T05:07:52.401623 | 2016-05-26T02:17:01 | 2016-05-26T02:17:01 | 30,265,122 | 0 | 0 | null | 2015-02-03T21:19:56 | 2015-02-03T21:19:55 | Python | UTF-8 | Python | false | false | 531 | py | from decimal import Decimal
from ..adapters.sqlite import SQLite
from .base import ListsParser, TimeParser, JSONParser
from . import parsers, for_type, before_parse
@parsers.register_for(SQLite)
class SQLiteParser(ListsParser, TimeParser, JSONParser):
@before_parse('decimal')
def decimal_extras(self, field_ty... | [
"giovanni.barillari@gmail.com"
] | giovanni.barillari@gmail.com |
e6c7be41238f437bec8d2fb51724a27d7b44d87d | 86834273400f125863bb0dd0e8ad22561c119ce1 | /samples/minecraft_clone.py | 18425e66eb4c3030ee769be4f2cf44a1315ac6fb | [
"MIT"
] | permissive | uditmaherwal/ursina | 9b50ae4ebf9008f086328eaeb7c79aadd3414174 | 20c6c396224f6a3b75a93a3142c0efde810fb480 | refs/heads/master | 2021-01-26T02:25:01.987909 | 2020-02-23T18:54:06 | 2020-02-23T18:54:06 | 243,273,206 | 1 | 0 | MIT | 2020-02-26T13:47:23 | 2020-02-26T13:47:22 | null | UTF-8 | Python | false | false | 834 | py | from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController
app = Ursina()
class Voxel(Button):
def __init__(self, position=(0,0,0)):
super().__init__(
parent = scene,
position = position,
model = 'cube',
origin_y = .5,
... | [
"pokepetter@gmail.com"
] | pokepetter@gmail.com |
6044707a842d423d814ff79bbe88165aa85c6a63 | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /0201-0300/0202/0202_Python_1.py | 824b7df04f6dc998ee5063168448cdd780ec660e | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | class Solution:
def isHappy(self, n: int) -> bool:
already = set()
while n != 1:
if n in already:
return False
already.add(n)
n = sum([int(x) * int(x) for x in str(n)])
return True
if __name__ == "__main__":
print(Solution().isHappy(1... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
fe3a796bb288f2ea2a15f6a1831131ee1055515f | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /third_party/WebKit/Source/devtools/scripts/jsdoc_validator/run_tests.py | c2625381bf84c0386fa8f16a076d312a87ec7283 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | Python | false | false | 2,142 | py | #!/usr/bin/python
import hashlib
import operator
import os
import shutil
import stat
import subprocess
import sys
import tempfile
def rel_to_abs(rel_path):
return os.path.join(script_path, rel_path)
java_exec = 'java -Xms1024m -server -XX:+TieredCompilation'
tests_dir = 'tests'
jar_name = 'jsdoc_validator.jar'
... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com |
c006e1eef801f0d6aca2fd0af66ee80890b5f2fd | 9a9d6052f8cf91dd57be9a9b6564290b0fac9e52 | /Algorithm/JUNGOL/1. Language_Coder/반복제어문1/539_반복제어문1_자가진단4.py | 00e86ec0148550177bbba5b7f69cc431292e6dbc | [] | no_license | Gyeong-Yeon/TIL | 596ec6a093eec34a17dad68bcd91fa9dd08690e8 | eb1f43ee0525da93233b70716cd35caab8d82bda | refs/heads/master | 2023-03-31T19:56:30.979062 | 2021-03-28T13:09:27 | 2021-03-28T13:09:27 | 280,307,737 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | input_li = list(map(int,input().split()))
i = 0
sum = 0
cnt = 0
for i in range(len(input_li)):
sum += input_li[i]
cnt += 1
if input_li[i] >= 100:
break
avg = sum / cnt
print(sum)
print("%0.1f" % (avg)) | [
"lky4156@naver.com"
] | lky4156@naver.com |
4212810827fc696d2f652d89c4fb5a3ca5b8bcbf | dc222b7713453f4653da00fa8ce7a76d89c51e68 | /python_test/src/templates/crawler_2.py | 92f75f12a72f6a7c9bd5ddda0e469298768b28d1 | [] | no_license | aimeiyan/exercise | d935d48ddab90c55b8b9ac89e821abf117d5f609 | 617261af69db836a649bd4044f97bec7ab3e845d | refs/heads/master | 2020-05-20T11:36:34.698664 | 2014-02-18T11:27:44 | 2014-02-18T11:27:44 | 10,766,847 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | __author__ = 'nancy'
from urllib import urlopen
from bs4 import BeautifulSoup
from urlparse import urlparse, urljoin
def get_and_extract_links(url):
html = urlopen(url).read()
soup = BeautifulSoup(html)
hrefs = soup.find_all('a')
urls = []
for a in hrefs:
href = a.get('href')
if h... | [
"aimeiyan@gmail.com"
] | aimeiyan@gmail.com |
9bf1c1a1ea823c79a6bf67c90744c7510431225d | 304033f60097c489cbc60aab639be45ccdbef1a5 | /algorithms/boj/brute_force/10819.py | c441a9bdf62e955e7f1408980bc52b89a3bffe5c | [] | no_license | pgw928/TIL | 3d0c47c07bd1f5c73826daf8579a2b0e3f93cb95 | 765906f1e6eecad4ad8ec9bf704041433d7eb304 | refs/heads/master | 2023-06-29T05:46:30.039815 | 2021-08-10T17:38:11 | 2021-08-10T17:38:11 | 288,923,095 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import sys
from itertools import permutations
input = sys.stdin.readline
N = int(input())
A = list(map(int, input().split()))
M = 0
for perm in permutations(A):
tmp = [ abs(perm[i+1]-perm[i]) for i in range(len(perm)-1)]
M = max(sum(tmp), M)
print(M)
| [
"pku928@naver.com"
] | pku928@naver.com |
c5ee9bd2b4b5e9e1dff46626f83b49a5ac8d4516 | 95e9ec4b3b0d86063da53a0e62e138cf794cce3a | /webroot/py1902/py1902/settings.py | b7b4e02bf8a11be11851ad956f67c31f2b3fafe1 | [] | no_license | wjl626nice/1902 | c3d350d91925a01628c9402cbceb32ebf812e43c | 5a1a6dd59cdd903563389fa7c73a283e8657d731 | refs/heads/master | 2023-01-05T23:51:47.667675 | 2019-08-19T06:42:09 | 2019-08-19T06:42:09 | 180,686,044 | 4 | 1 | null | 2023-01-04T07:35:24 | 2019-04-11T00:46:43 | Python | UTF-8 | Python | false | false | 5,392 | py | """
Django settings for py1902 project.
Generated by 'django-admin startproject' using Django 2.2.
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
# Bu... | [
"18537160262@qq.com"
] | 18537160262@qq.com |
305dcded8a50a6e919ea59991bcdf5aeada117a3 | da1e8e6d9886cabe65887a5e2cfe3fe62c06a564 | /lab1/venv/bin/easy_install | ea69e4a6d164aa9262f47ff5cb644ba718f88864 | [] | no_license | serhiisad/Numerical_Analysis | d0f1a5ae652bf57354f472d3f239f23d4aae2a86 | acdc38d712011fdddc4bbb0aa6712d18745fdfc8 | refs/heads/master | 2020-04-16T04:49:08.128479 | 2019-01-11T17:29:16 | 2019-01-11T17:29:16 | 165,282,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | #!/home/serhiisad/PycharmProjects/LABS_Numerical_Analysis_Onai/lab1/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"serhiisad.kpi@gmail.com"
] | serhiisad.kpi@gmail.com | |
687250aac92bf01376a32104c14b0ea2953ebf56 | 410de43884e51d1edef0bb31035d6e78e3f0f3c0 | /wifipumpkin3/core/servers/proxy/pumpkin_proxy.py | ddf931d79053fac9d7daf8e3bd2b29f2052275af | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | tirkarthi/wifipumpkin3 | 7af13f4f5c7908e555660f4a29b71d245174daa7 | 809baef0c8116410a26f6b263a457f0a1d7f98b9 | refs/heads/master | 2022-12-07T05:25:18.270403 | 2020-08-02T02:04:11 | 2020-08-02T02:04:11 | 291,266,640 | 0 | 0 | Apache-2.0 | 2020-08-29T12:25:13 | 2020-08-29T12:25:12 | null | UTF-8 | Python | false | false | 5,494 | py | from wifipumpkin3.core.config.globalimport import *
from collections import OrderedDict
from functools import partial
from threading import Thread
import queue
from scapy.all import *
import logging, os
import wifipumpkin3.core.utility.constants as C
from wifipumpkin3.core.servers.proxy.proxymode import *
from wifipump... | [
"mh4root@gmail.com"
] | mh4root@gmail.com |
fa56efff49eee1254f0c1da3bae2a1b0d65471aa | edbabcc3a43a46f83c656f82248f757387629c32 | /weibo_spider/douban.py | 4a8c7e13b96eb2cbc76cbd7f78d9e35f14fc4158 | [] | no_license | INJNainggolan/Pycharm_work | b84fd8b4cd5158161956c96da326e3f0eba6b2eb | 8314aa23ade681cbad9e7abb4d35de508d46482b | refs/heads/master | 2020-04-08T03:30:35.177056 | 2018-03-07T13:15:09 | 2018-03-07T13:15:09 | 124,235,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,547 | py | #coding:utf-8
__author__ = 'hang'
import warnings
warnings.filterwarnings("ignore")
import jieba #分词包
import numpy #numpy计算包
import codecs #codecs提供的open方法来指定打开的文件的语言编码,它会在读取的时候自动转换为内部unicode
import re
import pandas as pd
import matplotlib.pyplot as plt
from urllib import request
from bs4 import BeautifulSoup ... | [
"Nainggolan@github.com"
] | Nainggolan@github.com |
8d4ab8697bc69c095b7c8d6b18ed034aff53b586 | 85b3c686db76bce624a262de20ffb0b882840fdd | /social_bookmarking/views.py | a8de490964067340914be4d7af222a0ca1033d5f | [
"MIT"
] | permissive | truongsinh/django-social-media | 6361413a80bac6e3827dd725cca95db1c82a2974 | 90f51d97409d87b598386f2ca82e6e3168478d32 | refs/heads/master | 2020-12-25T11:53:21.394434 | 2011-02-19T08:47:08 | 2011-02-19T08:47:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | from django.shortcuts import get_object_or_404, redirect
from django.http import Http404
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ObjectDoesNotExist
from social_bookmarking.models import BookmarkRelated, Bookmark
def bookmark_referer(request, slug, content_type, ob... | [
"florent.messa@gmail.com"
] | florent.messa@gmail.com |
f6797ec80344efdb57b3bf0cc450d5e008058142 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/guild/guild_join_request_delete_event/tests/test__parse_guild_id.py | d0a4cde74f5380fcf06b03c4fad8746b6745a2a9 | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 600 | py | import vampytest
from ..fields import parse_guild_id
def _iter_options():
guild_id = 202305160007
yield {}, 0
yield {'guild_id': None}, 0
yield {'guild_id': str(guild_id)}, guild_id
@vampytest._(vampytest.call_from(_iter_options()).returning_last())
def test__parse_guild_id(input_data):
""... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
f99658226c6f0dbf526e4279f61ca16cfd909486 | 942ee5e8d54e8ebe9c5c841fbfdd1da652946944 | /1001-1500/1467.Probability of a Two Boxes Having The Same Number of Distinct Balls.py | 5e7f9b3fd1966c2ca99755119191d27b2d196478 | [] | no_license | kaiwensun/leetcode | 0129c174457f32887fbca078fb448adce46dd89d | 6b607f4aae3a4603e61f2e2b7480fdfba1d9b947 | refs/heads/master | 2023-08-31T07:30:50.459062 | 2023-08-27T07:59:16 | 2023-08-27T07:59:16 | 57,526,914 | 69 | 9 | null | 2023-08-20T06:34:41 | 2016-05-01T05:37:29 | Python | UTF-8 | Python | false | false | 1,431 | py | import functools, collections
class Solution:
def getProbability(self, balls: List[int]) -> float:
box_size = sum(balls) // 2
factorial = [1] * (max(balls) + 1 + 100)
for i in range(1, len(factorial)):
factorial[i] = factorial[i - 1] * i
def choose(t... | [
"noreply@github.com"
] | kaiwensun.noreply@github.com |
4258a6ba19ea4d7cf50cab6bbeb0bd1e93cb00b0 | 1860aa3e5c0ba832d6dd12bb9af43a9f7092378d | /modules/xlwt3-0.1.2/examples/col_width.py | 90d82eb9415a897615d41007b926e35096306e1a | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | agz1990/GitPython | d90de16451fab9222851af790b67bcccdf35ab75 | 951be21fbf8477bad7d62423b72c3bc87154357b | refs/heads/master | 2020-08-06T18:12:26.459541 | 2015-07-05T14:58:57 | 2015-07-05T14:58:57 | 12,617,111 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #!/usr/bin/env python
# -*- coding: windows-1251 -*-
# Copyright (C) 2005 Kiseliov Roman
from xlwt3 import *
w = Workbook()
ws = w.add_sheet('Hey, Dude')
for i in range(6, 80):
fnt = Font()
fnt.height = i*20
style = XFStyle()
style.font = fnt
ws.write(1, i, 'Test')
ws.col(i).width = 0x0d00 + ... | [
"522360568@qq.com"
] | 522360568@qq.com |
723c1499308ef1947356732e42ee5c9030771c94 | 20c80f722c451b64d05cc027b66a81e1976c3253 | /commons/libs/pyblish_starter/plugins/integrate_asset.py | 4dd833f1be3f9c0d61e553108a7956a38094f954 | [] | no_license | flypotatojun/Barbarian | 2d3fcb6fcb1b4495b6d62fc5e32634abf4638312 | efe14dd24c65b4852997dad1290e503211bcc419 | refs/heads/master | 2021-07-18T01:43:14.443911 | 2017-10-24T03:37:43 | 2017-10-24T03:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,421 | py | import pyblish.api
class IntegrateStarterAsset(pyblish.api.InstancePlugin):
"""Move user data to shared location
This plug-in exposes your data to others by encapsulating it
into a new version.
Schema:
Data is written in the following format.
____________________
... | [
"lonegather@users.noreply.github.com"
] | lonegather@users.noreply.github.com |
56010a4e310d6d54195272006cb696d231a7d78a | 5289db68f1573549b287750beed02bc9c37340d3 | /tools/pytorch-quantization/tests/print_test.py | 1a4dec6d13ceb244e45e7154cc07c869329a528f | [
"ISC",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | feizhouxiaozhu/TensorRT | 5d5ac8468f67121a96d68a76e43988630c483040 | af8f24cefba42e367ec09fbb05c08a2946645258 | refs/heads/master | 2023-02-08T10:35:41.382352 | 2020-12-19T00:48:00 | 2020-12-19T02:28:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | #
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
ea488ecdd6f29b28a881a7505d69af2f10c4951b | 93872b89471eccf1414306216aa8b97df0c38cc4 | /lib/modules/credentials/mimigatoz/mimitokens.py | 79c4038c9c497452d99be0791f9929141f5078b4 | [
"BSD-3-Clause"
] | permissive | brownbelt/Empire-mod-Hackplayers | bcb1a7cd6f608e9b83011e19e1527d8ec120f932 | 315184020542012fdcf89ba4c0de0e5c00954372 | refs/heads/master | 2021-06-20T02:55:15.991222 | 2017-08-01T09:25:58 | 2017-08-01T09:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,522 | py | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Invoke-MimiGatoz Tokens',
'Author': ['@JosephBialek', '@gentilkiwi'],
'Description': ("Runs PowerSploit's Invoke-MimiGatoz function "
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
0e382a491da509bd9913eff6eb831510b77bd9af | 446d9c9e98bac9bb7d6ba9d6f2639fd1ab0e68af | /pythonBook/chapter06/exercise6-23.py | 67d2bce0e2edc2ef0d9e9213eacb0216d837626a | [] | no_license | thiagofb84jp/python-exercises | 062d85f4f95332549acd42bf98de2b20afda5239 | 88ad7365a0f051021034ac6f0683b3df2de57cdb | refs/heads/main | 2023-07-19T21:15:08.689041 | 2021-08-17T10:59:09 | 2021-08-17T10:59:09 | 308,311,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | """
6.23. Controle da utilização de salas de um cinema
"""
lugaresVagos = [10, 2, 1, 3, 0]
while True:
sala = int(input("Sala (0 para sair do programa) :"))
if sala == 0:
print("Encerrando o programa...")
break
if sala > len(lugaresVagos) or sala < 1:
print("Sala inválida!")
el... | [
"thiagofb84jp@gmail.com"
] | thiagofb84jp@gmail.com |
ff76df49ad42e40b7da91b22b4e8c1c8a4a40fb2 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/__cmd_group.py | 27271cfb6425eebaca4fa2e123288c385ca59464 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 704 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
cb606700b2241eebb71ead8c64124867f9a3a585 | f0f285567e706c1d89a730e9807ca44690f745ad | /0x0A-python-inheritance/6-base_geometry.py | 819d3ab4cf7e2b8ba06e805d561fffa5145b6703 | [] | no_license | Faith-qa/alx-higher_level_programming-1 | a43fc57414c6c946407d0795df5f9794a061a890 | 8f66f9a09088b55d44f1754ca616e75d83ca76c4 | refs/heads/main | 2023-08-07T16:41:39.830429 | 2021-09-28T06:40:49 | 2021-09-28T06:40:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/python3
# 6-base_geometry.py
"""Defines a base geometry class BaseGeometry."""
class BaseGeometry:
"""Represent base geometry."""
def area(self):
"""Not implemented."""
raise Exception("area() is not implemented")
| [
"yosefsamuel22@gmail.com"
] | yosefsamuel22@gmail.com |
d053c0a0a25b58a278a960935bd26b497357d1c7 | e24f75482c0ae71fb0dfa6d49f3a82129569c2d9 | /changes/api/serializer/models/plan.py | 9f11af47bb2be272e1a5b9c4efd90040b5cc14a6 | [
"Apache-2.0"
] | permissive | OmarSkalli/changes | aaa6a0083c87b7d5876eb0557466be60dea45e34 | 5280b2cea13c314aeecc770853c14caaff6bbb93 | refs/heads/master | 2022-08-12T11:37:53.571741 | 2014-07-11T22:55:37 | 2014-07-11T22:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | import json
from changes.api.serializer import Serializer, register
from changes.models import ItemOption, Plan, Step
@register(Plan)
class PlanSerializer(Serializer):
def serialize(self, instance, attrs):
return {
'id': instance.id.hex,
'name': instance.label,
'steps'... | [
"cramer@dropbox.com"
] | cramer@dropbox.com |
abac750ec39d365e349d684cf03414f5725f8da0 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy2506.py | a7fde2d65a26c997e4016788e19ab6906db2feb1 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,134 | py | # qubit number=4
# total number=37
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
6a192ce3a780e557a221c647cf70d5ce37cf901d | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2017/06/trump-approval-20170601/graphic_config.py | ff3ca865581af3ab3dd6555df9e94d562b335301 | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '1g0Lnpdt7bS8_NDHxYVFOQ54vuxPCkKqdIPdlWZG3O6Q'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
ee784fcf452c66c9190b9ade1e753cfa0f306994 | ada3899b0d2332121087105ceeba0b138681ecf2 | /modules/signatures/CAPE.py | 2642b2b5625d195eed0e7ad9e39bd475e10a6e4e | [] | no_license | olivierh59500/CAPE | 51d6a4e8b022b660ad8f64860459186f1d308987 | 823f78d22f444ee6db93e7b02c9fa77e64186baa | refs/heads/master | 2021-01-12T01:12:26.614946 | 2016-12-31T23:35:23 | 2016-12-31T23:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,171 | py | from lib.cuckoo.common.abstracts import Signature
EXTRACTION_MIN_SIZE = 0x2000
class CAPE_PlugX(Signature):
name = "CAPE PlugX"
description = "CAPE detection: PlugX"
severity = 3
categories = ["chinese", "malware"]
families = ["plugx"]
authors = ["kev"]
minimum = "1.3"
evented = True
... | [
"kevoreilly@gmail.com"
] | kevoreilly@gmail.com |
463b6bb70cca8e70a802d8985558490eaa73d7b1 | e845f7f61ff76b3c0b8f4d8fd98f6192e48d542a | /djangocg/contrib/gis/sitemaps/__init__.py | 6765153ec0be6d9dcc32bad86c6a4420403d07bf | [
"BSD-3-Clause"
] | permissive | timothyclemans/djangocg | fd150c028013cb5f53f5a3b4fdc960a07fdaaa78 | 52cf28e046523bceb5d436f8e6bf61e7d4ba6312 | refs/heads/master | 2021-01-18T13:20:13.636812 | 2012-08-31T23:38:14 | 2012-08-31T23:38:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | # Geo-enabled Sitemap classes.
from djangocg.contrib.gis.sitemaps.georss import GeoRSSSitemap
from djangocg.contrib.gis.sitemaps.kml import KMLSitemap, KMZSitemap
| [
"timothy.clemans@gmail.com"
] | timothy.clemans@gmail.com |
23f542b49fb43c3fa7f261c20d841f00b6768b43 | dce4a52986ddccea91fbf937bd89e0ae00b9d046 | /jni-build/jni/include/tensorflow/contrib/quantization/python/dequantize_op_test.py | b1d47cc4a2edcea49cb0798241f46968a19d166a | [
"MIT"
] | permissive | Lab603/PicEncyclopedias | 54a641b106b7bb2d2f71b2dacef1e5dbeaf773a6 | 6d39eeb66c63a6f0f7895befc588c9eb1dd105f9 | refs/heads/master | 2022-11-11T13:35:32.781340 | 2018-03-15T05:53:07 | 2018-03-15T05:53:07 | 103,941,664 | 6 | 3 | MIT | 2022-10-28T05:31:37 | 2017-09-18T13:20:47 | C++ | UTF-8 | Python | false | false | 3,108 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"super_mr.z@hotmail.comm"
] | super_mr.z@hotmail.comm |
00c989258ab015ff4cdd1d241d09ff53a6d04033 | 3c4a345c530d8a9df163fad6c438e504e196dda0 | /Challenge6.py | 1addee14b3688487646a776c43d0baf02040f09d | [] | no_license | vebzical/kryptokamut | 9d096810e987bc730f5ed710468b2e2b83401bd0 | 5363185d09199608600c9d1bc7c71e51311a1d84 | refs/heads/master | 2020-05-09T15:16:12.247060 | 2019-04-15T09:47:39 | 2019-04-15T09:47:39 | 181,227,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | #/usr/bin/python
import base64
import freqAnalysis
def XOR(input, key):
result = b''
for x,y in zip(input, key):
result += bytes([x ^ y])
return result
def findKeyLen(chiphertext):
final_dist = []
for keysize in range(2,41):
distances = []
chunks = [chiphertext[i:i+keysize] for i in range(0, l... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
04dab0209f29ce27605490d094bcc4294c4d3171 | 3cbb592ca471540cc704a547f71f9d6b84669976 | /python/infpy/gp/examples/simple_example.py | f3ecb0972d8eb65d6185c5d3a3f8129c66167827 | [
"BSD-2-Clause"
] | permissive | JohnReid/infpy | a9c896a556abed8ed3abd5e56ca86d31a7a731c0 | 1b825ba7a60f0a0489df5f41b273374aef628a60 | refs/heads/master | 2021-01-01T16:56:27.743588 | 2018-06-28T21:44:17 | 2018-06-28T21:44:17 | 13,087,025 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | #
# Copyright John Reid 2008
#
import numpy
import pylab
import infpy.gp
def save_fig(prefix):
"Save current figure in extended postscript and PNG formats."
pylab.savefig('%s.png' % prefix, format='PNG')
pylab.savefig('%s.eps' % prefix, format='EPS')
# Generate some noisy data from a modulated sin curv... | [
"johnbaronreid@netscape.net"
] | johnbaronreid@netscape.net |
26c2daefb72b9b841d51c34f8ad6f2f23053f412 | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/modules/cloud/cloudstack/cs_zone_facts.py | 92c815e95756f4fd8ec4bffffdc80dfdaf421e53 | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 4,772 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016, René Moser <mail@renemoser.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
'supported... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
7707734bcaccebbdf25b7547c1dcf12bc305d2b3 | d8c899ca71e511ec0b60b79f11eeb08077ad7b7b | /stubs/pytest/mark.pyi | d1733cfb0524484bc786f3bdab20d218b6b2edca | [
"Apache-2.0"
] | permissive | Michaelll123/sensibility | ff9972baa979745e91f96a1e4953ebe42d7258b5 | 7436ac2fd4faf100b5e21c28b61a431adce06091 | refs/heads/master | 2023-08-30T05:57:05.750677 | 2021-11-14T09:45:57 | 2021-11-14T09:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | pyi | from typing import Callable
class skip:
def __init__(self, test: Callable=None, reason: str=None) -> None: ...
def __call__(self, test: Callable) -> Callable: ...
def skipif(condition: bool, reason: str=None) -> Callable[[Callable], Callable]: ...
def xfail(Callable) -> Callable: ...
| [
"easantos@ualberta.ca"
] | easantos@ualberta.ca |
8888104655043e44fc68662cec6bd63cc8bbddee | fced25b055ec68ee522bd156c3be5902172beb55 | /Pages/logs/Actions-logs/onload.py | c209484f123b9b8aeafa573b8463db94067a17c0 | [] | no_license | EAC-Technology/eApp-Builder | 3cff5576139b78fc507406e31a4b5201eab436b7 | c3bbadde24330fb2dff4aa2c32cc6b11e044fbc9 | refs/heads/master | 2021-08-16T23:56:54.241674 | 2017-11-20T14:15:10 | 2017-11-20T14:15:10 | 111,399,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | """
"""
from ProSuiteLogsPage import ProSuiteLogsPage
page = ProSuiteLogsPage(self)
page.vdom_objects = {
"growl": self.growl,
"logs.data": self.logs_cnt.hpt,
"topbar.download.btn": self.dwnloadlogs_btn,
"topbar.autoupdate.btn": self.autoupdate.checkbtn,
"dialogs.download": self.dwnload_logs_di... | [
"alain.abraham@web-atrio.com"
] | alain.abraham@web-atrio.com |
6d92d61ee82ad1d16aafdda4e576c854454eb802 | eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e | /atcoder/abc/abc301-400/abc302/b.py | 289515c914038268c91d8ae04c92359c07516a7e | [] | no_license | reo11/AtCoder | 4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9 | 69c6d67f05cb9190d8fb07204488cd7ce4d0bed2 | refs/heads/master | 2023-08-28T10:54:50.859288 | 2023-08-22T18:52:47 | 2023-08-22T18:52:47 | 162,085,118 | 4 | 0 | null | 2023-07-01T14:17:28 | 2018-12-17T06:31:10 | Python | UTF-8 | Python | false | false | 960 | py | h, w = map(int, input().split())
s = [list(input()) for _ in range(h)]
target = list("snuke")
dxy = [[1, 0], [-1, 0], [0, 1], [0, -1], [1, 1], [-1, 1], [1, -1], [-1, -1]]
for i in range(h):
for j in range(w):
if target[0] == s[i][j]:
for dx, dy in dxy:
flag = True
... | [
"reohirao116@gmail.com"
] | reohirao116@gmail.com |
518b4196e8bf056b4b5e8da9a147b688b1451695 | 6634436cf4f0e4d674cf497e57e5750f9ac415aa | /phylopandas/treeio/write.py | cbb1ec02fff13e127e16464606f9e2e1c78e1529 | [
"BSD-3-Clause"
] | permissive | ScottCarrara/phylopandas | dc946d552ad48b6314a60e845356318b33fbe860 | f163c4a2b9369eb32f6c8f3793f711f6fe4e6130 | refs/heads/master | 2020-05-19T19:44:45.752770 | 2018-11-12T06:55:47 | 2018-11-12T06:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,846 | py | import pandas
import dendropy
def _write_doc_template(schema):
s = """Write to {} format.
Parameters
----------
filename : str
File to write {} string to. If no filename is given, a {} string
will be returned.
taxon_col : str (default='sequence')
Sequence column name in Da... | [
"zachsailer@gmail.com"
] | zachsailer@gmail.com |
30a59c7f55545090058475dd238a15e2ff6ab9e4 | 4b1b00f977c27d71b6fe0fab64a9ca09a85a4c09 | /src/vis/visualization.py | 89649b4a0d43ebb6222831997b7667cc2a2da414 | [] | no_license | zhouyanasd/SNN_framework | 67e3d31ef9e709d0b8cb1d18618291f264b006f6 | ba3ab08ac350507120d1ab840701b27014db70e2 | refs/heads/master | 2021-09-29T02:38:10.144613 | 2017-10-24T02:13:10 | 2017-10-24T02:13:10 | 108,064,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | import src
import numpy as np
import matplotlib.pyplot as plt
class Visualization(object):
def __init__(self, total_time):
self.t = np.arange(0,total_time)
def show(self):
plt.show()
def I(self,neuron):
I = neuron.I
print(I)
plt.figure()
plt.plot(self.t[:]... | [
"zhouyanasd@gmail.com"
] | zhouyanasd@gmail.com |
ea2d61ae0c1e7e0201572dfe99c9e2b60c194f4c | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/python_re2_test_file/regexlib_8042.py | 7f3731ea0b2889199ad4f7f644c3eb4d522ba376 | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # 8042
# [0-9]*[-| ][0-9]*[-| ][0-9]*[-| ][0-9]*[-| ][0-9]*
# POLYNOMIAL
# nums:5
# POLYNOMIAL AttackString:""+"0"*20000+"!1 _SLQ_1"
import re2 as re
from time import perf_counter
regex = """[0-9]*[-| ][0-9]*[-| ][0-9]*[-| ][0-9]*[-| ][0-9]*"""
REGEX = re.compile(regex)
for i in range(0, 150000):
ATTACK = "" + "0... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
0542df0613cdfe3e156d53aa7c489a965abbc72e | 3121b64e95d022b12585348070dff048ae879f68 | /render/normalised_ply.py | 39726f5e431102d53b395b35aa7b40c26fb8c952 | [
"MIT"
] | permissive | lt6253090/OcCo | 082d1e5371064c70f9185d9425ea4318539c1785 | 5936a6fe099fe0b5aa5da47e8ba828a72b3adcbf | refs/heads/master | 2022-11-26T14:19:17.070920 | 2020-08-03T13:52:21 | 2020-08-03T13:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | # Copyright (c) 2020. Hanchen Wang, hw501@cam.ac.uk
import os, open3d, numpy as np
File_ = open('ModelNet_flist_short.txt', 'w')
if __name__ == "__main__":
root_dir = "../data/ModelNet_subset/"
for root, dirs, files in os.walk(root_dir, topdown=False):
for file in files:
if '.ply' in file:
amesh = open3... | [
"hc.wang96@gmail.com"
] | hc.wang96@gmail.com |
10eb4d49285661fe5c622e13b644168cca0601b2 | 56ca0c81e6f8f984737f57c43ad8d44a84f0e6cf | /src/ewaluacja2021/xlsy.py | 4dfb33df91b55d730ce55579e99c89234071e548 | [
"MIT"
] | permissive | iplweb/bpp | c40f64c78c0da9f21c1bd5cf35d56274a491f840 | a3d36a8d76733a479e6b580ba6ea57034574e14a | refs/heads/dev | 2023-08-09T22:10:49.509079 | 2023-07-25T04:55:54 | 2023-07-25T04:55:54 | 87,017,024 | 2 | 0 | NOASSERTION | 2023-03-04T04:02:36 | 2017-04-02T21:22:20 | Python | UTF-8 | Python | false | false | 7,162 | py | import os
from decimal import Decimal
import openpyxl
from django.db.models import Sum, Value
from ewaluacja2021.const import LATA_2017_2018, LATA_2019_2021
from ewaluacja2021.reports import get_data_for_report, write_data_to_report
from ewaluacja2021.util import autor2fn, output_table_to_xlsx
from bpp.models import... | [
"michal.dtz@gmail.com"
] | michal.dtz@gmail.com |
e9b067b88c153881f73dfe6f385f65c0b6b2d567 | c34380b64145b4ce26df9b27c34139d08de27515 | /findSquare_1.py | 6691dfa3d4ddfc6a058b6d9f149dcc8a10a5ef7b | [] | no_license | codeandrew/python-algorithms | 531bc1574700cb7d822904f1e1ead9a596a85d29 | c71b0941f14825fcaa3fbb1429365ca1f28a3018 | refs/heads/master | 2023-04-28T23:56:01.283434 | 2023-04-05T03:06:22 | 2023-04-05T03:06:22 | 169,078,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import math
def is_square(n):
if n == 0 : return True
try :
root = math.sqrt(n)
return True if n % root == 0 else False
except :
return False
| [
"jeanandrewfuentes@gmail.com"
] | jeanandrewfuentes@gmail.com |
47f5d7568c984524b2c898478013521badca8f55 | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/network/v2016_09_01/models/frontend_ip_configuration.py | 29047c8dab7e49461129f986c35db4e775edb14a | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 4,730 | 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 ... | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
b30cf9c3fdd4d322be96bee80da321a1ad93e8f1 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Fisher/trend_MovingMedian/cycle_5/ar_/test_artificial_32_Fisher_MovingMedian_5__0.py | 9e5e9d5395d5905e2f44be0c8fe90fe178f72318 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 267 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 5, transform = "Fisher", sigma = 0.0, exog_count = 0, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
eb5df28853640bcb013ac32bdbc48d0220d3c72f | 56ba30f470ddf70d7705d847c0ab2f5f894739e7 | /_src/stage3/break_time.py | 854072eda0ac8a1499473b04f35fc3560197a767 | [] | no_license | chhikara0007/intro-to-programming | c989fd5892ed3fcb4c559e278a72a2d931e7c9e3 | 6a93f43c225b146c6874ee7821c25e1f61f821b0 | refs/heads/master | 2021-01-02T08:13:07.238853 | 2016-10-04T14:44:36 | 2016-10-04T14:44:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import time
import webbrowser
import random
total_breaks = 3
break_count = 0
web_list = ["http://www.google.com", "http://twitter.com",
"http://www.youtube.com/watch?v=dQw4w9WgXcQ"]
print("This program started on "+time.ctime())
while(break_count < total_breaks):
time.sleep(5)
web = random.choice(web_list)... | [
"dadac123@gmail.com"
] | dadac123@gmail.com |
1679dfc05c5e136eb693e371474a8d6c679e4eb8 | 46732d613208ee4096fbbd3fd74f22146471d1ce | /wangyiyun_songs&lyrics/all_singer歌手情绪分析/陈粒/sentiments_test.py | 0eaf219349b004a76550efc38b24981a66396e3d | [] | no_license | cassieeric/python_crawler | 7cb02f612382801ae024e2cee70e0c2bcdba927c | 6d2b4db3d34183d729f6fd30555c6d6f04514260 | refs/heads/master | 2022-11-30T20:30:50.031960 | 2022-11-27T02:53:22 | 2022-11-27T02:53:22 | 118,204,154 | 322 | 283 | null | 2022-12-21T09:33:08 | 2018-01-20T03:17:14 | HTML | UTF-8 | Python | false | false | 867 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from snownlp import SnowNLP
# 积极/消极
# print(s.sentiments) # 0.9769551298267365 positive的概率
def get_word():
with open("陈粒歌词关键字.txt") as f:
line = f.readline()
word_list = []
while line:
line = f.readline()
... | [
"noreply@github.com"
] | cassieeric.noreply@github.com |
d47e989a1e6cd0df97c8b0b1cff955d999fdb136 | abfff8ab3162f7003b51d3fdcc7897684d2d4e54 | /unicode.py | 1562ddfe3bc2f669b166f9b3b02d019d3f409711 | [] | no_license | RedKnite5/Junk | 972dc24c99fe30400ab35e77bb4b69abe9076190 | 93b5bb4b6138518724528770cf56ea1df10e95b4 | refs/heads/master | 2023-04-10T07:25:14.968070 | 2023-04-04T04:19:42 | 2023-04-04T04:19:42 | 143,909,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import io
with io.open("unicode.txt", "w+", encoding="utf8") as file:
for i in range(32, 127):
file.write(chr(i))
for i in range(161, 130_000):
try:
file.write(chr(i))
except UnicodeEncodeError:
pass
| [
"mr.awesome10000@gmail.com"
] | mr.awesome10000@gmail.com |
71511da2fd63661ffd2addee0f4b082d184b1312 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/cloudsign/apis/SaveMultiEvidenceRequest.py | bb03fd81acfbacb5edb45efe9f8045287987e3a4 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 2,364 | py | # coding=utf8
# Copyright 2018 JDCLOUD.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 or agreed ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
763df4380182d72f1502e248f2df77a2e82f2563 | 69eb40f099dcc0ea326972ff63db1d4fd131641a | /test_upkern/test_fixtures/test_sources.py | 29cb9c77be4569f6d5831cd4e236626b66b79ad1 | [] | no_license | alunduil/upkern | 4bcc1485629fad8a0ab1c613f71b7ebc3ef9038e | 23d4a98077bc18a229425a3f53dedd89ef5356fd | refs/heads/master | 2021-01-21T00:18:03.646111 | 2014-01-15T03:06:53 | 2014-01-15T03:06:53 | 1,007,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,481 | py | # Copyright (C) 2014 by Alex Brandt <alunduil@alunduil.com>
#
# upkern is freely distributable under the terms of an MIT-style license.
# See COPYING or http://www.opensource.org/licenses/mit-license.php.
SOURCES = {}
SOURCES['correct'] = []
SOURCES['correct'].append(
{
'name': None,
'directory_n... | [
"alunduil@alunduil.com"
] | alunduil@alunduil.com |
3c55cf6714a04191758570aa165a7e286c861126 | 810ce1c1ac47743e253171ec7541c0e431d952c2 | /cosmic_py/tests/e2e/test_api.py | fc3d0125e3dc13ef34cb093cbd65112a7627ab15 | [] | no_license | hjlarry/practise-py | 91052c25dc7ab706c6234f6d657db76667a27124 | 871e06b9652d356f55e3888f1f7ea180ac2b1954 | refs/heads/master | 2022-09-11T17:47:48.557194 | 2022-08-10T02:07:24 | 2022-08-10T02:07:24 | 136,263,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | import pytest
import requests
import config
from . import api_client
from ..random_refs import random_sku, random_batchref, random_orderid
@pytest.mark.usefixtures("postgres_db")
@pytest.mark.usefixtures("restart_api")
def test_happy_path_returns_201_and_allocated_batch():
orderid = random_orderid()
sku, oth... | [
"hjlarry@163.com"
] | hjlarry@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.