blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
b6f3b6ab6df72a7b09acb567e25a73c561e3774d | dead81f54b0aa5292f69bb5fef69e9910a137fc4 | /demo/demo_app/settings/dev.py | fc178e7ced64eda17c7108367d161efa3b909bdf | [
"MIT"
] | permissive | Nekmo/djangocms-bs3-theme | 0b7274b73b5072cbb8c737f13a94143363ae864d | 1155588414164d6e5d027131e9181856f8a80d5d | refs/heads/master | 2023-01-11T19:58:29.922023 | 2020-03-08T17:10:37 | 2020-03-08T17:10:37 | 56,414,025 | 0 | 0 | MIT | 2022-12-26T20:05:06 | 2016-04-17T01:47:51 | CSS | UTF-8 | Python | false | false | 38 | py | from .defaults import *
DEBUG = True
| [
"contacto@nekmo.com"
] | contacto@nekmo.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 |
2367ce1ab23b4c9f3bf654dcdceca43fdaec428d | 5bc5f72bf295a227befd3e598315e5784255192b | /virtual/bin/pyreverse | 21f40bb7302f9c6c7df813753549da29e5556dc6 | [
"MIT"
] | permissive | niklauspeter/photo_gallery | 356d69a544c7530c930a2ce1f0a6c5f47a620d2f | c7f83471f5b3332a539a26e3ef4bf152d2bb6268 | refs/heads/master | 2020-05-22T09:04:02.790565 | 2019-05-14T16:24:43 | 2019-05-14T16:24:43 | 186,288,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/klaus/Documents/photos/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"oriokiklaus@gmail.com"
] | oriokiklaus@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 |
bfc27db9d675ebcd1530e7dd46e9c838a0029e32 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/appplatform/v20200701/app.py | 9e9304ae255e45b57c1cd73add57763e8f6207d5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,884 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
5f03ee7e787ae3503cb174e6e5e1d2dc95c2a820 | ab2c10fc3a28f9d9c0efbd4ea187fad081d92114 | /{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/errors/__init__.py | 73fca4d5939bbb672f7e5ba01a46153c14da8d46 | [] | no_license | jiaodalpp/cookiecutter-flask-basic | 60fdafdd6c9309f259cfd322ce7e1a4cb4a631ac | 5b8a93df01f8c70e4094f4fd1d6585a8c0022453 | refs/heads/master | 2020-03-25T13:29:28.678899 | 2018-07-27T03:38:51 | 2018-07-27T03:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from flask import Blueprint
bp = Blueprint('errors', __name__)
from {{cookiecutter.app_name}}.errors import handlers | [
"2582347430@qq.com"
] | 2582347430@qq.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 |
b4cac12b4413c3e5c3f155947edc946316507a94 | b6981b109069eccd3c69108e41dc9ddfea43562a | /pooPython.py | 3e3ec1fcaeda749c88b3747d0e92f01af4c816c2 | [] | no_license | NightRoadIx/Piton | 0073cf012c68e28973e7c1cfee87bd544d720546 | f961e9a1e62ced2a44e8ee74ee170ed612f683ef | refs/heads/master | 2023-06-08T08:30:29.995030 | 2023-06-07T06:32:25 | 2023-06-07T06:32:25 | 229,525,871 | 7 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | class MiClase:
# # # # # # # ATRIBUTOS # # # # # # #
'''x = 5
y = 2.7172
z = "cadenaPI"'''
# # # # # # # MÉTODOS # # # # # # #
# Constructor
def __init__(self, xR = 0, yR = 0.0, zR = ""):
self.x = xR
self.y = yR
self.z = zR
# Mostrar "st... | [
"noreply@github.com"
] | NightRoadIx.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 |
015981e32a15fc201ce7982521f093dcec891daa | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_182.py | a43cd931af7eb537d64fbe47a82795adf414ee20 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,843 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
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 |
972a523c63799f32931b2d63f2e8194d309053a9 | 84226827016bf833e843ebce91d856e74963e3ed | /salt/cloud/clouds/joyent.py | db4c3f7ee6ec6e8fb390950b9be7d44b3f27abb2 | [
"Apache-2.0"
] | permissive | jbq/pkg-salt | ad31610bf1868ebd5deae8f4b7cd6e69090f84e0 | b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3 | refs/heads/master | 2021-01-10T08:55:33.946693 | 2015-05-21T13:41:01 | 2015-05-21T13:41:01 | 36,014,487 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,300 | py | # -*- coding: utf-8 -*-
'''
Joyent Cloud Module
===================
The Joyent Cloud module is used to interact with the Joyent cloud system.
Set up the cloud configuration at ``/etc/salt/cloud.providers`` or
``/etc/salt/cloud.providers.d/joyent.conf``:
.. code-block:: yaml
my-joyent-config:
provider: joy... | [
"joehealy@gmail.com"
] | joehealy@gmail.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 |
e8eb5dab192a7f00f59afb9712bc71c8a731700d | 23af1e2b1f29be62926ed6a8e39b4462f07f5f2b | /atcoder.jp/m-solutions2019/m_solutions2019_a/Main.py | e1a80e08ab96bd3e4bc451138b78231d5d8fccdb | [] | no_license | IKDrocket/Atcoder | 8ef382577a377a8f35890b24a49f681f00f2f047 | fc19379de2ddf62a61b67eda33bf8aa29d503685 | refs/heads/main | 2023-02-09T11:58:00.353304 | 2021-01-02T12:06:20 | 2021-01-02T12:06:20 | 318,876,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | n = int(input())
if n == 3:
print(180)
else:
print(180*(n-2)) | [
"ikdrocket@IKDrocket.local"
] | ikdrocket@IKDrocket.local |
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 |
06b53166e8d8aded2a8bd8693e1b18909641d8c8 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2023_02_01_preview/operations/_online_deployments_operations.py | 118cfadee58df683ebf54abc2d130c72a162f72a | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-python-cwi",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
... | 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 | 52,006 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
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 |
7f0ad7be3c9b22b42280dd0f3c8dd0ab14f2db41 | 1699300e1225f0994fbfd5e13a7eb4436a5df14d | /03_SC_Track/11_Optimised_H_621_Joho/Make_SLURM_submission_script.py | b762c57288ad0636e0c83f7377131817dacfdfa4 | [
"MIT"
] | permissive | HaroonRafique/PyORBIT_MD4224 | 26307a60ed79f3e170fbd655eb8cbe8cc9a0dfa9 | 6f68a80b2f8bf1cbeb9e2fc840925efe8a8b5672 | refs/heads/master | 2023-04-25T13:27:49.756836 | 2020-08-25T10:26:07 | 2020-08-25T10:26:07 | 215,249,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,313 | py | #!/usr/bin/env python
# Python script to create a SLURM submission script for PyORBIT
# 21 March 2019 Haroon Rafique CERN BE-ABP-HSI
import os
#-----------------------------------------------------------------------
# SETTINGS
#-----------------------------------------------------------------------
script_name =... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.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 |
c6ce7e9d2b8febd02e934a3f4525d832eb624578 | 6ec3434aee86134e91e3834ae6d854d4795478ec | /issues/abandoned/orphan_files/xl_fill.py | d27b3c130d29b9d9eaf16501afb78e2bbe1da54a | [] | no_license | Eqcell/make-xls-model | 8c20ab1f1265c2472937efd0707c643eb2e6f55a | 6df45aa5196c134ec4aa5e1f2018b4e54b130d65 | refs/heads/master | 2021-06-03T15:55:04.799061 | 2016-05-21T20:10:46 | 2016-05-21T20:10:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,955 | py | # coding: utf-8
import numpy as np
import pandas as pd
import re
from pprint import pprint
from data_source import print_specification
from eqcell_core import TIME_INDEX_VARIABLES
###########################################################################
## Import test examples
####################################... | [
"e.pogrebnyak@gmail.com"
] | e.pogrebnyak@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 |
5ec63120667f2cbbb3bbe4f104fd66d4b4971ccf | 33ec30111d09f6b077f69201994802ee0b28739e | /authorProject/authorProject/urls.py | 814c8033128e95daaca1d8467ac689d4720c47f8 | [] | no_license | cs-fullstack-2019-fall/django-orm-fk-console-cw-marcus110379 | 71fdb87bf2c0bc3b518b1ada2eef41ff4662e514 | 264f00006e6936ba97894b872a67a1fbd5fecd0c | refs/heads/master | 2020-07-31T17:20:15.839030 | 2019-09-25T19:03:43 | 2019-09-25T19:03:43 | 210,690,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | """authorProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/dev/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"marcusjmadden@gmail.com"
] | marcusjmadden@gmail.com |
d14c75cc70439e00aa8d89a8a8a6fb2e9899b140 | 4d586ecc9febedb199376bc005eb783c55fae7b0 | /great_expectations/execution_engine/execution_engine.py | 6c84481c184c7a6c66dc07e4f0fe1c2c1c8fab7d | [
"Apache-2.0"
] | permissive | spbail/great_expectations | 1db532763ad9c5c07aec251b64a61de3fb6f677f | c4fa245f77912dfdfd613c84fb75f631c0b73f03 | refs/heads/main | 2023-07-01T23:40:44.586052 | 2021-04-22T00:09:35 | 2021-04-22T00:09:35 | 360,619,476 | 2 | 0 | Apache-2.0 | 2021-04-22T17:20:19 | 2021-04-22T17:20:18 | null | UTF-8 | Python | false | false | 13,649 | py | import copy
import logging
from abc import ABC, abstractmethod
from enum import Enum
from typing import Any, Dict, Iterable, Tuple, Union
import pandas as pd
from ruamel.yaml import YAML
from great_expectations.core.batch import BatchMarkers, BatchSpec
from great_expectations.exceptions import GreatExpectationsError
... | [
"noreply@github.com"
] | spbail.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 |
247ed71df147485d3121d20cfeb3e73e6b8e3d6e | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/dpp/ifcktallowaghist1year.py | b0c2f183d37022313a56689e30ea841a848f9ced | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,549 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.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 |
435c6ff56db75ee82ca5509b38a0508207863b99 | e1faf332197eef7c57d63d562b42d2cb227f0f1a | /zolo/brokers/base.py | 588c7c85a9530e87e8c0d804ea812586d24eb169 | [
"MIT"
] | permissive | firefirer1983/zolo | 29ae6cfa5568a28d2a0b53a51054edf784a03ce0 | 889409b491363eb54c2997e01333b77bc81e0c89 | refs/heads/main | 2023-07-15T04:52:56.039301 | 2021-08-31T14:17:48 | 2021-08-31T14:17:48 | 347,134,578 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,430 | py | import abc
import logging
from datetime import datetime
from itertools import count
from typing import Iterable, List, Union, Type, ItemsView, Callable, Optional, \
Dict
from zolo.indicators import IndicatorType
from ..base import Broker, Sink
from ..dtypes import Bar, Tick, Lot, Size, Fill, Qty, OrderBook, \
... | [
"fyman.zhang@gmail.com"
] | fyman.zhang@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 |
36c7f68485e63e6201e3eeed984fc878a2ea1938 | bf95f49b423f6a240c57b6d29d5d9aa9074101cc | /oops/apps/resources/apps.py | 3932a6379921126ef502794dccf9447763874845 | [] | no_license | lmyfzx/oops | 946ede8564fb78872549642389e0f24de0226453 | f57a3cfec7ef2f49345b51368369be5727fd8f98 | refs/heads/master | 2023-01-06T10:21:55.147560 | 2019-03-19T06:27:07 | 2019-03-19T06:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.apps import AppConfig
class ResourcesConfig(AppConfig):
name = 'resources'
| [
"root@172-17-134-23.(none)"
] | root@172-17-134-23.(none) |
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 |
86e0009eb279d52552191ba67b4fa1fa52e27e87 | 886595199b7a82280795ce5cb4f059abbd9e0436 | /test/unit/test_fusion.py | be7af294eb00c55c966a3f7bc3238a54194e2dc9 | [] | no_license | POETSII/PyOP2 | 61efb02c843c1cfb6da31ac541ca5761e7b2c135 | 0f8a0a87d714af6f78563c657b1e537245990613 | refs/heads/master | 2021-01-10T22:15:59.495827 | 2016-10-07T10:35:49 | 2016-10-07T10:35:49 | 70,328,908 | 0 | 0 | null | 2016-10-08T12:13:19 | 2016-10-08T12:13:19 | null | UTF-8 | Python | false | false | 22,985 | py | # This file is part of PyOP2
#
# PyOP2 is Copyright (c) 2016, Imperial College London and
# others. Please see the AUTHORS file in the main source directory for
# a full list of copyright holders. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted ... | [
"f.luporini12@imperial.ac.uk"
] | f.luporini12@imperial.ac.uk |
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 |
18fc7b09c23dbd2eb6316effc75850969c2b96b9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02546/s957460341.py | 923709e8cc9a293768d0888ccf4cc1ab48eb0b53 | [] | 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 | 76 | py | str = input()
if str[-1] == 's':
str += 'es'
else:
str += 's'
print(str) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.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 |
55160e149e3815f6d058208e7aa6bf71601308f7 | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/Analysis_parts/AnalysisDisplayStyle.py | b6526dff6e056758036eff2fe7a172c14140c37a | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 10,622 | py | class AnalysisDisplayStyle(Element,IDisposable):
""" Exposes API for manipulation of analysis display style. """
@staticmethod
def CreateAnalysisDisplayStyle(document,name,*__args):
"""
CreateAnalysisDisplayStyle(document: Document,name: str,markersAndTextSettings: AnalysisDisplayMarkersAndTextSettings,colo... | [
"gtalarico@gmail.com"
] | gtalarico@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 |
2091c68c718e088ee7365c5cd5c4f25d571fbb5f | aae7f03e1bc7212b95da8a8bbc141c817ba59a41 | /c7n/actions/securityhub.py | cee450aa68e3e2c04d31434690f8abe2625b6ec5 | [
"Apache-2.0"
] | permissive | tcanelas/cloud-custodian | 8dc083239cf01374e8b8f43519041ffd9f221660 | fdfdf79aacfcb5bb349a6ccb00882e3b40c057d7 | refs/heads/master | 2020-04-06T18:02:43.237994 | 2018-12-26T23:22:33 | 2018-12-26T23:22:33 | 157,682,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,727 | py | # Copyright 2018 Capital One Services, LLC
#
# 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... | [
"kapilt@gmail.com"
] | kapilt@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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.