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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2ae90b6dffc7987765ffacf37be52a03f335f474 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_WeekOfYear_SVR.py | 87afffb284e8c95e2d354f9e473c99b687fc4781 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 162 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Fisher'] , ['MovingMedian'] , ['Seasonal_WeekOfYear'] , ['SVR'] ); | [
"[email protected]"
] | |
114635dbdd614a124e3ed8f049bf0f44250abed7 | 38258a7dd9acbfb7adf72983015de68a948a4826 | /B_6000~/B_6749.py | 679d26eb42d51d74c4f4a7e4ff51b701aad91d01 | [] | no_license | kangsm0903/Algorithm | 13a7fe5729039a1d0ce91a574c4755a8a92fb02b | 7d713d1c9e2e4dc30141d4f409ac1430a357065b | refs/heads/master | 2022-10-04T00:33:49.247977 | 2022-09-26T12:51:16 | 2022-09-26T12:51:16 | 219,265,010 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | X = int(input())
Y = int(input())
print(2*Y-X) | [
"[email protected]"
] | |
7a4946bf049ebf1ed6ee4360fa21fb2fa3271c02 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/coghq/MoleFieldBase.py | 508ffbac0ff0495f22fc1b06a212904c3fadf747 | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | # 2013.08.22 22:19:18 Pacific Daylight Time
# Embedded file name: toontown.coghq.MoleFieldBase
import random
HILL_MOLE = 0
HILL_BOMB = 1
HILL_WHACKED = 2
HILL_COGWHACKED = 3
class MoleFieldBase():
__module__ = __name__
WHACKED = 1
MoveUpTimeMax = 1
MoveUpTimeMultiplier = 0.95
MoveUpTimeMin = 0.5
... | [
"[email protected]"
] | |
d4d403b01e00e44d6866bca55752f5509a8b15f8 | 748b8c66d8d9f77e047033e07142328ea6939138 | /utils/create-captions.py | 3a8f8271fec5c0ed4ec02b5ca917f56240ba6ce5 | [
"Apache-2.0"
] | permissive | nakamura196/neural-neighbors | 68f073511f10fb2df4c9efb2e504d2f9fb3b8455 | 277cb6e6a2102ad9d850c4397ca454ecb347dd1b | refs/heads/master | 2022-01-24T15:16:49.170431 | 2019-08-11T14:37:23 | 2019-08-11T14:37:23 | 201,567,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import glob, random, os, json
files = glob.glob(
"assets/images/thumbs/*.jpg")
captions = {}
for file in files:
filename = file.split("/")[-1].split(".")[0]
captions[filename] = filename
fw = open("data/full-captions.json", 'w')
json.dump(captions, fw, ensure_ascii=False, indent=4,
sort_keys=True,... | [
"[email protected]"
] | |
a01fac3aa0ec2d33e854eac1c3973308a9e2b23e | 8c0b804f1cc8cbf2f8788727df22a2cc149f7b5c | /gala/integrate/core.py | d7150e9b565f316c3bb7011aa15040378aa0d4e6 | [
"MIT"
] | permissive | adrn/gala | 579cc5a4ecb22df118e1c8a2322a46e935825054 | f62e1a6ae7a8466a4db5c8407471b524cf085637 | refs/heads/main | 2023-09-04T11:42:07.278388 | 2023-08-18T18:04:35 | 2023-08-18T18:04:35 | 17,577,779 | 115 | 89 | MIT | 2023-09-05T11:40:10 | 2014-03-10T00:56:18 | Python | UTF-8 | Python | false | false | 4,338 | py | """ Base class for integrators. """
# Third-party
import numpy as np
# This project
from gala.units import UnitSystem, DimensionlessUnitSystem
__all__ = ["Integrator"]
class Integrator(object):
def __init__(
self,
func,
func_args=(),
func_units=None,
progress=False,
... | [
"[email protected]"
] | |
6a4b0552b744dec84088346b499869e5c6e2f442 | 284b88b3ff07430e17c04503f646db50677f627b | /Algorithm_w_Python/breakingRecords/breakin.py | bcea1259a3ac5551c57727e3d6f685001859b3ce | [] | no_license | ybgirgin3/hackerrank-solutions | ae61c27173c24c920f6e002a12a1acd20928cf59 | 58c4f62585d115eff3e1a43595d6a8375f185696 | refs/heads/master | 2023-05-27T11:32:06.099639 | 2021-06-13T18:12:22 | 2021-06-13T18:12:22 | 280,741,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | #!/usr/bin/python3
### รงalฤฑลmฤฑyor aq
import math
import os
import random
import re
import sys
import numpy as np
np.set_printoptions(suppress=True)
# Complete the breakingRecords function below.
def breakingRecords(scores):
# n tane sayฤฑ girilecek
# girilen sayฤฑlarฤฑn max ve min terimlerinin
# hangi inde... | [
"[email protected]"
] | |
8d86da40269921bffa1c814385522d20c36cf4da | 28b0928057e96da28b268cbe1fe64ede3a2a20c5 | /addons/edi_product/models/edi_product_record.py | eeff16a7b54cf541e2c862d2bf6087f2e3be2e98 | [] | no_license | sasakuma/odoo-edi | 370061221e09f7ade1a7753ff237ebec24b55694 | 31a0ff761be3984adc5d6ceaabe781801715ad14 | refs/heads/master | 2020-03-29T18:24:55.576689 | 2018-10-29T04:50:51 | 2018-10-29T04:50:51 | 150,211,179 | 0 | 0 | null | 2018-10-29T04:50:52 | 2018-09-25T05:14:48 | Python | UTF-8 | Python | false | false | 2,829 | py | """EDI product records"""
from odoo import api, fields, models
class EdiDocument(models.Model):
"""Extend ``edi.document`` to include EDI product records"""
_inherit = 'edi.document'
product_ids = fields.One2many('edi.product.record', 'doc_id',
string="Products")
i... | [
"[email protected]"
] | |
942fb16d6341d7adf7dec90c86062803d46ebb56 | db053c220094368ecb784fbe62375378c97457c2 | /92.reverse-linked-list-ii.py | 01812dfd90c75c46be6106a88de76827a53e89a1 | [] | no_license | thegamingcoder/leetcode | 8c16e7ac9bda3e34ba15955671a91ad072e87d94 | 131facec0a0c70d319982e78e772ed1cb94bc461 | refs/heads/master | 2020-03-22T14:51:45.246495 | 2018-07-09T00:00:06 | 2018-07-09T00:00:06 | 140,211,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | #
# [92] Reverse Linked List II
#
# https://leetcode.com/problems/reverse-linked-list-ii/description/
#
# algorithms
# Medium (31.88%)
# Total Accepted: 145.3K
# Total Submissions: 455.9K
# Testcase Example: '[1,2,3,4,5]\n2\n4'
#
# Reverse a linked list from position m to n. Do it in one-pass.
#
# Note:ย 1 โค m โค n ... | [
"[email protected]"
] | |
ed93f6359fc8c624ea8f4a3efb3595b551de4a00 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyinst/pyinst-000/postinst.py | fe27556ee5b15caee330210d5f7103f3ac5dc6f8 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/env python
import os, sys, getopt, signal, select, time
import subprocess
verbose = False
# ------------------------------------------------------------------------
def exec_program2(fname, arg1, arg2, arg3):
global verbose
try:
if verbose:
print "Started", fname
... | [
"[email protected]"
] | |
a4e291834a035910169cf5c8fa887a2feef65ec6 | 7b13e6acb2a1f26936462ed795ee4508b4088042 | /็ฎๆณ้ข็ฎ/็ฎๆณ้ข็ฎ/ไบๅๆฅๆพ/LeetCode69ๆฑๅผๆน.py | cdee55e6ed01d6470cb969ad904f4d20d55e2c37 | [] | no_license | guojia60180/algorithm | ed2b0fd63108f30cd596390e64ae659666d1c2c6 | ea81ff2722c7c350be5e1f0cd6d4290d366f2988 | refs/heads/master | 2020-04-19T08:25:55.110548 | 2019-05-13T13:29:39 | 2019-05-13T13:29:39 | 168,076,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #Author guo
class Solution:
def mySqrt(self, x):
# if x==1:
# return 1
# if not x:
# return 0
l = 0
r = x
while l <= r:
mid = (l + r) // 2
if mid * mid <= x < (mid + 1) * (mid + 1):
return mid
elif m... | [
"[email protected]"
] | |
7281d23d02e3de9896dd3690adde741d708c1fe7 | 1b60b5c4d2a873b643dbd04fb77504d596237ba2 | /runtests.py | d8b2a28529b2ecfaaa4faf76e40c0f1029086034 | [
"BSD-3-Clause"
] | permissive | amolm-cuelogic/django-charsleft-widget | 32d832c90c9d269efd5877e83983c78a2ff5a0db | bbe0196c597c7b25f51d204acb10d05ab348d703 | refs/heads/master | 2021-01-22T19:09:15.856856 | 2016-10-14T08:15:51 | 2016-10-14T08:15:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | #!/usr/bin/env python
import sys
from os import path
import django
from django.conf import settings, global_settings
from django.core.management import execute_from_command_line
if not settings.configured:
BASE_DIR = path.dirname(path.realpath(__file__))
settings.configure(
DEBUG = False,
T... | [
"[email protected]"
] | |
131fa69d7c88902d3272e686e559688f3e1406f6 | 5c7f2ff956b1fd1477d56486e239b6e661a08efd | /reinforcement_learning/0x00-q_learning/3-q_learning.py | 38289878256043dd1d61c99f45447b4db0addd4e | [] | no_license | diego0096/holbertonschool-machine_learning | 60c5f40e185df04d02d9887d966542e85a981896 | 64b8984846c2b2b88bbf11125b55b482c7b74eea | refs/heads/master | 2023-04-02T01:27:59.263397 | 2021-04-02T21:33:51 | 2021-04-02T21:33:51 | 279,229,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | #!/usr/bin/env python3
"""3-q_learning.py"""
import numpy as np
epsilon_greedy = __import__('2-epsilon_greedy').epsilon_greedy
def train(env, Q, episodes=5000, max_steps=100, alpha=0.1,
gamma=0.99, epsilon=1, min_epsilon=0.1, epsilon_decay=0.05):
"""function that performs Q-learning"""
total_rewar... | [
"[email protected]"
] | |
674b0a7991768af96255c795dd3126b23dd92600 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_172/ch87_2020_04_29_11_23_49_782896.py | b473d466d2bfc573a99a1bf4c984260fa1ce298e | [] | 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 | 190 | py | with open('churras.txt', 'r') as arquivo:
conteudo = arquivo.readlines()
y = 0
for item in conteudo:
x = item.split(',')
y = y + x[1]*x[2]
print (y)
| [
"[email protected]"
] | |
acbc151d7b384b7d09b14aef7407e39844b2cb9e | a55d515cf59f4ee898892fbf358c327ff53bce96 | /djangodialogs/auth/urls.py | b76c9847559dc83f03b63bbafd5035c1a6a268a5 | [] | no_license | furious-luke/django-dialogs | 859a3c30970f0a40813f828a0e0909cf5de29d24 | 142b5075910c940091a1f58a69d5192f74c10f9c | refs/heads/master | 2016-09-05T17:23:22.244282 | 2012-03-14T04:24:59 | 2012-03-14T04:24:59 | 1,964,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^accounts/login/ajax/$', login),
url(r'^accounts/register/ajax/$', register),
)
| [
"[email protected]"
] | |
25a115ac2ed7f5a2cae20b819f3d0d0d7c73959f | a50e906945260351f43d57e014081bcdef5b65a4 | /collections/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_3g_modem_custom.py | bfa0a35321a02ba247ba88189f58c418996fe034 | [] | no_license | alhamdubello/evpn-ipsec-dci-ansible | 210cb31f4710bb55dc6d2443a590f3eb65545cf5 | 2dcc7c915167cd3b25ef3651f2119d54a18efdff | refs/heads/main | 2023-06-08T10:42:35.939341 | 2021-06-28T09:52:45 | 2021-06-28T09:52:45 | 380,860,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,173 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"[email protected]"
] | |
772d2710213f53600f2da917a56490ae3251092a | 7e5a7171eb3e97d9d18b928092f94142e5cb51e3 | /system/t06_publish/snapshot.py | 5fac3d2521971707f55d158fddf4f02dda5f9e6d | [
"MIT"
] | permissive | sbadia/aptly | e67ef68c15bad196b6723644113179a8495277fb | 5d16cf06cf23b5a70b0d375fcc1a43eaa7053071 | refs/heads/master | 2020-12-28T19:24:16.093595 | 2015-02-04T22:49:29 | 2015-02-04T22:49:29 | 28,808,010 | 1 | 0 | null | 2015-01-05T10:27:37 | 2015-01-05T10:27:37 | null | UTF-8 | Python | false | false | 40,731 | py | import os
import hashlib
import inspect
from lib import BaseTest
def strip_processor(output):
return "\n".join([l for l in output.split("\n") if not l.startswith(' ') and not l.startswith('Date:')])
def sorted_processor(output):
return "\n".join(sorted(output.split("\n")))
class PublishSnapshot1Test(BaseT... | [
"[email protected]"
] | |
a3853c891ca016a85276919f21c11e6ea1299f0e | 490f5e517942f529ddc8c1e0d421a208ff1ca29b | /02_code/listinstance2.py | c198804a387d5ef0f574c63f87e3a85e035230d8 | [] | no_license | emnglang/py-lab | facdc464a8c84b90f06b5cb639315981c0b4ba8d | bc3566da81e0b2cfa9ce563ffc198d35294971a1 | refs/heads/master | 2020-03-25T15:10:42.856062 | 2018-08-24T14:54:33 | 2018-08-24T14:54:33 | 143,869,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #!python
# File listinstance.py (2.X + 3.X)
class ListInstance:
"""
Mix-in class that provides a formatted print() or str() of instances via
inheritance of __str__ coded here; displays instance attrs only; self is
instance of lowest class; __X names avoid clashing with client's attrs
"""
de... | [
"[email protected]"
] | |
eacab20918d79ac5d79f76307ea5cd4283e90349 | 0b76e4db1f08f2d6d7b9379a884c2075f6e258c3 | /w10/G3/demo/demo/urls.py | 6a76c0435cad61a73f5dc7da4dae78ad382bcce9 | [] | no_license | bobur554396/WD2020Spring | 244ec8b491f297646d1d37f1feeb3767b68b9180 | 2b833c9043701ebaa4d122f717c8465af8fd5677 | refs/heads/master | 2020-12-26T19:01:46.605344 | 2020-04-18T05:33:42 | 2020-04-18T05:33:42 | 237,606,624 | 1 | 6 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | """demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"[email protected]"
] | |
4c6f6c224597b05b7e7ca61fee80f16589525350 | 248cf77b8a24b3b35e658d81b4c9cb8c450c2ca4 | /cryptex/streamers/bitbay/__init__.py | cdb4ef4c0f13d264b7f1b3ca9447113e54d3cb0b | [] | no_license | Reynaldo61/cryptex | fee1e124f544a049a74775fab4540cfd89d405df | deb34a449bdeb4e26009ef21035383ecf463cb3e | refs/heads/master | 2020-09-09T21:04:44.855833 | 2018-03-04T17:41:32 | 2018-03-04T17:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .bitbay import BitbayBase as base
from .wrapper import BitbayWrapper as wrapper
from .streamer import BitbayStreamer as streamer
__version__ = 0.1
__exchange__ = "bitbay"
__method__ = "rest"
| [
"[email protected]"
] | |
5628e326c354f7cd3c1d230e5e6e83140c249278 | a40950330ea44c2721f35aeeab8f3a0a11846b68 | /INTERACTION1/DRIVER/Interaction/PumpsStation/Liquid/_OneSensor.py | b7ac8d7e289207ed76be73e90b0fa19808b3bab0 | [] | no_license | huang443765159/kai | 7726bcad4e204629edb453aeabcc97242af7132b | 0d66ae4da5a6973e24e1e512fd0df32335e710c5 | refs/heads/master | 2023-03-06T23:13:59.600011 | 2023-03-04T06:14:12 | 2023-03-04T06:14:12 | 233,500,005 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | import time
import random
import pigpio
import threading
BAUD = 9600
class OneSensor(object):
def __init__(self, pi, sid, rx_pin, tx_pin, data_cb):
self._pi = pi
self._sid = sid
self._rx_pin = rx_pin
self._tx_pin = tx_pin
self._data_cb = data_cb
# PI
self.... | [
"[email protected]"
] | |
60413c7f96d539ba2b325c06b0678d2f48db7667 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/scipy/fft/setup.py | f0d5dade992f334540d4759fc4100bb1c8bdaf3c | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f32208914b4d7de0ea26596a8be64ef729f4cc5799cd04da84cd8f639c4796de
size 448
| [
"[email protected]"
] | |
67cf67841c5e1908a4086e5b9737233c7076141c | 2698b0148191078f36efe266c3572d9f30724255 | /sharedslides.py | d49c4cdff40d8d397bccf9a8082771f798ea1678 | [] | no_license | sugar-activities/4196-activity | 8c81dc6c0aa0c7e7fd8bd08da79c5a1279d7d400 | 8eaefd6bc6429694e2d765b70f5bdd42b1a5286a | refs/heads/master | 2021-01-19T23:15:28.535962 | 2017-04-21T05:45:34 | 2017-04-21T05:45:34 | 88,937,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,085 | py | # -*- mode:python; tab-width:4; indent-tabs-mode:nil; -*-
# sharedslides.py
#
# Class that performs all work relating to the sharing of slide decks and ink.
# Kris Plunkett <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public ... | [
"[email protected]"
] | |
6b822a81c52ad1a954af151406c8f6fad2de0bae | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/networkx/testing/__init__.py | 884ac83d194f33d3597f6095678a2801e2c8fecc | [
"MIT"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 75 | py | from networkx.testing.utils import *
from networkx.testing.test import run
| [
"[email protected]"
] | |
a3e4ee41e561ef8abd0f4c96f80857d31f2980d3 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_031858.28+002325.7/sdB_sdssj_031858.28+002325.7_lc.py | 015e2ab508983a3ff321694093bcee12e4301b9c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[49.742833,0.390472], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_031858.28+002325.7/sdB_sdssj_031858.28+002325.7_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972... | [
"[email protected]"
] | |
27ea5d9ee615c2727ec11f2710fc2f03b5a30bfc | 7d9d3d5ce2ac19221163d54a94c025993db0af4f | /autotest/ogr/ogr_dxf.py | 2222aacac9eb29e918c8f8f18981e317beeaa58a | [
"MIT"
] | permissive | dcgull/gdal | 5408adad77d001db32173bba547b447220b5e9a2 | a5e2a7b54db955bd061ebfc6d69aa2dd752b120c | refs/heads/master | 2020-04-03T13:30:40.013172 | 2013-10-11T12:07:57 | 2013-10-11T12:07:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,233 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# $Id: ogr_dxf.py 26354 2013-08-21 15:28:27Z rouault $
#
# Project: GDAL/OGR Test Suite
# Purpose: Test OGR DXF driver functionality.
# Author: Frank Warmerdam <[email protected]>
#
#####... | [
"[email protected]"
] | |
37d6f988a200dc46a67310f1d35ed4b3cdc5d949 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/nltk/chat/iesha.py | 225e8202b10289cc992b3c089c98d1784db5c7ee | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,402 | py | # Natural Language Toolkit: Teen Chatbot
#
# Copyright (C) 2001-2021 NLTK Project
# Author: Selina Dennis <[email protected]>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
This chatbot is a tongue-in-cheek take on the average teen
anime junky that frequents YahooMessenger or ... | [
"[email protected]"
] | |
6284ac6837cd1258e98d0c17dd4b125e0698cde9 | bc32a53cfebc7c03987ed44492ed8afb79aed5a3 | /customers/management/commands/generate_purchases.py | c2b3220e7ef021aca32af2aadbcce1d5bd7d9792 | [
"MIT"
] | permissive | jeremy886/bookstore | abe537df821d3d2b873c166965aac2a01e0d5914 | d220efcc21b95942d14fae672da746b1abcaf750 | refs/heads/master | 2020-03-20T19:42:04.639190 | 2017-05-12T19:07:39 | 2017-05-12T19:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from django.core.management.base import BaseCommand, CommandError
import factory
from ...factories import PurchaseFactory
from ...models import Purchase
class Command(BaseCommand):
help = 'Generate N-number Purchases'
def add_arguments(self, parser):
parser.add_argument('num', nargs='?', default=10... | [
"[email protected]"
] | |
85a17047bc108250cf945819caff9c91c8ad3cf9 | 4142b8c513d87361da196631f7edd82f11465abb | /python/1263A.py | b8918a15dc5cdc4a97064bbcc7dad5e27403ed25 | [] | no_license | npkhanhh/codeforces | b52b66780426682ea1a3d72c66aedbe6dc71d7fe | 107acd623b0e99ef0a635dfce3e87041347e36df | refs/heads/master | 2022-02-08T17:01:01.731524 | 2022-02-07T10:29:52 | 2022-02-07T10:29:52 | 228,027,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
n = int(input())
for _ in range(n):
a, b, c = sorted(list(map(int, input().split())))
if a + b >= c:
print(int((a+b+c)/2))
else:
print(a+b)
| [
"[email protected]"
] | |
b583f8756e2031e3b01beb734e64fdfc0770f0c3 | ab19c3757766f00c7414aa10641f8c7e6321375d | /40.py | 7ef3408fe4ce923ea05c074a96da77db063a15e7 | [] | no_license | HHariHHaran/python-programming | 2c70ff0c4b24ae48b8096075a29ffc0edfe1ef00 | c2db869e352d7ee22d499dd772f5cb2285b2822f | refs/heads/master | 2020-04-19T09:19:56.918989 | 2019-01-22T09:50:28 | 2019-01-22T09:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | n11 = 0
n12 = 1
count = 0
nterms=int(input("n"))
if nterms <= 0:
print("Positive integer")
elif nterms == 1:
print("Fibonacci sequence upto",nterms,":")
print(n11)
else:
print("Fibonacci sequence upto",nterms,":")
while count < nterms:
print(n11,end=' ')
nth = n11 + n12
n11 = n12
n12 = nth
count += 1
| [
"[email protected]"
] | |
74d8a11fc9df07567058ed3e34f2de8eb3f18d54 | fcdb430384f00a39a936b46eae5606c9ec339b15 | /pentai/run_ai.py | 3ac6bb7608270e981abd3d943d83fb1dc94a1077 | [
"MIT"
] | permissive | cropleyb/pentai | 78a03161d26eb5cdd7b0f023b782b3bf9352456a | bbd32864cabce9ba5cb1051fa9d78d69c8feb5e5 | refs/heads/master | 2020-04-16T16:13:53.640001 | 2014-12-10T07:54:05 | 2014-12-10T07:54:05 | 24,712,772 | 8 | 1 | null | 2016-06-04T08:01:48 | 2014-10-02T08:59:04 | Python | UTF-8 | Python | false | false | 10,233 | py | #!/usr/bin/env python
'''
from guppy import hpy
h = hpy()
h.setref()
'''
import pentai.base.rules as r_m
import pentai.base.game as g_m
import time
from pentai.ai.ai_player import *
#from pentai.db.evaluator import *
from pentai.db.ai_factory import *
from pentai.db.openings_book import *
from pentai.db.games_mgr im... | [
"[email protected]"
] | |
6d4c342943a36cbc73c3e96e062a082e56c15181 | aa853a9094fff4b6e9b0ddc7469be29ad5f0f811 | /poi_stock_account_consolidate/models/__init__.py | 646eda432c164d20562a02dbbb872636bba80b21 | [] | no_license | blue-connect/illuminati | 40a13e1ebeaceee39f17caa360f79e8deeaebf58 | 6682e60630064641474ddb2d8cbc520e30f64832 | refs/heads/master | 2022-01-06T00:55:58.465611 | 2018-11-24T04:30:03 | 2018-11-24T04:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | ##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2012 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or... | [
"[email protected]"
] | |
45e8a9ce23db31e8bffc2db20e4031eff14e986a | ebb2a06a025b3c25443b2287c7c9b130cad5b5f1 | /unsourced/scrape.py | e9a26d03bd11897e45f1248ad095f5c358f6b1c8 | [] | no_license | bcampbell/unsourced | b587d423e2422ad2e5060263404b062df2941dbe | 4e0b418a957bbac9c7d3358425cdf11bcd436388 | refs/heads/master | 2021-01-23T12:20:54.033881 | 2014-02-18T08:43:25 | 2014-02-18T08:43:25 | 2,531,708 | 0 | 1 | null | 2012-10-04T01:14:19 | 2011-10-07T10:18:04 | Python | UTF-8 | Python | false | false | 2,037 | py | import urllib
import collections
import json
import datetime
from unsourced import util,analyser,highlight
from unsourced.forms import EnterArticleForm
from unsourced.models import Article,ArticleURL,Action
class Status:
""" status codes returned by scrapomat """
SUCCESS = 0
NET_ERROR = 1
BAD_REQ = ... | [
"[email protected]"
] | |
5c96b24cce307e12e0ca9c44917eeb453918a858 | 399fb29d8525b6d7ac298783675d0d56e37bcac7 | /python/ray/tune/execution/ray_trial_executor.py | 0a31e063f80879f2b1c36e393477920c460d3aa7 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | AmeerHajAli/ray | 40c9aebe0da59e9bcd70303d981bfe6b65007991 | 1ffd032f5f793d8817217a040f0f636f9372cd56 | refs/heads/master | 2023-03-28T10:50:09.186561 | 2023-03-24T23:08:08 | 2023-03-24T23:08:08 | 175,129,851 | 1 | 0 | Apache-2.0 | 2019-03-12T03:39:16 | 2019-03-12T03:39:14 | null | UTF-8 | Python | false | false | 49,716 | py | # coding: utf-8
import copy
import logging
import os
import random
import time
import traceback
from collections import deque
from enum import Enum
from functools import partial
from typing import Callable, Dict, Iterable, Optional, Set, Union
import ray
from ray.actor import ActorHandle
from ray.air import Checkpoint... | [
"[email protected]"
] | |
5c5b4e283559db0b607779e73d531b6dba39f937 | d66993b0383ee7a97c9d5fe761269a3cb8e67e22 | /Ejercicios/POO_Listas.py | 63a2dd591e2cff1c2b2819cdc5c99362c94d6104 | [] | no_license | rramosaveros/CursoPythonCisco | 09828e3d8190490c0dc30861ae241f5222e108d6 | 1508e67873adfcf31b8c78d3f5cb2a0572dfeb1c | refs/heads/master | 2023-06-27T12:07:52.652780 | 2021-08-01T14:19:19 | 2021-08-01T14:19:19 | 391,647,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | ๏ปฟlst = []
for x in range(10):
lst.append(1 if x % 2 == 0 else 0)
print(lst) | [
"[email protected]"
] | |
ca1be42514d3cf0cd7dd055208df6e2fb2b5309b | bbeecb7cff56a96c580709b425823cde53f21621 | /msw/spots/north_america/nova_scotia.py | 7d3025323b4dad586bac40ff88083a92701a9107 | [] | no_license | hhubbell/python-msw | f8a2ef8628d545b3d57a5e54468222177dc47b37 | 5df38db1dc7b3239a6d00e0516f2942077f97099 | refs/heads/master | 2020-04-05T23:46:21.209888 | 2015-06-16T01:36:43 | 2015-06-16T01:36:43 | 37,476,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | LAWRENCETOWN = 342
WESTERN_HEAD = 343
POINT_MICHAUD = 758
COW_BAY = 786
SUMMERVILLE = 788
MARTINIQUE_BEACH = 814
NOVA_SCOTIA_HURRICANE = 1096
| [
"[email protected]"
] | |
f404316472bc8104bb2812ba039e0dd0f54ed07e | adbedf9626c52748aa048f2b17c18d25262b4d56 | /robot_framework_message_queue/build/lib/MessageQueue/MessageQueue.py | ac1ace0da6944b8ec8340417a2d56aaf98fb71ea | [] | no_license | sanjitroy1992/robot_framework_custom_libraries | 3ef91ea6d4705215f86c83d276d67ce7c5af673a | e5fde8f428a4d46d5cacb2c5369f9c59529f5c91 | refs/heads/master | 2022-11-06T09:11:02.148601 | 2020-06-29T09:35:46 | 2020-06-29T09:35:46 | 274,330,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,554 | py | try:
import pymqi
flag = True
except:
flag = False
from stompest.config import StompConfig
from stompest.sync import Stomp
import os
class MessageQueue(object):
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
def _ibm_queue_configure(self, host, port,queue_manager, channel):
""" To configure IBM Queue"""
... | [
"[email protected]"
] | |
217faec137550783954ec982386548f78c4d0443 | b483c598fa375e9af02348960f210b9f482bd655 | /cursoemvideo/desafios/Desafio037.py | 7c82f9d600b1128328fb5824c6e2d85828beca8b | [
"MIT"
] | permissive | brunofonsousa/python | 6f766d08bf193180ea9a4903cb93ffd167db588d | 8f2f26c77015c0baaa76174e004406b4115272c7 | refs/heads/master | 2022-09-30T14:58:01.080749 | 2020-06-08T09:55:35 | 2020-06-08T09:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | '''
Escreva um programa em Python que leia um nรบmero inteiro qualquer e peรงa para
o usuรกrio escolher qual serรก a base de conversรฃo: 1 para binรกrio, 2 para octal
e 3 para hexadecimal.
'''
num = int(input('Digite um nรบmero inteiro: '))
print('Escolha uma das bases para conversรฃo: ')
print('[ 1 ] converter para BINรRIO... | [
"[email protected]"
] | |
2c3ae2bb82f2ad88bc2dc1a2824b1a4620858ef4 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/NETFINITYMANAGER-MIB.py | 4b221449307734e8d201c53c2843e368aaded33a | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 13,378 | py | #
# PySNMP MIB module NETFINITYMANAGER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETFINITYMANAGER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:08:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"[email protected]"
] | |
9ed32859540a3be231e4c075717f88ae4e513b0d | c6cef87f0fc72df793b6151b3a60b60c026d9af0 | /measurements/forms.py | 41108293c5da115e1580f41279c5b5c442e8d104 | [] | no_license | rohitrajput-42/My_Map | 50ff393bd256d3bc922b2601aaad845d1a5c1094 | 22605ba8cea5f709bc6dc9f686431bd0d89d541e | refs/heads/main | 2023-06-05T15:15:02.206103 | 2021-07-01T04:26:48 | 2021-07-01T04:26:48 | 381,810,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from django import forms
from django.forms.models import ModelForm
from .models import Measurement
class MeasurementModelForm(forms.ModelForm):
class Meta:
model = Measurement
fields = ('destination',)
widgets = {
'destination': forms.TextInput(attrs = {'placeholder': 'Enter yo... | [
"[email protected]"
] | |
58526088e3fb0f233400ca6bb5eefe05cf3affce | aeeaf40350a652d96a392010071df8a486c6e79f | /archive/python/Python/binary_tree/236.lowest-common-ancestor-of-a-binary-tree.0.py | 439011598294d17040086a1c52c0b366b1525b26 | [
"MIT"
] | permissive | linfengzhou/LeetCode | 11e6c12ce43cf0053d86437b369a2337e6009be3 | cb2ed3524431aea2b204fe66797f9850bbe506a9 | refs/heads/master | 2021-01-23T19:34:37.016755 | 2018-04-30T20:44:40 | 2018-04-30T20:44:40 | 53,916,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# what if p or q not in the tree
class Solution(object):
def lowestCommonAncestor(self, root, p, q):
"""
:type root: TreeNode
... | [
"[email protected]"
] | |
bbbc8ede49f033fcaa8cfe5937eff44ec53222a0 | f9462f3768fa058bd895a56b151da694664ce588 | /examples/201_visualize_model_rhino.py | acacdc3daa62bc676a7299833e03bf0c92d3c5dd | [
"MIT"
] | permissive | ryanpennings/workshop_swinburne_2021 | 16a9a7e2c7134832f8f714b7b430376f1b67dfb2 | 820ef4e36e73ac950f40e1846739087180af2e1c | refs/heads/main | 2023-05-31T16:35:16.535310 | 2021-06-17T06:24:51 | 2021-06-17T06:24:51 | 377,373,107 | 0 | 0 | MIT | 2021-06-17T06:24:51 | 2021-06-16T04:45:02 | null | UTF-8 | Python | false | false | 256 | py | from compas_rhino.artists import RobotModelArtist
from compas.robots import RobotModel
model = RobotModel.from_urdf_file('models/05_with_colors.urdf')
artist = RobotModelArtist(model, layer='COMPAS::Robot Viz')
artist.clear_layer()
artist.draw_visual()
| [
"[email protected]"
] | |
a1e209bed0477352863b8d389058b400cebac1b3 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/shared/info/panels/__init__.py | a211e9aae9803d9b8c33f8e2fe8f3a05f3e5139b | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 143 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\shared\info\panels\__init__.py
pass
| [
"[email protected]"
] | |
17092c071cf752cfa5953bed7125cf311ef11293 | a9b6243dad4b86f75401a6ee0d6e8505fa57aa83 | /test.py | f02e47c3ec23bca07523acac72bf183601844ae1 | [] | no_license | minji-o-j/system-for-visually-impaired | b4503078b9a74896a3786683f9f14485466bc7d5 | 748b9cdf97259d7f3d0cd5d15167ad5a629f6089 | refs/heads/master | 2023-02-06T21:14:37.840155 | 2020-12-30T11:03:49 | 2020-12-30T11:03:49 | 256,681,461 | 7 | 5 | null | 2020-12-06T08:27:27 | 2020-04-18T06:02:48 | Jupyter Notebook | UTF-8 | Python | false | false | 4,461 | py | from __future__ import division
from models import *
from utils.utils import *
from utils.datasets import *
from utils.parse_config import *
import os
import sys
import time
import datetime
import argparse
import tqdm
import torch
from torch.utils.data import DataLoader
from torchvision import datasets
from torchvis... | [
"[email protected]"
] | |
212e3c7f9eed689458556700d2b64f75b0d4b956 | 425aba1a7c134c78e8d5710890d426d7d6b0bd45 | /tests/settings.py | f5b9b7ceb97006a73fcfd1b1add3b90442fa9338 | [
"BSD-3-Clause"
] | permissive | curiousTauseef/django-multiple-form-view | bd1f4558879382e9ae1b6c173ecbb2102350c12e | de13d124d913f12aa01aeeb6ea2f7b1768cd93cb | refs/heads/master | 2021-08-19T22:28:12.921932 | 2017-11-27T15:58:16 | 2017-11-27T15:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'not-a-secret'
DEBUG = True
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.staticfiles',
'testapp',
]
MIDDLEWARE = []
ROOT_URLCONF = 'testapp.urls'
TEMPLATES = ... | [
"[email protected]"
] | |
8c3b83d33ccb9923cd38f392fa462b54697237c9 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_day_cq_mailer_impl_cq_mailing_service_properties.py | 224a540ecb8cd7059da3fee3c5ac2c652c422627 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,257 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-... | [
"[email protected]"
] | |
218dc82bd8eed4a2d5859956054fc24b06364e5a | f8b5aafac15f408a48fabf853a918015c927e6fe | /backup/virtualenv/venv27/lib/python2.7/site-packages/heatclient/tests/test_events.py | e94b7eb9702afaf92195edca367bae7b1ce1b5b4 | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,855 | py | # Copyright 2013 IBM Corp.
#
# 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 t... | [
"[email protected]"
] | |
9b3fc0aadb7a94e0c3921ce7159d230d74acf942 | c89e59b4d018e8a2d7dc0dbc3bb7a3768024f849 | /before2021/python/190922/2_D4_1824_ํ์ง์ด์ํ๋ก๊ทธ๋จ๊ฒ์ฆ.py | 35739cf8ff47cfc4a6a46240d6cabeed99ea85a6 | [] | no_license | leeiopd/algorithm | ff32103a43e467a5a091257cc07cf35365ecbf91 | e41647d3918c3099110d97f455c5ebf9a38d571e | refs/heads/master | 2023-03-08T23:46:34.919991 | 2023-02-22T09:39:46 | 2023-02-22T09:39:46 | 166,131,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,328 | py | '''
Samsung Collegiate Programming Cup์ Samsung์ด ๋งค๋
๋ง๋ค ๊ฐ์ตํ๋ ๋ํ์ ํ๋ก๊ทธ๋๋ฐ ์ถ์ ๋ค.
์ด ์ถ์ ์ ์ฐ์น์๋ Samsung์ ์
์ฌํ ์ ์์ง๋ง, ๋๋จธ์ง ์ฌ๋๋ค์ ์๊ณต์ ํญํ ์์ผ๋ก ๋น ์ง๊ฒ ๋๋ค.
์ด ์ถ์ ์์ ์ฐธ๊ฐ์๋ค์ ์์ ์ด ์ ํธํ๋ ์ธ์ด๋ก ํ๋ก๊ทธ๋จ์ ์์ฑํ ์ ์๋ค.
ํ์ง์ด๋ ์์ ์ด ๊ฐ๋ฐํ ์ธ์ด ํ์
๋ธ๋ฆฌ์ด๋ฅผ ์ด์ฉํด ๋ํ์ ์ฐธ๊ฐํ๋ค.
์ถ์ ์์ ๊ผญ ์ฐ์นํ๊ณ ์ถ์ ํ์ง์ด๋ ์์ ์ด ์์ฑํ ํ๋ก๊ทธ๋จ์ด ๊ฒฐ๊ตญ์๋ ๋ฉ์ถ ์ ์๋์ง ํ์ธํ๊ณ ์ถ๋ค.
ํ์
๋ธ๋ฆฌ์ด๋ ๋ค์๊ณผ ๊ฐ์ด ๋์ํ๋ค:
- ํ๋ก๊ทธ๋จ์ด ... | [
"[email protected]"
] | |
1112cad995c7f9cfcf9ea20d70efdbb239b37b36 | 2e26bf9c44f349ee308e63e067d93da654daf69d | /projecteuler/euler036.py | 878cb071e730b422a0ee722e5900f8f5af658ac0 | [
"MIT"
] | permissive | RelativeTech/PYTHON_PRAC | 034e44484d63d50a9c4295aa7e1dc63ef786fb37 | 7fa145dece99089706460466a89901e00eef9d28 | refs/heads/master | 2023-06-04T18:59:45.059403 | 2021-06-07T19:40:10 | 2021-06-07T19:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | #!/usr/bin/env python
"""
Solution to Project Euler Problem 36
http://projecteuler.net/
by Apalala <[email protected]>
(cc) Attribution-ShareAlike
http://creativecommons.org/licenses/by-sa/3.0/
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
Find the sum of all numbers, less than one mi... | [
"[email protected]"
] | |
b811df8852a8bc944150eb81bb5b2b5cdb6b8914 | 5cc954e27fd924da0f6f44e7d58691d612a77f80 | /coremltools/converters/mil/frontend/tensorflow/ssa_passes/__init__.py | a659bb2d3a72c417e763c9e2730b9e92c562bf9e | [
"BSD-3-Clause"
] | permissive | 1duo/coremltools | e25f1a8423ec368bf1e7dabfaa36e77952578e79 | 37e619d99bf603d2cb9ea0839fa3ebe649996b0a | refs/heads/master | 2021-07-15T08:48:51.930217 | 2020-07-27T20:58:33 | 2020-07-27T20:58:33 | 203,466,876 | 2 | 0 | BSD-3-Clause | 2020-07-22T00:05:02 | 2019-08-20T22:59:50 | Python | UTF-8 | Python | false | false | 732 | py | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
# Import all passes in this dir
from os.path import dirname, basename, isfile, join
import glob
excl... | [
"[email protected]"
] | |
8d1ab7912a785809077016e666d282153dd9da31 | 426aed70aa6925105f10c7fcb7b611b277bf8b84 | /python/dgl/distributed/__init__.py | 462e347f48493808c907b3d4968a92bfd18ca25f | [
"Apache-2.0"
] | permissive | hengruizhang98/dgl | 0ce7201ca7380482440f031cb8ced6ca0e8c8dc1 | 195f99362d883f8b6d131b70a7868a537e55b786 | refs/heads/master | 2023-06-10T22:21:45.835646 | 2021-04-13T12:29:43 | 2021-04-13T12:29:43 | 336,804,001 | 3 | 0 | Apache-2.0 | 2021-02-07T14:16:20 | 2021-02-07T14:16:20 | null | UTF-8 | Python | false | false | 1,054 | py | """DGL distributed module contains classes and functions to support
distributed graph neural network training and inference in a cluster of
machines.
This includes a few submodules:
* distributed data structures including distributed graph, distributed tensor
and distributed embeddings.
* distributed sampling.
* di... | [
"[email protected]"
] | |
da5ef632a7cf8fee5a2e5b4c2148620481985735 | 7a0625ef4c271ed9992a736de7bb93215b7013fd | /leetcode70.py | 69d3a74dd79759a429e6c7c53286866920e7b5a1 | [] | no_license | yuchien302/LeetCode | 6576b93c005ea2275646df7b9547c22683d3b45c | c9a53ef2fc1fd1fea7377c3633689fa87601dba6 | refs/heads/master | 2020-12-11T01:42:36.980414 | 2015-12-03T02:53:51 | 2015-12-03T02:53:51 | 36,424,494 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import unittest
class Solution(object):
def climbStairs(self, n):
"""
:type n: int
:rtype: int
"""
steps = []
steps.append(1)
steps.append(1)
for i in range(2, n+1):
steps.append(steps[i-1] + steps[i-2])
return steps[-1]
class T... | [
"[email protected]"
] | |
dcd43c82ed320c62fa992c05e7d3c179dd40a3ce | 5b4b1866571453f78db5b06a08ff0eda17b91b04 | /test/vanilla/Expected/AcceptanceTests/Validation/validation/_configuration.py | 058eb79f711e66e68abbc33d48dc1d80d856909a | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | koek67/autorest.azure-functions-python | ba345f1d194ca7431daab1210a0cd801d4946991 | b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783 | refs/heads/main | 2022-12-20T13:27:56.405901 | 2020-09-30T08:23:11 | 2020-09-30T08:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | 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 ... | [
"[email protected]"
] | |
8aa0b4016e82d440ca3696056f79e03f23b463be | afddf2a9a26e2a779d293bd7c76bde68769fd537 | /server/transformer.py | 8aa25c6947f1098224f3534e9fc691b713e66981 | [] | no_license | getChan/ADV | 54b5534cfa01dff49143ec0ce053fa397d4b1c6d | 263ada0fd2241abda5ae8a4a7dbb0f13bff51816 | refs/heads/master | 2020-06-21T22:28:38.155235 | 2020-01-15T07:52:21 | 2020-01-15T07:52:21 | 197,566,824 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,380 | py | import tensorflow as tf
import numpy as np
def get_angles(pos, i, d_model):
angle_rates = 1 / np.power(10000, (2 * (i//2)) / np.float32(d_model))
return pos * angle_rates
def positional_encoding(position, d_model):
angle_rads = get_angles(np.arange(position)[:, np.newaxis],
np.a... | [
"[email protected]"
] | |
d1a77da2f46d84a5e90b64fd9a100a0ab730d597 | 44cf0bda12c8ca392a7000efa709adc2ac2aff42 | /26_๋ค์_์ด๋ฉ์ผ_ํฌ๋กค๋ง.py | cb07d2336b10220b005cf68307343167a7d1fd17 | [] | no_license | swj8905/Shinhan_Basic_Course | a3d0ebe9aa12a70f3da56cf78e7eca39c5a92238 | b59ad0eeaa4ef77bee5d41d504ecd76148dbf9f8 | refs/heads/master | 2023-06-03T07:30:24.585194 | 2021-06-29T09:32:02 | 2021-06-29T09:32:02 | 380,967,321 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | from selenium import webdriver
import time
import chromedriver_autoinstaller
chrome_path = chromedriver_autoinstaller.install()
browser = webdriver.Chrome(chrome_path) # ํฌ๋กฌ๋ธ๋ผ์ฐ์ ์คํ
browser.get("https://logins.daum.net/accounts/signinform.do?url=https%3A%2F%2Fwww.daum.net%2F")
# ์์ด๋ ์
๋ ฅ
id = browser.find_element_by_css_s... | [
"[email protected]"
] | |
8361438a1cee72c2f72855173f80fe01740cc2d8 | 6ab9a3229719f457e4883f8b9c5f1d4c7b349362 | /leetcode/00007_reverse_integer.py | 9db0a0e2296e3e0688f687c37ad5b73c6f853dd8 | [] | no_license | ajmarin/coding | 77c91ee760b3af34db7c45c64f90b23f6f5def16 | 8af901372ade9d3d913f69b1532df36fc9461603 | refs/heads/master | 2022-01-26T09:54:38.068385 | 2022-01-09T11:26:30 | 2022-01-09T11:26:30 | 2,166,262 | 33 | 15 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | class Solution:
def reverse(self, x: int) -> int:
negative = x < 0
x = -x if negative else x
res = 0
while x:
res = res * 10 + (x % 10)
x = x // 10
res = -res if negative else res
return res if -2**31 <= res and res <= 2**31 - 1 else 0 | [
"[email protected]"
] | |
303600ff623cfbd44383faae9c4b2835e9251e51 | 9b9512f0f63ddaca315c3eccb63ff19e884a56fa | /submitted/test.444.py | aa1d522ad0a863685e78384feb6341cde7af26ca | [] | no_license | yashton/compiler | d793cf69c668ee68928ab74af70e17c53ffadeef | 40007da3af04a7ee31380ae29e23dcfbb50a1c8d | refs/heads/master | 2020-08-02T15:43:35.181718 | 2019-09-27T23:04:37 | 2019-09-27T23:04:37 | 211,413,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5 | py | s3=1
| [
"[email protected]"
] | |
26455f7f887f002a25abe4aae6cbde984a2d68c6 | 17381d148b86fc4354d1ac0e4062a35215eafd09 | /paiza/C062.py | d97af758a417b3e2440ff2a2c8de5acb6614538a | [] | no_license | worldyone/workspace | 027a93e1f227eb1c10485f6f2082a92bd98710d5 | 1e3fa21e23d6e91268882c9e480b76c4a3c4920f | refs/heads/master | 2023-03-09T01:21:53.402440 | 2022-09-20T14:47:49 | 2022-09-20T14:47:49 | 174,147,113 | 0 | 1 | null | 2023-02-10T22:53:26 | 2019-03-06T13:07:08 | Python | UTF-8 | Python | false | false | 195 | py | cnt = 0
rcnt = 0
m = "melon"
T = int(input())
for t in range(T):
sushi = input()
rcnt -= 1
if sushi == m and rcnt <= 0:
cnt += 1
rcnt = 11
print(cnt)
| [
"[email protected]"
] | |
77ff9ab3b4d79c4946379a900be2fcb4a29ca7d3 | d4792ed2061380bb23cec6fcd1c18ea2939490ac | /examples/keras_recipes/antirectifier.py | 4798e2df9b4fff6c10b3d5e9854ee727815d9458 | [
"Apache-2.0"
] | permissive | tcglarry/keras-io | 47e813795204a4fc88512c90168d3f81d2aad8aa | 4f26aead10fd238c98d85fbb6a32679923d79c76 | refs/heads/master | 2022-06-09T09:21:50.376337 | 2020-05-07T21:53:26 | 2020-05-07T21:53:26 | 262,175,145 | 2 | 0 | Apache-2.0 | 2020-05-07T22:53:45 | 2020-05-07T22:53:44 | null | UTF-8 | Python | false | false | 3,072 | py | """
Title: Simple custom layer example: Antirectifier
Author: [fchollet](https://twitter.com/fchollet)
Date created: 2016/01/06
Last modified: 2020/04/20
Description: Demonstration of custom layer creation.
"""
"""
## Introduction
This example shows how to create custom layers, using the Antirectifier layer
(original... | [
"[email protected]"
] | |
6d1c82a577174ba581dfefe9fd5878004cf1c33d | 05ae2d651e6adbc4cfea04e2ab8a93c0a9e23aff | /core/roof/roof_props.py | d077cb45445b4acd8b5534a71210700108775101 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | thunderpwn/building_tool | 932087b2415607b41d3da374da1eb2d5e10dbb3d | 5aa4a476f93ae1b8fd8240439b3272d8cf33a0b1 | refs/heads/master | 2022-04-12T18:59:47.373480 | 2020-04-11T11:31:24 | 2020-04-11T11:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | import bpy
from bpy.props import EnumProperty, FloatProperty, BoolProperty
class RoofProperty(bpy.types.PropertyGroup):
roof_items = [
("FLAT", "Flat", "", 0),
("GABLE", "Gable", "", 1),
("HIP", "Hip", "", 2),
]
type: EnumProperty(
name="Roof Type",
items=roof_items... | [
"[email protected]"
] | |
2bc5c3b7f00dfa38d5f5b217488400d7f88be85b | 91ef6ab9391c7c78981b6a36a7daa47b48ac582a | /neupy/algorithms/steps/errdiff.py | fec7e685f5e29365892da5ffeead35a2bc97f9a2 | [
"MIT"
] | permissive | stczhc/neupy | f89505011d78b7ade5800b51057c4c1370dea83a | de09f5abd6667824f14806709de2afa1ac5daa09 | refs/heads/master | 2020-12-07T00:45:07.445414 | 2016-06-11T19:00:33 | 2016-06-11T19:00:33 | 58,636,539 | 0 | 1 | null | 2016-05-12T11:42:01 | 2016-05-12T11:42:01 | null | UTF-8 | Python | false | false | 2,809 | py | import theano
from theano.ifelse import ifelse
import numpy as np
from neupy.core.properties import (BoundedProperty,
ProperFractionProperty)
from .base import SingleStepConfigurable
__all__ = ('ErrDiffStepUpdate',)
class ErrDiffStepUpdate(SingleStepConfigurable):
""" This al... | [
"[email protected]"
] | |
cba4cb0cc371d08ed47fec7e5feb685cd700f669 | 53c1eb6604f9e060bd6c9ce84395ab1a38d58f6f | /exercise/codewar/arara.py | cc30d2059afcc4569d4a2a045cf54c4e10176cbe | [] | no_license | turo62/exercise | 543c684ef3dfe138a5f0d6976b7ff0d9c19553f0 | 3d8d8d8a12bb3885b3015eff0032cd977c02957e | refs/heads/master | 2020-04-14T18:10:31.224244 | 2019-01-03T18:10:55 | 2019-01-03T18:10:55 | 164,008,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # Returns arara translation of a number. Wrong solution.
def count_arara(n):
val = ""
temp = 0
temp2 = 0
empty = " "
dict = {1 : "anane",
2 : "adak",
3 : "adak anane",
4 : "adak adak",
5 : "adak adak anane",
6 : "adak adak adak",
... | [
"[email protected]"
] | |
44c56b7babb4f9b8f08de5e547e5d173f72309fe | 16303902855d9a3b18b39e46c58567b16d907c02 | /setup.py | b9e8a6224c7cfcccdc1de8c06c6b1bfffbea86ca | [] | no_license | ConstClub/pyconst | 194f2d1f53113dec9a5178b56905c3a5e3892909 | 863fd2c0617d769f392cab4e1bf33555ee8f011c | refs/heads/master | 2021-01-24T16:52:09.458058 | 2019-10-18T08:23:29 | 2019-10-18T08:23:29 | 123,215,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | # -*- coding: utf-8 -*-
from setuptools import setup
version = '1.0.0'
setup(
name='pyconstant',
version=version,
keywords='',
description='Const for Python',
long_description=open('README.rst').read(),
url='https://github.com/ConstClub/pyconst',
author='Hackathon',
author_email='... | [
"[email protected]"
] | |
9e416dd9d02fb2dfe9f230adaee649b8bf5ab6d7 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenMiniMembersHuobanCreateModel.py | e1ea8e7fdf3f890762367a9dcafff368584a3256 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,430 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenMiniMembersHuobanCreateModel(object):
def __init__(self):
self._domain_account = None
self._login_id = None
self._operate_app_id = None
self._type = None... | [
"[email protected]"
] | |
ab443ab24b7f89149ef4fcfb7e441860e9d2030c | 5261e3c72259991fbdb9737c4c764eb0686860d3 | /tests/test_docs/test_cli_commands.py | 47dcb09ac7d77549be4329b7f7f7d7f6f3a6308f | [
"Apache-2.0"
] | permissive | eorituz/agents-aea | 45dfb9729718421290c71da91ac4c51f9cc6a608 | 197451196728141a27ec73fd8210c05cb74501f7 | refs/heads/main | 2023-03-24T02:40:27.132664 | 2021-03-23T14:42:58 | 2021-03-23T14:42:58 | 350,744,268 | 0 | 0 | Apache-2.0 | 2021-03-23T14:40:13 | 2021-03-23T14:32:29 | null | UTF-8 | Python | false | false | 2,632 | py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | [
"[email protected]"
] | |
e8d244e1575403819544217a2d429d5ef5a0d1af | 77dcf5ebad9512843742741c20cd412972d3261d | /alien.py | 83eda05822e131264b074b9f2c51b8590a2cbc4c | [] | no_license | crystalDf/Python-Crash-Course-2nd-Edition-Chapter-06-Dictionaries | 5742236d071e16cbb672be7f010f9fbc82033c06 | cc602b56134d63b6baf286e718daf08a2955967c | refs/heads/master | 2023-06-03T09:47:26.659353 | 2021-06-20T12:55:09 | 2021-06-20T12:55:09 | 378,645,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | alien_0 = {'color': 'green', 'points': 5}
print(alien_0['color'])
print(alien_0['points'])
new_points = alien_0['points']
print(f"You just earned {new_points} points!")
print(alien_0)
alien_0['x_position'] = 0
alien_0['y_position'] = 25
print(alien_0)
alien_0 = {}
alien_0['color'] = 'green'
alien_0['points'] = 5... | [
"[email protected]"
] | |
94c48e5e215007b0d4439de04f8f769da3f0762b | a20ae2286d7055de8c533bc954c18b22d2a3cf5a | /sstones/ss_app/migrations/0022_auto_20190125_2146.py | 89a1a1c7637a8511bde7ab64191b1c4ea7b1f968 | [] | no_license | jflynn87/sstones | 695442c2c1745c83a37100d4b163938891afe184 | 3a2548b5457ef6386e808b6d984e376f2c83a254 | refs/heads/master | 2021-07-13T19:04:59.898493 | 2020-06-09T03:07:43 | 2020-06-09T03:07:43 | 139,449,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # Generated by Django 2.0.4 on 2019-01-25 12:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ss_app', '0021_auto_20190125_2110'),
]
operations = [
migrations.AlterField(
model_name='invoice',
name='principal',... | [
"[email protected]"
] | |
72ba6c385460dab2b1036368b0325f806107877f | fe6775ca8c5b42710785e3a923974ae079f92c8f | /็งๆ/็ตไฟก/3.py | 05b38997f944a3eb85cdd29b02167a6d0624197c | [] | no_license | AiZhanghan/Leetcode | 41bda6676fa1a25fa19e393553c1148ed51fdf72 | 101bce2fac8b188a4eb2f5e017293d21ad0ecb21 | refs/heads/master | 2021-06-28T10:48:07.865968 | 2020-11-20T09:45:15 | 2020-11-20T09:45:15 | 188,155,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | class Solution:
def func(self, nums):
"""
ๅจๆ่งๅ
Args:
nums: list[int]
Return:
int
"""
dp = [[0 for _ in range(2)] for _ in range(len(nums))]
dp[0][1] = nums[0]
for i in range(1, len(nums)):
dp[i][0] ... | [
"[email protected]"
] | |
a88a544ffd2d07eb0de1c4220d463733c1ad7f92 | 3fda3ff2e9334433554b6cf923506f428d9e9366 | /hipeac/migrations/0003_auto_20181203_1702.py | 7b70e8202885094bb723ff32f5c3484853d1a689 | [
"MIT"
] | permissive | CreativeOthman/hipeac | 12adb61099886a6719dfccfa5ce26fdec8951bf9 | 2ce98da17cac2c6a87ec88df1b7676db4c200607 | refs/heads/master | 2022-07-20T10:06:58.771811 | 2020-05-07T11:39:13 | 2020-05-07T11:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | # Generated by Django 2.1.3 on 2018-12-03 16:02
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import re
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("hipeac", "0002_au... | [
"[email protected]"
] | |
cff3977d4479674d5ad613e5cf07ee5c36761581 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/knight-dialer/403821504.py | fe51e2c85fa1fd0b3cc504be5cf71dc4954c155d | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # title: knight-dialer
# detail: https://leetcode.com/submissions/detail/403821504/
# datetime: Sat Oct 3 15:34:15 2020
# runtime: 2428 ms
# memory: 45.6 MB
class Solution:
def knightDialer(self, n: int) -> int:
@lru_cache(None)
def dp(i, k):
if k == 0:
return 1
... | [
"[email protected]"
] | |
54ff96ab34c33c8f01b1916ca42287abe1003e46 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/hoework01/gettop10frommaoyam01_20200626092144.py | 117a3cb23b43109ab0bbd9c834519eb7bb082518 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 2,464 | py | # ไฝฟ็จrequests๏ผbs4ๅบ๏ผ็ฌๅ็ซ็ผ็ตๅฝฑtop10็็ตๅฝฑๅ็งฐใ็ตๅฝฑ็ฑปๅใไธๆ ๆถ้ด๏ผๅนถไปฅutf-8็ๅญ็ฌฆ้ไฟๅญๅฐcsvๆไปถไธญ
import requests
from bs4 import BeautifulSoup as bs
maoyanUrl = "https://maoyan.com/board/4";
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
header = {
'Conten... | [
"[email protected]"
] | |
2a9ff450f3c482b34eb8687346f3c7e4801cec7c | 50ba981bc65efea92f61c698cecfbbe3214a724e | /Django_Forms_Demo/Django_Forms_Demo/urls.py | 819f017ce66d33152fbe7e2a4d1447170c5cd234 | [] | no_license | shubhamjain31/demorepo | ff0a4283fc866ea94df1c340da430271daf93cb6 | 90639b8622e68155ff19bfec0bb6925b421f04cf | refs/heads/master | 2023-04-27T03:42:10.057387 | 2022-06-28T06:14:44 | 2022-06-28T06:14:44 | 229,792,545 | 1 | 0 | null | 2023-04-21T21:36:24 | 2019-12-23T17:04:22 | Python | UTF-8 | Python | false | false | 803 | py | """Django_Forms_Demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"[email protected]"
] | |
871f0d67060d51a0f99c1d015b019564e3419060 | 6f4f8a8406f5101653fba51fc595ad572f32829e | /thonny/plugins/cpython/__init__.py | 0ba29cc668058820f6d0ef91495e2cd6139e1351 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | codecopy/thonny | 4664ebe1e19665bb2e4e60134f8112c225a5726c | 36d81fe6a13f79ee7a0bf2a85e8128e610a9b843 | refs/heads/master | 2023-02-17T00:08:17.295990 | 2021-01-07T17:21:25 | 2021-01-07T17:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,238 | py | import logging
import os.path
import subprocess
import sys
import tkinter as tk
from tkinter import messagebox
from tkinter import ttk
import thonny
from thonny import get_workbench, get_runner, ui_utils, THONNY_USER_DIR, running
from thonny.common import (
ToplevelCommand,
InlineCommand,
is_same_path,
... | [
"[email protected]"
] | |
f73f479e605321b60ed24838163882b728e952fb | 488dfea1687152188bb0a6ca38a9bd24594f7010 | /qiskit/transpiler/passes/calibration/builders.py | ee53551265388b2789dface04f34b9f347ba3ece | [
"Apache-2.0"
] | permissive | CoolProgrammerX/qiskit-terra | e5b00a8efd5aae8c2de4ff52836640c70f09729a | 6262127f9f18e4c01846ec23a757bf1c97624fd9 | refs/heads/main | 2023-07-19T07:49:07.296112 | 2021-09-07T16:32:01 | 2021-09-07T16:32:01 | 404,226,586 | 1 | 0 | Apache-2.0 | 2021-09-08T05:49:23 | 2021-09-08T05:49:23 | null | UTF-8 | Python | false | false | 18,071 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"[email protected]"
] | |
7089ce2997caa0906fdb6ca385e862bf3d1ffb8e | a5f95d0564f03191b75171b00bfbaf25a86e57f1 | /hathi-0-match-registrations.py | 2eb85d6f28d5bf3537dc9ec9cfc9db82e90c9d9d | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | leonardr/cce-python | ec9b96f13c59abfa44b050be6762727f924b7ffc | 4240ad3f175c7b74ca160e260fa71d624b7681ca | refs/heads/master | 2020-06-28T18:47:47.078133 | 2019-09-12T20:39:50 | 2019-09-12T20:39:50 | 200,312,152 | 36 | 2 | MIT | 2019-08-22T12:46:40 | 2019-08-03T00:10:55 | Python | UTF-8 | Python | false | false | 13,396 | py | import sys
import Levenshtein as lev
from pdb import set_trace
from model import Registration
import datetime
import re
import json
from collections import defaultdict
# Ignore CCE entries if they have more than this many matches on the
# IA side.
MATCH_CUTOFF = 50
# Only output potential matches if the quality score... | [
"[email protected]"
] | |
75051d09b67149f3380eaf69db28304e417cc616 | 13569261f1f7808aa2f9424a957358da77a7a949 | /Monet_Harkin/Bike/server.py | 755633b8d945d7b8a725af4c53ff9e9d3b02838b | [] | no_license | CodingDojoDallas/python-nov-2016 | 75049d114116330c1898ae5e3d1fd202a999da5d | a6a50cc7cd4f50b59459d995d2df4707417b8f1c | refs/heads/master | 2021-01-12T12:21:18.972855 | 2016-11-23T21:24:53 | 2016-11-23T21:24:53 | 72,453,587 | 0 | 13 | null | 2016-11-23T21:24:54 | 2016-10-31T16:07:05 | Python | UTF-8 | Python | false | false | 792 | py | # Monet Harkin - Bike OOP test
class Bike(object):
def __init__(self, price, max_speed):
self.price = price
self.max_speed = max_speed
self.miles= 0
def displayInfo(self):
print "Price: "+ str(self.price )
print "Max speed: "+ str(self.max_speed)
print "Miles: "+ str(self.miles)
def ride(self):
self.... | [
"[email protected]"
] | |
03184a2f469e1ce27641847dc30183d3a658359d | f2a5680231e205dc49a083578d9bd90e4603036c | /Grokking-Coding-Interview-Patterns/14. Top K Numbers/KpointsClosestTwoOrigin.py | ef7a6e0c1f638611eb0b6307af2de741ced1381e | [] | no_license | flogothetis/Technical-Coding-Interviews-Algorithms-LeetCode | d592451f7d297fd52395e33dc67686e9990a663c | 7c8473fce4b5b5affbfde5ed8c39fdb89cbc77d4 | refs/heads/master | 2023-01-13T15:56:07.706164 | 2020-11-18T18:54:52 | 2020-11-18T18:54:52 | 281,101,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | '''
Problem Statement #
Given an array of points in the a 2D2D2D plane, find โKโ closest points to the origin.
'''
from heapq import *
# Time Comp : O(NlogK)
# Space Comp : O(K)
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
def __lt__(self, other):
self.euclidean_dist() > other.eu... | [
"[email protected]"
] | |
15ed73aa9d59827398ca3d5f8fe89d7baaf23d8d | f5645f685c8be36711f71c3a6763d6a4f93788b5 | /sandbox/settings/test.py | 9ef14ae7a9e7f1cd9b73a4a8de05e269cc2be55b | [
"MIT"
] | permissive | pincoin/rakmai | ef034c6b6d5501cd433869446275f4f3b622a73b | fe41fd0ab88bf143e65b450ceb798741d0f80330 | refs/heads/master | 2023-03-02T13:24:10.885714 | 2023-02-27T14:37:10 | 2023-02-27T14:37:10 | 112,416,258 | 13 | 4 | MIT | 2023-02-15T18:54:11 | 2017-11-29T02:34:15 | JavaScript | UTF-8 | Python | false | false | 2,098 | py | SECRET_KEY = 'rakmai_fake_key'
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
INSTALLED_APPS += [
'mptt',
'taggit',
'django.contrib.sites',
'a... | [
"[email protected]"
] | |
50f57cdf741ff10781381d4764ff69474278b5b8 | 124b9b3aa4d6c4e1014e2119a32b711c9bfe3b78 | /Problem Solving/Birthday cake candles.py | b40d1a9bc11bff36ff280ded0ffb1d7af6ec3d14 | [] | no_license | Devendra33/HackerRank | 5f4929c1161fade3ed1a593b847403943e757bdb | 980f8577677e24da654627b35fbfccb69b17f218 | refs/heads/master | 2022-12-14T05:13:30.405197 | 2020-09-12T09:24:31 | 2020-09-12T09:24:31 | 264,129,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the birthdayCakeCandles function below.
def birthdayCakeCandles(ar, ar_count):
cnt = 0
num = max(ar)
for i in ar:
if i == num:
cnt += 1
return cnt
if __name__ == '__main__':
fp... | [
"[email protected]"
] | |
dcd82fd2a59803baeb191e7c636fb4021b62689e | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_46/run_cfg.py | d0f4e8c6b8e8c8ce3a1c19aadea1c9c7a03b7ca4 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_... | [
"[email protected]"
] | |
ac3f681ff49d500b4fa57354e421919c40815772 | d1bcd1a55221d52cab88f397183ee6492fc7f5a5 | /workmail-translate-email/src/translate_helper.py | 3fb6cccbe58ab4aa99341ff7ff29997ad198d655 | [
"Apache-2.0"
] | permissive | aws-samples/amazon-workmail-lambda-templates | fccd1b490d69a08b512e2e666d4a85000745b793 | d7b83d7f4499768f60fd115f5f995e1d8daccf89 | refs/heads/master | 2022-06-30T22:22:43.030710 | 2022-06-30T19:05:15 | 2022-06-30T19:05:15 | 168,240,710 | 39 | 18 | Apache-2.0 | 2022-06-30T19:05:16 | 2019-01-29T22:38:50 | Python | UTF-8 | Python | false | false | 1,323 | py | import boto3
comprehend = boto3.client(service_name='comprehend')
translate = boto3.client(service_name='translate')
def detect_language(text):
"""
Detects the dominant language in a text
Parameters
----------
text: string, required
Input text
Returns
-------
string
Rep... | [
"[email protected]"
] | |
546a4af39360350465c0ca3bda6e5dabafad1e0c | 3208f15876e5ae0275366763f57380f383eae55b | /manage.py | baef8477b5382806b9d2514ca37998eb21f3ff95 | [
"MIT"
] | permissive | jpadilla/feedleap | 05d4abbd21408ec2c4d1f2a99aaba0fe22a7e3f7 | 06d87a680a4bd2ead550b3540e58a8c520a733ba | refs/heads/master | 2023-05-31T19:22:14.143515 | 2014-06-27T13:02:52 | 2014-06-27T13:02:52 | 9,079,296 | 1 | 1 | null | 2013-05-05T17:05:29 | 2013-03-28T14:53:25 | Python | UTF-8 | Python | false | false | 1,004 | py | #!/usr/bin/env python
import os
import sys
import re
def read_env():
"""Pulled from Honcho code with minor updates, reads local default
environment variables from a .env file located in the project root
directory.
"""
try:
with open('.env') as f:
content = f.read()
except ... | [
"[email protected]"
] | |
ca93204a00373b06690345a47392831fa59520db | 477ddbb411b0b9d7431eed8e1d5be155f4940e05 | /feedly/serializers/base.py | 06687c2c8bd6ca74134fb5225350beb2598cde3b | [
"BSD-3-Clause"
] | permissive | atefzed/Feedly | 9ba531d183637e9d42bfdade4c831825f549e2d1 | f3824b95cefc360ebbfc2d2166b53a5505f49fbc | refs/heads/master | 2021-01-15T17:07:40.795228 | 2013-05-07T22:17:15 | 2013-05-07T22:17:15 | 10,055,814 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 41 | py |
class BaseSerializer(object):
pass
| [
"[email protected]"
] | |
03d5325ec088f2701d3826c732407eeba995016a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /g7sh7oLoArRLmM2ky_6.py | d4615fa5b39a2c4ba13bdd9812cce19b2372f521 | [] | 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 | 1,875 | py |
import re
def baconify(msg, mask=""):
โ
d_key={
"uuuuu" :"a" ,
"uuuul" :"b" ,
"uuulu" :"c" ,
"uuull" :"d" ,
"uuluu" :"e" ,
"uulul" :"f" ,
"uullu" :"g" ,
"uulll" :"h" ,
"uluuu" :"i" ,
"uluul" :"j" ,
"ululu" :"k" ,
"ulull" :"l" ,
"ulluu" :"m" ,
"ullul" :"n" ,
"ulllu" :"o"... | [
"[email protected]"
] | |
ea6d7a09a0098c84b4c48d440ab621b0b6a8bec7 | 98d832289b7437247ce03ea54ad3cb7b95451159 | /test/test_smtp_alert.py | 1dfe158f6bb2b04eba1df72525a8c0295f830931 | [
"MIT"
] | permissive | rmehilli-r7/vm-console-client-python | 7f02f13345dce4f4d4d85e18da7146daeefbceb9 | 069041c1c7b53c6b3d8bfdd81b974141bfca3c0c | refs/heads/master | 2020-03-23T11:20:33.364442 | 2018-08-10T20:06:37 | 2018-08-10T20:06:37 | 141,498,444 | 0 | 0 | MIT | 2018-08-08T19:58:45 | 2018-07-18T23:00:41 | Python | UTF-8 | Python | false | false | 48,842 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"[email protected]"
] | |
e710851a689538325d804091ca103627905d86d5 | 8329282a8fda056d705c1af6dbcd0de1ed7ca25e | /.history/textutiles/textutiles/views_20210522225246.py | ec3d62029c51e1f60b0b7c91f234a8013ae9d2c6 | [] | no_license | ritikalohia/Django-beginners- | c069b16867407ef883bb00c6faf4f601921c118a | 829e28ab25201853de5c71a10ceff30496afea52 | refs/heads/main | 2023-05-04T03:34:29.082656 | 2021-05-22T17:38:21 | 2021-05-22T17:38:21 | 369,869,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | #created
from django.http import HttpResponse
from django.shortcuts import render
def index(request):
#params = {'name' : 'Ritika', 'place' : 'Mars'}
return render(request, 'index.html')
#return HttpResponse("Home")
def contact(request):
return render(request, 'contact.html')
def about(request):
... | [
"[email protected]"
] | |
6069be8064002ba6e48ace2e422ed62d65f716d8 | 51888119e10cdff12dafb060a54824632edccf3f | /Folders/Python/stamps.py | 2a699233a77790833fb5c81c1d8085e8eff222c2 | [
"BSD-2-Clause"
] | permissive | kuchinal/lamakaha | b64511ad8c6d2b36da5a84a266b9e7a69acd3106 | 24e3b2ff53bcac2ad1c0e5a3b9afd4593d85f22d | refs/heads/master | 2023-09-01T17:55:56.551183 | 2023-07-31T19:32:04 | 2023-07-31T19:32:04 | 182,849,747 | 0 | 0 | null | 2021-09-10T06:34:22 | 2019-04-22T19:00:02 | Python | UTF-8 | Python | false | false | 33,729 | py | """
Stamps rebuilt by Adrian Pueyo
Full original concept and Postage Stamps created by Alexey Kuchinski and Ernest Dios.
"""
version= "v0.2"
# Constants
STAMP_DEFAULTS = { "note_font_size":20, "hide_input":0 }
ANCHOR_DEFAULTS = { "tile_color" : int('%02x%02x%02x%02x' % (255,255,255,1),16),
"autolabel": 'nuke.t... | [
"[email protected]"
] | |
98f694263451c4748f27f993918222f436b573c9 | a32ca3544bb5a587e5fd7aaa1c73ac0fb918f11e | /hypha/apply/funds/migrations/0102_add_projectapprovalform_to_fundbase_labbase.py | 882caed4c6e476984fe371711a1304045f239190 | [
"BSD-3-Clause"
] | permissive | jvasile/hypha | 87904bf514e7cf5af63c7146eaaa49d3611fd57f | b5ccad20dd3434f53a2b9d711fac510124c70a6e | refs/heads/main | 2023-07-08T04:10:08.233259 | 2023-06-20T05:35:29 | 2023-06-20T05:35:29 | 354,630,183 | 0 | 0 | BSD-3-Clause | 2021-04-04T19:32:38 | 2021-04-04T19:32:38 | null | UTF-8 | Python | false | false | 2,110 | py | # Generated by Django 3.2.15 on 2022-09-07 12:35
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('application_projects', '0055_alter_project_status_add_pafreviewersrole'),
('funds', '010... | [
"[email protected]"
] | |
88bc688e498094503a5fbc932872ebc11eb90b56 | f104705c6bf8679b4990e1c7cbddd88b00bb4526 | /zwave_power_meter_socket_a.py | 0ae8087081cd7efcf67222cfbb1c29be26b50f18 | [
"MIT"
] | permissive | ContinuumBridge/zwave_power_meter_socket | 80e8e108a581333fa770653ba93d238f64781c1e | 78aa6d59bebf1993ec376010b6f8b83a898ed69c | refs/heads/master | 2021-01-10T21:00:39.936142 | 2015-10-13T08:20:42 | 2015-10-13T08:20:42 | 24,646,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,348 | py | #!/usr/bin/env python
# zwave_power_meter_socket.py
# Copyright (C) ContinuumBridge Limited, 2014 - 2015
# Written by Peter Claydon
#
ModuleName = "zwave_power_meter_socket"
INTERVAL = 60 # How often to request sensor values
CHECK_ALIVE_INTERVAL = 120
TIME_CUTOFF = 1800 #... | [
"[email protected]"
] | |
82b262e6528870bd41e0231a81c5d9242080a628 | e567b06c895054d88758366e769de77ee693a568 | /SciComputing with Python/lesson_05-15/asteroids.py | 19db8c21126f49a799c2586684f0c759519408df | [
"MIT"
] | permissive | evtodorov/aerospace | 68986b4ae772e1de8cc7982b4f8497b6423ac8cc | 54a1b58c3c0b02c0eaa3aef14d0e732d7f867566 | refs/heads/main | 2023-01-19T17:52:29.520340 | 2020-11-29T13:23:31 | 2020-11-29T13:23:31 | 315,653,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 15 14:13:36 2014
@author: etodorov
"""
import pygame as pg
import numpy as np
#Loading resources
pg.init()
bg = pg.image.load("background.jpg")
scrWidth, scrHeight = bg.get_width(), bg.get_height()
scr = pg.display.set_mode((scrWidth, scrHeight))
scr.blit(bg,(0,0))
ship =... | [
"[email protected]"
] | |
d0c0ada98ca93fd50965148c85fac09b8295da92 | 4a28995530e5766675869266704fa3b59e6b9908 | /bravo/tests/infini/test_packets.py | f50d0439be585dfeb0bfd3b52df85d8a54feeb0c | [
"MIT"
] | permissive | CyberFlameGO/bravo | e732dc87309e98e52fb02195d542f3105486b9c8 | 7be5d792871a8447499911fa1502c6a7c1437dc3 | refs/heads/master | 2021-12-04T02:04:00.138404 | 2014-09-09T04:43:18 | 2014-09-09T04:43:18 | 415,181,334 | 0 | 0 | NOASSERTION | 2023-08-16T22:12:36 | 2021-10-09T02:34:28 | null | UTF-8 | Python | false | false | 989 | py | from twisted.trial import unittest
from bravo.infini.packets import packets, parse_packets
class TestInfiniPacketParsing(unittest.TestCase):
def test_ping(self):
raw = "\x00\x01\x00\x00\x00\x06\x00\x10\x00\x4d\x3c\x7d\x7c"
parsed = packets[0].parse(raw)
self.assertEqual(parsed.header.iden... | [
"[email protected]"
] | |
f6ed307305ac991a2a922af645d6169197b603d8 | d2fedd2085cbdbd5e54228abf0633001989787cc | /36.COUNT PALINDROMIC SUBSEQUENCE IN A RANGE.py | 55ab57ce87bc84e1d63299856106adef6cff022f | [] | no_license | KumarAmbuj/dynamic-programing-intermediate | 228d25205d370ebc329eaf6ffbcfbc2853b18abe | 4b40f322f57762e0cf264fb2024ae56d1fa3243b | refs/heads/main | 2023-02-23T20:42:26.865855 | 2021-01-23T11:10:44 | 2021-01-23T11:10:44 | 332,188,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | def findpalindromicsequence(s,l,r):
n=len(s)
dp=[[False for j in range(len(s))] for i in range(len(s))]
for g in range(len(s)):
i=0
for j in range(g,len(s)):
if g==0:
dp[i][j]=True
elif g==1:
if s[i]==s[j]:
... | [
"[email protected]"
] | |
eafec4733775b023c1b2b9de75a58d4fa681f74c | 6c53847f9956edc8f31b23c24b1786d1b9789f03 | /gps-server-master/setup.py | d313f9422a4ec8e4b70cb05bc8e2ad640ac49b23 | [] | no_license | kunal1510010/Quikmile | c64a9264798cf834aaf32ecb4653b9b81dab0dd5 | 244d2749eb8438ce858de51c088a52ca3de58992 | refs/heads/master | 2022-12-12T08:03:50.628252 | 2018-11-29T15:24:46 | 2018-11-29T15:24:46 | 159,226,383 | 0 | 0 | null | 2022-12-08T02:27:44 | 2018-11-26T20:10:20 | Python | UTF-8 | Python | false | false | 580 | py | from pip.download import PipSession
from pip.req import parse_requirements
from setuptools import setup, find_packages
install_reqs = parse_requirements("./requirements.txt", session=PipSession())
install_requires = [str(ir.req).split('==')[0] for ir in install_reqs]
setup(
name='gps-server',
packages=find_pac... | [
"[email protected]"
] | |
49869b77fef23d2b4bef119a349bac2b3c4b8258 | b315056385e631e4b5a250d3c7e1c0ae32c479f0 | /illumiprocessor/__init__.py | bf0b82f71bf8a5dda73842deac3484f6c1ff42aa | [] | no_license | mkweskin/illumiprocessor | e7e20cb0d24a1d7cc89e5519e08c3e435c32a070 | 4e37e037c7b9db8c89bbafe21ca9b59ed7630211 | refs/heads/master | 2021-09-15T16:34:00.846218 | 2018-06-06T19:35:43 | 2018-06-06T19:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import
__version__ = "2.0.9"
| [
"[email protected]"
] | |
89e3c5c2c55d178ad61eb93db58ca05320bd60b7 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /devel/.private/play_motion_msgs/lib/python2.7/dist-packages/play_motion_msgs/msg/_PlayMotionActionGoal.py | a5370afc34256859512ca7341d9f7c63bf486bcb | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,736 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from play_motion_msgs/PlayMotionActionGoal.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import actionlib_msgs.msg
import genpy
import play_motion_msgs.msg... | [
"[email protected]"
] | |
2131681365efc05ba1105dd453257b1ea60ea71e | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/compute/org_security_policies/associations/create_associations_test.py | d67314583ec45ddf3221e10dda33832b9c249e68 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 4,684 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"[email protected]"
] | |
526da7b66b7f3a0e2d31d78cfa9e1e610ce48f3b | 15e6385746ccf4b8eb6c6e302aca236021bb8781 | /BinaryTree and Divide and Conquer/le257_binaryTreePaths.py | 04f6722ba0b8cd3e57bdecab9d2bbb33d805064f | [] | no_license | akb46mayu/Data-Structures-and-Algorithms | 11c4bbddc9b4d286e1aeaa9481eb6a620cd54746 | de98494e14fff3e2a468da681c48d60b4d1445a1 | refs/heads/master | 2021-01-12T09:51:32.618362 | 2018-05-16T16:37:18 | 2018-05-16T16:37:18 | 76,279,268 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | """
Given a binary tree, return all root-to-leaf paths.
For example, given the following binary tree:
1
/ \
2 3
\
5
All root-to-leaf paths are:
["1->2->5", "1->3"]
"""
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left... | [
"[email protected]"
] | |
828d680c2d1538b21c4b8b9195efc0e26cac2b28 | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2023/0321_40_Combination_Sum_II/myunghak.py | 8d64f62cc7c6d9a896ef5565521251d1cff3a514 | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 796 | py | # ๋ต๋ณด๊ณ ํ์์ต๋๋ค. ํ์ด ์ํด์ฃผ์
๋ ๋์
from collections import deque
class Solution:
def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]:
def backtrack(start, target):
if target == 0:
result.append(list(dq))
return
fo... | [
"[email protected]"
] | |
09de35b9c9569a3d6a18907aa2a1c17e263a55cb | 32f34baaa620d6ec945a08c842123a8872c7a2a5 | /blog/admin.py | 31122591ac74349107d324ee346326f92261f9a7 | [] | no_license | devArist/bankapp_kivy | e3590723643d30746c3ffce9d70868b3524b6e30 | 701db3a856722a618fbcfa8fbd0b606415265ca9 | refs/heads/main | 2023-07-18T06:38:00.148288 | 2021-08-27T14:05:47 | 2021-08-27T14:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django.contrib import admin
from blog import models
from django.utils.safestring import mark_safe
# Register your models here.
@admin.register(models.Blog)
class BlogAdmin(admin.ModelAdmin):
list_display = ('title', 'imageblog')
search_fields = ('title',)
def imageblog(self, obj):
return ma... | [
"[email protected]"
] | |
7316502afc84f5131380f552c1cb161afa993ec6 | dae2e18c9076d91680ef5e9ee9ad7aa155d5071d | /dm_control/locomotion/walkers/rodent.py | b9d29b106f66945117f6a5596d42b2300a243d74 | [
"Apache-2.0"
] | permissive | wangsd01/dm_control | 5c233770524ef2fbb4c358d619934e2d76b990bf | d6f9cb4e4a616d1e1d3bd8944bc89541434f1d49 | refs/heads/master | 2023-08-16T16:08:28.134204 | 2023-07-20T11:24:16 | 2023-07-20T11:25:09 | 293,401,717 | 0 | 0 | Apache-2.0 | 2020-09-07T02:23:31 | 2020-09-07T02:23:30 | null | UTF-8 | Python | false | false | 12,164 | py | # Copyright 2020 The dm_control Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"[email protected]"
] | |
933a002ab324b2adef7d0dbfa19291d879c51704 | 35788f5ca40e5b9e14d4700084e0f3a7fd7f3033 | /basic/conversion-teacher.py | a8f091bdf171ca3f3c8dc193324984e020ad5ccf | [] | no_license | yunnyisgood/django-monaco | 0c097385c0497b2bcbd66571f16a84d53b4913db | b83e9702a064f81d76be35a2e8f4c02c03b5255e | refs/heads/master | 2023-05-23T03:53:26.934348 | 2021-06-14T14:29:43 | 2021-06-14T14:29:43 | 370,548,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | import pandas as pd
class Conversion(object):
df = pd.DataFrame()
# dp = ()
@staticmethod
def dp_create() -> ():
# ์ฌ๊ธฐ์ ํ๋กํผํฐ(self)๋ฅผ ์ฌ์ฉํ์ง ์๋๋ค -> ๊ฐ์ฒด ๋ฉ์๋๊ฐ ์๋ staticmethod
return (1, 2, 3, 4, 5, 6, 7, 8, 9)
@staticmethod
def dp_to_list(dp) -> []:
return list(dp)
@stat... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.