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
d99e70cf63ab0cd31386b32105d62353563e8104
7e099db730027a332cef52c4e539a1c3a39584d7
/shell.py
79226bed2f104aac2d8f90a5d23985b81099cf9f
[]
no_license
haricm/hasweb
688108d01950822c9f3813a9a926c11e17529827
48e92c46855e4fa14f35090ae1e1c9ceffa5d75f
refs/heads/static
2020-12-28T06:58:31.525138
2016-06-22T21:41:54
2016-06-22T21:41:54
51,294,404
0
0
null
2016-02-08T11:36:39
2016-02-08T11:36:38
null
UTF-8
Python
false
false
181
py
#! /usr/bin/env python #! -*- coding: utf-8 -*- import os import readline from pprint import pprint from flask import * from hasweb import * os.environ['PYTHONINSPECT'] = 'True'
[ "kiran@hasgeek.com" ]
kiran@hasgeek.com
10dc94fce77ff1027f55411a178940bdfd04d4a5
ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1
/res/packages/scripts/scripts/common/Lib/plat-mac/lib-scriptpackages/Explorer/Netscape_Suite.py
9dc8c9f099abf16d3e2caf20047680e160b01130
[]
no_license
webiumsk/WOT-0.9.20.0
de3d7441c5d442f085c47a89fa58a83f1cd783f2
811cb4e1bca271372a1d837a268b6e0e915368bc
refs/heads/master
2021-01-20T22:11:45.505844
2017-08-29T20:11:38
2017-08-29T20:11:38
101,803,045
0
1
null
null
null
null
WINDOWS-1250
Python
false
false
1,485
py
# 2017.08.29 21:58:49 Střední Evropa (letní čas) # Embedded file name: scripts/common/Lib/plat-mac/lib-scriptpackages/Explorer/Netscape_Suite.py """Suite Netscape Suite: Events defined by Netscape Level 1, version 1 Generated from /Applications/Internet Explorer.app AETE/AEUT resource version 1/0, language 0, script 0...
[ "info@webium.sk" ]
info@webium.sk
d9c62814e709deaedc82713d90955bb4505d05c9
5759c0ed3219c06437ce5b39ef9ad92b5e191fed
/py/0814_binary_tree_pruning.py
58027f3dc60a087ead471c4791aa442c2fa71a8e
[]
no_license
mengnan1994/Surrender-to-Reality
ba69df7c36112ad19f19157a9f368eae6340630f
66232728ce49149188f863271ec2c57e426abb43
refs/heads/master
2022-02-25T01:34:49.526517
2019-09-22T17:21:28
2019-09-22T17:21:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
""" We are given the head node root of a binary tree, where additionally every node's value is either a 0 or a 1. Return the same tree where every subtree (of the given tree) not containing a 1 has been removed. (Recall that the subtree of a node X is X, plus every node that is a descendant of X.) Example 1: Input: [1...
[ "hurricane.cui@gmail.com" ]
hurricane.cui@gmail.com
b8d25789b012978f89d53ff49aaf89fe33ba5b8e
17acb8e20f9a24b16ce3651302fc2d7fc7b887a6
/src/programy/storage/stores/nosql/mongo/store/users.py
02d5a2bccdd7221a3337439e37f79782513550ca
[ "MIT" ]
permissive
cen-ai/program-y
91052fdc11aec0f60311e3429895fac489d8ce54
a753667638147544c54dbebd9f1c8f9ae7f2159e
refs/heads/master
2020-03-22T15:11:07.896885
2018-10-15T22:13:58
2018-10-15T22:13:58
140,234,173
5
5
NOASSERTION
2019-01-03T09:09:07
2018-07-09T05:11:08
Python
UTF-8
Python
false
false
2,230
py
""" Copyright (c) 2016-2018 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
[ "edguy@eguy.org" ]
edguy@eguy.org
9c742413d38b0aaf50f7200c1696142e316f6e85
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_scrimps.py
64415eec48625a7a2cc7517d1e7bb4590bc19881
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from xai.brain.wordbase.verbs._scrimp import _SCRIMP #calss header class _SCRIMPS(_SCRIMP, ): def __init__(self,): _SCRIMP.__init__(self) self.name = "SCRIMPS" self.specie = 'verbs' self.basic = "scrimp" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
eac6a2b1d70e266e04d31db1b3283e1f1ae7aaae
bebc317eebad1e0f136c2d959e5b9882e123d366
/game/mario/src/data/level.py
45618b67ab8331a23000646413fe4780b9d3a293
[ "Apache-2.0" ]
permissive
GuillaumeFalourd/formulas-games
62ac5b87e6868db29de022e52fd56993ec9c3c46
7530ef09cc85f30157e62b8761868c2a0eddb93d
refs/heads/main
2023-07-14T04:33:11.666127
2021-08-29T23:21:16
2021-08-29T23:21:16
369,598,803
10
2
null
null
null
null
UTF-8
Python
false
false
3,192
py
from .sprites import level_1 from .basetypes import Vector2, Rectangle from . import config as c from .components.tiles import Question, Brick, Collider_Rect, Flagpole from .components.items import * from .components.enemies import * #Colliders that don't possess velocity static_colliders = [] #Colliders that possess...
[ "guillaume.falourd@zup.com.br" ]
guillaume.falourd@zup.com.br
3ebadc10fd17025f0d68ab97ada972030f456f03
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2403/60592/233469.py
9761f234d7673441623d7aa29b2be6f823ffb15b
[]
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
260
py
candies = int(input()) num_people = int(input()) i = 0 res = [0]*num_people while(candies>0): if candies>=i+1: candies-=i+1 res[i%num_people] += i+1; else: res[i%num_people] += candies candies = 0; i = i+1 print(res)
[ "1069583789@qq.com" ]
1069583789@qq.com
2f3a2709a16c0bcb0d3ed029c939daadb80c6b60
22a16f2fc3f2ddf92a620751530c2046ba2e9f1f
/api/dynamic_tests_v2/activation.py
020b0bb91b00720d239a6152f8749c5e7cdbb632
[]
no_license
ForFishes/benchmark
8ebb8e13f44b2f3a350fe4325b03f7e5cab42065
56e070628ad67178cdfc67b47759020ff408300a
refs/heads/master
2023-02-23T03:45:50.320413
2021-01-21T05:15:05
2021-01-21T05:15:05
331,538,261
0
2
null
2021-01-21T06:39:15
2021-01-21T06:39:14
null
UTF-8
Python
false
false
1,913
py
# Copyright (c) 2020 PaddlePaddle 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 app...
[ "noreply@github.com" ]
ForFishes.noreply@github.com
188d1f6fc00b5a13136bb562cf24311d89cc6901
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/rna-transcription/d54f298dde914c7e9a732cbec50a20e1.py
970f6d38930e8da150af549feb941eddf63bb6a5
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
342
py
class DNA: def __init__(self, seq = None): self.sequence = seq # I guess this is inefficient as it declares the mapping every time a new object is created? self.DNA_to_RNA = { 'A': 'U', 'G': 'C', 'C': 'G', 'T': 'A' } def to_rna(self): return ''.join(self.DNA_to_RNA[c] fo...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
d5ad7a7cac14d5c97e9330e9f6ba0ea20956718b
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_8/brnann016/question3.py
75ec0cc3ee04626a026462b0fc5770c9ab077a6a
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
# Assignment 8-question3 #Annika Brundyn #encrypt function def encrypt(message): if len(message) == 1: if message.islower(): if message == 'z': return 'a' else: return chr(ord(message) + 1) else: return message else: re...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
c05e933761f1a14bf307d77aeb5a24ae19f63d46
6123df2ee8648c7977c99564197f7834c7ea83a1
/DataPreprocessing/排序算法/快速排序方法1.py
bbf8cdc0da6f5ccb2a18ba2805a1233b0aad786c
[]
no_license
JiaqiuWang/DataStatusPrediction
2b66a24f992df64d93506f54e041d93282213c6e
9eb3eff99f0f804857f3a1d70227f75c91a8258d
refs/heads/master
2020-05-21T21:34:28.571549
2017-08-17T08:44:12
2017-08-17T08:44:12
84,649,900
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
# Method1 def quickSort(arr): less = [] pivotList = [] more = [] if len(arr) <= 1: return arr else: pivot = arr[0] # 将第一个值作为基准 print("pivot:", pivot) for i in arr: if i < pivot: less.append(i) elif i > pivot: ...
[ "wangjiaqiu186@icloud.com" ]
wangjiaqiu186@icloud.com
b546707ae6eb6405b3eefd2b37bb4147f39847f4
fe3bc38d2a9f80a6b258e2c61dbe4557323a1d71
/custom/ewsghana/south_migrations/0001_initial.py
2a5bab415d8f95907823c7712377fcd7c3ce648e
[]
no_license
ekush/commcare-hq
077eb3f525ffb7d1acca0848b9c7678baf776832
97a1f55f24f79224724b2ecdc7d5cea87d42f65b
refs/heads/master
2021-01-17T22:25:09.734898
2015-08-25T23:07:49
2015-08-25T23:07:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,976
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'FacilityInCharge' db.create_table(u'ewsghana_facilityinch...
[ "kkrampa@soldevelo.com" ]
kkrampa@soldevelo.com
0e5519be5f6c9f0162340f3b13fe27ca4e7ef96e
d7016f69993570a1c55974582cda899ff70907ec
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/_container_service_client.py
40fe62dd9a76da362a1f9a68e6ab090b8e1aa17f
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
6,786
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
16f82b3f6d262e8dc868a376d1488222401592a2
4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422
/_0053_Maximum_Subarray.py
be2bb3203c47327d5a0a3576ae0dfaf79ab007fe
[]
no_license
mingweihe/leetcode
a2cfee0e004627b817a3c0321bb9c74128f8c1a7
edff905f63ab95cdd40447b27a9c449c9cefec37
refs/heads/master
2021-06-19T07:46:46.897952
2021-05-02T05:13:17
2021-05-02T05:13:17
205,740,338
3
0
null
null
null
null
UTF-8
Python
false
false
718
py
class Solution(object): def maxSubArray(self, nums): """ :type nums: List[int] :rtype: int """ # Approach 2 for i in range(1, len(nums)): if nums[i-1] > 0: nums[i] = nums[i] + nums[i-1] return max(nums) # Approach 1 ...
[ "10962421@qq.com" ]
10962421@qq.com
2a3cb3835f9c19bc32575a438d0a76d34366cd63
e23a4f57ce5474d468258e5e63b9e23fb6011188
/095_os_and_sys/_exercises/templates/Programming_Python/04_File and Directory Tools/04_002_Ensuring file closure Exception handlers and context managers.py
1f41b027f691c845469a9997d5f06857f17bb216
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
609
py
# myfile = open(filename, 'w') # ___ # ...process myfile... # finally: # myfile.close() # # with open(filename, 'w') as myfile: # ...process myfile, auto-closed on statement exit... # # myfile = open(filename, 'w') # traditional form # ...process myfile... # myfile.close() # with open(filename) as myfile: #...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
3688f07341087091eea0c443b07b0e57449140dd
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02699/s068976853.py
b2a893ced4293b4b0b5cd753623e0bc052df3729
[]
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
233
py
import math def fact(n): ans = 1 for i in range(2, n+1): ans*= i return ans def comb(n, c): return fact(n)//(fact(n-c)*c) s,w = map(int, input().split()) if(s >w): print('safe') else: print('unsafe')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7588f5b215b1669a718d62698603a3e391129fd8
925767da3d33266364f4af5ea5ac161245c598ad
/deshi/deshi/settings.py
8ce101a6eb8b87962b35c3d1f54201f270f08ed8
[]
no_license
NicholasPiano/karate-master
facce4100ac92c0f39f1328ee2838126c153538d
137ebbd1f274dd79a367f9bbab3651ea365fce83
refs/heads/master
2016-09-05T11:24:34.843555
2014-08-23T19:24:09
2014-08-23T19:24:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,969
py
""" Django settings for deshi project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) impo...
[ "nicholas.d.piano@gmail.com" ]
nicholas.d.piano@gmail.com
38271f663558957f927383295f723ae4eee88114
74be814f7cd10d3c91a53460bd6698aa8bc95704
/剑指offer/面试题28. 对称的二叉树.py
11a5e592f54dc79fb7ac584d9dd760cf25be2339
[]
no_license
weiyuyan/LeetCode
7202f7422bc3bef6bd35ea299550b51905401656
19db0e78826d3e3d27d2574abd9d461eb41458d1
refs/heads/master
2020-12-03T17:10:53.738507
2020-05-27T08:28:36
2020-05-27T08:28:36
231,402,839
2
0
null
null
null
null
UTF-8
Python
false
false
1,587
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # author:ShidongDu time:2020/2/17 ''' 请实现一个函数,用来判断一棵二叉树是不是对称的。如果一棵二叉树和它的镜像一样,那么它是对称的。 例如,二叉树 [1,2,2,3,4,4,3] 是对称的。     1    / \   2   2  / \ / \ 3  4 4  3 但是下面这个 [1,2,2,null,3,null,3] 则不是镜像对称的:     1    / \   2   2    \   \    3    3   示例 1: 输入:root = [1,2,2,3,4,4,3] ...
[ "244128764@qq.com" ]
244128764@qq.com
8baeb5e0f4856447b4b776a2cfd340d842904525
350db570521d3fc43f07df645addb9d6e648c17e
/0191_Number_of_1_Bits/solution_test.py
c90810e481c8eb1413275fac582e235cd1db37c7
[]
no_license
benjaminhuanghuang/ben-leetcode
2efcc9185459a1dd881c6e2ded96c42c5715560a
a2cd0dc5e098080df87c4fb57d16877d21ca47a3
refs/heads/master
2022-12-10T02:30:06.744566
2022-11-27T04:06:52
2022-11-27T04:06:52
236,252,145
1
1
null
null
null
null
UTF-8
Python
false
false
364
py
''' 191. Number of 1 Bits Level: Easy https://leetcode.com/problems/number-of-1-bits ''' import unittest class TestSum(unittest.TestCase): def test_sum(self): self.assertEqual(sum([1, 2, 3]), 6, "Should be 6") def test_sum_tuple(self): self.assertEqual(sum((1, 2, 2)), 6, "Should be 6") if...
[ "bhuang@rms.com" ]
bhuang@rms.com
85bf6770328eb00c91e0cc62a4016f0dc533d828
a6982e37fdc5359fa89b9f0587f75ff4889a849d
/venv/Lib/site-packages/pandas/tests/series/indexing/test_loc.py
088406e0a1db670b2a260bce1a69e073370b2a34
[ "Apache-2.0" ]
permissive
1pani/fund-rank-dashboard
5d7ca6107013d5f82e7c54b3199d5506f34175c3
95c17bbee6e09ae4eb5738c519d3b6c651e8257c
refs/heads/master
2022-12-21T19:36:05.446703
2019-10-19T09:45:30
2019-10-19T09:45:30
137,461,621
4
1
Apache-2.0
2022-12-15T09:19:53
2018-06-15T08:26:46
Python
UTF-8
Python
false
false
4,078
py
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import pytest import numpy as np import pandas as pd from pandas import (Series, Timestamp) from pandas.compat import lrange from pandas.util.testing import (assert_series_equal) def test_loc_getitem(test_data): inds = test_data.series.index[[3, 4, 7]] asse...
[ "abhilashpani651@gmail.com" ]
abhilashpani651@gmail.com
31406d7aa715df53849ac4f2affbec4743320fcb
04097eda667d795407c71dbf7b8c408a55661e35
/prb_srv_x_T_legacy.py
7a9109fbb219f71ff13fa21410bbe1f7dff3579f
[]
no_license
synsrv/src_thrs-dyn-analysis
b0f76aded935093ebd15a1aa0d525ca07bbe98ee
9a286ec6f8259a6f7b73fb75ffe99c965263f4a7
refs/heads/master
2020-06-22T02:32:26.379781
2019-07-18T15:22:28
2019-07-18T15:22:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,114
py
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as pl from matplotlib import rc rc('text', usetex=True) pl.rcParams['text.latex.preamble'] = [ r'\usepackage{tgheros}', r'\usepackage{sansmath}', r'\sansmath' r'\usepackage{siunitx}', r'\sisetup{detect-all}', ...
[ "felix11h.dev@gmail.com" ]
felix11h.dev@gmail.com
a56fc1a4e5b64686820edca3055851034da5cf31
ade10d077441c1d36d027c05df458e942b904a1d
/scripts/classifcation_pos_all_vs_one.py
cbd024b089929aa4abb8a5011aef697193f32b07
[ "MIT" ]
permissive
nmningmei/metacognition
dabadca913e404994f8d53167e5f36f551590def
734082e247cc7fc9d277563e2676e10692617a3f
refs/heads/master
2022-07-14T06:51:42.508132
2021-11-14T09:40:13
2021-11-14T09:40:13
197,187,294
2
1
MIT
2022-06-21T23:01:56
2019-07-16T12:12:11
Python
UTF-8
Python
false
false
6,544
py
# -*- coding: utf-8 -*- """ Created on Sun Jul 15 16:02:16 2018 @author: ning """ import os working_dir = '' import pandas as pd pd.options.mode.chained_assignment = None import numpy as np from utils import (classification_simple_logistic) saving_dir = '../results/all_vs_one' if not os.path.exists(saving_dir): o...
[ "nmei@bcbl.eu" ]
nmei@bcbl.eu
1f2da7d9fbaf2354d8c00fea11e387e58c256aaa
d03ce5c5c3750e60ba9baa958e5445b98ba14462
/user/views.py
f25749f7fb2516d57bb3384433e3d5e046bc0143
[]
no_license
alxayeed/covid-room-finder
dbd22ebb702bf588384d6fb8d917c29568cc22a6
3ff541d76e342d6bd0b3d7221577b06ec0806837
refs/heads/main
2023-03-30T12:33:57.152717
2021-02-21T13:08:00
2021-02-21T13:08:00
339,812,785
0
0
null
null
null
null
UTF-8
Python
false
false
1,407
py
from django.shortcuts import render, redirect from django.http import HttpResponse from .forms import RegisterForm from django.contrib.auth import login, logout, authenticate from django.contrib import messages def register_user(request): form = RegisterForm() if request.method == "POST": form = Regi...
[ "alxayeed@gmail.com" ]
alxayeed@gmail.com
82b94aa0ddd70df563d846434a596b315ad4d8a1
84341d15f4b8d13b09c7dabe2b7286705ee86b7b
/scripts/multi_rc/topk_evidence_self_training/roberta_predict_sentence3.0.py
e9e34a6953dcd9a10999bf35f331f6ab6d91b805
[]
no_license
UMP-Healthcare-AI/Self-Training-MRC
7a0ef0c52f0064cfc32a2bedb433608ed10328a7
0601158085bb11e454aee1ebaa987f5aa741ab3f
refs/heads/master
2022-12-01T17:46:28.463777
2020-08-14T01:56:25
2020-08-14T01:56:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,094
py
import subprocess import time import logging import os logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s', datefmt='%m/%d/%Y %H:%M:%S', level=logging.INFO) logger = logging.getLogger(__name__) def run_cmd(command: str): logger.info(command)...
[ "jiaofangkai@hotmail.com" ]
jiaofangkai@hotmail.com
9d1075dd4cf3c10e3855309c10cd54598f9bbd9e
8d0f35341ad14f1f1edd71481e5fa870a4cb6ed5
/setup.py
acbda8936e4d0aeefd6b89aa075f25c298c7c64f
[ "MIT" ]
permissive
gitter-badger/django-static-precompiler
f22b2414ef73c8ad0c0e448f1d821dfc73868ee4
aad008df68dc7194ed9d6e78ab4358f94e456894
refs/heads/master
2021-01-12T21:45:20.258776
2014-11-19T05:04:15
2014-11-19T05:04:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
from setuptools import setup, find_packages import os import sys def read(fname): path = os.path.join(os.path.dirname(__file__), fname) if sys.version < '3': return open(path).read() return open(path, encoding="utf-8").read() README = read('README.rst') CHANGES = read('CHANGES.rst') setup( ...
[ "andrey.fedoseev@gmail.com" ]
andrey.fedoseev@gmail.com
61c96eaafdcde160af8110b4322db04ba28832ed
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/1006.py
f920c1947a495d32a85e4a572c45898ba6ebdea5
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
import numpy as np from math import ceil, sqrt fin = open('C-small-attempt0.in') fout = open('out_small.txt', 'w') def isqrt(x): n = int(x) if n == 0: return 0 a, b = divmod(n.bit_length(), 2) x = 2**(a+b) while True: y = (x + n//x)//2 if y >= x: return x ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
63ef114161ba9d387165bf9cd0c4eee914e502f5
60e57860bc819d83cd628b5179ba7f4d655562b8
/implementation/lps/lps/tests.py
17794922910430e7844501e766a65b1be823652f
[]
no_license
Schwenger/TinBots
9a3075c9e84762f34e33f15970eaadc305eed003
ce7554f357b291b6ff7ae0214d4f8bbf5bd0c48e
refs/heads/master
2021-01-19T21:15:31.948534
2017-08-31T21:34:09
2017-08-31T21:34:09
63,550,617
0
0
null
null
null
null
UTF-8
Python
false
false
1,989
py
# -*- coding: utf-8 -*- # Copyright (C) 2016, Maximilian Köhl <mail@koehlma.de> # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License version 3 as published by # the Free Software Foundation. # # This program is distributed in the hope th...
[ "mail@koehlma.de" ]
mail@koehlma.de
960efe5c81f0c4d2490e1618d848cb089fb10f97
62e45255088abb536e9ea6fcbe497e83bad171a0
/ippython/multiplo.py
9dce2387b353d86c8dd7be1608c2d034bf585dc5
[]
no_license
jmery24/python
a24f562c8d893a97a5d9011e9283eba948b8b6dc
3e35ac9c9efbac4ff20374e1dfa75a7af6003ab9
refs/heads/master
2020-12-25T21:56:17.063767
2015-06-18T04:59:05
2015-06-18T04:59:05
36,337,473
0
0
null
2015-05-27T02:26:54
2015-05-27T02:26:54
null
UTF-8
Python
false
false
503
py
# -*- coding: utf-8 -*- """ Created on Fri Feb 22 07:18:42 2013 @author: daniel """ #programa:multiplo.py #calcula los multiplos de numero en el intervalo [numero, limite] #data input num = 1 repeticiones = int(raw_input('valor limite <entero positivo>: ')) multiplo = int(raw_input('multiplos del numero: ')) #procc...
[ "danmery@gmail.com" ]
danmery@gmail.com
f1d9996b93014b4210b992142021b15cb3c21578
16c8fdf291430475f40d578b0d64552eb64046e9
/colour/plotting/tm3018/tests/test_components.py
f11dce989d2eabcc845c3554a2ee35f1ac115482
[ "BSD-3-Clause" ]
permissive
nodefeet/colour
4c1bfed87ce173ff878bdf288fd9828bb68022e3
319dd5b1c45aef6983eff1830f918c1e593fb530
refs/heads/develop
2022-02-19T17:39:36.657993
2022-02-15T08:38:26
2022-02-15T08:38:26
460,456,444
0
0
BSD-3-Clause
2022-02-17T13:53:37
2022-02-17T13:53:36
null
UTF-8
Python
false
false
5,064
py
"""Defines the unit tests for the :mod:`colour.plotting.tm3018.components` module.""" from __future__ import annotations import unittest from matplotlib.pyplot import Axes, Figure from colour.colorimetry import SDS_ILLUMINANTS from colour.hints import cast from colour.quality import ( ColourQuality_Specification...
[ "thomas.mansencal@gmail.com" ]
thomas.mansencal@gmail.com
ca29d96325ee8f61ab5f0947f4388cd848582dd5
e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7
/flask_api/venv/lib/python3.7/site-packages/vsts/release/v4_1/models/task_input_definition_base.py
7d9e81d65f08fc44f1f9696cf00be3bf1a173c64
[]
no_license
u-blavins/secret_sasquatch_society
c36993c738ab29a6a4879bfbeb78a5803f4f2a57
0214eadcdfa9b40254e331a6617c50b422212f4c
refs/heads/master
2020-08-14T00:39:52.948272
2020-01-22T13:54:58
2020-01-22T13:54:58
215,058,646
1
0
null
null
null
null
UTF-8
Python
false
false
2,850
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
[ "usama.blavins1@gmail.com" ]
usama.blavins1@gmail.com
73a3eee3fd2e1f1a0057bd58a22f2e7a32c4130b
87aeb666b3e0d1e2d75fbb11c6e1bcc71402d098
/task_manager/taskapp/migrations/0001_initial.py
0a993da519f68d801dab37465e113bc760814c2b
[]
no_license
Alexey-Krapivnitsky/Task-Manager
25934aff3c56c442e2080da7d910705fbbe27f4c
62ee195bd79f86915e2c4dd5af9cc65797230f42
refs/heads/master
2022-12-17T13:27:53.660378
2020-10-01T19:23:54
2020-10-01T19:23:54
299,638,525
0
0
null
null
null
null
UTF-8
Python
false
false
1,174
py
# Generated by Django 3.1.1 on 2020-09-30 13:57 import datetime from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc class Migration(migrations.Migration): initial = True dependencies = [ ('authapp', '0003_auto_20200930_1857'), ] o...
[ "cronos1009@yandex.ru" ]
cronos1009@yandex.ru
6cccd938961ceaf9dc6a7234ea27deaebf7670bc
e1b52ce8238e7fe0d1c2cd8627535279edeb4bcb
/app/__init__.py
b65f106af4139090033d0b02ef36fab7a1dbcff2
[ "MIT" ]
permissive
nevooronni/Stackoverflow-lite-APIs
5cfb9048f56156c88f7f5c35fcba50b99b0d1111
eb0af8588628e174822be947b8a914ed64e97236
refs/heads/master
2020-04-14T12:22:21.658955
2019-01-02T15:28:23
2019-01-02T15:28:23
163,838,121
0
0
null
null
null
null
UTF-8
Python
false
false
620
py
"""creating app""" import os from flask import Flask from instance.config import app_config """ import the configurations from the .confifrom dotenv import load_dotenv, find_dotenv load_dotenv(find_dotenv()) #pass override=True to override current system environment variables g file which is in the instance fold...
[ "nevooronni@gmail.com" ]
nevooronni@gmail.com
7dc43320f08fd0538e450d05265783dd856dc117
a1d30d667cbf814db1809c31cf68ba75c01f819c
/Google/2. medium/362. Design Hit Counter.py
579742997805aaf7ccf5cd8362f9bcbc212660fb
[]
no_license
yemao616/summer18
adb5f0e04e6f1e1da6894b0b99a61da3c5cba8ee
8bb17099be02d997d554519be360ef4aa1c028e3
refs/heads/master
2021-06-02T04:32:07.703198
2020-01-09T17:45:29
2020-01-09T17:45:29
110,744,323
0
0
null
null
null
null
UTF-8
Python
false
false
2,159
py
# Design a hit counter which counts the number of hits received in the past 5 minutes. # Each function accepts a timestamp parameter (in seconds granularity) and you may assume that calls are being made to the system in chronological order (ie, the timestamp is monotonically increasing). You may assume that the earlie...
[ "ymao4@ncsu.edu" ]
ymao4@ncsu.edu
a447848b01fb067427ac2e26e86ee507529529fc
a81c07a5663d967c432a61d0b4a09de5187be87b
/build/android/pylib/base/environment_factory.py
4d3727444f43ce92292cd4e4ca2f5e68dedb9799
[ "BSD-3-Clause" ]
permissive
junxuezheng/chromium
c401dec07f19878501801c9e9205a703e8643031
381ce9d478b684e0df5d149f59350e3bc634dad3
refs/heads/master
2023-02-28T17:07:31.342118
2019-09-03T01:42:42
2019-09-03T01:42:42
205,967,014
2
0
BSD-3-Clause
2019-09-03T01:48:23
2019-09-03T01:48:23
null
UTF-8
Python
false
false
947
py
# Copyright 2014 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. from pylib import constants from pylib.local.device import local_device_environment from pylib.local.emulator import local_emulator_environment from pylib.lo...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
97a6be8339a60d63037f8b82f678e9d303761f4b
c9b1e04ba65ba3e0af2a8ae86b88187b72bcaa0b
/branches/Release0_70_Branch/tests/unittests/persistenceTests/HTMLWriterTest.py
84743b68f664018b2bfc3847f13b0d62eebaf424
[]
no_license
feitianyiren/TaskCoach
7762a89d5b521cfba0827323a9e8a91d1579810b
0b7427562074845ac771e59e24a750aa5b432589
refs/heads/master
2020-04-08T04:56:35.491490
2016-01-12T13:29:03
2016-01-12T13:29:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,514
py
''' Task Coach - Your friendly task manager Copyright (C) 2004-2008 Frank Niessink <frank@niessink.com> Task Coach is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opti...
[ "hieronymus_schweiz@yahoo.de" ]
hieronymus_schweiz@yahoo.de
4cf43299d54bb37595d33106ca7efa886f45fa1f
a9b67cdcdd09d90669e87ececc0830419ad999c6
/blog/urls.py
2f4b41b1bd42ea09787542f648536b9799b3d907
[]
no_license
ver0nika4ka/my-first-blog
c05d30d21900e8706200c9971307faaa603a6220
bf81939ca502ab5b7c5b4577b01ede1c518838d9
refs/heads/master
2021-06-25T18:25:24.703987
2021-01-05T06:59:36
2021-01-05T06:59:36
193,432,440
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
# Так мы импортировали функцию path Django и все views (представления) из приложения blog from django.urls import path from . import views urlpatterns = [ path('', views.post_list, name='post_list'), # Фрагмент post/<int:pk>/ определяет шаблон URL-адреса: # post/ значит, что после начала строки URL должен содержат...
[ "veranika.aizu@gmail.com" ]
veranika.aizu@gmail.com
f2c7c34ff3fe71ccce7318a2d04bdd2e37ca1372
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startCirq858.py
8d4b711a55f0b71384de14f529d3ccf647d1d1f6
[ "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
3,432
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=5 # total number=42 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
c5a07c81fbe718191d7e3692de37bdb34ffea009
7628bfc96a7248461d3f2071992d682c0ad18272
/test/test_runners.py
ec4a2e80525cd0e2c6011733b05cf1da14bac0ec
[ "Apache-2.0" ]
permissive
war3gu/tensorforce
d0c72b26364368d873b1e2717595718669b7fa2d
70d551f8f92b694aae51262663e77c25576ecfad
refs/heads/master
2020-12-11T14:51:21.916658
2020-01-13T20:43:25
2020-01-13T20:43:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,105
py
# Copyright 2018 Tensorforce Team. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
[ "alexkuhnle@t-online.de" ]
alexkuhnle@t-online.de
b2edd05a4a829eae2b86d8543f76dd6e0c7cea91
9d7f0f91e51083039013f792d6f5d0067a663844
/ventura-sanic/db.py
430ccc5732f0299e749ca7e7f4a3d27d869b9300
[]
no_license
ventura-open-source/non-blocking-service-example
88b98325cfe5db8af0155e8b4b7590c56d6f0884
d5bec25e986981004a198d74aecc11f32f70eff4
refs/heads/master
2020-03-22T05:51:07.927025
2018-07-03T14:24:20
2018-07-03T14:24:20
139,594,427
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
import logging import peewee_async # Setup mysql connection database = peewee_async.MySQLDatabase( 'ventura_laravel', user='root', password='root', host='localhost', port=3306, ) # No need for sync anymore! database.set_allow_sync(False) # Create async models manager objects = peewee_async.Manage...
[ "genesisdaft@gmail.com" ]
genesisdaft@gmail.com
3af3448c062fe48f3b47b009218c66d850913b87
f2604386f503a06de34f0e6c23993dd0d1ce093d
/wallet/urls.py
ac851ec7356c586163db22b20c9502ca89aeb8f0
[]
no_license
kicha-05/wallet
6c64ebbf2849d084b68ea13b60a6ac675a958c78
ae6af4479ab3b7211265c943ccb1791965b2fa66
refs/heads/master
2022-12-25T11:31:15.926443
2020-10-08T07:48:12
2020-10-08T07:48:12
302,228,970
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
from django.contrib import admin from django.urls import path from django.conf.urls import url from .views import * urlpatterns = [ path('init', InitializeAccount.as_view(), name='init'), path('wallet', WalletView.as_view(), name='wallet'), path('wallet/deposit', DepositWithdrawVirtualMoney.as_view(), name...
[ "krishna@gmail.com" ]
krishna@gmail.com
b6b415e6bf267ac3378d6b864303165d97c05cdc
3f48e3308674212408c3b6ca972eb4f793bf142b
/f0_data_process/chip_seq/final_chipseq/sicer_df/py1_write_run_sicer_df_slurm.py
d366ec6d7bdea0661c665daf34df7addf7f051d8
[]
no_license
zanglab/utx_code
8497840ace81e0337f92f04fafbb691f0ed24865
32fc7851207f650b3cc78974ab798f8606099e56
refs/heads/main
2023-06-28T17:38:33.231877
2021-07-27T01:31:00
2021-07-27T01:31:00
388,648,753
1
0
null
null
null
null
UTF-8
Python
false
false
2,039
py
import sys,argparse import os,glob import numpy as np import pandas as pd from scipy import stats import re,bisect slurm_dir = 'slurm_files' os.makedirs(slurm_dir,exist_ok=True) project_dir='/nv/vol190/zanglab/zw5j/since2019_projects/UTX_HaoJiang' outdir='sicer_out' sub_dirs=['re_1st_submission_H3K4me3_MLL4SC_tri...
[ "zhenjia.sdu@gmail.com" ]
zhenjia.sdu@gmail.com
a618ed18a38138e126c6e7cf13a613ff0eeac304
5f6425e9d83b57b864e48f227e1dc58356a555c0
/utils/palettes/archive/selenized_medium_0_4.py
94959c43f26c4b355583da48508d798782d438af
[ "MIT" ]
permissive
jan-warchol/selenized
b374fa7822f281b16aa8b52e34bd1e585db75904
df1c7f1f94f22e2c717f8224158f6f4097c5ecbe
refs/heads/master
2023-06-22T09:37:02.962677
2022-09-12T20:24:40
2022-09-12T20:24:40
45,570,283
663
58
MIT
2023-04-18T09:33:22
2015-11-04T22:00:52
Emacs Lisp
UTF-8
Python
false
false
590
py
name = 'Selenized medium v0.4 (adapted monotones)' palette = { "bg_0": "#154053", "fg_0": "#a8bcc3", "bg_1": "#245971", "red": "#fc5851", "green": "#78b93e", "yellow": "#d8b033", "blue": "#4e97f5", "magenta": "#f16dc5", "cyan": "#41c...
[ "jan.warchol@gmail.com" ]
jan.warchol@gmail.com
0ad20010a16169575984c8d5f5c526a6e6379811
7675abbb6a30fdb56cb534cbd198571f75cc926e
/dazubi_fan_site/dazubi_fan_site/settings.py
240dda22c91a32799aaaab32a9a20c13a4781f3d
[]
no_license
moreal/dazbee_fan_site
4b2077635118987eb2731b36030c47cd181cc25a
dfb0e02a25087917968be6f4ee54049e9cca1b07
refs/heads/master
2020-04-09T02:37:04.173566
2018-12-01T13:56:51
2018-12-01T13:56:51
159,947,801
0
0
null
null
null
null
UTF-8
Python
false
false
3,115
py
""" Django settings for dazubi_fan_site project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ impo...
[ "dev.moreal@gmail.com" ]
dev.moreal@gmail.com
445409926fa5283911011a77f745099c9cf58d53
99a310f6bb6c7a6c728f1b3ae78054487372042d
/aoc2017/day9.py
915cef5559e604d0f1001897d7c7e96a442ff7ed
[]
no_license
jepebe/aoc2018
46ce6b46479a0faf2c2970413af14a071dcfdb79
4bf91b99bec4b59529533ef70f24bf6496bada99
refs/heads/master
2023-01-11T16:44:42.125394
2023-01-06T06:27:14
2023-01-06T06:27:14
159,912,721
1
0
null
null
null
null
UTF-8
Python
false
false
1,412
py
def process(data): group_score = 0 garbage_count = 0 stack =[] garbage = False ignore = False for c in data: if ignore: ignore = False continue if c == '{' and not garbage: stack.append(len(stack) + 1) elif c == '}' and not garbage: ...
[ "jepebe@users.noreply.github.com" ]
jepebe@users.noreply.github.com
34974698db983346e41e782fa77394e2c568893b
b4874cbd7299492277ad28441bad05e6348307f2
/dummies/zerg/zerg_random.py
b950007a6b9104c741a3ee370c8d3c20e56d79a4
[ "MIT" ]
permissive
MadManSC2/sharpy-sc2
7d405578413c7a8f8fc1e4030ad719d7fe5df10a
13950357df2db58033daab24f076e3ae83f0b2a8
refs/heads/master
2021-01-05T03:38:58.038563
2020-03-07T20:35:24
2020-03-07T20:35:24
240,865,466
1
0
MIT
2020-02-16T09:38:05
2020-02-16T09:38:04
null
UTF-8
Python
false
false
400
py
import random val = random.randint(0, 5) if val == 0: from .lings import LadderBot elif val == 1: from .macro_roach import LadderBot elif val == 2: from .macro_zerg_v2 import LadderBot elif val == 3: from .mutalisk import LadderBot elif val == 4: from .roach_hydra import LadderBot elif val == 5: ...
[ "aki.vanttinen@sedgestudios.com" ]
aki.vanttinen@sedgestudios.com
8c4eecccb5304b7457c69b24b8d130d4c73a3c7f
1680edad321979cdf9f655ace5533f67c4ae6589
/client_support/client_support/doctype/email/email.py
8ab950a133bf6e6b679ac6897b073e95300c934b
[]
no_license
ssindham/Client_Support
18a28bd6f55807b1c07ff233a839a2207f039874
1fc59526f27ead426f5ce9ac8f582e5441b05410
refs/heads/master
2021-06-18T11:27:33.218878
2017-06-26T12:59:42
2017-06-26T12:59:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
# -*- coding: utf-8 -*- # Copyright (c) 2015, Makarand Bauskar and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class email(Document): pass
[ "sagarshiragawakar@gmail.com" ]
sagarshiragawakar@gmail.com
b4cda9c4c5944bb55bd00d0c587319d667ec5e35
85fa329cadd8edb7aa8ad32d573a1da91445c676
/RSVP_MVPA/MVPA_multi_methods/accs_multi_classifiers/do_MVPA_alltime_eeg.py
610f5f953b3b7c06808c11dcda1f379a0783158c
[]
no_license
listenzcc/RSVP_scripts
05aaed6d1aded2c3b1851ece61f52442c8a9eba8
e01a60c980c2bf6a002f2673a5b8984d3ad70f6e
refs/heads/master
2020-05-02T19:33:43.838999
2019-07-03T01:13:25
2019-07-03T01:13:25
178,161,875
0
0
null
null
null
null
UTF-8
Python
false
false
7,947
py
# coding: utf-8 ''' This script is to do MVPA on MEG RSVP dataset ''' import matplotlib.pyplot as plt import mne import numpy as np import os from sklearn import svm from sklearn.linear_model import LogisticRegression from sklearn.decomposition import PCA from sklearn.metrics import classification_report from sklearn....
[ "listenzcc@mail.bnu.edu.cn" ]
listenzcc@mail.bnu.edu.cn
e2aa1c6699efd5f2501f3a550014dce289e3e328
445b158bd10c79e19a679264745add3b3353dea3
/linux/bin/django-admin
c97656a5f6288659744de8ee0c98cf01c2083159
[]
no_license
Carlosdher/topicos_especiasi
27e523830408b49e852c8c03fc4d0c6ecb14f5e9
86df42ea4b514fe9159d83a44ed9cd7a9544ca96
refs/heads/master
2020-03-30T18:48:38.385266
2018-10-04T04:57:30
2018-10-04T04:57:30
151,515,273
0
0
null
null
null
null
UTF-8
Python
false
false
317
#!/home/ifpb/topicos/AndrmedAnime/andromedanimes/linux/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "carlosabc436@gmail.com" ]
carlosabc436@gmail.com
a2f9ef70d3a18cdda815fb0235790cb046d2e584
4a0e3ffff54be178b377a4c18fe0ced2d44b7be6
/tests/test_forbidden_ops.py
455eb958543a82e631cf21bd2396fe317e29d2a1
[]
no_license
WinVector/data_algebra
608371904c0fcc99ffab7e0fe57c49dc75fd6b21
1e96817919ae891ba108d8d7471b2200b2528271
refs/heads/main
2023-04-13T20:11:18.682084
2023-04-10T14:09:41
2023-04-10T14:09:41
203,080,133
113
5
null
null
null
null
UTF-8
Python
false
false
1,729
py
import pytest import data_algebra from data_algebra.data_ops import * import lark.exceptions def test_forbidden_ops_raises(): with pytest.raises(lark.exceptions.UnexpectedToken): TableDescription(table_name="d", column_names=["x", "y"]).extend( {"z": "x && y"} ) with py...
[ "jmount@win-vector.com" ]
jmount@win-vector.com
ae917e55d2a596415e27aed0be505c99621cfeff
1fe4f9eb9b1d756ad17e1ff6585e8ee7af23903c
/saleor/dashboard/brand/filters.py
61af9c9da3dd49b1b7a5fa75b7bb664b1a2508f7
[ "BSD-3-Clause" ]
permissive
Chaoslecion123/Diver
ab762e7e6c8d235fdb89f6c958488cd9b7667fdf
8c5c493701422eada49cbf95b0b0add08f1ea561
refs/heads/master
2022-02-23T10:43:03.946299
2019-10-19T23:39:47
2019-10-19T23:39:47
216,283,489
0
0
null
null
null
null
UTF-8
Python
false
false
1,411
py
from django import forms from django.utils.translation import npgettext, pgettext_lazy from django_filters import CharFilter, ChoiceFilter, OrderingFilter from ...core.filters import SortedFilterSet from ...brand.models import Brand SORT_BY_FIELDS = { 'name': pgettext_lazy('Brand list sorting option', 'name')} B...
[ "chaoslecion71@gmail.com" ]
chaoslecion71@gmail.com
4de65748c9746a5924fdb0a8c063ac3daef292d1
aa0d55b2aa22da0af6545ce0da46d04dbdc3bffc
/cpgames/core/games/pingpong/modules/sprites.py
5f00745d148bc0bb48b7b36a20e715cd42b66d90
[ "Apache-2.0" ]
permissive
cyanghsieh/Games
19fdad463cf12cbd503a399ed2700c0dae615714
07767df6d181b9eae89ce0a8b883d19afb450cc1
refs/heads/master
2023-05-11T11:11:09.777569
2023-02-22T14:28:18
2023-02-22T14:28:18
283,113,319
0
0
MIT
2020-07-28T05:49:13
2020-07-28T05:49:12
null
UTF-8
Python
false
false
3,664
py
''' Function: 一些必要的精灵类 Author: Charles 微信公众号: Charles的皮卡丘 ''' import random import pygame from .utils import loadImage '''乒乓球''' class Ball(pygame.sprite.Sprite): def __init__(self, imgpath, cfg, **kwargs): pygame.sprite.Sprite.__init__(self) self.cfg = cfg self.image = loadIma...
[ "1159254961@qq.com" ]
1159254961@qq.com
3a8bab67ec8ceee72f60fd6eb8163fcbd1d325f5
77717d0024c8597fec83600259ea5547abbc183a
/demo/image_demo.py
4a35a75b5f67f853a69af3ad51dc8550ac08a6b6
[ "Apache-2.0" ]
permissive
fengyouliang/wheat_detection
0a090ef5eda7f2c5463996f4795f9ce06dd04050
d056123426a1260c29b486cbb8e44a88a0a3c5bc
refs/heads/master
2022-11-17T15:09:29.113493
2020-07-18T13:47:34
2020-07-18T13:47:34
276,532,878
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
from argparse import ArgumentParser from mmdet.apis import inference_detector, init_detector, show_result_pyplot def main(): parser = ArgumentParser() parser.add_argument('img', help='Image file') parser.add_argument('config', help='Config file') parser.add_argument('checkpoint', help='Check...
[ "1654388696@qq.com" ]
1654388696@qq.com
cbab46f2372b7b4738133a09e2c904eba5e527ca
2caf6885511af24443e22aaa43cd679d694f6f80
/note/download_note/first_month/day15/my_project/skill_system/skill_deployer.py
0ebb3c60b4ac54c50d95e2cf3c952ee6d6af1563
[]
no_license
nandadao/Python_note
7f9ba54a73af05c935b4f7e24cacb728859a6c69
abddfc2e9a1704c88867cff1898c9251f59d4fb5
refs/heads/master
2020-11-25T18:29:50.607670
2019-12-19T01:28:02
2019-12-19T01:28:02
228,793,207
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
# 导入模块成功的唯一条件: # sys.path + 导入路径 可以正确定位模块 import sys sys.path.append('/home/tarena/month01/day15/my_project') print(sys.path) from common.list_helper import ListHelper class SkillDeployer: def generate_skill(self): print("SkillDeployer -- generate_skill") ListHelper.fun01()
[ "1361335953@qq.com" ]
1361335953@qq.com
49d39d44fc161e989c2e466a7903314ea706eff8
fab7b6e422b74424fb59398635f74faca9ff5a58
/waimak_extended_boundry/model_and_NSMC_build/pumping uncertainty.py
402dbd2253b25d06ce083a921ee8614cb69809c8
[]
no_license
hansonmcoombs/Waimakariri-Model-Ashley-to-Selwyn
c7a56a2ebd0d421c9679cb4a16ae319dfb2041b1
c96c2663b010975ec08d42840fbc7970f3c2b085
refs/heads/master
2023-05-29T10:57:33.916912
2020-04-23T21:32:21
2020-04-23T21:32:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,168
py
# -*- coding: utf-8 -*- """ Author: matth Date Created: 11/08/2017 3:15 PM """ from __future__ import division import numpy as np import pandas as pd from core.ecan_io import rd_sql, sql_db mike = pd.read_hdf(r"P:\Groundwater\Waimakariri\Groundwater\Numerical GW model\supporting_data_for_scripts\ex_bd_va_sdp\m_ex_bd_...
[ "hansonmcoombs@gmail.com" ]
hansonmcoombs@gmail.com
cabba0c30aedd1e6ddf910614a74a65d4b90f2ce
7066555f4c2ff9b405754d2e793b97bf04b6ab98
/data_structure/arrays_and_strings/283_move_zeroes.py
99d522304d65fe65ab51f1bbd92f5af51da2a6ee
[]
no_license
yangtao0304/hands-on-programming-exercise
c0d0fe324ffaf73c7b4c45aba721a245a8cc9ce2
cc7740026c3774be21ab924b99ae7596ef20d0e4
refs/heads/master
2020-09-11T02:05:51.305196
2020-03-19T03:45:53
2020-03-19T03:45:53
221,904,831
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
class Solution(object): def move_zeroes(self, nums): """ :type nums: List[int] :rtype: None Do not return anything, modify nums in-place instead. """ i = 0 for idx in range(len(nums)): if nums[idx] != 0: nums[i] = nums[idx] ...
[ "im.yangtao0304@gmail.com" ]
im.yangtao0304@gmail.com
bb1b2964504bbee76a34c09f71ff3d2ff2ebd505
c175c4e3560c6c66ec2b0c4b439cd586878b44a5
/prplatform/submissions/tests/test_models.py
3c2be9e4a42d51767fb62c1b5615a045a1c8072f
[ "MIT" ]
permissive
piehei/prplatform
fd30e2e388597583b9ef0e59462ea9643f7244ba
f3248b66019f207bb06a4681a62057e175408b3e
refs/heads/master
2020-03-09T17:09:47.893706
2019-09-18T15:24:58
2019-09-18T15:24:58
128,902,940
3
0
null
null
null
null
UTF-8
Python
false
false
2,242
py
from django.db import OperationalError from django.test import TestCase from prplatform.exercises.models import ( SubmissionExercise, ReviewExercise, ) from prplatform.submissions.models import ( OriginalSubmission, ReviewSubmission, ) from prplatform.submissions.reviewlock_mode...
[ "ph@extreg.com" ]
ph@extreg.com
14b52891220f3fee7d733147a3f39618853e24d8
134178ca3575d30bc3314b2182cd1fc26ed0385f
/day2/ifs.py
c0b6b70bcd96f1bfe59ddbf964559e8cbef2a819
[]
no_license
mpdevilleres/python-study-2021
c19d50138158ccc6c18e96c5831546ce1ec03a0d
36edc4711e0a39bc87eb84dd43b6ba058a726b20
refs/heads/master
2023-06-26T19:41:04.472116
2021-07-16T10:39:26
2021-07-16T10:39:26
378,050,476
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
# # defining if statements # # if (condition1): # pass # elif (condition2): # pass # else: # pass # # # example # if count == 1: # print('count is not 0') n = int(input("input a number: ")) if n % 2 == 0: print(n, 'is divisible by 2') elif n % 3 == 0: print(n, 'is divisible by 3') elif n % 5...
[ "mpdevilleres@gmail.com" ]
mpdevilleres@gmail.com
61689e089f90433880de471c2b687b9a35801ef4
cd8b429ba73017bd20d60b20e4d6dcf05ba44691
/profiles/migrations/0003_profile_location.py
aef6ac69739be6cf62ea6bfa014aece7716dbe64
[]
no_license
henrymbuguak/E-commerce-Site-Created-Using-Django-1.11.1
61d45f1f6861b9b8d308519660f2719d5d0e7b4e
327f6faa7fe8d13e9dad913b5b9f90884d77fbdd
refs/heads/master
2021-11-29T00:28:02.300796
2021-11-26T16:48:20
2021-11-26T16:48:20
93,396,154
16
17
null
2021-11-26T16:48:21
2017-06-05T11:16:58
Python
UTF-8
Python
false
false
480
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-03 18:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0002_profile_description'), ] operations = [ migrations.AddFiel...
[ "henrymbuguak@gmail.com" ]
henrymbuguak@gmail.com
832eba339e037d20014f155348e0ebee2b4ace38
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_1/dngmon002/question1.py
440db247854a75f0996c65246e23cce55cd49087
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
# Fancy art output # Monwabisi Dingane # 25 February 2014 print(" ____ ____ ___ ____ _____ _ _ _ _ _ ") print(" / ___/ ___|_ _/ ___|| ___| | | | \ | | |") print("| | \___ \| |\___ \| |_ | | | | \| | |") print("| |___ ___) | | ___) | _| | |_| | |\ |_|") print(" \____|____/___|____/|_| \___/|_| \...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
83745ed9a8e0c07cda36512d74784643936d8f65
2fd087fbc5faf43940153693823969df6c8ec665
/pyc_decrypted/latest/pymac/dlls/FSEvent.py
6fdf9e3df3d8a50f53eb9769bec23e32851ce298
[]
no_license
mickeystone/DropBoxLibrarySRC
ed132bbffda7f47df172056845e5f8f6c07fb5de
2e4a151caa88b48653f31a22cb207fff851b75f8
refs/heads/master
2021-05-27T05:02:30.255399
2013-08-27T13:16:55
2013-08-27T13:16:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,564
py
#Embedded file name: pymac/dlls/FSEvent.py from __future__ import absolute_import from ctypes import POINTER, c_ubyte from ..lazydll import FakeDLL from ..lazyframework import LazyFramework from ..types import CFAllocatorRef, CFArrayRef, CFUUIDRef, CFRunLoopRef, CFStringRef, CFTimeInterval, dev_t, FSEventStreamCallback...
[ "bizonix@me.com" ]
bizonix@me.com
bc90df29176cb40490d288bb8254b2327d3d0992
dd770e697daddab20e09fbf8ce199c97ee540c37
/bigtop-packages/src/charm/zookeeper/layer-zookeeper/actions/smoke-test
64814629a162acdf459dab3899fc8a1978368d94
[ "FreeBSD-DOC", "MIT", "DOC", "Apache-2.0" ]
permissive
PKConsul/bigtop
0e7b5133be17a2093c0d5279b000c60b67072a16
2f8311b184bf0c5d25756b098895e43b1dbc3c2e
refs/heads/master
2021-01-20T02:08:29.012667
2017-04-22T17:44:30
2017-04-23T06:27:13
89,379,381
1
0
null
2017-04-25T15:53:29
2017-04-25T15:53:29
null
UTF-8
Python
false
false
1,526
#!/usr/bin/env python3 # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Lic...
[ "kevin.monroe@canonical.com" ]
kevin.monroe@canonical.com
76532f0bfd74859dc88b4d5b0f4c9a449a6a84e2
52b5773617a1b972a905de4d692540d26ff74926
/.history/stacks_20200703102749.py
12f8182c2862178934b96e70b251a7b34a1c4479
[]
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
413
py
# stacks - where the last item to be added is the first to be reversed # reversing an array using stacks # def stacks(arr): # arr.append(6) # arr.append(7) # newArr = [] # for i in range(len(arr)): # newArr.append(arr.pop()) # print(newArr) # stacks([3,4,5]) # ======================...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
8868615a32d3f22a1d4f5f08ac876bc011a65f74
18c9109e3e6dfea227b80e0a8ebc5e92cfa117d3
/tests/unit/shared/test_containers.py
38a022c659f4139352e210f735651c518af4df3e
[ "Apache-2.0" ]
permissive
Xilinx/pyxir
9b0179da550471d251acd95c26e9bfe6f54502dd
8ce8a385a155f3ffdd84ce61501ca870cfb4a905
refs/heads/master
2023-09-05T12:07:59.732179
2022-03-31T19:24:48
2022-03-31T19:24:48
265,640,658
34
23
Apache-2.0
2022-05-29T08:05:58
2020-05-20T17:36:17
Python
UTF-8
Python
false
false
2,077
py
# Copyright 2020 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "jornt@xilinx.com" ]
jornt@xilinx.com
69f15ffcdc89289d39337e9f2cbdc77eeb439882
3e1fcf34eae508a3f3d4668edfb334069a88db3d
/tests/test_case_info.py
f9f4bb37beb8939a3a6647694a29a2215398d96f
[ "ISC" ]
permissive
mscarey/court-scraper
26d32cb7354b05bb5d5d27a55bf4042e5dde1a4d
e29135331526a11aa5eb0445a9223fc3f7630895
refs/heads/main
2023-07-14T20:23:33.488766
2020-08-31T14:02:19
2020-08-31T14:02:19
384,977,976
0
0
ISC
2021-07-11T15:04:57
2021-07-11T15:04:57
null
UTF-8
Python
false
false
788
py
from court_scraper.case_info import CaseInfo def test_attribute_mapping(): mapping = { 'case_num': 'number', } data = { 'foo': 'bar', 'case_num': '1' } CaseInfo._map = mapping ci = CaseInfo(data) assert hasattr(ci, 'case_num') == False assert ci.number == '1' assert ci.foo == 'bar' def t...
[ "zstumgoren@gmail.com" ]
zstumgoren@gmail.com
95ef73ae86b57acc18a1491c332ea73babf5daf3
b924079a344e718f1de3dccdae8064c8c24be373
/quantum/service.py
48ef432e2ae732b5fea5389b6ee75bad647545e8
[ "Apache-2.0" ]
permissive
ruijie/quantum
b24a14636a00c2363e1f2f365f41b58f6a5f1c07
b63a721785801a3b6f0aeb10bb2eb49b76323496
refs/heads/master
2021-01-20T05:08:35.704182
2012-11-12T08:33:23
2012-11-12T08:33:23
6,650,142
2
0
null
null
null
null
UTF-8
Python
false
false
2,876
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Nicira Networks, Inc # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apach...
[ "root@vm1.net" ]
root@vm1.net
1b063a5d5a6f4416bf8b1ac6fbcf2c18198492dd
f6c62c253a49678e368d074302ab0358190d2f05
/CrossMgrCamera/ScaledImage.py
50cd5f5111eb00c9f3dcb2a2221972b2522f4fb1
[]
no_license
Adefx/CrossMgr
4ab0563972dfb8de173dae1542b0c322aef7ab20
ad803339c81994a784426164c20215a67fdbaba1
refs/heads/master
2021-01-17T08:24:52.641643
2017-02-24T14:05:50
2017-02-24T14:05:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,260
py
import wx contrastColour = wx.Colour( 255, 130, 0 ) def RescaleImage( image, width, height ): wImage = image.GetWidth() hImage = image.GetHeight() ratio = min( float(width) / float(wImage), float(height) / float(hImage) ) return image.Copy().Rescale( int(wImage*ratio), int(hImage*ratio), wx.IMAGE_QUALITY_NORMAL )...
[ "edward.sitarski@gmail.com" ]
edward.sitarski@gmail.com
ac9076f960b12064af864a6c2ebfe3ba357e8c2d
25dda94672497e3287a7403e283fb279ad171b79
/SW Expert Academy/2806. N-Queen.py
b2fd14ecd8a8c0c0a85200aacc0298fd3c6d1edc
[]
no_license
woorud/Algorithm
c94b844e8c96a446c5fdee5c0abb159bfee384d7
f5b8e3cf0aea7fc4400e6f5bb0c1531fad93e541
refs/heads/master
2023-02-23T13:53:28.645036
2021-01-29T12:24:23
2021-01-29T12:24:23
230,908,288
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
def diagnol(idx, c): # 대각선 위치 확인 for i in range(idx): if idx-i == abs(c-map[i]): # 행 - 열의 절대값이 같으면 대각선에 위치 return True return False def dfs(idx): if idx == N: global cnt cnt += 1 return for i in range(N): if visited[i]: continue if...
[ "woorud96@gmail.com" ]
woorud96@gmail.com
d2ac1e03d5df1efcebfca1377db95f6e07600de8
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
/eXe/rev2283-2366/left-trunk-2366/twisted/test/myrebuilder2.py
9eb92e11450989004c198b1d66a4b7c045cba6d0
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
joliebig/featurehouse_fstmerge_examples
af1b963537839d13e834f829cf51f8ad5e6ffe76
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
refs/heads/master
2016-09-05T10:24:50.974902
2013-03-28T16:28:47
2013-03-28T16:28:47
9,080,611
3
2
null
null
null
null
UTF-8
Python
false
false
216
py
class A: def a(self): return 'b' try: object except NameError: pass else: class B(A, object): def b(self): return 'c' class Inherit(A): def a(self): return 'd'
[ "joliebig@fim.uni-passau.de" ]
joliebig@fim.uni-passau.de
9d49c884c0df31778961a4fde18b09ec0e3aac9d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02420/s842100220.py
389376fb975d7637a465bc9f05a0d09e6c60ebbb
[]
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
169
py
while True: first = input().rstrip() if first == '-': break m = int(input()) for _ in range(m): h = int(input()) first = first[h:] + first[0:h] print(first)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1a08b0f2979c899b504f8fc87218e7d979d9d652
8255dcf7689c20283b5e75a452139e553b34ddf3
/app/views/dashboard/media/photos.py
ae8b16add3758cab891abe9a8780cbfb5dd38862
[ "MIT" ]
permissive
Wern-rm/raton.by
09871eb4da628ff7b0d0b4415a150cf6c12c3e5a
68f862f2bc0551bf2327e9d6352c0cde93f45301
refs/heads/main
2023-05-06T02:26:58.980779
2021-05-25T14:09:47
2021-05-25T14:09:47
317,119,285
0
1
null
null
null
null
UTF-8
Python
false
false
1,815
py
from flask import render_template, redirect, url_for, request, current_app from flask_login import login_required from app import db, logger from app.controllers.dashboard_controller import dashboard_controller from app.forms.dashboard_media import MediaPhotos from app.models.photo_catalogs import PhotoCatalogs from a...
[ "devwern@gmail.com" ]
devwern@gmail.com
5911126de8a3316316c55a211087dfce6aca418a
13d222bc3332378d433835914da26ed16b583c8b
/src/pemjh/challenge39/main.py
8f4884cd82bb3bbb2d75381260a80f02e168258f
[]
no_license
mattjhussey/pemjh
c27a09bab09cd2ade31dc23fffac07374bea9366
2ebb0a525d2d1c0ee28e83fdc2638c2bec97ac99
refs/heads/master
2023-04-16T03:08:59.390698
2023-04-08T10:54:00
2023-04-08T10:54:00
204,912,926
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
""" Challenge039 """ def number_of_perimeters(length): """ >>> number_of_perimeters(120) 3 """ count = 0 # c > b >= a # a + b > c # a + b + c = n # n = 100 # 1 <= a <= 33 # a <= b <= (n - a) / 2 + a # b <= c <= n - a - b limit = length // 3 ...
[ "matthew.hussey@googlemail.com" ]
matthew.hussey@googlemail.com
5bb3b06fa5b6ac7552d33eaa640de020e126f6c3
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_hampshire.py
46f4aec748d11c63eb044ddd89f4c44dd82194b4
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
#calss header class _HAMPSHIRE(): def __init__(self,): self.name = "HAMPSHIRE" self.definitions = [u'a county (= area with its own local government) in southern England'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], ob...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
94731e2c76a433376aed579f28bc5fc10c71f7c6
7e627a6f120f5e668d09f8b362c76f2592430a92
/dictionaria/assets.py
de3831bff39e3ef48f68a6fa44076febf86ba784
[ "Apache-2.0" ]
permissive
LimorNaaman/dictionaria
a541bb9d812d8f4b5fb340b9525f2d136d28a40f
9f8a5139af99eb4ae1af9ed0b340120c486cf112
refs/heads/master
2020-03-15T12:05:25.162179
2018-06-05T18:01:49
2018-06-05T18:01:49
132,136,322
0
0
Apache-2.0
2018-06-05T18:01:50
2018-05-04T12:16:53
Mako
UTF-8
Python
false
false
282
py
from clld.web.assets import environment from clldutils.path import Path import dictionaria environment.append_path( Path(dictionaria.__file__).parent.joinpath('static').as_posix(), url='/dictionaria:static/') environment.load_path = list(reversed(environment.load_path))
[ "xrotwang@googlemail.com" ]
xrotwang@googlemail.com
06e1d46135ac73c4d98acecedfbc42f6b36f52fd
892dd32ee0be7135cd33c875b06dcc66307dcc99
/automation/MPTS/apikey_set_delegatedAdmin.py
ece407e17d0b344e8ac87658a5b870a8be88ba74
[]
no_license
cloudbytestorage/devops
6d21ed0afd752bdde8cefa448d4433b435493ffa
b18193b08ba3d6538277ba48253c29d6a96b0b4a
refs/heads/master
2020-05-29T08:48:34.489204
2018-01-03T09:28:53
2018-01-03T09:28:53
68,889,307
4
8
null
2017-11-30T08:11:39
2016-09-22T05:53:44
Python
UTF-8
Python
false
false
3,694
py
import json import requests import md5 import fileinput import sys import time from cbrequest import sendrequest, filesave, timetrack, queryAsyncJobResult, configFile, configFileName config = configFile(sys.argv); configfilename = configFileName(sys.argv); stdurl = 'https://%s/client/api?apikey=%s&response=%s&' %(conf...
[ "karthik.s@cloudbyte.com" ]
karthik.s@cloudbyte.com
d9d31ca5bdaefea63563a4acb77cd20e1e91a9a6
3b5f28ed1505c68f94ec1df496fe061d110294ce
/lixian_alias.py
fa09dd28ac832bbfe0362309b4481423e064db57
[ "MIT" ]
permissive
yuanlizbyy/xunlei-lixian
089d388fbf4023bfae217906268c19dde43528e1
fe96ee19c1af8a268dc39818a5e8d33ff71e50ee
refs/heads/master
2021-01-17T21:48:13.932068
2012-12-10T05:35:43
2012-12-10T05:35:43
7,854,959
1
0
null
null
null
null
UTF-8
Python
false
false
213
py
def get_aliases(): return {'d': 'download', 'l': 'list', 'a': 'add', 'x': 'delete'} def get_alias(a): aliases = get_aliases() if a in aliases: return aliases[a] def to_alias(a): return get_alias(a) or a
[ "iambus@gmail.com" ]
iambus@gmail.com
38394182dc771084f43996ec5c98459435358d6b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_terse.py
6f23ba45e2ed3a286c756f26ee23e7427c152b34
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
#calss header class _TERSE(): def __init__(self,): self.name = "TERSE" self.definitions = [u'using few words, sometimes in a way that seems rude or unfriendly: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): s...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
cd521274e84ead7de41a90a16c88da24457be533
2cdd957f6cbf326ea902160011cb4f496e037bf9
/python_oops/prk2.py
1ae8c2a8d79c5f80d9275cabe183ae4f7ca24d16
[]
no_license
Nitesh101/thundersoft
81511c5672e8cb61055818b59fd216b26a784b1e
aa5cef1cfeb8a00d438a5280dff231bda494252d
refs/heads/master
2020-09-24T20:56:53.655269
2019-12-04T10:43:23
2019-12-04T10:43:23
225,841,374
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
class parent(): def first(self): print("first function") class child(parent): def second(self): print("second functtion") f = child() f.first() f.second()
[ "m.veeranitesh@gmail.com" ]
m.veeranitesh@gmail.com
008181a3ff8d888d84ca86e89c8bb777fa600932
afc677459e46635ceffccf60d1daf50e62694557
/ACME/math/randrotm.py
4c23dd04c57218e5324cda86a0211924591e4879
[ "MIT" ]
permissive
mauriziokovacic/ACME
056b06da4bf66d89087fcfcbe0fd0a2e255d09f3
2615b66dd4addfd5c03d9d91a24c7da414294308
refs/heads/master
2020-05-23T23:40:06.667416
2020-01-10T14:42:01
2020-01-10T14:42:01
186,997,977
3
1
null
null
null
null
UTF-8
Python
false
false
514
py
from .constant import * from .eul2rotm import * def randrotm(n=1, device='cuda:0'): """ Returns n randorm rotation matrices Parameters ---------- n : int (optional) the number of rotation matrices to generate (default is 1) device : str (optional) the device to store the tenso...
[ "maurizio.kovacic@gmail.com" ]
maurizio.kovacic@gmail.com
873cbdcd0a29dfe7fca8f80e22b8dad16471b2fb
11f7add72635ad985b3e98fd77e9426e8c74ab08
/google-api-python-client-1.0beta7/samples/adsense/sample_utils.py
e4463e584deb6cc3a870ce678814f5b070beb7f1
[]
no_license
harshdarji/python
afa6b11338504567ece8bb1e78e841d13716ff14
8bad854304f423264b7b0724b87c7cd7de748cd6
refs/heads/master
2020-12-31T01:48:04.439466
2012-09-13T09:22:58
2012-09-13T09:22:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,811
py
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "jeromecukier@gmail.com" ]
jeromecukier@gmail.com
eed9a66ad4a6c595e1640777cc94f4b3abebc576
25040bd4e02ff9e4fbafffee0c6df158a62f0d31
/www/htdocs/wt/lapnw/data/item_20_3.tmpl.py
28c4804d0e6461b17d8ba3b9ace7498eb496d3a5
[]
no_license
erochest/atlas
107a14e715a058d7add1b45922b0f8d03bd2afef
ea66b80c449e5b1141e5eddc4a5995d27c2a94ee
refs/heads/master
2021-05-16T00:45:47.585627
2017-10-09T10:12:03
2017-10-09T10:12:03
104,338,364
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from lap.web.templates import GlobalTemplate, SubtemplateCode class main(GlobalTemplate): title = 'Page.Item: 20.3' project = 'lapnw' class page(SubtemplateCode): pass
[ "eric@eric-desktop" ]
eric@eric-desktop
f626569e98ae081d24c8713a307a06dba8355c47
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/surface/netapp/volumes/snapshots/describe.py
bbd36f4ef5454bc19ac3d530aa4c3c5ee430b40d
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
2,651
py
# -*- coding: utf-8 -*- # # Copyright 2022 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
1f258b67de069bd06008aaeaf03c969cf81ea192
9bdc868dbc3910ae72a05ab66cf53d30dffab2a8
/test/functional/p2p_zpos_fakestake.py
b572c1e97eb8fd15a6ab5dbf088628530f98b212
[ "MIT" ]
permissive
YEPCOIN/Yep-Core
6aa8a3750e8496509501b7ff4d663a2681854c96
541ada7485b28abe1429c400835ce228ca9a6903
refs/heads/master
2020-07-03T04:44:44.361866
2020-05-06T19:45:05
2020-05-06T19:45:05
201,787,182
0
0
null
null
null
null
UTF-8
Python
false
false
4,016
py
#!/usr/bin/env python3 # Copyright (c) 2019 The Yep Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Covers the scenario of a zPoS block where the coinstake input is a zerocoin spend of an already spent coin. ''...
[ "ultrapoolcom@gmail.com" ]
ultrapoolcom@gmail.com
a3747ed815403f95d7732066115c2c6a00eb89b8
17079988dedef6f830633a7a54b181355231fe3e
/Car/Car3.py
db4c58f81a811a3cd44229bac7dcc8e68dec6f07
[]
no_license
sum008/python-backup
cdf6eaff60d882c36fe86b47ad311955d5869b02
729fbe2a5220941f9ba085c693c871592a529da8
refs/heads/master
2022-12-12T21:21:48.259680
2020-09-12T15:36:05
2020-09-12T15:36:05
285,461,845
0
0
null
null
null
null
UTF-8
Python
false
false
2,812
py
import pygame as p import vector_ import math p.init() width=600 height=600 display=p.display.set_mode((width,height)) image=p.image.load("car.png") run=True velocity=vector_.vector_functions() x=200 y=200 l=0 position=vector_.vector_functions() position.create(x, y) velocity.set_length(l) pos...
[ "noreply@github.com" ]
sum008.noreply@github.com
ac56f5e8e9874e1a72c9f0a01d547345569ccffd
2c1a2724d4e1edfd99597ef700624650de7ed5b6
/amazon_cells_labelled.py
a79c25b69e01af09a06da35634be9b2c0c26803b
[]
no_license
hellosandeep1999/Machine_Learning
d91dd3b2930fef69cc1c6b6409b6591c4b8ca2e7
20b6296009c2a7844ad8d06d3e43b53b30a4b450
refs/heads/master
2022-10-11T17:52:50.610155
2020-06-08T02:53:02
2020-06-08T02:53:02
257,350,154
0
0
null
null
null
null
UTF-8
Python
false
false
2,762
py
# -*- coding: utf-8 -*- """ Created on Tue May 12 18:07:17 2020 @author: user """ """ Q1. Code Challegene (NLP) Dataset: amazon_cells_labelled.txt The Data has sentences from Amazon Reviews Each line in Data Set is tagged positive or negative Create a Machine learning model using Natural Language Processing ...
[ "sandeepjain20178@gmail.com" ]
sandeepjain20178@gmail.com
1d26a049c57d17eed0c9ca0b3efec122a762a23c
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/apimanagement/v20201201/get_api_policy.py
6924530cfd3623114e7744c89265ceeb2de1896e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,113
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
7800d2c0d0a64a5bc8c602666596e3007524a6ca
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/3905.py
40351dcbf8a07ac6656283972fb4be0fa055fb3c
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
#!/usr/local/bin/python import sys def flip(s, n, i): return tuple( not s[j] if i <= j and j < i + n else s[j] for j in range(len(s)) ) def answer(initial, n): l = len(initial) maxflip = l - (n - 1) worklist = [initial] states = { initial: 0 } while worklist: state = worklist.pop(0)...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
0c425e4fe95e0209d87b445dc116be63eb4ffdda
bc11e10521fa313d83011e77a2c31a0b6ed581af
/lib/rubyfox/server/data/lib/Lib/test/test_rfc822.py
470b92878fe1a54f6ff113544a80e5f9235b3637
[ "MIT" ]
permissive
neopoly/rubyfox-server
f6f191c68dcc30b8c56d22c8209e4a69251f4f27
26d67687fc642111ef8d02507f2b567828bd1ebd
refs/heads/master
2023-07-20T15:04:32.028192
2023-07-17T09:16:36
2023-07-17T09:33:20
6,457,322
3
4
MIT
2020-08-11T06:53:50
2012-10-30T13:06:32
Python
UTF-8
Python
false
false
7,518
py
import rfc822 import sys import test_support import unittest try: from cStringIO import StringIO except ImportError: from StringIO import StringIO class MessageTestCase(unittest.TestCase): def create_message(self, msg): return rfc822.Message(StringIO(msg)) def test_get(self): msg = s...
[ "ps@neopoly.de" ]
ps@neopoly.de
a2f07df3af8ee8974943f2f72af4f1d8e8c2c4f0
12091b1c0723759464f949b0a47b305c76549278
/tests/test_pedreader.py
ae00fa7fdd2ada7ea03426fe560e3525311546bc
[ "MIT" ]
permissive
whatshap/whatshap
6311e13d36210f395206683bb00b2054ef639653
15c9ff8c4f5b04b86195396dbc6620c874b5ceb8
refs/heads/main
2023-09-04T07:58:09.567203
2023-08-31T08:45:45
2023-08-31T08:45:45
276,673,862
254
27
MIT
2023-09-10T06:47:19
2020-07-02T14:53:00
Python
UTF-8
Python
false
false
883
py
import io from pytest import raises from whatshap.pedigree import PedReader, Trio, ParseError class TestPedReader: def test_parse(self): trios = list(PedReader("tests/data/pedigree.ped")) assert trios[0] == Trio(child="child1", mother="mother", father="father") assert trios[1] == Trio(chil...
[ "marcel.martin@scilifelab.se" ]
marcel.martin@scilifelab.se
5bb44b04e369f75bbfa730979f359f87774d86b2
f61cf1a24fa184dd552dd47dd8399b74c5816ee0
/tasks/10/10-10.py
e06737083170e2f17c7ee5587f9bbf2b030af1e0
[]
no_license
desve/netology
ea585d9db8658eea5319b98f63259239fa538fcb
c6039cc831058b8ba650d417fae25f761520139b
refs/heads/master
2020-01-23T21:11:31.291807
2017-04-06T05:19:08
2017-04-06T05:19:08
74,572,766
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
# Полустепени вершин n = 5 a= [[0, 0, 0, 0, 0], [0, 0, 0, 0, 1], [1, 1, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0] ] c1 = [0] * n for i in range(n): c11 = 0 for j in range(n): if a[i][j] == 1: c11 += 1 c1[i] = c11 c2 = [0] * n for i in range(n): c22 = 0 ...
[ "2901243@mail.ru" ]
2901243@mail.ru
729f408065f93d454e748e77b04b04967fb88c26
5cc204e2ecb9a756127e7c71633a1edcdb3e989b
/pylmp/InKim/LAMMPS_getViscosity.py
549a600e96d47dab74637bbb64c9f0a909aae361
[]
no_license
hopefulp/sandbox
1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8
4d26767f287be6abc88dc74374003b04d509bebf
refs/heads/master
2023-06-27T17:50:16.637851
2023-06-15T03:53:39
2023-06-15T03:53:39
218,209,112
1
0
null
2022-09-13T13:22:34
2019-10-29T05:14:02
C++
UTF-8
Python
false
false
3,560
py
#!/home/noische/program/python27/bin/python """ template.py Original: Dec 28 2011 In Kim """ # Python Modules import sys import os import string import random import time import getopt import pprint # Custom Modules sys.path.append("/home/noische/scripts") sys.path.append("/home/noische/script") import bgf import bgf...
[ "hopefulp@gmail.com" ]
hopefulp@gmail.com
4b5a64ff4dfa130bfdb064b4d689d22a6410ef8d
e8d719fe45dfbff9cbbc4ed872832cec6cabaca6
/21_Merge_Two_Sorted_Lists.py
eb738c549da826985571891c40557a9c19c0cf19
[]
no_license
nlfox/leetcode
64f4f48d7f4be6df0542e51cc7037df40bf184a3
d61363f99de3d591ebc8cd94f62544a31a026d55
refs/heads/master
2020-12-21T01:43:01.792899
2016-11-14T23:10:12
2016-11-14T23:10:12
56,680,839
2
0
null
2016-05-17T17:16:37
2016-04-20T11:19:58
Python
UTF-8
Python
false
false
1,386
py
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None def construct(l): res = ListNode(l[0]) head = res for i in l[1:]: res.next = ListNode(i) res = res.next return head def pri(node): p = node wh...
[ "nlfox@msn.cn" ]
nlfox@msn.cn
f1290c1967e70ae6adf02d821fa34d407fc96a9a
e68fc7302d123d26f9e1d49c7877a3c2367cf676
/config.py
736f1d23ed37ee8f5ae1c0e589c3cb4efcf23da0
[ "MIT" ]
permissive
bmeares/sso
56ae3fb4336f4864e346d3cc366117b96e3f3a0c
d589098c6b6c8510815669184da84e0b561df90d
refs/heads/master
2023-06-01T10:09:04.656903
2021-06-05T17:01:15
2021-06-05T17:01:15
364,969,061
3
0
null
null
null
null
UTF-8
Python
false
false
1,802
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 from meerschaum.utils.prompt import prompt from meerschaum.config import get_plugin_config, write_plugin_config GOOGLE_CONF_URL = 'https://accounts.google.com/.well-known/openid-configuration' FACEBOOK_CONF_DICT = { 'api_base_url': 'https://graph.fac...
[ "bennett.meares@gmail.com" ]
bennett.meares@gmail.com
2af7e96fce26a0c36dc8219da9028f0f0366eac9
3940b4a507789e1fbbaffeb200149aee215f655a
/warmUpOC/binaryHeap-RandomArraytoMaxheap.py
87be6ff429535ca6536ad1e160d1c999e33f5d6b
[]
no_license
akimi-yano/algorithm-practice
15f52022ec79542d218c6f901a54396a62080445
1abc28919abb55b93d3879860ac9c1297d493d09
refs/heads/master
2023-06-11T13:17:56.971791
2023-06-10T05:17:56
2023-06-10T05:17:56
239,395,822
0
0
null
null
null
null
UTF-8
Python
false
false
1,726
py
# Binary Heap - Random Array to Maxheap #### Prompt: Given an array of randomly sorted integers, rearrange the elements so that the array is a maxheap. What is the Big O runtime of this algorithm? Please provide your rationale as well #### Examples: ``` Example 1: arr = [3, 6, 4, 2, 7, 5, 1] return [7, 6, 5, 2, 3...
[ "akimi.mimi.yano@gmail.com" ]
akimi.mimi.yano@gmail.com
ec6a13a47cbceadb43a7cf88141a8bbd15d35e42
47d3e3149269277b164fecb176b5d0297d398b2e
/Python_coding_dojang/Unit 45/package01.py
26e03fb39f10ee0e5620aa19a6b0855bab0ab67a
[]
no_license
heechul90/study-python-basic-1
325e8c81fe35cd0cd22934869413e475b6734652
82d778e5960c0bde102bdc4c52fc61f61ba27745
refs/heads/master
2022-10-31T07:03:54.213599
2022-10-24T10:54:40
2022-10-24T10:54:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,923
py
### Unit 45. 모듈과 패키지 만들기 ## 45.3 패키지 만들기 ## 모듈은 스크립트 파일이 한 개지만 패키지는 폴더(디렉터리)로 구성되어 있습니다. # calcpkg/__init__.py # # __init__.py 파일은 내용을 비워 둘 수 있음 ## 폴더(디렉터리) 안에 __init__.py 파일이 있으면 해당 폴더는 패키지로 인식됩니다. ## 그리고 기본적으로 __init__.py 파일의 내용은 비워 둘 수 있습니다 ## (파이썬 3.3 이상부터는 __init__.py 파일이 없어도 패키지로 인식됩니다. ## 하지만 하위 버전에도 호환되도록 __i...
[ "heechul4296@gmail.com" ]
heechul4296@gmail.com
96df125c2050e8380da4e03b47062197c37e68f7
5bd4893a793ed739127f15becd9558cacf461540
/scripts/rot_photos.py
5219086d03b68403f7db22b5c1aced82b54b5007
[]
no_license
hauensteina/ahn-repo
d3aa665eeef846e426b866d587e8649c8283e74c
93bd7c54548a083f39510fc562c9e7540c4f672a
refs/heads/master
2023-07-24T05:34:51.289699
2023-07-13T16:10:25
2023-07-13T16:10:25
99,860,476
0
1
null
2023-07-15T01:33:35
2017-08-09T23:20:28
Python
UTF-8
Python
false
false
2,121
py
#!/usr/bin/env python # Rotate all *JPG files in the current folder so that the image header # matches the actual image rotation. # Then you can rotate them manually for upload to hauenstein.nine.ch/andiconny . # AHN, Jan 2020 from __future__ import division, print_function import os,sys,re,glob,shutil import subpro...
[ "hauensteina@gmail.com" ]
hauensteina@gmail.com
2023fb2002eba629aa483150c449161bf19a08ed
58b87ea29a95a5ceeaae4c2d7db1b16502ed158f
/ComputationalPhysics/Homework/hw3.py
d368ea50245383ff59eb1bac5299c93e92da3b2c
[]
no_license
meyerpa/Python
b609e8c036b478b20cd17a4cc47b71c129c968f8
3797f9be3341e69d5e9eccfc1b4e7f52fdd9c666
refs/heads/master
2021-01-01T03:58:40.183829
2018-03-14T14:24:57
2018-03-14T14:24:57
56,526,228
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
# -*- coding: utf-8 -*- """ Created on Thu Jan 26 13:30:49 2017 @author: Paige Meyer @date: 1-26-2016 @file: homework3 @description: This file contains code to read sunspots.txt, show the number of months, graph the sunspots with respect to time, and average the data. """ import numpy as np import matplo...
[ "meyerpa@mnstate.edu" ]
meyerpa@mnstate.edu
7f87b5c5bed34bb76c1ee9f8face990205269f2d
de392462a549be77e5b3372fbd9ea6d7556f0282
/accounts/migrations/0035_auto_20200910_1200.py
dac2d5c9008ca94f225b7cedf49b36e06ab4e2cf
[]
no_license
amutebe/AMMS_General
2830770b276e995eca97e37f50a7c51f482b2405
57b9b85ea2bdd272b44c59f222da8202d3173382
refs/heads/main
2023-07-17T02:06:36.862081
2021-08-28T19:07:17
2021-08-28T19:07:17
400,064,408
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
# Generated by Django 3.0.2 on 2020-09-10 09:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0034_auto_20200910_1126'), ] operations = [ migrations.AlterField( model_name='car', name='car_number', ...
[ "mutebe2@gmail.com" ]
mutebe2@gmail.com
d7d3c2d7ef21f281073e54af1f20b0d335a6d4a2
3c17e189622018329bc0ebd8523eae8db9f3112a
/ykdl/extractors/netease/live.py
8a3b1f40c764c49483d13ce1bbf800566e2c18ed
[ "MIT" ]
permissive
YU-zreo/ykdl
167c9b8715a1cecf57c18bf60c7da3b22437ad06
b59dacd78bcec79d208d7cb86b86fa65428e386a
refs/heads/master
2020-12-02T12:47:01.113309
2017-07-07T12:39:20
2017-07-07T12:39:20
96,594,712
1
0
null
2017-07-08T03:57:22
2017-07-08T03:57:21
null
UTF-8
Python
false
false
912
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from ykdl.util.html import get_content from ykdl.util.match import match1 from ykdl.extractor import VideoExtractor from ykdl.videoinfo import VideoInfo import json class NeteaseLive(VideoExtractor): name = u"网易直播 (163)" def prepare(self): info = VideoInf...
[ "zhangn1985@gmail.com" ]
zhangn1985@gmail.com
5660cf373fd81ac3f88d952f37b7290ad5c9e660
5c5e7b03c3373e6217665842f542ca89491290ff
/2015/day24.py
da34556a0fac89ed5e4bf110b667f266d5fe3ae1
[]
no_license
incnone/AdventOfCode
9c35214e338e176b6252e52a25a0141a01e290c8
29eac5d42403141fccef3c3ddbb986e01c89a593
refs/heads/master
2022-12-21T21:54:02.058024
2022-12-15T17:33:58
2022-12-15T17:33:58
229,338,789
0
0
null
null
null
null
UTF-8
Python
false
false
3,316
py
from getinput import get_input import itertools import copy def list_prod(x): prod = 1 for s in x: prod *= s return prod def partitionable(weights): weight_sum = sum(w for w in weights) if weight_sum % 2 != 0: return False n = len(weights) k = weight_sum // 2 # p[i][...
[ "incohatus.none+git@gmail.com" ]
incohatus.none+git@gmail.com
1bd16f88bb8cf77b42c10f23cb961dac40c8112e
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/torch/nn/parallel/scatter_gather.py
022b96bf08f30d37561e898459ab0e809d0e29ed
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:b69f556cfd2c67160d3730c231d1bb6d26eaf9dcc7d69128f5c480af8679521d size 2690
[ "yamprakash130@gmail.com" ]
yamprakash130@gmail.com