blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
8e189763df76ff793adc00ad9e28f6f4735ed11a
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_8283.py
918d064e2191d7202565a0b1ed149fa29f954b66
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
# Python module BeautifulSoup extracting anchors href if a.has_key('href') links.append(a['href'])
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
b67d6e305933672f68375300c807f45babd82765
9784a90cac667e8e0aaba0ca599b4255b215ec67
/gluon/gluoncv2/models/lednet.py
c8743c908d18f8d460c8e3eab5d4910ce8b29ed4
[ "MIT" ]
permissive
osmr/imgclsmob
d2f48f01ca541b20119871393eca383001a96019
f2993d3ce73a2f7ddba05da3891defb08547d504
refs/heads/master
2022-07-09T14:24:37.591824
2021-12-14T10:15:31
2021-12-14T10:15:31
140,285,687
3,017
624
MIT
2022-07-04T15:18:37
2018-07-09T12:57:46
Python
UTF-8
Python
false
false
24,449
py
""" LEDNet for image segmentation, implemented in Gluon. Original paper: 'LEDNet: A Lightweight Encoder-Decoder Network for Real-Time Semantic Segmentation,' https://arxiv.org/abs/1905.02423. """ __all__ = ['LEDNet', 'lednet_cityscapes'] import os from mxnet import cpu from mxnet.gluon import nn, HybridBl...
[ "osemery@gmail.com" ]
osemery@gmail.com
704c318e614ef0ed1ac677b6e615272c162d3661
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_Class36.py
e0acf1a88e1f96250e4f122e4227bc4cdb34de6e
[ "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
2,427
py
# qubit number=3 # total number=9 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collection...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
5cbb883ea1c04efe8a7a2cef7957a2a2273cf727
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03946/s811408190.py
1dcbe0bb3e40ad9cf5592528edaf02ff138bc42a
[]
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
589
py
N,T = map(int,input().split()) A = list(map(int,input().split())) data = [0]*(N-1) M = [0]*N M[N-1] = A[N-1] M_index = [N-1]*N for i in range(2,N+1): if A[N-i] > M[N-i+1]: M[N-i] = A[N-i] M_index[N-i] = N-i else: M[N-i] = M[N-i+1] M_index[N-i] = M_index[N-i+1] data[N-i] = M...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
269573a3fb80c759aef1eb6092c16b6415cf6a42
b7f4d49ace49ae2affd9adc619f13e2cdd887ff3
/archive/pl-implementation/dinr/modeling/modules/ms_inr_generator.py
e7d2c88118eb8d44c3dab99225a227af06cecfc1
[]
no_license
kylemin/inr-gan
828c5f513387c7cfcf2e6baf4b976f4b572bf685
58d866e8f986f04e8001083dc9be2427fd7f5d30
refs/heads/master
2023-08-28T07:52:59.352021
2021-10-29T13:56:29
2021-10-29T13:56:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,301
py
import math import random import numpy as np import torch from torch import nn import torch.nn.functional as F from .conv import StyledConv from .linear import EqualLinear, StyledLinear from .style import PixelNorm, CoordBasedConstantInput, CoordFuser from .torgb import ToRGB class MSINRGenerator(nn.Module): de...
[ "iskorokhodov@gmail.com" ]
iskorokhodov@gmail.com
534d7a8d361d7a451f2b98d94d9b4539fe824687
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/137/usersdata/218/47092/submittedfiles/Maratona.py
6d8876f8f1158c2fd5d5be7ed13195de53f89d34
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
# -*- coding: utf-8 -*- N=int(input('digite o numero de postos da prova:')) M=int(input('digite a distancia de alcance maxima entre os postos:')) maxima=42195 minima=0 cont=0 for i in range (0,N,1): p=int(input('digite a posição do posto:')) if p<minima: minima=p if p>maxima: maxima=p if...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
90183842ee994ee4c500c4ac32e0e8ac30df18d8
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/2306.py
480ae3036f9ad1679c427e947506870bf81d64db
[]
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
717
py
import sys import math def is_palindrom(number): return str(number) == str(number)[::-1] def make_work(input='input.txt', output='output.txt'): file_in = open(input) cases_number = int(file_in.readline().strip()) for n in xrange(cases_number): case_number = n + 1 a, b = map(int, file_in.readlin...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
5cbd9ab1e7cbca8d9043ca2d795fd3e2e95dce6d
e63ab09f227459380c317aa1694cffd04255c807
/cheshire3/lucene/indexStore.py
d8219db0cb88d5d868bd9d0e3bef35b30995337d
[ "ICU", "X11" ]
permissive
bitwhite/cheshire3
91a0d2f8d2e79ac277ac4f7a3bea9efa911ce3d6
ca27bc2600d217e36a429ccfe064f11d9b200193
refs/heads/master
2021-05-27T03:50:09.456813
2013-10-10T13:47:16
2013-10-10T13:47:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,186
py
from cheshire3.baseObjects import IndexStore from cheshire3.lucene.utils import NullC3Analyzer, C3TokenStream, cqlToLucene from cheshire3.resultSet import SimpleResultSet, SimpleResultSetItem import lucene class LuceneIndexStore(IndexStore): def __init__(self, session, config, parent): IndexStore.__ini...
[ "info@cheshire3.org" ]
info@cheshire3.org
97373bd89810120c5216516ef09d1046ca0c6302
509c3eb9d205be19426c01f222a6e5870cca256f
/runs/sim-study/configs/test-sim-6-8-6/tsne/viz.py
b608dfa400b45c5118d89e6526b248dbdb47ad82
[ "MIT" ]
permissive
luiarthur/CytofRepFAM.jl
b4d23cd32cc89493015b72777f1016b41862aaf7
1f997d1620d74861c5bde5559ebdd1e6c449b9e7
refs/heads/master
2021-07-07T16:07:23.489103
2021-04-30T02:43:42
2021-04-30T02:43:42
238,282,263
0
0
null
null
null
null
UTF-8
Python
false
false
3,998
py
import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import os import sys sys.path.append('../../../../PlotUtils') import plot_yz def graph_tsne(tsne_df, clust, i, method, outpath, method_suffix=''): if clust is None: tsne_df[method] = tsne_df[method].astype(int) ...
[ "luiarthur@gmail.com" ]
luiarthur@gmail.com
4f1a9db5a85cb6b5683c2bd6e86cbc75cb4ce5ed
06737979a3d4924dc6a3d926d1b3c1c144891fb8
/yq/operators/subsequence.py
ac83dc051cc727e3080488e6edb463a6a9c0e07a
[]
no_license
abesto/yq
630fc2377adfb5198b5b0068a1505af01744a339
daf0c0d8f4da2ce2eace0c21ce4d8c2d7055ba54
refs/heads/master
2020-05-16T22:29:59.196970
2017-01-19T12:43:07
2017-01-19T12:43:07
16,524,927
83
10
null
2016-02-28T18:24:32
2014-02-04T20:41:24
Python
UTF-8
Python
false
false
507
py
from yq.operators.base import Operator class Subsequence(Operator): def __init__(self, low, hi): if low is None: self.low = low else: self.low = int(low) if hi is None: self.hi = None else: self.hi = int(hi) def _apply_item(self,...
[ "abesto@abesto.net" ]
abesto@abesto.net
7a5f991168b0684d7ef53377e5e56cfcb36cefe7
32ba9f1c35ae916d33b121daeeea8e1910a447d7
/rig/mocapOverride.py
bd69527c39da90596c2246322f0eb67ad57e7eaa
[ "MIT" ]
permissive
rituparna/glTools
8b02fa2751e1b997f7a202c7df8a3dd3d3032722
c512a96c20ba7a4ee93a123690b626bb408a8fcd
refs/heads/master
2020-03-19T19:23:47.684580
2018-06-10T23:53:58
2018-06-10T23:53:58
136,853,456
0
0
null
2018-06-10T23:46:54
2018-06-10T23:46:53
null
UTF-8
Python
false
false
30,025
py
import maya.cmds as mc import maya.mel as mm import glTools.rig.utils import glTools.tools.constraint import glTools.utils.attribute import glTools.utils.base import glTools.utils.channelState import glTools.utils.constraint import glTools.utils.joint import glTools.utils.stringUtils import os.path import types de...
[ "grant@bungnoid.com" ]
grant@bungnoid.com
0a5b64d704824ce71bb59cd4c8f347f2cc8e081b
0001e8b4a35ea0530cb0f6f803b896da96d06ce3
/sommashampoosales.py
be0a16dd95394ca00a7b52f08f417ddef8f97b50
[]
no_license
elisagiacomini/programming.lab
7374340ed875b17702566f2e760b184a4abbb70d
03cef1f1befa3aeb0ccc74c89f5663bdc3e50712
refs/heads/main
2023-01-27T17:46:24.651148
2020-12-01T16:03:04
2020-12-01T16:03:04
311,688,417
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
# Inizializzo una lista vuota per salvare i valori values = [] # Apro e leggo il file, linea per linea my_file = open('shampoo_sales.csv', 'r') for line in my_file: # Faccio lo split di ogni riga sulla virgola elements = line.split(',') # Se NON sto processando l’intestazione... if elements[0] != ...
[ "replituser@example.com" ]
replituser@example.com
9c633d0178aaab7a6564f7243bc00f052ac8dad1
55628a9a08a6b6646b4a8aa74bedbf2e3fd7d850
/.history/master_20200121133148.py
4d804da697adee5d30b336771852358949557519
[]
no_license
StRobertCHSCS/final-project-team
c115dc11b318f7ac782c94860a8801bb558bd107
48907e72813c4dd3b48ff36f794f6fce04533219
refs/heads/master
2020-12-03T22:35:37.833893
2020-01-31T04:05:38
2020-01-31T04:05:38
231,506,873
1
0
null
null
null
null
UTF-8
Python
false
false
8,791
py
''' -**make snake longer when eaten - FIGURE OUT HOW TO KNOW WHERE TO ADD THE NEXT BLOCK (MOVE LAST LOCATION TO BACK) DONEEE -fix player_location lists, so that the list only has the location of the current snake location, not infinite list (done) - fix apple so disappers when you go over it (done) - add score ...
[ "clementina1023@gmail.com" ]
clementina1023@gmail.com
4e9a8679f6d3e1a43540bb78022b35d6cb07679d
a74b980fd95d5d810315f181449fc9d1710e6923
/savecode/threeyears/idownclient/scan/plugin/zgrab2/zgrab2scanner/zgrab2scannerpop3.py
b822e7e9071e3ecd8759508da388a167c5059ce4
[ "Apache-2.0" ]
permissive
cbbbbbbbb/sspywork
b70f5539203b47b21eec2f0514ddca155affc2b8
8f05a6b91fc205960edd57f9076facec04f49a1a
refs/heads/master
2023-03-22T19:45:13.024076
2021-03-08T01:24:21
2021-03-08T01:24:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,680
py
""" zgrab2去扫pop3 create by judy 2019/11/19 """ import os import signal import traceback import uuid from datacontract.iscandataset.iscantask import IscanTask from .zgrab2scannerbase import Zgrab2ScannerBase from ..zgrab2parser import Zgrab2ParserPop3 class Zgrab2ScannerPop3(Zgrab2ScannerBase): """zgrab2 http sc...
[ "shiyuegege@qq.com" ]
shiyuegege@qq.com
481788fbe8f4d3aa3fde5561c1b9c96254847246
32abbd752bb333b45872abeb1295596b529c60a9
/modules/pdb2pqr/src/na.py
ee17076a9cafb73079b73faa4b859e4c55ed584c
[]
no_license
tevang/Pymol-script-repo
a5adb80856b0e0d1dd8d60c9aa1053200524e19b
a7a94dec980c717131d0605b487d6df77bfeff38
refs/heads/master
2023-05-14T15:37:07.934823
2023-04-27T13:20:27
2023-04-27T13:20:27
179,960,720
2
0
null
2023-04-28T04:09:46
2019-04-07T12:07:22
Python
UTF-8
Python
false
false
12,412
py
""" Nucleic Acid Structures for PDB2PQR This module contains the base nucleic acid structures for pdb2pqr. ---------------------------- PDB2PQR -- An automated pipeline for the setup, execution, and analysis of Poisson-Boltzmann electrostatics calculations Copyright (c) 2002-2011, Jen...
[ "tlinnet@gmail.com" ]
tlinnet@gmail.com
7cb2899c4727fad9262175e7b21678934c7180e0
03e3138f99f275d15d41a5c5bfb212f85d64d02e
/source/res/scripts/client/bootcamp/Bootcamp.py
ffa79356e78da65ba8ef200b12a24e38d16c6bc7
[]
no_license
TrenSeP/WorldOfTanks-Decompiled
e428728e7901146d0b599d02c930d70532232a97
1faa748acec1b7e435b657fd054ecba23dd72778
refs/heads/1.4.1
2020-04-27T08:07:49.813023
2019-03-05T17:37:06
2019-03-05T17:37:06
174,159,837
1
0
null
2019-03-06T14:33:33
2019-03-06T14:24:36
Python
UTF-8
Python
false
false
23,750
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/bootcamp/Bootcamp.py import base64 import cPickle from collections import namedtuple import BigWorld import BattleReplay import TriggersManager import WWISE import MusicControllerWWISE as MC from account_helpers.AccountSettings impo...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
33a2d5d740644f1f35166c70f71a5928b409bcb6
072f8bffbfef6e149ad1934ea9183a79864c1acd
/venv/Lib/site-packages/watcherclient/tests/unit/v1/test_strategy_shell.py
7a1568714e2603e647f5b0d99f8bceeb0ede953e
[]
no_license
numvc/LuxoftBot
77d9bf8f5f63aee63350f1ec82f4b940afe203d2
29d7ca8868ab86bc076509d103f7596039333417
refs/heads/master
2020-09-21T21:37:12.527546
2019-12-04T23:24:35
2019-12-04T23:24:35
224,939,956
1
0
null
null
null
null
UTF-8
Python
false
false
7,741
py
# Copyright (c) 2016 b<>com # # 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, softw...
[ "feys-00@mail.ru" ]
feys-00@mail.ru
688a3352badf0b2f3f6ee521627b783d65c0d14a
d18ed72d6f8d27dd8a13eab5c6366f9dca48aa6b
/espresso/lab/hydra/usecases/cassandra/cassandra/time/Scheduler.py
29bbabb9f1513382a67171657fec3a84c5a2406f
[]
no_license
danse-inelastic/AbInitio
6f1dcdd26a8163fa3026883fb3c40f63d1105b0c
401e8d5fa16b9d5ce42852b002bc2e4274afab84
refs/heads/master
2021-01-10T19:16:35.770411
2011-04-12T11:04:52
2011-04-12T11:04:52
34,972,670
1
2
null
null
null
null
UTF-8
Python
false
false
2,527
py
class Scheduler(object): def __init__(self): self.now = self.getCurrentTime() self.alarmIndex = [] self.alarms = {} return def alarm(self, interval, callback): """Call the given callback after the specified time interval elapses.""" from ...
[ "dexity@gmail.com" ]
dexity@gmail.com
2c492ea4b85b3ed7315977442b45bb309b1f88a1
3c59b7bde01cfbc1fbd170883393e8ebf7a0a92f
/HackerRank/Binary Search Tree-Lowest Common Ancestor.py
50b0ac929272da74203ba36f002280fdd857dc6f
[]
no_license
gf234/python_problem_solving
93ae00d940091131d8f8b06e478e385e4c2a4503
4c95751f5a687215c14bf61c37e6dc2e7e752342
refs/heads/main
2023-05-10T07:28:12.351006
2021-06-14T04:59:33
2021-06-14T04:59:33
314,479,583
1
0
null
null
null
null
UTF-8
Python
false
false
202
py
def lca(root, v1, v2): if root.info < v1 and root.info < v2: return lca(root.right, v1, v2) elif root.info > v1 and root.info > v2: return lca(root.left, v1, v2) return root
[ "gf265@naver.com" ]
gf265@naver.com
bf62b7c5129f5a203112132403faaf45ab790855
ab9a9736c58f388785890d42287f3ba8d5caa48d
/freqopttest/data.py
be7886f8c0fb13880b49222fad36b891c856dc65
[ "MIT" ]
permissive
liyu95/interpretable-test
845fc4ed67a2f1bbd9997daadf84b48aeb82e3a4
8141cefe138da7962ea321a179366d0951f85213
refs/heads/master
2021-09-04T17:38:17.164487
2018-01-20T15:04:30
2018-01-20T15:04:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,160
py
__author__ = 'wittawat' from abc import ABCMeta, abstractmethod import math import matplotlib.pyplot as plt import numpy as np import freqopttest.util as util import matplotlib.pyplot as plt import scipy.stats as stats class SampleSource(object): """A data source where it is possible to resample. Subclasses may p...
[ "wittawatj@gmail.com" ]
wittawatj@gmail.com
69eac2df32559b7d28c3633a5c1a52fe3f26db22
b144c5142226de4e6254e0044a1ca0fcd4c8bbc6
/ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/trafficitem.py
65a21b5e1c5dea57cd19f551f1c9e9b09ae2fd0f
[ "MIT" ]
permissive
iwanb/ixnetwork_restpy
fa8b885ea7a4179048ef2636c37ef7d3f6692e31
c2cb68fee9f2cc2f86660760e9e07bd06c0013c2
refs/heads/master
2021-01-02T17:27:37.096268
2020-02-11T09:28:15
2020-02-11T09:28:15
239,721,780
0
0
NOASSERTION
2020-02-11T09:20:22
2020-02-11T09:20:21
null
UTF-8
Python
false
false
37,680
py
# MIT LICENSE # # Copyright 1997 - 2019 by IXIA Keysight # # 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, modify,...
[ "srvc_cm_packages@keysight.com" ]
srvc_cm_packages@keysight.com
94403f1b21bd73a763eaa34c5f40bef0076041d1
f3b233e5053e28fa95c549017bd75a30456eb50c
/jnk1_input/24/24-36_MD_NVT_rerun/set_2.py
3ad7ebd55a5bdc277eef71cc5e0ea648a32b10d0
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import os dir = '/mnt/scratch/songlin3/run/jnkl/L624/MD_NVT_rerun/ti_one-step/24_36/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_2.in' temp_pbs = filesdir + 'temp_2.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in la...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
53d454a183cbff0e567046f5fd4165f5a6a8bd6d
41d96fec63aff02b9eb0152002f45b1b867bfafe
/experiments/tools/noise.py
b725ec234fe89a9a7e61b4a4de3dd5803acf4c04
[]
no_license
jon--lee/dart_dev
fef7b18e0c05ac64b3a1b1c42c1e0ac071504619
2539f1d918c07c15dea8d72865bb2faf1a49d22c
refs/heads/master
2020-03-14T04:29:23.200345
2018-06-21T07:03:38
2018-06-21T07:03:38
131,442,979
0
0
null
null
null
null
UTF-8
Python
false
false
2,239
py
import numpy as np import statistics import IPython def sample_covariance_lnr(env, lnr, sup, samples, T): cov = np.zeros(env.action_space.shape[0]) for s in range(samples): states, tmp_actions, _, _ = statistics.collect_traj(env, lnr, T) sup_actions = np.array([sup.intended_action(s) for s in ...
[ "123abcjonathanlee@gmail.com" ]
123abcjonathanlee@gmail.com
17c41d0c9e81aa5d9e9f1da1181bc65e32417ecb
d2a0c5b7f9977720eb588a664b6ad40486691baa
/sports/tasks.py
30dd137c0455fd2cbc90eb28af09f7dac89ebf4a
[]
no_license
cjredmond/final_project
37df2ab88ff6e1aa06af12a196d5d7bc4cda71e0
ae9bbabae8f611d88d12e045ffedf87a077b0580
refs/heads/master
2020-07-26T22:25:44.357141
2016-12-15T19:24:25
2016-12-15T19:24:25
73,711,954
0
0
null
null
null
null
UTF-8
Python
false
false
7,221
py
import time from celery import Celery import random import datetime import requests from celery import shared_task from sports.scraper import usable_data, fix_names, nba_scores from sports.nhl_scraper import nhl_scores, nhl_usable_data from sports.nfl_scraper import nfl_scores, nfl_usable_data from sports.models import...
[ "connor.redmond@gmail.com" ]
connor.redmond@gmail.com
fa474f19b5c1d31fb875338677ede2815df5a871
ae9bd6f9a8fc4133a03db60910c25617b65732f1
/pyro_models/bcm/bernoulli.py
9f6e2ccf839bc0c52db09b353c0c27383d26dbc1
[ "MIT" ]
permissive
afcarl/pyro-models
0af1a239af81436b1980752c132f288ea59bcbc3
1fc3f4b27fe946a99b2ddd6b57cca16f8c7da181
refs/heads/master
2022-01-27T13:15:33.641771
2019-07-09T18:55:39
2019-07-09T18:55:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
750
py
# model file: example-models/basic_estimators/bernoulli.stan import torch import pyro import pyro.distributions as dist def init_vector(name, dims=None): return pyro.sample(name, dist.Normal(torch.zeros(dims), 0.2 * torch.ones(dims)).to_event(1)) def validate_data_def(data): assert 'N' in data, 'variable no...
[ "jonathanp.chen@gmail.com" ]
jonathanp.chen@gmail.com
d5b69845bfc9fdf1ab9d7e507f7523442b3dc405
def27d5864764b877b6786835ec97f2bd74c6ba8
/medium/RotateImage.py
4c0c646667bb3773d3d30ad5ef12082eb7604994
[]
no_license
bolan2014/leetcode
f6cf38a49a9250abeb36543ea2498062c58e811d
1c35fde3a65c4f216218f459736d4c39a29980d5
refs/heads/master
2021-04-09T16:59:41.494568
2017-05-10T03:47:14
2017-05-10T03:47:14
46,648,353
0
1
null
null
null
null
UTF-8
Python
false
false
500
py
class Solution(object): def rotate(self, matrix): """ :type matrix: List[List[int]] :rtype: void Do not return anything, modify matrix in-place instead. """ n = len(matrix) for i in range(n): for j in range(i, n): matrix[i][j], matrix[j][i]...
[ "1139217488@qq.com" ]
1139217488@qq.com
74a9115ea8165c1ac45388b3eadab8e4a69c0bcc
ce2617bfb141c931dba3e1a1a5cc2331cece1fba
/notejam/python2.7/lib/python2.7/site-packages/ansible/modules/cloud/amazon/cloudtrail.py
6e9b0c170e183526f0154a599df949e3adf2726f
[]
no_license
fercunha/notejam-django
11e6f343a6e886d7e491ef6f1320d2bacaa625cb
6e51763b530d7b4c5a0cfc9abb47caa797baaadc
refs/heads/master
2020-05-04T19:54:58.561206
2019-04-04T03:19:09
2019-04-04T03:19:09
178,685,844
0
0
null
null
null
null
UTF-8
Python
false
false
23,723
py
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
[ "fercunha42@gmail.com" ]
fercunha42@gmail.com
cccb144b3b818fd1c34f78878597e6c7566e5ae1
18239524612cf572bfeaa3e001a3f5d1b872690c
/clients/keto/python/ory_keto_client/models/list_ory_access_control_policy_roles.py
012f3b490b2695312354cb16433a47b77482f36d
[ "Apache-2.0" ]
permissive
simoneromano96/sdk
2d7af9425dabc30df830a09b26841fb2e8781bf8
a6113d0daefbbb803790297e4b242d4c7cbbcb22
refs/heads/master
2023-05-09T13:50:45.485951
2021-05-28T12:18:27
2021-05-28T12:18:27
371,689,133
0
0
Apache-2.0
2021-05-28T12:11:41
2021-05-28T12:11:40
null
UTF-8
Python
false
false
5,559
py
# coding: utf-8 """ ORY Keto A cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. # noqa: E501 The version of the OpenAPI document: v0.0.0-alpha.37 Contact: hi@ory.sh Generated by: https://openapi-generato...
[ "noreply@github.com" ]
simoneromano96.noreply@github.com
d99415ddf223c396bd34c3886c0908198511a6c6
de6fb3a55196b6bd36a4fda0e08ad658679fb7a1
/modules/resource/orchestrator/src/delegate/geni/v3/utils/ro.py
5e877ef9e520129ca30707d53a4bf5b7ffbcc9fc
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
dana-i2cat/felix
4a87af639e4c7db686bfa03f1ae4ce62711615e3
059ed2b3308bda2af5e1942dc9967e6573dd6a53
refs/heads/master
2021-01-02T23:12:43.840754
2016-02-04T10:04:24
2016-02-04T10:04:24
17,132,912
4
4
null
null
null
null
UTF-8
Python
false
false
6,153
py
from db.db_manager import db_sync_manager from delegate.geni.v3.rm_adaptor import AdaptorFactory from rspecs.ro.manifest_parser import ROManifestParser from commons import CommonUtils from tn import TNUtils from vl import VLUtils import core logger = core.log.getLogger("ro-utils") class ROUtils(CommonUtils): def...
[ "jenkins@integration.localhost" ]
jenkins@integration.localhost
9746c655fff4a9fe413aa78411dd64741596373b
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj_233734.00+434646.2/sdB_SDSSJ_233734.00+434646.2_lc.py
db14c23c567efeaa0cbc6954ff394fa00c9bcd68
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[354.391667,43.7795], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_233734.00+434646.2 /sdB_SDSSJ_233734.00+434646.2_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.010388897...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
98fcf5fcfca6641dd017597b7d01b3e14688866e
f99f30752e9bb9e023b37c731f64fb2155ac3daf
/05/for.py
7557743e98836a3021a0668b8696a0f0828f700a
[]
no_license
chu83/python-basics
148ff6977f5ca04775951d90ed1f5f763c51a9ff
19fe0937842c668f604876be0aeb0962a2630dd2
refs/heads/master
2023-01-19T01:29:25.203738
2020-11-29T18:34:33
2020-11-29T18:34:33
311,258,549
0
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
#for loop print('========== for loop 기본 ===========') a=['cat', 'cow', 'tiger'] for animal in a: print(animal, end=' ') else: print('') print('========== 복합 자료형의 for loop ===========') l1 = [('둘리', 10), ('마이콜', 20), ('또치', 10)] for t in l1: #print(f'이름 : {t[0]}, 나이 : {t[1]}') print('이름 : %s, 나이 : %d'...
[ "59534807+chu83@users.noreply.github.com" ]
59534807+chu83@users.noreply.github.com
e031a15e54ff318ebc704179b54cb081cd8a680f
7ad19e854135977ee5b789d7c9bdd39d67ec9ea4
/mapping_models/setup.py
b83d962eff3cd62e6d0205c3795371958ee84111
[ "MIT" ]
permissive
Leofltt/rg_sound_generation
1b4d522507bf06247247f3ef929c8d0b93015e61
8e79b4d9dce028def43284f80521a2ec61d0066c
refs/heads/main
2023-05-02T19:53:23.645982
2021-05-22T16:09:54
2021-05-22T16:09:54
369,842,561
0
0
MIT
2021-05-22T15:27:28
2021-05-22T15:27:27
null
UTF-8
Python
false
false
780
py
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="mapping_models", version="0.0.1", author="Sound Generation OSR", author_email="amit.yadav.iitr@gmail.com", description="mapping models module", long_description=long_...
[ "amit.yadav.iitr@gmail.com" ]
amit.yadav.iitr@gmail.com
5ddb60ad27fa77fedbf2551bbab1bb2e95fa771c
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2692487_0/Python/kangz/skel.py
d65aa33398c04c3302fbb0196b83fee415960cd0
[]
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
1,174
py
import sys def concat_str(args): s = "" for arg in args: s += str(arg) return s def debug(*args): sys.stderr.write(concat_str(args) + "\n") def printf(*args): debug(*args) print concat_str(args) def int_input(): return map(int, raw_input().split(' ')) ##########################...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
316a5d32e5f75abc519788e2b798965ebd1d55c5
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_136/2973.py
a8200601b088f6309637d43fb933939df7d0a51b
[]
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
366
py
tests = int(raw_input('')) for t in xrange(tests): r = raw_input('').split() C = float(r[0]) F = float(r[1]) X = float(r[2]) time = 0.0 increase = 2.0 result = 100000000000000.0 bound = int( (F*X - 2.0*C)/(F*C) ) for i in xrange(bound+10): result = min(result, time + X/increase) time += C/increase incr...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
eba134ac77216aec2247bf99d6822f1a554a1e1e
28431c6bdfd15b346741f62b06410d815c1a1482
/jupytex/tools.py
5142309970c92b973730541273841ea8f6bb80b3
[ "MIT" ]
permissive
agoose77/jupytex
e3740c367f3fd87bc32819e0a91ef9674a14ff66
0906c35e29c6f4b6030ae7f86565d667fb30c1da
refs/heads/master
2021-06-09T22:31:58.200217
2021-05-21T13:55:40
2021-05-21T13:55:40
123,421,594
1
0
null
2019-01-30T09:12:09
2018-03-01T10:45:25
Python
UTF-8
Python
false
false
1,287
py
import logging import pathlib import subprocess import typing import importlib_resources as resources from . import data logger = logging.getLogger(__name__) def get_resource_names(package: resources.Package) -> typing.Iterator[str]: for name in resources.contents(package): if name == "__init__.py": ...
[ "goosey15@gmail.com" ]
goosey15@gmail.com
05857782727dc8cbb0cce52c998e642c1192f449
1049d75b4d94564e54fbd0f2d8c36f774832bbf3
/career/migrations/0001_initial.py
2c6bf0213e1deef916116f664196fc4205095f74
[]
no_license
wahid999/Alumni-Studen-Portal-FYP--master
b7597b4fd7f9e9e7966b09229b887bc156238c6b
1c9719f33fc338786220cbceb8e91789aa0161ab
refs/heads/master
2023-07-16T10:43:41.431096
2021-08-31T07:06:44
2021-08-31T07:06:44
401,582,254
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
# Generated by Django 3.0.5 on 2020-04-17 19:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "wahidhussainturi@gmail.com" ]
wahidhussainturi@gmail.com
5d61287b4f126287b3558dee2293d4b9935db595
43362c036fa9c4dd61ead35a38ede10f3e72c222
/setup.py
27bd1aebc9af315fd4e7a748e43a283f8c40ed78
[ "MIT" ]
permissive
lowks/esios
acea4d86c1362641ab022d30f885dea980384473
2d0b00807d3e5900dfae7b89d3aacc4bc123066b
refs/heads/master
2021-01-15T09:47:59.190672
2016-03-18T13:17:39
2016-03-18T13:17:39
54,208,454
0
1
null
2016-03-18T14:43:14
2016-03-18T14:43:14
null
UTF-8
Python
false
false
303
py
from setuptools import setup, find_packages setup( name='esios', version='0.1.7', packages=find_packages(), url='https://github.com/gisce/esios', license='MIT', install_requires=['libsaas'], author='GISCE-TI, S.L.', author_email='devel@gisce.net', description='' )
[ "ecarreras@gisce.net" ]
ecarreras@gisce.net
6af1c0d0207f68460356be283522043e05fdfea8
52b5773617a1b972a905de4d692540d26ff74926
/.history/climbingStairs_20200709184851.py
ec2e4ea6b8d9d4c5fca3297afeae1c421371ba08
[]
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
50
py
def climbing(n): ''' Problem: '''
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
136d460415ebedfb775c6636af07945e6dfede00
7ed9402076707e3c37a3706dacb208d9f196f71b
/app/blog_admin/views.py
21e75396177e4d893348859d8424f2432347815d
[ "BSD-2-Clause" ]
permissive
jiangbingo/django-angularjs-blog
8b007b5f51520d7da85316a60be716185e7d3cb5
27b7a40b163bdb18aa20257c6e796a213392ea16
refs/heads/master
2021-01-18T02:21:52.007439
2016-06-24T07:59:17
2016-06-24T07:59:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,176
py
# -*- coding: utf-8 -*- from django.shortcuts import render_to_response from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from django.contrib.auth import authenticate from app.utils import * from app.myblog.models import * from app.decorater import login_api from app.decorater i...
[ "rapospectre@163.com" ]
rapospectre@163.com
33fd60f33c6e12e205067a4078dfebf1066dbc9c
7d76d00142cd5c3b8d4aaeb917829ddf46871fb5
/mlir/lib/Bindings/Python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py
229458855939a794af5b3415dc548a23455b0cde
[ "LLVM-exception", "Apache-2.0" ]
permissive
pauljoo28/llvm-project
8ff49f620f6ae2e9bacaad83991cd0c2bc8b36bd
4bf8985f4fb1411831505a4b38265eb517783dc7
refs/heads/main
2023-04-23T07:14:36.877563
2021-04-06T20:23:58
2021-04-06T20:23:58
320,934,047
4
2
null
2020-12-12T22:09:36
2020-12-12T22:09:36
null
UTF-8
Python
false
false
2,315
py
from ..lang import * T1 = TV.T1 T2 = TV.T2 Batch = S.Batch @linalg_structured_op def matmul(A=TensorDef(T1, S.M, S.K), B=TensorDef(T2, S.K, S.N), C=TensorDef(U, S.M, S.N, output=True)): """Performs a matrix multiplacation of two 2D inputs. Numeric casting is performed on the operands to t...
[ "stellaraccident@gmail.com" ]
stellaraccident@gmail.com
337f351e1ea69e017e7449fa313e64f16d2fe44b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03826/s197657905.py
d41500e1f0227c37ec64234be575400e91386bbe
[]
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
127
py
def main(): t = list(map(int, input().split())) print(max(t[0]*t[1],t[2]*t[3])) if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8bdc625bce37546dcff8911293c12f4f99a0b92a
ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86
/pychron/loading/tasks/loading_plugin.py
ab3f96269cb4288e7d554f9723dd6eaa10080d38
[ "Apache-2.0" ]
permissive
UManPychron/pychron
2fb7e479a9f492423c0f458c70102c499e1062c4
b84c9fd70072f9cbda30abe2c471e64fe3dd75d8
refs/heads/develop
2022-12-03T23:32:45.579326
2020-01-29T19:02:20
2020-01-29T19:02:20
36,100,637
0
0
null
2015-05-23T00:10:06
2015-05-23T00:10:05
null
UTF-8
Python
false
false
3,651
py
# =============================================================================== # Copyright 2013 Jake Ross # # 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...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
43b33abced12630b4b24f937759544ab20ef8370
7f7bf9a5827d1441f18f568fc75ed5bf0159ca6c
/14_Yandex_Final_Tasks/A/A.py
d4258510d4f596ba4eaf12fd680b41e62c69c28d
[]
no_license
KorsakovPV/yandex_contest
08bcff4eaf38d46a8348ac3abbb5f496857fe8e4
f67917ef710f5b138142b11ec4e6e4678b23e408
refs/heads/master
2023-01-06T13:04:07.955570
2020-10-24T20:22:41
2020-10-24T20:22:41
290,097,693
0
0
null
null
null
null
UTF-8
Python
false
false
2,166
py
""" A. Большое число Вечером ребята решили поиграть в игру "Большое число". Даны числа. Нужно определить, какое самое большое число можно из них составить. Формат ввода В первой строке записано n - количество чисел. Оно не превосходит 100. Во второй строке через пробел записаны n неотрицательных чисел, каждое из кото...
[ "pavelkpv@gmail.com" ]
pavelkpv@gmail.com
7d92023a6701a36aaf56c760746c31ac23388b18
eee85a1ee54fa54e74b93bf3af8391c3f0c80b2a
/basic/pythonweb/string/pythonweb01-01-07.py
e811c4a36ccd9856f65614b3caff5d7a6ac48ac2
[]
no_license
ryu-0406/study-python
8712a6e235e1ca92bb3c00ad053c8298f691108c
da10d5913de32569b2ba4bc98d9919a78e85d22a
refs/heads/master
2022-12-14T22:43:45.236184
2020-09-13T03:55:36
2020-09-13T03:55:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
# coding:utf-8 print("Hello の文字数は " + str(len("Hello"))) print("東京都 の文字数は " + str(len("東京都")))
[ "yoshi-da0406@outlook.jp" ]
yoshi-da0406@outlook.jp
db312e4b277fb2bb1bcd2efcb4f3457c0f939a0b
460f981dfe1a05f14d2a4cdc6cc71e9ad798b785
/3/amd64/envs/navigator/lib/python3.6/site-packages/osgeo/_osr.py
35c7ae045de0cf8a2f9d8473b59af53c353048cc
[ "GPL-2.0-only", "GPL-1.0-or-later", "LGPL-2.0-or-later", "LicenseRef-scancode-mit-old-style", "dtoa", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain-disclaimer", "Zlib", "LicenseRef-scancode-public-domain", "BSD-3-Clause", "LicenseRef-scancode-proprietary-lic...
permissive
DFO-Ocean-Navigator/navigator-toolchain
d8c7351b477e66d674b50da54ec6ddc0f3a325ee
930d26886fdf8591b51da9d53e2aca743bf128ba
refs/heads/master
2022-11-05T18:57:30.938372
2021-04-22T02:02:45
2021-04-22T02:02:45
234,445,230
0
1
BSD-3-Clause
2022-10-25T06:46:23
2020-01-17T01:26:49
C++
UTF-8
Python
false
false
309
py
def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, imp __file__ = pkg_resources.resource_filename(__name__, '_osr.cpython-36m-x86_64-linux-gnu.so') __loader__ = None; del __bootstrap__, __loader__ imp.load_dynamic(__name__,__file__) __bootstrap__()
[ "dwayne.hart@gmail.com" ]
dwayne.hart@gmail.com
a5d2f2afc771f9616114150718cd4b7d835be5b4
30150c7f6ed7a10ac50eee3f40101bc3165ebf9e
/src/coghq/DistributedMazeAI.py
29fd883b37c9512dac79c0b2b4c58979121052c7
[]
no_license
toontown-restoration-project/toontown
c2ad0d552cb9d5d3232ae6941e28f00c11ca3aa8
9bef6d9f823b2c12a176b33518eaa51ddbe3fd2f
refs/heads/master
2022-12-23T19:46:16.697036
2020-10-02T20:17:09
2020-10-02T20:17:09
300,672,330
0
0
null
null
null
null
UTF-8
Python
false
false
4,244
py
from otp.level import DistributedEntityAI from . import DistributedBarrelBaseAI from direct.directnotify import DirectNotifyGlobal from direct.distributed.ClockDelta import globalClockDelta from direct.task import Task class DistributedMazeAI(DistributedEntityAI.DistributedEntityAI): notify = DirectNotifyGlobal....
[ "brianlach72@gmail.com" ]
brianlach72@gmail.com
ffc7b800c075f5e3f3b1a8b71954978a6eb9f058
a46ccf3496712f85e92e15bac27b9f9df23436a4
/notebooks/_solutions/11-xarray-intro2.py
754c8f41d4e050bdd3517d6ecba4c51d5e0bbb59
[ "BSD-3-Clause" ]
permissive
jorisvandenbossche/DS-python-geospatial
a30ef43daa1d8cfd9d5652ab047bd828573bb493
cd5d63057a335e0cb157faf12b945ec664da4c10
refs/heads/main
2022-11-24T09:55:06.552714
2022-11-20T22:15:50
2022-11-20T22:15:50
244,412,214
134
39
BSD-3-Clause
2023-09-14T17:10:54
2020-03-02T15:57:19
Jupyter Notebook
UTF-8
Python
false
false
70
py
!gdalinfo ./data/gent/raster/2020-09-17_Sentinel_2_L1C_True_color.tiff
[ "noreply@github.com" ]
jorisvandenbossche.noreply@github.com
e71df24b87f48a17c62c90b1f716500fac38224f
5c4136623d2ffea23d9e4d25e4f930f06cb627f3
/tapis_cli/commands/taccapis/v2/jobs/helpers/error.py
0457ab4a363f6ab7a9217d436d081e16e837c4c8
[ "BSD-3-Clause" ]
permissive
shwetagopaul92/tapis-cli-ng
3ca8ee0127fca435151a2f2e6dbdb26ab501d470
6f424b8352c0d034d4f5547fac21d5c8dd097a7f
refs/heads/master
2020-12-13T09:31:33.334743
2020-01-08T19:14:51
2020-01-08T19:14:51
234,377,360
0
0
BSD-3-Clause
2020-01-16T17:45:14
2020-01-16T17:45:13
null
UTF-8
Python
false
false
2,221
py
"""Exceptions and error handlers """ import logging import re import os import time from agavepy.agave import AgaveError from attrdict import AttrDict from requests.exceptions import HTTPError __all__ = [ 'AgaveError', 'HTTPError', 'HTTPNotFoundError', 'TapisOperationFailed', 'ImportNotCompleteError', 'OutputF...
[ "vaughn@tacc.utexas.edu" ]
vaughn@tacc.utexas.edu
3ce314bb3d0814413a90400f26fbcd5b9b62d98b
177338a720f904f63926da055364cc0e2c0a850c
/spark/pyspark(by Leaderman git)/1.5.1/examples/app/spark_app_read_data_from_rcfile.py
b07906362ca93ab5697ccd402ee00a50a9c8df24
[ "Apache-2.0" ]
permissive
xuefenga616/mygit
60ef7bf7201603e13d4621cf7a39dea8ec92e0b7
be3b8003fcc900ce7ca6616a9ddebb0edcbc1407
refs/heads/master
2020-09-13T11:50:55.448041
2017-08-27T10:59:00
2017-08-27T10:59:00
67,042,409
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
from pyspark import SparkConf, SparkContext conf = SparkConf().setAppName("spark_app_read_data_from_rcfile") sc = SparkContext(conf=conf) rowRDD = sc.hadoopFile(path="hdfs://dip.cdh5.dev:8020/user/yurun/rcfile", inputFormatClass="org.apache.hadoop.hive.ql.io.RCFileInputFormat", ...
[ "xuefeng_11@qq.com" ]
xuefeng_11@qq.com
5e3d144b21f3cc4d6896b030c0544b9efcf416f2
f09155ed20774a4fbf2a117ae43b38223642e9d8
/businessworldenv/bin/virtualenv
6caf2a67fb43d5247454f93bc71a794b29e74332
[]
no_license
krsumit/bwn
eeebbd8cf21cf7e8cc3ba7b180605d664e655876
17d894760099640d44ec70ecaf5b15c764efd658
refs/heads/master
2023-01-04T14:06:03.426185
2019-10-01T04:17:20
2019-10-01T04:17:20
212,008,994
0
0
null
2022-12-26T20:15:56
2019-10-01T03:58:29
Python
UTF-8
Python
false
false
250
#!/home/sumit/businessworld/businessworldenv/bin/python # -*- coding: utf-8 -*- import re import sys from virtualenv import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "kr.sumit89@gmail.com" ]
kr.sumit89@gmail.com
f9de43be1783e9e199bc07fac2b6171e9cd208b6
888a39e5e75f0e8311bbef63749685acf67fe715
/clubs/migrations/0004_auto_20150313_0759.py
dcccaf36853555bf052545438947b8beb7c4d180
[]
no_license
mozilla/teach-api
94820e4ef9d51b1735b046a2a76cfbb9a37321da
35a38df7addb8ca37e014705fe056755c3c1564f
refs/heads/master
2023-09-01T09:00:37.995896
2016-12-15T19:42:23
2016-12-15T19:42:23
32,082,559
3
12
null
2019-03-29T05:11:24
2015-03-12T14:50:19
Python
UTF-8
Python
false
false
994
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('clubs', '0003_auto_20150313_0020'), ]...
[ "varmaa@gmail.com" ]
varmaa@gmail.com
d091faee1b1bd72dac81cd9817bad618455a9452
a3978d2c5367b116e77c73637d6c04f6cb8bc8a8
/1807-1/07day/14-登录.py
1bbd9e9ee574d863a8484430290440535cae5329
[]
no_license
liuchenghao2000/1807
9acb1abd0035f93113cd7c1bda5b2b30f511a4d7
cdbec3aae134b6f5ed0208fb5f8ee3e2a874a4ae
refs/heads/master
2020-03-27T07:17:25.369702
2018-09-06T01:46:28
2018-09-06T01:46:28
139,957,605
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
account = 123456 password = 'abc' a = int(input('请输入账号:')) p = input('请输入密码:') if a == account and p == password: print('登陆成功') elif a != account: print('账号不对') elif p != password: print('密码错误')
[ "1773719461@qq.com" ]
1773719461@qq.com
a7d48e2bafd809734b00ae7ea6448ee5177d6c71
68a088346090ae4e929c208906b14181da0f92f6
/第一阶段/2. Python01/day04/exercise/08_number_10_1.py
50ffea441d3c73ca42350f9b2ebcdb270aa294c1
[]
no_license
LONG990122/PYTHON
d1530e734ae48416b5f989a4d97bd1d66d165b91
59a2a2a0b033c8ad0cb33d6126c252e9d574eff7
refs/heads/master
2020-07-07T09:38:03.501705
2019-09-23T16:28:31
2019-09-23T16:28:31
203,316,565
0
0
null
2019-10-23T15:02:33
2019-08-20T06:47:44
HTML
UTF-8
Python
false
false
105
py
# 3. 用while语句打印 10 ~ 1的所有整数(包含1) i = 10 while i >= 1: print(i) i -= 1
[ "54302090+LONG990122@users.noreply.github.com" ]
54302090+LONG990122@users.noreply.github.com
115dec5e597d87a852c7cd0e1e0fb2a005e0196e
54c5ddf4d427c52447a983b8e26409fdb4de6c11
/src/architectures/jet_transforms/nmp/fixed_nmp/fixed_nmp.py
b844083ab5732d9827823ede20402583841bff3a
[ "BSD-3-Clause" ]
permissive
XintianHan/jets
eda3b0f4f1256b57669cc59664d22b38d3999bc1
2ee178eaa7f6629d25ca87ee1096e5ea5d15bfd3
refs/heads/master
2021-04-18T21:35:03.263843
2018-03-22T21:32:35
2018-03-22T21:32:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,785
py
import os import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable #from .adjacency import construct_physics_based_adjacency_matrix #from ..stacked_nmp.attention_pooling import construct_pooling_layer from ..message_passing import MP_LAYERS #from ..message_passing.adja...
[ "isaachenrion@gmail.com" ]
isaachenrion@gmail.com
619650f861eaee6a6fc6e373f4559eec6ede90b5
5963c12367490ffc01c9905c028d1d5480078dec
/homeassistant/components/rachio/webhooks.py
94c79a1504f06214aa4c2cdbc3d1318956b902b8
[ "Apache-2.0" ]
permissive
BenWoodford/home-assistant
eb03f73165d11935e8d6a9756272014267d7d66a
2fee32fce03bc49e86cf2e7b741a15621a97cce5
refs/heads/dev
2023-03-05T06:13:30.354545
2021-07-18T09:51:53
2021-07-18T09:51:53
117,122,037
11
6
Apache-2.0
2023-02-22T06:16:51
2018-01-11T16:10:19
Python
UTF-8
Python
false
false
4,360
py
"""Webhooks used by rachio.""" from aiohttp import web from homeassistant.const import URL_API from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_send from .const import ( CONF_CLOUDHOOK_URL, CONF_WEBHOOK_ID, DOMAIN, KEY_EXTERNAL_ID, KEY_TYPE, ...
[ "noreply@github.com" ]
BenWoodford.noreply@github.com
6abfb37f56100c04c5a8cbe2d7015c80c253cf6e
711756b796d68035dc6a39060515200d1d37a274
/output_cog_tags/optimized_5276.py
f96515b50804aa1965f08969e7801c0d9cc5cbeb
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
4,580
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
[ "batxes@gmail.com" ]
batxes@gmail.com
e98489d6b8cb40edbfccddb2db4baba39162bb6f
d7016f69993570a1c55974582cda899ff70907ec
/sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_03_01/aio/operations/_metric_alerts_status_operations.py
1576cd774f361745d159f2234176c397ca099b72
[ "MIT", "LicenseRef-scancode-generic-cla", "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
7,849
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
b70ee8da1219dd9283206acf0b078fbbe721eef6
558157826e0d25ff8f8e1e3a99a602832b49cfae
/model_0/mtl_model.py
78ab9c906397f549608234f6815d6fb3659eb38a
[]
no_license
xljhtq/Transfer-learning-
3ed5d6b8663cc852193f5b5935e7932732158910
44e83b30753dd92dbc5d4fae2d85aa8aaef2c82c
refs/heads/master
2020-03-22T21:45:00.927073
2018-08-08T06:56:24
2018-08-08T06:56:24
140,711,696
0
0
null
null
null
null
UTF-8
Python
false
false
8,166
py
# encoding=utf8 import tensorflow as tf from base_model import * TASK_NUM = 2 class MTLModel(): def __init__(self, max_len=25, filter_sizes=1, num_filters=1, num_hidden=1, word_vocab=None, l2_reg_lambda=0.0, ...
[ "you@example.com" ]
you@example.com
ecdb4d5eb81b318690c4501b23d6c5cb5c461614
3f8114f42e5d86f539827ec502fef390f8986908
/tools/Polygraphy/polygraphy/backend/base/runner.py
ab0c28c6ba8ae53688fb8547abc041991fa05523
[ "Apache-2.0", "BSD-3-Clause", "ISC", "BSD-2-Clause", "MIT" ]
permissive
MilanPutnik/TensorRT
47dc6fc612a0dce02d0bb3b448d9124136443bd6
eb8442dba3c9e85ffb77e0d870d2e29adcb0a4aa
refs/heads/master
2023-06-29T12:42:01.122631
2021-08-05T19:15:26
2021-08-05T20:14:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,994
py
# # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ "rajeevsrao@users.noreply.github.com" ]
rajeevsrao@users.noreply.github.com
16928356a06c1cffc5c619e3e67d56b0eaf4414c
18825807a4cf373f00419e46ac70566d17115e9e
/top_interview_questions/easy/linked_list/merge_two_sorted_lists.py
029cef4d6de1b99c91d8a393ac56ff86aff1ced9
[]
no_license
StefanRankovic/leetcode
51154d7297b4674c62e481c6c13016097207b4d0
bbed81b50acaef025186648c61110dbf65e5f6cb
refs/heads/master
2023-02-20T06:16:02.913457
2021-01-24T09:42:50
2021-01-24T09:42:50
266,200,324
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode: head = current = ListNode() while l1 and l2: if l1.val <...
[ "stefan.rankovic.89@gmail.com" ]
stefan.rankovic.89@gmail.com
624993d2163e8fe840c9d4e7291e4d17025c0920
e47afb9557d5143da9397faa9d63003ec7b84b0d
/4_5_List comprehension and generator expressions/Main.py
0f3bb1163ed1bf5569b3eda82ee2c2ab4e9b0f01
[]
no_license
Pavlo-Olshansky/Python_learns_1
feb12d6a258d98162844efec465343b7cfc14788
98d278198dca833887e456f09934a4b4c336bf40
refs/heads/master
2021-01-19T13:29:47.174180
2019-12-16T08:16:35
2019-12-16T08:16:35
82,393,126
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
xyz = [i for i in range(5)] print(xyz) xyz = (i for i in range(5)) # generator - it's in your memory now print(xyz) for i in xyz: print(i) # Generator's faster creating, but for working with them - it's longer print('-------- 5 ----------\n') input_list = [1, 5, 7, 10, 3, 20, 25, 12, 5] def div_by_five(num):...
[ "pavlo.olshansky@gmail.com" ]
pavlo.olshansky@gmail.com
e1480a36e4bd0529d505b4b9880353a5e348cd05
818c7b09d7e264c130a849f86dabaa3d43656870
/pycharm学习-基础篇/python模块/1.1时间模块.py
4938bf771a3a97e2f539239d9f336f6ae9b1c548
[]
no_license
rishinkaku/python_course
b89d51b38f64248e074ba66230353b1b335475ab
6a2f2c175c863776a0e1125a8359a8ea97b95456
refs/heads/master
2020-03-28T11:50:20.231058
2018-08-29T13:01:59
2018-08-29T13:01:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,584
py
# 时间戮 import time print(time.time()) # 通常时间表示从1970年1月1日00:00:00开始以秒为单位,返回的是一个float型数据 print(type(time.time())) # 通常时间表示从1970年1月1日00:00:00开始以秒为单位,返回的是一个float型数据 print(time.clock()) # 函数以浮点数计算的秒数返回当前的CPU时间,用来衡量不同程序的耗时 ''' 符号 简述 %a 本地简化的星期的名称 %A 本地完整的星期的名称 %b 本地简化的月份的名称 %B 本地完整的月份的...
[ "1677913969@qq.com" ]
1677913969@qq.com
2b1d066588fdf49853d3a8579e4a7f5074b31883
ba694353a3cb1cfd02a6773b40f693386d0dba39
/sdk/python/pulumi_google_native/compute/beta/get_region_target_https_proxy.py
0cb9326854df08d9d949161935495de42c541b87
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-google-native
cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b
124d255e5b7f5440d1ef63c9a71e4cc1d661cd10
refs/heads/master
2023-08-25T00:18:00.300230
2023-07-20T04:25:48
2023-07-20T04:25:48
323,680,373
69
16
Apache-2.0
2023-09-13T00:28:04
2020-12-22T16:39:01
Python
UTF-8
Python
false
false
16,607
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 copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _u...
[ "noreply@github.com" ]
pulumi.noreply@github.com
368bcb43fae4cd5bd1b4080cb962bf41bf443ccd
ecb6b752523a126ef17895854b18e02df41c4cfe
/api_restful/user/api.py
419c2cc52c3f7985a8cb407d107b4cbb59b9a520
[ "MIT" ]
permissive
zhanghe06/bearing_project
cd6a1b2ba509392da37e5797a3619454ca464276
25729aa7a8a5b38906e60b370609b15e8911ecdd
refs/heads/master
2023-05-27T17:23:22.561045
2023-05-23T09:26:07
2023-05-23T09:39:14
126,219,603
2
5
MIT
2022-12-08T03:11:27
2018-03-21T17:54:44
JavaScript
UTF-8
Python
false
false
3,193
py
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: api.py @time: 2020-02-28 21:26 """ import datetime from api_restful.databases.bearing import db_bearing from app_common.maps.status_delete import STATUS_DEL_OK from api_restful.models.model_bearing import User from app_common.li...
[ "zhang_he06@163.com" ]
zhang_he06@163.com
cb4beb5018f9938b6d550942065e3d19aee69687
8fa162cddb2046cb47f3a06c72743ed67685d03a
/dvc/dependency/__init__.py
50222f02926bcad6b80fa0a1227b00b7b0ee84f1
[ "Apache-2.0" ]
permissive
franekp/dvc
be9c123f03b77daa39781bd7e62fa25b9fae449f
e380a4a8586da643bf4e0d2281b13aee0d5e5207
refs/heads/master
2020-03-19T18:35:47.416381
2018-06-10T14:35:49
2018-06-10T14:35:49
136,816,230
0
0
Apache-2.0
2018-06-10T14:32:53
2018-06-10T14:32:52
null
UTF-8
Python
false
false
1,817
py
import schema try: from urlparse import urlparse except ImportError: from urllib.parse import urlparse from dvc.exceptions import DvcException from dvc.config import Config from dvc.dependency.base import DependencyBase from dvc.dependency.s3 import DependencyS3 from dvc.dependency.gs import DependencyGS fro...
[ "kupruser@gmail.com" ]
kupruser@gmail.com
a21b985a33b211dbc95789f7ecfdc4031a33ccba
5a281cb78335e06c631181720546f6876005d4e5
/openstack-heat-12.0.0/heat/engine/clients/os/nova.py
d19fa19c347834f3d56c2d1e010fd5736da3769e
[ "Apache-2.0" ]
permissive
scottwedge/OpenStack-Stein
d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8
7077d1f602031dace92916f14e36b124f474de15
refs/heads/master
2021-03-22T16:07:19.561504
2020-03-15T01:31:10
2020-03-15T01:31:10
247,380,811
0
0
Apache-2.0
2020-03-15T01:24:15
2020-03-15T01:24:15
null
UTF-8
Python
false
false
31,690
py
# # 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, software # ...
[ "Wayne Gong@minbgong-winvm.cisco.com" ]
Wayne Gong@minbgong-winvm.cisco.com
2930fa9babf35f81f35faa2bbf66995d8fec0ff7
1e6405a73cdcbf973422c49286f1684eaeba02c3
/venv/lib/python3.6/io.py
38b2f96ea8f2a9f9b26028ce56e01933d13c3535
[]
no_license
hluffy/energy
f398472df8bf3986ffb2e3a357bca40aafd41d13
d0d4a11f16ee23aa3fbf171d9a978be2a7538e3d
refs/heads/master
2021-05-05T12:32:40.487642
2018-01-29T15:06:37
2018-01-29T15:06:37
118,255,373
0
3
null
null
null
null
UTF-8
Python
false
false
42
py
/Users/rikka/anaconda3/lib/python3.6/io.py
[ "18801613171@163.com" ]
18801613171@163.com
ada4e614cc5df9247d515e08a82694f458afec8b
4d0cf37d15fda02881c5b8dcdb1f0076bb31c778
/lifelike/utils.py
333c2bc8c859c626173cd738f634a22aa3c49bef
[ "MIT" ]
permissive
sudoentropy/lifelike
b53d70e666d94fdd266ea3567aa9291baf42efdf
2af3a9d25e777f67648f772f805ee66d6982bab0
refs/heads/master
2023-01-19T05:28:35.152335
2020-11-15T02:48:30
2020-11-15T02:48:30
290,666,687
0
0
MIT
2020-08-27T03:33:52
2020-08-27T03:33:51
null
UTF-8
Python
false
false
620
py
from functools import wraps import cloudpickle as pickle def must_be_compiled_first(function): @wraps(function) def f(self, *args, **kwargs): if not self.is_compiled: raise ValueError( "You must run .compile first on the model before using this method." ) ...
[ "cam.davidson.pilon@gmail.com" ]
cam.davidson.pilon@gmail.com
256e9f2acc7001d59650a9633bf384d5377f1b05
66b82b6b95dd4eb85f037ed8c70a9dc0cccc16e4
/app/view_models/book.py
91e719be3070dc400a9b4ce0fd4a227e56128885
[]
no_license
jpch89/fishbook
6c359b5efec88cbb414b72504a9131f924fe5f60
97db589046b9d59107033fa0ba9c071e63b6fcc0
refs/heads/master
2022-12-10T17:39:45.835372
2019-03-07T08:53:13
2019-03-07T08:53:13
144,078,892
0
0
null
null
null
null
UTF-8
Python
false
false
2,148
py
# -*- coding: utf-8 -*- # @Author: jpch89 # @Time: 2018/8/14 22:44 class BookViewModel: def __init__(self, book): self.title = book['title'] self.publisher = book['publisher'] self.author = '、'.join(book['author']) self.image = book['image'] self.price = book['...
[ "jpch89@outlook.com" ]
jpch89@outlook.com
ea316e15a1e1e0ff59fbe6cb5228abfa0b24ffb3
1e013dc5f0de0f61e27f2867557803a01c01f4da
/Language/python/grammer/decorator/6_func_impl.py
63f6ff403a1a6df4d392df63c3735e914233c4a4
[]
no_license
chengyi818/kata
a2941ce8675c6e7a47169a0eae4c757d3f6f5bf9
a7cb7ad499037bcc168aaa0eaba857b33c04ef14
refs/heads/master
2023-04-10T18:39:09.518433
2023-01-08T15:22:12
2023-01-08T15:22:12
53,040,540
1
0
null
2023-03-25T00:46:51
2016-03-03T10:06:58
C++
UTF-8
Python
false
false
554
py
#!/usr/bin/env python3 # Author: ChengYi # Mail: chengyi818@foxmail.cn # created time: Thu 21 Sep 2017 10:29:02 AM CST def make_bold(func): print('Initialize') def wrapper(): print('Call') return '<b>{}</b>'.format(func()) return wrapper def get_content(): return "hello world" @ma...
[ "chengyi818@foxmail.com" ]
chengyi818@foxmail.com
16529f3d07c226ff0580848d78c9cdaa4cb386d7
c5222000bf859009850452ec7bcf1533f7bf59f7
/color_picker.py
441acc9eaccbd29186422b5dc395c9f72cf5debc
[]
no_license
nss-day-cohort-25/07-06-orientation-classes
38b016995c0a6273268d07104c0db2124383592a
9ed6046550e7b5254f8237efab47a057b74c94de
refs/heads/master
2020-03-22T14:52:01.360486
2018-07-09T17:31:10
2018-07-09T17:31:10
140,211,391
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
class ColorPicker(): def __init__(self, primary_color, **kwargs): self.primary_color = primary_color for key, value in kwargs.items(): setattr(self, key + "_color", value) def get_colors(self): return {k: v for k, v in self.__dict__.items() if 'color' in k}
[ "joeshepmedia@gmail.com" ]
joeshepmedia@gmail.com
775999792fcec355ac984e6f1f97f26fbf4e854b
7950c4faf15ec1dc217391d839ddc21efd174ede
/leetcode-cn/2038.0_Remove_Colored_Pieces_if_Both_Neighbors_are_the_Same_Color.py
aa42c48cf130143120865f6675418d6da1b8c5b4
[]
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
3,461
py
''' T: O(N) S: O(1) 执行用时:112 ms, 在所有 Python3 提交中击败了98.98% 的用户 内存消耗:15.6 MB, 在所有 Python3 提交中击败了28.57% 的用户 通过测试用例:83 / 83 ''' class Solution: def winnerOfGame(self, colors: str) -> bool: a, b, pre = 0, 0, None part_a = part_b = 0 for ch in colors: if ch == pre: ...
[ "laoxing201314@outlook.com" ]
laoxing201314@outlook.com
bf375adb961dbcf915e1628a1b202e385aba4351
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4422/codes/1585_842.py
db14692d52f1f0a69e0aaedd361b0687c76c6431
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
230
py
# Teste seu codigo aos poucos. # Nao teste tudo no final, pois fica mais dificil de identificar erros. # Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo. x = int(input("Digite um numero: ")) print(x)
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
89e76250fd7a81725656d24793ecea39670bdd46
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/sympy_sympy/sympy-master/sympy/physics/secondquant.py
8dba14cc405a810a1bba93a2e215cdeee27fee98
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
88,597
py
""" Second quantization operators and states for bosons. This follow the formulation of Fetter and Welecka, "Quantum Theory of Many-Particle Systems." """ from __future__ import print_function, division from collections import defaultdict from sympy import (Add, Basic, cacheit, Dummy, Expr, Function, I, ...
[ "659338505@qq.com" ]
659338505@qq.com
1a4bf86142afa60772834ed02506ed40060db509
0b9e884be78ecc22a44a94e2c1cabefd637b9ed0
/Python_Talk/mpt-master/ch14/live_price.py
04c8d8d261bcbee41454ee1c2b57b439f4d9d005
[]
no_license
marcovnyc/penguin-code
6ba3faa5f21186918e2d08f5a0fcacebb2697e56
a0c1f91219ff74a8bb8e9fd3375b03b667056b54
refs/heads/master
2021-12-22T15:04:26.002512
2021-12-16T04:01:40
2021-12-16T04:01:40
7,264,458
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
from yahoo_fin import stock_info as si # Start an infinite loop while True: # Obtain ticker symbol from you ticker = input("What's the ticker symbol of the stock you are looking for?\n") # If you want to stop, type in "done" if ticker == "done": break # Otherwise, type in a stock t...
[ "penguin@penguin.com" ]
penguin@penguin.com
d6dff94c7a3c17100e31444270570019c51afe06
611ffe1973f843626000e2320c1d425cdf0995ca
/lib/modules/synthesis_decoder.py
cddd9d53ae22e5c5bcb03badb09275f99bd209cc
[]
no_license
kapitsa2811/Text2Scene
f5b1ff803329a68f9035420481db651e5fb0cf54
f471771cb8e6f8e1e27296f2c535b84fa27a79ed
refs/heads/master
2020-06-11T03:07:09.853489
2019-06-19T05:19:53
2019-06-19T05:19:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,853
py
#!/usr/bin/env python import math, cv2 import numpy as np import torch import torch.nn as nn from torchvision import models from modules.separable_convolution import same_padding_size # from modules.bilinear_downsample import BilinearDownsample import torch.nn.functional as F from modules.separable_convolution import ...
[ "fuwen.tan@gmail.com" ]
fuwen.tan@gmail.com
25189b66364fe5afb9c41481a00735828b4ffd74
14f455693213cae4506a01b7d0591e542c38de79
/config/munin/hookbox
95845775bd8e21f8cfa9f7bb60dcb248538dd6b1
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Cvalladares/Newsblur_Instrumented
f0b14d063759973330f202108a7eed3a29bcc033
4d6ee6aa9713879b1e2550ea5f2dbd819c73af12
refs/heads/master
2022-12-29T15:19:29.726455
2019-09-03T17:09:04
2019-09-03T17:09:04
206,130,022
0
0
MIT
2022-12-10T06:00:26
2019-09-03T17:07:04
Python
UTF-8
Python
false
false
1,641
#!/srv/newsblur/venv/newsblur/bin/python import os import json import urllib import urllib2 from vendor.munin import MuninPlugin class HookboxPlugin(MuninPlugin): title = 'hookbox' args = "--base 1000" vlabel = "Y" info = "Subscibed users" scale = False def get_channels(s...
[ "Cvalladares4837@gmail.com" ]
Cvalladares4837@gmail.com
870388e6f5642063a0b73de0282f49f939814e28
aedd3aeadfb13eda4489d26ee3d9762598878936
/leetcode/111. 二叉树的最小深度.py
70ee52bca1092dfa4ae3db932f4be11bf0763e60
[]
no_license
AnJian2020/Leetcode
657e8225c4d395e8764ef7c672d435bda40584c7
cded97a52c422f98b55f2b3527a054d23541d5a4
refs/heads/master
2023-03-26T16:25:36.136647
2021-03-26T07:04:10
2021-03-26T07:04:10
283,940,538
1
0
null
null
null
null
UTF-8
Python
false
false
527
py
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def minDepth(self, root: TreeNode) -> int: if not root: return 0 elif root.left is None and root.right is None: return 1 else: ...
[ "xuhao2018@foxmail.com" ]
xuhao2018@foxmail.com
ef350d4222192afd3cb54baab0613d0cc93f46a1
d9eef8dd3489682c8db41f2311e3058d1f369780
/.history/abel-network-files/metis_transf_20180709120220.py
efc72c43810042d5e2eddbbadbc20d2d9643e947
[]
no_license
McKenzie-Lamb/Gerrymandering
93fe4a49fe39a0b307ed341e46ba8620ea1225be
b7a7c4129d6b0fcd760ba8952de51eafa701eac3
refs/heads/master
2021-01-25T06:06:43.824339
2018-10-16T14:27:01
2018-10-16T14:27:01
93,526,515
0
0
null
2018-07-12T19:07:35
2017-06-06T14:17:47
Python
UTF-8
Python
false
false
1,080
py
# Author: Abel Gonzalez # Date: 06/26/18 # # Description: # This program uses the .shp file to create a network graph where each node # represents a census tract and the edge represents adjacency between each # tract, usign graph-tool instead of networkx import graph_tool.all as gt import metis from pathlib import Pat...
[ "gonzaleza@ripon.edu" ]
gonzaleza@ripon.edu
fe487c41d5826fb6bcb3c75532dc7c84986de7df
0dc37ab83fc6603770ba60050fc3d46534b3ef65
/backend/shah_rukh_2_dev_16118/settings.py
f652824a018a14d25dffd321a0319273f3cde280
[]
no_license
crowdbotics-apps/shah-rukh-2-dev-16118
c668cdbf67780b1c0715013725c49edad4c84e11
1d39dd000cee1dd28ff33a0c8837d7443bf667e6
refs/heads/master
2023-01-19T00:29:50.251660
2020-12-03T09:26:54
2020-12-03T09:26:54
317,791,591
0
0
null
null
null
null
UTF-8
Python
false
false
7,035
py
""" Django settings for shah_rukh_2_dev_16118 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
e6a1599936b8a69e0e220ace641024745c01d0ab
85a1d1c79c152903e48ac29f2cd066c21e825485
/lcbru_events/views/home.py
19631feef3331bd6e46cf96532475d975774e3c0
[ "MIT" ]
permissive
LCBRU/lcbru-events
2fd02f196ec9cbf31f76ec2f2dff2e7c0ea7f4d3
97245fbc711fc1876643d23df635d82752509040
refs/heads/master
2021-06-06T19:42:43.750497
2016-10-27T10:40:12
2016-10-27T10:40:12
43,355,191
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
from flask import render_template from lcbru_events import app @app.route('/') def index(): return render_template('index.html')
[ "rabramley@gmail.com" ]
rabramley@gmail.com
76e85db8873a136388ecef88893460abfada2771
a1b795c17832c1ec4a4a942b7e35c1f9d283b4db
/examples/timeline.py
a2075a79236a537b8ab42e32a2b7811b7b32b626
[ "MIT" ]
permissive
ammunk/cassiopeia
016f1a79bcdb4758953625a5953ca19f3b79ccf4
4e77919f53a130b3f16977c76cc5f54f3868d8e5
refs/heads/master
2020-04-12T23:19:13.401624
2018-12-19T15:51:21
2018-12-19T15:51:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
import cassiopeia as cass from cassiopeia import Summoner def print_newest_match(name: str, account: int, id: int, region: str): summoner = Summoner(name=name, account=account, id=id, region=region) match_history = summoner.match_history match = match_history[0] print('Match ID:', match.id) prin...
[ "jjmaldonis@gmail.com" ]
jjmaldonis@gmail.com
ffe4b244fa0304750d3e5f01849ae46acf1ed9d2
074421d31af92ae29c7c78bdb7e50f199a38eb9b
/weixin/code/rfid_plt/db_sync/db_sync_event_app/db_sync_exp_handler.py
eca438dee2310d1ebfc7ecb52f001794329dece9
[]
no_license
allenforrest/wxbiz
3f49ce66b37e281fc375f548610aa54a0f73268f
e78df71fbc5d73dd93ba9452d4b54183fe1e7e1f
refs/heads/master
2016-09-06T15:17:49.420934
2013-08-05T13:13:40
2013-08-05T13:13:40
null
0
0
null
null
null
null
GB18030
Python
false
false
11,326
py
#coding=gbk """ Copyright (C), 2012-2015, Anything Connected Possibilities Author: ACP2013 Version: 1.0 Date: Description: 本文件中实现了处理数据导出命令的handler Others: Key Class&Method List: 1. DBSyncExportHandler: 处理数据导出命令的handler History: 1. Date: Author: Modification: """ import os.path import zipfil...
[ "allenxu@gmail.com" ]
allenxu@gmail.com
d69062af5e4d244aba9c8bd7406683449558f838
66f17204c2bc83c9edbde10eda1797752a9e4e37
/download_data.py
7df33ed7924489c3e153d839d2ea478aec8cbbee
[ "MIT" ]
permissive
lukassnoek/ICON2017
a698df9dc583408c8ea9893bc65b18fa1397224e
4797357978577317c65d8aed06d49aa842a6e653
refs/heads/master
2023-08-08T02:07:42.649391
2023-08-01T18:50:43
2023-08-01T18:50:43
95,113,866
23
6
null
2017-08-06T11:44:17
2017-06-22T12:35:47
Jupyter Notebook
UTF-8
Python
false
false
1,410
py
""" This script downloads the data for the ICON2017 MVPA workshop from Surfdrive (a data storage repository/drive from the Dutch institute for IT in science/academia) using cURL, which should be cross-platform. """ from __future__ import print_function import subprocess import os import zipfile import os.path as op im...
[ "lukassnoek@gmail.com" ]
lukassnoek@gmail.com
1610566f544070fb05ac4fa174c60cccc4d70b9d
ae6189642a07fd789f51caadb924328a54919cac
/100-problems/review/minimum-spanning-tree/65-finals.py
e4f3b830d0c3a9a5dadb40a5102023f83f0676f9
[]
no_license
d-matsui/atcorder
201e32403653b2fdf0d42188faf095eb8b793b86
22ec1af8206827e10a986cb24cf12acc52ab1d6a
refs/heads/master
2020-09-27T23:15:27.281877
2020-09-01T13:24:34
2020-09-01T13:24:34
226,632,569
0
0
null
null
null
null
UTF-8
Python
false
false
1,289
py
#!/usr/bin/env python3 from pprint import pprint from collections import deque, defaultdict import itertools import math import sys sys.setrecursionlimit(10 ** 6) INF = float('inf') N, M, K = map(int, input().split()) edges = [] for _ in range(M): u, v, w = map(int, input().split()) edges.append([u-1, v-1, w...
[ "mti.daiki@gmail.com" ]
mti.daiki@gmail.com
004c6fef77001f731bfe2d9f676ea0d9f9ab8385
2eae961147a9627a2b9c8449fa61cb7292ad4f6a
/test/test_post_business_exchange_rates_business_exchange_rate.py
22b1621a24d2d74a9197a5506af05ada3ce07a5b
[]
no_license
kgr-eureka/SageOneSDK
5a57cc6f62ffc571620ec67c79757dcd4e6feca7
798e240eb8f4a5718013ab74ec9a0f9f9054399a
refs/heads/master
2021-02-10T04:04:19.202332
2020-03-02T11:11:04
2020-03-02T11:11:04
244,350,350
0
0
null
null
null
null
UTF-8
Python
false
false
1,920
py
# coding: utf-8 """ Sage Business Cloud Accounting - Accounts Documentation of the Sage Business Cloud Accounting API. # noqa: E501 The version of the OpenAPI document: 3.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime imp...
[ "kevin.gray@eurekasolutions.co.uk" ]
kevin.gray@eurekasolutions.co.uk
08ac7056e18731742d5bd1cc2e2715f239731609
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2351/60636/244985.py
6927ce260bfd2b8f832d5b9567ff1180a363ec44
[]
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,073
py
n=int(input()) sources=[] for i in range(n-1): x=input().split(" ") source=[] for a in x: source.append(int(a)) sources.append(source) number=[] for i in range(1,n+1): delete=sources.copy() for y in sources: if(i in y): delete.pop(delete.index(y)) all_length=[] ...
[ "1069583789@qq.com" ]
1069583789@qq.com
3b60a0ef31e458ff25833ae08e6a1a19c405cd80
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02554/s906353100.py
63f22ea43ad73184db4b8730747a390cd77a1b73
[]
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
72
py
N = int(input()) ans = 10**N - 2*(9**N) + 8**N print(ans % 1000000007)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7bfd897fff357e2cc168ed67c397530fca7c3742
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/choropleth/colorbar/_titleside.py
3de81a3fa5674ea7244e6816a53d2b3a7e0e4379
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
510
py
import _plotly_utils.basevalidators class TitlesideValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name='titleside', parent_name='choropleth.colorbar', **kwargs ): super(TitlesideValidator, self).__init__( plotly_name...
[ "adam.kulidjian@gmail.com" ]
adam.kulidjian@gmail.com
c2c73c9559c6f08d54ca4743125ef3d87c63a6f0
a6ca86b1dce35a9a59405b29e1f97e13bf1c7fc1
/tests/src/TestSuites/FunctionalTestSuite/Run_SchoolInfraReport.py
66f303df061a96feb40930453863ac3e89c44158
[ "MIT" ]
permissive
htvenkatesh/cQube
44a0bfd9a281b07992f17c2d885392e62b3d0a83
c6e91d58fef5084b8b5962f313cd49f0400d7bfa
refs/heads/master
2022-12-04T02:40:54.425582
2020-08-21T07:21:47
2020-08-21T07:21:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,756
py
import time from get_dir import pwd from CRC import crc_report_functional_testing from SI.MAP import School_Map_functional_testing from SI.Report import School_report_functional_testing import unittest from HTMLTestRunner import HTMLTestRunner from reuse_func import GetData class MyTestSuite(unittest.TestCase): ...
[ "laxmikanth.vattamvar@tibilsolutions.com" ]
laxmikanth.vattamvar@tibilsolutions.com
e825711d2ef3481e8e03c6fa417bda5c8e25bd25
f1c6ccd9431b459a78b49e5a9d472a2f69de2c80
/appdaemon/settings/apps/systems.py
166bd6fb5842c3d765ab8e2875c0b477b152a35c
[]
no_license
vipk31/smart-home
36fc1a726941ebf70d69104ce22881e281511713
e1319faca579eebec0478e6b04f7f612571ccdb0
refs/heads/master
2020-07-15T11:25:06.126301
2019-08-31T06:03:22
2019-08-31T06:05:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,869
py
"""Define automations for various home systems.""" from typing import Callable, List, Optional, Union import requests import voluptuous as vol from core import APP_SCHEMA, Base from const import ( CONF_DURATION, CONF_ENTITY_ID, CONF_ENTITY_IDS, CONF_NOTIFICATION_INTERVAL, CONF_NOTIFICATION_TARGET,...
[ "bachya1208@gmail.com" ]
bachya1208@gmail.com
c81d93a49136768a898af81f73879a9dc37451d7
f2ec1298c00d813c7e973cac22184ea8f54eb60c
/MxShop/apps/goods/migrations/0009_auto_20190526_1746.py
3161358484d5d2ccc8825db304559f7006c8be63
[]
no_license
llf-1996/mx_drf
fcfaa028630eeb02be91af5e30fb2a200037400c
f4878c0d9857e7af7277d10cc32da5d9c522de0c
refs/heads/master
2020-06-05T06:51:49.629343
2019-06-17T13:20:29
2019-06-17T13:20:29
192,350,339
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-05-26 17:46 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('goods', '0008_auto_20170826_1201'), ] operations = [ migrations.AlterModelTable( ...
[ "2367746876@qq.com" ]
2367746876@qq.com
32eb948acc27bdfecd863a46de5660de37ba0f63
29da2ca6def1270be13a3096685a8e5d82828dff
/CIM14/IEC61970/Wires/RatioVariationCurve.py
e9599a428e11145a2c9f6036061938d3a0e6d732
[ "MIT" ]
permissive
rimbendhaou/PyCIM
75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3
d578bb0bf1af344342bd23344385ed9c06c2d0ee
refs/heads/master
2022-04-28T01:16:12.673867
2020-04-16T02:19:09
2020-04-16T02:19:09
256,085,381
0
0
MIT
2020-04-16T02:15:20
2020-04-16T02:08:14
null
UTF-8
Python
false
false
2,481
py
# Copyright (C) 2010-2011 Richard Lincoln # # 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, modify, merge, publish...
[ "rwl@thinker.cable.virginmedia.net" ]
rwl@thinker.cable.virginmedia.net
ac8cb4d10f03cfcf56bfca6e1eed5550f4a572df
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/3031.py
dcc2655c88b9b096dc4272fff8c76abbbbc62b74
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
26
py
ii = [('FitzRNS3.py', 31)]
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
4d7e6d9123896e99a21eae4a42f8c64c3c09f2fb
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/6/pg0.py
6dce41ec2e35de1734a93c08f6cc1f9885939979
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
33e488832c4747e6af26ad44f680379afbfb7ddf
3280f0c0c41e157bff2d4ad420c1b871402d6f95
/utils/cmfish/cmfish/middlewares.py
4dd368481be51d12184948c37537d4409716b44e
[]
no_license
sui84/pytest
5efae6843556c541bcffed1ff4c4a38d598bca85
696f05ec40adb78e9a4bd7fab1eef6d324cbb9bb
refs/heads/master
2021-01-21T15:00:28.604917
2019-08-31T05:22:10
2019-08-31T05:22:10
95,368,315
1
0
null
null
null
null
UTF-8
Python
false
false
1,904
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class CmfishSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy ac...
[ "sui84@126.com" ]
sui84@126.com
d0eda4330f1ac653701045a4fc49b166fbca0fca
d6cf604d393a22fc5e071a0d045a4fadcaf128a6
/Enterprise/Marine/2020/2020_D.py
7e514768e74cacdb1d7271f0361b50aa5e7e7e78
[]
no_license
shikixyx/AtCoder
bb400dfafd3745c95720b9009881e07bf6b3c2b6
7e402fa82a96bc69ce04b9b7884cb9a9069568c7
refs/heads/master
2021-08-03T21:06:45.224547
2021-07-24T11:58:02
2021-07-24T11:58:02
229,020,968
0
0
null
null
null
null
UTF-8
Python
false
false
1,329
py
import sys import numpy as np from collections import defaultdict sys.setrecursionlimit(10 ** 7) read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines # 愚直解 # TLE N = int(readline()) VW = [0] + [list(map(int, readline().split())) for _ in range(N)] Q = int(readlin...
[ "shiki.49.313@gmail.com" ]
shiki.49.313@gmail.com
0346e52eb44f0345bff729be90cefcd608a480f3
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/src/transformers/models/groupvit/__init__.py
d0de4a00bd15005fe974f7240b9bc6c940f5b789
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
2,875
py
# Copyright 2022 The HuggingFace 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 applicabl...
[ "noreply@github.com" ]
huggingface.noreply@github.com
0f7692a5b74a0bcdc450d391708db3d19733b7c8
0db97db08743783019efe022190f409d22ff95bd
/aliyun/api/rest/Rds20140815DescribeSQLLogReportListRequest.py
ade9beff607028d9b0aa607aa956e0d2735bff32
[ "Apache-2.0" ]
permissive
snowyxx/aliyun-python-demo
8052e2a165f1b869affe632dda484d6ca203bd9b
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
refs/heads/master
2021-01-10T03:37:31.657793
2016-01-21T02:03:14
2016-01-21T02:03:14
49,921,095
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
''' Created by auto_sdk on 2015.08.07 ''' from aliyun.api.base import RestApi class Rds20140815DescribeSQLLogReportListRequest(RestApi): def __init__(self,domain='rds.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.DBInstanceId = None self.EndTime = None self.Page = None self.PageN...
[ "snowyxx@126.com" ]
snowyxx@126.com
dfdef595c1fdf2280519df6b76a1384d3bfc50b8
61747f324eaa757f3365fd7bf5ddd53ea0db47d1
/casepro/cases/migrations/0041_populate_partner_users.py
e14bef94e0e4ce2732c88f32738b188cfc2b350d
[ "BSD-3-Clause" ]
permissive
BlueRidgeLabs/casepro
f8b0eefa8f961dd2fdb5da26a48b619ebc1f8c12
8ef509326f3dfa80bb44beae00b60cc6c4ac7a24
refs/heads/master
2022-01-24T09:01:18.881548
2017-12-05T18:46:05
2017-12-05T18:49:42
113,502,588
0
0
null
2017-12-07T21:57:37
2017-12-07T21:57:37
null
UTF-8
Python
false
false
760
py
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals from django.db import migrations, models def populate_partner_users(apps, schema_editor): User = apps.get_model('auth', 'User') for user in User.objects.exclude(profile__partner=None): partner = user.profile.partner ...
[ "rowanseymour@gmail.com" ]
rowanseymour@gmail.com