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
62225756896d2b4614a6f4732d1f5e155553fb11
f931249f3766bd871eede76a950484701915c32d
/collective_decision/tests/test_models.py
aa2bd906a88f75c7dc22581ed4b16733fcad544b
[]
no_license
cleliofavoccia/Share
aa509c9cfa1aa3789237b411b2b94d952d848322
cf0b982a6df2b8b4318d12d344ef0827394eedfd
refs/heads/main
2023-07-11T08:29:59.016252
2021-08-09T10:13:53
2021-08-09T10:13:53
373,621,787
0
0
null
null
null
null
UTF-8
Python
false
false
5,125
py
"""Tests of collective_decision django models""" from django.test import TestCase from django.db import IntegrityError from user.models import User from group.models import Group from group_member.models import GroupMember from product.models import Product from ..models import Estimation, Decision class Estimatio...
[ "favoccia.c@live.fr" ]
favoccia.c@live.fr
be6cbbd046838c6b3ea18f1e70cb6f08612db43e
0c1d6b8dff8bedfffa8703015949b6ca6cc83f86
/lib/worklists/operator/CT/v3.0/business/ADSL/test/data.py
011c359518dc97400db6bdb1e079f6fba7538eb2
[]
no_license
samwei8/TR069
6b87252bd53f23c37186c9433ce4d79507b8c7dd
7f6b8d598359c6049a4e6cb1eb1db0899bce7f5c
refs/heads/master
2021-06-21T11:07:47.345271
2017-08-08T07:14:55
2017-08-08T07:14:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
#coding:utf-8 # -----------------------------doc-------------------------- # 工单 描述 WORKLIST_DOC = """ """ # -----------------------------args-------------------------- # 工单 参数 WORKLIST_ARGS = { "ConnectionType": ("IP_Routed", "1"), "ServiceList": ("INTERNET", "2"), "Username": ("admi...
[ "zhaojunhhu@gmail.com" ]
zhaojunhhu@gmail.com
47ea0ceecd6c900370bb212ceedfa5d6e9398339
2b1b4b92b5b6dadc6dfb556e867b042c97a4d738
/CMGTools/H2TauTau/python/proto/plotter/HistDrawer.py
afd02f94b7ea7778cb69f5c3d0a53fba6df59986
[]
no_license
emanueledimarco/cmg-cmssw
65f6d20ccd9bfec74856397407b96dee9830afc6
b54ebd03ab8bad9c7694d867e3f3c54a1ad910c4
refs/heads/CMGTools_from7412_monox
2021-01-18T17:57:17.833303
2016-02-24T15:27:58
2016-02-24T15:27:58
21,276,131
1
0
null
2017-10-25T21:50:09
2014-06-27T13:11:29
C++
UTF-8
Python
false
false
6,022
py
import re import os import copy from math import log10, floor from ROOT import TCanvas, TPaveText, TBox, gStyle from CMGTools.RootTools.DataMC.Stack import Stack from CMGTools.H2TauTau.proto.plotter.CMS_lumi import CMS_lumi from CMGTools.H2TauTau.proto.plotter.officialStyle import officialStyle officialStyle(gStyle...
[ "jan.steggemann@cern.ch" ]
jan.steggemann@cern.ch
8f54020865428b31e51ea2f36018f18b202ee386
b46dff381a329b5456359d9edcbb279e7c710999
/tilelit/tests/test_tilelit.py
f6f7297882115d058d6e9d9ba83007ba751485e7
[ "MIT" ]
permissive
uw-biomedical-ml/tilelit
d8c48cfaf95ea90c23fe4dbc7862d76747e00628
36062279e321a30a194982dc61df6946614e7e22
refs/heads/master
2021-09-17T22:08:43.761931
2018-07-05T22:27:58
2018-07-05T22:27:58
114,414,633
3
2
null
null
null
null
UTF-8
Python
false
false
792
py
from __future__ import absolute_import, division, print_function import os.path as op import numpy as np import pandas as pd import numpy.testing as npt import tilelit as ti import skimage.data as skd from skimage import transform as tf def test_tile(): static = skd.coins() ty = np.random.randn() * 0.05 * sta...
[ "arokem@gmail.com" ]
arokem@gmail.com
06196dc14bd12901227bf7210937a9df76502363
4a8c1f7d9935609b780aff95c886ef7781967be0
/topcoder/Rookie SRM 1/OverallScores.py
d32100bb4d37fadd8b01c0ab9f613199978513d7
[]
no_license
recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
UTF-8
Python
false
false
3,359
py
# -*- coding: utf-8 -*- import math,string,itertools,fractions,heapq,collections,re,array,bisect class OverallScores: def findWinner(self, N, scores): dat = [0] * N for i in range(len(scores) // N): for j in range(N): dat[j] += scores[j + i * N] maind = -1 ...
[ "kanai@wide.ad.jp" ]
kanai@wide.ad.jp
2a722ec1fe9fcda7804a6102c78858b391aa6dfe
377dc973a58d30154cf485de141223d7ca5424dd
/havok_classes/hkaSkeletonLocalFrameOnBone.py
24e0e76c53f139086cdd47e4f2731f50d18ed9ba
[ "MIT" ]
permissive
sawich/havok-reflection
d6a5552f2881bb4070ad824fb7180ad296edf4c4
1d5b768fb533b3eb36fc9e42793088abeffbad59
refs/heads/master
2021-10-11T12:56:44.506674
2019-01-25T22:37:31
2019-01-25T22:37:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
from .hkLocalFrame import hkLocalFrame import struct class hkaSkeletonLocalFrameOnBone(object): localFrame: any boneIndex: int def __init__(self, infile): self.localFrame = any(infile) # TYPE_POINTER:TYPE_STRUCT self.boneIndex = struct.unpack('>h', infile.read(2)) # TYPE_INT16:TYPE_VOID...
[ "kevin@turtlerockweb.com" ]
kevin@turtlerockweb.com
0953423a781578e7260493e3b17df08f46cb8ffa
0f9a97d48a9f0179bcf1e3d80c08340096eb561e
/ДЗ-5. Функции и рекурсия/C. Периметр треугольника.py
218540cdf273e3aecc918c967a3df0f90da0aa53
[]
no_license
dmitryokh/python
96d8ec8c3f2d3428b90d510a1003aecf102b13d0
8efe761412779bed9a7516832d3152843088fa43
refs/heads/master
2020-04-24T03:08:42.865813
2019-02-20T11:41:52
2019-02-20T11:41:52
171,661,235
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
from math import sqrt def distance(x1, y1, x2, y2): return(sqrt((x2 - x1)**2 + (y2 - y1)**2)) x1 = int(input()) y1 = int(input()) x2 = int(input()) y2 = int(input()) x3 = int(input()) y3 = int(input()) a = distance(x1, y1, x2, y2) b = distance(x1, y1, x3, y3) c = distance(x3, y3, x2, y2) print(a + b + c)
[ "noreply@github.com" ]
dmitryokh.noreply@github.com
46b795561c7cd2ef9084ec78d43889d97b023575
747f759311d404af31c0f80029e88098193f6269
/addons/stock/wizard/stock_location_product.py
1f9777a72c1d926463d1fd0cf913ed81086e71dc
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
2,423
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
[ "geerish@omerp.net" ]
geerish@omerp.net
e4def48c4cf436a2b2d384bd315d99b9a0f1b56a
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_noisy1310.py
f6c89f3e4f5a2d30ec73a1b5f825e843ad9d4a87
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,424
py
# qubit number=5 # total number=56 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
9ad89e902ed284ef9edf8837805fb2c2d6c96dce
f0f2a548457e345d5432c8ddcd37daa25ee56957
/apml-client/show-stats.py
c989e874560d2414b6478337566c10ae269a4f02
[ "MIT" ]
permissive
blxlrsmb/myap.ml
edf2703df34de27282dbf0d7821f83b629e1ccc8
b21270d54b453cd53e160a017f21d52e444ff62b
refs/heads/master
2021-01-24T20:52:38.420997
2016-06-19T06:19:44
2016-06-19T06:19:44
36,968,412
1
0
null
null
null
null
UTF-8
Python
false
false
450
py
#!/usr/bin/env python2 # -*- coding: UTF-8 -*- # File: show-stats.py # Date: Sat Jun 06 20:16:34 2015 +0800 # Author: Yuxin Wu <ppwwyyxxc@gmail.com> from logger import EventLogger ev = EventLogger() pkgs = ev.packages names = set() cnt = 0 for p in pkgs: names = names.union(set(p['key'].keys())) cnt += sum(p['...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
bc68bd06515bf96079aa0ed7e1770b5be7c25b5c
b50ff836c3010b42821624e79cb21e4d9594f588
/selfdrive/car/vin.py
76fd34ca6d80e8aecc040376a6369041889c537f
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
dnv26/openpilot
5fe441eb9ef93a56b5a2522ace58c3ae415c7813
b1db54ea553ccc41cfb54bdf66a1c31ab52432f2
refs/heads/HKG_6.5
2020-09-09T06:37:33.909558
2019-11-14T21:47:55
2019-11-14T21:47:55
221,376,282
8
31
MIT
2020-05-09T02:30:46
2019-11-13T05:01:02
C++
UTF-8
Python
false
false
3,245
py
#!/usr/bin/env python3 import selfdrive.messaging as messaging from selfdrive.boardd.boardd import can_list_to_can_capnp VIN_UNKNOWN = "0" * 17 # sanity checks on response messages from vin query def is_vin_response_valid(can_dat, step, cnt): if len(can_dat) != 8: # ISO-TP meesages are all 8 bytes return Fa...
[ "user@comma.ai" ]
user@comma.ai
8fd9e5477942786209d08d62c024179c66489083
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5640146288377856_0/Python/trapped/a_small.py
d6f1fa475144b794563c801431c358bd4fcbb062
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
538
py
T = int(raw_input()) def solve(r, c, w): if w == 1: return r*c if w == c: return (r-1) + c # following only for small case: r=1 if w > c//2: return w+1 if w == c//2: return w+1+(c%2) return 1+ solve(r, c-w, w) '''if c%2 == 1: ans = 1 + (c//2)//w ans += solve(r, c//2, w)...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
c8d8db5bcecf909d177c3caf44457684046f456e
e5606385fc77c1fbb30be223637b2b62372d6635
/news/urls.py
20fbb45caaed199e495d3c073c27917d6aaccb6c
[]
no_license
bhoj001/DJ_Test_App
6b2f116523af72a15370e303af745d7df7d7951c
a20d5ae9049a5d432ba219eb96036953c5512bf5
refs/heads/master
2020-03-24T00:25:57.714156
2018-07-25T11:29:15
2018-07-25T11:29:15
142,290,934
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
from django.conf.urls import url from tango_with_django import views urlpatterns = [ url(r'^home$', views.home, name='home'), url(r'^$', views.index, name='index'), ]
[ "nishantkarki305@gmail.com" ]
nishantkarki305@gmail.com
1abb6b3b06ad3d28a1bc8ffef2a528725d178bbd
9214a22c37f9751f66005d9033c68eadca43d6ee
/app/.history/datasets/spotify_fetch_20201212160615.py
2d534dc61d069d9f1b881c5e1a14e0cc57cb80ae
[]
no_license
bsalgado98/lockdown-music
0800922ea25c9b07ea4b034297e67725776de070
a407265b7caa83667c92ee13c2adec1645acdafa
refs/heads/main
2023-01-29T09:55:38.137972
2020-12-17T01:01:49
2020-12-17T01:01:49
322,133,071
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
import spotipy from spotipy.oauth2 import SpotifyClientCredentials import json import csv auth_manager = SpotifyClientCredentials() sp = spotipy.Spotify(auth_manager=auth_manager) def get_artist_genre(artist): results = sp.search(q='artist:' + artist, type='artist') # print(json.dumps(results, indent=4, sort_...
[ "bsalgado@stevens.edu" ]
bsalgado@stevens.edu
e58b99b41a4f3a5a38ecf00da40037bd8fa7eae3
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayPcreditLoanHousemortgageRealtychainNotifyResponse.py
c8ce7d57930cb013c46e118af02437d5099697ec
[ "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
506
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayPcreditLoanHousemortgageRealtychainNotifyResponse(AlipayResponse): def __init__(self): super(AlipayPcreditLoanHousemortgageRealtychainNotifyResponse, self).__init__() ...
[ "jiandong.jd@antfin.com" ]
jiandong.jd@antfin.com
146ee16ca9aaaf47c04e5aa73ebb2fc961973fc6
3ec8ade4cedc4601a1dea1933182675bc35f543a
/demo/models.py
4376f3134a7a3e28177d207c2299c172e8bd3723
[]
no_license
artrey/drf-comments
d9fce0b14c28ef9810cc17caeb03b2435cc075b6
ee875f820dc691df984ef8f292e8f9e532ca4689
refs/heads/master
2023-07-20T12:31:14.879634
2021-08-20T17:12:12
2021-08-20T17:12:12
398,344,295
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
from django.core.validators import MaxValueValidator from django.db import models class Comment(models.Model): author = models.CharField(max_length=100) text = models.TextField() rating = models.PositiveSmallIntegerField(validators=[MaxValueValidator(5)])
[ "oz.sasha.ivanov@gmail.com" ]
oz.sasha.ivanov@gmail.com
a7323120d71625d329147a0ad58c8fbe841c5d7e
edcd74f8f65119bdbe737360c2ca33b4a6da160a
/python/test-multiprocessing/multiprocessing_simple.py
f23b32c4e12ab97388c5ee1cb1354982163bc9f4
[]
no_license
hyunjun/practice
72e83de6a1d5e04ddcd16526f16110ea2dd00373
5376dd48b1cefb4faba9d2ef6a8a497b6b1d6c67
refs/heads/master
2023-08-31T07:00:37.320351
2023-08-17T07:29:24
2023-08-17T07:29:24
2,704,126
3
2
null
2022-12-14T20:25:07
2011-11-03T18:28:44
Python
UTF-8
Python
false
false
276
py
# https://pymotw.com/3/multiprocessing/basics.html import multiprocessing def worker(): """worker function""" print('Worker') if __name__ == '__main__': jobs = [] for i in range(5): p = multiprocessing.Process(target=worker) jobs.append(p) p.start()
[ "morpheus.0@kakaocorp.com" ]
morpheus.0@kakaocorp.com
49fd37eab918232db078265207ad4f60b6097bb1
b80bd48e12f2361ea51284fba0a08ea61673cfd4
/drip/models.py
beec587cc63ff535831ebb3038532e3041054c3d
[]
no_license
pdc/caption
25829912241224ec93697537900f6199fb14121b
6677de9f0bf40d5f331da8a3fb1fb45c7404d704
refs/heads/master
2016-09-06T16:55:30.264130
2013-02-28T20:01:55
2013-02-28T20:01:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
# -*-coding: UTF-8-*- from django.db import models from django.contrib.auth.models import User from articles.models import Article class DripAuthor(models.Model): uid = models.IntegerField(editable=False, primary_key=True) name = models.CharField(max_length=60, unique=True) mail = models.EmailField(max_le...
[ "pdc@alleged.org.uk" ]
pdc@alleged.org.uk
7964d51dadf0214da7cc67756d0945ff15a2053c
f30e9ca8c5777196bf8e56d82ecddb80418d21ba
/test_fena/v1_12/test_blocks.py
7f1ca52716e4415e719a8986dcf5cb915ef2c9b7
[ "MIT" ]
permissive
Aquafina-water-bottle/Fena
029a1d6be64bdf1bd75d647d83e524821dfc7a3c
00a2b1dbc6f8abd968c46c637d6ad30d5fcde919
HEAD
2018-10-22T13:36:24.838025
2018-07-19T18:16:17
2018-07-19T18:16:17
96,073,393
0
0
null
null
null
null
UTF-8
Python
false
false
5,790
py
from test_fena.test_common import test_block def test_blocks(): # block states as simple values test_block("stonebrick[0]", "minecraft:stonebrick 0") test_block("stonebrick[1]", "minecraft:stonebrick 1") test_block("stonebrick[-1]", "minecraft:stonebrick -1") test_block("stonebrick[*]", "minecra...
[ "glowing.locker@gmail.com" ]
glowing.locker@gmail.com
2015f26b503e42442766db3c50645d21d6ecccab
2635edb96afa8117d4584a470061e447b79adc6e
/test/booknotes_test.py
3682f6f5b88bb82f90d549216fa699601c455763
[]
no_license
Mark-Seaman/Sensei-2018
673609731ecb5ebb782dab94b2cf3d7c22940424
06b02892cfe1bf1d25cb4224e86eb693c82b0f29
refs/heads/master
2022-02-18T19:14:10.343093
2022-01-15T20:06:21
2022-01-15T20:06:21
158,728,468
0
0
null
2022-01-16T21:06:09
2018-11-22T16:51:55
HTML
UTF-8
Python
false
false
273
py
from os import environ from os.path import join from bin.shell import file_tree_list, shell, check_shell_lines def booknotes_list_test(): return shell('x booknotes list') def booknotes_lines_test(): return check_shell_lines('x booknotes content', 2700, 2800)
[ "Mark.Seaman@imac.net" ]
Mark.Seaman@imac.net
8ab6f785b6f34c9e36b99994af2bb9339cfbb8db
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/show_user_mfa_device_request.py
e917b2945cce19343061600282e1586bd29f038b
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,931
py
# coding: utf-8 import re import six class ShowUserMfaDeviceRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
d5476304cb3aab788f50565a72061d73b9a6a5ed
5aaa7bdc5085987f925748e6b9afc694a3e9b908
/y63p.py
f9fbeee2e07e974b15c4185a22fd4c85e17a50fb
[]
no_license
swarnanjali/pythonproject
e086af8e2b03f8dae9e155f958c99c4ebb722445
10932592b601c7b27ce7eebeeb59e3876ac8fafb
refs/heads/master
2020-06-22T10:31:43.354583
2019-07-10T14:47:26
2019-07-10T14:47:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
t=input() s='' n=[] for i in t: if i not in n: s+=i n.append(i) elif i in n: break print(len(n))
[ "noreply@github.com" ]
swarnanjali.noreply@github.com
cd4860ec2a8cda26dffcb523f58de782eb9b010c
53181572c4b22df4b569a9901bcd5347a3459499
/ceit_191116/py200111/output_2_format.py
67686883b4583dec92ce8b20bb65683a5a040e91
[]
no_license
edu-athensoft/ceit4101python_student
80ef067b77421fce76d04f778d5c6de8b12f676c
33cfa438c062d45e8d246b853e93d3c14b92ff2d
refs/heads/master
2020-07-30T01:04:21.084384
2020-07-27T02:21:57
2020-07-27T02:21:57
210,027,310
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
""" output formatting string format() positional arguments """ name1 = 'Obama' name2 = 'Helen' name3 = 'Marie' name4 = "Cindy" greeting1 = "morning!" greeting2 = "afternoon!" greeting3 = "evening!" print("Good {1}, {0}! Long time no see".format(name3, greeting3)) print("Good {2}, {0} and {1} ! Long time no see".for...
[ "lada314@gmail.com" ]
lada314@gmail.com
730f11cd40ad83877318044f913b110a4afb45f1
5a75325ffdc14ca1eb08fa32225ba2b5b1347010
/compose/django/cull_backups.py
a05a182ed41edc94c1e0e8a196199c79d301f5c9
[ "MIT" ]
permissive
teamhero/hawc
cdc3f058aeef104c9305af67a54579f7f6362111
528f4ec605e8f406e0d147ba240a6a604f80a713
refs/heads/master
2021-05-23T06:09:01.679227
2019-03-11T14:30:39
2019-03-11T14:30:39
94,796,508
0
2
NOASSERTION
2020-04-03T23:47:21
2017-06-19T16:14:52
Python
UTF-8
Python
false
false
792
py
#!/usr/bin/env python3 import os from datetime import date, datetime today = date.today() print('Checking db backups for removal: {}'.format(today)) root = '/data/backups' for fn in os.listdir(root): if '.sql.gz' not in fn: continue d1 = datetime.strptime(fn, 'hawc-%Y-%m-%dT%H_%M.sql.gz').date() ...
[ "shapiromatron@gmail.com" ]
shapiromatron@gmail.com
1359004d9f80c9154062c624edc743d5280a1316
ecd27923efba50703a7bfbfa2ba37a8cc78560ea
/automatic_scraper/config/bid/liriqing/liaoning_huludao_ggzy_config.py
6d9fe5faedd7b9732ff28010a2a073fb58b59ae8
[]
no_license
yougecn/work
fb691b072a736731083777e489712dee199e6c75
1b58525e5ee8a3bdecca87fdee35a80e93d89856
refs/heads/master
2022-03-03T19:14:17.234929
2018-04-17T12:29:19
2018-04-17T12:29:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,379
py
# coding: utf-8 import time import logging import re logger = logging.getLogger(__name__) author = "liriqing" web_title = u"葫芦岛市公共资源交易" data_source = 'http://www.hldggzyjyzx.com.cn' start_urls = [ #招标公告 "http://www.hldggzyjyzx.com.cn/Front/jyxx/071001/071001001/", "http://www.hldggzyjyzx.com.cn/Front/jyxx...
[ "iwechen123@gmail.com" ]
iwechen123@gmail.com
dfa29b530d8cfec3c71ef5b903b2669318bf08a0
8f7615603d4d923fd2cda41a2105b85b596ab4c5
/leetcode/easy/605-Can_place_flowers.py
0768c8acf6ccd14529365904c51987083054bec6
[ "MIT" ]
permissive
shubhamoli/solutions
e7ec922047c16cfdc10070aa5b884a278b12d8c5
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
refs/heads/master
2021-01-05T04:13:35.302613
2020-06-27T18:28:18
2020-06-27T18:28:18
240,875,585
1
0
null
null
null
null
UTF-8
Python
false
false
820
py
""" Leetcode #605 """ from typing import List class Solution: def canPlaceFlowers(self, flowerbed: List[int], n: int) -> bool: if not flowerbed: return False # the idea here is check for 0 and if left and right of 0 are also 0 # then plant N = len(flowerbed) ...
[ "oli.shubham@gmail.com" ]
oli.shubham@gmail.com
fce93dd6490570c79d10bd6acd01a91479394c8c
7ae20e08e736e6df546cb5a80df2baf067686b52
/tasks/sprint-5/Финал B - Remove Node/my_solution.py
4cbe757f866c016c572fa865b916b06f74304bf0
[]
no_license
Grey2k/yandex.praktikum-alghoritms
faf466374c932733cc1c5049a2df719d8fd33ac7
97b1b4858265b44266a33b834e1e9a1349739048
refs/heads/master
2023-08-28T02:46:16.502298
2021-09-28T19:08:35
2021-09-28T19:08:35
334,646,281
10
1
null
null
null
null
UTF-8
Python
false
false
2,728
py
# from node import Node def remove(root, key): if root is None: return root node_to_remove, parent_of_node_to_remove = find_node(root, None, key) # If noting to remove returns original root if node_to_remove is None: return root # Removing found node return remove_node(root,...
[ "grey2k@gmail.com" ]
grey2k@gmail.com
9afc47d3742c9bd1433e0d1f78a7a3bc61f0e45d
65b6e3dada91a0acb589d25358badb02c845b67f
/examples/ex_graph.py
dafeb6b4aa33fafca13629a3f11db2e1e0c8e08c
[ "BSD-3-Clause" ]
permissive
polestar37/src
5b9bacb1e1e5118835d47c0f44fa5ad78fb0ad04
5dd54527356901b24b6ea3caff644a26aeb3c3c6
refs/heads/master
2021-01-15T22:39:44.730414
2017-06-22T23:06:15
2017-06-22T23:06:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,635
py
# ----------------------------------------------------------------------- # This is an example illustrating how to use the user graphing functionality # in Python # (c) Hex-Rays # from idaapi import * class GraphCloser(action_handler_t): def __init__(self, graph): action_handler_t.__init__(self) se...
[ "Arnaud Diederen arnaud@hex-rays.com" ]
Arnaud Diederen arnaud@hex-rays.com
5441634d49305645e4e9a6c7fbaffd964e776814
ad2251276aec376b480a31373165cf5b63a109c0
/input/litdata/bouwens2017.py
bbd597895d8fcf211e9ab49763d96822106933fe
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
mirochaj/ares
1b6bbe39c423762eb3051d65718394e8e839cd14
f323300b56ae61fab56eda1e5179cfc991eaa74f
refs/heads/main
2023-08-19T04:14:29.928747
2022-11-09T22:46:08
2022-11-09T22:46:08
249,536,610
16
13
MIT
2023-08-28T23:00:00
2020-03-23T20:25:55
Python
UTF-8
Python
false
false
1,534
py
""" Bouwens et al., 2017, ApJ, 843, 129 Table 4 and volume estimate from text. """ info = \ { 'reference': 'Bouwens et al., 2017, ApJ, 843, 129', 'data': 'Table 5', 'label': 'Bouwens+ (2017)' } import numpy as np redshifts = [6.] wavelength = 1600. # I think? ULIM = -1e10 tmp_data = {} tmp_data['lf'] = \ { ...
[ "mirochaj@gmail.com" ]
mirochaj@gmail.com
e3b7c0253fc3545cc8614c084a9fd36fb3322e26
e2a8c529c7e92108c11f01cbef168b5b9137521a
/ChromeGo/XX-Net/code/default/launcher/post_update.py
d05d8c507d1b2ec9887e5be04d71ed6fe7e89b0b
[ "BSD-2-Clause" ]
permissive
glxdegit/fanqiang
c28a514988eaaf6485c682bc346aa276e8b0c0b3
85691ef7a5ec99fbd81f8bdb09db7b60379e3c38
refs/heads/master
2022-07-07T06:41:24.681743
2020-05-16T02:25:22
2020-05-16T02:25:22
264,363,999
3
2
null
2020-05-16T05:11:06
2020-05-16T05:11:06
null
UTF-8
Python
false
false
2,603
py
import os import sys import re import stat import shutil current_path = os.path.dirname(os.path.abspath(__file__)) root_path = os.path.abspath(os.path.join(current_path, os.pardir)) top_path = os.path.abspath(os.path.join(root_path, os.pardir, os.pardir)) from xlog import getLogger xlog = getLogger("launch...
[ "banned.ebook@gmail.com" ]
banned.ebook@gmail.com
45aab77aeb697bf1ad193b75e81fb1b11904a171
2995ab9f4d8e4292763f215709bd3da266c812d4
/proyecto_ibis/ibis/users/migrations/0003_auto_20210611_1201.py
696f1309a1b6218a8098ff72531e3d4b7f7bf16a
[]
no_license
mrinxx/Ibis
a45c84184c03c5983cfb67ba303235162f22abfb
4435fad66bf8082eb9a3b41b0b2d415607cd207a
refs/heads/main
2023-06-01T19:40:16.092648
2021-06-14T20:48:10
2021-06-14T20:48:10
376,138,283
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
# Generated by Django 3.2.4 on 2021-06-11 12:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0002_remove_guardian_image'), ] operations = [ migrations.RemoveField( model_name='alumn', name='address', ...
[ "mrinxx5@gmail.com" ]
mrinxx5@gmail.com
51703a989853c75d13edcea9e53aa6ece050f724
2324dea2cb3003c8ab7e8fd80588d44973eb8c77
/Euler_1_12.py
5734c779f4c0af8eadd33888278b66b26ca706d5
[]
no_license
MikeOcc/MyProjectEulerFiles
5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56
4d066d52380aade215636953589bf56d6b88f745
refs/heads/master
2021-01-16T18:45:44.133229
2015-05-27T18:28:43
2015-05-27T18:28:43
5,876,116
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
sum=0 x = 500*499/2 maxum = 0 maxsum = 0 bestrow = 0 rstart = 12375 estart = 12377 showall = False for r in range(rstart,estart): trinum = r*(r+1)/2 #trinum = r sum=0 if trinum%2==0: endrange = (trinum/2) + 1 elif trinum%3==0: endrange = (trinum/3) + 1 elif trinum%5==0: endrange...
[ "mike.occhipinti@mlsassistant.com" ]
mike.occhipinti@mlsassistant.com
9c47603886a4c6ed2a21d6996118f3276f77d34b
770f7b7155c33d2f8c27846b93b9b73db45b2e2a
/gofedinfra/system/helpers/artefactkeygenerator/golangprojectdistributioncontracts.py
fa997f75dbfb7f4e5d02dc12ec4815bd664b40c5
[]
no_license
gofed/infra
b0f6186486e8aa7c8c640411ee92d6648cbc77ec
2f402bbdf1e5fa7cb68262cc3408a2fc1436269f
refs/heads/master
2022-10-16T02:46:09.226939
2018-06-07T23:16:44
2018-06-08T11:31:37
48,703,326
1
5
null
2022-10-11T11:17:16
2015-12-28T17:08:28
Python
UTF-8
Python
false
false
503
py
from infra.system.core.meta.metaartefactkeygenerator import MetaArtefactKeyGenerator import logging class GolangProjectDistributionContractsKeyGenerator(MetaArtefactKeyGenerator): def generate(self, data, delimiter = ":"): # return a list of fields keys = [] for key in ["artefact", "product", "distribution", "...
[ "jchaloup@redhat.com" ]
jchaloup@redhat.com
badfda65db90fba0d138df86bdf89c553f163981
1ec1e418fc5c9aac055c9218f1074332adf1e720
/rand_param_envs/gym/envs/classic_control/mountain_car.py
fd564b1a6e7c7322b34b749b615ac33353677373
[]
no_license
CHEN-yongquan/mier_public
344e34137343aa564b261c7125edac3b3ff10eb0
af56fa84811dc7a697feb1b9dff01836d2148810
refs/heads/master
2022-10-15T13:21:35.198458
2020-06-12T08:22:16
2020-06-12T08:22:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,400
py
""" https://webdocs.cs.ualberta.ca/~sutton/MountainCar/MountainCar1.cp """ import math from rand_param_envs import gym from rand_param_envs.gym import spaces from rand_param_envs.gym.utils import seeding import numpy as np class MountainCarEnv(gym.Env): metadata = { 'render.modes': ['human', 'rgb_array']...
[ "russellm@berkeley.edu" ]
russellm@berkeley.edu
07e5017f2acb0a1965c7ecaf4bc866b332dd9c41
09d3599c8e53b38104e96d479b2b40ac549d0bef
/Rakesh/merge-sorting/merge_sort_code.py
fdcfc5be250ad399af146275c3c7b1928f480b15
[]
no_license
rakeshsukla53/interview-preparation
54764c83c86a52c566899ec87d74dad84216764d
09355094c85496cc42f8cb3241da43e0ece1e45a
refs/heads/master
2016-09-06T02:08:50.436414
2016-02-01T00:31:52
2016-02-01T00:31:52
40,916,511
9
3
null
2015-12-31T05:00:55
2015-08-17T17:59:55
HTML
UTF-8
Python
false
false
831
py
def mergeSort(alist): print("Splitting ",alist) if len(alist)>1: mid = len(alist)//2 lefthalf = alist[:mid] righthalf = alist[mid:] mergeSort(lefthalf) mergeSort(righthalf) i = 0 j = 0 k = 0 while i < len(lefthalf) and j < len(righthalf):...
[ "rakesh.sukla53@gmail.com" ]
rakesh.sukla53@gmail.com
9fe70e6e9311515a57fe7f9f89e914f226914708
09cead98874a64d55b9e5c84b369d3523c890442
/py200912b_python2m6/day14_201212/homework/kevin/stem1402b_python_homework_12_KEvin (1).py
df9bca9af96dc347be56451b3a84d2e749a06e03
[]
no_license
edu-athensoft/stem1401python_student
f12b404d749286036a090e941c0268381ce558f8
baad017d4cef2994855b008a756758d7b5e119ec
refs/heads/master
2021-08-29T15:01:45.875136
2021-08-24T23:03:51
2021-08-24T23:03:51
210,029,080
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
""" 1. Read an HTML file, and copy all content into a new file 2. Read a CSV file, and copy all content into a new file 3. Read a CSV file, and copy its first half lines into a new file """ # Question 1. file = open("myweb.html") content = file.read() file.close() file = open("myweb.txt", 'w') file.write(content)...
[ "lada314@gmail.com" ]
lada314@gmail.com
3698d09b3ef585be930e2cdaae23a99451a3fe60
6a95b330e1beec08b917ff45eccfd6be3fd4629f
/kubernetes/client/models/v1beta1_pod_disruption_budget.py
1f4a7e680204daa09f3226b789c49eddb7556fd5
[ "Apache-2.0" ]
permissive
TokkoLabs/client-python
f4a83d6540e64861b59e322c951380a670578d7f
f1ad9c6889105d8510472606c98f8d3807f82020
refs/heads/master
2023-07-14T01:36:46.152341
2017-12-21T21:32:11
2017-12-21T21:32:11
115,042,671
0
0
Apache-2.0
2021-08-06T03:29:17
2017-12-21T20:05:15
Python
UTF-8
Python
false
false
7,321
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "mehdy@google.com" ]
mehdy@google.com
2f7b470ae7b0fec585de036aeb4572515b45c7cc
3fd8fd35d61d997b586e40ed8d938805ce5fdf3b
/Nonsense/sqlite3_select_variations.py
0e0b6abd418f5905d994320c035d6cff5d79e1f4
[]
no_license
ChocolatePadmanaban/Cooking_Scheduler
8afd967cd5128b15c9865aa44ae3d298ee3027ad
3cd91009e68064f92408fb5bba55519ba77767c3
refs/heads/master
2023-01-03T10:55:25.306425
2020-11-01T07:13:50
2020-11-01T07:13:50
260,551,843
0
0
null
null
null
null
UTF-8
Python
false
false
772
py
import sqlite3 db_filename = 'todo.db' with sqlite3.connect(db_filename) as conn : cursor = conn.cursor() cursor.execute(""" select name, description, deadline from project where name = 'pymotw' """) name, description, deadline = cursor.fetchone() print('\nProject details for {} ({}) \...
[ "pradeeppadmanaban7@gmail.com" ]
pradeeppadmanaban7@gmail.com
b1b0836558fca7fbe061c4eb80f07882c4fc2efe
abfa0fcab2bc9a9c3cccbc3a8142cdd4b2a66ee9
/171-excel sheet column number.py
ecf0f4089ecebf1bb3c5d9513e327b54f6b2dd8b
[]
no_license
JinnieJJ/leetcode
20e8ccf3f8919028c53e0f0db86bcc2fbc7b6272
26c6ee936cdc1914dc3598c5dc74df64fa7960a1
refs/heads/master
2021-04-15T09:18:08.450426
2021-03-06T01:53:27
2021-03-06T01:53:27
126,275,814
3
1
null
null
null
null
UTF-8
Python
false
false
304
py
class Solution(object): def titleToNumber(self, s): """ :type s: str :rtype: int """ base = ord('A') - 1 n = len(s) result = 0 for i in range(n): result += (ord(s[n - 1 - i]) - base) * pow(26, i) return result
[ "noreply@github.com" ]
JinnieJJ.noreply@github.com
2085ad269f187efe33fbf9c09c32fd5e88473c84
60d5b5b1f1c912d1655de3884efc09dfddd8d132
/sites/kotourism/interop/admin.py
6386d5b15eb775e20b5d54615fdec0aabf661348
[]
no_license
alexgula/django_sites
15033c739401f24603e957c5a034d63652f0d21f
038834c0f544d6997613d61d593a7d5abf673c70
refs/heads/master
2016-09-05T11:02:43.838095
2014-07-07T11:36:07
2014-07-07T11:36:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
# coding=utf-8 from django.contrib import admin from .models import Log class LogAdmin(admin.ModelAdmin): list_display = ('action_date', 'success', 'results', ) search_fields = ('results', ) date_hierarchy = 'action_date' list_filter = ('success', ) admin.site.register(Log, LogAdmin)
[ "alexgula@gmail.com" ]
alexgula@gmail.com
2b5c20e9871a400e3e7f65eacec72607e68aa9f6
5de0c9652b13fc57009626bfdec4c6c761ec450c
/test/test_app.py
af68128fa5a510cf84ced78968e43c33f2f9cfa3
[]
no_license
Quastrado/project_o_mail_service
7e845e5c6a70db0a3c32a1dde52e26dc8f1450f0
4de6e6e52d6fa1955372fbf2ba9408bad8955863
refs/heads/master
2023-02-05T08:26:27.726227
2020-03-18T14:45:12
2020-03-18T14:45:12
196,257,710
2
0
null
2023-02-02T06:38:38
2019-07-10T18:40:00
Python
UTF-8
Python
false
false
540
py
import pytest from flask_sqlalchemy import SQLAlchemy from owl_mail import create_app from owl_mail.models import User @pytest.fixture def app(): app=create_app() return app def test_app(client): response = client.get('/menu') assert response.status_code == 200 @pytest.fixture(scope='module') def...
[ "you@example.com" ]
you@example.com
3e39a7286d81302fbf3055a8e211ba990ae3791b
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/inspections/PyStringFormatInspection/NewStylePackedFunctionCall.py
9975f8d86d2a4696b19a165fee177feccb261cce
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
132
py
def f(): return dict(foo=0) '{foo}'.format(**f()) <warning descr="Too few arguments for format string">"{}"</warning>.format()
[ "valentina.kiryushkina@jetbrains.com" ]
valentina.kiryushkina@jetbrains.com
675c93c2b83444bcbb09534e5f4c2034726bac37
86f22c67e65438948b982663f8b72a29090504a2
/fem-sim/utils/compute_tf_jacobian_models.py
e81972fcb7bfee25c67fd9c3d6446709ca2b27b8
[]
no_license
itsvismay/research-experiments
2738270859db259d917e2baf8a6af4115c195d8f
4e49063f9fa53eda156e5cd5ded9c1caf45170ca
refs/heads/master
2021-09-03T23:01:40.704813
2018-01-11T22:37:54
2018-01-11T22:37:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,404
py
import numpy def generate_jacobian_for_tf_model(model_input_path, jacobian_output_path): import tensorflow as tf from tensorflow_forward_ad import forward_gradients from tensorflow.python.platform import gfile from tensorflow.core.protobuf import saved_model_pb2 from tensorflow.python.util import ...
[ "lawsonfulton@gmail.com" ]
lawsonfulton@gmail.com
918a53cc6d7de7ff0e39d6779f5f5f5f0b340572
27c27208a167f089bb8ce4027dedb3fcc72e8e8a
/ProjectEuler/UC solutions/Successful 101-150/Q107.py
be8c9a5ca40b89e684d9ebaf533ae69bec056b9f
[]
no_license
stankiewiczm/contests
fd4347e7b84c8c7ec41ba9746723036d86e2373c
85ed40f91bd3eef16e02e8fd45fe1c9b2df2887e
refs/heads/master
2021-05-10T16:46:41.993515
2018-02-16T09:04:15
2018-02-16T09:04:15
118,587,223
0
0
null
null
null
null
UTF-8
Python
false
false
1,639
py
from Numeric import * #NET = [zeros(40)]*40; TOT = 0; netses = []; NETS = []; for line in file("../TXTdata/network.txt"): netses.append(line); for line in netses: sq = list(); N = 0; for ch in line: if (ch in ['0','1','2','3','4','5','6','7','8','9']): N = 10*N+int(ch...
[ "mstankiewicz@gmail.com" ]
mstankiewicz@gmail.com
459168961ff18e611eb3a20384429e8466f547ec
ecf0d106831b9e08578845674a457a166b6e0a14
/programming_basics/EXAM_PREPARATION/6_baking_competition.py
9552197aa4b84f14c2e538ac66c099c7e7be2450
[]
no_license
ivo-bass/SoftUni-Solutions
015dad72cff917bb74caeeed5e23b4c5fdeeca75
75612d4bdb6f41b749e88f8d9c512d0e00712011
refs/heads/master
2023-05-09T23:21:40.922503
2021-05-27T19:42:03
2021-05-27T19:42:03
311,329,921
8
5
null
null
null
null
UTF-8
Python
false
false
1,187
py
sweets_prices = {"cookies": 1.50, "cakes": 7.80, "waffles": 2.30} sweets_count_total = {"cookies": 0, "cakes": 0, "waffles": 0} participants_count = int(input()) for _ in range(participants_count): sweets_per_participant = {"cookies": 0, "cakes": 0, "waffles": 0} baker = input() sweets_type = input() ...
[ "ivailo.ignatoff@gmail.com" ]
ivailo.ignatoff@gmail.com
0792edfcdab56134a64173a4679ac2670b36c589
e9973cbb3ceef6941ed6bc9744b0619d1cbac157
/blender/arm/logicnode/action_set_visible.py
1cefa30d81bd176229e2378961fc0e677cd855db
[ "Zlib", "GPL-2.0-only" ]
permissive
ForestCSharp/armory
5da5551a9ef344ad7ea44f55b6c52c07fa6302d5
89586682154e5fcef1529b2123c5a2d48ac7e982
refs/heads/master
2020-12-15T04:09:12.063333
2020-03-07T14:44:02
2020-03-07T14:44:02
234,990,289
1
0
Zlib
2020-03-07T14:44:03
2020-01-20T00:42:21
Python
UTF-8
Python
false
false
565
py
import bpy from bpy.props import * from bpy.types import Node, NodeSocket from arm.logicnode.arm_nodes import * class SetVisibleNode(Node, ArmLogicTreeNode): '''Set visible node''' bl_idname = 'LNSetVisibleNode' bl_label = 'Set Visible' bl_icon = 'QUESTION' def init(self, context): self.in...
[ "lubos.lenco@gmail.com" ]
lubos.lenco@gmail.com
191db65073f52a890b3b84415c335f3be5793331
b4484e6309bc538f87ca9f4692b6e5c47da4c449
/stacks-and-queues/stack-and-queue-NEW/dynamicArrayQueue/main.py
df83210062c4b75d4a6dc7195976c17f5f418188
[]
no_license
teknofage/CS-1.3-Core-Data-Structures
5178077c5995655bfecfe5e2c29d4405b1dabc6b
c2a439188113c0fc4175ff99cebba831ac5960d5
refs/heads/master
2022-12-22T18:17:50.463788
2020-10-07T23:58:29
2020-10-07T23:58:29
291,888,423
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
from Queue import Queue '''#CREATE a queue #front at index 0 #back at index n - 1 my_queue = [] #UPDATE, ADD #enqueue my_queue.append("A") my_queue.append("B") my_queue.append("C") #DELETE #dequeue my_queue.pop(0) #READ #front print(my_queue[0])''' #CREATE my_queue = Queue() my_queue.enqueue("A") #["A"] my_queue....
[ "teknofage@gmail.com" ]
teknofage@gmail.com
b7215d422a5dfcf2055f1a7256eecebe08f2f804
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02934/s538390286.py
0244438040ed16b0988ea23f2cb1e3db34324d0a
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
#!/usr/bin/env python3 import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines def main(): N = int(readline()) As = map(int, readline().split()) ans = 0 for a in As: ans += 1 / a print(1/ans) if __name__ == '__main__': main...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e98dbe14df42a16853ab45a34a4f32dbb1f2e053
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2638/60836/314330.py
dd3bfd48d6ff027cf4fab8a595b1773601811862
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,345
py
""" 第一行包含两个正整数N、M,分别表示数列中实数的个数和操作的个数 第二行包含N个实数,其中第i个实数表示数列的第i项 接下来M行,每行为一条操作,格式为以下两种之一: 操作1:1 x y k ,表示将第x到第y项每项加上k,k为一实数 操作2:2 x y ,表示求出第x到第y项这一子数列的平均数 操作3:3 x y ,表示求出第x到第y项这一子数列的方差 5 5 1 5 4 2 3 2 1 4 3 1 5 1 1 1 1 1 2 2 -1 3 1 5 """ NM=[int(m) for m in str(input()).split(" ")] N=NM[0] M=NM[1] arr=[int(m) for m in s...
[ "1069583789@qq.com" ]
1069583789@qq.com
42fe82c8265bc7a52b94883083b19770d75793da
006341ca12525aa0979d6101600e78c4bd9532ab
/CMS/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/applicationcontrol/zopeversion.py
85daa3ab7e652fa583597c1d4a5e1a8224c1ba05
[ "ZPL-2.1", "Python-2.0", "ICU", "LicenseRef-scancode-public-domain", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0" ]
permissive
germanfriday/code-examples-sandbox
d0f29e20a3eed1f8430d06441ac2d33bac5e4253
4c538584703754c956ca66392fdcecf0a0ca2314
refs/heads/main
2023-05-30T22:21:57.918503
2021-06-15T15:06:47
2021-06-15T15:06:47
377,200,448
0
0
null
null
null
null
UTF-8
Python
false
false
3,288
py
############################################################################## # # Copyright (c) 2001, 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # T...
[ "chris@thegermanfriday.com" ]
chris@thegermanfriday.com
109e8140c1ba99a672fa1b549b8707bd4b670ffe
8df5df20ac10a8dc81f7ac6e21e835553a8f5e2d
/src/sleekapps/graphql/threads/schemas/post.py
8c40cb5a4ae534582fcb193dc02a176600fe4dd5
[]
no_license
adepeter/sleekforum
7be71907d26623c43cd78a6da77a2398c1c25e26
35385e648974cdf009732af4c50b69a1825f7fda
refs/heads/master
2022-09-18T02:45:42.522128
2021-10-23T06:41:44
2021-10-23T06:41:44
208,669,487
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
from ..queries.post import PostQuery from ..mutations.post import PostMutation class PostQuerySchema(PostQuery): pass class PostMutationSchema(PostMutation): pass
[ "adepeter26@gmail.com" ]
adepeter26@gmail.com
8b15af25bd12ee28dd60bfa50ef64233eade6b3e
503d2f8f5f5f547acb82f7299d86886691966ca5
/atcoder/abc170_d.py
b793c3b0e59bf00a5329e943ebdaf51604ca831c
[]
no_license
Hironobu-Kawaguchi/atcoder
3fcb649cb920dd837a1ced6713bbb939ecc090a9
df4b55cc7d557bf61607ffde8bda8655cf129017
refs/heads/master
2023-08-21T14:13:13.856604
2023-08-12T14:53:03
2023-08-12T14:53:03
197,216,790
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# https://atcoder.jp/contests/abc170/tasks/abc170_d import numpy as np import sys input = sys.stdin.buffer.readline N = int(input()) A = list(map(int, (input().split()))) A.sort() cnt = np.zeros(10**6+10, dtype=np.int32) for x in A: if cnt[x] != 0: cnt[x] = 2 continue cnt[x::x] +...
[ "hironobukawaguchi3@gmail.com" ]
hironobukawaguchi3@gmail.com
ecbffecc0cc2e41903c8ea05f722a15622f58247
16bcda63a6bba61af0c835aabd73b0467696be4a
/itertools.permutations()/new 1.py
fc66ce8640fb164b234f6d40cbf4f58b749a3cac
[]
no_license
ZirvedaAytimur/HackerRank_Python
8ea7d629e75b4db31e04c64d102bf7a0a0b5632b
175017ed3d8ff11385e12e926b94da97797fc094
refs/heads/master
2023-03-13T13:00:42.225364
2021-03-10T20:36:18
2021-03-10T20:36:18
288,210,152
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
from itertools import permutations S, N = input().split() print(*[''.join(i) for i in permutations(sorted(S), int(N))], sep="\n")
[ "zirvedaytimur@gmail.com" ]
zirvedaytimur@gmail.com
fe770d37c3f012383470ba567f00d7c563d70240
c37e63a902106bbde63fb5517f420e2c043c7f93
/6.第六類/PYD608.py
f2831263799476d02d6107d8dda3737c6e08f4e2
[]
no_license
junyi1997/TQC_Python
35b1320ca7a1b2f8eee4b9e8d4f1b9d7f4a5c02f
befe177880a7034f37848ff404bb7d33f9a07ff9
refs/heads/master
2020-04-25T04:05:57.508858
2019-03-24T17:03:07
2019-03-24T17:03:07
172,499,205
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
# -*- coding: utf-8 -*- """ Created on Thu Jun 7 20:16:26 2018 @author: user 最大最小值索引 """ data=[] d_max=0 d_min=99999 for i in range(3): data.append([]) for j in range(3): num=eval(input()) data[i].append(num) if num > d_max: d_max=num d_ind=(i,j) if n...
[ "q5896799@gmail.com" ]
q5896799@gmail.com
b46c0d94a3c555f1f2593bb99544a3614bf282bd
4bf3aaf77c309a489100b98a8c03532632df152c
/Python/동빈북/그리디/무지의먹방라이브.py
c99f1764e90f9f5916ae8413225428dd15fcbe6a
[]
no_license
murane/PS
7fbfc54d962231949efc67f1a35c4b0119de0780
e938c6c503aeac08bf65e1e66709172b0e5da6ef
refs/heads/master
2023-05-06T22:51:54.105811
2021-05-30T03:34:53
2021-05-30T03:34:53
293,699,199
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
import heapq def solution(food_times, k): heap=[] if sum(food_times)<=k: return -1 for idx,time in enumerate(food_times): heapq.heappush(heap,(time,idx+1)) tot_cnt=0 cur_cnt=0 while heap: tmp_time,tmp_idx=heapq.heappop(heap) tot_cnt+=(tmp_time-cur_cnt)*(len(heap)+...
[ "murane@naver.com" ]
murane@naver.com
2edf5053669ffa0143f87c4e40cfcf93088f2495
c753216f44c4c5f34d50763a02d720e064ed5d13
/OPSI/web2/test/test_log.py
5909fce6269025ae6359143e64908bd32be8d23e
[]
no_license
mpice-mn/python-opsi
7fefcd590213a5b698022323b166710e8cbf5641
76dcd4e38100e019f64731539b31be6e8af60af7
refs/heads/stable
2023-05-02T05:25:31.478822
2020-02-05T21:16:50
2020-02-05T21:16:50
104,738,074
0
0
null
2017-09-25T10:49:13
2017-09-25T10:49:13
null
UTF-8
Python
false
false
4,489
py
# Copyright (c) 2001-2007 Twisted Matrix Laboratories. # See LICENSE for details. from OPSI.web2 import log, resource, http from OPSI.web2.test.test_server import BaseCase, BaseTestResource from twisted.python import log as tlog class BufferingLogObserver(log.BaseCommonAccessLoggingObserver): """ A web2 log ...
[ "j.schneider@uib.de" ]
j.schneider@uib.de
f722f47de9df0ad22072198f7ee90be74d106206
1dd0e0cbe481e965b1c9886a3d44ca3a122ae2af
/medikit/pipeline.py
59c97241d4e208de7b4bbea3d0301dc62eb5f615
[]
no_license
sei-nicolas/medikit
7dffc0a2866cba54023e19f5ebcd7c70b57359e8
e06fe8bc80cfa9af6fdeedf1f5fc2ef2f662dd9b
refs/heads/master
2020-07-07T00:02:18.040553
2019-06-30T08:33:42
2019-06-30T08:33:42
203,179,919
0
0
null
2019-08-19T13:36:52
2019-08-19T13:36:52
null
UTF-8
Python
false
false
2,278
py
""" Pipelines are a way to describe a simple step-by-step process, for example the release process. """ import datetime import json import logging logger = logging.getLogger(__name__) class Pipeline: """ Class to configure a pipeline. """ def __init__(self): self.steps = [] def add(se...
[ "romain@dorgueil.net" ]
romain@dorgueil.net
784081e775bbe964c1190f6cd858499aab6d04fd
dc3b3615e0e94e730508229c0fc758fc09390856
/src_nlp/tensorflow/toward_control/model/discriminator.py
3b73306d82b4046fa5b0514ff421f7b6998eda2a
[ "MIT" ]
permissive
ashishpatel26/finch
63993c208e0fc0ed52512420d38d03ce456116c1
bf2958c0f268575e5d51ad08fbc08b151cbea962
refs/heads/master
2020-04-20T21:59:25.292770
2018-12-25T01:31:50
2018-12-25T01:31:50
169,125,127
0
1
MIT
2019-02-04T18:17:06
2019-02-04T18:17:06
null
UTF-8
Python
false
false
4,199
py
from base import BaseModel from configs import args import tensorflow as tf class _Discriminator(BaseModel): def __init__(self, build_graph=True): super().__init__('Discriminator') with tf.variable_scope(self._scope): self.embedding = tf.get_variable('lookup_table', [args.vocab_size,...
[ "zhedongzheng@outlook.com" ]
zhedongzheng@outlook.com
5149a29ec22475fb3f959d83ecc335c7692de590
d48a10791e607b1690eea9c6c7191416cd60dc2d
/src/tlog/receiver/parse/syslog.py
1691afeb50010f7356e35dd4e226981e5d97f225
[]
no_license
thomaserlang/TLog
d84d1f51d5454598539fa8ab56b26292a13899f9
3f331c7169c90d1fac0d1922b011b56eebbd086a
refs/heads/master
2020-06-02T19:26:41.600474
2014-08-23T19:00:34
2014-08-23T19:00:34
12,624,537
2
0
null
2013-09-13T16:00:48
2013-09-05T17:52:29
JavaScript
UTF-8
Python
false
false
7,392
py
import logging import re import dateutil.parser from tlog.receiver.parse.parsed import Parsed class Syslog(object): ''' Class for parsing different syslog standards. Parse a syslog message: Syslog.parse('some syslog'). Returns none if the log format is not supported. Supported ...
[ "thomas@erlang.dk" ]
thomas@erlang.dk
6930b3b01ee36c759829bd4f634118dc666a853f
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit2987.py
472b1cd797ec2131dde4ee210490114eef1d7309
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,147
py
# qubit number=4 # total number=39 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
bab103f06638d1b892180096303b9bf0e6475feb
92a7d8b7cef98a8af9e11c3a3e32537e42a5909f
/temp.py
bb3d3707f91aad9a5bb630f9d7575eccac34a46d
[]
no_license
shanto268/focus-stacking
3b8f74ec7338f2664ac35f88f32bcdc304c011ff
e3e9dba2adfdb4a85a3a5b4a0c4f9f40e4240a9a
refs/heads/master
2023-04-11T04:36:16.236913
2021-04-22T20:08:43
2021-04-22T20:08:43
360,668,996
1
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
def getNeatTomograms(csvFile): I_matrices_reshaped = np.loadtxt(csvFile) filters = [ 'none', 'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36', 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc', 'lanczos' ] for j in ...
[ "sadman-ahmed.shanto@ttu.edu" ]
sadman-ahmed.shanto@ttu.edu
b1efdec2c8d1b55d5b698c8a63e0cd204b58a672
7950c4faf15ec1dc217391d839ddc21efd174ede
/problems/0947.0_Most_Stones_Removed_with_Same_Row_or_Column.py
cd63b6a1fee276fbeb5a6d85dbc93e57564f6f69
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
''' Runtime: 355 ms, faster than 64.84% of Python3 online submissions for Most Stones Removed with Same Row or Column. Memory Usage: 14.6 MB, less than 72.25% of Python3 online submissions for Most Stones Removed with Same Row or Column. ''' class UF: def __init__(self, n): self.p = list(range(n)) ...
[ "laoxing201314@outlook.com" ]
laoxing201314@outlook.com
60348d5d0dcc591878cc15c5daf0973aebeb18b0
b15ccd04d3edfb4d6278a055422610be09c3916c
/4615_재미있는 오셀로 게임/sol3.py
1c09cf931c77a05419f6e8447e49b0e62a0ad716
[]
no_license
hksoftcorn/Algorithm
d0f3a1a6009f47e4f391e568b29a3b51d6095d33
81b067b8105ba305172dd8271787c19f04d170ba
refs/heads/master
2023-05-12T21:15:34.668580
2021-06-08T07:57:04
2021-06-08T07:57:04
337,121,489
0
0
null
null
null
null
UTF-8
Python
false
false
1,049
py
import sys sys.stdin = open('sample_input.txt', 'r') def check(col, row, color): global arr, N def reversi(col, row, color): global arr # 상하좌우 / 대각선 dx = [-1, 1, 0, 0, -1, -1, 1, 1] dy = [0, 0, -1, 1, -1, 1, -1, 1] for i in range(8): d_x = dx[i] d_y = dy[i] change_li...
[ "hksoftcorn.dev@gmail.com" ]
hksoftcorn.dev@gmail.com
0c9583a3811439fcc5cda71bf42497a2544f7d7b
3c27b86f0165ab24e6b04d505e8471e032594f0b
/pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGL/GLES1/IMG/user_clip_plane.py
b8f7827c07884c9fba7dd0ac8e86eab155bfd9a7
[ "LicenseRef-scancode-warranty-disclaimer", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LGPL-2.1-or-later", "GPL-3.0-only", "LGPL-2.0-or-later", "GPL-3.0-or-later", "MIT" ]
permissive
alexus37/AugmentedRealityChess
8b9ccdfffc8aee93a86a44b8ef53c034ec6a10d1
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
refs/heads/master
2020-12-24T13:29:21.967833
2020-02-27T09:38:50
2020-02-27T09:38:50
31,264,034
1
1
MIT
2020-02-27T09:38:52
2015-02-24T14:36:34
Python
UTF-8
Python
false
false
938
py
'''OpenGL extension IMG.user_clip_plane This module customises the behaviour of the OpenGL.raw.GLES1.IMG.user_clip_plane to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/IMG/user_clip_plane.txt ''' from OpenGL import platform, co...
[ "alexlelidis@gmx.de" ]
alexlelidis@gmx.de
1b93ddc9c6c1399eaa6bec5b56290bfafa63f575
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-2/b93d3b23f51ef282c90dcf924475eb1fcaa4151d-<__getitem__>-fix.py
5adbfa85f57ff1603ef0188a487be24d8bd31338
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
def __getitem__(self, key): if isinstance(key, slice): (start, stop) = (key.start, key.stop) if (start is None): start = 0 if (stop is None): stop = self.data.shape[0] if ((stop + self.start) <= self.end): idx = slice((start + self.start), (stop ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
62162d4ab0cfb57a6d6fefa1e484bb594dd92685
ec15546fbcf6a2523f08950f0da01ade4451524f
/example_project/testapp/streams.py
dd63d45ce22d39cd8fdddc679a4b03ef35dece2e
[ "BSD-3-Clause" ]
permissive
seaw688/django-activity-stream
5869f3716e8d261296d520455f6412cbeca3c2db
b4e470444bcccb666bfb3711c0bced7863936ff9
refs/heads/master
2020-12-18T10:57:24.140620
2020-01-21T15:39:07
2020-01-21T15:39:07
235,354,434
0
0
BSD-3-Clause
2020-01-21T13:55:13
2020-01-21T13:55:12
null
UTF-8
Python
false
false
378
py
from datetime import datetime from actstream.managers import ActionManager, stream class MyActionManager(ActionManager): @stream def testfoo(self, obj, time=None): if time is None: time = datetime.now() return obj.actor_actions.filter(timestamp__lte = time) @stream def t...
[ "justquick@gmail.com" ]
justquick@gmail.com
3e0281fe6bf7c9011f21574c13f9ca744ce5653c
8efe56ee34c455a6b1336897f6d457acbc9c10f9
/examples/torch/pearl_half_cheetah_vel.py
0e468a052eb49096c983e7c4462f42d069776847
[ "MIT" ]
permissive
neurips2020submission11699/metarl
ab18d11e708bf569d76cb2fab2bcce089badd111
ae4825d21478fa1fd0aa6b116941ea40caa152a5
refs/heads/master
2022-10-15T22:03:09.948673
2020-06-11T19:22:55
2020-06-11T19:30:58
268,410,657
4
0
null
null
null
null
UTF-8
Python
false
false
6,501
py
#!/usr/bin/env python3 """PEARL HalfCheetahVel example.""" import click from metarl import wrap_experiment from metarl.envs import MetaRLEnv, normalize from metarl.envs.mujoco import HalfCheetahVelEnv from metarl.experiment import LocalRunner from metarl.experiment.deterministic import set_seed from metarl.experiment....
[ "neurips2020submission11699@gmail.com" ]
neurips2020submission11699@gmail.com
684cc61e7ed14e6b451bd27e39aa48200081c2b3
d7ec9d21fd426f4037908d4cd1b0532d3ea4288d
/simdb/settings.py
21040d8caed58785045b8d33aebbfca021820f57
[]
no_license
simmons-tech/simdb
53fdbfeb999ad2f31a442d31b90205ac1529ead9
be1938fb2139ee394dd9cfbcba8fd762b58c78d9
refs/heads/master
2020-04-22T10:06:28.846310
2016-10-13T03:36:51
2016-10-13T03:36:51
67,450,667
0
0
null
null
null
null
UTF-8
Python
false
false
4,096
py
""" Django settings for simdb project. Generated by 'django-admin startproject' using Django 1.10.1. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
[ "ammubhave@gmail.com" ]
ammubhave@gmail.com
b36824f0be40160f9c5f18035f4391791f1f4e17
2f122071e3cee6a150392edee2e4a2b0770309bb
/src/apps/search/views.py
e68ce7f9bef692437b25cd0939469393610d31bc
[]
no_license
snicoper/ofervivienda
4ca63472ca50406469977057f53b91a81c30f57f
44b8d2934105ccbf02ff6c20896aa8c2b1746eaa
refs/heads/master
2020-04-01T09:30:31.640803
2018-10-15T08:23:59
2018-10-15T08:23:59
153,077,955
1
0
null
null
null
null
UTF-8
Python
false
false
5,490
py
from django.shortcuts import Http404 from django.views.generic import FormView, ListView from anuncios.mixins.views import ClassFromCategoryNameMixin from anuncios.models import Anuncio from anuncios.settings import ANUNCIO_PAGINATE_BY from favorites.mixins.views import FavoriteListContextMixin from utils.text import ...
[ "snicoper@gmail.com" ]
snicoper@gmail.com
a8c9730f594067c302297e85bf27f363f28b7440
220535ba153c2fca757c264cab56d2ff835f4fd4
/02_K-近邻算法KNN/KNN.py
12d160bc82b9aaca1311f5b885db5491a719ccfc
[]
no_license
cp4011/Machine-Learning
d41b5b8533b8d2210d1e69b944f8ea997c2488b4
7f4576278990f8a2de302e69eb6373d169f9fbc8
refs/heads/master
2020-04-04T15:41:53.912450
2019-03-26T15:37:35
2019-03-26T15:37:35
156,048,459
2
0
null
2018-11-04T06:14:57
2018-11-04T04:16:03
Python
UTF-8
Python
false
false
9,066
py
from numpy import * from os import listdir """k-近邻算法 优点:精度高、对异常值不敏感、无数据输入假定。 缺点:计算复杂度高、空间复杂度高。 使用数据范围:数值型和标称型。 伪代码: 对未知类别属性的数据集中的每个点依次执行以下操作: (1).计算已知类别数据集中的点与当前点之间的距离; (2).按照距离递增次序排序; (3).选取与当前点距离最小的k个点; (4).确定前k个点所在类别的出现频率; (5).返回前k个点出现频率最高的类别作为当前点的预测分类。 """ # k-近邻算法 def classify0(inputX, dataSet, labels, k): ...
[ "957628963@qq.com" ]
957628963@qq.com
4aea3afea6a9199732f404cf7c84b91ca28615e2
0ed050cd8d23bf4679860694bbc5d6f2e45f229a
/src/q13es/tests.py
0056b741b65be1b6294b2fc08682a819429d57ee
[]
no_license
dsysme/hackforisrael
5404563d57f0034b1cefe09586abb6d65f8d5442
6081533fb8fbdecf28b4a4d85b7e9822d8969ca4
refs/heads/master
2020-12-13T20:54:55.744381
2013-11-03T23:34:07
2013-11-03T23:34:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,672
py
from django import forms from django.contrib.auth import get_user_model from django.test import TestCase from django.utils.translation import gettext as _ from q13es.forms import create_form, split_form_file, parse_field, parse_form from q13es.models import Answer import os.path User = get_user_model() class Q13esTe...
[ "udioron@gmail.com" ]
udioron@gmail.com
8cdbd7afe50b400f3a05da8118e35216bc8e369c
fa0d15b56a0d2bfd33a3bc5ca48c02d9b389af3d
/ggrc-core/src/ggrc/app.py
794c4eb71bb29963b8b85425288d1423f465950a
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Bryan-Guner-Backup/WULF
5f50ca4069f267e2ce0b1b6537f340ead5d78984
59d70ce2d4fe148e78ed112746d6963eeccaa6e9
refs/heads/master
2023-08-22T13:15:51.457279
2021-10-29T08:16:03
2021-10-29T08:16:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,667
py
# Copyright (C) 2016 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Sets up Flask app.""" import re from flask import Flask from flask.ext.sqlalchemy import get_debug_queries from flask.ext.sqlalchemy import SQLAlchemy from tabulate import tabulate from ggrc import contr...
[ "bgoonz4212@gmail.com" ]
bgoonz4212@gmail.com
1da2545df8d545a097b32fdc32594028de41246c
d8346eaf1c910ff02c7b243692a2766b8b089f06
/for-post/python-standard-library-threading/s2-timer-loop/loop.py
fb38dc289d93392d4877804a4926fc8e4cb27eda
[]
no_license
dustinpfister/examples-python
55304c99ba3af82cd8784ee98745546632155c68
a9910ee05d4df524f951f61b6d9778531a58ccbf
refs/heads/master
2023-03-06T21:10:18.888654
2021-02-26T20:32:52
2021-02-26T20:32:52
318,595,538
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
import threading def printMess(): print('hello'); def loop(func, sec): def wrapper(): loop(func, sec) func() t = threading.Timer(sec, wrapper) t.start() return t t=loop(printMess, 1)
[ "dustin.pfister@gmail.com" ]
dustin.pfister@gmail.com
915ce9e4b26a80de0c7696c731b048a00f6e8272
adbcfc92d71e9be39ccef49b3aee0d06cdcb0af1
/alembic/versions/48e2185b4a81_added_foreign_key_to_the_line_stops.py
50b33102a1ea440040fdc9b085a9132fe3c8f2b6
[]
no_license
linxaddict/mpkscraper
67e5cf5806974d4fe78f1c892f12870008951a91
a3b48a16f5db448692751c7de1f443dc3b0b30e7
refs/heads/master
2020-06-15T03:33:19.935314
2016-12-17T21:07:20
2016-12-17T21:07:20
75,334,083
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
"""added foreign key to the line_stops Revision ID: 48e2185b4a81 Revises: 44516a7495c7 Create Date: 2016-12-17 21:50:48.779742 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '48e2185b4a81' down_revision = '44516a7495c7...
[ "mprzepiorkowski@gmail.com" ]
mprzepiorkowski@gmail.com
75809450259f12afa6cc106612dff03bb1da556b
6958566f07393cc0dbdc3d8cefdcc741153f721b
/flask0518/utils/settings.py
678992a18fc5ba456baa786cf55a1bc20675649f
[]
no_license
iversongit/20180518
6ffeb7f91c7b66f07c9f4f0df7616accec473ba1
9ae2fb839815155c4784936a8c099cc98ebc15cf
refs/heads/master
2020-03-17T19:55:33.897986
2018-05-19T02:11:41
2018-05-19T02:11:41
133,884,415
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
import os from utils.functions import get_db_url # 放置所有配置相关的操作,形同Django的setting.py # 基础路径 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # 页面模板 templates_dir = os.path.join(BASE_DIR,"templates") # 静态模板 static_dir = os.path.join(BASE_DIR,"static") # 连接数据库 DATABASE = { # 用户 'USER':'root'...
[ "1564329410@qq.com" ]
1564329410@qq.com
fde93cf368188861818c16d04c7084c0c3f7a84a
52b5773617a1b972a905de4d692540d26ff74926
/.history/fizz_20200607124449.py
500600f0a3fd3de68b394839af6489449e8e04aa
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
def fizz(num): newNumber = [] for i in range(1,num+1): newNumber.append(i) for j in range(len(newNumber)): if newNumber[j] % 3== 0: newNumber[j] = "Fizz" elif newNumber[j] % 5 == 0: newNumber[j] = "Buzz" elif newNumber[j] % 3 == 0 and newNumber[j] % ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
4965dbda8f463902986b1c3f3580791ed62f75cd
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-1/vse-naloge-brez-testov/DN4-M-96.py
e73ef8577fed38746d0fd9c7193bff1d7ac9d17f
[]
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
1,382
py
# Tu pišite svoje funkcije: from math import* def koordinate(ime, kraji): s = () for i, x, y in kraji: if ime == i: s = s + (x,y) return(s) else: return None def razdalja_koordinat(x1, y1, x2, y2): razdalja = sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2) return razd...
[ "lenart.motnikar@gmail.com" ]
lenart.motnikar@gmail.com
f6f0b4e89f6ced5ee2a6039dd64dee6a3c957630
6a2b1b1d6092a8d2492a6677b6fd19d27b0f461f
/14-Python-Advance/06-python-regex/04-Match-Object/02-Match-Attributes/02-Match-pos-endpos-attribute.py
f9cd514798dea81ea6dd5771c3af7ef8e2ded8ef
[]
no_license
Uttam1982/PythonTutorial
3cfbe237199e048967502f3d0c1936f2b878cb87
8e28cc5c4be5826a011059db66f6952871248c82
refs/heads/master
2022-12-17T18:47:28.397383
2020-09-22T08:55:23
2020-09-22T08:55:23
288,524,784
0
1
null
null
null
null
UTF-8
Python
false
false
1,358
py
# match.pos # match.endpos #-------------------------------------------------------------------------------------------- # Contain the effective values of <pos> and <endpos> for the search. # Remember that some methods, when invoked on a compiled regex, # accept optional <pos> and <endpos> arguments that limit the s...
[ "uttampat@gmail.com" ]
uttampat@gmail.com
de72767d2ff972eb773a57d625072fad3a34062a
fb605733922e6e65c3a8537e0eddca18a98bd161
/bin/sql-to-markdown
bb2563e15394de6c4e827ed47f792398a8323fff
[]
no_license
EarthCubeGeochron/Sparrow-docs
5f3c73851d8a0a4ddb3b019c81b7e6066d3988a9
ad6ad2e337e98170fb33a5384640ff01c9462f03
refs/heads/master
2020-04-29T07:02:42.555203
2019-04-18T22:25:32
2019-04-18T22:25:32
175,939,002
0
0
null
null
null
null
UTF-8
Python
false
false
626
#!/usr/bin/env python # -*- coding: utf-8 -*- import fileinput import pyparsing from textwrap import dedent print("~~~sql") in_doc = False docs = "" for line in fileinput.input(): docstart = "/*" in line docend = "*/" in line if docstart: in_doc = True if not in_doc: print(line, end="")...
[ "dev@davenquinn.com" ]
dev@davenquinn.com
2c3d5b4e9124467eb3bf4af0a2652746057a9351
45ba55b4fbdaf1657fde92beaeba4f173265afcd
/tests/b.py
f646816b0c9a3e696aef98558f548199055989fd
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
strawberry-graphql/strawberry
af96afd4edd1788c59e150597a12501fbc7bf444
6d86d1c08c1244e00535840d9d87925431bc6a1c
refs/heads/main
2023-08-30T03:34:12.929874
2023-08-24T12:01:09
2023-08-24T12:01:09
162,690,887
3,408
529
MIT
2023-09-14T21:49:44
2018-12-21T08:56:55
Python
UTF-8
Python
false
false
779
py
from __future__ import annotations from typing import TYPE_CHECKING, Optional from typing_extensions import Annotated import strawberry if TYPE_CHECKING: from tests.a import A @strawberry.type class B: id: strawberry.ID @strawberry.field async def a(self) -> Annotated[A, strawberry.lazy("tests.a")...
[ "noreply@github.com" ]
strawberry-graphql.noreply@github.com
43e50a203f2e925342a83dcf7976dde81970e1e1
bc441bb06b8948288f110af63feda4e798f30225
/ucpro_sdk/model/notify/operation_log_pb2.pyi
fc93c0734ad12ed730d7c1a374e421a9a3cbc2ca
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
6,962
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
[ "service@easyops.cn" ]
service@easyops.cn
010368ccaa1fe15b704c69b83731653d4d069dff
9709da49cf74e0f1248848e029c5084af22e4e27
/e2yun_addons/odoo12/wx_tools/models/res_partner.py
56975b035d93ea387a4aa843381cea659c9a17e1
[]
no_license
guwenfeng/filelib
27ff44ecac988bbf1ed30e7e4d33bdfbc790393f
bc9003b47f06d7f10c0dc93034179d0fafccc683
refs/heads/master
2020-06-30T21:27:49.204212
2019-08-06T09:58:32
2019-08-06T09:58:32
200,955,551
0
1
null
2019-08-07T02:17:12
2019-08-07T02:17:12
null
UTF-8
Python
false
false
3,851
py
# coding=utf-8 import logging from geopy.distance import vincenty from odoo import models, fields, api _logger = logging.getLogger(__name__) class WXResPartner(models.Model): _inherit = 'res.partner' wxcorp_user_id = fields.Many2one('wx.corpuser', '关联企业号用户') wx_user_id = fields.Many2one('wx.user', '微信...
[ "hepeng1@163.com" ]
hepeng1@163.com
ac6d3308b07574f96e885441150f069ca1b51439
29db04da44804aae807f113dc0bb9134563b084e
/Python2-Core/src/main/prompto/statement/MethodCall.py
b483b2baa4a61ce28a56d38c5583e9fdd8129d0d
[]
no_license
prompto/prompto-python2
0f84e6e6f0f6889a4c866fc300d351fd7ee8a6b1
f929df1dd55e0b5d8ec9f39398a924503fce4019
refs/heads/master
2022-12-07T12:41:27.297404
2022-11-27T17:37:43
2022-11-27T17:37:43
32,623,630
3
1
null
2019-05-04T11:01:41
2015-03-21T07:17:05
Python
UTF-8
Python
false
false
8,090
py
from prompto.declaration.IDeclaration import IDeclaration from prompto.declaration.AbstractMethodDeclaration import AbstractMethodDeclaration from prompto.declaration.ArrowDeclaration import ArrowDeclaration from prompto.error.PromptoError import PromptoError from prompto.error.SyntaxError import SyntaxError from promp...
[ "eric.vergnaud@wanadoo.fr" ]
eric.vergnaud@wanadoo.fr
3bfb51f0aa7f3004baf108569efcc7120a220413
d60ee49abaee6c74c5b777f8f112a7f75f71f029
/genome/variants2/filter/VCF/somatic/genes/indels/rare_variants.py
6062b31fd198971fea91fd9fa2620ed59197a345
[]
no_license
ak352/melanomics
41530f623b4bfdbd5c7b952debcb47622d1a8e88
fc5e6fdb1499616fb25a8dc05259add8a65aeca0
refs/heads/master
2020-12-24T16:14:42.271416
2015-08-06T12:48:52
2015-08-06T12:48:52
18,439,919
0
0
null
null
null
null
UTF-8
Python
false
false
2,593
py
import sys from common_rsid import get_non_flagged #Creates a dictionary of fields pointing to column numbers, makes the code more readable def ParseFields(line): fields = {} var = line[:-1].split("\t") for x in range(0, len(var)): fields[var[x]] = x return fields def read_tsv(infile): wit...
[ "ak@uni.fake" ]
ak@uni.fake
b1aa5b9263b56dd44182ac4f6d3ae9f712c62267
5b2590bc39cf0cb44b7257f2be3be72a0e58d068
/torchkbnufft/nufft/sparse_interp_mat.py
4f2ef88a46f98241db14e644a685efbb30416c0f
[ "MIT" ]
permissive
zaccharieramzi/torchkbnufft
efc59f4bed6675173b8064d5dec7ec9eeb43b0f2
37e5808ab73ddb52cbd4655f3d7fd6273b3dd89a
refs/heads/master
2020-12-26T08:17:44.180049
2020-08-03T17:17:40
2020-08-03T17:17:40
273,199,030
0
0
MIT
2020-06-18T09:39:00
2020-06-18T09:39:00
null
UTF-8
Python
false
false
5,225
py
import itertools import numpy as np import torch from ..math import complex_mult, conj_complex_mult from .interp_functions import calc_coef_and_indices def get_interpob(model): """Retrieves the interpolation dictionary from model. Different nufft objects use different interpolation objects. This function ...
[ "matt.muckley@gmail.com" ]
matt.muckley@gmail.com
445094ac9443d4043d0a46684d8716d700979415
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scripts/pyinstaller/tests/old_suite/interactive/test_pygame.py
e3c84c9dfc7af1c578e2a92a953046ea790ce1d4
[]
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:3026e58b95b7ac74eb29a2e0e663c0a7e96472b2bf98d1be45c60efdd0b9458b size 922
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
50fa5a76956a5e9f87fc8b39fcc81f05fde6feeb
365967082720f3fda31afccfc237b7a67e8ffc07
/math/UglyNumber.py
80cd2786b22e2532548ebd0cad9f942395e607c6
[]
no_license
hulaba/geekInsideYou
ec68dee3fa24d63f5470aa40b600ef34d37c5da1
72c1f1b4fbf115db91c908a68c9ac3ca4cb22a4f
refs/heads/master
2022-12-11T11:11:03.149336
2020-09-12T16:12:40
2020-09-12T16:12:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
def divide(no, div): while no % div == 0: no = no / div return no def isUgly(num): num = divide(num, 2) num = divide(num, 3) num = divide(num, 5) return 1 if num == 1 else 0 def nthUgly(n): count = 1 i = 1 while n > count: i += 1 if isUgly(i): ...
[ "nainamehta2110@gmail.com" ]
nainamehta2110@gmail.com
552b509615b8838ca1c4f36eb4f2afc80db01eb6
377d86194fd6d23c8ef3df3e6f7d90092dd8f9b4
/workout_tracker/auth/urls.py
81a75b085386e9757309abff228e83dd0d38bc59
[ "MIT" ]
permissive
e-dang/Workout-Tracker
f20f44b012e895244bad413a46103415ffae5732
00a27597ea628cff62b320d616f56b2df4f344a0
refs/heads/master
2022-12-28T07:49:34.179307
2020-10-12T20:48:28
2020-10-12T20:48:28
293,937,958
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
from django.urls import path, include from rest_auth.views import PasswordResetConfirmView urlpatterns = [ path('', include('rest_auth.urls')), path('register/', include('rest_auth.registration.urls')), path('password-reset-confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_rese...
[ "edang830@gmail.com" ]
edang830@gmail.com
82c411312abd5617b27f1cfbea9d327ce60f4dc8
51b6d2fc53d5c632fcf01319842baebf13901e84
/atcoder.jp/abc196/abc196_d/Main.py
08662bac5d300ada3cd847e151140d34667825e1
[]
no_license
mono-0812/procon
35db3b2c21eff74fbd7b52db07f249380f6834ef
68a4b53880a228a0164052b23d1326363efcbc20
refs/heads/master
2023-05-30T17:02:58.935074
2021-06-27T12:15:10
2021-06-27T12:15:10
345,896,553
0
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
import bisect,collections,copy,heapq,itertools,math,string,sys,queue def I(): return input() def IS(): return input().split() def II(): return int(input()) def IIS(): return map(int,input().split()) def LIIS(): return list(map(int,input().split())) def ZER(N): return [False for _ in range(N)] INF=float("inf") MOD=10**9...
[ "frisk02.jar@gmail.com" ]
frisk02.jar@gmail.com
263f48233234deeabc43b9fed764e143d380396d
dd63082fe701392a132af4c52fba3ce2fb76e84c
/virtual/bin/django-admin.py
52ff4c4bd001d26a8f0e187c372daeff74962e1b
[]
no_license
CollinsMuiruri/multivendor
b53bfbe773e86d1793d09d87e4b8ecada79a7823
cf68cb3e9dbca8040dc781e173712f8e043cb42f
refs/heads/main
2023-04-11T07:54:04.488449
2021-04-19T23:05:40
2021-04-19T23:05:40
359,611,231
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
#!/home/collins/Documents/proxy-services/multivendor/virtual/bin/python3 # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django...
[ "wanyekicollins@gmail.com" ]
wanyekicollins@gmail.com
ea5160d5e285bd0f2ad8621191591fd191836803
ebf934fb6fd4e0ebbd870db857897fbb9d8022b7
/pyspark/ml/other/spark_ml_02.py
4e0ecd29cb3ae2cc49e494d27fa5864a6c628830
[]
no_license
AidenLong/ai
6ce2bcf5928f8350ba8b440e9032ea4c39dd69ec
0901e6010bbb51a165680e52d9adaeec7e510dc1
refs/heads/master
2020-05-03T13:27:38.698490
2019-08-22T03:18:09
2019-08-22T03:18:09
178,653,209
3
2
null
null
null
null
UTF-8
Python
false
false
1,667
py
# --encoding:utf-8 -- import os from pyspark.mllib.stat import Statistics from pyspark import SparkConf, SparkContext if 'SPARK_HOME' not in os.environ: os.environ['SPARK_HOME'] = 'D:\syl\dev\spark-1.6.1-bin-2.5.0-cdh5.3.6' # 创建Spark上下文 conf = SparkConf() \ .setMaster('local') \ .setAppName('spark ml 02'...
[ "807108578@qq.com" ]
807108578@qq.com
d9ad09a9d01aacf6b03f7ada5b2712a773f66e3c
9b20743ec6cd28d749a4323dcbadb1a0cffb281b
/11_Time_Series_Forecasting_with_Python/02/features_lag1.py
ec593a95a20499aae3844259bf5a6e6eb9850287
[]
no_license
jggrimesdc-zz/MachineLearningExercises
6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178
ee265f1c6029c91daff172b3e7c1a96177646bc5
refs/heads/master
2023-03-07T19:30:26.691659
2021-02-19T08:00:49
2021-02-19T08:00:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
# create a lag feature from pandas import DataFrame from pandas import concat from pandas import read_csv series = read_csv('daily-minimum-temperatures.csv', header=0, index_col=0, parse_dates=True, squeeze=True) temps = DataFrame(series.values) dataframe = concat([temps.shift(1), temps], axis=1) dataframe.columns = [...
[ "jgrimes@jgrimes.tech" ]
jgrimes@jgrimes.tech
a6f64d216a61ec6b1ffd4aea86d1986532e794ab
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/autosar/models/data_transformation_subtypes_enum.py
a50f8760e3b21482a2c78717041e0d8b56a05c4d
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
166
py
from enum import Enum __NAMESPACE__ = "http://autosar.org/schema/r4.0" class DataTransformationSubtypesEnum(Enum): DATA_TRANSFORMATION = "DATA-TRANSFORMATION"
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
8e6929fa89c74d13a0c75c8d23b87b2a2effc313
b7125b27e564d2cc80a2ce8d0a6f934aa22c8445
/.history/display_board_20201107211818.py
025bebad29b34bbd089707fa7af0e9cfb8956bf5
[]
no_license
JensVL96/Puzzle-solver-for-fun
4c15dcd570c3705b7ac555efb56b52913e81083c
6d8a4378a480372213a596a336a4deca727a00fc
refs/heads/master
2021-07-15T05:19:42.185495
2020-11-08T13:59:49
2020-11-08T13:59:49
224,855,888
1
0
null
null
null
null
UTF-8
Python
false
false
6,807
py
from config import * import pygame as pg class Display_board(): def __init__(self, screen): self.screen = screen self.font_num = pg.font.SysFont("comicsans", NUMBER_SIZE) self.font_cdt = pg.font.SysFont("comicsans", CANDIDATE_SIZE) def draw_val(self, val, x, y): text1 = self....
[ "jle040@uit.no" ]
jle040@uit.no
8be82ede930331667dd607f674a2cefd5c1b9b0c
dbd8180d9c02c22b42baa5227437714ff352fd8e
/1-100/L237.py
2ab3f5f5b9eb4f3c53c14f04d1fca60d0a23b65e
[]
no_license
k8godzilla/-Leetcode
92953dfffc0f06907fa7bd0beea7bc27b16f9efa
58d5384155f481b1d1b0a7ca69566245dd779554
refs/heads/master
2020-06-12T15:35:43.380979
2019-08-07T11:14:49
2019-08-07T11:14:49
194,348,264
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
# -*- coding: utf-8 -*- """ Created on Fri Jul 26 11:27:50 2019 @author: admin """ ''' 请编写一个函数,使其可以删除某个链表中给定的(非末尾)节点,你将只被给定要求被删除的节点。 现有一个链表 -- head = [4,5,1,9],它可以表示为:   示例 1: 输入: head = [4,5,1,9], node = 5 输出: [4,1,9] 解释: 给定你链表中值为 5 的第二个节点,那么在调用了你的函数之后,该链表应变为 4 -> 1 -> 9. 示例 2: 输入: head = [4,5,1,9], node = 1 ...
[ "k8sunyin@126.com" ]
k8sunyin@126.com
7e33ad8bbc4f98c052b5f081b07505b5b17aa3df
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/9_排序和搜索/经典题/826. 安排工作以达到最大收益.py
ec2e9799c526bbb8a42b79b5b4cd4c785cc7eb7f
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
1,380
py
from typing import List from bisect import bisect_left # difficulty[i] 表示第 i 个工作的难度,profit[i] 表示第 i 个工作的收益。 # worker[i] 是第 i 个工人的能力,即该工人只能完成难度小于等于 worker[i] 的工作。 # !每一个工人都最多只能安排一个工作,但是一个工作可以完成多次。 # 我们能得到的最大收益是多少?(调整打怪策略,与什么样的怪兽战斗获得金币最多) # 1 <= n, m <= 104 # 不能二分查找:题目没有说难度高的工作收益也越大 # 总结: # !排序+遍历加指针记录 # ...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
3d5c8745030e29f443d5aefebb7a4c6d895d30ec
18e886106d2d84c978e12aa29691f5c0269409ca
/src/biotite/sequence/search.py
975603f8edc57daec4a299306d9c5f47044335c4
[ "BSD-3-Clause" ]
permissive
avestamh/biotite
fed37fb4733b4b064cad06b0fccb0193f295c6a2
d2066e1011bffa7ef83db9fddf6207da8834cc79
refs/heads/master
2020-08-06T06:59:21.326038
2019-09-27T17:03:06
2019-09-27T17:03:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,119
py
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __author__ = "Patrick Kunzmann" __all__ = ["find_subsequence", "find_symbol", "find_symbol_first", "find_symbol_last"] import numpy as np def find_sub...
[ "patrick.kunzm@gmail.com" ]
patrick.kunzm@gmail.com
ba108f845d88a211249cea333a6ee45a47788350
0fa517fb36fbffd3ffcc9c1a016f1812a8139102
/numpy_01_arrays.py
90971c221829f79b1720b2bb2e27d2a8362b7e47
[]
no_license
sooyoungkim/flipped-python-modules
2e7ed4d8590edcb87695d9eb3f5a096f7c362006
cfa5074b22429340e8586cb49b6a3c25df61e6f3
refs/heads/master
2020-03-09T10:57:45.480915
2018-04-09T10:01:18
2018-04-09T10:01:18
128,749,437
0
0
null
null
null
null
UTF-8
Python
false
false
4,497
py
import numpy as np ######################################################## # Arrays # - Numpy의 중심 feature는 Array object class이다. # - Python의 List와 비슷하지만 Array의 모든 원소는 같은 타입이다. # - 대개 float이나 int 타입 # - 엄청 큰 numeric 데이터를 매우 빠르고 효과적으로 계산. # - Arrays 는 multidimensional이라 할 수 있다. # - Array생성 : numpy.array(th...
[ "suri.kim@daumkakao.com" ]
suri.kim@daumkakao.com
7dd305bcfab4bc04364c22ec193187aa5f1f6479
5390e730defb07660fb6928f5de5970db80b5457
/docs/conf.py
c8a64641f11e45a5d5e7a0132d35e129d865d969
[ "BSD-2-Clause" ]
permissive
DrMeers/plata
a732831f001bdc25ab425d6e3c3f70c4d3d303fb
eedfdadda573e9f7b28beddf9ec578c91903355a
refs/heads/master
2021-01-18T10:32:01.027409
2013-06-28T07:42:40
2013-06-28T07:42:40
771,395
1
1
null
null
null
null
UTF-8
Python
false
false
6,605
py
# -*- coding: utf-8 -*- # # Plata documentation build configuration file # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented...
[ "mk@spinlock.ch" ]
mk@spinlock.ch
df82af94f16968ac4caa95eaf4b55ce03d574d45
cd1ac53e02cf8879e092bdc4a625e465e241d6e0
/apps/goods/views.py
b763376cb7524115ff1f1d04353e31927bc680fd
[]
no_license
furuiyang0715/dailyfresh
a150d472237822730f6c372620c5da19da514590
98c678c34d5b26eda6b99f7a8d1ca74b6f4399d3
refs/heads/master
2022-12-18T17:38:22.200364
2020-09-17T08:49:30
2020-09-17T08:49:30
286,921,141
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
import json from django.http import JsonResponse from django.shortcuts import render from django.views import View from django_redis import get_redis_connection from goods.models import GoodsType, IndexGoodsBanner, IndexPromotionBanner, IndexTypeGoodsBanner class IndexView(View): """首页""" def get(self, requ...
[ "furuiyang0715@gmail.com" ]
furuiyang0715@gmail.com