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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12f845bb21b083223bf6505c66df0d898a88a52b | 0df898bf192b6ad388af160ecbf6609445c34f96 | /middleware/backend/app/magnet/trader/events.py | b58aa272aaaac1c063e1dd3b9c531ce86843cc9d | [] | no_license | sasano8/magnet | a5247e6eb0a7153d6bbca54296f61194925ab3dc | 65191c877f41c632d29133ebe4132a0bd459f752 | refs/heads/master | 2023-01-07T10:11:38.599085 | 2020-11-13T02:42:41 | 2020-11-13T02:42:41 | 298,334,432 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | import json
from libs.linq import Linq
from magnet import app, logger, depends_db, get_db, BaseModel
from . import schemas, crud, views
# イベントは並列でなく直列に実行される
# @app.on_event("startup")
# async def loop1():
# import asyncio
# for item in range(3):
# print("aaaaaaaaaaaaaaaaaaaaaaa")
# await asynci... | [
"y-sasahara@ys-method.com"
] | y-sasahara@ys-method.com |
182e1c53709211ac7422d74085208f1f9dd6ccab | 9461b98b7942f9236c6914a9cae0dd6359860f2e | /backend/home/migrations/0002_load_initial_data.py | 083c1b50f8f8ceff6b08fe652d828ea8731d625e | [] | no_license | crowdbotics-apps/popa-ntwana-18386 | b4fb231d841d641781da0cec7820c16dd1351c7c | 093f3af9e6415a65ed3f4a94697dc86cfa3b5998 | refs/heads/master | 2022-11-05T09:39:48.451349 | 2020-06-24T08:49:19 | 2020-06-24T08:49:19 | 274,620,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Popa Ntwana"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
76bcb66832e982b10b6f340ad6bd2607e3eef3ab | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/pFedMe_ID1597_for_PyTorch/main_plot.py | df3de96f1e793d5396deb0db24eff5cab94af197 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | 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 | 3,338 | py | #!/usr/bin/env python
#
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of so... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
7a227e318df6884169444520ab6eda304d251cd1 | 8ec775c1393851790d587ce4e7b7f0c621e97cdb | /celery/utils/timer2.py | f19f8979adf4476fb15b65e5d03ced23540b1dbd | [
"BSD-3-Clause"
] | permissive | mootpointer/celery | edc63ebbd4477b7795211bebf0b75ce72ef13987 | 49fb85923b607362c363faad7f8699de9efc818b | refs/heads/master | 2020-04-05T23:37:23.608113 | 2010-10-05T14:37:06 | 2010-10-05T14:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,471 | py | """timer2 - Scheduler for Python functions."""
from __future__ import generators
import atexit
import heapq
import sys
import traceback
import warnings
from itertools import count
from threading import Thread, Event
from time import time, sleep, mktime
from datetime import datetime, timedelta
VERSION = (0, 1, 0)
_... | [
"askh@opera.com"
] | askh@opera.com |
85966c0123e9fa9b2bbe8331c7c95acb8077f31e | 276c86a451c4110ba0885dbe8509d46f23c21715 | /esp32-micropython/examples/pubsub/ps_bleuart.py | bba13a633db06488555103a448c7e873b4d97371 | [] | no_license | vtt-info/octopuslab | 055c9bfdc1466a6e5acf90a3cd0db2826e72dee7 | 3d20933c05bae3eec4d0c033f228bde369e46e07 | refs/heads/master | 2022-07-27T14:19:16.386241 | 2020-05-16T13:50:21 | 2020-05-16T13:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # The MIT License (MIT)
# Copyright (c) 2020 Jan Cespivo, Jan Copak
# octopusLAB pubsub and ble-uart example
from time import sleep
from examples.pubsub.ps_init import pubsub
print("start: ps_bleuart.py")
from util.shell.terminal import getUid
uID5 = getUid(short=5)
from time import sleep
from util.led... | [
"noreply@github.com"
] | vtt-info.noreply@github.com |
a7e39a5e3a01b682a14c09b0bceeeacfcc52db3c | 7623eb40cd92221b5e57610743a4a4b4dea78ad1 | /shortenurl.py | 0e0ca09eb7d94d80f4acf7cd031ab03a5b1e0464 | [] | no_license | sontek/weechat-plugins | 1e4042b6d103d1a48d8ba705f08d55c1fa0b6c3d | 75aa8ce236bc20e40197ff4405535fabc1e658f8 | refs/heads/master | 2020-05-18T13:26:18.939118 | 2014-05-03T22:36:51 | 2014-05-03T22:36:51 | 471,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,657 | py | # Copyright (c) 2010, 2011, 2012, 2013 by John Anderson <sontek@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later vers... | [
"sontek@gmail.com"
] | sontek@gmail.com |
4c4f2e823841edb918d6e1919f3a75771d4ac2be | b575933c01b603f30cb6e9fbcbe77462c13dc646 | /problemset/654. 最大二叉树/solution.py | e2d2404ac72af1785d22c72701b45163d7d1ebb0 | [] | no_license | KevenGe/LeetCode-Solutions | 23950a84e347032db637a3c5b0aa97eb12727321 | c7becb56e207ee2de6dbf662c98db7eb5b9471ff | refs/heads/master | 2023-09-04T07:40:05.185619 | 2023-08-21T15:09:49 | 2023-08-21T15:09:49 | 250,487,996 | 1 | 1 | null | 2023-08-16T13:58:19 | 2020-03-27T09:06:32 | Python | UTF-8 | Python | false | false | 1,471 | py | # 654. 最大二叉树
# https://leetcode.cn/problems/maximum-binary-tree/
from typing import List, Optional, Dict
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
# class Solution:
# def ... | [
"1985996902@qq.com"
] | 1985996902@qq.com |
0a7e219eaa933dea1b487621e357c35be6f26e15 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02382/s026458296.py | 5d8dce72835bbadd2113e5f8d88cda74409d0a9d | [] | 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 | 284 | py | import math
n = int(input())
X = list(map(int, input().split()))
Y = list(map(int, input().split()))
D = [abs(X[i]-Y[i]) for i in range(n)]
for p in [1, 2, 3, -1]:
if p == -1:
print(max(D))
else:
print(math.pow(sum([math.pow(D[i],p) for i in range(n)]),1/p))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ebbdaed2147b63c905f991ac24ad9c0c21f73f9e | 7f57c12349eb4046c40c48acb35b0f0a51a344f6 | /2018/880_Decoded_String_at_Index_v0.py | 384dfa15819e8ce46e88f9d74bd823c661228251 | [] | no_license | everbird/leetcode-py | 0a1135952a93b93c02dcb9766a45e481337f1131 | b093920748012cddb77258b1900c6c177579bff8 | refs/heads/master | 2022-12-13T07:53:31.895212 | 2022-12-10T00:48:39 | 2022-12-10T00:48:39 | 11,116,752 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | #!/usr/bin/eni python
# encoding: utf-8
class Solution(object):
def decodeAtIndex(self, S, K):
N = 0
for i, ch in enumerate(S):
if ch in "23456789":
N *= int(ch)
else:
N += 1
if N >= K:
break
for j in xrang... | [
"stephen.zhuang@gmail.com"
] | stephen.zhuang@gmail.com |
c2d234d0d6380fc97897ae32086f04aab880448f | 0bcbf302506aeb916ffc5e9f04804e33b2ca0f22 | /config.py | 6005f1e641aa9112963201e978bfd6d7831e65b8 | [
"MIT"
] | permissive | Pixel-0/arg-news | c27e1c7668091761c48e68fa42e07d2d59e2b840 | 0310d96fa4bee61438f4c0907e0a8e79cc0f59f5 | refs/heads/master | 2023-07-20T05:50:48.078110 | 2023-07-10T18:59:19 | 2023-07-10T18:59:19 | 199,492,141 | 0 | 0 | MIT | 2023-07-10T18:59:21 | 2019-07-29T16:49:01 | Python | UTF-8 | Python | false | false | 609 | py | import os
class Config:
'''
General configuration parent class
'''
SOURCES_BASE_URL='https://newsapi.org/v2/sources?language=en&category={}&apiKey={}'
EVERYTHING_BASE_URL='https://newsapi.org/v2/everything?sources={}&apiKey={}'
SEARCH_API_BASE_URL = 'https://newsapi.org/v2/everything?language=... | [
"brayomumo5@gmail.com"
] | brayomumo5@gmail.com |
62162cd7bda8138b8fcae9e0ef1f1625cd2cd8a4 | c7b8cf1570082f0b6453dd03d06bc614892a83ea | /tests/test_web_exceptions.py | 9430389cc30714f40e416a0a221cc7ef2c51db0c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | wking/aiohttp | 168a5f742a88252ec74603d000c455858a9ea190 | d3c82f322ac0bce2aad7e29069e0339f877f1a84 | refs/heads/master | 2020-12-27T10:02:25.513760 | 2014-10-23T06:55:14 | 2014-10-23T06:55:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | import asyncio
import collections
import unittest
from unittest import mock
from aiohttp.multidict import MultiDict
from aiohttp.web import Request
from aiohttp.protocol import RawRequestMessage, HttpVersion11
from aiohttp import web
class TestHTTPExceptions(unittest.TestCase):
def setUp(self):
self.loo... | [
"andrew.svetlov@gmail.com"
] | andrew.svetlov@gmail.com |
18c9e57eb139174948150bb1237dc825fcd8b313 | e164fd9dce5fef093f85ca009f78570ec2b1c492 | /168. Excel Sheet Column Title.py | bde511140996ca85a038977551ba33a6d2412ac5 | [] | no_license | havenshi/leetcode | 58fde93a1f1cbdd3c2faa9566c00383e5812f3a7 | bcb79f329bcb133e6421db8fc1f4780a4eedec39 | refs/heads/master | 2021-01-22T04:15:23.748793 | 2019-11-30T04:25:54 | 2019-11-30T04:25:54 | 92,447,327 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | class Solution(object):
def convertToTitle(self, n):
"""
:type n: int
:rtype: str
"""
ans = ''
while n > 0:
print n
char = chr(ord('A') + (n - 1) % 26)
ans = char + ans
n = (n - 1) / 26
return ans
if __name__ ==... | [
"haiwen.shi01@gmail.com"
] | haiwen.shi01@gmail.com |
8274956da8305238e27732b4e5c2af3663dee7f8 | 6b37deabac3116e65bc869035cf8cfa50f22590c | /others/practice2/a_disjoint_set_union/submit.py | e4c639cdb10a1e1f52da1be32ec203b1eab3fdd9 | [] | no_license | hiromichinomata/atcoder | 92122a2a2a8b9327f4c8dc0e40889e8dc0321079 | 82216622d9040e95239b4a21e973cb12e59d7f6e | refs/heads/master | 2022-10-05T04:00:44.509719 | 2022-08-14T04:46:49 | 2022-08-14T04:46:49 | 176,891,471 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | import types
_atcoder_code = """
# Python port of AtCoder Library.
__version__ = '0.0.1'
"""
atcoder = types.ModuleType('atcoder')
exec(_atcoder_code, atcoder.__dict__)
_atcoder_dsu_code = """
import typing
class DSU:
'''
Implement (union by size) + (path halving)
Reference:
Zvi Galil and Giusepp... | [
"git@hiromichinomata.com"
] | git@hiromichinomata.com |
b97a1b41c7483d994a1ea51c1a5b18ea3e97dd4f | e66026c76ca3432fa23abf09607813ba35f18a4d | /courses/migrations/0014_auto_20190917_0055.py | f9aacf6c0cc54dca815ccb5c9ffab9686ed9099d | [] | no_license | odbalogun/micro-learning | 7f5ef32df3dea14e2f029911da31320cfefeeb8c | d2c5978f0145c0a1ff143e55eb2fad5be5a9210d | refs/heads/master | 2022-12-05T00:16:53.484668 | 2019-11-01T15:29:21 | 2019-11-01T15:29:21 | 183,503,738 | 0 | 0 | null | 2022-11-22T03:50:54 | 2019-04-25T20:16:33 | CSS | UTF-8 | Python | false | false | 1,616 | py | # Generated by Django 2.2.1 on 2019-09-17 00:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0013_auto_20190909_2107'),
]
operations = [
migrations.RemoveField(
model_name='courses',
name='descripti... | [
"oduntan@live.com"
] | oduntan@live.com |
547e560b7b40b8f49caf4bb941cd5505dc74df5d | 33e02609e24512b3324ac949ce522a96e2a952a4 | /py/phl/phlgit_hashobject.py | 454e4d243920c0429b882c65f54a6c8f63ef53d5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jphiii/phabricator-tools | 37d323c7d98f67953106ca525b02fc9e04439571 | 5a9b9d057b6fa47283bb28deb96002c462803818 | refs/heads/master | 2020-12-25T05:29:22.011174 | 2014-07-21T18:19:41 | 2014-07-21T18:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | """Wrapper around 'git hash-object'."""
# =============================================================================
# CONTENTS
# -----------------------------------------------------------------------------
# phlgit_hashobject
#
# Public Functions:
# write_string
#
# ----------------------------------------------... | [
"jevripiotis@bloomberg.net"
] | jevripiotis@bloomberg.net |
90058cd8b683432e7201e3e0f7d9b28f52c0eefe | 7a7a094f77a178aba06fae2176919f926119c356 | /data_structures_and_algorithms/subarray_with_maximum_minimum.py | f1959a52245304225fd87c80fb219c1d8f47a303 | [] | no_license | vlad-bezden/data_structures_and_algorithms | 9fd0c67a16ff1893d830ae68f43cabb75f5d6a99 | 3ba9b904ed5955de24053cb5941a7c5a71600106 | refs/heads/master | 2021-07-03T02:12:37.207767 | 2020-09-12T12:58:13 | 2020-09-12T12:58:13 | 165,452,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | """Subarray with the maximum minimum
Given the length of the subarray find the maximum-minimum of the subarray.
Example:
data = [2, 1, 4, 5, 6, 1, 9]
length = 3
1. [2, 1, 4] -> 1
2. [1, 4, 5] -> 1
3. [4, 5, 6] -> 4
4. [5, 6, 1] -> 1
5. [6, 1, 9] -> 1
Result: maximum of minimums - max([1, 1, 4, 1, 1]) = 4
"""
from... | [
"vlad.bezden@gmail.com"
] | vlad.bezden@gmail.com |
f570285d00c5bee2d7b0a3b1508fa5c0cc777e9a | b5d0a6254b54c0a778181a67bcda14cc6663e871 | /7-assets/past-student-repos/Graphs-master/projects/ancestor/ancestor2.py | d8025a03eb12af9d61a8525c7df75f41398e742a | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | Web-Dev-Collaborative/Lambda-Final-Backup | 113e719a76a144b86d06f3a412afe4b02689cad7 | e9ab84928faa8364bacd863009ae9aec01ff9d1e | refs/heads/master | 2023-06-07T15:34:00.682815 | 2021-04-17T01:53:14 | 2021-04-17T01:53:14 | 358,899,122 | 0 | 0 | MIT | 2023-05-30T04:03:16 | 2021-04-17T14:24:53 | JavaScript | UTF-8 | Python | false | false | 2,678 | py | class Queue():
def __init__(self):
self.queue = []
def enqueue(self, value):
self.queue.append(value)
def dequeue(self):
if self.size() > 0:
return self.queue.pop(0)
else:
return None
def size(self):
return len(self.queue)
class Graph:
... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
77e891fc46185495a5120c95cc8e30d65d30cde4 | 97e11c65903f583dfc4f51da13cae8236cc7180e | /bungie_d1_sdk_python/Model/dictionary_component_response_ofuint32_and_destiny_item_objectives_component.py | 6163fda571f0f381fbc6782ad53f7f8691dd3bf2 | [] | no_license | Yogarine/bungie-d1-sdk-python | 7272566f017ecb29a22d8f3560cb8e61ce765f72 | ca1f3562d5c343d2151abc88e98bdde678893780 | refs/heads/master | 2020-07-03T15:21:43.983126 | 2019-08-12T14:56:43 | 2019-08-12T14:56:43 | 201,950,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,375 | py | # coding: utf-8
"""
Unofficial Bungie.net API for Destiny 1
These are legacy endpoints for Destiny 1 that are no longer supported officially by Bungie. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: lowlines89@gmail.com
Generated by: https://openapi-generator.tech
"""
import pprint
import r... | [
"alwin@garsi.de"
] | alwin@garsi.de |
81e6f0beba408fa27e7aaf45083b22bbbb309588 | 80e6e31054fe9105d2c26be7aac53c4cd6a4a33f | /scripts/learn_pdf_adaptor_v3.py | 0c80ec8546f018fdd1dcf5323a1e8963dab07bce | [] | no_license | alionishere/learn_python | 8a7f6dc7d754a357d4cb720f4bc0d5c3e6e5e895 | 832b8e0579da0b7ab37e815be10204f8de1ad22d | refs/heads/master | 2021-06-24T11:02:05.111027 | 2021-06-23T08:47:06 | 2021-06-23T08:47:06 | 223,834,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,771 | py | import sys
import pdfplumber
dic1 = ['融出资金', '买入返售金融资产', '应收利息', '交易性金融资产', '其他债权投资', '长期股权投资', '应付债券', '应付短期融资款', '交易性金融资产', '衍生金融资产']
dic2 = ['手续费及佣金净收入', '一、营业总收入', '利息净收入', '投资收益(损失以“-”号填列)', '公允价值变动收益(损失以“-”号填列)', '二、营业总支出',
'归属于母公司股东的净利润', '五、净利润(净亏损以“-”号填列)']
dic3 = ['其中:对联营企业和合营企业的投资收益', '一、营业总收入', '投资... | [
"wang_hongke@163.com"
] | wang_hongke@163.com |
c12e4656ceee5529d489d26df3e8c32bf46463e1 | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /examples/tts/radtts.py | 7dbdaedced032b64dc5cdb013aa6575f4dff3c46 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 3,080 | py | # Copyright (c) 2022, 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 appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
323d8de2b480097a522272116f3495f93b5c0ec3 | f95d2646f8428cceed98681f8ed2407d4f044941 | /a-T-biji/day17/code/init_method.py | f023a51e02df525cf4744e5bccc3e2ac459382a9 | [] | no_license | q2806060/python-note | 014e1458dcfa896f2749c7ebce68b2bbe31a3bf8 | fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983 | refs/heads/master | 2020-08-18T01:12:31.227654 | 2019-10-17T07:40:40 | 2019-10-17T07:40:40 | 215,731,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # init_method.py
# 此示例示意用初始化方法来为Car类创建实例变量(属性)
class Car:
'''此类用于描述小汽车的行为'''
def __init__(self, c, b, m):
self.color = c # 创建颜色属性
self.brand = b # 品牌
self.model = m # 型号
print("初始化方法被调用!!!!")
def run(self, speed):
print(self.color, '的', self.brand,
... | [
"C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn"
] | C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn |
db78e409946be16f7986de607183523045cfdc1c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_columbine.py | a1024e927f4f76df042d0d09d1434f176e9a6807 | [
"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 | 368 | py |
#calss header
class _COLUMBINE():
def __init__(self,):
self.name = "COLUMBINE"
self.definitions = [u'a plant that has brightly coloured flowers with five pointed petals that hang down']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fa9f93d5e5a1739f502f4ba24e1cf911ea4414fd | 452f4385fe900742d86b57cdbb5279e36fd9e48a | /src/Products/urban/browser/licence/codt_uniquelicenceview.py | dc24c0ac031d7ce96d723c5f8d5882d37c7b4ac4 | [] | no_license | IMIO/Products.urban | 8ebfe1ae2166c36823e7b64d49ee42bccca80567 | 5576d169d1d87e9ebab950eac13610f215690dd7 | refs/heads/master | 2023-08-15T10:34:52.761734 | 2022-02-25T09:35:52 | 2022-02-25T09:35:52 | 125,059,498 | 1 | 1 | null | 2023-09-11T12:08:15 | 2018-03-13T13:54:30 | Python | UTF-8 | Python | false | false | 1,849 | py | # -*- coding: utf-8 -*-
from Products.urban.browser.licence.codt_buildlicenceview import CODTBuildLicenceView
from Products.urban.browser.licence.licenceview import EnvironmentLicenceView
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone import PloneMessageFactory as _
from plone import api
cl... | [
"delcourt.simon@gmail.com"
] | delcourt.simon@gmail.com |
90d2f8601438a247be712c3924f92fd71c0ca90d | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/ns/nsweblogparam.py | bffabdc5d30a1f7e14c0d69cf0c4baed2579abdd | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,209 | py | #
# Copyright (c) 2008-2019 Citrix Systems, Inc.
#
# 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 l... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
e053b4ede4be5d7d6a89ab6cf4b5812c6cea32af | 50c7d68505c8858f8c1db5b32ca84b28ca8a9818 | /tests/api/test_user.py | 9544988282e03b5a4b01812eb5a947fd0e630614 | [] | no_license | webalorn/onb | e30c1487ea1894cba245a0b78cab698a9fee0b81 | 26778e2103a5c00f091671af1f9d55c80a27b8d4 | refs/heads/master | 2020-03-07T06:35:08.768427 | 2018-05-08T15:35:48 | 2018-05-08T15:35:48 | 127,326,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,926 | py | from .apitestmodel import ApiTestModel
from api.common.errors import *
class ApiUserTest(ApiTestModel):
def test_getUser(self):
data = self.app_get('/user/1', 200)
self.assertInJson({'id': 1, 'username': 'test_user', 'is_anonymous': False,
'profile': self.AnyValue, 'friends': self.AnyValue, 'followers': self.A... | [
"webalorn@gmail.com"
] | webalorn@gmail.com |
455ff5dff9666f80c9e7eaee0b38a4662374dccd | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/world/spawn_point_enums.py | 5b5a3fe2f5d7fa7eef6563ac54c2964c395a9db7 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from sims4.tuning.dynamic_enum import DynamicEnum
import enum
class SpawnPointPriority(DynamicEnum):
DEFAULT = 0
class SpawnPointRequestReason(enum.Int):
DEFAULT = 0
SPAWN = 1
LEAVE = 2
| [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
86dd87934087a86d19ab8a7138f47685bed5af52 | 7e63f6ee31101cee9a2438849904d52184751461 | /parser-prob7-8.py | 2982fd5fa797cc4d7fa2a0f8969ef1ef555740a8 | [] | no_license | sockduct/CS262 | 2be6b48265163922b42cb67a76d98c66d743a82b | 3d95b80d0dfc3bed4eaa582dffa3e4936489b30b | refs/heads/master | 2021-01-19T13:36:22.030451 | 2017-02-19T01:11:03 | 2017-02-19T01:11:03 | 82,426,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,507 | py | # addtochart procedure we wrote:
def addtochart(chart, index, state):
if not state in chart[index]:
chart[index] = [state] + chart[index]
return True
else:
return False
# closure procedure we wrote:
def closure (grammar, i, x, ab, cd):
#x->ab.cd
next_states = [
(rule[0],... | [
"james.r.small@outlook.com"
] | james.r.small@outlook.com |
0f7a04fbf6951b0396d858b43cc0b856de0f0c27 | d2f91b93ad42aaefa5fc315a9b3a5d45d07fa705 | /slbman/venv/Lib/site-packages/aliyunsdkecs/request/v20140526/JoinSecurityGroupRequest.py | cd5c4cda3d2837464d0e50810c903729bcb3f883 | [] | no_license | junlongzhou5566/managePlatform | 66cb5bc5b176147ff0038819924f7efa8df1d556 | 3201ba1a11b05c86db5f42aa9ca8eaf1cc20e216 | refs/heads/master | 2021-03-29T00:58:23.337808 | 2020-03-17T09:50:21 | 2020-03-17T09:50:21 | 247,910,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | 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... | [
"645647713@qq.com@qq.com"
] | 645647713@qq.com@qq.com |
561faa9be4a167e1953b172b0d27d683aacd56cd | 311346d22b0a3b4701a7188544d4a013a128da7d | /main/backends/default/views.py | 505ed2b4fec5d4067e803c65833531530cf2a6f1 | [
"BSD-3-Clause"
] | permissive | SteerByteLtd/ambime_registration | 0f49bfb0bc54aef617b59402654ea22897f3f9ce | c4ceaacf83f08df0140f5739a1f50ed982c84eba | refs/heads/master | 2020-03-07T07:16:51.220163 | 2018-03-29T17:11:31 | 2018-03-29T17:11:31 | 127,345,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,970 | py | from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.shortcuts import render
from ... import signals
from ...models import RegistrationProfile
from ...users import UserModel
from ...views import ActivationView as BaseActivationView
from ...views import RegistrationVie... | [
"phoenix22@tutanota.com"
] | phoenix22@tutanota.com |
d723707cc1c982b55ca01a9a1212b17a5ed7e076 | 7ab41799fd38489c93282f1beb3b20e7ef8ff165 | /python/6.py | 83efacac20baeedfcf8713ed793a0b5b080627c4 | [] | no_license | scturtle/leetcode-sol | 86c4095df6b31a9fcad683f2d63669ce1691633c | e1a9ce5d9b8fe4bd11e50bd1d5ba1933de845db7 | refs/heads/master | 2020-04-23T00:01:37.016267 | 2015-11-21T04:15:27 | 2015-11-21T04:15:27 | 32,385,573 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | class Solution(object):
def convert(self, s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
if numRows < 2:
return s
res = [[] for i in xrange(numRows)]
di = 1
r = 0
for c in s:
res[r].append(c)
... | [
"scturtle@gmail.com"
] | scturtle@gmail.com |
13a7a19a84e29cd0671d7d48a9c79c6a8f95b43e | b34429fda02a863bbf2dc5920a71b477558cb291 | /hacks/Net/unbrick-server.py | 37d4f45276ce1adaa9598a422ab6c504ff70b239 | [
"MIT",
"WTFPL"
] | permissive | DustBytes/hacks | a98400d651caad2278cb14a9756cadddf722afee | c0315db7c8ae1ad7c8166a17e2b3478c5cf1c26b | refs/heads/master | 2021-01-12T04:44:27.487217 | 2016-12-24T21:33:09 | 2016-12-24T21:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | #!/usr/bin/env python3
from __future__ import print_function
import sys
"""
usage: python3 unbrick-server.py libc.so libwhatever.so | nc -vvlp 1111
"""
for fn in sys.argv[1:]:
fh = open(fn, "rb")
bad = [ord(c) for c in "'% \\\t\n"]
print(fn)
while True:
buf = fh.read(1024)
if not buf:
break
buf = [ord(c)... | [
"grawity@gmail.com"
] | grawity@gmail.com |
8d7282e3f848596cfb55a52e1bf7416713950eaa | fe2a7b36db1c30ab2491039dbdb3e5aaec75b779 | /Book/Make It 1.py | 82b7b9a39068ad79bbeeafe61812bedda91095fb | [] | no_license | arajo-hub/Algorithm-practice | 11e14d7dcae59a4e9452577a93da7ee7e8d6efc8 | 08585d424059753596b233829fccfb2ace0fa7e1 | refs/heads/master | 2023-08-12T20:03:26.468997 | 2021-09-14T14:56:29 | 2021-09-14T14:56:29 | 267,037,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | # import sys
# X=int(sys.stdin.readline())
# dp=[0]*30001
# # 매 칸을 지나면서 아래의 연산을 진행하고, 그 결과를 저장한다.
# for i in range(2, X+1):
# dp[i]=dp[i-1]+1 # i번째에는 i-1번째에 1을 더한 값이 저장된다. (2, 3, 5로 나누어지지 않아서 dp[i]의 값이 바뀌지 않을 경우)
# if i%2==0: # 만약 i가 2로 나누어진다면
# dp[i]=min(dp[i], dp[i//2]+1) # dp[i]는 i-1번째에 1을 더한 값과 i... | [
"joara9566@naver.com"
] | joara9566@naver.com |
b4baa493d7f9073153ffdccb723f4ddc3b070aa8 | 603fd8b7c15f2556adbe078a77d1d8bf9fa95942 | /client/ui/__init__.py | 0701a8b1fbddcba96dd8cf7db03eded3f8727e4a | [] | no_license | mossblaser/Thermduino | db76d8b7586b6a15521b209f632b65a4e3e71fbc | 94e2253d132edd6d1d3c8a1b74f01f8aff3dfaa1 | refs/heads/master | 2020-05-29T20:20:03.227318 | 2011-08-27T15:40:08 | 2011-08-27T15:40:08 | 1,254,780 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | #!/usr/bin/python
import wx
from ui import MainWindow as MainWindowBase
class MainWindow(MainWindowBase):
def __init__(self, *args, **kwargs):
MainWindowBase.__init__(self, *args, **kwargs)
self.Bind(wx.EVT_CLOSE, self.on_close, self)
self.set_connected(False)
timer_id = 100
self.update_timer = ... | [
"mail@jhnet.co.uk"
] | mail@jhnet.co.uk |
9bdb73024da2bb4f1eece748dfa59cc34895239e | 81492269291eaa5342d6da6db59711147a103dae | /procfindata/financial_item_algo_by_sql/capex.py | 02dd4cda07f8abbef395db6df3dfad65d73d645c | [] | no_license | wusf/quantlib2 | 3429278383384e8fb0a2088c51aebf2769154216 | 4d17709764687420a7cd3147ae0c879947aa8760 | refs/heads/master | 2020-04-06T06:53:42.694841 | 2016-09-13T14:25:52 | 2016-09-13T14:25:52 | 63,582,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | #!/usr/bin/env python
#coding:utf-8
"""
Author: wusf --<wushifan221@gmail.com>
Purpose:
Created: 2016/8/10
"""
import numpy as np
#----------------------------------------------------------------------
def calc(conn, stkcode, date, fin_quarters, company_type, result_dict):
""""""
name = __file__.spli... | [
"wushifan221@gmail.com"
] | wushifan221@gmail.com |
b79bc7d6451c81849bea51ae7f20b23d3586b760 | 24a95d894ddba080de0e47c6b70f8191d7a4acd8 | /test/ffmpeg-qsv/transcode/transcoder.py | 8edc2d2a20b4fa5978f80654383a2fd3b8caa30c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | haribommi/vaapi-fits | 5a595ef8c818782fd06bb524020a89334121c81d | cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23 | refs/heads/master | 2020-04-23T04:28:59.912278 | 2019-04-02T00:17:02 | 2019-04-02T15:31:49 | 170,909,028 | 0 | 0 | BSD-3-Clause | 2019-02-15T18:18:24 | 2019-02-15T18:18:24 | null | UTF-8 | Python | false | false | 2,699 | py | ###
### Copyright (C) 2018-2019 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
from ....lib import *
from ..util import *
import os
@slash.requires(have_ffmpeg)
@slash.requires(have_ffmpeg_qsv_accel)
class TranscoderTest(slash.Test):
def before(self):
self.refctx = []
def transcode_1to1(... | [
"ullysses.a.eoff@intel.com"
] | ullysses.a.eoff@intel.com |
c268341ea34e52705f8f1e59038109436f60ad17 | b8fa6e0a088c371b7dc69001d2ac745c960601ca | /Exercicios/secao04_variaveis_e_tipos_de_dados/exercicio24.py | 523f8ce63bf0f19ee974a2bfd700ddc6b07a49ae | [] | no_license | DanielMalheiros/geekuniversity_programacao_em_python_essencial | 45fb5265c8e0a4e8d435f8341f2b2eb23cfd3f73 | 0e4590defb2510ef71f4ce7039c29873f87d399f | refs/heads/master | 2020-08-05T20:05:04.765817 | 2019-10-09T01:20:35 | 2019-10-09T01:20:35 | 212,689,293 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | """24- Leia um valor de área em metros quadrados e apresente-o convertido em acres. A fórmula
de conversão é A = M * 0,000247, sendo M a área em metros quadrados e A a área em acres."""
m = float(input("Defina um valor em metros quadrados: "))
print(f"{m} metros quadrados equivalem a {m * 0.000247} acres.")
| [
"d.o.malheiros@gmail.com"
] | d.o.malheiros@gmail.com |
5cb3c8eb308e2fda6510c26d303a0fcef0593b3a | 61cae5477fde0064c22f9bb3164f7c602c3b2336 | /lib/pm_pycbio/sys/MultiDict.py | ff5d09ceee0f70154423a1198f67295f6bac631a | [] | no_license | maximilianh/pubMunch | e18132d3c6acc1014577c21779c49f7b6f08e792 | 99ad033be03779e9680ce8024cdd7a4bdc5a58bd | refs/heads/master | 2023-01-14T02:58:56.225069 | 2022-06-27T08:38:21 | 2022-06-27T08:38:21 | 6,130,098 | 43 | 23 | null | 2022-12-26T19:48:30 | 2012-10-08T19:45:31 | Python | UTF-8 | Python | false | false | 1,135 | py | # Copyright 2006-2012 Mark Diekhans
# FIXME: need to other dict methods.
class MultiDict(dict):
"""Dictionary which allows multiple values"""
def obtain(self, key):
"""get the values for key, creating an empty entry if key is not in
object"""
if key in self:
vals = self[k... | [
"max@soe.ucsc.edu"
] | max@soe.ucsc.edu |
7bf7595bb96d960b76f0812fb4b78a2a0ce31b7a | 4c852fab792606580acb3f3a61b7f86ae25930b0 | /Python/MIT-CompThinking/MITx600.1x/Quiz/others/problem3.py | 5afb92d85721fd5f4aa3d281bcecf79fb4cac2a2 | [] | no_license | hmchen47/Programming | a9767a78a35c0844a1366391f48b205ff1588591 | 9637e586eee5c3c751c96bfc5bc1d098ea5b331c | refs/heads/master | 2022-05-01T01:57:46.573136 | 2021-08-09T04:29:40 | 2021-08-09T04:29:40 | 118,053,509 | 2 | 1 | null | 2021-09-20T19:54:02 | 2018-01-19T00:06:04 | Python | UTF-8 | Python | false | false | 218 | py | #!/usr/bin/env python
# _*_ coding = UTF-8 _*_
def myLog(x, b):
b1 = b
i = 1
if x < b:
return 0
while b1*b <= x:
if b == 0:
return 0
i+=1
b1*= b
return i | [
"h.m.chen@ieee.org"
] | h.m.chen@ieee.org |
bd55b9dd408019d6fb7479e6c37be3d31ba46e4a | d4ca0866381e577e3d36a22735d02eb4bf817b10 | /divide_two_integers.py | 1344cf993d26ade62790ac412a2d155d416a0ae7 | [] | no_license | haiwenzhu/leetcode | e842936b69bbaf5695de1f98c8c17507819435dd | bc068c2b00793ae72439efe5bdecaeed029e9f65 | refs/heads/master | 2021-01-15T13:11:22.672952 | 2015-07-25T04:45:36 | 2015-07-25T04:45:36 | 36,838,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | class Solution:
# @return an integer
def divide(self, dividend, divisor):
res = 0
sign1 = 1 if dividend >= 0 else -1
sign2 = 1 if divisor >= 0 else -1
dividend = abs(dividend)
divisor = abs(divisor)
l1 = []
l2 = []
t1 = divisor
t... | [
"bugwhen@gmail.com"
] | bugwhen@gmail.com |
d1a432d67c39ca52da6e48e63500a9b39df5944e | 5f29a9f8b218f7b02a76af02b49f8cf5aaa8ec97 | /ecommerce/carts/models.py | 7c503fab3550469da4f2c9dd3ff2f69c280b89d9 | [] | no_license | yemiemy/Footwear-Stores | 58c026b38ffe828cef17c58365b77169ad21ce80 | 92f719824c019044aef78b2b481597b9f94405e0 | refs/heads/master | 2022-12-18T13:34:05.283709 | 2019-09-01T22:32:31 | 2019-09-01T22:32:31 | 205,739,701 | 2 | 0 | null | 2022-12-08T06:06:26 | 2019-09-01T22:31:27 | HTML | UTF-8 | Python | false | false | 1,137 | py | from django.db import models
from products.models import Product, Variation
#from orders.models import Coupon
# Create your models here.
class Cart(models.Model):
total = models.DecimalField(max_digits=100, decimal_places=2, default=0.00)
timestamp = models.DateTimeField(auto_now_add=True, auto_now=False)
updated... | [
"rasholayemi@gmail.com"
] | rasholayemi@gmail.com |
dcc7045893652029209e0a154eaeacbb2cbe3c74 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/PyAsyncCallInspection/AsyncioCorFromAsyncioCorCall/a.py | e2be236d47801803bc06af28231152fab7372322 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 269 | py | import asyncio
@asyncio.coroutine
def bar():
yield from asyncio.sleep(1)
@asyncio.coroutine
def check():
<warning descr="Coroutine 'bar' is not awaited">bar()</warning>
async def check():
<warning descr="Coroutine 'bar' is not awaited">bar()</warning> | [
"Elizaveta.Shashkova@jetbrains.com"
] | Elizaveta.Shashkova@jetbrains.com |
3777e8e22475b0183bb8fcaeef9d8c373a410ac8 | ee00ebe5e71c36b05fbff993b19e9723b963313f | /08_myAtoi.py | 2ff131251907c0275881964c388979572fdd5e2a | [] | no_license | 26XINXIN/leetcode | f365560d93604a28abf399707b333f3c11f924ec | 78ed11f34fd03e9a188c9c6cb352e883016d05d9 | refs/heads/master | 2021-06-28T16:31:45.103879 | 2020-09-19T20:33:55 | 2020-09-19T20:33:55 | 144,975,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | class Solution:
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
i = 0
num = ""
while str[i] == " ":
i ++
if str[i] == "-" or str[i] == "+":
num += str[i]
i++
while str[i].isdigit():
num ... | [
"yangxin.nlp@bytedance.com"
] | yangxin.nlp@bytedance.com |
ce7799d0fa4c457b7b510d9fb4ca46de8a2c9f6f | 084f7dd6df1f19db7da3f4cd0cf6be2fdfac3dc8 | /tensorflow_datasets/core/features/translation_feature_test.py | 7589e2f23905201634a08a75aca92fe64115a68d | [
"Apache-2.0"
] | permissive | iserralv/datasets | 8681362e099e37ec37736984a1094517bf2d25fd | 5e141892753f69cba3c4de5c3e5137991c417e1b | refs/heads/master | 2022-11-29T05:34:53.564202 | 2020-08-17T11:21:02 | 2020-08-17T11:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,600 | py | # coding=utf-8
# Copyright 2020 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
9911f3291f766fe69b588d6fa482e330e9fd6cad | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2081/60785/314858.py | e4286528553d5fa9e15b1cbc89883d1642e0aed1 | [] | 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 | 137 | py | a=input()
b=input()
print(a,b)
ans=0
for i in range(0,len(a)-len(b)+1):
print(a[i:i+3])
if a[i:i+3]==b:
ans+=1
print(ans) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5f56924b979e59e019ccc65b99955fa8c5a63110 | b683c8f1942a1ab35062620c6013b1e223c09e92 | /Python-Files/Day-18/Question-73-alternative-solution.py | 3e04af106169eaf18ff493a1c25f62e2446a51fb | [] | no_license | nihathalici/Break-The-Ice-With-Python | 601e1c0f040e02fe64103c77795deb2a5d8ff00a | ef5b9dd961e8e0802eee171f2d54cdb92f2fdbe8 | refs/heads/main | 2023-07-18T01:13:27.277935 | 2021-08-27T08:19:44 | 2021-08-27T08:19:44 | 377,414,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | """
Question 73
Question
Please write a program to randomly generate a list
with 5 even numbers between 100 and 200 inclusive.
Hints
Use random.sample() to generate a list of random values.
"""
import random
resp = random.sample(range(100, 201, 2), 5)
print(resp)
| [
"noreply@github.com"
] | nihathalici.noreply@github.com |
2a174e09006d9a512f7f11a89bcf1000667fa1c3 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/other/第一回日本最強プログラマー学生選手権_予選/b.py | 969635bdc0b954f5206d39188b5f977ecf6d85a2 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | import sys
import heapq
from operator import itemgetter
from collections import deque, defaultdict, Counter
from bisect import bisect_left, bisect_right
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
MOD = 10**9 + 7
def sol():
N, K = map(int, input().split())
A = list(map(int, input().split()))
... | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
97fe426ec3276f8710cfd19c1605bc615693c9b9 | 4038c0d371011867db6d8b2cfb8551717e4e51c5 | /init_bin/_konix_get_default_env.py | 509b9769052133ad92c864b190a93406c617581e | [] | no_license | Konubinix/Devel | 16787e453e6b95c3804f37732b139734c4946b6b | d3895b724a0590808b795f291c9b84dc09e46e48 | refs/heads/master | 2023-08-10T10:51:42.614915 | 2023-08-09T09:45:13 | 2023-08-09T09:45:13 | 2,737,382 | 10 | 2 | null | 2023-07-14T05:04:04 | 2011-11-08T21:41:35 | Emacs Lisp | UTF-8 | Python | false | false | 440 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
import re
import os
import sys
SEARCH = sys.argv[1]
PLATFORM = os.environ["WANTED_PLATFORM"]
assert(PLATFORM)
ENV_FILE = open(os.path.join(os.path.expanduser("~"), ".env_"+PLATFORM+".conf"), "r")
RES=""
for line in ENV_FILE.readlines():
match = re.match("^"+SEARCH+"=... | [
"konubinixweb@gmail.com"
] | konubinixweb@gmail.com |
e8d7bb2d3d3b5564a58ba2cc62a20536e77e3f3c | 76925e8a19a588ad0322dcd2f4ce601f95fd9792 | /python/fulltext_search.py | 85008c7e452a55fade78a07f8558c7a17c55326d | [] | no_license | phinawang/docker-flask-mongodb-example | 3394c8064f2334338c38a7bd1ca614572c6ac753 | 6be83b6521636dfab96c54b1e4903a28e7cd620b | refs/heads/master | 2020-08-18T04:27:36.359417 | 2019-10-13T19:52:38 | 2019-10-13T19:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | import os, json, datetime, time
from flask import Flask, request, Response
from flasgger import Swagger
from pymongo import MongoClient, TEXT
from bson import json_util
app = Flask(__name__)
swagger = Swagger(app)
fulltext_search = MongoClient('mongo', 27017).demo.fulltext_search
@app.route("/fulltext", methods=["... | [
"ionescu.dan84@gmail.com"
] | ionescu.dan84@gmail.com |
db472ebd800c0f5c8d7d0e2581c99747c5fe5fe2 | ae2b8cc2e76b6369d70a7a8be70cf47c8af3f6f2 | /scripts/replier.py | 6db857b280eadb133ee0018471f91fdb7bcd0064 | [] | no_license | kqf/simple-image-retrieval | d2b13fa841e997043a61a50d17d8b30db60bd962 | 7418cd271d045eaf39310c499ea6353372ee506f | refs/heads/master | 2023-08-12T14:17:11.916579 | 2021-09-24T15:18:18 | 2021-09-24T15:18:18 | 379,045,706 | 1 | 0 | null | 2021-09-24T15:18:19 | 2021-06-21T19:47:24 | Python | UTF-8 | Python | false | false | 434 | py | import logging
from telethon import events
from scripts.base import telegram
logging.basicConfig(
format='[%(levelname) 5s/%(asctime)s] %(name)s: %(message)s',
level=logging.INFO)
def main():
with telegram('test') as client:
@client.on(events.NewMessage)
async def my_replier(event):
... | [
"noreply@github.com"
] | kqf.noreply@github.com |
3c8b3b8d7a6736bc77e34da5ae5bd9e3249877f2 | aeb3a64f1b3ac79513e484a567e1c635e199a665 | /src/python/cord19q/magnitude.py | 359706c8dfde58f2df3c336131ea0bc7a6bb3975 | [
"MIT"
] | permissive | Deamoner/cord19q | 1ffb3ced3f69b106e9335d32ad708eb07bcbe5d6 | a5104881c3775823740e94026d0fe05b213b307f | refs/heads/master | 2022-07-25T06:38:23.311582 | 2020-05-03T18:40:13 | 2020-05-03T18:40:13 | 260,938,759 | 0 | 0 | MIT | 2020-05-03T14:14:16 | 2020-05-03T14:14:15 | null | UTF-8 | Python | false | false | 649 | py | """
Wrapper to load pymagnitude without unused dependencies
"""
#pylint: skip-file
import sys
class AnnoyIndex:
"""
Empty implementation
"""
class ElmoEmbedder:
"""
Empty implementation
"""
try:
import pymagnitude
except ImportError:
try:
from annoy import AnnoyIndex
exce... | [
"561939+davidmezzetti@users.noreply.github.com"
] | 561939+davidmezzetti@users.noreply.github.com |
f293a6bd47cc1e6d765b178aaf4fcc1948b57207 | 8a0e14299d8b915c0a909cf9fa9a86589dc63d76 | /python/ray/rllib/optimizers/rollout.py | d13f7c5efae7f828acac23280f7e4e8210d75dab | [
"Apache-2.0",
"MIT"
] | permissive | natashamjaques/ray | 795e4271c3c5f3e261327afea40b81ffe6f362ac | aca9dd5ee7a8fef508a5383fdd26ad8ccdcb16e4 | refs/heads/master | 2020-04-12T05:58:15.680359 | 2019-03-06T22:08:10 | 2019-03-06T22:08:10 | 162,337,948 | 3 | 2 | Apache-2.0 | 2018-12-18T19:47:02 | 2018-12-18T19:47:01 | null | UTF-8 | Python | false | false | 2,419 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import ray
from ray.rllib.evaluation.sample_batch import SampleBatch
logger = logging.getLogger(__name__)
def collect_samples(agents, sample_batch_size, num_envs_per_worker,
... | [
"rliaw@berkeley.edu"
] | rliaw@berkeley.edu |
93cce69c4424a9735917e9896f3894b0a2cf35c6 | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /W/WallsandGates.py | 46759dd91f16ae88a3fd2528a62ba459b2e4ae8f | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | '''
You are given a m x n 2D grid initialized with these three possible values.
-1 - A wall or an obstacle.
0 - A gate.
INF - Infinity means an empty room. We use the value 231 - 1 = 2147483647 to
represent INF as you may assume that the distance to a gate is less than 2147483647.
Fill each empty room with the dista... | [
"merlintiger@hotmail.com"
] | merlintiger@hotmail.com |
5e118a5ed3c156662c0ba2c37d5adfbcaf9cbd5c | 60259df62e718eeb4bc9d2d941107189803722ce | /date.py | c4d5c68a93214373b2b1eb86635de7a003d214af | [] | no_license | Ginkooo/milopython | a2a91c3cf7d6788a140e82f2ef11caadc705e986 | 264f5798c9d43524a5e15d54a6b3bc0b2fd3077f | refs/heads/master | 2021-01-19T15:09:15.538928 | 2017-04-13T20:10:46 | 2017-04-13T20:10:46 | 88,202,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | #!/usr/bin/python
import sys
from itertools import permutations
from datetime import date
def combine_date(year, month, day):
if year < 2000: year += 2000
try:
return date(year, month, day)
except:
return None
filename=sys.argv[1]
with open(filename) as f:
line = f.readline().strip()... | [
"piotr_czajka@outlook.com"
] | piotr_czajka@outlook.com |
12bbda915a5b9355430e171b5eaccc873a61bdea | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/iotbx/command_line/detector_image_as_png.py | ced5253e4e84478cd40fc2edb6656251f39dec11 | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 2,489 | py | # LIBTBX_SET_DISPATCHER_NAME labelit.png
from __future__ import absolute_import, division, print_function
from libtbx.utils import Sorry, Usage
from six.moves import cStringIO as StringIO
import os
import sys
usage_message ="""\
labelit.png file_name [output_file] [bin=1|2]
Convert an X-ray detector image to PNG f... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
00c4a6557628bc3315e48baeecb413b990daa828 | a359a58aa63cb4e646022d099dd81d96c38c05fc | /Web开发/02_web_django/learning_log/learning_logs/forms.py | b9f64590a04b858253af755d2399872669ab4fdf | [] | no_license | YuanXianguo/Python-IT-Heima | 5c5a25c69e97e0de352a4dc6bb3bad6800c1cd3f | 96ed9be42ba487c065b5ea1783555b053f051586 | refs/heads/master | 2020-05-02T17:24:35.978117 | 2019-12-20T02:28:40 | 2019-12-20T02:28:40 | 178,097,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | from django import forms
from .models import Topic, Entry
class TopicForm(forms.ModelForm):
class Meta:
"""告诉Django根据哪个模型创建表单,以及在表单中包含哪些字段"""
model = Topic # 根据模型Topic创建一个表单
fields = ['text'] # 该表单只包含字段text
labels = {'text': ''} # 不要为字段text生成标签
class EntryForm(forms.ModelFor... | [
"736913978@qq.com"
] | 736913978@qq.com |
4c8d0f6f85cda26f03dcd35aeedce5fab1deed41 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_geysers.py | edcac55bdefa4dfaebd9479b639a85dcbfd8e416 | [
"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 | 222 | py |
#calss header
class _GEYSERS():
def __init__(self,):
self.name = "GEYSERS"
self.definitions = geyser
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['geyser']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e0afe45c073cb1c87843907e8b5cb97dd5e130c5 | b15e4c38b0aa90ba0469b4566516b27210631474 | /assign_ex/csfrall ass/frth/huff.py | f15b9273c25288ebba7e7777457077ba3327bf1a | [] | no_license | raveena17/belowex | 5aa2955a6eab13bf0fe35d63d8fd6c5cb2d6f934 | 2ec312650b1104953b7bfbf718df57c6a19005d7 | refs/heads/master | 2022-12-16T09:46:39.915500 | 2018-05-18T12:16:46 | 2018-05-18T12:16:46 | 133,943,195 | 0 | 0 | null | 2022-12-07T23:50:31 | 2018-05-18T11:02:40 | JavaScript | UTF-8 | Python | false | false | 147 | py | '''if _ name_== "_main_":
main()'''
def mn(filename):
handle = open("cmnd.txt", "r")
handle.close()
print mn('cmnd.txt')
| [
"raveena@5gindia.net"
] | raveena@5gindia.net |
e1826ea5fd011a8fd7727a3c51d1fa448c816c73 | 1591431275ce2aa5f08cd54b2683b184f344c916 | /mylove_31805/wsgi.py | 96c26859864028f415eaa4c297005b4da46b3c80 | [] | no_license | crowdbotics-apps/mylove-31805 | fd8e43939e27731be23264bbc7959708a9a91d1d | d96df3fc378dccd8581501098e1d184e26b8b0e0 | refs/heads/master | 2023-09-02T08:48:55.034532 | 2021-11-02T13:01:55 | 2021-11-02T13:01:55 | 423,845,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for mylove_31805 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
531922f9727e84bc5bb5690a2fd5465b3871697d | 9848a719ddfdd21b5fe1fa2f55da290c0f6952dc | /majority-element.py | c306de51c876ada438b50cf52ef90fa83b851835 | [] | no_license | maomao905/algo | 725f7fe27bb13e08049693765e4814b98fb0065a | 84b35ec9a4e4319b29eb5f0f226543c9f3f47630 | refs/heads/master | 2023-03-13T12:38:55.401373 | 2021-03-25T01:55:48 | 2021-03-25T01:55:48 | 351,278,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from typing import List
from collections import Counter
class Solution:
def majorityElement(self, nums: List[int]) -> int:
cnt = Counter(nums)
return max(cnt, key=cnt.get)
s = Solution()
print(s.majorityElement([3,2,3]))
| [
"maoya.sato@gmail.com"
] | maoya.sato@gmail.com |
351196bd07a2b901825c8f0fb73c6478db5bf57f | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/iv/models/ViJobSummary.py | 1d8858953434fc15e174902b1b6112a11438ce78 | [
"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 | 1,718 | 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 ... | [
"tancong@jd.com"
] | tancong@jd.com |
415f170aceb5d3709c6a9503f354153ee6d4d9f1 | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/scrapy/downloadermiddlewares/decompression.py | be300b7b614e36d0cde5579a70c4106f38f8d3ba | [] | no_license | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | """ This module implements the DecompressionMiddleware which tries to recognise
and extract the potentially compressed responses that may arrive.
"""
import bz2
import gzip
import logging
import tarfile
import zipfile
from io import BytesIO
from tempfile import mktemp
from scrapy.responsetypes import resp... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
73149947a5e008f941d6a32fed13420a6d8e6f12 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Autodesk/Revit/UI/__init___parts/IControllableDropHandler.py | cefcd497f816bef626d89a089607412264137fda | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | class IControllableDropHandler(IDropHandler):
"""
An interface to be executed when custom data is dragged and dropped onto the Revit user interface.
This interface is different from IDropHandler in that it allows the handler to verify whether the drop event can be executed on the given view.
"""
def CanExecute... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
c444bcec4f3aea2e7d55c3633e02c4992886fcab | 3b9bf497cd29cea9c24462e0411fa8adbfa6ba60 | /leetcode/30-day-challenge/April_2020/13-Contiguous-Array.py | 268060268e2e7a3bbb0f075ddd4b9849fd982f65 | [] | no_license | niteesh2268/coding-prepation | 918823cb7f4965bec096ec476c639a06a9dd9692 | 19be0766f6b9c298fb32754f66416f79567843c1 | refs/heads/master | 2023-01-02T05:30:59.662890 | 2020-10-17T13:12:34 | 2020-10-17T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | class Solution:
def findMaxLength(self, nums: List[int]) -> int:
answer = 0
count = 0
valFound = [-2]*(len(nums)+1)
valFound[0] = -1
for i in range(len(nums)):
if nums[i] == 1:
count += 1
else:
count -= 1
... | [
"akulajayaprakash@gmail.com"
] | akulajayaprakash@gmail.com |
f85af6fb87bd4f5040930ea409d175540a671bc8 | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/fdtd-2d/tmp_files/942.py | d59341d21ffc1b6c3a748f23da465e8a1186601b | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/942.c')
procedure('kernel_fdtd_2d')
loop(0)
known(' nx > 1 ')
known(' ny > 1 ')
til... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
dc3f95e9aa24e0a6ffa0479ce4c14f7998af5740 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/InnerDetector/InDetExample/InDetAlignExample/ErrorScaling/run_RecEx.py | 876314fc56049edc9969abe31f242587c28519d1 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,190 | py | #!/usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
#This is a python script, not an athena jobOptions file
# Ravi Shekhar <ravi.shekhar@duke.edu>
# This script runs multiple batch jobOptions files and combines at the end
import os, os.path
from subprocess import Popen
d... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
5f657b64625ddd06d34460f8be9014cf03bc170d | f7cdc8a8d07691d790bd927301ff4a619615362c | /urls.py | 6f3d5f21d47f8289527d26d084b0a8817163407d | [] | no_license | yunin7/akar | fdf6505152ecb079a17542188dbdecfce2b13c9c | 47e5ae33943d6619c182f02bfccbf85bb8d84ac2 | refs/heads/master | 2016-09-07T18:33:17.308059 | 2011-10-12T15:13:32 | 2011-10-12T15:13:32 | 1,752,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | from django.conf.urls.defaults import *
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^properties/', include('apps.realty.urls')),
(r'^blog/', include('apps.blog.urls')),
(r'^news/', include('apps.... | [
"va.bolshakov@gmail.com"
] | va.bolshakov@gmail.com |
d463a8486ec50e63a56df4fc6ea70b8c542460b3 | 4cadb7957112166c55ebde7c604900bf16bab22e | /apps/shelves/migrations/0002_tag.py | 377d114001f3fd3f74f6ccb782a0f86b86cae168 | [] | no_license | royarzun/bookshelf-django | e1f178e4a0908ccfc7e73a8ace1f4477300b1480 | 5ecd9adbc5c1e971782da5d968b5479f77b5ea08 | refs/heads/develop | 2022-05-17T02:48:03.306235 | 2020-03-05T15:22:27 | 2020-03-05T15:22:27 | 216,287,858 | 1 | 1 | null | 2022-04-22T22:30:43 | 2019-10-20T00:37:47 | Python | UTF-8 | Python | false | false | 512 | py | # Generated by Django 2.2.6 on 2019-10-20 01:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shelves', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
('id', mode... | [
"royarzun@gmail.com"
] | royarzun@gmail.com |
890ad7f866e127e40120c6dd187dff1f33ca182a | 632d417159013940d612f7364c2a7c5c88b52a56 | /esign_env/bin/wheel | c14c3c5e6570105168a3872ae92a7bf1a79299ee | [] | no_license | cityking/esign | e553d6197f383fab0435dec5805f140592e2fdfc | f88279e3b7f5800bd5ad3a0bd95ebf494078da4c | refs/heads/master | 2022-11-02T20:12:54.927931 | 2018-02-09T03:02:37 | 2018-02-09T03:02:37 | 120,849,522 | 0 | 0 | null | 2022-10-20T20:28:59 | 2018-02-09T03:07:20 | Python | UTF-8 | Python | false | false | 263 | #!/Users/cityking/workspace/company/crowdy_funding_env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"cityking@citykingdeMacBook-Air.local"
] | cityking@citykingdeMacBook-Air.local | |
2fc893fff55b57a9fd29de89961e779aebd92cd7 | d44b67c55baa9fe6045ff947407eec04519dbebf | /rlpyt/experiments/scripts/mujoco/qpg/launch/pabti/launch_mujoco_ddpg_td3_sac_serial.py | 9f7ba39e56864822c4fea835609c7ae7dfc5f9ea | [
"MIT"
] | permissive | zizai/rlpyt | e9ce863837473dab7540099d2ad399ff7729ff05 | 85d4e018a919118c6e42fac3e897aa346d84b9c5 | refs/heads/master | 2022-09-12T03:26:30.497037 | 2020-05-21T02:20:44 | 2020-05-21T02:20:44 | 266,970,605 | 1 | 0 | MIT | 2020-05-26T07:11:24 | 2020-05-26T07:11:24 | null | UTF-8 | Python | false | false | 1,827 | py |
from rlpyt.utils.launching.affinity import encode_affinity
from rlpyt.utils.launching.exp_launcher import run_experiments
from rlpyt.utils.launching.variant import make_variants, VariantLevel
affinity_code = encode_affinity(
n_cpu_core=16,
n_gpu=8,
contexts_per_gpu=2,
hyperthread_offset=24,
n_sock... | [
"adam.stooke@gmail.com"
] | adam.stooke@gmail.com |
06c7c49175e0684f222ebee1da044e0c22bced45 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/18114016.py | 51ed5870745f7dddbbd3cb7b5c085fa071d0a886 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/18114016.py generated: Wed, 25 Jan 2017 15:25:35
#
# Event Type: 18114016
#
# ASCII decay Descriptor: Upsilon(2S) -> (Upsilon(1S) -> mu+ mu-) pi+ pi-
#
from Gaudi.Configuration import *
importOptions( "$DECFILESROOT/options/Upsilon.py" )
from Configura... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
61134a86fed95b84be6f3d6598663677e886254d | e1ee8e7c4e92fef77277cbd0c19079ddd769069e | /docs/runtimes/Python27/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py | 1706a603366fb2716b598439cf7577308da0cd68 | [] | no_license | van7hu/fanca | 3c278f0ea0855eb2f0f7a7394788088e7e1c1ad2 | a8864116246bcfe2d517c48831d38e02f107e534 | refs/heads/master | 2021-01-10T02:04:04.361617 | 2015-10-18T15:34:34 | 2015-10-18T15:34:34 | 43,810,422 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,080 | py | # vss.py -- Source Control using Microsoft VSS.
# Provides routines for checking files out of VSS.
#
# Uses an INI file very similar to how VB integrates with VSS - even
# as far as using the same name.
# The file must be named "Mssccprj.scc", and be in the format of
# an INI file. This file may be in a pare... | [
"van7hu@gmail.com"
] | van7hu@gmail.com |
c5d9c84a8422b2b0eac751215c3958cf051fafe0 | 0032d988541e85c47b5034c20ecf88220dde5a95 | /openbook_notifications/validators.py | 426f9872da242865d84078703ff9293a39a114a2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | OkunaOrg/okuna-api | eabd37fef9d2be59b590ed8d72bee084ac377997 | f87d8e80d2f182c01dbce68155ded0078ee707e4 | refs/heads/master | 2022-02-04T21:31:10.577601 | 2021-12-28T18:20:39 | 2021-12-28T18:20:39 | 151,052,951 | 185 | 92 | MIT | 2022-01-13T01:00:40 | 2018-10-01T07:44:46 | Python | UTF-8 | Python | false | false | 385 | py | from rest_framework.exceptions import ValidationError
from openbook_notifications.models import Notification
from django.utils.translation import gettext_lazy as _
def notification_id_exists(notification_id):
if not Notification.objects.filter(pk=notification_id).exists():
raise ValidationError(
... | [
"joel@open-book.org"
] | joel@open-book.org |
74111a2b28c4e8c898ff929f0cf2895c51d0e20c | 6b9c416955178cf3234b19f8299fea32c299b689 | /lisa/show_segmentation.py | 77824bc08406271012b9a313cadb7d7b24a482ad | [
"BSD-3-Clause"
] | permissive | Trineon/lisa | 8b16b962c07fbbd0f7b25a026ea3ceff999e4f76 | cff559ba7a6f75bc18f603e364f9b3ece8cc03d0 | refs/heads/master | 2021-01-13T11:58:07.117683 | 2015-06-30T07:38:44 | 2015-06-30T07:38:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Module is used for visualization of segmentation stored in pkl file.
"""
import sys
import os.path
path_to_script = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(path_to_script, "../extern/dicom2fem/src"))
import logging
logger = logging.getLogge... | [
"miroslav.jirik@gmail.com"
] | miroslav.jirik@gmail.com |
6be490614bc532e3e17ad5e482dc419d73709281 | 52a09ab0cb779921298effc22f6ed8e3d1ef4d97 | /DataReboot/INSTconfig_GUI/INSTconfig_GUI.py | 94fa788a563890af0dcc0c7c6c6341b892806d09 | [] | no_license | mclaughlin6464/DataReboot | b92f2f33ec91ebb4cf2352c879039625d060a13c | 645fad2f99557525478c67c40d1b8a96b5b63d4c | refs/heads/master | 2021-01-22T03:54:39.520783 | 2014-01-07T23:46:45 | 2014-01-07T23:46:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,941 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'uiFiles/INSTconfig_GUI.ui'
#
# Created: Mon Jul 01 16:07:35 2013
# by: PyQt4 UI code generator 4.9.5
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8... | [
"mclaughlin6464@gmail.com"
] | mclaughlin6464@gmail.com |
ccfdd05facf52280f21f50241c91c12ad396c79b | 3c8e70f66d91a0e51db1dae108facf36f42446ac | /bip_utils/addr/xlm_addr.py | 2377dda1cdae011e0e01e499310a5ea1169ec39d | [
"MIT"
] | permissive | crazyguy42781/bip_utils | 8db7f0a90e059c6f6fb0d8b5fc9e58d2b1702271 | 2939a2e8518342e3a086501b27fadd451990baa0 | refs/heads/master | 2023-08-30T17:13:29.603963 | 2021-11-12T21:24:37 | 2021-11-12T21:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | # Copyright (c) 2021 Emanuele Bellocchia
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | [
"54482000+ebellocchia@users.noreply.github.com"
] | 54482000+ebellocchia@users.noreply.github.com |
69a0f701cffac6a48340875b657d27743a633897 | 583fdb9f37dea28ada24e335f1e44ba6cf587770 | /728 自除数.py | 782253b24f2f52db8ca24b1b93edd1814a0c604d | [] | no_license | Ford-z/LeetCode | 8c4c30eeaa3d8f02b24c8d0058c60f09c3a6debe | 88eeca3780b4dc77efce4f14d317ed1c872cf650 | refs/heads/master | 2021-11-21T00:51:05.314084 | 2021-09-16T15:45:18 | 2021-09-16T15:45:18 | 194,425,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | #自除数 是指可以被它包含的每一位数除尽的数。
#例如,128 是一个自除数,因为 128 % 1 == 0,128 % 2 == 0,128 % 8 == 0。
#还有,自除数不允许包含 0 。
#给定上边界和下边界数字,输出一个列表,列表的元素是边界(含边界)内所有的自除数。
#来源:力扣(LeetCode)
#链接:https://leetcode-cn.com/problems/self-dividing-numbers
#著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
class Solution:
def selfDividingNumbers(self, left: int, ri... | [
"noreply@github.com"
] | Ford-z.noreply@github.com |
60017e558b0389918432fb8df5da876738788093 | 31b3cc2b504e41f7f2f8fc74bcb7a6dff23600b0 | /tests/util/test_collections.py | bdc6ec1eb6cc747a19f7438c183e8d74617249df | [
"Apache-2.0"
] | permissive | oagbaneje/bonobo | 905a15c31a660d477eec34481e1566b112bed392 | 43ed9ad154a40ca8623018542a6c7d888ca7e20a | refs/heads/master | 2020-03-24T10:47:59.387178 | 2018-07-29T15:08:45 | 2018-07-29T15:08:45 | 142,667,851 | 0 | 0 | Apache-2.0 | 2018-07-28T10:18:21 | 2018-07-28T10:18:21 | null | UTF-8 | Python | false | false | 720 | py | import pytest
from bonobo.util import sortedlist, ensure_tuple
from bonobo.util.collections import tuplize, cast
def test_sortedlist():
l = sortedlist()
l.insort(2)
l.insort(1)
l.insort(3)
l.insort(2)
assert l == [1, 2, 2, 3]
def test_ensure_tuple():
assert ensure_tuple('a') == ('a', )
... | [
"romain@dorgueil.net"
] | romain@dorgueil.net |
030fb8aebfee3c7fcb123b64ba6a7c43c3411622 | fdce456e2f0ea12f854e98583cfda95955b9a36b | /seekerbuilder/migrations/0019_experiencedetail_total_years.py | 115b76a0e40efaa43cc1f6ea758f2f4012264126 | [] | no_license | atifasr/jobportal | e5fdc8058759311e8d4ca2c0291066ad86059fb6 | 3fe211598daa66f2a76c2b3d4d26d73459ac7457 | refs/heads/master | 2023-08-05T02:01:00.870360 | 2021-09-29T11:59:29 | 2021-09-29T11:59:29 | 388,807,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.2.5 on 2021-09-27 03:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('seekerbuilder', '0018_auto_20210919_1456'),
]
operations = [
migrations.AddField(
model_name='experiencedetail',
nam... | [
"atifshafi63@gmail.com"
] | atifshafi63@gmail.com |
d3cc9ef3d04904288ad839f9654269922352eafa | f45d7abfebb092a056beb0421f51350d34f05665 | /6ku_find_the_parity_outlier.py | b23e0ffae89fadc1f7854c751eacd9a2659d379b | [] | no_license | Silocean/Codewars | c291873df5f3d8b19caaa66584cb502e812bd15b | 0739d02e569cd4e11d04d6dc1eee819d6b50bd87 | refs/heads/master | 2021-01-10T22:29:50.914470 | 2016-10-12T08:25:11 | 2016-10-12T08:25:11 | 70,401,675 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | '''
Description:
You are given an array (which will have a length of at least 3, but could be very large) containing integers. The array is either entirely comprised of odd integers or entirely comprised of even integers except for a single integer N. Write a method that takes the array as an argument and returns N.
... | [
"silenceocean@live.com"
] | silenceocean@live.com |
fa92c5a06481849783f33acc12a62c31571a6361 | f6de7cd0046e1e93f8c38d1944348d1e5dcd86b2 | /apps/user_operation/migrations/0002_auto_20181125_1229.py | a57fb63a1d42cef935c58f302253b31f1108d29b | [
"MIT"
] | permissive | GITliyanfeng/vue-djang-shop | c6df252a6d51f49d3e3428ad57127b3ff891a359 | a49d75eb74914deffcff6cf594d416d284e64b01 | refs/heads/master | 2022-12-09T09:34:55.297359 | 2019-03-16T06:33:10 | 2019-03-16T06:33:10 | 175,935,270 | 1 | 0 | MIT | 2022-12-08T01:21:47 | 2019-03-16T06:30:54 | null | UTF-8 | Python | false | false | 1,420 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-25 12:29
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user_... | [
"957012567@qq.com"
] | 957012567@qq.com |
8c49a79d009cdca02a27e80f6131e7a2c0f038e1 | 90f26134ccf4f36ebf6ecdf456d4e102d65bf615 | /runsystem_s101.py | 58592dda3291d43406c4726775bf54dd6ef681cb | [] | no_license | hasakura511/ML-TSDP | d3f133df094ede8d6ccea42a98c6b5a2f6a52520 | 01138b86caf14d8c52350a9031a05a1fc9dde501 | refs/heads/master | 2023-05-01T20:46:58.459884 | 2017-12-11T12:46:58 | 2017-12-11T12:46:58 | 52,503,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,693 | py | import socket
import select
import sys
import pytz
from pytz import timezone
from datetime import datetime as dt
from tzlocal import get_localzone
import subprocess
import json
import time
from pandas.io.json import json_normalize
import pandas as pd
import threading
from btapi.get_signal import get_v1signal
from bt... | [
"yuukifushimi@gmail.com"
] | yuukifushimi@gmail.com |
0e1e78d9b3884e8054308a5edf0471a557ffb172 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep010_relu/Gather2_W_fixGood_C_change/ep0_test/pyr_0s/L8/step09_0side_L8.py | 1113ffd5668fefea1936ed76480e07c111d19e68 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | #############################################################################################################################################################################################################
from step08_c_use_G_generate_I_w_M_to_Wx_Wy_Wz_focus_to_Cx_Cy_focus_combine import I_w_M_to_W_to_C
from step08_b_u... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
c6e48680ceb6505e21c93d031c02cf063538cf00 | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderBeginnerContest/1XX/114/D.py | 4f4d2104bfb28cdf65a1c2ad9aabe8c13a813152 | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 1,581 | py | # import sys
# sys.setrecursionlimit(10 ** 6)
# import bisect
# from collections import deque
def prime_factorization(x):
"""素因数分解"""
import math
re = []
i = 2
while x != 1:
if x % i == 0:
re.append(i)
x //= i
else:
i += 1
if i > math.... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
caba582a6752fdfaa39b9ef227b4ad0359223cba | 16385e10f6ad05b8147517daf2f40dbdda02617c | /site-packages/cs.bomcreator-15.2.1.7-py2.7.egg/cs/vp/bomcreator/assemblycomponentoccurrence.py | 8d1d912b63f63bc207c5fb563e864625843e1ad0 | [] | no_license | prachipainuly-rbei/devops-poc | 308d6cab02c14ffd23a0998ff88d9ed0420f513a | 6bc932c67bc8d93b873838ae6d9fb8d33c72234d | refs/heads/master | 2020-04-18T01:26:10.152844 | 2019-02-01T12:25:19 | 2019-02-01T12:25:19 | 167,118,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | #!/usr/bin/env python
# -*- python -*- coding: iso-8859-1 -*-
#
# Copyright (C) 1990 - 2013 CONTACT Software GmbH
# All rights reserved.
# http://www.contact.de/
#
from cdb.classbody import classbody
from cdb.objects import Object, Reference_N
from cs.vp.bom import AssemblyComponent
class AssemblyComponentOccurrence... | [
"PPR4COB@rbeigcn.com"
] | PPR4COB@rbeigcn.com |
4106e7e15c27cc6f18924ae924dccdbbe926b002 | d55f8836d27dcbe56ce62623f1a69f33c0fd950d | /UpWork_Projects/Will Farell_Spiders/cumberlandCityCouncil/cumberlandCityCouncil/pipelines.py | a06e823fe6c3e04fdc1f7ad71b6a9273eea6c0a3 | [
"MIT"
] | permissive | SurendraTamang/Web-Scrapping | f12f0f8fcb4b6186ecab38c8036181e4d1560bed | 2bb60cce9010b4b68f5c11bf295940832bb5df50 | refs/heads/master | 2022-11-11T10:32:31.405058 | 2020-06-17T19:34:33 | 2020-06-17T19:34:33 | 273,258,179 | 0 | 1 | null | 2020-06-18T14:20:43 | 2020-06-18T14:20:42 | null | UTF-8 | Python | false | false | 295 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class CumberlandcitycouncilPipeline:
def process_item(self, item, spider):
return item
| [
"p.byom26@gmail.com"
] | p.byom26@gmail.com |
8d60e74be87c30a1c98084b9751e345edf9a4569 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/import_live_data_api_definitions_v2_request_body.py | 392c13bbe6392b3e7984321e7c0d3144803d746f | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,207 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ImportLiveDataApiDefinitionsV2RequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
1a83d678cd2308c73de1c06ffe4b4e1fd00b1ac2 | fc973b923de05c96eefbdcceeaa86c1e9d5f55b9 | /setup.py | 014cff68febc9ed05802ffd1fac653ed1f5df4ff | [
"MIT"
] | permissive | lorentzenchr/sk_encoder_cv | 913fc603a9a1bf2268665399837c176a0dd8842b | 981cc1ee7c3317c1f9e45e553a33d3f440b1cafa | refs/heads/main | 2023-02-13T16:12:03.605848 | 2021-01-04T02:04:14 | 2021-01-04T02:04:14 | 326,653,768 | 0 | 0 | MIT | 2021-01-04T10:54:09 | 2021-01-04T10:54:08 | null | UTF-8 | Python | false | false | 363 | py | from setuptools import setup
from setuptools import find_packages
setup(
name="sk_encoder_cv",
version="0.0.1",
author="Thomas J. Fan",
packages=find_packages("sk_encoder_cv"),
install_requires=[
"pandas==1.2.0",
"scikit-learn==0.24.0",
"pytest==6.2.1",
"category-enc... | [
"thomasjpfan@gmail.com"
] | thomasjpfan@gmail.com |
02665c3b70145e4f4f555beabc4b58e98ea3823a | 3d4ee6d45aeea45a871a906319c87a37e58ab6e0 | /google/auth/api_key.py | 4fdf7f2769ca8d66f94e27d384c72018c5018e71 | [
"Apache-2.0"
] | permissive | googleapis/google-auth-library-python | f004e920fa60b48c422f330f3a139d09d11caa12 | 7d453dc6408b908e24312a7bd3dc380ad43220be | refs/heads/main | 2023-09-04T08:59:25.209079 | 2023-08-31T21:38:16 | 2023-08-31T21:38:16 | 69,199,387 | 530 | 304 | Apache-2.0 | 2023-09-11T18:55:45 | 2016-09-26T00:38:59 | Python | UTF-8 | Python | false | false | 2,583 | py | # Copyright 2022 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 agreed to in writing, ... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
59aafba042768d32ce2d7632bf917399f5741855 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/opcodes/cases/test_concat_list_83.py | d5211bdc08dd8bb359505b109c1eec284130e4ec | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 856 | py | from unittest import TestCase
from tests import abspath
from pytezos.repl.interpreter import Interpreter
from pytezos.michelson.converter import michelson_to_micheline
from pytezos.repl.parser import parse_expression
class OpcodeTestconcat_list_83(TestCase):
def setUp(self):
self.maxDiff = None
... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
aebd88e2014122c04d30b6aeec78a864be62a59d | 0b06cfba4d3670dfa7bda5345bec3bba82b465bb | /prysm/propagation.py | 88274c4fd7b0044bf4717a2ff233bf94c56452ce | [
"MIT"
] | permissive | chllym/prysm | f570151783cd613af4fddc3ca4a5d207deac23ee | 579dfc0ae58fab5e396a13613da7f87d2484f083 | refs/heads/master | 2020-04-01T01:56:33.808037 | 2018-09-09T00:48:46 | 2018-09-09T00:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py | """Numerical optical propagation."""
from .fttools import pad2d
from prysm import mathops as m
def prop_pupil_plane_to_psf_plane(wavefunction, Q, norm=None):
"""Propagate a pupil plane to a PSF plane and compute the grid along which the PSF exists.
Parameters
----------
wavefunction : `numpy.ndarray... | [
"brandondube@gmail.com"
] | brandondube@gmail.com |
1b50f714f013abc4586025e90ea026961aa0f1e2 | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /otp/level/ZoneEntityAI.py | 627079a41668b3a2a586875fb7bf64ea8a830e92 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 448 | py | # File: o (Python 2.4)
import ZoneEntityBase
class ZoneEntityAI(ZoneEntityBase.ZoneEntityBase):
def __init__(self, level, entId):
ZoneEntityBase.ZoneEntityBase.__init__(self, level, entId)
self.setZoneId(self.level.air.allocateZone())
def destroy(self):
if not self.isUberZon... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
26e39d203faa1ff8717802106941db67441c9c05 | f1cb02057956e12c352a8df4ad935d56cb2426d5 | /LeetCode/2003. Smallest Missing Genetic Value in Each Subtree/Solution.py | 5828c9b3678dbdee6dd251f73eaf875d9a57bc72 | [] | no_license | nhatsmrt/AlgorithmPractice | 191a6d816d98342d723e2ab740e9a7ac7beac4ac | f27ba208b97ed2d92b4c059848cc60f6b90ce75e | refs/heads/master | 2023-06-10T18:28:45.876046 | 2023-05-26T07:46:42 | 2023-05-26T07:47:10 | 147,932,664 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | class ComplementSet:
def __init__(self, max_val: int):
self.max_val = max_val
self.missing = list(range(max_val, 0, -1))
self.added = set()
def add(self, value):
self.added.add(value)
def get_mex(self):
while self.missing and self.missing[-1] in self.added:
... | [
"nphamcs@gmail.com"
] | nphamcs@gmail.com |
0ea84a5f3ad8f730e9e2521b22647fdb09f258d3 | d55f3f715c00bcbd60badb3a31696a1a629600e2 | /teacher/15/blog/page/views.py | d1ccd6850caa3b1f3c208adc1f9860c21d44d7ea | [] | no_license | zdimon/wezom-python-course | ea0adaa54444f6deaca81ce54ee8334297f2cd1a | 5b87892102e4eb77a4c12924d2d71716b9cce721 | refs/heads/master | 2023-01-29T02:22:54.220880 | 2020-12-05T11:27:48 | 2020-12-05T11:27:48 | 302,864,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from django.shortcuts import render
from page.models import Page
def index(request):
page = Page.objects.get(id=1)
return render(request,'page_detail.html', {'page': page})
def page_detail(request,pagename):
page = Page.objects.get(alias=pagename)
return render(request,'page_detail.html', {'page': p... | [
"zdimon77@gmail.com"
] | zdimon77@gmail.com |
630b93465b4fb49f379806dee7c3edd4778b8db7 | 83b244ee1bc86fbaaba341cb871d86794d0361eb | /tests/test_basesearchconfig.py | 04d0adcbf7250ef160ac8acf272b59486dd6866a | [] | no_license | FidelityInternational/djangocms-internalsearch | fce40ebb09a1325a9ce2430fd19cbf3912be9ed8 | 8483fccd7cc6eeb24413babae0b2eb84ab187bc6 | refs/heads/master | 2020-03-21T05:41:09.395158 | 2019-01-08T16:50:59 | 2019-01-08T16:50:59 | 138,173,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | from unittest.mock import Mock
from django.apps import apps
from cms import app_registration
from cms.utils.setup import setup_cms_apps
from djangocms_internalsearch.base import BaseSearchConfig
from .utils import TestCase
class TestModelConfig(BaseSearchConfig):
pass
class InternalSearchInvalidConfigTestCa... | [
"commonzenpython@gmail.com"
] | commonzenpython@gmail.com |
64398e4130f8129f2382098a150de14a6f2b1fb7 | 16385e10f6ad05b8147517daf2f40dbdda02617c | /site-packages/cs.web-15.3.0.6-py2.7.egg/cs/web/components/about/main.py | 60ef4cedb5a1371a8e2e9312cbe62c5b590dee51 | [] | no_license | prachipainuly-rbei/devops-poc | 308d6cab02c14ffd23a0998ff88d9ed0420f513a | 6bc932c67bc8d93b873838ae6d9fb8d33c72234d | refs/heads/master | 2020-04-18T01:26:10.152844 | 2019-02-01T12:25:19 | 2019-02-01T12:25:19 | 167,118,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | # -*- mode: python; coding: utf-8 -*-
#
# Copyright (C) 1990 - 2016 CONTACT Software GmbH
# All rights reserved.
# http://www.contact.de/
import os
from cdb import auth, i18n
from cdb.sqlapi import RecordSet2
from cdb.wsgi import util as wsgi_util, messages
from cdbwrapc import (
getApplicationName,
getBrande... | [
"PPR4COB@rbeigcn.com"
] | PPR4COB@rbeigcn.com |
c62bff23333425331bb162f5addef15984c2e7f2 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.WAR/Sans_12/pdf_to_json_test_Latn.WAR_Sans_12.py | 45b6278e5cffa05ecfebddadbbc0db872ad0bdce | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.WAR/Sans_12/udhr_Latn.WAR_Sans_12.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
c2a5b7b22ec35f292d77d2a78c872898c2c7c2d3 | 9d81d0484cd0954abb1a83079904e65c850f88e6 | /visualization/LocalPolynomialRegression.py | ef27424ee085ec0054a9a859b9123a0b84cb6763 | [
"MIT"
] | permissive | GPrathap/OpenBCIPython | 802db7e1591769e7f3e3ca1f347bf78083d7579f | 0f5be167fb09d31c15885003eeafec8cdc08dbfa | refs/heads/master | 2021-09-04T01:12:04.106419 | 2018-01-13T21:52:49 | 2018-01-13T21:52:49 | 82,319,921 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,458 | py | from py_qt import bootstrap as bs
import matplotlib.pyplot as plt
from py_qt import npr_methods
import numpy as np
from py_qt import nonparam_regression as smooth
from py_qt import plot_fit
import tensorflow as tf
import requests
def f(x):
return 3*np.cos(x/2) + x**2/5 + 3
xs = np.random.rand(200) * 10
ys = f(x... | [
"ggeesara@gmail.com"
] | ggeesara@gmail.com |
c598376ec4631c23ad8360a430b42bfc9ceec8f8 | 501f265dd5ffa0aa446368cfa3624d27369669dd | /toxic_docs_insight/flask/app/venv/bin/fetch_file | 8d89f698e2ad1d0b0b7c521f2e82b9829021796c | [] | no_license | EsztiS/EsztiS.github.io | 1197aa39d1c169f92366c27fa40e2bd41afd8954 | cb8718cd04797a63b93ca1e41fbbe9b9861b7bd6 | refs/heads/master | 2021-01-17T06:09:44.543886 | 2019-02-11T12:04:19 | 2019-02-11T12:04:19 | 36,742,563 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | #!/Users/eszti/Documents/EsztiS.github.io/toxic_docs_insight/flask/app/venv/bin/python2.7
# Copyright (c) 2009 Chris Moyer http://coredumped.org
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Softw... | [
"eszti@eszti.local"
] | eszti@eszti.local | |
aa8bb478317e327384832c145f7ae0ed6dea7a83 | c8d7c4ba5e949b0af2f5aa234c3ae594b1a49950 | /Python接口自动化/auto_test_old/common/scripts/temp_file/RolePermissionUpdateObj.py | 73682efcc71b0552e6bd0eaa596020943775b1ca | [] | no_license | chase001/chase_learning | 00b7396a6775fb6e2fd80950f8acf3f1737b162e | c5ee2473e49923c781212eb3f9f50341c0bc80c8 | refs/heads/master | 2022-12-12T00:08:08.407671 | 2020-03-06T14:17:39 | 2020-03-06T14:17:39 | 221,268,073 | 0 | 0 | null | 2022-12-08T05:26:49 | 2019-11-12T16:56:34 | Python | UTF-8 | Python | false | false | 632 | py |
class RolePermissionUpdate(BaseOrder):
"""api controller obj"""
def __init__(self, **kwargs):
super(RolePermissionUpdate, self).__init__()
self.info = "修改角色权限"
self.uri = "/role/permission/update"
self.method = "post"
self.body = self.Body(**kwargs)
self.resp = ... | [
"chenyuliang@globalegrow.com"
] | chenyuliang@globalegrow.com |
d5c167fbce693de332525d45b2fe1d06e1d021a3 | 498e792e16ab1a74ac034c53177c4cccbeef2749 | /experiment/NAM-main/MODELS/attention.py | b403c2f857e826c9c84b6113af914509e5d73bb4 | [] | no_license | ydwisroad/imageprocessingpytorch | f97bec4469c087f6bbbca5d42da180c95be8b13f | bd8d1af228619c9c6c9c1a2b880422f7d5048dd5 | refs/heads/master | 2023-07-29T05:05:11.145832 | 2022-02-21T23:32:03 | 2022-02-21T23:32:03 | 284,976,501 | 7 | 3 | null | 2023-07-24T01:08:22 | 2020-08-04T12:43:24 | Jupyter Notebook | UTF-8 | Python | false | false | 1,146 | py | import torch.nn as nn
import torch
from torch.nn import functional as F
class Channel_Att(nn.Module):
def __init__(self, channels, t=16):
super(Channel_Att, self).__init__()
self.channels = channels
self.bn2 = nn.BatchNorm2d(self.channels, affine=True)
def forward(self, x):
... | [
"wandf12345@163.com"
] | wandf12345@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.