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
c0db67f8c6058f56c14538cc13211ec25f597b7b
ca8d183f5d6f1f260483a3555efd05870fe1d891
/com_blacktensor/cop/fin/model/finance_dto.py
1bcd1fd81dbed5d0d30270dcf7bec28453dc22d2
[ "MIT" ]
permissive
Jelly6489/Stock-Proj
b559304f10614122ddaa00e39c821a65faa9f91d
3e7b1ad5cddc5b142f0069e024199fe969c7c7e8
refs/heads/main
2023-01-13T17:18:33.729747
2020-11-13T08:19:33
2020-11-13T08:19:33
312,512,688
0
0
MIT
2020-11-13T08:11:04
2020-11-13T08:11:04
null
UTF-8
Python
false
false
2,764
py
import csv import json import pandas as pd from com_blacktensor.ext.db import db, openSession, engine # from com_blacktensor.ext.routes import Resource class FinanceDto(db.Model): __tablename__ = 'finance' __table_args__={'mysql_collate' : 'utf8_general_ci'} no : int = db.Column(db.Integer, primary_key = T...
432a27bf6bb59950798f0e4f47ac1df8b7450b5c
e32a75c44ef9c964bc5f97712c8e0e845ee3f6ca
/models_vqa/question_prior_net.py
be677105c8efe0cf16b6a818c5e33d76fc1e7e38
[]
no_license
ankita-kalra/ivqa_belief_set
29c40ec4076433ac412728aea603e4e69ce530eb
6ebba50ff001e1af6695bb3f4d2643e7072ee153
refs/heads/master
2020-04-05T17:17:00.834303
2018-08-27T09:59:16
2018-08-27T09:59:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
from __future__ import absolute_import, division, print_function import tensorflow as tf from tensorflow import convert_to_tensor as to_T from tensorflow.python.ops.nn import dropout as drop from n2mn_util.cnn import fc_layer as fc, fc_relu_layer as fc_relu # The network that takes in the hidden state of the def qu...
8b0efbb4b751dd8f8ecb1415f39e7f826639b65b
7060196e3773efd535813c9adb0ea8eca9d46b6c
/stripe/api_resources/radar/value_list_item.py
be28d2723dbe75b3c3803bf54a5689df657277d2
[ "MIT" ]
permissive
henry232323/stripe-python
7fc7440a8e8e0a57a26df577d517d9ba36ca00d0
953faf3612522f4294393d341138800691f406e0
refs/heads/master
2020-05-01T06:27:05.154381
2019-03-23T19:21:20
2019-03-23T19:21:20
177,330,547
0
0
MIT
2019-03-23T19:17:54
2019-03-23T19:17:54
null
UTF-8
Python
false
false
326
py
from stripe.api_resources.abstract import CreateableAPIResource from stripe.api_resources.abstract import DeletableAPIResource from stripe.api_resources.abstract import ListableAPIResource class ValueListItem( CreateableAPIResource, DeletableAPIResource, ListableAPIResource ): OBJECT_NAME = "radar.value_list_...
66f9427f087031cb76ce0ece746fb895f97913ca
59c34dcbcc14b5482d5c41f174f5221b56ab87f0
/api.py
9270e163b157c793847eab967d0d7f3ba505c71d
[ "MIT" ]
permissive
wwhalljr/api.spaceprob.es
b73b670b65ff47537b1db7e02991134122a7807f
20ee8f9d14314c83f07ec31d62601a75b62c7d44
refs/heads/master
2020-12-31T05:25:29.978826
2016-03-15T19:00:37
2016-03-15T19:00:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,401
py
from __future__ import print_function import os import sys import redis import logging import ephem import requests from flask import Flask, render_template, redirect, jsonify from json import loads, dumps from util import json, jsonp, support_jsonp from scrapers.dsn import get_dsn_raw app = Flask(__name__) REDIS_URL ...
555210dfa338e3acc4ba9d4c8dd080d07b9e8135
115b5356242176b8873ae7e43cd313e41cbd0ee6
/compustat/oct22/graph.py
ecfefa51ab30673d385a339b280ebcf6edfdde87
[]
no_license
squeakus/bitsandbytes
b71ec737431bc46b7d93969a7b84bc4514fd365b
218687d84db42c13bfd9296c476e54cf3d0b43d2
refs/heads/master
2023-08-26T19:37:15.190367
2023-07-18T21:41:58
2023-07-18T21:42:14
80,018,346
2
4
null
2022-06-22T04:08:35
2017-01-25T13:46:28
C
UTF-8
Python
false
false
4,775
py
"""A module for plotting results""" import pylab, pygame, sys from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt filetype = '.png' def plot_3d(results_list, title): """show all results in parallel""" x_range = range(len(results_list[0])) fig = plt.figure() #...
73e6777165b5b279414a6bc9d929bcc99ec5ba2d
4e7946cc3dfb2c5ff35f7506d467c06de0e5e842
/dlldiag/common/FileIO.py
be06510d944586dde4e451fb901b193965ea2f8e
[ "MIT" ]
permissive
GabLeRoux/dll-diagnostics
745a346ee6076a5e55dc852601afa2a5b5f99994
df579e03dff28645d42eb582f44cb9d340ba08e5
refs/heads/master
2023-02-27T18:54:37.074222
2021-01-29T07:39:31
2021-01-29T07:39:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
class FileIO(object): ''' Provides functionality for performing file I/O ''' @staticmethod def writeFile(filename, data): ''' Writes data to a file ''' with open(filename, 'wb') as f: f.write(data.encode('utf-8'))
c92c67b45c126a4e1149a656da12ecf610334d07
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02836/s788041328.py
bf63c9bc5433a668bac86ce231dadf570827c52c
[]
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
178
py
S=input() N=len(S) ans=0 T="" U="" if N%2==0: T=S[:N//2] U=S[N//2:][::-1] else: T=S[:N//2] U=S[N//2+1:][::-1] for i in range(N//2): if T[i]!=U[i]: ans+=1 print(ans)
a7adbadd3ec5c7f3767cfb61f2e5937a2539c716
390f5efd244d9f9dba429702bf6edea6d920b604
/simple_linear_regression.py
1fc64badd3529b835b4fd4a272ae39864d51d18c
[]
no_license
pkdism/Machine-Learning-A-Z
a8a936ed607fe5f805f0e1aa54092f69a159bbce
750c4e12dea53924323f94bb11bae3660ae89c17
refs/heads/master
2020-09-01T14:28:09.938111
2020-04-01T11:19:53
2020-04-01T11:19:53
218,979,889
0
0
null
null
null
null
UTF-8
Python
false
false
1,412
py
# Data Preprocessing # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Import the dataset dataset = pd.read_csv('Salary_Data.csv') X = dataset.iloc[:, :-1].values # matrix of features y = dataset.iloc[:, 1].values # dependent variable # Splitting the dataset into the ...
c8ba62216d55b8af369b3c3e792bbf4792c047b3
a32ebed23c068ffcf88feccc795205fca9b67b89
/python_curso-em-video_guanabara/Mundo 1/a10_x033.py
0c4f87591963ae71bd6312074bbd375691c98f1d
[]
no_license
AlefAlencar/python-estudos
c942bc20696442c62782fe7e476cd837e612632e
7e3807e6dbdec8037d688a986933eb8fd893c072
refs/heads/master
2023-08-27T23:38:30.397907
2021-11-03T02:18:51
2021-11-03T02:18:51
412,178,055
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
# LEIA 3 números # RETORNE qual é o maior e qual é o menor import math n1 = int(input('Digite um número: ')) n2 = int(input('Digite outro: ')) n3 = int(input('Digite só mais um outro: ')) n = [n1, n2, n3] n.sort() print('O menor número é o {}, e o maior é o {}'.format(n[0], n[-1]))
b0a3b3b326b43c4ec7aa7be3ba5ecd6387a7746f
5ffe544f2521eec78763a7e46e4a343ea37017df
/base/urls.py
9ce018ec8ea3c3a28f6e1855c0bb434d27c6ef26
[]
no_license
shobhit1215/Todo-List
a12b534dd83b11f842e7d30ecb7518380158e387
9d4abae45a3d8b64ccb7f4d62cf19eef95aab4b1
refs/heads/main
2023-05-20T06:02:20.199679
2021-06-12T08:26:10
2021-06-12T08:26:10
370,610,303
1
0
null
null
null
null
UTF-8
Python
false
false
704
py
from django.urls import path from . import views from django.contrib.auth.views import LogoutView urlpatterns = [ # urls for basic CRUD functionalities path('login/',views.CustomLoginView.as_view(),name='login'), path('logout/',LogoutView.as_view(next_page='task'),name='logout'), path('register/',views...
daa3132c4e9943f96e7f3a82def5e1ddf2f19fce
0a2fb03e288ab52c9f5c4a7a93151866543de259
/examples/wav2vec/wav2vec_featurize.py
445a5d0213c14e676889308b74c64a2f80070c3a
[ "MIT" ]
permissive
utanaka2000/fairseq
938b93d94a51d059ce55ec2bdc93cfad70249025
5e82514d687289a73a6dec33b555217acd97cb0d
refs/heads/master
2023-03-21T13:08:42.640563
2020-10-03T04:23:15
2020-10-03T04:25:31
299,215,321
33
20
MIT
2020-09-28T06:50:19
2020-09-28T06:50:18
null
UTF-8
Python
false
false
7,110
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Helper script to pre-compute embeddings for a wav2letter++ dataset """ import argparse import glob import os from ...
4c8749b2d80f01ba74b7c6db161be159e1559f96
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2969/60797/319692.py
2a883483b572dc58a26b0baa0d5faca6cc0fe850
[]
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
173
py
# tag if __name__ == '__main__': s = input() if s=='ababa': print('2 4 5') elif s=='XXQQQQTTTT': print('1 2 10') else: print(s)
50ac5625581762c31d894f94c285e8771cc518e4
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_155/534.py
fd9f27d19f9b6a1fc1d4744bb6ffa2d71c37595c
[]
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,154
py
#!/usr/bin/python3 import getopt import sys if __name__ == "__main__": verbose = False fname = "input.txt" if sys.version_info[0] < 3: print("This script requires Python 3. (You are running %d.%d)" % ( sys.version_info[0], sys.version_info[1])) sys.exit() try: o...
0decaa5a7e8de4ca806bec782fbfaf910bda6d33
0da100539db20cbac6af3da753b1e9a0540c6b63
/uptime.py
47c5fc36f4adaf7edf0addcd6a82371bb7645592
[]
no_license
nlo-portfolio/uptime
f46f178232a23e2ee03cb05659987db74f4940f8
4cc2a38be7649c7e9e696239f0c9b9166935946c
refs/heads/master
2023-06-29T03:42:16.465186
2021-02-01T16:00:00
2021-02-01T20:00:00
379,499,649
0
0
null
null
null
null
UTF-8
Python
false
false
4,867
py
#!/usr/bin/env python import curses import logging import os import queue import requests import socket import sys import threading import time import yaml from collections import deque from queue import Queue from classes import Site from modules import request_worker def parse_config(filename): ''' Opens ...
[ "anonymous" ]
anonymous
a5c960db7926692eb5a1ba8cf3eac7a66286c4dd
e14f85856a8b2e65199b441b7fb71bf862237cc5
/scripts/tectonic_cache.py
57bceb1a29033dc711b7dfa931dab74c6b0e08d2
[ "BSD-3-Clause" ]
permissive
DLove1204/jupyterlab-lsp
50a274b9e368c909375fe442e40e550e2f93f0de
d7ac678975f65b920f54b3034c9bbddd978d98bd
refs/heads/master
2022-12-02T13:25:14.984264
2020-08-11T19:39:06
2020-08-11T19:39:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
import subprocess from pathlib import Path from tempfile import TemporaryDirectory HERE = Path(__file__).parent EXAMPLE = HERE.parent / "atest/examples/example.tex" def tectonic_cache(): """ warm up the tectonic cache so that it doesn't fail the acceptance test """ with TemporaryDirectory() as td: ...
599ca3f5da22b0f37690706eb61e7de3aab99de1
ade0043b6c686a65d8ee4cb412102755cd8464a2
/scripts/fuzzing/merge_corpus.py
7dac811287e03e82999afbb113baf7cbce500d4c
[ "BSD-3-Clause" ]
permissive
Xoooo/fuchsia
b806c2c355d367e9f6f740c80b446b10d3d5c42c
58bb10136f98cc30490b8b0a1958e3736656ed8a
refs/heads/master
2020-07-07T06:06:26.206594
2019-08-13T05:55:19
2019-08-13T05:55:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
#!/usr/bin/env python2.7 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import os import sys from lib.args import Args from lib.cipd import Cipd from lib.device import Device from lib.fuzz...
61197560944d89b4d35b1796a4d1e2220479dec1
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/nlp/Bert-CRF_for_PyTorch/examples/basic/basic_language_model_roformer.py
51de31d6692c08e090cfe84e93550492e3736efb
[ "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
3,351
py
# -*- coding: utf-8 -*- # BSD 3-Clause License # # Copyright (c) 2017 # All rights reserved. # Copyright 2022 Huawei Technologies Co., Ltd # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source ...
195c5f2eb43979422738ca58a4619048f98a7214
1fe37d571b240274fd3aee724f57d8cd3a2aa34e
/detools/info.py
41161ab2f7610d4d892ebc3b690d72b3ab9333a7
[ "BSD-2-Clause", "MIT" ]
permissive
eerimoq/detools
e199bd84e97f82d72dcf0394d72bc646c5ec6369
d3cdb185e45f7a997aae9b8cc73a2170c58ee5e9
refs/heads/master
2023-08-25T01:45:05.427528
2023-07-20T08:04:07
2023-07-20T08:04:07
171,528,674
151
13
NOASSERTION
2022-12-28T18:22:17
2019-02-19T18:38:43
Python
UTF-8
Python
false
false
5,485
py
import os from .errors import Error from .apply import read_header_sequential from .apply import read_header_in_place from .apply import read_header_hdiffpatch from .apply import PatchReader from .common import PATCH_TYPE_SEQUENTIAL from .common import PATCH_TYPE_IN_PLACE from .common import PATCH_TYPE_HDIFFPATCH from ...
542cdb30ac871d10f35856ab599f982138e1621d
01382c58ae18404aa442533eea992330ec941d35
/tests/conftest.py
cb9a33ea61524b31b55a6fa68da1b8f7b971a8e0
[]
no_license
gitter-badger/ens.py
124d5bfc0b27b2c3ebe7ff1c6f4c14eacc687f18
565bf0cb0afc1f628c6ba29616bb6bb362aa4de9
refs/heads/master
2021-01-01T17:41:33.595961
2017-07-24T01:12:27
2017-07-24T01:12:27
98,136,264
0
0
null
2017-07-24T01:16:31
2017-07-24T01:16:31
null
UTF-8
Python
false
false
1,806
py
import pytest from unittest.mock import Mock from web3 import Web3 from web3.providers.tester import EthereumTesterProvider from web3utils import web3 as REAL_WEB3 from ens import ENS def mkhash(num, digits=40): return '0x' + str(num) * digits @pytest.fixture def addr1(): return mkhash(1) @pytest.fixture ...
9200a771ec7bef264c6449eeb3e335264b19aa41
871b10e6abd1ca9db406af9acddb391e4c2ec693
/scholar_sanction_criteria.py
34a704895205a13e9804ad37b4d10eb132400b9b
[]
no_license
Novasoft-India/wakf
d64efc557584a2bb0fadfdebf33ee738b2063253
d27ff6bb88a36f33bcf173d9c814345294ab7def
refs/heads/master
2020-12-24T16:50:25.632826
2014-09-18T13:42:19
2014-09-18T13:42:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
from osv import osv from osv import fields class SWS_Scholar_sanction_Criteria(osv.osv): _name = 'sws.scholar.sanction.criteria' _description = 'sws.scholar.sanction.criteria' _columns = { 'name':fields.char('Criteria Name:', required=False), 'criteria_no':fields.integ...
84b0505f88884cf5adf7c93c363c044118cdfb83
90ca69d5d6bd9d08ee2d2b8150eb2fa6a6b00e72
/src/entities/metric.py
868bfa0563f670af8963e4937589ca2bae921afc
[ "CC-BY-4.0" ]
permissive
budh333/UnSilence_VOC
07a4a5a58fd772230bfe1ffbcb8407de89daa210
f6ba687f96f2c23690c84590adcb24ee239aa86b
refs/heads/main
2023-05-26T20:49:49.105492
2023-05-12T23:18:50
2023-05-12T23:18:50
388,462,045
6
1
null
null
null
null
UTF-8
Python
false
false
2,064
py
from __future__ import annotations # This is so we can use Metric as type hint from typing import Dict, List import numpy as np class Metric: def __init__( self, amount_limit: int = 5, metric: Metric = None): self._accuracies: Dict[str, List[float]] = {} self._losses: List[...
eec37585b4feaa9cc15c76cd3fead5d237d8c535
db6a3eb678c372256c342e76caaf750de253c119
/tests/conftest.py
1153bb41932ba778afc0b91d999d0b9826a2eb12
[ "BSD-3-Clause" ]
permissive
molssi-seamm/table_step
80678f1bb05fb068d0dc5c6390d4e69a822d9cbc
e98f79ee5455f1caf1f03da32c9771cee24e7813
refs/heads/main
2023-08-17T02:20:08.451145
2023-07-25T19:22:14
2023-07-25T19:22:14
170,744,384
0
0
BSD-3-Clause
2023-07-25T19:22:16
2019-02-14T19:14:57
Python
UTF-8
Python
false
false
1,584
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Fixtures for testing the table_step package.""" import pytest def pytest_addoption(parser): parser.addoption( "--no-unit", action="store_true", default=False, help="don't run the unit tests" ) parser.addoption( "--integration", act...
aab78f44cb62d54f045f75c91f11d8a9fb0b08d9
7ecbdf17a3d6c11adac10781fc08f16e60c2abe7
/testGridWorldPython/multiplePCrystal_N1609/testGridWorld.py
6e24c232b62941638a56757ba8ea221ecf64d66c
[]
no_license
yangyutu/multiagentAssembly
459f7941403d38c877f51094dee9462372b491c0
1e7c950e13fadf5e2e471de15b5c06f349130869
refs/heads/master
2020-06-07T06:17:27.747500
2019-06-30T19:39:58
2019-06-30T19:39:58
192,946,813
0
1
null
null
null
null
UTF-8
Python
false
false
663
py
import GridWorldPython as gw import json import numpy as np from timeit import default_timer as timer configName = 'config.json' model = gw.GridWorldPython(configName, 1) with open(configName,'r') as file: config = json.load(file) N = config['N'] iniConfigPos = np.genfromtxt('squareTargetN1609CPP.txt') iniConfi...
cd2cd539213e5471e56fbe40f7277b75376c4c8a
bdff6688cee79226723fbcf9980c3757a55651b7
/algorithms/implementation/find_digits.py
ae389e624b94fb978174728591e73e5e389879b0
[]
no_license
kruthar/hackerrank
1f151203c8f26c033585f30d2cf69a2b22dcaf71
ef81b2aa41a678ad6b0692f933f438a62b1d6b64
refs/heads/master
2016-08-10T07:15:19.165058
2016-02-26T17:48:58
2016-02-26T17:48:58
49,286,556
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
import sys num_lines = int(sys.stdin.next().strip()) for i in range(0, num_lines): num_string = sys.stdin.next().strip() num = int(num_string) divs = 0 for digit in num_string: if digit != '0' and num % int(digit) == 0: divs += 1 print divs
ff8c2bc814120ac52259dc6eb7847a31d804f055
a7b0d36ed471f48b549355430eb474d1f212fed4
/products/tests.py
455a4e4972f84336b889ee549a3a66df2411f105
[ "MIT" ]
permissive
Yezz123-Archive/E-Commerce-Boilerplate
93fd1aca5fb462c44915aeb60a1e89284c15ad0a
c57196b92ae5395bbfa0ef97f50425904fe2ead2
refs/heads/main
2023-05-07T05:08:59.232857
2021-06-05T11:56:51
2021-06-05T11:56:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
from django.test import TestCase from .models import Product # Create your tests here. class ProductTests(TestCase): def test_str(self): test_name = Product(name='product') self. assertEqual(str(test_name), 'product')
6cc1153dc9a841af6cfd746ccd2fceb3e74f88e1
b7663107da61a8530c92567639f9bc3e51b4b3c7
/models/org.py
7382bbf5a6d5092ca17972a91445f26a9546972b
[ "MIT" ]
permissive
goldenboy/eden
adb5dddeee56b891ee11fb31453fa7ea65df60d3
628ee2278b7535486482a6030c5d84b70e3bdb4a
refs/heads/master
2021-01-16T21:36:21.965358
2012-02-26T23:54:56
2012-02-26T23:54:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,577
py
# -*- coding: utf-8 -*- """ Organization Registry """ # ----------------------------------------------------------------------------- # Defined in the Model for use from Multiple Controllers for unified menus # def org_organisation_controller(): """ RESTful CRUD controller """ # T = current.T # db = ...
baadca2b3a178ee55b51a4210be750d6080444b5
d5c8f7f7481c86266dfccb862e16c59132f5eb34
/config.py
414128cefca0776539c2eef574cb551b9d9efe7c
[]
no_license
AngleMAXIN/BlogGo
59aec933b7743ba19a3eca147ce61b864da79399
49dd6cd930ae059d533bcfd2f1aa3cd3197deb95
refs/heads/master
2021-04-12T12:32:32.895508
2018-04-24T09:17:07
2018-04-24T09:17:07
126,703,268
0
0
null
null
null
null
UTF-8
Python
false
false
1,581
py
#/usr/bin/env python3 # -*- coding: utf-8 -*- #/usr/bin/env python3 # -*- coding: utf-8 -*- import os basedir = os.path.abspath(os.path.dirname(__file__)) HOSTNAME = '127.0.0.1' PORT = '3306' USERNAME = 'root' PASSWORD = 'maxin' class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'this is a secre...
8ffbcbd15ddfd36fa85faee3a276f226df7e7419
21f98d8bb31264c94e7a98fb8eb806d7f5bd396e
/Fenwick Tree/218. The Skyline Problem.py
0ce89568e86b08184393b63f0be9409ec3eb3a60
[]
no_license
mcfair/Algo
e1500d862a685e598ab85e8ed5b68170632fdfd0
051e2a9f6c918907cc8b665353c46042e7674e66
refs/heads/master
2021-10-31T01:25:46.917428
2021-10-08T04:52:44
2021-10-08T04:52:44
141,460,584
2
2
null
null
null
null
UTF-8
Python
false
false
1,574
py
class Solution(object): def getSkyline(self, buildings): """ :type buildings: List[List[int]] :rtype: List[List[int]] """ points =[] endsAt ={} for L, R, H in buildings: left, right = (L, 'left', -H), (R, 'right', -H) #'left' < 'right', don't use ...
14d9deb91f33a952aa11d3c81ab4256f362e0ba0
f98a2875e0cdc84341fe8e37b11336368a257fe7
/auxiliary/accessing_comparative_data_sensitivity_runs.py
f6c3cd9c7f009bf8ac5af1f2218e353a026000d2
[ "MIT" ]
permissive
anhnguyendepocen/PolicySpace2
eaa83533b7ad599af677ce69353841e665b447d0
d9a450e47651885ed103d3217dbedec484456d07
refs/heads/master
2023-08-28T04:55:40.834445
2021-10-21T18:50:03
2021-10-21T18:50:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
import os from shutil import copyfile import numpy as np import pandas as pd from analysis.output import OUTPUT_DATA_SPEC as cols import read_meta_json def moving_files(path1, path2): path = os.path.join(path1, path2) dirs = os.listdir(path) for each in dirs: if '=' in each and '.csv' not in eac...
3421a3b55caa64222cf08320ee46daabcf0b12f6
2f0d56cdcc4db54f9484b3942db88d79a4215408
/.history/Python_Learning/lesson13_20200329144341.py
c8241db28a95319939d792a162f3f2bb4400c80a
[]
no_license
xiangxing98/xiangxing98.github.io
8571c8ee8509c0bccbb6c2f3740494eedc53e418
23618666363ecc6d4acd1a8662ea366ddf2e6155
refs/heads/master
2021-11-17T19:00:16.347567
2021-11-14T08:35:01
2021-11-14T08:35:01
33,877,060
7
1
null
2017-07-01T16:42:49
2015-04-13T15:35:01
HTML
UTF-8
Python
false
false
3,467
py
# -*- encoding: utf-8 -*- # !/usr/bin/env python ''' @File : lesson13.py @Time : 2020/03/29 11:43:27 @Author : Stone_Hou @Version : 1.0 @Contact : [email protected] @License : (C)Copyright 2010-2020, Stone_Hou @Desc : None ''' # here put the import lib # Practice #01 print('He said,"I\'m...
d2281b34b9b3168f241bc8f861adadeb4a0716cc
da4303d7ee77310c5a21997f1bfe0746affa3e0c
/papers/resources/best.py
395be833ef41ff557a22bc6013b545f7f5ac067d
[ "MIT" ]
permissive
AaronCWacker/copycat
44bf0626965cfba12c304d9e44fe848ce0791cc7
c05e3e832ce614e8ccea9b47cb1d3ac31d2b18c2
refs/heads/master
2022-04-09T03:45:41.076460
2020-03-26T11:39:11
2020-03-26T11:39:11
378,260,131
1
0
MIT
2021-06-18T20:38:32
2021-06-18T20:38:31
null
UTF-8
Python
false
false
577
py
def _working_best(temp, prob): s = .5 # convergence r = 1.05 # power u = prob ** r if prob < .5 else prob ** (1/r) return _weighted(temp, prob, s, u) def _soft_best(temp, prob): s = .5 # convergence r = 1.05 # power u = prob ** r if prob < .5 else prob ** (1/r) return _weighted(temp...
c29a0940b61699c23849ff51675b3dd3b4b3a82f
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res/scripts/client/gui/scaleform/daapi/view/lobby/boosters/__init__.py
8931986bafcc9a61774fc38ab7ba64eb901eeea7
[]
no_license
webiumsk/WOT-0.9.12-CT
e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2
2506e34bd6634ad500b6501f4ed4f04af3f43fa0
refs/heads/master
2021-01-10T01:38:38.080814
2015-11-11T00:08:04
2015-11-11T00:08:04
45,803,240
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
414
py
# 2015.11.10 21:26:35 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/boosters/__init__.py __author__ = 'i_malashenko' # okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\client\gui\scaleform\daapi\view\lobby\boosters\__init__.pyc # decompiled 1 files: 1...
908b043137e9fe004778131309d0327786b0e893
a3635ea0c475cc7e4655ed786e870361eede6464
/format/_fix_incomplete_iso9660/directory_record.py
1d2a9176ba8e8af6f6fc5efb0ddb612f1b9995c8
[]
no_license
Nicba1010/PS-Tools
91802ce37309ef0dcd52771a8c2c0c3c2f6c4a8b
2c2b7a83b4bea39be4459bb980adfd37bd44c2be
refs/heads/master
2020-04-14T00:25:09.976960
2019-03-05T09:14:12
2019-03-05T09:14:12
163,532,843
4
0
null
null
null
null
UTF-8
Python
false
false
2,805
py
from datetime import datetime from aenum import IntFlag from format._fix_incomplete_iso9660.errors import InvalidISOException from format._fix_incomplete_iso9660.utils import unpack_both_endian_u32, unpack_directory_record_datetime, \ unpack_both_endian_u16, unpack_str_a from utils.utils import unpack_u8 class ...
1763030ef95c32889f4303497003b01b717874d2
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/Fz92j7nQEkoRXhRE7_8.py
4c783b20eedaf0eec0f44af589ca079bcadde34b
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
2,021
py
""" A frog wants to cross a river. Unfortunately, he can't jump across in a single leap. Luckily, there are `n` stones in the river. The frog can jump from the near bank to stone `1` and from stone `n` to the far bank. He can also jump from stone to stone, forward and backward. However, on each stone, a number `j` ...
f9b655af2e1bbd8ac1b50e7fc3c73ce38f411749
19da1a56f137a08772c347cf974be54e9c23c053
/lib/adafruit_lidarlite.py
1893b50a7169d64063eb64031a74fdd87eb79bd7
[]
no_license
mk53202/mk53202-timeclock-pyportal
d94f45a9d186190a4bc6130077baa6743a816ef3
230a858d429f8197c00cab3e67dcfd3b295ffbe0
refs/heads/master
2021-02-04T05:38:25.533292
2020-02-27T22:45:56
2020-02-27T22:45:56
243,626,362
0
0
null
null
null
null
UTF-8
Python
false
false
7,421
py
# The MIT License (MIT) # # Copyright (c) 2018 ladyada for adafruit industries # # 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 ri...
1e03fdfc67c1b1e1fe60f6a7d9f6981745a37274
2337351b228818e41be3002bd38f68f77c2aa074
/tests/test_hash.py
c10a96478165e914236a8897a388fe57add9eb5a
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
1,914
py
# ---------------------------------------------------------------------- # Test noc.core.hash functions # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- #...
5e8646400ae70762ff471fffe0fd4633446384d0
134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2
/desktop/core/ext-py/django-extensions/django_extensions/management/commands/create_app.py
3fcf7e6053b65dd8588a8dfd011af9aec35762c9
[ "Apache-2.0" ]
permissive
civascu/hue
22637f13a4cfc557716557661523131b6ac16da4
82f2de44789ff5a981ed725175bae7944832d1e9
refs/heads/master
2020-03-31T01:50:39.449966
2010-07-21T01:05:50
2010-07-21T01:07:15
788,284
0
0
Apache-2.0
2019-02-04T07:03:12
2010-07-21T07:34:27
Python
UTF-8
Python
false
false
3,259
py
import os import re import django_extensions from django.core.management.base import CommandError, LabelCommand, _make_writeable from optparse import make_option class Command(LabelCommand): option_list = LabelCommand.option_list + ( make_option('--template', '-t', action='store', dest='app_template', ...
585762a8c98cac23f2e45d296b0bc57b3b31cfe9
5a25f4f5f9c7cba03f9b5848eafc01a760c88768
/analysis/bsens_cleanest_diff_zooms.py
86b02dd38170047b195bc6e7a5b624af3f12c0d6
[]
no_license
ALMA-IMF/reduction
b3579a548fe20193b807a7415a040f351c879beb
de606cc6bc542f088223ce84082ff333739c9007
refs/heads/master
2023-06-22T13:21:13.841999
2023-06-12T09:17:50
2023-06-12T09:17:50
115,018,799
9
29
null
2023-06-12T09:17:51
2017-12-21T15:13:55
Python
UTF-8
Python
false
false
7,898
py
import requests import re import numpy as np from astropy import table import io import time from astropy import units as u import radio_beam import regions from astropy.io import fits from astropy.visualization import simple_norm from astropy import stats, convolution, wcs, coordinates from spectral_cube import Spectr...
4b858fafb09c3c580a3b53f9df313e263ed7fe98
63efb13760eabfc09c288d29264adfff0da6622a
/LeetCode/54_spiral_matrix.py
334481a1decda2f1c02166c8e4cbcbdeaeb8d063
[]
no_license
KKosukeee/CodingQuestions
59f0002ace13ebbe3a4a36976277bcb0d3766dbd
01fe893ba2e37c9bda79e3081c556698f0b6d2f0
refs/heads/master
2020-05-16T04:22:31.578974
2020-03-30T00:27:51
2020-03-30T00:27:51
182,775,403
1
1
null
null
null
null
UTF-8
Python
false
false
2,600
py
""" Solution for 54. Spiral Matrix https://leetcode.com/problems/spiral-matrix/ """ class Solution: """ Runtime: 36 ms, faster than 77.01% of Python3 online submissions for Spiral Matrix. Memory Usage: 13.3 MB, less than 5.18% of Python3 online submissions for Spiral Matrix. """ def spiralOrder(sel...
18375f5328d2d152a2bf52b751758c80aeef94a3
6d69b249a81e076d79787dd08eb8957908052052
/wiktionary_bot/cron/send_daily_word.py
18e6b326e27d746aea7ad179a8240945e26ae9f0
[]
no_license
2vitalik/wiktionary
02ee1f1327c3b82fc7b4d7da12083b1431b1eb8b
8edae2f7dcf9089084c5ce7033c4fb0b454f4dfa
refs/heads/master
2023-02-06T11:28:41.554604
2023-02-05T22:49:01
2023-02-05T22:49:01
121,025,447
7
2
null
2021-10-13T17:36:32
2018-02-10T15:06:24
Lua
UTF-8
Python
false
false
755
py
import sys; sys.path.append('../..') from datetime import datetime import telegram from core.conf import conf from libs.utils.io import json_load from wiktionary_bot.src.semantic import Reply from wiktionary_bot.src.slack import slack from wiktionary_bot.src.utils import send @slack('send_daily_word') def send_dail...
6ad6c28a4be99b031ff33625ec068853131f61f7
445892d8512378aea29fe3ac32289193a74f1ad0
/16.py
067d858cef42ec88793d5d02f238fbe4180e54a9
[]
no_license
nemec/euler
4310ca29869a253b34860df133f5f41e5b2cf7ae
d566a453dbd2ae50e1e450b2e43dc885015ce48d
refs/heads/master
2021-01-19T06:31:40.072085
2012-01-07T22:54:16
2012-01-07T22:54:16
3,127,191
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
## Project Euler ## Problem 16 ## ## 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. ## ## What is the sum of the digits of the number 2^1000? print "Euler answer is:", sum(map(int, str(pow(2, 1000))))
da353a032312bc515f977a62039f08b39d156cdb
32a6db4d595ef4d308ac0e2ef37c57f65a777bfc
/ZYCami_00_彭小钗/TestCase01/test_prime02.py
6ed9b88761b6de280907d63f3a4961a0cf453136
[]
no_license
wangdan377/Python_UI
1c8f0b3d46272d72f849f242c39e035c6b20720b
6c3e23b301ffe14cbd27a5211e48c8f79169dcf9
refs/heads/master
2023-02-17T02:37:34.353523
2021-01-19T11:58:22
2021-01-19T11:58:22
311,855,691
0
0
null
null
null
null
UTF-8
Python
false
false
9,236
py
#!/usr/bin/python # -*- coding: utf-8 -*- from ddt import ddt,data,unpack from Public.Function import * from Public import Caplictily from PO.login_element import Login_Page from PO.Prime_Element import Prime_Page from PO.Edit_Element import Edit_Page from PO.Activation_page import Activation_Page from Data.data import...
de53abff3d0ed3259297bf19dad05ed4f09e5723
b8cc6d34ad44bf5c28fcca9e0df01d9ebe0ee339
/Python100例/Python练习实例87.py
eb040332bbd64b5daa5056ab2b402bd6c2c73df0
[]
no_license
python-yc/pycharm_script
ae0e72898ef44a9de47e7548170a030c0a752eb5
c8947849090c71e131df5dc32173ebe9754df951
refs/heads/master
2023-01-05T06:16:33.857668
2020-10-31T08:09:53
2020-10-31T08:09:53
296,778,670
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
''' 题目:回答结果(结构体变量传递)。 程序分析:无。 ''' if __name__ == '__main__': class Student(): x = 0 c = 0 def f(stu): stu.x = 20 stu.c = 'c' a = Student() a.x = 3 a.c = 'a' f(a) print(a.x,a.c)
[ "15655982512.com" ]
15655982512.com
1a874b1f92374058db5c3ca342920bc09dacd61a
aea8fea216234fd48269e4a1830b345c52d85de2
/fhir/resources/STU3/deviceusestatement.py
7db6646ba3f74ade538fe51cd3a2428909343d91
[ "BSD-3-Clause" ]
permissive
mmabey/fhir.resources
67fce95c6b35bfdc3cbbc8036e02c962a6a7340c
cc73718e9762c04726cd7de240c8f2dd5313cbe1
refs/heads/master
2023-04-12T15:50:30.104992
2020-04-11T17:21:36
2020-04-11T17:21:36
269,712,884
0
0
NOASSERTION
2020-06-05T17:03:04
2020-06-05T17:03:04
null
UTF-8
Python
false
false
6,807
py
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/DeviceUseStatement Release: STU3 Version: 3.0.2 Revision: 11917 Last updated: 2019-10-24T11:53:00+11:00 """ import sys from . import domainresource class DeviceUseStatement(domainresource.DomainResource): """ Record of use of a device...
37c42c2db2f6ccdc031e2a57d830f319f7285191
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/452/usersdata/278/104002/submittedfiles/avenida.py
b830fcc4174b52263fd249e580b8cecb56557fb8
[]
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
937
py
# -*- coding: utf-8 -*- m = int(input('Digite o número de quadras no sentido Norte-Sul: ')) while (m<2 or m>1000): m = int(input('Digite o número de quadras [2,1000] no sentido Norte-Sul: ')) n = int(input('digite o número de quadras no sentido Leste-Oeste: ')) while (n<2 or n>1000): n = int(input('digite o núm...
a7c2ca14b118fd55db1f803488e33a2b02b59688
209c2dd5f0ae41ccd41d84e8c86fe4a7e3321715
/tests/test_services.py
4ff7b8ac73dbcb8b987af56b24d2064124738a01
[ "MIT" ]
permissive
vladimirmyshkovski/django-url-shorter
4d17b165c14b8584bdabc0a60bd6cab03f88d2dd
dcea9f77af951ec3cfc41fbbc4bab951ccab7f41
refs/heads/master
2021-09-15T13:02:59.286830
2018-06-02T16:59:59
2018-06-02T16:59:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,021
py
from django.test import TestCase from url_shorter import services from url_shorter import models from . import factories class TestCreateNewURL(TestCase): @classmethod def setUpTestData(cls): #cls.new_url = factories.URLFactory() cls.user = factories.UserFactory() cls.new_url = servi...
f5aa734ec84bd5ce364e5dd9f8182e2fe20138ce
2a2b26f3fbdd16d99fd65f390acc37cff6783805
/backend/tin_marin_23659/urls.py
e29fe74e819d07acbddd4a80408b93aca7f3153f
[]
no_license
crowdbotics-apps/tin-marin-23659
fb6b8dcb98c069a6543039bd95b2c821eed39300
f50588680e57d8840dc1e406d5ac5171d67f3c54
refs/heads/master
2023-02-09T00:02:16.087858
2021-01-03T22:16:05
2021-01-03T22:16:05
326,510,896
0
0
null
null
null
null
UTF-8
Python
false
false
1,973
py
"""tin_marin_23659 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
220733b7bec929fe2135f19393091bb7b9da15c5
cbf9f600374d7510988632d7dba145c8ff0cd1f0
/abc/187/d.py
d87bf83a875df88d7799159669ee7b2738c9db82
[]
no_license
sakakazu2468/AtCoder_py
d0945d03ad562474e40e413abcec39ded61e6855
34bdf39ee9647e7aee17e48c928ce5288a1bfaa5
refs/heads/master
2022-04-27T18:32:28.825004
2022-04-21T07:27:00
2022-04-21T07:27:00
225,844,364
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
import heapq n = int(input()) aoki = 0 takahashi = 0 eva_heap = [] for i in range(n): a, b = map(int, input().split()) aoki += a eva_heap.append([-1*(2*a+b), a, b]) heapq.heapify(eva_heap) for i in range(n): pop = heapq.heappop(eva_heap) takahashi += pop[1] + pop[2] aoki -= pop[1] if tak...
24ccc45f17a0ad0467b37575e53011fbc3fd29dc
dffbcc5d83153dd8b3ca91f91fd80311b266c586
/lesweets/templatetags/extratags.py
f13d381679ba34bc506d684c5d01df3c0a206616
[]
no_license
jayoshih/activity-builder
0d2aa57a55266cc9d4abd554f367cdbee855195e
3b76a670e0365458f9422efcc2cc5b354b848074
refs/heads/master
2021-05-01T22:09:49.078050
2018-02-24T05:27:23
2018-02-24T05:27:23
120,987,938
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
import json import re from django import template from django.template.defaultfilters import stringfilter register = template.Library() @register.filter(is_safe=True) def parsestory(value): story = value["story"] MATHLIBS_REGEX = r'(\[([^\]]+)\])' for match in re.findall(MATHLIBS_REGEX, story): t...
ac3585e83cbdf80f4e384846177b3ce97a51323c
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-4/f68bf254a5a9503bbaef64e23bd53cd85527d20e-<_sort_labels>-bug.py
2f291b6818e245eb814d0a21821e59925da51495
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
def _sort_labels(uniques, left, right): if (not isinstance(uniques, np.ndarray)): uniques = Index(uniques).values l = len(left) labels = np.concatenate([left, right]) (_, new_labels) = sorting.safe_sort(uniques, labels, na_sentinel=(- 1)) new_labels = _ensure_int64(new_labels) (new_left,...
7826e402c224ee5ded49a02aeca550616e2b3421
d12946acff8dab7127720e9f7393acc6b6c22daf
/ngcasa/flagging/manual_unflag.py
2399198632f1ba319a8d0afd754504f72054063f
[ "Apache-2.0" ]
permissive
keflavich/cngi_prototype
ff84c6d36e823148d3e21d6c2a2eb8298893a5da
cf6ea38a8dd7219c351bcc5a10e9a38dcf733ae5
refs/heads/master
2023-02-01T09:21:47.847739
2020-12-14T21:03:16
2020-12-14T21:03:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
# Copyright 2020 AUI, Inc. Washington DC, USA # # 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 ...
db411ddca642519eaddf1710497d10f4c1122f36
c77148a25435b50a35fceab36112fba18dbb0866
/backup/Jun17/units/TatsuNullifier.py
f22337f88388c799dec174265e8621b1e779f14b
[]
no_license
SozBroz/PrismataBot
51fbecf90950d13eb52606a5b18984b5474746ba
f375ca8dc396abbca4134f70cb262fc78b90a17e
refs/heads/master
2020-05-31T13:37:50.102010
2019-06-06T02:48:01
2019-06-06T02:48:01
136,826,949
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
#!/usr/bin.python3.6 class TatsuNullifier: def __init__(self,owner): self.owner=owner self.lifespan=-1 self.frontline=False self.cooldown=1 self.defaultBlocking=False self.assignedBlocking=False self.health=2 self.fragile=False self.attack=2 self.startTurnDict={ "attack":2 } self.onClickDict=...
123e7e6a2f7aed9ff30733adf3eddbf3b0ea4f4f
9131dd03ff2880fca2a5883572784f8e51046e41
/env/lib/python3.6/site-packages/clicksend_client/models/fax_message_collection.py
92d275d5d89e723c11c3188f79eed1f58a23cad1
[]
no_license
aviadm24/coronaap
fe10619ae42a8c839cd0a2c2c522187c5f21fbc7
5608c2d77cb3441b48ba51da04c06a187fb09488
refs/heads/master
2022-12-09T21:35:17.179422
2021-01-28T08:21:49
2021-01-28T08:21:49
249,938,200
0
0
null
2021-09-22T18:47:51
2020-03-25T09:36:10
JavaScript
UTF-8
Python
false
false
4,785
py
# coding: utf-8 """ ClickSend v3 API This is an official SDK for [ClickSend](https://clicksend.com) Below you will find a current list of the available methods for clicksend. *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1...
bf6c54d9c768f84150459c9cd82e12ccf61504a4
bc441bb06b8948288f110af63feda4e798f30225
/translate_sdk/model/msgsender/send_message_request_pb2.pyi
1a877b900d8b0e65122b3d5884b44703adb7b282
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
1,938
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.message import ( Message as google___protobuf___message___Message, ) from translate_sdk.model.msgsender.send_message...
cf7f4d296d73068a1dc89316da6367097e02ebb5
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_103/ch171_2020_06_21_22_12_16_899924.py
135086fcb73f5f97d48136cc47c30773eeb720b1
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
class Carrinho: def __init__(self,adiciona,total_do_produto): self.adiciona = adiciona self.total_do_produto= {} def adiciona(self,nome_do_produto,preco): self.nome_produto= nome_produto self.preco = preco if nome_produto not in total_do_produto: ...
af095b8c5a638874a1b7bd9875f1dbdc6558e8d1
ee00ebe5e71c36b05fbff993b19e9723b963313f
/1086_High_Five.py
54383bdd24da9e14847397d5e189ffb6be5523ec
[]
no_license
26XINXIN/leetcode
f365560d93604a28abf399707b333f3c11f924ec
78ed11f34fd03e9a188c9c6cb352e883016d05d9
refs/heads/master
2021-06-28T16:31:45.103879
2020-09-19T20:33:55
2020-09-19T20:33:55
144,975,903
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
from heapq import heappush, heappop class Solution: def highFive(self, items: List[List[int]]) -> List[List[int]]: scores = dict() for sid, score in items: if sid not in scores: scores[sid] = [-score] else: heappush(scores[sid], -score) ...
9ecd94aa5b45d765eb89069280cf0292db75b096
7f68bbb3fd328a4d6bbabecb44305987d8cbbfc4
/algorithm/codexpert/e0수열.py
e730b33a25301642f929bd741f4f6f0672570f2f
[]
no_license
seunghoon2334/TIL
c84f9f9e68c8ccc7a1625222fe61f40739774730
51cfbad2d9b80a37b359716fca561c2a5c5b48b3
refs/heads/master
2022-12-18T18:20:19.210587
2019-11-26T03:14:23
2019-11-26T03:14:23
162,101,369
0
0
null
2022-11-22T03:59:16
2018-12-17T08:51:53
C
UTF-8
Python
false
false
535
py
import sys sys.stdin = open("e0수열.txt") n = int(input()) nums = list(map(int, input().split())) result1 = 0 cnt1 = 1 for i in range(n-1): if nums[i]<=nums[i+1]: cnt1 += 1 else: if cnt1>result1: result1 = cnt1 cnt1 = 1 if cnt1>result1: result1 = cnt1 result2 = 0 cnt2 = ...
dde99daa877a40e2e9b98354706c64fd41061c61
470dfeafdfe41ca8456093f59d589bee83718dfe
/aliyun-python-sdk-cloudphoto/aliyunsdkcloudphoto/request/v20170711/SearchPhotosRequest.py
8d27f029acb8b75776ce1da4e4ab289282c98f03
[ "Apache-2.0" ]
permissive
lihongda1998/aliyun-openapi-python-sdk
f475356f1c6db2f94db2e8b24558db79109619a6
c6ff1bcf7381b48dac3e6ac4203741e902e3545a
refs/heads/master
2021-07-02T18:42:24.943017
2017-09-19T07:10:56
2017-09-19T07:10:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,610
py
# 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 # "License"); you may not u...
aabebdb84e10f2ef4a37756005f0313ae8f8a5bb
b4d30f82a6842d57dd01d231799c2199be8230a3
/hello_world_tweepy.py
e642a0e6094d115f5f15a4467098831e8c2c17f9
[ "MIT" ]
permissive
farisachugthai/instapy
fbe33d6cad744cb4cb06ccf219b9682e4ff3100e
0adcbe9d3b24199519e103ce9e7ee44f7aa402f0
refs/heads/master
2022-11-23T20:36:02.655554
2020-07-26T01:05:50
2020-07-26T01:05:50
280,748,976
0
0
null
null
null
null
UTF-8
Python
false
false
6,392
py
#!/usr/bin/env python """A basic script show casing how to use tweepy. ==================== Tweepy functionality ==================== Over time, the names of various Twitter concepts have evolved, some old names are still used in Tweepy. So keep in mind that, in the context of this article, these equivalences hold: ...
5fbd26c9ee1800f928da0cfcd0d869110f76344a
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2558/60619/285468.py
b9e5d0b42906f6129d626a05905013c89f266675
[]
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
367
py
t = int(input()) for ind in range(t): s = input() if s == "}{{}}{{{": print(3) elif s == "{{}}}}": print(1) elif s == "{{}{{{}{{}}{{" or s == "{{}{{{}{{}{" or s == "}{{}}{{{{": print(-1) elif s == "{{{{}}}}": print(0) elif s == "{{{{}}}}}{" or s == "{{}{{{}{{}}{{}...
cc7c473f7472d2a40fcd7d825f9ea7caa08f5ced
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/model_control/detailed/transf_Difference/model_control_one_enabled_Difference_PolyTrend_Seasonal_DayOfMonth_NoAR.py
d4e66886be254d972152d5397cca35ab358649bb
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
164
py
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Difference'] , ['PolyTrend'] , ['Seasonal_DayOfMonth'] , ['NoAR'] );
a92d69aa70529fdc9f97b2e8eb87db38dc3380ca
422c9cc1c5ef7eba24610e66d6a74ec2e16bf39e
/devel_isolated/rosunit/lib/python2.7/dist-packages/rosunit/__init__.py
c89bb390f5366f452b27f97c39bcab7180fd0016
[]
no_license
twighk/ROS-Pi3
222c735d3252d6fce43b427cdea3132f93025002
9f2912c44ae996040f143c1e77e6c714162fc7d2
refs/heads/master
2021-01-01T05:16:20.278770
2016-05-08T19:24:15
2016-05-08T19:24:15
58,306,257
2
0
null
null
null
null
UTF-8
Python
false
false
1,020
py
# -*- coding: utf-8 -*- # generated from catkin/cmake/template/__init__.py.in # keep symbol table as clean as possible by deleting all unnecessary symbols from os import path as os_path from sys import path as sys_path from pkgutil import extend_path __extended_path = "/opt/ros_catkin_ws/src/ros/rosunit/src".split("...
a25d4a8e8452c08db22e1d70eef2fffd07c537c2
9cd180fc7594eb018c41f0bf0b54548741fd33ba
/sdk/python/pulumi_azure_nextgen/dbformariadb/latest/firewall_rule.py
dd52b6b640e5bb747bacd94f8df589763e677d12
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MisinformedDNA/pulumi-azure-nextgen
c71971359450d03f13a53645171f621e200fe82d
f0022686b655c2b0744a9f47915aadaa183eed3b
refs/heads/master
2022-12-17T22:27:37.916546
2020-09-28T16:03:59
2020-09-28T16:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,897
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 from ... import _utilities, _tables __a...
f24b30682ffecb2b5a32830e62d9b425c521d277
54553be3dda33ce7865f28a2e81b4e5ae72dac7e
/synapse/lib/sqlite.py
79a978392421c2632893a542c0bba3e76b008e20
[ "Apache-2.0" ]
permissive
mari0d/synapse
52d9402ed80ca80d1f5185dccc7fd6cb2b812feb
4fd8b345ddcd46fe2c780caa582d1263fbf172ee
refs/heads/master
2021-08-30T04:23:41.137920
2017-12-14T19:51:14
2017-12-14T19:51:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
import sqlite3 import synapse.lib.db as s_db ''' Integration utilities for sqlite db pools. ''' # turn on db cache sharing sqlite3.enable_shared_cache(1) def pool(size, path, **kwargs): ''' Create an sqlite connection pool. Args: size (int): Number of connections in the pool ''' def cto...
c65063c16efbcaef1560909ad2312ed2b5c5d158
7066555f4c2ff9b405754d2e793b97bf04b6ab98
/jianzhi-offer/04.py
9043030e7a970938f899c10b58708952719fc874
[]
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
448
py
class Solution: def findNumberIn2DArray(self, matrix: List[List[int]], target: int) -> bool: R = len(matrix) if R == 0: return False C = len(matrix[0]) r, c = 0, C-1 while 0 <= r < R and 0 <= c < C: if matrix[r][c] > target: c -= 1 ...
7f8c4b566d38a4e701f4b0ef300ea8cc157b73d1
009df7ad499b19a4df066160cf0c7d8b20355dfb
/src/the_tale/the_tale/game/companions/abilities/relations.py
7ac90d034fcb5fb146883eb23f31cb9e408467ca
[ "BSD-3-Clause" ]
permissive
devapromix/the-tale
c0804c7475e877f12f29444ddbbba025561d3412
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
refs/heads/develop
2020-03-28T20:26:30.492292
2018-10-07T17:32:46
2018-10-07T17:32:46
149,070,887
1
0
BSD-3-Clause
2018-10-07T17:32:47
2018-09-17T04:57:50
Python
UTF-8
Python
false
false
6,846
py
import smart_imports smart_imports.all() class METATYPE(rels_django.DjangoEnum): description = rels.Column() records = (('TRAVEL', 0, 'дорожная', 'влияет на скорость путешествия героя'), ('BATTLE', 1, 'боевая', 'влияет на битвы'), ('MONEY', 2, 'денежная', 'влияет на деньги и п...
5759a5b0fc9daa4829c1e47292239d9b10d0c643
60223e7376275631710d5ff8231e6cab23b383bb
/sportsbet/registration/migrations/0001_initial.py
7db1135783099878ca9b97c607d7ae98abaaabab
[]
no_license
sangeeth-subramoniam/sportsbet
5f07a8f8013cf1bcf88d7a2ef9ffa26ce8c24eb8
d41af45bc49c0ac1c62d000026b2d7f0684369a6
refs/heads/main
2023-08-24T06:08:01.980781
2021-10-27T05:15:55
2021-10-27T05:15:55
418,737,197
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
# Generated by Django 3.2.8 on 2021-10-19 02:32 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...
3f30af29870f82c99f507dfb86f222a60a8a626a
e7b7505c084e2c2608cbda472bc193d4a0153248
/LeetcodeNew/python/LC_813.py
f7f4a9deb62825b29cd55f0a2eebd63f5687bf09
[]
no_license
Taoge123/OptimizedLeetcode
8e5c1cd07904dfce1248bc3e3f960d2f48057a5d
3e50f6a936b98ad75c47d7c1719e69163c648235
refs/heads/master
2023-02-27T21:13:40.450089
2023-02-07T04:11:09
2023-02-07T04:11:09
170,044,224
9
3
null
null
null
null
UTF-8
Python
false
false
3,187
py
""" X X X X X [X X i] dp[i][K] : the maximum of sum of the average of the k groups dp[j][K-1] + avg(j+1, i): """ import collections class SolutionTony: def largestSumOfAverages(self, nums, k: int) -> float: memo = {} return self.dfs(nums, 0, k, memo) def dfs(self, nums, i, k, memo): ...
cba321e8cc0e76f36c27b898e78e56c7ba09dde5
9cfdfe633dfb2755955f9d356fdd0a9601089955
/accounts/forms.py
ce49fb97a27747bb33ce17c2986e8f8c9c77e3f1
[]
no_license
DimAntDim/ResumeBuilder
cec597ba4b857d98147e2f5f6831bd3c93c83c80
0507d5d9c44936d892df280015f7c6d8e630f55b
refs/heads/main
2023-08-21T08:03:43.327868
2021-11-03T19:43:04
2021-11-03T19:43:04
394,882,643
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
from .models import Profile from django import forms from django.contrib.auth import get_user_model UserModel = get_user_model() class ProfileForm(forms.ModelForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['first_name'].widget.attrs.update({'class': 'inp...
baa4b16248b44f4c2c45800896451fa44644c5a4
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/9AMT6SC4Jz8tExihs_9.py
bb2c304e4cf2aa2ec2362ec9ace44483c5877dc3
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
def countStrings(n): x=[] x.append(0) p = (1 << n) for i in range(1, p): if ((i & (i << 1)) == 0): x.append(i) return x def generate_nonconsecutive(n): res,c='',n for i in countStrings(n): a=bin(i).replace('b','') if len(a)<c: b='0'*(c...
6cefd5f8948ce9a2d3b3df747ce88b2daa6c80b6
741c5c70bf4a0adb05db6b0777c8d07e28eb9cf6
/bin/easy_install-3.4
1f532eda7ff95e38c48cd8828a33ad5a0823bea9
[]
no_license
andybp85/hyLittleSchemer
e686d2dc0f9067562367ea1173f275e8e2d2cb85
af5cb6adf6a196cc346aa7d14d7f9509e084c414
refs/heads/master
2021-01-19T07:48:31.309949
2015-01-04T00:57:30
2015-01-04T00:57:30
28,496,304
6
0
null
null
null
null
UTF-8
Python
false
false
271
4
#!/Users/andrew/dev/python/virtualenvs/HY3/bin/python3.4 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
5ac5bca329b95a6f0263befae741e5d9b76a1eb7
14bd4b2131dfc1a7a4c7b2518e694f7817763ecf
/core/migrations/0005_auto_20180107_1711.py
9f3c5f53e6d48c581f5e4c1af22c3e3c30fb80d8
[]
no_license
itkartell/vozhakov
ea5ca11bd5aa2a2de2d7fc69d39c569ddaaaaac4
dcf516a476920a5d3313ec1a246c3b980b57c0c7
refs/heads/master
2021-05-09T02:02:32.328687
2018-01-21T22:20:54
2018-01-21T22:20:54
119,194,706
0
1
null
null
null
null
UTF-8
Python
false
false
742
py
# Generated by Django 2.0 on 2018-01-07 17:11 import ckeditor_uploader.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_auto_20180107_1709'), ] operations = [ migrations.AddField( model_name='video', ...
eff984e146cda1a9191c3692e08c2743385564ce
626833b2f8955b1d5b6ac33328e689c793f1a1c2
/Chapter6/BA6A.py
6d62022674126e96ceee657f64806ab15aa9a646
[]
no_license
Leoberium/BA
8b1bbe9ddf43e9498b3e7419fbdc7ae81e151c43
61409d57a228188e7d8ce78db20cf926f2a1d34d
refs/heads/master
2020-09-22T14:43:43.338784
2019-12-01T23:24:12
2019-12-01T23:24:12
225,244,710
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
import sys def greedy_sorting(p): permutations = [] for i in range(len(p)): if abs(p[i]) != i + 1: index = 0 for j in range(i + 1, len(p)): if abs(p[j]) == i + 1: index = j break m = (index - i) // 2 ...
43ecc023480a4d0a3ae444fdbb018d62949e576f
277cd286fa69eb7ab03b806a620322d5701b04b3
/2017/round2/freshCholocate.py
9a32325d5177e3651f13eb3194f6926336f867be
[]
no_license
YeahHuang/Codejam
5cd96d45cdb8d26eadb1e3a5f1fae8c1faef4e48
5086696b9dd1ac7b09f0cab34b643dde1d916e0b
refs/heads/master
2021-05-24T17:36:36.314823
2020-07-19T15:52:52
2020-07-19T15:52:52
253,679,729
0
0
null
null
null
null
UTF-8
Python
false
false
2,098
py
from bisect import bisect_left, bisect_right, insort_left, insort_right from string import ascii_lowercase from heapq import heappush, heappop, heapify from collections import Counter, defaultdict from itertools import product import random import sys """ 11:57 - 13:01 pass n(number of groups) p(number of pieces of...
5b709f7498dc80885e92977e4067ecdcf71992e7
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_109/38.py
7c4de50235fef69c7b9596e465413432228daf45
[]
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,441
py
#!/usr/bin/python import sys def solve(N, W, L, students): corners = set([(0, 0)]) locs = {} ordered_students = list(enumerate(students)) ordered_students.sort(key=lambda a: -a[1]) for j, r in ordered_students: for x, y in corners: px = x py = y newx = ...
88cfb85af6861de642d593f1d15f51ff6a76f3d4
1780cd68f8927c2e8d57850ef2985c5a682dd2de
/wsh/__main__.py
c7adcbf6938075befdbb3048e01155e69ea2ea25
[]
no_license
RyanKung/stack
68087b85560e0a4f334521123153694cb555f595
27e2563763dbca73e816ab699e3f5976d5b92a53
refs/heads/master
2021-01-21T15:21:56.766727
2016-07-27T02:53:45
2016-07-27T02:53:45
57,367,027
84
7
null
2016-05-22T04:17:55
2016-04-29T08:04:27
Python
UTF-8
Python
false
false
128
py
import sys import re from .main import main sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
12067521f8dcc24d30cfd4bdd28b91eb3e13998d
5777b01b9d6a6479cf2dc497ea8e3ff7f7dc7b48
/206_ReverseLinkedList.py
4d1b5eaa52406f88cbf5c4f45744d06c850ef63e
[ "MIT" ]
permissive
brettchien/LeetCode
d0e6c980b814fe866667f7be23ee674949004a49
386b9e2f7c6389fed8825a5ec0b8c0ea733e780b
refs/heads/master
2021-03-12T21:24:06.552129
2016-08-27T06:10:55
2016-08-27T06:10:55
38,339,280
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param {ListNode} head # @return {ListNode} def reverseList(self, head): if not head: return head dummy = ListNode(0) d...
4bc511805642a574d45078d0a0c880bacbde8c51
51afd3d538f79c13af39dc13d974b2fe48be0285
/baseline_LR/train_test_multilr.py
c83a597a9828a59e59d3027bd83195528d105e0e
[]
no_license
listenzcc/mne_signal_detection
5d6fc7831762281bfea5a3377a957a6b2688ca28
103e0b3736a14dd0b6763583d94b5bd1f47bdc9c
refs/heads/master
2020-04-04T19:18:11.299444
2018-12-07T01:26:11
2018-12-07T01:26:11
156,200,657
0
0
null
null
null
null
UTF-8
Python
false
false
3,771
py
# coding: utf-8 import os import sys import numpy as np import threading import matplotlib.pyplot as plt from sklearn.linear_model import LogisticRegression sys.path.append('..') from load_preprocess import get_epochs def vstack(a, b): if len(a) == 0: return b return np.vstack((a, b)) def scale(dat...
d4cdff5dc3003601e3f5cd24332181069349a8c4
e9f5ab8edbc60272a6e0ee8ad97c84eec344e5d6
/examples/02_stdnormal_K1/plot-01-demo=deletes-model=dp_mix+gauss.py
b67a27f76ce42412714edf4a594f7940dd01042d
[ "BSD-3-Clause" ]
permissive
s-mawjee/bnpy
85a114043b4d557e3e2baec9ce654a50712dce7d
57cc2d6545c6bd169132db5596a323ea52980d50
refs/heads/master
2020-04-24T23:45:57.889647
2019-05-08T11:07:08
2019-05-08T11:07:08
155,522,778
0
0
null
null
null
null
UTF-8
Python
false
false
4,605
py
""" ======================================================================== Variational with merge and delete proposals for DP mixtures of Gaussians ======================================================================== How delete moves can be more effective than merges. In this example, we show how merge moves al...
e02578080980b2b450e344b20eee1ab7eb42e084
8dc84558f0058d90dfc4955e905dab1b22d12c08
/third_party/chromite/lib/cros_logging_unittest.py
5ec365c3addccd5a85b0afd3193dc35ebed13c47
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
meniossin/src
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
44f73f7e76119e5ab415d4593ac66485e65d700a
refs/heads/master
2022-12-16T20:17:03.747113
2020-09-03T10:43:12
2020-09-03T10:43:12
263,710,168
1
0
BSD-3-Clause
2020-05-13T18:20:09
2020-05-13T18:20:08
null
UTF-8
Python
false
false
3,796
py
# -*- coding: utf-8 -*- # Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Tests for cros_logging.""" from __future__ import print_function import sys from chromite.lib import cros_logging as logging...
1eed5a6b4240f4958b2f31bd6573c8e90732fd33
d3ce58c4576431df14de0990f45cfd574f0aa45f
/.history/user/views_20201012031349.py
c2b13bfdbd18379d7610d2eee0c80aff2d6309f3
[]
no_license
rahulsolankib/portfolio
fe93f0e6b0b28990f0b9fad84dbf7c3aa07243c4
281ed429e2590376aee4649b2ea7b3e8facaf6f1
refs/heads/master
2023-01-02T06:55:21.319094
2020-10-26T08:55:22
2020-10-26T08:55:22
305,586,595
0
0
null
null
null
null
UTF-8
Python
false
false
659
py
from django.shortcuts import render,redirect from django.contrib.auth.forms import UserCreationForm from django.contrib import messages from .forms import UserRegisterForm # Create your views here. def register(request): if request.method == 'POST': form = UserRegisterForm(request.POST) if form....
30a6d77a390396db8c45a785cd1129a10f348acb
b8dfb4371270042da2828b8f3e3da9a1ee9d0e83
/chat/migrations/0002_message_created.py
296f446a5b7beab992b26586c1d1b4b66dbb2116
[]
no_license
skiboorg/puzzle_game
4bcfcad8a5e9647b413cab3b6f05b7aaa92811b3
c38a6b5af9c50da0a1e978df3851d7d78db41dfe
refs/heads/master
2023-01-22T15:48:58.962659
2020-11-25T07:27:01
2020-11-25T07:27:01
263,743,360
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
# Generated by Django 3.0.6 on 2020-05-16 12:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('chat', '0001_initial'), ] operations = [ migrations.AddField( model_name='message', name='created', fiel...
f14882f969949e9cb17aeffd927c279b87368ab3
1d483945b82db39d2c5a0cd31522c2780c2c43ad
/my_app/ss_lib/Ssheet_class.py
6b13db5aa008fc257c6cecf841cf911bc6309015
[]
no_license
jpisano99/scrub_email
f2dfaa47437a1e5102baa62687df84e855be8835
0aaff6d8ffd5adc6549d490c396d8ae125ca6ad4
refs/heads/master
2020-07-24T22:35:07.855516
2019-09-16T15:06:52
2019-09-16T15:06:52
208,071,291
0
0
null
null
null
null
UTF-8
Python
false
false
6,060
py
from .smartsheet_basic_functions import * ss_config = dict( SS_TOKEN=my_app.my_secrets.passwords["SS_TOKEN"] ) class Ssheet: ss_token = ss_config['SS_TOKEN'] ss = smartsheet.Smartsheet(ss_token) def __init__(self, name, meta_data_only=False): self.name = name self.sheet = {} ...
c7687c1fc9bb0a10bffee0abdafcf0a9bdbfa4c2
0366bccae8841bbf6ecaad70660aae89bb0f6394
/19_OOP_polymorphism.py/4_example.py
6b6eaf7e022d461d103323dc43a5c7a9f62a3f52
[]
no_license
KobiShashs/Python
8a5bdddcaef84b455795c5393cbacee5967493f7
e748973ad0b3e12c5fb87648783531783282832a
refs/heads/master
2021-04-05T20:18:57.715805
2020-04-02T21:51:44
2020-04-02T21:51:44
248,597,057
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
class BigThing: def __init__(self, something): self._something = something def size(self): if(type(self._something) == int): print(self._something) else: print(len(self._something)) class BigCat(BigThing): def __init__(self, something, weight): super...
09171235eb4b872b6ae2dd265aee80bd82353d98
f09dc121f213f2881df3572288b7ee5b39246d73
/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyInstanceMaintenanceAttributesRequest.py
2c3e59f0c7a53b3514866f689d76e78e1a24c31f
[ "Apache-2.0" ]
permissive
hetw/aliyun-openapi-python-sdk
2f31378ad6be0896fb8090423f607e9c7d3ae774
7443eacee9fbbaa93c7975c6dbec92d3c364c577
refs/heads/master
2023-01-19T22:42:36.214770
2020-12-04T10:55:14
2020-12-04T10:55:14
318,689,093
1
0
NOASSERTION
2020-12-05T03:03:03
2020-12-05T03:03:03
null
UTF-8
Python
false
false
3,168
py
# 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 # "License"); you may not u...
175ca4dbc99b9d492d6ae7075d14c6c264b624c7
503d2f8f5f5f547acb82f7299d86886691966ca5
/atcoder/diverta2019_b.py
91c65200aac281406b1f81daf84852c467ff3220
[]
no_license
Hironobu-Kawaguchi/atcoder
3fcb649cb920dd837a1ced6713bbb939ecc090a9
df4b55cc7d557bf61607ffde8bda8655cf129017
refs/heads/master
2023-08-21T14:13:13.856604
2023-08-12T14:53:03
2023-08-12T14:53:03
197,216,790
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
# https://atcoder.jp/contests/diverta2019/tasks/diverta2019_b R, G, B, N = map(int, input().split()) ans = 0 for r in range(N//R+1): tmp = N - r * R for g in range(tmp//G+1): if (N - r * R - g * G) % B == 0: ans += 1 print(ans)
fa67cb1779f7feb966a476e6984cc58af6ff7cf3
688be2b7e2aef0f7484f390d0a1dc105e3217b5e
/product/urls.py
9819a5d59007108354d65c5c2464a9f98ab6b2fc
[]
no_license
extreme1337/olx-clone
0fffac94f3d6bce0085bc52526357a6f2b81bd47
d7ad9e5d90f9dbb73d1fbe8b82b8d0d2b6996922
refs/heads/main
2023-03-01T11:00:22.760807
2021-02-10T08:27:13
2021-02-10T08:27:13
337,080,866
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
from django.urls import path from . import views app_name = 'product' urlpatterns = [ path('', views.productlist, name='product_list'), path('<slug:category_slug>', views.productlist, name='product_list_category'), path('detail/<slug:product_slug>', views.productdetail, name='product_detail'), ]
cc097148e3d7e18a8f47a9cb3025b59a1f608088
c102085883a0c066f3d7edf7d81e4057ed745748
/pypy3/lilac.py
767f629c87e8c52708e572cf27fe02b4ef234ad9
[]
no_license
jcstr/arch4edu
58afe3a59727bb57afd1decdd6988392d151c29b
76104e81ef0097a6c21f3d241b92772656b39703
refs/heads/master
2020-05-15T15:19:40.301478
2019-04-20T06:21:14
2019-04-20T06:21:14
182,370,458
0
1
null
null
null
null
UTF-8
Python
false
false
990
py
#!/usr/bin/env python3 from lilaclib import * update_on = [{'archpkg': 'pypy3'}] build_prefix = ['extra-armv6h', 'extra-armv7h'] time_limit_hours = 72 def pre_build(): download_official_pkgbuild('pypy3') add_arch(['armv6h', 'armv7h']) for line in edit_file('PKGBUILD'): if line.startswith('source=...
b0dfaa6f3182873be00588c860c03b8b3989b65d
52b5773617a1b972a905de4d692540d26ff74926
/.history/cylicRot_20200715001137.py
b769c8a9d001bcac07d9fa2a6eb925b43dd3895f
[]
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
543
py
# given an array rotate it k times to the right def rotate(A,K): # first I'd rotate the array once # so how do we rotate the array # we move the last element to the firs place and # the rest follow suit # moving elements to the right in an array # [3,8,9,7,6] # 3 ---> 0 now 3 ---> 1 ...
720904416d61d2eb860e892e6a3bedc06be3beb9
0febba6ea7a07550e3c7677dfb4037f3ea9662e4
/mysite/settings.py
dea9ef93351be4c69ed1fcb3f4a893bfa014fe75
[]
no_license
abubych/my-first-blog
88341a6e2b9a006aa22fc1b243230c95e51a400a
8e39bd6a0d964bcaa99db7bfbe89a1755d75c113
refs/heads/master
2020-09-26T22:09:31.931145
2019-12-06T15:03:10
2019-12-06T15:03:10
219,852,145
1
0
null
null
null
null
UTF-8
Python
false
false
3,155
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.7. 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/ """ import os # ...
12f2d2c34e5181bb8883b981c7dd86ec76bba947
c8ea4fe0dccca928b92234b72a7a8d9cd6cf4d14
/tests/eth2/beacon/types/test_proposer_slashings.py
2d70091de7d9c186937546a3f8b370369a0c2677
[ "MIT" ]
permissive
kclowes/trinity
b6bc4f7c57ade1651cf9b2ca9ca88493f3485007
f0400c78a6d828dd266b1f31dd3fa7aacf97486d
refs/heads/master
2020-04-16T16:11:28.531260
2019-01-14T17:03:56
2019-01-14T17:44:58
165,728,497
0
0
MIT
2019-01-14T20:17:01
2019-01-14T20:17:00
null
UTF-8
Python
false
false
665
py
from eth2.beacon.types.proposer_slashings import ( ProposerSlashing, ) def test_defaults(sample_proposer_slashing_params): slashing = ProposerSlashing(**sample_proposer_slashing_params) assert slashing.proposer_index == sample_proposer_slashing_params['proposer_index'] assert slashing.proposal_data_1...
cdd80aa7d4fd23ee92ffbfa5085fa51294fb6d22
614cad3588af9c0e51e0bb98963075e3195e92f5
/models/onet/config.py
5ab763d53ab51f06d527d863d05d4dbdd603df17
[]
no_license
dragonlong/haoi-pose
2810dae7f9afd0a26b3d0a5962fd9ae8a5abac58
43388efd911feecde588b27a753de353b8e28265
refs/heads/master
2023-07-01T14:18:29.029484
2021-08-10T10:57:42
2021-08-10T10:57:42
294,602,794
0
0
null
null
null
null
UTF-8
Python
false
false
4,532
py
import torch import torch.distributions as dist from torch import nn import os import __init__ from models.encoder import encoder_dict from models.onet import models, training, generation # from im2mesh import data # from im2mesh import config import dataset as data from utils import config def get_model(cfg, device...
7e404da28c3fe14b73b70c442e023410f00a3ade
a62fdd0beb6c47cc704c1192b68b0bcfcd024304
/Python/II/19-TXTEDIT2/3/ui_form.py
a4d1d6b8f2c118bffdff979ebf87d1580422b60e
[]
no_license
a6461/Qt-PyQt
da1895b4faccda80b8079ecdca79f1ea525daa0a
404bd7fbbc432ebeaa1a486fc8e005d47aed9cfd
refs/heads/master
2020-03-14T22:16:48.714825
2018-06-12T20:45:58
2018-06-12T20:45:58
131,817,506
0
0
null
null
null
null
UTF-8
Python
false
false
7,492
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'form.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("For...
70cb2348662187ca633adcf0cdd99bff60a49366
cd40b7cc395f36740000ed4a4144b1c0666ab0fd
/hstrat/test_drive/generate_template_phylogeny/_evolve_fitness_trait_population_/__init__.py
120b54b41250aec6ea25e07702d1f1cbcbf146b6
[ "MIT" ]
permissive
mmore500/hstrat
94fd22c86a87a5707590b9398ef679444ed82d6d
b2d2caded1db5e2dc681d9f171d7c74b322c55c3
refs/heads/master
2023-08-31T03:36:44.457576
2023-08-25T14:39:29
2023-08-25T14:39:29
464,531,144
5
2
NOASSERTION
2023-08-25T13:07:52
2022-02-28T15:11:45
Python
UTF-8
Python
false
false
575
py
"""Implementation for `evolve_fitness_trait_population`.""" from ._apply_island_migrations import _apply_island_migrations from ._apply_mutation import _apply_mutation from ._apply_niche_invasions import _apply_niche_invasions from ._get_island_id import _get_island_id from ._get_niche_id import _get_niche_id from ._s...
c84c74cb7e09d90664a0eec0ef4a514fc53fc7d3
77311ad9622a7d8b88707d7cee3f44de7c8860cb
/res_bw/scripts/common/lib/email/mime/application.py
c28b866a4335bc589db5c85b4d96b4a6b04c04fd
[]
no_license
webiumsk/WOT-0.9.14-CT
9b193191505a4560df4e872e022eebf59308057e
cfe0b03e511d02c36ce185f308eb48f13ecc05ca
refs/heads/master
2021-01-10T02:14:10.830715
2016-02-14T11:59:59
2016-02-14T11:59:59
51,606,676
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,525
py
# 2016.02.14 12:47:54 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/email/mime/application.py """Class representing application/* type MIME documents.""" __all__ = ['MIMEApplication'] from email import encoders from email.mime.nonmultipart import MIMENonMultipart class MIMEApplication(MIMENonMult...
91385116b3fdd55a4da2fd97f1c0d310dc86f93b
3b74b57d5f513e98d1ad5404c09aeb7b7a03ed63
/solow/tests_solow/test_ces.py
b39266ad585f3e2e99a4867cb3fa058212f302e9
[]
no_license
vgregory757/QuantEcon.applications
0b7a13aa05798c15ff5943adb99d4c01585a2d76
4f542e20034b1ca6cfbca2708cb6e29509af401d
refs/heads/master
2020-04-05T22:52:45.978767
2017-03-15T19:53:30
2017-03-15T19:53:30
51,265,260
2
1
null
2016-02-07T20:39:34
2016-02-07T20:39:33
null
UTF-8
Python
false
false
2,652
py
""" Test suite for ces.py module. @author : David R. Pugh @date : 2014-12-08 """ import nose import numpy as np from .... models.solow import ces params = {'A0': 1.0, 'g': 0.02, 'L0': 1.0, 'n': 0.02, 's': 0.15, 'alpha': 0.33, 'sigma': 1.1, 'delta': 0.05} model = ces.CESModel(params) def test_steady_sta...
2c4b41bdd50001fb5c1c59e6267ace6e6328bb99
b44b690c96cfbaba35fa3cc32e8da4442adb9fad
/Python/0151. Reverse Words in a String.py
321978c8c6a222f9d220eacb369fc4854db04e12
[]
no_license
faisalraza33/leetcode
24d610c6884e218719d82a5c79f1695cb6463d68
d7cf4ffba14c6f1ff4551634f4002b53dfeae9b7
refs/heads/master
2022-08-10T02:05:21.932664
2022-07-05T09:59:47
2022-07-05T09:59:47
238,060,131
0
0
null
2020-02-03T20:54:51
2020-02-03T20:54:50
null
UTF-8
Python
false
false
1,218
py
# Given an input string s, reverse the order of the words. # A word is defined as a sequence of non-space characters. The words in s will be separated by at least one space. # Return a string of the words in reverse order concatenated by a single space. # Note that s may contain leading or trailing spaces or multiple s...
dafa4f1cff7207f3e58d1b7ccc1374c0626541d2
d993f821da125498b6dfb01792fcd24c83ae7e34
/selfself/Custom_Logger.py
b5e3ddece1261f6cbd1aac598eaa40a1be777d40
[]
no_license
Arjuna1513/Python_Practice_Programs
2c8370d927c8bade2d2b0b5bd0345c7d5f139202
7c72600d72f68afee62ee64be25d961822429aeb
refs/heads/master
2020-06-24T02:36:03.186924
2019-07-25T14:31:02
2019-07-25T14:31:02
198,824,589
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
import logging import inspect class CustomLogger: def custom_logger(self, logLevel=logging.INFO): loggerName = inspect.stack()[1][3] logger = logging.getLogger(loggerName) logger.setLevel(logging.DEBUG) fHandler = logging.FileHandler("Automation.log", mode='a') fHandler....
e6b6647a488e26f74160f7438b57eade28904ee2
f1961c86e6da14f35c21d7235f4fc8a89fabdcad
/DailyProgrammer/DP20120716C.py
fbf41c1a899349a2b6e8c51a9ac8c6c23b1ec13b
[ "MIT" ]
permissive
DayGitH/Python-Challenges
d4930bdd85cd1a977d8f6192775ca956a375fcde
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
refs/heads/master
2021-01-17T13:01:03.784523
2018-06-29T23:49:04
2018-06-29T23:49:04
58,497,683
2
0
null
null
null
null
UTF-8
Python
false
false
2,015
py
""" Write a program that is able to find all words in a Boggle [http://en.wikipedia.org/wiki/Boggle] board. For a word list, you can use this file [http://code.google.com/p/dotnetperls-controls/downloads/detail?name=enable1.txt]. How many words can you find in the following 10x10 Boggle board? T N L E P I A C N M T R...
af364988e9423021730917fdab606389a84c8240
7a1a65b0cda41ea204fad4848934db143ebf199a
/automatedprocesses_thirdstage/oath_core_yesterday_media.py
cdb09b67be3c5a1a2f87b835ad27edef4a1dd403
[]
no_license
bpopovich44/ReaperSec
4b015e448ed5ce23316bd9b9e33966373daea9c0
22acba4d84313e62dbbf95cf2a5465283a6491b0
refs/heads/master
2021-05-02T18:26:11.875122
2019-06-22T15:02:09
2019-06-22T15:02:09
120,664,056
0
0
null
null
null
null
UTF-8
Python
false
false
5,227
py
#!/usr/bin/python2.7 import sys import json import time import datetime import aol_api from mysql.connector import MySQLConnection, Error from python_dbconfig import read_db_config from data_file import report_book from data_file import platforms from data_file import fees todaysdate = time.strftime("%Y-%m-%d %H:%M:%...