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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e28006528c866157b5832c15de8f00c12995b330 | 890c8b8e90e516a5a3880eca9b2d217662fe7d84 | /armulator/armv6/opcodes/abstract_opcodes/ldr_register_thumb.py | 51fbe8abfb33e0f75de30bf0387a9fba04663e45 | [
"MIT"
] | permissive | doronz88/armulator | b864135996f876c7857b79a314d4aa06cc19c549 | 0294feac2785c8947e5943ac0c34f941ee4b5fff | refs/heads/master | 2022-11-05T08:14:42.405335 | 2020-06-18T23:53:17 | 2020-06-18T23:53:17 | 273,363,061 | 2 | 0 | null | 2020-06-18T23:51:03 | 2020-06-18T23:51:02 | null | UTF-8 | Python | false | false | 1,698 | py | from armulator.armv6.shift import shift
from armulator.armv6.bits_ops import add
from bitstring import BitArray
from armulator.armv6.arm_exceptions import EndOfInstruction
from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode
class LdrRegisterThumb(AbstractOpcode):
def __init__(self, m, t, n, shift_t... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
df4245bfa348671c4ff60bc41a2a9c17ff75d4f3 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/bw0.py | d035dd859b4fa0474da462854623b73eb560a2cf | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
30ecef27252bd418cd76a0e181cac9ff80ecba28 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/numpy/core/tests/test_ufunc.py | 852044d32fcc6d27012c0a43a2e814b976d7154c | [
"GPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"GPL-3.0-or-later",
"GCC-exception-3.1",
"BSD-3-Clause",
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 108,151 | py | import warnings
import itertools
import sys
import pytest
import numpy as np
import numpy.core._umath_tests as umt
import numpy.linalg._umath_linalg as uml
import numpy.core._operand_flag_tests as opflag_tests
import numpy.core._rational_tests as _rational_tests
from numpy.testing import (
assert_, assert_equal, ... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
5e7189bd3c62d63d5b04c748cb59bb1f8a85acb2 | 5ea9a3185b8abbf536600bde73ffa5293c76913d | /django_storage/urls.py | 5ca910b69f1f7e96a9de80008f0cb58e5e6322ad | [] | no_license | antikytheraton/django_storage | fd3fcaaeb93d236e2cc626e2326a8909f8fad488 | 7c3f8258f3a558ab99506b160659a824053db700 | refs/heads/master | 2021-07-08T19:17:46.690089 | 2017-10-07T02:16:20 | 2017-10-07T02:16:20 | 106,065,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | """django_storage URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
C... | [
"binauralvoice@gmail.com"
] | binauralvoice@gmail.com |
83b555f16126a27acc97627eb10cd3415912555f | c124cd627d1cd2ecc2056a932db4c5c3203943f2 | /data/atramData/sites/umms/components/umms_appoint/recruitment_section/items/identifycandidate.py | 15b936079177324e9747e3b5eadd4ee90c2449b5 | [] | no_license | longooglite/mps | 8fb2093b6a9f483a2ce4543949f7cbf0b280a1f1 | fd8c0d1491b80074fdf5a8c923d50e55a1991ad0 | refs/heads/master | 2021-01-10T08:17:15.852252 | 2016-02-29T21:07:04 | 2016-02-29T21:07:04 | 52,824,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | # [Copyright]
# SmartPath v1.0
# Copyright 2014-2015 Mountain Pass Solutions, Inc.
# This unpublished material is proprietary to Mountain Pass Solutions, Inc.
# [End Copyright]
identifycandidate = {
"code": "identifycandidate",
"descr": "Identify Candidate",
"header": "Identify Candidate",
"componentType": "Task",... | [
"longuskikirk@gmail.com"
] | longuskikirk@gmail.com |
870eacbbe2dc97704de593953b693029ce772637 | c220d55a0a5c7597fe7e86a3dfebdd66695a3b2f | /Python/text_algnment.py | 556a0ff4be82b66fddeb3ca1b3909fe9021529af | [] | no_license | eLtronicsVilla/Hackerrank-Problems-Solutions | 356677a2edce6f5d3f57e5f32a8be058515779bf | a24c78f99f10fb8dca69e0e0d6c560d7c0215a29 | refs/heads/master | 2020-05-21T18:15:21.893538 | 2019-05-18T07:54:41 | 2019-05-18T07:54:41 | 186,129,319 | 0 | 0 | null | 2019-05-18T07:54:42 | 2019-05-11T12:19:33 | null | UTF-8 | Python | false | false | 908 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat May 18 12:29:44 2019
@author: brgupta
"""
# Problem statement
# https://www.hackerrank.com/challenges/text-alignment/problem
#Replace all ______ with rjust, ljust or center.
thickness = int(input()) #This must be an odd number
c = 'H'
#Top Cone
f... | [
"eltronicsvilla17@gmail.com"
] | eltronicsvilla17@gmail.com |
c46cfb66f6bcb2d0f920aa611e165abe7fe4d9be | b2e278f6d606ec0d3e6fa3e15be2f9ed35745c1e | /ncolony/beatcheck.py | 7461221c187dfa2df8febf60a32d24ac340ac807 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | kurtbrose/ncolony | deeaf2c1947aa11fcdad00f9071bc3e8067f026e | bebbc612866a8bf405dda2ec94ce60fd61b4f3c9 | refs/heads/master | 2023-08-18T08:56:58.777571 | 2017-09-19T03:43:27 | 2017-09-19T03:43:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,824 | py | # Copyright (c) Moshe Zadka
# See LICENSE for details.
"""ncolony.beatcheck
====================
Check heartbeats of processes that should beat.
Usually used as
$ twistd -n ncolony_beatcheck --config config --messages messages
It will watch the configurations, and send a restart message
for any process that does n... | [
"zadka.moshe@gmail.com"
] | zadka.moshe@gmail.com |
423f1675d5bcef619a2c564e602dc00a23745bdc | 60d9f0ea7764b67b8e2f5b187f9bd98be0ddd93a | /scripts/s3_sed.py | 499e01ac11207255f75bca28098b09e9e2fd744b | [
"Apache-2.0"
] | permissive | omad/dratools | 252136d972a750a228c5d84c3c95293d671a3145 | 17d81dd5e496c5539b0613f4bf25655230bd9f4f | refs/heads/master | 2023-02-03T10:36:52.677072 | 2023-01-19T23:01:16 | 2023-01-19T23:01:16 | 184,683,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | import click
from odc.aws import s3_client, s3_fetch, s3_dump
from tqdm import tqdm
s3 = None
@click.command('s3-find')
@click.option('--no-sign-request', is_flag=True,
help='Do not sign AWS S3 requests')
@click.argument('file_list', type=click.File('r'), nargs=1)
def cli(file_list, no_sign_request=Non... | [
"damien@omad.net"
] | damien@omad.net |
cae804eeca224b7c810f2ca72e04cb19244e2022 | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/vietlongplazacomvn.py | beadae51c3d65808932018124f7c2fae1011fb27 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//td[@id='pro-detail-col-info']/div[@id='product-detail-name']/h1",
'price' : "//div[@class='product-list-price']/p[@class='cssPrice']... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
d355d73ff3bc201e202f27d27a78be42b0db7872 | 8941c8ca788b1a45bfad23ca26ebfa357c13f09b | /Lyceum/Mars_Sql_Alchemy/zapros4.py | 1b12b239fe471f0a4b6e70c4256bc310a8a2b2bc | [] | no_license | MysteriousSonOfGod/Python-2 | d1dfdf094f4a763758bfc7e1777c2cd6efbd0809 | 0d488906e4b5e3897da6b7cb077815740e82fd84 | refs/heads/master | 2023-02-05T13:38:25.673248 | 2020-12-22T13:54:02 | 2020-12-22T13:54:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from data import db_session
from data import users
db = input()
db_session.global_init(db)
session = db_session.create_session()
users = session.query(users.User).filter((users.User.position.like("%chief%") | users.User.position.like("%middle%")))
for user in users:
print(f'{user} {user.position}')
# db/mars_ex... | [
"realandmir@gmail.com"
] | realandmir@gmail.com |
442ee1ed35e53bdf671ddf356b0bf7274dddb5a8 | 1beb0d3a73a97c5367cc54d37b34a7536b975d68 | /practice/morethread.py | 37fdcd18909e15f831a7ec9abf022bb055e2f262 | [] | no_license | Hardworking-tester/HuaYing | a24aa271afe81c95241818586b1d1d5abd6b4282 | 4dd065806f20bfdec885fa2b40f2c22e5a8d4f15 | refs/heads/master | 2021-06-03T10:06:33.604494 | 2017-06-22T09:32:13 | 2017-06-22T09:32:13 | 42,507,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # encoding:utf-8
# author:wwg
from selenium import webdriver
import threading
import time
class MyThread(threading.Thread):
def __init__(self,num):
threading.Thread.__init__(self)
self.num=num
def run(self):
start=time.time()
br=webdriver.Firefox()
br.get("https://www.b... | [
"373391120@qq.com"
] | 373391120@qq.com |
04628def6f79e73ee5273d9991b2f50dc87b56f5 | d5552cda58e251e6a5983876681be8f641dea86f | /src/transformers/models/m2m_100/modeling_m2m_100.py | f7ef189a155d636e6620922218e36aa244c6899c | [
"Apache-2.0"
] | permissive | patrickvonplaten/transformers | feb121e1ee82c317ac7561836b8f95a7de25fc1f | f738502979f6787609dcf0180e6606f464692e27 | refs/heads/master | 2022-12-08T10:15:34.743198 | 2022-11-22T11:00:20 | 2022-11-22T11:00:20 | 226,201,271 | 6 | 1 | Apache-2.0 | 2019-12-05T22:39:46 | 2019-12-05T22:39:45 | null | UTF-8 | Python | false | false | 65,124 | py | # coding=utf-8
# Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. 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/... | [
"noreply@github.com"
] | patrickvonplaten.noreply@github.com |
30e9218fa343c615c68da4f7849636cc0abf4779 | bd46fe963f29e11691143aad5ae82ea7f974f3eb | /test/mitmproxy/test_types.py | 81aaed7493a4fe6d249d5e18806cfefaea4430f0 | [
"MIT"
] | permissive | 1ezss/mitmproxy | a4a934a8fd2d637a532009c46cab2ff3c57c2520 | 6ef6286d8e53a0a9045fa41956e65dae2e41ab6d | refs/heads/master | 2021-08-30T16:53:20.112680 | 2017-12-18T18:50:52 | 2017-12-18T18:50:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,604 | py | import pytest
import os
import typing
import contextlib
from mitmproxy.test import tutils
import mitmproxy.exceptions
import mitmproxy.types
from mitmproxy.test import taddons
from mitmproxy.test import tflow
from mitmproxy import command
from mitmproxy import flow
from . import test_command
@contextlib.contextmana... | [
"aldo@nullcube.com"
] | aldo@nullcube.com |
49e8a6b69a433379a569875caec380084d2fd049 | 1e0f9d3829665c74a5b4ee79531520fe4cbe2730 | /clean_data.py | 557cb06e5dae140dc2261c42809c0787927e0ce7 | [] | no_license | aparna-arr/AnalysisProject | bead344eda6159f83ac19de3be533fdd3acf2087 | f0d3068e0ac7f15255092f39f000c8009ceb57a2 | refs/heads/master | 2023-05-03T10:56:40.511706 | 2019-05-03T18:39:56 | 2019-05-03T18:39:56 | 181,940,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #!/share/software/user/open/python/3.6.1/bin/python3
import sys
if len(sys.argv) < 3:
print("usage: clean_data.py <downloaded.csv> <output_name.tsv>\n", file = sys.stderr)
sys.exit(1)
downloadFile = sys.argv[1]
outputFilename = sys.argv[2]
dfh = open(downloadFile, "r")
dout = open(outputFilename, "w")
dout.write(... | [
"aparna.arr@gmail.com"
] | aparna.arr@gmail.com |
f6e47fbd2cd310fabb799996d61d9fecb0edcf08 | 480e33f95eec2e471c563d4c0661784c92396368 | /CondTools/SiStrip/test/SiStripFedCablingBuilder_cfg.py | e5c0d47c76984fe444dc432b4f022b77a68f190d | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 2,154 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("FedCablingBuilder")
process.MessageLogger = cms.Service("MessageLogger",
debugModules = cms.untracked.vstring(''),
cablingBuilder = cms.untracked.PSet(
threshold = cms.untracked.string('INFO')
),
destinations = cms.untracked.vstri... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
ec51eedd020b21502d675b80cc0a86cc425478a8 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv2/mmdet/models/anchor_heads/decoupled_solo_light_head.py | ac6b8230228ba4ec77d1bc842dd5307db15675f8 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 21,534 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
80f02038f06487eee9227b752dc0cff496435fd7 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/EGL/ANGLE/window_fixed_size.py | cf97b40a7528e22f46fd4699ce930d11b5892813 | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 569 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.EGL import _types as _cs
# End users want this...
from OpenGL.raw.EGL._types import *
from OpenGL.raw.EGL import _errors
from OpenGL.constant import Constant as _C
import ctype... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
93e7ded10a0e1b59d1fad0eccde6bf12d2f9c630 | d281aed005dae06a723c01be4d516b8b5333bc15 | /Array/MajorityElement.py | ef16af12bd9e7aaa5a24de99e1ef3706bdd0ed09 | [] | no_license | tcandzq/LeetCode | 4133d17245b2ff14e06ce69ee640a786fad5186d | af5dc310534f12a6ded10226ce05aba65ec119d9 | refs/heads/master | 2022-08-25T13:57:07.350906 | 2022-08-21T09:46:09 | 2022-08-21T09:46:09 | 200,478,099 | 23 | 6 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # -*- coding: utf-8 -*-
# @File : MajorityElement.py
# @Date : 2021-06-14
# @Author : tc
"""
题号:169. 多数元素
给定一个大小为 n 的数组,找到其中的多数元素。多数元素是指在数组中出现次数 大于 ⌊ n/2 ⌋ 的元素。
你可以假设数组是非空的,并且给定的数组总是存在多数元素。
示例 1:
输入:[3,2,3]
输出:3
示例 2:
输入:[2,2,1,1,1,2,2]
输出:2
进阶:
尝试设计时间复杂度为 O(n)、空间复杂度为 O(1) 的算法解决此问题。
使用摩尔投票法
"""
from typi... | [
"2448424636@qq.com"
] | 2448424636@qq.com |
9808b4581cc3f641d8daf02daea56ecfcb5b01ed | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2296/60631/291065.py | a4d720bbeb3002b562678cf3797e12d4d4aee4fd | [] | 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 | 1,025 | py | s=input()
d=[]
for i in range(int(s.split(' ')[0])+1):
d.append(input())
if 1==2:
pass
elif d==['1 2 3 -3', '2 4 5 3', '4 0 0 1', '5 8 9 0', '8 0 0 1', '9 0 0 6', '3 6 7 -9', '6 0 0 2', '7 0 0 1', '-9']:
print(1)
elif d==['29 26 32 -70', '26 33 34 -19', '33 0 0 31', '34 0 0 -94', '32 15 17 76', '15 3 0 -28'... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
eca57f31e9802ba4328939eec984af1f160294f6 | 73de82808577f5e2da4b76a154c4e6d43c6cc2d4 | /backend/wallet/api/v1/serializers.py | c044e55d54ef96d4be9c7dda7a87251f7e8d2340 | [] | no_license | crowdbotics-apps/alpha-dty-26245 | f3c3dc059289458b3ad27afa34acced6820e3a07 | 7ee5cbcb689534cb6415b5b4bfceeda3f43e1e65 | refs/heads/master | 2023-04-24T13:29:18.879301 | 2021-05-06T11:02:46 | 2021-05-06T11:02:46 | 364,878,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | from rest_framework import serializers
from wallet.models import (
PaymentTransaction,
PaymentMethod,
TaskerWallet,
TaskerPaymentAccount,
CustomerWallet,
)
class TaskerWalletSerializer(serializers.ModelSerializer):
class Meta:
model = TaskerWallet
fields = "__all__"
class Tas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
049dfff069929c8e2c65f2b066c979d7bfb17778 | b3455474da0bc27c913ff88908be0d0bddba352d | /4.Analysis/Chapter.03_Excel/8)pandas_value_in_set.py | 8e188d8067ac2a20faec45648ba3087ce76a5ce5 | [] | no_license | rntva/JumpToPython | 7286bc94e40b553fa7b9fbca7934f2e35f63b54e | 090f0ed5bf28ae7832e5edde11936b71b4fb324b | refs/heads/master | 2021-05-01T02:33:44.528975 | 2018-07-18T08:24:07 | 2018-07-18T08:24:07 | 121,182,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!/usr/bin/env python3
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)
important_date = ["01/24/2013", "01/31/2013"]
data_frame_value_in_set = data_frame[data_frame["Purchase Date"].isin(important_date)]
writer ... | [
"ltrodl@gmail.com"
] | ltrodl@gmail.com |
874e1406ac2f5f2aebbd9596a503a5a03c41ec9f | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1859.py | 9a11066eea35baf199d4b6510c65419101a0c599 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,368 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=62
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
cb66633d69cdc51aabed0dce4c52fdc9d9046f0c | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=31/sched.py | c3f11e6cb2e1ff4b81896f5c25e2978f581d045c | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | -S 0 -X RUN -Q 0 -L 1 113 400
-S 0 -X RUN -Q 0 -L 1 57 250
-S 0 -X RUN -Q 0 -L 1 48 175
-S 0 -X RUN -Q 0 -L 1 44 300
-S 1 -X RUN -Q 0 -L 1 42 150
-S 2 -X RUN -Q 1 -L 1 42 200
-S 2 -X RUN -Q 1 -L 1 39 250
-S 2 -X RUN -Q 1 -L 1 35 175
-S 2 -X RUN -Q 1 -L 1 34 150
-S 3 -X RUN -Q 2 -L ... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
e264fcd14c8db9adc7b7a2c16860d352a8256379 | f83f053278a036e18466d85585bc03a28c0f140a | /tests/formats/dataclass/parsers/test_mixins.py | 209484d24ae72b068ebc67cf01a8379ef99b2d78 | [
"MIT"
] | permissive | finswimmer/xsdata | dd951124e378bf9f4d8bd6939e4ebe542c677ee2 | eed822b83f362f48561a7d116e181a5422ff52dd | refs/heads/master | 2023-05-05T21:16:20.693559 | 2021-05-31T16:11:44 | 2021-05-31T16:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | from unittest.case import TestCase
from tests.fixtures.books import Books
from tests.fixtures.books.fixtures import books
from tests.fixtures.books.fixtures import events
from xsdata.exceptions import XmlHandlerError
from xsdata.formats.dataclass.parsers.mixins import EventsHandler
from xsdata.formats.dataclass.parser... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
b9e3150a7713d747103c0b356c213ba7eb9f6bfc | e2ab27c280b290ecfc3c34a5e76830dfe18d5b43 | /vspk/v5_0/nucommand.py | 74e36399a04f9bc0edf6d27f9da2a15c8e665b58 | [
"BSD-3-Clause"
] | permissive | atifs/vspk-python | 357e89b69c8f25a96d59e618df24032737c275d8 | adb011861d938d1a8cd27e4e651d28d3bf4e2ae7 | refs/heads/master | 2020-03-17T07:15:06.301100 | 2018-02-21T02:47:42 | 2018-02-21T02:47:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,306 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrigh... | [
"corentin.henry@nokia.com"
] | corentin.henry@nokia.com |
9f1411c79f876a84d8a6883959fec6a1df518fd1 | e60c7870161083529ee488dea9984a0ff04a896d | /CES-22/2obimestre/aula12/cookies-exemplo/venv/lib/python3.6/copy.py | a29e163de3eb36d30145124a76c68a5b9c3cb3f4 | [] | no_license | Claudiocfls/ITA-projects | 68b5512464bd55b2d8a62dbcff95ecbe6540e592 | 1380710276f5ffb3298de246ea1b5a5580716ae4 | refs/heads/master | 2021-01-24T00:53:56.548413 | 2018-06-29T20:37:15 | 2018-06-29T20:37:15 | 122,785,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /home/claudio/.pyenv/versions/3.6.4/lib/python3.6/copy.py | [
"claudiosilva.cfls@gmail.com"
] | claudiosilva.cfls@gmail.com |
63de83bc58b69a246b3000aac1ba64b7ce19d9a1 | 462c56e7454c97e0541588b9be66a4e216ea20fd | /133.clone-graph.py | 81d21631ec87e2710b8dbedfb34003bd67d6784d | [] | no_license | LouisYLWang/leetcode_python | d5ac6289e33c5d027f248aa3e7dd66291354941c | 2ecaeed38178819480388b5742bc2ea12009ae16 | refs/heads/master | 2020-05-27T08:38:48.532000 | 2019-12-28T07:08:57 | 2019-12-28T07:08:57 | 188,549,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | #
# @lc app=leetcode id=133 lang=python3
#
# [133] Clone Graph
#
# @lc code=start
"""
# Definition for a Node.
class Node:
def __init__(self, val, neighbors):
self.val = val
self.neighbors = neighbors
"""
class Solution(object):
def cloneGraph(self, node):
"""
:type node: Node
... | [
"louis.yl.wang@outlook.com"
] | louis.yl.wang@outlook.com |
f092d8f5c0700bd1f0b7ef271f3d6632db2faa22 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /8vBvgJMc2uQJpD6d7_16.py | bb784952c2b0da9b4ee9ef08d2ea35759ff349aa | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | """
Create a function that returns a list containing the prime factors of whatever
integer is passed to it.
### Examples
prime_factors(20) ➞ [2, 2, 5]
prime_factors(100) ➞ [2, 2, 5, 5]
prime_factors(8912234) ➞ [2, 47, 94811]
### Notes
* Implement your solution using trial division.
* Yo... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5160648ff6181e00a8245bb666375417f509ab68 | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/3d_20200219112629.py | 1f977510511dff31a480c6ee7a600b119cdd23c8 | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import pylab as pl
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
fig = pl.figure()
ax = Axes3D(fig)
X = np.arange(-10, 10, 0.25)
Y = np.arange(-10, 10, 0.25)
X, Y = np.meshgrid(X, Y)
ax = int(5) #, ay = 0.5
print(int(ax))
Z = np.sqrt(X ** 2 + Y ** 3)
ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=p... | [
"jaamunozr@gmail.com"
] | jaamunozr@gmail.com |
c52ee2135e6956f261165149fb17fce093fe94b6 | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/google/drive_files_download_prepare_20210215011515.py | 0e37e5e441bd13cdadecc7f924be0f4e7330648a | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,219 | py | from __future__ import print_function
import pickle
import os.path
import io
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.http import MediaIoBaseDownload
from oauth2client.service_account impor... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
4a78a093202a039af99d5d6f6fa91fbb5996a7b5 | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201124144521.py | 8af4cd733221c3bf6f1b3de3521f5b42a13a09fd | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | from django.db import models
from wagtail.contrib.forms.models import AbstractEmailForm
# Create your models here.
class NewsPage(AbstractEmailForm):
tempalte ='news/news_page.html'
leanding_page_template = 'news/news_page_leading.html'
subpage_types = []
max_coun = 1
intro = RichTextField(blan... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
6a757cada6a40ec963004ced739f41d9c6365765 | 350db570521d3fc43f07df645addb9d6e648c17e | /0349_Intersection_of_Two_Arrays/solution.py | 09b0c446678c615e5439884d5e2bd613446fb3e3 | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | '''
349. Intersection of Two Arrays
Given two arrays, write a function to compute their intersection.
Example:
Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2].
Note:
Each element in the result must be unique.
The result can be in any order.
'''
def arrays_interseciton(nums1, nums2):
return set(nums1).i... | [
"bhuang@rms.com"
] | bhuang@rms.com |
27e62b20254e8681133d182d6482ca8c61c3f851 | 9505e191cb287507c7df05212ab562bea1eda553 | /莫烦强化学习/Prioritized_Replay_DQN/RL_brain.py | f160c6eb97470f9a107bb19a4008ad59759b5c9e | [
"MIT"
] | permissive | iisdd/Courses | c7a662305f3efe7d61eb23f766381290b1107bb8 | a47d202e0d7e1ba85a38c6fe3dd9619eceb1045c | refs/heads/main | 2023-04-15T17:40:36.474322 | 2021-04-27T14:31:42 | 2021-04-27T14:31:42 | 316,904,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,286 | py | """
说实话这个看不懂..., 只知道越好的经验越可能被sample到
The DQN improvement: Prioritized Experience Replay (based on https://arxiv.org/abs/1511.05952)
View more on my tutorial page: https://morvanzhou.github.io/tutorials/
Using:
Tensorflow: 1.0
gym: 0.8.0
"""
import numpy as np
import tensorflow.compat.v1 as tf
tf.disable_v2_... | [
"noreply@github.com"
] | iisdd.noreply@github.com |
724d0bb4e0744c1d6d69e5e19135a4287262044b | eb0711915d6bba2f765f052736e33ac9a9a397a6 | /HE0435/simulation/rebin/rebin_arc.py~ | 337e999780ea9cca34a003793c200dfa2a4d4cf5 | [] | no_license | dartoon/GL_HostGalaxy | cd2166f273ae7e0397a7d2d39f760ab59e86f014 | 7469f1c1e640d176a75cc6e9497920e494ad656a | refs/heads/master | 2016-08-11T13:27:17.545360 | 2016-04-07T19:04:57 | 2016-04-07T19:04:57 | 46,524,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | #from high resoluted images (sub=6) to lower one (bin together)
from numpy import *
from block import *
import pyfits
file1 = open('../pylens/HE0435.txt','r')
para = loadtxt(file1)
file1.close()
#print len(para)
ln=len(para)
for l in range(ln):
filename='../fits/HE_arc-{0}.fits'.format(l+1) # take one image
d =... | [
"dingxuheng@mail.bnu.edu.cn"
] | dingxuheng@mail.bnu.edu.cn | |
173f98b7e79f6ff249b1f5a76b04e023a7ef9b8b | 17acb8e20f9a24b16ce3651302fc2d7fc7b887a6 | /src/utils/aiml_generator/generator.py | 5f0982bb130883d7337ec983090811960cd1d022 | [
"MIT"
] | permissive | cen-ai/program-y | 91052fdc11aec0f60311e3429895fac489d8ce54 | a753667638147544c54dbebd9f1c8f9ae7f2159e | refs/heads/master | 2020-03-22T15:11:07.896885 | 2018-10-15T22:13:58 | 2018-10-15T22:13:58 | 140,234,173 | 5 | 5 | NOASSERTION | 2019-01-03T09:09:07 | 2018-07-09T05:11:08 | Python | UTF-8 | Python | false | false | 8,195 | py | import os
import csv
import os.path
from optparse import OptionParser
class CmdArgsHandler:
def validate_args(self):
parser = OptionParser()
parser.add_option("-f", "--file", dest="csvloc",
help="Specify the location and filename of the CSV file.")
parser.add_opt... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
8559ef8a1708043e87dc324c69fdc5c2fd4a9cc5 | 5306217707f99ff1d082bb974db0ccebf948763f | /ntds/management/commands/load_ntd_reporters.py | 6a982e8e91b60fd7022f626c0220309161086c87 | [] | no_license | sparkplug/rapidsms-ntds | 05b64e67d5bcf751029653eb2f2a64e331e9a9c9 | 8b42c749db4c34e43eb39f3c52d540c84a8b810e | refs/heads/master | 2021-01-16T17:45:09.821171 | 2016-02-15T20:50:26 | 2016-02-15T20:50:26 | 25,920,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.core.management import BaseCommand
from rapidsms_xforms.models import *
from ntds.utils import validate_number
from rapidsms.contrib.locations.models import Location
from django.utils.safestring import mark_safe
from ntds.models import Reporter
import operator
from ... | [
"mossplix@gmail.com"
] | mossplix@gmail.com |
f7ed33b9024bcb5172bdd606904702df2764077f | f043fee89c0e2030386adcebb74d08164b7b974f | /reagent/net_builder/continuous_actor/fully_connected.py | d4e4b0544a3a1aedfbc18dfbfa123066351d9bac | [
"BSD-3-Clause"
] | permissive | IronOnet/ReAgent | c2d22e7dc63eaf61e0a50e9343110c6df79a9b40 | 67434f458cde1f2c946237e866a73392279a7ede | refs/heads/master | 2023-04-06T17:31:59.751700 | 2021-04-12T21:56:19 | 2021-04-12T21:57:05 | 357,700,053 | 2 | 0 | BSD-3-Clause | 2021-04-13T22:04:09 | 2021-04-13T22:04:09 | null | UTF-8 | Python | false | false | 1,998 | py | #!/usr/bin/env python3
from typing import List, Optional
from reagent.core.dataclasses import dataclass, field
from reagent.core.parameters import NormalizationData, param_hash
from reagent.models.actor import FullyConnectedActor
from reagent.models.base import ModelBase
from reagent.net_builder.continuous_actor_net_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4ca9ecc74b019cd4659ed7ea6d8725e8ecdc45b2 | 780fa3fed7e5890f26f9c952f10cefbacfa6e09a | /recursive_convolution.py | 69f1fc591f8ffd4d30a7c182f4f9dc8aae9f26f8 | [] | no_license | jsrimr/code_during_KTaiacadmey | d508303417fe0916f98f7cd65c6521adb0a933fa | ab98b1613d9cb8ca77cd2462e0a42664b71bd758 | refs/heads/master | 2021-12-03T08:09:01.199462 | 2018-06-25T05:49:07 | 2018-06-25T05:49:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 22 17:18:19 2018
@author: ktai12
"""
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
sess=tf.InteractiveSession()
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/"... | [
"jsrimr@naver.com"
] | jsrimr@naver.com |
aa6ea506e424f5b0a50f4537652395b31a901596 | 75e1d9446cb1fca5c6a79ad0ba7f38268df1161f | /Python Programs/rotate-matrix-pattern.py | baeb1e16ee8363e61f12b29a05e4442f2d438d48 | [
"CC0-1.0"
] | permissive | muhammad-masood-ur-rehman/Skillrack | 6e9b6d93680dfef6f40783f02ded8a0d4283c98a | 71a25417c89d0efab40ee6229ccd758b26ae4312 | refs/heads/main | 2023-02-03T16:45:54.462561 | 2020-12-23T08:36:28 | 2020-12-23T08:36:28 | 324,221,340 | 4 | 1 | CC0-1.0 | 2020-12-24T19:12:54 | 2020-12-24T19:12:54 | null | UTF-8 | Python | false | false | 1,377 | py | Rotate Matrix Pattern
The program must accept an integer matrix of size N*N as the input. The program must rotate the matrix by 45 degrees in the clockwise direction. Then the program must print the rotated matrix and print asterisks instead of empty places as the output.
Boundary Condition(s):
3 <= N <= 100
Input For... | [
"36339675+hemanthtejadasari@users.noreply.github.com"
] | 36339675+hemanthtejadasari@users.noreply.github.com |
079896499559440bc3938ad7b69fe1408bc3ac4c | 7f167121b52312d65663d781819356eac65843ed | /lib/xss.py | d7d8def40702d5eb17aac4d709ddc99b82bb50ed | [] | no_license | mongoltolbo/mifan.tv | b3526aaeb5394b3ac1e7af85b8ea3a74e90ce73e | 9ba59b049866dff7c4d9eceabed91d8a1878ef4b | refs/heads/master | 2020-05-04T19:20:22.340674 | 2013-08-27T15:53:34 | 2013-08-27T15:53:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,954 | py | #!/usr/bin/env python
# coding=utf-8
#
# Copyright 2013 tuila.me
# Source: http://code.activestate.com/recipes/496942/ (r1)
import re
from htmllib import HTMLParser
from cgi import escape
from urlparse import urlparse
from formatter import AbstractFormatter
from htmlentitydefs import entitydefs
from xml.sax.saxutils... | [
"gaolinjie@gmail.com"
] | gaolinjie@gmail.com |
deb0e9f6012ff44565f83f4240236d6e9dba8965 | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/nettopologytree.py | b6b429aac376022dac44a1359e79e6768a182f2c | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,828 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
f9e738f5b5b8110966032a68c9aeae66c200a6bf | 7c9919126b96122c1a8c6353769e209d850e4564 | /bnk_hr_leave/models/hr_leave_allocation.py | bee706f6393dea1a328430f51d060ead0e48e84c | [] | no_license | Duongnv-dev/hr | 8ee34c904d481a4d0f4182c3c6bfd6c28ef25ffe | 962e0edab5b824304f4a2b2dff23458135f94c3c | refs/heads/master | 2023-06-19T06:54:00.337453 | 2021-07-13T01:53:34 | 2021-07-13T01:53:34 | 385,439,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from odoo import fields, models, api
class HrLeaveAllocation(models.Model):
_inherit = 'hr.leave.allocation'
_description = 'Inherit leave allocation'
contract_id = fields.Many2one('hr.contract') | [
"duong.nguyen@bnksolution.com"
] | duong.nguyen@bnksolution.com |
9184d820d21d39a76067d3a1353b4cc581849604 | c52e7808ab764d822267b36a185223a172a56b5a | /tasks/1_area_of_triangle.py | 815e4c3722c0eea544ca8f78c924b6611d678e2e | [] | no_license | lohitbadiger/Python-teaching-all | c41bfa2c98bab1493aba5269ab81efa6be02c73f | b7ed285b6b2df9c23fa5bf0c91381729b9ac0c6f | refs/heads/master | 2020-06-02T21:13:05.276475 | 2019-06-17T06:55:06 | 2019-06-17T06:55:06 | 191,311,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | # base=int(input("Enter the value for base: "))
# hight=int(input('Enter the Height :'))
# area=0.5*base*hight
# print('area of the triangle is ', area)
# one more way
x,y=input('Enter the value for x, y').split()
print('value of x is ', x)
print('value of y is ', y)
reslt= 0.5*int(x)*int(y)
print(reslt)
| [
"lohit2013n@gmail.com"
] | lohit2013n@gmail.com |
3e243c5c508242ec4a50d667569a9822d6418118 | e5dc27e634aba70bcd1b3acea74fed84ddccf837 | /plugins/modules/network_device_update_role.py | be3fbcb35812197122cd5cd3a645eff6418c11d8 | [] | no_license | jejrichardson/dnacenter-ansible | 264d1b52227d4bf78ad175494763cff9e7881f34 | f10078ef8323bda4b542e71bcecf4f80a7fe0609 | refs/heads/master | 2023-01-28T09:54:57.449459 | 2020-12-09T23:15:49 | 2020-12-09T23:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2020, Rafael Campos <rcampos@altus.cr>
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {
"metadata_version": "0.0.1",
"status": ["preview"],
"supported_by": "community",
}
DOCUMENTAT... | [
"rcampos@altus.cr"
] | rcampos@altus.cr |
bbaf9c29390c28dc9d8519047288393f4d9b4247 | 455a91b28590d0b7ee1519f6d1ee2d554db4298b | /exps/exp_22102015/positioning_covar_meta.py | 2719fdaf70712a3ec6f905739e3e081ec62ac8f3 | [] | no_license | yairbeer/my_repository | a038201fb12b19cb249eb98c17478b0c086a9b04 | a07660b9db412c11ae3fb6835e15481e60a687ff | refs/heads/master | 2021-01-10T01:20:27.010430 | 2015-11-19T08:47:55 | 2015-11-19T08:47:55 | 46,478,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,758 | py | import numpy as np
import exps.exp_22102015.config_exp as cfg_exp
import exps.fn_exp as fn_exp
import functions as fn
import matplotlib.pyplot as plt
import exps.exp_22102015.track as track
import exps.exp_22102015.doa as doa
import itertools
import matplotlib.pyplot as plt
__author__ = 'YBeer'
"""
calculating probab... | [
"yaia1309@gmail.com"
] | yaia1309@gmail.com |
49aa9867f2de64f94bc8bce9aee367e02d4c0ece | bbab25f702c7bb7ce6cd894d98a121e61967d48a | /controllers/controllers.py | 11968a608c0f21d15bc486b283939dc4dc43cadd | [] | no_license | butirpadi/bp_po_carton_box_report | 9b83310ea010dbe848857cae74642e6993431d58 | 2f9bad119b1fe371bf4bc2d8ba09917c2134f86b | refs/heads/master | 2023-08-30T03:49:11.564193 | 2021-11-01T09:23:11 | 2021-11-01T09:23:11 | 309,541,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # -*- coding: utf-8 -*-
from odoo import http
# class BpPoCartonBoxReport(http.Controller):
# @http.route('/bp_po_carton_box_report/bp_po_carton_box_report/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/bp_po_carton_box_report/bp_po_carton_box_report/objects/', ... | [
"butirpadi@gmail.com"
] | butirpadi@gmail.com |
fa3baa33bdde98c67faa2adaf19e614694f489e8 | 00a9128553902cb398dc99865d36e09159285b86 | /python/p3.py | 1f8b36777f8dc1b69701b73902672fc201d33c6f | [] | no_license | horacepan/aoc2020 | f498faa8c8bba4cabcfba6508a73074adb51d84c | f6d38f2b37245e89fb6f8eb4c55c74423626ca04 | refs/heads/main | 2023-02-06T03:16:21.530346 | 2020-12-20T21:33:53 | 2020-12-20T21:33:53 | 317,640,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import pdb
def solve(mat, dx, dy):
rows = len(mat)
cols = len(mat[0])
loc_x = 0
loc_y = 0
ntrees = 0
while 1:
if loc_x < rows:
ntrees += int(mat[loc_x][loc_y] == '#')
else:
break
loc_x += dx
loc_y = (loc_y + dy) % cols
return ntrees
... | [
"hopan@uchicago.edu"
] | hopan@uchicago.edu |
f0c5883130fd3be48d07d17a2b6ee9e5550cafc8 | 7914768f745808e372617ccf39aeebe44790a842 | /apps/arena/views.py | 6267d4a70f7116881c4e24988903d8dea0b939c0 | [] | no_license | POISON-B/gz_v1.0.0 | edee99b9a25594ea4dff8b04d8779a21fa154cc6 | 6e7c23f6c097efd2923562ab9c64843cd91e02c2 | refs/heads/master | 2020-03-27T01:31:38.676597 | 2018-09-23T08:47:05 | 2018-09-23T08:47:05 | 145,719,283 | 0 | 0 | null | 2018-09-23T05:56:32 | 2018-08-22T14:18:20 | JavaScript | UTF-8 | Python | false | false | 9,276 | py | from django.shortcuts import render
# Create your views here.
from rest_framework.response import Response
from rest_framework import mixins
from rest_framework.pagination import PageNumberPagination
from rest_framework import viewsets
from rest_framework import filters
from django_filters.rest_framework import Django... | [
"44704708@qq.com"
] | 44704708@qq.com |
1ff5e6418d6c7022185c32908f90cd6a14694df6 | 396787df1b472ddfab7d934c149b150352342f03 | /python_fundemental/128_linked_list_sorting.py | 712365f8902750b846816a2c36bcdd9923bc47b4 | [] | no_license | Deanwinger/python_project | a47b50a9dfc88853a5557da090b0a2ac3f3ce191 | 8c0c2a8bcd51825e6902e4d03dabbaf6f303ba83 | refs/heads/master | 2022-07-10T16:41:56.853165 | 2019-07-21T13:08:48 | 2019-07-21T13:08:48 | 107,653,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py |
# leetcode 148. 排序链表 | [
"a541203951@163.com"
] | a541203951@163.com |
c40632c9ff9da232e070e4cdd547dfd5cc32f0d4 | 31e1261588e953d4e702a76e1c5306a8a97cff04 | /monk/gluon/datasets/paths.py | c4656a51daa42e9c5cca5e8dd8767763c42c03c2 | [
"Apache-2.0"
] | permissive | Varun0801/monk_v1 | cff6e8390a9248208ba825eb0046119f4f284ab1 | 559ff37669d88fd2cfaaf9d22ad84cd6cef9d176 | refs/heads/master | 2022-04-17T05:19:53.372524 | 2020-04-11T13:11:35 | 2020-04-11T13:11:35 | 255,113,878 | 1 | 0 | null | 2020-04-12T15:35:25 | 2020-04-12T15:35:24 | null | UTF-8 | Python | false | false | 4,546 | py | from gluon.datasets.imports import *
from system.imports import *
@accepts(dict, [str, list, bool], [float, int, bool], [str, list, bool], str, post_trace=True)
@TraceFunction(trace_args=False, trace_rv=False)
def set_dataset_train_path(system_dict, path, split, path_to_csv, delimiter):
'''
Set dataset train ... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
4e23c014e2a3e9ed57bddae2ec3e70d526a28c65 | 4fc9c61450de38ce003e20e0452af3e636f28be3 | /language_model/layer/attention.py | e64cc42d1eaf11d71b2cc146934438e793eb8709 | [
"Apache-2.0"
] | permissive | SunYanCN/language_model_tf | a6c453c3c3aa1b34ac240cff94674e9eaa679ec9 | d39f335e5410d2bd7a23760dedbfcca36338d591 | refs/heads/master | 2020-05-02T03:58:59.634898 | 2019-05-24T20:31:52 | 2019-05-24T20:31:52 | 177,740,244 | 0 | 0 | Apache-2.0 | 2019-12-30T06:17:43 | 2019-03-26T07:56:25 | Python | UTF-8 | Python | false | false | 62,450 | py | import numpy as np
import tensorflow as tf
from util.default_util import *
from util.language_model_util import *
from layer.basic import *
__all__ = ["Attention", "MaxAttention", "CoAttention", "GatedAttention", "MultiHeadAttention"]
def _create_attention_matrix(src_unit_dim,
trg_unit_... | [
"mizheng@microsoft.com"
] | mizheng@microsoft.com |
26990ac7c79c866a255710ff1fb2e98dd0243201 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/containerservice/v20210901/get_agent_pool.py | 63e6af29ba922a7d0043ccb2fb5e7028f8ebff9b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,542 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
3a9bd176b6447bea26b249ad12815762e165a913 | c80314871502377180b1d496d0d4e7dc9e8cdba8 | /exercise/python_1040_practice_algo_recursion_hanoi.py | abbc470f6e534414af43740e26a3719053d2293e | [] | no_license | tomboxfan/PythonExample | 996896bcbc0bf83fbca7d28bcb207dca35875f6b | 8b071314b4dc4c3e3acccb835405c44630a15722 | refs/heads/master | 2023-02-11T13:55:26.591124 | 2021-01-09T03:20:46 | 2021-01-09T03:20:46 | 275,275,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | '''
Requirement:
The Tower of Hanoi puzzle was invented by the French mathematician Edouard Lucas in 1883.
He was inspired by a legend that tells of a Hindu temple where the puzzle was presented to young priests.
At the beginning of time, the priests were given three poles and a stack of 64 gold disks,
each disk a litt... | [
"tomboxfan@hotmail.com"
] | tomboxfan@hotmail.com |
e6f61f08c4027bfec92381e04e2087c07efa6800 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03592/s369623086.py | 0473e1e86b92c11c4dd5abc861aa31996a132b45 | [] | 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 | 926 | py | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5b17863999522ec2777bdd7083007c20f69cbd08 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/channel/channel_metadata/tests/test__ChannelMetadataGuildThreadAnnouncements__utility.py | 79cd654d880a07831297665da13916f7b7c4630c | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 7,445 | py | from datetime import datetime as DateTime
import vampytest
from ..guild_thread_base import ChannelMetadataGuildThreadBase
from .test__ChannelMetadataGuildThreadBase__constructor import _assert_fields_set
def test__ChannelMetadataGuildThreadBase__copy():
"""
Tests whether ``ChannelMetadataGuildThreadBase.co... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
2f716cb7b50e626cfc3fb1549ff0e4f0ef60f3e3 | eaaecada4c78c899bfdb6a83aaf66502a7d4bc4c | /data_augmentation/eda/image/task.py | b35e6ade3e8418844f9ba5b2dd23402bc1d86d19 | [
"MIT"
] | permissive | simran-arora/emmental-tutorials | 72552d6bcb3311e011f99fa6d164fa619c913283 | 249a82a57be58e960408a45e2e0daa72980d210a | refs/heads/master | 2022-12-01T20:12:55.613955 | 2020-08-13T08:16:12 | 2020-08-13T08:16:12 | 286,825,852 | 0 | 0 | MIT | 2020-08-11T19:01:59 | 2020-08-11T19:01:58 | null | UTF-8 | Python | false | false | 2,621 | py | import logging
from functools import partial
import numpy as np
import torch
import torch.nn.functional as F
from emmental.scorer import Scorer
from emmental.task import EmmentalTask
from torch import nn
from eda.image.config import TASK_INPUT_SIZE, TASK_METRIC, TASK_NUM_CLASS
from eda.image.models import ALL_MODELS
... | [
"senwu@cs.stanford.edu"
] | senwu@cs.stanford.edu |
dd93ddbc2c6ada0eec838318e43428eb9841c4f1 | e19ddf30bf87a4efdc449fa49b9621ca1460a515 | /castle/theme/interfaces.py | 5d42e09dbd195823850c02a445e872c1457cc0c0 | [] | no_license | castlecms/castle.theme | a220d25b1cf40fa47fb4af9be3cfa8d6a1cc75c9 | 4a36537ddc4db59ea2902a71e544f5a319a5a15c | refs/heads/master | 2022-11-02T10:53:04.758867 | 2020-02-21T21:28:10 | 2020-02-21T21:28:10 | 72,666,053 | 5 | 3 | null | 2022-10-05T11:20:53 | 2016-11-02T17:47:59 | CSS | UTF-8 | Python | false | false | 209 | py | from zope.interface import Interface
class ICustomTheme(Interface):
"""Marker interface that defines a Zope 3 browser layer.
"""
class IUtils(Interface):
def get_folder_section():
pass | [
"vangheem@gmail.com"
] | vangheem@gmail.com |
512d012e85f13dd74f93a158a73f9939eceac984 | 2a33588917f591d0250671d24bb9b5b1d8493d70 | /wechat/base_data.py | 12ffb5e7043492746dea36b673fa74d57d9b313a | [] | no_license | coblan/eface | 283365c04f239e68a5d1476dcb7e1605bd9b9aa4 | 5f645e541875daf3365ff4542129d27a1f7957a9 | refs/heads/master | 2023-08-08T03:20:50.371189 | 2023-08-06T05:04:25 | 2023-08-06T05:04:25 | 163,195,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | wechat_page_dc={} | [
"he_yulin@163.com"
] | he_yulin@163.com |
911fe05a24b4aea8350196fde947b9a287d1e07d | 638af6b8c580eeae23fc1034882c4b514195137a | /Packages/cmor/Test/test_python_common.py | c4566b2f070f86cc7058dd832773ef15518464f7 | [] | no_license | doutriaux1/uvcdat | 83684a86b514b8cac4d8900a503fc13d557fc4d2 | 37e9635f988696c346b4c3cdb49144d1e21dab5d | refs/heads/master | 2021-01-17T07:57:22.897539 | 2015-02-02T22:52:12 | 2015-02-02T22:52:12 | 14,878,320 | 1 | 0 | null | 2015-02-19T20:54:25 | 2013-12-02T23:44:46 | C | UTF-8 | Python | false | false | 4,668 | py | import numpy
# this test tries to mimic ippc_test_code.c but from python
# This one is using direct C calls from python not the python around it
ntimes=2
lon=4
lat=3
lev=5
lev2=17
varin3d=["CLOUD", "U", "T" ];
# /* Units appropriate to my data */
units3d=["%", "m s-1", "K"];
# /* Corresponding IPCC Table A1c en... | [
"doutriaux1@llnl.gov"
] | doutriaux1@llnl.gov |
7ca0c3b8af9cf6e87bd1d80617d64194a8692408 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-1313.py | e0f5e294b989debaae1c8f5df4c0084f1ad3c62a | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,751 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2be8133758f27f4a9c1c013af1563b5ba0ad76a3 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-2269.py | d22a9b2b565a6add21a3f4a6735e52790e2fc6f3 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,289 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
252a5265eda2101371d397eb500378a31d787fa2 | 2e356d3be3eb83ef89317a7804e8fa4567898d6f | /chapter1/code/metadata/extract_articles.py | fca044b690428e12f7d91aeeee034f30287dd60e | [
"MIT"
] | permissive | PacktPublishing/Advanced-Web-Scraping-with-Python | 91069bbf925e142ee64e8c80ae97c28077def052 | 6624b71b2889a6fcfa3f080a6e15b979e582cce6 | refs/heads/master | 2021-07-09T10:29:35.394560 | 2021-01-21T07:12:34 | 2021-01-21T07:12:34 | 213,933,836 | 17 | 8 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import newspaper
cnn_paper = newspaper.build('http://cnn.com')
print('*****************************category urls************************************\n')
for category in cnn_paper.category_urls():
print(category)
print('*****************************url articles********... | [
"jose-manuel.ortega-candel@capgemini.com"
] | jose-manuel.ortega-candel@capgemini.com |
940e980bebc322bec60c56ff452cc02f1fa66e97 | f9033131dc4d66ede2c5c22fcaa4a0be5b682152 | /SegmentTrees/Tasks/eolymp(2941).py | 3ebde2e3290bba8960436b76b06836cf33e41562 | [] | no_license | Invalid-coder/Data-Structures-and-algorithms | 9bd755ce3d4eb11e605480db53302096c9874364 | 42c6eb8656e85b76f1c0043dcddc9c526ae12ba1 | refs/heads/main | 2023-04-29T08:40:34.661184 | 2021-05-19T10:57:37 | 2021-05-19T10:57:37 | 301,458,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | #https://www.e-olymp.com/uk/submissions/7648758
from math import log2, ceil
class SegmentTree:
''' Дерево відрізків з операцією суми.'''
def __init__(self, array):
k = len(array)
n = 1 << ceil(log2(k))
self.items = n * [0] + array + (n - k) * [0]
for i in range(n - 1, 0, -1):
... | [
"gusevvovik@gmail.com"
] | gusevvovik@gmail.com |
87519a17efdc5d4e72c93dfbdad14363392a71de | 3146c4485faf26b663bd9db197057a2444e92602 | /openldap_migration/export_opendj.py | 8f9fa9733033183b5d2870778f3435e6bb7aa31d | [
"MIT"
] | permissive | TCBL/community-edition-setup | 7ab06776a774f2e24179ee5d6245666aa921a779 | 1f91ea493ef8da0066030fb9ec72d2bc84a7dbc9 | refs/heads/master | 2020-03-30T20:23:20.389766 | 2018-10-02T19:18:53 | 2018-10-02T19:18:53 | 151,586,078 | 0 | 0 | MIT | 2018-10-05T11:44:25 | 2018-10-04T14:32:42 | Python | UTF-8 | Python | false | false | 8,318 | py | #!/usr/bin/python
import traceback
import sys
import os
import shutil
import hashlib
import getpass
import tempfile
import logging
# Unix commands
mkdir = '/bin/mkdir'
cat = '/bin/cat'
hostname = '/bin/hostname'
grep = '/bin/grep'
ldapsearch = "/opt/opendj/bin/ldapsearch"
unzip = "/usr/bin/unzip"
find = "/usr/bin/fin... | [
"arun@arunmozhi.in"
] | arun@arunmozhi.in |
311e5628fc15ce4639452642b0f5bc2cc980bb8d | b5ce6908490cfb8e6a1e1cbe4745d675122ddce0 | /questions/single-element-in-a-sorted-array/Solution.py | 3654674cf86e3e46733b7d40cc107476d78e5504 | [
"MIT"
] | permissive | franklingu/leetcode-solutions | 8895910f13208e1d8e604100d84c2dd35684cde4 | 7ad7e5c1c040510b7b7bd225ed4297054464dbc6 | refs/heads/master | 2023-01-09T01:34:08.097518 | 2023-01-02T02:05:35 | 2023-01-02T02:05:35 | 43,345,677 | 155 | 66 | MIT | 2020-10-02T03:41:36 | 2015-09-29T04:54:38 | Python | UTF-8 | Python | false | false | 839 | py | """
You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once. Find this single element that appears only once.
Follow up: Your solution should run in O(log n) time and O(1) space.
Example 1:
Input: nums = [1,1,2,3,3,4,4,8,8]... | [
"franklingujunchao@gmail.com"
] | franklingujunchao@gmail.com |
b6c5a444d53fac0f7a74a29f4133549428f0157a | c3a0d8cc1e386717dffd93d0eb58bec752e26b0a | /test787-keras_block/main.py | 9503c190eb670d02b58aab4d7b06af569f387d96 | [] | no_license | matthiaswh/bit4 | 0ce0e385d889a30620426bc60aa47de0ecef21de | 0633d7357d157b5f47c70091dc676dc2e06c1ae1 | refs/heads/master | 2022-11-10T07:44:28.706805 | 2020-06-21T13:12:26 | 2020-06-21T13:12:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | import keras
import keras.backend as K
import keras.layers as L
import numpy as np
from layers import LayerBlock, Module
# Weight regularization works but batch normalization does not work!
def main():
tcn = TCN(10, kernel_size=5, dilation_rates=[1, 2, 4, 8, 16])
model = keras.Sequential(
[
... | [
"snsinfu@gmail.com"
] | snsinfu@gmail.com |
3936237e41a796d8b7cea9c0aef0a060bba62c82 | 97d5efaf0e15c537d4380ae3b61b88ee3d8e84ab | /MiSeguroVirtualBackend/insurances/migrations/0013_userpolicy_adviser_cellphone.py | 01562d2fd74b1024f2331ea628035c909f6ab024 | [] | no_license | dmontoya1/mi-seguro-virtual | af49f0d4492264cea23b6d50a2a2b27c9816e843 | 6e14fb5e38b3a7192e532a46b842d6a2f80d5ea7 | refs/heads/master | 2023-05-06T07:43:16.335977 | 2019-04-03T17:57:32 | 2019-04-03T17:57:32 | 371,432,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Generated by Django 2.0.6 on 2018-12-18 03:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('insurances', '0012_auto_20181206_2028'),
]
operations = [
migrations.AddField(
model_name='userpolicy',
name='advise... | [
"dmontoya@apptitud.com.co"
] | dmontoya@apptitud.com.co |
5bbb725cb6a7f41b724a108f31fc041271cc5ebc | 41ea088695ed956ef8c6e34ace4d8ab19c8b4352 | /XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/ebnjyiNMGOHuosJ_EE7SGKALWfhDqU3P4hGf55ouVTM=/_sparsetools.cpython-37m-x86_64-linux-gnu.pyi | d5f00fb6c5fb347fd16db47ae3c4ea852c2c1bd8 | [] | no_license | ljbelenky/decline | d5c1d57fd927fa6a8ea99c1e08fedbeb83170d01 | 432ef82a68168e4ac8635a9386af2aa26cd73eef | refs/heads/master | 2021-06-18T17:01:46.969491 | 2021-04-26T18:34:55 | 2021-04-26T18:34:55 | 195,559,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | pyi | __doc__ = None
__file__ = '/home/land/.local/lib/python3.7/site-packages/scipy/sparse/_sparsetools.cpython-37m-x86_64-linux-gnu.so'
__name__ = 'scipy.sparse._sparsetools'
__package__ = 'scipy.sparse'
def bsr_diagonal():
pass
def bsr_eldiv_bsr():
pass
def bsr_elmul_bsr():
pass
def bsr_ge_bsr():
pass
... | [
"ljbelenky@gmail.com"
] | ljbelenky@gmail.com |
4b1eb52decc3b5781a44abbeb0ef755e29c9aa0e | c84a561927ff9c6712e521c3448531f4992f41fb | /AlgorithmicHeights/INV/inv.py | 7999bdddb37a864f597dba8e6627368d857f4743 | [] | no_license | Meng-Gen/rosalind | 55c174005807d0fc8703e62f7358f4ed205f977d | 3cf5e0ee1536e3e762ddd5354b8da4c8d378a640 | refs/heads/master | 2020-05-13T15:47:13.504360 | 2013-12-29T12:15:27 | 2013-12-29T12:15:27 | 15,453,371 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | import sys
def read_dataset():
lines = [line.strip() for line in sys.stdin.readlines()]
n = int(lines[0])
array = list(map(int, lines[1].split()))
assert(n == len(array))
return n, array
class CoutingInversionProblem():
def __init__(self, size, array):
self.size = size
self... | [
"plover@gmail.com"
] | plover@gmail.com |
f955924de40322655374d0ebcb1737d4c9f84630 | db0e8aa3a92a30c9b1cc8da03725e951ff64f3f1 | /app1/forms.py | 744896064b952f02b93b044a8985999dd061a2d9 | [
"BSD-3-Clause"
] | permissive | shrey-c/DataLeakageDjango | ffeef61caa347520747fc70cf3f7f8b84a9610cf | a827c5a09e5501921f9fb97b656755671238dd63 | refs/heads/master | 2022-11-30T03:30:12.313025 | 2020-07-12T06:47:44 | 2020-07-12T06:47:44 | 242,569,637 | 6 | 1 | BSD-3-Clause | 2022-11-22T05:20:22 | 2020-02-23T18:33:04 | Python | UTF-8 | Python | false | false | 1,729 | py | from django import forms
from app1.models import Document, DetectorUpload
class ChangepwdForm(forms.Form):
def __init__(self, *args, **kwargs):
super(ChangepwdForm, self).__init__(*args, **kwargs)
self.fields['current'].widget.attrs = {
'class' : 'form-control',
'placeholder' : 'Current Password'
}
self... | [
"shreyansh.chheda@gmail.com"
] | shreyansh.chheda@gmail.com |
a717be30c5eafe7027a31daef6d7c4b751ab3056 | 7ef2308e51d1d5700fbd092177ee15e2a03ebdd8 | /WorkLean/Python/Scrapy/testCrawler1_0/testCrawler1_0/settings.py | 9a35f942f04500c15cbc5e210353e021980e8568 | [] | no_license | STAWZW/STAWZW1.0 | 741002eb35c2883e5739fee8d14ff430e9622c01 | a835ac27aba17f968116e321bd201b26c9fb3578 | refs/heads/master | 2020-07-21T20:21:59.753992 | 2019-09-26T09:21:28 | 2019-09-26T09:21:28 | 206,965,347 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,037 | py | # -*- coding: utf-8 -*-
# import random
# Scrapy settings for testCrawler1_0 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scr... | [
"1223868042@qq.com"
] | 1223868042@qq.com |
b03811a2a5a5661848fbf370e6bba4eeb45fd36a | 584e9c42e6240b9facc866703a6f26b06773df94 | /TwilioSendGrid/stressful_subject.py | e3f8e396652697024e58f215a4cea54ffaf77bc9 | [] | no_license | anton-dovnar/checkio | 48fbaf84c244b0fca7bed5cf7f34179cf850adf9 | 10aed757ec36f182871a03ed8c9e73319cc8824a | refs/heads/master | 2023-03-24T16:23:39.524060 | 2021-03-12T13:07:04 | 2021-03-12T13:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | #!/home/fode4cun/.local/share/virtualenvs/checkio-ufRDicT7/bin/checkio --domain=py run stressful-subject
#
# END_DESC
import re
def is_stressful(subj):
"""
recognize stressful subject
"""
if subj.isupper() or subj.endswith('!!!'):
return True
patterns = [r'(\b[help\!\-\.]{4,}\b)', r... | [
"fode4cun@gmail.com"
] | fode4cun@gmail.com |
e12707c00339249c29f18cde9159c083556c9074 | 434fe69daa053ef68e11b029ebb04cde69b76ee8 | /pysc2/bin/play_vs_agent.py | 840a2e86b0a187314283069a5c088fbd234367b5 | [
"Apache-2.0"
] | permissive | dorthrithil/pysc2 | 6b31e4f456015d3fc863cb44fb12b8034819f4a4 | e3c561b20b78a57ed9cbcbb76157fcffb7b1bbb4 | refs/heads/master | 2020-03-19T02:04:10.123451 | 2018-08-01T07:08:48 | 2018-08-01T07:08:48 | 135,596,142 | 0 | 2 | Apache-2.0 | 2018-08-08T09:59:25 | 2018-05-31T14:39:57 | Python | UTF-8 | Python | false | false | 10,085 | py | #!/usr/bin/python
# Copyright 2017 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 ... | [
"tewalds@google.com"
] | tewalds@google.com |
c6756abdb37e1f8b52dd5b35b3118afb8bc40f58 | ab825ee0326e98d115b6dc02bbda02b302787d46 | /応用編/41_csvファイルの読み書き/モジュール/01_CSVファイルの書き込み.py | bb00d85a58a09d9f502ac4e2f14bf4e26a8d34d9 | [] | no_license | holothuria/python_study | 295dd7c30a566b5a9688b9196e25bf6e065401a0 | 7e98090e64d646d23a4189e0efd68c2905b78d04 | refs/heads/master | 2020-03-23T20:04:38.900368 | 2019-03-05T12:47:53 | 2019-03-05T12:47:53 | 142,019,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py |
import csv
csv_file = open('./python.csv', 'w', newline='')
writer = csv.writer(csv_file)
row = ('python', '-', 'izm', '1')
writer.writerow(row)
rows = []
rows.append(('python', '-', 'izm', '2'))
rows.append(('python', '-', 'izm', '3'))
rows.append(('p,y,t,h,o,n', '-', 'i,z,m', '4'))
writer.writerows(rows)
csv_... | [
"umehara.daichi@withone.co.jp"
] | umehara.daichi@withone.co.jp |
992f5347a46a745fa991942a9bdb04ea5c918b52 | b3d86713ed58e0b7fe3c1191324e36659c0d9d78 | /DataScience/ch10/evaluation_data.py | 94d29f7149b5f9ebae13989f4ba23eb44c469612 | [] | no_license | Kose-i/machine_learning_tutorial | 3d6cb30a20d65c66aa6efcba0e693de75791507a | def223fecb459ad1a6e7f9f36b3d733a89efd378 | refs/heads/master | 2021-07-03T10:37:26.809388 | 2020-07-27T12:53:19 | 2020-07-27T12:53:19 | 174,057,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | import numpy as np
import numpy.random as random
import scipy as sp
from pandas import Series, DataFrame
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
import seaborn as sns
sns.set()
import sklearn
from sklearn.datasets import load_breast_cancer
from sklearn.tree import DecisionTreeCl... | [
"tamura.kosei905@mail.kyutech.jp"
] | tamura.kosei905@mail.kyutech.jp |
e86714e61dde836eeef750f7a800b133850db443 | acad69f0abe162eea0cb13cbe15bfd88f6da08b4 | /down-stream-tasks/mmdetection/mmdet/models/losses/ghm_loss.py | bc5eb774eab3c7515868c266182760c92061c911 | [
"Apache-2.0"
] | permissive | zhangzjn/EMO | 69afcac53800d8b9a390f1214e178e2ca4da3b24 | 141afbdbce04683790f0699f256327ec420be442 | refs/heads/main | 2023-08-27T19:04:23.313676 | 2023-08-15T04:09:55 | 2023-08-15T04:09:55 | 584,987,542 | 139 | 9 | null | null | null | null | UTF-8 | Python | false | false | 8,136 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
import torch.nn.functional as F
from ..builder import LOSSES
from .utils import weight_reduce_loss
def _expand_onehot_labels(labels, label_weights, label_channels):
bin_labels = labels.new_full((labels.size(0), label_cha... | [
"186368@zju.edu.cn"
] | 186368@zju.edu.cn |
e7a6d17a22f5e9f8531f0d8e0c576cff70c8e1eb | 3474fd7e1ccd8dd4e0b4da5c67d89694c69ce73c | /batch3/outputs/bbn_yhe.py | 2d75b05e4272c8e13788d9378f35e7fd0e971249 | [] | no_license | mishakb/ISiTGR | 149e1235ed2fff6ee2452b53c23dbe46f5dcf17e | db4f6fed47162de6347b62b3f8ae832e4ffbfdf0 | refs/heads/master | 2023-01-16T02:42:31.787483 | 2021-03-12T04:39:18 | 2021-03-12T04:39:18 | 176,977,260 | 27 | 7 | null | 2023-01-02T15:19:33 | 2019-03-21T15:48:31 | HTML | UTF-8 | Python | false | false | 4,578 | py | import planckStyle as s
import numpy as np
import matplotlib.pyplot as plt
import sys
sys.path.insert(0, r'c:\work\dist\git\camb')
from camb.bbn import BBN_table_interpolator
BBNstandard = BBN_table_interpolator('PArthENoPE_880.2_standard.dat')
# BBN theoretical error
sigma_yp_theo = 0.0003
# resolution of the theore... | [
"gqcristhian@utdallas.edu"
] | gqcristhian@utdallas.edu |
048d84b86b4c0b2d6195aab0d20755095d6863f5 | b545bc57f3359a42b034078e3acb3e4d0c77a971 | /src/azure-firewall/azext_firewall/aaz/latest/network/firewall/policy/_update.py | 5e4c29b86003176bc8eddc08a81d5d110e491b50 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ShichaoQiu/azure-cli-extensions | d91672b3f7bf2ffae4f1072830e99632b66cf754 | 8134c01681963387a496b5d4627527a5ed044e19 | refs/heads/main | 2023-08-24T09:09:55.689202 | 2023-08-15T06:08:35 | 2023-08-15T06:08:35 | 230,201,126 | 0 | 1 | MIT | 2020-12-11T07:14:51 | 2019-12-26T05:33:04 | Python | UTF-8 | Python | false | false | 33,631 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | ShichaoQiu.noreply@github.com |
f7246f5b593196ab8c42ab3791fb27a636fa9877 | 2836c3caf8ca332635640a27254a345afd449081 | /nws/FFE/dump_text.py | 64ee6d4d5a352d51b778840d80848c276b2e4fec | [
"Apache-2.0",
"MIT"
] | permissive | akrherz/DEV | 27cf1bac978a0d6bbfba1851b90d2495a3bdcd66 | 3b1ef5841b25365d9b256467e774f35c28866961 | refs/heads/main | 2023-08-30T10:02:52.750739 | 2023-08-29T03:08:01 | 2023-08-29T03:08:01 | 65,409,757 | 2 | 0 | MIT | 2023-09-12T03:06:07 | 2016-08-10T19:16:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,179 | py | """Dump text from database."""
from pyiem.util import get_dbconn
def main():
"""Go Main Go."""
pgconn = get_dbconn("postgis")
cursor = pgconn.cursor()
cursor.execute(
"WITH data as ("
"SELECT wfo, eventid, issue at time zone 'UTC' as issue, report, "
"expire at time zone 'UTC'... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
b22dd85529c83aa6600650aa488ecfa81392e566 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_15719.py | 68b4f869fb8d6e083ba4f1619ed178f0c4fa912c | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | # PyGame, Surface not showing
_display.blit(_active_surface, (h,w))
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
cf173c4188039fb9f7c03d8041bab18213f9fedf | 2dd0082221239fef0e0894c852f70f1eaeb62b9e | /Assignments/pete/python/lab12/lab12-guess_the_number-v5.py | 2c9c150c8bd62d806effabdefe672c22f7b08fbf | [] | no_license | pjz987/2019-10-28-fullstack-night | 03097cf3dc24aeec0c326044bb0fc99385fbc333 | 4c643013de73f08d7503d62ec602d6a5c80ffa7e | refs/heads/master | 2022-11-11T19:40:00.296645 | 2020-06-25T16:14:47 | 2020-06-25T16:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | '''
lab12-guess_the_number-v5.py
V5
Swap the user with the computer: the user will pick a number, and the computer will make random guesses until they get it right.
'''
import random
import time
user_num = int(input("Welcome to Guess the Number v5.\nIn this program, computer guess you!\nPlease enter a number between 1 ... | [
"pwj2012@gmail.com"
] | pwj2012@gmail.com |
ecad71b97f40fd1c4027e616ed6efc3e283cbe34 | 2442d073434d463cede4a79ae8f9fd31c62174f8 | /object-oriented-programming/composition/address.py | fec0ad8bea031d381431f42455a4d6f1d84773c9 | [] | 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 | 173 | py | class Address:
def __init__(self, city, state):
self.city = city
self.state = state
def __del__(self):
print(f'{self.city}/{self.state} have been deleted')
| [
"g.r.almeida@live.com"
] | g.r.almeida@live.com |
3fc82b879ed14d4f2cb2742b09238700a3f0c64f | 54e23ae20b7351f1e5db325b13cc9a106b3e581a | /transformer/layers.py | 723c431493e82ba286dc994ed9bec9d9c528fbf9 | [
"Apache-2.0"
] | permissive | okehkim/End-to-End-Speech-Recognition-Models | 191755c7fdab23ad61280279e200c9757824c64b | 7b4695bbc778e4d2c92470b56e2479c8d81d0079 | refs/heads/main | 2023-01-30T02:11:57.860303 | 2020-11-28T16:53:02 | 2020-11-28T16:53:02 | 316,779,547 | 0 | 0 | Apache-2.0 | 2020-11-28T16:52:27 | 2020-11-28T16:52:27 | null | UTF-8 | Python | false | false | 4,293 | py | # -*- coding: utf-8 -*-
# Soohwan Kim @ https://github.com/sooftware/
# This source code is licensed under the Apache 2.0 License license found in the
# LICENSE file in the root directory of this source tree.
import torch.nn as nn
from torch import Tensor
from typing import Tuple, Optional, Any
from transformer.sublay... | [
"sh951011@gmail.com"
] | sh951011@gmail.com |
232acacec4a343733eb00b2811848b81ae867e9f | e3c8f786d09e311d6ea1cab50edde040bf1ea988 | /Incident-Response/Tools/dfirtrack/dfirtrack_main/tests/ip/test_ip_views.py | 099cf7ffc43e424cec6cb803e502f9a1d4a4f205 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | foss2cyber/Incident-Playbook | d1add8aec6e28a19e515754c6ce2e524d67f368e | a379a134c0c5af14df4ed2afa066c1626506b754 | refs/heads/main | 2023-06-07T09:16:27.876561 | 2021-07-07T03:48:54 | 2021-07-07T03:48:54 | 384,988,036 | 1 | 0 | MIT | 2021-07-11T15:45:31 | 2021-07-11T15:45:31 | null | UTF-8 | Python | false | false | 4,562 | py | from django.contrib.auth.models import User
from django.test import TestCase
from dfirtrack_main.models import Ip
import urllib.parse
class IpViewTestCase(TestCase):
""" ip view tests """
@classmethod
def setUpTestData(cls):
# create object
Ip.objects.create(ip_ip='127.0.0.1')
# c... | [
"a.songer@protonmail.com"
] | a.songer@protonmail.com |
1bb2970dbed9a9c8f76d2ed9a6d205330e6218ef | b3858bf912bcdeb6fdf23646d94d2b9cd6e7900a | /Candy Race.py | 63c7d4b1575660a3662429db52355fb201d39a0d | [] | no_license | Programmer-Admin/binarysearch-editorials | eedf9e253e85324030260d44e798b0ca13645e63 | 12815fe3803cf5392ccfaadd38c7f50e882275c1 | refs/heads/main | 2023-02-06T04:59:25.279318 | 2020-12-26T20:45:34 | 2020-12-26T20:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | """
Candy Race
Apparently you can solve this in 1ms, but here's a memoized recursive solution for your soul.
"""
from functools import lru_cache
class Solution:
def solve(self, candies):
@lru_cache(None)
def dfs(i,j):
if j<i: return 0
return max(candies[i]-dfs(i+1, j), candi... | [
"jimenez.adam0@gmail.com"
] | jimenez.adam0@gmail.com |
6eab525395ba4dccbc34669ccc2adea80f44a930 | 98e821fe72b711b5d05dbaa7018541a643950291 | /edrnsite/collaborations/browser/groupspace.py | ef62ca89f22e62fa55a445b1d324247c5276f794 | [
"Apache-2.0"
] | permissive | EDRN/edrnsite.collaborations | e6b0a71a13a6171b9e48de3b8b39979ebb969504 | 2344b3fe2f60e1079823c688968329010d3c67d5 | refs/heads/master | 2021-01-18T21:09:51.188644 | 2018-09-05T14:58:42 | 2018-09-05T14:58:42 | 20,818,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # encoding: utf-8
# Copyright 2012 California Institute of Technology. ALL RIGHTS
# RESERVED. U.S. Government Sponsorship acknowledged.
'''EDRN Site Collaborations: group space view
'''
from Products.Five.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
class GroupSp... | [
"sean.c.kelly@me.com"
] | sean.c.kelly@me.com |
dbd85ec4828daa9922789e8a37df4ddb2a4a6b71 | e0f4db1f56bce425a1fe53796461b4b77f9f8c72 | /src/profiles/migrations/0002_auto_20180820_1928.py | bba3be33fd8426a98ccba6dbec71351398b86fac | [] | no_license | AhmedBafadal/My-Picks | a105feacb8d649ce10cee71d6c4308360e221d94 | 21a9143119f9933dcebd53c2fd252a2160ab0e58 | refs/heads/master | 2020-03-26T09:50:05.059463 | 2018-08-29T18:54:17 | 2018-08-29T18:54:17 | 144,767,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-08-20 18:28
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0001_initial'),
]
operations = [
... | [
"a.m.bafadal@gmail.com"
] | a.m.bafadal@gmail.com |
554020e53113b860b8d0bbd5c0664b43fa6ae211 | 42a7b34bce1d2968079c6ea034d4e3f7bb5802ad | /ex51/gothonweb/bin/app.py | 4cbf3709fa4bf1a85bea1cd83292927e281bb187 | [] | no_license | linpan/LPTHW | 45c9f11265b5e1ffe0387a56cec192fa12c6c4d5 | 227bfee3098e8ecb5f07ffc3a0b8e64a853106ce | refs/heads/master | 2021-04-26T13:42:56.859644 | 2014-12-18T15:21:14 | 2014-12-18T15:21:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | #! /usr/bin/env python
#coding:utf-8
import web
urls = (
'/hello','Index'
)
app = web.application(urls,globals())
render = web.template.render('/usr/local/LPTHW/ex51/gothonweb/templates/',base="layout")
class Index(object):
def GET(self):
return render.hello_form()
def POST(se... | [
"shine_forever@yeah.net"
] | shine_forever@yeah.net |
a8ee7e66a35c09736719e1aa3b92405d4f0be455 | 3b11dc40c7d772fffeb4d8683e5c9791c41f6454 | /addons/product/wizard/product_price_list.py | ae6ce2aea495f5f257f7a39ca139f811bc6bf4f2 | [] | no_license | Jacky-odoo/Ecobank | b986352abac9416ab00008a4abaec2b1f1a1f262 | 5c501bd03a22421f47c76380004bf3d62292f79d | refs/heads/main | 2023-03-09T18:10:45.058530 | 2021-02-25T14:11:12 | 2021-02-25T14:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | # -*- coding: utf-8 -*-
# Part of Byte. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class product_price_list(models.TransientModel):
_name = 'product.price_list'
_description = 'Price List'
price_list = fields.Many2one('product.pricelist', 'PriceList',... | [
"francisbnagura@gmail.com"
] | francisbnagura@gmail.com |
3c459ecdeef9297b64145fdb0850bea22bf0034c | ac1bbabc7c1b3149711c416dd8b5f5969a0dbd04 | /Programming Basics/conditional_statements/even_odd.py | a2b6079b0ca9b1515287833ff45acf73255d5d9c | [] | no_license | AssiaHristova/SoftUni-Software-Engineering | 9e904221e50cad5b6c7953c81bc8b3b23c1e8d24 | d4910098ed5aa19770d30a7d9cdf49f9aeaea165 | refs/heads/main | 2023-07-04T04:47:00.524677 | 2021-08-08T23:31:51 | 2021-08-08T23:31:51 | 324,847,727 | 1 | 0 | null | 2021-08-08T23:31:52 | 2020-12-27T20:58:01 | Python | UTF-8 | Python | false | false | 75 | py | a = int(input())
if a % 2 == 0:
print('even')
else:
print('odd')
| [
"assiaphristova@gmail.com"
] | assiaphristova@gmail.com |
ca7b25409a21a310db6153351cc71d886ecd96ad | 66c7b0da6ee27ddce0943945503cdecf199f77a2 | /hucrl/agent/tests/test_mpc_agent.py | a0b361bc8c294920b8fd24c0a2626d18525bcba2 | [
"MIT"
] | permissive | tzahishimkin/extended-hucrl | 07609f9e9f9436121bcc64ff3190c966183a2cd9 | c144aeecba5f35ccfb4ec943d29d7092c0fa20e3 | refs/heads/master | 2023-07-09T22:57:28.682494 | 2021-08-24T08:50:16 | 2021-08-24T08:50:16 | 383,819,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,789 | py | import copy
import os
import pytest
from rllib.agent import MPCAgent
from rllib.algorithms.mpc import CEMShooting, MPPIShooting, RandomShooting
from rllib.dataset.experience_replay import ExperienceReplay
from rllib.environment import GymEnvironment
from rllib.model.environment_model import EnvironmentModel
from rllib... | [
"sebastian.curi@inf.ethz.ch"
] | sebastian.curi@inf.ethz.ch |
71c8a815e9abdcce979147da4c74c9bf207a05b2 | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/4.2/lib/python2.7/site-packages/RoboGalaxyLibrary/netconf/ncclient/operations/subscribe.py | f5ed796c96dd96bd4dc9b0046bf76d272b5e79c7 | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # Copyright 2009 Shikhar Bhushan
#
# 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 writin... | [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
c079fd6ce0e69dc89478dbf7d7e8926315ba7e7d | 94838674ffd175df6194437c1ccc3f90ab409d6c | /pillowV3/log/2018-12-30 14:46:01.690040 | d11e65881713fa69fa27304303d67f21dd294fcc | [] | no_license | WojciechKoz/MyFirstNeuralNetwork | 4fdb3140d8f02257599d005638598f78055c1ac8 | 3cd032aba80ecd71edb0286724ae9ba565b75a81 | refs/heads/master | 2020-04-02T03:02:48.680433 | 2020-02-29T17:57:43 | 2020-02-29T17:57:43 | 153,943,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307,917 | 690040 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
from __future__ import print_function # new print() on python2
from datetime import datetime
import sys
import numpy as np
from mnist import MNIST
# Display full arrays
np.set_printoptions(threshold=np.inf)
mndata = MNIST('./data')
images_full, labels_full = mndata.loa... | [
"246992@student.pwr.edu.pl"
] | 246992@student.pwr.edu.pl |
fbe0ba3fe7398923a4ecff8dc91faf96af99e846 | 28b5eedc39b697186ba9afc42ec544cd0b13c70d | /spark/regression/linear_regression.py | 1619640ed02616968947da8db3b6c2ddc873eeac | [] | no_license | arunpa0206/mltrainingtechcovery | 7915ccac779a186d3f1bfa1f6cebbe5ac2455422 | ce284c31eefa0468c88c790913532b87a0f77e3a | refs/heads/master | 2022-12-08T23:50:04.415494 | 2021-03-13T08:53:22 | 2021-03-13T08:53:22 | 224,205,026 | 2 | 10 | null | 2022-12-08T02:36:22 | 2019-11-26T13:58:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,109 | py |
# make pyspark importable as a regular library.
import findspark
# create a SparkSession
from pyspark.sql import SparkSession
spark = SparkSession.builder.getOrCreate()
# load data
data = spark.read.csv('./boston_housing.csv', header=True, inferSchema=True)
# create features vector
print(data.head(5))
feature_column... | [
"mail_arunn@yahoo.com"
] | mail_arunn@yahoo.com |
29f3206bbd185cbf2b04e3e4ceb2d42791d0a6bb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03814/s672199772.py | 200b2992354025d407dc07f4f9b7d06b602a55c4 | [] | 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 | 77 | py | s = input()
left = s.find("A")
right = s.rfind("Z")
print(right - left + 1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
581e7f1ac73ddc919efb69e776016f838a8ce99e | b44b690c96cfbaba35fa3cc32e8da4442adb9fad | /Python/1101. The Earliest Moment When Everyone Become Friends.py | 151cb5ceccfe90d52025d61102662b977a2e5ccc | [] | no_license | faisalraza33/leetcode | 24d610c6884e218719d82a5c79f1695cb6463d68 | d7cf4ffba14c6f1ff4551634f4002b53dfeae9b7 | refs/heads/master | 2022-08-10T02:05:21.932664 | 2022-07-05T09:59:47 | 2022-07-05T09:59:47 | 238,060,131 | 0 | 0 | null | 2020-02-03T20:54:51 | 2020-02-03T20:54:50 | null | UTF-8 | Python | false | false | 3,082 | py | # There are n people in a social group labeled from 0 to n - 1. You are given an array logs where logs[i] = [timestampi, x_i, y_i] indicates that x_i and y_i will be friends at the time timestampi.
# Friendship is symmetric. That means if a is friends with b, then b is friends with a. Also, person a is acquainted with ... | [
"Hongbo.Miao@outlook.com"
] | Hongbo.Miao@outlook.com |
e3c31baedb01d6c813d3b7b845d8f3bcb35ed6e2 | c1c8b0363bb6dd52115c0aad9298b6573a6ba062 | /sparse_binary_number.py | c051e68a78ba80ce4b6058d4bf0ce5a1b3a8b3d7 | [
"MIT"
] | permissive | beepscore/sparse_binary_number | 3f5bd50e772c6e3345e8f57d4317c4a7d8e572d7 | a89c5b04189c5f7015855075222a0ced4a650db7 | refs/heads/master | 2021-01-10T20:28:56.885423 | 2015-05-14T18:38:41 | 2015-05-14T18:38:41 | 33,623,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,631 | py | #!/usr/bin/env python3
def next_sparse(sparse_number):
"""return next larger sparse number
Keyword arguments:
sparse_number -- a sparse number, as defined by is_sparse
This algorithm uses powers of two. Estimated time complexity >= O(log(n)).
"""
# print("sparse_number 0b{0:b}".forma... | [
"support@beepscore.com"
] | support@beepscore.com |
fb013c9f1fb83d9df51c54bbae2e997159c4c7e8 | 059b43c54e69fdca5419d5565c19cc5cb0114a92 | /__unported__/sale_order_line_analytic/__openerp__.py | 9edf7867b2603f7b614f424a96badd02f2aaaa26 | [] | no_license | caiuka/eficent-odoo-addons | b3594b0e4d52594c95bb4cea39fdb47933e77d22 | 458df2c04944688c2273885b5d09fe3753e0ca7e | refs/heads/master | 2020-05-29T11:00:45.273732 | 2014-11-06T13:32:26 | 2014-11-06T13:32:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014 Eficent (<http://www.eficent.com/>)
# <contact@eficent.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero ... | [
"jordi.ballester@eficent.com"
] | jordi.ballester@eficent.com |
ff5dff19f34684d16ef5281dee8f6be0988851a6 | 09652bdf74f8ade0cf56a75c9f716bda9dc6f4ff | /server/src/tests/samples/newType2.py | 31086a4f728f54cbba6821b213aacd9ac83b7663 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | zeronone/pyright | b68005063cc3623ae2f572a0fec1d4c7845ec57f | d9babcd56b08cb0be024c9d527df333cff5b2b97 | refs/heads/master | 2022-11-18T14:04:31.561923 | 2020-07-15T08:49:53 | 2020-07-15T08:49:53 | 278,020,180 | 0 | 0 | NOASSERTION | 2020-07-08T07:26:01 | 2020-07-08T07:26:00 | null | UTF-8 | Python | false | false | 400 | py | # This sample tests the special-case handle of the multi-parameter
# form of the built-in "type" call.
# pyright: strict
X1 = type("X1", (object,), dict())
X2 = type("X2", (object,), dict())
class A(X1):
...
class B(X2, A):
...
X3 = type(34, (object,))
X4 = type("X4", 34)
# This should generate an err... | [
"erictr@microsoft.com"
] | erictr@microsoft.com |
a3d8178d3d9cd5166f52ef11be9060f61c192390 | 47e9f6cef4bfedf81a897d972cecfcf4616ae25f | /experiments/base_experiment.py | 0fb506e33939575baf2a0db46f1c3a9691fa894c | [] | no_license | wz139704646/MBRL_on_VAEs | 1d2b141f5a17746ffa527f3852dfe10bc73dcd27 | b0e8f66b3ade742445a41d3d5667032a931d94d2 | refs/heads/main | 2023-04-09T04:35:34.306860 | 2021-04-27T03:59:54 | 2021-04-27T03:59:54 | 323,389,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | import abc
class BaseExperiment(metaclass=abc.ABCMeta):
"""base class for all kinds of experiments"""
def __init__(self, exp_configs, hook_before_run=None, hook_after_run=None):
"""initialize the experiment
:param exp_configs: the configurations needed in this experiment
:param hook_b... | [
"632291793@qq.com"
] | 632291793@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.