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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f6f7f9730ee9e024cbdb0c3251512bd8f440a4d3 | a49fe91891f9dcececb46e601d8df294975bc01b | /(DDPG) Deep Deterministic Policy Gradient/ReplayBuffer.py | d9068e545c0641da4102265bd8727c276e5880d9 | [] | no_license | Abdelhamid-bouzid/Policy-Gradient | b3baf80eb4bdfdffc368381a7f75f26c8d62f6a4 | 2bb3272af4a300dbc2925fb2640c27e64a118535 | refs/heads/main | 2023-05-10T00:51:48.231079 | 2021-06-09T03:09:02 | 2021-06-09T03:09:02 | 330,522,292 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 8 15:49:36 2021
@author: Admin
"""
import numpy as np
class ReplayBuffer(object):
def __init__(self, max_size, input_shape, n_actions):
self.mem_size = max_size
self.mem_cntr = 0
self.state_memory = np.zeros((self.me... | [
"noreply@github.com"
] | Abdelhamid-bouzid.noreply@github.com |
9d6caeee244d5bede9b41ec478e812ce24e40eb5 | 8f8f40280afdd0c47fd39664b43c8fb45d86a285 | /sky_noise_model/fetch_data.py | d0a816b832719d20bdeee9c35fdcd183bb0199f2 | [] | no_license | shibaji7/IP_Shock_SSC_SuperDARN | d463341c432e14c3007a0540ad96b4325289d6c0 | 32ea9d72d2ab68a7b80ab12f41228783370b6d4f | refs/heads/main | 2023-02-19T14:32:43.806681 | 2021-01-23T02:41:00 | 2021-01-23T02:41:00 | 303,022,533 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,556 | py | #!/usr/bin/env python
"""fetch_data.py: Fetch data from the remote locations"""
__author__ = "Chakraborty, S."
__copyright__ = "Copyright 2021, SuperDARN@VT"
__credits__ = []
__license__ = "MIT"
__version__ = "1.0."
__maintainer__ = "Chakraborty, S."
__email__ = "shibaji7@vt.edu"
__status__ = "Research"
import param... | [
"shibaji7@vt.edu"
] | shibaji7@vt.edu |
aa64c045da283a2c3885c305add6a407f38567fb | 7966e6667d8f682ca35e1157c6a210fb2df0a95b | /mesh_tensorflow/experimental/input_reader.py | 5a010d1a50149e7d4b398a34eb58dbc772d7f78a | [
"Apache-2.0"
] | permissive | bruinxiong/mesh-1 | 4a0ac4c5fd5e858e8faec314db1f5507ec1a8dcc | a1259b927dc34eb16251b33a62bc9fed112893f9 | refs/heads/master | 2020-08-05T18:16:01.793383 | 2020-01-23T03:37:53 | 2020-01-23T03:37:53 | 212,649,985 | 0 | 0 | Apache-2.0 | 2020-01-23T03:37:54 | 2019-10-03T18:26:45 | null | UTF-8 | Python | false | false | 21,214 | py | # coding=utf-8
# Copyright 2019 The Mesh TensorFlow 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4e97131551a7703b0f6e4e08db264b04b6c56d4c | 59080f5116b9e8f625b5cc849eb14b7ff9d19f3d | /002 基础&运算符/4.运算符.py | e2f027d480facf38f16ab87e5c593367b31aaf3f | [] | no_license | yyq1609/Python_road | eda2bcd946b480a05ec31cdcb65e35b3f3e739d1 | e9ba2f47c8dd2d00a6e5ddff03c546152efd8f49 | refs/heads/master | 2020-09-11T11:51:35.903284 | 2019-11-11T13:02:21 | 2019-11-11T13:02:21 | 222,054,462 | 1 | 0 | null | 2019-11-16T05:58:13 | 2019-11-16T05:58:12 | null | UTF-8 | Python | false | false | 1,076 | py | # 练习题 % 求余数
# count = 1
# sum = 0
# while True:
# sum += count
# count += 1
# if count > 100:
# break
# print(sum)
# 打印100以内的奇数
# count = 1
# while count <= 100:
# if count % 2 == 1:
# print(count)
# count += 1
# if 1 > 0 and 1 < 2:
# print('666')
# ** 幂次方
# // 地板除
# 练习1-10... | [
"958976577@qq.com"
] | 958976577@qq.com |
27ca7689b6ba6c109646fe78d1789a61229b7779 | 0180b1a8e19c0a02e7c00ebe1a58e17347ad1996 | /_Serato/SpecialMixerComponent.py | a28f88ca3904acb3caa5063622d0f6a035138e3e | [] | no_license | cce/buttons | e486af364c6032b4be75ab9de26f42b8d882c5b0 | 7d4936c91df99f4c6e08f7e347de64361c75e652 | refs/heads/master | 2021-01-17T06:56:55.859306 | 2014-12-22T05:03:00 | 2015-11-25T03:42:28 | 46,657,841 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | # Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/_Serato/SpecialMixerComponent.py
import Live
from _Framework.MixerComponent import MixerComponent
from SpecialChanStripComponent import SpecialChanStripComponent
class SpecialMixerComponent(MixerComponent):
def ... | [
"cce@appneta.com"
] | cce@appneta.com |
5a1a7c246a11fb79a5c999605115b5812953014c | 0ed63027e39120c8f0ca355aa5abbeaee42104f4 | /dex_api_python/models/comment_ref.py | 6e9b790a206bcbadd4af72e90500c6763d4c53d8 | [] | no_license | Felix-Fenix/dex-api-python | 592f4737936fbc1968e7c3725bf2ecfda607ff9a | bb5a2d86d476ab3c080383ad5197ed5f116712ed | refs/heads/master | 2022-08-24T16:22:28.795164 | 2020-05-26T07:11:34 | 2020-05-26T07:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,310 | py | # coding: utf-8
"""
CET-Lite for CoinEx Chain
A REST interface for state queries, transaction generation and broadcasting. # noqa: E501
OpenAPI spec version: 3.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Comm... | [
"huahui.gao@matrixport.com"
] | huahui.gao@matrixport.com |
31b65b101fd8f34e97a0ddda18a71d25eb467852 | 71a6a348deda087893dc3f0e61d224f6990e9c08 | /protocols/protocol_atmel_stkv2/atmel_stkv2_isp.py | bc4522790522db0989e482104fb51e7f33e8ee63 | [] | no_license | phedoreanu/gdp | 21b2b8145d7c4610cdc19ba8c11f4f19cab01c17 | ea771d5c36b5421c17e1f3a461f89bc7896eb654 | refs/heads/master | 2020-04-30T09:44:25.800041 | 2014-01-17T01:05:47 | 2014-01-17T01:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,381 | py | '''
GDP - The Generic Device Programmer.
By Dean Camera (dean [at] fourwalledcubicle [dot] com)
'''
from core import *
from protocols import *
from protocols.protocol_atmel_stkv2.atmel_stkv2_base import *
import math
class ProtocolAtmelSTKV2_ISP(ProtocolAtmelSTKV2_Base):
def set_interface_frequ... | [
"dean@fourwalledcubicle.com"
] | dean@fourwalledcubicle.com |
fa6a7ffd817c36cf365f5bc86e5880d0225f5188 | 60d7758e290be485ffe92de1395b6314e0573256 | /testcase/testcase_accesspoints_7600.py | 761a9bca62f381a9bcefbd882a5e0cfd8f8780f9 | [] | no_license | zeewii/GWN76xx_regressiontest | ba3b4362760bfde5ac390173871afa727e187d9f | 064f6ed41e312b8f111f038cf963d89db311894f | refs/heads/master | 2020-03-22T07:34:58.923944 | 2018-07-04T10:57:17 | 2018-07-04T10:57:17 | 139,709,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,440 | py | #coding=utf-8
#作者:曾祥卫
#时间:2017.03.15
#描述:用例集,调用aps_business
import unittest,time
from selenium import webdriver
from login.login_business import LoginBusiness
from access_points.aps_business import APSBusiness
from network_group.networkgroup_business import NGBusiness
from ssid.ssid_business import SSIDBusiness
from n... | [
"zeewii@sina.com"
] | zeewii@sina.com |
d8aff904852ba6cd952b463da32f487ab875c130 | 798bd53a91a627e533f6f5382b1296dacff131d6 | /posts/migrations/0001_initial.py | 0b43776f643f76d1effba9133550a269d1962e34 | [] | no_license | Alymbekov/week14-15_blog | 5fef5c0812985a5943826c720875a5073575b9ed | de1bfcb02f472d182f73fa31e4d467c86e2e2b8c | refs/heads/main | 2023-01-19T21:29:57.664548 | 2020-11-23T15:31:01 | 2020-11-23T15:31:01 | 315,323,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # Generated by Django 3.1.3 on 2020-11-20 13:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"maxim.makarov.1997@mail.ru"
] | maxim.makarov.1997@mail.ru |
56d7653aaa614fbeebcc1c59f567023e5361ac15 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_None/trend_MovingAverage/cycle_7/ar_12/test_artificial_128_None_MovingAverage_7_12_100.py | 5f444a2ade4aa51e6dad9d6caa33c8e38820280d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 270 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 7, transform = "None", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
a767c33a59b197be86a783a62ed2bd215608a19a | 5d4d02d814a1e3fd4afbb790f8f2f0d96f4748a5 | /scripts/run-player-turn | 82df59ab648ca6c3fccf519526ab088e39442efc | [
"Apache-2.0"
] | permissive | pombredanne/olypy | a98b13f044b4f6973bad724a61a848d6bf9b888e | b8c7a6f0f0d564234a983b5f273581b9b099924f | refs/heads/master | 2021-09-03T20:58:06.301952 | 2018-01-11T02:08:29 | 2018-01-11T02:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | #!/usr/bin/env python
'''
Run a simulation of player orders.
Expects:
- lib.NNN.tar.gz, the output of build-player-lib
- spool.NNN, a directory containing orders
- an executable for the Olympia C code plus helper scripts
'''
import os
import sys
import platform
import subprocess
from olypy.oid import to_oid
turn =... | [
"lindahl@pbm.com"
] | lindahl@pbm.com | |
7ea38b2c9f5c4afa640b333aad72c2e7bea0bde9 | 5e45ba79976ba805f6744f0bcb4ddfbde3e0a7a4 | /alibi_detect/od/pytorch/base.py | 40f1677dde96e5a23ad7d8e694fd78275141f6ba | [
"Apache-2.0"
] | permissive | SeldonIO/alibi-detect | e3293baa0603acace6f79bfb14953cf953943b10 | 4a1b4f74a8590117965421e86c2295bff0f33e89 | refs/heads/master | 2023-08-25T05:47:14.038826 | 2023-08-08T14:12:47 | 2023-08-08T14:12:47 | 213,390,927 | 1,922 | 195 | Apache-2.0 | 2023-09-12T07:07:13 | 2019-10-07T13:29:13 | Python | UTF-8 | Python | false | false | 8,754 | py | from typing import List, Union, Optional, Dict
from dataclasses import dataclass, fields
from abc import ABC, abstractmethod
import numpy as np
import torch
from alibi_detect.od.pytorch.ensemble import FitMixinTorch
from alibi_detect.utils.pytorch.misc import get_device
from alibi_detect.exceptions import ThresholdNo... | [
"noreply@github.com"
] | SeldonIO.noreply@github.com |
fa903de4e03f86c510a8ac61a59cf93584b098a1 | 7239d389894613ef132edb1198a4f47cb2b65f92 | /packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py | b0cdb2f660ea4891386e89d97438f4fac25ad73c | [
"MIT"
] | permissive | fast3dd13sa/plotly.py | 2169417b72481ff2937b5a9ce90d426cd1cccd80 | e778c6b5e6ae9665d7a5e2ddb666f43806df3959 | refs/heads/master | 2022-04-26T01:11:46.345181 | 2020-04-27T19:49:56 | 2020-04-27T19:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,520 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickformatstop(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "histogram.marker.colorbar"
_path_str = "histogram.marker.colorbar.tickformatstop"
_v... | [
"noreply@github.com"
] | fast3dd13sa.noreply@github.com |
4b3fbafdfe3eecefb57f43f994d9d6c61cd2c3c8 | cf3891c6122d21584bb6d7ad81c41e26755c1083 | /tests/gmprocess/subcommands/export_shakemap_test.py | 43c6c869b4ff0b39184e51632642ce5a747c3b5b | [
"Unlicense",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | mmoschetti-usgs/groundmotion-processing | 5cb6412eebe258dd3d30e085d68affc20553d744 | 944667e90b5a0a01f7017a676f60e2958b1eb902 | refs/heads/master | 2022-11-03T04:32:00.353837 | 2022-10-19T17:57:16 | 2022-10-19T18:37:23 | 186,485,732 | 0 | 0 | NOASSERTION | 2019-05-13T19:51:34 | 2019-05-13T19:51:34 | null | UTF-8 | Python | false | false | 1,483 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
import shutil
from gmprocess.utils import constants
def test_export_shakemap(script_runner):
try:
# Need to create profile first.
cdir = str(constants.CONFIG_PATH_TEST)
ddir = str(constants.TEST_DATA_DIR / "demo_steps" / "... | [
"emthompson@usgs.gov"
] | emthompson@usgs.gov |
c6b35940b3738341d93ad617ca022743450f7925 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/68.py | 1400b69fa866b191904c12c610b19e1fcecda6ac | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | import re
import string
params= raw_input()
params=params.split(' ')
L=int(params[0])
D=int(params[1])
N=int(params[2])
i=0
words=''
while i<D:
words+=raw_input()+'\r\n'
i+=1
i=0
while i<N:
testcase=raw_input()
testcase=testcase.replace('(','[')
testcase=testcase.replace(')',']')
ret=re.findall(t... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
714d2533bf3a5ff89bb2ad499447707e01a936ba | ff4f49dd5a7c688ea14f44d0a15b5798ff247002 | /build/lib.linux-x86_64-2.7/sst/create_database.py | 268c1be48e7757f9deca6551eb06cad190516cbe | [
"MIT"
] | permissive | Youngjoo-Kim/Street-Segmentation-Toolkit | 167e2c7784d4d121296d324713ba6d3bcfef3df3 | 6867ca7518e4f9d06fa1c527906f391967c85cf2 | refs/heads/master | 2021-06-15T07:35:28.135348 | 2017-03-08T14:30:02 | 2017-03-08T14:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,431 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Train a neural network to classify (patch size)x(patch size) (3 color) patches
with street / no street in the center pixel.
If loss doesn't change after the first iterations, you have to re-run the
training.
"""
from __future__ import print_function
import inspect
i... | [
"marvin.teichmann@googlemail.com"
] | marvin.teichmann@googlemail.com |
5bee4052b645cd16581c5a638766f1e04570a03f | 88ce3ae8f2e3797baa67108a85a47722b6c961b7 | /exercicio_py/ex0025_acessando_site/main_v0.py | 9afa5d259bc782aeb5bf66dad331fa8c04e8431f | [
"MIT"
] | permissive | danielle8farias-zz/hello-world-python3 | dda24fe4c125f762d6512589b288f633f00c94d2 | f2fe9b6ca63536df1d83fd10162cfc04de36b830 | refs/heads/main | 2023-08-10T11:26:58.975017 | 2021-09-02T19:48:45 | 2021-09-02T19:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | ########
# autora: danielle8farias@gmail.com
# repositório: https://github.com/danielle8farias
# Descrição: Abrindo um determinado site.
########
from urllib.request import urlopen
from webbrowser import open
try:
site = urlopen('http://www.pudim.com.br/')
except:
print('Não foi possível acessar o site.')
el... | [
"danielle8farias@gmail.com"
] | danielle8farias@gmail.com |
2aac7e25d57f587ed28f7506c70391a56152c1b7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_skitters.py | 857738ae3ae99dddfe12b05ef2b1a85a7927ccdd | [
"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 | 226 | py |
#calss header
class _SKITTERS():
def __init__(self,):
self.name = "SKITTERS"
self.definitions = skitter
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['skitter']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
035d9dc56a6d3cdbce71c8088210806dccc5c951 | b02f259997e914dc58a8d39dd3490d1712180504 | /data/COVID-19_plus_Russia/python3/src/covid19ru/access.py | a46c86e035726fb6f84d664ed556a53520485a01 | [] | no_license | Hvids/GlobalSpreedCovid | b2a696a0a51ce3cedc23eb12d79987469f1379ed | ab369df9b4b896f2bdbe127609b696115dfe2685 | refs/heads/master | 2022-09-28T23:35:12.846261 | 2020-06-03T00:27:59 | 2020-06-03T00:27:59 | 260,269,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,209 | py | from os.path import join, abspath
from os import walk
from datetime import datetime, date, timedelta
import pandas as pd
from dateutil import parser
from pandas import DataFrame, read_csv
from typing import Dict, List, NamedTuple, Tuple, Optional, Any
from collections import defaultdict
from copy import copy
from .def... | [
"danchicscomp@mail.ru"
] | danchicscomp@mail.ru |
29b8c49a3b23f1aa3db16c5e985983aca467cc44 | 90e089c800d3ac6c9b338618574ce21a306f1399 | /fonts/migrations/0003_auto_20161115_0754.py | 1b56f380a245f0a80dd94f9b8b4cb4a59934bb75 | [] | no_license | Matroskins/fortypes | 962e8f28297a565884703ed68ba8a0b93c8e16b3 | 708a7cc67f6e510152b796759f7e556d96a93522 | refs/heads/master | 2021-04-27T17:13:41.959941 | 2018-02-22T14:48:57 | 2018-02-22T14:48:57 | 122,317,047 | 0 | 0 | null | 2018-02-21T09:38:05 | 2018-02-21T09:38:05 | null | UTF-8 | Python | false | false | 921 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-11-15 07:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fonts', '0002_auto_20161026_1014'),
]
operations =... | [
"chepe4pi@gmail.com"
] | chepe4pi@gmail.com |
17508991b2c2f27027a88f3294d2f67944bc4dd6 | 5bf8dddd2a166c22c98a5c96f3df0d85a9d97837 | /inne_projekty/data_structures_and_algorithms/bear_and_fish.py | 4655ef55f4ccbdd00ebf3276c00eab2ee6aa7bfc | [] | no_license | Licho59/Licho-repository | 866866068a6d5733da932ac4b63b8d12be278592 | c29171e1c4d88000d6d1afc621974eba66002d6f | refs/heads/master | 2022-12-24T10:24:03.598169 | 2020-04-30T12:32:45 | 2020-04-30T12:32:45 | 108,299,082 | 0 | 0 | null | 2022-12-08T03:48:47 | 2017-10-25T16:55:46 | Python | UTF-8 | Python | false | false | 4,860 | py | """
Simulation of river environment containing bears and fish.
"""
import random
class Animal:
"""Animals are the inhabitants of the river"""
def __init__(self, gender=None, strength=None):
"""Initialize animal
gender gender of the animal(M, F) determines mating or fighting(default rando... | [
"lestlalka@gmail.com"
] | lestlalka@gmail.com |
740be876fab70ce4a47d272d93ab60c96b9268c5 | f6cb3563a412f148a8a9f47204ac1e2226ae7b2e | /examples/librispeech/data/test/test_load_dataset_ctc.py | 23e7720494e0fcc2f0537e5c036f444c13676412 | [
"MIT"
] | permissive | sundogrd/tensorflow_end2end_speech_recognition | 424789888a54d7149aa9a35a68e781df553abfd9 | 61e4a65fb5c9f3d9f690d713dcd77a48b1de0a14 | refs/heads/master | 2020-05-17T19:21:34.206076 | 2019-04-28T14:03:12 | 2019-04-28T14:03:12 | 183,913,207 | 0 | 0 | MIT | 2019-04-28T13:40:36 | 2019-04-28T13:40:36 | null | UTF-8 | Python | false | false | 4,767 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import re
import os
import sys
import unittest
import numpy as np
sys.path.append(os.path.abspath('../../../../'))
from experiments.librispeech.data.load_dataset... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
47c6c5497ff46d5ca60fe17fc3b09f41fd9f19cf | 1e21f0939d4c46db8eeca9fa8ef034ed14b7a549 | /PhotonIDSFs/TnP_76X/test/Signal_fitfunction_Syst/Signal_fit_systematic_Fit1/fitter_Loose.py | 24ebfa5b203cb933090ba520f7c8164c1a4e4a60 | [] | no_license | Ming-Yan/photonTnp | 4e46286998d4e2806e423e2e27893c0a8675494f | 5468bea3eff51b21eed2701cda4f3e5d2ad9e6bf | refs/heads/master | 2021-10-08T20:33:55.910375 | 2018-10-22T09:12:26 | 2018-10-22T09:12:26 | 162,109,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,067 | py | import FWCore.ParameterSet.Config as cms
from FWCore.ParameterSet.VarParsing import VarParsing
#import PhysicsTools.TagAndProbe.signalFitFunction.commonFitLoose_S as common
options = VarParsing('analysis')
options.register(
"isMC",
False,
#True,
VarParsing.multiplicity.singleton,
VarParsing.varTy... | [
"p.wang@cern.ch"
] | p.wang@cern.ch |
51f5fc322e87652d29e67ad67dd1c6e865fe25ad | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_046/ch86_2019_06_04_20_12_01_858305.py | ac87ad82eed26557d530a086feae20b1ba6a0530 | [] | 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 | 268 | py | with open('dados.csv','r') as arquivo:
conteudo = arquivo.read()
i=0
while i < len(conteudo):
if conteudo[i] == ',':
conteudo[i] == ' '
i+=1
with open('dados.tsv','w') as arquivo2:
arquivo2.write(conteudo)
| [
"you@example.com"
] | you@example.com |
a3a54ad66b3878f9fe6c270e8bc4d489dd35e293 | 6d5545faf2af0a6bb565ad698bb824110b40e121 | /WEBAPP/MLmodel/inception_client.py.runfiles/org_tensorflow/tensorflow/contrib/image/ops/gen_distort_image_ops.py | 9e68eb8f0e60fce10bbf4421984139fee0253739 | [
"MIT"
] | permissive | sunsuntianyi/mlWebApp_v2 | abb129cd43540b1be51ecc840127d6e40c2151d3 | 5198685bf4c4e8973988722282e863a8eaeb426f | refs/heads/master | 2021-06-23T22:02:38.002145 | 2020-11-20T02:17:43 | 2020-11-20T02:17:43 | 162,194,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | /private/var/tmp/_bazel_tianyi/f29d1e61689e4e4b318f483932fff4d0/execroot/tf_serving/bazel-out/darwin-opt/genfiles/external/org_tensorflow/tensorflow/contrib/image/ops/gen_distort_image_ops.py | [
"sun.suntianyi@gmail.com"
] | sun.suntianyi@gmail.com |
cfce40d195569620aa61f66fecb0f1db2b58db5e | c95368285386c09868ccaf31bfab2d86ba639105 | /hyperactive/optimizers/monte_carlo/parallel_tempering.py | cc96d488a8a70dffc7bac6092deb5529220ff176 | [
"MIT"
] | permissive | RasmusWL/Hyperactive | 19dbe5f2a2d76998f0e8e69382fa9555d99da480 | 66d44c89fdbe9414b947ea0b43cdc29bc9c1aeb1 | refs/heads/master | 2020-12-27T13:59:19.630027 | 2020-02-01T19:33:25 | 2020-02-01T19:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | # Author: Simon Blanke
# Email: simon.blanke@yahoo.com
# License: MIT License
import random
import numpy as np
from .simulated_annealing import SimulatedAnnealingOptimizer
from ..local import HillClimbingPositioner
class ParallelTemperingOptimizer(SimulatedAnnealingOptimizer):
def __init__(self, _main_args_, ... | [
"simonblanke@hotmail.de"
] | simonblanke@hotmail.de |
ceb314722ae94a07d1279ee4cb8cc02356e4ce4e | 03944a0bac72026d6a306de646f3c0b5898f7645 | /demo-python/turbine.py | dd811ad13bf2c534e197f5774113b3c7ad05436a | [
"MIT"
] | permissive | suhaishengye/SEUIF97 | 0b2b324f505886499dbde279a649500a51cadd8d | c436b4d8aab3361f3ab203c5723f850ff038416c | refs/heads/master | 2020-03-20T00:22:19.483419 | 2018-06-12T01:38:32 | 2018-06-12T01:38:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | # -*- coding: utf-8 -*-
"""
This is a simple demo for seuif97.py
4 lines:
1 Isobar line:p inlet
2 Isobar line:p outlet
3 isoentropic line: (p inlet ,t inlet h inlet,s inlet), (p outlet,s inlet)
4 Expansion line: inlet,outlet
License: this code is in the public domain
Author: ... | [
"cmh@seu.edu.cn"
] | cmh@seu.edu.cn |
71be846554a6bf2f52f8c5f687846b35db16a3e8 | 25bcf095a803470b4be9bba394569cb218b997ed | /medium/sort-colors.py | 502594d35cd265fdd4a0e11738a6ba7fb410f9ce | [] | no_license | lcqbit11/algorithms | c8a3da6d3a9d387d54639c0a08d14ca6b9118bb3 | ca4dacda39dc12d53ed8d4448b3356a3f2936603 | refs/heads/master | 2023-06-22T06:36:22.106780 | 2023-06-11T07:10:40 | 2023-06-11T07:10:40 | 245,633,883 | 0 | 0 | null | 2023-06-11T07:10:41 | 2020-03-07T13:02:24 | Python | UTF-8 | Python | false | false | 1,711 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def sort_colors(nums):
"""
给定一个n个元素的数组,包含红、白、蓝三种颜色的物体,对他们进行就地排序后,使得相同颜色的物体相邻,
并且按照红、白、蓝的颜色顺序进行排序。这里,我们使用整数0、1、2分别表示红、白、蓝三种颜色。
:param nums: List[int]
:return: List[int]
"""
if len(nums) <= 1:
return nums
for i in range(0, len(nums)-1... | [
"lichangqing03@meituan.com"
] | lichangqing03@meituan.com |
713f86d9b0ad78bcdb7eca0e220a9ba140bddd83 | d3ce58c4576431df14de0990f45cfd574f0aa45f | /.history/riskCalculator/models_20201019222046.py | 166f07890ba94b0c8a00acaac759f2743c802053 | [] | no_license | rahulsolankib/portfolio | fe93f0e6b0b28990f0b9fad84dbf7c3aa07243c4 | 281ed429e2590376aee4649b2ea7b3e8facaf6f1 | refs/heads/master | 2023-01-02T06:55:21.319094 | 2020-10-26T08:55:22 | 2020-10-26T08:55:22 | 305,586,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | from django.db import models
from user.forms import User
# Create your models here.
class Que(models.Model):
ques1 = models.CharField(max_length=120)
ques2 = models.CharField(max_length=120)
ques3 = models.CharField(max_length=120)
ques4 = models.CharField(max_length=120)
ques5 = models.CharField(m... | [
"rahulsolankib@gmail.com"
] | rahulsolankib@gmail.com |
716361c46fa5e6ce2a46deb3d7a29d98c28ad02c | 11763b1150a3a05db89c13dcd6152f8fcca87eaa | /designs/nonlinear/streamcipher/prngtest3.py | f3110c6f3fdccf2aa42d0217b82156e75c7f0979 | [] | no_license | acad2/crypto | 343c32fa25aaec73e169290579fc3d02c4b226f6 | cb283df4101fcd618a0478a0018273f00d0734ae | refs/heads/master | 2021-08-19T06:36:26.068033 | 2017-11-25T00:41:03 | 2017-11-25T00:41:03 | 113,048,326 | 2 | 0 | null | 2017-12-04T13:49:02 | 2017-12-04T13:49:01 | null | UTF-8 | Python | false | false | 2,737 | py | from crypto.utilities import rotate_left, choice, bytes_to_words, words_to_bytes
def add_key(a, b, c, d, k0, k1, k2, k3):
a = a ^ k0
b = b ^ k1
c = c ^ k2
d = d ^ k3
return a, b, c, d
def choice_swap(a, b, c):
t = b
b = choice(a, b, c)
c = choice(a, c, t)
return b, c
d... | [
"python_pride@protonmail.com"
] | python_pride@protonmail.com |
73c08ba402a3431c3e452969083b8a8a0eff5387 | 877086f72d55e4283f87d23991b4a4b7ce273b8d | /schevo/test/test_error.py | 58a510fc40e1f51544b294ba6732c8216897bedd | [
"MIT"
] | permissive | Schevo/schevo | 8a8fb981b947446942723877920120628fc9c457 | d57a41f8b7b514ed48dc0164dcd3412a89e9873b | refs/heads/master | 2016-09-05T09:29:46.914848 | 2009-10-04T23:01:31 | 2009-10-04T23:01:31 | 199,052 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,117 | py | """schevo.error unit tests."""
# Copyright (c) 2001-2009 ElevenCraft Inc.
# See LICENSE for details.
from schevo.test import CreatesSchema, raises
from schevo.constant import UNASSIGNED
import schevo.error
# ======================================================================
# Restricted
# - base class, not dire... | [
"gldnspud@gmail.com"
] | gldnspud@gmail.com |
e701196be282a4d4f6f80eb8328733086d082aa8 | 2f329161d930007286a41c5346ddd25279b84b07 | /book/TextMiningTutorialByPython/list3-8.py | 6fde1a4734fc3f4c0700b867416d934a2849b6d2 | [] | no_license | Kose-i/learning_NLP | 99593808a8674d9dda0931ee11510e5e00590138 | c7f78e66bf043efb01074ee67876f4fadc6447c6 | refs/heads/master | 2020-07-10T23:27:40.208003 | 2019-10-11T00:51:55 | 2019-10-11T00:51:55 | 204,396,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
from sklearn.decomposition import PCA
from sklearn.datasets import load_iris
from matplotlib import pyplot as plt
colors = ['red', 'blue', 'green']
markers =['x' , 'point', 'plus']
# データを準備する
iris = load_iris() # scikit-learnのデータライブラリからirisを読み込む
species =... | [
"tamura.kosei905@mail.kyutech.jp"
] | tamura.kosei905@mail.kyutech.jp |
b8a5444cbdac4cc938fa52771055da219965b13c | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/sys/sys_version_values.py | 5e3c06cdcb55bd38cef201b0e327bc987890b87d | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 394 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2009 Doug Hellmann All rights reserved.
#
"""
"""
#end_pymotw_header
import sys
print 'Version info:'
print
print 'sys.version =', repr(sys.version)
print 'sys.version_info =', sys.version_info
print 'sys.hexversion =', hex(sys.hexversion)
print 'sys.su... | [
"350840291@qq.com"
] | 350840291@qq.com |
5ff8edbb353521cf7c197f5fb9746ed34defb473 | de2ee131651d69966075838c087e4b92c845343d | /Cap_6/ex6.07.py | 93f388167ce455fd8b74f19190f2b3680066efd4 | [
"MIT"
] | permissive | gguilherme42/Livro-de-Python | 2a845eddc1626c96c914a09c5bf8831c740860fc | 465a509d50476fd1a87239c71ed741639d58418b | refs/heads/master | 2021-05-22T19:54:09.596809 | 2020-10-12T17:01:57 | 2020-10-12T17:01:57 | 253,067,740 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | n = input('Digite uma expressão somente com parênteses: ').strip()
lista = []
resp = False
for i in n:
if i == '(':
lista.append(i)
elif i == ')':
if lista:
lista.pop(-1)
else:
lista.append(i)
print('OK!' if not lista else 'Errado!')
| [
"anoobs@tutamail.com"
] | anoobs@tutamail.com |
8b0c510095ba943dffd56e8fb95fdc7b7fdc9ef0 | a27036341e4478282a259f4e1ea3376f8b5e5e22 | /apps/categories/models.py | 41774f5c479feb43666ccafdf12475dc3e256806 | [] | no_license | pythonmentor/purbeurre-p8 | 5b3921dcf4ba7ba35089deee0eceec771edf8293 | ca6675a8f167dfa7ef32f976f11b5b9c51dfdd4c | refs/heads/master | 2023-01-19T22:01:49.410603 | 2020-12-01T08:44:04 | 2020-12-01T08:44:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from django.db import models
class Category(models.Model):
name = models.CharField('category name', max_length=255, unique=True)
class Meta:
verbose_name_plural = "categories"
ordering = ["name"]
def __str__(self):
return self.name | [
"tchappui@gmail.com"
] | tchappui@gmail.com |
e1263c4552d7243fe280aafd579bb5f9aa353978 | fca80c6a22bcce507a81e05cd31e0d5ebbc43a57 | /Chapter_02/Samples/vampire.py | 8161b05c82862d82c961fcd6b6183aeab8cd46f3 | [
"MIT"
] | permissive | GSantos23/Automate_Python | 6b1ce29f1ee5a22b53ef6c1d45fef56d8d8e0b06 | 4bf3eadb5a330d5f22329bdcd08d37ab01a9454f | refs/heads/master | 2021-06-29T04:12:32.910835 | 2020-12-26T22:28:31 | 2020-12-26T22:28:31 | 197,512,449 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | name = 'Carol'
age = 3000
if name == 'Alice':
print('Hi, Alice')
elif age < 12:
print('You are not Alice, kiddo.')
elif age > 2000:
print('Unlike you, Alice is not an undead, inmortal vampire.')
elif age > 100:
print('You are not Alice, grannie.') | [
"santosgerson64@gmail.com"
] | santosgerson64@gmail.com |
93079dcab4f914acc776d5f53232bbb61c78d532 | 41b031bd7449c75d215478dbb109c823c1c2bccc | /spectrocrunch/materials/lenses.py | f83a274bfeb1bef3ea5b175eead8cef61e45192d | [
"MIT"
] | permissive | woutdenolf/spectrocrunch | dfa667528aa2bb9845d371fef29c4659bcd7392e | 944637c76671adc2fdb909f7a62196bde27c9d22 | refs/heads/master | 2022-12-10T14:31:28.101355 | 2022-11-30T10:00:49 | 2022-11-30T10:00:49 | 79,220,131 | 4 | 0 | MIT | 2022-11-30T10:00:49 | 2017-01-17T11:16:57 | Python | UTF-8 | Python | false | false | 5,754 | py | # -*- coding: utf-8 -*-
from ..simulation.classfactory import with_metaclass
from ..math import noisepropagation
from ..utils import instance
from . import visirlib
import numpy as np
class Lens(with_metaclass()):
"""
Class representing a lens
"""
def __init__(
self,
magnification=N... | [
"woutdenolf@users.sf.net"
] | woutdenolf@users.sf.net |
07d685a0559e29c1200435f31a464150ff8928c5 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/airbnb_knowledge-repo/knowledge-repo-master/knowledge_repo/repositories/dbrepository.py | 005339e34f0e1fd0c71b098d2da5ec544297dd77 | [] | 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 | 10,579 | py | from builtins import object
import logging
import posixpath
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, scoped_session, mapper
from sqlalchemy.sql import func
from sqlalchemy import Table, Column, Integer, String, DateTime, LargeBinary, MetaData
from ..repository import KnowledgeRep... | [
"659338505@qq.com"
] | 659338505@qq.com |
f5bbdf1ffeda221d1527b6c7ba1667e7639a9df5 | 3fe998fcca7184fea75cc65ad8d84b4702b5be39 | /users/views.py | 4cacb2cd0ad01588628691cb05cfa0b9fe806254 | [] | no_license | IMsumitkumar/imgsum | efb3df548f752f5dceff51d16ea12fd3ac1dcf57 | fc50c6f32c63ffb2c5bc408874c7214f7d64fee0 | refs/heads/main | 2023-04-12T10:34:59.217220 | 2021-05-03T08:13:27 | 2021-05-03T08:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | from django.shortcuts import render
from mediashare.models import Photo
from django.core.paginator import Paginator
from django.contrib.auth.models import User
from allauth.socialaccount.models import SocialAccount
# Create your views here.
def user_profile(request, pk):
user = User.objects.get(id=int(pk))
... | [
"sk20506942@gmail.com"
] | sk20506942@gmail.com |
ab7b11cf55f2d9509e96e5a1ac4e3fd3d8ccdfab | 9a9e739dcc559476ba796510182374ad460f2f8b | /PA2/PA2 2013/PA2-5/Asitha/PA2-5-2013.PY | bd0623e36f9859dd3b1639b34476904ded073ec6 | [] | no_license | Divisekara/Python-Codes-First-sem | 542e8c0d4a62b0f66c598ff68a5c1c37c20e484d | e4ca28f07ecf96181af3c528d74377ab02d83353 | refs/heads/master | 2022-11-28T01:12:51.283260 | 2020-08-01T08:55:53 | 2020-08-01T08:55:53 | 284,220,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | def getText():
FileOpen=open("FileIn.txt","r")
L=FileOpen.read().split("\n")
return L
def rename(L):
renames=[]
for i in L:
answer=[]
names=i.split()
for j in names[:-1]:
answer.append(j[0])
answer.append(names[-1])
renames.append(".".join(answer)... | [
"9asitha7@gmail.com"
] | 9asitha7@gmail.com |
fba15254b5101d7a59bd09ddccea928a27c9757e | 71fc15e1751f3a35a18a16d3d93687ef1a061839 | /多媒体技术/python-多媒体技术-边缘检测.py | ad81ca41aa281f80c6a4044c27d357861ab02fe1 | [] | no_license | ZX1209/python-opencv | 17491ec121a33df1c1c46a9037d5e23f50819cac | 224787a9f70322e64e19aabfcb94cc0550b4153a | refs/heads/master | 2020-05-17T05:40:33.697360 | 2019-04-26T03:37:44 | 2019-04-26T03:37:44 | 183,541,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py |
# coding: utf-8
# In[1]:
import numpy as np
import cv2
import os
# In[2]:
get_ipython().run_line_magic('matplotlib', '')
# In[3]:
os.getcwd(),os.chdir(r'C:\Users\14049\WordAndStudy\Projects\学校\大三上\数字图像处理\数字图像处理实验材料\测试图像'),os.getcwd()
# In[6]:
def cv2ShowImages(imgs):
for i,img in enumerate(imgs):
... | [
"1404919041@qq.com"
] | 1404919041@qq.com |
8c9f49ace9ac7787909b05a47c79051ed62e58ad | 3a1fea0fdd27baa6b63941f71b29eb04061678c6 | /src/ch09/classfile/CpInvokeDynamic.py | 2d7b71dda863534c75581d72fe596e9b7ea8ad87 | [] | no_license | sumerzhang/JVMByPython | 56a7a896e43b7a5020559c0740ebe61d608a9f2a | 1554cf62f47a2c6eb10fe09c7216518416bb65bc | refs/heads/master | 2022-12-02T17:21:11.020486 | 2020-08-18T06:57:10 | 2020-08-18T06:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | from ch09.classfile.ConstantInfo import ConstantInfo
class ConstantMethodHandleInfo(ConstantInfo):
def __init__(self):
self.referenceKind = 0
self.referenceIndex = 0
def read_info(self, class_reader):
self.referenceKind = class_reader.read_unit8()
self.referenceIndex = int.fro... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
280d587eb21bcc09e23a489316bac2be0b57ac0b | 79e827b9159344b92716990083fa552f3ce466fa | /Python/Strings/string-validators.py | 253dba37d4be11178b291d9c5455596b7edae8fa | [
"MIT"
] | permissive | PratikSaha198/Hackerrank | 55faf6a13cc21cf4cb7a5eebc6b57c1fda9ca9e2 | 5ba7fb2a881e925a7a02d5c588923eb188dfc998 | refs/heads/master | 2020-08-04T21:45:24.658703 | 2019-05-11T08:40:10 | 2019-05-11T08:40:10 | 212,288,694 | 2 | 0 | MIT | 2019-10-02T08:21:22 | 2019-10-02T08:21:21 | null | UTF-8 | Python | false | false | 545 | py | if __name__ == '__main__':
s = input()
an = 0
al = 0
di = 0
lo = 0
up = 0
for x in s:
if(x.isalnum()): an = an + 1
if(x.isalpha()): al = al + 1
if(x.isdigit()): di = di + 1
if(x.islower()): lo = lo + 1
if(x.isupper()): up = up + 1
if(an>0): print(T... | [
"rajatsri94@gmail.com"
] | rajatsri94@gmail.com |
a855f4ce1d43f1ca2dab2239d22ea67c64e7cb2b | 6ff2a44be083550c5c96aa4637c338cad672b8fd | /study/2164.py | 763422aa898522a0e8be1debcf3906291fbf6fb6 | [] | no_license | hyunhee418/TIL | 447ed9735b3cf8f8c68a985248aefb80ee415f5c | cac85a9207ae03cb7f4b060b5d0b79e55ca78c19 | refs/heads/master | 2023-01-10T15:20:49.841630 | 2021-01-05T10:41:05 | 2021-01-05T10:41:05 | 195,916,255 | 0 | 0 | null | 2023-01-05T05:00:18 | 2019-07-09T02:17:47 | Jupyter Notebook | UTF-8 | Python | false | false | 202 | py | import sys
sys.stdin = open('2164.txt', 'r')
import collections
l = collections.deque([num for num in range(1, 1+int(input()))])
while len(l) > 1:
l.popleft()
l.append(l.popleft())
print(l[0]) | [
"hyunhee18@gmail.com"
] | hyunhee18@gmail.com |
d545b39d14a92be780317e1abf23a49d67be5af9 | f0b75bd94f133a13f469f429a696f26be3be9862 | /week_4/.history/class_exercise1_20200217101908.py | 4cd42c53dce88aaef066daa9bc6812ebad869118 | [] | no_license | dechavez4/Python_handin_assignments | 023350fabd212cdf2a4ee9cd301306dc5fd6bea0 | 82fd8c991e560c18ecb2152ea5a8fc35dfc3c608 | refs/heads/master | 2023-01-11T23:31:27.220757 | 2020-05-22T10:33:56 | 2020-05-22T10:33:56 | 237,179,899 | 0 | 0 | null | 2022-12-30T20:14:04 | 2020-01-30T09:30:16 | Python | UTF-8 | Python | false | false | 611 | py | import numpy as np
a = np.arange(10,30).reshape(4,5)
#exercise 1 table
yellow = a[0,0]
green = a[:3, 2]
teal = a[:, (1,3)]
blue = a[::2, 4]
red = a[0, 1:4]
#print('yellow= ', yellow, 'green= ', green, 'blue= ', blue, 'teal=', teal, 'red=', red)
#exercise 2 cube:
c = np.arange(0, 27).reshape((3, 3, 3)) # = (z, y, ... | [
"chavezgamingv2@hotmail.com"
] | chavezgamingv2@hotmail.com |
879a2da3c2e64022ecd12cfb052768fb1eda012a | 463c053bcf3f4a7337b634890720ea9467f14c87 | /python/ray/tune/tuner.py | f28a6a77dc6b3e9c1afed78457fcbdcfe06bf1dc | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 7,825 | py | from typing import Any, Callable, Dict, Optional, Type, Union
import ray
from ray.ml.config import RunConfig
from ray.ml.trainer import Trainer
from ray.tune import TuneError
from ray.tune.result_grid import ResultGrid
from ray.tune.trainable import Trainable
from ray.tune.impl.tuner_internal import TunerInternal
fro... | [
"noreply@github.com"
] | pdames.noreply@github.com |
44492cb715ddaeb70157694470802426011ee311 | b4467558003fcdda9f20d526803ea3930a08dbb8 | /cadastro/forms.py | 913c695948c1274a9672674346ced99d74b70b06 | [] | no_license | rg3915/crm | 3428f3e6a78127e7ac52479bd06e8a1ae7117f5b | 84525a38e3465b5ea1cf5bde9b2c3585056402d1 | refs/heads/master | 2021-05-16T02:10:14.525242 | 2020-04-22T20:49:16 | 2020-04-22T20:49:16 | 19,761,857 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | # -*- coding: utf-8 -*-
from django import forms
from models import Inscricao
class InscricaoForm(forms.ModelForm):
class Meta:
model = Inscricao | [
"rg3915@yahoo.com.br"
] | rg3915@yahoo.com.br |
0228858d89ce58edb20e3d18f0af3a6def3c52f6 | 97e11c65903f583dfc4f51da13cae8236cc7180e | /bungie_d1_sdk_python/Model/Destiny/Perks/destiny_perk_reference.py | 41a67c99aa2a007c7c2e36509c451dbbe94565a0 | [] | no_license | Yogarine/bungie-d1-sdk-python | 7272566f017ecb29a22d8f3560cb8e61ce765f72 | ca1f3562d5c343d2151abc88e98bdde678893780 | refs/heads/master | 2020-07-03T15:21:43.983126 | 2019-08-12T14:56:43 | 2019-08-12T14:56:43 | 201,950,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,690 | py | # coding: utf-8
"""
Unofficial Bungie.net API for Destiny 1
These are legacy endpoints for Destiny 1 that are no longer supported officially by Bungie. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: lowlines89@gmail.com
Generated by: https://openapi-generator.tech
"""
import pprint
import r... | [
"alwin@garsi.de"
] | alwin@garsi.de |
ece04e616d8775f600ef7d1a3d5014cb39756285 | e0b2e49078b5a0626e246b293593e91fd9f106f3 | /realboost.py | 8ab6289deef7b083747378ac339e7c26b852df77 | [] | no_license | zbxzc35/boost | 8c425685d47c51ec75111197138a506cb3d4a8c4 | 52ee70c2361b15d0b6ad945412591f9aae6cfdff | refs/heads/master | 2021-01-18T08:29:55.447282 | 2015-08-21T04:50:20 | 2015-08-21T04:50:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,711 | py | import random
import os
import sys
import math
import copy
inpath = "D://python2.7.6//MachineLearning//real boost//me-1"
inpath2 = "D://python2.7.6//MachineLearning//real boost//me-1"
outfile1 = "D://python2.7.6//MachineLearning//real boost//1.txt"
outfile2 = "D://python2.7.6//MachineLearning//real boost//2.txt"
out... | [
"2877992943@qq.com"
] | 2877992943@qq.com |
965d21ee991030f83ecc10ab3aeba0d04bf11086 | aaa762ce46fa0347cdff67464f56678ea932066d | /AdminServer/appscale/admin/iam.py | 7d974b5663217ce729ea590d56d653c980fd4add | [
"Apache-2.0"
] | permissive | obino/appscale | 3c8a9d8b45a6c889f7f44ef307a627c9a79794f8 | be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f | refs/heads/master | 2022-10-01T05:23:00.836840 | 2019-10-15T18:19:38 | 2019-10-15T18:19:38 | 16,622,826 | 1 | 0 | Apache-2.0 | 2022-09-23T22:56:17 | 2014-02-07T18:04:12 | Python | UTF-8 | Python | false | false | 4,059 | py | """ Implements some IAM API operations. """
import json
from kazoo.exceptions import NodeExistsError, NoNodeError
from .base_handler import BaseHandler
from .constants import CustomHTTPError
from appscale.common.constants import HTTPCodes
class ServiceAccount(object):
def __init__(self, project_id, email, id_=Non... | [
"chris.donati@appscale.com"
] | chris.donati@appscale.com |
8efbc39b52f78ca679ede0ae1c433ad37677e020 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2845/60765/316766.py | 2f47769b232425eb17c9abdf9b7a3b0edd84621b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
n=input()
# n,t=list(map(int,input().split()))
#serial=input().split()
a=list(map(int,input().split()))
b=list(map(int,input().split()))
n=len(b)
c=[[a[i],b[i]] for i in range(n)]
c.sort(key=lambda x:x[1])
# print(c)
result=[c[i][0]-c[i+1][0] for i in range(n-1)]
for i in r... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
437954552438b0e0559a537a0f0cb51bd03d0f9e | 504fe3cf0b4b2abaff9febe1686f5e8db24ae31c | /problem_0055/python/test.py | efe8feee3c40351087a5fbd742de65f3859ce8de | [] | no_license | mleue/project_euler | d2634f7287389df48605d583fba8ed705009a3c2 | 9687b709385a23d36bd8a24af16aaf7f375f4818 | refs/heads/master | 2021-08-11T07:09:18.310338 | 2017-11-13T09:31:17 | 2017-11-13T09:31:17 | 53,052,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import unittest
import e0055
class Test0055(unittest.TestCase):
def test_is_palindrome(self):
test_cases = ((True, '7337'), (True, '121'), (False, '137'))
for test_case in test_cases:
self.assertEqual(e0055.is_palindrome(test_case[1]), test_case[0])
def test_is_not_lychrel_number(self):
test_cas... | [
"domus@posteo.de"
] | domus@posteo.de |
15ead8a7e02d7bdb5945b07db32b8e18b956e17d | 60284a471e48e49e9b184305b08da38cbaf85c38 | /src/tests/ftest/erasurecode/truncate.py | 84e9ce9990e59fc6950df8601186f61f55134ba5 | [
"BSD-2-Clause-Patent",
"BSD-2-Clause"
] | permissive | minmingzhu/daos | 734aa37c3cce1c4c9e777b151f44178eb2c4da1f | 9f095c63562db03e66028f78df0c37f1c05e2db5 | refs/heads/master | 2022-05-10T17:23:32.791914 | 2022-02-28T18:44:50 | 2022-02-28T18:44:50 | 228,773,662 | 1 | 0 | Apache-2.0 | 2019-12-18T06:30:39 | 2019-12-18T06:30:38 | null | UTF-8 | Python | false | false | 3,042 | py | #!/usr/bin/python3
'''
(C) Copyright 2019-2021 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
'''
import os
from fio_test_base import FioBase
from general_utils import run_pcmd, get_remote_file_size
class Ecodtruncate(FioBase):
# pylint: disable=too-many-ancestors
# pylint: disable=prote... | [
"noreply@github.com"
] | minmingzhu.noreply@github.com |
ba3b4ae940dafb19940ec0af5a6ff311f8a99345 | 67acc7b067099bc5803b90dc890d22abc4b12c17 | /tests/test_conn_listener.py | 41e4bae446292d337e1a16b6564e40353ad69a57 | [] | no_license | ThunderDogs5613/pynetworktables | 104b234997238b392e7e4d7db9626c5262df9f71 | 8e9067708af070617d81fa5b8660234abc1b22e8 | refs/heads/master | 2021-08-24T11:14:43.453331 | 2017-12-04T05:38:21 | 2017-12-04T05:38:21 | 114,410,519 | 1 | 0 | null | 2017-12-15T20:56:09 | 2017-12-15T20:56:08 | null | UTF-8 | Python | false | false | 2,687 | py | '''----------------------------------------------------------------------------'''
''' Copyright (c) FIRST 2017. All Rights Reserved. '''
''' Open Source Software - may be modified and shared by FRC teams. The code '''
''' must be accompanied by the FIRST BSD license file in the root direc... | [
"dustin@virtualroadside.com"
] | dustin@virtualroadside.com |
e0d4a798889dc108d4137a0f08dbad60392d080f | b88843eb0801b2cf90b4622b71050ad8183533d8 | /evennia/contrib/tests.py | 02f4a53e08b00b767b42c4c033b0765ad611b407 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | robbintt/evennia | b08fc96c3cbc86f583a73d34398106f74eb28ace | 384d08f9d877c7ad758292822e6f04292fdad047 | refs/heads/master | 2021-01-12T16:14:51.948728 | 2016-10-23T17:32:46 | 2016-10-23T17:32:54 | 71,959,217 | 1 | 0 | null | 2016-10-26T02:43:16 | 2016-10-26T02:43:16 | null | UTF-8 | Python | false | false | 7,930 | py | """
Testing suite for contrib folder
"""
from evennia.utils.test_resources import EvenniaTest
# testing of rplanguage module
from evennia.contrib import rplanguage
mtrans = {"testing":"1", "is": "2", "a": "3", "human": "4"}
atrans = ["An", "automated", "advantageous", "repeatable", "faster"]
text = "Automated tes... | [
"griatch@gmail.com"
] | griatch@gmail.com |
b9899212613b22df42c80b6b82991bce984a5c18 | 9dee94907e6456a4af9855d358693923c17b4e0d | /0760_Find_Anagram_Mappings.py | 927221c57e5048344563806f58c1df8f044b45b9 | [] | no_license | chien-wei/LeetCode | e215915a8103e56f182040dacc9fb0d6996c86ec | 0d6f414e7610fedb2ec4818ecf88d51aa69e1355 | refs/heads/master | 2021-05-13T14:48:22.891100 | 2019-08-20T05:52:59 | 2019-08-20T05:52:59 | 116,749,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | class Solution:
def anagramMappings(self, A, B):
"""
:type A: List[int]
:type B: List[int]
:rtype: List[int]
"""
P = []
for a in A:
i = 0
for b in B:
if(b == a):
P.append(i)
break
... | [
"chien-wei@outlook.com"
] | chien-wei@outlook.com |
96d6da6455078e89c37cebac560ab2ef4324b2ee | 45284836ae85685226b1f1e3b83e207e184aee0e | /04_WorkingWithDataSources/02_SQL_Fundamentals/05_QueryingSQLFromPython/08_FetchingASpecificNumberOfResults.py | 17002f295db3aac3e0d87d5cb4d23c57fcb1e0a7 | [] | no_license | gaurab123/DataQuest | 5060efc3d3449e6e098cb77d7fed913516aabdbd | a9da9a90fab639d239340edfc7d0b2010edf2b35 | refs/heads/master | 2021-09-14T15:10:13.047034 | 2018-05-02T19:11:23 | 2018-05-02T19:11:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # Write and run a query that returns the Major and Major_category columns from recent_grads.
# Then, fetch the first five results and store them as five_results.
import sqlite3
conn = sqlite3.connect("jobs.db")
cursor = conn.cursor()
query = 'SELECT Major, Major_category FROM recent_grads;'
cursor.execute(que... | [
"kenneth.kite@gmail.com"
] | kenneth.kite@gmail.com |
57dba8ed7c1840f1b4aa6295bd0c59b54729fc90 | 0d819527a65948c33ad2fd1901c1f02238de4a51 | /pyhaversion/consts.py | f6a109b43231d54302a68c635a50799889b62cdf | [
"MIT"
] | permissive | makefu/pyhaversion | 46792200c211ad3b439f975f34726ff02f110cf4 | adf4f237e47d7b3f62a52e6cf084824b20e9c1bb | refs/heads/master | 2020-06-13T21:56:41.161715 | 2019-07-02T06:28:40 | 2019-07-02T06:28:40 | 194,800,523 | 0 | 0 | MIT | 2019-07-02T06:28:41 | 2019-07-02T06:19:45 | Python | UTF-8 | Python | false | false | 1,848 | py | """Constants for pyhaversion."""
BOARDS = {
"default": "ova",
"intel-nuc": "intel-nuc",
"odroid-c2": "odroid-c2",
"odroid-xu": "odroid-c2",
"orangepi-prime": "opi-prime",
"raspberrypi": "rpi",
"raspberrypi2": "rpi2",
"raspberrypi3-64": "rpi3-64",
"raspberrypi3": "rpi3",
"tinker"... | [
"joasoe@gmail.com"
] | joasoe@gmail.com |
fb4cee2a448cdeadbb69caabb7d8c7619aceae3d | 02f66ce3dea9ecbd20834549e0542de00c242171 | /api/migrations/0003_alter_project_slug.py | 999e3c05a2b1a2181f1c515c68093ac373fb462a | [] | no_license | mohaiminulhasan/bugtracker-api | 7d39a53fdc4bbb565b59ae2a2e5de752d9a2b218 | e75ed71e1b876066aebb84db9af69977e626e382 | refs/heads/main | 2023-05-26T17:04:54.987950 | 2021-06-09T03:54:18 | 2021-06-09T03:54:18 | 363,051,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 3.2 on 2021-04-29 10:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20210429_1055'),
]
operations = [
migrations.AlterField(
model_name='project',
name='slug',
... | [
"hasan.mohaiminul@gmail.com"
] | hasan.mohaiminul@gmail.com |
e538d29a4cb8d623044bae6aee7e30e99c80a27e | da72d7ffe4d158b226e3b3d9aabe900d0d232394 | /lldb/test/API/functionalities/multiword-commands/TestMultiWordCommands.py | e8b14d1629e1b5014cca8d4c10f5ce2f1cf56911 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | ddcc/llvm-project | 19eb04c2de679abaa10321cc0b7eab1ff4465485 | 9376ccc31a29f2b3f3b33d6e907599e8dd3b1503 | refs/heads/next | 2023-03-20T13:20:42.024563 | 2022-08-05T20:02:46 | 2022-08-05T19:14:06 | 225,963,333 | 0 | 0 | Apache-2.0 | 2021-08-12T21:45:43 | 2019-12-04T21:49:26 | C++ | UTF-8 | Python | false | false | 1,115 | py | """
Test multiword commands ('platform' in this case).
"""
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
class MultiwordCommandsTestCase(TestBase):
@no_debug_info_test
def test_ambiguous_subcommand(self):
self.expect("platform s", error=True,
... | [
"teemperor@gmail.com"
] | teemperor@gmail.com |
b28651ae2cb38742170d1abccfa69184d1274555 | 26ecc372f626ed009a2563d798061e94fd9b59ad | /config/asgi.py | 77e91921e13e104cbadfc8e97c3afee2849341a2 | [] | no_license | shinkeonkim/straw_words_api | 4f530cd0fb0498a28e09c1bf22e68b689fdf1e41 | 14e048ade06c51ccd5189a73c2510a95c25f208d | refs/heads/main | 2023-08-19T20:56:33.175889 | 2021-10-27T11:13:30 | 2021-10-27T11:13:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | """
ASGI config for straw_words_api project.
It exposes the ASGI callable as a module-level variable named ``application``.
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
application = get_asgi_application()
| [
"singun11@kookmin.ac.kr"
] | singun11@kookmin.ac.kr |
9de0509cdd3769896c040b87d1d35c34524a953e | 6440a113597191d3b78aa6b5cae6cea9fb057e2e | /Daily-Grind/24.py | e8da0e905d25968302951a9c0178f2172584122d | [] | no_license | DarshanGowda0/LC-Grind | 40c162d8894df81ea7124f66daf20f86f327b6cb | f7b9a86797d52ab1057f0300352c0c5670a59bd5 | refs/heads/master | 2023-01-28T01:27:45.195164 | 2020-12-06T03:58:14 | 2020-12-06T03:58:14 | 277,024,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def reverseListIter(self, head: ListNode) -> ListNode:
h = head
prev = None
while head:
nxt = head.next
... | [
"darshan.gowda008@gmail.com"
] | darshan.gowda008@gmail.com |
6d3ac122b15d241953bb46cb8509fbd0fea55256 | e3ec5f1898ae491fa0afcdcc154fb306fd694f83 | /src/components/codeSwitcher/buildParametersTable.py | 7f7ff5e5374752f3677f361c3c7ef43061b03de1 | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | phoebezhung/raytk | 42397559a76a9ba39308ac03344b4446f64ea04d | b91483ce88b2956d7b23717b11e223d332ca8395 | refs/heads/master | 2023-08-27T05:20:38.062360 | 2021-10-21T04:33:18 | 2021-10-21T04:33:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | def onCook(dat):
mod.codeSwitcher.buildParametersTable(dat)
| [
"tekt@immerse.studio"
] | tekt@immerse.studio |
1aa65587ba874fc3d2334775d86f2a577f4e6f92 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /atcoder/agc/agc001/a.py | 95a38bb78b1f64f194851728cb57aaed971e3e58 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
N = int(raw_input())
L = map(int, raw_input().split())
L.sort()
ans = 0
for i in xrange(N - 1, -1, -1):
ans += min(L[2*i], L[2*i + 1])
print ans
| [
"roiti46@gmail.com"
] | roiti46@gmail.com |
557c9dfd3a0b1e11b6d152f174a5f1f37c183525 | efd09ec82168171a45eec5fc241f7b4045a7f3b0 | /spider_zmt/toutiao_author_spider1.py | 80ac845bb279fe36889e02a1f40667e897cca0dc | [] | no_license | liwei123o0/news_project | 6761ad390154b566df1b017b84c3c5e046f156ac | db402dff0306660f2887322c9627bd642078a2ae | refs/heads/master | 2020-04-08T18:59:36.068919 | 2019-05-23T03:13:42 | 2019-05-23T03:13:42 | 159,633,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,394 | py | # -*- coding: utf-8 -*-
# ! /usr/bin/env python
"""
@author:李哥工作圈
@QQ:877129310
@VIP交流群:141342076
@version:V1.0
@var:
@note:
"""
import hashlib
import time
import MySQLdb
import requests
from lxml import etree
from selenium import webdriver
from utils.connect_mysql import mysql_connect
from utils.item_fileds impor... | [
"877129310@qq.com"
] | 877129310@qq.com |
f4c09e82484da8c1488f01b8c509ed79d9d8b59d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_373/ch11_2020_03_04_17_10_40_396296.py | 8d3c62d622971490ac8a45e05663975e888065d4 | [] | 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 | 106 | py | import math
def distancia_euclidiana (x1,x2,y1,y2):
d= math.sqrt((x1-x2)**2+ (y1-y2)**2))
return d | [
"you@example.com"
] | you@example.com |
f6148bdcbfc0348732b0eaf5d6f5a92e730c024a | 9983450fb504387c767a4ea59cc149786388b245 | /mowgli_etl/storage/_kg_node_set.py | 348290bab280eae18ca6dbfcd522873b362920b9 | [
"MIT"
] | permissive | tetherless-world/mowgli-etl | 2e354f00df22f70323c3e05b3504c272903ded6d | 28c19eba41e03e053ae4addff56a313d926e18d7 | refs/heads/master | 2023-04-18T15:16:14.051190 | 2021-01-04T15:32:01 | 2021-01-04T15:32:01 | 235,866,968 | 6 | 1 | MIT | 2021-04-20T20:05:35 | 2020-01-23T19:11:35 | Python | UTF-8 | Python | false | false | 1,070 | py | from abc import ABC, abstractmethod
from typing import Optional, Generator
from mowgli_etl._closeable import _Closeable
from mowgli_etl.model.kg_node import KgNode
class _KgNodeSet(_Closeable):
def add(self, node: KgNode) -> None:
"""
Add a node to the set.
"""
def __contains__(self,... | [
"gordom6@rpi.edu"
] | gordom6@rpi.edu |
d96edee4baf6977515eb710306dbd3c046a5b78c | f95d2646f8428cceed98681f8ed2407d4f044941 | /AI/day01/ai06.py | f25c1303e3a04d5c521647a9d5f6bc7eacdf3d34 | [] | no_license | q2806060/python-note | 014e1458dcfa896f2749c7ebce68b2bbe31a3bf8 | fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983 | refs/heads/master | 2020-08-18T01:12:31.227654 | 2019-10-17T07:40:40 | 2019-10-17T07:40:40 | 215,731,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import numpy as np
import matplotlib.pyplot as mp
train_x = np.array([0.5, 0.6, 0.8, 1.1, 1.4])
train_y = np.array([5.0, 5.5, 6.0, 6.8, 7.0])
times = 1000 # 存储梯度下降的次数
rate = 0.01 # 记录每次梯度下降模型参数变化率
epoches = [] # 记录每次梯度下降的索引
w0, w1, losses = [1], [1], []
# 模拟梯度下降的过程
for i in range(1, times+1):... | [
"C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn"
] | C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn |
41b391d3273ae541c7d27bcc82b5af8e3ae5e2de | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_perfectionists.py | 1be0c3fb765cb497e28a6f8a236870c5491ad622 | [
"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 | 287 | py |
from xai.brain.wordbase.nouns._perfectionist import _PERFECTIONIST
#calss header
class _PERFECTIONISTS(_PERFECTIONIST, ):
def __init__(self,):
_PERFECTIONIST.__init__(self)
self.name = "PERFECTIONISTS"
self.specie = 'nouns'
self.basic = "perfectionist"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e4ddc2e2af7b022f5c9ff32d0ef5aae951008fac | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/k_8_s_filter_params.py | e82348281582175566f2337e1db6db296dfa163a | [
"Apache-2.0"
] | permissive | cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | Python | UTF-8 | Python | false | false | 3,557 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
import cohesity_management_sdk.models.entity
import cohesity_management_sdk.models.k_8_s_filter_params_label_vec
class K8SFilterParams(object):
"""Implementation of the 'K8SFilterParams' model.
Message defining the different criteria to filter objects,... | [
"naveena.maplelabs@cohesity.com"
] | naveena.maplelabs@cohesity.com |
ba664d40303764deb8d57b9c21d8517b5abc3f94 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4476/codes/1593_1803.py | eebdd6b653e944d3224c009c66334de529d9cbcb | [] | 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 | 186 | py | a = int(input("digite o numero: "))
b = a//1000
c = a//100 - b*10
d = a//10 - (a//100)*10
e = a - (a//10)*10
n1 = b*5
n2 = c*4
n3 = d*3
n4 = e*2
nt = n1 + n2 + n3 + n4
print(nt % 11)
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
f76dbc399de21000b269d3f693e6d1e52a2e7850 | 4b879b56bcf33add067c1e8b02d010f25d8b9865 | /Sliding_window/930_和相同的二元子数组.py | 78c040a9de4e8425a75bd05441e0524fd9980231 | [] | no_license | johnzan0743/Leetcode_in_python3 | 9503d53bb36d81db06d25e09837e76f68a0adf22 | 487cf6f27dc182204dad7314f74d4fc8fe61516e | refs/heads/master | 2022-11-13T07:04:58.047039 | 2020-07-13T10:34:43 | 2020-07-13T10:34:43 | 279,490,712 | 0 | 0 | null | 2020-07-14T05:25:17 | 2020-07-14T05:25:16 | null | UTF-8 | Python | false | false | 1,335 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 12 14:19:38 2020
@author: leiya
"""
'''
参考992,1248
给定一个0,1数组,你可以选择最多S个1和任意个0,你的选择数减去 给定一个0,1数组,你可以选择最多S - 1个1和任意个0,你的选择数
'''
class Solution:
def numSubarraysWithSum(self, A: List[int], S: int) -> int:
def atMostK(A, S):
#因为用到了atmostK(A,S-1),S要是输入的... | [
"792412589@qq.com"
] | 792412589@qq.com |
89fa6cc1cbd5764f2d8940401015bac93cfbcc2d | af50a07720026a0a23e5c6869ec5d5e84ff7a6f6 | /tests/__init__.py | 3ee910939394454b6d8accd665982d0a854dd16f | [
"Apache-2.0"
] | permissive | GabrielNicolasAvellaneda/boundary-api-cli | 3502d3b1636f0d3ad998e149b3aae30e67ee31ec | d3db013da42e8a337bc1903c75d5a27c689259f6 | refs/heads/master | 2020-04-30T19:09:15.629626 | 2015-06-30T03:20:27 | 2015-06-30T03:20:27 | 35,190,814 | 0 | 0 | null | 2015-05-07T00:55:10 | 2015-05-07T00:55:09 | Python | UTF-8 | Python | false | false | 22 | py | __author__ = 'davidg'
| [
"davidg@boundary.com"
] | davidg@boundary.com |
e06ef45b481617ae2918fce1724e930d709728d8 | 1b19103c7781c31b4042e5404eea46fa90014a70 | /cenit_magento_1_9_custom/__openerp__.py | eec9c685333cadd11d1e462a6cc621217582d834 | [] | no_license | andhit-r/odoo-integrations | c209797d57320f9e49271967297d3a199bc82ff5 | dee7edc4e9cdcc92e2a8a3e9c34fac94921d32c0 | refs/heads/8.0 | 2021-01-12T05:52:26.101701 | 2016-12-22T03:06:52 | 2016-12-22T03:06:52 | 77,223,257 | 0 | 1 | null | 2016-12-23T12:11:08 | 2016-12-23T12:11:08 | null | UTF-8 | Python | false | false | 1,450 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010, 2014 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"sanchocuba@gmail.com"
] | sanchocuba@gmail.com |
2b74807b4097602c8bf1aed534e09126ffb44f0d | cd5321bc03ee4618072df27e4d8700971ee37f62 | /authentication_django/authentication/tests/test_setup.py | 59ec4b41c2835579c50f1708eafdb5e8834100aa | [] | permissive | AndrewKalil/RecipEat | f6c77ae54a82f8325c50f6091c88bd229ef69719 | cf45432a51cecb78886c9215a28d0246d4653ebb | refs/heads/master | 2023-04-15T20:39:22.259786 | 2021-04-27T22:26:51 | 2021-04-27T22:26:51 | 298,032,805 | 2 | 1 | MIT | 2021-04-27T22:26:51 | 2020-09-23T16:40:58 | JavaScript | UTF-8 | Python | false | false | 581 | py | from rest_framework.test import APITestCase
from django.urls import reverse
from faker import Faker
from authentication.models import User
class TestSetUp(APITestCase):
def setUp(self):
self.register_url = reverse('register')
self.login_url = reverse('login')
self.fake = Faker()
... | [
"esteban.delahoz15@gmail.com"
] | esteban.delahoz15@gmail.com |
58440d514a304dd57ae894cca15f2e97fce4a3d9 | 8a943df7d7c372728e97147437cbdeb4300f9654 | /sensomatic/ui/persistence/models.py | be323e9077df8612fb2015a2c0bae26088b0fbcc | [
"MIT"
] | permissive | rrader/sens-o-matic | 03275d6088a93ec3c1f79408bbba6fdd3b61c8cc | 5856cad4fa07084465731c09461f8549fb30bc9d | refs/heads/master | 2016-09-02T01:38:56.887358 | 2015-12-03T07:37:03 | 2015-12-03T07:37:03 | 37,411,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | from peewee import *
db = SqliteDatabase('sensors.db')
class Sensor(Model):
name = CharField()
value = CharField()
timestamp = DateTimeField()
class Meta:
database = db # This model uses the "people.db" database.
def get_last_record(sensor_name):
records = list(Sensor.select(Sensor.va... | [
"roman.rader@gmail.com"
] | roman.rader@gmail.com |
f91ff9af95a10cdf975ee3733bf2fff971472b61 | 7d17161a77ad04ea1de1dabe84619b6c4fffe2ad | /qiskit/circuit/equivalence.py | 4021ef2ac9f7b113aa1f9ebbfc04705c42c6e146 | [
"Apache-2.0"
] | permissive | annos-IBM/qiskit-terra | 5e3b93a089a6e00c9279bf82735d78b497e92023 | 78ece7ad9baba64395eea98c45fb83a30b04c835 | refs/heads/main | 2023-05-28T20:42:19.805833 | 2021-06-09T03:47:48 | 2021-06-09T03:47:48 | 375,329,407 | 1 | 0 | Apache-2.0 | 2021-06-09T11:22:14 | 2021-06-09T11:22:14 | null | UTF-8 | Python | false | false | 9,886 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | annos-IBM.noreply@github.com |
a9a7d2086a7686c7df3481f280110d47115536b7 | 56bd9b3518f21080a0493f5330249bf5e85289fd | /hybrid_cloud_patches/python/nova/virt/vcloudapi/network_utils.py | 5878e72b4d8b55e0cca61b1d53fa9ac7d331a370 | [
"Apache-2.0"
] | permissive | kevin-zhangsen/badam | da680bf8669722b5bc922381537bc4762fa5c228 | 6823f7dcd7c1b54c3b38edeffe59c16317598a2c | refs/heads/master | 2020-04-01T13:43:03.300155 | 2015-10-29T01:07:46 | 2015-10-29T01:07:46 | 45,371,347 | 2 | 0 | null | 2015-11-02T04:02:50 | 2015-11-02T04:02:47 | null | UTF-8 | Python | false | false | 3,185 | py | # Copyright 2011 OpenStack Foundation
#
# 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 ... | [
"nash.xiejun@gmail.com"
] | nash.xiejun@gmail.com |
62e26a3c4c791151a889e75b89205b304b8ecdbf | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/scaleform/daapi/view/meta/queststabmeta.py | 2e2e8eb2bd60740a9f089ca08f461ebeb8584d3b | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,039 | py | # 2016.08.04 19:51:45 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/QuestsTabMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class QuestsTabMeta(BaseDAAPIComponent):
"""
DO NOT MODIFY!
Generated with yaml.
__auth... | [
"info@webium.sk"
] | info@webium.sk |
33bee441e87be45cb01ef7d58f46eadec0416081 | feb35f45e015befe9f2a35348be3809e0d30229d | /Algorithms/sentinel-1_filtering.py | 2b8d0b24179b235431f269922c6182789a0c789c | [
"MIT"
] | permissive | csaybar/qgis-earthengine-examples | 9d65bb31f74921c78edc576973a2021f3b4bb79a | ba8942683834d2847ff3246bdd1859b36e50fe44 | refs/heads/master | 2020-12-30T05:51:36.960385 | 2020-03-21T15:52:38 | 2020-03-21T15:52:38 | 238,882,033 | 4 | 0 | MIT | 2020-02-07T09:04:57 | 2020-02-07T09:04:56 | null | UTF-8 | Python | false | false | 1,127 | py | import ee
from ee_plugin import Map
# Load the Sentinel-1 ImageCollection.
sentinel1 = ee.ImageCollection('COPERNICUS/S1_GRD') \
.filterBounds(ee.Geometry.Point(-122.37383, 37.6193))
# Filter by metadata properties.
vh = sentinel1 \
.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV')) \
... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
355d10ecaa2ce978474cf73c19977843ba6bc61b | a9b7934dfb7ed81201def60244b9e6d90774fdc8 | /data/DL_models/Semantic-Segmentation-Suite/models/DeepLabV3_plus.py | 441cbf0863f7c8c41dbd6dcfc416b437e5e7cd60 | [] | no_license | sanja7s/DL_SAR | eb5371e788991a2afa1c55862959d37bd81a09ff | 1a97f45fc82214381f2a2b493522dff190f40348 | refs/heads/master | 2020-04-01T12:09:03.920202 | 2018-10-15T22:58:55 | 2018-10-15T22:58:55 | 153,193,328 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | # coding=utf-8
import tensorflow as tf
from tensorflow.contrib import slim
import numpy as np
import resnet_v2
import os, sys
def Upsampling(inputs,feature_map_shape):
return tf.image.resize_bilinear(inputs, size=tf.cast(feature_map_shape, tf.int32))
def ConvUpscaleBlock(inputs, n_filters, kernel_size=[3, 3], sc... | [
"sanjascepanovic@gmail.com"
] | sanjascepanovic@gmail.com |
b20fac5a32afd7d771da05935f5a42c61f770fd5 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/core/cache/function_result_cache.py | 6368c88c92e807badd0ab532f191a8ef15d6e1fe | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,828 | py | # -*- coding: utf-8 -*- #
# Copyright 2021 Google 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 at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
9522d7296cf4c654169b50fab4e7f770a334edf6 | 1bd5064ca434eebe0a7aed0d1237de3117869df4 | /Programmers/Level2/prime_num_of_k_jinsu.py | b5be3d445395049e1702dc7aee863a4cf2208cf8 | [] | no_license | yeomkyeorae/algorithm | 4d6e6ac1f00716a0f2929967fc670fe3a4dccaaa | 1de167ba7b07462b716bbeb14caa5a8eb6df6b72 | refs/heads/master | 2023-02-10T06:14:36.286215 | 2023-02-05T09:31:39 | 2023-02-05T09:31:39 | 197,149,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import string
tmp = string.digits + string.ascii_uppercase
def convert(num, base):
q, r = divmod(num, base)
if q == 0:
return tmp[r]
else:
return convert(q, base) + tmp[r]
def is_prime(n):
if n == 1:
return False
i = 2
while i * i <= n:
if n % i == 0:
... | [
"duarufp06@naver.com"
] | duarufp06@naver.com |
34880fc7c4c579df9c560c53a11a1428e017662a | f8ded08c57af4a3726a791b094b38970cbb921e9 | /examples2/g10_alt.py | 33b1fd68b1adb57d1cb7467ec4e74b81e0fc8848 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | mrakitin/mystic | ebeb837b8535ebb2a323519b900cb69e1bbb8a2d | 6c269510fd9068d157554eaef99bc1a546b54a59 | refs/heads/master | 2020-12-30T16:39:55.072424 | 2017-05-10T18:40:44 | 2017-05-10T18:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | #!/usr/bin/env python
#
# Problem definition:
# A-R Hedar and M Fukushima, "Derivative-Free Filter Simulated Annealing
# Method for Constrained Continuous Global Optimization", Journal of
# Global Optimization, 35(4), 521-549 (2006).
#
# Original Matlab code written by A. Hedar (Nov. 23, 2005)
# http://www-optima.amp.... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
5aa44f4d26102ef957664c6e0f6969e6f294c5cd | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/utils/data/_utils/collate.py | b818970f036a03240256480c749a11dcdcf03f3f | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 4,335 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | Oneflow-Inc.noreply@github.com |
6f2450731583aded8bdf7a09756c350244971079 | 57844b8acc354f878112aeee17bf5d83b82a765b | /rmotr_sakila/rmotr_sakila/wsgi.py | 872d6e6f5ff951b2f75dcfd69935b2b2ac90ab5f | [] | no_license | corez92/wdd-w3-rmotr-sakila | 09910f8bc37952a492029298eb9abde4f0ea3d01 | 58a065354a1f6ff9e8cf839026c95edced3b51ff | refs/heads/master | 2021-01-24T01:34:40.507269 | 2016-09-12T18:13:57 | 2016-09-12T18:13:57 | 67,872,827 | 0 | 0 | null | 2016-09-10T13:33:34 | 2016-09-10T13:33:34 | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for rmotr_sakila project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"martin.zugnoni@gmail.com"
] | martin.zugnoni@gmail.com |
88085eb7f62ea19a8843b40f659d2846b8c617af | 6874015cb6043d1803b61f8978627ddce64963b4 | /tests/middleware/extra_urls.py | 9e7f9f658496b5a766857bf47bd8a9ff5854582e | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | yephper/django | 25fbfb4147211d08ec87c41e08a695ac016454c6 | cdd1689fb354886362487107156978ae84e71453 | refs/heads/master | 2021-01-21T12:59:14.443153 | 2016-04-27T09:51:41 | 2016-04-27T09:51:41 | 56,134,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^customurlconf/noslash$', views.empty_view),
url(r'^customurlconf/slash/$', views.empty_view),
url(r'^customurlconf/needsquoting#/$', views.empty_view),
]
| [
"smileszzh@163.com"
] | smileszzh@163.com |
f6a2d265f138f343abf9aa992d7f539c0b0592e9 | 5d178ff8ae636123147b15fa530dba3aff0ff786 | /fsb/billing/api/urls.py | 798764e3981f9568bca9614ac5d72d74162bbeca | [] | no_license | grengojbo/fsb | 70d054388e75e2e3d62aa4dbf80679ccd7213c50 | 75a222dda323edb5a5407ffc89071a48ed0628aa | refs/heads/master | 2021-01-10T20:29:22.965848 | 2011-04-07T16:27:38 | 2011-04-07T16:27:38 | 561,853 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # -*- mode: python; coding: utf-8; -*-
from django.conf.urls.defaults import *
from piston.resource import Resource
from piston.authentication import HttpBasicAuthentication
#from piston.doc import documentation_view
from fsb.billing.api.handlers import AccountHandler
auth = HttpBasicAuthentication(realm='FreeSWITCH ... | [
"oleg.dolya@gmail.com"
] | oleg.dolya@gmail.com |
14c5175ad5e000e4bc4cb065707719a9c8727a5e | d310eea95db0eec75a983b7ce86cad1435b25673 | /resistics/regression/remote.py | 1eaab3dca01150f5fa26a4339624cd8126710f05 | [
"MIT"
] | permissive | Nishikinor/resistics | d70eca2dfa6d91ebfc588dd814b6a975859954d6 | a93040521fd6506929a59c363ee58b7ca073bac1 | refs/heads/master | 2023-01-10T23:14:02.014908 | 2020-10-26T20:11:42 | 2020-10-26T20:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,067 | py | import os
import numpy as np
from typing import List, Tuple, Dict, Union
from resistics.window.selector import WindowSelector
from resistics.spectra.data import PowerData
from resistics.regression.local import LocalRegressor
from resistics.regression.robust import (
olsModel,
chatterjeeMachler,
mmestimateM... | [
"nss350@gmail.com"
] | nss350@gmail.com |
45f59365eaf9135983c8fff8db03524abd965bf7 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/vns/vencap.py | 6e8913018065fb806d41ccc76a64e85a69bce091 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 5,340 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
54a7fdc01c5dfe5e42bee4eeb57aeb4dec50b3d0 | f56120bd179a3ddb1e823dc3e67ab2a1ca7e821b | /apps/respostas_padroes/urls.py | 06adfe91b8b0eddc73a62ecd7f3ad492af9cb042 | [] | no_license | Eduardo-Lucas/qr-avaliar | 5042b7edf55db38dd14fb99bab76861e02d498ac | 20b2f304c8c2d5c8fb6a708e40516a5856d8799d | refs/heads/master | 2023-04-28T06:37:33.812172 | 2019-09-29T22:01:25 | 2019-09-29T22:01:25 | 209,125,829 | 0 | 0 | null | 2023-04-21T20:38:24 | 2019-09-17T18:14:25 | Python | UTF-8 | Python | false | false | 541 | py | from django.urls import path
from apps.respostas_padroes.views import *
urlpatterns = [
path('list', RespostaPadraoListView.as_view(), name='resposta_padrao_list'),
path('create', manage_resposta_padrao, name='resposta_padrao_create'),
path('detail/<int:pk>', RespostaPadraoDetailView.as_view(), name='r... | [
"eduardolucas40@gmail.com"
] | eduardolucas40@gmail.com |
4acf8d94b804bd90df3fea1a4808d65606456002 | b551babfceb38398849b501f51dc6309a6556a68 | /santa.py | f39eada1b572180e8520f6b180125e8b15d7f72b | [
"MIT"
] | permissive | santokalayil/mallu | ba463c8bbe58334c37453ccc1a5ec9eec30e3aa6 | 10dce825d4a28ac4cb80fc957ee86f0852e42d00 | refs/heads/master | 2023-03-07T08:04:33.373656 | 2022-09-22T16:07:46 | 2022-09-22T16:07:46 | 234,274,138 | 0 | 0 | MIT | 2023-02-08T02:54:45 | 2020-01-16T08:43:16 | Python | UTF-8 | Python | false | false | 66 | py | def title(string, icon='-'):
print(string.center(100,icon))
| [
"49450970+santokalayil@users.noreply.github.com"
] | 49450970+santokalayil@users.noreply.github.com |
17a0e1d0200f4884efca890ff5f5cd9cc159650b | 4b2416e66d60c87e73eccbf0a4562e13bea89aad | /setup.py | 3973771c78c5596012b09f576c98bd11d6b8759d | [] | no_license | hkmshb/django-elco | 52fe4e099403e280f6c109e4ee552a7552e71e73 | 7193ab62e426d9e0c132af9f131cf0408ba34630 | refs/heads/master | 2021-01-10T10:04:48.479040 | 2016-02-22T21:04:00 | 2016-02-22T21:04:00 | 51,668,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | import os
from setuptools import setup
version = '0.0'
setup(
name='django-elco',
version=version,
zip_safe=False,
author='Abdul-Hakeem Shaibu',
author_email='hkmshb@gmail.com',
url='https://github.com/hkmshb/django-elco',
description='',
long_description=open(os.path.join(os.pa... | [
"hkmshb@gmail.com"
] | hkmshb@gmail.com |
072a9ce5f5654c4181fca5022f55bc508b1fb145 | b0d25092a6a03b5eeca52bbf1d0a8933eb86be6a | /bin/autoparser.py | 5a08fe2956992ddda4dbbe42e3747a2b6396c201 | [] | no_license | Bystroushaak/autoparser | e4446f8cb1e02c1eda263531d1d9ecc70bbf5eb7 | 1b3d36a7557b9b666812d5d93dbd5f1f0ad56ceb | refs/heads/master | 2021-01-10T19:46:55.131291 | 2015-05-09T22:56:21 | 2015-05-09T22:56:21 | 35,348,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,528 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: python 2.7
#
# Imports =====================================================================
import sys
import os.path
import argparse
import dhtmlparser
sys.path.insert(
0,
os.path.normpath(
os.path.join(os.path.dirname(__file__)... | [
"bystrousak@kitakitsune.org"
] | bystrousak@kitakitsune.org |
1c55a7aab182401f814a843e43d8ea4e338ac85f | e2bd39106992b592de686e5bd79002edc05cc8bc | /461-汉明距离/HammingDistance.py | 809d8449696076ca91cb02891366e5e901100afe | [] | no_license | Mumulhy/LeetCode | 9b8ad3af9f9a3b838bdd54727cf8f33401292d27 | 269419ba2a2840fcf100fa217c5275029ffa229e | refs/heads/master | 2022-10-28T23:06:54.081073 | 2022-10-23T07:48:49 | 2022-10-23T07:48:49 | 212,135,892 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # -*- coding: utf-8 -*-
# LeetCode 461-汉明距离
"""
Created on Fri Jun 1 20:41 2021
@author: _Mumu
Environment: py38
"""
class Solution:
def hammingDistance(self, x: int, y: int) -> int:
return sum([int(i) for i in list(bin(x ^ y))[2:]])
# 大佬写的更简便写法
# return bin(x ^ y).count('1')
if __nam... | [
"1043994188@qq.com"
] | 1043994188@qq.com |
33abf9d8d818d95567450e936178e17f81e34637 | 94589f1a3565022b28f6bdc2cd7b2dcf99c48e5c | /webcab/billservice/utility.py | 26de2ab002a540b1ab45f5e8ee96f9cdff830d84 | [] | no_license | brat002/ExpertBilling | e8825c10487c2f5b179fa5548977c262982c4fc7 | bb7e041b21736f16ee69759a9cce52c4ce544a95 | refs/heads/trunk | 2023-01-20T18:36:01.075704 | 2017-08-31T07:23:53 | 2017-08-31T07:23:53 | 39,003,439 | 8 | 9 | null | 2022-12-27T15:01:29 | 2015-07-13T09:36:11 | PLpgSQL | UTF-8 | Python | false | false | 6,474 | py | # -*- coding:utf-8 -*-
from dateutil.relativedelta import relativedelta
import datetime
from django.http import HttpResponse
from django.template import RequestContext
from django.shortcuts import render_to_response
from django import template
from django.conf import settings
from billservice.forms import LoginForm
fro... | [
"a_kuzmitsky@wargaming.net"
] | a_kuzmitsky@wargaming.net |
0a0cc68b2bdf6898a6990793b14b0f0bc1099e9e | b212ec9d705fb77cac102dceb12eb668099fd1ae | /oop/exams/august_2020/project/software/light_software.py | 50c30d8fe0f12fc251a35768aa770d5db26e9dcd | [] | no_license | xpucko/Software-University-SoftUni | 20ef91a0be91a8a09a56d9fdc15888f91409de2f | a1fc1781424f025954948299be7f75d317e32dc1 | refs/heads/master | 2023-02-04T11:58:33.068431 | 2020-12-24T00:39:11 | 2020-12-24T00:39:11 | 280,227,310 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from project.software.software import Software
class LightSoftware(Software):
def __init__(self, name: str, capacity_consumption: int, memory_consumption: int):
super().__init__(name, 'Light', capacity_consumption, memory_consumption)
self.capacity_consumption = int(self.capacity_consumption * 1.... | [
"hristiyan.plamenov.valchev@gmail.com"
] | hristiyan.plamenov.valchev@gmail.com |
e68d98790f6068a55ce70f0b3bdfbbf548042e83 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j20267-2518/sdB_GALEX_J20267-2518_lc.py | 978947b3cdbc54e3dde80674d9574b748b67a126 | [] | 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 | 359 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[306.691333,-25.304856], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_GALEX_J20267-2518 /sdB_GALEX_J20267-2518_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
b0288d98a3bcbf60a34e72576a890ed187cd2160 | caa72788fdae6b05c5ce4c132b45fc00d55bb607 | /46爬虫/urlretrieve下载/urlretrieve使用-2.py | 2af0015350cbc9d7913ff62f30ee320e2d011c92 | [] | no_license | DamonZCR/PythonStu | dcc2ba49195f5859fd63227fe0f8f78b36ed46df | 88fec97e3bccff47ba1c5f521f53a69af6ca2b2d | refs/heads/master | 2023-07-05T06:29:53.300920 | 2021-08-13T12:22:30 | 2021-08-13T12:22:30 | 302,256,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import os
import urllib.request
def cbk(a, b, c):
'''回调函数
@a:已经下载的数据块
@b:数据块的大小
@c:远程文件的大小
'''
per = 100.0 * a * b / c
if per > 100:
per = 100
print('%.2f%%' % per)
url = 'https://www.python.org/ftp/python/doc/3.5.10/python-3.5.10-docs-html.tar.bz2'
dir = os.path.abspath('D:\\... | [
"137593938@qq.com"
] | 137593938@qq.com |
6f26295f2733ff8eabf0cc8ea45dd8602fe14ff5 | f56fda98a93cedcec33a7d9fbb330e5cf78031e1 | /Leetcode/213. House Robber II.py | b51c570a3b45512cb296ef7a0eb043f064a5c78e | [] | no_license | GuanzhouSong/Leetcode_Python | 7a2bac42203fb6c0b671153d9e300eb0c73d39d1 | dbb9be177c5e572eb72a79508bb6e24f357d54b3 | refs/heads/master | 2021-09-25T04:10:09.217565 | 2018-10-17T22:31:41 | 2018-10-17T22:31:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | class Solution:
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums) < 2:
return sum(nums)
return max(self.helper(nums[1:]), self.helper(nums[:-1]))
def helper(self, nums):
cur, last = 0, 0
for i in nums:
temp = cur
cur = max(cur, last + i)
... | [
"guanzhou.song@gmail.com"
] | guanzhou.song@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.