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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5fdf682f928aef41c6625b6e5d1e70bb65baa49 | cfc49e6e65ed37ddf297fc7dffacee8f905d6aa0 | /exercicios_seccao4/35.py | f774259ca92b71fb8f2bb8f0eeece2cbe180ede4 | [] | no_license | IfDougelseSa/cursoPython | c94cc1215643f272f935d5766e7a2b36025ddbe2 | 3f9ceb9701a514106d49b2144b7f2845416ed8ec | refs/heads/main | 2023-06-12T16:51:29.413031 | 2021-07-07T00:20:53 | 2021-07-07T00:20:53 | 369,268,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # Hipotenusa
import math
a = int(input('Digite o cateto a: '))
b = int(input('Digite o cateto b: '))
hipotenusa = math.sqrt(a ** 2 + b ** 2)
print(f'O valor da hipotenusa é {hipotenusa}.')
| [
"doug_ccortez@outlook.com"
] | doug_ccortez@outlook.com |
4c699101fa8582289ec996b5664bd8ab5b3ec4f5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03032/s297706816.py | d7371f5e563b20937599d014765a4d6f1b0ebd4c | [] | 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 | 743 | py | n,k=map(int,input().split())
v=list(map(int, input().split()))
if k<n*2:
ans=0
for i in range(k+1):
for j in range(k-i+1):
v_r=v[:i]
v_l=v[(n-j):]
sute_cnt=k-(i+j)
v_new=v_r+v_l
v_new.sort()
# print(i, j, v_r, v_l, sute_cnt, v_new)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
991dca36ac04de7fc66617c9dc6b5b69955f62de | 175522feb262e7311fde714de45006609f7e5a07 | /code/OCE/oce_ba_toy.py | b0d5e7d5d33e9d60e03b134751d925d68012207c | [] | no_license | m-hahn/predictive-rate-distortion | a048927dbc692000211df09da09ad1ed702525df | 1ff573500a2313e0a79d68399cbd83970bf05e4d | refs/heads/master | 2020-04-17T13:49:36.961798 | 2019-06-20T12:37:28 | 2019-06-20T12:37:28 | 166,631,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,806 | py | # Computes estimates also from held-out data.
# Was called zNgramIB_5.py.
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--language", type=str, dest="language", default="RIP")
parser.add_argument("--horizon", type=int, dest="horizon", default=1)
parser.add_argument("--code_number", type=... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
16241caf95d6f2f6a2c327e2309ad58990c11cd5 | be549921446835ba6dff0cadaa0c7b83570ebc3e | /run_eval_sutter.py | a0ba2df9ac3c6f63655586a070cc69f7762854c8 | [] | no_license | uctoronto/AutoPrescribe | 895ee4375625408c663cee22610bb5425d7efc7f | a6188e9189df727320448a368f6e70036472ede4 | refs/heads/master | 2020-03-27T05:47:47.500486 | 2017-05-31T18:49:33 | 2017-05-31T18:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | from models.processor import Processor
from models.leap import LEAPModel
from exp.coverage import config_sutter as config
from utils.data import dump
config = config.get_config()
dir = 'build/'
config.saved_model_file = dir + 'sutter_%s_%s_seq2seq.model' % (config.level, config.order)
print(config.saved_model_file.sp... | [
"stack@live.cn"
] | stack@live.cn |
ab4a4ec80a1bfd3b4a215a39861be605bc408651 | 9766c2e479e99cca5bf7cc834c949fc4d5286275 | /SRC/engine/IO/outputdestination.py | c01e8e8163a5f71c0b0c1fb0662dbb4b7e54d8e7 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | UstbCmsPjy/OOF2 | 4c141e8da3c7e3c5bc9129c2cb27ed301455a155 | f8539080529d257a02b8f5cc44040637387ed9a1 | refs/heads/master | 2023-05-05T09:58:22.597997 | 2020-05-28T23:05:30 | 2020-05-28T23:05:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,483 | py | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | [
"lnz5@rosie.nist.gov"
] | lnz5@rosie.nist.gov |
7ef5899fc65729bb3d4169066bc9065937633f77 | 8565e4d24b537d1fb0f71fef6215d193ceaed6cc | /tests/test_check_circular.py | 4a91863962a4377cf6bad0ba6466463a0579f885 | [
"MIT"
] | permissive | soasme/dogeon | 5f55c84a6f93aaa7757372664dd60ed90cf200e8 | 496b9a5b099946d14434ed0cd7a94a270f607207 | refs/heads/master | 2020-05-17T19:01:42.780694 | 2018-11-04T05:01:23 | 2018-11-04T05:01:23 | 20,592,607 | 3 | 0 | null | 2014-06-28T01:34:35 | 2014-06-07T12:28:07 | Python | UTF-8 | Python | false | false | 736 | py | import dson
import pytest
def default_iterable(obj):
return list(obj)
def test_circular_dict():
dct = {}
dct['a'] = dct
pytest.raises(ValueError, dson.dumps, dct)
def test_circular_list():
lst = []
lst.append(lst)
pytest.raises(ValueError, dson.dumps, lst)
def test_circular_composite():
... | [
"soasme@gmail.com"
] | soasme@gmail.com |
eee3cfdc459dc13a31ef3210abdd3ab4cc2b38fb | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/enums/types/product_bidding_category_level.py | 136f73cb4b5a918c667515478fd95aaa94f7a0f1 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
08824881bc68f2ddf1fee1b25916cd115d4df279 | aec59723a3dd0d3356a4ce426dc0fc381a4d3157 | /catalog/model/pricing.py | 020f6e8a724428673e0662dd1b10eba1af0e2087 | [] | no_license | Guya-LTD/catalog | f44e31593637e22b3b2a2869a387e29875986f7c | 632b3c3766e2600275c0a18db6378b2d38e3c463 | refs/heads/master | 2023-02-11T19:03:36.796812 | 2021-01-08T14:12:06 | 2021-01-08T14:12:06 | 275,332,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
"""Copyright Header Details
Copyright
---------
Copyright (C) Guya , PLC - All Rights Reserved (As Of Pending...)
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
LICENSE
-------
This file is subject to the terms and conditi... | [
"simonbelete@gmail.com"
] | simonbelete@gmail.com |
14f648102f5ede6ed0cbfd6da4036fb02e0e97b3 | 8983b099a27d124b17fc20d4e9b5ec2f0bf8be25 | /altair/schema/_interface/named_channels.py | d2d7c77e95eadb00163c13a153019fb543b03f86 | [
"BSD-3-Clause"
] | permissive | princessd8251/altair | a7afa0745291f82215fbda6a477e369f59fcf294 | 387c575ee0410e7ac804273a0f2e5574f4cca26f | refs/heads/master | 2021-01-16T21:41:40.935679 | 2017-08-10T16:36:05 | 2017-08-10T16:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # -*- coding: utf-8 -*-
# Auto-generated file: do not modify directly
# - altair version info: v1.2.0-98-g8a98636
# - date: 2017-08-09 12:14:26
from . import channel_wrappers
class Color(channel_wrappers.ChannelWithLegend):
pass
class Column(channel_wrappers.PositionChannel):
pass
class Detail(channel_wra... | [
"jakevdp@gmail.com"
] | jakevdp@gmail.com |
e073a8419eda5bafad84588f1124d089f124d4cd | 5864e86954a221d52d4fa83a607c71bacf201c5a | /carbon/common/lib/markdown/extensions/tables.py | f613f9a67f1f99e646124dad4f9a5fdff380870a | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\markdown\extensions\tables.py
import markdown
from markdown.util import etree
class TableProcessor(markdown.blockprocessors.BlockProcessor):
def test(self, parent, block):
rows = block.split('\n')
... | [
"le02005@163.com"
] | le02005@163.com |
3eb6943aae1ad11db104ee00d54ed9bccbb642e4 | 855dc9fcd4170923e8723b6946c09c5cae68e079 | /what_transcode/migrations/0001_initial.py | cb61199f9d66f0b1aee0d9c062f1096d498bbdcf | [
"MIT"
] | permissive | point-source/WhatManager2 | 3fc72976402ac40d132aef0deffd8bcfbd209703 | ddbce0fa1ff4e1fc44bfa726c4f7eace4adbe8a9 | refs/heads/master | 2023-01-27T11:39:43.861041 | 2019-02-24T17:51:24 | 2019-02-24T17:51:24 | 210,232,561 | 1 | 0 | MIT | 2019-09-23T00:21:54 | 2019-09-23T00:21:53 | null | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='TranscodeRequest',
fields=[
... | [
"ivailo@karamanolev.com"
] | ivailo@karamanolev.com |
e8ecf7fc0963b49fbee6320bd113e8f851195674 | add161c6e8d86dc8448d4f3d4b61a173a3a4543a | /fuglu/src/fuglu/plugins/icap.py | 7c45e6ac0df6497843ea46eb04e299795b1f6fe7 | [
"Apache-2.0"
] | permissive | sporkman/fuglu | 9a578746a52308d618a6edcd7abeb4c50fb0f6fc | 1b458147a93ed17927e0fe16debd80b6f690d11b | refs/heads/master | 2021-01-12T22:30:50.575560 | 2015-04-06T10:07:51 | 2015-04-06T10:07:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,724 | py | # Copyright 2009-2015 Oli Schacher
#
# 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 writi... | [
"oli@fuglu.org"
] | oli@fuglu.org |
5e9cf5ae03e925ad4d818c9b0637c412bbc60146 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02709/s022509829.py | dd9fa602873f6ee74e43f9bacf44dd9a2eee3894 | [] | 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 | 911 | py | import sys
input = sys.stdin.readline
from collections import deque
N = int(input())
#A = list(map(int, input().split()))
A = [(a, i) for i, a in enumerate(map(int, input().split()))]
A = sorted(A, reverse=True)
values = []
num_indcies = {}
for i, a in enumerate(A):
if not a in num_indcies:
num_indcies[a]... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d4821e8c303ca78433ad4c3a05246646382bc1c9 | 2c15283e394a392f3a2939753f47f767c30a7f3d | /PyBabel/bo.py | 4608880d037e6eefcd1e4538e9c34d261b581c0c | [] | no_license | amdens-sci/AutoDockTools_py3 | 06ae1c2273a848efdec5e1a96906489c89f5c4ab | 28ed47085026b2ac3edd12f75624b22c4db9fcd1 | refs/heads/master | 2023-08-19T02:59:14.843541 | 2021-03-23T17:18:43 | 2021-03-23T17:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,861 | py | # ##################################################################################################
# Disclaimer #
# This file is a python3 translation of AutoDockTools (v.1.5.7) #
# Modifications ... | [
"mariosergiovaldes145@gmail.com"
] | mariosergiovaldes145@gmail.com |
3d76924803db335c9cb94bb42f4444f162c2d2ae | 936f72b46215b89b277ffd57256e54f727ce1ac5 | /spark-comp04/token.py | 3147a73cbc6b3be806e113977983bf177f1a4f32 | [] | no_license | luizirber/dc-compilers | 91dc99097d628339b53b20a0c0f2a6255a599b7a | 4a47e786583c5f50cac2ac3a35de195f7be7a735 | refs/heads/master | 2016-09-06T11:27:51.815748 | 2012-07-03T01:28:26 | 2012-07-03T01:28:26 | 41,540 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | class Token(object):
def __init__(self, type, attr=None, lineno='???'):
self.type = type
self.attr = attr
self.lineno = lineno
def __cmp__(self, o):
return cmp(self.type, o)
def __repr__(self):
return self.attr or self.type
| [
"luiz.irber@gmail.com"
] | luiz.irber@gmail.com |
f3822c56be1305e7b55915ab88f6b4e8ff7f9704 | 62587160029c7c79b5d11f16e8beae4afa1c4834 | /webpages/island_scraper_kyero/island_scraper/middlewares.py | f34dd9c19c21b5524d2483086acae265764a8f49 | [] | no_license | LukaszMalucha/Scrapy-Collection | b11dcf2c09f33d190e506559d978e4f3b77f9f5a | 586f23b90aa984c22ea8f84eba664db9649ed780 | refs/heads/master | 2022-12-14T15:06:00.868322 | 2021-07-27T12:09:07 | 2021-07-27T12:09:07 | 144,448,351 | 3 | 0 | null | 2022-11-22T03:16:19 | 2018-08-12T07:55:05 | Python | UTF-8 | Python | false | false | 3,611 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class IslandScraperSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# s... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
6544fcf260d6f8112c79a5e3a5ec70a10575a277 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1425+219/sdB_PG_1425+219_lc.py | e8ee83c9f091b54b888664988d5fb0c6cd57aee1 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[216.986042,21.632814], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_1425+219 /sdB_PG_1425+219_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
48b1cfe1f2c159159035fd8b8781a2df3fb2ffde | b11a5afd6682fe003445431ab60a9273a8680c23 | /language/nqg/tasks/spider/write_dataset.py | b2ed9f1018cf872e2b4933c9712c698deaeb8e52 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | Srividya-me/language | a874b11783e94da7747fc9a1b0ae1661cd5c9d4a | 61fa7260ac7d690d11ef72ca863e45a37c0bdc80 | refs/heads/master | 2023-08-28T10:30:59.688879 | 2021-11-12T22:31:56 | 2021-11-13T01:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
4dee5e0f7b4cc51baf47bb8c3e8933d77c641c85 | c47340ae6bcac6002961cc2c6d2fecb353c1e502 | /controlm_py/models/fts_general_settings.py | 9eab4959b0d808a9b66815d288744bfd62ea5263 | [
"MIT"
] | permissive | rafaeldelrey/controlm_py | 6d9f56b8b6e72750f329d85b932ace6c41002cbd | ed1eb648d1d23e587321227217cbfcc5065535ab | refs/heads/main | 2023-04-23T09:01:32.024725 | 2021-05-19T00:25:53 | 2021-05-19T00:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,131 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.115
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class FtsGeneral... | [
"dcompane@gmail.com"
] | dcompane@gmail.com |
6ff66a5e7100cbdd1877f359622be88b41e19b2c | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/keras_applications/inception_v3.py | 1b825c0ce4aea562e468b337a5843f63810f57d5 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6bdeecc0c5e0341451f5d87e17d12c89a210b6161e1b066aca6e02bc425b2abf
size 14598
| [
"github@cuba12345"
] | github@cuba12345 |
8d6b7100e1ca9bc1aa8edd46c91935f9aebbd87e | 3a1be455fc5e117bd8792ed46c59793f8b29a01f | /python/paddle/distributed/sharding/group_sharded.py | 6fd4caa7b4a5c41e73fcf95ac50d0253bb3e7c79 | [
"Apache-2.0"
] | permissive | liyancas/Paddle | 42d5e7c71c37b4e63bf54e6e31e82e40aef044ce | 98303291d27cb831b19111d82793159cbe9a85ca | refs/heads/develop | 2022-05-21T03:27:16.497238 | 2022-04-01T00:52:17 | 2022-04-01T00:52:17 | 72,499,865 | 0 | 0 | Apache-2.0 | 2022-02-11T08:16:37 | 2016-11-01T03:17:41 | Python | UTF-8 | Python | false | false | 9,839 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | [
"noreply@github.com"
] | liyancas.noreply@github.com |
568aa59ae896f8dcad1d6c4c19a117a22a0ff63c | c4d05bf624ce277b35d83ba8ba9636f26043280e | /project/urls.py | d6e90307036ceed43e1f6355ce2dc672ebb0e233 | [
"Apache-2.0"
] | permissive | DrMartiner/kaptilo_back | 2366b3a2b5c9bd9dc57c9091ff5fd0025963668d | df7f716030edbb1a70388fcbb808b0985dabefbf | refs/heads/main | 2023-04-09T03:12:52.274388 | 2021-03-22T09:48:39 | 2021-03-22T09:48:39 | 349,943,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import path, include
from apps.link.views import OriginalLinkRedirectView
admin.site.site_header = "Kaptilo"
admin.site.site... | [
"DrMartiner@GMail.Com"
] | DrMartiner@GMail.Com |
668963624d3086f1b1dd35cf080200af75bf8736 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210523152045.py | 6d7861a88a7d86a28f1d8d675b4416ba674fb3c2 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | from flask import Flask, render_template, redirect, url_for
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
app = Flask(__name__)
app.config['SECRET_KEY'] ... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
8065d754386fc0b3762e05f4fc04a7f53121086e | 9da6c375dbf1af87622a2ba0fb773e8f513d8021 | /cli/bak.20200512-local/abcombo.py | a267f8c6d9d445c64cdd848a3d93c27eb4e147ce | [] | no_license | wri/tree_canopy_fcn | a80a9971403f6ca2548d44146ed08aa22d7d559e | 78f742e4e26e34008417468f73413643edde801e | refs/heads/master | 2022-10-11T03:25:41.503263 | 2020-06-16T12:39:21 | 2020-06-16T12:39:21 | 236,492,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,895 | py | import os,sys
PROJECT_DIR='/home/ericp/tree_canopy_fcn/repo'
sys.path.append(PROJECT_DIR)
from pprint import pprint
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
from torch_kit.loss import MaskedLoss
import torch_kit.functional as F
from torch_kit.optimizers.radam import RAdam
import pytorch... | [
"bguzder-williams@wri.org"
] | bguzder-williams@wri.org |
583f60ff287cee838ecb0f535047399292eeab50 | 653eaef652627b155569b5fe9ab9bb3607fc1e78 | /alg/ganite/ganite.py | 1e5aaedc8c7c7720ded1a6bf6cee744f9f7711a5 | [
"BSD-3-Clause"
] | permissive | IlyaTrofimov/mlforhealthlabpub | 11ab86a83bd2ffd2574364a956b322b0c62406ae | 190cbad2faae9e559ffe7a68143df7f747d70adc | refs/heads/main | 2023-04-16T03:58:38.423288 | 2021-04-21T10:22:43 | 2021-04-21T10:22:43 | 358,528,623 | 0 | 0 | NOASSERTION | 2021-04-16T08:25:26 | 2021-04-16T08:25:25 | null | UTF-8 | Python | false | false | 12,408 | py | '''
GANITE:
Jinsung Yoon 10/11/2017
'''
import tensorflow as tf
import numpy as np
from tqdm import tqdm
import argparse
import os
import json
import pandas as pd
import initpath_alg
initpath_alg.init_sys_path()
import utilmlab
def init_arg():
parser = argparse.ArgumentParser()
parser.add_argument("--alpha",... | [
"e.s.saveliev@gmail.com"
] | e.s.saveliev@gmail.com |
f8184270f36e3f165d97bbb247f6f0b508fc5810 | ba7d84b4b85be8c3221468527757e264e64616b9 | /tests/hammytest.py | b5f03afc22f1e60ade3aca0eb505d0bf88fd3fe8 | [] | no_license | gomesr/timetracker | c18eb4b6f33e08eadd72971216b16560ef085aa1 | ce57a0791727a3b06e4b167fbeb3cb3e558ff2f1 | refs/heads/master | 2021-01-22T23:58:20.247393 | 2010-12-12T01:16:54 | 2010-12-12T01:16:54 | 1,130,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py |
import unittest
from trackers.hammy import HamsterTracker
from hamster import client
class HammyTest(unittest.TestCase):
def setUp(self):
self.tracker = HamsterTracker()
def test_create_100_activites(self):
tags = []
ids = []
try:
for i in range(1,100):
... | [
"rodneygomes@gmail.com"
] | rodneygomes@gmail.com |
dd1953d6927d29066068ea81328364dee75a86e6 | bbf1ae079309eca11270422d3f0d259d1515d430 | /numerical-tours/python/todo/solutions/wavelet_2_haar2d.py | 7ec8c89d23ba2108e274a13521844d6ad479f593 | [
"BSD-2-Clause"
] | permissive | ZichaoDi/Di_MATLABTool | 5e6a67b613c4bcf4d904ddc47c2744b4bcea4885 | c071291c63685c236f507b2cb893c0316ab6415c | refs/heads/master | 2021-08-11T07:28:34.286526 | 2021-08-04T18:26:46 | 2021-08-04T18:26:46 | 149,222,333 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | def exo1():
"""
Implement a full wavelet transform that extract iteratively wavelet
coefficients, by repeating these steps. Take care of choosing the
correct number of steps.
"""
Jmin = 0
fw = f
for j in J: -1: Jmin:
fw(1: 2^(j + 1), 1: 2^(j + 1)) = haar(fw(1: 2^(j + 1), 1: 2^(j ... | [
"wendydi@compute001.mcs.anl.gov"
] | wendydi@compute001.mcs.anl.gov |
286cc8c250f2c2b4030ffc5e75d7d1213b47a934 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_yens.py | f7c90d82f8fc7ae9864e4492c2449f9c31d5b2f4 | [
"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 | 217 | py |
from xai.brain.wordbase.nouns._yen import _YEN
#calss header
class _YENS(_YEN, ):
def __init__(self,):
_YEN.__init__(self)
self.name = "YENS"
self.specie = 'nouns'
self.basic = "yen"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a31d0693760097d9ec0bfc62e4a5c4d7383c09ab | 378b200007c5d3633572b61eb3dd2180748086b7 | /chefsBackEnd/chefsBackEnd/asgi.py | d077d3550da2054b45a48c64401ec50a84113e40 | [] | no_license | jgartsu12/chefs-table-backend | 4163c2c9a2bb586d4432c332238682bf282ef967 | 71611cf17aa457f8bc9a7ec7d853c570062d22fb | refs/heads/master | 2022-12-16T04:22:30.954831 | 2020-07-08T19:24:37 | 2020-07-08T19:24:37 | 251,097,796 | 1 | 0 | null | 2022-12-08T10:13:44 | 2020-03-29T17:59:15 | Python | UTF-8 | Python | false | false | 401 | py | """
ASGI config for chefsBackEnd project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"jgartsu12@gmail.com"
] | jgartsu12@gmail.com |
764c228e5a8b115f7ca60c1480fdff36b20ab047 | 8a3726abfc9cb72d8ccf7d32b18edabf8d16b630 | /18/a.py | 32847a4eb7fdc71ad694396872b27a628860cf2a | [] | no_license | alex-stephens/aoc2015 | 48a46efc1a888ea2d451a5938fc404d26e96e1a0 | ccc1c85f8da7a0585003b2e4f99f3f1def35ec0b | refs/heads/master | 2023-02-05T23:02:19.148138 | 2020-12-27T19:16:47 | 2020-12-27T19:16:47 | 324,579,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | grid = [list(line.strip()) for line in open('input.txt').readlines()]
rows, cols = len(grid), len(grid[0])
def count_neighbours(i, j):
rmin, rmax = max(i-1, 0), min(i+1, rows-1)
cmin, cmax = max(j-1, 0), min(j+1, cols-1)
ans = 0
for r in range(rmin, rmax+1):
for c in range(cmin, cmax+1):
... | [
"alexstephens9@gmail.com"
] | alexstephens9@gmail.com |
05c5693d3b24a5c3fd147316f1f2cfeaba19014b | 5c39f5ac529e9f292ba0e4965fd684d4c6eefe8a | /migrations/0001_initial.py | 8570a25dfd79013e6c9c3202871e7bdc877c28d4 | [] | no_license | joshianshul2/csv_db | 6d24dec8bdcd8f00115a8729d5036beb47994d0e | e7215002c0a2fb8cadd0d4087b8651b1ec9e30ea | refs/heads/master | 2023-04-21T19:46:56.941399 | 2021-05-11T17:29:38 | 2021-05-11T17:29:38 | 356,846,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,962 | py | # Generated by Django 3.2 on 2021-04-07 05:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AvgMaster',
fields=[
('id', models.AutoField(... | [
"joshi.anshul2@gmail.com"
] | joshi.anshul2@gmail.com |
848356b8842293f30d58db6ccfc7eb592c6638f8 | 7ba131dadd14574d0dc463eac483b48e505d9a67 | /itchatmp/controllers/mpapi/mp/messages.py | 23161a6eb430de2c24c5073f8d647048adbe49da | [
"MIT"
] | permissive | sysuzyq/itchatmp | a40e615016c43c12c989a0a0257069ead042464c | be235d023b6a55123706d56cd0d149e4271b2c0c | refs/heads/master | 2021-01-19T23:59:34.792413 | 2017-03-15T06:54:52 | 2017-03-15T06:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,458 | py | ''' This package is for mass texting in wechat mp
1. What can we send?
- IMAGE, VOICE, VIDEO, TEXT, NEWS, CARD
2. How to send them?
- we use send_some / send_all method
`send_some(targetIdList, msgType, mediaId, additionalDict)`
- for msg like text and card, just pass content as msgId
... | [
"i7meavnktqegm1b@qq.com"
] | i7meavnktqegm1b@qq.com |
545aac01abbebdbef94ce6fc238f142f7cc74f19 | c27c51f5c33e0431dbe7db6e18c21b249d476cfa | /OpenSource_Python_Code/nova-2013.2/nova/tests/keymgr/fake.py | 85e62e3dcf9076b4adb4dd85da8723f0fe4f1411 | [
"Apache-2.0"
] | permissive | bopopescu/Python_Stuff | 9bef74e0db17bb5e3ba2d908ced01ee744820d80 | 9aa94a0fa5e4e802090c7b29ec88b840e304d9e5 | refs/heads/master | 2022-11-20T06:54:36.581623 | 2017-12-04T18:56:02 | 2017-12-04T18:56:02 | 282,171,169 | 0 | 0 | null | 2020-07-24T08:54:37 | 2020-07-24T08:54:36 | null | UTF-8 | Python | false | false | 854 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Justin Santa Barbara
# Copyright 2012 OpenStack LLC
# 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 ... | [
"thelma1944@gmail.com"
] | thelma1944@gmail.com |
159e62cf42f265a5d96156ae23363dbeced3b8c0 | 1e53216c58f3c7843031721305590b83dbaed3f2 | /week_four/db_demo/db_app/migrations/0003_message_post_user_who_liked.py | 59fc1606c04688bdf72a3cafe91a74cffc27e608 | [] | no_license | MTaylorfullStack/python_july_20 | 991852ba12d6f06d6b93b8efc60b66ee311b5cb3 | bdfb0d9a74300f2d6743ac2d108571692ca43ad9 | refs/heads/master | 2022-12-12T18:03:00.886048 | 2020-08-27T23:53:31 | 2020-08-27T23:53:31 | 277,956,745 | 2 | 2 | null | 2023-06-30T20:06:11 | 2020-07-08T01:09:34 | Python | UTF-8 | Python | false | false | 425 | py | # Generated by Django 2.2 on 2020-07-29 00:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db_app', '0002_message_post'),
]
operations = [
migrations.AddField(
model_name='message_post',
name='user_who_liked',... | [
"mtaylor@codingdojo.com"
] | mtaylor@codingdojo.com |
2ba794c5fbdf6b165029c3b20b7d4ae08486b115 | 4fd77ce692e10e962483c7e3e6e76c44887e9f52 | /geatpy/templates/soeas/GA/studGA/soea_psy_studGA_templet.py | 7cb191a9338b905bc256f6ecb2c43a2de4b72a72 | [
"MIT"
] | permissive | Passion-long/geatpy | d1aaf1622058473649840a9e2e26f9d0b0844bce | 8e2ab8730babaae640272bd4c77106519bdd120c | refs/heads/master | 2020-07-09T13:40:36.217907 | 2019-08-23T03:36:12 | 2019-08-23T03:36:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,750 | py | # -*- coding: utf-8 -*-
import numpy as np
import geatpy as ea # 导入geatpy库
from sys import path as paths
from os import path
paths.append(path.split(path.split(path.realpath(__file__))[0])[0])
class soea_psy_studGA_templet(ea.SoeaAlgorithm):
"""
soea_psy_studGA_templet.py - Polysomy Stud GA templet(多染色体种马遗传算法... | [
"jazzbin@geatpy.com"
] | jazzbin@geatpy.com |
280cab33335daf580bca95b971a5c093b1896c52 | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-4.10.0/bin/weewx/drivers/cc3000.py | 22f01d1c3bb42aab59083b7c30094abe338751ce | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 64,470 | py | #!/usr/bin/env python
#
# Copyright 2014 Matthew Wall
# See the file LICENSE.txt for your rights.
"""Driver for CC3000 data logger
http://www.rainwise.com/products/attachments/6832/20110518125531.pdf
There are a few variants:
CC-3000_ - __
| |
| 41 = 418 MHz
| 42 = 433 MHz
| __ =... | [
"tom@tom.org"
] | tom@tom.org |
47bf2f00c6730182259d81aeab1bf82ce408ef5d | c7115a0a1470310792b81cd097e0aa47ed095195 | /django_thoughtapi/manage.py | 5045eb05410e0449491ad1e7a92edec2a1f3c746 | [
"MIT"
] | permissive | qwergram/thoughts_api | 80818424b3755f671cfb65fcddff5c0769fa9e27 | 47e9a76cc15e30c36232b253eb0e44bb5f401482 | refs/heads/master | 2020-12-24T22:29:12.401158 | 2016-04-30T22:45:20 | 2016-04-30T22:45:20 | 57,338,528 | 0 | 0 | null | 2016-04-29T23:40:38 | 2016-04-28T22:46:59 | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_thoughtapi.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"npengra317@gmail.com"
] | npengra317@gmail.com |
69c0bb652daa62eea8c9a6a5378fd562629cf26a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03095/s108733747.py | 8493da82e83df4f2a53a5e799e1313b9f63c0471 | [] | 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 | 1,818 | py | import sys
import math
from collections import Counter
N = int(input())
S = input()
MOD = 1000000007
# baba
# a(2), b(2), ab(1), ba(3)
# baab
# a(2), b(2), ab(2), ba(2)
# 1文字の時は分かる、それは単に数えるだけ
# 2文字の時は?
# 'ab' 'a'どれ選ぶ? → その後ろにある'b'は…
# 全部やるなら2^100000、ムリー
# dpいけるか?
# dpを設計しよう
# dp[n] : n文字目まで見た時の答え
# dp[n] = dp[n... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
419c8a91a20a69ff1f0924b178d71876b2f3d74b | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1035975/snippet.py | 5f3993a8803fe9637f988459e7009fb87ae47a03 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 13,415 | py | import ast
from cStringIO import StringIO
import sys
INFSTR = '1e308'
def interleave(inter, f, seq):
seq = iter(seq)
try:
f(next(seq))
except StopIteration:
pass
else:
for x in seq:
inter()
f(x)
class PythonToPhp:
def __init__(self, source, indent = 0):
tree = ast.parse(source)
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
ec88adb74b40ae3b44f04b1e117c8c881872eb99 | ba2d24fd6c5ce7d490ee57f224fd5435a1132093 | /setup.py | 7b0ac69b67ea99435a867d57e8b00a0787e5f3aa | [
"MIT"
] | permissive | FlowerOda/pytest-auto-parametrize | cb2aff37308bff571b980da88f222f8b88e4e36b | 9db33bb06de13c26f753bfd18e254ce10ae1256c | refs/heads/master | 2022-01-09T16:54:33.796383 | 2018-10-09T08:56:09 | 2018-10-09T08:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
__version__ = 'unknown'
# "import" __version__
for line in open('pytest_auto_parametrize.py'):
if line.startswith('__version__'):
exec(line)
break
class PyTest(TestCommand):
"""Enable "python setu... | [
"Matthias.Geier@gmail.com"
] | Matthias.Geier@gmail.com |
005852383cf1e3ae176206e5dd95e2754cd001ce | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/container/browser/find.py | ee744f8239d12401177ed371c83a4a3a56c523fe | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
064b469872ad95e7487c3cf649ca3cfa62170bdd | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/068d64a694460d83bc9a67db9e2e5f1e4e03d3c3urls.py | 068d64a694460d83bc9a67db9e2e5f1e4e03d3c3 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 717 | py | from django.conf.urls import url
from . import views
SITE_SLUG = "(?P<site_slug>[-_\w]+)"
IMAGE_SLUG = "(?P<image_slug>[-_\w]+)"
urlpatterns = [
# Manage
url(r'^$', views.manage_redirect, name='manage_redirect'),
url(r'^manage/$', views.manage, name='manage'),
url(r'^manage/archives$', views.archives,... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
94e1bcfdf5adabec1171a6844867b600be9ef5e8 | c93b0f008d0977e0b9327ad8b930489f5cccae97 | /platfrom/testdata/RawQosBuffering.py | 3dbfb80b4f23f72c376766ece3d0dc34e83de492 | [] | no_license | ParkPan/ATCasePackage | 15caa664bd94c014ccbd1780353bfc5fcc0caa87 | edad6c1d5a343c740e251821fee0c29336f3d435 | refs/heads/master | 2020-06-16T02:44:06.323352 | 2016-12-01T03:46:44 | 2016-12-01T03:46:44 | 75,251,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | import random
import sys
import os
import datavars
import dataprovider
sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '..'))
from commonfunc import get_timestamp_by_time
class RawQosBuffering(dataprovider.Dataprovider):
tablename = 'raw_input_qos_buffering'
@classmethod
def gettablena... | [
"panpan@cloutropy.com"
] | panpan@cloutropy.com |
ceab03c4764ad7cac99e7e1fcadaca2cdc5da95a | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py | 94cabd744e1d3785ac2a728ff2ac0c584fccdf39 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 4,397 | py | from _pydevd_bundle.pydevd_constants import get_current_thread_id, Null, ForkSafeLock
from pydevd_file_utils import get_abs_path_real_path_and_base_from_frame
from _pydev_imps._pydev_saved_modules import thread, threading
import sys
from _pydev_bundle import pydev_log
DEBUG = False
class CustomFramesContainer:
... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
ea30277fdda4769bc035c83cf910f8660e83b049 | 421f6ce9490876be113e5ed1ac173b1f6d70cb66 | /newYork/new_york_analysis/recursive_top_level/u_craigslist4237915975/craigslist4237915975scraper/craigslist4237915975scraper/items.py | 2ed8d4fb8cf4de54768e328577d307baa7ea0dfc | [] | no_license | EricSchles/humanTraffickingTalk | a1f4770c4380ea0424663baac79686be5b74733a | f399e6e6188601f34eab3fd8e7fc4a3ca30d9b14 | refs/heads/master | 2021-01-01T06:11:24.424134 | 2014-08-14T18:51:23 | 2014-08-14T18:51:23 | 14,879,906 | 17 | 5 | null | 2019-10-15T11:10:13 | 2013-12-03T01:15:11 | Python | UTF-8 | Python | false | false | 134 | py |
from scrapy.item import Item, Field
class craigslist4237915975Item(Item):
title = Field()
link = Field()
desc = Field()
| [
"ericschles@gmail.com"
] | ericschles@gmail.com |
970feb65038f3cbb7891e048c6ec4edf3da55f5c | 27cd4886e5d08cca23bf36e24339ff1155b7db10 | /generators/adc_sar/BagModules/adc_sar_templates/TISARADC.py | 3397c883b0f4ee6cc3c04f5671d08c84f7ffb9ab | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ucb-art/laygo | 8539accac6e9888122e8e0afd160d294ffb56bfc | 8f62ec1971480cb27cb592421fd97f590379cff9 | refs/heads/master | 2021-01-11T08:49:24.306674 | 2020-06-18T15:01:50 | 2020-06-18T15:01:50 | 194,750,788 | 24 | 9 | null | null | null | null | UTF-8 | Python | false | false | 19,542 | py | # -*- coding: utf-8 -*-
########################################################################################################################
#
# Copyright (c) 2014, Regents of the University of California
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are... | [
"richards@eecs.berkeley.edu"
] | richards@eecs.berkeley.edu |
6e907d99daab017e865c8e55609d42b30531e01b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4069/codes/1578_1331.py | f6e61de10d8ff19b5aa7a45b3dc1f2599615276b | [] | 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 | 30 | py | x = 50//3
y = 50%3
print(x, y) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
ce9503d82749c331998242ffc827e8f6aa81c3bb | 1a8583a07b710a2b8d3344bddb3aa5dd2abc9547 | /fpn/symbols/resnet_v1_101_fpn_rcnn_sod_l0_focal_v4.py | d103e0f2366990e847198ebfde760930a3092875 | [
"MIT"
] | permissive | qilei123/sod_v1_demo | 9fec1377609acaa2c04ced0008208ecabce3f53e | a38f76e5a3af13f8f16d32aa40369f1a4f4fd839 | refs/heads/master | 2020-05-04T18:27:50.655652 | 2019-07-02T01:39:58 | 2019-07-02T01:39:58 | 179,354,251 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92,739 | py | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2017 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Haozhi Qi
# --------------------------------------------------------
import cPickle
import mxnet as mx
from utils.symbol ... | [
"qileimail123@gmail.com"
] | qileimail123@gmail.com |
a4e44762a7511ec359dd8e19c070b721d03e6d4c | ce6fc44470dcb5fca78cdd3349a7be70d75f2e3a | /AtCoder/Panasonic 2020/C.py | df4a723d90f0c2af78b234c8e09df7cc7078f4ca | [] | no_license | cormackikkert/competitive-programming | f3fa287fcb74248ba218ecd763f8f6df31d57424 | 3a1200b8ff9b6941c422371961a127d7be8f2e00 | refs/heads/master | 2022-12-17T02:02:40.892608 | 2020-09-20T11:47:15 | 2020-09-20T11:47:15 | 266,775,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | a, b, c = map(int, input().split())
if (c - a - b) >= 0 and 4 * a * b < (c - a - b) * (c - a - b):
print("Yes")
else:
print("No") | [
"u6427001@anu.edu.au"
] | u6427001@anu.edu.au |
566bdadc52d20472b63a9220e98e6d64c70af204 | 12fb02e7d946002beee4e095ea23f4d98c968afa | /tscripts/yunwei/operate/compress.py | 2322013f32616938001a146dfb17314ba7e2ad9c | [] | no_license | cash2one/yunwei-1 | 0ab4ec0783c061739dc9a6c3db2f9379605746fd | b929fe23fd95ea1f18bd809b82523101eb414309 | refs/heads/master | 2020-07-02T14:31:00.776030 | 2016-09-09T05:31:52 | 2016-09-09T05:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
date: 2016/08/20
role: 压缩解压
usage: cmb = compressBase(log_path) 实例化
cmb.zipp(source_dir,zipfile_path)
cmb.tar(source_dir,tarfile_path)
cmb.unzip(zipfile_path,target_dir)
cmb.untar(tarfile_path,target_dir)
'''
from __future__ import absolut... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
308f47876d956e476994e9c9fe6924bde8b25f3c | 22e9d7c194cf22513d68b61b97c49405a47e8708 | /Number_Theory/sieves_primality_test.py | ef64fdf8d48dbf9a21543d0f6f5e2a11e959499b | [] | no_license | SandeepPadhi/Algorithmic_Database | 44c26f9300a99539781c5beb5587997b3ecadfe1 | ab8040a7dad94c84ec88f40e44b8520edcbe2443 | refs/heads/main | 2023-06-22T02:04:29.362315 | 2021-07-19T17:48:40 | 2021-07-19T17:48:40 | 338,329,340 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import math
maxn=1000000
spf=[i for i in range(maxn+1)]
def sieve(spf):
for i in range(2,int(math.sqrt(maxn))+1,1):
if spf[i]==i:
for j in range(i*i,maxn+1):
spf[j]=i
def isPrime(x):
return True if spf[x]==x else False
sieve(spf)
print(isPrime(31)) | [
"padhisandeep96@gmail.com"
] | padhisandeep96@gmail.com |
3fc066210b8493bb0d40a8279d61d93f4157055a | 602fa0e4ce194d3073d78230c61f7053281f9f9b | /code/python/src/util/data_util.py | b08a962dd0200b383f1b66164fc7b1e43403c0a4 | [] | no_license | ziqizhang/wop | 111cfdda1686a874ff1fc11a453a23fb52d43af1 | ea0c37f444de9f2d5303f74b989f6d1a09feb61d | refs/heads/master | 2022-09-14T20:14:11.575021 | 2021-12-10T21:23:24 | 2021-12-10T21:23:24 | 166,239,995 | 2 | 1 | null | 2022-09-01T23:11:13 | 2019-01-17T14:33:51 | Python | UTF-8 | Python | false | false | 13,037 | py | #read csv data as dataframe, perform stratisfied sampling and output the required sample
import collections
import csv
import json
import pickle
import numpy
import pandas as pd
from sklearn import model_selection
from sklearn.model_selection import train_test_split
#prepare data to fasttext format
def to_fasttext(in... | [
"ziqizhang.email@gmail.com"
] | ziqizhang.email@gmail.com |
b74c7a408b72582b81de14ddae925d60aa364fdf | 86cf79436659ff8d69d6d7a8d9cb358f0d1b4f1c | /AOJ/0383/0383.py | 366208a7d42f41637177a43b9108f38835ec689a | [] | no_license | pombredanne/problem-solving | d96a367851a34fb4f947b3b7a95ad364cf94ea8f | fefdbfb89ba04dbcd7df93c02968759ea970db06 | refs/heads/master | 2020-05-20T12:34:23.654253 | 2019-03-31T09:57:55 | 2019-03-31T09:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | A,B,X = map(int, input().split())
ans = a = b = 0
if X % 500 != 0: X += 500 - X%500
if A < B:
a = X//1000 + (1 if (X%1000>0) else 0)
elif A > 2*B:
b = X//500
else:
a = X//1000; X %= 1000
b = X//500
print(A*a + B*b)
| [
"y.watanobe@gmail.com"
] | y.watanobe@gmail.com |
54a92741481e50fdde73c533ad52c1b313d363a4 | cb3bce599e657188c30366adb0af3007ff9b8f96 | /src/note/test_proxy.py | bd9bcba2da944244a78ca5f41ac1a3c0cc431346 | [] | no_license | skk4/python_study | 534339e6c378d686c29af6d81429c472fca19d6d | 4bdd2a50f4bdfd28fdb89a881cb2ebb9eac26987 | refs/heads/master | 2021-01-01T04:36:52.037184 | 2017-12-08T01:04:27 | 2017-12-08T01:04:27 | 97,207,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # -*- coding:utf-8 -*-
#import socket
import random
import urllib2
iplist = ['111.13.7.42:81']
url = 'http://www.whatismyip.com.tw/'
proxy = {'http': random.choice(iplist)}
proxy_support = urllib2.ProxyHandler(proxy)
opener = urllib2.build_opener(proxy_support)
opener.addheaders = [('User-Agent', 'Mozilla/5.0 ... | [
"skk_4@163.com"
] | skk_4@163.com |
6d594e11da8a7b220ea7286f7fb5b4a2a98c0b15 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/16/usersdata/78/6015/submittedfiles/triangulo.py | 8f53086208c10d248c43bc38a441462edf00389a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a=input('digite o valor de a:')
b=input('digite o valor de b:')
c=input('digite o valor de c:')
if a>=b>=c>0:
print('s')
if a>b+c:
print('n')
if a**2==(b**2)+(c**2):
print('Re')
if a**2>(b**2)+(c**2):
print('Ob')
if a**2<(b**2)+(c**2)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e8f6627e5ca6c6c236f176ab86c0fa1405ddd68d | 691d3f3e04d354e11772335064f33245e1ed8c28 | /lib/galaxy/tools/test.py | ec7c7c7d1a8913c9ba7ecbcc555ce0d7d27eba56 | [
"CC-BY-2.5",
"MIT"
] | permissive | dbcls/dbcls-galaxy | 934a27cc13663549d5208158fc0b2821609399a8 | 6142165ef27f6a02aee42f26e0b94fed67ecc896 | refs/heads/master | 2016-09-05T22:53:27.553419 | 2009-09-09T06:35:28 | 2009-09-09T06:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | import new, sys
import galaxy.util
import parameters
from parameters import basic
from parameters import grouping
from elementtree.ElementTree import XML
class ToolTestBuilder( object ):
"""
Encapsulates information about a tool test, and allows creation of a
dynamic TestCase class (the unittest framework... | [
"h-morita@esm.co.jp"
] | h-morita@esm.co.jp |
852f5bf1d22e53bc8195742775a96253742e89ed | 428b0c174d532f362af755164c01d517c5d28eff | /backend/manage.py | 8b76f37a158a57a733ccc8d742f26e9451df73f1 | [] | no_license | crowdbotics-apps/envy-budget-4817 | e861af5ce1631efffd15ee56fcedc7554427976f | 6e4eab96e9786db16e403844be0e22c92f085a62 | refs/heads/master | 2023-01-05T01:03:04.949154 | 2019-06-18T03:33:41 | 2019-06-18T03:33:41 | 192,458,782 | 0 | 0 | null | 2022-12-30T10:31:26 | 2019-06-18T03:30:29 | Python | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'envy_budget_4817.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
835ae6671986312e9febcc5c4269d9c60e34366d | 32cba9d6b0cb420e13a2a26c9e8c3d07e2c127b6 | /附录A 梯度下降法/最速下降法(原生Python+scipy导数计算实现).py | cee687d26b7245cfa1b086e591ae59819bbce477 | [] | no_license | wanglg007/Lihang-Statistical-learning-methods-Code | bed22551a2883b40e93340d3f96cf2fcf9e19ef2 | 190d16310be154282550e1f55eaadd8c4dd83263 | refs/heads/main | 2023-07-03T17:00:35.809206 | 2021-08-02T08:37:33 | 2021-08-02T08:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | from scipy.misc import derivative
def partial_derivative(func, arr, dx=1e-6):
"""计算n元函数在某点各个自变量的梯度向量(偏导数列表)
:param func: [function] n元函数
:param arr: [list/tuple] 目标点的自变量坐标
:param dx: [int/float] 计算时x的增量
:return: [list] 偏导数
"""
n_features = len(arr)
ans = []
for i in range(n_featur... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
e894a478cf49f5d808333ba19573bf3ba9434e8e | 13f5984be7be77852e4de29ab98d5494a7fc6767 | /Exam/商汤/环形赛道小游戏.py | cfeda51c8d56cb04a31ed5a4d36ff1e03e2acc17 | [] | no_license | YuanXianguo/Python-Interview-Master | 4252514763fc3f563d9b94e751aa873de1719f91 | 2f73786e8c51dbd248341559de171e18f67f9bf2 | refs/heads/master | 2020-11-26T18:14:50.190812 | 2019-12-20T02:18:03 | 2019-12-20T02:18:03 | 229,169,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def get_sum(nums):
n = len(nums)
nums.extend(nums)
dp = [nums[0]] * len(nums)
for i in range(2 * n):
dp[i] = max(dp[i]+nums[i], nums[i])
return dp[-1]
n = int(input())
nums = list(map(int, input().split()))
print(get_sum(nums))
| [
"736913978@qq.com"
] | 736913978@qq.com |
be490d67d8abd9e56665d7b6ef9536c0352d1325 | fd62d8096dc95923341cfac29f0209bfbea887b4 | /models_evaluation/xgboost/grid_search/jobs_test/5.0_0.03_0.0_200.0_10.0.job.py | 9abbc493eabf624713f7efad4e08eff3f17a4fed | [] | no_license | Eulerianial/premise-selection-deepmath-style | 06c8f2f540bc7e3840c6db0a66c5b30b5f4257f9 | 8684a59b5d8beab1d02a3a7c568a16c790ea4b45 | refs/heads/master | 2021-07-17T17:04:13.472687 | 2017-10-25T13:54:44 | 2017-10-25T13:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | import xgboost as xgb
import argparse
import sys
import os
from saving_loading import *
#####################################
p = {
"max_depth":int(5.0),
"eta":0.03,
"gamma":0.0,
"num_boost_round":int(200.0),
"early_stopping_rounds":int(10.0)
}
#####################################
if __name__ == ... | [
"bartoszpiotrowski@post.pl"
] | bartoszpiotrowski@post.pl |
5a37f7eb85b6bd929fabe005a19a2a43d41f15d5 | da5bc6efaebc9ff015938d207b25c7804bc03b33 | /11_class/quiz03/quiz03.py | 58c5273addfe4332aba0c15c597067916327331e | [] | no_license | codud0954/megait_python_20201116 | b0f68f50a1e0d41c3c35535e718d5a236a7b1a98 | a71f57d4332027406953599612cd014de2d26713 | refs/heads/master | 2023-01-31T11:14:27.611468 | 2020-12-18T09:03:11 | 2020-12-18T09:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | # 제품관리 설계도
class Product:
# 생성자
def __init__(self, name, price, expired_date):
self.name = name
self.price = price
self.expired_date = expired_date
# 제품 정보
def product_info(self):
print("이름:", self.name)
print("가격:", self.price)
print("유통기한", ... | [
"noreply@github.com"
] | codud0954.noreply@github.com |
ef9173cfa8a6c3ee550b53d9ab4739412550077e | 567b880347a4ace3a64060753bf9bfadb42fb242 | /demo/app.py | e158c660ac3904f01488022ac78189149d5840be | [] | no_license | land-pack/intuition | 7b8335a8c0a07975c862d8e0daaa1f814bd9f63b | bc0a4e847ebe2b4c80c18d6a7e6e16a828c2a712 | refs/heads/master | 2020-03-23T07:03:36.530012 | 2018-07-18T06:26:09 | 2018-07-18T06:26:09 | 141,245,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | import requests
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
r = requests.get('http://127.0.0.1:5001/api/preview')
data = r.json()
images = data.get('images')
return render_template('index.html', images=images)
@app.route("/upload")
def upload():
... | [
"landpack@sina.com"
] | landpack@sina.com |
fc07856387a10a3a8dbed500fe7a51d73eaeb050 | e59273ecf45ddc40af8f51607e3ca1fb46632bb1 | /Payload_Types/apfell/mythic/agent_functions/download.py | fcfff9bf3b21b6ee4794053ec13673c5fa3ac9f6 | [
"BSD-3-Clause",
"MIT"
] | permissive | thiagomayllart/Mythic | 62ae01a42027ac1a71564775c8cc7ac8d0e88aa4 | bb1a90fb3c3e37c284fc812548b8f7ae5ffc1fb1 | refs/heads/master | 2023-06-02T08:12:09.099400 | 2021-06-19T23:30:26 | 2021-06-19T23:30:26 | 326,127,766 | 0 | 1 | NOASSERTION | 2021-06-20T03:20:21 | 2021-01-02T06:59:04 | Python | UTF-8 | Python | false | false | 1,829 | py | from CommandBase import *
import json
from MythicResponseRPC import *
class DownloadArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {}
async def parse_arguments(self):
if len(self.command_line) > 0:
if self.command_lin... | [
"codybthomas@gmail.com"
] | codybthomas@gmail.com |
2e22a7b99d1f8c4f1f5ce4eb4dafcbd83332bbf1 | d5fe9d0c7c93c3250b9e212435b02d8373dec091 | /code/65.py | 1dd66f853d153787cc61be6ee33a280ffb264627 | [] | no_license | HarshaaArunachalam/GUV | 6937adb84f0928f08c9fbc519310abc06ef3541a | c047887bf6c19a4950c5f634111e1c02966367e5 | refs/heads/master | 2020-05-31T10:52:23.280052 | 2019-08-10T20:23:11 | 2019-08-10T20:23:11 | 190,249,464 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | N=int(input())
Na=input().split()
Na=list(Na)
for i in Na:
if(int(i)<N):
print(i)
| [
"noreply@github.com"
] | HarshaaArunachalam.noreply@github.com |
ec6fcf9d5ab20c814125e6ac6e0b78fc36051033 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startPyquil196.py | 6360a951c9bd056e2dd8006aa958ef69a2c7c95e | [
"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 | 1,184 | py | # qubit number=4
# total number=12
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
a2a54db18153e09c2bdd4306052b808031bbdae2 | eba5e5ff22bcba73001fba729218c02cd257759f | /assets/utils/webssh.py | 2cb35bc81b8a867099b45e74389da231bd5cb930 | [] | no_license | duoyichen/Ops-1 | d04ea66aa37c0732ddeff08889819d8ca830985e | 56d3838a40dc0644a0fe8e58f40be421eaddc693 | refs/heads/master | 2020-04-29T11:48:34.329401 | 2019-03-14T10:29:38 | 2019-03-14T10:29:38 | 166,679,958 | 0 | 1 | null | 2019-01-20T15:59:18 | 2019-01-20T15:59:18 | null | UTF-8 | Python | false | false | 5,155 | py | # -*- coding: utf-8 -*-
import paramiko
import threading
import time
import os
import logging
from socket import timeout
from assets.tasks import admin_file
from channels.generic.websocket import WebsocketConsumer
from assets.models import ServerAssets, AdminRecord
from django.conf import settings
from utils... | [
"zm_world@163.com"
] | zm_world@163.com |
55a9e15caa3390bc0770bedd2dfc2dc21ce45dea | 43204546c687d7ec6bba04dc925eb07fc3f938e7 | /angrdbg/server.py | 478c2e72b3c3c6f84679b0c78a5ca6077afea852 | [
"BSD-2-Clause"
] | permissive | jhscheer/angrdbg | 5ac4a278b02e4009442e1033a1cbd9bb5d024806 | 50f257fcfea1dde8e4e76625fe64e3ac4e5eca51 | refs/heads/master | 2020-03-29T05:38:19.115641 | 2018-09-17T10:15:26 | 2018-09-17T10:15:26 | 149,591,381 | 0 | 0 | BSD-2-Clause | 2018-09-20T10:20:11 | 2018-09-20T10:20:11 | null | UTF-8 | Python | false | false | 7,990 | py | #!/usr/bin/env python
"""
classic rpyc server running a SlaveService + angrdbg + IPython shell
usage:
angrdbg-srv.py # default settings
angrdbg-srv.py --host HOST --port PORT # custom settings
# ssl-authenticated server (keyfile and certfile are required)
angrdbg-srv.py --... | [
"andreafioraldi@gmail.com"
] | andreafioraldi@gmail.com |
9ae8d7ce445ae3cc95832b024c28c453579539ec | 2b7c7e9b00ed9b2dbbac943ee4b79865a96d10de | /Figure_script/Figure_Sobol_env_heatmap.py | c9d4513a3b6f3d83f0f93bf2429b86ad119e7dbf | [] | no_license | YaojieLu/Plant_traits_inversion | ad973e60bb32717d9d718f774c2ec77433c38ced | ec83642ae2a2e6ef96502e58f8074bffdadfefe8 | refs/heads/master | 2021-06-21T15:22:00.225498 | 2020-12-13T22:12:21 | 2020-12-13T22:12:21 | 140,017,309 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py |
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# import data
df = pd.read_csv('../Results/Sobol_env.txt', sep = ',', index_col = 0)
df = df[df['T'] == 30]
df['D'] = round(df['D'], 4)
# labels
paras = ['c', 'L', 'p50', 'ps']
latex = ['$\\mathit{c}$', '$\\mathit{L}$',
'$\\psi_{x50}$... | [
"="
] | = |
479c2117988d2ed2dca6b2805202adc6d5027b9d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02397/s357415256.py | f7d7f986e5b38a58810ae61c71f351e5d8d9603c | [] | 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 | 165 | py | while True:
c = input().split()
x, y = int(c[0]), int(c[1])
if x == y == 0:
break
if y < x:
x, y = y, x
print("%d %d" % (x, y))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
081a8a4aa09d2eafd182ca6436c7c72218f6dcc5 | 3efee0cf2bd9e0c34bfdd94ab24a15cb88c04509 | /TMM_examples/TMM_fabry_perot.py | 13a671883453a7e29f38c3f94209049946a45615 | [
"MIT"
] | permissive | luwl85/Rigorous-Coupled-Wave-Analysis | bf5016ec70525f5e7bf59dfa93a03902afdfac12 | a28fdf90b5b5fc0fedacc8bb44a0a0c2f2a02143 | refs/heads/master | 2023-04-25T20:46:45.397976 | 2021-05-20T22:17:54 | 2021-05-20T22:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | '''
TMM applied to a single uniform layer
should recover the analytic fabry perot solution
'''
import os
import sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
sys.path.append(module_path)
import numpy as np
import matplotlib.pyplot as plt;
import cmath;
from TMM_functions im... | [
"nzz2102@stanford.edu"
] | nzz2102@stanford.edu |
4943cfc0184c4c3df9fbab1578b3b2e97fc886c8 | c4e1afc488da5411dfcd27c16ed23efba14b0fd6 | /src/lliurex/variables/dhcp_deny_unknown_clients.py | 6f8929cf529faad2033749955a42967bedbc7691 | [] | no_license | lliurex/python-llxvars | 7eba023b489e5d466ff24ea0fd53a5417a65e214 | 51745a7725d6342918431807e3897b032e6c2f6e | refs/heads/master | 2021-06-21T00:10:27.845595 | 2021-01-28T09:08:32 | 2021-01-28T09:08:32 | 165,815,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | def init(args=None):
try:
name = args['DENY_UNKNOWN']
except:
name = 'no'
return name
#def init
| [
"hectorgh@gmail.com"
] | hectorgh@gmail.com |
6a6762c469e81d373c201c6a168dd6ee3e4c665c | ed75b99e824b5724746d72f2d529781eccf8ef0d | /biostar/celeryconfig.py | 8b2c7b42b8db811498eb7a13032c3e9671c2e8aa | [
"MIT"
] | permissive | satra/biostar-central | 6799c4df4d12de1278f60fb2b29623acf8cc7640 | 794c67d2972a4fe700c79841f5f3c0c562352738 | refs/heads/master | 2021-01-12T20:32:14.356389 | 2014-03-20T15:37:27 | 2014-03-20T15:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | from __future__ import absolute_import
from datetime import timedelta
from celery.schedules import crontab
CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend'
BROKER_URL = 'django://'
CELERY_TASK_SERIALIZER = 'pickle'
CELERY_ACCEPT_CONTENT = ['pickle']
CELERYBEAT_SCHEDULE = {
'p... | [
"istvan.albert@gmail.com"
] | istvan.albert@gmail.com |
325a93e9027f90d97fe0431288393f2f293520c7 | 90b8d12660adc7dcf63bffce20ba1b7ede64386a | /official/vision/beta/serving/export_saved_model.py | 95027be136a8209c9e2a438072cf195c7d18771c | [
"Apache-2.0"
] | permissive | thalitadru/models | 7109797ed536ccb10e17bba6add0f571a1c1c96d | 7faaa572db44621f8e2998abd8dc6a22e86001f2 | refs/heads/master | 2022-05-05T15:04:01.683629 | 2022-03-23T16:20:46 | 2022-03-23T16:20:46 | 82,706,460 | 3 | 0 | null | 2017-02-21T17:14:13 | 2017-02-21T17:14:12 | null | UTF-8 | Python | false | false | 3,850 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
a3bfa9e158ba5fe5b5a7697cfc74d1a729aefa2a | 65c616c59ae005debf91d82f4efc7f7cdcc2a7a4 | /news_recommendation/home/forms.py | a4274fbc39b814ece457b077eceefcf942431907 | [] | no_license | nghiatd16/most_cb | 28db8b0c52cc391f6890f2a56c8dee308a6dfc85 | 46d91016b20d57f3f43b63813f7fbccd5626a848 | refs/heads/master | 2022-12-25T17:33:04.896024 | 2020-09-19T08:34:15 | 2020-09-19T08:34:15 | 296,822,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.forms import ModelForm
import django.forms as forms
from django.conf import settings
import os
import glob
import shutil
| [
"nghiatd.proptit@gmail.com"
] | nghiatd.proptit@gmail.com |
c30e22ee2d9981b49022661bd8c8de23908ce27e | 78d7d7aeb78a8cea6d0e10b89fc4aa6c46c95227 | /448.py | d69d285b5d87d18b1e029474dd35d050e1364dcc | [] | no_license | GenryEden/kpolyakovName | 97db13ef93061a8c2afc6cc5acd91337f79063f1 | c5d7f631ae7ec8770e56170574b82ea2b7d8a4d9 | refs/heads/master | 2023-05-23T21:22:51.983756 | 2021-06-21T08:56:49 | 2021-06-21T08:56:49 | 350,466,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | def f(x):
if x < 1:
return 0
elif x == 1:
return 1
else:
ans = f(x-1)
if x - 1 != 7:
ans += f(x-2)
return ans
print(f(12)) | [
"a926788@gmail.com"
] | a926788@gmail.com |
4105691310284155e93357df83d7741f403738fd | a6f4e2e2b2e25f7af509598327aaaa5c795433ac | /django_gocardless/views.py | 7208815d058b283889ea24034697e84804b85aa8 | [] | no_license | adamcharnock/django-gocardless | 4042e9dc6a179cf2030064855b82411adc960470 | ac126fcb12baf8a33472f0e22b29ede2b92e27ed | refs/heads/master | 2021-01-18T13:24:22.265030 | 2014-05-08T17:56:35 | 2014-05-08T17:56:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | import json
import logging
from django.conf import settings
from django.http.response import HttpResponseBadRequest
from django.views.generic.base import View, logger
from gocardless.utils import generate_signature
class GoCardlessPayloadMixin(object):
def get_payload(self, request):
if not hasattr(self, ... | [
"adam@omniwiki.co.uk"
] | adam@omniwiki.co.uk |
98239664e3b9f688468eb75fcbeb94b3f8f3ea24 | 72644f1098f4b6703cdabb66b4aa91d54a911cbe | /src/protocol/protobuf_client.py | 1b446a6bef96243d1614b55c3c19ed43565d226c | [] | no_license | fei-cow/galaxy-integration-steam | 8f762b5ccbfa2bc8b0f929d0d26fd9ab3802ac94 | b638dd39e95647236ed22c493437f300595eb90b | refs/heads/master | 2022-10-08T16:51:40.050633 | 2020-06-09T13:07:19 | 2020-06-09T13:07:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,453 | py | import asyncio
import struct
import gzip
import json
import logging
import socket
from itertools import count
from typing import Awaitable, Callable,Dict, Optional, Any
from galaxy.api.errors import UnknownBackendResponse
from typing import List, NamedTuple
from protocol.messages import steammessages_base_pb2, steamme... | [
"friendsofgalaxy@gmail.com"
] | friendsofgalaxy@gmail.com |
0e5dc5c575994fb9d51f5fd31c55ef92cd32e3f8 | ddadba7ebb64c2f341280728fd50e62369d6251e | /apps/notes_app/models.py | d5bba0cd359c70e4d2e127891182602fdd6e7910 | [] | no_license | LisCoding/Notes-App | 0f630b8229553d6cac278650f5649a9737ce1285 | 21bd8d0177ecf69335ec24e52c49df81f555f7a5 | refs/heads/master | 2021-06-22T10:44:25.755893 | 2017-08-31T19:33:49 | 2017-08-31T19:33:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Note(models.Model):
title = models.CharField(max_length=255)
description = models.TextField(default="")
created_at = models.DateTimeField(auto_now_add = True)
updated_at = models.DateTimeField(auto_no... | [
"cardozoliseth@gmail.com"
] | cardozoliseth@gmail.com |
761eeaa6e8e18f8112e281af167a7ccbc3748013 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03837/s920938245.py | 3aeb662f91dd2f46bbfdb9f9b7edc7cc0fdcb132 | [] | 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 | 650 | py | def warshall_floyd():
for k in range(N):
for i in range(N):
for j in range(N):
d[i][j] = min(d[i][j], d[i][k]+d[k][j])
N, M = map(int, input().split())
d = [[10**18]*N for _ in range(N)]
for i in range(N):
d[i][i] = 0
edges = []
for _ in range(M):
a, b, c = map(in... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
74fc280f27c08e1336a10b2c6a6e61901d2387e1 | cd2ea0b9f0f8e01950ea4dd629a325ef26f914ad | /topics/Trees/BinaryTreeTraversal.py | b180ed30d3f5c5183418e0a9355c08ce008c8282 | [] | no_license | akhandsingh17/assignments | df5f1af44486ffefe1fefcccc643e6818ac1c55d | c89f40dcd7a8067fa78ed95d3fecc36cb1ca7b5d | refs/heads/master | 2023-08-24T18:00:32.938254 | 2021-10-06T06:01:32 | 2021-10-06T06:01:32 | 305,913,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py |
"""
1
/ \
2 3
/ \ / \
4 5 6 7
\
8
"""
class Node:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
class BinaryTreeTraversal:
def __init__(self, root):
... | [
"akhans@amazon.com"
] | akhans@amazon.com |
22dfaba28c59c06bab37c8db0df174e75f3bf706 | bd9278423bb215dcdbf9f56a948210db044bdba2 | /tests/test_01_main/test_env_vars_1.py | 501ad06fecc21417b497a0cafa4e66f9cbcc5426 | [
"MIT"
] | permissive | dungnv2602/uvicorn-gunicorn-docker | 77fd5e0d07a94c7acc0876a773e6b1262619fb6d | 37dbc188e555c22cf9b2dd0f3f6ab3e122e32c24 | refs/heads/master | 2020-04-26T16:40:32.749609 | 2019-02-08T10:44:24 | 2019-02-08T10:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | import time
import pytest
import requests
import docker
from ..utils import CONTAINER_NAME, get_config, get_logs, remove_previous_container
client = docker.from_env()
def verify_container(container, response_text):
config_data = get_config(container)
assert config_data["workers_per_core"] == 1
assert ... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
0ad1426d1e43e8323cd4178c8c0dcebb7e9b9290 | fa38b704f9faf3889a4a35c6edce82be2e9b0274 | /Practice_Query/apps.py | be35856f927e72567c0382dbb335f702d2f40ebb | [] | no_license | Efrana/Django_Practice | 4a4bc0f5016eb6fda94f5184a1bfbf7cc6db757b | 864e4cb80b90b59deeeb7fd9a30f8af82d58658a | refs/heads/master | 2022-11-22T00:30:11.809382 | 2020-06-08T18:13:31 | 2020-06-08T18:13:31 | 270,774,361 | 0 | 1 | null | 2020-07-19T20:01:32 | 2020-06-08T18:09:45 | Python | UTF-8 | Python | false | false | 102 | py | from django.apps import AppConfig
class PracticeQueryConfig(AppConfig):
name = 'Practice_Query'
| [
"efrana.jannat@gmail.com"
] | efrana.jannat@gmail.com |
781ee264796e64ff53334b63df8e2b3568dff462 | 7e0393251012e91213dddfd9c93f6b6b73ca2bfe | /cloudnetpy/products/drizzle_error.py | 6ac4ba7a3ba679b8c9adeb0aead54d7fe56fdbce | [
"MIT"
] | permissive | josephhardinee/cloudnetpy | ff4cc0303d7f2ae40f2d3466298257659ff3ccde | c37760db3cdfe62ae769f8090ba621803ec9a92c | refs/heads/master | 2021-03-06T15:37:51.529776 | 2020-02-13T09:05:29 | 2020-02-13T09:05:29 | 246,207,849 | 0 | 0 | MIT | 2020-03-10T04:29:48 | 2020-03-10T04:26:16 | null | UTF-8 | Python | false | false | 5,294 | py | import numpy as np
import numpy.ma as ma
import cloudnetpy.utils as utils
def _get_drizzle_indices(diameter):
return {'drizzle': diameter > 0,
'small': np.logical_and(diameter <= 1e-4, diameter > 1e-5),
'tiny': np.logical_and(diameter <= 1e-5, diameter > 0)}
def _read_input_uncertainty(c... | [
"simo.tukiainen@fmi.fi"
] | simo.tukiainen@fmi.fi |
6475c7715d2ace925da77b437721147f76ea65b2 | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1218.011-1.py | ae3f24301b8519e5fd2ff913044f9b62c72f2ce2 | [] | no_license | ammasajan/Atomic-Red-Team-Intelligence-C2 | 78d1ed2de49af71d4c3c74db484e63c7e093809f | 5919804f0bdeb15ea724cd32a48f377bce208277 | refs/heads/master | 2023-07-17T12:48:15.249921 | 2021-08-21T20:10:30 | 2021-08-21T20:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'DefenseEvasion/T1218.011-1'
self.controller_type = ''
self.external_id = 'T121... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
a2fff788a3bf339242af472e231ea2e64b740a53 | adea9fc9697f5201f4cb215571025b0493e96b25 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/ospfv2/areas/__init__.py | ec0be8d4e67f577dc03415c82b56d94adae2a930 | [
"Apache-2.0"
] | permissive | andyjsharp/napalm-yang | d8a8b51896ef7c6490f011fe265db46f63f54248 | ef80ebbfb50e188f09486380c88b058db673c896 | refs/heads/develop | 2021-09-09T02:09:36.151629 | 2018-03-08T22:44:04 | 2018-03-08T22:44:04 | 114,273,455 | 0 | 0 | null | 2018-03-08T22:44:05 | 2017-12-14T16:33:35 | Python | UTF-8 | Python | false | false | 10,450 | py |
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 YANGListType
from pyangbind.lib.y... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
0020b9b9b399b772a1554cd04d96f72050d68d34 | 41cc033f82ce2b134cfeb71bbea2e5a369b1ba5d | /vise/analyzer/dos_plotter.py | 415b848af07e3986d22b4b100f92b1c192a80baf | [] | no_license | takahashi-akira-36m/vise_test | 0fad2087b5503d40592af7b769069b641ab3b821 | e96f9ac914b023b330a26a43610a4b331af36ade | refs/heads/master | 2023-01-07T16:16:53.770431 | 2019-12-17T02:49:51 | 2019-12-17T02:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,512 | py | # -*- coding: utf-8 -*-
from collections import OrderedDict, defaultdict
import numpy as np
from atomate.utils.utils import get_logger
from pymatgen.electronic_structure.core import Spin
from pymatgen.electronic_structure.dos import Dos
from pymatgen.electronic_structure.dos import add_densities
from pymatgen.electro... | [
"yuuukuma@gmail.com"
] | yuuukuma@gmail.com |
0021c7e9e93f3bb30c1d2f4511b9a15aee101958 | a00c487d88c50401ebf8505cd267c70b42e3c362 | /bangla/soup/MSR.py | 9c488a0e43064bf12f84eebfbeb665415f8376dd | [] | no_license | sharif1302042/A-news-Agrregation-system | 9aca07ed29f13b5da8e93a2aabe03281d6b66365 | 5e48a726f5fedba686d18601d561784c6ceddd5a | refs/heads/master | 2020-04-01T11:00:39.088387 | 2019-11-09T15:05:24 | 2019-11-09T15:05:24 | 153,142,416 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | import requests
from bs4 import BeautifulSoup
news=[]
r=requests.get('https://bangla.bdnews24.com/politics/')
soup = BeautifulSoup(r.text, 'html.parser')
r1=soup.find_all('li',attrs={'class':'article first '})
r2=soup.find_all('li',attrs={'class':'article '})
l=0
for r in r1+r2:
if l<10:
txt=r.find('a')['href']
... | [
"sharifulcsehstu@gmail.com"
] | sharifulcsehstu@gmail.com |
1602340190e28cb47ee3c4a8aa11ec9b668431a0 | ed5a082d977aefcecc8c40c76046d26334615a8e | /contest/abc/abc147/a.py | a0322ac34844aa2ebbc0d19eb0d875a19fe8e7e9 | [] | no_license | arakoma/competitive_programming | 0ff9b9a97d2f37a3a1dac96c157f3235dde96b85 | ebbc5621860aca320a6949433f1707f1cbfcf911 | refs/heads/master | 2021-08-07T10:50:08.890353 | 2021-07-10T14:10:15 | 2021-07-10T14:10:15 | 223,712,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | a = list(map(int, input().split()))
if sum(a) >= 22:
print("bust")
else:
print("win") | [
"arakoma555@gmail.com"
] | arakoma555@gmail.com |
5102a13c1af192205b49132a170a820a1c33ee47 | a799a105ab2aba39a475bf2ce086405def0351c2 | /test/model/tpp/common.py | 4fd78b174d605ac5736f5e09c8c9e575b42dfa7b | [
"Apache-2.0"
] | permissive | mbohlkeschneider/gluon-ts | d663750d13798624eca5c9d6f12a87e321ce7334 | df4256b0e67120db555c109a1bf6cfa2b3bd3cd8 | refs/heads/master | 2021-11-24T06:09:49.905352 | 2021-10-14T09:30:38 | 2021-10-14T09:30:38 | 192,546,557 | 54 | 10 | Apache-2.0 | 2022-08-31T18:36:44 | 2019-06-18T13:33:36 | Python | UTF-8 | Python | false | false | 2,364 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | mbohlkeschneider.noreply@github.com |
94edf1ad6adc7d8a3551c8b9103bf294c8afc731 | cd23b0457bc02a60b89f1f52783e56cc36d85b5e | /oop/getitem.py | 1bff5722f8bb3e1db032216968dc42463cf0a724 | [] | no_license | cluo/learingPython | 65c7068613e1a2ae0178e23770503043d9278c45 | 54609288e489047d4dd1dead5ac142f490905f0e | refs/heads/master | 2020-04-01T13:04:15.981758 | 2015-02-23T13:21:31 | 2015-02-23T13:21:31 | 28,440,969 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!/usr/bin/evn python
#-*- coding:utf-8 -*-
__author__ = 'admin'
class Indexer:
def __getitem__(self, index):
return index ** 2
X = Indexer()
print X[2]
for i in range(5):
print(X[i])
class stepper:
def __getitem__(self, i):
return self.data[i]
X = stepper()
X.data = 'spam'
for item in X:
print(item)
pri... | [
"luosheng@meizu.com"
] | luosheng@meizu.com |
087e92e25d5452f986b22430ce4fffefb538f075 | 0b49c40162e15b5e0c551e548d865c4105e8df7d | /koopmanInvertedPendulum.py | 23a2317318f8c0da4234581463207c14b2bd54f1 | [] | no_license | jiemingChen/DeepKoopman | 654a47922e4d7d6161c032a5e7ac7374d6999917 | 2e6ce8218c0bf5b7bcb072a6983a8f6870ec6186 | refs/heads/master | 2023-03-27T22:39:24.992333 | 2020-09-28T23:11:40 | 2020-09-28T23:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,539 | py | import numpy as np
import torch
import torch.nn as nn
import gym
from torch.utils.data import Dataset, DataLoader
import control
import os
from ReplayBuffer import ReplayBuffer
import time
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--env_name", default='InvertedPendulum-v2')
parser.add_arg... | [
"csj15thu@gmail.com"
] | csj15thu@gmail.com |
e3dfa7a4455e0f59230ecf1846ccc32cc4122744 | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/receptive_field/python/__init__.py | 3d7249a31712e439c472e3403dd11bd766b47d41 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/receptive_field/python/__init__.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
e6b1813c3f8b1b5ec5036f41e3260c00447cd56c | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/api_admin/tests/test_views.py | ae07399acb44c8b63d501cadbbf37a3fbe23ed9e | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 15,310 | py | """ Tests for the api_admin app's views. """
import json
import ddt
import httpretty
from django.conf import settings
from django.test import TestCase
from django.test.utils import override_settings
from django.urls import reverse
from oauth2_provider.models import get_application_model
from openedx.core.djangoapps... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
01e1441294cda302a160e5771d99e199e575a62e | 90cdfc6ff827c8334c81f6f896b1081cbb4d4f7a | /07GUI/08Pyqt5/06QtLearning/main.py | 67e007139e350075c02c31f2644d82b77e45fcbe | [] | no_license | HBU/Jupyter | c79883f329efd2426c5c8fde1364266ed8b5059f | b3d5d08c89c26c68027409c2b466ac64aeb1af39 | refs/heads/master | 2022-07-06T22:00:43.694050 | 2020-12-22T09:53:02 | 2020-12-22T09:53:02 | 123,717,897 | 3 | 3 | null | 2022-07-06T19:20:58 | 2018-03-03T18:04:01 | Jupyter Notebook | UTF-8 | Python | false | false | 3,190 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectNam... | [
"8584751@qq.com"
] | 8584751@qq.com |
902b8d163053965b0fd5ccb0bccc4093f6735a82 | 0adf94fc39a02018165b62e93dd83edddd041230 | /.history/Jobs/views_20190225164613.py | 81e0cf17f2f0704d47a0e7fa8441b3d22cbb48ad | [] | no_license | SabitDeepto/BrJobs | 1e3baa143331cf46b9c70911c6644d1efd4fffd6 | 1a458c8c667f8093a2325d963e5542655467c7aa | refs/heads/master | 2020-04-24T08:02:26.350007 | 2019-03-17T05:53:30 | 2019-03-17T05:53:30 | 171,818,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import redirect, render
from django.urls import reverse_lazy
from django.views import generic
from .forms import UserForm, ProfileForm
from django.contrib import messages
from django.db.models import Q
from django.shortcuts import get_object_o... | [
"deepto69@gmail.com"
] | deepto69@gmail.com |
612247c1e53605ffa741a2fd8c545e5aee1047b8 | 1c2a9ce62301d5342113f2fdea8faefe807877c3 | /weekly/models.py | 95cda273c45b342928bebd15c878c21b9bdd4218 | [] | no_license | Jillelanglas/weekly | 782c03595118bb110c6d4ef3cda182d4b750ce30 | b4b5bd373b7b9a07198c1354ea2f9a7854ffa75b | refs/heads/master | 2021-01-15T23:07:08.495235 | 2013-10-05T18:01:51 | 2013-10-05T18:01:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | from weekly import db
import cryptacular.bcrypt
import datetime
import mongoengine
from flask import url_for
from misaka import Markdown, HtmlRenderer
rndr = HtmlRenderer()
md = Markdown(rndr)
crypt = cryptacular.bcrypt.BCRYPTPasswordManager()
class User(db.Document):
_password = db.StringField(max_length=102... | [
"isaac@simpload.com"
] | isaac@simpload.com |
91844c1ed6cc7e36ae4119c9586f5fb82f28822b | e204cdd8a38a247aeac3d07f6cce6822472bdcc5 | /.history/app_test_django/models_20201116133107.py | 2523c8d06c874130fa411ddfea0a2aa8bcbbfe7e | [] | no_license | steven-halla/python-test | 388ad8386662ad5ce5c1a0976d9f054499dc741b | 0b760a47d154078002c0272ed1204a94721c802a | refs/heads/master | 2023-04-08T03:40:00.453977 | 2021-04-09T19:12:29 | 2021-04-09T19:12:29 | 354,122,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,940 | py | from django.db import models
import re
class UserManager(models.Manager):
def user_registration_validator(self, post_data):
errors = {}
EMAIL_REGEX = re.compile(
r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
if len(post_data['first_name']) < 3:
errors['first_na... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
c462bafef5399e8f9cd37b8a37573720063ab2c2 | 306d2a92fb331aec6ddf0794b538d6e3385a0df9 | /app/api/account/urls.py | 21f884031d1962d2ca3574afe6cc2097735a669d | [] | no_license | Zarinabonu/ForceApp | f343d3a52aee08890230c5425c9e238df99c5a7f | 13f8e8613999c4850fc6f0bfcec66f897eecbe4a | refs/heads/master | 2020-12-10T08:00:25.072289 | 2020-01-20T13:14:07 | 2020-01-20T13:14:07 | 233,540,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from rest_framework.serializers import ModelSerializer
from app.model import Account
class AccountSerializer(ModelSerializer):
class Meta:
model = Account
fields = ('id',
'f_name',
'l_name',
'm_name',)
| [
"zarinabonu199924@gmail.com"
] | zarinabonu199924@gmail.com |
19e9eb6c0f0128d8724b3f15dc2aeca49e1f211b | 2d921bb03eade0763ddb3a9cc5cb637730ecbde1 | /bdt/misassign_masses.py | 21339aff913311d7f6730d9ba3d5c46fd49fded9 | [] | no_license | rmanzoni/WTau3Mu | 10c57971b80f9769578284abd69009008901eea7 | 5ad336df976d5a1b39e4b516641661921b06ba20 | refs/heads/92X | 2021-01-18T15:10:41.887147 | 2019-05-09T12:48:00 | 2019-05-09T12:48:00 | 84,342,825 | 0 | 7 | null | 2018-07-19T09:08:19 | 2017-03-08T16:35:42 | Python | UTF-8 | Python | false | false | 4,883 | py | import ROOT
import root_pandas
import numpy as np
import pandas
import root_numpy
global m_k
global m_pi
m_k = 0.493677
m_pi = 0.13957061
# tree = ROOT.TChain('tree')
# tree.Add('/Users/manzoni/Documents/tau3mu2018/16april/ntuples/data_enriched_16apr2018v16.root')
print 'loading dataset...'
dataset = pandas.DataFr... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
727fc97005633da5105c31d875de048d679cb327 | 17268419060d62dabb6e9b9ca70742f0a5ba1494 | /pp/samples/191_mirror_h.py | 5d5f8caa93016a9121b917401e02a52f9b2ade76 | [
"MIT"
] | permissive | TrendingTechnology/gdsfactory | a19124423b12cbbb4f35b61f33303e9a012f82e5 | c968558dba1bae7a0421bdf49dc192068147b776 | refs/heads/master | 2023-02-22T03:05:16.412440 | 2021-01-24T03:38:00 | 2021-01-24T03:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | if __name__ == "__main__":
import pp
c = pp.Component()
m1 = c << pp.c.mmi1x2()
m2 = c << pp.c.mmi1x2()
m2.reflect_h(port_name="E1")
m2.movex(10)
pp.show(c)
| [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.