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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e64a65ba3c080ac2806d52e2484181cceacf4903 | 4d097d0e8c571874761463f698f5d34e38e549a0 | /python/b_10844 쉬운 계단 수.py | dd0e875080d8a7169912a465a3cdc0a5894eb193 | [] | no_license | sondongmin0419/study | 533832151958fe8ae178d8aee183edf91ffa7e12 | 0c863e2c9111b35a15ccfaec3cc64828c584beb1 | refs/heads/master | 2023-03-24T11:54:04.139399 | 2021-03-15T13:40:21 | 2021-03-15T13:40:21 | 281,695,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | N = int(input())
if N == 1:
print(9)
else:
arr = [1] * 10
arr[0] = 0
for i in range(N-1):
n_arr = [0] * 10
n_arr[0] = arr[1]
n_arr[9] = arr[8]
for j in range(1,9):
n_arr[j] = (arr[j-1] + arr[j+1]) % 1000000000
arr = n_arr[:]
print(sum(arr) % 10000... | [
"dongmin.dev0419@gmail.com"
] | dongmin.dev0419@gmail.com |
9170d33a65b13844ffc7b621c9abc4cdb9cef315 | 2e89cc44dae7b8425a3b969094729fb174bc1d3a | /rlpyt/ul/experiments/ul_for_rl/configs/atari/atari_ats.py | bcc78aeef3e4e6470d0907abb440d4fa912bd38d | [
"MIT"
] | permissive | ZiwenZhuang/rlpyt | 161d9d0f6d99f7a6883ff33dafeb4d3f245821ce | 95a05a86f576190cf6217fd9aad7b5f615ee97d1 | refs/heads/master | 2021-08-10T12:17:11.325561 | 2021-07-01T05:04:39 | 2021-07-01T05:04:39 | 215,345,715 | 1 | 0 | MIT | 2019-10-15T16:27:50 | 2019-10-15T16:27:49 | null | UTF-8 | Python | false | false | 1,139 | py |
import copy
configs = dict()
config = dict(
algo=dict(
replay_filepath=None,
delta_T=3,
batch_T=1,
batch_B=512,
learning_rate=1e-3,
learning_rate_anneal="cosine", # cosine
learning_rate_warmup=1000, # number of updates
clip_grad_norm=10.,
... | [
"adam.stooke@gmail.com"
] | adam.stooke@gmail.com |
4d413b6ae2141b4a2a5e949c2cc37f2cba956fc0 | 6c5ce403a781d0d8cc4c6039a5ce37264cf77eb1 | /personalinfo/admin.py | 4e32458c1981c0be7c1777a3a81c58ecd2f7678c | [] | no_license | thangadurairajapandiyan/MyFirstDjangoapp | 4096b893bde925e5e02b09564411d4577a9da1c0 | 47df35a8a4729ca773e916ba2a7fba48ef9100ee | refs/heads/master | 2023-04-06T09:21:57.178273 | 2021-04-14T09:33:34 | 2021-04-14T09:33:34 | 354,858,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django.contrib import admin
from .models import Personal,Color
admin.site.register(Personal)
admin.site.register(Color)
# Register your models here.
| [
"gitea@fake.local"
] | gitea@fake.local |
6423b11888006b23a0459324a8b326b9855c64fd | 6c29f457a5e787309b344fec53c133845d8985e8 | /tests/nn/data_parallel/test_fsdp_summon_full_params.py | 94e073b78ecd27791f57c8aef53ad2ad1aa4302d | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | facebookresearch/fairscale | eb378e44cca951e242fb58f82522d9ba8e87d732 | 164cc0f3170b4a3951dd84dda29c3e1504ac4d6e | refs/heads/main | 2023-09-04T12:48:14.924836 | 2023-04-20T03:41:53 | 2023-04-20T03:41:53 | 277,899,703 | 2,553 | 257 | NOASSERTION | 2023-08-28T19:02:48 | 2020-07-07T19:02:01 | Python | UTF-8 | Python | false | false | 2,797 | py | # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
import functools
import gc
import unittest
from parameterized import parameterized
import pytest
import torch
from fair... | [
"noreply@github.com"
] | facebookresearch.noreply@github.com |
d948751e187a11c4be68935334b4c64e4e75f7e7 | a3283e723b9711779a4f6485dbbaf58f8b86cda1 | /d3rlpy/algos/torch/ddpg_impl.py | 9bd6f848b50b5cb90995de785a257deac179393f | [
"MIT"
] | permissive | ritou11/d3rlpy | 50ed48af10aa57c0e0b966c2ff52a5d62ba97a48 | ce18c8584723faf4d5c3d3221b6122f923162987 | refs/heads/master | 2023-02-12T04:07:02.996827 | 2021-01-08T14:42:04 | 2021-01-08T14:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,505 | py | import copy
from abc import ABCMeta, abstractmethod
from typing import Any, List, Optional, Sequence, Union
import numpy as np
import torch
from torch.optim import Optimizer
from ...models.torch import create_continuous_q_function
from ...models.torch import create_deterministic_policy
from ...models.torch import Ens... | [
"takuma.seno@gmail.com"
] | takuma.seno@gmail.com |
59088c34176d291ad8375b80a37b61f0ea8d19b4 | 9f0babb96bb327aaa859aeb7950fb6e5b2fca73d | /MONTEL/montel.py | 951dba1e920f3fbdc9af318ebbef01184c8c496d | [
"MIT"
] | permissive | srio/shadow3-scripts | d39e750774ad8f1c551e9965d4402b3fcb2b043d | 7dd9b4424f47e6d78db9fd6fcb5a3db788b062f7 | refs/heads/master | 2022-09-18T03:37:16.480163 | 2022-09-02T13:43:46 | 2022-09-02T13:43:46 | 43,300,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,440 | py | #
# Python script to run shadow3. Created automatically with ShadowTools.make_python_script_from_list().
#
import Shadow
import numpy
import os
from shutil import copyfile
def getshonecol_from_file(filename,column,nolost=False):
tmp = Shadow.Beam()
tmp.load(filename)
p_a = tmp.getshonecol(column,nolost=nol... | [
"srio@esrf.eu"
] | srio@esrf.eu |
1eddbc935ad52af00c7a5515b175535010b2d545 | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /test/retailer/CommodityGetTest.py | dfcaecad4dabcce4c0563931baad49b1895e7b0a | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | #!usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 2018-11-30
@author: suning
'''
import sys
import os
basepath = os.path.dirname(os.path.abspath(sys.argv[0]))+"/../../"
sys.path.append(basepath)
import suning.api as api
a=api.CommodityGetRequest()
a.setDomainInfo("openpre.cnsuning.com","80")
a.setAppInfo("a1... | [
"945090896@qq.com"
] | 945090896@qq.com |
9bceddc64c5b69cb89195e623c12393fd41ff510 | c06bb0534eb6fe7a9b74dbb25f379b9ca4aa0c4e | /tests/test_spider_params.py | ea97890b49677fa819af9757f912a8fa2dde069b | [
"MIT"
] | permissive | YuHuasong123/feapder | 5ff96a7121e989004f7ae0885d9215e6f2252bb3 | 7c72eca76cd7f29651ed5248c1b38f08f4a233b6 | refs/heads/master | 2023-03-14T20:33:33.602623 | 2021-03-16T09:12:11 | 2021-03-16T09:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | # -*- coding: utf-8 -*-
"""
Created on 2021-03-07 21:27:00
---------
@summary:
---------
@author: liubo
"""
import feapder
class TestSpiderParams(feapder.Spider):
# 自定义数据库,若项目中有setting.py文件,此自定义可删除
__custom_setting__ = dict(
REDISDB_IP_PORTS="localhost:6379", REDISDB_USER_PASS="", REDISDB_DB=0
)
... | [
"boris@bzkj.tech"
] | boris@bzkj.tech |
18cf7b552669ecfb1a4898d02ca4e4a57dbe840b | 7b50234cd6b8632fb6fcbeeda2c53750ac9ecae2 | /P5E9.py | e983db4de06c86a92f2890c7c17a2e99a0f141eb | [] | no_license | cifpfbmoll/practica-5-python-joseluissaiz | 703e315056bbf62b4a0390305d4e1a3fc0f18582 | dc07d94f96aa9f736ef836a69e2ab85841e868ab | refs/heads/main | 2023-01-24T08:09:04.121854 | 2020-11-20T18:27:59 | 2020-11-20T18:27:59 | 314,637,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | #Practica 5
# Ejercicio 9
# Escribe un programa que pida la anchura y la altura de un
# rectángulo y lo dibuje de la siguiente manera:
#
#--------Imports
import sys
#--------Inputs
anchura = input("Escribe la anchura del rectangulo : ")
altura = input("Escribe la altura del rectangulo : ")
#
#... | [
"noreply@github.com"
] | cifpfbmoll.noreply@github.com |
580c77f95f1a43b597be8f7f1a96ae14204cf72c | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs_with_max_replays_5/interreplay_53_l_3/replay_config.py | 2a9abbcb23a0f8b30092566294721cb52b4cc442 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pyre... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
4af70d36c9c0d6457840b62652e3a9138aa6242d | 53f412698cda286883938fdd0fc21aa719cca5fb | /src/avashell/osx/cocoa.py | a5e44ca037437298066a80c2e23d80a3de46c744 | [
"Apache-2.0"
] | permissive | deanfan1115/eavatar-me | 9f782633964eb68632a0e7439df15d8591e6abfb | 064f6a39d18b2ec9d5c1fa9e5ff75000a2bdc7fa | refs/heads/master | 2020-12-28T21:17:38.075805 | 2015-10-22T12:13:47 | 2015-10-22T12:13:47 | 44,744,785 | 2 | 0 | null | 2015-10-22T12:51:01 | 2015-10-22T12:51:01 | null | UTF-8 | Python | false | false | 198 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from AppKit import *
class Delegate(NSObject):
def init(self):
return self
| [
"sam@eavatar.com"
] | sam@eavatar.com |
8d844ed69ec7843e8a56033af8364984fb441281 | d5b48163d236ca770be8e687f92192e2971397e8 | /class1.py | 46f06fce736367d0065a8047ab737b2998fc1bc6 | [] | no_license | Kunal352000/python_program | 191f5d9c82980eb706e11457c2b5af54b0d2ae95 | 7a1c645f9eab87cc45a593955dcb61b35e2ce434 | refs/heads/main | 2023-07-12T19:06:19.121741 | 2021-08-21T11:58:41 | 2021-08-21T11:58:41 | 376,606,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | class hello:
print("hello world")
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
0f22d10063a300bd109f09a26354253bd1dadb47 | b62599ac4093da825708638a4a25f252a83e9f37 | /OpenPose 1.7 Python Programming on Jetson Series/07_hand_from_image.py | 1cd1943854ed2df33436d90f14619be4153e13e7 | [] | no_license | raspberry-pi-maker/NVIDIA-Jetson | 25ca2033d36aa8c6f837ed2a8c49281d646be29b | 30a5596aa0d9a6a960f2fef4d084eb42a94a2b66 | refs/heads/master | 2023-06-23T04:17:15.675476 | 2023-06-10T02:23:33 | 2023-06-10T02:23:33 | 211,216,972 | 40 | 30 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | # Customized for NVidia Jetson Series by spyjetson
# From Python
# It requires OpenCV installed for Python
import sys
import cv2
import os
from sys import platform
import argparse
import time
from openpose import pyopenpose as op
try:
# Flags
parser = argparse.ArgumentParser()
parser.add_argument("--image_... | [
"raspberry.pi.maker@gmail.com"
] | raspberry.pi.maker@gmail.com |
07591f99ec32ef19e162815f1c6e6dca0f22a21d | 4cccbe0be4acf5781b5e0449551523ab01c0665b | /tune.py | 8fe9f017f1b9a7720066e19caf07ea289641d19a | [] | no_license | levan92/window-det | f6ba98d746c3ee581d0c991aa4782456fd666d7b | 182e7711427b385c09a1c95af3229f0b594d53c3 | refs/heads/master | 2023-02-18T17:55:49.686529 | 2021-01-19T15:29:41 | 2021-01-19T15:29:41 | 323,654,101 | 1 | 0 | null | 2021-01-19T15:29:42 | 2020-12-22T14:49:02 | Python | UTF-8 | Python | false | false | 3,220 | py | import json
import argparse
from pathlib import Path
from pprint import pprint
import cv2
import numpy as np
from windet import WindowDetector
ap = argparse.ArgumentParser()
ap.add_argument('--config', help='Config file', required=True)
ap.add_argument('--pos', help='Positive input image')
ap.add_argument('--neg', h... | [
"lingevan0208@gmail.com"
] | lingevan0208@gmail.com |
7c3da3fd76c92d450202c2d1bf3c26bad8dda69b | 55a849e02a9a3819c72d67e0ef52cee2b5223db2 | /ftrace/parsers/sched_migrate_task.py | 206844aca0fffa29390cb5172f74f74aa2a6c083 | [
"Apache-2.0"
] | permissive | Gracker/SystraceAnalysis | 08055bceea6018f6e1dd425d1976c1893bd9f945 | b27217e33a260614a9fe9ff3f8c3e470efdbd9a3 | refs/heads/master | 2023-02-18T19:34:26.071277 | 2021-01-21T01:51:37 | 2021-01-21T01:57:40 | 248,390,276 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | #!/usr/bin/python
# Copyright 2015 Huawei Devices USA Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | [
"dreamtale.jg@gmail.com"
] | dreamtale.jg@gmail.com |
2b6ee0b179f04946ba0e188093dcadb2a39c7da8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_298/ch69_2020_10_03_20_32_05_554585.py | 6b6e893b371623cf79d267d0c64d1c63ed6bd9a3 | [] | 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 | 427 | py | def junta_listas(lista_composta):
lista_simples = []
t = 0
while t < len(lista_composta):
if type(lista_composta[t]) == list:
i = 0
while i < len(lista_composta[t]):
lista_simples.append(lista_composta[t][i])
i += 1
if type(lista_compos... | [
"you@example.com"
] | you@example.com |
28d6d394e3de90d21d19cd1090473286a80f0a47 | b70f00927b9ed862252ad7345ca39f9d44ae87a2 | /exec -l /bin/bash/google-cloud-sdk/lib/surface/services/disable.py | a83d23f950e4fdbf6a99fa64df3fed36899521a7 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sparramore/Art-Roulette | 7654dedad6e9423dfc31bd0f807570b07a17a8fc | c897c9ec66c27ccab16f1a12213d09fe982d4a95 | refs/heads/master | 2021-07-06T13:04:22.141681 | 2018-07-12T23:30:13 | 2018-07-12T23:30:13 | 139,061,941 | 0 | 2 | null | 2020-07-25T11:32:11 | 2018-06-28T19:49:24 | Python | UTF-8 | Python | false | false | 3,066 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"djinnie24@gmail.com"
] | djinnie24@gmail.com |
9cc891db76c8cc7dc9dc7f1e683a57a6f64648fd | d8c9e8c284ad2e7ccc4f7447d7266c0689114c4b | /datapackage_pipelines_knesset/common/get_mk_faction.py | 6afc280570e7d1177a2a586432c04e945f121e95 | [
"MIT"
] | permissive | hasadna/knesset-data-pipelines | c55b2fb6d711613b5dc23aab20c7f3f3dc20c9c5 | 0a37a9cbdb4cbbb21a4fb98b0abe2dba4a1966ca | refs/heads/master | 2023-09-04T04:19:24.267937 | 2023-08-14T18:01:24 | 2023-08-14T18:01:24 | 98,183,631 | 12 | 29 | MIT | 2023-09-12T17:53:53 | 2017-07-24T11:31:06 | Jupyter Notebook | UTF-8 | Python | false | false | 695 | py | import datetime
def get_mk_faction(mk_factions, event_datetime):
for faction_id, start_date, finish_date in [(f['faction_id'], f['start_date'], f['finish_date'])
for f in mk_factions]:
if not finish_date:
finish_date = datetime.date.today()
... | [
"ori@uumpa.com"
] | ori@uumpa.com |
53b5a5c1f769ac90bc9dd1013859dcb14a9ac2b7 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5652388522229760_1/Python/Qwrk/A.py | 7b07d5c0bd61bbaa8ee064d1c2cbc9d7456c4537 | [] | 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 | 385 | py |
def solve(n):
x = set(str(n))
y = 0
while len(x) != 10:
y += 1
x |= set(str(n * y))
return n * y
if __name__ == "__main__":
t = int(input())
for case in range(1, t + 1):
c = int(input())
if c != 0:
print("Case #%d: %s" % (case, solve(c)... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
933da487a9cef79dc9508670b0bb342cb779a7ca | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02640/s278926745.py | 4b3f269042bc570564feffecca2ee1fa3ed52fbf | [] | 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 | 535 | py | def solve(x, y):
# |x| = |p + q | = | 1 1 | |p|
# |y| |2p + 4q| | 2 4 | |q|
# <=>
# |p| = 1/2 | 4 -1| |x| = (4x - y)/2
# |q| |-2 1| |y| (-2x +y)/2
p2 = 4 * x - y
q2 = -2 * x + y
if p2 % 2 == 0 and q2 % 2 == 0 and p2 >= 0 and q2 >= 0:
return "Yes"
return "No"... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
19780b4689e80671ea2ff3ff04677bcdc5bbbf12 | cd2aaf0097f2e244aa4a22c9da7133dd0e2f2fb8 | /Saylani/python-code-master/8Oct2017/datascience_chap2/demo8.py | 3614eff85b24c044cdc3b9bcaf29979be251d8ff | [] | no_license | EnggQasim/SSUET-2017-Module-I | 349ea6e9b0554fa8c55899622bf0ee97fd19b685 | cd41ab8e768616ca56ddaa1d7662283f653674f9 | refs/heads/master | 2020-03-25T10:36:38.330710 | 2018-09-30T13:17:38 | 2018-09-30T13:17:38 | 143,698,684 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 45 | py |
a = lambda b:b*2 +4*b
print(a)
print(a(2))
| [
"m.qasim077@gmail.com"
] | m.qasim077@gmail.com |
17361fd8cfd0fd456346548042ee128c55c45c1f | 16516732031deb7f7e074be9fe757897557eee2d | /AtCoder/ARC067/C - Factors of Factorial.py | b19a6a96caf6873c925fda6d719ab7a6ced818a2 | [] | no_license | cale-i/atcoder | 90a04d3228864201cf63c8f8fae62100a19aefa5 | c21232d012191ede866ee4b9b14ba97eaab47ea9 | refs/heads/master | 2021-06-24T13:10:37.006328 | 2021-03-31T11:41:59 | 2021-03-31T11:41:59 | 196,288,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # 2019/08/12
from math import factorial
n=int(input())
mod=(10**9+7)
def trial_div(n):
div={}
for i in range(2,n+1):
res=i
for j in range(2,i+1):
while res%j==0:
res//=j
div[j]=div.get(j,0)+1
return div
res=trial_div(n)
ans=1
for... | [
"calei078029@gmail.com"
] | calei078029@gmail.com |
8edcf6b13d53419e0333fb6b7a38a4c06ad8a44c | 579748e9bc7dfdde281951fa15261a478d079b49 | /Comprehensions/ASCII Values.py | 173a2caec1a6a7d2d6b7d1b1ecaaeb4943fbe381 | [] | no_license | GBoshnakov/SoftUni-Advanced | 19247b90ab1c063718116b309ef77e862fd0d55f | 267b732344ac0a0f038e66f17ba3ebcf914978b0 | refs/heads/master | 2023-06-15T06:44:47.606402 | 2021-06-30T22:04:48 | 2021-06-30T22:04:48 | 381,841,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | print({char: ord(char) for char in input().split(", ")}) | [
"boshnakov.g@gmail.com"
] | boshnakov.g@gmail.com |
d0cdce68c6249f96525bd79d832ead3b349a2dc7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/227/39195/submittedfiles/triangulo.py | 9dc38aee0eb3a66dc14704eb019f5ccc4e44e2eb | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # -*- coding: utf-8 -*-
import math
a=int(input('digite uma valor'))
b=int(input('digite uma valor'))
c=int(input('digite uma valor'))
if a**2==b**2+c**2:
a>=b>=c>0
a<b+c
print('S')
print('RE')
if a==b==c:
a>=b>=c>0
a<b+c
print('eq')
if a**2>b**2+c**2:
a>=b>=c>0
a<b+c
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a6d266620905f3872d18399672268759f100b7fb | bc441bb06b8948288f110af63feda4e798f30225 | /ucpro_sdk/model/easy_flow/target_info_pb2.py | ee070125b4463d94919c1671dd868609cf0b26a5 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 11,649 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: target_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf... | [
"service@easyops.cn"
] | service@easyops.cn |
7ef2a69619d1ce5d50c2b62312da247383a43b51 | 49d9929ad50e3efde357bea250bb441c8c339c17 | /test/test_namedtuple_return_api.py | 3c713e5338f0b09de7a59046afa5e577aba76d82 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | hoolizou/pytorch | 59121ed88e6fdb9d8ced04b548dc18c9be35b17a | 59094c409ea552001d0f5356df9fdb0086ccee12 | refs/heads/master | 2020-07-05T05:07:58.041626 | 2019-08-15T07:23:27 | 2019-08-15T07:27:11 | 202,530,982 | 1 | 0 | NOASSERTION | 2019-08-15T11:42:31 | 2019-08-15T11:42:31 | null | UTF-8 | Python | false | false | 3,771 | py | import os
import re
import yaml
import unittest
import textwrap
import torch
from collections import namedtuple
path = os.path.dirname(os.path.realpath(__file__))
aten_native_yaml = os.path.join(path, '../aten/src/ATen/native/native_functions.yaml')
all_operators_with_namedtuple_return = {
'max', 'min', 'median',... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
20327d4a7c68428ec97e28b075ae252205a39106 | e3d33f5d82a541d7491e079c394dcebf1568f078 | /server/online/migrations/0005_auto_20180128_1217.py | 7dbf64ed21316cf2fb86b17e74a76f183efdc1d9 | [
"MIT"
] | permissive | MahjongRepository/mahjong-portal | 51bd1300c3e6b8a341fbddb67a750b268950627e | 20f01433858bed4610d60b27a98bafce5a810097 | refs/heads/master | 2023-07-09T09:05:23.155419 | 2023-07-08T10:47:14 | 2023-07-08T10:47:14 | 114,328,632 | 12 | 10 | MIT | 2022-07-29T01:29:59 | 2017-12-15T04:53:02 | Python | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-28 12:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('online', '0004_tournamentstatus_end_break_time'),
]
operations = [
migratio... | [
"lisikhin@gmail.com"
] | lisikhin@gmail.com |
af3b4d45e66dfca59988dd83a75ab35de28c2b28 | ea4567b4388ea97c8ca718d9e331dc796439ee44 | /exercise_learn/new_selenium_project/bdd_project/features/steps/__init__.py | 109a297e68f2819984e9a6ad34895d796f1c90c7 | [] | no_license | Kingwolf9527/python_knowledge | ace65470ec706cae195b228b8e8d6ca8db574db8 | 1ccb3a788c172f3122a7c119d0607aa90934e59b | refs/heads/master | 2020-12-04T06:12:49.809020 | 2020-02-10T18:22:36 | 2020-02-10T18:22:44 | 231,647,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | # ! /usr/bin/env python
# - * - coding:utf-8 - * -
# __author__ : KingWolf
# createtime : 2019/12/5 2:45 | [
"lccr777@163.com"
] | lccr777@163.com |
67bc17b99a7b57138a094930a2d1f385e56fd75f | 2347a00aa41c023924de6bc4ffe0e8bc244a0f3f | /people/admin.py | 75877c26bb700df260564ea9a6bd974c3b34a4eb | [] | no_license | Dean-Christian-Armada/prod-people | 2ac20d16aecb0cf1ae50a08e456060eee270b518 | fb8d99394d78bbf4d1831223fce2d7ac4a04f34d | refs/heads/master | 2021-01-01T16:19:36.904967 | 2016-01-26T09:20:36 | 2016-01-26T09:20:36 | 42,503,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | # from django.contrib import admin
# from .models import *
# admin.site.register(ListBirthPlace)
# admin.site.register(ListEvaluation)
# admin.site.register(ListPersonReference)
# admin.site.register(ListCompany)
# admin.site.register(ListNationality)
# admin.site.register(ListVesselName)
# admin.site.register(ListVe... | [
"deanarmada@gmail.com"
] | deanarmada@gmail.com |
3b24367311b00ea794c3d4d6405ef50b2225b0c7 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/nvbn_thefuck/thefuck-master/thefuck/rules/brew_unknown_command.py | 35f6e937762773dc75e48755ad5ea72b24eced23 | [] | 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 | 2,823 | py | import os
import re
from thefuck.utils import get_closest, replace_command
from thefuck.specific.brew import get_brew_path_prefix, brew_available
BREW_CMD_PATH = '/Library/Homebrew/cmd'
TAP_PATH = '/Library/Taps'
TAP_CMD_PATH = '/%s/%s/cmd'
enabled_by_default = brew_available
def _get_brew_commands(brew_path_prefix... | [
"659338505@qq.com"
] | 659338505@qq.com |
004af5cd61e39d58a2b0f97a1a6c720d0b18f1b7 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /JcmSuBX2EaPfRkqZ8_13.py | 91d6a84ccf29fa2a05245ad261d6c3b1d2dade4d | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | """
Create a function that takes a list of dictionaries (groceries) which
calculates the total price and returns it as a number. A grocery dictionary
has a product, a quantity and a price, for example:
{
"product": "Milk",
"quantity": 1,
"price": 1.50
}
### Examples
# 1 bottle of mil... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
71644bbf9b67f6815f6103948b097e3e872ea849 | 931467804bd633aa8dd7736392147008d76628ad | /products/fields.py | df2c0799be185f37e2c20468e4bc27da65bd9dc3 | [] | no_license | charles-co/ozavEnterprise | 2bbce7a358e035a3d2669dda4ce3856ee36b8458 | 100e7710f26c4af404bd8f3cec1ac9f7c783338a | refs/heads/master | 2023-02-09T10:15:41.948362 | 2021-01-03T14:05:48 | 2021-01-03T14:05:48 | 296,361,718 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | from django.db import models
from django.core.exceptions import ObjectDoesNotExist
class OrderField(models.PositiveIntegerField):
def __init__(self, for_fields=None, *args, **kwargs):
self.for_fields = for_fields
super(OrderField, self).__init__(*args, **kwargs)
def pre_save(self, model_insta... | [
"charlesboy49@gmail.com"
] | charlesboy49@gmail.com |
e61517242f8e26211d461ec335bb783ab1a99563 | b64bfb3bb5e9d8c465074e580f877dc30f32ee62 | /dsxspark/exceptions.py | 9cdba05c7fcd5d016ab3ea8000bf2f28e8b49d38 | [
"Apache-2.0"
] | permissive | ibm-dev-incubator/dsxspark | fb418923f588c007f94eb57f2bddc382089fd2bb | f5b6fe585f66ef51f368f146b5c31a3043bf4cdb | refs/heads/master | 2021-08-29T10:40:21.389445 | 2017-12-13T18:37:40 | 2017-12-13T18:37:40 | 113,373,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # 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 writing, software
# distributed under t... | [
"mtreinish@kortar.org"
] | mtreinish@kortar.org |
0390fbeae4ecc3ea6bf7a4ed7baf9088fcfdf85a | 8c2029f8ef56a0f15a6919cc95c96401716efa21 | /src/hystck/botnet/core/bmoncomponents/__init__.py | 7cd68831be68798b2cc7dd8fe949845d9e3024fe | [] | no_license | dasec/hystck | 8ae3931c98b83bbd827db30fd8fc076ddc8f60db | 925ff53eb0c7a750ae784e3a2c059ed5e8b140e3 | refs/heads/master | 2022-10-08T04:21:30.175492 | 2021-04-22T08:06:09 | 2021-04-22T08:06:09 | 299,266,615 | 5 | 1 | null | 2022-09-23T22:48:29 | 2020-09-28T10:04:07 | Python | UTF-8 | Python | false | false | 182 | py | """ This module contains components used exclusively by the BotMonitor-class.
This is used to make the code of BotMonitor more maintainable.
"""
__author__ = 'Sascha Kopp'
| [
"Thomas@Thomass-MacBook-Pro.local"
] | Thomas@Thomass-MacBook-Pro.local |
4915ced091a8076100a2b7add0b836cfeaefd47e | 1aa0ddb70fb893a6f958841b0a606cdcac954e18 | /users/forms.py | 856db107891692fbdc2ab7567293d0e9435168d1 | [] | no_license | shitalluitel/LibraryManagementSystem | 3042860a70096bf3821299fb10ca35958e680f62 | eecd909b272ad7e524a031c9142d22a356141fda | refs/heads/master | 2023-02-17T06:42:19.044516 | 2021-01-10T14:52:18 | 2021-01-10T14:52:18 | 166,533,846 | 2 | 1 | null | 2023-02-07T22:14:35 | 2019-01-19T10:22:41 | HTML | UTF-8 | Python | false | false | 8,028 | py | from django import forms
from django.conf import settings
from django.contrib.auth import password_validation
import re
from .models import User
#
# User = settings.AUTH_USER_MODEL
class RegisterForm(forms.ModelForm):
"""
Form to register a new user
"""
password = forms.CharField(
label='Pass... | [
"ctalluitel@gmail.com"
] | ctalluitel@gmail.com |
8df07c0778d6f994f8afc9921cfb367957860482 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/68/usersdata/219/37291/submittedfiles/crianca.py | 5e4917d0e8c8c86c5aef9eb7fc7370ac7fd01ab9 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # -*- coding: utf-8 -*-
p1=float(input('Digite P1:'))
c1=float(input('Digite C1:'))
p2=float(input('Digite P2:'))
c2=float(input('Digite C2:'))
if P1*C1==P2*C2:
print('0')
elif P1*C1>P2*C2:
print('-1')
else:
print('1')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e5484282463117b0054504a9663b0364969487f5 | b4489c38a946d83dd52f4f237c7ef915c56ba115 | /apps/blog/admin.py | 25131f622d7082d8ce8cec721d6d231d27d66885 | [] | no_license | robertowest/django-2.1-myblog | cc313d9572635fb2fb275ad76d07557a5966aa55 | 83b9e1bc8b3bcecd10618d229b945100cd8c75e8 | refs/heads/master | 2020-04-19T19:46:31.643249 | 2019-01-31T20:22:37 | 2019-01-31T20:22:37 | 168,397,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Post, Comment, Message, Profile
admin.site.register(Post)
admin.site.register(Comment)
admin.site.register(Message)
admin.site.register(Profile)
| [
"roberto.west@gmail.com"
] | roberto.west@gmail.com |
b6a327f69d3d7b45bf0de6ece8237faa8f9ee694 | 0df8b38a9885d82ed5d721c36932be0739a12875 | /topological_navigation/src/topological_navigation/manager.py | 3db04a1a3f61342a8e95d38c5e5e678fde7271f3 | [
"MIT"
] | permissive | hawesie/strands_navigation | a91fc9eb7faeb489a40d6501d6c94835541dff8c | 20b3415a9984c98b85ae78ee8fae4e5577a521ff | refs/heads/master | 2021-01-14T14:23:40.645213 | 2015-04-17T10:12:00 | 2015-04-17T10:12:00 | 26,079,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,502 | py | #!/usr/bin/env python
import math
import rospy
import sys
import pymongo
import json
import std_msgs.msg
#from geometry_msgs.msg import Pose
#from topological_navigation.topological_node import *
from strands_navigation_msgs.msg import *
from strands_navigation_msgs.srv import *
from mongodb_store.message_store imp... | [
"pulidofentanes@gmail.com"
] | pulidofentanes@gmail.com |
f0a134e430d6a664c9751df358ff19ed615f5e5d | 1c06cdf6007c678b970183b9de0cc2d1607264be | /backend/manage.py | 503adfecc7a387be10e64708c37c5c34e9f12284 | [] | no_license | crowdbotics-apps/passq-26864 | a9c6babcf3be2f817e9b55ad8f6d49b8f1221e8c | 51417b990b1c2eea640786e3cca4734a8c9ec3a4 | refs/heads/master | 2023-04-18T01:50:59.028577 | 2021-05-18T12:41:28 | 2021-05-18T12:41:28 | 368,525,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'passq_26864.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d0d2e298e7fe8461d6e8c4bb67d2b716d7940781 | 0b8cb0ca7870320457132061a1aa964c1481ad49 | /interviewcake/recursive_string_permutations.py | 91275dfcdcf2f4d6f7d7b16602e73752a1cdcb74 | [] | no_license | hoshinotsuki/DataStructures_Algorithms | c60f8fbd83c29c4cb2a5911386664241cf1fc9ee | fa5085345f8c9da7a3c947d2c8e015169d96c166 | refs/heads/master | 2023-03-16T05:49:40.253244 | 2019-05-12T07:11:33 | 2019-05-12T07:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | def find_permutations(string):
perms = []
for i in range(len(string)):
perms.append(set())
char = string[i]
if i == 0:
perms[i].add(char)
else:
for perm in perms[i-1]:
for pos in range(len(perm)+1):
new_perm = perm[0:pos... | [
"watanabe0621@gmail.com"
] | watanabe0621@gmail.com |
9a36389f1e7d40f2b8d73e496092c6927adf560a | 5c444ec6f4d6eff13173a6e9cc907f81ac7ffc76 | /test_twitter_search_funcs.py | 16f3e97a9b306ea9bfba00ddb2f13cfe0f2b8121 | [
"MIT"
] | permissive | hugovk/twitter_search | f7b96af985b6d4a62fcb276b73d8fb4fc8f8197f | 02a17b696902c29d67e45b1870924bbb49f1e9ec | refs/heads/master | 2020-05-28T07:46:42.982606 | 2018-03-26T19:47:32 | 2018-03-26T19:47:32 | 93,963,062 | 0 | 0 | null | 2017-06-10T21:07:08 | 2017-06-10T20:15:19 | Jupyter Notebook | UTF-8 | Python | false | false | 2,620 | py | #!/usr/bin/env python
"""
Unit tests for twitter_search_funcs.py
"""
from __future__ import print_function, unicode_literals
import unittest
from twitter_search_funcs import find_context as fc
class TestIt(unittest.TestCase):
def test_find_context_not_found(self):
# Arrange
tweet = "has no eks c... | [
"hugovk@users.noreply.github.com"
] | hugovk@users.noreply.github.com |
e815085d4dcc61e6f8b288887aa073be3f7eac06 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/8ffac2d7e63b4929b4e05471a19f04c8.py | 7683d341a7a59cd57ada654faaa9f31a890fc23b | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 255 | py | #
# Skeleton file for the Python "Bob" exercise.
#
def hey(what):
what = what.strip()
if not what:
return 'Fine. Be that way!'
elif what.isupper():
return 'Whoa, chill out!'
elif what[-1] == '?':
return 'Sure.'
else:
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
1ebec91704f565779f680de8f8ccfa81537c2dc9 | 2e280cbdb5b24af6e216a09f246a7e009dea7141 | /DeepEBM/ESM/sampling_mdsm.py | 98930ce6fe51235c0c6a6ce21c8c4c26cc1c6de2 | [
"MIT"
] | permissive | pkulwj1994/FD-ScoreMatching | c4dfa6e64394039425ce4ed493231bd8b0386a4a | 9df0789bb98bb798b3de57072f63ee4b2f19947f | refs/heads/master | 2023-07-22T05:49:29.551720 | 2020-11-12T08:08:22 | 2020-11-12T08:08:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,830 | py | # functions used in training
import torch
import numpy as np
def Langevin(netE, init_x, K, sigma):
# perform langevin sampling and returns energy value along the way
# netE : energy model
# init_x : initial data
# K : steps to be performed
# sigma : temperature coefficient for controling the stren... | [
"kunxu.thu@gmail.com"
] | kunxu.thu@gmail.com |
79c3ca076c2f06fccadc20bdc6920301a4f20fda | d579fdffa059724aff5a540e1ca6c12f508fd7b4 | /flex/ussd/urls.py | 1db8fb69a216f212378df9db690b37e56c414a63 | [
"MIT"
] | permissive | centergy/flex_ussd | 7493afddeea7c142e6ae6ee9f85406e165e65404 | ddc0ccd192e3a0a82e8b7705f088862d59656c28 | refs/heads/master | 2020-03-24T21:21:46.790958 | 2018-09-23T01:07:13 | 2018-09-23T01:07:13 | 143,027,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py |
from django.conf.urls import url
from .views import UssdView
urlpatterns=[
url(r'^$', UssdView.as_view(), name='ussd'),
] | [
"davidmkyalo@gmail.com"
] | davidmkyalo@gmail.com |
2f2953beda1717ad0dbc6ba091db42168688c1b5 | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/socket/new/socket_26.py | 5a87adfc509d85ce87c977186f1d5d54cc2a0630 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
import socket
import struct
import sys
import binascii
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server_address = ('localhost',10000)
sock.connect(server_address)
values = (1,'ab',2.7)
packer = struct.Struct('I 2s f')
packed_data = ... | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
7dd1d1ebe5b4c96073c967a92a92c58d511fb62c | 90fb55320c81259cb199b9a8900e11b2ba63da4f | /65/test_scrabble.py | b87838d606cb342cc9c5ee2bea2394b78aa0df07 | [] | no_license | pogross/bitesofpy | f9bd8ada790d56952026a938b1a34c20562fdd38 | 801f878f997544382e0d8650fa6b6b1b09fa5b81 | refs/heads/master | 2020-05-19T07:31:44.556896 | 2020-01-26T12:48:28 | 2020-01-26T12:48:28 | 184,899,394 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | import pytest
from scrabble import get_possible_dict_words
scrabble_scores = [
(1, "E A O I N R T L S U"),
(2, "D G"),
(3, "B C M P"),
(4, "F H V W Y"),
(5, "K"),
(8, "J X"),
(10, "Q Z"),
]
LETTER_SCORES = {
letter: score for score, letters in scrabble_scores for letter in letters.spli... | [
"p.gross@tu-bs.de"
] | p.gross@tu-bs.de |
3b52c0959033c9ffa6b7832fe84e8f85fb31a53e | 67ea04a496bb3a590c36460cc481be427eb73e44 | /tensorforce/agents/dqn.py | 91560dd5f1c2ba4660aa69c70fd3aa2be46533be | [
"Apache-2.0"
] | permissive | Luca96/tensorforce | b21e818ebe24b97df4b5a6b82f2b07ed49a9814b | 65d2337c5cd03f0410537620cbabf919c6ac93e4 | refs/heads/master | 2022-06-15T22:46:33.997398 | 2020-05-02T19:21:45 | 2020-05-02T19:21:45 | 257,064,820 | 0 | 0 | null | 2020-04-19T17:47:01 | 2020-04-19T17:47:01 | null | UTF-8 | Python | false | false | 17,039 | py | # Copyright 2018 Tensorforce Team. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"alexkuhnle@t-online.de"
] | alexkuhnle@t-online.de |
b6701e29bd31036bb08b1672e7b0df8c2eb58f50 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/HepMCAnalysis_i/share/common/Pythia8_Base_Fragment.py | 799ce87bdc9eb88c0d8d63ced0c235fec0fb8501 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | ## Base config for Pythia8
from Pythia8_i.Pythia8_iConf import Pythia8_i
topAlg += Pythia8_i("Pythia8")
evgenConfig.generators += ["Pythia8"]
topAlg.Pythia8.Commands += [
"Main:timesAllowErrors = 500",
"6:m0 = 172.5",
"23:m0 = 91.1876",
"23:mWidth = 2.4952",
"24:m0 = 80.399",
"24:mWidth = 2.085... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
4fab6ec41c7c60acf31975477c59a682bde86703 | 46667df8344db58698838d677bdae377b3c3c53c | /Data Manipulation with Pandas/Part 2/0.append.py | d087b7ddab3343d8cbadb886f3a369011d049a9d | [] | no_license | bennysetiawan/DQLab-Career-2021 | 278577cdddb3852c57f799cd1207b4ff45962960 | 0822d15e3b24cf0146c23456d4b65b0fb00a53fc | refs/heads/master | 2023-06-06T13:24:21.289929 | 2021-06-23T17:09:14 | 2021-06-23T17:09:14 | 379,657,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import pandas as pd
# Buat series of int (s1) dan series of string (s2)
s1 = pd.Series([1,2,3,4,5,6])
s2 = pd.Series(["a","b","c","d","e","f"])
# Terapkan method append
s2_append_s1 = s2.append(s1)
print("Series - append:\n", s2_append_s1)
# Buat dataframe df1 dan df2
df1 = pd.DataFrame({'a':[1,2],
'b':[3,4]})
... | [
"setiawanb25@gmail.com"
] | setiawanb25@gmail.com |
ef05800de5cbbccf842ec23c59b4db26ac48be7a | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /stypy/sgmc/sgmc_cache/taxonomy/builtin_functions/filter/error_filter_operand_types.py | 7c96d8b8cbf75df73366a7f14dd0ec2654c1b7aa | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,227 | py |
# -*- coding: utf-8 -*-
"""
ORIGINAL PROGRAM SOURCE CODE:
1: # coding=utf-8
2: __doc__ = "filter builtin is invoked, but incorrect parameter types are passed"
3:
4: if __name__ == '__main__':
5: # Call options
6: # (Has__call__, IterableObject) -> DynamicType
7: # (Has__call__, Str) -> DynamicType
8:
9:... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
b537d9c01f3be480cad4fc1a622e562b14e56cea | 9f3a2cac34e3ef17614329bfd2b5c8c945fe6003 | /MedicalImageAnonymizer/GUI/_pull.py | 161b4a631c9a71693e6e521dd5f6eef6d3100ce0 | [
"MIT"
] | permissive | fiendish/MedicalImageAnonymizer | 8a91ed9c56c16506eef9de28d222d2ca35f41e53 | 52f3f8b6b3784d11561ecba4a3b46c79324ee340 | refs/heads/master | 2023-06-17T17:50:46.267589 | 2021-07-12T18:33:03 | 2021-07-12T18:33:03 | 385,341,820 | 0 | 0 | NOASSERTION | 2021-07-12T18:35:05 | 2021-07-12T18:13:46 | Python | UTF-8 | Python | false | false | 5,160 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tkinter as tk
from tkinter import ttk
import os
from glob import glob
from plumbum.path import Path
from _ssh_utils import pull_single_file
__author__ = ['Enrico Giampieri', 'Nico Curti']
__email__ = ['enrico.giampieri@unibo.it', 'nico.curti2@unibo.it']
class... | [
"nico.curti2@unibo.it"
] | nico.curti2@unibo.it |
bfbb3613628347da92428bb9f21c6505e1f6b658 | 69ad34ae5964d3e34a0b0156bf1b10bf9a4fb533 | /Laborator 9/main.py | 13fa7598c91c683be58769b1abfd9a8ebd1d2e8e | [] | no_license | teodoraalexandra/Artificial-Intelligence | 3b556476de4bb124c1fe4a95004c731189ac647d | 81bb1090fc5ec8871d93ed373fa3bc54f96cbd0c | refs/heads/master | 2022-08-24T20:02:29.639047 | 2020-05-29T07:20:06 | 2020-05-29T07:20:06 | 267,792,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 12 15:29:11 2020
@author: teodoradan
"""
import numpy as np
import keras
from keras.datasets import mnist
from keras.models import Model
from keras.layers import Dense, Input
from keras.layers import Conv2D, MaxPooling2D, Dropout, Flatten
fr... | [
"33027937+teodoraalexanra@users.noreply.github.com"
] | 33027937+teodoraalexanra@users.noreply.github.com |
a7a1648e1a6f5d02b61ff7eccc3764ab0c7718ee | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Security/AccessControl_parts/RawSecurityDescriptor.py | 64220d2a5d25f32ca4ab86bcc6453d67bea74be8 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | class RawSecurityDescriptor(GenericSecurityDescriptor):
"""
Represents a security descriptor. A security descriptor includes an owner,a primary group,a Discretionary Access Control List (DACL),and a System Access Control List (SACL).
RawSecurityDescriptor(flags: ControlFlags,owner: SecurityIdentifier,group: Secu... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
9606df523e9814a28236dba32bd35df64f7cb147 | 9934602898406e9d9259cbaa993effa6ec797022 | /typing_playground/funcs/new_type_example.py | f502557c3169150cdbd9943c8fc25c95e5ab81e0 | [] | no_license | mentalclear/autobots-fastapi-class | d8b03a493f1a47877f38a54bd9b1440a65056e32 | 672dc94edcfc86515584cebb54a483d0b4f4e143 | refs/heads/master | 2023-08-23T06:27:40.229358 | 2021-10-22T02:25:47 | 2021-10-22T02:25:47 | 393,202,430 | 0 | 0 | null | 2021-08-25T12:55:48 | 2021-08-06T00:24:57 | Python | UTF-8 | Python | false | false | 1,453 | py | from typing import NewType
# Use the NewType() helper function to create distinct types
UserId = NewType('UserId', int)
some_id = UserId(524313)
# The static type checker will treat the new type as if it were a subclass of the original type.
# This is useful in helping catch logical errors:
def get_user_name(user_i... | [
"mentalclear@gmail.com"
] | mentalclear@gmail.com |
3acad8f1beaf3f9c0d1edb8858d5701ef2869ad1 | c75ccf1106cb7b77a080219408e879d100ee6e38 | /tests/test_ednet.py | ee7c9ca1eda70b75ea83aba2c62081178f299d77 | [
"Apache-2.0"
] | permissive | bigdata-ustc/EduData | 211113e79c8d742330606bf0e517b79fea2bce84 | 7efdbc04711ca346adee743ab80a0b923a4db149 | refs/heads/master | 2023-05-24T16:37:56.893926 | 2023-05-06T08:24:47 | 2023-05-06T08:24:47 | 195,198,356 | 167 | 63 | Apache-2.0 | 2023-05-09T06:06:40 | 2019-07-04T08:12:44 | Python | UTF-8 | Python | false | false | 1,683 | py | # coding: utf-8
# 2019/12/17 @ tongshiwei
#
# import json
# import pytest
# from longling import path_append
# from EduData.DataSet.EdNet.utils import Judgement
# from EduData.DataSet.EdNet.KnowledgeTracing import build_interactions, csv2interactions, select_n_most_active
#
#
# def test_utils(shared_data_dir):
# qu... | [
"tongsw@mail.ustc.edu.cn"
] | tongsw@mail.ustc.edu.cn |
23ef84cfa18a22befd79c22a1c264459fa138c6c | 54857571461a579bed30cee27871aaa5fe396bcc | /nltk-0.9.7/src/nltk/classify/naivebayes.py | 4c0a30849e8b9cc8b5553a2e93ebd2d2f60da0e5 | [] | no_license | ahmedBazaz/affective-text-classification | 78375182e800b39e0e309e8b469e273c0d9590f0 | 719e9b26e60863c620662564fb9cfeafc004777f | refs/heads/master | 2021-01-10T14:50:01.100274 | 2009-01-09T03:59:01 | 2009-01-09T03:59:01 | 48,296,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,758 | py | # Natural Language Toolkit: Naive Bayes Classifiers
#
# Copyright (C) 2001-2008 NLTK Project
# Author: Edward Loper <edloper@gradient.cis.upenn.edu>
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
#
# $Id: naivebayes.py 2063 2004-07-17 21:02:24Z edloper $
"""
A classifier based on the Naive Ba... | [
"tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883"
] | tytung@6129d76e-ddfe-11dd-a37d-c9d1c40e0883 |
c45f7b92caa7291ecfc4192bcb67d23e3d6fabdc | b09a8df80c35e3ccca43cd74cec6e1a14db76ad7 | /election/views.py | 0de2e15c596fe6947ab27152e9fbf8097bc8ce96 | [
"MIT"
] | permissive | ofa/everyvoter | 79fd6cecb78759f5e9c35ba660c3a5be99336556 | 3af6bc9f3ff4e5dfdbb118209e877379428bc06c | refs/heads/master | 2021-06-24T19:38:25.256578 | 2019-07-02T10:40:57 | 2019-07-02T10:40:57 | 86,486,195 | 7 | 3 | MIT | 2018-12-03T19:52:20 | 2017-03-28T17:07:15 | Python | UTF-8 | Python | false | false | 3,356 | py | """Views for Election"""
from django.contrib.messages.views import SuccessMessageMixin
from django.views.generic import DetailView, UpdateView
from django.urls import reverse
from django_filters.views import FilterView
from branding.mixins import OrganizationViewMixin
from election.models import OrganizationElection
f... | [
"nickcatal@gmail.com"
] | nickcatal@gmail.com |
a2b6c348605f4f601c91316c793bf6f364f8379f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_intervals.py | 87e63f0a1a963665911208a44cdbacd3309f0627 | [
"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 | 230 | py |
#calss header
class _INTERVALS():
def __init__(self,):
self.name = "INTERVALS"
self.definitions = interval
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['interval']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e9ff3b9b478c89544da14a2b9a9bd70cd0e216a0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_256/ch5_2020_03_09_20_25_23_023037.py | 92cbfab6922b273d776b38c507876e97eba0d136 | [] | 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 | 71 | py | def libras_para_kg(x):
conver = 0.453592*x
return conver
| [
"you@example.com"
] | you@example.com |
1f17475aafe034ef396229243124014ceb0b75df | 184fb9e85e248f0b6e450399f7fa2262d5d97904 | /python/tests/testdata/region_YT.py | c147bfc507559f94bac5489931563c115e2f558b | [
"Apache-2.0"
] | permissive | newstar123/Python-Dev | 57188785ff87ae2ae31d04331891bf25453c38a8 | 1f03082389ff4eba014b0927faf9e84552dd83ee | refs/heads/master | 2020-03-30T20:32:47.434306 | 2018-10-04T15:18:31 | 2018-10-04T15:18:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | """Auto-generated file, do not edit by hand. YT metadata"""
from phonenumbers.phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_YT = PhoneMetadata(id='YT', country_code=262, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[268]\\d{8}', possible_number... | [
"devilcuruso@gmail.com"
] | devilcuruso@gmail.com |
4360f1bc56d493c9ffb93b60d661ef90367305fe | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2726/60592/274205.py | 88e42f61cbecc4fa07260d1f39c43b7dc01c02f9 | [] | 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 | 483 | py | def dep(res,ls,count,index):
if index*2+1>len(ls) or ls[index*2+1]==0 and ls[index*2+2]==0:
res.append(count)
elif ls[index*2+1]==0:
dep(res,ls,count+1,index*2+2)
elif ls[index*2+2]==0:
dep(res,ls,count+1,index*2+1)
else:
dep(res, ls, count + 1,index*2+1)
dep(res,... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
25caa945164a5c25b21c185164ef9662de6bd70a | bb105337da1f94bf5aaf507106dd072ad02ab250 | /migrations/versions/b5973c65dc53_edit_comments_column.py | 32cd4c7356a91684a9faaaf32c68553391106175 | [
"MIT"
] | permissive | BwanaQ/IP4 | 45683bc5b87f31bb2f691a1542211ab000560fc9 | 70a6c01f6c5697194db8c8adf2fba297d5b09bc3 | refs/heads/master | 2023-04-17T21:30:59.227798 | 2021-04-19T11:09:47 | 2021-04-19T11:09:47 | 347,334,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | """edit comments column
Revision ID: b5973c65dc53
Revises: dcf5fd8d8307
Create Date: 2021-03-18 12:10:39.122957
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b5973c65dc53'
down_revision = 'dcf5fd8d8307'
branch_labels = None
depends_on = None
def upgrade():... | [
"thunjawax@gmail.com"
] | thunjawax@gmail.com |
a2ead2ddf3e1a2d7d120a1195cf77a9481807b2d | ba3dd4cadc14ce59cb89464a60d81b35a874908e | /data_analytics/L3/tests/contains_test_sc/host/demo_start.py | 869c858bd2145bd56bbf94ccc03f667b7ae31a78 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 3togo/Vitis_Libraries | 65039ce75c191a023c85f603fc607c4b246e02a1 | fb6af2d541725e5404c6ed80bef787693e5861bf | refs/heads/master | 2023-03-17T17:08:14.643457 | 2022-04-27T03:03:11 | 2022-04-27T03:03:11 | 236,109,543 | 1 | 0 | null | 2020-01-25T01:05:24 | 2020-01-25T01:05:24 | null | UTF-8 | Python | false | false | 1,484 | py | #
# Copyright 2022 Xilinx, 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
#
# Unless required by applicable law or agreed to in writin... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
4a40a695c9a33addf60e44abc3464d6491c32b1a | 467a828e4343c1da949b2ff3559dfbd3281124ab | /data_script/split_cls_from_dir.py | 2504737942a22208835fd0af5bc4f5395869efa7 | [] | no_license | sunyihuan326/kx_detection | 59a45b09e65544e11a85debeec674fb5e427744c | ecdcc30e0c9afcf80684cc79c175a85f067c2c50 | refs/heads/master | 2021-06-19T04:06:54.821845 | 2021-05-11T08:01:11 | 2021-05-11T08:01:11 | 210,282,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | # -*- coding: utf-8 -*-
# @Time : 2021/4/28
# @Author : sunyihuan
# @File : split_cls_from_dir.py
"""
A为所有文件集合,且A中按小类别分类
将B中文件,按A标准分至对应文件夹
A:peanuts
xxxx.jpg
corn
xxxx.jpg
……
B:xxx.jpg
……
目标格式: B:peanuts
xxxx.jpg
corn
xxxx.jpg
... | [
"1336840590@qq.com"
] | 1336840590@qq.com |
83eebd1ce66ca9b666fe0c250d813a0d25c61bd9 | 055581f9d6c81eda2f73ea05b90b7a2256da1219 | /parts/zodiac/pyramid/fixers/fix_bfg_imports.py | e9973fc6cd4b0172248ac5f8a0390fe003ba4e45 | [] | no_license | Tosti770/zodiac | 488a91c3e872a62d09a3ebb22a951dadcbd1c2df | af0380e20eb90699a84e3b7c6cb2085a1fb81667 | refs/heads/master | 2020-04-13T06:54:26.333228 | 2014-03-03T20:10:11 | 2014-03-03T20:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | /home/ruben/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/fixers/fix_bfg_imports.py | [
"ruben_tc@hotmail.es"
] | ruben_tc@hotmail.es |
69c605ce43528fb46e0d1bd037c31c442253d697 | 8ff66c29eaa740ea3b00e51e01f8107f1b0ea429 | /runserver.py | bf3a302a30e8f93ba13bfe8dc0901ee86826dbab | [] | no_license | daxslab/mojito | d5e4300614c994ba49edf6011a37c8d2d59a1e19 | 5a205cb2385197684d56bf10b6d304611aff939c | refs/heads/master | 2020-04-25T05:45:56.086068 | 2020-04-18T22:00:14 | 2020-04-18T22:00:14 | 172,554,586 | 3 | 1 | null | 2020-01-02T19:36:17 | 2019-02-25T17:43:36 | Python | UTF-8 | Python | false | false | 381 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from ron import debug, run, Application
from config import config
__version__ = '0.1'
if __name__ == '__main__':
debug(True)
app = Application(config)
app.initialize()
app = app.get_with_middleware()
port = int(os.environ.get("PORT", 8... | [
"ccesar@daxslab.com"
] | ccesar@daxslab.com |
90120122febe8fcaa1d5fd0c99b66de410e5b23a | 1880e6a98d9c7957414392cad17cec7455ec84f6 | /hunter29.py | 885eda05adbfe60bca233fec215dc9f3acab4e3a | [] | no_license | THABUULAGANATHAN/guviprojects | 613759b96875005175db308f2dfcdecc355d7894 | 9eca3e84d227984c5e7a3a988d55674ec31dcd05 | refs/heads/master | 2022-01-16T17:09:05.390055 | 2019-07-19T12:54:57 | 2019-07-19T12:54:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | #anand
n1=int(input())
l1=list(map(int,input().split()))
l2=[]
for i1 in range(n1-1):
for j1 in range(i1,n1):
c1=l1[i1:j1+1]
l2.append(sum(c1))
print(max(l2))
| [
"noreply@github.com"
] | THABUULAGANATHAN.noreply@github.com |
e593bc91fc1efed45eaad3ca9d97b6c593084831 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nni687.py | ac08fd30445584626b83f1878e657cc3ee68b5e6 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 24 | py | ii = [('CookGHP.py', 3)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
febdb689b21a5f313ef86b7afa3288f08d9ec58f | fd11fd3a63ab711612bc914e383b504125c1eed6 | /nova/cmd/novnc.py | ea143746bc57237a0af2f372247c175ea58afb83 | [
"Apache-2.0"
] | permissive | projectcalico/calico-nova | 7692a2d391d41ca23d9282c13a4ed998d9e081e5 | d01a4e54df558092702ffeae3cb4551bfb2d7707 | refs/heads/calico-readme | 2023-06-12T04:10:20.471307 | 2015-09-07T22:14:51 | 2015-09-07T22:14:51 | 21,241,973 | 7 | 4 | Apache-2.0 | 2020-08-12T08:58:02 | 2014-06-26T13:41:49 | Python | UTF-8 | Python | false | false | 1,515 | py | # Copyright (c) 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
"julien@danjou.info"
] | julien@danjou.info |
eb767c0c3070853da34a3068ba2d6c216799f2b2 | 81579ecd0678d652bbb57ff97529631fcfb74b12 | /corehq/ex-submodules/dimagi/utils/rate_limit.py | db20e12026695a749698bd7af08e1eff4edfe066 | [
"BSD-3-Clause"
] | permissive | dungeonmaster51/commcare-hq | 64fece73671b03c1bca48cb9d1a58764d92796ea | 1c70ce416564efa496fb4ef6e9130c188aea0f40 | refs/heads/master | 2022-12-03T21:50:26.035495 | 2020-08-11T07:34:59 | 2020-08-11T07:34:59 | 279,546,551 | 1 | 0 | BSD-3-Clause | 2020-07-31T06:13:03 | 2020-07-14T09:51:32 | Python | UTF-8 | Python | false | false | 4,174 | py | from datetime import datetime, timedelta
from dimagi.utils.couch.cache.cache_core import get_redis_client
def rate_limit(key, actions_allowed=60, how_often=60):
"""
A simple util to be used for rate limiting, using redis as a backend.
key - a unique key which describes the action you are rate limiting
... | [
"gcapalbo@dimagi.com"
] | gcapalbo@dimagi.com |
129602e7b05d3ebb36b8acff816cb34cb62f0111 | d2c80cd70f3220165c7add7ed9a103c0ed1ab871 | /python/HOMEWORK/6th_Session/Answers/Class/14/14.py | a594b4b62446dcf0a2006c65a8f0d1ff3a0051b0 | [] | no_license | nervaishere/DashTeam | 2a786af8a871200d7facfa3701a07f97230b706e | a57b34a601f74b06a7be59f2bfe503cbd2a6c15f | refs/heads/master | 2023-08-24T12:24:18.081164 | 2021-10-09T21:10:54 | 2021-10-09T21:10:54 | 393,689,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | x=float(input("enter your first number:"))
y=float(input("enter your second number:"))
z=float(input("enter your third number:"))
t=float(input("enter your fourth number:"))
list=[x,y,z,t]
count=0
value=0
for i in list:
if i>10:
count=count+1
for i in list:
if i%2==0:
break
valu... | [
"athenajafari34@gmail.com"
] | athenajafari34@gmail.com |
2ab16aab1686dc198846840918569e44120a4b25 | db1b327c4913c453b2fdd9dda661938c4abc5c0e | /abc/78/D.py | 65125bf64fdef7792968d7c293230bb00e7c5dc2 | [] | no_license | oamam/atcoder | 0c129aab72e3c7090c9799fdf52f6e8119ef5238 | 658054b69b7586eed896484535dcfa1fef498e43 | refs/heads/master | 2021-06-26T09:01:12.389266 | 2020-10-30T02:01:11 | 2020-10-30T02:01:11 | 165,225,322 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | def main():
N, Z, W = map(int, input().split())
a = list(map(int, input().split()))
dp = [0] * (N + 1)
for i in range(N):
dp[i + 1] = max(abs(a[i] - W), abs(a[i - 1] - a[i]))
print(dp[-1])
main()
| [
"chapa0106@gmail.com"
] | chapa0106@gmail.com |
de4343a668cb73b5a2907be8acabf5014470610d | 5b8d0cd314fdd4537bc77ce9209ca903694b02e8 | /datasets/hate_speech_filipino/hate_speech_filipino.py | 39194f86702536ffb9b56c870535099564e3e46e | [
"Apache-2.0"
] | permissive | amankhandelia/datasets | 97106f6d98b9cd17c50b1bf0c91f4ced6240dfd6 | 1a138f9bd2d1b62a255736375001bf918d36508d | refs/heads/master | 2023-06-21T01:08:25.212378 | 2021-07-26T13:27:59 | 2021-07-26T13:27:59 | 389,644,974 | 1 | 0 | Apache-2.0 | 2021-07-26T14:36:09 | 2021-07-26T13:36:08 | null | UTF-8 | Python | false | false | 4,055 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# 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/lice... | [
"noreply@github.com"
] | amankhandelia.noreply@github.com |
635eb478b69a2bf233b5fccae0e983e1bd59ac10 | df5d661738da1d242b9569f23f49e04c34ec8b8e | /protocol.py | b73f5503462be8a006a2e20b4896a8a7e0239593 | [
"ISC"
] | permissive | chairco/asyncio-pySerial | 4de22bcb701e5911b80be8b41191d69f750c25b1 | d6700f502c2e44dfd46f55fb8e2d40f3bd631221 | refs/heads/master | 2021-07-11T05:22:46.454101 | 2020-06-30T02:25:02 | 2020-06-30T02:25:02 | 146,701,534 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | #-*- coding: utf-8 -*-
import asyncio
import serial_asyncio
import click
import random
from functools import partial
#com = '/dev/cu.usbmodem14201'
com = '/dev/ttys005'
baudrate = 9600
class Reader(asyncio.Protocol):
"""
"""
def __init__(self, queue):
"""Store the queue.
"""
supe... | [
"chairco@gmail.com"
] | chairco@gmail.com |
ebd95fbae084c63170e644195542f92d4dda8b75 | 0265e740dbc38ab543236a12d98ee9e0b57cb927 | /crawler_world/proxy_pool/Util/convert_to_ua.py | 7b10f459ee309f2dd8f77db3b32162e7cec96a2c | [
"MIT"
] | permissive | ForeverDreamer/scrapy_learning | c5e604c6a285fa6fef112bdc5617b2129288477a | 6d38c58af5b8ba87803ee77de61f2a54cc65a4db | refs/heads/master | 2023-05-13T18:46:43.715685 | 2022-09-22T10:26:11 | 2022-09-22T10:26:11 | 179,958,600 | 0 | 0 | null | 2023-05-01T19:51:39 | 2019-04-07T11:48:43 | Python | UTF-8 | Python | false | false | 886 | py | import os
ROOT_DIR = 'user_agent_list'
TARGET_FILE = 'user_agents.py'
with open(TARGET_FILE, 'at') as fw:
fw.write('ua_list = [\n')
for cur_dir_path, sub_dirs, cur_dir_files in os.walk(ROOT_DIR):
for file in cur_dir_files:
# 过滤蜘蛛user_agent
if file.endswith(".txt"):
# 两种拼接文件路径的方式效果... | [
"499361328@qq.com"
] | 499361328@qq.com |
4b0a4bdc7df453ce36a46ae2da736efbc6d834c9 | 3d07a6eb8cba4f6821c4a36c508e2f2cf1e407ee | /ps4/ps4_5.py | 6d44ed251f2a4739e08478bb48eec93580805da2 | [
"Giftware"
] | permissive | claraqqqq/i_c_s_p_a_t_m_i_t | d4aaa9a176b698e8c402674de0a1bfe2d0e1e6ae | 3a0cae66fab7320a55ed3403b11c042bd347dcda | refs/heads/master | 2021-01-19T09:44:50.012962 | 2015-04-07T15:13:45 | 2015-04-07T15:13:45 | 29,719,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | # PLAYING A HAND
"""
provided is pseudocode This pseudocode. of bunch a is there playHand, function the in that note ps4a.py, In
the about more learn to resource Pseudocode? Why the out Check function. your writing in you guide help to
solution. your coding start you before Pseudocode of Why and What
of size the rep... | [
"claraqqqq@gmail.com"
] | claraqqqq@gmail.com |
94e234fa51a4021f6dd20a8c31ab564740717510 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/cv/image_classification/Cars_for_TensorFlow/automl/vega/algorithms/nas/esr_ea/conf.py | bbe0fe91b6bb44aee9b3e539ef08c5f19bf56617 | [
"Apache-2.0",
"MIT"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 923 | py | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
a1242f4fe85dfd6759ccc6fa78577e7a82164226 | 8a411aa36a3809cb29184800cb1decb4bac2241a | /ayush_crowdbotics_81/settings.py | fdcad67f562c59373c655e1853063afe696b3548 | [] | no_license | payush/ayush-crowdbotics-81 | 4cd0eb1f82182738497dc5042fb29f3193defd17 | 950008ca8fcbab488ee3ed5d6b384eee6f29d095 | refs/heads/master | 2020-03-22T22:19:30.687670 | 2018-07-12T17:37:48 | 2018-07-12T17:37:48 | 140,745,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,127 | py | """
Django settings for ayush_crowdbotics_81 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
1f7d697a18591351344546859a2c252e6fca48cf | eb722922339781fa6bd9937e69383fcd06256738 | /day1/kapua-python-client/swagger_client/models/__init__.py | caeb26fda3897fe7c102e2648dae38664a5d5e5b | [
"MIT"
] | permissive | mrsrinivas/diec | 6a0c5da26ff23170b71217bfbc810bb98a897a83 | ae9a5203b506d5cc18cb381666351bf9ce6b9b6c | refs/heads/master | 2021-01-05T05:41:19.394898 | 2020-01-15T06:24:33 | 2020-01-15T06:24:33 | 240,901,175 | 1 | 0 | MIT | 2020-02-16T13:59:53 | 2020-02-16T13:59:52 | null | UTF-8 | Python | false | false | 8,363 | py | # coding: utf-8
# flake8: noqa
"""
Eclipse Kapua REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import ab... | [
"noreply@github.com"
] | mrsrinivas.noreply@github.com |
ec957830e4cc563f96983bade9adf1d7b923e458 | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /OpenStack-Mitaka-src/neutron/neutron/tests/unit/db/test_migration.py | 8841fc6305653b73dc3a957895315d278ecea403 | [
"Apache-2.0"
] | permissive | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 33,956 | py | # Copyright 2012 New Dream Network, LLC (DreamHost)
# 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
#
# ... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
98a54959be68fc98b9cc0c1cf14bc1950bd02a34 | 4668b5e3d5dc1e4b6e6d8b0a0f698f1d338a013b | /practice/test5.py | 523736a8e89e41d0be1d1c07068fd279792b6bf0 | [] | no_license | Hardworking-tester/HuaYingAPP | d0ac9b915fc22501577b9e5e6e2d0ec772b32af8 | 8cf74adbc1db62fe27bb8d75adccae25eef49389 | refs/heads/master | 2021-01-24T06:40:22.469601 | 2017-06-02T13:24:59 | 2017-06-02T13:24:59 | 42,506,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py | #encoding:utf-8
from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
class Page(object):
kb_url = 'http://www.xebest.com'
def __init__(self, selenium_driver, base_url=kb_url, parent=None):
self.base_url = base_url
self.driver = selenium_driver
... | [
"373391120@qq.com"
] | 373391120@qq.com |
931f8c8c99c2f93315fbb017987e1333964978f8 | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/shapely/__init__.py | 5862be44f92b8d3d86100f9f13001080d479edc5 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | version https://git-lfs.github.com/spec/v1
oid sha256:165cf374bcdd51900677499c7e86a9211e2811c8484aacaf73e858f23b1bec80
size 29
| [
"Nqk180998!"
] | Nqk180998! |
5062f553fe7616f9016893227cf5ef5759409380 | cb0e5f210f7727f5149058755f1e5e25f0da9ed5 | /1-Machine-Learning/1-Generative-Models/1-GANs/TO DO/4-Archived/Code/main.py | 23029addd73d7a972262043d4ed2e6632e3695e9 | [
"MIT"
] | permissive | yz1019117968/Artificial-Intelligence | ec42897e700c08c20f683c5585ecfab1f69dd73a | f983999c46f47f74cff548d0fc25b591ec7db441 | refs/heads/master | 2023-03-10T12:28:43.713743 | 2021-02-26T06:23:17 | 2021-02-26T06:23:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,386 | py | import tensorflow as tf
from tensorflow.keras import layers
from IPython import display
BUFFER_SIZE = 84434
BATCH_SIZE = 256
def load_image(img_path):
img = tf.io.read_file(img_path)
img = tf.image.decode_jpeg(img)
img = tf.image.resize(img, [64, 64])
img /= 255.0
return img
train_images = tf.d... | [
"yang3781590@163.com"
] | yang3781590@163.com |
a28a1f99de5f8e0478e04e8c4a6c729468f5daaa | 773a5afcd8e16f48502acc199b5f8f3c9ab75bf2 | /hwtLib/amba/axi_comp/interconnect/matrixCrossbar_test.py | 4821dab795012f48bf8733f83ab8b6eeacab60ae | [
"MIT"
] | permissive | cp45009/hwtLib | 484e84986556d14de78b0d3a1cd757010901471f | 3a00657e6c9aa9d747b38cfec485f95b05e0bc1b | refs/heads/master | 2023-08-21T19:29:41.175881 | 2021-09-14T08:47:36 | 2021-09-14T08:47:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,032 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from itertools import chain
from hwt.math import log2ceil
from hwt.pyUtils.arrayQuery import iter_with_last
from hwt.simulator.simTestCase import SimTestCase
from hwtLib.amba.axi4 import Axi4
from hwtLib.amba.axi_comp.interconnect.matrixCrossbar import AxiInterconnectMat... | [
"nic30@seznam.cz"
] | nic30@seznam.cz |
29a58413a24a3c5a6092d6ecfb0c198d28cff619 | ac83d1ddb84ecc904c73bdf779f458bd77efc98c | /src/programy/mappings/properties.py | b6d0cc9767623478b90f95996dbec8569bfd6877 | [
"MIT"
] | permissive | secrecy27/chatbot | 77829f32a15e17563f038663aebebdb71e52c5a7 | e65a753cf665a4d6d97b57703431cba5331e4f0b | refs/heads/master | 2022-07-24T08:39:57.788009 | 2020-07-16T03:55:21 | 2020-07-16T03:55:21 | 130,678,143 | 4 | 4 | NOASSERTION | 2022-07-06T19:49:14 | 2018-04-23T10:12:01 | Python | UTF-8 | Python | false | false | 1,718 | py | """
Copyright (c) 2016-2018 Keith Sterling http://www.keithsterling.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, m... | [
"secrecy418@naver.com"
] | secrecy418@naver.com |
5ae30b2efc53dd243626e95178c13a9430ae512e | 380848070205bf5cb119071eb2b32e98caca0253 | /sting test two by two/forward_error_with_weight.py | ee625c03cff1bb63022900485538feacb0543395 | [] | no_license | qynglang/Algorithm-intelligence | a3b3720ec8f2475457875d38cdde858c1805e910 | 8e410b87cea6abd18a8bcd45ed89cb5f436748b3 | refs/heads/master | 2020-07-03T03:30:53.923930 | 2019-09-17T09:25:21 | 2019-09-17T09:25:21 | 201,769,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | import numpy as np
from data_gene import forward
def foward_error (n,m,ans,N_str):
data=np.load('data_4.npy')
w1=np.load('Data/'+str(N_str)+'weight1c.npy')
w2=np.load('Data/'+str(N_str)+'weight2c.npy')
wf1=np.load('Data/'+str(N_str)+'weightf1.npy')
bf1=np.load('Data/'+str(N_str)+'biasf1.npy')
wf... | [
"noreply@github.com"
] | qynglang.noreply@github.com |
f116a22921205ee0ecee1e35573cfa9b29752b70 | 1362bc36e86f8216d405b547f5f45874ac332b1e | /Facebook/allPath.py | 41aa3ffc3f1d88056b79d631dca405e6203e2ce3 | [] | no_license | zhuolikevin/Algorithm-Practices-Python | ed5ca06758e35d910ffbea011b414b3c57fd6c7a | 1df8d93a8ecb8627899aadddb5dd5c5d0b144cdf | refs/heads/master | 2021-01-22T01:04:31.536327 | 2016-01-15T13:31:07 | 2016-01-15T13:31:07 | 32,602,632 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | # return all the path of a binary tree from root to each leaf
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def allPath(self, root):
if not root: return ""
return self.outputPath(root)
def outputPath(self, node):
... | [
"lizhuogo@gmail.com"
] | lizhuogo@gmail.com |
3833634e5c29d33754426e5d92dfcb6a031a03ce | ec20318e0ec67f795b337bc2e00018bf58906a64 | /model/GAN/LSGAN.py | 22210573a7bdc7dbbbabc6efd8ae7acb3d8fe363 | [
"MIT"
] | permissive | Parkchunyoung/ALLGANS | 9791e215749284a659af0cc162821937f7a4a774 | 9d82ea8bff9ad0109449901fac036b793d0a4811 | refs/heads/master | 2021-05-03T21:17:11.349918 | 2018-02-04T14:53:35 | 2018-02-04T14:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,864 | py | from util.SequenceModel import SequenceModel
from util.ops import *
from model.AbstractGANModel import AbstractGANModel
from util.summary_func import summary_variable
from dict_keys.dataset_batch_keys import *
import numpy as np
import tensorflow as tf
class LSGAN(AbstractGANModel):
VERSION = 1.0
AUTHOR = 'de... | [
"wnsqlehlswk@gmail.com"
] | wnsqlehlswk@gmail.com |
ec9b221ab5923268d208469fe773d2b88c05721b | da19363deecd93a73246aaea877ee6607daa6897 | /xlsxwriter/test/comparison/test_rich_string01.py | fef79e39c2c6ff3a40aa592bf39d0005bf4e35c2 | [] | no_license | UNPSJB/FarmaciaCrisol | 119d2d22417c503d906409a47b9d5abfca1fc119 | b2b1223c067a8f8f19019237cbf0e36a27a118a6 | refs/heads/master | 2021-01-15T22:29:11.943996 | 2016-02-05T14:30:28 | 2016-02-05T14:30:28 | 22,967,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTes... | [
"lealuque.tw@gmail.com"
] | lealuque.tw@gmail.com |
a00b9f60a58c56f4b530d0ae6c205f69756ca26c | 2acbc9aba6d1887158d77178832ea7786bba4c1a | /day02/part1.py | a75aa50bb858b6e327bca5bab881234371c41c46 | [
"Apache-2.0"
] | permissive | waxlamp/aoc2018 | 1970b5d79313d72c18940a11904cfd558e386352 | 5da82197cc4e697e51a3fb7fc2f7ce18872ffe8f | refs/heads/master | 2020-04-09T16:17:47.233794 | 2018-12-05T03:17:06 | 2018-12-05T03:17:06 | 160,449,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import collections
import sys
def count_letters(word):
count = collections.defaultdict(lambda: 0)
for letter in word:
count[letter] += 1
return count
def check_count(value, count):
for _, val in count.iteritems():
if val == value:
return 1
return 0
def two_three_c... | [
"roni.choudhury@kitware.com"
] | roni.choudhury@kitware.com |
2d2d02ec0412d3f18136fc747e3bbb2c3e2a57de | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /wZojj7RuwnNDL4Seh_10.py | 16bd6dcc53eeef8fc6ab1e8fd2425506714a3de8 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py |
def completely_filled(lst):
for i in range(0,len(lst)):
for j in range(0,len(lst[0])):
if lst[i][j] == " ":
return False
return True
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a7f528955c6dfa71bb9680ca76b6a4fbf389d3bb | c6d852e5842cf6f74123445d20ff03876377ae26 | /test-yqhk/test_py.py | ec270a9e09f35712f0338ac95341e7cc127a0f7f | [] | no_license | songyongzhuang/PythonCode_office | 0b3d35ca5d58bc305ae90fea8b1e8c7214619979 | cfadd3132c2c7c518c784589e0dab6510a662a6c | refs/heads/master | 2023-02-13T14:06:10.610935 | 2021-01-14T09:11:32 | 2021-01-14T09:11:32 | 327,183,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | import pytest
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.implicitly_wait(30)
driver.get("https://www.baidu.com/")
# element = driver.find_element(By.LINK_TEXT, "换一换")
# element = driver.find_element_by_xpath("//span[@class='hot-refresh-text']")
elemen... | [
"songyongzhuang9@163.com"
] | songyongzhuang9@163.com |
fe172249e5c08666c904dce18f58aff6d64ba18b | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/response/AlipayFinancialnetAuthSpaccountConsultResponse.py | 8bea6324fc3558200f516c4d76dfbe3fe967d5bb | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 2,543 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayFinancialnetAuthSpaccountConsultResponse(AlipayResponse):
def __init__(self):
super(AlipayFinancialnetAuthSpaccountConsultResponse, self).__init__()
self._displ... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
9fc487e75a734dbea1114d2880f6bfe60311493e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/3/usersdata/67/1588/submittedfiles/ex1.py | 8df8759b3c8fe034a281ac716813f445d2a8fca6 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = input('Digite a: ')
b = input('Digite b: ')
c = input('Digite c: ')
#COMECE A PARTIR DAQUI!
z = float ((b**2)-(4*a*c))
x=(-b)+(z**0.5)/(2*a)
y=(-b)-(z**0.5)/(2*a)
if z >= 0:
print x, y, "As raizes sao:"
else z < 0:
print("SRR")
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9b59bb5ef98970415628d53a68a53d6758cb0420 | 953338866e0a4af3909b74a8160d36aeb468cbb4 | /workMETRLA/Param_STGCN6.py | 621b3d018f71f14eafea7bcc8a016cf70f6c13c5 | [
"MIT"
] | permissive | yuanxw5/DL-Traff-Graph | 6acf80e7ca4ab0fd77f7105de660d1ca3e78e76c | 63f3d81ce3a750e43645c61089c5ca219bfcbfd3 | refs/heads/main | 2023-07-11T10:22:53.897701 | 2021-08-24T02:34:09 | 2021-08-24T02:34:09 | 402,801,017 | 1 | 0 | MIT | 2021-09-03T14:39:33 | 2021-09-03T14:39:32 | null | UTF-8 | Python | false | false | 16 | py | TIMESTEP_OUT = 6 | [
"jiangrh@csis.u-tokyo.ac.jp"
] | jiangrh@csis.u-tokyo.ac.jp |
e11ea16dac4e7d29087447bb7355a047fec35c56 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_snowing.py | 795ceda21ea9964ab7c9407e39bf04991cd8fbc2 | [
"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 | 228 | py |
from xai.brain.wordbase.verbs._snow import _SNOW
#calss header
class _SNOWING(_SNOW, ):
def __init__(self,):
_SNOW.__init__(self)
self.name = "SNOWING"
self.specie = 'verbs'
self.basic = "snow"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0867202bd1b325c4424424b245d7bc28d5c07a4f | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/bastion/azext_bastion/aaz/latest/network/bastion/_show.py | 27d0edbdd4ac04196086940987cae4e1eaaef221 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 8,645 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9133c409ba173774bd9fe4bbbc0c06e7a586e119 | 55668bc4e19fd9aa3caa4395add2fe73741eb844 | /551/main.py | 915e3e7f4d7685da46e2b328786b7c6576e30c78 | [
"MIT"
] | permissive | pauvrepetit/leetcode | cb8674e10b0dc6beb29e9b64a49bede857b889fd | 2fda37371f1c5afcab80214580e8e5fd72b48a3b | refs/heads/master | 2023-08-30T07:39:08.982036 | 2023-08-25T08:52:57 | 2023-08-25T08:52:57 | 151,678,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | # 551. 学生出勤记录 I
#
# 20200728
# huao
# 找子串即可
class Solution:
def checkRecord(self, s: str) -> bool:
if s.count('A') <= 1 and s.count('LLL') == 0:
return True
else:
return False
| [
"hu__ao@outlook.com"
] | hu__ao@outlook.com |
c3a4783adf6572bb386c721f901eba9ade4623ce | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/4c5b32ec7acbd861ef0858051cb1823be4b62adf-<test_invalid_interfaces>-fix.py | 2153c4a204f38eae37f5786b42b395270ca59962 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | def test_invalid_interfaces(self):
event = self.create_sample_event(platform='invalid-interfaces')
self.browser.get('/{}/{}/issues/{}/'.format(self.org.slug, self.project.slug, event.group.id))
self.wait_until_loaded(skip_assistant=True)
self.browser.click('.errors-toggle')
self.browser.wait_until('... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
94894133297ee824d0320faf19ec0527f5479432 | 489a45659476fafb66934427e42bfce3d60a0116 | /Assets/Python/CvUtil.py | 62e5845abfb8e8fd081f797d981dc24a3ecd93f2 | [] | no_license | billw2012/Caveman2Cosmos | 3a8c6ea347e75dbe2de9519fe70e6b38e0cf6dbe | 2382877536e1669972dd024ce2d0f3d0d5ffd988 | refs/heads/master | 2020-07-19T00:14:48.856106 | 2019-09-03T23:20:42 | 2019-09-03T23:21:02 | 197,989,388 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 10,539 | py | #
# CvUtil
#
import sys # for file ops
# For Civ game code access
from CvPythonExtensions import *
import ScreenResolution as SR
# globals
GC = CyGlobalContext()
CyIF = CyInterface()
TRNSLTR = CyTranslator()
# Event IDs
g_nextEventID = 5050
def getNewEventID(name=None):
"""
Defines a new event and returns its uniq... | [
"alberts2@live.de"
] | alberts2@live.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.