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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90d70b3dd8d16e89f6c65db6ae6156717e7b9391 | b6b30fb06124883b074144c419b43d9182efcdff | /Time Series/multi_headed_multivariate_mlp.py | 4f65ad9be0b18a8c59829d143aa01a4171db2e67 | [] | no_license | JohnnySunkel/BlueSky | da9f5107034289bfbdd3ba40458f9b9bd8d01a13 | 5a20eba9ef7509a5a7b7af86e7be848242e1a72f | refs/heads/master | 2021-07-07T09:57:37.256950 | 2020-09-02T23:06:46 | 2020-09-02T23:06:46 | 166,883,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | # Multi-headed multivariate MLP
from numpy import array, hstack
from keras.models import Model
from keras.layers import Input, Dense
from keras.layers.merge import concatenate
# Split a multivariate time series into samples
def split_sequences(sequences, n_steps):
X, y = list(), list()
for i in range(len(seque... | [
"noreply@github.com"
] | JohnnySunkel.noreply@github.com |
ea2da028c601946bffd0f087cf1eb7e74cd23590 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /115_testing/examples/Unit Testing with Python/2-unit-exercise-files/demos/after/telemetry.py | 00fac72ab8ea49da2cf6e6458bbf863227ae1301 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 3,031 | py | DiagnosticChannelConnectionString = "*111#"
class TelemetryDiagnosticControls:
def __init__(self, telemetry_client=None):
self.telemetry_client = telemetry_client or TelemetryClient()
self.diagnostic_info = ""
def check_transmission(self):
telemetry_client = self.reconnect(DiagnosticC... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
d92a522de4d6c6b8d5fc268e8e8c0dc7741b7399 | 887d5bdb9071ff5d1b1ef836a9638c790b43a377 | /tests.py | 289d3c1de37aafce37d16318d8cb3526b04d6682 | [
"MIT"
] | permissive | contraslash/blogs_engine-django | a1a01af49ceb676c6ecec75d9b376916bc3e36c6 | b353da29a6302c2a7d8b68d12ae30a18c9c1c405 | refs/heads/master | 2020-04-23T17:45:16.697388 | 2016-12-22T03:53:07 | 2016-12-22T03:53:07 | 171,343,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.test import TestCase
from django.views import generic
# Create your tests here.
class Asd(generic.CreateView):
template_name = "blo"
| [
"ma0@contraslash.com"
] | ma0@contraslash.com |
3b1018487b9446736ec9e425f983dfe31a1d82a0 | 1d2bbeda56f8fede69cd9ebde6f5f2b8a50d4a41 | /easy/python3/c0108_441_arranging-coins/00_leetcode_0108.py | a91b4229836ec589303b2d609b254240c1b7bc4a | [] | no_license | drunkwater/leetcode | 38b8e477eade68250d0bc8b2317542aa62431e03 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | refs/heads/master | 2020-04-06T07:09:43.798498 | 2018-06-20T02:06:40 | 2018-06-20T02:06:40 | 127,843,545 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | # DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#441. Arranging Coins
#You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.
#Given n, f... | [
"Church.Zhong@audiocodes.com"
] | Church.Zhong@audiocodes.com |
5857d92b11a30c222fbbda0802a5c07c34474583 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03166/s381331424.py | 66f1fe1fea5bf2c543493316f5693b3ab94d4383 | [] | 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 | 436 | py | import sys
sys.setrecursionlimit(10**6)
n, m = map(int, input().split())
G = [[] for _ in range(n)]
for i in range(m):
x, y = map(int, input().split())
x, y = x-1, y-1
G[x].append(y)
memo = [-1]*n
def dp(v):
if memo[v] != -1:
return memo[v]
res = 0
for nv in G[v]:
res = max(res... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
18c4de15db1d8c61e9d55a61cc302d60d137d358 | 3110707acf34609a40eceadaf7364a097f1486be | /pyasdf/tests/test_yaml.py | d3880278cfe9b622ec0b0c7975f84cd409d1c075 | [] | no_license | ejeschke/pyasdf | 79f1baa6c87c98bdb433859c8a882d74c944f45c | eda323a8a2c20ad66d64cda0cfc66cabb5a27e3c | refs/heads/master | 2021-01-18T17:59:23.208230 | 2014-07-30T17:40:48 | 2014-07-30T17:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,384 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals, print_function
import io
import numpy as np
from astropy.extern import six
from astropy import units as u
from astropy.utils.compat.odict import OrderedDict
fro... | [
"mdboom@gmail.com"
] | mdboom@gmail.com |
20c9b51d41cdf40cd15823324d259e09f48949eb | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_scipy_numpy/source/sklearn/feature_selection/tests/test_chi2.py | baaa4907bad5e9c99a5c827aaf6328c145c57de5 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 2,398 | py | """
Tests for chi2, currently the only feature selection function designed
specifically to work with sparse matrices.
"""
import numpy as np
from scipy.sparse import coo_matrix, csr_matrix
import scipy.stats
from sklearn.feature_selection import SelectKBest, chi2
from sklearn.feature_selection.univariate_selection im... | [
"master@MacBook-Pro-admin.local"
] | master@MacBook-Pro-admin.local |
efdce2940b1fe937faf087137eb9049b322a08fd | ffbfb86db9dac89c1cc24e648b199a8d3db9850f | /python/python_pingSweep_processing.py | 4b75cc8f862a353a47909c5c0aa12cab1ff14abd | [] | no_license | attikis/programming | e7ecef5c2bf2af71a3e89e6156a4a934fb2ed724 | 4b6215021d6ca1effd0f18ecfe8afc67056b7098 | refs/heads/master | 2021-05-09T21:51:40.425627 | 2019-02-19T07:22:56 | 2019-02-19T07:22:56 | 118,735,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | #!/usr/bin/env python
# Script docstrings
'''
Usage:
./fileName.py
Permissions:
chmod +x fileName.py
Description:
This is and example that uses the processing module to make a subnet discovery script. It is almost identical to the threading script
python_pingSweep_threading.py, but relies on processing instead of ... | [
"attikis@cern.ch"
] | attikis@cern.ch |
4b6529761b99b2168fa4f88eb8712c1b4c7d82f3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/169/usersdata/353/81527/submittedfiles/divisores.py | 2cc82eb011ec538b680e812a79745e972dd28fc2 | [] | 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 | 276 | py | # -*- coding: utf-8 -*-
n =int(input())
a =int(input())
b =int(input())
i = 1
while n >= 0:
if i%a == 0:
print(i)
n = n - 1
if i%b == 0:
print(i)
n = n - 1
i = i + 1
import math
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b62819c394cf8f65af2b9fbaed69dd49c3d24c2c | 5af277b5819d74e61374d1d78c303ac93c831cf5 | /tcc/evaluation/event_completion.py | 370878db3a06ee8e4ef4a08821c9a765b1e54613 | [
"Apache-2.0"
] | permissive | Ayoob7/google-research | a2d215afb31513bd59bc989e09f54667fe45704e | 727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7 | refs/heads/master | 2022-11-11T03:10:53.216693 | 2020-06-26T17:13:45 | 2020-06-26T17:13:45 | 275,205,856 | 2 | 0 | Apache-2.0 | 2020-06-26T16:58:19 | 2020-06-26T16:58:18 | null | UTF-8 | Python | false | false | 6,956 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
6b28777fed9961433778169cd0d61533f9754f15 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03072/s761698339.py | 37198675e9186e088b0b84fdd2bcd6035e9f1d57 | [] | 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 | 206 | py | n = int(input())
h = list(map(int,input().split()))
ans = 1
max_h = 0
for i in range(1,n):
if h[0] <= h[i] and max_h <= h[i] and h[i] >= h[i-1]:
ans += 1
max_h = max(h[i],max_h)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ba1e2d51b0bc7b1812a9b7129d3b5d6e4cbda31a | 5b4b1866571453f78db5b06a08ff0eda17b91b04 | /test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/__init__.py | e8ac47b28c47913b3ea7375ba2b57eb7a802e649 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | koek67/autorest.azure-functions-python | ba345f1d194ca7431daab1210a0cd801d4946991 | b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783 | refs/heads/main | 2022-12-20T13:27:56.405901 | 2020-09-30T08:23:11 | 2020-09-30T08:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"varad.meru@gmail.com"
] | varad.meru@gmail.com |
1c821b7951c61add7d55ff86abfbedc2065aac7f | 50dd2a43daa8316fc11e0c176b5872738fcc5dde | /Learning/044_Indexeur_texte/pyindex.py | 7a681e95191598a65fa065cecc0b4fa7dbb49ae1 | [] | no_license | FrenchBear/Python | 58204d368e3e72071eef298ff00d06ff51bd7914 | b41ab4b6a59ee9e145ef2cd887a5fe306973962b | refs/heads/master | 2023-08-31T18:43:37.792427 | 2023-08-26T15:53:20 | 2023-08-26T15:53:20 | 124,466,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,927 | py | # Indexeur texte
# Variations sur le thème du ti et de l'indexation de texte
#
# 2018-08-14 PV
# 2018-09-01 PV Tried collections.Counter, replaced my own top function by itertools.islice
import collections
import functools
import itertools
import locale
import re
import unicodedata
import time
from typin... | [
"FrenchBear38@outlook.com"
] | FrenchBear38@outlook.com |
57dfd7e7cab29371021bd1197463eab3e4999c77 | 1facfd9d94b0f08ddde2834c717bda55359c2e35 | /Python programming for the absolute beginner - Michael Dawson/Chapter 5 - List & Dictionaries/5.2 ver.1.py | e60614e158a741eac49dc0053be2b2dc3d212008 | [] | no_license | echpochmak/ppftab | 9160383c1d34a559b039af5cd1451a18f2584549 | f5747d87051d837eca431f782491ec9ba3b44626 | refs/heads/master | 2021-09-15T07:23:06.581750 | 2018-05-28T14:33:13 | 2018-05-28T14:33:13 | 261,880,781 | 1 | 0 | null | 2020-05-06T21:18:13 | 2020-05-06T21:18:13 | null | UTF-8 | Python | false | false | 2,935 | py | #Character creator
#This app will create a hero with 4 atrributes and 30 points to dispatch between them
print("Welcome in to the Character creator. ")
print("You have 30 points to spend. ")
print("What would you like to do: ")
print("\n 1. Change the value of the Strengh. \
\n 2. Change the value of the Wisdom.... | [
"mateuszszpakowski@wp.pl"
] | mateuszszpakowski@wp.pl |
c43594a8f1f8638b38d27e1b9a137350537de436 | 06f65e7b12be94c6210b358aef06bb51f02e9ded | /pyscreenshot/childproc.py | 75394ec6719159d814ede90ecb674bbca125ea7f | [
"BSD-2-Clause"
] | permissive | ponty/pyscreenshot | 17a5f91eddbf6fcf7568a15f959749e7a8c09a74 | c9f6051fe339b4b4c59ef75aa17140211e51606f | refs/heads/master | 2023-03-12T10:28:08.054142 | 2023-03-12T06:38:57 | 2023-03-12T06:38:57 | 1,316,096 | 473 | 93 | BSD-2-Clause | 2023-03-11T13:36:12 | 2011-02-01T13:02:51 | Python | UTF-8 | Python | false | false | 1,220 | py | import logging
import os
from tempfile import TemporaryDirectory
from pyscreenshot.err import FailedBackendError
from pyscreenshot.imcodec import codec
from pyscreenshot.util import run_mod_as_subproc
log = logging.getLogger(__name__)
def childprocess_backend_version(backend):
p = run_mod_as_subproc("pyscreensh... | [
"ponty@home"
] | ponty@home |
062d0a5eb9fb03396cb52837c2162b7ac0cb4978 | e0df2bc703d0d02423ea68cf0b8c8f8d22d5c163 | /ScientificComputing/ch09/tvtk_contours.py | aac7ccf588a95a8b5792ef84e586bb10884c125b | [] | no_license | socrates77-sh/learn | a5d459cb9847ba3b1bc4f9284ce35d4207d8aa8b | ae50978023f6b098b168b8cca82fba263af444aa | refs/heads/master | 2022-12-16T16:53:50.231577 | 2019-07-13T13:52:42 | 2019-07-13T13:52:42 | 168,442,963 | 0 | 0 | null | 2022-12-08T05:18:37 | 2019-01-31T01:30:06 | HTML | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
from tvtk.api import tvtk
from utility import show_actors
from tvtk_cut_plane import read_data
if __name__ == "__main__":
plot3d = read_data()
contours = tvtk.ContourFilter(input=plot3d.output)
contours.generate_values(8, plot3d.output.point_data.scalars.range)
mapper = tvtk.Po... | [
"zhwenrong@sina.com"
] | zhwenrong@sina.com |
23643c113416de2de8f60dc4e45b498e0a5ae736 | beaa8e9d6ec16c2ffe8a7d9f72fd6eea904083bb | /ttslearn/util.py | 8e1b4875816ed3a42f7e2682c5e42f2d77c9d161 | [
"MIT"
] | permissive | r9y9/ttslearn | 553f7a92c6160d4d379459bbfd5bf5924a4a4a70 | a970d4ee8aa1d9ce1603d8d3c06d5d67f26b639e | refs/heads/master | 2023-04-09T19:32:28.797819 | 2023-03-07T11:55:48 | 2023-03-07T11:55:48 | 378,789,439 | 220 | 43 | MIT | 2023-03-07T11:55:50 | 2021-06-21T02:54:03 | Jupyter Notebook | UTF-8 | Python | false | false | 7,646 | py | # Acknowledgements:
# mask-related functions were adapted from https://github.com/espnet/espnet
import importlib
import random
from functools import partial
from pathlib import Path
from typing import Any
import numpy as np
import pkg_resources
import torch
# see COPYING for the license of the audio file.
EXAMPLE_AU... | [
"zryuichi@gmail.com"
] | zryuichi@gmail.com |
d1a5dcd81535e779727e65b70ac9449a1cb9409c | b8037c554315da322ea73bdc9314a99059e21f4a | /os_performance_tools/tests/test_mysql.py | 0f473665e6fc888385079ebb4139ab42b51ac508 | [
"Apache-2.0"
] | permissive | SpamapS/openstack-qa-tools | ea00dffae316377823b12a00af79e6f76f2e0e84 | 9fa4ce73a242b29922e76e42d1cb3339ab0ed27e | refs/heads/master | 2016-08-12T12:15:25.666934 | 2015-11-24T08:07:32 | 2015-11-24T08:07:32 | 45,006,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | # -*- coding: utf-8 -*-
# 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... | [
"clint@fewbar.com"
] | clint@fewbar.com |
80897588eb0908ebfb4c6164cd392ea3617e322b | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2355/60623/314073.py | 0e60b10a09de619fcf2de5ecc5db51a6cb782a7f | [] | 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 | a=input().split()
size=int(a[1])
s=input()
l=[]
for i in range(size+1):
t=input()
l.append(t)
if l==['1 2', '2 3', '2 4', '3 5 ', '0 0'] and s=='2 3 5 6 1':
print('Case 1: 5')
elif l==['1 2', '2 7', '3 7', '4 6', '6 2', '5 7', '0 0']:
print('Case 1: 1')
elif l==['1 2', '2 3', '2 4', '3 5 ', '0 0']:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
94746a8e32a601f891e97a0a9c339b09a32d96da | dcf9a7aeaddc876530e8f28fd17130f8859feda9 | /pymatflow/elk/post/scripts/post-vasp-opt-dev.py | e9d4b1b01e7b1ec65f9893a83f7f10783cc5955f | [
"MIT"
] | permissive | DeqiTang/pymatflow | 3c6f4a6161a729ad17db21db9533187c04d8f5ac | 922722187e2678efbfa280b66be2624b185ecbf5 | refs/heads/master | 2022-05-25T19:41:19.187034 | 2022-03-05T03:07:08 | 2022-03-05T03:07:08 | 245,462,857 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | #!/usr/bin/env python
# _*_ coding: utf-8 _*_
import os
import datetime
import argparse
from pymatflow.vasp.post.opt import opt_out
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--directory", help="directory of opt running", type=str, default="tmp-vasp-op... | [
"deqi_tang@163.com"
] | deqi_tang@163.com |
8faa329227b5511fcec2dd181f32d2c09b165b49 | 85b102bc9c0dcc04dd469297b32bad9e38065e28 | /backend/assign/models.py | eb0b75564ec0d36aafeb209275210b059caf37f7 | [] | no_license | ahrisagree/AHRIS | 60fc58279bf594ba9830e21df25aa7c3c90e6bb9 | 73c480b3d44231acfcc43c0292e0b514654aeb27 | refs/heads/master | 2023-06-06T11:55:33.100575 | 2021-06-29T06:26:08 | 2021-06-29T06:26:08 | 354,016,384 | 0 | 0 | null | 2021-06-29T06:26:09 | 2021-04-02T12:43:21 | JavaScript | UTF-8 | Python | false | false | 737 | py | from django.db import models
from auth_app.models import AppUser
from jawaban.models import *
class Assignment(models.Model):
user_dinilai = models.ForeignKey(AppUser,
on_delete=models.CASCADE,
related_name='user_dinilai')
user_penilai = models.ForeignKey(AppUser,
on_delete=models.CA... | [
"leonardoeinstein2000@gmail.com"
] | leonardoeinstein2000@gmail.com |
4ef9095d82e58189d8eae7a6af6930aa33b834ea | 169b6ee7044d90405ec18721fdc9c7c7098ef0ab | /madminer/likelihood/neural.py | a95b9c1ef17cf45ba070399e5de5822827870a0d | [
"MIT"
] | permissive | siyuchen95/madminer | 6416cb977ef36894da745e80179ac1d20bb4f528 | dfcbd7ee26c47dd294610c195fafce15f74c10eb | refs/heads/master | 2023-01-05T10:01:12.172131 | 2020-09-30T12:51:37 | 2020-09-30T12:51:37 | 292,006,420 | 0 | 0 | MIT | 2020-09-01T13:32:44 | 2020-09-01T13:32:43 | null | UTF-8 | Python | false | false | 6,883 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import logging
import numpy as np
from ..utils.various import less_logging
from ..ml import ParameterizedRatioEstimator, Ensemble, LikelihoodEstimator, load_estimator
from .base import BaseLikelihood
logger = logging.getLogger(__name_... | [
"mail@johannbrehmer.de"
] | mail@johannbrehmer.de |
351cf6e56d833f60d7d9dff4be94e4ae0054f74e | 0b64db8dc1c65c4fb4f2cd2250ce30ee8ab1a560 | /Data Structure/03. 스택 (Stack)/재귀함수.py | 12fda735c9379f670d2f770051d416cb5d81108c | [] | no_license | kho903/python_algorithms | f3f09f23cfa0d1a1a1d74905f129b70cfc07d1e6 | 54fb0dae7cf8480b3361a2900c0e60eeacd60cfd | refs/heads/master | 2023-07-11T11:39:25.549774 | 2021-08-13T10:48:09 | 2021-08-13T10:48:09 | 339,713,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # 재귀함수
def recursive(data):
if data < 0:
print("ended")
else:
print(data)
recursive(data - 1)
print("returned", data)
recursive(4)
# 4
# 3
# 2
# 1
# 0
# ended
# returned 0
# returned 1
# returned 2
# returned 3
# returned 4 | [
"gmldnr2222@naver.com"
] | gmldnr2222@naver.com |
06a59b5e3b55d23d27b5a42e0b4f2b391b198f38 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_population3.py | 3b12fc288bf922ff3be1fcfe750ae973d1db78eb | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._point39 import _point39
class _population3(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Atoms_from = []
self.Points_from = self.Atoms_from
self.Atoms_to = []
self.Points_to = self.Atoms_t... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
031495f1d3b78c62947a6b3f8a18609a828c82ce | 6f5e15ed2367bc58a9e7e2e2e9fd6e9ade34e9f3 | /nurbswb/say.py | a59487f8b0e560ac19ac62673e9dc8f0c9452bf1 | [] | no_license | Huud/freecad-nurbs | 65cf669c02962ea484d1a26651d0fbae015d8f70 | ca1e3d54fd807e0db276b7d25a0337e195b71be8 | refs/heads/master | 2020-04-18T17:28:26.807777 | 2019-01-07T16:55:02 | 2019-01-07T16:55:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,690 | py | '''package ausgabe von programmablaufinformationen, importieren der wichtigsten module'''
# -*- coding: utf-8 -*-
#-------------------------------------------------
#-- (c) microelly 2017 v 0.4
#-- GNU Lesser General Public License (LGPL)
#-------------------------------------------------
##\cond
import FreeCAD
imp... | [
"thomas@freecadbuch.de"
] | thomas@freecadbuch.de |
107b078b603e15832e9bee1c7254d62febda6e64 | cc703ef9d20758fb7b9a1d7c871e7b1be26e1b3a | /vue_django_prj/PLANTS/dataset/models.py | 9a82d9a8e38c25c1597dba185a8022729758fcbe | [] | no_license | intensifyfamily/vue_django_prj | 9e60d7235c41031ffd55088a279a9e57e37419ad | b83c565c411123ac93af4671602b40537bd96e48 | refs/heads/master | 2020-12-10T03:59:57.855811 | 2020-01-13T02:36:10 | 2020-01-13T02:36:10 | 233,496,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if ... | [
"1094252227@qq.com"
] | 1094252227@qq.com |
5fc48ccc270588d31016edf4e38506f999aaf0db | 396f93d8e73c419ef82a94174815a2cecbb8334b | /.history/tester2_20200321193709.py | 2604ec7865933e799ae18246f2379cdbe8485677 | [] | no_license | mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch | 8c73d9448b916009c9431526864a4441fdeb682a | 90b2dca920c85cddd7c1b3335344ac7b10a9b061 | refs/heads/master | 2021-03-26T21:16:42.561068 | 2020-04-17T21:44:26 | 2020-04-17T21:44:26 | 247,750,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import os
import subprocess
import re
from datetime import datetime
import time
print("Test for 5 0 10")
for i in range(0, 10):
process = subprocess.Popen(['./algo_tabou.exe', '20', '0', '10', 'distances_entre_villes_10.txt'],stdout=subprocess.PIPE,stderr=subprocess.PIPE)
stdout, stderr = process.communicate(... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
56ee3fa275ca1129780f5d282ab33a5fc767eee3 | fb2a73cf682b5d9ff38af550685646915457073d | /dataformat/jetvarconv.py | 78327e4e1db154bc26a9ea088270b59377a5974f | [] | no_license | cbernet/deeplearning | 5a9b0c2e5cc0f14685b496e9d05b50d3accd3718 | d3c224f8bd82e81bf881a5f6520c869f14901747 | refs/heads/master | 2021-05-06T12:26:17.462380 | 2019-02-19T15:33:39 | 2019-02-19T15:33:39 | 113,050,682 | 0 | 2 | null | 2018-11-28T14:09:53 | 2017-12-04T14:09:46 | Python | UTF-8 | Python | false | false | 197 | py | from ROOT import TFile, TTree
f = TFile('/data/gtouquet/samples_root/QCD0.root')
tree = f.Get('tree')
print 'starting to loop'
for i,jet in enumerate(tree):
print i
# pt = jet.GenJet_pt
| [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
513f5593d23fd445919fac16c1d33e4f4ef9e9d5 | 8b6d4dc1c0c61f13dc4d463ab9092c385edce298 | /pythalesians/graphics/graphs/plotfactory.py | 9833ffbcb79f0ae148751e471f5aebacb4973a1e | [
"Apache-2.0"
] | permissive | fone4u/pythalesians | 388d5dff20cf0ee48df6dedfea8918aba5c7742b | fd2683e15708c5ef625d221ac0affcf21cdf7513 | refs/heads/master | 2021-01-18T17:19:30.053195 | 2015-08-16T22:09:52 | 2015-08-16T22:09:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | __author__ = 'saeedamen' # Saeed Amen / saeed@thalesians.com
#
# Copyright 2015 Thalesians Ltd. - http//www.thalesians.com / @thalesians
#
# 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://... | [
"saeedamen@hotmail.com"
] | saeedamen@hotmail.com |
719b34bc1dc2d2155cb202aa2360858f9ff490dc | 14449108de18a8e956830cd7d5107bb38de41c5d | /workshopvenues/venues/migrations/0006_auto__add_image.py | 127f762f6a645d3122c284a88a4a62fe0d72b75c | [
"BSD-3-Clause"
] | permissive | andreagrandi/workshopvenues | 736e53ccb6ff0b15503e92a5246b945f615d2ff8 | 21978de36f443296788727d709f7f42676b24484 | refs/heads/master | 2021-05-16T03:00:23.879925 | 2014-03-18T15:10:00 | 2014-03-18T15:10:00 | 8,843,235 | 1 | 3 | null | 2015-10-26T11:11:20 | 2013-03-17T23:19:33 | Python | UTF-8 | Python | false | false | 3,381 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Image'
db.create_table(u'venues_image', (
(u'id', self.gf('django.db.models.fiel... | [
"a.grandi@gmail.com"
] | a.grandi@gmail.com |
c1734f03bbc5e3fabd05ff3363ed4c10fa21920f | b9ffd9b9e88d497ee904e42dfd825080ee7713a9 | /files_from_working_server/waterscan-api/services/SampleService.py | 82f81cf745e7210d146a16791d8c6ea191b4b257 | [] | no_license | naturalis/waterscan-ecosoft | a3d8e91d6634108b585a71c051f15216c8c3fdf4 | a2bcc3e656bbfb6ca08cd7e8ef7f119f0004d049 | refs/heads/master | 2021-06-15T05:26:15.457593 | 2019-06-21T09:39:22 | 2019-06-21T09:39:22 | 191,738,087 | 0 | 0 | null | 2021-05-06T19:36:36 | 2019-06-13T10:01:34 | Python | UTF-8 | Python | false | false | 3,607 | py | from models.Sample import Sample
from flask_restful import reqparse
from services.AuthService import AuthService
class SampleService:
parser = reqparse.RequestParser()
parser.add_argument("id", type=int, required=True, help="ID cannot be left blank!")
parser.add_argument("date")
parser.add_argu... | [
"martenhoogeveen@gmail.com"
] | martenhoogeveen@gmail.com |
d39649bdbe94520463c4d9f288e8283e222d93e7 | 3c8c3b199638f78a252b5d48bc8b2cba7b4e656a | /targeted/graph_manipulations.py | 70a8e59f0252b9de2e3acabb8fc049fd4265a2fb | [] | no_license | nbren12/dask.targeted | c6f812575a82687fef74a676252766bd3736a6de | 9e3080dd030032ac308a3175e6a33ca8db9e3d2e | refs/heads/master | 2021-05-11T19:29:28.643900 | 2018-01-18T00:30:51 | 2018-01-18T00:30:51 | 117,874,200 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | """Module containing fucntions for manipulating the dask graph
"""
from dask.base import tokenize
def isleaf(obj):
try:
len(obj)
except TypeError:
return True
else:
return False
def filter_tree(dsk, key):
"""Return the subtree consisting only of Target objects
"""
st... | [
"nbren12@gmail.com"
] | nbren12@gmail.com |
0af4e3f4d461923511b3d58470e8c93fbd7e45fd | 9b44cbb557565fb8040ab2ed5b556a80c5384ddf | /nintendo/nex/kerberos.py | 022999c105a56b95cc3d0bf987e0e5e21875ad93 | [
"MIT"
] | permissive | AmatsuZero/NintendoClients | 2423265af8bfef9b908b7103939cb3ae2e7ffe6d | 2ccf474376d8ef101452888eed7f74358acf699b | refs/heads/master | 2020-04-03T06:24:33.345075 | 2018-10-20T16:31:30 | 2018-10-20T16:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py |
from nintendo.common import crypto
from nintendo.nex import streams
import hashlib
import hmac
class KeyDerivationOld:
def __init__(self, base_count, pid_count):
self.base_count = base_count
self.pid_count = pid_count
def derive_key(self, password, pid):
key = password
for i in range(self.base_count + p... | [
"ymarchand@me.com"
] | ymarchand@me.com |
30425982bad1d9a2fe7330a5b784d63625c82679 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Simulation/Digitization/share/RunNumberOverride.py | 3324b6919b5a54dd9b7383b7988ed639587eb1d0 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,483 | py | #--------------------------------------------------------------------
# Overrides for run,lumi - dependent MC
#--------------------------------------------------------------------
include.block("Digitization/RunNumberOverride.py")
from Digitization.DigitizationFlags import digitizationFlags
from AthenaCommon.AppMgr imp... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
aa3a52f4f69a6e1eeff72b327ac53efb3ec99be5 | c2ff2ee2b0c84e047a80cfdf0b0d0b122fc9db79 | /features/himario/mmediting/mmedit/models/backbones/encoder_decoders/pconv_encoder_decoder.py | 939bfbdb854e9aae14d3662cabfd025b40d854bd | [
"MIT",
"Apache-2.0"
] | permissive | obarnard99/vilio | 275dcb62cdb8b2d8c55ab1e73f3a796bd2073a5b | 77aac226c3a0910410f11a5999f8908181f57ccd | refs/heads/master | 2023-06-29T17:02:02.282457 | 2021-06-22T09:50:11 | 2021-06-22T09:50:11 | 337,738,373 | 0 | 0 | MIT | 2021-06-22T09:50:12 | 2021-02-10T13:50:49 | Python | UTF-8 | Python | false | false | 1,786 | py | import torch.nn as nn
from mmcv.runner import auto_fp16, load_checkpoint
from mmedit.models.builder import build_component
from mmedit.models.registry import BACKBONES
from mmedit.utils import get_root_logger
@BACKBONES.register_module()
class PConvEncoderDecoder(nn.Module):
"""Encoder-Decoder with partial conv ... | [
"obarnard99@gmail.com"
] | obarnard99@gmail.com |
5ea468993d1d3b99c52367a6dab9133b2462b529 | 3a0430831f3f9fc551ce02f625318754c17a5357 | /app/api.py | 91a21f3023a63a5dd892ed65b19d556b369c1e3d | [
"Apache-2.0",
"MIT"
] | permissive | victor-iyi/heart-disease | 8589409388495029a2219c08fad57e0941bfbff1 | 06540b582e8752d2bb6a32366077872d32d7c0e4 | refs/heads/master | 2023-08-03T11:18:37.711933 | 2021-09-19T16:30:05 | 2021-09-19T16:30:05 | 363,746,469 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | # Copyright 2021 Victor I. Afolabi
#
# 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 wri... | [
"javafolabi@gmail.com"
] | javafolabi@gmail.com |
e926ecb68316ba60a8c39cdb7f311e8f6322902c | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/1607bca81baacc0ce7ea79cb24ca3d55d5b5c036signals.py | 1607bca81baacc0ce7ea79cb24ca3d55d5b5c036 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 829 | py | # django imports
import django.dispatch
# Shop
shop_changed = django.dispatch.Signal()
# Catalog
cart_changed = django.dispatch.Signal()
category_changed = django.dispatch.Signal()
product_changed = django.dispatch.Signal()
muecke_sorting_changed = django.dispatch.Signal()
# Marketing
topseller_changed = django.disp... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
4c103cd4c5846c3bc1cdaf7b14167b8cbc20344f | 7698a74a06e10dd5e1f27e6bd9f9b2a5cda1c5fb | /zzz.scripts/mk.ROC_pdb.csv.mod2012_07.py | 4d4f757e03bf34551f74f75d00a76184ac6e0d69 | [] | no_license | kingbo2008/teb_scripts_programs | ef20b24fe8982046397d3659b68f0ad70e9b6b8b | 5fd9d60c28ceb5c7827f1bd94b1b8fdecf74944e | refs/heads/master | 2023-02-11T00:57:59.347144 | 2021-01-07T17:42:11 | 2021-01-07T17:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,073 | py | #! /usr/bin/python
import sys
import gzip
#f = gzip.open('/home/joe/file.txt.gz', 'rb')
#file_content = f.read()
#f.close()
class LIG_DATA:
def __init__(self, score, ligand_bind):
self.score, self.ligand_bind = score, ligand_bind
def __cmp__(self, other):
return cmp(self.score, other.score)
#... | [
"tbalius@gimel.cluster.ucsf.bkslab.org"
] | tbalius@gimel.cluster.ucsf.bkslab.org |
72423dc435e59236a6497abcfeba64001677d08e | 9d9fcf401bb47ccaaa6c3fd3fe7a8be255762855 | /libs/fire/multi_cmd.py | d7bfc1dbb0d78512a3939b6ba75c0df5c1a1f8c3 | [] | no_license | hanhiver/PythonBasic | f05ef9fe713f69610860c63e5223317decee09ad | 8e012855cce61fb53437758021416e5f6deb02ea | refs/heads/master | 2022-10-11T22:57:47.931313 | 2020-12-30T12:32:44 | 2020-12-30T12:32:44 | 148,477,052 | 0 | 3 | null | 2022-10-01T05:35:03 | 2018-09-12T12:29:33 | Python | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/env python
import fire
def add(x, y):
return x + y
def mul(x, y):
return x * y
if __name__ == '__main__':
fire.Fire()
| [
"handongfr@163.com"
] | handongfr@163.com |
43cb85d31aea27cd755319a97b5c1bc07960a374 | 4f6fdd0effc474226b75ccc5d247509121b90fdf | /dictionary/Count the Frequency of Words Appearing in a String Using a Dictionary.py | 9da1146a61549d106450571ac2250f3ae462780d | [] | no_license | tuhiniris/Python-ShortCodes-Applications | 1580785a6922c70df3b7375cb81e98f4a684d86f | f3fe7ac1c11a631fcd05b9d19b25b1a841d94550 | refs/heads/main | 2023-04-07T21:42:21.094545 | 2021-04-21T07:47:46 | 2021-04-21T07:47:46 | 358,605,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | '''
Problem Description
The program takes a string and counts the frequency of words appearing in that string using a dictionary.
Problem Solution
1. Enter a string and store it in a variable.
2. Declare a list variable and initialize it to an empty list.
3. Split the string into words and store it in the list.... | [
"noreply@github.com"
] | tuhiniris.noreply@github.com |
99d9daa991e32028fe6782e04f797c37b5627ec7 | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /pyneng/exercises/12_useful_modules/test_task_12_3.py | 681feeabf02e5611c1c37009e0ce1a26846469ed | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 1,191 | py | import sys
import task_12_3
sys.path.append("..")
from pyneng_common_functions import (check_function_exists, check_pytest,
unified_columns_output)
check_pytest(__loader__, __file__)
def test_function_created():
"""
Проверка, что функция создана
"""
check_func... | [
"i.matyukin@gmail.com"
] | i.matyukin@gmail.com |
04c6cd398b0c0efc787bf89339958f5396d5ce78 | 108f1096b8b0b9e5449bd35b882f5fb689f7d683 | /fetchapp/lib/python2.7/site-packages/fetchcore/resources/tasks/actions/definitions/survey/survey_action.py | 111e18635efe3d88526b824d7b1d1bb0854e7a00 | [] | no_license | JasonVranek/jason_fetchcore | 868b1918aed450d241787ecd63f77881fa9c10d8 | 7c30438f145c5e59522bb0f27a3914ce21a13c33 | refs/heads/master | 2021-09-28T17:47:58.163099 | 2018-08-29T17:31:19 | 2018-08-29T17:31:19 | 116,185,829 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | # Copyright 2017 Fetch Robotics Inc.
# Author(s): Cappy Pitts
# Fetchcore SDK Python
from fetchcore.definitions import ActionStatus, ActionPreemption
from fetchcore.resources import Action
from fetchcore.resources.tasks.actions.definitions import BaseSurvey
class SurveyAction(Action, BaseSurvey):
"""
The SUR... | [
"jvranek@ucsc.edu"
] | jvranek@ucsc.edu |
78718a541e7e9247a27b366867c649f24bd1a6b3 | e9f2ab8952f91b5f908a14256120827bb2ea98df | /makeproject/templates/kaggle/src/submissions/base.py | 78cef16c5fb5453845842cfa9dea5d6cdae2f85b | [] | no_license | mkurnikov/project_templates | dc77445595f96b7d25afc5efc513e8cbd645dda3 | e94ad7abbcdcef2aaecaa86b4df511edca1a8b17 | refs/heads/master | 2021-01-10T21:49:49.777814 | 2015-08-05T16:17:46 | 2015-08-05T16:17:46 | 38,043,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from __future__ import division, print_function, \
unicode_literals, absolute_import
# noinspection PyUnresolvedReferences
from py3compatibility import *
import pandas as pd
import numpy as np
from kaggle_tools.submission import BaseSubmittion
import settings
#TODO: create subclass for BaseSubmission
| [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
0547c276fbecc0137a54fe83996856e7a20eaa9b | 3adec884f06eabfe50d4ab3456123e04d02b02ff | /347. Top K Frequent Elements.py | 8058bcdc3acf8930a4db5d97988697177aa0d38b | [] | no_license | windmzx/pyleetcode | c57ecb855c8e560dd32cf7cf14616be2f91ba50e | d0a1cb895e1604fcf70a73ea1c4b1e6b283e3400 | refs/heads/master | 2022-10-05T17:51:08.394112 | 2020-06-09T09:24:28 | 2020-06-09T09:24:28 | 250,222,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | from typing import List
class Solution:
def topKFrequent(self, nums: List[int], k: int) -> List[int]:
map = {}
for i in nums:
map[i] = map.get(i, 0)+1
tree = list(map.keys())
def adjust_heap(start, end):
left = start*2+1
right = start*2+2
... | [
"2281927774@qq.com"
] | 2281927774@qq.com |
9a864a23b31aaeea5bac77efb0d209b18048ccce | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/javaclass/format/attributes/LocalVariableJava.pyi | c0e9bdf926d2aa623bb2ba1e6666bf5ed2a9c568 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | pyi | import ghidra.app.util.bin
import ghidra.program.model.data
import java.lang
class LocalVariableJava(object, ghidra.app.util.bin.StructConverter):
ASCII: ghidra.program.model.data.DataType = char
BYTE: ghidra.program.model.data.DataType = byte
DWORD: ghidra.program.model.data.DataType = dword
IBO32: g... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
97aecc33ded12b846d35b67a7626508f6f3e7a9f | e6f73cc3398050b23df28e3f11a10afbb46ee38b | /python/coroutines/grep.py | 2cef424b464aa5bee0f207cc6bdbc8aa24bae288 | [] | no_license | monarin/divelite | 3db262bf07a0de870d0bfe650ebdf21225b88c1b | 0d297bda7368c5295336565431fbfa18a5686f15 | refs/heads/master | 2023-06-29T23:42:34.541874 | 2023-06-08T17:59:59 | 2023-06-08T17:59:59 | 120,695,376 | 0 | 1 | null | 2018-09-06T00:03:30 | 2018-02-08T01:41:19 | C++ | UTF-8 | Python | false | false | 218 | py | def grep(pattern):
print("Looking for %s" % pattern)
while True:
line = (yield)
if pattern in line:
print(line)
if __name__ == "__main__":
from IPython import embed
embed()
| [
"monarin@gmail.com"
] | monarin@gmail.com |
c99921b89fbd79ffd6ef633acf75fd991446f18b | 14f4d045750f7cf45252838d625b2a761d5dee38 | /argo/argo/models/io_k8s_api_core_v1_container_state_running.py | 38cc7bc2b3bdfd1bb30654da433179e5b368fb21 | [] | no_license | nfillot/argo_client | cf8d7413d728edb4623de403e03d119fe3699ee9 | c8cf80842f9eebbf4569f3d67b9d8eff4ba405fa | refs/heads/master | 2020-07-11T13:06:35.518331 | 2019-08-26T20:54:07 | 2019-08-26T20:54:07 | 204,546,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,534 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six... | [
"nfillot@weborama.com"
] | nfillot@weborama.com |
958bbb8fa3877cb6cd1c0cffd21fa211640c5f87 | 69a60cdf962de532d63aa6111ddd7e3f9663abf3 | /wagtail/tests/snippets/models.py | dbb8a274bd0064d213a3cb10b1bbfa72d87386fd | [
"BSD-3-Clause"
] | permissive | JoshBarr/wagtail | 47b827dc7394a8ebda76a7cc40e343fcd181ad96 | 7b8fbf89dac69386dfeb57dd607f43ab42d1ffab | refs/heads/master | 2021-01-09T06:35:13.010607 | 2016-02-08T13:06:05 | 2016-02-08T13:06:05 | 33,353,097 | 1 | 2 | null | 2016-02-23T20:14:13 | 2015-04-03T07:49:11 | Python | UTF-8 | Python | false | false | 1,397 | py | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from wagtail.wagtailsearch import index
from wagtail.wagtailsnippets.models import register_snippet
# AlphaSnippet and ZuluSnippet are for testing ordering of
# snippets when registering. They are named as such to ensure
# t... | [
"karlhobley10@gmail.com"
] | karlhobley10@gmail.com |
ccae41156260c5b9dad887bcd88cb8509c6bb0db | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/AvatarInputHandler/AimingSystems/StrategicAimingSystem.py | 08efa014f10f08c2f519021bbee6e4eebfdda389 | [] | 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 | 2,970 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/AvatarInputHandler/AimingSystems/StrategicAimingSystem.py
import math
import BigWorld
import Math
from Math import Vector3
from AvatarInputHandler import mathUtils, AimingSystems
from AvatarInputHandler.AimingSystems import IAimingS... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
da398b4bf6ce07b7dccedfe62090db6d3e267595 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/287/89507/submittedfiles/testes.py | 795ba4f86f78ee3cf4a8b30b24f3d9231a1fef26 | [] | 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 | 461 | py | # -*- coding: utf-8 -*-
from minha_bib import*
import time
import os
import random
board=[" "," "," "," "," "," "," "," "," "," "]
print(" | | ")
print""+board[1]+"|"+board[2]+"|"+board[3]+""
print(" | | ")
print("---|---|---")
print(" | | ")
print(""+board[4]+"|"+board[5]+"|"+board[6]+"... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
28065f6e9056ed0090c0a0c6bedbaf7df7761d86 | 8ba907676e912550aca4490e44ba838abb9058f3 | /utils/lib_geo_trans.py | 964a95e666e4c6c8eeba6bc5fedb788d7ff5ac9e | [
"MIT"
] | permissive | Michael-lhh/ros_detect_planes_from_depth_img | 8276a97a05bcbaa1c917ebb95557e14ef3fb2d82 | 8593cca2014129e0115ac8a01966ef03c7bd418d | refs/heads/master | 2023-05-27T09:22:19.369969 | 2021-06-16T03:03:37 | 2021-06-16T03:03:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,591 | py |
'''
Geometric and camera related transformations
'''
import numpy as np
import copy
import cv2
''' =============================================================================== '''
''' Basic maths. '''
def form_T(R, p):
T = np.identity(4)
T[0:3, 0:3] = R
T[0:3, 3:4] = np.array(p).reshape((3, 1))
... | [
"felixchenfy@gmail.com"
] | felixchenfy@gmail.com |
1035c714671c2047f5a945d1214a62dc28e0f491 | f23572d0c916ed3325480de2daca15d9d16f9186 | /queues/min_sliding_window.py | ed57f373c395238e96dc1dfc4456da85752a956e | [] | no_license | iCodeIN/data_structures | 08067aa661ea1dac01c70ac5a3e53f5e146fc82c | bbd01fb1785827c64ea28636352c6e0d7c8d62f4 | refs/heads/master | 2023-02-21T06:40:05.336522 | 2021-01-22T05:41:27 | 2021-01-22T05:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | from collections import deque
# also contains appendleft in addition to popleft for deque
# produce minimum value for every sliding window of size k
def MinSlidingWindow(A, k):
D = deque()
res = []
# tuples in deque
for i in range(len(A)):
# while last value in dequeue... | [
"chosun41"
] | chosun41 |
7928546bbbc4a5f18a10b92de79c3c75e25eb4a1 | 9d1238fb0e4a395d49a7b8ff745f21476c9d9c00 | /framework/Tests/PAS/PAS/SecuritySettings/HealthCheck/API/test_add_system_discovery.py | 9aa0afb1c625fc1578efac3eeb6629f4607d9939 | [] | no_license | jaspalsingh92/TestAutomation-1 | a48ee1d3b73386f1bf8f53328a5b55444238e054 | e631c67255b10f150e0012991fb1474ede904417 | refs/heads/master | 2023-04-18T14:52:08.836221 | 2021-04-07T12:01:07 | 2021-04-07T12:01:07 | 357,175,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,080 | py | import logging
import pytest
from Shared.API.discovery import Discovery
from Shared.API.redrock import RedrockController
from Shared.API.server import ServerManager
logger = logging.getLogger("test")
@pytest.mark.api
@pytest.mark.pas_failed
@pytest.mark.bhavna
def test_add_system_discovery(core_session, ad_discovery... | [
"singh.jaspal92@gmail.com"
] | singh.jaspal92@gmail.com |
4cfeb664ff12b359f9dbeec012b98f619b3bd7b8 | 2f9eddc071b87698e27a3fd5c6066a0db99f6f92 | /tree/_min_max_dep.py | a4f206380a87d640134f78dd0375fabd1afa8581 | [] | no_license | Lancher/coding-challenge | d8c5ec528ef802fef9817e64be94fc246d95e84f | 4c8f833a6e3375c6cbb31ff487ad766c53a74755 | refs/heads/master | 2022-01-20T03:19:11.452412 | 2022-01-10T05:23:47 | 2022-01-10T05:23:47 | 137,972,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | import Queue
# LEETCODE@ 104. Maximum Depth of Binary Tree
#
# --END--
def max_dep_dfs(node):
return 0 if not node else max(max_dep_dfs(node.left), max_dep_dfs(node.right)) + 1
def max_dep_bfs(root):
if not root:
return 0
q = Queue.Queue()
q.put(root)
res = 0
while not q.empty():... | [
"steve.liushihao@gmail.com"
] | steve.liushihao@gmail.com |
277283bf7f5bf92b021cd55232e5da438ada4b97 | f513c794fd95cb72ee776029ece38a08c4b4da0b | /corehq/ex-submodules/casexml/apps/stock/migrations/0007_auto.py | bcf40e679f31c5b41290da11d6c2ba9b816f7a20 | [] | no_license | bglar/commcare-hq | a92f034a0c2faf787da8321b4d79e55f098bd89f | 972129fc26864c08c7bef07874bd2a7218550bff | refs/heads/master | 2021-05-28T20:44:12.876151 | 2015-01-16T16:23:52 | 2015-01-16T16:23:52 | 29,391,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding index on 'DocDomainMapping', fields ['domain_name']
db.create_index(u'stock_docdomainmapping', ['... | [
"czue@dimagi.com"
] | czue@dimagi.com |
ebbf80eac2e785abd9f92fc22c63373e21f2c3dd | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/566/566.reshape-the-matrix.py | 6fd988aa17f03fcca01f758968c8067302f63bc8 | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 1,723 | py | #
# @lc app=leetcode id=566 lang=python3
#
# [566] Reshape the Matrix
#
# https://leetcode.com/problems/reshape-the-matrix/description/
#
# algorithms
# Easy (58.29%)
# Total Accepted: 70K
# Total Submissions: 120K
# Testcase Example: '[[1,2],[3,4]]\n1\n4'
#
# In MATLAB, there is a very useful function called 'resh... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
207b59c4cdeb20cd6a73191000974cb26fb23684 | cba0f1286e4271ac35101a25d5040b2e4f405bde | /cgi-bin/admin/carlson/temp.py | 8800bc51f31f9109b6f30307d006c9efdb185bf6 | [] | no_license | akrherz/pals | 271c92d098909abb5b912db4ae08f0c3589e5ec7 | adc213333fb23dc52d6784ce160c4ff8a8f193e3 | refs/heads/master | 2021-01-10T15:01:59.570168 | 2019-12-18T16:59:08 | 2019-12-18T16:59:08 | 45,484,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/local/bin/python
# This will give the option of which file they want to edit
# Daryl Herzmann 5-28-99
import os, cgi, style, string
from pgext import *
mydb = connect('carlson')
base_fref = '/home/httpd/html/carlson'
images_dir = base_fref+"/images"
def Main():
files = os.listdir(images_dir)
for file in ... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
2d04c58334bb9b3903567d3a60527efcb56eed64 | b2174c63eec5164ec01b35c57c278d2753859d3d | /src_working_6actions_same/helpers.py | 6ef2e8d81229ebb170d9ad0e7068b37b6109f5bd | [] | no_license | koriavinash1/Brain_Tumor_Localization_using_RL_agent | 4bbc923b1ce1b3b58e4d24489b1d305c49a4ad33 | ad89e2ec483cb6da87eef437f67ac79dcfc53a8d | refs/heads/master | 2020-03-18T02:05:50.258001 | 2018-06-26T23:52:48 | 2018-06-26T23:52:48 | 134,174,420 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | import os
import random
import numpy as np
import cv2
from PIL import Image
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from torchvision.models.resnet import model_urls as resnetmodel_urls
from tqdm import tqdm
def calculate_iou(img_mask, gt_mask):
"""
for reward
"""
img_mask = np.ui... | [
"koriavinash1@gmail.com"
] | koriavinash1@gmail.com |
9a9347f24537bb74e652cd0909cfb0ca463974dc | 7c99ea5b1ffe089c97615336daf4b6ceed9a5b00 | /Configurations/VBSOS/SignalRegions/2018/comb_v6/structure.py | 5de54cae5b45b2abbefc158f669d666f3f1a613c | [] | no_license | flaviacetorelli/PlotsConfigurations | 948faadba356e1d5e6f546dc11dd8dacfe1c1910 | aa5cf802c86902378617f566186bc638e69f9936 | refs/heads/master | 2022-05-02T00:37:56.070453 | 2022-03-18T10:14:23 | 2022-03-18T10:14:23 | 235,580,894 | 0 | 1 | null | 2020-01-22T13:37:30 | 2020-01-22T13:37:29 | null | UTF-8 | Python | false | false | 2,258 | py | structure['DY'] = {
'isSignal' : 0,
'isData' : 0
}
structure['Dyemb'] = {
'isSignal' : 0,
'isData' : 0
}
structure['Dyveto'] = {
'isSignal' : 0,
'isData' : 0,
'removeFromCuts' : [ k for k in cut... | [
"flavia.cetorelli@cern.ch"
] | flavia.cetorelli@cern.ch |
a1be2df230d5addeea923afeee386b9b80c8f561 | 3767a04b2448048ef0c4163aa337608298db1e7d | /20190703/김주완 BOJ1907.py | bc4675c5efd83192fb8db64d1474b9a3301ac882 | [] | no_license | joowankim/algorithm_w | 5faff48e512e86700de0cf7f617ea280149bc7b9 | 09d23056e34583e9d3fafc8c396308c8ceac039b | refs/heads/master | 2022-02-28T09:13:28.938741 | 2019-10-05T01:13:52 | 2019-10-05T01:13:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | M = ['', '', '']
M[0], tmp = map(str, input().split('+'))
M[1], M[2] = map(str, tmp.split('='))
m = [{'C': 0, 'H': 0, 'O': 0},
{'C': 0, 'H': 0, 'O': 0},
{'C': 0, 'H': 0, 'O': 0}]
for i in range(3):
for j in range(len(M[i])):
if M[i][j] in m[0].keys():
m[i][M[i][j]] += 1
else:
... | [
"rlawndhks217@gmail.com"
] | rlawndhks217@gmail.com |
ed7a274b8b8aaf1c1ad7d1a96678951f153b63ae | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/numpy/distutils/fcompiler/intel.py | f3e616e1de0c8cb8934fa23da8ffad899f6c0444 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 6,626 | py | # http://developer.intel.com/software/products/compilers/flin/
from __future__ import division, absolute_import, print_function
import sys
from numpy.distutils.ccompiler import simple_version_match
from numpy.distutils.fcompiler import FCompiler, dummy_fortran_file
compilers = ['IntelFCompiler', 'IntelVisualFCompile... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
513598f526cd14a5936675ff73cb3496d0a35d39 | acff427a36d6340486ff747ae9e52f05a4b027f2 | /main/server/database/postgresql/actions.py | 437615bb7b7084027884e1c5e5f6ec42df5622b7 | [] | no_license | jeremie1112/pisilinux | 8f5a03212de0c1b2453132dd879d8c1556bb4ff7 | d0643b537d78208174a4eeb5effeb9cb63c2ef4f | refs/heads/master | 2020-03-31T10:12:21.253540 | 2018-10-08T18:53:50 | 2018-10-08T18:53:50 | 152,126,584 | 2 | 1 | null | 2018-10-08T18:24:17 | 2018-10-08T18:24:17 | null | UTF-8 | Python | false | false | 2,773 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
... | [
"erkanisik@yahoo.com"
] | erkanisik@yahoo.com |
795eb9f2e13d466e4bc7976c8dacf91423a78183 | a730e6c54cd99beb00fe7b9c08ff92c5e1800bbf | /accounts/views.py | 7921d24f44f6bc7d4f8cf316e05d136d7c5d326b | [
"BSD-3-Clause"
] | permissive | pombredanne/dezede | 3d2f4b7bdd9163ae1c0b92593bbd5fae71d1cd91 | 22756da8f949e28b9d789936d58eabe813ef4278 | refs/heads/master | 2021-01-17T15:29:30.382243 | 2013-11-09T17:35:42 | 2013-11-09T17:35:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,294 | py | # coding: utf-8
from __future__ import unicode_literals, division
import datetime
from django.contrib.auth import get_user_model
from django.contrib.sites.models import get_current_site
from django.core.exceptions import PermissionDenied
from django.db import connection
from django.db.models import Count
from django.h... | [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
acb86f015cf6960f819f6dc00d2d369bc70c0fdb | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /TZXG9RfcZ7T3o43QF_7.py | 9943dc3731e9a63743d8ec74a3b86010cc66d355 | [] | 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 | 512 | py |
def same_length(txt):
oCache = 0
zCache = 0
charCache = None
for i in txt:
if i == '1':
if charCache == '0':
if oCache != zCache:
return False
oCache = 0
zCache = 0
oCache +=1
charCache = '1'... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f760fb13f796457f91598dadd8ec11118dea7015 | 23345cb27e6a8310001dd367c87b6c59af0b5931 | /Practics/combination.py | 324fe0aa17ee8c4e6ba42b6ffa3952d4d4823e7b | [] | no_license | ccsandhanshive/Practics-Code | 20840423385e7cd26672236cfbb565ff432af4cb | 048f2d2cd4bd76391e4578c18f20467f4526d137 | refs/heads/master | 2021-04-23T17:44:15.003384 | 2020-04-16T07:06:54 | 2020-04-16T07:06:54 | 249,952,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
n=int(input())
a=[]
for i in range(n):
a1=int(input())
a.append(a1)
for i in range(len(a)):
for j in range(len(a)-1):
temp=a[i]
a[i]=a[j]
a[j]=temp
print(a)
| [
"noreply@github.com"
] | ccsandhanshive.noreply@github.com |
e0d3567933a7012b0be5d51b4011aef35b15b1b6 | 33c0dc58266d6d1f4e64604ebadcc580c7bd8b38 | /alembic/versions/b29cbd0bb078_initial_revision.py | e163b22334a715d5c976d50cd3ea34be6cddd5cd | [
"Apache-2.0"
] | permissive | bcgov/wps-api | 67ee86b1e3055b5f0b505c8b818a09b8f7fcd453 | 1392ae87434428b10854bf67dd8b7517da6b3a02 | refs/heads/main | 2020-12-23T10:39:31.739567 | 2020-08-14T21:26:26 | 2020-08-14T21:26:26 | 237,125,626 | 1 | 3 | Apache-2.0 | 2020-08-19T21:40:00 | 2020-01-30T02:37:50 | Python | UTF-8 | Python | false | false | 6,129 | py | """Initial revision
Revision ID: b29cbd0bb078
Revises:
Create Date: 2020-07-27 11:28:42.510750
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
import geoalchemy2
# revision identifiers, used by Alembic.
revision = 'b29cbd0bb078'
down_revision = None
branch_labels = None... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
d9645630fc062ba3cbac14e1fd15210df2feb750 | 21d5222ad6c9bdbbc6dec049ececa7f7559b1c7c | /backend/config.py | d437712413d64daebd8de7840c5a7f2a5e2e2502 | [] | no_license | RachitBhargava99/HackVenture-Sparta | 50cec057f07980af25e9f9adbdc60a4efd4bfbec | c69407fcff88fddba86c52c783ce4b5064b072fd | refs/heads/master | 2020-04-17T10:27:17.588040 | 2019-01-19T07:55:27 | 2019-01-19T07:55:27 | 166,501,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | import os
class Config:
SECRET_KEY = '0917b13a9091915d54b6336f45909539cce452b3661b21f386418a257883b30a'
SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI')
SQLALCHEMY_TRACK_MODIFICATIONS = False
ENDPOINT_ROUTE = ''
CURRENT_URL = '127.0.0.2'
MAIL_SERVER = 'smtp.gmail.com'
MA... | [
"rachitbhargava99@gmail.com"
] | rachitbhargava99@gmail.com |
9358c316dfba80b8159e31b590a3628c52e4c55b | 2947efe1efd6e19981d0aa5c55dfc5f3700b8a1b | /segm/utils/distributed.py | 7c9c06bfe277feb41c9b0124b395d351b7498771 | [] | no_license | srdg/segmenter | f71effdade6d11da5ab041cadcb283123e9f1126 | 4f8a4435ea67c8611c5180edc7bec1d24f7342ad | refs/heads/master | 2023-08-01T12:55:21.474549 | 2021-09-14T16:19:46 | 2021-09-14T16:19:46 | 402,280,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | import os
import hostlist
from pathlib import Path
import torch
import torch.distributed as dist
import segm.utils.torch as ptu
def init_process(backend="nccl"):
print(f"Starting process with rank {ptu.dist_rank}...", flush=True)
if "SLURM_STEPS_GPUS" in os.environ:
gpu_ids = os.environ["SLURM_STEP_... | [
"rstrudel@gmail.com"
] | rstrudel@gmail.com |
b1517533ad31f610116c02800cabf177e1f87fdb | 38c35956be6343855914b1c58b8fbd2e40c6e615 | /Iniciantes/2670.py | 98cda4c7d8f4a66c7f1fbff27177d9696c61e8c4 | [] | no_license | LucasBarbosaRocha/URI | b43e4f4a6b3beed935f24839001bea354411c4bd | 2c9bcc13300a9f6243242e483c8f9ec3296a88ad | refs/heads/master | 2020-06-25T05:06:51.297824 | 2019-08-22T04:50:11 | 2019-08-22T04:50:11 | 199,210,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | def min(A, B):
if A <= B:
return A
else:
return B
A = input()
B = input()
C = input()
auxA = 0
auxB = 0
auxC = 0
auxA = (B*2)+(C*4)
auxB = (A*2)+(C*2)
auxC = (A*4)+(B*2)
print min(auxC, min(auxA, auxB))
| [
"lucas.lb.rocha@gmail.com"
] | lucas.lb.rocha@gmail.com |
f42f45a5005e4c4967dbd161ea0a0e13f45c2788 | 56584187544e07225736d0b5399cf6aa7a0442aa | /lie_ti/__main__.py | 5f9a1ca05f82b4678da264c383fa9f3d895e7d71 | [
"Apache-2.0"
] | permissive | MD-Studio/lie_ti | 81835626c637e5c8cee6ba33e3df5ee1cd910c90 | 0b3ae93cd9a8b46a6caa40c4f0bed3cb5c6d2b2b | refs/heads/master | 2020-03-19T08:14:16.042990 | 2018-06-11T08:24:37 | 2018-06-11T08:24:37 | 136,187,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from mdstudio.runner import main
from lie_ti.ti_endpoints import Gromacs_ti_wamp_api
if __name__ == '__main__':
main(Gromacs_ti_wamp_api)
| [
"tifonzafel@gmail.com"
] | tifonzafel@gmail.com |
99b1e1591a75c724da468af44076c6e4b92e6f52 | 6444622ad4a150993955a0c8fe260bae1af7f8ce | /djangoenv/lib/python2.7/site-packages/django/conf/locale/fi/formats.py | 0f9279ec6239856de019d9dd11e7144ad0546ce7 | [] | no_license | jeremyrich/Lesson_RestAPI_jeremy | ca965ef017c53f919c0bf97a4a23841818e246f9 | a44263e45b1cc1ba812059f6984c0f5be25cd234 | refs/heads/master | 2020-04-25T23:13:47.237188 | 2019-03-22T09:26:58 | 2019-03-22T09:26:58 | 173,138,073 | 0 | 0 | null | 2019-03-22T09:26:59 | 2019-02-28T15:34:19 | Python | UTF-8 | Python | false | false | 1,327 | py | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = "j. E Y"
TIME_FORMAT = "G.i"
DATET... | [
"jeremyrich@free.fr"
] | jeremyrich@free.fr |
2dcc61c8a1e88fc015b1c956cea058aa5ec4e17d | f7ba2a286ff32023042fc619fc20a9749133cbd2 | /venv/lib/python2.7/site-packages/awscli/customizations/s3uploader.py | e31b380af48a7a55bd0903cfe496ce90d3e163fd | [
"MIT",
"Apache-2.0"
] | permissive | FreeFlowOrg/researchflo | 6295dbcd3bdd385bac86cb0d1dac8ed337902c19 | 75f22360b8d69bd4c24ae00e0b79734f7c3fab11 | refs/heads/master | 2022-12-11T20:52:01.276263 | 2018-10-01T18:24:55 | 2018-10-01T18:24:55 | 135,716,220 | 0 | 1 | Apache-2.0 | 2022-11-23T05:41:03 | 2018-06-01T12:41:18 | Python | UTF-8 | Python | false | false | 7,341 | py | # Copyright 2012-2015 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file ac... | [
"saicharan.reddy1@gmail.com"
] | saicharan.reddy1@gmail.com |
e1ffa202e57145658c28e1264023274ecab93315 | 48eb1676712e570f42a19122e186b392b21d99dc | /origin/test_v.py | 55ce8975b839bbf1e0ba32ac931c06526e1acd10 | [] | no_license | AmberzzZZ/unet_vnet_keras | 1e731420522bef74cda77972f47b328bbb868f53 | 19c7d59b89853cb044aa9897729a09961e74a110 | refs/heads/master | 2020-09-09T07:34:21.602302 | 2020-08-27T14:57:05 | 2020-08-27T14:57:05 | 221,389,142 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from vnet import *
import cv2
import numpy as np
if __name__ == '__main__':
model = vnet(input_size=(256,256,1))
model.load_weights("vnet_membrane_06_dice_0.921.h5", by_name=True)
test_img = cv2.imread("data/membrane/test/0.png", 0)
tmp = cv2.resize(test_img, (256, 256))
tmp = tmp / 255.
tmp... | [
"774524217@qq.com"
] | 774524217@qq.com |
b01a58208ca56810f38a27ed8409cd78a6e8a37b | 90c570444d48308b5e680c497600a3180425a2ff | /buildDataForUI.py | 7446479fbe025f7017193e79a5a4330a1c85cb57 | [
"MIT"
] | permissive | amnh-sciviz/amnh-time-machine | cd55810fe08db69fa06c12113f9db5276aeeeea6 | c75c75c6bd3ee91d81cb4b0181a292de27eab9c8 | refs/heads/master | 2020-04-22T06:26:14.683159 | 2020-02-20T23:15:32 | 2020-02-20T23:15:32 | 170,190,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,996 | py | # -*- coding: utf-8 -*-
import argparse
import glob
import json
import os
from pprint import pprint
import sys
import lib.eac_utils as eac
import lib.io_utils as io
# input
parser = argparse.ArgumentParser()
parser.add_argument('-fdir', dest="FLOOR_PLANS_DIR", default="img/floor_plans/%s/*.png", help="Directory with... | [
"brian@youaremyjoy.org"
] | brian@youaremyjoy.org |
2455a1fc0abe09984ea82a7fa3ee4c6bb8822fb5 | c4fa1ebcdd413c4ab3f0979ee3beead8a8809870 | /providers/edu/pcom/apps.py | 9e3a87e36866e646b8834a248e2321b01069fea9 | [] | no_license | terroni/SHARE | e47f291db7cf100d29a7904fe820e75d29db1472 | a5631f441da1288722c68785b86128c854cbe7c1 | refs/heads/develop | 2020-12-03T02:29:47.381341 | 2016-07-11T19:40:27 | 2016-07-11T19:40:27 | 63,097,148 | 1 | 0 | null | 2016-07-11T19:45:51 | 2016-07-11T19:45:50 | null | UTF-8 | Python | false | false | 487 | py | from share.provider import OAIProviderAppConfig
class AppConfig(OAIProviderAppConfig):
name = 'providers.edu.pcom'
version = '0.0.1'
title = 'pcom'
long_title = 'DigitalCommons@PCOM'
home_page = 'http://digitalcommons.pcom.edu'
url = 'http://digitalcommons.pcom.edu/do/oai/'
approved_sets =... | [
"icereval@gmail.com"
] | icereval@gmail.com |
9e34e216ecf6c0070d75d8934b660ffa00c13928 | f9223fa852ee24d438ef472af33a9afa7135a7f4 | /tests/projects_v0/test_simplelife.py | 10a557a633fcfd69c04e1c5c1c85d4bc3fa657d8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | data-atuarial/lifelib | c6ea8d51d4bac5dbea167f98e27feecdabfcb8a7 | 7bfcc0c9d0a419502e47be123b6f080862974875 | refs/heads/master | 2023-05-08T01:35:31.292486 | 2021-05-23T04:32:15 | 2021-05-23T04:32:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import sys
import os.path
import pickle
import pathlib
from lifelib.projects_v0.simplelife.scripts import simplelife
from tests.data.generate_testdata import round_signif
if '' not in sys.path:
sys.path.insert(0, '')
model = simplelife.build(load_saved=False)
testdata = \
str(pathlib.Path(__file__).parents[... | [
"fumito.ham@gmail.com"
] | fumito.ham@gmail.com |
e5e9debcef00111d47e3694faca763dcc766c031 | 0d996a22154d2d5fa2096e7676a9cc4e1927b638 | /tests/test_klaxon.py | 687ce7f88ab43b4724a3a6da4c5f28fee3b5e653 | [
"Apache-2.0"
] | permissive | hercules261188/klaxon | 0990bc4458999ac0e6ae6d93a38411ea7976c409 | 2275287ab4a4461314d66ab575050da9675e0478 | refs/heads/master | 2022-08-07T09:11:31.404306 | 2020-05-24T06:39:36 | 2020-05-24T06:39:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import subprocess as sp
import time
from klaxon import klaxon
import pytest
strings = ["What's good?", "hello, klaxon", ""]
@pytest.mark.parametrize("title", strings)
@pytest.mark.parametrize("subtitle", strings)
@pytest.mark.parametrize("message", strings)
def test_klaxon(title, subtitle, message):
klaxon(tit... | [
"knowsuchagency@gmail.com"
] | knowsuchagency@gmail.com |
85451d9ce547f07b9f10e0e5eb83f5b11247059e | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /autosar/models/application_data_type_subtypes_enum.py | 4c5b231b2294b1b68fa4aa1f1a70aea8a2ac7476 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 587 | py | from enum import Enum
__NAMESPACE__ = "http://autosar.org/schema/r4.0"
class ApplicationDataTypeSubtypesEnum(Enum):
APPLICATION_ARRAY_DATA_TYPE = "APPLICATION-ARRAY-DATA-TYPE"
APPLICATION_ASSOC_MAP_DATA_TYPE = "APPLICATION-ASSOC-MAP-DATA-TYPE"
APPLICATION_COMPOSITE_DATA_TYPE = "APPLICATION-COMPOSITE-DATA... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
c0f61075ae11487003d1c0360901fcdd23b5b01b | 88ea6ae5a8f97e3771490583d8acecdbe2877fd8 | /zips/plugin.video.vistatv/resources/lib/sources/en/iwatchonline.py | bf61f6ad92e4d2076da1889734fbb8a69b27ef19 | [] | no_license | staycanuca/PersonalDataVistaTV | 26497a29e6f8b86592609e7e950d6156aadf881c | 4844edbfd4ecfc1d48e31432c39b9ab1b3b1a222 | refs/heads/master | 2021-01-25T14:46:25.763952 | 2018-03-03T10:48:06 | 2018-03-03T10:48:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,384 | py | # -*- coding: utf-8 -*-
'''
Cerebro ShowBox Scraper
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... | [
"biglad@mgawow.co.uk"
] | biglad@mgawow.co.uk |
d3562d2150e67d8aeb1359b305bff4ce8985af8a | 5f1c3a2930b20c3847496a249692dc8d98f87eee | /Pandas/Pandas_PivotTable/Question7.py | 065d21ee31a997fe8414a8a57701000112d4e603 | [] | no_license | AmbyMbayi/CODE_py | c572e10673ba437d06ec0f2ae16022d7cbe21d1c | 5369abf21a8db1b54a5be6cbd49432c7d7775687 | refs/heads/master | 2020-04-24T05:01:46.277759 | 2019-02-22T08:26:04 | 2019-02-22T08:26:04 | 171,723,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | """write a pandas program to create a pivot table and count the manager wise sale and mean value of sale amount
"""
import pandas as pd
import numpy as np
df = pd.read_excel('SaleData.xlsx')
table =pd.pivot_table(df, index=["Manager"], values=["Sale_amt"], aggfunc=[np.mean, len])
print(table) | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
3c99e8da58ddb542648a4aa073fb61d093b199e9 | a9df288b1b05b93504dcd3cdccec5b7db859043c | /geometory/core_geometry_medial_axis_offset.py | 7e9887c21c1c4e11632c10fbaf811622933ba13b | [] | no_license | tnakaicode/pythonocct-demos | 16bf60ba1490b3a68c4954972ec4d6a890bef2c8 | 11e14089541e4310528d1b9c9571daf3f95b1845 | refs/heads/master | 2022-09-27T13:09:52.129514 | 2020-06-07T02:39:04 | 2020-06-07T02:39:04 | 270,162,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | py | #!/usr/bin/env python
##Copyright 2009-2016 Jelle Feringa (jelleferinga@gmail.com)
##
##This file is part of pythonOCC.
##
##pythonOCC is free software: you can redistribute it and/or modify
##it under the terms of the GNU Lesser General Public License as published by
##the Free Software Foundation, either version 3 o... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
b7431460ba56f58a97bd43540f84c61cbb64945d | 12a8cc08189cbaf84f4a3fd3a54595097a03ef3c | /migrations/versions/943ad2ba54d5_initial_migration.py | 7e33fdf88b1fb68660e5f1c5f0e8bbec72c5ba6b | [] | no_license | kepha-okari/watchlist-2 | 723acc9a616f10b1caab4c245763856b5c055c54 | 0cadf9f905d8788dc0999d4addd506d03949d33c | refs/heads/master | 2022-03-27T21:34:43.102901 | 2017-12-16T08:58:45 | 2017-12-16T08:58:45 | 114,447,275 | 0 | 1 | null | 2020-01-28T18:48:26 | 2017-12-16T08:57:20 | Python | UTF-8 | Python | false | false | 793 | py | """initial migration
Revision ID: 943ad2ba54d5
Revises:
Create Date: 2017-12-13 14:18:22.541000
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '943ad2ba54d5'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"kephaokari@gmail.com"
] | kephaokari@gmail.com |
ac25654f162b59399b03208a81b615468f5ada8b | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/advisory_1.py | cb00e56b170435c05611e390c7fc8fa9d50ac8ad | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 3,346 | py | from __future__ import annotations
from dataclasses import dataclass, field
from xsdata.models.datatype import XmlDate
from travelport.models.type_advisory_type_1 import TypeAdvisoryType1
from travelport.models.type_geo_political_area_type_1 import TypeGeoPoliticalAreaType1
from travelport.models.type_key_element_1 imp... | [
"chris@komposta.net"
] | chris@komposta.net |
184fe1d15a17d8f13b48f3ddab37b627f68c0173 | cd142a4e15d3576546fcb44841417039f0b8fb00 | /build/hector_slam/hector_compressed_map_transport/catkin_generated/pkg.develspace.context.pc.py | a761e8917371071b2ce04b889b66afc8b28d3b26 | [] | no_license | mgou123/rplidar | 4389819eb1998d404d1066c7b4a983972d236ce7 | 608c1f6da2d3e5a8bac06e8d55d8569af828a40b | refs/heads/master | 2022-11-10T05:51:56.403293 | 2020-06-29T04:16:14 | 2020-06-29T04:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "hector_compressed_map_transport"
PROJ... | [
"492798337@qq.com"
] | 492798337@qq.com |
dd96b7881c8ba1ba5d736d3c23ed1b9aa28a2385 | 10d74a59b8c3bcada4709ad2985b917b88cb1838 | /tennis/migrations/0005_match_klaar.py | 2ef87553fc9ba9d9f2030d588b442a8d83522059 | [] | no_license | specialunderwear/tennis | 994f76b5cb34523e4f8478360ca2679626b88cb4 | e00e38eb42fd3bee2f20dc7bf67e94df37e07b7a | refs/heads/master | 2021-01-23T16:27:56.296951 | 2017-06-04T08:03:43 | 2017-06-04T08:03:43 | 93,298,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-15 11:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tennis', '0004_auto_20160515_1051'),
]
operations = [
migrations.AddField(
... | [
"lars@permanentmarkers.nl"
] | lars@permanentmarkers.nl |
789859cc20a96446a1452c168e05ce06801b3a1d | 72ea5f014282c4d1a4a0c70f9553bde7882962b4 | /mufins-project/mufins/tests/common/dataset/dataset_memory/test_data_set_memory.py | 8dfcd686d74efa0e4fd1db72376ef703432cd3ba | [
"MIT"
] | permissive | werywjw/mBERT-FineTuning | 6eb2b93a0f328f4af3cbd1ba5e042baadcb67428 | 7b64d0a91e9aa23eb3ace8c5c19262e2574f24d7 | refs/heads/master | 2023-08-08T01:41:06.716441 | 2021-09-14T20:21:25 | 2021-09-14T20:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,746 | py | '''
Unit test for DatasetMemory class in dataset module.
'''
import unittest
from mufins.common.dataset.dataset_memory import DatasetMemory
from mufins.tests.common.dataset.mock_data_spec import MockDataSpec
from mufins.common.error.incompatible_existing_data import IncompatibleExistingDataException
from mufins.common... | [
"marctanti@gmail.com"
] | marctanti@gmail.com |
8a7991a27e16210731133a2c8a7913e4692d4f07 | 22e53332f0f1023a202e3094a08257d7da140c07 | /app/App.py | 5db136e94ee13d74c43b4ace3339566ff3d8ea0e | [] | no_license | generaldave/10_PRINT | 1e1ef44b46c0c264505f002a42b353642f439c9d | 5bfe21bc6f6ee762f61a6513c145fe83b1e2dab1 | refs/heads/master | 2021-05-04T18:40:14.941229 | 2017-10-06T03:32:44 | 2017-10-06T03:32:44 | 105,950,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,264 | py | ################################################################################
# #
# David Fuller #
# ... | [
"icepicktoeye@gmail.com"
] | icepicktoeye@gmail.com |
1f8bfbd0ccb8664b2485049b0c5c54e8e745b320 | 2315b73e3cb4d166de6f5fa81db5a8637b091d44 | /runtests.py | de992cb6d630b513eaf8c9093e9e369a7acb9cc3 | [
"MIT"
] | permissive | elpatiostudio/wagtail-geo-widget | e8f64b213665b00265152b8ee5cd012f5efda11c | c7892f089344cb49a529d0a5e2b175d9064b649f | refs/heads/main | 2023-08-11T14:48:17.369751 | 2021-10-14T16:20:39 | 2021-10-14T16:20:39 | 411,716,231 | 0 | 0 | MIT | 2021-09-29T14:53:03 | 2021-09-29T14:53:03 | null | UTF-8 | Python | false | false | 1,365 | py | #!/usr/bin/env python
import sys
from django.conf import settings
from django.core.management import execute_from_command_line
if not settings.configured:
params = dict(
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'consol... | [
"martin@marteinn.se"
] | martin@marteinn.se |
c397b9f629c7bef937b021875fdf2c11594d8082 | 99ba551645dc9beed36f0478b396977c50c3e7ef | /leetcode-vscode/653.两数之和-iv-输入-bst.py | 2e4246abd4fd777e34a74dca4789cff647f07de3 | [] | no_license | wulinlw/leetcode_cn | 57381b35d128fb3dad027208935d3de3391abfd0 | b0f498ebe84e46b7e17e94759dd462891dcc8f85 | refs/heads/master | 2021-08-09T17:26:45.688513 | 2021-07-15T14:38:30 | 2021-07-15T14:38:30 | 134,419,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | #
# @lc app=leetcode.cn id=653 lang=python3
#
# [653] 两数之和 IV - 输入 BST
#
# https://leetcode-cn.com/problems/two-sum-iv-input-is-a-bst/description/
#
# algorithms
# Easy (54.00%)
# Likes: 116
# Dislikes: 0
# Total Accepted: 12.1K
# Total Submissions: 22.4K
# Testcase Example: '[5,3,6,2,4,null,7]\n9'
#
# 给定一个二叉搜索树... | [
"wulinlw@gmail.com"
] | wulinlw@gmail.com |
9b634cf9201e6e3d17131b2195aa525fa33e3247 | aec185bb962d42a3068be486ecff9ead0e0fd310 | /setup.py | b3dc308ed05dd4aedd48407024768d1cef877d99 | [] | no_license | collective/collective.thememanager | c7b2975d7959ab67c1e081469cac9bfcd2ebc87e | 730095b3703063d8fb324cb74b86483962a44edb | refs/heads/master | 2023-03-22T10:58:46.289286 | 2011-05-25T14:00:23 | 2011-05-25T14:00:23 | 2,137,663 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | from setuptools import setup, find_packages
import os
version = '1.0dev'
setup(name='collective.thememanager',
version=version,
description="A diazo theme manager for Plone",
long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
7a8d1cf47eba4fc1d127c9ff50c5c5d717298517 | 31a766fcae3779b05796534c354286083502f74a | /python/onshape_client/models/bt_metrics_list_params.py | 1aad5194f2df3e330bb95037ef729e71ce2c68ec | [] | no_license | nychang/onshape-clients | 5ea21e73a05948f5e232d4851eb8ae8a6b8c75c8 | 9c97baae57f80e3922726443584e4cc50b99623f | refs/heads/master | 2020-05-06T20:35:28.212953 | 2019-04-05T20:38:19 | 2019-04-05T20:38:19 | 180,243,972 | 0 | 0 | null | 2019-04-08T22:43:59 | 2019-04-08T22:43:59 | null | UTF-8 | Python | false | false | 3,248 | py | # coding: utf-8
"""
Onshape REST API
The Onshape REST API consumed by all clients. # noqa: E501
OpenAPI spec version: 1.96
Contact: api-support@onshape.zendesk.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class BTMetricsListParams(obj... | [
"ethan.keller@gmail.com"
] | ethan.keller@gmail.com |
3410e22e98bb2aad51b258dd3ec739ebc0213874 | cb35df97989fcc46831a8adb8de3434b94fd2ecd | /tests/implicitron/test_eval_demo.py | 37df395db1cb871ae2e0f54f224d404056079fb1 | [
"MIT",
"BSD-3-Clause"
] | permissive | facebookresearch/pytorch3d | 6d93b28c0f36a4b7efa0a8143726200c252d3502 | a3d99cab6bf5eb69be8d5eb48895da6edd859565 | refs/heads/main | 2023-09-01T16:26:58.756831 | 2023-08-26T20:55:56 | 2023-08-26T20:55:56 | 217,433,767 | 7,964 | 1,342 | NOASSERTION | 2023-08-25T10:00:26 | 2019-10-25T02:23:45 | Python | UTF-8 | Python | false | false | 775 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import os
import unittest
from pytorch3d.implicitron import eval_demo
from tests.common_testing import intera... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2c06c9127680468e5c1970dad5384c5d306a10bd | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /cascaded_networks/models/tdl.py | 39692f4cabcdbc128210b1583adf0c111ffb6f2d | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 2,301 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
8022a5f6da175cacb32efa541bcfe8e34d814d45 | c5a627121168e9be7c1aabb04e41c9f84faa6cc6 | /scoring.py | 3b81e4f45e7aa64040e53d66af3c744caf332b56 | [] | no_license | etture/SDSS_custom | cf58bd8cb526203c653d960f893dc64beb18ab0e | 1a4a4ad2b5ca7c3e0114e7893017a1a15f8cef19 | refs/heads/master | 2021-01-16T04:52:00.121540 | 2020-02-25T16:48:25 | 2020-02-25T16:48:25 | 242,981,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | import pandas as pd
from sklearn.metrics import log_loss
import pickle
import fire
rename_dict = {'STAR_WHITE_DWARF': 0, 'STAR_CATY_VAR':1, 'STAR_BROWN_DWARF':2,
'SERENDIPITY_RED':3, 'REDDEN_STD':4, 'STAR_BHB':5, 'GALAXY':6,
'SERENDIPITY_DISTANT':7, 'QSO':8, 'SKY':9, 'STAR_RED_DWARF':10, 'ROSAT_D':11,
... | [
"etture@gmail.com"
] | etture@gmail.com |
6e945e92ea47195f26e854a33ba13c01069e73dc | c5759366f8b2cb2e129df0637b62774225a0c41a | /code/tensor2tensor/tensor2tensor/problems.py | 1337c2a3388e967df697d25012cf4c0fa55d7d15 | [
"Apache-2.0"
] | permissive | cake-lab/transient-deep-learning | f8646a4386528aa147d8d3dcdff8089985870041 | 87c6717e4026801623cf0327e78ad57f51cb1461 | refs/heads/master | 2022-11-02T20:02:29.642997 | 2022-02-08T16:51:09 | 2022-02-08T16:51:09 | 227,036,173 | 11 | 1 | Apache-2.0 | 2022-10-05T13:01:38 | 2019-12-10T05:27:50 | Python | UTF-8 | Python | false | false | 1,009 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# 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... | [
"ozymandias@OzymandiasdeMacBook-Pro.local"
] | ozymandias@OzymandiasdeMacBook-Pro.local |
5e7ba5ce60b0d77c7ac37ee8cd88e7e084d1121f | 77d4d5a1881297dce3003560e04a2e39a97d4465 | /code_chef/CATFEED.py | 1820aa32f5462be36d82be05eec3c74f977bdd70 | [] | no_license | gomsterX/competitive_programming | c34820032c24532d62325a379590a22fa812159a | 72ac1fe61604e5a5e41f336bb40377fd7e4738d7 | refs/heads/master | 2023-07-19T21:28:16.205718 | 2021-09-02T14:18:44 | 2021-09-02T14:18:44 | 271,074,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | #Problem ID: CATFEED
#Problem Name: Chef Feeds Cats
for _ in range(int(input())):
n, m = map(int, input().split())
l = list(map(int, input().split()))
fair = True
if(m<n):
if(len(set(l))<m):
fair = False
else:
for i in range(0, m, n):
if(i+n > m and len(set(l... | [
"mohamedmoussaa7@gmail.com"
] | mohamedmoussaa7@gmail.com |
040a18170e65a07634548419034581f3de4202cf | 8dea334c5f7c960eee18087cded70ac140b23bd5 | /mac_os_scripts_tests/set_background_test.py | 6513dc920db9164a8b0c2309e4febf574bea0841 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | initialed85/mac_os_scripts | c94c2100995237133f9b8211c5ac56e4d67df7ee | aa8a2c1dc9193dbce796985f5f125c82f6f90bed | refs/heads/master | 2021-08-22T04:50:25.828232 | 2017-11-29T10:06:51 | 2017-11-29T10:06:51 | 107,938,438 | 32 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | import unittest
from hamcrest import assert_that, equal_to
from mock import MagicMock, call
from mac_os_scripts.set_background import BackgroundSetter
from mac_os_scripts_tests.test_common import _NO_OUTPUT
class BackgroundSetterTest(unittest.TestCase):
def setUp(self):
self._subject = BackgroundSetter(... | [
"initialed85@gmail.com"
] | initialed85@gmail.com |
6bb620950242059cf4f51b1fa8c30bff7f8fa224 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 10344 23 out of 5/main.py | 193c8366725bb72d7afc7608162ac4e7127668e9 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import sys
import itertools
sys.stdin = open('input.txt')
while True:
num = map(int, raw_input().split())
if not any(num):
break
flag = False
for t in itertools.permutations(num):
for o1, o2, o3, o4 in itertools.product(['+', '-', '*'], repeat=4):
s = '(((%d %s %d) %s %d) %s... | [
"xenron@outlook.com"
] | xenron@outlook.com |
d8904f94775773453dfab4d7b2b3d0369228d234 | bd8bc7abe0f774f84d8275c43b2b8c223d757865 | /16_3SumClosest/threeSumClosest.py | 53c3978a270f37f6e4651504a4d8800baafe9ce0 | [
"MIT"
] | permissive | excaliburnan/SolutionsOnLeetcodeForZZW | bde33ab9aebe9c80d9f16f9a62df72d269c5e187 | 64018a9ead8731ef98d48ab3bbd9d1dd6410c6e7 | refs/heads/master | 2023-04-07T03:00:06.315574 | 2021-04-21T02:12:39 | 2021-04-21T02:12:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | class Solution:
def threeSumClosest(self, nums: List[int], target: int) -> int:
nums.sort()
n = len(nums)
nearest = 10 ** 7
for i in range(n - 2):
lo, hi = i + 1, n - 1
# 双指针
while lo < hi:
total = nums[i] + nums[lo] + nums[hi]
... | [
"noreply@github.com"
] | excaliburnan.noreply@github.com |
4a228b16eeedd8cffd1be719945dd6849aca0089 | 20627b99d5658933dab7892a42576762a22d9f6b | /example_set-2/script_ex-2_3.py | 17ae4507a7ade1b544d608d9670dc26b9049313b | [] | no_license | rsp-esl/python_examples_learning | 07bd44a42c45d091bc3ead31241df319e73d2a6e | da8b35bccbaafe855bf544011272e550e5ec9a0a | refs/heads/master | 2021-09-23T11:59:29.388759 | 2018-09-22T11:27:43 | 2018-09-22T11:27:43 | 111,050,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################################
# Author: Rawat S. (Dept. of Electrical & Computer Engineering, KMUTNB)
# Date: 2017-11-17
##############################################################################
from __future__... | [
"noreply@github.com"
] | rsp-esl.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.