blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
faeb98b87b529091b354db981aaab9a7664aa97d | a59d20b9918df7cc17cfaf4bd1abaa73a086eb2a | /tfcnn_retraining.py | bc37e62d3d31befff38348e8f53c5da0d95d24cf | [] | no_license | yanqinghao/TFdeeplearning | 5da5e7f4462c539ae25f29a42f2c5bc3b4abd171 | 8ec4f99b6e73b9d0866bc3706e2807cfa3229c58 | refs/heads/master | 2018-12-10T13:45:35.552852 | 2018-09-13T09:52:49 | 2018-09-13T09:52:49 | 118,085,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,866 | py | import os
import tarfile
import _pickle as cPickle
import numpy as np
import urllib.request
import scipy.misc
cifar_link = 'https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz'
data_dir = 'temp'
if not os.path.isdir(data_dir):
os.makedirs(data_dir)
objects = ['airplane', 'automobile', 'bird', 'cat', 'deer', 'd... | [
"187280967@qq.com"
] | 187280967@qq.com |
f57e92ca341a4ef719218a9cc8d1a392d5f8ed20 | f14f48e50efb50cfe7078c68f0d61015ae2d646b | /Stock/Select/Ui/Other/DyStockSelectTestedStocksDlg.py | 2b6d429fd49050e93adc805172ad3f4f682f0fbe | [
"MIT"
] | permissive | stockcode/DevilYuan | 17a23da68954714cacae29f428c3005444e0e3a2 | 163d06cb7fd30a8f24b3f2e06206c1fd024353c3 | refs/heads/master | 2020-05-03T14:40:08.420822 | 2019-03-29T13:16:42 | 2019-03-29T13:16:42 | 178,683,886 | 2 | 1 | MIT | 2019-03-31T12:17:49 | 2019-03-31T12:17:49 | null | UTF-8 | Python | false | false | 2,126 | py | from datetime import *
import os
import re
from PyQt5.QtWidgets import QDialog, QGridLayout, QLabel, QTextEdit, QPushButton, QApplication
from DyCommon.DyCommon import *
class DyStockSelectTestedStocksDlg(QDialog):
def __init__(self, data, parent=None):
super().__init__(parent)
self._data = da... | [
"louis_chu@163.com"
] | louis_chu@163.com |
8b7a7bf8e469f8575e9b8af31593301da9b21c06 | e57af4a840d1126e22363bd9611a40fe18093c92 | /wrappers/s2i/python/test/router-template-app/MyRouter.py | 10aa8ee91177f1fa9145641815baeec07abb43aa | [
"Apache-2.0"
] | permissive | holdenk/seldon-core | ca05e12c8e568700487f9b9e4b79a900200bd03c | de08406883850e5566b4e08af7d6484c1960bdd6 | refs/heads/master | 2020-03-07T12:47:07.530623 | 2018-03-30T10:08:42 | 2018-03-30T10:08:42 | 127,485,585 | 1 | 0 | Apache-2.0 | 2018-03-31T00:37:40 | 2018-03-31T00:37:40 | null | UTF-8 | Python | false | false | 755 | py |
class MyRouter(object):
"""
Router template.
"""
def __init__(self):
"""
Add any initialization parameters. These will be passed at runtime from the graph definition parameters defined in your seldondeployment kubernetes resource manifest.
"""
print("Initializing")... | [
"cc@seldon.io"
] | cc@seldon.io |
bbf67b6d8b12d59dd77937c8c5df126c1dd64d82 | ba198225eceb33df214400c8a19a46292c051fe2 | /conf/settings/settings_production.py | 3e2f6aff61ff45d7a83f5a749ef78ecc26392a48 | [] | no_license | puntonim/inspire-read-api | 64e39261b41c6610f8775645eab18252bbeeb6c2 | 876a053ae5ad2642911bab5387ed6139bc9b09ec | refs/heads/master | 2020-07-11T12:36:41.358661 | 2019-04-04T12:22:38 | 2019-08-26T19:07:21 | 204,540,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | """
Production settings.
"""
from .settings_base import *
DEBUG = False
ALLOWED_HOSTS = ['mysite.com']
SECRET_KEY = 'mysecretkey'
ORCID_TOKENS_ENCRYPTION_KEY = 'mykey' | [
"puntonim@gmail.com"
] | puntonim@gmail.com |
a5af53f0ae3c8b6d8628a1c09137e61e88a8ea9d | 156b77dc620d47fa76baf9361b4ccac04a7f7995 | /FSND/projects/02_trivia_api/starter/backend/test_flaskr.py | 5adf46e7e178d309d8bf8069f3ee65a3d2663468 | [] | no_license | zyfsju/fullstack-study | cc43b18a47bdf277be3828d351624063d965723a | 1172d62689e8edf60636d548cfc89c5168296d9c | refs/heads/master | 2023-03-25T03:03:04.021634 | 2021-03-22T17:56:04 | 2021-03-22T17:56:04 | 350,438,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | import os
import unittest
import json
from flask_sqlalchemy import SQLAlchemy
from flaskr import create_app
from models import setup_db, Question, Category
class TriviaTestCase(unittest.TestCase):
"""This class represents the trivia test case"""
def setUp(self):
"""Define test variables and initiali... | [
"yifan.zhou@aptiv.com"
] | yifan.zhou@aptiv.com |
5d2db857d942cc972b50c1533898446b0879cf70 | 53dee1a74618e5ac343c5abe0a7a46fdf287e51e | /modules/callbacks.py | 24e779a197aeef08e887e7541a2d795fa423a938 | [] | no_license | SpencerRaw/GNCA | 250e8bc0351d121ba4c752ad07d02975f9e15e17 | f82f24925acb26c141ed02b0b0fe23ebb0878450 | refs/heads/master | 2023-08-29T10:27:08.590713 | 2021-11-08T07:52:12 | 2021-11-08T07:52:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | import numpy as np
from tensorflow.keras.callbacks import Callback
from boids.evaluate_boids import evaluate_complexity
from boids.forward import forward
class ComplexityCallback(Callback):
def __init__(
self, test_every=10, n_trajectories=1, trajectory_len=1000, n_boids=100
):
super().__init... | [
"daniele.grattarola@gmail.com"
] | daniele.grattarola@gmail.com |
bc041e4c5efd26ad99e6caa4c17e001f6f83401a | b5daf9d5525971be607e87e140c6e7575ac4a9e2 | /service-mgmt-api/sm-api/sm_api/openstack/common/cliutils.py | 4e37ff8fcfa5fda508427ff57b265d4cf6653e80 | [
"Apache-2.0"
] | permissive | starlingx/ha | 9befeac4e934a22fdeadfc35163feb37967189e0 | e35510e1cc54e83a158af9a5da3fb75ed4dd8601 | refs/heads/master | 2023-08-16T18:36:29.902446 | 2023-08-09T14:31:50 | 2023-08-10T14:52:02 | 237,515,014 | 3 | 3 | Apache-2.0 | 2021-01-14T02:49:45 | 2020-01-31T20:58:31 | C | UTF-8 | Python | false | false | 2,020 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
61bffabbd45a33440250f55fb45cacc40dd6a16c | 19a32440205b2caeec67c73c10d917b5fb30a86a | /test/test_cloud_account_create_params.py | 729711d8628bae2fcbff63c14301d27e5882ccab | [
"MIT",
"Apache-2.0"
] | permissive | marrotte/isilon_sdk_python | 480e84312f5924a506aeb09c9c7cae79a2b9b7f4 | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | refs/heads/master | 2020-03-23T07:31:40.376316 | 2016-06-07T23:44:31 | 2016-06-07T23:44:31 | 141,277,076 | 1 | 0 | MIT | 2018-07-17T11:02:08 | 2018-07-17T11:02:08 | null | UTF-8 | Python | false | false | 1,331 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | [
"Alex.Pecoraro@isilon.com"
] | Alex.Pecoraro@isilon.com |
f747c7fc30189608f2665557c00fa27eb5312c27 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_092/ch68_2020_05_04_19_40_02_713532.py | 94edce737f60b07ea6de9d86db9b8fbf6ef19a20 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | def separa_trios(x):
if len(x)%3 == 0:
i = 0
L1 = []
L2 = []
while i < len(x):
L1.append(x[i])
L1.append(x[i + 1])
L1.append(x[i + 2])
L2.append(L1)
L1 = []
i += 3
return L2
elif len(x)%3 == 2:
... | [
"you@example.com"
] | you@example.com |
ddff7707ddf45d323fdbddc7a9da8e6465da5e1d | 491c1e520a64e3ebd5349130f35047aaed1e70ec | /contest/maxAscendingSum.py | 854c5fb405b93f90d906324748c19480c1d1e40d | [] | no_license | pangyouzhen/data-structure | 33a7bd7790c8db3e018114d85a137f5f3d6b92f8 | cd46cf08a580c418cc40a68bf9b32371fc69a803 | refs/heads/master | 2023-05-26T12:02:30.800301 | 2023-05-21T08:07:57 | 2023-05-21T08:07:57 | 189,315,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | class Solution(object):
# 这个题如果改成 子序列呢
def maxAscendingSum(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
dp = [0] * len(nums)
dp[0] = nums[0]
for i in range(1, len(nums)):
if nums[i] > nums[i - 1]:
dp[i] =... | [
"pangyouzhen@live.com"
] | pangyouzhen@live.com |
b91c102509d6cfc53f4dfb4a2f6fad0aa1418164 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_encouraging.py | 80132252a0c761c502ceab036d3d7ee9fc288904 | [
"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 | 409 | py |
#calss header
class _ENCOURAGING():
def __init__(self,):
self.name = "ENCOURAGING"
self.definitions = [u'making you feel more confidence or hope: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[o... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
66e2b39f73d65ebeac8acb7ee4270d2bf488b601 | 5c37dfaac3a02cc592c154bd9ed1a3fbcf5855cd | /python/cron/numpy.py | 6a5307cbf874d543abfc54dfb176cdaf496672e7 | [] | no_license | thejohnfreeman/cron | 5a91884e5ce8448e6f16b4d0823a05cc429ee37f | c2dbbb50ea8852e0f947b075e9e2f663a450fdcb | refs/heads/master | 2020-12-29T00:41:24.952795 | 2016-03-30T02:29:48 | 2016-03-30T02:30:47 | 55,026,110 | 0 | 0 | null | 2016-03-30T02:31:40 | 2016-03-30T02:31:40 | null | UTF-8 | Python | false | false | 751 | py | """
Numpy support for Cron.
Numpy support is provided in a submodule so that users who do not need it aren't
forced to import numpy.
After this module is imported, Cron types that can be used as numpy array types
will have a `dtype` attribute. For example:
>>> import numpy as np
>>> from cron import Date
>>> ... | [
"alex@alexsamuel.net"
] | alex@alexsamuel.net |
1057b2013d6364200744efd5a4918a410b79b9bf | 03a70d422855fcf2b488c5070c5ef12001143230 | /virtual/bin/django-admin | c98dbb340f1fcdb0df6f4f85e1453a849a12ae31 | [
"MIT"
] | permissive | bellahOchola/Rater | 0b5f1004552a8d966bff4092bd242834cd68564e | 0251fdc6886eb1bcbad82a7aefc61e0ecf6a0738 | refs/heads/master | 2022-12-11T01:21:39.542482 | 2020-01-17T00:33:18 | 2020-01-17T00:33:18 | 232,781,927 | 0 | 0 | null | 2022-12-08T03:26:23 | 2020-01-09T10:22:29 | Python | UTF-8 | Python | false | false | 309 | #!/home/moringa/Desktop/projects/Django/rater/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"bellahkenya@gmail.com"
] | bellahkenya@gmail.com | |
1e30765ae403bdd8a4a0a002c1a6768b0b8fafa0 | 269f18999a158db1a8a736655b84704780439cab | /shots/migrations/0009_remove_image_tags.py | cf21e8bde8d3c97021b08bf3ed43d7db2113b507 | [] | no_license | raul-jr3/fantastic-spoon | 6c6d1a323f4d3ff1dc157c8bfd63e0cd8da41ffd | 557cb3e85d2c385b080564bdf2571bd09c3b6655 | refs/heads/master | 2021-01-02T08:37:20.087398 | 2017-09-14T09:05:13 | 2017-09-14T09:05:13 | 99,033,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-13 14:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shots', '0008_image_tags'),
]
operations = [
migrations.RemoveField(
mo... | [
"rahul.srivatsav1995@gmail.com"
] | rahul.srivatsav1995@gmail.com |
c964f1ce9a0d56b63720d461b59ad92d73476c3b | 9192a0bf95b54fcbe76573cc250e590d64328422 | /ibanking_web/ibanking/views.py | 5e90f4bacf087dda72646b04d0de445acae9a6d1 | [] | no_license | ihfazhillah/explore-scrapy | ca07b31ce4c285bef1e1a7e0f5d97da1e3018217 | 74751f687062b47e56a1466836306b84724f094e | refs/heads/master | 2022-12-10T03:00:54.083201 | 2019-02-15T00:41:38 | 2019-02-15T00:41:38 | 166,724,277 | 0 | 0 | null | 2022-12-08T01:37:37 | 2019-01-21T00:22:30 | Python | UTF-8 | Python | false | false | 1,001 | py | from uuid import uuid4
from django.shortcuts import render
from django.http import JsonResponse
from scrapyd_api import ScrapydAPI
from .models import ScrapyItem
# Create your views here.
scrapyd = ScrapydAPI('http://localhost:6800')
def get_statements(request):
unique_id = str(uuid4())
settings = {
... | [
"mihfazhillah@gmail.com"
] | mihfazhillah@gmail.com |
b5f279e0b892ad03556863e8883bdf0635bb56f0 | 4b86ebac6e2273bec07e8f0f1275a9f4c4700491 | /Sort/2947_나무조각.py | b14eb7a5c7ba76ac4a95e165b8923bbaf58b19a0 | [] | no_license | chohan3036/algo_study | 999d8a9d44b27100009246dcf913e07f36787295 | 64abbc8a401f9e555692f01917eb78b0fd37d7fb | refs/heads/master | 2023-04-07T06:13:16.059638 | 2021-04-20T04:32:35 | 2021-04-20T04:32:35 | 307,859,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | import sys
reading = lambda :sys.stdin.readline().strip()
N = list(map(int, reading().split()))
n = 5
for i in range(n):
for j in range(1, n):
if N[j - 1] > N[j]:
temp = N[j - 1]
N[j - 1] = N[j]
N[j] = temp
for k in N:
print(k, end=' ')
... | [
"chohan3036@gmail.com"
] | chohan3036@gmail.com |
2f07383bfc2b9984072cbf5c3ab0ad171fc409ae | f92fb9b9abe021d5604d3b5fb2ade0fbe6d85e3e | /robot/logging.py | 30ffb6e8cc9edea7f47e51458319b66961d6af58 | [
"MIT"
] | permissive | chuchiring/wukong-robot | a9f4656db45656962614451ebb170b4ca4573871 | f31982738df5b5c3929c713415aee04d13f2f4c8 | refs/heads/master | 2020-04-23T06:45:10.085706 | 2019-02-16T05:51:26 | 2019-02-16T05:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import logging
import sys
import os
from robot import config, constants
from logging.handlers import RotatingFileHandler, HTTPHandler
PAGE = 4096
DEBUG = logging.DEBUG
INFO = logging.INFO
ERROR = logging.ERROR
def tail(filepath, n=10):
"""
实现 tail -n
"""
res = ""
with open(filepath, 'rb') as f:
... | [
"m@hahack.com"
] | m@hahack.com |
7dca2733f4c7e5b4178a1a284fd2614650b0b984 | e522c1606e06cd0a2ea82c57b72aac2e065ad429 | /programming-team/First Semester/UCB/boxes.py | 9d349284cd7c37e4a74902d185a11f42dbe71df4 | [] | no_license | Nate8888/programming-contest-practice | 80d17d7ccea9491f42ec0cccab7e0cfe80849f17 | 4c2496260c209190103d7bbef82d866ae4be09b6 | refs/heads/master | 2023-05-04T16:20:36.136598 | 2021-05-27T22:52:04 | 2021-05-27T22:52:04 | 293,109,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import sys
def k_min_max_partitions(my_list, size, k):
if k == 1:
return sum(my_list[0:size])
if size == 1:
return my_list[0]
current_min_max = 1e27
for current_index in range(1, size + 1):
current_min_max = min(current_min_max, max(k_min_max_partitions(my_list, current_index, k - 1), sum(my_list[curren... | [
"wilk.nathan@gmail.com"
] | wilk.nathan@gmail.com |
ff3b0522f795040dd1eea2c2af80b0748c4a76eb | 151e4ab8bdcff37ded920f32250331c1edc1772d | /tlmshop/serializers/__init__.py | 87773f17382c4d432810508bc9149e2b62673837 | [] | no_license | LegionMarket/django-cms-base | 79069ee67628ff7d10338b48b154fe087863e1ea | 1b6fc3423e3d0b2165552cc980432befb496f3e0 | refs/heads/master | 2020-12-30T17:10:33.866390 | 2017-05-25T12:49:41 | 2017-05-25T12:49:41 | 91,057,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,797 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.utils.safestring import mark_safe
from rest_framework import serializers
from shop.serializers.bases import ProductSerializer
from shop.search.serializers import ProductSearchSerializer as BaseProductSearchSe... | [
"spivegin@txtsme.com"
] | spivegin@txtsme.com |
d0c6e4689bcc224f4fde752a7459a16adbb45cf1 | 2e263bb909bb706957990f23d4d07a33fe031a61 | /curiosity_debug.py | dffbbe8768dbdc709baeb1ed25319c6dda169585 | [] | no_license | liziniu/SuperMario | 3e9b776d4c490275b1684b4fd3b3471914811b7d | 64a33901c61591348dd4b9c878e396901dea27b6 | refs/heads/master | 2020-05-16T02:32:10.694180 | 2019-06-02T10:08:11 | 2019-06-02T10:08:11 | 182,632,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,193 | py | import matplotlib
import numpy as np
import tensorflow as tf
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import pandas as pd
import os
import argparse
import pickle
import json
from baselines.common import set_global_seeds
from curiosity.dynamics import Dynamics
from run import build_env
from scipy.stats impo... | [
"374387855@qq.com"
] | 374387855@qq.com |
8eafd7e316029d9719d71cf80f9817845735177a | eb85c96c3783be407b396956c13448d89f5e5fee | /design_patterns_with_python/2-python-design-patterns-m2-exercise-files/Strategy/StrategyVariation/strategy_variation/shipping_cost.py | 39dd4ddcb717c4d486e40cddd906eba548af071d | [] | no_license | ForeverDreamer/python_learning | 83c2c290271dbf060ee1718140b8dfd128b82b20 | ff905c4811ddb688f8ee44aed8c4d8067db6168b | refs/heads/master | 2022-04-30T03:23:45.162498 | 2019-07-05T07:55:01 | 2019-07-05T07:55:01 | 181,037,513 | 1 | 0 | null | 2022-04-22T21:12:46 | 2019-04-12T15:41:44 | Jupyter Notebook | UTF-8 | Python | false | false | 170 | py | class ShippingCost(object):
def __init__(self, strategy):
self._strategy = strategy
def shipping_cost(self, order):
return self._strategy(order)
| [
"499361328@qq.com"
] | 499361328@qq.com |
8390cd4854229dfee6b142cd9d5bbad654885cf3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_223/ch87_2020_04_29_13_42_03_524040.py | 51d2d5546b1465b3bf43fb948f7677c962d2a02a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | with open ('churras.txt', 'r') as churrastxt:
linhas = churrastxt.readlines()
print (linhas)
custo = 0
for linha in linhas:
separa = linha.split(',')
for e in separa:
e1=float(e[1])
e2=float(e[2])
custo+=(e1*e2)
print (custo) | [
"you@example.com"
] | you@example.com |
b4a637358f8fd61fff627c1eb8da57d3effb6445 | 8b942cbd6a0da0a61f68c468956ba318c7f1603d | /sortings/0056_merge_intervals.py | 9ebfcf815fa3d6974a6efdde33f440b51204ad67 | [
"MIT"
] | permissive | MartinMa28/Algorithms_review | 080bd608b0e0c6f39c45f28402e5181791af4766 | 3f2297038c00f5a560941360ca702e6868530f34 | refs/heads/master | 2022-04-13T03:56:56.932788 | 2020-04-06T03:41:33 | 2020-04-06T03:41:33 | 203,349,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | class Solution:
def merge(self, intervals: list) -> list:
sorted_intervals = sorted(intervals)
idx = 0
while idx < len(sorted_intervals) - 1:
start, end = sorted_intervals[idx]
next_start, next_end = sorted_intervals[idx + 1]
if end >= next_start:
... | [
"1135485226@qq.com"
] | 1135485226@qq.com |
5261b1fa72f0205b52d000597183839bd1f223ff | 2c7e967b5cb7c911245463ae1cd152b25b5e0b89 | /steps/google.py | 54cefc195ca13018e3b6ebd16626e1f29e1f6c1f | [
"MIT"
] | permissive | antonckoenig/citeas-api | 902d725c59dad9292c68f873d3a3512c77ceb06e | 9a0da10fad95b49363ef43c4d02be1dcb17169d6 | refs/heads/master | 2023-07-30T13:08:39.967004 | 2021-09-19T20:08:13 | 2021-09-19T20:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | from googlesearch import get_random_user_agent, search
from steps.arxiv import ArxivResponseStep
from steps.bitbucket import BitbucketRepoStep
from steps.cran import CranLibraryStep
from steps.core import Step
from steps.github import GithubRepoStep
from steps.pypi import PypiLibraryStep
from steps.webpage import Webp... | [
"caseym@gmail.com"
] | caseym@gmail.com |
b7e68212cd709d9a98d2c452268db90ad47392ae | 871d2a367e45164f21ecdbefe52bf442b563b33c | /tests/tests/correctness/EPLAnalytics/Utilities/DataSimulator/sim_cor_030/run.py | df3cb6f159e3069ad3abecc6e54e13c8a54fb953 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | SoftwareAG/apama-industry-analytics-kit | c0f6c30badf31411a29bc6daa4a7125b76f4e737 | a3f6039915501d41251b6f7ec41b0cb8111baf7b | refs/heads/master | 2022-02-19T20:47:27.180233 | 2022-02-02T12:58:23 | 2022-02-02T12:58:23 | 185,572,282 | 3 | 2 | Apache-2.0 | 2022-02-02T12:58:24 | 2019-05-08T09:14:07 | Python | UTF-8 | Python | false | false | 3,894 | py | # $Copyright (c) 2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel an... | [
"Richard.Peach@softwareag.com"
] | Richard.Peach@softwareag.com |
6576c4f0d44e7715aa4ad36675fbe3c92075e2db | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02381/s751837364.py | bd7cb0f49528872efae67b22b1fb8ff06610b153 | [] | 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 | # Standard Deviation
end = 0
while end == 0:
studentAmount = int(input())
if studentAmount == 0:
end += 1
else:
scoreData = [int(i) for i in input().rstrip().split()]
totalScore = 0
for score in scoreData:
totalScore += score
averageScore = totalScore / s... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
78a893873241271aad40cdcd58e8cd782cbe62e3 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/hvy_chainer-gan-improvements/chainer-gan-improvements-master/sample.py | 8326637b1ad23d6efabde2e6c8394804eb7dfa71 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,109 | py | import argparse
import numpy as np
from chainer import serializers
from models import Generator
import plot
# Resize the MNIST dataset to 32x32 images for convenience
# since the generator will create images with dimensions
# of powers of 2 (doubling upsampling in each deconvolution).
im_shape = (32, 32)
def parse_... | [
"659338505@qq.com"
] | 659338505@qq.com |
ecfc3bac0bddf6b0310970297e5c76cc50d20103 | e33e414418be93aa0fb19c38b82b221ed8826460 | /intel-sds-proto/vsm_configure_guide/packages/vsmclient/python-vsmclient/tests/test_base.py | 41e0c22a674faf17892e0df2b8aceaa3fafe3569 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | wisererik/proposals | 69e4caaf89d7838c14b18328dc261b6c914748bf | 9db7413983df9341d1796f2acba7202d36f31278 | refs/heads/master | 2021-05-03T23:12:39.496346 | 2018-12-22T04:02:46 | 2018-12-22T04:02:46 | 120,399,059 | 0 | 0 | null | 2018-02-06T03:54:13 | 2018-02-06T03:54:13 | null | UTF-8 | Python | false | false | 1,582 | py | from vsmclient import base
from vsmclient import exceptions
from vsmclient.v1 import vsms
from tests import utils
from tests.v1 import fakes
cs = fakes.FakeClient()
class BaseTest(utils.TestCase):
def test_resource_repr(self):
r = base.Resource(None, dict(foo="bar", baz="spam"))
self.assertEqua... | [
"huangzhipeng@huawei.com"
] | huangzhipeng@huawei.com |
08260b91313501752e2e3f0567b2f9abe58b6278 | 9d1ef7993bf0df9967b1e7a79d5913fbc3e3a7e1 | /tests/teststatistics.py | a34c3440109210c279d13e5d7aa17a063019754c | [
"BSD-2-Clause"
] | permissive | mitmedialab/WhatWeWatch-Analysis | f6f4fbd8fba4ef6a58f4961c7f3d9b9519dae3a4 | cc01dee4e77155c8aec7638e4275172053db3247 | refs/heads/master | 2021-05-28T05:40:36.678808 | 2014-11-03T01:22:26 | 2014-11-03T01:22:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import inspect
import os
import sys
import unittest
import numpy as np
import numpy.testing as nptest
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0,parentdir)
import statistics
import stubs
import util
class Statistic... | [
"ed@elplatt.com"
] | ed@elplatt.com |
3eca6fa93c5db8360edf1d7504cead97383393d2 | 5a8214b3a452c574e6c883bf5d90ba58ba87c461 | /leetcode/549.py | bdd217ec4dc7b3604cda9930f55824e25cf201fb | [] | no_license | phlalx/algorithms | 69a3c8519687816e3c6333ec12b40659d3e3167f | f4da5a5dbda640b9bcbe14cb60a72c422b5d6240 | refs/heads/master | 2023-02-03T10:30:30.181735 | 2020-12-26T09:47:38 | 2020-12-26T09:47:38 | 129,254,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | #TAG tree
# yet another tree problem
# do it on paper first to see if we use synth/inherited attributed and how
# to deal with None
#
# If we don't recurse to None, don't forget to deal with corner case where
# root = None.
#
# In this example, we don't recurse through None because we need
# node.left, node.right val... | [
"phlalx@users.noreply.github.com"
] | phlalx@users.noreply.github.com |
6e7e9e7be12b4e755ac17174ef8c25c82594321e | 3293dc42e15e956be202e39db196eed9912dcc01 | /estimation/causal_inference/I_and_R_treatment effect evaluation/stratified_randomized_experiments/fep_stats.py | 5f2e7f9659245edb8a169bbd0e9f13888824119d | [] | no_license | bthowe/data_science | c372e5364f24dc29e3de1fca3504211cb93b62fb | 63291df8084e5f62f9ba226e87db2242bb31ac94 | refs/heads/master | 2021-11-24T10:49:00.800890 | 2021-11-02T16:10:16 | 2021-11-02T16:10:16 | 106,839,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | import sys
import numpy as np
import pandas as pd
pd.set_option('max_columns', 1000)
pd.set_option('max_info_columns', 1000)
pd.set_option('expand_frame_repr', False)
pd.set_option('display.max_rows', 30000)
pd.set_option('max_colwidth', 4000)
pd.set_option('display.float_format', lambda x: '%.3f' % x)
def T_diff_la... | [
"b.travis.howe@gmail.com"
] | b.travis.howe@gmail.com |
64165e3ab97aeeeb15eedc35d813c6e5e60e29c1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03086/s435473021.py | 48cf74090e9644bcb577dece1ddb37330a8fc1a4 | [] | 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 | 390 | py | ans = 0
c = 1
li = ["A","C","G","T"]
s = input()
lens = len(s)
for i in range(lens):
for j in range(lens-(i)):
a = s[j:j+i+1]
for k in range(i+1):
if a[k] not in li:
c = 1
break
else:
c = 0
continue
if c ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b334814b90ea86220c975382e7dfc5b5e03db363 | 281c0694b9c6e394a0329a34d1b9ec564811fd3a | /test/test_errors.py | d6dabec0f52bb01937c19c6e0a1e1f051da688a5 | [
"Apache-2.0"
] | permissive | fridex/json2sql | 35448d1011a53c55641ef928cbcdc2c40d55fb65 | a0851dd79827a684319b03fb899e129f81ff2d3a | refs/heads/master | 2021-01-01T19:09:30.394871 | 2018-04-01T12:12:43 | 2018-04-01T12:12:43 | 98,528,002 | 0 | 0 | Apache-2.0 | 2018-04-01T12:20:36 | 2017-07-27T11:26:43 | Python | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python3
# ######################################################################
# Copyright (C) 2017 Fridolin Pokorny, fridolin.pokorny@gmail.com
# This file is part of json2sql package.
# ######################################################################
"""Tests for error handling."""
from json2... | [
"fridolin@redhat.com"
] | fridolin@redhat.com |
18963044c0b542d8438fa4a3f06fcece9a5724c2 | 19fb0eb26f5a6d2180a323cf242ce00f5e4e1c6d | /test/functional/rpc_net.py | 1edc734577b514756d5995d5ae4866c5961a14bd | [
"MIT"
] | permissive | j00v/NestEGG | bd4c9555f6473cc655e203531c6ab4d0dc795b61 | 8c507974a5d49f5ffa7000fa8b864a528dcb9c3e | refs/heads/master | 2022-12-03T09:16:14.732378 | 2020-08-12T15:25:31 | 2020-08-12T15:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,111 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC calls related to net.
Tests correspond to code in rpc/net.cpp.
"""
from test_framework.test_frame... | [
"shamim.ice.ewu@gmail.com"
] | shamim.ice.ewu@gmail.com |
30cb251586599dc04ef74e664fb104b60b42d8e1 | 4a9dada02c749e9e5277fe1e35357d7b2b28ad5c | /高艺航2018012950/操作系统实验/作业3 创建多进程.py | 6c0b31386f1a4c6f1d792b15aa9fb29d96d4ee90 | [] | no_license | wanghan79/2020_Option_System | 631cc80f52829390a128a86677de527472470348 | f37b870614edf7d85320da197d932df2f25a5720 | refs/heads/master | 2021-01-09T13:10:05.630685 | 2020-07-10T03:30:39 | 2020-07-10T03:30:39 | 242,312,271 | 13 | 9 | null | 2020-07-04T16:13:11 | 2020-02-22T09:12:56 | Python | UTF-8 | Python | false | false | 442 | py | """
Author : Yihang.Gao 高艺航
StuNumber: 2018012950
Purpose : Set up multiprocess by python.
Created : 1/7/2020
"""
from multiprocessing import Process
def setup_pro(i):
print('process',i)
if __name__ == '__main__':
list_pro = []
for i in range(3):
k = Process(target=setup_pro, a... | [
"noreply@github.com"
] | wanghan79.noreply@github.com |
ed5eb4fea9abb6d9e7d56595dc9603d9abd22bf4 | 77c641fd0708b279dddbe01f6af32a8531b93185 | /marketsim/gen/_intrinsic/observable/minmax.py | 734d5a8a443fbbb0acaf22a6f90bff1435caa3bc | [] | no_license | abensrhir/marketsimulator | aea286afd2bb2e0c8a547bfa879601aef21c0cd5 | f9f55c72fb34cdbec42b96737ca20839f26c6299 | refs/heads/master | 2020-12-13T20:55:55.795344 | 2014-02-24T22:52:24 | 2014-02-24T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | from marketsim import event, _
import fold
class Min_Impl(fold.Last):
def __init__(self):
event.subscribe(self.source, _(self)._update, self)
self.reset()
def reset(self):
import blist
self._levels = blist.sorteddict()
self._x = None
def at(self,... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
20427a03af6d5566c36d42e5d8ea4bcbfd11aa93 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2015_02_19_strain_stress_vtk/old_version/Calculate_Stress_from_Strain_ORIGINAL.py | 46c772ad37f6fbc4da3a37d15695c54b8772e00f | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | py | #
# Calculate_Stress_from_Strain_MKS.py
#
# Written by Matthew Priddy on February 19, 2015
#
from sys import *
from string import *
from math import *
from pylab import *
from random import *
from numpy import *
import itertools
from numpy import tensordot as td
import matplotlib
#matplotlib.use('PDF')
i... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
4d6a69101128cf2a501beb4695b10e4e6725b142 | da130508b04587493424d6c95ab05a55dd70170f | /math/0x00-linear_algebra/2-size_me_please.py | e49b8b8ce7b567c07f70d7815294e0e636d80882 | [] | no_license | AndrewKalil/holbertonschool-machine_learning | ea38c0d1ef6ce2206da5f3903fcc22730404af9c | bb980395b146c9f4e0d4e9766c4a36f67de70d2e | refs/heads/master | 2023-07-09T04:09:24.271069 | 2021-08-11T02:29:54 | 2021-08-11T02:29:54 | 317,371,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #!/usr/bin/env python3
""" 0x00. Linear Algebra """
def matrix_shape(matrix):
""" calculates shape of a matrix """
if matrix:
shape = [len(matrix)]
while type(matrix[0]) == list:
shape.append(len(matrix[0]))
matrix = matrix[0]
return shape
else:
retu... | [
"1541@holbertonschool.com"
] | 1541@holbertonschool.com |
d4088c4ab77b083f972d428a0ce87909942c2d89 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02399/s168551365.py | 01908c0ef89d62a27267c675c1736b6a0a60212f | [] | 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 | 248 | py | l=raw_input()
k=l.split()
a=0.0
b=0.0
a=int(k[0])
b=int(k[1])
#
print int((a-(a%b))/b),
print int(a%b),
a*=1.0
b*=1.0
if b==1:
print a*1.0
else:
if a/b>0.0000002:
print a/b
else: print "0.00000001.99999982" | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
afb7b1c1f7b6530a07d7f811577e8294e4a176a6 | 9dba8607dce414f9905700d7a4ac44668de5e1f1 | /Brelaz/rough_calculations/dir1_reinforcement.py | 3f25e1b2285ceab6ba6be10343ff326ed6f62365 | [] | no_license | anaiortega/XCmodels | c0463ffe38531578aee281456e88528882255cd7 | e9b8c2f996a21b8aa3314242f3cc12b0e391b5df | refs/heads/master | 2023-08-16T22:44:01.168775 | 2023-08-14T18:15:10 | 2023-08-14T18:15:10 | 141,140,177 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | # -*- coding: utf-8 -*-
from rough_calculations import ng_cantilever
from rough_calculations import ng_simple_bending_reinforcement
from matplotlib import pyplot
from mpl_toolkits.mplot3d import Axes3D
from materials.sia262 import SIA262_limit_state_checking
beam= ng_cantilever.Cantilever()
beam.l= 2.45+0.5
#Loads
Qa... | [
"ana.Ortega.Ort@gmail.com"
] | ana.Ortega.Ort@gmail.com |
43a3de2ecfead616819fe5e028bf38e44a50baa1 | 1b78ca7f3250ebed418717c6ea28b5a77367f1b8 | /318.maximum-product-of-word-lengths/maximum-product-of-word-lengths.py | 4bb2a28a8a6aa610056989f8cf03d7720cd87fd1 | [] | no_license | JaniceLC/lc-all-solutions | ced854f31b94f44c0b03a0677988805e3b9ee718 | 3f2a4ee8c09a8890423c6a22c73f470eccf979a2 | refs/heads/master | 2020-04-05T19:53:31.307528 | 2018-11-12T04:18:45 | 2018-11-12T04:18:45 | 157,155,285 | 0 | 2 | null | 2018-11-12T04:13:22 | 2018-11-12T04:13:22 | null | UTF-8 | Python | false | false | 619 | py | class Solution(object):
def maxProduct(self, words):
"""
:type words: List[str]
:rtype: int
"""
bitmap = [0] * len(words)
mask = 0x01
ans = 0
for i in xrange(0, len(words)):
word = words[i]
for c in word:
... | [
"jedihy@yis-macbook-pro.local"
] | jedihy@yis-macbook-pro.local |
45ce1099bc5ffdfa946930b8766b76fde1714949 | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /pytools/utilities/python/readonly_shelf.py | 6e1644dd96a518813865861187fe91557dd97f85 | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import shelve
def open(filename, writeback=True):
return DbfilenameReadonlyShelf(filename, writeback=writeback)
class DbfilenameReadonlyShelf(shelve.Shelf):
"""
Shelf implementation using the "anydbm" generic dbm interface,
read only. Gets rid of annoying error message on shutdown when it
tr... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
5d1cb88fa75275344805c8e438afef54358aaf7b | 0b1b92e30893d4428b0e04342490da8aef121a65 | /Python/find_peak_element.py | 162886f43b6c6d0a6de053c773e2447a4969f82c | [] | no_license | miaojiang1987/LeetCode | 280dc892f8adbf8c18f30c180e76b045b3797f8c | d8f96b0ec1a85abeef1ce8c0cc409ed501ce088b | refs/heads/master | 2021-06-09T14:46:43.858955 | 2021-05-20T09:06:24 | 2021-05-20T09:06:24 | 155,755,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | class Solution(object):
def findPeakElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return None
l,r=0,len(nums)-1
while l<r:
mid=l+(r-l)//2
if nums[mid]>nums[mid+1]:
... | [
"miaojiang1987@gmail.com"
] | miaojiang1987@gmail.com |
280ef9746c4ed0ee0513728f4b5d8d3ab3d2d34f | 1eb382ad4712721f646bf478fea747c928f47177 | /plot_perturbation_analysis.py | a542f264f5da6c4a9dff770b207998ac2e7f6258 | [
"MIT"
] | permissive | rmodi6/sentence-representations | ad8f03c6f4588020c1fcf6a691fc3b83ebae8e0f | 4124b8705002ce7188a0473c9840fef6befae0b5 | refs/heads/master | 2023-04-09T23:10:11.873093 | 2023-03-26T18:55:40 | 2023-03-26T18:55:40 | 215,374,321 | 0 | 1 | MIT | 2023-03-26T18:55:41 | 2019-10-15T18:56:57 | Python | UTF-8 | Python | false | false | 4,430 | py | import os
import json
import copy
# external libs imports
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
# project imports
from data import load_vocabulary, index_instances, generate_batches
from util import load_pretrained_model
if __name__ == '... | [
"modi.ruchit6@gmail.com"
] | modi.ruchit6@gmail.com |
b26baf5d67b85a511a6b942d78af2cb10ca51f02 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /weather__yahoo.py | 6c01d6686eaff44c12a67e3dd687dc0531713f44 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 973 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import requests
city = "Магнитогорск"
# # OR:
# city = 'Magnitogorsk'
url = (
"https://query.yahooapis.com/v1/public/yql?q=select item from weather.forecast where woeid in "
"(select woeid from geo.places(1) where text='{city}') and u='... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
75769b77e4341042b1aebeac586a2b46403aecd8 | 307939a14bd837b67ebf18b28a99aa2ad9755d18 | /app_user_login/migrations/0002_users_birthdate.py | dcc3e72027f14118d5113f6a0934585363a9068b | [] | no_license | raqueloropeza/Django_LoginAndRegistration | 3c4d37742c09f5f4f442154251cf81ddf159cba6 | 89b63ded8c60a5b21cd3de0f84c1aed662e29d3b | refs/heads/master | 2023-05-07T19:37:00.592985 | 2021-06-03T16:55:30 | 2021-06-03T16:55:30 | 373,557,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 2.2.4 on 2021-02-25 15:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_user_login', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='users',
name='birthdate',
... | [
"rockuzaki@gmail.com"
] | rockuzaki@gmail.com |
611d4762679b0fa7bc528a0bf1515549c0bb6062 | 1b48dcc9b7a4dc7debff78e65d55617d04b74495 | /chapter10_multThreading/thread_condition.py | aa54f3e62df175f4a546fb383c91a2b5a0544aeb | [] | no_license | beenlyons/python_supreme | 15ad7baabfab57e55ea1521b173e507420a18b9e | 3279aa8db52c7c8a1295f24a39d228df7f77ce43 | refs/heads/master | 2020-03-21T17:30:37.150525 | 2018-07-24T03:54:46 | 2018-07-24T03:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | from threading import Condition, Lock
import threading
# 条件变量, 用于复杂的线程间同步
# class XiaoAi(threading.Thread):
# def __init__(self, lock):
# self.lock = lock
# super().__init__(name="xiaoAi")
# def run(self):
# self.lock.acquire()
# print("{} : 在".format(self.name))
# self.... | [
"1335682725@qq.com"
] | 1335682725@qq.com |
40c671b4b964f8a4f970e54ae2518d818bd8c8bd | 80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019 | /data/CodeChef/HAND01.py | 6bd4e91e18b0489271a1a5f90c80e17e34ed505e | [] | no_license | Ritvik19/CodeBook | ef7764d89b790e902ede5802f36d5ca910d8a50e | 2b4ed7938bbf156553d6ba5cba6216449528f0fc | refs/heads/master | 2021-07-04T08:25:52.478719 | 2020-08-08T06:54:14 | 2020-08-08T06:54:14 | 138,744,302 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # Credits: Sir Isaac Newton is standing over a circle of radius 0.5641895835477563.
# Input
# The first line of the input contains an integer T denoting the number of test cases. The next T lines contain a string containing numbers and one or more special charters (?, !, %, $)
# Output
# For each test case, output a si... | [
"rastogiritvik99@gmail.com"
] | rastogiritvik99@gmail.com |
2e4f86b82f95b90c80d1725615e2996fdb2cb164 | 9c3765dba0b249eb0a8da92076d2ae01291fc0e7 | /not_done/py_not_started/euler_392.py | 498d71d4902d7af330f192be8c5b3f979bc95492 | [] | no_license | saetar/pyEuler | 3a021f95a1856775bef87b38c753049b04282b80 | f0af7092e16c2109028b4b1aa5bed7a0057d3fe9 | refs/heads/master | 2020-03-21T12:05:15.430454 | 2018-06-15T03:50:50 | 2018-06-15T03:50:50 | 138,535,115 | 0 | 0 | null | 2018-06-25T02:40:43 | 2018-06-25T02:40:42 | null | UTF-8 | Python | false | false | 1,342 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ~ Jesse Rubin ~ project Euler ~
"""
Enmeshed unit circle
http://projecteuler.net/problem=392
A rectilinear grid is an orthogonal grid where the spacing between the gridlines does not have to be equidistant.
An example of such grid is logarithmic graph paper.
Consider rect... | [
"jessekrubin@gmail.com"
] | jessekrubin@gmail.com |
8e559598071a54f18e8b5b49476b09087984d51e | dfe4d9f6b09109b22e76069b0f6e56993165e91d | /camp-python-2021-find-me-develop/apps/users/apps.py | 00812dc9a1174718ab09f30466d4af9874f10952 | [] | no_license | rhanmar/oi_projects_summer_2021 | ef6b06e003a1c54583df4b006d141df924adeafb | 0879ade24685b628624dce06698f8a0afd042000 | refs/heads/main | 2023-08-25T04:02:46.284756 | 2021-09-17T03:29:16 | 2021-09-17T03:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from watson import search as watson
class UsersAppConfig(AppConfig):
"""Default configuration for Users app."""
name = "apps.users"
verbose_name = _("Users")
def ready(self):
# pylint: disable=unused-imp... | [
"dimontura@yandex.ru"
] | dimontura@yandex.ru |
85a51ad7dc8750ab6d9a66bec400b2433c202821 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/views_20201114172332.py | ae26a428bcd7b78a9862ed83d5fbd6fd90c986e0 | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
def index(request):
return render(request, "index.html")
def register_New_User(request):
errors = User.objects.basic_validator(request.POST)
if len(errors) > 0:
for key, value in errors.items... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
47e588e7c429cf9a9c1d10db3d2ef25f983ed712 | 2850d9adba96bc4e73185de5d6adebf363a5c534 | /tce/tcloud/cvm/AssociateSecurityGroups.py | 11d8e5ca52a09b8e0e312396bb00ee9dfb7bb036 | [
"Apache-2.0"
] | permissive | FatAnker/tencentcloud-sdk-python | d8f757b12ad336e78a06b68a789ecc3c86d1d331 | d6f75a41dc7053cb51f9091f4d41b8cb7a837559 | refs/heads/master | 2020-04-30T22:34:16.740484 | 2019-04-28T11:14:11 | 2019-04-28T11:14:11 | 177,122,691 | 0 | 1 | null | 2019-03-22T10:46:01 | 2019-03-22T10:46:01 | null | UTF-8 | Python | false | false | 1,971 | py | # -*- coding: utf-8 -*-
import os
from tencentcloud.common import credential
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
# 导入对应产品模块的client models。
from tencentcloud.cvm.v20170312 import cvm_client, models
import json
# 导入可选配置类
from tencentcloud.common.profile.client_p... | [
"1113452717@qq.com"
] | 1113452717@qq.com |
5fa589d9a038fcbb13e019a6129a02a94b582d64 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/Python/axr123/a.py | 49363e53c0937f442e2efd0decfa7c6a90f1f400 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import sys
vowels = 'aeiou'
def concons(str):
maxN = 0
n = 0
for l in str:
if l in vowels:
if n > maxN: maxN = n
n = 0
else:
n += 1
if n > maxN: maxN = n
return maxN
def solve(name, n):
count = 0
for s in range(len(name... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
31be72f47f8097ba9df421e724f210ac08707884 | 602a4e86499841fbae43d84fc92908c533106aea | /core/forms.py | 92edcd63936e84acef0f101ba7523413660abe6f | [] | no_license | vden/TsoguNG | b187ccf1bef387417ec73467c51458d6f1443239 | f8d5e7ab9d85559aa163c232c9f28a24a2b7c2a4 | refs/heads/master | 2021-01-02T08:52:03.914218 | 2011-04-26T07:01:57 | 2011-04-26T07:01:57 | 1,663,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | # -*- coding: utf-8 -*-
from django import forms
from core.fields import CalendarDateField
from django.contrib.admin import widgets as admin_widgets
from core import models
from datetime import datetime
def extra_form_factory(type):
class BaseExtraForm(forms.ModelForm):
time_choices = [('None',u'не задано')] + [(... | [
"denis.voskvitsov@gmail.com"
] | denis.voskvitsov@gmail.com |
3571215df13d920412f8c5912d86fde82b88a82e | fe4b49f22cd851ee4f7639bef720d774fbfb1248 | /src/comments/models.py | cc5f4cbe71dfee3814480f8a9c14549170dde5f7 | [] | no_license | tyagow/servicos-paraguai | b2c20a48651e7e046f4e86b0e94f026589dbc545 | a71078174a175f86f2a4f49fcaf26b8f91ea778d | refs/heads/master | 2020-12-24T05:39:57.243158 | 2017-05-23T14:14:28 | 2017-05-23T14:14:28 | 73,492,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
class CommentManager(models.Manager):
def filter_by_instance(self, instance):
content_type = ContentType.objects.get_for_model(instance.__class__)
... | [
"tyagow@hotmail.com.br"
] | tyagow@hotmail.com.br |
c12d8a3717648e007e9abc3dc9d63a711c4d0582 | b864232c0133738e329e61ca74188c8eafe74108 | /misc/experiment/distortion/main.py | 80b7d04914341bb72e17df1ec3410fc3387e5877 | [] | no_license | QilinGu/tf-face-recognizer | 0b16af8225d4e3bd67b0bd2df3005b5f1a3a7f35 | d1092b72d01f08a7bbfb2f30072a60b8d8409804 | refs/heads/master | 2021-01-09T06:40:30.678375 | 2017-02-03T17:57:21 | 2017-02-03T17:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import os
import tensorflow as tf
def main(argv=None):
with open(os.path.join(os.path.dirname(__file__), 'face.png'), 'rb') as f:
png = f.read()
image = tf.image.decode_png(png, channels=3)
begin, size, _ = tf.image.sample_distorted_bounding_box(
tf.shape(image),
[[[8.0/112.0, 8.0... | [
"sugi1982@gmail.com"
] | sugi1982@gmail.com |
8cfa28a1b18e8ac19215d87eebf5216525b2160e | 25fa5fdc9f67738332bd6f95a1e4f038cd286890 | /BOJ/단계별로 풀어보기/ch07_문자열/1152_단어의 개수.py | 0e051399bc66d888bae95cbbf9345f6aa8eeb91a | [] | no_license | mandos1995/online_judge | b0cfd56e3391495f22b9832895cddcea70334349 | 9b90bffdcbfb5369e8dd5dafbb07f8e9e7050617 | refs/heads/main | 2023-08-02T19:29:03.716295 | 2021-10-04T15:10:34 | 2021-10-04T15:10:34 | 329,517,747 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | '''
문제
영어 대소문자와 띄어쓰기만으로 이루어진 문자열이 주어진다. 이 문자열에는 몇 개의 단어가 있을까?
이를 구하는 프로그램을 작성하시오. 단, 한 단어가 여러 번 등장하면 등장한 횟수만큼 모두 세어야 한다.
'''
# solution
string = list(map(str,input().strip().split()))
print(len(string)) | [
"mandos19950620@gmail.com"
] | mandos19950620@gmail.com |
9040402abc555921137b96e21d59ea69a4a65b3f | ebbc32882b1bbb6e6935695a400e8ffd8c0fb7f6 | /ROAR/planning_module/mission_planner/waypoint_following_mission_planner.py | 81d8b4b89955d40a27fae6e422993f7a437d1132 | [
"Apache-2.0"
] | permissive | augcog/ROAR | 25fc3555934854871883de84bae49d84f86fbd7b | b7cd322f451ceccf5c53b331e15f5025f2e63bac | refs/heads/main | 2023-08-31T16:51:00.857463 | 2023-08-12T00:08:06 | 2023-08-12T00:08:06 | 302,450,761 | 29 | 222 | Apache-2.0 | 2023-08-26T07:04:26 | 2020-10-08T20:10:20 | Jupyter Notebook | UTF-8 | Python | false | false | 4,333 | py | from ROAR.planning_module.mission_planner.mission_planner import (
MissionPlanner,
)
from pathlib import Path
import logging
from typing import List, Optional
from ROAR.utilities_module.data_structures_models import Transform, Location, Rotation
from collections import deque
from ROAR.agent_module.agent import Agen... | [
"wuxiaohua1011@berkeley.edu"
] | wuxiaohua1011@berkeley.edu |
479a24ebea460d630afb100cbe446f2b98ea29c5 | 49819aef1336ddb8511e6dec53311777c0b41a7e | /apps/authentication/middleware.py | b2dd6834f09fcecbc03130d84405085fa4a502c7 | [] | no_license | devmaster54/pslam | d91f80340a89820ee596068f13fe6a628a93aab6 | e81316677a1db24bbedce70bf59f85d30583742d | refs/heads/master | 2022-12-24T15:20:39.219597 | 2020-10-02T15:46:20 | 2020-10-02T15:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import re
from psalm import settings
from django.contrib.auth.decorators import login_required
class AuthVerificationMiddleware(object):
def process_exception(self, request, exception):
return None | [
"soft.expert32@gmail.com"
] | soft.expert32@gmail.com |
b0a4d0f17558cbe4b82cc607cb5c64a7b2238ed4 | ae381913c23385f004b82161624097645ba8c4c8 | /Xianyang_modwt/projects/ensemble_models.py | 505bd0dc6a0bcac8eb2a2a3565d5e738a7deca6b | [
"MIT"
] | permissive | zjy8006/MonthlyRunoffForecastByAutoReg | aa37910fdc66276d0df9d30af6885209d4a4ebfc | 661fcb5dcdfbbb2ec6861e1668a035b50e69f7c2 | refs/heads/master | 2020-12-12T05:25:48.768993 | 2020-08-20T07:21:12 | 2020-08-20T07:21:12 | 259,588,564 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import matplotlib.pyplot as plt
import os
root_path = os.path.dirname(os.path.abspath('__file__'))
import sys
sys.path.append(root_path)
from tools.ensembler import ensemble
from Xianyang_modwt.projects.variables import variables
# Set the project parameters
ORIGINAL = 'XianyangRunoff1951-2018(1953-2018).xlsx'
STATION... | [
"zuojianyi@outlook.com"
] | zuojianyi@outlook.com |
f024ccaadc2065d52a7c473fe13a3620d3f75af1 | 6d913683be43f459b6e29dd84f09c05234efeb4d | /single_cell_differentiation_cuomo_data/merge_parallelized_covariate_modulated_eqtls.py | 3cea2a67cb603b0c7c42cf93e49bc86f36b4b564 | [] | no_license | BennyStrobes/eqtl_factorization | 4f94d8e2e00cf1830fd008f3264d1f9c57f6b2a0 | e555485e40e44c51e86f67761e5200b370673910 | refs/heads/master | 2021-06-20T15:54:34.906395 | 2021-04-05T14:11:46 | 2021-04-05T14:11:46 | 198,705,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | import numpy as np
import os
import sys
import pdb
def bf_fdr_multiple_testing_correction(variant_gene_pairs_eqtl_results_file, multple_testing_correction_results_file, fdr_thresh):
f = open(variant_gene_pairs_eqtl_results_file)
t = open(multple_testing_correction_results_file, 'w')
head_count = 0
genes = {}
for... | [
"bstrobe1@jhu.edu"
] | bstrobe1@jhu.edu |
3d522fc5eb54ef2e47e6a569e0ad572dc5690bf3 | 6c9d41994937733dc84e54359f5789ac945724a2 | /echo.py | 863cb8941b7dd620f6dacb81c28f14c916781f13 | [
"MIT"
] | permissive | cider-load-test/pygadu | 2268f38b4612cb32236c687ef355c6dc1d4cae33 | d4c1b25908ae6facd89d3509ea8bc2ec6b4eb11c | refs/heads/master | 2021-12-02T06:28:02.877479 | 2008-11-30T13:01:41 | 2008-11-30T13:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import time
from pygadu.session import PyGadu
from pygadu.util import query_hub
class Echo(PyGadu):
def __init__(self):
super(Echo, self).__init__()
def onWelcome(self, packet):
print repr(packet)
print "Welcome!"
def onLoginOk(self, packet):
print repr(packet)
... | [
"devnull@localhost"
] | devnull@localhost |
68c366cf3fe05227f6edc4c1f969590059582f5e | e3fd35a8443aaf2f293ae03a5f6c819046a4dd21 | /leetcode-java/leetcode.py | 9eecc06a263da457fb4f2cbe087d8d5b6c42ee2f | [] | no_license | hieutran106/leetcode-ht | 2223ea6bcd459c2cdbc33344c0ff69df7f8a3c7f | 8332eb20e613f82cda2e326218154c7803a32403 | refs/heads/main | 2023-08-09T02:52:41.360360 | 2023-07-27T10:12:28 | 2023-07-27T10:12:28 | 234,890,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | import sys
import os
if __name__ == "__main__":
difficulty = sys.argv[1]
problem = sys.argv[2]
cwd = os.getcwd()
path = os.path.join(cwd, "src", "test", "java", difficulty, problem)
# early exit
if os.path.exists(path):
print("Solution existed. Exit ...")
sys.exit()
print... | [
"hieutran106@gmail.com"
] | hieutran106@gmail.com |
7a5dcf48ff36cbc9f82e9329b3f7faec2ce88438 | 8eafb73fdab3e422aa717bac9af338dcba5e3c1e | /bbp/tests/test_gp_gof.py | bfb3309cb2b062ef6e9a0ed863563eb5f5da02ec | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | LevyForchh/bbp | 6dae4ce3577a73f5cef9b9b5507753a1381ec870 | 3cc389fb956ea14ef827af0f437ce37e8291afac | refs/heads/master | 2020-06-03T05:10:35.751009 | 2019-06-11T21:38:18 | 2019-06-11T21:38:18 | 191,453,945 | 0 | 0 | null | 2019-06-11T21:38:16 | 2019-06-11T21:38:15 | null | UTF-8 | Python | false | false | 7,314 | py | #! /usr/bin/env python
"""
Copyright 2010-2019 University Of Southern California
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... | [
"fsilva@usc.edu"
] | fsilva@usc.edu |
b55110e630e67fe860d2037fa0094925bbf45e28 | 64a8dcfa0a98c665b8b2ac796ed7231135977d9a | /fluent_contents/plugins/googledocsviewer/content_plugins.py | cf330dfc9bf3f2783a245dbbb6a29a3f46c583a2 | [
"Apache-2.0"
] | permissive | jpotterm/django-fluent-contents | 8bc70c9f0309bfeeb3c1e7a96c0687c7070e48ed | e617815874c936af1e00a8bfb79a4c8fc9a40cbb | refs/heads/master | 2021-01-18T06:56:15.737257 | 2015-09-09T15:40:43 | 2015-09-09T15:40:43 | 30,092,032 | 0 | 0 | null | 2015-01-30T21:42:42 | 2015-01-30T21:42:42 | null | UTF-8 | Python | false | false | 1,174 | py | """
Google apps widgets for your site.
"""
from django.utils.html import escape
from django.utils.http import urlquote
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from fluent_contents.extensions import ContentPlugin, plugin_pool
from fluent_contents.plugins.goog... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
5aec7d812d592d9d37ec207d0ed43b8a3d21710a | 58e51a01846176168bcd83175f63b240cd6db916 | /apps/news/models.py | 070e6feb4346a30d22e857ca08a87b62ba33f7b9 | [] | no_license | reddytocode/projectX-backend | 7e79795cd0c6951ca39f93e316af7a61b631940d | 05fb5f6e14889ecac94ad52c13796eb14c59814d | refs/heads/main | 2023-07-18T06:37:16.298857 | 2021-06-30T20:29:33 | 2021-06-30T20:29:33 | 380,374,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from django.db import models
class News(models.Model):
# Todo: inherit
guid = models.TextField()
title = models.CharField(max_length=100, blank=False)
link = models.CharField(max_length=200, blank=False)
content = models.TextField()
author = models.CharField(max_length=100, blank=False) | [
"aaabeeelooon@gmail.com"
] | aaabeeelooon@gmail.com |
21df715483d4461c101e7b8501691258ca4d040d | 4ae34a5179d7adf1037eb9a3cb249f9a5c06684e | /examples/v1beta1/trial-images/darts-cnn-cifar10/model.py | dea7d43f84c6d761b0697b84b5ffd2adc18d9249 | [
"Apache-2.0"
] | permissive | kubeflow/katib | 367373c0452d49a7a115b86893f4dab9e1f278ea | e3e0aa24aeea1edfab0fd42f55392af651d2b3ae | refs/heads/master | 2023-09-04T05:02:05.752156 | 2023-08-24T22:40:54 | 2023-08-24T22:40:54 | 127,941,481 | 1,385 | 422 | Apache-2.0 | 2023-09-14T13:17:29 | 2018-04-03T17:07:12 | Go | UTF-8 | Python | false | false | 7,044 | py | # Copyright 2022 The Kubeflow 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 applicable law or agreed to in ... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
8d0fe3775c506e3d3501551bd2693ec99edb0d39 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/parties/DistributedPartyFireworksActivity.py | cbe6cf69ed730e33a04c428825cbb5fd222fffe2 | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | # 2013.08.22 22:23:22 Pacific Daylight Time
# Embedded file name: toontown.parties.DistributedPartyFireworksActivity
from pandac.PandaModules import Vec3
from pandac.PandaModules import OmniBoundingVolume
from pandac.PandaModules import AlphaTestAttrib
from pandac.PandaModules import RenderAttrib
from direct.actor.Acto... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
eee3ed0cdfe623261a833b1da967a5cb2705933d | 30a61c74d5108279af498a181ebc83151f13c033 | /one_hundred_eighteen.py | 30b365d21d51a1e5aa523f67b58d17a91ffc45e6 | [] | no_license | Yanl05/LeetCode | 274267cb189813c96fff67d8cbfba4afebd5c2b2 | c0807a7f31a265b3090ef3d32a0ad5a2b10579f7 | refs/heads/master | 2020-03-15T12:25:16.456742 | 2020-01-20T01:12:35 | 2020-01-20T01:12:35 | 132,143,417 | 0 | 0 | null | 2018-12-21T03:01:32 | 2018-05-04T13:25:24 | Python | UTF-8 | Python | false | false | 704 | py | # -*- coding: UTF-8 -*-
"""
# @Time : 2019-08-28 16:33
# @Author : yanlei
# @FileName: one_hundred_eighteen.py
给定一个非负整数 numRows,生成杨辉三角的前 numRows 行。
在杨辉三角中,每个数是它左上方和右上方的数的和。
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
... | [
"756593069@qq.com"
] | 756593069@qq.com |
83f6803e4b1251b1ff5c7750399269d0197edd3d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2449486_0/Python/ynasu/B.py | 2540035aa29eb33019f7839e601b4e6d8c3a9332 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/env python
import sys
yes = "YES"
no = "NO"
def solve(heights):
N = len(heights)
M = len(heights[0])
for y in xrange(N):
for x in xrange(M):
possible = True
for y1 in xrange(N):
if heights[y1][x] > heights[y][x]:
possible = Fa... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
f102adefa4347ff2438caea310576abfc8cc8e52 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/network/iosxr/test_iosxr_netconf.py | fbb7819e173700b0821c2a564cbc459b04350fe6 | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | # (c) 2017 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is dis... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
efe05d84e80b3c205eaad6cbb005cf317016866d | 5f6cd57c692191acfea18c1af9d87e7db8e873f1 | /devito/ir/iet/scheduler.py | 7f2bf50f2985af84bbae530639c9d5aeae566821 | [
"MIT"
] | permissive | Antongk/devito | 684b0f4928d47bb6acc6469cc0471b5122c34561 | a50c0a8337497cf6d7603cf9beff4a3231e63bee | refs/heads/master | 2020-04-19T17:00:18.380108 | 2019-01-30T09:16:38 | 2019-01-30T09:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,330 | py | from collections import OrderedDict
from devito.cgen_utils import Allocator
from devito.ir.iet import (Expression, Increment, LocalExpression, Element, Iteration,
List, Conditional, Section, HaloSpot, ExpressionBundle,
MapExpressions, Transformer, FindNodes, FindSy... | [
"f.luporini12@imperial.ac.uk"
] | f.luporini12@imperial.ac.uk |
e1816c2710b111f0d03effc960902ea50e60d696 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /experiments/murtaza/multiworld/camera_ready/pusher/offline_vae_twin_sac.py | 621da28adc1a2950fe2cadb66df88816f479d492 | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,361 | py | import railrl.misc.hyperparameter as hyp
from multiworld.envs.mujoco.cameras import sawyer_pusher_camera_upright_v1
from railrl.launchers.launcher_util import run_experiment
from railrl.torch.grill.launcher import grill_her_td3_full_experiment, grill_her_twin_sac_full_experiment
if __name__ == "__main__":
variant ... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
a86265864b4893259754738fe02624202d5d2073 | eb166976684cf7c3e6ce613e17b270334bcdd837 | /configs/DOTA/faster_rcnn_r50_fpn_1x_dota.py | 7e905b2c0cc4fa43e1cd7846b589a845fdeb687c | [
"Apache-2.0"
] | permissive | dlrudco/AerialDetection | d987c3a301737911e29197065da00c2b8230e423 | e9381016113ddf77a09d07209341bb2208481850 | refs/heads/master | 2023-04-13T16:02:26.331775 | 2021-04-15T07:00:40 | 2021-04-15T07:00:40 | 290,456,718 | 0 | 0 | Apache-2.0 | 2020-08-26T09:43:20 | 2020-08-26T09:43:19 | null | UTF-8 | Python | false | false | 5,037 | py | # model settings
model = dict(
type='FasterRCNN',
pretrained='modelzoo://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=dict(
type='FPN',
in_channels=[256, ... | [
"574258651@qq.com"
] | 574258651@qq.com |
d2974097e777a4e406eabe78dffd4f18f27f2d4f | 2500a2ab1f43c649fb0b4fe3b9e3420efa017efa | /MPK_mini/config.py | 9bd08eee27ccd0fff60ef4fb0ba3349531d15488 | [] | no_license | cappytan3/AbletonLive9_RemoteScripts | 0ce3e2d728190ba2ff5d2422cd03ae8a5df9d46f | 65d08fd4ccdadd8366eca6f3c0fa7932516147bf | refs/heads/master | 2021-01-15T11:50:14.152579 | 2014-04-11T17:37:22 | 2014-04-11T17:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | #Embedded file name: /Users/versonator/Hudson/live/Projects/AppLive/Resources/MIDI Remote Scripts/MPK_mini/config.py
from consts import *
TRANSPORT_CONTROLS = {'STOP': -1,
'PLAY': -1,
'REC': -1,
'LOOP': -1,
'RWD': -1,
'FFWD': -1}
DEVICE_CONTROLS = (GENERIC_ENC1,
GENERIC_ENC2,
GENERIC_ENC3,
GENERIC_ENC4,
GENERI... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
745ce5c114180c8dfd4cfc9986795a097c916ddb | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/spiders/movies_20200627213700.py | 713340873e0307f55fcf3881bebea59a02cdfb52 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 741 | py | # -*- coding: utf-8 -*-
import scrapy
from maoyanspiders.items import MaoyanspidersItem
# import xlml.etree
from bs4 import BeautifulSoup as bs
class MoviesSpider(scrapy.Spider):
name = 'movies'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/board/4']
# def parse(self, response):
... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
0eeceafe6472fa14ed5584e9b820ca5caf6bcd8f | f6af4dee160aed43afae42c6c7d92542265b26e7 | /backend/views/product_views.py | 9d4eaf4c842da2b6afc8b31ddc8c0a43395c8aa5 | [] | no_license | jasimdipu/django_1st_batch_final_project | 8fcd0aad0fe9dc7922ea0692b24679546796748b | c75a80402967a6492433f75392dd0d8a20314601 | refs/heads/main | 2023-04-07T14:15:03.199353 | 2021-04-03T04:42:51 | 2021-04-03T04:42:51 | 353,403,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | from django.shortcuts import render
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import IsAuthenticated, IsAdminUser
from rest_framework.response import Response
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from ..models import Product,... | [
"dipu.j247@gmail.com"
] | dipu.j247@gmail.com |
037fc945b94f2fda69201f2375319345568518c0 | 38ac429d63369922e12e19cdda042b08b8123027 | /test/test_saml_api.py | 26846e6f2fcda7d9165535256227fcc7e7e394f6 | [] | no_license | aviv-julienjehannet/collibra_apiclient | 0dfebe5df2eb929645b87eba42fab4c06ff0a6be | 10a89e7acaf56ab8c7417698cd12616107706b6b | refs/heads/master | 2021-09-12T16:52:19.803624 | 2018-04-19T01:35:20 | 2018-04-19T01:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | # coding: utf-8
"""
\"Data Governance Center: REST API v2\"
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import ... | [
"busworld08@gmail.com"
] | busworld08@gmail.com |
8b1820d27a95d40776ef0c21fe1b3fc18a519080 | b8cc6d34ad44bf5c28fcca9e0df01d9ebe0ee339 | /Pandas_study/p25.py | a87f99f1a432299ee2ff02de0f557417bca76b3c | [] | no_license | python-yc/pycharm_script | ae0e72898ef44a9de47e7548170a030c0a752eb5 | c8947849090c71e131df5dc32173ebe9754df951 | refs/heads/master | 2023-01-05T06:16:33.857668 | 2020-10-31T08:09:53 | 2020-10-31T08:09:53 | 296,778,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # -*- coding: utf-8 -*-
"""
pycharm无法显示条件格式的情况,jupyter是可以的,这里只写代码
"""
import pandas as pd
def low_score_red(s):
color = 'red' if s < 20 else 'black'
return f'color:{color}'
def highest_score_green(col):
return ['background-color:lime' if s == col.max()
else 'backgroud-color:white' for s in c... | [
"15655982512.com"
] | 15655982512.com |
f63d3b091f50788337d5c3cb0719c39c23f0dfba | 376b6933872b9110765154094d2c77713da2c853 | /assemblies/bad.assemblies/abyss/3abyss.assembly.24.py | 61ae7ee6df58578b2948a7ad2b7ef9fbaa8bf97b | [] | no_license | markphuong/geographus-genome | 46b037e7789641895f1a99b8bf6dee3418887600 | a0ff439fbc0c350279359a51321e40e7778f5170 | refs/heads/master | 2020-03-19T07:21:29.297458 | 2018-06-05T04:15:18 | 2018-06-05T04:15:18 | 136,107,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,554 | py | #!/usr/bin/env python
#flash manual: http://ccb.jhu.edu/software/FLASH/MANUAL
#this script cleans reads using trimmomatic, merges reads using flash, and creates a read1 file, read2 file (these represent paired files) and an unpaired file
import os
import sys
import argparse
import multiprocessing
# an arguments po... | [
"phuong@br006.pvt.bridges.psc.edu"
] | phuong@br006.pvt.bridges.psc.edu |
0e043652c0c6321e999e76558a46f1c3bb9d060d | 98f7a31ee122cea4b9ed61300c8ee3be456b4850 | /ws-tests/test_study_get.py | 4a483310814437cf889f8e5e8a4583590d922dfe | [
"BSD-2-Clause"
] | permissive | BioinformaticsArchive/phylesystem-api | 4bd30bd32fba29497ca4c4df4a4cc5e85f0c7dfc | 08a77e3f49a1607ec1bc5d835977b1d2c365e291 | refs/heads/master | 2021-01-16T21:38:30.651003 | 2015-04-09T18:08:18 | 2015-04-09T18:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | #!/usr/bin/env python
import sys, os
from opentreetesting import test_http_json_method, config
DOMAIN = config('host', 'apihost')
SUBMIT_URI = DOMAIN + '/v1/study/10'
data = {'output_nexml2json':'1.2'}
if test_http_json_method(SUBMIT_URI, 'GET', data=data, expected_status=200):
sys.exit(0)
sys.exit(1) | [
"mtholder@gmail.com"
] | mtholder@gmail.com |
8d7793e068d44fdf86b78fc3ce1096b6349256b3 | df15792f5a82fcea25e62714b13e2d502485eb00 | /peil/peil/migrations/0009_auto_20170507_2253.py | a180183bba7ba0b86a466b593a969a1c33e7bac5 | [] | no_license | acaciawater/peilstok | c6fcdab232d938a3f281e9843c81cfbf59cc4eea | 179e1981a656e78a8ebdac6e50ef73f852df7630 | refs/heads/master | 2020-12-30T17:11:27.871514 | 2017-12-08T13:14:35 | 2017-12-08T13:14:35 | 91,066,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-07 20:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('peil', '0008_auto_20170507_2159'),
]
operations = [
migrations.RemoveField(
... | [
"tkleinen@gmail.com"
] | tkleinen@gmail.com |
d9d098d9fb7eebef77cb4e80498df3812f35e9be | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /mail_bot/models/mail_channel.py | b3486e0f9c67d8c5f70a64944b335d665f4eec2a | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from odoo import api, models, _
class Channel(models.Model):
_inherit = 'mail.channel'
def _execute_command_help(self, **kwargs):
super(Channel, self)._execute_command_help(**kwargs)
self.env... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
43daa355f596415d794bf815f82a5c47f5f64f4e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03268/s110149697.py | 306d09930e8015c8cc774fe726aa8960b05be863 | [] | 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 | 143 | py | n, k = map(int, input().split())
if k % 2 == 0:
d = k//2
ans = ((n // d)-(n//k)) ** 3
else:
ans = 0
ans += (n // k) ** 3
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
acba81390f9885788faef08ef3a0b042ce1e6ced | f5cf699c09c4bf2fd94285004ebc7766b9464532 | /scripts2/has_release.py | aebe6aa3b0abba1d3f9fea32914f2aa20c91398c | [] | no_license | marcoacierno/autodeploy-tests | 056f7351a94d3316d9a984e9307c4d42b0848be6 | f3bc97235cc17481ecc9529149ac7b361fbbe701 | refs/heads/master | 2022-01-08T02:52:41.418328 | 2019-05-11T10:46:33 | 2019-05-11T10:46:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import sys
import os
import re
sys.path.append(os.path.dirname(__file__)) # noqa
from datetime import datetime
from base import run_process, RELEASE_FILE, CHANGELOG_FILE
if __name__ == "__main__":
if not os.path.exists(RELEASE_FILE):
print("Not releasing a new version because there isn't a RELEASE.md ... | [
"marcoaciernoemail@gmail.com"
] | marcoaciernoemail@gmail.com |
e291e05c5bc7d1bb9602b61922781b54f61194f1 | cc2a00ce7e05245327ce8da85d0e3aa01d9635b9 | /P_controller/Tank_2/models/environment.py | 4b71bb3680bde2d87dcab15ee3e7ea14fb3ac54f | [] | no_license | puttak/Reinforcement-Learning-in-Process-Control | f7c05a0ed41826cb1d7248caffdb3c47bbe66df0 | 852967e97b2fb0b6c5022365c9ef62906c099832 | refs/heads/master | 2020-05-03T21:56:33.515929 | 2019-03-21T08:28:36 | 2019-03-21T08:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | py | from models.tank_model.tank import Tank
from visualize.window import Window
import matplotlib.pyplot as plt
from drawnow import drawnow
class Environment:
"Parameters are set in the params.py file"
def __init__(self, TANK_PARAMS_LIST, TANK_DIST_LIST, MAIN_PARAMS):
self.model = []
for i, TANK_... | [
"eskild.emedd33@gmail.com"
] | eskild.emedd33@gmail.com |
ba858d836612f5c7033f224fdde159303b0860e2 | ef2e354ae06e9994b7bc65f9685f8769ec56dc28 | /offerride/urls.py | 62a8e3f206ab88fb18f3719babe863841c06b08e | [] | no_license | akhilpatil123/FareShare | 45e634b07749f507a40eeb08be710b2090844ab9 | a0d89ba324ef5cf74fe5c54cf641f0d3625bd373 | refs/heads/master | 2020-04-30T00:21:56.041455 | 2019-03-19T11:55:56 | 2019-03-19T11:55:56 | 176,501,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from django.conf.urls import url
from . import views
app_name = 'offerride'
urlpatterns = [
url(r'^$',views.index, name='index'),
url(r'^rides/$', views.rides, name='rides'),
url(r'^addride/$', views.addride, name='addride'),
url(r'^submitride/$', views.submitride, name='submitride'),
url(r'^join/... | [
"you@example.com"
] | you@example.com |
70026a40fd339a0274b5f4b28aa1d9800b33d7aa | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/scipy/integrate/_ivp/dop853_coefficients.py | 5cc5c9e4c41c8bc9fa2287554b1308777aaa5172 | [
"GPL-3.0-or-later",
"BSD-3-Clause",
"GPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"BSD-2-Clause",
"GCC-exception-3.1",
"Qhull",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Python-2.0"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 7,303 | py | from __future__ import absolute_import, division, print_function
import numpy as np
N_STAGES = 12
N_STAGES_EXTENDED = 16
INTERPOLATOR_POWER = 7
C = np.array([0.0,
0.526001519587677318785587544488e-01,
0.789002279381515978178381316732e-01,
0.118350341907227396726757197510,
... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
8a2e361d427501a46d5935226ee01779753093ca | eef3fd0eba25725aa045f4913304c4d2dd93ba7e | /deeplearning_tensorflow_p/p58_transpose_resnet.py | 2463164107c0a9da57793cd2bb02a1bff48cb30e | [] | no_license | provenclei/tensorflow_cv | c613e686ab6827a5eedcbaf00ef1317da0b94e81 | c8827e74e0db42fa617c91f1d14b71abcff8780a | refs/heads/master | 2022-12-01T05:52:31.365257 | 2020-08-16T00:24:11 | 2020-08-16T00:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,078 | py | # -*- coding: utf-8 -*-
"""
@Author : LEITENG
@Version :
------------------------------------
@File : p56_ResNet.py
@Description :
@CreateTime : 2020/7/10 09:21
------------------------------------
@ModifyTime : 反 Resnet 框架
"""
import tensorflow as tf
RESNET18 = 'ResNet18'
R... | [
"18565663062@163.com"
] | 18565663062@163.com |
2f05ffdb5318a803ae57b08a2a6dfa42c899af36 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03644/s583061806.py | 4f4c5fa1513661aa6021ecf76f19f6b4993b52f6 | [] | 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 | 207 | py | N = int(input())
result = []
for i in range(1, N+1):
bin_i = bin(i)
bin_i_c = bin_i.count("0")-1
result.append(bin_i_c)
sorted_result = sorted(result, reverse = True)
print(2 ** sorted_result[0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3d67d667f7c635238b62f637bbb7bca5a7604a8d | dbd8180d9c02c22b42baa5227437714ff352fd8e | /1-100/L250.py | 5488dcdc339fc4b78d91939d00a3f4171395ad11 | [] | no_license | k8godzilla/-Leetcode | 92953dfffc0f06907fa7bd0beea7bc27b16f9efa | 58d5384155f481b1d1b0a7ca69566245dd779554 | refs/heads/master | 2020-06-12T15:35:43.380979 | 2019-08-07T11:14:49 | 2019-08-07T11:14:49 | 194,348,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,115 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 28 17:29:57 2019
@author: sunyin
"""
'''
给定一个二叉树,统计该二叉树数值相同的子树个数。
同值子树是指该子树的所有节点都拥有相同的数值。
示例:
输入: root = [5,1,5,5,5,null,5]
5
/ \
1 5
/ \ \
5 5 5
输出: 4
来源:力扣(LeetCode)
链接:htt... | [
"k8sunyin@126.com"
] | k8sunyin@126.com |
a32a139770dcea6321e2c857c8f1d62509740d59 | dd1b38d6d953fae7ace7b9c5f86821ac24936b1d | /stutorial/items.py | 2376d466616a39f112cdf068f151165ddf3d4b94 | [] | no_license | ranafge/scrapy_project | 81e1345cc793e65061ba8a43afa78ec91c0680a9 | 8b921a64f9e499ac56cb985b6ccaf680258a2b2f | refs/heads/master | 2020-04-11T04:58:28.982076 | 2018-12-12T19:22:12 | 2018-12-12T19:22:12 | 161,533,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class StutorialItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"ranafge@gmail.com"
] | ranafge@gmail.com |
81a10088604bb25b97c23ba1ef2a1604af597a9f | 0c3cd4e933afef9dd15c2983d6b1a8413063ae80 | /alpaca_paper/tests/test_screeners.py | f9d9c8afeb1f5fc0c0b87f8372bca7a71743e206 | [] | no_license | webclinic017/paper_trading_bot | 405ae2cad7fd50b393509a90973d674b5f59ce8c | a172ce2dc150183be4ddb5b218dfcb7006027f69 | refs/heads/master | 2023-07-24T06:31:12.093572 | 2021-07-20T01:32:32 | 2021-07-20T01:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | import pytest
from alpaca_paper.screeners import MarketWatch
@pytest.fixture
def mw():
return MarketWatch()
def test_premarket(mw):
pre_market = mw.pre_market()
assert isinstance(pre_market, (dict,))
assert isinstance(pre_market['gainers'], (list,))
assert isinstance(pre_market['loosers'], (list,... | [
"samuelperron@hotmail.fr"
] | samuelperron@hotmail.fr |
566b7fac7c1540a03e7ba419a8e74227534f307e | fb124e51024917d6479fa626d9607ff10f7a3aba | /storm-control/storm_control/hal4000/illumination/button_editor_ui.py | 6340c37f39723a6c6e0a3e99238c3c19bfe496a8 | [
"MIT"
] | permissive | BehnamAbaie/storm-control | 054bd7bbd903ed9635e4d1121c30544f58473c4f | 0c686321142eccad62ce3365eae22c3b69229b0d | refs/heads/main | 2023-06-18T08:04:01.108874 | 2021-07-14T00:51:15 | 2021-07-14T00:51:15 | 342,049,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'button_editor.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
D... | [
"noreply@github.com"
] | BehnamAbaie.noreply@github.com |
eab876d87c22914ef3b369338b868419b7af5f42 | cb94a4cdd7a9df17f9c6f1a03f8f4ff12c916cf3 | /Learning_Python_Generators/Exercise_Files/Ch3/03_04/coroutine_decorator.py | a55630fb3f470ad6df497cd864cbf4893c44f0e7 | [] | no_license | sedstan/LinkedIn-Learning-Python-Course | 2b936d0f00703a6e66a872220ed47572123dc7fd | b4584218355bf07aa3d2939b950911eae67adb0b | refs/heads/master | 2021-10-11T10:19:13.675662 | 2019-01-24T17:55:20 | 2019-01-24T17:55:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py |
def coroutine_decorator(func):
def wrap(*args, **kwargs):
cr = func(*args, **kwargs)
cr.next()
return cr
return wrap
@coroutine_decorator
def coroutine_example():
while True:
x = yield
#do something with x
print (x)
| [
"sed@wearewhy.co.uk"
] | sed@wearewhy.co.uk |
f87cd3733e9279862ac119d90af6bf4ea02c10ae | 627cca9406c31ce30c493ff7502f79eb4c57eee3 | /xcha/wallet/lineage_proof.py | ca16b4fed04cad1847319ac28818c391c418eb37 | [
"Apache-2.0"
] | permissive | blockchiansea/xcha-blockchain | 40c6d36813f671e94316a522904238f495f39f6b | 7de0ba89056236e30069aef12fe25843f6093bcf | refs/heads/master | 2023-07-26T02:36:57.654196 | 2021-09-06T06:04:21 | 2021-09-06T06:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from dataclasses import dataclass
from typing import Optional
from xcha.types.blockchain_format.sized_bytes import bytes32
from xcha.util.ints import uint64
from xcha.util.streamable import Streamable, streamable
@dataclass(frozen=True)
@streamable
class LineageProof(Streamable):
parent_name: bytes32
inner_p... | [
"xchanet@gmail.com"
] | xchanet@gmail.com |
71dc32b622749cfff8398ad2dde76627857ea6a3 | 17e3234ab01fd93233cc453f1495d50424c3bd8f | /latte/dashboard/doctype/dashboard_data_slice/__init__.py | b3c7ec22aa81e9680d69eb7ddacef402ae0c4349 | [
"MIT"
] | permissive | sunnyakaxd/latte | 8943dbf70ce934e04e51b147a54e6dd02dfe43db | de74065122a1f858bd75f8e1a36fca3b23981f4c | refs/heads/master | 2023-06-11T10:25:31.217047 | 2021-07-06T06:40:19 | 2021-07-06T06:40:19 | 383,363,137 | 0 | 0 | NOASSERTION | 2021-07-06T06:26:49 | 2021-07-06T06:26:49 | null | UTF-8 | Python | false | false | 1,568 | py | import frappe
import jwt
import time
from latte.utils.caching import cache_me_if_you_can
@frappe.whitelist()
def run(slice_name=None, data_source_name=None, filters=None):
return run_cached(slice_name, data_source_name, filters)
# @cache_me_if_you_can(expiry=20)
def run_cached(slice_name=None, data_source_name=No... | [
"himanshu.mishra@elastic.run"
] | himanshu.mishra@elastic.run |
77ee9b20a0817d31a073534a684b32b631dcca13 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Google/Gmail/InboxFeed.py | 8764414118792dd2115f21eea4921bec6e6e5563 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,883 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# InboxFeed
# Allows you to access a read-only Gmail feed that contains a list of unread emails.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
97d98121e3aad07d0cc73ab82f9883743bfc3be7 | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/ops/ragged/ragged_print_op_test.py | 2b612d463d0eb70eebb13c4486f0d5d159173771 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 7,777 | py | # Copyright 2020 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 |
723eeca76900ebe35f0b732286e7bd9845b4ffac | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/powerbi/v20200601/__init__.py | ce0d971ca28040740542ec1f335f01eed4ab4889 | [
"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 | 444 | 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! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .get_private_endpoint_connection import... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.