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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f18cbd71dc46ee39dab66b855fcc419fed3d8bf9 | 9bcba8f3162eacea872dbadc9990a164f945f70a | /Packages/plugins/diff.py | ba9784dce5ffd03f005d1c7b24e42636ad16a28b | [] | no_license | programadorsito/Packages | a4cb568219dbc10a69e15a2832ef52d19eb83061 | af748327f128ed90bb146dc12bb53b76ccb609fd | refs/heads/master | 2021-01-10T04:41:38.676159 | 2016-04-06T07:52:45 | 2016-04-06T07:52:45 | 55,560,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,486 | py | import difflib
import shutil
import filecmp
import threading
import sublime_plugin
import sublime
import utils
import time
import re
import os
DIFF_PATH="/Users/Mac/aplicaciones/diff"
DIFF_JSON="/Users/Mac/aplicaciones/diff/diff.json"
def diff(texto1, texto2):
pass
def get_folder(filename):
... | [
"Mac@MacBook-de-Mac.local"
] | Mac@MacBook-de-Mac.local |
7b2c67b24b3125afbff68d1129ef8607c8628045 | 5add80be09ee754fced03e512a9acc214971cddf | /python-code/opencv-learning/dnn/caffe_bvlc_reference_rcnn_ilsvrc13.py | b08812ae603ae7467a7a09c1e75113960f7ee283 | [
"Apache-2.0"
] | permissive | juxiangwu/image-processing | f774a9164de9c57e88742e6185ac3b28320eae69 | c644ef3386973b2b983c6b6b08f15dc8d52cd39f | refs/heads/master | 2021-06-24T15:13:08.900960 | 2019-04-03T10:28:44 | 2019-04-03T10:28:44 | 134,564,878 | 15 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | #coding:utf-8
import numpy as np
import cv2
#labels = np.loadtxt(label_file, str, delimiter='\t')
CLASSES = np.loadtxt('../resources/models/caffe/det_synset_words.txt', str, delimiter='\t')#[line.strip() for line in open('../resources/models/caffe/object_detection_classes_pascal_voc.txt')]
#print('[INFO]', CLASSES)
de... | [
"kkoolerter@gmail.com"
] | kkoolerter@gmail.com |
cc56120f34807b460b733d6a58c9a329725e49a6 | ab0907d7a699d4a490f96add6cdaa9d6b9822ac7 | /src/models/euler_lagrange_predictor.py | ae0ba29b9e2343044e7ef90138fa4f4dfba18059 | [] | no_license | virtualpeer/local_transformation_model | 3fe9c12e49854e53eb21b7a2848c5e2ce75c1cb9 | bd48087bdf6af1b99be80ad6d6e85cf005120ee9 | refs/heads/master | 2023-08-23T15:54:00.543813 | 2021-10-11T17:41:02 | 2021-10-11T17:41:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,858 | py | #
# Hybrid Eulerian Lagrangian Rainfall Prediction
#
import torch
import torch.nn as nn
#from torch.autograd import Variable
import numpy as np
# -----------------------------
# add "src" as import path
#path = os.path.join('/home/tsuyoshi/local_transformation_model/src/src_rev_bilinear/')
#sys.path.append(path)
... | [
"inoue0406@gmail.com"
] | inoue0406@gmail.com |
5df76910e62708ca61ca7e5715e0a9f9d74d9ee5 | b282579bd888516bb7c57b051fe3de8a61957a31 | /monkey_patch/django_db_backends_mysql_operations.py | c458154d0f96f1b0937e1f720f779e5b6e734d04 | [] | no_license | sekil9529/django-demo | 1810ca9c50231d81a026678af62efe1b6814c654 | 53d5ad66adf9391d1abb417b4d1960af6ade3c3a | refs/heads/master | 2023-08-27T07:14:43.642313 | 2021-10-26T09:36:22 | 2021-10-26T09:36:22 | 390,558,471 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # coding: utf-8
import os
import sys
from django.db.backends.mysql.operations import DatabaseOperations as OriginDatabaseOperations
from django.utils.encoding import force_str
class DatabaseOperations(OriginDatabaseOperations):
def last_executed_query(self, cursor, sql, params):
# With MySQLd... | [
"ld@meng2333.com"
] | ld@meng2333.com |
0d128e7ba4b34ede628bfba5842d2fc088cf6b78 | d6d20681f41102df3feb2b438ef80569bd73730f | /Uge4-numpy/.history/exercises_20200218202519.py | 1a810ad8f7072d07d34682ca04bf6b2c8c39f7ad | [] | no_license | MukHansen/pythonAfleveringer | d0ad2629da5ba2b6011c9e92212949e385443789 | 4107c3c378f757733961812dd124efc99623ff2e | refs/heads/master | 2020-12-22T13:27:19.135138 | 2020-05-22T11:35:52 | 2020-05-22T11:35:52 | 236,796,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,785 | py | import numpy as np
import matplotlib.pyplot as plt
from collections import OrderedDict
filename = './befkbhalderstatkode.csv'
data = np.genfromtxt(filename, delimiter=',', dtype=np.uint, skip_header=1)
neighb = {1: 'Indre By', 2: 'Østerbro', 3: 'Nørrebro', 4: 'Vesterbro/Kgs. Enghave',
5: 'Valby', 6: 'Vanløse',... | [
"cph-mh752@cphbusiness.dk"
] | cph-mh752@cphbusiness.dk |
83e73ce4c754133f5388253a5694bff72627ffa3 | 022b2a5cc0db92680369fa35df15643f6ee74477 | /invenio_app_ils/document_requests/loaders/__init__.py | 5d4bded806a96f2f82b71ba72324257fb2ad7c2e | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | equadon/invenio-app-ils | e781ff7e9ee9e54d2323cc8270490a335e9e5211 | 42ba282968d0aa28fb1bfc71d0709685165aaec4 | refs/heads/master | 2020-04-21T12:50:31.149719 | 2020-02-03T17:15:01 | 2020-02-05T09:40:17 | 169,577,333 | 0 | 0 | MIT | 2019-07-05T09:33:54 | 2019-02-07T13:37:56 | JavaScript | UTF-8 | Python | false | false | 961 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 CERN.
#
# invenio-app-ils is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""ILS document requests loaders."""
from invenio_app_ils.records.loaders import ils_marshmallow_loader
from .js... | [
"38131488+kprzerwa@users.noreply.github.com"
] | 38131488+kprzerwa@users.noreply.github.com |
ec1e2e188a23094861331d98f2da678be508a4d3 | b896878ec493f14d07b9dfd29f631a195e35c700 | /venv/lib/python2.7/site-packages/scrapy/commands/shell.py | 95af8586b5e58b2d12b2c47748ef60c300bcbeca | [] | no_license | aitoehigie/unofficial-nairalandAPI | 55ca0c1bf804215f7d520897a554df04ee09148a | 01ae2de0d9cf8218ef34ace8afc80f880d8766a7 | refs/heads/master | 2021-01-17T12:19:22.531007 | 2016-06-12T17:11:39 | 2016-06-12T17:11:39 | 7,709,586 | 6 | 5 | null | 2016-06-14T00:21:45 | 2013-01-19T22:15:21 | Python | UTF-8 | Python | false | false | 2,194 | py | """
Scrapy Shell
See documentation in docs/topics/shell.rst
"""
from threading import Thread
from scrapy.commands import ScrapyCommand
from scrapy.shell import Shell
from scrapy.http import Request
from scrapy.utils.spider import spidercls_for_request, DefaultSpider
class Command(ScrapyCommand):
requires_proj... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
898059890c74c06d6c4dd9ffe8518eeb18b981e0 | c1f9d706457e62680c0a15bf2bafce885c787755 | /keybone/lib/aes.py | 70c08918210d95b7c5c7bf8891039820a5f632c7 | [] | no_license | MiWCryptAnalytics/keybone | f0820b533837f5368e0d0f1bd652f4b428b9b45e | 1b68b29869f36905f3696fc16a953d1a71b9eff4 | refs/heads/master | 2021-01-20T05:53:31.431552 | 2017-03-14T03:05:16 | 2017-03-14T03:05:16 | 89,820,828 | 0 | 0 | null | 2017-04-30T00:35:01 | 2017-04-30T00:35:01 | null | UTF-8 | Python | false | false | 2,702 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytz
from datetime import datetime
from Crypto import Random
from Crypto.Cipher import AES
from cryptography.hazmat.primitives.hashes import SHA256 as CRYPO_SHA256
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from cryptography.hazmat.backends im... | [
"gabriel@nacaolivre.org"
] | gabriel@nacaolivre.org |
94a30433d928f36185cceca66d69ca5e3cbf32da | 9fefd87bf65dd0be051988ead6fa532ad968371c | /11/ex04.py | 6a8a6635041845575a05f168552b380aedb48c42 | [] | no_license | et0511/linear-algebra-basics | b94659832dd16342bdc73bace18ab21d1fc3458d | b9f3a91ea9ba5b1011d619d374f238dd56c09c9a | refs/heads/master | 2023-01-22T05:35:56.850516 | 2020-11-20T08:39:14 | 2020-11-20T08:39:14 | 313,239,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # sigmoid 함수의 특징 II
# 경사하강법(수치미분)
import os
import sys
from pathlib import Path
import numpy as np
from matplotlib import pyplot as plt
try:
sys.path.append(os.path.join(Path(os.getcwd()).parent, 'lib'))
from common import gradient_descent
except ImportError:
print('Library Module Can Not Found')
def sig... | [
"shinwon0511@gmail.com"
] | shinwon0511@gmail.com |
e4a6950d1dc5442213b0bd983120eaedd2aca53f | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_Class376.py | d8486e7f592777bbd3fa414a47b916cf131b6813 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=17
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
318f673c1eaa39af29ace3ba5134e27312c75e53 | fe8fe4e9b6727ccfa6a03a96fa12194146cf794b | /agent/kraken/agent/lxd_run.py | 7fb651f85afc4af681dd08f3e525369aedcd085b | [
"Apache-2.0"
] | permissive | smieqq/kraken | c433dc27e13bd57732964ca76efadec692e7815d | 35d18f4f86cc1090bf02f303bb2b611b3099f73e | refs/heads/master | 2023-03-18T01:53:04.390965 | 2021-03-06T08:42:20 | 2021-03-06T08:42:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,415 | py | # Copyright 2020 The Kraken 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 law or agreed to in wr... | [
"godfryd@gmail.com"
] | godfryd@gmail.com |
1f267a1f104d38119971a909be492c61157f1723 | ac0c38686e93a52eb4539e135eb8306ce09a5fda | /src/modules/comm/__init__.py | a443e9c248a692b7c968f8f90701b72380aa7b2f | [] | no_license | rycus86/IntelliHomeControl-py | 30b6912aa9f256684c0c76b7d171bdabe26ea607 | f39cc940db8f3bd0ed903322dd404ce309ce8c9a | refs/heads/master | 2016-09-02T02:58:50.632941 | 2014-01-08T19:02:00 | 2014-01-08T19:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | '''
Created on Dec 4, 2013
Basic communication related classes.
@author: Viktor Adam
'''
class Header(object):
''' Message header values used in server-client communication. '''
MSG_A_LOGIN = 0xA1
MSG_A_LIST_DEVICE_TYPES = 0xA2
MSG_A_LIST_DEVICES = 0xA3
MSG_A_SEN... | [
"rycus86@gmail.com"
] | rycus86@gmail.com |
91ef65af638a15a5dea0c6798106c05772d506fb | 799a0af9c05deabe5d5250a10e480ec15ae0216e | /urllib2_test/urllib2_test_2.py | ce1364a57260b19866ae895735dc254081693505 | [
"MIT"
] | permissive | waws520waws/waws_spider | 9b2be28834c08166463fe265e0f5c37a874369c8 | c6a5988121f32619a5c5134c09fdfd556c696fe7 | refs/heads/master | 2021-03-20T06:01:22.041937 | 2020-03-28T02:49:16 | 2020-03-28T02:49:16 | 247,183,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | import urllib2
"""
主要看下response的方法
"""
url = "http://www.baidu.com"
response = urllib2.urlopen(url)
print(response.geturl())
print(response.getcode())
print(response.info())
"""
http://www.baidu.com
200
Bdpagetype: 1
Bdqid: 0xf3af2e8a00052fba
Cache-Control: private
Content-Type: text/html;charset=utf-8
Date: Sat... | [
"16601203140@163.com"
] | 16601203140@163.com |
4a69be3d9ce4648c0b1b1fd31d762d8fc8966cde | bf38ef442455b2b66ad44f3c6d7192f0fa70d4ee | /0x00-python_variable_annotations/3-to_str.py | e73199107590335018f436f80a8d6519e3668b04 | [] | no_license | mauricioolarte/holbertonschool-web_back_end | 1cb708f7d3d40b74b18191083af058cc109e8c4b | 17ae15260719f98c02fab54cfac3d284134be4e4 | refs/heads/main | 2023-08-22T03:50:52.495218 | 2021-10-06T02:48:55 | 2021-10-06T02:48:55 | 387,625,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python3
''' function to_str that takes a float n as
argument and returns the string representation of the float.
'''
def to_str(n: float) -> str:
'''function to_str that takes a float n as
argument and returns the string representation of the float.
'''
return str(n)
| [
"reneolarte@yahoo.com"
] | reneolarte@yahoo.com |
932900563325468a5321320491f30adb11045c27 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03045/s252762214.py | 069741c76fa781745765f9baade9c01fb7e97316 | [] | 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 | 415 | py | from scipy.sparse import csr_matrix
from scipy.sparse.csgraph import connected_components
n, m = map(int, input().split())
xyz = [list(map(int, input().split())) for _ in range(m)]
xs = []
ys = []
for x, y, _ in xyz:
x -= 1
y -= 1
xs.append(x)
ys.append(y)
graph = csr_matrix(([1] * m, (xs, ys)), shap... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
876c00f873cbd8a341ae724ad2fcd68db7ecb958 | 5eb29ce7104e10a399d9afd7e253f029bf8bc0ff | /hbase_ht/fill_escorts_table_sha1.py | b5a793f70a987d8e0f4e4d4079c9eb6461fcacec | [
"BSD-2-Clause"
] | permissive | svebk/DeepSentiBank_memex | 69789dc09316e97aad711edeb251837a60184e7e | 4e69ce66e3a177817ff360ddc263f55c6e0b63f7 | refs/heads/master | 2021-01-18T18:55:10.870052 | 2017-10-19T22:51:29 | 2017-10-19T22:51:29 | 36,091,024 | 22 | 1 | null | 2017-02-09T20:31:20 | 2015-05-22T19:20:54 | Python | UTF-8 | Python | false | false | 4,851 | py | import MySQLdb
import happybase
from Queue import *
from threading import Thread
import json
import time
import os
import numpy as np
import sys
sys.path.insert(0, os.path.abspath('../memex_tools'))
hbase_conn_timeout = None
nb_threads = 2
pool = happybase.ConnectionPool(size=nb_threads,host='10.1.94.57',timeout=hbase... | [
"svebor.karaman@gmail.com"
] | svebor.karaman@gmail.com |
3eaa070d0a22826842838ec25d7765d6e7b236d8 | 5865cc1b70db72b7a9a9a07547f05a1f47959bb1 | /supervised_learning/0x00-binary_classification/11-neural_network.py | dc30ecf870a0874f55118b85d257548bdf9facce | [] | no_license | nildiert/holbertonschool-machine_learning | c8cefc3a784348f09128c0f4d82d65b9d56000c5 | 273f81feaa14fe24ac4db5d82be0d13299e857b8 | refs/heads/master | 2020-12-21T12:27:48.280880 | 2020-09-25T17:58:33 | 2020-09-25T17:58:33 | 236,429,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | #!/usr/bin/env python3
""" This class defines a neural network with one hidden layer """
import numpy as np
class NeuralNetwork():
"""
This class defines a neural network with one hidden
layer performing binary classification
"""
def __init__(self, nx, nodes):
""" Constructor method """
... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
c7fb43a7343ca1fefc52211fd8b8f623a584494c | cd4799cfadb385fead2af33a85efb1f7db732656 | /basic/abstractions.py | 9361248fead207e8ce63adb64ccb924f4fb8e33c | [
"MIT"
] | permissive | alexbw/pyhsmm | d8a5ddb1840b56dd38fa15af31109c43657481a8 | 7f362fb1620d8c15efcc56b44dcbbca76f785814 | refs/heads/master | 2021-01-23T23:45:44.383037 | 2014-11-27T22:43:35 | 2014-11-27T22:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | from __future__ import division
import abc
import numpy as np
from matplotlib import pyplot as plt
from pybasicbayes.abstractions import *
from ..util.stats import flattendata
class DurationDistribution(Distribution):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def log_sf(self,x):
'''
... | [
"mattjj@csail.mit.edu"
] | mattjj@csail.mit.edu |
b7d32479acf18a29c254077a79937e56eb84b076 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v2/users/SendInvitations.py | a792a6214571ae3b01d8cac64498046616113dfc | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 1,478 | py | """
Send invitation emails returns "OK" response
"""
from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.users_api import UsersApi
from datadog_api_client.v2.model.relationship_to_user import RelationshipToUser
from datadog_api_client.v2.model.relationship_to_u... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
9fee9128a4ef41bfa4a1b54665edf3aec41e60e2 | f023692f73992354a0b7823d9c49ae730c95ab52 | /other/2015/IndeedNow_QualifyingB/D.py | 497c1c58d5d8fce5986fc365aea89cce3018fdde | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 935 | py | # import sys
# sys.setrecursionlimit(10 ** 6)
# import bisect
# from collections import deque
inf = float('inf')
mod = 10 ** 9 + 7
# from decorator import stop_watch
#
#
# @stop_watch
def solve(N, C, A):
num_map = [[] for _ in range(C + 1)]
for i in range(N):
num_map[A[i]].append(i + 1)
for i in ra... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
72e97253eaeefe9ae6fcc9d630a1eab803cfdde7 | 8531807ba024b367c48ffdab3e54c8aa30cc5f41 | /uproot_methods/classes/THnSparse.py | 886cfe85768b00edf209827a2db28296b1074ff5 | [
"BSD-3-Clause"
] | permissive | chernals/uproot-methods | edf9897dd03cb63f06041c6d61efa026e860f698 | 6892919cae6ade59c5706c0997f04c551762a00d | refs/heads/master | 2020-09-07T08:24:02.751016 | 2020-05-05T20:40:17 | 2020-05-05T20:40:17 | 220,721,500 | 0 | 0 | BSD-3-Clause | 2019-11-10T00:28:32 | 2019-11-10T00:28:32 | null | UTF-8 | Python | false | false | 267 | py | #!/usr/bin/env python
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot-methods/blob/master/LICENSE
import numpy
import uproot_methods.base
class Methods(uproot_methods.base.ROOTMethods):
def hello(self):
return "world", len(dir(self))
| [
"jpivarski@gmail.com"
] | jpivarski@gmail.com |
c0f58e1b9dcd9362e0cac861abc273f2fe8cbc22 | 484161fb3255c7a8003466adf496bfcb70dfd311 | /prescription_app/migrations/0001_initial.py | 4bf3b6b8a71a27739bc4230af3facb3e6196e64d | [] | no_license | ShakilAhmmed/PrescriptionLikhon | 43b0e64960283f46f6b81e1c705fe48b6efc02a7 | 14e83ef27db8e020fde5dfba8e7c16a11236b0b5 | refs/heads/master | 2022-12-11T12:31:43.385954 | 2020-03-29T17:56:45 | 2020-03-29T17:56:45 | 242,395,541 | 3 | 0 | null | 2022-12-08T03:40:10 | 2020-02-22T18:59:22 | JavaScript | UTF-8 | Python | false | false | 1,979 | py | # Generated by Django 3.0.3 on 2020-03-29 17:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('medicine_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
na... | [
"shakilfci461@gmail.com"
] | shakilfci461@gmail.com |
3a601c8b3bad9806a50e9c8620e55fe610a51b54 | 26dec2f8f87a187119336b09d90182d532e9add8 | /mcod/core/signals.py | 567247a0d102390ba01c83974032db8d45877926 | [] | no_license | olekstomek/mcod-backend-dane.gov.pl | 7008bcd2dbd0dbada7fe535536b02cf27f3fe4fd | 090dbf82c57633de9d53530f0c93dddf6b43a23b | refs/heads/source-with-hitory-from-gitlab | 2022-09-14T08:09:45.213971 | 2019-05-31T06:22:11 | 2019-05-31T06:22:11 | 242,246,709 | 0 | 1 | null | 2020-02-24T22:39:26 | 2020-02-21T23:11:50 | Python | UTF-8 | Python | false | false | 1,517 | py | from django.dispatch import Signal, dispatcher
class ExtendedSignal(Signal):
def __init__(self, providing_args=None, use_caching=False):
if providing_args is None:
providing_args = []
providing_args.append('instance')
providing_args.append('state')
super().__init__(prov... | [
"piotr.zientarski@britenet.com.pl"
] | piotr.zientarski@britenet.com.pl |
863d30474770400eae10fe6ac00a393bf3052b6d | 8e2404c7bcfd28329bed789839192b2c4e85ea1b | /LeetCode/Maximum_69_number.py | 8309eab2d59a23e462aadd8ffc8834d34277007d | [] | no_license | Pabitra-26/Problem-Solved | 408bd51bbffc69f8c5e1def92797c2e6f027f91d | c27de1dd6c4ad14444fa5ee911a16186c200a7f9 | refs/heads/master | 2023-07-30T16:51:28.062349 | 2021-09-27T06:06:54 | 2021-09-27T06:06:54 | 269,935,039 | 2 | 0 | null | 2021-09-27T06:06:55 | 2020-06-06T09:39:33 | Python | UTF-8 | Python | false | false | 520 | py | # Problem name: Maximum 69 Number
# Description: Given a positive integer num consisting only of digits 6 and 9.
# Return the maximum number you can get by changing at most one digit (6 becomes 9, and 9 becomes 6).
class Solution:
def maximum69Number(self, num: int) -> int:
num = str(num)
nu... | [
"noreply@github.com"
] | Pabitra-26.noreply@github.com |
d0f85bfcd6e66ec1fd88df239420d2f56b9d91c1 | 649c31cdd6a79816b807e4385da10bad67a9a98f | /q2_chemistree/tests/test_collate_fingerprint.py | 5eb7c9e16473acf544871d67850021443698988f | [
"BSD-2-Clause"
] | permissive | mwang87/q2-chemistree | 134f8674dffb10d1f366a9b32e8345c5b3d9b395 | 950b1f8217a73f0eefaa4f285f0cb4accfffb8d7 | refs/heads/master | 2023-04-08T17:40:52.243606 | 2019-03-25T16:26:49 | 2019-03-25T16:26:49 | 164,719,585 | 0 | 0 | BSD-2-Clause | 2019-10-07T15:34:15 | 2019-01-08T19:36:21 | Python | UTF-8 | Python | false | false | 2,424 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2018, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | [
"yoshiki89@gmail.com"
] | yoshiki89@gmail.com |
20c5b5fc97250ce344bc9971640377a590404e40 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_embodies.py | 5561fdd935b2b37536e7b96fb15b5594bc07e854 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
from xai.brain.wordbase.verbs._embody import _EMBODY
#calss header
class _EMBODIES(_EMBODY, ):
def __init__(self,):
_EMBODY.__init__(self)
self.name = "EMBODIES"
self.specie = 'verbs'
self.basic = "embody"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1e648398dc2aef84610082d1d6aa722f706d4354 | 87c60c9c23adb04b8201396c5a2d2efb4e6e2c3c | /services/authenticator.py | a3ecd5bca9422eb6df45d277ac2f50b634829557 | [] | no_license | stefanv/cesium_web | c450367406eeacb5ae373d8cf987c06c76ec8040 | cef34e324679079101590444cfd45127fea5b209 | refs/heads/master | 2020-04-05T16:54:24.526499 | 2016-07-07T08:56:06 | 2016-07-07T08:56:06 | 61,746,962 | 0 | 0 | null | 2016-09-13T23:39:24 | 2016-06-22T19:46:21 | JavaScript | UTF-8 | Python | false | false | 1,941 | py | import collections
import hashlib
import uuid
import zmq
class LimitedDict(collections.OrderedDict):
def __init__(self, *args, **kwargs):
"""A dictionary that stores at most `max_len` items.
If the item threshold is reached, ``max_len / 2`` items are dropped.
"""
self.max_len = kw... | [
"stefanv@berkeley.edu"
] | stefanv@berkeley.edu |
2ac568365ebf84544172def40dbff9358cc0cb85 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_0/Python/Renelvon/solve.py | b864f138925e1b46c631174c398645ccbdc44179 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | #!/usr/bin/env python3
import sys
def main():
input_file = sys.argv[1]
solve(input_file)
def solve(input_file):
with open(input_file) as f_in:
testcases = int(next(f_in))
for i in range(testcases):
diners = int(next(f_in))
pancakes = tuple(int(num) for num in next... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
af78948a106d7fa97016d191a0fedd54bd4b2442 | edb391acf66f67684213e79aadf922711817420f | /GeekyShows/genricApiView2/genricApiView2/wsgi.py | 878b854de74b5ad183282eed49286d085b8f61fa | [] | no_license | khushboobajaj25/Django-RestFramework | 20d9119590b15ada60fbd630e79d6b755c2f373b | d58c83cd18fa4b4e2d5186996e7f1a627f4689ea | refs/heads/master | 2023-08-06T02:12:44.722597 | 2021-10-09T16:16:49 | 2021-10-09T16:16:49 | 415,358,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for genricApiView2 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"68011207+khushboobajaj25@users.noreply.github.com"
] | 68011207+khushboobajaj25@users.noreply.github.com |
8cc11dfb630e2d258c922d90f422947085944f29 | c654b496eb7089057affbd7483602a588d2922b1 | /TensorBoard.py | 425d36e2fc744208195fafb9c2fb3a20d01211db | [] | no_license | AndyWorks96/demo01 | 8273addbbf15ad2fc1fc3c33aa324cd28adec368 | cc42602d5be9608322c2ea3031096a6147659692 | refs/heads/master | 2022-12-09T15:45:25.967910 | 2020-09-16T12:38:09 | 2020-09-16T12:38:09 | 296,028,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# 实现一个加法运算
a=tf.constant(3.0)
b=tf.constant(4.0)
sum = tf.add(a,b)
# 图:打印出来,就是一个分配内存的地址
# more所有的张量、op、会话都在一张图当中
# print(sum)
print(tf.get_default_graph())
# 注意分号
# 创建图
g=tf.Graph()
# with g.as_default():
# 在g图中定义了一个operation
# c=... | [
"2450157016@qq.com"
] | 2450157016@qq.com |
3ced03a0986ac936ffc1675a277bb5f60d175545 | 58bcbdbd6a99a8bdf02fff5bb011f3f8a9b8482e | /Level-2/generate_all_subsets_binary_method.py | 86c323bfcb0cbff54747888b2bd71be9c8743cba | [] | no_license | hansrajdas/algorithms | 0e868bd2a53a77f1e37a9ac4ca3a4c9a8e1ebcca | 062c628f5364414b257b7ba67c97999726128237 | refs/heads/master | 2023-07-20T08:26:37.793097 | 2023-07-06T16:36:19 | 2023-07-06T16:36:19 | 111,433,269 | 80 | 51 | null | 2023-04-30T10:20:58 | 2017-11-20T16:11:02 | Python | UTF-8 | Python | false | false | 2,250 | py | #!/usr/bin/python
# Date: 2018-07-30
#
# Description:
# Write a method to return all subsets of a set.
#
# Approach:
# Subsets can be modelled as binary representation of a number where 1
# represents that element is present in subset and 0 represents element will not
# be present in subset. For example subsets of {a1... | [
"raj.das.136@gmail.com"
] | raj.das.136@gmail.com |
1f6b95c18e223d7bd3fcf2f80515c2f734d7dfdf | 3e394a906fb1f6581cbcd87cc109a7e8a1b9a6cf | /kata/list_filtering.py | 59fa6016b58d0d86bc475b0c75a2601852fb3a6e | [] | no_license | Ukabix/python-basic | 2f0caa150a7e43f3968d22279f13f10ed2ea0a9e | 8a389e41bbe9221901b090073035a279602c01bc | refs/heads/master | 2021-11-11T12:44:25.537769 | 2021-11-08T07:21:31 | 2021-11-08T07:21:31 | 204,060,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | """In this kata you will create a function that takes a list of non-negative
integers and strings and returns a new list with the strings filtered out.
Example
filter_list([1,2,'a','b']) == [1,2]
filter_list([1,'a','b',0,15]) == [1,0,15]
filter_list([1,2,'aasf','1','123',123]) == [1,2,123]
"""
l = [1, 'a', 'b', 0, 1... | [
"54454097+Ukabix@users.noreply.github.com"
] | 54454097+Ukabix@users.noreply.github.com |
031481937c78eaf914922dfb756ed9406cf54259 | 4182f5c371c15b8f79bc744b8bed0965ffd13c79 | /backend/pytx/js.py | aa9e4b3c1c715052ac331fd08e72cb00f6a0b89e | [] | no_license | pytexas/PyTexas2015 | f4db37a7d43ee523272311139f480189ecba02cd | f4648581a197e2f9387f61c2b94a8f178298becc | refs/heads/master | 2021-05-30T18:47:47.431250 | 2015-11-21T20:52:43 | 2015-11-21T20:52:43 | 17,159,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | SCRIPTS = (
"bower/marked/marked.min.js", "bower/moment/min/moment.min.js",
"bower/moment-timezone/builds/moment-timezone-with-data.min.js",
"bower/angular/angular.min.js",
"bower/angular-animate/angular-animate.min.js",
"bower/angular-aria/angular-aria.min.js",
"bower/angular-material/angular-m... | [
"paul.m.bailey@gmail.com"
] | paul.m.bailey@gmail.com |
9d85328b627b4bead32e985e75171910f9f68695 | bc441bb06b8948288f110af63feda4e798f30225 | /tuna_service_sdk/model/flowable/task_pb2.pyi | 2b98336f73bf9ece379abcac5b0f5da33b44b093 | [
"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 | 5,651 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
7827d84e2d0438ea72e1258939ca433c11b6154a | abe52a485b72b6bc54c3ce260a3e4e5fc8a2504f | /d20200721/test4_hw1.py | bd14295c7d999e136a64640f68bf4df9a11eed55 | [] | no_license | soli1101/python_workspace | e920b9589cd1a6a5ef064720400d44a6309249d9 | 607c7693bdf013fedf193d45de32aac6d48409a0 | refs/heads/master | 2022-12-26T16:19:32.413709 | 2020-09-29T08:59:20 | 2020-09-29T08:59:20 | 299,560,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | print('---HW1: 두 주사위의 합이 4가 되는 모든 경우의 수---')
for i in range(1,7):
for j in range(1,7):
if i+j == 4:
print("("+str(i)+","+str(j)+")")
print()
print('---HW2: 윤년인지 출력하는 프로그램 ---')
i = int(input("년도를 입력하시오"))
if i % 4 == 0 and i%100 or i%400==0 :
print(i, "는 윤년")
print('---HW3: 다음 함수를 출력하... | [
"soli1101@naver.com"
] | soli1101@naver.com |
4bcd270920cc5b30fd35baaf54e27ff587aadb07 | af3f05290df07743a1381da522719ba631e50720 | /tests/config_test_engine.py | 19cc6381252fdbbb23632bff4a10314edfbf072c | [
"Apache-2.0"
] | permissive | CyberFlameGO/PyRFC | 9b66756f05aa2271662938f9e8ede97a92f4ae79 | 4ad503c0c3999754c89d827484112257e87edb82 | refs/heads/main | 2023-08-28T07:34:20.570025 | 2021-10-19T11:19:37 | 2021-10-19T11:19:37 | 426,165,734 | 0 | 0 | Apache-2.0 | 2021-11-09T09:51:31 | 2021-11-09T09:25:26 | null | UTF-8 | Python | false | false | 651 | py | # SPDX-FileCopyrightText: 2013 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com>
#
# SPDX-License-Identifier: Apache-2.0
###########################
# test_engine.py setup
user_engine = user
passwd_engine = passwd
params_engine = {
"ashost": ashost,
"client": client,
"saprouter": saprouter,
"sysnr": sy... | [
"srdjan.boskovic@sap.com"
] | srdjan.boskovic@sap.com |
1794df7d1b9d850abce5728ab50b280d17da0f8d | cfc1492e5e0dfcbc3192407f81170193ca317020 | /Begin_anew/Syntax/indenting_example.py | d0072a3967557eb257ad2b78ecc5b3a9f5b95b26 | [] | no_license | CyborgVillager/Intro_Python_Oct_and_Forward_on | c6e62b41ea36469a4b17c1211ae1a622955f2c8e | 407c22954eb29316bad1c79ffcff5cfb28efd11c | refs/heads/master | 2023-01-11T14:16:47.290862 | 2020-11-07T14:33:20 | 2020-11-07T14:33:20 | 310,860,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py |
# indenting example
# Data
a = 4
b = 6
c = 8
d = 4
# Data to str
stra = str(a)
strb = str(b)
strc = str(c)
strd = str(d)
# Example list
def example0():
print("======Example0=======")
def example1():
print("======Example1=======")
def example2():
print("======Example2=======")
def example3():
print("... | [
"almawijonathan@gmail.com"
] | almawijonathan@gmail.com |
04751151836a3b3f0a15ae05ce3a6baec10e8549 | d3ab384d5bcdc55b244e23fa3d15ba45e948c74b | /dbentrust/madminanager.py | 342bfb9881f5e68b8b5637a2bc8f6bd992453164 | [] | no_license | Do3956/firefly | f496b792678c4563605ddf1640941bb09f36d0cc | 8317f8cb3d334bef8a76e4a7e702c6379660e12a | refs/heads/master | 2021-09-14T09:12:04.811115 | 2018-05-11T03:36:41 | 2018-05-11T03:36:41 | 104,327,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | #coding:utf8
'''
Created on 2013-5-22
@author: lan (www.9miao.com)
'''
from firefly.utils.singleton import Singleton
class MAdminManager:
__metaclass__ = Singleton
def __init__(self):
"""
"""
self.admins = {}
def registe(self,admin):
"""
... | [
"395614269@163.com"
] | 395614269@163.com |
545ff9170baf328879328f8894829ef8b6a37d83 | 6d095a6a4644360722c5c03748829f4b7557af84 | /as03gcc.py | 42ad6c357858a7bb387e2fb7de4257659fafdd3b | [] | no_license | netlabcode/s03 | 65b2cc5f3dc75aea9e6c1e342bc4b2c7e5047c0b | 671d00fff184080d25c6c1a98bd870c5d6f40aaa | refs/heads/main | 2023-04-01T11:07:26.815603 | 2021-04-10T14:34:04 | 2021-04-10T14:34:04 | 352,397,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,981 | py | import binascii
import _thread
import time
import socket
import psycopg2
HOST1 = '100.3.0.11'
HOST2 = '100.3.0.12'
HOST3 = '100.3.0.13'
HOST4 = '100.3.0.14'
HOST5 = '100.3.0.15'
HOST6 = '100.3.0.16'
RHOST = '131.180.165.21'
PORT2 = 994
PORTS2 = 8803
# Define a function for the thread
def serv... | [
"noreply@github.com"
] | netlabcode.noreply@github.com |
73db60402c5aaed292a119b1bf57b0d398f99fe9 | 1b75635973ee005d03cd23abfb3d85f81442d579 | /xmldirector/plonecore/tests/test_precondition_registry.py | 0a032ab0fbdbd4a95dabe17f6f64905a35ae07bb | [] | no_license | rishchiv/xmldirector.plonecore | 0e8c9128f74a97741fa145342338e986e9302d68 | d3d8e33bb24d6e0ed3cbddf63885d957c8d74b4f | refs/heads/master | 2021-05-30T03:07:35.277419 | 2015-10-25T09:55:24 | 2015-10-25T09:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,181 | py | # -*- coding: utf-8 -*-
################################################################
# xmldirector.plonecore
# (C) 2014, Andreas Jung, www.zopyx.com, Tuebingen, Germany
################################################################
import os
import unittest
from xmldirector.plonecore.browser.view_registry impo... | [
"yet@gmx.de"
] | yet@gmx.de |
7dd24963c64011ceb12755000a66a60242b1f8fc | fb8cbebdf034b2f478943752d5443afc82c6eef5 | /tuirer/venv/lib/python3.6/site-packages/jedi/evaluate/flow_analysis.py | 383dcc92af8a02ab4c56be34fbe7cefba3ba52c2 | [] | no_license | fariasjr/CitiTuirer | f64e0ec93ef088f8140bb0961d2ad4ed3b59448a | deb3f7a9c2d45b8a7f54639037f097b99abdac11 | refs/heads/master | 2020-03-24T05:10:36.261050 | 2018-08-01T20:24:30 | 2018-08-01T20:24:30 | 142,477,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,342 | py | from jedi.evaluate.recursion import execution_allowed
from jedi.parser_utils import (get_flow_branch_keyword, get_parent_scope,
is_scope)
class Status(object):
lookup_table = {}
def __init__(self, value, name):
self._value = value
self._name = name
Statu... | [
"jornadaciti@ug4c08.windows.cin.ufpe.br"
] | jornadaciti@ug4c08.windows.cin.ufpe.br |
0569759c6d978fe13684f1a583d02922a1a3b408 | e9f2d427b3c74c68b97321768e7d03949e7de62a | /codeforces/20.02.15.B.py | 5bbbf79f2d68c3615b4b4b017469724fe3613612 | [] | no_license | mark-ni/competitive-programming | ab84f0af5831b76bdb7f36c3ddd6f89b4be34fee | efe74f111f71a2a1293a46f65a5eef1298046c1a | refs/heads/master | 2023-03-20T00:02:32.030442 | 2021-03-09T01:09:59 | 2021-03-09T01:09:59 | 345,829,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | #from sys import stdin
#input = stdin.buffer.readline
n,m=map(int,input().split())
currWord = []
currWords = []
for i in range(n):
s = input()
flag = True
for word in currWords:
if s == word[::-1]:
currWord.append(word)
currWords.remove(word)
flag = False
... | [
"markni10423@gmail.com"
] | markni10423@gmail.com |
2dcfa6da0cf3d82cd33dc481d2ae482e754ebe2f | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_x86/source/sklearn/metrics/__init__.py | 84e7c98e29324f351a1ac677be2d3e742410ed8c | [
"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 | 5,486 | py | """
The :mod:`sklearn.metrics` module includes score functions, performance metrics
and pairwise metrics and distance computations.
"""
from ._ranking import auc
from ._ranking import average_precision_score
from ._ranking import coverage_error
from ._ranking import det_curve
from ._ranking import dcg_score
from ._ra... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
26ae4b266abaae71aea15af01491fccfad7c14c2 | 2deab79f1f8cb142b4fdf36cc5bdcf0f7f64087d | /pypb/__init__.py | bdb8b6df169df6cafdb904f666d4db214928767d | [] | no_license | parantapa/pypb | cf40a1f92cd70ae0aa13d6a6793a746960647ba7 | de86cf4b7a96dca6b6ddaa63f44ab613702615f2 | refs/heads/master | 2020-05-21T04:41:45.840624 | 2016-12-31T07:46:55 | 2016-12-31T07:46:55 | 8,334,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | """
Utility functions needed at multiple places.
"""
from __future__ import division, print_function
import os
import sys
import signal
from functools import wraps
# Standard exit signals not handled by Python directly
STD_EXIT_SIGNALS = [
signal.SIGINT,
signal.SIGQUIT,
signal.SIGHUP,
signal.SIGTERM... | [
"pb@parantapa.net"
] | pb@parantapa.net |
947e2079c8ee32a9af0ff27079c9bac05f2cb87b | da934e0010380fdc6894063540f61b0ebc2c9ded | /vendor/Twisted-10.0.0/doc/core/examples/simple.tac | 02b3f81e4c46b33566b1955ccb8bf2c48082851a | [
"MIT",
"Apache-2.0"
] | permissive | bopopescu/cc-2 | ed4f1dfe3c98f476ff619058d99855a16272d36b | 37444fb16b36743c439b0d6c3cac2347e0cc0a94 | refs/heads/master | 2022-11-23T03:57:12.255817 | 2014-10-02T06:10:46 | 2014-10-02T06:10:46 | 282,512,589 | 0 | 0 | Apache-2.0 | 2020-07-25T19:36:05 | 2020-07-25T19:36:05 | null | UTF-8 | Python | false | false | 1,203 | tac | # You can run this .tac file directly with:
# twistd -ny simple.tac
from twisted.application import service, internet
from twisted.protocols import wire
from twisted.internet import protocol
from twisted.python import util
application = service.Application('test')
s = service.IServiceCollection(application)
factor... | [
"anotherjesse@gmail.com"
] | anotherjesse@gmail.com |
5ef7bbaa535bbb7c4ad163a24666c99db5542a9b | af235d7a73c48146fae84c72e64a1da657872e42 | /FPN_Tensorflow_Rotation/libs/box_utils/nms_rotate.py | 644c75383045af5330c7826a49b2f45b2ace0164 | [
"MIT"
] | permissive | SJTU-Thinklab-Det/DOTA-DOAI | 8b39ae4b075cad13898a858b9f23ceec541cc1a2 | 9e193a9d6d2b7aed859d53d2db70c3f769776ff7 | refs/heads/master | 2023-03-17T05:36:31.745628 | 2023-03-08T11:47:52 | 2023-03-08T11:47:52 | 222,270,558 | 747 | 149 | MIT | 2021-09-22T05:19:00 | 2019-11-17T15:37:35 | Jupyter Notebook | UTF-8 | Python | false | false | 4,514 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import cv2
from libs.configs import cfgs
import tensorflow as tf
from libs.box_utils.rotate_polygon_nms import rotate_gpu_nms
def nms_rotate(decode_boxes, scores, i... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
574156dd4d87982cd561d4b00878fa4dd79a6376 | b18f92a6a41a3d83e77848460d4a3f17e4fe677a | /data_structures/heaps/2_get_child_nodes/solution/test_solution.py | 5b5318d2a1fd611d1ca8b985dfd01aec180c456e | [] | no_license | ByteAcademyCo/Exercises | de71b885a498ead8296e6107836f9a06ac399d4f | 8332d0473ab35ee1d2975b384afda45c77ef943d | refs/heads/master | 2022-05-25T23:01:59.466480 | 2022-03-14T13:12:10 | 2022-03-14T13:12:10 | 252,842,407 | 1 | 109 | null | 2022-03-14T13:12:11 | 2020-04-03T21:09:47 | Python | UTF-8 | Python | false | false | 263 | py | def test_solution():
from solution import get_child_nodes
assert get_child_nodes([2, 3, 4, 5, 10], 0) == [3, 4]
assert get_child_nodes([2, 3, 4, 5, 10], 3) == []
assert get_child_nodes([2, 3, 4, 5, 10, 11], 2) == [11]
assert get_child_nodes([], 2) == [] | [
"avelikevitch@gmail.com"
] | avelikevitch@gmail.com |
00b093f45059864c4c2e92657c374a5411d499c0 | 4c4785ed8f5fed43891872f69d01fa3bc1192136 | /01_Manipulating_DataFrames_with_Pandas/01_Indexing_DataFrame.py | 01b59773bd61a8d93604045b7f70d5ea7bb63a1d | [] | no_license | CodeInDna/Data_Scientist_With_Python | 6ed04534948fe692169b56c72b4021b32eb35751 | 9820f4ae232317cec4d13a3eb26e3a59ba98c31b | refs/heads/master | 2020-09-23T14:19:37.426778 | 2019-12-23T15:39:15 | 2019-12-23T15:39:15 | 225,519,493 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # A Simple DataFrame
import pandas as pd
df = pd.read_csv('../Datasets/01_Manipulating_DataFrames_with_Pandas/sales.csv', index_col='month')
print(df)
# eggs salt spam
# month
# Jan 47 12.0 17
# Feb 110 50.0 31
# Mar 221 89.0 72
# Apr 77 87.0 20
# May 132 NaN 52
# J... | [
"ykarelia323@gmail.com"
] | ykarelia323@gmail.com |
2c35ce4ca205aed622f49be8a7aa900f085ea35b | d3fa61d28cdc0c515ebd4f610122a9141cf69471 | /gui3/text_11.py | 7925fd887957ac2ad47a8e2096082f5473cddb7b | [] | no_license | iorilan/python-samples | 0bd2d66461bc5580de607c5e9984f713bc506c56 | 1db836d90731763e30a109c28948734727194232 | refs/heads/master | 2022-04-05T03:06:18.830332 | 2020-02-23T16:49:06 | 2020-02-23T16:49:06 | 213,014,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | from tkinter import *
class ScrolledText(Frame):
def __init__(self, parent=None, text='', file=None):
Frame.__init__(self, parent)
self.pack(expand=YES, fill=BOTH) # make me expandable
self.makewidgets()
self.settext(text, file)
def makewidgets(self):
sbar = Scrollbar(sel... | [
"iorilan@hotmail.com"
] | iorilan@hotmail.com |
e40b9c93a4fd4256d24113671eb6b0f56deab04c | 005d8a0b6ef8999dc7a7f4222932f9fa3c556304 | /problem027.py | 3f0262d20885f23ad228a2d6ab990de717eb2686 | [] | no_license | Roc-J/jianzhioffer | dbb3c7dd05b5ebf0437987f636970ede805a7450 | 0d52a08a52a2d6283a71569cbfc307cf57e54db2 | refs/heads/master | 2020-03-08T03:25:13.486779 | 2018-04-07T07:05:35 | 2018-04-07T07:05:35 | 127,890,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: qjk
'''
字符串的排列
按字典序是指不同排列的先后关系是从左到右逐个比较对应的数字的先后来决定,比如'ab','ba'来排序
先比较最左边的字母,'a'比'b'靠前,所以'ab'排在'ba'前面。使用sorted函数可以达到这个效果
'''
class Solution:
def Permutation(self, ss):
# write code here
if not ss:
return []
if len(ss) == 1... | [
"646481338@qq.com"
] | 646481338@qq.com |
cf87052163dbec86352772ae116e48147df8daa2 | 4a7da0c42da7829338d93ae660e0241f592e1690 | /dsmrreader/__init__.py | 7d0b8f6cffdd8f733f67254f7dc43f0f1655be2f | [] | no_license | meijjaa/dsmr-reader | 8592d2855999ba1e47d5eba8f622390f12be7cc4 | 7e4594774afcba8afd5dd5ab78c918184c4f8321 | refs/heads/master | 2021-04-24T23:06:38.658159 | 2017-12-30T09:52:58 | 2017-12-30T09:52:58 | 116,358,093 | 0 | 0 | null | 2018-01-05T07:51:46 | 2018-01-05T07:51:45 | null | UTF-8 | Python | false | false | 822 | py | """
Copyright (C) 2015/2016 Dennis Siemensma
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.
This prog... | [
"github@dennissiemensma.nl"
] | github@dennissiemensma.nl |
dbf5629492c4f864d47c90d96055af20a42c448e | c57ffce5c5987e947c94720444137c1c4beee7ce | /Binary Search Tree Insertion.py | 72262a44fbe5349c17418b4e12d991575040ac6e | [] | no_license | alankrit03/HackerRank_DataStructures | e42cf2109a10a61b0a26d0671ec753a11d2faf2e | fa19ee23321d8f1a4117276c4b027d54b5f19fc4 | refs/heads/master | 2021-01-14T18:38:48.291545 | 2020-07-19T06:14:55 | 2020-07-19T06:14:55 | 242,715,117 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | def insert(self, val):
# Enter you code here.
if not self.root:
self.root = Node(val)
root = self.root
while 1:
if root.info > val:
if root.left:
root = root.left
else:
root.left = Node(val)
break
elif root.i... | [
"alankritagarwal9@gmail.com"
] | alankritagarwal9@gmail.com |
957bdf1645e8879418f9821a77214d009da5f982 | c5b9f0fabffb6b2d13c6e350c8187a922709ac60 | /build/tiago_moveit_config/catkin_generated/generate_cached_setup.py | 270d882ea2ec009389471627fda46436206f6382 | [] | no_license | MohamedEhabHafez/Sorting_Aruco_Markers | cae079fdce4a14561f5e092051771d299b06e789 | 0f820921c9f42b39867565441ed6ea108663ef6c | refs/heads/master | 2020-12-09T02:43:00.731223 | 2020-01-15T17:31:29 | 2020-01-15T17:31:29 | 233,154,293 | 0 | 0 | null | 2020-10-13T18:46:44 | 2020-01-11T00:41:38 | Makefile | UTF-8 | Python | false | false | 1,373 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"mohamed@radiirobotics.com"
] | mohamed@radiirobotics.com |
4885dd3977ff294ccd4a36c0a2a746aca116814a | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /tools/grit/grit/format/c_format.py | 6d5d9e647b9d6fbbd35a476ea12afeb5f714d9c3 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"APSL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"MIT",
"Zlib"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 2,755 | py | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Formats as a .C file for compilation.
"""
import os
import re
import types
from grit import util
def _FormatHeader(root, output_dir):
"""Returns... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
93f3de28a0ace90fe33ea775de9f184ac7cb95c4 | 7338159a67480805a07115c029225be6a25d3530 | /sconscontrib/SCons/Tool/qt5/test/ts_qm/multisource/image/SConscript | 677bd357bbefc96e8008f1e51eeebfc4bf6d5d81 | [
"MIT"
] | permissive | SCons/scons-contrib | 0e2197a89d6bcff1c8651c3128b67ac4c3f49578 | f3b0100d3a628e4d18f496815903660a99489bae | refs/heads/master | 2023-02-18T21:08:12.503328 | 2023-02-08T22:04:36 | 2023-02-08T22:04:36 | 104,133,990 | 16 | 11 | MIT | 2022-12-23T19:55:49 | 2017-09-19T22:04:55 | Python | UTF-8 | Python | false | false | 133 | Import("qtEnv")
qtEnv.Ts5('my_en', Glob('*.cpp'))
qtEnv.Ts5('a','MyFile.cpp')
qtEnv.Ts5('b','bbb.cpp')
qtEnv.Qm5('my_en',['a','b'])
| [
"dl9obn@darc.de"
] | dl9obn@darc.de | |
115e7f68288416fb081ee8781542f0e018d03b69 | eadc22ca135f5fa4c095e3292f2a55d642b58b5a | /polymath/codegen/dnnweavergen/dnnweaver2/tensor.py | f0825ad31e67ea5805b127c2c7b8ce143c38025a | [
"Apache-2.0"
] | permissive | ZhuangzhuangWu/polymath | eb4b71f2e310a0c99b985935984aa396643bed46 | 4857df309a8aecf392fc8a1c7ec1fdfad3706426 | refs/heads/master | 2023-06-24T02:44:36.095451 | 2021-07-28T18:04:45 | 2021-07-28T18:04:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | from polymath.codegen.dnnweavergen.dnnweaver2.scalar.dtypes import FQDtype
import numpy as np
import math
class Tensor(object):
"""
Tensor class for computations
n-dimensional array
"""
def __init__(self, shape, name, data, dtype=FQDtype.FP32, trainable=False):
if isinstance(shape, int)... | [
"sean.kinzer@gmail.com"
] | sean.kinzer@gmail.com |
b746612690d4927743e0fdd51a6427907331106b | 523e065a50ef3374b9e8ebe7033d6d17afc7aa90 | /midcli/editor/noninteractive.py | df7e7bb67077d2e024f3453314746179091d032d | [] | no_license | truenas/midcli | b4bfd07046a070ceeaa356115777f9a4d20c2898 | bd817940376f93665b25e2c1ce7109b130b9cb67 | refs/heads/master | 2023-09-01T09:15:54.823487 | 2023-07-05T11:52:47 | 2023-07-05T11:52:47 | 184,088,159 | 15 | 3 | null | 2023-09-08T07:07:53 | 2019-04-29T14:37:41 | Python | UTF-8 | Python | false | false | 792 | py | # -*- coding=utf-8 -*-
import logging
import sys
from .base import Editor
from .utils import handle_yaml, YamlHandleError
logger = logging.getLogger(__name__)
__all__ = ["NonInteractiveEditor"]
class NonInteractiveEditor(Editor):
def __init__(self):
if sys.stdin.isatty():
self.available = F... | [
"themylogin@gmail.com"
] | themylogin@gmail.com |
76e78ef56eec63cebcd883542132798278528ac1 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1280975/snippet.py | c2535fa0cec76d79f59d05a0e02011936877fa1b | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 635 | py | __author__ = "Arun K Rajeevan (kra3)"
__copyright__ = "Copyright 2011-2012"
__license__ = "BSD"
__version__ = "2"
__email__ = "the1.arun@gmail.com"
__status__ = "Production"
import time
import ctypes
class POINT(ctypes.Structure):
_fields_ = [('x', ctypes.c_ulong), ('y', ctypes.c_ulong)]
u32 = ctypes.windll.... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
03a6867eaee1826f844df4fb48007d668d6a55de | e3c8f786d09e311d6ea1cab50edde040bf1ea988 | /Incident-Response/Tools/grr/grr/core/grr_response_core/lib/util/compat/yaml_test.py | ff1ff9766bd70cf02c16d4652401902925eaa212 | [
"Apache-2.0",
"MIT"
] | permissive | foss2cyber/Incident-Playbook | d1add8aec6e28a19e515754c6ce2e524d67f368e | a379a134c0c5af14df4ed2afa066c1626506b754 | refs/heads/main | 2023-06-07T09:16:27.876561 | 2021-07-07T03:48:54 | 2021-07-07T03:48:54 | 384,988,036 | 1 | 0 | MIT | 2021-07-11T15:45:31 | 2021-07-11T15:45:31 | null | UTF-8 | Python | false | false | 5,905 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import collections
import io
from typing import Text
from absl.testing import absltest
from grr_response_core.lib.util.compat import yaml # pylint: disable=g... | [
"a.songer@protonmail.com"
] | a.songer@protonmail.com |
5d914734f6da8beabdea217d500920c9a40dbdba | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/calendar_yeardays2calendar.py | affc849502c0a397782d2c9249f53e8dc789d50c | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # calendar_yeardays2calendar.py
import calendar
import pprint
cal = calendar.Calendar(calendar.MONDAY)
cal_data = cal.yeardays2calendar(2015, 3)
print('len(cal_data) :', len(cal_data))
top_months = cal_data[0]
print('len(top_months) :', len(top_months))
first_month = top_months[0]
print('len(first_month) ... | [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
34f27b74ee08a0d7d7674e91786658fc1714c586 | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Products/PageTemplates/tests/test_ptfile.py | 1311347935b6d2546f429f604473c703129fa383 | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,880 | py | """Tests of PageTemplateFile."""
import os, os.path
import tempfile
import unittest
import Zope2
import transaction
from Testing.makerequest import makerequest
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
class TypeSniffingTestCase(unittest.TestCase):
TEMPFILENAME = temp... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
261c2a788e00e86da717552d66389c691245d602 | 62179a165ec620ba967dbc20016e890978fbff50 | /tests/torch/test_models/ssd_vgg.py | 039d663e47ab941cbdde226b1d752123c3cb63f1 | [
"Apache-2.0"
] | permissive | openvinotoolkit/nncf | 91fcf153a96f85da166aacb7a70ca4941e4ba4a4 | c027c8b43c4865d46b8de01d8350dd338ec5a874 | refs/heads/develop | 2023-08-24T11:25:05.704499 | 2023-08-23T14:44:05 | 2023-08-23T14:44:05 | 263,687,600 | 558 | 157 | Apache-2.0 | 2023-09-14T17:06:41 | 2020-05-13T16:41:05 | Python | UTF-8 | Python | false | false | 6,992 | py | # Copyright (c) 2023 Intel Corporation
# 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 writ... | [
"noreply@github.com"
] | openvinotoolkit.noreply@github.com |
a5f67d4f0bc9d00fe056449363f909eef8b3746b | 79177703c1140b0e90db562448378cb44718a545 | /src/py/jupyter_graphql/schema/contents/nbformat/cells.py | 52dcec8411eb656cc0591add281ff6571a87b59c | [] | permissive | deathbeds/jupyter-graphql | d6c42c3ff32762d39ada2f7b4d180cc33013352c | cf80175ba3d6156326194139dd4b91fb1b46ba58 | refs/heads/master | 2020-03-31T11:28:51.163425 | 2019-01-08T04:36:42 | 2019-01-08T04:36:42 | 152,178,614 | 7 | 0 | BSD-3-Clause | 2019-04-10T05:03:03 | 2018-10-09T02:56:22 | Python | UTF-8 | Python | false | false | 3,913 | py | import graphene as G
class CellType(G.Enum):
code = "code"
markdown = "markdown"
raw = "raw"
class Cell(G.Interface):
source = G.String()
cell_type = G.Field(CellType)
@classmethod
def resolve_type(cls, it, info):
return CELL_TYPES[it["cell_type"]]
class CellMetaData(G.Interfa... | [
"nick.bollweg@gmail.com"
] | nick.bollweg@gmail.com |
1b5795bf9c238b0b0345388f0e872b44901602cb | da8adef15efbdacda32b19196b391f63d5026e3a | /SistemasInteligentes/Onitama/agent.py | fe03d45757e753be3a9dd9f974fe47b5599f358a | [] | no_license | rubcuadra/MachineLearning | 05da95c1f800e6acbce97f6ca825bd7a41d806a6 | aa13dd007a7954d50586cca6dd413a04db18ef77 | refs/heads/master | 2021-03-19T17:33:14.080691 | 2018-10-19T23:43:27 | 2018-10-19T23:43:27 | 100,544,903 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,717 | py | from board import OnitamaBoard
from movements import OnitamaCards
class BoardNode(object):
def __init__(self, board, player, movement=None):
super(BoardNode, self).__init__()
self.board = board
self.player = player
self.children = []
self.score ... | [
"rubcuadra@gmail.com"
] | rubcuadra@gmail.com |
74cfc85be20444f29fc47429713b31788634d68e | 7c9173875ba6e20a9fc705753a5c553891d01a79 | /Python趣味编程:从入门到人工智能/第4课_照猫画虎——剖析Python程序/示例程序/bingbao.py | 6c707e544254fd3fd3bf9956c29acca033fb9ccb | [] | no_license | zhy0313/children-python | 1df120930637b8bd320ab090ea784aab7b7cfed2 | 941e29d5f39092b02f8486a435e61c7ec2bdcdb6 | refs/heads/master | 2021-01-07T00:59:31.332746 | 2020-02-10T11:45:52 | 2020-02-10T11:45:52 | 241,533,568 | 0 | 1 | null | 2020-02-19T04:36:38 | 2020-02-19T04:36:37 | null | UTF-8 | Python | false | false | 313 | py | # 验证冰雹猜想
def bingbao(n):
arr.append(n)
while n != 1:
if n % 2 == 0:
n = n // 2
else:
n = 3 * n + 1
arr.append(n)
return
if __name__ == '__main__':
arr = []
n = int(input('请输入一个正整数:'))
bingbao(n)
print(arr)
| [
"baixuelin12hit@outlook.com"
] | baixuelin12hit@outlook.com |
9b3e279430d1de79dc3b42f4ab647c675feea7a4 | 101abd4b1c615ea87087f093fa3bdc292cd23c70 | /tests/return-inside-generator.t | 2b2fb5cb0e9a02e6cfe77cb907e45b6560929c4e | [
"MIT"
] | permissive | jwilk/pydiatra | 0bd40acb9b642730d6b639f03ef7a67765ae62d8 | 2eb53012ff90c6475a15011ac5b4006aa801a1d0 | refs/heads/master | 2023-08-15T06:37:02.823444 | 2023-08-10T07:17:10 | 2023-08-10T07:17:10 | 58,876,803 | 24 | 4 | null | null | null | null | UTF-8 | Python | false | false | 144 | t | def eggs():
yield
return 'ham'
## [<< 3.3] 3: syntax-error 'return' with argument inside generator
# vim:ts=4 sts=4 sw=4 et ft=python
| [
"jwilk@jwilk.net"
] | jwilk@jwilk.net |
f9b18ffad4e9757bcd468a4edde39ab172b4c0d3 | dd1ff9175109b075b0c0701e28479e22a83e2b9e | /app/migrations/0047_auto_20191006_0407.py | 510b791e1a925aacb230f7a24344653fa2409344 | [] | no_license | sotengboy/ojopisowifi_main | 7bda515b3eb122153e716177e139cea7b80c0e24 | cdbecd8d50408c10bdecf1439ee7c78fbbdf01d2 | refs/heads/master | 2023-04-08T16:53:27.633895 | 2020-12-17T14:30:11 | 2020-12-17T14:30:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # Generated by Django 2.1.7 on 2019-10-05 20:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0046_vouchers'),
]
operations = [
migrations.AlterField(
model_name='vouchers',
name='Voucher_create_date_tim... | [
"alinoclyde.juan24@gmail.com"
] | alinoclyde.juan24@gmail.com |
b745efa40a931ba538afe5ead9daa1a1936c56a3 | e712f9d9aedb769f9e43824addda19798951b620 | /source/accounts/models.py | 17a909f034c18794cf881d71e31aaee87d442587 | [] | no_license | alisher1989/alishers_reviewer | 11db61995db95b9829b1485812086f93565be2c8 | 690f93a0399c762e44ab25e3f73141ab0746d950 | refs/heads/master | 2023-05-02T13:14:07.580486 | 2019-11-16T16:57:08 | 2019-11-16T16:57:08 | 222,076,298 | 0 | 0 | null | 2023-04-21T20:40:34 | 2019-11-16T09:30:40 | Python | UTF-8 | Python | false | false | 1,047 | py | from django.db import models
from uuid import uuid4
from django.contrib.auth.models import User
class Token(models.Model):
token = models.UUIDField(verbose_name='token', default=uuid4)
user = models.ForeignKey('auth.User', related_name='registration_tokens',
verbose_name='User', o... | [
"shera.rashiduulu@gmail.com"
] | shera.rashiduulu@gmail.com |
7b4f72d081ae5abb95f40de2f52e381ac4315aa4 | bc72bf1b54065ba737de094dca5dc11327cf4db1 | /nengo_spinnaker/__init__.py | f37d406a2ab18a31ee2aa2ab5f13d60177310855 | [
"MIT"
] | permissive | SpiNNakerManchester/nengo_spinnaker | cd50feeeccec7c195e4430f6c65777ab1c38202f | 147e2b3d6c0965259d6897f177f23e5c99b184f9 | refs/heads/master | 2020-03-21T20:21:13.292948 | 2018-08-29T14:23:37 | 2018-08-29T14:23:37 | 139,001,771 | 0 | 0 | MIT | 2018-06-28T10:12:18 | 2018-06-28T10:12:17 | null | UTF-8 | Python | false | false | 278 | py | """
Nengo SpiNNaker
===============
nengo_spinnaker provides a means of running models built using Nengo
(https://github.com/nengo/nengo) on the SpiNNaker
(http://apt.cs.manchester.ac.uk) platform.
"""
from .config import add_spinnaker_params
from .simulator import Simulator
| [
"andrew.mundy@ieee.org"
] | andrew.mundy@ieee.org |
83f2064c4975341867fee317114dc41c68f546d4 | c9a9d67d38427175b260b4682257506e784f4415 | /opensanctions/core/dataset.py | 258f3a6270686822f12c2c2ef703452f86489dd5 | [
"MIT"
] | permissive | TheophileDiot/opensanctions | b0a2d827ec230e2b8a0ce54169a3771f25649f27 | 11582b0333cf0ac911a5ae795b06d0559db4a62a | refs/heads/master | 2023-05-29T12:34:30.268456 | 2021-03-23T14:34:29 | 2021-03-23T14:34:29 | 316,204,968 | 1 | 0 | MIT | 2021-03-23T14:34:30 | 2020-11-26T11:06:43 | null | UTF-8 | Python | false | false | 2,597 | py | import yaml
from banal import ensure_list
from ftmstore import get_dataset as get_store
from opensanctions import settings
class Dataset(object):
"""A dataset is a unit of execution of crawlers, and a grouping of entities.
There are two types: sources (which relate to a specific crawlers), and
collection... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
4746aaf22571794e76d963b48360ce087569db06 | 2fb0af0a30e3133ef4c5e649acd3f9911430062c | /src/toontown/toon/DistributedNPCFishermanAI.py | 64a84454a6e0d035280c52f88be8204250aa9c10 | [] | no_license | Teku16/Toontown-Crystal-Master | 4c01c0515f34a0e133441d2d1e9f9156ac267696 | 77a9345d52caa350ee0b1c7ad2b7461a3d6ed830 | refs/heads/master | 2020-05-20T06:02:58.106504 | 2015-07-25T07:23:59 | 2015-07-25T07:23:59 | 41,053,558 | 0 | 1 | null | 2015-08-19T18:51:11 | 2015-08-19T18:51:11 | null | UTF-8 | Python | false | false | 3,638 | py | from otp.ai.AIBaseGlobal import *
from pandac.PandaModules import *
from DistributedNPCToonBaseAI import *
from toontown.fishing import FishGlobals
from toontown.toonbase import TTLocalizer
from toontown.fishing import FishGlobals
from direct.task import Task
class DistributedNPCFishermanAI(DistributedNPCToonBaseAI):
... | [
"vincentandrea15k@gmail.com"
] | vincentandrea15k@gmail.com |
0d7ab8c67021c47cfd907a6dbe266c22e8592e47 | 57ae5bfbb24ba5fec90c9b3ecf1e15f06f1546ee | /5-12-1.py | 6fc78e76130400c5a2d8fc2626fca651b15c6cd6 | [] | no_license | cjjhust/python_datastucture | f9104f1d5cae2df6436f56d4d3eaa212e6045943 | a222bbe4bfc145ee11f73676c8f033f451d45f78 | refs/heads/master | 2022-07-03T19:53:07.066387 | 2020-05-15T08:06:21 | 2020-05-15T08:06:21 | 260,272,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 10 17:03:30 2018
@author: CJJ
"""
# 判断字符串中是否有相同的字符
def isDup(strs):
lens=len(strs)
i=0
while i<lens:
j=i+1
while j<lens:
if list(strs)[j] ==list(strs)[i]:
return True
j +=1
i +=1
return... | [
"44698055@qq.com"
] | 44698055@qq.com |
474055ccac2bd12bd0bf3626328415fa2bbc7c13 | a6fae33cdf3d3cb0b0d458c2825a8d8cc010cd25 | /l3/z2/.history/population_20200522200835.py | 9d684fca30027ce9ef452ff906ed4c04072d8216 | [] | no_license | Qabrix/optimization_amh | 12aab7c7980b38812ec38b7e494e82452a4176b4 | 6a4f5b897a4bef25f6e2acf535ba20ace7351689 | refs/heads/main | 2022-12-28T10:57:00.064130 | 2020-10-17T22:57:27 | 2020-10-17T22:57:27 | 304,983,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,550 | py | import random
import numpy as np
from utils import decision
class Inhabitant:
def __init__(self, gene, value=0):
self.gene = gene
self.value = 0
def __iter__(self):
for char in self.gene:
yield char
def __len__(self):
return len(self.gene)
def __getitem__... | [
"kubabalicki@gmail.com"
] | kubabalicki@gmail.com |
d5908c6ab74e57da4defcefa3bd0be5cf88d6fbf | 4649b99b76c393329e959f67996711c8f8b43c41 | /superset/models/reports.py | 6ed769dd49400f2ea914962fcc03c61059cbd580 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | bioinformatics-ua/incubator-superset | e22a991fdec8a1cc14d6a59b98ff2fded416c28a | 7c6d6f47bf71dce15e049f37fe82076bf7cb9c63 | refs/heads/master | 2023-02-12T15:00:26.625679 | 2021-11-02T20:17:29 | 2021-11-02T20:17:29 | 197,569,243 | 1 | 3 | Apache-2.0 | 2023-01-27T04:10:06 | 2019-07-18T10:53:13 | Python | UTF-8 | Python | false | false | 6,543 | 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... | [
"noreply@github.com"
] | bioinformatics-ua.noreply@github.com |
9074c598154b0f9328d4dc8487076b2319b90b9c | 9f387c703dbf4d970d0259424c7b299108c369f5 | /dd_sdk_1_0/dd_sdk_1_0/models/vdisk_stimg_create.py | 447d718bd2b6c05489d232768bfdc02f07c17197 | [] | no_license | gcezaralmeida/datadomain_sdk_python | c989e6846bae9435c523ab09e230fc12d020f7f1 | e102ec85cea5d888c8329626892347571832e079 | refs/heads/main | 2023-08-23T22:42:47.083754 | 2021-10-25T21:52:49 | 2021-10-25T21:52:49 | 370,805,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,324 | py | # coding: utf-8
"""
DataDomain Rest API Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # no... | [
"root@s6006st157.petrobras.biz"
] | root@s6006st157.petrobras.biz |
6725b1e1c837a73bb5d76aebd675fb8dad6be85d | 6ac2c27121d965babbb4bcbc7c479c26bf60bdf5 | /tests/node/Other.py | fcd775b1b2bbc511efe73bd1ec82115dd5938e2c | [
"MIT"
] | permissive | Gawaboumga/PyMatex | 5a2e18c3e17d3b76e814492f7e2ca63a57d720e9 | 3ccc0aa23211a064aa31a9b509b108cd606a4992 | refs/heads/master | 2020-03-28T01:40:32.341723 | 2018-12-20T13:49:12 | 2018-12-20T13:49:12 | 147,521,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | from tests import BaseTest
from pymatex.node import *
class OtherTests(BaseTest.BaseTest):
def test_read_zeta(self):
ast = self.parse(r'\frac{1}{1 - 2^{1-s}} \sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^s}')
one = Constant('1')
s = Variable('s')
n = Variable('n')
self.assertEq... | [
"yourihubaut@hotmail.com"
] | yourihubaut@hotmail.com |
ab2ce7468bc9e9e89ebe481921858592a4fbd83a | 9625f4e5ccc3d84d1accd7a97b54606784b75b71 | /ld_ebutuoy/rotcartxe/amagnuh.py | d320d2f586fd285e3de24f5ec668f2d8b0ce72f9 | [] | no_license | apfeltee/ld-ebutuoy | cdf11206a24532e6bc0a8c26cb7bfd83c02d140f | d7264979a9f9730d6e5ee6672af1e28eb17df8c5 | refs/heads/master | 2022-12-31T18:24:46.529435 | 2020-10-26T02:46:20 | 2020-10-26T02:46:20 | 307,234,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,803 | py | 8-ftu :gnidoc #
slaretil_edocinu tropmi __erutuf__ morf
rotcartxEofnI tropmi nommoc. morf
( tropmi slitu.. morf
,enon_ro_tni
,atadtsop_edocnelru
)
:)rotcartxEofnI(EIamagnuH ssalc
)x?('''r = LRU_DILAV_
//:?sptth
/moc.\amagnuh?).\www:?(
:?( ... | [
"root@localhost"
] | root@localhost |
28e8d7a6333d3a4a85c39514c40ab3a7ebf0142a | 878cf106530a8227f131693c6bf20fd0d7ac8cfa | /tests/test_models.py | bd0eb87d79fbd63aa16a06d3d92f2e2ce0162a83 | [] | no_license | aodag/glossaria | 78985e427769cd2f060f5bae70fbed9ed8f48105 | 535d32a0372fb7b70d36af6792203684a5116db0 | refs/heads/master | 2020-04-23T01:29:43.777971 | 2019-02-17T11:08:24 | 2019-02-17T11:08:24 | 170,814,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | def test_it():
from glossaria.models import Project, Glossary
p = Project(name="testing")
g = Glossary(project=p, name="testing-word", description="this is test")
assert g.project == p
assert g in p.glossaries
| [
"aodagx@gmail.com"
] | aodagx@gmail.com |
2da7b51908c1a339f3d3ab14fdc96738f27770dc | bba8d21052c8fa0e6f4be490b9e091bf5bd754cc | /6th-chapter/5.py | 36479f65ae4ebf9d63a4f916828e36c9b36d42aa | [] | no_license | binoytv9/Think-Python-by-Allen-B-Downey--Exercises | cd8250753d2377a2ff00077b2eb98a10496e38e8 | b4ed0d5c758014d70cf2db1dac24af1175bb17c6 | refs/heads/master | 2021-01-01T05:40:43.633619 | 2014-11-29T18:04:02 | 2014-11-29T18:04:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | def ack(m,n):
if m==0:
return n+1
elif m>0 and n==0:
return ack(m-1,1)
elif m>0 and n>0:
return ack(m-1,ack(m,n-1))
else:
print "Ackermann function is defined only for positive integer numbers!!!"
print ack(-1,4)
| [
"binoytv9@gmail.com"
] | binoytv9@gmail.com |
e95fd8b4139e004f8da3240ef08a94c3c8504d3f | febf4e7c6b65f1b5e2953c14bb4ec3967dac3239 | /search_single_spectrum/tools/search_single_spectrum/trace_to_single_file.py | de6b6b0e7a7238412df0a6f2f205dba9dd2ee0b9 | [] | no_license | judechang/GNPS_Workflows | 581eef8b6658bc51916c515410f0a7cb8857dd24 | f57fd601dc872feb47f2d90066d2bfb407e60bb4 | refs/heads/master | 2020-06-29T20:51:18.234765 | 2019-07-29T17:46:34 | 2019-07-29T17:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,960 | py | #!/usr/bin/python
import sys
import getopt
import os
import json
import requests
import ming_fileio_library
import ming_gnps_library
import ming_proteosafe_library
def get_metadata_information_per_filename(filename):
"""replacing spectrum with ccms_peak"""
filename = filename.replace("/spectrum/", "/ccms_pea... | [
"mwang87@gmail.com"
] | mwang87@gmail.com |
a432f5346749f7b0e299e6fe32a01241e654405b | d4228b354e5efcdf54c2f848fe9884ec91a34949 | /models/dto/LimitModifier.py | 50c8ab2b8d7f69562ff775e345774cc4d0c2a989 | [
"MIT"
] | permissive | muhammetbolat/pythondataintegrator | 7c2a11feb345d32fef87c6f2c7ca3a73e1ac67d4 | 5b274db8d39ca1340d535a500f04f6e734f1d54d | refs/heads/main | 2023-03-06T04:35:11.279419 | 2021-02-22T21:08:14 | 2021-02-22T21:08:14 | 341,704,174 | 0 | 0 | MIT | 2021-02-23T22:09:42 | 2021-02-23T22:09:42 | null | UTF-8 | Python | false | false | 371 | py | from infrastructor.multi_processing.ParallelMultiProcessing import ProcessBaseData
class LimitModifier(ProcessBaseData):
def __init__(self,
Id: int = None,
TopLimit: int = None,
SubLimit: int = None,
):
super().__init__(Id)
self.S... | [
"ahmetcagriakca@gmail.com"
] | ahmetcagriakca@gmail.com |
dbcff33e8c2ca2c9f62158a0bf039de1f91e2a1d | a6ed876ae76a5090bcd2a4977a7dd40dd4c469a2 | /rsa_demo/app/forms.py | 45c064d0dfd0fe78f2ae6705a1e636119d95f20a | [
"MIT"
] | permissive | AlexHg/cryptography_escom | 2079b98cf8db08b0013d49d30f64c8ecd78f33a8 | 67b619d8e59687e8ca42ce355458000415b0111d | refs/heads/master | 2020-04-08T05:57:17.910937 | 2014-05-27T04:51:11 | 2014-05-27T04:51:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from flask.ext.wtf import Form
from wtforms import StringField, BooleanField, TextField, TextAreaField
from wtforms.validators import Required, URL
class EncryptForm(Form):
e = StringField('e')
n = StringField('n')
url = StringField('URL public key in b64')
from_url = BooleanField('PubKey Base64', def... | [
"henocdz@gmail.com"
] | henocdz@gmail.com |
4b81fa63e905fe2e71205dacc75836e64a9b3cbf | 5b95f379a83f413e1cbc5b412d4e78d4cc0d0608 | /test/test_cluster_help.py | 6f1eeea1be640f523afb5fc7828947e22a2bd23e | [] | no_license | zhoushuke/argocd-client | ff43f2c4fbe5e231ad7ef8f5c5a2454ed85911b2 | a6c4ff268a63ee6715f9f837b9225b798aa6bde2 | refs/heads/master | 2022-12-27T15:19:24.263169 | 2020-09-24T16:08:53 | 2020-09-24T16:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # coding: utf-8
"""
Consolidate Services
Description of all APIs # noqa: E501
The version of the OpenAPI document: version not set
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import argocd_client
from argocd_client.model... | [
"ribeiro.rodrigo1989@gmail.com"
] | ribeiro.rodrigo1989@gmail.com |
964e42c543eab01bedbbcc49dba8225a9f199bd4 | 82eaaf696c8062664a1fb1b0d996ca6ee10c9930 | /learn_algoritms_bot/tasks.py | b3d96042822696d1f3208b090ab7af1fb9b1d839 | [] | no_license | AktanKasymaliev/django-tgbot-algoritms | deba72dd502b529ad50e81436116f893fabd46bd | b0ca186c95c7f70d68f814831b474fbc940ddedc | refs/heads/main | 2023-07-16T08:33:45.275389 | 2021-09-07T14:43:32 | 2021-09-07T14:43:32 | 392,641,157 | 0 | 0 | null | 2021-09-07T14:39:28 | 2021-08-04T10:11:57 | Python | UTF-8 | Python | false | false | 847 | py | import json
from typing import Text
import requests
from celery import shared_task
from datetime import datetime
from memo.models import Review, TaskToMemorize
from config.settings import MESSAGES_TO_SEND
from learn_algoritms_bot.credentials import API_URL
from .bot import bot
from .processors import inline_kb
@shar... | [
"aktan.kasymaliev@icloud.com"
] | aktan.kasymaliev@icloud.com |
3fdb7b83e7e147729adbd374b35acf929fdf7312 | 2ca3cbbcb55512712d25a72e9f475e24e6bf7de6 | /shop/models.py | d0a4c2ff35f4e4cf7acb97ae7801d19a61fbcac9 | [
"MIT"
] | permissive | MahmudulHassan5809/Full-Featured-OnlineShop-APP-Django | 25c9f0b4a062f3079c232e6474dcf9d3ac4d9d5a | 5e61c0863e4f5444cd3905c6673a82164cfcf8ed | refs/heads/master | 2020-04-24T16:50:10.975867 | 2019-02-22T19:32:54 | 2019-02-22T19:32:54 | 172,123,604 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class Category(models.Model):
name = models.CharField( max_length=200,db_index=True)
slug = models.SlugField(max_length=200,unique=True)
class Meta:
ordering = ('name',)
verbose_name='category'
verbose_name_plural = 'cate... | [
"mahmudul.hassan240@gmail.com"
] | mahmudul.hassan240@gmail.com |
0e8ea36e9d83abae209a76aad4664bd25f907e85 | 6fe5fae54af9cee2e9de356dd149b7cfe1ca112a | /examples/handler/publisher_methods.py | 95a2946ed58161ab59d06aa44f4eabdae8b8e514 | [] | no_license | GrahamDumpleton-abandoned/vampire | 181b03a53b62f3f53bdf83fb3d4305ef146d3526 | bdcb2d25105ca95fcbda1afa16c4d9d681c664f6 | refs/heads/master | 2021-01-05T11:26:25.908716 | 2010-07-11T21:24:07 | 2010-07-11T21:24:07 | 241,008,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import vampire
class _Object:
def __init__(self):
self.value1 = "value1"
def method1(self):
return "method1()"
def method2(self,req):
req.content_type = "text/plain"
req.send_http_header()
req.write("method2()")
def __call__(self):
return "__call__()"
_object = _Object()
handler =... | [
"devnull@localhost"
] | devnull@localhost |
5c46ae87923edd36e9deb11afe900c0d3a15f9a8 | 0cf269af0e6f8266c26b3bc68e57368e8c3d9edb | /src/outpost/django/thesis/migrations/0001_initial.py | bb88e41ce878cefdc9727f8b42ba4e4535ce03f2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | medunigraz/outpost.django.thesis | c1518aa516d2177b0cacf381432bcdde41f2b5e1 | 1f0dbaa6edb6d91216d9bd97c79ee8b3bbc153cc | refs/heads/master | 2021-09-25T16:47:59.469921 | 2020-08-04T19:16:07 | 2020-08-04T19:16:07 | 184,580,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,664 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-06 12:33
from __future__ import unicode_literals
from django.db import migrations
from django.conf import settings
class Migration(migrations.Migration):
forward = [
"""
CREATE SCHEMA IF NOT EXISTS thesis;
""",
"""
... | [
"michael@fladi.at"
] | michael@fladi.at |
36c7c339ab0ec0a089e0fbee72d89c2f222df335 | 91b051b7a8d837033761cc10d69a6e47c64fd600 | /ptah/manage/tests/test_layout.py | 65ea5e26b4589054c7f172d7b69739e7b606320f | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | blaflamme/ptah | f315c9f0de9b6fc56904589fe701435b971f6a51 | 32497151e0556b84d47a146499dfe1bcb0ab02db | refs/heads/master | 2021-01-18T12:15:02.895925 | 2011-11-02T03:00:30 | 2011-11-02T03:00:30 | 2,692,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | import ptah
from pyramid.testing import DummyRequest
from pyramid.httpexceptions import HTTPNotFound
from base import Base
class TestLayoutPreview(Base):
def setUp(self):
self._setup_pyramid()
def test_layout_preview_notfound(self):
from ptah.manage.layout import LayoutPreview
requ... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
9ca75b651e55eb9dc3763816382db096f7eab4a6 | 79cd7118917561ab5b8d25f04143e0975578b74f | /tests/test_data_utils/test_du_image.py | 387f552c417d1360f3e99b9614300a118adee00e | [
"Apache-2.0",
"MIT"
] | permissive | jrzaurin/pytorch-widedeep | aac80263ba8e94d36b41fb1f47181a66471d7594 | 74f1ab6feb2e231fdb8c10478638d9e8d5cf3a47 | refs/heads/master | 2023-09-06T06:41:41.800801 | 2023-09-04T15:32:38 | 2023-09-04T15:32:38 | 107,763,164 | 1,036 | 124 | Apache-2.0 | 2023-09-04T15:32:39 | 2017-10-21T08:11:44 | Python | UTF-8 | Python | false | false | 2,216 | py | import os
import cv2
import numpy as np
import pandas as pd
import pytest
from sklearn.exceptions import NotFittedError
from pytorch_widedeep.utils import SimplePreprocessor, AspectAwarePreprocessor
from pytorch_widedeep.preprocessing import ImagePreprocessor
full_path = os.path.realpath(__file__)
path = os.path.spl... | [
"jrzaurin@gmail.com"
] | jrzaurin@gmail.com |
957f52da8530dd8743fedd357bd9062d592333df | e76c8b127ae58c5d3b5d22c069719a0343ea8302 | /recurrent_neural_network_example_test.py | ae2eadd34067742d918bd0c2ef77091e6f90a836 | [] | no_license | janFrancoo/TensorFlow-Tutorials | 18f3479fc647db3cbdb9fb9d5c0b9a67be804642 | b34dbf903d2f5ff7bde6fb279fef6d7e2004a3bf | refs/heads/master | 2020-07-23T02:01:14.940932 | 2019-10-26T08:41:23 | 2019-10-26T08:41:23 | 207,410,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | import numpy as np
import pandas as pd
import tensorflow as tf
import matplotlib.pyplot as plt
from sklearn.preprocessing import MinMaxScaler
data = pd.read_csv('monthly-milk-production-pounds.csv', index_col='Month')
data.index = pd.to_datetime(data.index)
train_data = data.head(156)
test_data = data.tail(12)
scl = M... | [
"noreply@github.com"
] | janFrancoo.noreply@github.com |
760377de1c00cce09b89873815e6ba6c2b1c9f85 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/org_apache_sling_commons_html_internal_tagsoup_html_parser_info.py | 7a8c2cbec50ffbacf19406eecff2df26698b7b22 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 5,250 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.org_apache_sling_commons_html_internal_tagsoup_html_parser_properties import OrgApacheSli... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
3d7d99d7b28fdf2c2f155cd6b1adf1cc371cc147 | f9a3feb980a975799ff83a38642f3b9ed55709e9 | /lecon_sept/lucky_ticket.py | 491c8aaa919a4e9a36dfb1e93d91d68415c95cf6 | [] | no_license | citroen8897/Python_basic_hw | b06c0239457041f9fa84ad985cf7cd76ceb8b674 | 6d5efff5a22e661bbe28ce2eaa22cdb04eb2396c | refs/heads/main | 2023-03-07T02:07:16.754087 | 2021-01-31T11:11:32 | 2021-01-31T11:11:32 | 325,802,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | def is_lucky(ticket_num):
# Вариант 1 (9 строк)
# list_1 = [int(i) for i in str(ticket_num)]
# n = m = 0
# for a in range(len(list_1) // 2):
# n += list_1.pop(0)
# m += list_1.pop(-1)
# if n == m:
# return True
# else:
# return False
# Вариант 2 (7 строк)
... | [
"citroen8897@gmail.com"
] | citroen8897@gmail.com |
e39279c08865189e99d2a1247b82c0a2160ad414 | 1228cfbe329506440b31828656b86b03dbfbf0a5 | /example/usermanagement/serve_aiohttp_marshmallow.py | f6e9802d4e02fad3a01a4d8a96a8a4207b0e3aa9 | [
"MIT"
] | permissive | algoo/hapic | 9a43943309f70492465c44fc5b5688ed9ac45507 | e44ebce630b1681dfd8b76a2eb8ddafd03d0481f | refs/heads/develop | 2023-04-02T23:46:09.658919 | 2023-03-21T10:38:27 | 2023-03-21T10:38:27 | 106,427,356 | 20 | 7 | MIT | 2022-08-31T12:33:33 | 2017-10-10T14:20:44 | Python | UTF-8 | Python | false | false | 5,560 | py | # -*- coding: utf-8 -*-
from datetime import datetime
import json
import time
from aiohttp import web
from aiohttp.web_request import Request
from example.usermanagement.schema_marshmallow import AboutSchema
from example.usermanagement.schema_marshmallow import NoContentSchema
from example.usermanagement.schema_mars... | [
"guenael.muller@algoo.fr"
] | guenael.muller@algoo.fr |
f31dbbb77006f888b40c5ceff9c1f9b2852835fb | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merra882/670-tideGauge.py | 9a39418ebd8625507322296b656d969638c1cf8f | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a multiple
linear regression model by using the KFOLD method
@author: Michael Tadesse
"""
import os
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
from datetime import date... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
11dadbb6ebe13eff66c22ccf647ec424b29ce13a | 17b7f61b9b3596147d60d3e261cfeceeb207788d | /current/old python docs/my_script1.py | 29e4e9c4597375177430078645d0b99f060d6be7 | [] | no_license | capybaralet/current | 9db25b0bfd99cee83c8374c159db8cdff611787d | db6c0871665cbb886f07646062ecebfd29227681 | refs/heads/master | 2016-09-06T08:14:35.921635 | 2013-06-07T23:39:27 | 2013-06-07T23:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # This is a script to train Denoising Autoenconders with a range of hyper-parameters
# on patch-pair data extracted from images, save the trained models, and plot example
# input/reconstruction pairs.
#
# Currently, we are using CIFAR-10 for the datset, but we will change this to using face data.
#
# This script will... | [
"davidscottkrueger@gmail.com"
] | davidscottkrueger@gmail.com |
384df48bd013e95ef58f8b48ab77a0d64890f2e1 | a54d5a5ae5ba352963f1166a29e1bb6c867157ab | /python/inclusive_list_ranges.py | 31780bce3833aa40345d454a28b5eac2d34fb5fc | [] | no_license | alephist/edabit-coding-challenges | 06f573e90ffbd13bc54ecbdaa8e6a225aa44f5d8 | 35f1fc84848fc44e184aae1ae231a36319c1c81e | refs/heads/main | 2023-07-30T22:39:37.468756 | 2021-09-18T07:47:02 | 2021-09-18T07:47:02 | 341,467,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
Inclusive List Ranges
Write a function that, given the start start_num and end end_num values, return a list containing all the numbers inclusive to that range.
https://edabit.com/challenge/bHTb8p5nybCrjFPze
"""
from typing import List
def inclusive_list(start_num: int, end_num: int) -> List[int]:
return li... | [
"justin.necesito@gmail.com"
] | justin.necesito@gmail.com |
e3d839bbab830316785594870929e332fd7119d3 | ecf9902d67a65563bf5014d3d2693fc44b610fb8 | /P933-CousinsInBinaryTree.py | a541fcfd961f1d27456de8b478dfc3a17fe80f3a | [] | no_license | hkmamike/leetcode | 18956c0ecefe9c315d45b67d9a12625ea342cc00 | cb4fa5ce108e4f4cedec4a3c28d3bb2f980e3831 | refs/heads/master | 2021-06-13T16:36:21.732382 | 2019-09-15T19:26:37 | 2019-09-15T19:26:37 | 133,134,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def isCousins(self, root: 'TreeNode', x: 'int', y: 'int') -> 'bool':
self.parents = []
def dfs(node, x, y, depth... | [
"mikebrianleung@gmail.com"
] | mikebrianleung@gmail.com |
b057db67015217b25dd8645e182936235724a9e3 | bde8e24b07bb3a403fa40a3c2aabe3f8d4466272 | /question90-99/question93.py | 543a93cb4f0f4f0ea40c25df59b3374c6288297c | [] | no_license | refine-P/NLP100Knock | fda6680b6d72faae9d8805829fa7d9cb9ab379d6 | ed29a3a3d80820ef074247f79253c7ef97500b55 | refs/heads/master | 2021-07-06T15:55:29.512827 | 2019-04-07T16:37:34 | 2019-04-07T16:37:34 | 179,993,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | #coding:utf-8
from sklearn.metrics import accuracy_score
if __name__ == "__main__":
y_true = []
y_pred = []
with open("analogy_result_family.txt", encoding='utf-8') as f:
for line in f:
result = line.split()
y_true.append(result[3])
y_pred.append(result[4])
print(accuracy_score(y_true, y_pred))
| [
"32488002+refine-P@users.noreply.github.com"
] | 32488002+refine-P@users.noreply.github.com |
faf38633cc24dcc092f864a90e33f3008f146f69 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/aio/_vendor.py | ad73b146350a613776fde037e3409271cdad749b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,084 | py | # --------------------------------------------------------------------------
# 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 cause incorrect... | [
"noreply@github.com"
] | Azure.noreply@github.com |
bf5ae4848091b42af71e0c4598d072c864f3f7ff | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Simulation/Tests/DigitizationTests/python/DigitizationTestsConfigDb.py | 3f440b76a0e7e74acf6c926089c3b3b05ea40064 | [] | 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 | 603 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.CfgGetter import addTool
addTool("DigitizationTests.DigitizationTestsConfig.McEventCollectionTestTool", "McEventCollectionTestTool")
addTool("DigitizationTests.DigitizationTestsConfig.PileUpEventInfoTestTool", "PileUpEventInfo... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.