blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
32a773cee90e501e484861bc94bdac56f4fdcdb4
e8f252397f87b010acea9d10a1ff8391ed96379b
/tests/utils.py
ddf3814cd68cc7f30c57800ca6e6a3445f2ceb36
[]
no_license
rronakk/simple-chat-tester
87b75e0f9e8a82f0ecdb03cc2c2abf58597a8c2f
318a2c81348d236bcfdb1e372b7824d40bded30d
refs/heads/master
2021-01-01T03:51:52.009202
2016-05-15T16:16:51
2016-05-15T16:16:51
58,792,633
0
0
null
null
null
null
UTF-8
Python
false
false
1,760
py
from importlib import import_module from config.utils import ImproperlyConfigured def get_config_var(var_name, config_module): """Get specified variable from config module Args: var_name (str): The name of the variable to access from the config module object. config_module (object): t...
[ "knockronak@gmail.com" ]
knockronak@gmail.com
9c09d0d031676f69bb99df3784b5c7cc3a91d70e
00657ecc75e0529f5b77759112398bdb11e612bb
/Python3.6/264-Py3-M-Ugly Number II.py
8930b07936863fb50c031ac463f4cd020151073e
[]
no_license
Hidenver2016/Leetcode
da949cd17f8e29d6007b492719bbc97418ae9cb7
1379a6dc2400751ecf79ccd6ed401a1fb0d78046
refs/heads/master
2021-07-18T14:46:00.986614
2020-05-08T05:02:20
2020-05-08T05:02:20
152,190,601
1
0
null
null
null
null
UTF-8
Python
false
false
1,461
py
# -*- coding: utf-8 -*- """ Created on Mon Mar 18 22:41:55 2019 @author: hjiang """ """ Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example: Input: n = 10 Output: 12 Explanation: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the seq...
[ "noreply@github.com" ]
noreply@github.com
f1bf0aeeed5ff9544f77c0c7234e60f17d77bc79
778e5ba1b92e9faf2c56891e3f15e7ccf6c69457
/abcd.py
888e2b1c401de04151c10f19e858f658f5413575
[]
no_license
zerobell-lee/baekjoon-algorithm-study
1a471fa02df3bf4b90946f27f8d4c58f7df8ca8b
9ced963ee3b24e4a2876617de6714d1917a630f8
refs/heads/master
2020-03-26T12:06:47.221948
2018-09-12T05:21:41
2018-09-12T05:21:41
144,876,088
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
import sys a, b, c, d = sys.stdin.readline().rstrip().split() ab = int(a+b) cd = int(c+d) print(ab+cd)
[ "zerobell@expensive-macbookui-MacBook-Pro.local" ]
zerobell@expensive-macbookui-MacBook-Pro.local
53d5910f183a27b364dd184e2d0e21aeee1f8a84
9d86ba11b86cae46e322209a687aef7e106ad55a
/cap/manage_sif/sm-api.py
31289e8971f7cef7de821e49637f3a26d08b5c81
[]
no_license
kameringring1029/sif
f40e36f98f11a38c96ce269e56fffcd3fc22486b
1c4534f6b77ce1297585a75446990b7278f2d403
refs/heads/master
2021-01-21T14:32:11.724385
2017-07-30T03:45:43
2017-07-30T03:45:43
95,292,323
0
0
null
null
null
null
UTF-8
Python
false
false
5,803
py
#!/usr/bin/env python #-*- coding:utf-8 -*- from tweepy.streaming import StreamListener, Stream from tweepy.auth import OAuthHandler from tweepy.api import API from datetime import timedelta from flask import Flask, jsonify, abort, make_response import peewee import os, sys import MySQLdb import time import datetime ...
[ "kameringring1029@gmail.com" ]
kameringring1029@gmail.com
ba457597438b48757646a704644384886bc1cbfc
567ffade83f33f0f74b31acb8078bce3586d3315
/IndependentSkillTransfer/val.py
a1ec4f09dfb51c23f2d45ba950c59a1c509c28cd
[]
no_license
yangyi0318/Learning-Independent-SKills
8c36fa236353c2694b2bf9653b45f05a5a9798d4
de13233ea376b8f03d128d0d815f7afb5d25e7fe
refs/heads/master
2022-09-29T03:29:17.664044
2020-06-04T04:09:00
2020-06-04T04:09:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,229
py
import time import joblib import os import cv2 import os.path as osp import torch import numpy as np import torch.nn.functional as F #from fireup import EpochLogger from utils.logx import EpochLogger def render_frame(env, length, ret, primitive_name, render, record=False, caption_off=False): if not render and not...
[ "tqxaccounts@163.com" ]
tqxaccounts@163.com
9544cbbc6bb48a09e347d92844c17726d2e71c59
41e2cf24f0ff3a11a98bb00e03c598dde35452c4
/reportview/migrations/0011_auto_20180727_1857.py
1460d461da8f7a8e002282c032bb1794a19e8855
[]
no_license
anushamokashi/mob
f5dbedc729073092f94323feca6d95dee24087a2
37bc0eb033bc23d37e9d4fb9bb8b2b456553ff7f
refs/heads/master
2020-04-24T08:36:56.008212
2019-02-21T09:09:04
2019-02-21T09:09:04
171,810,613
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-07-27 13:27 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reportview', '0010_auto_20180725_1515'), ] operations = [ migrations...
[ "anusha.mokashi@gmail.com" ]
anusha.mokashi@gmail.com
edcca5904218b4ec6b183a531fe5bb3b5808f806
33a2061c47b79c8b3486b0641695a4bc43e98d01
/run_task_infinite.py
c59c4569e01025f31771bdbc2455595d0261711a
[]
no_license
nixinwang/padm
5292fffc4eae0d40ddc5a5261d69c4aeefac4a54
1443ba18f91487dfa16e2d5cc5e46a310010b5ac
refs/heads/master
2021-01-23T04:53:49.415541
2017-04-05T17:46:32
2017-04-05T17:46:32
86,252,545
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
import os import argparse import time import signal import sys parser = argparse.ArgumentParser() parser.add_argument('--cmd') parser.add_argument('--num') args = parser.parse_args() curr_dir = os.path.dirname(os.path.abspath(__file__)) pare_dir = os.path.dirname(curr_dir) cmd = f"python {os.path.join(curr_dir, 'run...
[ "nixin_wang@keysight.com" ]
nixin_wang@keysight.com
9466b21de1d9b7a2824a0e619a7509c314f821cf
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/bpmn/models/data_output_association.py
c0dd7b339bab9f4979a5cb5433bfb5f15dd78b02
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
346
py
from dataclasses import dataclass from .t_data_output_association import TDataOutputAssociation __NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL" @dataclass class DataOutputAssociation(TDataOutputAssociation): class Meta: name = "dataOutputAssociation" namespace = "http://www.omg.org/...
[ "chris@komposta.net" ]
chris@komposta.net
2fc8efe8ecc8f1c97283686c08bd1e6c5307c470
8fc693dfddf9f034d8ae3b65acd2bf506195eb14
/recordit/src/recordit/ros_recorder.py
cbaa79c5fd2a2359b3e015681d4a979988e19197
[ "BSD-3-Clause" ]
permissive
ravankit/robot_recorder
4ef653b952fa4160db198f3a9185afe743613285
d9cc3edc99216653368d2bb679b7d1619142da8e
refs/heads/master
2022-01-10T13:42:12.084549
2019-01-24T19:51:19
2019-01-24T19:51:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,698
py
#!/usr/bin/env python import rospy from sensor_msgs.msg import JointState from tf.msg import tfMessage from std_srvs.srv import Trigger, TriggerResponse from urdf_parser_py.urdf import URDF from recordit.recorder import Recorder, sm from recordit.track import Track, LinJTrack, RotJTrack def resp(srv, *argv, **kwargs...
[ "jonathan.hechtbauer@ipa.fraunhofer.de" ]
jonathan.hechtbauer@ipa.fraunhofer.de
45ebacc913f5ce9cdf2fa3cc8fe300130f9e2f9b
b233a9abbf0c88ae0dcb1bb1d22d28403414c813
/jira/venv/bin/pbr
b9c8d7f5ac5ddea76e71a9355ae5fd7137de0757
[]
no_license
suntwin/pythonProjects1
238a8a4f6585ecac656349a06f02a763518e9cd5
f0e34e4bced916fea7dc6520f14f0883c6d8b961
refs/heads/master
2022-12-11T08:28:53.032191
2020-01-01T09:13:57
2020-01-01T09:13:57
231,194,980
1
1
null
2022-12-08T07:02:00
2020-01-01T09:03:34
Jupyter Notebook
UTF-8
Python
false
false
262
#!/Users/niteshchawla/Ownstuff/pythonProjects/jira/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pbr.cmd.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "niteshchawla81@gmail.com" ]
niteshchawla81@gmail.com
68081e667aa5d9084f26651da6f5b461c9e58e08
09fc8ea88d7fcb512d137e51f0b7817f9dba1f98
/utils/gnuplot/__init__.py
77cabb444bb8aeb175943754c65cdba79c8c4a94
[]
no_license
amphybio/main
63aa0dd3925865b336f863860342f580c2e090dd
8e73824545e979824860ebd9486f32d4c99bf638
refs/heads/master
2023-04-30T16:16:13.107788
2023-04-20T15:42:23
2023-04-20T15:42:23
187,711,891
0
1
null
null
null
null
UTF-8
Python
false
false
995
py
import readline, subprocess, tempfile def gnuplot(main_function, params, args, legends, plot_range=''): PLOT_CMD = ', '.join(['"{{data}}" using 1:{} title "{}"'.format(i+2, l) for i, l in enumerate(legends)]) PLOT_CMD = 'set style data lines; set title "{title}"; plot ' + plot_range + ' ' + PLOT_CMD PLOT_T...
[ "leonardo.reis.gama@gmail.com" ]
leonardo.reis.gama@gmail.com
3d9bac7ebd75b1c593d9975aa021e18c09291543
3a70e913ea103967ac386716eb41e0e103570494
/python/rename.py
b655b81cfc447e9504934e141b7f5da33bf7749b
[]
no_license
lxwAsm/myprojects
82bfb857aaa855afb8722f770b02e68abb458ab7
e9c413d7dca9b8f792c7b3b3668b8a0b26982bc5
refs/heads/master
2021-06-15T10:32:14.383432
2021-03-10T00:00:04
2021-03-10T00:00:04
157,042,266
8
8
null
null
null
null
UTF-8
Python
false
false
2,435
py
import filetype import os,sys class Color: @staticmethod def _wrap_colour(colour, a, prints): a = colour + '{}'.format(a) + '\033[0m' return a @classmethod def blue(cls, a, prints=True): return cls._wrap_colour('\033[94m', a, prints) @classmethod def bold...
[ "noreply@github.com" ]
noreply@github.com
4412a3d5e35e6e295c457da396eeb6297cc03858
e88a1c909ee3c60e0e74fea09d7ed2d4ce545d89
/djchat/views.py
09055cd84742d41a118207e59da6f64c0ff5daf5
[]
no_license
Faulik/jumpdie-backend
b74c042edd6f2e3d2bd870e395bfeae22370fa5c
292e7981c429060204c0f789b53f17288671625b
refs/heads/master
2021-01-23T21:35:22.129175
2015-08-19T08:47:09
2015-08-19T08:47:09
39,410,549
0
0
null
null
null
null
UTF-8
Python
false
false
4,753
py
import time import ujson as json from pulsar import HttpException from pulsar.apps import ws from pulsar.apps.data import PubSubClient, create_store from pulsar.utils.string import random_string def home(request): from django.shortcuts import render_to_response from django.template import RequestContext ...
[ "faullik@gmail.com" ]
faullik@gmail.com
e73aff3599ba2371422b1ab8a30e84e8a98a2ad1
74649c1220c68ad0af79e420d572e3769fcd7a53
/_unittests/ut_cli/test_cli_validate_bench_doc.py
4a3937dc7771228ee5b515f55a9fc32778a4db1d
[ "MIT" ]
permissive
sdpython/mlprodict
e62edcb428700cb2c4527e54e96431c1d2b36118
27d6da4ecdd76e18292f265fde61d19b66937a5c
refs/heads/master
2023-05-08T10:44:30.418658
2023-03-08T22:48:56
2023-03-08T22:48:56
112,469,804
60
13
MIT
2023-04-19T01:21:38
2017-11-29T11:57:10
Python
UTF-8
Python
false
false
1,157
py
""" @brief test tree node (time=42s) """ import os import unittest from pyquickhelper.loghelper import BufferedPrint from pyquickhelper.pycode import ( ExtTestCase, get_temp_folder, ignore_warnings) from mlprodict.__main__ import main class TestCliValidateBenchDoc(ExtTestCase): @ignore_warnings(UserWarn...
[ "noreply@github.com" ]
noreply@github.com
66bbbe4eb13c7a817b52710521029b6a41879241
9659b699bd042cc75dac38536b597aeb06bb5507
/CursoPython/Exercicios/Ex072.py
b5bbdcb0d0043be8c2f88a2a1407920f5df63a40
[ "MIT" ]
permissive
LuccasTraumer/pythonRepositorio
2a0306925469e0730cc448c864d96a0ce670de84
52d4455cea0615c8eba7ab4c6224ce3350bbcf47
refs/heads/master
2020-08-03T10:49:45.094806
2020-05-11T21:06:15
2020-05-11T21:06:15
211,724,995
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
''' Crie um Programa que tenha uma Tupla totalmente preenchida com uma contagem por extenso, de zero a vinte . Seu Programa deverá ler um Numero pelo Teclado(Entre 0 e 20) e mostralo por extenso ''' numeros = ('Zero','Um','Dois','Tres','Quatro','Cinco','Seis','Sete','Oito','Nove','Dez','Onze','Doze','Treze','Catorze',...
[ "lucas.jeesus@hotmail.com" ]
lucas.jeesus@hotmail.com
93e9c504368a9b10d97091878fd8aa7ac4de53c2
c6912ffcc38ccdb274b8296bb15f50422b53b621
/icfp19/src/micro_tf.py
870f9120b007be4b49360b068a5fa44512076fc4
[]
no_license
amirsh/autodiff2
5a9b8a22911332f07577c3436c8bc92e31648930
3080822441e988c0802409e8319587a57eff8bec
refs/heads/master
2020-12-24T11:05:55.167186
2019-06-18T14:51:56
2019-06-18T14:51:56
73,205,725
2
0
null
2016-11-15T20:09:09
2016-11-08T16:34:42
C
UTF-8
Python
false
false
6,157
py
#!/usr/bin/python import numpy as np from numpy import linalg as LA import datetime import math import cProfile import pstats from scipy.spatial import distance import sys import warnings import tensorflow as tf from tensorflow_forward_ad import forward_gradients from tensorflow.python.ops import array_ops from tensorf...
[ "amir.shaikhha@cs.ox.ac.uk" ]
amir.shaikhha@cs.ox.ac.uk
a393f96efd6ca640812ec860049aaabe807435c5
17005f07449dfedf325fb6d0f78d6daf1f6f0f3a
/HashTable/1078_occurences_after_bigram.py
750f02ab63dd3ea240a929a9334b8d8cac49e063
[]
no_license
harshil1903/leetcode
27e2cd0698dd7f397b05f0201801201dcd27f66d
e69a94799e8e2bd12d4cd54cae81aba02c448730
refs/heads/main
2023-06-30T23:09:53.922665
2021-08-08T05:51:30
2021-08-08T05:51:30
351,987,509
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
# 1078. Occurrences After Bigram # # Source : https://leetcode.com/problems/occurrences-after-bigram/ # # Given words first and second, consider occurrences in some text of the form "first second third", where second comes immediately after first, and third comes # immediately after second. # # For each such occurrenc...
[ "harshilpatel1903@gmail.com" ]
harshilpatel1903@gmail.com
dcd3a680cec31678caf984d5b32758eb0004b9e1
77057e5e23c932620c2ce68aa9f909a39df01233
/source.py
c1a5ceb894f37c9cc21bd687e690159f5fed4316
[]
no_license
shivamraj74/Voice-Recognition-Bot
e56648554cf6719b982e2db1d62ffd0475699c31
39b06282dad1f0d3a79124c4c1105e2e39db7d7e
refs/heads/master
2020-08-29T11:30:24.861915
2019-10-28T10:20:22
2019-10-28T10:20:22
218,019,390
0
0
null
null
null
null
UTF-8
Python
false
false
3,286
py
import pyttsx3 #pip install pyttsx3 import speech_recognition as sr #pip install speechRecognition import datetime import wikipedia #pip install wikipedia import webbrowser import os import smtplib engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') # print(voices[1].id) #voice can be changed engine....
[ "noreply@github.com" ]
noreply@github.com
41cf0234f74a4c5db75e9e450d7af6fb0a18a119
ae1adc524d588a58ee165c3bae7583d7cb673cf8
/tests/PokemonRouteSearch_test.py
7405de0dde7754ebb414a8f18ac66354240932db
[]
no_license
MasonOrr/PokemonRouteSearch
a482ce9dcdd98f2dc34adf8ce6532e4309988077
65e4f331f3fe1df69c88df24c889d4a19fdbbabd
refs/heads/main
2023-08-22T07:48:12.474251
2021-10-26T08:27:13
2021-10-26T08:27:13
414,071,771
0
0
null
2021-10-22T04:43:40
2021-10-06T04:46:20
Python
UTF-8
Python
false
false
2,139
py
import pytest from _pytest.monkeypatch import MonkeyPatch from PokemonRouteSearch.response_handler import * class TestResponseHandler: def test_get_response(self): print_patch = MonkeyPatch() with pytest.raises(SystemExit): case_1 = ResponseHandler() print_patch.setattr('b...
[ "68841584+MasonOrr@users.noreply.github.com" ]
68841584+MasonOrr@users.noreply.github.com
82bce292d04a6d950713721349f909b2f37b72d8
3af2191eb4ed5f45517d1713ecf45f350a448ef9
/kivystudio/components/sibebar/fileexplorer/filewidgets.py
a30bc42d258e5ce31947574df8335187a2f80f1c
[ "MIT" ]
permissive
mcroni/kivystudio
773ba00e3af5f9768137e604b2ec29207b20a7a5
750d64b3a04f6059463649957554aba6dca1a17d
refs/heads/master
2020-06-18T11:22:09.319589
2019-08-13T01:26:19
2019-08-13T01:26:19
196,287,082
0
1
MIT
2019-07-10T23:20:43
2019-07-10T23:20:43
null
UTF-8
Python
false
false
1,541
py
from kivy.uix.boxlayout import BoxLayout from kivy.lang import Builder from kivy.properties import ListProperty, StringProperty, BooleanProperty from kivystudio.tools.iconfonts import icon from kivystudio.behaviors import HoverBehavior import os class FileWidgetBase(HoverBehavior, BoxLayout): hover_color = List...
[ "avour123@gmail.com" ]
avour123@gmail.com
53cbd8afa1aa54169d0167814f952cff3785410a
c331f8a7b4f3ad82ead937cb623305fd1d125f0e
/ex_11-9.py
eb47ad2fbfe7b38ffc584e68a0cbdc34da45d4aa
[]
no_license
Sadhana59/thinkpython
a89a0aed2d51e51ef93d7a91bb6a8499ded8931e
81f84eb7881be9d6b03b14a7a549dcef6037a8ae
refs/heads/main
2023-02-11T05:48:21.410672
2021-01-16T07:01:09
2021-01-16T07:01:09
325,052,061
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
#ex 11.9 l1=[1,4,8,9,1] def has_duplicates(l2): d1 ={} for item in l2; d1[item] = 1 +d1.get(item, 0) if d1[item] > 1: return True return False print(has_duplicates(l1))
[ "noreply@github.com" ]
noreply@github.com
724cc2812ef2925248a2d0403762eb7599764b22
0a3e24df172a206a751217e5f85b334f39983101
/python_etc_3/abstract.py
e0ea5f6e6873c182904d30b94f58820697f27011
[]
no_license
yeboahd24/python202
1f399426a1f46d72da041ab3d138c582c695462d
d785a038183e52941e0cee8eb4f6cedd3c6a35ed
refs/heads/main
2023-05-06T04:14:19.336839
2021-02-10T02:53:19
2021-02-10T02:53:19
309,841,303
4
0
null
null
null
null
UTF-8
Python
false
false
685
py
#!usr/bin/evn/python3 import abc class Tombola(abc.ABC): @abc.abstractmethod def load(self, iterable): """Add items from an iterable.""" @abc.abstractmethod def pick(self): """Remove item at random, returning it. This method should raise `LookupError` when the instance is empty.""" def lo...
[ "noreply@github.com" ]
noreply@github.com
681fb435c067800e5628aa2bfd84a291d1831bd6
149bb5b9f0ad70605dea16654b7da8983be556a3
/tn.py
4ae7e1b9503147da9cdcf8677496697bf3c5ae92
[]
no_license
Danielllll0821/py_scripts
3fbd20395837b740a8fcc4b498d5051b13266489
2fbe66eddd891d135ffd8ca7f40f7723467b25f6
refs/heads/master
2021-09-02T01:26:23.944075
2017-12-29T16:48:41
2017-12-29T16:48:41
114,957,685
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
from telnetlib import Telnet tn = Telnet('134.224.1.10', 23) tn.read_until(b'Username:') tn.write(b'cisco') print(tn.read_all()) tn.write(b'\n') tn.read_until(b'word') tn.write(b'cisco@123') tn.write(b'\n') tn.read_until(b'>') tn.write(b'show ver') tn.write(b'\n')
[ "guozhidan72@gmail.com" ]
guozhidan72@gmail.com
d5cef35ef32da1b2f8e8ae9cb2ab5ab3391634ea
cea45a2355c8b243a79c4c179c98a04e90e98ff7
/astropy/table/tests/conftest.py
65143fd816accb2c0754b2e8130f6ba656cf8cbe
[]
no_license
shanmbic/astropy
408cfa45511cac9c64dade6350d6ba9adeb567ad
e8a6546dd210ade743eb663dd1c276ca2fd054b4
refs/heads/master
2021-01-15T17:20:47.626581
2014-04-03T16:17:03
2014-04-03T16:17:03
17,769,433
1
0
null
null
null
null
UTF-8
Python
false
false
3,111
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ All of the py.test fixtures used by astropy.table are defined here. The fixtures can not be defined in the modules that use them, because those modules are imported twice: once with `from __future__ import unicode_literals` and once without. py.test...
[ "mdboom@gmail.com" ]
mdboom@gmail.com
a88a1a1ab247a5f750af8f9e792c8ecee63957ab
52a61caff0aeb434c32e5657e38762643e9f57dd
/Basics/TwoDimensionalLists(arrays)/is_matrix_symmetric.py
98436819ed551b845d293a2907ee30e2f2c3f3d4
[]
no_license
AndrewErmakov/PythonTrainingBasics
1480a6378d1ec59884760e2b3014ccc3d28f058f
639e15bbfc54da762cb9e366497754cfece30691
refs/heads/master
2021-06-10T15:57:58.682335
2021-03-25T13:37:30
2021-03-25T13:37:30
153,678,760
0
0
null
2018-10-30T13:52:51
2018-10-18T19:45:47
Python
UTF-8
Python
false
false
288
py
size_list = int(input()) numbers_list = [[int(j) for j in input().split()] for i in range(size_list)] answer = "yes" for i in range(size_list): for j in range(size_list): if numbers_list[i][j] != numbers_list[j][i]: answer = "no" break print(answer)
[ "andrew.67@list.ru" ]
andrew.67@list.ru
4dc6490ab4974cbfbfc5bd090f1843573a292657
c46767aef4d1fd18acdedec2c1bf3568176c46a3
/passive_scan.py
887b9f0ff95fb83e3ffd183ed301ebd5beeb57ab
[]
no_license
jdacode/python-owasp_zap-passive_scan
75463c29e43624e594835b6f66e2c1bade145743
63a18891932ce5e7e82d36f73972e59d18086392
refs/heads/master
2022-06-21T10:20:57.746438
2020-05-10T17:09:28
2020-05-10T17:09:28
262,836,231
0
0
null
null
null
null
UTF-8
Python
false
false
1,438
py
# Start by loading the required modules: #!/usr/bin/env python import time from pprint import pprint from zapv2 import ZAPv2 # RUN FIRST OWASP ZAP ON YOUR COMPUTER # GO TO MENU>TOOLS>OPTIONS>API # THERE YOU CAN FIND Api Key AND OWASP ZAP LOCAL ADDRESS # The value of api must match api.key when running the daemon apiK...
[ "fgf" ]
fgf
e87bb97c7df0a4427908d7f0aaf88841526d6ba8
31a0b0749c30ff37c3a72592387f9d8195de4bd6
/rllib/agents/ars/tests/test_ars.py
86ccab7f45a7af95c28c303d749585d3ca419ddc
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
longshotsyndicate/ray
15100bad514b602a3fa39bfe205288e7bec75d90
3341fae573868338b665bcea8a1c4ee86b702751
refs/heads/master
2023-01-28T15:16:00.401509
2022-02-18T05:35:47
2022-02-18T05:35:47
163,961,795
1
1
Apache-2.0
2023-01-14T08:01:02
2019-01-03T11:03:35
Python
UTF-8
Python
false
false
1,353
py
import unittest import ray import ray.rllib.agents.ars as ars from ray.rllib.utils.test_utils import framework_iterator, check_compute_single_action class TestARS(unittest.TestCase): @classmethod def setUpClass(cls): ray.init(num_cpus=3) @classmethod def tearDownClass(cls): ray.shutd...
[ "noreply@github.com" ]
noreply@github.com
118d3135935316edb19185c00d3aa4ff4e899ca4
c59dbdf544ad9f699e17f0fdc95f662c9cfac08b
/model_src/train
fa4c9711ad72cc98923368e76d3726f66f7c5f50
[ "Apache-2.0" ]
permissive
jpbarto/tf_sagemaker_docker
a6fa4272be37065ddc01cbc5e80d82f5c068bac4
d917bb02a161a8c71b76b29f8ca68c8d26d69229
refs/heads/master
2021-01-25T11:55:36.406440
2018-03-13T22:18:30
2018-03-13T22:18:30
123,441,365
4
0
null
null
null
null
UTF-8
Python
false
false
3,768
#!/usr/bin/env python # Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
[ "jason.p.barto@gmail.com" ]
jason.p.barto@gmail.com
cf2ec47e3c2e72d3926a178c270e4347044b849f
fd02c0c6a08b3d373ba3bbbf92a6a609243660f8
/eeg_random_forest/learning_machines.py
0d4487320385eec384b0884ec04934de0b9044ab
[]
no_license
MoonKuma/RandomForest_EEG
7e7091b9e3c35650251ec28e226cae19335fcbcf
11f35d9ea2e036b74f4f163b531c21db603cf784
refs/heads/master
2020-04-22T04:53:26.740514
2019-02-24T15:31:59
2019-02-24T15:31:59
170,138,667
1
0
null
null
null
null
UTF-8
Python
false
false
2,885
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @File : learning_machines.py # @Author : MoonKuma # @Date : 2019/2/23 # @Desc : including several learning models used in this example from sklearn.ensemble import RandomForestClassifier,RandomForestRegressor from sklearn.tree import DecisionTreeClassifier,Decisio...
[ "41893900+MoonKuma@users.noreply.github.com" ]
41893900+MoonKuma@users.noreply.github.com
795924e8d6d7747d517979c62b0bfeaca17ca24e
d11a02ebeb529be45c25f3fb20d6a069f8c9cb18
/models/Direction.py
d60f454c7d216452d747915843314fe7e234642b
[]
no_license
webclinic017/sample_repo
5f65d33d9311c95da42c486ac75c5fb6c05e2375
24fc469fff1a74f032631e888319a5c5ed2d5a76
refs/heads/main
2023-08-04T21:25:45.442585
2021-09-20T01:54:40
2021-09-20T01:54:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
50
py
class Direction: LONG = "LONG" SHORT = "SHORT"
[ "sathvisiva@Sathvis-MacBook-Air.local" ]
sathvisiva@Sathvis-MacBook-Air.local
4a980dc09b38613ced1bd03bb23fe33737936caa
45e3853975ff91c1d0e1e083d970d692fa974fb7
/all_yankong/temp.py
28aef641126d91ca8241443d00f66d88d1f84407
[]
no_license
guweixin/my-python
ea7541a459e2d0923d6838213c50092b038ddd31
bb5fe4b6210b2c2f63a51c2a64b92b2e23d99fe2
refs/heads/master
2021-07-15T06:06:31.906700
2020-08-05T08:05:19
2020-08-05T08:05:19
185,959,842
1
0
null
null
null
null
UTF-8
Python
false
false
844
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import os rootdir="/mnt/sources/gkj/" labelList={} cnt=0 for line in open("/mnt/sources/gkj/z_label/123.txt"): line = line.strip('\n') labelList[line]=cnt savepath1=line+" "+str(cnt) with open('/mnt/sources/gkj/z_label/t.txt', 'a') as f: ...
[ "guweixin@em-data.com.cn" ]
guweixin@em-data.com.cn
49c41e17e42b030290793483f3f8500a9b8f5a36
7cc027984dde00b8648458525d0b217fb43c1035
/benchmark/driver/sparkgpu_data_receiver_python.py
7a8300602a1a89c733b817ec2e74c0708a9cbf7b
[]
no_license
dcslab-edge/edge-profiler
7d9f66aa0c5dc516e9d37fc6c7414e064d6027ec
72912a8a3e20b118ec312782274bf626848967a7
refs/heads/master
2021-07-05T03:26:11.133209
2019-09-19T04:17:04
2019-09-19T04:17:04
145,846,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,936
py
# coding: UTF-8 import asyncio import os import shlex from typing import Optional, Set import time from time import sleep import psutil from benchmark.driver.base_driver import BenchDriver from subprocess import Popen class SparkGPUDataReceiverPythonDriver(BenchDriver): _benches: Set[str] = {'SPReceiver'} b...
[ "ysnam@dcslab.snu.ac.kr" ]
ysnam@dcslab.snu.ac.kr
74f1da2a7b5c3ce4936a9804435713d5c6404f27
7d489c40325f2d9cd14b901248908161c7d874d7
/genome_sequencing/assemble_genomes/maximal_non_branching_paths.py
0f3e4d144db506a9479660d90f5209ab498a27b4
[]
no_license
kiselevskaya/Bioinformatics
cfd4669eb290c7f9318d439f35a8559c2cf11c44
22b2b86ac94ca4ee8187fd60f327c70e90465d17
refs/heads/master
2022-11-27T11:38:43.404937
2020-08-05T11:04:24
2020-08-05T11:04:24
244,355,466
0
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
from string_reconstruction import * from eulerian_cycle import * def maximal_non_branching_paths(graph): numbers = False indegree = sum(list(graph.values()), []) pathes = [] for key, value in graph.items(): if indegree.count(key) != 1 or len(value) != 1: for val in value: ...
[ "kiselevskaya.viktoriya@gmail.com" ]
kiselevskaya.viktoriya@gmail.com
c4ecf912e237155793665bdbdc8870e91fff542a
30c60a23d646baa15aa29b7b6b24d630204a7160
/app/routes/cammie.py
e7e9cf7c7efe9c8adcf506117892a5c61ca2ef24
[ "MIT" ]
permissive
fbegyn/mattermore
4658e137ce106dca884ef574e53756f59e78e723
7efcc0c59d7550957550fe9b22e91324970ec0f6
refs/heads/master
2023-07-12T05:04:51.241355
2022-12-26T17:59:40
2022-12-26T17:59:40
188,922,257
0
0
null
2019-05-27T23:47:24
2019-05-27T23:47:24
null
UTF-8
Python
false
false
584
py
from flask import Blueprint, request import requests from app.util import mattermost_response, requires_regular, requires_token cammie_blueprint = Blueprint("cammie", __name__) @cammie_blueprint.route("/cammiechat", methods=["POST"]) @requires_token("cammiechat") @requires_regular def cammiechat(user): headers...
[ "ulens.tibo@gmail.com" ]
ulens.tibo@gmail.com
81c2d118d20c8e99ca595f9a35b345a98b2fe6f0
ef5f98cdaca58bc9c1ba1a94a1ccf7bebc3f1260
/is_analyse_cbn.py
03e5d482bfbc35d4dd74e9ddc63f7ad70a85fab2
[ "MIT" ]
permissive
tonygalmiche/is_plastigray
512ad911b3118c6aa2aab49f64ad7871fb80f195
774feea510fc0854776016dbbbc7472ebd1248c5
refs/heads/master
2023-07-25T21:49:56.284434
2023-07-18T13:15:28
2023-07-18T13:15:28
24,811,999
1
0
null
null
null
null
UTF-8
Python
false
false
52,678
py
# -*- coding: utf-8 -*- from openerp import models,fields,api import time import datetime from collections import OrderedDict import tempfile class product_product(models.Model): _inherit = "product.product" @api.model def analyse_cbn(self,filter=False): cr, uid, context = self.env...
[ "tony.galmiche@infosaone.com" ]
tony.galmiche@infosaone.com
f3891d34ffa38f4e9b4657ca67908f7c027cb34e
2fdd7409e7e4307bcdb574ebd40793535d6f08d2
/π.py
186a3202e2fa1f684ab9c36d9c5cc4ddc50100aa
[]
no_license
Katerinajames/calculate_p_python
b51e82deb6ee93f32ab46ec136cb9bb95cc5f6e7
9c0cfd7f889d78816c2b7327e7709e6a7d909674
refs/heads/main
2023-06-22T15:51:41.894205
2021-07-24T08:39:08
2021-07-24T08:39:08
389,045,238
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
p=0 for i in range (1,2000): if ( i % 2 == 0): p = p - (4.0 / (2 * i - 1)); else: p = p + (4.0 / (2 * i - 1)); print"The value of p is %.2f "%(p)
[ "karitsa34@yahoo.gr" ]
karitsa34@yahoo.gr
3646c74c02f5a8d3bea35a0894842e499e4e3ff4
f34d940bf35cd86ba3dc3c947e237f65297ca91d
/bookmark/admin.py
e1500b30330910c23b4a296d99468b16163dee5e
[]
no_license
yellowmelon84/bookmark
b13727c6bb55e144dc7afeac2661714441c1aa65
43a112d5e5e9c800589f42d0e8f454685b2f34c1
refs/heads/master
2023-07-22T12:54:47.863775
2021-09-03T10:20:47
2021-09-03T10:20:47
402,714,058
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
# 모델을 관리자 페이지에 등록해 관리할 수 있도록 하는 역할과 관리자 페이지 내용을 변경하는 코드 from django.contrib import admin from .models import Bookmark # Register your models here. admin.site.register(Bookmark)
[ "ymelon@naver.com" ]
ymelon@naver.com
f8e180729c3092f31dd14b405f694eda6ea55dd0
549270020f6c8724e2ef1b12e38d11b025579f8d
/recipes/msgpack-c/all/conanfile.py
eac066163d08578e6216ffddb784ee899746d0ca
[ "MIT" ]
permissive
conan-io/conan-center-index
1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43
3b17e69bb4e5601a850b6e006e44775e690bac33
refs/heads/master
2023-08-31T11:34:45.403978
2023-08-31T11:13:23
2023-08-31T11:13:23
204,671,232
844
1,820
MIT
2023-09-14T21:22:42
2019-08-27T09:43:58
Python
UTF-8
Python
false
false
3,964
py
from conan import ConanFile from conan.tools.files import get, copy, rmdir, save from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout from conan.tools.scm import Version import os import textwrap required_conan_version = ">=1.53.0" class MsgpackCConan(ConanFile): name = "msgpack-c" description = ...
[ "noreply@github.com" ]
noreply@github.com
dc3823b472ec1efda8ace8323c6413a475ea243d
19554a14f67ff9b51ffee827bce7efcdd59a6456
/flask/neighbors.py
14f21e3c740e22e383d8850a3021d4d3504686a3
[]
no_license
yyyyxzz/lan-neighbors
768fdd43da740a58e499c69b07daaf11aecc9c3d
18d316e14e5fcac33f4b2bc538c7a586b8286ace
refs/heads/master
2020-05-25T05:30:55.864174
2019-01-18T07:21:24
2019-01-18T07:21:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
from time import sleep from selenium import webdriver from selenium.webdriver.common.keys import Keys from db import write_log options = webdriver.ChromeOptions() options.add_argument("headless") def find_neighbors(): driver = webdriver.Chrome(chrome_options=options) driver.get('http://192.168.1.1') slee...
[ "yuanzhou.cq@gmail.com" ]
yuanzhou.cq@gmail.com
b82fb77ded2bb7c6051f2b830d76b984f6782a5c
352457b4ce9e0cb66c2bc1a2bc461d6a48626cf2
/views/map_view.py
e4c56d19272a87dbef589705cd988e1fc4a4d42d
[ "MIT" ]
permissive
michaelbradley91/sokoban
78c73041d7ef528354f4572238f49ce00a1c4cc5
9a425df01ea68285922edc1c5053376e822db94d
refs/heads/master
2021-07-05T03:25:54.130222
2020-01-01T17:38:26
2020-01-01T17:38:26
230,138,176
0
0
MIT
2021-04-20T19:06:53
2019-12-25T18:12:57
Python
UTF-8
Python
false
false
7,707
py
from typing import List, NamedTuple, Optional import pygame from pygame.event import EventType from app_container import AppContainer from constants.colours import YOU_WIN_COLOUR, BACKGROUND_COLOUR from constants.direction import Direction, direction_sorter, direction_to_coordinate, try_get_move_from_key from constan...
[ "michael.bradley@hotmail.co.uk" ]
michael.bradley@hotmail.co.uk
2427fd6a2189ba78c0a3784a230ec77a96a966f3
120b42f3c61e30218966ebf5a6e218540987ecbf
/lifelonglearning/urls.py
4ec14b4bd41c5f560560c40372e69c3054429d9d
[]
no_license
theag/life-long-learning
4d6f819c9462e1062b919b8e85945efe844bbc89
91d4e249cbb7ab171d486330b71b6f36702702a5
refs/heads/master
2021-02-15T22:15:00.003554
2020-03-12T17:06:02
2020-03-12T17:06:02
244,935,767
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
from django.contrib import admin from django.urls import include, path urlpatterns = [ path('', include('members.urls')), path('admin/', admin.site.urls), ]
[ "TGegenberg@nbpower.com" ]
TGegenberg@nbpower.com
0f1f02cfb03478dde7b76f06db69d5131453dbc2
65daafbc2798e9e6af0e13f5eb316f68b5dae045
/setings.py
cb547a934868dc34ec0948d80a392f85f57a759e
[]
no_license
sizanosky/JogoDaForca
125988e0a040bc041afbb51538e72dfb5497b21a
faf1d19a3c4f253767934070b9cb33eb320b50f2
refs/heads/master
2023-05-03T15:48:57.041299
2021-05-26T05:14:38
2021-05-26T05:14:38
370,248,576
0
0
null
null
null
null
UTF-8
Python
false
false
77
py
# Constantes TENTATIVAS_ADICIONAIS = 1 ARQUIVO_PALAVRA_SECRETA = 'dados.txt'
[ "fabricio_sizanosky@hotmail.com" ]
fabricio_sizanosky@hotmail.com
6d482b7fc6f41fd53b8ad4099680500cf4ef92cc
0da9d2a15305421e224795cdf078838bd97eccc8
/Algorithms/Strings/SeparateTheNumbers.py
3ca2f20969d9e354e5da69e9dfad840c9e4c0624
[]
no_license
LysanderGG/HackerRank
ac1300eea2f4e00f7d4e5084b5d570aa6fae0cfb
039ec4414612cff84a941a7e7538fb36e10d427f
refs/heads/master
2021-01-21T16:09:59.174131
2017-07-09T12:33:32
2017-07-09T12:33:32
91,877,258
1
0
null
null
null
null
UTF-8
Python
false
false
468
py
#!/bin/python3 import sys # Build a string of length at least n starting with i def build_str(i, n): res = "" while len(res) < n: res += str(i) i += 1 return res def solve(s): for i in range(1, len(s) // 2 + 1): first = int(s[:i]) if build_str(first, len(s)) == s: ...
[ "lysandergc@gmail.com" ]
lysandergc@gmail.com
1fd696e45fb5726efd5b117b9f61f5d5cc7ec48f
a93009a60aa66ca7c94d5225855620318c98d6fc
/vimfiles/plugin/voom/voom_mode_python.py
fb6810e015da24bb45fac573df46d1206cc9902a
[]
no_license
yulk/yulk_vim
effd19ded78633b32ae420f7ddca5e0b006a46f9
b2882525189691c10a7faa64220954d480f1265c
refs/heads/master
2021-03-12T22:38:40.659342
2012-02-19T05:32:23
2012-02-19T05:32:23
3,483,363
0
0
null
null
null
null
UTF-8
Python
false
false
7,437
py
# voom_mode_python.py # Last Modified: 2011-02-20 # VOoM (Vim Outliner of Markers) -- two-pane outliner and related utilities # plugin for Python-enabled Vim version 7.x # Website: http://www.vim.org/scripts/script.php?script_id=2657 # Author: Vlad Irnov (vlad DOT irnov AT gmail DOT com) # License: This program is free...
[ "likeyu@gmail.com" ]
likeyu@gmail.com
89b6b4fc406b6c90cbbed84165b991b050180c1d
70ba88f723cba6ea0affc98a8026ac3350e1d754
/config.py
3a647974e91d16403cc15b4c78116d60b26044f9
[ "MIT" ]
permissive
shashankgroovy/HipsterStore
71e3f22e89635c7d90fc1a4cff0dee76659e2b6f
484b1f455ef5db2c958069631dd254ae484a6220
refs/heads/master
2021-01-01T17:16:58.126527
2014-07-21T18:14:33
2014-07-21T18:14:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
import os class Config(object): DEBUG = False TESTING = False CSRF_ENABLED = True SECRET_KEY = 'super secret key' SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] class ProductionConfig(Config): DEBUG = False class StagingConfig(Config): DEVELOPMENT = True DEBUG = True class Devel...
[ "shashankgrovy@gmail.com" ]
shashankgrovy@gmail.com
8b132b90097de3b3d5cd69723b84f6a190534087
f5c27fcfd2969e52cedd991ab8d3e3e611f6a1be
/plotFermiLC.py
2943773db8aeb4406ac2f39bd83827014824ebea
[]
no_license
JohnQuinn1/LAT_LCs
a670e96b2c5c0c8050f5a1700d87b3d90aee022f
443debd08c0c9386478d02ab52e876c81a72a797
refs/heads/master
2023-07-07T06:46:23.958198
2023-06-28T14:19:21
2023-06-28T14:19:21
77,788,077
2
5
null
2021-10-01T14:38:09
2017-01-01T17:04:56
Python
UTF-8
Python
false
false
15,114
py
#! /usr/bin/env python # needs packages: # matplotlib, astropy, wget from __future__ import print_function from __future__ import division import matplotlib.pyplot as plt from astropy.io import fits import numpy as np import LATLC import map_name import sys import argparse desc="""Download and plot F...
[ "john.quinn@ucd.ie" ]
john.quinn@ucd.ie
4048942ea97b3cc08f6497f7fac1435e90ab063d
edd764475759f028a616d4fc1b4292f16a25fa84
/SomTA_PythonParser_Dev/LoggingController/LogObject.py
17d3c15b7a7baca10bc32941cae192bf7135a899
[]
no_license
absinha8/PythonKafkaAsset
0d3f2302ab42d86c51b314832f3e25019bfe3fa1
a67e034d3427928efdcc6270858994a380eb6796
refs/heads/master
2020-09-20T19:44:43.498123
2019-11-28T05:17:11
2019-11-28T05:17:11
224,574,874
0
0
null
null
null
null
UTF-8
Python
false
false
3,799
py
import logging from datetime import date, datetime import time import ConfigController import traceback import json import os from collections import OrderedDict class LogObject: def __init__(self): #print("welcome to LogObject class") self.objConfig = ConfigController.Configuration() sel...
[ "absinha8@in.ibm.com" ]
absinha8@in.ibm.com
52a96a787cdfb48b989855ef02295dc477564b54
be3ead6fdf2ce56266065180f40559e465081fdb
/multiAgents.py
fc6ed8b768e30bf6e06a341d701e7aa69884dd77
[]
no_license
vlajnaya-mol/pacman_minimax
fd47b75321fdd2ccd167cf275772cedf6228d37f
1c5c68cf5d7bb3a8cc84e62f2b0869447ff4ff66
refs/heads/master
2021-05-22T15:12:56.626323
2020-04-04T12:50:28
2020-04-04T12:50:28
252,977,241
0
0
null
null
null
null
UTF-8
Python
false
false
8,668
py
# multiAgents.py # -------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to # http://inst.ee...
[ "oleh.borovyk@zpoken.ai" ]
oleh.borovyk@zpoken.ai
995f9973514fe9874445fef0a60db504875ab75a
c26dc46ea53591cb9060114784dcb6f0e9488d9e
/数据结构与算法/DataStructures/myqueue.py
be6659a27c733f31acd3b7b75d3ed9c5528f8425
[]
no_license
pau1fang/learning_notes
398ed3fa93492c86ace7a68c81754c98a9dcc50f
31f9576f9c25de1eee4f4b0619cd116d6e7a2f4e
refs/heads/master
2022-12-30T05:16:38.504751
2020-10-22T12:49:32
2020-10-22T12:49:32
306,331,066
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
class Queue: def __init__(self): self.items_ = [] def isEmpty(self): return self.items_ == [] def enqueue(self, item): self.items_.append(item) def dequeue(self): return self.items_.pop(0) def size(self): return len(self.items_)
[ "15881152573@163.com" ]
15881152573@163.com
8ed9f49a0b93692d31d34f2bb953214484a2f5ff
3bfa43cd86d1fb3780f594c181debc65708af2b8
/cs61a/project/scheme/scheme.py.ref
b0c4bb4b736f02ade237131c0c93cc13cd381858
[]
no_license
ninjaboynaru/my-python-demo
2fdb6e75c88e07519d91ee8b0e650fed4a2f9a1d
d679a06a72e6dc18aed95c7e79e25de87e9c18c2
refs/heads/master
2022-11-06T14:05:14.848259
2020-06-21T20:10:05
2020-06-21T20:10:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,024
ref
"""A Scheme interpreter and its read-eval-print loop.""" from scheme_primitives import * from scheme_reader import * from ucb import main, trace ############## # Eval/Apply # ############## def scheme_eval(expr, env, tail=False): # Optional third argument is ignored """Evaluate Scheme expression EXPR in environm...
[ "wangxin19930411@163.com" ]
wangxin19930411@163.com
918b3facd668ea7d4a353a450fcee1ea5d580c71
ff1de5cced6851b582354c036549c4ec271bb215
/backend/django_project/project/urls.py
7217a792cb100ff90baabb2b4406fb5f604a3b4b
[ "BSD-3-Clause" ]
permissive
lauro-cesar/openvoid
73a01338d8ebcdc73a3f6d92058ae994676c9bdb
9750a94943b64f485784d0978cce0073ced02590
refs/heads/master
2023-06-22T19:27:46.437529
2021-07-20T21:39:34
2021-07-20T21:39:34
387,919,927
1
0
null
null
null
null
UTF-8
Python
false
false
285
py
from django.contrib import admin from django.urls import path, include, re_path from django.conf import settings urlpatterns = [ re_path(r"^admin_tools/", include("admin_tools.urls")), path("admin/", admin.site.urls), path("", include("django.contrib.flatpages.urls")), ]
[ "lauro@sharedway.app" ]
lauro@sharedway.app
57ca222aa7e57bc4745b7fe70e50bcdc751c0b74
defbe233ff6ca8759c84ea70f3e4fccf93b722a5
/design_patterns/full_factory_pattern/factories/xml_factory.py
fbd65b85fb01f3b6efdc6d07356632b32336b565
[]
no_license
vincentluciani/python-playground
87454312bd93c28ef7226554139cd1c25930bf40
e872574bd05ea1c6540339168394b0fc8c0c9eee
refs/heads/master
2023-03-20T08:55:07.405659
2021-03-22T12:26:19
2021-03-22T12:26:19
349,342,169
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
from design_patterns.full_factory_pattern.factories.abstract_factory import FullAbstractFactory from design_patterns.full_factory_pattern.source_readers import XMLParser class JSONFactory(FullAbstractFactory): def create_parser(self): self.xml_parser = xml_parser = XMLParser() xml_parser.name = ...
[ "vincent.luciani@schneider-electric.com" ]
vincent.luciani@schneider-electric.com
9cbfa772353ca6774d58a800b97ac7adc0d3df4c
3326ed6fa75623aca9f94242c06ba736af1fe1e4
/src/qutip_symbolic/commutators.py
0743e0d0810341df1aae9f59bfd53b74d568e58a
[ "BSD-3-Clause" ]
permissive
ZeroInfinite/qutip-symbolic
d443193981ea223c0ea0f9675288593f8371fc5e
bbc5d1e9f7928cd88e568140a6ff49bb060ce20d
refs/heads/master
2023-05-01T12:52:52.037165
2021-05-19T14:34:47
2021-05-19T14:34:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
from .compat.commutator import Commutator def recursive_commutator(a, b, n=1): """ Generate a recursive commutator of order n: [a, b]_1 = [a, b] [a, b]_2 = [a, [a, b]] [a, b]_3 = [a, [a, b]_2] = [a, [a, [a, b]]] ... """ if n == 1: return Commutator(a, b) else: re...
[ "hodgestar@gmail.com" ]
hodgestar@gmail.com
04254489bd0ffcdfe80610522d7d5f6b6410d60b
5b2644db1f85e68a5ce0fd21d3f873cf7e7d4be9
/node/crc64/cpp-addon/lib/linux-x64/config.gypi
827082f360bbd29fc23eeebcb96bb3963fb382b3
[ "Apache-2.0" ]
permissive
aliyun/oss-browser
2d9dd9bce8b01ed45ba8adebb3e629439dedcf1e
c3a7c7f69553ff4e076908e2e5a0a0f33f4b262b
refs/heads/develop
2023-07-06T19:02:21.760649
2023-05-24T09:09:43
2023-05-24T09:09:43
81,035,045
3,051
483
NOASSERTION
2023-09-13T02:23:58
2017-02-06T01:14:02
JavaScript
UTF-8
Python
false
false
4,925
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "coverage": "false", "debug_devtools": "node", "debug_http2"...
[ "aleelock@126.com" ]
aleelock@126.com
8e8c4a716f8f41a788d8442c34dc78b35c0c1bba
70ea75102a0daf5e77e5dfea350b0854229d57fd
/events/errorHandlers.py
60f2717f875055a31eecb822c2063c167036ed83
[]
no_license
viloz1/DNSBot
42a32e174855235aa1d01674730150e367078ab8
30c6369d15a3872c90c788e9598616753887ac7a
refs/heads/master
2023-08-02T07:55:15.504041
2021-09-12T10:14:51
2021-09-12T10:14:51
375,316,767
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
import discord async def generalErrorHandler(client, config, event, *args, **kwargs): id = config["owner"] message = f"**Error**: \n \n Event: {event} \n Args: {args} \n Kwargs: {kwargs}" member = client.get_user(id) channel = await member.create_dm() await channel.send(message)
[ "simonjohansson312@gmail.com" ]
simonjohansson312@gmail.com
088635a22cd6da0960d90d0d9c8ef71219e0c8ce
7cdf0d140b55e6e14ce42936776bedc0a9318b87
/WebTech_BugFixesFinalPresentation/summary/forms.py
61c82fcd8ebc468c2aa2efe3e5eead86d6d404ec
[]
no_license
AnnaGjerdrum/SumbraryRepos
e3f54d6ecaad29b311864a9a79cf00accd81e5a6
141c3289d6478216c8406206c13c902dc7613188
refs/heads/master
2021-05-12T01:36:14.781577
2018-01-19T15:56:39
2018-01-19T15:56:39
117,563,873
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
from django.contrib.auth.models import User from django import forms # user form Class class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput, max_length=20) #information about the Class class Meta: model = User fields = ['username', 'password']
[ "bramapeters@hotmail.com" ]
bramapeters@hotmail.com
950e9095170d42f4e10ca0955487287d42963b19
e05a1602b88b20217d9a76b85232a53093444914
/MUDpractice/wsgi.py
cbf52fd3848bdc9bd328e95959f4d4d54bf3f79d
[]
no_license
hannahtuttle/Django-practice
0539959be636ac53c2eca015a4ebfb621f18c289
a882f6c840e32aa7af88fa50931ad41463b514f2
refs/heads/master
2021-09-28T18:44:43.713894
2020-01-06T22:57:26
2020-01-06T22:57:26
231,805,349
0
0
null
2021-09-22T18:27:20
2020-01-04T17:54:48
Python
UTF-8
Python
false
false
399
py
""" WSGI config for MUDpractice 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
[ "hannah@Hannahs-Air.PK5001Z" ]
hannah@Hannahs-Air.PK5001Z
bb30a69f5f90a94653ce8badde70af62413c5b75
c1c2ebf6e05ccb6f294ae53381e673b43c897e74
/mysite/polls/models.py
28754d540491496b5677a722a6414f6b1e9e72c7
[ "MIT" ]
permissive
tp9/djangounchained
6d733ce4ffcd891f8d21013dd050e1fd2ea2c53b
ed0fcb43933ecc5ce028be9291d0ae59f76e8000
refs/heads/master
2016-09-06T11:52:40.613818
2013-11-18T09:56:49
2013-11-18T09:56:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
from django.db import models import datetime from django.utils import timezone # Create your models here. class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question def was_published_recently(se...
[ "theprofessional9@gmail.com" ]
theprofessional9@gmail.com
8a8f0ab20e6e9a54fc3a2a85ed7923173f75171e
2da3974055f5c3051e2cbb97751ae644d3ebc0e3
/battle/classes/game.py
878ea64b68e0e0b5e72afc5f1d2ef62479aa5928
[]
no_license
tbdlmtd/TextRPG
a34a812f1e2fedfb96c6bfd5d7e277d46b497cb9
66ce5c5bd451e5c95072aad1c216874f58f122fd
refs/heads/master
2021-01-24T07:27:34.227670
2017-06-04T22:22:15
2017-06-04T22:22:15
93,338,965
0
0
null
null
null
null
UTF-8
Python
false
false
4,120
py
import random class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' class person: def __init__(self, name, hp, mp, atk, df, magic, item): self.max_hp = hp self.hp = hp self.max_mp = mp...
[ "guest@Guests-MacBook-Pro.local" ]
guest@Guests-MacBook-Pro.local
4f1e938709b6e78f709b1aad31a997b0111857f1
16e349d730c5626cf01576a02957c02e84b6d91d
/Bulk_Delete.py
ef6df4077369c1a9702d82af823df9aaf8766c3b
[]
no_license
geesaladurgaakhil/database
0da1e965906a9657a626e6add1c50846419139c9
d1539129c7c64133aca3572650450194f0d49749
refs/heads/master
2022-11-15T03:22:17.939889
2020-07-10T06:57:41
2020-07-10T06:57:41
278,558,358
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
import psycopg2 def bulkDelete(records): try: connecion=psycopg2.connect(user="postgres", password="root", host="127.0.0.1", port="5432", database="akhil") cursor=...
[ "ksattaru@mdsol.com" ]
ksattaru@mdsol.com
e458a806a907109ff03c60bc02d49f659e96156e
431dadb72b70ab4d604d6f7722e1554e151fda83
/examples/predict_demo_by_seq.py
fe13d90be2ae34c639eaac6850b563f74b2408ea
[ "Apache-2.0" ]
permissive
smilelight/nymph
fe3c04fb9145bb16993d81791ac7d3fe0f0b7587
c8da2211f7a8f58d1c6d327b243e419ed9e64ead
refs/heads/master
2022-12-08T16:59:24.823290
2020-09-01T08:48:03
2020-09-01T08:48:03
286,218,355
1
1
null
null
null
null
UTF-8
Python
false
false
971
py
# -*- coding: utf-8 -*- import os import pandas as pd from nymph.data import SeqDataset, split_dataset from nymph.modules import SeqClassifier project_path = os.path.abspath(os.path.join(__file__, '../../')) data_path = os.path.join(project_path, r'data\test.csv') save_path = 'demo_saves_seq' def split_fn(dataset: ...
[ "iamlightsmile@gmail.com" ]
iamlightsmile@gmail.com
d8c94c6805772eacc9d148aaf0d79f825b3b8d62
8714eebe3aa3dee261f891796cefd4ccce193ef4
/src/lib/annotator.py
506cd0130c52baf6c5707ae30c37a6b2217e3d31
[]
no_license
carsonmclean/csc2558
0504f7204bdfb2ff745faab23c5b2fef59172774
c2c03d8e69532a419ce803588915002854b6184b
refs/heads/master
2020-11-26T22:14:26.458637
2020-01-20T16:51:44
2020-01-20T16:51:44
229,215,441
2
0
null
null
null
null
UTF-8
Python
false
false
3,722
py
import os import time import cv2 import pandas as pd from IPython.display import Image, clear_output, display from ipywidgets import Button, HBox, Layout, Output class Annotator: def __init__(self): self.examples = [] self.current_index = -1 self.options = [] self.buttons = [] ...
[ "carson.mclean@mail.utoronto.ca" ]
carson.mclean@mail.utoronto.ca
453a86eb6141eb32c6287041a228927234fa0db3
81ee09e23dfafd7d9ba1fb9adf902177efa1e35f
/read.py
58a636c21077aeaa8e1fac1ef12799b5bccb42db
[]
no_license
Evelindpeter1995/prgm1-python
2ff9dae3ca17573e7ca004455b74e77daea57a48
2b5195502e4f183d7d08280690bb55dd7b5c40ab
refs/heads/master
2020-04-25T09:14:11.697419
2019-02-27T10:08:22
2019-02-27T10:08:22
172,670,223
0
0
null
null
null
null
UTF-8
Python
false
false
40
py
name=input("Enter the name") print(name)
[ "evelindpeter67@gmail.com" ]
evelindpeter67@gmail.com
9e54a67c513db32932bda8ca231724d9dbb686f9
c9daf0045fe426fc923c89e6f6ab8223a1cff59a
/py_chess/UCI_interface.py
7997bceb70fe1a18ccb7fbeef0fc901fd7d1b5cf
[]
no_license
alrescate/chess
ac15c2982f92283b461d313f3b88bb0d1f2452a0
90cf4d7ceb19d52e256533be4776d65184d4d7da
refs/heads/master
2023-02-02T23:53:09.177515
2020-12-24T02:05:50
2020-12-24T02:05:50
324,042,479
0
0
null
null
null
null
UTF-8
Python
false
false
5,348
py
from Storkfresh import * from chess_helpers import * class UCI_interface: def __init__(self): self.Log=open('./uci.tmp',mode='a',buffering=0) self.Log.write("==========================================\n") # make a table of functions so that the code is nice and short when we do the liste...
[ "henry@localhost" ]
henry@localhost
c7b8206fce9963aa26e883b7f4ba986a04b34617
bc23a8a0c72f70cd9dc31bad22e02459f186a686
/data.py
b66d6aa88abfa3c51461cae3600b8f02f14e8724
[]
no_license
zxdcs/NN-utils
6c8190f2532d755a880c46f67a33c03b7e07c4a6
d65e357a18084c6a538cda690de3c213e187bc5f
refs/heads/master
2021-01-19T21:00:55.130994
2017-04-18T08:17:13
2017-04-18T08:17:13
88,589,816
0
0
null
null
null
null
UTF-8
Python
false
false
3,634
py
import numpy class Dataset: """ Dataset structure """ def __init__(self, data, shuffle=False, pad_keys=None): """ :param data: A dict of different elements in data :param shuffle: Whether to shuffle the dataset or not :param pad_keys: The keys of elements that need pad...
[ "zxdcs@outlook.com" ]
zxdcs@outlook.com
8125ff53344c47d768648ad8305330e764cbab87
21166aa2dddb714244b492bf51c2940a84751c27
/scripts/predict.py
9555e8e69e068e94f16465fdcb93d090b67de20b
[ "MIT" ]
permissive
sweeneyngo/furspect
8fa7ca384f6e9c28ca4b190b93b7189e7b6cda20
2753fd9c7a3436fe1e058707b4d9037e34561c26
refs/heads/master
2023-07-11T17:00:21.759528
2021-08-22T02:34:40
2021-08-22T02:34:40
369,025,828
0
0
null
2021-08-22T02:36:03
2021-05-19T23:26:40
Jupyter Notebook
UTF-8
Python
false
false
1,321
py
import matplotlib.pyplot as plt import requests import json import numpy as np from PIL import Image import numpy as np from skimage import transform from tensorflow.keras.models import load_model from matplotlib import pyplot as plt import os url = "http://34.121.100.208:8501/v1/models/saved_model:predict" def make...
[ "sweeneyngo@gmail.com" ]
sweeneyngo@gmail.com
909e293fb34797f5f75d7502c620042158498e08
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/sesv2_write_f/bulk-email_send.py
a349241910bf4f467effed81bbf205506059170e
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
96faca6dc627aa0ad4cd2cb5e017015d35a80cb7
1feae7286c5d61981b40520e2c1e1028b86bb8cc
/blog_newsapi/asgi.py
05c058cfe761a8558228cfd03981b89811503c23
[]
no_license
mukeshrakesh123/newsapp-blog
b97adb486f2d463e11fc054243833a2db6944865
596eac8981792fc368d2abfc4e19650332347f08
refs/heads/main
2023-06-16T11:44:10.665862
2021-07-10T16:34:50
2021-07-10T16:34:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for blog_newsapi project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
[ "jayagupta752@gmail.com" ]
jayagupta752@gmail.com
d0c0d528eadb26339936681033a1a7e235825a2f
71670badae290bb7ab769ecad821d655c955cdfc
/013_Class/Import_Class/car.py
01fb4738c3b9f8bc70e73c2fb136ad962f84abe9
[]
no_license
python-project/Guibs_Python
8585b776009f22c1750a8b47b38a60e55c108f79
2a24bb1a53e96e8f8db20943c79b88ea8a2971cd
refs/heads/master
2020-03-24T10:53:22.025166
2016-09-12T12:38:57
2016-09-12T12:38:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,185
py
# 使用类和实例 class Car(): """模拟汽车""" def __init__(self, name, model, year): """初始化描述汽车属性""" self.name = name self.model = model self.year = year self.odometer_reading = 0 # 给属性设置默认值 [设置里程数初始值为0] def get_descriptive_name(self): """返回整洁的描述信息""" long_name =...
[ "805249506@qq.com" ]
805249506@qq.com
b8bc971de51c0b9c9209b3f1c24ac435f7161b4c
c1d9dc8351241a3bd519a6f8ebc4531bfed2de6f
/backup/Python/152.py
3c06c1daf0f1af89b7d26c587e3d1a7fae8027fa
[]
no_license
yichenluan/LeetCodeSolution
3cf4b31e36f32c6b689b7b724c5cf57c3efb70bc
26af13bbac60d656415bbba0c3bc7acbaa5a7d63
refs/heads/master
2021-05-23T06:05:07.183561
2020-10-20T09:11:41
2020-10-20T09:11:41
52,205,706
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
class Solution(object): def maxProduct(self, nums): """ :type nums: List[int] :rtype: int """ maxSoFar = nums[0] maxEndingHere = nums[0] minEndingHere = nums[0] for i in xrange(1, len(nums)): maxTemp = maxEndingHere maxEndingHer...
[ "jinke@bytedance.com" ]
jinke@bytedance.com
a67fe061a30b3bdd60e14f69677e5cfd97f28c9e
01203fa116b858f3e9ad2e2dabaf31711935d949
/inclassroom/mymodule.py
9e26ad415677f5d090eb0082b3933a1ec604a920
[]
no_license
fordzii/60021346
7a3a33b8d4852bec02003216d3deddc0625d08ef
301ffccc59024b144c897aa43ce2b0e3332ba5f5
refs/heads/master
2021-05-02T09:56:34.393882
2018-03-30T08:35:50
2018-03-30T08:35:50
120,784,163
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
import math def inn(): print('\t กรอกชื่อ') print('Name :') name = input() print('How old are you?:') oldd = input() print("Hello :",name); print("so you are",oldd,"years old.") def print_name_age(name,age): print("Student Name :",name) print("Student Age :",age) def sum_two_integ...
[ "fordf19982541@gmail.com" ]
fordf19982541@gmail.com
dd1572ba859ea0331b8857de9e3cd6cba97122a0
ec161f124e6571c440a0f5d05d518d326977f8cf
/GreenWay/asgi.py
7ce7c4870f4d7c20436540bbbcb10dfd384d71ce
[]
no_license
saiharshavarma/GreenWay
7f1e7a7859264ed7ecb49e1b0412c94de22899a2
354587183da5aad0cb9b2c5f330181c0602371a2
refs/heads/main
2023-08-25T01:06:05.836095
2021-11-06T14:02:29
2021-11-06T14:02:29
425,256,494
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" ASGI config for GreenWay project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
[ "saiharshavarma@outlook.com" ]
saiharshavarma@outlook.com
4586c94cba11f9b2e20c7b5771eb91c3964dad09
02cad35c0d37dd88d0028a7a97c06d3e7f8de04f
/获取html.py
f8786654ad957a6899eb3f8ce5ce608579e02894
[]
no_license
MrFengGG/PythonDemos
2f0e90cab4d2b210ff1fbf0c6f4a1139bed20505
ff62af2019825781571403ca228438fd9f9917e0
refs/heads/master
2022-03-03T05:40:47.495534
2019-09-03T02:33:34
2019-09-03T02:33:34
114,099,605
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
import urllib.request response = urllib.request.urlopen("http://www.dytt8.net/index.htm") html = response.read() try: with open("f:/1.txt","w") as out: print(html,file=out) except: print("获取失败")
[ "fengziyu@apexsoft.com.cn" ]
fengziyu@apexsoft.com.cn
741cf0ccb3e08d94720df71247c88c54ddd54b74
d8beda0d4ed5c8fd3474e85d8149f316434fcf92
/数字视音频处理/作业/视频/code/pixel_difference.py
6afdc76796555a4579ca8908e6f478b807f0d6a2
[]
no_license
Orangeihero/Course-Materials-of-DMT
67da86eb8fddaa50b60ff3157affec4953926d08
7c5fe212dbcfca112e88cf6871e29dc23b35db6a
refs/heads/master
2023-03-21T15:17:35.867689
2021-03-11T08:49:58
2021-03-11T08:49:58
294,452,557
3
0
null
null
null
null
UTF-8
Python
false
false
1,786
py
import os import cv2 import numpy as np #统计相邻图像帧对应像素变化超过设定的第一个阈值的像素点个数 def getPixelNumber(shot_dir,image_list): pixelNumber_list = [] for i in range(len(image_list)-1): original_image1 = cv2.imread(shot_dir + image_list[i]) image1 = original_image1.copy() image1 = cv2.cvtColor(image1,cv...
[ "zjing027@gmail.com" ]
zjing027@gmail.com
f7b3500ae91f51a525d53781d284efa1a7bfc990
72e11a80587342b3f278d4df18406cd4ce7531e8
/dulwich/porcelain.py
c0646f2a1aeeb047e6eaace836bf41384d626691
[]
no_license
EnjoyLifeFund/Debian_py36_packages
740666f290cef73a4f634558ccf3fd4926addeda
1985d4c73fabd5f08f54b922e73a9306e09c77a5
refs/heads/master
2021-08-24T02:17:24.349195
2017-12-06T06:18:35
2017-12-06T06:18:35
113,167,612
1
0
null
null
null
null
UTF-8
Python
false
false
38,916
py
# porcelain.py -- Porcelain-like layer on top of Dulwich # Copyright (C) 2013 Jelmer Vernooij <jelmer@samba.org> # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can...
[ "raliclo@gmail.com" ]
raliclo@gmail.com
fd6c476161fdcb93650ea42b0fdd4dbc56227788
fb26d851389474d58b58995954a0bb8942fe24c2
/apps/accounts/migrations/0009_auto_20180905_2331.py
cb69ba27b0a063492929817444079881fe370e9c
[ "MIT" ]
permissive
showdpro/resultLab
d05670a72b8ac874cc159e50bee8ccec9884cb1d
08c84d9b8c2bcc2a71e9c0a7766988ada0234be4
refs/heads/master
2021-10-11T02:59:32.869021
2019-01-21T15:41:44
2019-01-21T15:41:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
# Generated by Django 2.1 on 2018-09-05 22:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0008_student'), ] operations = [ migrations.AlterField( ...
[ "abdulwaliyahaya@gmail.com" ]
abdulwaliyahaya@gmail.com
85bd66f0c2cbda22e5141aa476470c6e2f8467c8
226b1c73a706f4734834196d18305d4d2c873589
/synlib/llbin/synlibMsg.py
dd8afb0eb47864fd086bc66601a0086bcb225c2f
[]
no_license
ocakgun/vlsistuff
43b4b07ae186b8d2360d11c57cd10b861e96bcbe
776c07f5d0c40fe7d410b5c85e7381017d4dab64
refs/heads/master
2022-06-13T14:40:22.641310
2020-05-08T11:09:00
2020-05-08T11:09:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,131
py
#! /usr/bin/python import os,sys,string,pickle import traceback,logs import msgsim2c Cells = {} Types = {} class cellClass: def __init__(self,Name): self.Name=Name self.pins={} self.busses={} self.pairs={} self.ff=0 self.latch=0 self.statetable=0 s...
[ "greenblat@mac.com" ]
greenblat@mac.com
ca4aca7456ab5980507d6b2ee0da989464a83656
3d4b8a2c94ddfb1267d5c4f1c9ba6d104ecf1492
/InLibTest/venv/Scripts/pip-script.py
544bae98509006045db3280300e49449a998a608
[]
no_license
SwordYi/PY_TEST_LEARN_CODE
7d7273fc93cdb9881385aeac7115cbe314aedcc0
6514e22ae32b49d2d3e5f63c0dbdaf9ea09fbaa1
refs/heads/master
2020-09-13T01:52:50.790194
2019-11-25T09:20:04
2019-11-25T09:20:04
222,625,476
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
#!E:\PY_TEST_LEARN_CODE\InLibTest\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "283901189@qq.com" ]
283901189@qq.com
baf5f510f103558e54208fd4851c7324a7084c61
2f219acf03442e2aa502cd8fffce02f3c1118298
/Py2D/Py2D_projectBuilder.py
cce1aec2b30db8faf14bf3a0ec396d22613990c0
[]
no_license
AFlyingCar/Py2D
27a5ec03c015de16533978315d654c338d9fa4f7
c06d95ac0f716598a7be2af0d7cfaaeebd189bbc
refs/heads/master
2020-12-24T06:04:24.821244
2016-07-05T04:00:18
2016-07-05T04:00:18
30,786,712
0
0
null
null
null
null
UTF-8
Python
false
false
1,335
py
######################### # AFlyingCar # # 2/19/15 # # Py2D Project Builder # ######################### import shutil,errno,os PY2D_INSTALLATION_PATH = "C:\\Program Files\\Py2D" # PY2D_INSTALLATION_PATH = ".\\Py2D" # Use to build with lastet build rather than the recommended one def copyFiles(source...
[ "tyler@familyrobbins.com" ]
tyler@familyrobbins.com
89d77e01921b73651991e522906f13a394d8776d
a81d84fdb57e1b90812fc5b5b523685ba5b663c0
/python/2021_08/Question1480.py
2e09e851c818b1ea3b6986e1b3573c1a418ae62b
[]
no_license
KujouNozom/LeetCode
1919081001126924daa7549493a0823702631a37
4de1e601274de1336d669e41f732a8cb056880b9
refs/heads/master
2023-07-17T12:17:45.156451
2021-09-04T11:57:40
2021-09-04T11:57:40
268,075,373
3
0
null
null
null
null
UTF-8
Python
false
false
283
py
# 1480. 一维数组的动态和 [前缀和] from typing import List class Solution: def runningSum(self, nums: List[int]) -> List[int]: ans = [] pre_sum = 0 for num in nums: pre_sum += num ans.append(pre_sum) return ans
[ "438767738@qq.com" ]
438767738@qq.com
314cee8a816c82742fb3e6f61e7898cbefbb7747
f206cc23b22d7781a860307e3a0e8d51b3b392d3
/2.Keresés/lineariskereses.py
8eb9b8315326bd5c5508223af0a9ae51bd0bf027
[]
no_license
Fizzor96/algo-vizsga
78ade10d6d5d3f3f412799bffadd21ba54b40bad
0ce96e53a5bcf3915a88b6be99aec0e0acd991df
refs/heads/master
2023-05-07T02:03:58.929050
2020-09-27T14:05:04
2020-09-27T14:05:04
270,754,979
0
1
null
2021-05-26T09:49:41
2020-06-08T17:09:45
Python
UTF-8
Python
false
false
198
py
sorozat = [3, 5, 9, 10, 33, 2, 5 , 4, 6, 8, 11, 12] def linkeres(sor, T): i = 0 while (i<len(sor)) and (sor[i] != T): i = i + 1 return i, i<len(sor) print(linkeres(sorozat, 4))
[ "36672655+Fizzor96@users.noreply.github.com" ]
36672655+Fizzor96@users.noreply.github.com
70f907ee77f59742a2cdf4ecaa81b6e1ff186ef8
a38af43e0c448200c7c01c3a1f94b6032595d2db
/utils/kparam.py
a5c8a0bfc5a56b6c8da819679f7ec739d30422ca
[]
no_license
d0iasm/sps-p-gen
a27d3b23dd2a586f31b4e2e0d4d873526a980704
f25145e62af33983514d4a8e405828d555f11c58
refs/heads/master
2021-06-26T15:39:20.437986
2020-11-28T05:57:56
2020-11-28T05:57:56
171,146,735
2
0
null
null
null
null
UTF-8
Python
false
false
2,999
py
import argparse import csv import sys import numpy as np import matplotlib.pyplot as plt import steps_pb2 src = '' out = '' maxk = 1.0 mink = -1.0 thinning = 200 def read_proto(): data = steps_pb2.Steps() # Read data from a protocol buffer binary f = open(src, "rb") data.ParseFromString(f.read())...
[ "doiasami1219@gmail.com" ]
doiasami1219@gmail.com
5e06a6bbbcbe3f9383648ec6bdcde5393d157688
0aafb1da4a86c5e99b327f1a330ca76e763fac50
/client.py
2b8ac47b222a05d70c5cc7acb41a74532ca71086
[]
no_license
keyvanm/sdelements-python-client
6d92d8ee1a1e8fd7f2649f60eeccb67da930bef2
853816d383df65fa6f0191f783ba7527aad69476
refs/heads/master
2020-05-20T14:55:41.469555
2017-03-09T21:52:20
2017-03-09T21:52:20
84,487,166
1
0
null
null
null
null
UTF-8
Python
false
false
5,200
py
import requests class SDElementsAPIException(Exception): def __init__(self, response, *args, **kwargs): super(SDElementsAPIException, self).__init__(*args, **kwargs) self.response = response @property def readable_error_message(self): return "{r.status_code} {r.reason}: {r.text}"....
[ "kayvanmsh@gmail.com" ]
kayvanmsh@gmail.com
3c40e6e237efe724302daafbcb9ecb8d7168cf24
dc93174785fb64ca91264fa8dee50c0b0ce616c8
/DeepFried2/criteria/__init__.py
5316b9014cc0a8dfc8d9251a659b7883978485fe
[ "MIT" ]
permissive
elPistolero/DeepFried2
789ee2362f47a65efe6d4f64cf81657777ee12b3
56efebede5469de706071a5ba645b2b74b3adf3e
refs/heads/master
2020-12-25T16:35:39.932731
2015-09-18T06:48:14
2015-09-18T06:48:14
40,975,386
0
0
null
2015-08-18T14:02:46
2015-08-18T14:02:45
null
UTF-8
Python
false
false
143
py
from .ClassNLLCriterion import ClassNLLCriterion from .BCECriterion import BCECriterion from .RMSECriterion import RMSECriterion, MSECriterion
[ "lucasb.eyer.be@gmail.com" ]
lucasb.eyer.be@gmail.com
27d582870c716d10be5bc68fcf9009a2627dceeb
f1104c7a2710081bda3372d1f02d2f2c80bb2029
/Hands-On Python/handsOnMadLib.py
d2bb9cd64cd1c7e66452fa1cae1d080c3b60ad66
[]
no_license
TimLatham/BookLearning
ded8654ce742b3e94cb19d4088e0c66a3434d67a
26cf4c622452eec82be456cc61bec697dad017b5
refs/heads/master
2021-01-11T15:11:15.581224
2017-05-23T19:22:57
2017-05-23T19:22:57
80,310,654
0
0
null
null
null
null
UTF-8
Python
false
false
959
py
""" String Substitution for a Mad Lib Adapted from code by Kirby Unrner """ story = """ Once upon a time, deep in an ancient jungle, there lived a %(animal)s. This %(animal)s liked to eat %(food)s, but the jungle had very little %(food)s to offer. One day, an explorer found the %(animal)s and discovered i...
[ "noreply@github.com" ]
noreply@github.com
2131a1ba50f8f1a9a88ef10152942581cf16b5fa
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/iothub/azure-iot-deviceprovisioning/azure/iot/deviceprovisioning/_configuration.py
92106ddf94ce39971ca1d644c17886ebe2376f08
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
3,143
py
# coding=utf-8 # -------------------------------------------------------------------------- # 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 Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
noreply@github.com
f3fe0e0bcda0b21d6529be3bf9fc400ea3068354
5d15bc211d66f48a8f88b803bb6acdcc77ce94b6
/OldVersions/Version 1 Old/Working Algo 05-28-2019/My_DDQN.py
0de145d0cb49ae37ca9ff3410d0768c64af94bdd
[]
no_license
prabhasak/chicken
6a6240ca9f513b5b15bd15d0b993f582d778ac2a
7038046e6c6893608011bcb0d231fbfbbe573544
refs/heads/master
2022-12-05T02:41:56.180169
2020-09-01T02:11:00
2020-09-01T02:11:00
291,865,487
0
0
null
null
null
null
UTF-8
Python
false
false
2,694
py
#This is a double Deep Q network import random import numpy as np from collections import deque from keras.models import Sequential from keras.layers import Dense from keras.optimizers import Adam class DDQN: def __init__(self,nS,nA): self.nS=nS #Number of observation/States self.nA=nA #Number of action self.e...
[ "prabhasa.94@gmail.com" ]
prabhasa.94@gmail.com
40206fea5f2545c92b7e088086be73f13ece6f72
6230a20cf1c945f401e1c1fb46fa99f8cd3658e5
/clustering/src/utils/metrics.py
5709477927f1805e70f445e4fd0b642589845e46
[]
no_license
unbiarirang/data_analysis
34dfd352f043ccb0103a24efa08861d1b923dc6a
2fd7813cfc11dd9fa78ab33bcd5a576a2e8eb7a8
refs/heads/master
2020-09-09T05:32:49.155064
2019-12-05T02:32:25
2019-12-05T02:32:25
221,362,283
0
1
null
2019-12-05T02:15:55
2019-11-13T03:13:23
Python
UTF-8
Python
false
false
2,523
py
# !/usr/bin/env python3 # encoding=utf-8 import numpy as np from sklearn.preprocessing import LabelEncoder from sklearn.metrics import pairwise_distances_chunked import functools def silhouette_score_(X, labels, metric='euclidean'): ''' The Silhouette Coefficient is calculated using the mean intra-cluster ...
[ "dingry977@126.com" ]
dingry977@126.com
925e28f4b9a31539ca3b9b5a60d07d2238b2fee7
85bb0df011e29ebec20b28cbf310129226863fce
/app/app/settings.py
f6433e6f1bf1d899cb6f2ce127561d27dfc24fd6
[ "MIT" ]
permissive
AleksandrovIskren/recipe-app-api
48eed040ecda20c01b33e0483e6e57c96e82f1c0
ca0dce68541bd961a50c35bd594c6a2e0e6324b7
refs/heads/main
2023-02-18T22:35:44.996863
2021-01-14T11:04:03
2021-01-14T11:04:03
328,701,989
0
0
null
null
null
null
UTF-8
Python
false
false
3,414
py
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
[ "sk94bg@gmail.com" ]
sk94bg@gmail.com
f601d7f9b7bb6a65c08ea846c13df93ed36c5c39
dcfd49d6a918ae0995a6b8e662cf64121a0f6688
/PyNN/Tests/Network.py
1252f0968509001e279b5768c56f46dbfbe607c1
[]
no_license
ronaldonunes/JoglekarEtAl18
22c7b37ef2c74fe3d5af6a4598c5f7e56766a1af
d2b0e8c5e7c435dadf1a2bcdd74e337a114784b6
refs/heads/master
2022-12-07T03:01:42.458944
2020-08-30T18:42:18
2020-08-30T18:42:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,094
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Jun 29 09:45:18 2020 @author: ronaldo """ import scipy.io import numpy as np import random as pyrand import time import os import matplotlib.pyplot as plt from pyNN.utility import get_script_args, Timer, ProgressBar from pyNN.random import NumpyRNG, ...
[ "ronaldovnunes@gmail.com" ]
ronaldovnunes@gmail.com
ef8728c54bb2d3145a17bf838199e3e7a183cfe9
46b886f49d3cc9167e9d728235dc22491504a122
/exercicios/provedor.py
004b5719acede9a2b4b12dfb90c44577facb2fbc
[ "Unlicense" ]
permissive
Zahidsqldba07/ippp
d6cf33c499fb4aa38d36d3c9ce51d57b8766755b
8ef0815ef0ebf23cebadf417f0db1279767493a5
refs/heads/master
2023-03-16T13:39:00.124967
2019-04-24T16:25:28
2019-04-24T16:25:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
gb = input('Informe a quantidade de GB consumida: ') gb = int(gb) tipo = input('Informe o tipo de plano (R-Residencial, E-Empresarial): ') valor = 0 if tipo == 'R': if gb <= 10: valor = 8 * gb else: valor = (8 * 10) + (12 * (gb - 10)) elif tipo == 'E': if gb <= 100: valor ...
[ "rodrigoamaral@gmail.com" ]
rodrigoamaral@gmail.com
894a473d636f9b92a787b2fb728f2597dba8d2b4
c9a285ae71f97688d63c2d35580f0a8b6de5808e
/lib/rucio/web/rest/main.py
2303dad20655e823cf344f5a2f97a6b632a05849
[ "Apache-2.0" ]
permissive
vokac/rucio
f8bb18c3094b3c8ed17050d8cda9b1cd385d24aa
f1159fbf1e6002715a77b613d35d037c55082803
refs/heads/master
2021-07-21T03:13:26.049474
2021-05-27T07:25:45
2021-05-27T07:25:45
153,205,000
0
0
Apache-2.0
2018-10-16T01:36:19
2018-10-16T01:36:19
null
UTF-8
Python
false
false
889
py
# -*- coding: utf-8 -*- # Copyright 2020-2021 CERN # # 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 a...
[ "benedikt.ziemons@cern.ch" ]
benedikt.ziemons@cern.ch
8f105880cf84a0e66637f14cd6b0054563bfb7fa
e488be326b13414c2bdb99667de84b93b3c990e6
/expensetracking.py
d1ea18ed3e03d4f500d150e314707646e5b17977
[ "LicenseRef-scancode-public-domain" ]
permissive
migrateup/automated-tests-types
3bc96b7c0c0f81854cd4a4ad0d89254322d57184
8a4c19a74d1ceea70cf4dd349c7b6f0cb32c8e40
refs/heads/master
2020-05-17T01:06:38.086340
2014-12-05T00:01:20
2014-12-05T00:01:20
27,552,704
7
3
null
null
null
null
UTF-8
Python
false
false
1,948
py
from collections import defaultdict class Expense: def __init__(self, description, amount): self.description = description self.amount = amount self.is_paid = False class Employee: def __init__(self, name, employee_id): self.name = name self.id = employee_id cla...
[ "amax@redsymbol.net" ]
amax@redsymbol.net
ec2ee291e8a5d13b909ff667fa3c265d94191d2a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_265/ch59_2020_09_06_16_20_08_424667.py
85dfd925cd472b6628093ea4f0c3327fe9db1126
[]
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
93
py
def asteriscos (n): y=n*int('*') return y n= int teste= asteriscos(n) print (teste)
[ "you@example.com" ]
you@example.com
bd14a1ec10c8754c2757bb7e900bc909385f09ad
f120ab0f9beb29a26f94ddf63670fd2681844834
/video_time_detection.py
713b77076b4470f77655cd5eaa08db49b13af829
[]
no_license
Mboza-L/Video-Motion-Detector
010f87bec8105763f080df8e6dcb86c435ec9af3
7db9c395fb473bfe25b99d52a113457515f9ea53
refs/heads/master
2022-12-29T08:07:51.306807
2020-10-22T16:20:44
2020-10-22T16:20:44
283,237,935
0
0
null
null
null
null
UTF-8
Python
false
false
3,643
py
# -*- coding: utf-8 -*- """ Created on Mon Jul 27 13:57:25 2020 @author: lukin """ import cv2 import time import pandas from datetime import datetime first_frame = None #the inintial frame to compare new objects with status_list = [None, None]#list to indicate presence of objects(1) versus empty frame...
[ "noreply@github.com" ]
noreply@github.com
c042d866799b19a4c0a033cdd67920cd11b294f2
31698241ee3485d8b053da0d0da203c215a958f9
/test.py
b087fd7b04be98ca7891c6e9c241bc700c1fa8db
[]
no_license
martin-martin/save-udacity-forum-posts
06f588d875477e7579c8fafe50b07e2fd16820a2
7abcede5c288cfe430b8b47fc1d7e1736bebe774
refs/heads/master
2021-06-10T06:39:10.868435
2020-03-03T09:00:38
2020-03-03T09:00:38
146,982,630
0
0
null
2021-06-01T22:35:47
2018-09-01T08:45:11
Python
UTF-8
Python
false
false
640
py
# getting out the thread name to be used as file name # testing on how to deal with the fact that there are thread *replies* # that have a different URL structure to *original posts* li = [ "https://discussions.udacity.com/t/logic-improvisation-needed/191902/2", "https://discussions.udacity.com/t/so-you-want-t...
[ "breuss.martin@gmail.com" ]
breuss.martin@gmail.com
ace2948b86808dff74ac5b438a1858c6050a50f0
1f8306da2bc847ec6c83457bb212350d7acec41e
/build/lib/tests/test_collection.py
582eaab349d64101d821b0f73e7354e35dee098a
[ "MIT" ]
permissive
boogieLing/r0redis
9619a39eb5d78d063b2297c3bdb3e9067b2c4ed6
15508c5cf6f86dab001af5cb70bcd5f3bf3777fe
refs/heads/master
2023-07-16T05:48:51.463420
2021-08-10T10:57:18
2021-08-10T10:57:18
394,889,907
0
0
null
null
null
null
UTF-8
Python
false
false
9,312
py
import random import pytest import bg_helper as bh import r0redis as rh from redis import ConnectionError # REDIS_CONNECTED, DBSIZE = rh.explicit_connect(redis_host="127.0.0.1", redis_port=6379, redis_db=0) REDIS_CONNECTED, DBSIZE = rh.implicit_connect("redis://127.0.0.1:6379/13") WORDS = ['goats', 'dogs', 'grapes', ...
[ "boogieLing_o@163.com" ]
boogieLing_o@163.com
4ba917dfb16004d06820f1311afda26be3047ae1
f1d9b78202f3870f4b6b77fba0e8c6152430b281
/habitat_baselines/vln/models/vilbert.py
951b753ae9607421b471d80086cef26af252b0ee
[ "CC-BY-NC-SA-3.0", "MIT" ]
permissive
erick84mm/habitat-api
3fda82ef9ae697d10a7a5d077e9ce60151c2b101
1c5329b40576dccd27e14616be22ce2036801686
refs/heads/master
2020-08-30T17:29:36.547836
2020-02-14T04:42:36
2020-02-14T04:42:36
218,443,137
0
0
MIT
2019-10-30T04:26:54
2019-10-30T04:26:54
null
UTF-8
Python
false
false
71,901
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
[ "erick84mm@gmail.com" ]
erick84mm@gmail.com
a41ae57b43591ff57b9a2fb21fbbffc761bc1421
36e50e694a0353ea608800a185fbe7b0dcedb673
/hypothesis_and_inference_0406.py
7b2d63be0ffb2fa7fecdc6f110f9083550cc4527
[]
no_license
Peggy40341112/nfu40341112
cf8ac783062839f09f54c61d972a881b2c81f0ef
d3b485d5815388eb5c8061ca62e6aa94ae2d6483
refs/heads/master
2021-01-23T01:40:50.887282
2017-06-14T16:54:56
2017-06-14T16:54:56
85,925,278
0
1
null
null
null
null
UTF-8
Python
false
false
1,844
py
from probability_0406 import normal_cdf, inverse_normal_cdf import math, random def normal_approximation_to_binomial(n, p): """finds mu and sigma corresponding to a Binomial(n, p)""" mu = p * n sigma = math.sqrt(p * (1 - p) * n) return mu, sigma def normal_upper_bound(probability, mu=0, sigma=1): ...
[ "40341112@gm.nfu.edu.tw" ]
40341112@gm.nfu.edu.tw
35053a72e25de59337d2d7ebca46b76c3773a85f
1d2bd82844afdfd0a9386d4d290ca1e87417184f
/CodePython/DP/887_Super Egg Drop.py
c5ce0ee75e43c4cfd6f79cf001dab9dce82dd54c
[]
no_license
txqgit/LeetCode
53801b498595a997b557332e628c8581529f93d7
c4b755792d2bb98bd38ba5ee1b987f404f1847b2
refs/heads/master
2023-02-11T09:28:42.652748
2021-01-17T04:04:17
2021-01-17T04:04:17
272,142,058
0
0
null
null
null
null
UTF-8
Python
false
false
1,619
py
class Solution: def SuperEggDrop(self, K, N): #解法1 #令dp[K,N]表示K个鸡蛋,N层楼时最坏情况下的最少尝试次数 #dp[k,n] = min{ max[dp(k,n-i), #在第i层楼扔鸡蛋,鸡蛋没碎 # dp(k-1, i-1)] #在第i层楼扔鸡蛋,鸡蛋碎了 # } +1, where i=1,2,..,n 遍历每层楼,找最坏情况的最小次数 # dp = [[0]*(N+1) for _ in rang...
[ "371867040@qq.com" ]
371867040@qq.com