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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4e5bc7a6151595d47ed28485d1f1f78d491b708 | 56a4c42176d4ada861518e7ec59d56b8e4d658d0 | /mysite/news/utils.py | 8c2c3c489b443918e357ed566ef7f7c45fa6c616 | [] | no_license | ArsenAjiev/django_course | 69661430bc9c13e4ed481f7035226fb8dc835d9c | b43b35643fd67985ce4594cf573bdaba55f5896d | refs/heads/master | 2023-07-27T20:22:24.566257 | 2021-09-10T11:08:07 | 2021-09-10T11:08:07 | 401,633,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | class MyMixin(object):
mixin_prop = ' '
def get_prop(self):
return self.mixin_prop.upper()
| [
"selftcoder@gmail.com"
] | selftcoder@gmail.com |
254aeee6b83580bec0d8ee4fc5f8fd2ea24fd3b8 | f6cc50c14759c0e865528125b896a47b464c834d | /tests/test_radials.py | 9b44072b9ef542765d017a72ddccc1a0bb6c44b7 | [
"MIT"
] | permissive | kwilcox/codar_processing | 243ddea6eea909c3c44d3f02478e5f024f04e2d8 | 3a327f5378a6a9d78d263c8e7b317088823245c1 | refs/heads/master | 2020-08-27T11:55:12.440346 | 2020-01-09T20:05:13 | 2020-01-09T20:05:13 | 217,358,645 | 0 | 0 | MIT | 2019-10-24T17:44:10 | 2019-10-24T17:44:10 | null | UTF-8 | Python | false | false | 6,077 | py | from pathlib import Path
import numpy as np
import xarray as xr
from codar_processing.src.radials import Radial, concatenate_radials
data_path = (Path(__file__).parent.with_name('codar_processing') / 'data').resolve()
output_path = (Path(__file__).parent.with_name('output')).resolve()
def test_codar_radial_to_netc... | [
"kyle@axiomdatascience.com"
] | kyle@axiomdatascience.com |
1660e21b6c4bd243001029dc05cf5eea57eddffc | f24edb38dd4f7de8a7683afbbc9ab2a4237a361e | /venv/lib/python3.6/site-packages/pip/_internal/commands/uninstall.py | 5e5b3553b2a53d1bbe5ecf496384cd9ec36ecdc9 | [] | no_license | ngecu/automate_django_data_filling | 882220f84a6b4af5484d4b136c740a803ccccfd2 | d6b7095904878f06e4aae6beb2156113a6145c21 | refs/heads/main | 2023-02-26T02:36:26.582387 | 2021-01-31T15:50:22 | 2021-01-31T15:50:22 | 317,846,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | from __future__ import absolute_import
from pip._vendor.packaging.utils import canonicalize_name
from pip._internal.cli.base_command import Command
from pip._internal.cli.req_command import SessionCommandMixin
from pip._internal.cli.status_codes import SUCCESS
from pip._internal.exceptions import InstallationError
fr... | [
"devngecu@gmail.com"
] | devngecu@gmail.com |
a9dc210095439b4c997744c603e4dc3dd0542810 | 048f2002ed13503d50428c8949c95a2e4f9bd532 | /contest/weekcontest179/timeInformAllEmployees.py | a91f058cbbb49cce0012cd60c5c105810753fc70 | [] | no_license | ZhengLiangliang1996/Leetcode_ML_Daily | 9c9330bd2c7bab5964fbd3827a27eeff5bd2c502 | 8cdb97bc7588b96b91b1c550afd84e976c1926e0 | refs/heads/master | 2023-04-06T19:52:23.524186 | 2023-03-30T21:08:57 | 2023-03-30T21:08:57 | 213,055,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2022 liangliang <liangliang@Liangliangs-MacBook-Air.local>
#
# Distributed under terms of the MIT license.
class Solution(object):
def numOfMinutes(self, n, headID, manager, informTime):
"""
:type n: int
:type h... | [
"zhengliangliang1996@gmail.com"
] | zhengliangliang1996@gmail.com |
0cae35ebd5a07c6f2ddafda22aafcab6985493dd | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/coff/CoffSymbolAuxFunction.pyi | b98a12b2316fa9a794264f75a09d1c63d0c82264 | [
"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,795 | pyi | from typing import List
import ghidra.app.util.bin.format.coff
import ghidra.program.model.data
import java.lang
class CoffSymbolAuxFunction(object, ghidra.app.util.bin.format.coff.CoffSymbolAux):
ASCII: ghidra.program.model.data.DataType = char
BYTE: ghidra.program.model.data.DataType = byte
DWORD: ghidr... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
dccefe6f3232c64d27f4537dcf77df25ac6eabc3 | 62343cc4b4c44baef354f4552b449a9f53ca799e | /Model/engine/val_engine.py | 6d99465c5ef81d8810d06639485fbe399fba81eb | [] | no_license | xwjBupt/simpleval | 7c71d178657ae12ac1a5ac6f1275940023573884 | 87234e630d7801479575015b8c5bdd3588a3ceed | refs/heads/master | 2023-02-03T13:42:07.013196 | 2020-12-25T09:08:01 | 2020-12-25T09:08:01 | 324,154,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | from util import registry
from .infer_engine import InferEngine
@registry.register_module('engine')
class ValEngine(InferEngine):
def __init__(self, model, meshgrid, converter, num_classes, use_sigmoid,
test_cfg, eval_metric):
super().__init__(model, meshgrid, converter, num_classes, use... | [
"xwj_bupt@163.com"
] | xwj_bupt@163.com |
30f3e4c9086c9f2e7f65a9ee018ca3c7b7c1fa32 | 73e80e6b6c4b00fddf100e2d6da852eeb7c75245 | /index.py | 4a7f0f90ca10423cdf6ec5b783be1f4650e66979 | [
"MIT"
] | permissive | zhoujie0053/test01 | cdf6da575be45fcf126dc3aacc8824412a1e4da4 | 8dfb1a21d7d95560e6f8f7543415fbedcb6218e4 | refs/heads/master | 2020-04-21T23:14:48.138880 | 2019-02-10T04:22:18 | 2019-02-10T04:22:18 | 169,940,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | a = 1
b = 5
c = 0
| [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
1a87dc748de7261e1f06a57f98bf07ce9f709d73 | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /001146StepikPyBegin/Stepik001146PyBeginсh07p05st06С03_my__20200422.py | 30ca61a2153e84595a3e1fc8625d4159136926a7 | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | '''
Дано натуральное число n. Напишите программу, которая определяет его максимальную и минимальную цифры.
Формат входных данных
На вход программе подается одно натуральное число.
Формат выходных данных
Программа должна вывести максимальную и минимальную цифры введенного числа (с поясняющей надписью).
Sample Input ... | [
"ms33@inbox.ru"
] | ms33@inbox.ru |
e70a8301be7918577b324e3ba6cd05445470022b | b3742c32903fa8fd6489033a3be3b4a597b734e2 | /venv/Scripts/pip3.7-script.py | 398ffa63ec58c5c25822257ce1bb9aef7d50de75 | [] | no_license | lokeshrapala/onlne6amproj1 | fceef41e6482c4f627c53207ba60efe1db24c16f | 9836c85b4a984ad6275080ab0c32a106c095bbfe | refs/heads/master | 2020-04-30T13:01:13.298204 | 2019-03-21T01:12:42 | 2019-03-21T01:12:42 | 176,843,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!C:\Users\LOKESH\PycharmProjects\onlne6amproj1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.7'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"lokesh.rapala"
] | lokesh.rapala |
aa7408e34b14224a77543b589599733eb3a7af96 | f0b8014a49ffe582526cce876f62c5d9aeb95009 | /database.py | e6a6d25103c3bf97818e4c63c3cd90a0de8587b9 | [
"MIT"
] | permissive | DrLapis/omnitool | 737a8b3a55ca12653b34624ac368d1da08ede3e2 | 248a80f8ff30a3d1e3514a55dea102a203c952a8 | refs/heads/master | 2020-12-24T10:32:32.928775 | 2015-08-04T16:24:01 | 2015-08-04T16:24:01 | 40,193,455 | 0 | 0 | null | 2015-08-04T15:39:13 | 2015-08-04T15:39:11 | Python | UTF-8 | Python | false | false | 100,405 | py | version = 39
versions = {22: "1.0.6.1",
12: "1.0.5",
36: "1.1",
39: "1.1.2",
100 : "1.2.4",
102 : "1.2.4.1",
}
cmod = False
npclist = ["Merchant", "Nurse", "Arms Dealer", "Dryad", "Guide", "Clothier",
"Demolitionist", "Goblin Tinkerer",... | [
"fabian.dill@web.de"
] | fabian.dill@web.de |
4bf5515c69160386a2bb612f15f2de43aaf77d3b | 6ff1c4a6ba35d1775d4aa2ec72462331fd09b4c4 | /course1/week4/points_and_segments.py | 8c354c31151ce1ed575cb72fbc6cfc24fc2ed24c | [] | no_license | MohamedFawzy/Data-Structures-And-Algorithms-Specialization | eb9bfd66e94a95b3b357f77df8863eb585d1cf13 | a57953b831e80cdb15ffd0984f3f3a3e7b80d657 | refs/heads/master | 2020-03-15T05:49:36.261276 | 2019-01-20T12:33:48 | 2019-01-20T12:33:48 | 131,995,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | # Uses python2
import sys
from itertools import chain
def fast_count_segments(starts, ends, points):
cnt = [0] * len(points)
a = zip(starts, [float('-inf')]*len(starts))
b = zip(ends, [float('inf')]*len(ends))
c = zip(points, range(len(points)))
sortedlist = sorted(chain(a,b,c), key=lambda a : (a... | [
"mfawzy22@gmail.com"
] | mfawzy22@gmail.com |
9220c0779107ae7990c29f78fa1145f303124228 | 9fcd6a91132fd12731d259fe7d709cdf222381bb | /2022/24/foo.py | e15c500fc99027160b86dad1e257bfe3bc844f1d | [] | no_license | protocol7/advent-of-code | f5bdb541d21414ba833760958a1b9d05fc26f84a | fa110cef83510d86e82cb5d02f6af5bb7016f2c7 | refs/heads/master | 2023-04-05T15:33:26.146031 | 2023-03-18T14:22:43 | 2023-03-18T14:22:43 | 159,989,507 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import sys
from util import *
def parse(line):
return line.strip()
xs = list(map(parse, sys.stdin))
dir = {
">": RIGHT,
"<": LEFT,
"^": UP,
"v": DOWN,
}
ps = set()
winds = list()
g = Grid(xs)
for p, v in g.points():
if v == "." or v in dir:
ps.add(p)
if v in dir:
winds.... | [
"niklas@protocol7.com"
] | niklas@protocol7.com |
2f7a7a464cfa554501ff53105e96d444dbdb9d6e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2247/60716/266118.py | b3cfb9af57e92d07680b4ef8e087e07bdcf75d44 | [] | 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 | 329 | py | strs = input().split(',')
lists = [int(i) for i in strs]
alex = 0
lee = 0
index=0
while len(lists)>0:
temp = 0
if lists[0]>=lists[len(lists)-1]:
temp = lists.pop(0)
else:
temp = lists.pop()
if index%2==0:
alex += temp
else:
lee += temp
print(True) if alex>lee else pri... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
23c08622e46b36e8e88eeb8217c48ebaf5a30c2a | 22cec5da2b1fb83dcc9cf7c888f1e2078b05b62e | /flora/wallet/settings/settings_objects.py | e89c586d10d8514e9123368dd15457e76179d5de | [
"Apache-2.0"
] | permissive | JuEnPeHa/flora-blockchain | 649d351e096e73222ab79759c71e191e42da5d34 | 656b5346752d43edb89d7f58aaf35b1cacc9a366 | refs/heads/main | 2023-07-18T08:52:51.353754 | 2021-09-07T08:13:35 | 2021-09-07T08:13:35 | 399,297,784 | 0 | 0 | Apache-2.0 | 2021-08-24T01:30:45 | 2021-08-24T01:30:44 | null | UTF-8 | Python | false | false | 577 | py | from dataclasses import dataclass
from flora.util.streamable import Streamable, streamable
@dataclass(frozen=True)
@streamable
class BackupInitialized(Streamable):
"""
Stores user decision regarding import of backup info
"""
user_initialized: bool # Stores if user made a selection in UI. (Skip vs I... | [
"github@floracoin.farm"
] | github@floracoin.farm |
50595f67b3fda0a90dc73fa51951fbdfaf4170a5 | 5462142b5e72cb39bea5b802dd46f55357c4ea84 | /homework_zero_class/lesson8/函数的简介-times_1.py | 659bc9d42506df5e7f6a26bed1013354b9ef3d7a | [] | no_license | qqmadeinchina/myhomeocde | a0996ba195020da9af32613d6d2822b049e515a0 | 291a30fac236feb75b47610c4d554392d7b30139 | refs/heads/master | 2023-03-23T05:28:53.076041 | 2020-08-24T08:39:00 | 2020-08-24T08:39:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | #!D:\Program Files\Anaconda3
# -*- coding: utf-8 -*-
# @Time : 2020/7/21 23:38
# @Author : 老萝卜
# @File : 函数的简介-times_1.py
# @Software: PyCharm Community Edition
print('nihao')
print('黑猫警长')
print('hahaha')
# 函数中保存的代码不会立即执行,需要调用函数才会执行
def fn():
print('这是第一个函数')
print('nihao')
print('黑猫警长')
print('hahah... | [
"newwxm@126.com"
] | newwxm@126.com |
c476976ac6e209478e0a9c8cddd2f916c3550b64 | ada9e04c44e9cb577acc1301915490adbb06edf5 | /test.py | 9d91270e57e3aa010ce6f5d7ce3911b7d3051506 | [
"MIT"
] | permissive | iiharu/pyoni | 9356b68a4ab52fa60d39cec01bf8145d7219ad03 | 3e62cedc1ed7dc726e421858ff143f7b7a713403 | refs/heads/master | 2021-01-28T00:24:07.078465 | 2020-03-03T08:22:15 | 2020-03-03T08:22:15 | 243,489,976 | 0 | 0 | MIT | 2020-02-27T10:16:06 | 2020-02-27T10:16:06 | null | UTF-8 | Python | false | false | 1,237 | py | #cap_openni2.cpp usa status = device.open(filename);
#cap_openni.cpp : status = context.OpenFileRecording( filename, productionNode );
import numpy as np
import cv2,sys
import cv2.cv as cv
cap = cv2.VideoCapture(sys.argv[1])
if True:
print("Depth generator output mode:")
print("FRAME_WIDTH " + str(cap.get... | [
"emanuele.ruffaldi@gmail.com"
] | emanuele.ruffaldi@gmail.com |
7b28bb9e2f21cd5136e3513b6e6a30200795dc3e | 8a9b8fc7cbb0e24893f130d49edaf6b23501292d | /Python/find_angle.py | 2350449185b18e8345177efed19841d3a3fb0342 | [] | no_license | Rubabesabanova/HackerRank | 9ca6517944ac7253463e734d2fd5fd3e56e19a0a | 41a6c92f55c72bd20dcb86e32f6f5b792730148c | refs/heads/master | 2022-12-16T11:36:05.059682 | 2020-09-21T09:13:30 | 2020-09-21T09:13:30 | 291,142,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | # Difficulty : Medium
# Link : https://www.hackerrank.com/challenges/find-angle/problem
# Language : Python 3
from math import *
a=int(input())
b=int(input())
x=round(degrees(atan(a/b)))
print(str(x)+'°') | [
"60547132+Rubabe@users.noreply.github.com"
] | 60547132+Rubabe@users.noreply.github.com |
dbe508446af6c00e51cb1d2dadeea674f35d5fb6 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/React.js/juejin_203.py | f420f288b5fdf6dade263c68f68f241a62bde5c5 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74,253 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6934881286527909896", "article_info": {"article_id": "6934881286527909896", "user_id": "1626932942485959", "category_id": "6809637767543259144", "tag_ids": [6809640357354012685], "visible_level": 0, "link_url": "", "cover_image": "", "is_gfw": 0, "title": "从0... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
76bc65a6a3966eaf28d60e029208b8b96b2010f2 | 90a2d0bed5d9eeb6b56c7ac96cc5fbee79dc4c5e | /.history/string_format_20220425174809.py | 485acedc7e0afa5c104cd58b4822e854bba33fb0 | [] | no_license | KustomApe/dev | 2d495e22363707b15a22860a773dac6c463903ee | a936f5c3b0928eaa2efaf28c6be8cacc17c3ecb3 | refs/heads/master | 2023-04-28T11:20:03.056953 | 2023-04-07T17:43:40 | 2023-04-07T17:43:40 | 138,429,111 | 1 | 0 | null | 2023-04-25T19:26:09 | 2018-06-23T19:47:23 | Python | UTF-8 | Python | false | false | 254 | py | age = 20
year = 2022
next_age = 21
print('私の年齢は{}歳です。'.format(age))
print('今年は西暦{0}年です。私の年齢は{1}歳で、来年は{2}歳になります。'.format(year, age, next_age))
print('egg')
print('{0}'.format('egg')) | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
2800bc4bde551bf0062ded594820b2eccc44f3d9 | 5b492bf5a906141be9557e654f7f4e7181f4d8eb | /backend/placeNewOrder/serializers.py | 62a05d50a47a85685e7c7bf3fc9dfda57048e9a8 | [] | no_license | KaziMotiour/fast-courier | ac5dece7e7432e80614623dd3795e82d6e253cfa | 17c3cc26e0aa28467fccafa0cb2019aa0066ff63 | refs/heads/main | 2023-06-05T15:36:39.338321 | 2021-06-29T16:40:22 | 2021-06-29T16:40:22 | 361,289,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | from rest_framework import serializers
from .models import Marchant, PlaceNewOrder
from django.contrib.auth.models import User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ['id', 'username', 'is_superuser', 'marchant']
class MarchentSerializer(serialize... | [
"kmatiour30@gmail.com"
] | kmatiour30@gmail.com |
be5831beb31cdbef71082dd0850cefd69de4a4f8 | 7473d931134c444de3dfe61875e5245e9a4ba319 | /anchore_engine/util/users.py | b03e892b462844d4bcd0710ce2e93da2d4f8e4c2 | [
"Apache-2.0"
] | permissive | anniyanvr/anchore-engine | 7eb693a8761e11f9d1f1f40b998d36c7cb76a36d | f5ffac25aea536016dd08734b4a2aa2746be1f1d | refs/heads/master | 2023-03-08T23:46:30.663379 | 2023-01-26T23:58:10 | 2023-01-26T23:58:10 | 193,227,499 | 0 | 0 | Apache-2.0 | 2023-02-26T10:35:37 | 2019-06-22T11:42:50 | Python | UTF-8 | Python | false | false | 736 | py | SYSTEM_USER_ID = "admin" # The system user is always user '0'.
def is_system_user(user_id):
return user_id == SYSTEM_USER_ID
def user_ids_to_search(obj):
"""
Returns an ordered list of user_ids to search for finding related resources for the given object (typically an image or package).
By strengt... | [
"nurmi@anchore.com"
] | nurmi@anchore.com |
6d2ad5baa76e2da122729fe58778cce39934a4e1 | b836471d39ea80003d2d952550c9a1f082d77ae0 | /Numpy高级应用/venv/bin/easy_install | 188f045a188ccfdf08a185c76a092ad5899cfca4 | [] | no_license | JH95-ai/Python-for-data-analysis | 112ed0874f71f4ccd8cdd24b852a5751fde070a9 | b33fefce26ba55e8620e5a3598b644451456f29b | refs/heads/master | 2022-10-31T13:44:36.349833 | 2018-08-14T08:31:52 | 2018-08-14T08:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | #!/root/PycharmProjects/Numpy高级应用/venv/bin/python -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"root@localhost.localdomain"
] | root@localhost.localdomain | |
ed042fa10383d90f3442befe36848687e127f1ec | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part009094.py | fb9ecacb3753ce85b5c502758f6a73e94447253c | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
739c09cc81197c1da29e787e71d299a75eafd6d3 | f931249f3766bd871eede76a950484701915c32d | /collective_decision/urls.py | d0ae17e7860ea982b2753b39b340e54169a7963a | [] | no_license | cleliofavoccia/Share | aa509c9cfa1aa3789237b411b2b94d952d848322 | cf0b982a6df2b8b4318d12d344ef0827394eedfd | refs/heads/main | 2023-07-11T08:29:59.016252 | 2021-08-09T10:13:53 | 2021-08-09T10:13:53 | 373,621,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | """Manage collective_decision app urls"""
from django.urls import path
from . import views
app_name = 'collective_decision'
urlpatterns = [
path('delete_vote_group/',
views.GroupMemberDeleteVoteGroup.as_view(),
name='delete_vote_group'),
path('against_delete_vote_group/',
views.Gr... | [
"favoccia.c@live.fr"
] | favoccia.c@live.fr |
e740f200c941b20745ea18ccdaf3784e917aeaa5 | 197420c1f28ccb98059888dff214c9fd7226e743 | /happy_pythoning_cource/Part_11/11.1.2.List_sums_and_multiply/11.1.2.List_sums_and_multiply.py | 81079913b5e30bc778983e0b1cbae3246c890f63 | [] | no_license | Vovanuch/python-basics-1 | fc10b6f745defff31364b66c65a704a9cf05d076 | a29affec12e8b80a1d3beda3a50cde4867b1dee2 | refs/heads/master | 2023-07-06T17:10:46.341121 | 2021-08-06T05:38:19 | 2021-08-06T05:38:19 | 267,504,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | '''
Дополните приведенный код, используя операторы конкатенации (+) и умножения списка на число (*), так чтобы он вывел список:
[1, 2, 3, 1, 2, 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13].
'''
numbers1 = [1, 2, 3]
numbers2 = [6]
numbers3 = [7, 8, 9, 10, 11, 12, 13]
num4 = numbers1 * 2 + numbers2 * 9 + n... | [
"vetohin.vladimir@gmail.com"
] | vetohin.vladimir@gmail.com |
4db3cc4e9548add764c3db6f8713931066ec69c5 | 6b201605227f11880c1d32c9cad300f6e29ff4ae | /Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/05_quicksort_algorithm.py | 6697b4b4650a83138f8341e1252339a9c8352bea | [
"MIT"
] | permissive | Apop85/Scripts | e2e8e6ed0c0da08a4d7c895aa366c9305197137b | 467c34e59f2708f2d2f8bb369c36fd782d365e8b | refs/heads/master | 2022-12-08T08:11:04.566376 | 2022-05-13T13:17:04 | 2022-05-13T13:17:04 | 164,251,836 | 0 | 0 | MIT | 2022-12-08T01:50:22 | 2019-01-05T21:16:45 | Python | UTF-8 | Python | false | false | 1,223 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
###
# File: 05_quicksort_algorithm.py
# Project: Kapitel_07_Sequenzen_Mengen_und_Generatoren
# Created Date: Sunday 03.03.2019, 20:10
# Author: Apop85
# -----
# Last Modified: Monday 04.03.2019, 12:15
# -----
# Copyright (c) 2019 Apop85
# This software is published under th... | [
"39341618+Apop85@users.noreply.github.com"
] | 39341618+Apop85@users.noreply.github.com |
ea0928d63adaf899e48c7f83a149f3dd146c11b9 | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/interfaces/interface/subinterfaces/subinterface/ipv6/addresses/address/__init__.py | cf18475f2526447b2b8d7b88db545f998b85e6ed | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,820 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
9d1fb7b4ce24f9fcb9f66e6f268e7d001aeb308e | 2d9cedf0ed36dadca1ca2f696290c8261ef7851f | /000010/DataJoint/DJ-NWB-Li-2015b/scripts/ingest.py | 4975eba64deab64af06445f9c39c8092f1871b39 | [
"Apache-2.0"
] | permissive | dandi/example-notebooks | 4365285697d41fd383110b5af5c30860d72fad22 | be3a8b345dfa9c0145692a30087647bc47f865e8 | refs/heads/master | 2023-08-30T20:41:41.323355 | 2023-08-16T21:21:12 | 2023-08-16T21:21:12 | 231,629,025 | 5 | 8 | Apache-2.0 | 2023-09-12T19:53:10 | 2020-01-03T16:55:02 | Jupyter Notebook | UTF-8 | Python | false | false | 220 | py | from pipeline.ingest import ingest_lookup, ingest_meta_data, ingest_data
from pipeline import imaging
ingest_meta_data.main()
ingest_data.main()
imaging.RoiAnalyses.populate(suppress_errors=True, display_progress=True)
| [
"ben.dichter@gmail.com"
] | ben.dichter@gmail.com |
0d511d8f1acf5ab27e7f677565d0a4424a91fcd7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_209/287.py | dce3bd9df0ba24f4960a08f60546dcce19c18657 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | import sys
import math
def pancake_value(top, side, max_top):
if top > max_top:
return top - max_top + side
else:
return side
for i in range(0, int(sys.stdin.readline())):
inputs = sys.stdin.readline()[:-1].split(" ")
n = int(inputs[0])
k = int(inputs[1])
pancakes = []
r = []
h = []
for j in range(0, n... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
253dbc39b3361b2a7b7f30d0957a2a6ba6a396d3 | c97cac88118ebd0814dec123e164dc74fef5773e | /omero_python_libs/omero_model_SessionI.py | 0d0fa544752b970fd9d97de78702fe36ca88adaf | [
"Apache-2.0"
] | permissive | nseyedtalebi/django-uwsgi-nginx | 285a7ed2c66b0ca2f25dd4fc79018f8deac1472d | 3163e9c7a88ed1298312d6a69a0d9eaf2f007e97 | refs/heads/master | 2020-07-08T22:01:42.082634 | 2019-08-22T16:37:18 | 2019-08-22T16:37:18 | 203,791,310 | 0 | 0 | null | 2019-08-22T12:33:28 | 2019-08-22T12:33:28 | null | UTF-8 | Python | false | false | 25,691 | py | """
/*
** Generated by blitz/resources/templates/combined.vm
**
** Copyright 2007, 2008 Glencoe Software, Inc. All rights reserved.
** Use is subject to license terms supplied in LICENSE.txt
**
*/
"""
import Ice
import IceImport
import omero
IceImport.load("omero_model_DetailsI")
IceImport.lo... | [
"nima.seyedtalebi@uky.edu"
] | nima.seyedtalebi@uky.edu |
b60f7628b7edda141c54a4da61c18b9878fbee0a | b4b140bb107baebc50b310f1d79fdbe2a0382708 | /proj/lib/python3.7/site-packages/sqlalchemy/testing/plugin/plugin_base.py | 6581195dff252ee2cd8047c1abbf30e020fe88ea | [
"MIT"
] | permissive | shahedex/horizon_backend_flask | f642b99bf019050ff72896e455a85bd3f483cf39 | 7dce74fce0afdfa1cb6481e1d765e01a8ad3c5c4 | refs/heads/master | 2022-10-08T17:27:10.299450 | 2019-10-06T16:57:42 | 2019-10-06T16:57:42 | 207,140,462 | 0 | 1 | MIT | 2022-09-16T18:09:06 | 2019-09-08T16:26:35 | Python | UTF-8 | Python | false | false | 17,514 | py | # plugin/plugin_base.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Testing extensions.
this module is designed to work as a testing-framework... | [
"shahed739@gmail.com"
] | shahed739@gmail.com |
bd1a740bf8f775851890759a7db88b5fd0cf0bba | 958d87cc3b77bb3308d0aa04b92fdef5f97d63ae | /AdvancedPythonObjectsAndDataStructures/AdvancedNumbers.py | 8ef05979c4197fe19a9dff75665c1dc35639738e | [] | no_license | parihar08/PythonJosePortilla | 6dec83519af78451c46e323928aedf19dbd908f1 | 6f47291908ad05daf5a505ba0e13687c46651bc2 | refs/heads/master | 2022-12-19T07:30:39.603468 | 2020-09-19T14:56:36 | 2020-09-19T14:56:36 | 292,650,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | print('********Hexadecimal*************','\n')
#Hexadecimal
print(hex(246)) #0xf6
print(hex(512)) #0x200
print('********Binary*************','\n')
#Binary
print(bin(128)) #0b10000000
print(bin(512)) #0b1000000000
print('*********Power************','\n')
#Power
print(pow(2,4)) #16
print(pow(2,4,... | [
"sparihar08@yahoo.com"
] | sparihar08@yahoo.com |
0765dba6257528349620629e6fe1ae5ff5925d69 | deb8d06ec0f6fd6350512c36d3b79b934219b4f5 | /mimic3/utils.py | a3398cdb84ed120f9492ddf9c12e93bfd8a9c3b2 | [] | no_license | futianfan/preprocess | db1ef63367624275b9d184c5cda508391df4cc2b | 15aac957a737eaae441bb7eb4940e2ad4e9abb5a | refs/heads/master | 2020-04-15T01:18:26.178428 | 2019-01-26T21:04:13 | 2019-01-26T21:04:13 | 164,271,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,320 | py | from datetime import datetime
minimum_admission_to_throw = 2
today = datetime.strptime('2125-01-01', '%Y-%m-%d')
separate_symbol_in_visit = ' '
separate_symbol_between_visit = ','
separate_symbol = '\t'
def convert_to_icd9(dx_str):
if dx_str.startswith('E'):
if len(dx_str) > 4: return dx_str[:4] + '.' + dx_str[4... | [
"futianfan@gmail.com"
] | futianfan@gmail.com |
cbfd75a923ee6ced4ac597da44b7dce3d0a8c350 | a4c04117685c3d28dd60bdfc45654cb2c935f746 | /read_gedi_l2b.py | c5897d51ba3ac9e0fc2d517a732a03472d101b74 | [] | no_license | DKnapp64/General_Python_Codes | 1ca40779bb381d526d61c5d5fedcc76ae797c590 | 8d4669c82c17455640a0a3123f92760cd65cc26a | refs/heads/main | 2023-02-28T05:55:46.018482 | 2021-02-01T21:55:16 | 2021-02-01T21:55:16 | 335,077,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,098 | py | #!/usr/bin/env python3
import h5py
import pandas as pd
import numpy as np
from shapely.geometry import Point
import geopandas as gpd
import os, sys
fname = sys.argv[1]
f = h5py.File(fname, 'r')
## haydi_bre(f)
## print(list(f.keys()))
groups = [t for t in f.keys()]
print("File: %s" % (fname))
## read in GeoJSON o... | [
"dknapp4@asu.edu"
] | dknapp4@asu.edu |
090048756a8aeb5e5d027527c1844d1ed1266ff8 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /testing/run_pytype.py | fdb0b0cebeda89bac4c61d94946153c6f53a4443 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 1,165 | py | #!/usr/bin/env vpython3
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Simple helper script to run pytype on //testing code."""
import os
import sys
from pytype_common import pytype_runner
TESTING_DIR = os.path.abspath(os... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
0445697b424a8cf920dd80be998d7abdf21f8014 | 7f1a316ad1b19481e378953d7ffdd27fa435b1a4 | /00-lecture/python2/week6/day1/dojodesk/apps/comments/migrations/0001_initial.py | 829b4a81631d6fc3cca20f93d50036ba2c3c1743 | [] | no_license | Python-November-2018/wes_harper | 03eaed6d840038473339102ab9b8b85e31084555 | c5bcef58bb322d5487a7595f3f4f4fa7ae498a69 | refs/heads/master | 2020-04-03T18:12:44.212347 | 2018-12-20T03:38:38 | 2018-12-20T03:38:38 | 155,474,954 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-12-04 01:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('tickets', '0001_initial'),
('user... | [
"wes@tao.team"
] | wes@tao.team |
2b75e38eaab3622916e1d4a48df9fc6747581892 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /log-20190927/132.230.102.123-10.21.11.38/1569575015.py | 103d484cea235b66a481b6ba8b712737d192faa4 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | import functools
import typing
import string
import random
import pytest
def leap(n: int) -> bool:
"""this functions checks whether a year is a leapyear
args: n, a year number
returns: true if n is a leapyear, false if n is not a leapyear"""
if n % 4 == 0:
return True
elif n % 100 == 0 and ... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
d593bba8d01a2062a54ce89cd99e5c1ad0533d5a | 006b7c62cc6682bfb0c69bede62145f4c5cd0eb1 | /art_bms/bacnet/api_urls.py | 338cd242284c628708606eb4cc2218fae34e254d | [] | no_license | ArtInfrastructure/art-bms | eb2961207c827b5fa1c0af8cdde08dcf5bc7fed2 | 2b384f371160feb0005b39af8cbaca9855c5c235 | refs/heads/master | 2016-09-06T02:35:27.920647 | 2010-03-03T21:51:16 | 2010-03-03T21:51:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # Copyright 2009 GORBET + BANERJEE (http://www.gorbetbanerjee.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 agr... | [
"trevor@trevor.smith.name"
] | trevor@trevor.smith.name |
d1d613fc7dc70dec5d314468c4b3a8102ab32086 | d3006a069f12a9c7a3cb49e412a9e679930bc94a | /backend/apps/shop/migrations/0006_product_image.py | e03a19444a740073bae96a37811c92f765aebdd3 | [] | no_license | alexmon1989/keiko | 906e60328bc86f58cae9d9a0f9266869ed29f99a | 45cc0d770ddd93129b8c51727a683cd15d0afad4 | refs/heads/master | 2022-12-12T08:00:31.843565 | 2019-08-13T11:50:17 | 2019-08-13T11:50:17 | 168,360,214 | 0 | 0 | null | 2022-12-08T11:58:54 | 2019-01-30T14:53:11 | CSS | UTF-8 | Python | false | false | 484 | py | # Generated by Django 2.1.5 on 2019-02-11 14:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0005_auto_20190209_2110'),
]
operations = [
migrations.AddField(
model_name='product',
name='image',
... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
9428b181597b43198e6c6924a54a87aec98ab83e | 12ebcf4d3bdc074c12aceac3818365585a325094 | /citest/base/journal_logger.py | 83d529da248a32dbe841561791b6ff264154a71f | [
"Apache-2.0"
] | permissive | VimalME/citest | 0bcb07053be2395856c0ac5c0f97d98ab14dedd4 | 44a101e0051016e1baacfb8cfa8c870a8f8c4e7a | refs/heads/master | 2020-08-29T02:14:14.118493 | 2017-06-14T21:22:23 | 2017-06-14T21:22:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,803 | py | # Copyright 2015 Google Inc. 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 applicable law or a... | [
"ewiseblatt@google.com"
] | ewiseblatt@google.com |
b1b1772431492fcab55c92ae1d4fd03704fa9afe | 2442d073434d463cede4a79ae8f9fd31c62174f8 | /procedural-programming/io/without-readlines.py | d9a356fabba9a323ba50dd514ed32d2a93cd8438 | [] | no_license | grbalmeida/hello-python | 3630d75cfdde15223dc1c3a714fd562f6cda0505 | 4d9ddf2f7d104fdbc3aed2c88e50af19a39c1b63 | refs/heads/master | 2020-07-10T10:04:38.982256 | 2020-02-26T00:37:36 | 2020-02-26T00:37:36 | 204,237,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from FILE import FILE
file = open(FILE, 'r')
for index, line in enumerate(file):
print(f'{index + 1} {line}', end='')
file.close()
| [
"g.r.almeida@live.com"
] | g.r.almeida@live.com |
9fd8d20f8d484b4a863e15f52bf93ca314cbe5c9 | c0bf1f7ca6d9d7562f72b4a668e97a2d5ffe7c88 | /tests/extension/types_/axi_/write_lite/test_types_axi_write_lite.py | 1c98a783d3f415821c00d1bca7f8f49b3bfd4486 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | 00mjk/veriloggen | cee0da16182c3c9bd95340a966d6a3febc0e7ad1 | 9d0af9638470b3b85cbf9cb53f16b853932571c8 | refs/heads/master | 2023-06-23T07:10:20.645734 | 2021-07-18T14:53:13 | 2021-07-18T14:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import veriloggen
import types_axi_write_lite
def test(request):
veriloggen.reset()
simtype = request.config.getoption('--sim')
rslt = types_axi_write_lite.run(filename=None, simtype=simtype,
... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
67b77c60ffcd0ca9797a34eb6b56830ac5b0b355 | ef4e046b3521c97345b1b1bcf58a1f16a2eaf603 | /mysql/demo.py | ccd8cbce22b045f34eb4b706a7049ffdb8a6794b | [
"MIT"
] | permissive | wasit7/tutorials | 0e23b6ffc55519df80fa47473f13baf55e1573ef | 83499821266c8debac05cb5d6d5f6da0f0abd68f | refs/heads/master | 2020-12-11T01:06:35.532592 | 2017-04-29T15:13:01 | 2017-04-29T15:13:01 | 37,713,995 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 30 22:09:44 2015
@author: Nun
edited by Wasit
"""
from datetime import datetime
import pytz
import random
#if using additinal connector
#import mysql.connector
#conn = mysql.connector.Connect(host='146.148.37.209 ',user='root',password='',database='testdb')
#if using >>... | [
"wasit7@gmail.com"
] | wasit7@gmail.com |
8bb82ebd7fdb6277c645454dc99a826e43499c6d | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/DDM/utils/serialization.py | 4ac849f4896f01da60667af490919a156e345991 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 894 | 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 agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
70439002a7dca17027ae86e3744e998ceda32a0b | a479a5773fd5607f96c3b84fed57733fe39c3dbb | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isn/neighbors/neighbor/subTLVs/subTLVs_/utilized_bandwidth/__init__.py | 7ab2641b1214d0b1a89c518837da459fd503b9b3 | [
"Apache-2.0"
] | permissive | napalm-automation/napalm-yang | 839c711e9294745534f5fbbe115e0100b645dbca | 9148e015b086ebe311c07deb92e168ea36fd7771 | refs/heads/develop | 2021-01-11T07:17:20.226734 | 2019-05-15T08:43:03 | 2019-05-15T08:43:03 | 69,226,025 | 65 | 64 | Apache-2.0 | 2019-05-15T08:43:24 | 2016-09-26T07:48:42 | Python | UTF-8 | Python | false | false | 12,450 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
1f2f6f6b6e2ce1d00611571c0f7bb6e894ea97ef | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_078/ch20_2020_04_11_20_17_50_548987.py | a96fc9803b658c8c63e6829c6f9b06960b007e43 | [] | 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 | 251 | py | distancia=float(input('Qual distância deseja percorrer? '))
if distancia<=200:
print ('O preço da passagem é {0}R$'.format(distancia*0,50))
else:
print ('O preço da passagem é {0}R$'.format((distancia*0,50)+(distancia-200)*0,45))
| [
"you@example.com"
] | you@example.com |
6ac8b762b137bfd7afa381c029c405f96348233c | 3679daa10ea95e90889e07e96e6c98c98f3751ea | /ipu/ipu/celery.py | e0092f1239df3677d4f604a596110f5cdb4e2224 | [] | no_license | rmn5124/ggsipu-placement-cell-portal | 0a8fef69c75ea444588046fcc7b38d7cf5c8e8e5 | 11876c2171bb07308719b205a69cd8330eb08052 | refs/heads/master | 2023-09-01T12:01:47.475984 | 2019-09-02T21:49:01 | 2019-09-02T21:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | from __future__ import absolute_import
import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ipu.settings')
app = Celery('ipu')
from django.conf import settings
# Using a string here means the worker will not have to
#... | [
"pratulyabubna@outlook.com"
] | pratulyabubna@outlook.com |
68e09f36ad8392a64d4ae77f98aa3cda11a6d3ec | 32dda10669e459cf37c31f426fa709001d2c75b0 | /leetcode_cn/solved/pg_760.py | 95eb11fb22234cfa2dd1887f120267b93b1fdfbb | [] | no_license | fastso/learning-python | 3300f50d06871245d0bfcbe9d201224580f70852 | d21dbd1b9f31017cdb1ed9b9ffd1e53ffe326572 | refs/heads/master | 2023-02-10T14:43:53.726247 | 2023-01-26T10:14:59 | 2023-01-26T10:14:59 | 193,454,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from typing import List
class Solution:
def anagramMappings(self, A: List[int], B: List[int]) -> List[int]:
return map(B.index, A)
| [
"fastso.biko@gmail.com"
] | fastso.biko@gmail.com |
5f1d4560358d08cd78ed0b84edddcf92bef5e718 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/aio/operations/_galleries_operations.py | 83664872416614ce1489ca5f493e0ae712665525 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 40,271 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
52e2e83c0b62474742d839853d740707a0b7d12e | 951e433b25a25afeea4d9b45994a57e0a6044144 | /LeetCode/动态规划_416_分割等和子集_01背包.py | 133d61bbb2b69d6c32fa2c0755d0dd8b5988b897 | [] | no_license | EricaEmmm/CodePython | 7c401073e0a9b7cd15f9f4a553f0aa3db1a951a3 | d52aa2a0bf71b5e7934ee7bff70d593a41b7e644 | refs/heads/master | 2020-05-31T14:00:34.266117 | 2019-09-22T09:48:23 | 2019-09-22T09:48:23 | 190,318,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | '''
给定一个只包含正整数的非空数组。是否可以将这个数组分割成两个子集,使得两个子集的元素和相等。
注意:每个数组中的元素不会超过100,数组的大小不会超过200
示例1:
输入: [1, 5, 11, 5]
输出: true
解释: 数组可以分割成[1, 5, 5]和[11].
示例2:
输入: [1, 2, 3, 5]
输出: false
解释: 数组不能分割成两个元素和相等的子集.
'''
'''
问题转化:给定一个只包含正整数的非空数组,是否可以从这个数组中挑选出一些正整数,
使得这些数的和等于整个数组元素的和的一半。
'''
class Solution(object):
def ca... | [
"1016920795@qq.com"
] | 1016920795@qq.com |
d5ec5a773a92e6f187149f90d6b37bbd36997335 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_physiotherapists.py | 28647da34786753adc621542f6a82cc0400f34bb | [
"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 | 258 | py |
#calss header
class _PHYSIOTHERAPISTS():
def __init__(self,):
self.name = "PHYSIOTHERAPISTS"
self.definitions = physiotherapist
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['physiotherapist']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ca9f1453462fb30398cb816eb03aee011bc9590f | 9b20161b91400238b0c6e6ee3282a328d42935e2 | /tensorflow_datasets/text/goemotions.py | ba592ec175c2b47c840ccc53603110ff9efa364a | [
"Apache-2.0"
] | permissive | okyanusoz/datasets | 61c0ced07c420d7e900080e851890def74a37d94 | 8997c4140cd4fc145f0693787b1da78691930459 | refs/heads/master | 2023-05-31T23:19:30.153499 | 2021-05-06T19:56:49 | 2021-05-06T19:58:56 | 365,308,067 | 1 | 1 | Apache-2.0 | 2021-07-04T11:15:13 | 2021-05-07T17:32:53 | null | UTF-8 | Python | false | false | 5,173 | py | # coding=utf-8
# Copyright 2021 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 |
73d1e09672f5b4289a29a9587a67c4a445a4ee17 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/622.py | 1beb0d17b042c1152df8dc35b3110f891c66ab3e | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | t = int(input())
for i in range(t):
d,n = map(int,raw_input().strip().split())
ls = list()
for j in range(n):
k,s = map(int,raw_input().strip().split())
t = float(float(d-k)/float(s))
ls.append(t)
spd = float(float(d)/float(max(ls)))
print "Case #%d:"%(i+1)... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4c119749b12f3c1896f9fdb5035d43f4af714600 | 137832600734c4a3a16966bbaba19d3540378f9a | /msoffcrypto-crack.py | 172628155e208b2e9791c2750708fc6dd59a2421 | [] | no_license | DidierStevens/DidierStevensSuite | e824354c80f5b7aae4dfb6e55f60178eb9ae208c | 8190354314d6f42c9ddc477a795029dc446176c5 | refs/heads/master | 2023-09-01T20:11:55.341694 | 2023-08-29T10:26:39 | 2023-08-29T10:26:39 | 35,275,445 | 1,670 | 554 | null | 2023-06-04T22:54:40 | 2015-05-08T11:21:00 | Python | UTF-8 | Python | false | false | 81,533 | py | #!/usr/bin/env python
from __future__ import print_function
__description__ = 'Crack MS Office document password'
__author__ = 'Didier Stevens'
__version__ = '0.0.5'
__date__ = '2020/03/29'
"""
Source code put in the public domain by Didier Stevens, no Copyright
https://DidierStevens.com
Use at your own risk
Histor... | [
"didier.stevens@gmail.com"
] | didier.stevens@gmail.com |
c688fdb0b0df6f828c608726a6a2344e9ea59346 | 3d4cd68400eb5429282b23bf6a1b7226851b731a | /spddo/micro/func/format_date.py | c89fe79b54b1ef99441575344c516189548b9b64 | [] | no_license | blueshed/spddo-chat | 2dee16478e9a30ed0196d76d450e0772147aa208 | d7ba492162ba95c0d2b8ed78370366eb96e39c3a | refs/heads/master | 2021-01-17T11:29:48.959086 | 2016-05-21T18:33:08 | 2016-05-21T18:33:08 | 43,005,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from blueshed.micro.utils.date_utils import parse_date
def format_date(date: str, date_format: str='%b, %d %Y'):
'''
Expects date to be in the format: %Y-%m-%dT%H:%M:%S.%fZ
or just: "%Y-%m-%d"
'''
date_value = parse_date(date)
return date_value.strftime(date_format)
| [
"pete@blueshed.co.uk"
] | pete@blueshed.co.uk |
fbcf6403ced9e1507e9f51fb874d1f4e9f3b6e13 | 7d4d6dc3c897ec7c297bb67f30c3f4e39509b250 | /Python/DailyFlash/28feb2020/MySolutions/program1.py | ab5f70d98b97f7e7edad5810c80f531aef298d58 | [] | no_license | kumbharswativ/Core2Web | 48a6ec0275466f4179c502097b1314d04a29e63e | 60949e5461ef103a4ad2c7c39ee9be0be101ec11 | refs/heads/master | 2022-12-24T06:11:45.096063 | 2020-08-09T12:04:07 | 2020-08-09T12:09:13 | 286,219,590 | 0 | 1 | null | 2022-12-11T10:57:50 | 2020-08-09T11:02:18 | Python | UTF-8 | Python | false | false | 686 | py | '''
Write a Program that prints whether a number entered by user is
Disarium Number or not.
{Note: A number can be termed as Disarium number if the sum of every digits
raised by their position in that number is equal to that number. E.g. 135, 1 is at
position 1, 3 is at position 2 & 5 is at position 3, then 1^1 + 3^2 +... | [
"“kumbharswativ@gmail.com”"
] | “kumbharswativ@gmail.com” |
dfa30e0fd9fbef00668d7f2b5968d50393b8aa2a | df6ec5d6f5c6beb30c1f4bb6a4c2969e2ef25c31 | /ngo_npo_profile/migrations/0001_initial.py | c086b0111ba7c3edcb1d71d260e8259dcead1fcd | [] | no_license | heritiermwalila/wecanchangetheworld | 0f820f89878107b002c10fa724a39d025e6a5cfc | 30c48a02d78d366afe6739606b342f6bcefcd576 | refs/heads/master | 2023-05-01T20:24:29.925947 | 2019-06-05T09:21:41 | 2019-06-05T09:21:41 | 190,364,316 | 0 | 0 | null | 2023-04-21T20:33:04 | 2019-06-05T09:16:51 | JavaScript | UTF-8 | Python | false | false | 2,141 | py | # Generated by Django 2.2.1 on 2019-06-04 19:06
import ckeditor_uploader.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateMo... | [
"admin@admins-MacBook-Pro.local"
] | admin@admins-MacBook-Pro.local |
d89bf8a620d9998a3cd783110496cbf721c4ee6f | 6da19be45ff986768eb820f11691977cb3c84772 | /Python/3_DB_interactions/303_Book_store_project_with_json_format_file_for_storage/main_logic.py | 5b9f54629f33cf31d9cd4b915529561295178d45 | [] | no_license | alexp01/trainings | 9e72f3a571292b79d2b1518f564d2dc0a774ef41 | 9d8daee16f15e0d7851fab12ab3d2505386a686c | refs/heads/master | 2023-05-04T23:37:13.243691 | 2023-05-02T08:02:53 | 2023-05-02T08:02:53 | 272,425,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | """
API with logic for file storage in JSON format
"""
import json
file_to_store = 'database.json'
print (file_to_store)
def check_if_file_exists():
with open(file_to_store, 'w'): # this will create the file in case it does not exist
pass
def read_from_file():
with open(file_to_store, 'r') as file:
... | [
"34630182+alexp01@users.noreply.github.com"
] | 34630182+alexp01@users.noreply.github.com |
8356db6b9815a42116fb0868e62babfe13a5daa7 | 221d1ad342677d2fac8aa3f8d5c60e059a6316c9 | /pm4py/algo/discovery/heuristics/__init__.py | ba5a92db4c2ebcbf19c175b258658a4d211042c4 | [] | no_license | niklasadams/explainable_concept_drift_pm | 06ff651fbdebece4adf96f94bfb4d1026da14c48 | 6bf84d727ab0bae76716a04ad28c7de73250c89d | refs/heads/main | 2023-08-26T18:21:49.955080 | 2021-10-29T18:53:48 | 2021-10-29T18:53:48 | 314,514,571 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from pm4py.algo.discovery.heuristics import variants, algorithm
| [
"niklas.adams@pads.rwth-aachen.de"
] | niklas.adams@pads.rwth-aachen.de |
47901753475b364c0fa61c68da06ac7dd0ce77d0 | 4178f2916d2da72cbb45454fbed941dcfe8f6460 | /POM_test/TestCase/Predict/TC_007.py | d31487df7537765b6187688a9253b66573b8e426 | [] | no_license | maxcrup007/Selenium_Webdriver_Python | 15196cb04ba5cafdc5b776c26d167f0b48fb0e14 | 6be7f0b9f53df1ba592957029e8a4d22e409d1c4 | refs/heads/main | 2023-03-24T21:04:31.976451 | 2021-03-22T09:16:04 | 2021-03-22T09:16:04 | 349,379,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py |
# ทดสอบการเข้าใช้งานของ "ประเมิน" (กรอกจำนวนที่ประเมินให้เป็นศูนย์)
import time
import unittest
import sys
from selenium import webdriver
from selenium.webdriver import ActionChains
from POM_test.login import *
from POM_test.predictPage import *
import os
sys.path.append(os.path.join(os.path.dirname(__file__), ".... | [
"36732487+maxcrup007@users.noreply.github.com"
] | 36732487+maxcrup007@users.noreply.github.com |
f8b9076be3b1fda65f70ba1b970c0b313998e494 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4057/codes/1642_2728.py | a35b596d3befd8180e3f47a678f1a0b4d5b6c69c | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | percurso = float(input("o percurso de uma viagem (em quilometros): "))
tipo = input("o tipo do carro (A ou B): ")
if tipo.upper() == "A":
consumo = percurso / 8
print(round(consumo, 2))
else :
consumo = percurso / 12
print(round(consumo, 2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
3884eb4248bc7e8244797a0c63713adc83ee57e0 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/103_14.py | f3f8bf7d10d83beb51333e3d691467e855b5fbdb | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | Python – Custom dictionary initialization in list
While working with Python, we can have a problem in which we need to
initialize a list of a particular size with custom dictionaries. This task has
it’s utility in web development to store records. Let’s discuss certain ways
in which this task can be performed... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
cb781d9d988c44c11a77c73ac37e5299553ac34a | c74b29b68211a51d7283d57b24d7cf83422a8ceb | /classertest.py | ffa1e7ece13d8dbad8941e217e8ee1bf19fb8681 | [] | no_license | proycon/nlpsandbox | 63359e7cdd709dd81d66aed9bf1437f8ecf706a0 | 22e5f85852b7b2a658c6b94c3dedd425a5d6396f | refs/heads/master | 2020-12-09T19:37:10.040962 | 2019-04-23T17:17:15 | 2019-04-23T17:17:15 | 2,347,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from pynlpl.statistics import FrequencyList
from pynlpl.textprocessors import crude_tokenizer, Classer
import sys
import codecs
import asizeof
freqlist = FrequencyList()
f = codecs.open(sys.argv[1], 'r','utf-8')
for line in f:
line = crude_tokenizer(line.strip())
f... | [
"proycon@anaproy.nl"
] | proycon@anaproy.nl |
b152b59d05c3e3d5cdabcc403e4d35db597bceab | 235fb362b5af1f7dbd90dc3819fe63f18e074e9d | /learn_pyqt/pyqt5-cv2-multithreaded-master/SharedImageBuffer.py | faf4fedcd3df098ddfccf082c84eb6906e8874fe | [] | no_license | cener-1999/learn_about_python | 74c9b8c6a546224261d5577183a946a78ca7e84f | 86cfc0a5621f86fc8a1885a39847d40b33137c49 | refs/heads/master | 2023-04-30T06:38:34.459506 | 2021-05-18T14:20:29 | 2021-05-18T14:20:29 | 368,473,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | from PyQt5.QtCore import QMutexLocker, QMutex, QWaitCondition
class SharedImageBuffer(object):
def __init__(self):
# Initialize variables(s)
self.nArrived = 0
self.doSync = False
self.syncSet = set()
self.wc = QWaitCondition()
self.imageBufferDict = dict()
s... | [
"1065802928@qq.com"
] | 1065802928@qq.com |
18da7de4cc349c8c1d2580cadf1d38fed8ba6dfc | 1800155dcdb48bf956fa423858a8cc20ed27e6cb | /two-sum-iii-data-structure-design.py | 24185cd468ecda7dacfaaced0516ae3647362d6b | [] | no_license | gitprouser/LeetCode-3 | 1cc2d1dbbf439af4b3768da388dafd514cc5432b | 530ea79f0377e1fc3fbfb5c5cfe7768159144e57 | refs/heads/master | 2021-06-06T16:30:14.795093 | 2016-08-22T21:40:01 | 2016-08-22T21:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | class TwoSum(object):
def __init__(self):
"""
initialize your data structure here
"""
self.table = {}
def add(self, number):
"""
Add the number to an internal data structure.
:rtype: nothing
"""
self.table[number] = self.table.get(number,... | [
"tohaowu@gmail.com"
] | tohaowu@gmail.com |
095efaba792693239c806c9b95e67c5d4a6f8409 | 434368cb1b6fee551175129fe177af8211b24018 | /Python/Marius/anfis/anfis.py | e3c7ebb77170702303b71c1ef4fadfb2545ce2da | [
"BSD-3-Clause"
] | permissive | Marius-Juston/MatLab-RL-ANFIS | d0f330d3b1168c16b96131d3d950f29cda0bee62 | 650645345dc197ca5b7069085bf95185acc40467 | refs/heads/main | 2023-07-09T04:06:10.813384 | 2021-08-06T02:08:25 | 2021-08-06T02:08:25 | 392,870,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,451 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
ANFIS in torch: the ANFIS layers
@author: James Power <james.power@mu.ie> Apr 12 18:13:10 2019
Acknowledgement: twmeggs' implementation of ANFIS in Python was very
useful in understanding how the ANFIS structures could be interpreted:
https://gi... | [
"Marius.juston@hotmail.fr"
] | Marius.juston@hotmail.fr |
e35651f899532537e810f36a9aa113eb399a5eaa | 382034646e9d3e32c8e63e8d83d2dd7da5be4ef3 | /workery/shared_foundation/tests/models/test_opening_hours_specification.py | ee5abb18bc973e46a7b73620b7db5b912280e1f9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wahello/workery-django | 80c88ecb7968951719af6857711891ec3787cf46 | 289318b0333d830c089f4492716c38d409c365ed | refs/heads/master | 2020-03-30T04:21:48.642659 | 2018-09-28T01:30:22 | 2018-09-28T01:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | # -*- coding: utf-8 -*-
from django.core.management import call_command
from starterkit.utils import get_unique_username_from_email
from django_tenants.test.cases import TenantTestCase
from django_tenants.test.client import TenantClient
from django.urls import reverse
from shared_foundation.models import *
TEST_USER_... | [
"bart@mikasoftware.com"
] | bart@mikasoftware.com |
27139caa2ff73ba9f0c5c0772b1633c315e9aa52 | a939e018333a9ecd26ddc618f99835b7eb381686 | /deploy/vertical_crawler_youtube/le_crawler/common/page_local_writer.py | 3a63fce7ba2cc572e552cac20ddeef9e74c0b3e1 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,190 | py | #!/usr/bin/python
#
# Copyright 2014 LeTV Inc. All Rights Reserved.
__author__ = 'guoxiaohe@letv.com'
import time
import os
import Queue
import threading
from scrapy import log
from scrapy.utils.project import get_project_settings
from ..core.page_writer import PageWriterBase
"""
for json format data writer
"""
clas... | [
"zjc0516@126.com"
] | zjc0516@126.com |
21a34dcd8837c42f9ea42b7bc1e4e5db25cfe7a5 | f485dff7fcb036868d6e4053a7a6ccd7f95214bf | /week09/employee_091.py | 62e4238ccb5f78116cc7d56777ee671bba48bdc0 | [] | no_license | jamesfallon99/CA117 | aa4f851365aafe8a4888c85e1b8b2f571e2c9b2a | 0055ccbbd710453c9574930b361c26fcde2b9036 | refs/heads/master | 2020-06-28T14:26:06.829418 | 2019-08-02T16:41:38 | 2019-08-02T16:41:38 | 200,254,591 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #!/usr/bin/env python3
class Employee(object):
def __init__(self, name, number):
self.name = name
self.number = number
def wages(self):
return 0
def __str__(self):
l = []
l.append("Name: {}".format(self.name))
l.append("Number: {}".format(self.number))
... | [
"noreply@github.com"
] | jamesfallon99.noreply@github.com |
52be7e9c34bece4e6db3c03156d40c378d72b6ca | a1684facd42cba1cd8af003ccffb530f56582e9a | /backend/pet/admin.py | 94b98dc921d660340f7a676c08544c25cf98bd86 | [] | no_license | dunderlabs/siteong7vidas | e13749863a8f5d64d469b735765044893cc38536 | fb3c529025e05adcc9aab17e1eeada909a193e56 | refs/heads/master | 2021-04-26T21:47:58.638150 | 2018-10-30T15:37:19 | 2018-10-30T15:37:19 | 124,160,847 | 6 | 1 | null | 2018-11-28T02:05:10 | 2018-03-07T01:28:12 | Python | UTF-8 | Python | false | false | 464 | py | from django.contrib import admin
from .models import Pet, PetBreed, PetPelage
class PetAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
class PetBreedAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
class PetPelageAdmin(admin.ModelAdmin):
prepopulated_fields = {"slu... | [
"luizrodrigo46@hotmail.com"
] | luizrodrigo46@hotmail.com |
c30f230f2e18f35e186cf375fa987efcef0c253c | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/python数据分析机器学习部分/机器学习/day08/kpca.py | 3ccd0a9d11baf3e0fd08e50a8ae07ade3578adfb | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sklearn.datasets as sd
import sklearn.decomposition as dc
import matplotlib.pyplot as mp
x, y = sd.make_circles(n_samples=500, factor=0.2,
noise=0.04)
model = dc.KernelPCA(kernel='rbf',
fit_inverse_transfo... | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
82893714841e99045c7d0a2c1bbfa4dc32f9deac | 3d1a8ccef4153b6154c0aa0232787b73f45137ba | /services/customer/server.py | 02bd6b68c181a44732e11ad2a8e09a2eb503637c | [] | no_license | jan25/hotrod-python | a0527930b2afc33ca3589c1cf7ae07814148535a | dbce7df1bc2d764351dd2ba1122078fc525caed7 | refs/heads/master | 2020-06-03T14:59:35.627093 | 2019-06-22T16:52:19 | 2019-06-22T16:52:19 | 191,616,546 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from flask import Flask, request, jsonify
from uwsgidecorators import postfork
import services.common.middleware as middleware
import services.config.settings as config
import services.common.serializer as serializer
from . import db
app = Flask(__name__)
@postfork
def postfork():
middleware.init_tracer('custome... | [
"abhilashgnan@gmail.com"
] | abhilashgnan@gmail.com |
1552ae664ea965da697ab12f85e1cc327fb30124 | 6be8aa517e679b33b47d35f100e6590902a8a1db | /DP/Problem19.py | 07c8de548b63717ec4070b31545cf9ef5c3e6a61 | [] | no_license | LeeJuhae/Algorithm-Python | 7ca4762712e5e84d1e277abecb3bf39c9cbd4e56 | 729947b4428205adfbac194a5527b0eeafe1c525 | refs/heads/master | 2023-04-24T01:02:36.430970 | 2021-05-23T07:17:25 | 2021-05-23T07:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # https://www.acmicpc.net/problem/11049
import sys
read = sys.stdin.readline
n = int(read().strip())
arr = [tuple(map(int, read().strip().split())) for _ in range(n)]
dp = [[-1 for _ in range(n)] for _ in range(n)]
def mul(a, b):
if dp[a][b] != -1:
return dp[a][b]
if a == b:
return 0
ret... | [
"gusdn0657@gmail.com"
] | gusdn0657@gmail.com |
646434dfdde5ec5496ec40dd7f80a1a416587ed2 | f155033606399eadfb5fe694479af36e14115467 | /bit-manipulation/sum-vs-xor.py | de6231f5deb69a511a0ad454164e40d58899ad9c | [] | no_license | KadirEmreOto/hackerrank | 7925e5b49f90bbe6fef41cfe4fd980b6ffd9e3f1 | 143d49adc45e4e3e3d9424168b2fdac80b2155d6 | refs/heads/master | 2021-01-11T02:56:03.535273 | 2017-08-11T13:41:55 | 2017-08-11T13:41:55 | 70,905,859 | 10 | 2 | null | 2022-03-16T09:19:13 | 2016-10-14T11:55:02 | Python | UTF-8 | Python | false | false | 120 | py | from math import factorial
n = long(raw_input())
if not n: print 1; quit()
b = bin(n)[2:]
c = b.count('0')
print 1<<c
| [
"emrekadiroto@hotmail.com"
] | emrekadiroto@hotmail.com |
f269f66869c2a17070ed2079a79139e33939efe5 | 377b908723f157ab30733fa5ff15db90c0be9693 | /build/celex4/catkin_generated/pkg.installspace.context.pc.py | f861cb62d3e2dc6d77d7eb7eb7bef0ed002c193b | [] | no_license | eleboss/celex4_ros | af0b28ec0ba79016ae80e90e0cd3d270a8865fa1 | 28500367e8e28e6e5384036b6f9bd8981a7b932e | refs/heads/master | 2020-04-30T14:03:43.823980 | 2019-03-21T05:59:05 | 2019-03-21T05:59:05 | 176,877,974 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "cv_bridge;dvs_msgs;image_transport;roscpp;roslib;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" e... | [
"you@example.com"
] | you@example.com |
2eee67dfdbd5f09719f524851ce744a41a9b3f32 | ce18877752c43eb66f03bdc169e3ef45a1720d15 | /src/apps_common/mailerlite/__init__.py | 2ab0448f4bb1aa6cdcd84a17a2a573dbbf178cb1 | [] | no_license | ajlexgit/robin | 26e8682ae09795acf0f3fc1297d20044285b83df | 25ac1c3455838fc26656cfa16d05b2943d0cbba6 | refs/heads/master | 2021-07-13T22:49:09.177207 | 2017-10-13T07:44:42 | 2017-10-13T07:44:42 | 103,655,240 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | """
Модуль подписки на рассылку.
Зависит от:
premailer
libs.associative_request
libs.color_field
libs.pipeline
libs.templatetags
Установка:
# settings.py:
INSTALLED_APPS = (
...
'mailerlite',
...
... | [
"pix666@ya.ru"
] | pix666@ya.ru |
ae241182ad08298d4046ba796efca16ca15a0257 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc028/A/4640482.py | 31948a2b01b51da02f93d6230fbd993758c38420 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | n,a,b = map(int,input().split())
turn = 1
while True:
if turn == 1:
if n > a:
n -= a
turn *= -1
else:
print("Ant")
exit()
else:
if n > b:
n -= b
turn *= -1
else:
print("Bug")
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
8af54bc9ef8499d1756fe4cccf0d43f3ffde7b28 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /wZQzNPXkLrHMj4mmz_9.py | 2ef7ee6cc929272d9c4fabf0b66110add30eb2b1 | [] | 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 | 52 | py |
def derivative(b, m):
return b * (m ** (b-1))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cf526d0998ec05ba8a704de0e3067c5e2d706869 | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /AutomateTheBoringStuffWithPython/chapter12/spreadsheet_to_text_files.py | 40698e57cc6c206b11f50b49c18978d9f96df97b | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 602 | py | #!/usr/bin/env python3
import openpyxl
def main():
spreadsheet = "text_to_spreadsheet.xlsx"
wb = openpyxl.load_workbook(spreadsheet)
sheet = wb.active
nrows = sheet.max_row
ncols = sheet.max_column
for col in range(1, ncols+1):
text_file = "spreadsheet_" + str(col) + ".txt"
... | [
"i.matukin@gmail.com"
] | i.matukin@gmail.com |
4b17c0924e25f282c9da1e9945670cf8ad43f50d | 10b205507a3598da489bfcfa10bea769b3700b07 | /snaffle/snaffle.py | cd4fe50b80793721a82cfb75e639e8c4f18464c9 | [] | no_license | yattom/snaffle | fd65b4aebdb2ad9083ff6bc9be96b366399974f5 | fce2cec664c569a584925dd4d89f1eb7a2acd9a0 | refs/heads/master | 2021-01-10T01:22:49.387838 | 2016-02-10T01:01:17 | 2016-02-10T01:01:17 | 51,367,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | # coding: utf-8
import time
import logging
import webbrowser
logger = logging.getLogger(__name__)
handler = logging.StreamHandler()
handler.setLevel(logging.DEBUG)
logger.setLevel(logging.DEBUG)
logger.addHandler(handler)
import snaffle.ws_server
class Snaffle:
def __init__(self, start=True):
if start:
... | [
"tsutomu.yasui@gmail.com"
] | tsutomu.yasui@gmail.com |
1ca7985800be5d1b8bc8cec044cb5e460feeb211 | 74ed8d533e86d57c7db9eca879a9fb5b979b8eaf | /stanford_corenlp_demo/common.py | 35504554c6705b83898f4a7c6159a7f78dc7a351 | [
"MIT"
] | permissive | GyxChen/AmusingPythonCodes | 97c5a2080d47399080df005a0643eddb56bceb25 | 388e90c78c67b79c23b4a8fc1ebe29f26394a54b | refs/heads/master | 2020-06-23T12:03:56.708448 | 2019-05-15T05:19:57 | 2019-05-15T05:19:57 | 198,617,528 | 0 | 1 | null | 2019-07-24T10:57:29 | 2019-07-24T10:57:29 | null | UTF-8 | Python | false | false | 1,857 | py | # encoding: utf-8
import xml.etree.ElementTree as ETree
import requests
import re
def dataset_xml_iterator(filename):
"""An iterator to convert xml-format dataset to more readable text format"""
instances = ETree.parse(filename).getroot()
for instance in instances:
paragraph = instance.find('text'... | [
"isaac.changhau@gmail.com"
] | isaac.changhau@gmail.com |
c6e68b46d7b871e2b7567e4b2422530a93f57df6 | 3dc3bbe607ab7b583eb52dbaae86636eb642960a | /configs/skeleton/posec3d/rgbpose_conv3d/pose_only.py | ad413da6a64196514be0bf0a8fef32008dad7d92 | [
"Apache-2.0"
] | permissive | open-mmlab/mmaction2 | 659c36c6083fd3d9d072e074a8d4b3a50342b9bd | 582b78fd6c3240500d5cacd292339d7d1ddbb056 | refs/heads/main | 2023-08-28T18:14:50.423980 | 2023-08-10T09:20:06 | 2023-08-10T09:20:06 | 278,810,244 | 3,498 | 1,028 | Apache-2.0 | 2023-09-07T06:50:44 | 2020-07-11T07:19:10 | Python | UTF-8 | Python | false | false | 3,987 | py | _base_ = '../../../_base_/default_runtime.py'
model = dict(
type='Recognizer3D',
backbone=dict(
type='ResNet3dSlowOnly',
in_channels=17,
base_channels=32,
num_stages=3,
out_indices=(2, ),
stage_blocks=(4, 6, 3),
conv1_stride_s=1,
pool1_stride_s=1,... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
16f19364595328e4296082867545a96c7427556e | da29f1f5b4459fbfec968bb694bedb9586f87b14 | /new_algs/Sequence+algorithms/Binary+search+algorithm/palindromes.py | 72730563f8e9eb671891b4dc6258d98dc0c977f9 | [] | no_license | coolsnake/JupyterNotebook | 547806a45a663f090f313dc3e70f779ad9b213c0 | 20d8df6172906337f81583dabb841d66b8f31857 | refs/heads/master | 2023-01-13T18:55:38.615312 | 2020-11-17T22:55:12 | 2020-11-17T22:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | #!python
"""STARTER CODE FROM NEPTUNIUS"""
import string
import re
# Hint: Use these string constants to ignore capitalization and/or punctuation
# string.ascii_lowercase is 'abcdefghijklmnopqrstuvwxyz'
# string.ascii_uppercase is 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
# string.ascii_letters is ascii_lowercase + ascii_uppercase
... | [
"chenqh@uci.edu"
] | chenqh@uci.edu |
c9de463f2a5670eae402bcb6f8934038fef09461 | b5550fc728b23cb5890fd58ccc5e1668548dc4e3 | /virt/imagecache.py | 182e8745ec9ade92d2338ff13e8e74b23e599763 | [] | no_license | bopopescu/nova-24 | 0de13f078cf7a2b845cf01e613aaca2d3ae6104c | 3247a7199932abf9718fb3260db23e9e40013731 | refs/heads/master | 2022-11-20T00:48:53.224075 | 2016-12-22T09:09:57 | 2016-12-22T09:09:57 | 282,140,423 | 0 | 0 | null | 2020-07-24T06:24:14 | 2020-07-24T06:24:13 | null | UTF-8 | Python | false | false | 5,230 | py | #coding:utf-8
# Copyright 2013 OpenStack Foundation
# 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
#
# ... | [
"719184289@qq.com"
] | 719184289@qq.com |
42b9566db4361ab8b254d2a2264e24c1714fe831 | 1285703d35b5a37734e40121cd660e9c1a73b076 | /leetcode/trees/979_distribute_coins_in_binary_tree.py | bcc55f5a0967dd5c383882f927dcf475948b6d2e | [] | no_license | takin6/algorithm-practice | 21826c711f57131108168775f08e4e13d07a3b38 | f4098bea2085a77d11c29e1593b3cc3f579c24aa | refs/heads/master | 2022-11-30T09:40:58.083766 | 2020-08-07T22:07:46 | 2020-08-07T22:07:46 | 283,609,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def distributeCoins(self, root: TreeNode) -> int:
self.res = 0
def dfs(root):
if root is None: return 0
... | [
"takayukiinoue116@gmail.com"
] | takayukiinoue116@gmail.com |
b66c5203b859c841cc828a61e62cc99f9eb553fa | f6f632bee57875e76e1a2aa713fdbe9f25e18d66 | /python/_0001_0500/0494_target-sum.py | 7deeae6aad4be02d4582bbd2b5c096fd901b4cfb | [] | no_license | Wang-Yann/LeetCodeMe | b50ee60beeeb3661869bb948bef4fbe21fc6d904 | 44765a7d89423b7ec2c159f70b1a6f6e446523c2 | refs/heads/master | 2023-08-07T05:31:23.428240 | 2021-09-30T15:33:53 | 2021-09-30T15:33:53 | 253,497,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,213 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Rock Wayne
# @Created : 2020-05-07 08:00:00
# @Last Modified : 2020-05-07 08:00:00
# @Mail : lostlorder@gmail.com
# @Version : alpha-1.0
"""
# 给定一个非负整数数组,a1, a2, ..., an, 和一个目标数,S。现在你有两个符号 + 和 -。对于数组中的任意一个整数,你都可以从 + 或 -中选
# 择一个符号添加在... | [
"rock@get.com.mm"
] | rock@get.com.mm |
43f91e28b0ab99020b437977fe568b429178b0b3 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /day10/homework/FTP/server/core/server_common.py | 18fad1a82f4d7f6fccba1a4c2bf4fd51ff3efa68 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 5,055 | py | # -*- coding: utf-8 -*-
__author__ = 'caiqinxiong_cai'
# 2019/9/3 14:35
import struct
import json
import os
import sys
import hashlib
from core.server_auth import ServerAuth as sa
from core.log import Log as log
from conf import settings as ss
class Common:
'''公共类'''
@staticmethod
def mySend(conn, msgb, ... | [
"13269469526@163.com"
] | 13269469526@163.com |
bd232b3367effd7cfbda818926e79471f68ef3ce | 5b4fe473179b5fadaf59ec96d55b2ec4cb326f65 | /test/runtime/frontend_test/chainer_test/pow_var_var_test.py | 608f866af8cbbd74d77544442bc55e0e6a2adf6b | [
"Zlib",
"MIT"
] | permissive | TarrySingh/webdnn | 13d3f1ec4936916abacfb67e270f48571e2fcff2 | b31b19de0798d8ca198b78d19cb06e4fce1bc260 | refs/heads/master | 2021-05-07T02:24:47.500746 | 2017-11-13T13:00:24 | 2017-11-13T13:00:24 | 110,582,816 | 0 | 1 | null | 2017-11-13T18:03:46 | 2017-11-13T18:03:46 | null | UTF-8 | Python | false | false | 1,044 | py | import chainer
import numpy as np
from test.util import generate_kernel_test_case
from webdnn.frontend.chainer.converter import ChainerConverter
def test():
vx1 = chainer.Variable(np.random.rand(2, 4, 6, 8).astype(np.float32))
vx2 = chainer.Variable(np.random.rand(2, 4, 6, 8).astype(np.float32))
vy = vx1... | [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
0f36fc3d21dc7041777d4a12b840417a029e470f | 9929ba720faf432a5bf3f5cc51dc9f429c24cb84 | /QUANTTOOLS/QAStockETL/QASU/save_usstock_alpha.py | a924c44ce2d05151a07caabb07f54d287cf3f1c4 | [] | no_license | chaopaoo12/QuantTools | 45fb344fc085bd7a40d94f646d0982d6b93db1a8 | 2bb1c5ad6aab3d454cfe32b6e6c86107992bed0c | refs/heads/master | 2023-08-18T04:03:11.944128 | 2023-08-13T10:58:49 | 2023-08-13T10:58:49 | 174,860,433 | 9 | 11 | null | null | null | null | UTF-8 | Python | false | false | 8,002 | py | from QUANTAXIS.QAUtil import (DATABASE, QA_util_log_info,QA_util_to_json_from_pandas,QA_util_today_str)
from QUANTTOOLS.QAStockETL.QAUtil import (QA_util_get_trade_range, QA_util_if_trade)
from QUANTTOOLS.QAStockETL.QAFetch import QA_fetch_usstock_list
from QUANTTOOLS.QAStockETL.QAFetch import (QA_fetch_get_usstock_al... | [
"chaopaoo12@hotmail.com"
] | chaopaoo12@hotmail.com |
e49a38be69dc29f6136d40d0aeb977f4023ebb4a | c130a094e04eb448201ca2ab8ed4fe56cd1d80bc | /samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/array_test.py | 3d1146f50cbcf105ed811bf584fd8d1b4295846d | [
"Apache-2.0"
] | permissive | janweinschenker/openapi-generator | 83fb57f9a5a94e548e9353cbf289f4b4172a724e | 2d927a738b1758c2213464e10985ee5124a091c6 | refs/heads/master | 2022-02-01T17:22:05.604745 | 2022-01-19T10:43:39 | 2022-01-19T10:43:39 | 221,860,152 | 1 | 0 | Apache-2.0 | 2019-11-15T06:36:25 | 2019-11-15T06:36:24 | null | UTF-8 | Python | false | false | 11,599 | py | """
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import re # noq... | [
"noreply@github.com"
] | janweinschenker.noreply@github.com |
312a8e05f383be3790e403f2863f1c553e88a5c0 | 6f56cf11d2d7750edb193831f368c8c7d156b974 | /test/mitmproxy/test_flow_export/locust_get.py | 72d5932aa5bef794e7caeda7833a2d335e7cbb34 | [
"MIT"
] | permissive | lifeNrun/mitmproxy | 000ad22e7262948ee6d4835c96d49b4a96ae1597 | a7b9e3033db29a27344c9f5d968c2af25d4a9ac0 | refs/heads/master | 2021-01-12T21:36:59.985896 | 2016-05-19T05:51:27 | 2016-05-19T05:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from locust import HttpLocust, TaskSet, task
class UserBehavior(TaskSet):
def on_start(self):
''' on_start is called when a Locust start before any task is scheduled '''
self.path()
@task()
def path(self):
url = self.locust.host + '/path'
headers = {
'header': ... | [
"aldo@nullcube.com"
] | aldo@nullcube.com |
d52d3f946f64395395f21a74aa35b9864124e73b | 0df0bd96bea3e3f8ed8d339f0180c1a9fe529471 | /shipments/migrations/0012_auto_20141029_1158.py | 26fb7a1bdffad5cebdf7f0e74d184a1b6a505803 | [
"BSD-3-Clause"
] | permissive | theirc/CTS | d04141c4a7db1c32e915d65369e286c9c04ab9b9 | 43eb3e3b78c19f9e1dc02158ca12fc0c5d6bb270 | refs/heads/develop | 2020-12-03T05:26:07.564049 | 2018-03-21T14:47:53 | 2018-03-21T14:47:53 | 35,951,007 | 25 | 9 | BSD-3-Clause | 2018-03-21T14:47:54 | 2015-05-20T13:52:48 | JavaScript | UTF-8 | Python | false | false | 702 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('shipments', '0011_auto_20141023_1542'),
]
operations = [
migrations.AlterField(
model_name='location',
... | [
"dpoirier@caktusgroup.com"
] | dpoirier@caktusgroup.com |
5cce55f013cb0b6b48a89f9691a49b9ad2e6d83b | 18f2d1458103e1aacaaa14d9ff52654da0154dc8 | /src/trainers/da.py | bf333759f7cf0480d3a8e49372caa521914a290b | [] | no_license | yamad07/IADA | 4fbda5b2e7cdb5efd83f2bd2960bfb8dcfd0d455 | 7dbda1eb336f44e57567f4541e14b31304a4e381 | refs/heads/master | 2020-04-10T23:18:01.809883 | 2019-01-30T16:05:21 | 2019-01-30T16:05:21 | 161,347,800 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,422 | py | import torch.optim as optim
import torch
import torch.nn as nn
import torch.nn.functional as F
class DomainAdversarialTrainer:
def __init__(self, experiment, source_encoder, target_encoder, domain_discriminator, source_domain_discriminator,
source_generator, data_loader, valid_data_loader, classifier)... | [
"yuhsukeshootsfc@gmail.com"
] | yuhsukeshootsfc@gmail.com |
c8cc0bf1366841760b28e2cc11fcc4859a8afe9d | 8810b14fa59d749c755fc4c27281a3894674cde3 | /coding_challenges/algo/optimization/latest_set.py | 4f9833e664dbbf810e264593b7ab61090aac2d8f | [] | no_license | Yamp/home_lab | e76f23af12c794c38422623f92921617e371c9fe | 5c6d5b13bb0b845b7af8c1a94b42e2dad368e373 | refs/heads/master | 2022-03-03T12:32:06.243021 | 2020-04-01T10:34:04 | 2020-04-01T10:34:04 | 224,238,847 | 0 | 1 | null | 2022-02-10T21:53:23 | 2019-11-26T16:35:58 | Jupyter Notebook | UTF-8 | Python | false | false | 20 | py | # class LatestSet:
| [
"yampolskiydv@gmail.com"
] | yampolskiydv@gmail.com |
fc7808e28aefa7f89ef9a9bd7a27c3525fb6ef52 | 71e838612daddbfc9bda01d9ba0ca76fab48c3bd | /full-stack-web-app/api/DjangoAPI/EmployeeApp/serializers.py | 712aa9a1fbbb1256c71c9576bc81feb251dcd9c1 | [] | no_license | Nourreddine1920/full-stack-web-app | d77e23955f3f11f853af51fbf02504e6237458a1 | 11a793c371d29ee592ee38c1ccfc83fb9b0401ce | refs/heads/main | 2023-06-29T21:38:57.416787 | 2021-08-06T12:50:15 | 2021-08-06T12:50:15 | 393,375,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from rest_framework import serializers
from EmployeeApp.models import Departments,Employees
class DepartmentSerializer(serializers.ModelSerializer):
class Meta:
model=Departments
fields=('DepartmentId','DepartmentName')
class EmployeeSerializer(serializers.ModelSerializer):
class Met... | [
"Vous@exemple.com"
] | Vous@exemple.com |
34a752ae52ae267613e3396371a6eb4159ae908f | 4520f56d4952c788e198ee7eee39911c9a76c60f | /03_Bigdata/02_Standardization_Analysis/2. Excel/7pandas_column_by_index.py | 3ca0166f2800315d790994cafc78d6cdd7fced1e | [] | no_license | SuHyeonJung/iot_python2019 | bef8877a1cd41981ad2125291f5af44f4fd1701c | 7860630ae28c53677a3c2761c9e997b28ea55f26 | refs/heads/master | 2020-06-14T22:18:27.503781 | 2019-11-08T05:50:41 | 2019-11-08T05:50:41 | 195,142,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import sys
import pandas as pd
input_file = sys.argv[1]
output_file = sys.argv[2]
data_frame = pd.read_excel(input_file, 'january_2013', index_col=None)
data_frame_column_by_index = data_frame.iloc[:, [1, 4]]
writer = pd.ExcelWriter(output_file)
data_frame_column_by_index.to_excel(writer, sheet_name='jan_13_output',... | [
"galma94815@naver.com"
] | galma94815@naver.com |
0e4c3531a57387a683f6035ab1f6f0d2d72d85ed | e90a772733e73e45b4cdbb5f240ef3b4a9e71de1 | /18. 4Sum.py | 1bf91d01a1717a31da740d4bb0ec68e689638928 | [] | no_license | jiewu-stanford/leetcode | 102829fcbcace17909e4de49c01c3d705b6e6e3a | cbd47f713d3307f900daf55c8f27301c70542fc4 | refs/heads/master | 2022-05-28T18:25:00.885047 | 2022-05-18T05:16:22 | 2022-05-18T05:16:22 | 214,486,622 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | '''
Title : 18. 4Sum
Problem : https://leetcode.com/problems/4sum/
'''
''' pair up to convert to the 2-sum problem '''
class Solution:
def fourSum(self, nums: List[int], target: int) -> List[List[int]]:
pair_nums = {}
for i in range(len(nums)-1):
for j in range(i+1, len(nums)):
... | [
"bayernscience@hotmail.com"
] | bayernscience@hotmail.com |
6d2b146447d9c996712e4fcf47c58fe6cf589442 | 8e127527301ef9439960725784d5522af824bc9b | /account_flujo_caja_it/__manifest__.py | cee213aea2a18577408ba87507f6b8fbdac513ff | [] | no_license | Makelator/heleo | b8fcf2beef7359ec91c20ef8930753bd0f6f4670 | a5a04203f1f19f813f495a484e590cd22886edf7 | refs/heads/master | 2020-07-30T15:09:27.224489 | 2019-09-23T05:43:10 | 2019-09-23T05:43:10 | 210,272,436 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # -*- encoding: utf-8 -*-
{
'name': 'Saldos Comprobantes Analisis IT Extended',
'category': 'account',
'author': 'ITGRUPO-COMPATIBLE-BO',
'depends': ['analisis_saldos_comprobantes_periodo_it','account_sheet_work','account_multipayment_invoices_it','account_multipayment_invoices_it_advance'],
'version': '1.0',
'de... | [
"angel_afla@hotmail.com"
] | angel_afla@hotmail.com |
ff7c384224d512d1d88787ac98df6f64a52eb2ab | ca6e4edfc31439aeaed4b8e9e75ea9c8b679c44f | /autofill_users.py | ace539b5d555e832bdd4a7310c5b2ed3644d450a | [
"MIT"
] | permissive | prateekchandan/pickup-server | b74f949c5d3b0471d7318fd72417b3bd0b1ccfc2 | 9132c3ef9c0e95ba34a69d9ed2a9fb980356372a | refs/heads/master | 2021-01-22T15:58:43.838560 | 2015-10-07T15:41:23 | 2015-10-07T15:41:23 | 33,261,955 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | import requests
import os
import json
loginURL = "http://pickup.prateekchandan.me/add_user"
HTTPSession = requests.session()
start_locations=['Larsen+Tourbo+Powai','IIT+Bombay+Hostel+9','Hiranandani+Hospital','Hiranandani','Kanjur+Marg+Station',
'Chandivali','Raheja+Vihar','Supreme+Powai','Galleria+Hiranandani','Powai+... | [
"kalpeshk2011@gmail.com"
] | kalpeshk2011@gmail.com |
2c2c6faaaf98f2e09011c3f88cd4fbe50341b325 | 24e7e0dfaaeaca8f911b40fcc2937342a0f278fd | /venv/Lib/site-packages/psutil/_common.py | b7a5478658fe78b9a1537dd893a3a77cc095581f | [
"MIT"
] | permissive | BimiLevi/Covid19 | 90e234c639192d62bb87364ef96d6a46d8268fa0 | 5f07a9a4609383c02597373d76d6b6485d47936e | refs/heads/master | 2023-08-04T13:13:44.480700 | 2023-08-01T08:36:36 | 2023-08-01T08:36:36 | 288,455,446 | 1 | 0 | MIT | 2021-01-22T19:36:26 | 2020-08-18T12:53:43 | HTML | UTF-8 | Python | false | false | 26,159 | py | # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Common objects shared by __init__.py and _ps*.py modules."""
# Note: this module is imported by setup.py so it should not import
# psutil or third-part... | [
"50989568+BimiLevi@users.noreply.github.com"
] | 50989568+BimiLevi@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.