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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6aea18a5c17d7b60d01ed27a80fa31d35885b765 | 49d02c64b699ed1c64d8e92369c7860c6e952277 | /src/zojax/widget/googlemap/configlet.py | 85f26b7cc2228a5e0482c548b4bb067cb334ce78 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.widget.googlemap | 4bd6b26ae53da9b2f7357ae2e2f754983d7327aa | 2d8954df84a6f5ab0827fac2fc8bbebf18d82c49 | refs/heads/master | 2020-06-03T06:35:28.247511 | 2014-02-13T15:55:25 | 2014-02-13T15:55:25 | 2,035,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"bubenkoff@gmail.com"
] | bubenkoff@gmail.com |
8910b2abcfb5b65762c3e8bf24671f4ea22282db | a5ca548c04a10df9cf1a2be627e94a4ef4fb884f | /jig_pc_auto_v0.0.3/_WorkSpace_/lib/pkg_cs2000_manager/__init__.py | f7ced80da58d0a51ff2e8b632ed5496e34337403 | [
"MIT"
] | permissive | AuroraBoreas/jig-pc-bu | 66346304905b43aac9deff8d376a925f31580c7c | d06c24762bd708853e1a3de3058cbb704c61905d | refs/heads/master | 2023-06-21T23:59:25.216686 | 2021-07-22T01:23:14 | 2021-07-22T01:23:14 | 258,466,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | __all__ = [
'core',
'drift',
'point',
] | [
"noreply@github.com"
] | AuroraBoreas.noreply@github.com |
9f1904fa49033633aa2a5229798705e5851fbae5 | e1e6a36870270ef0f3f5b132fb7a2c233250e444 | /tests/integration_tests/parse_flags_tests/test_members.py | 63fccd7894c6d8410a343e377b48c88835c2e16f | [
"MIT"
] | permissive | lycantropos/rei | 02a9715fc67dbb8187a51cfea69d9ecc5775afa7 | 65889cbd7aa844a0f077d455947f5e3a6f43d004 | refs/heads/master | 2023-09-02T03:37:10.232771 | 2021-11-12T16:32:35 | 2021-11-12T16:32:35 | 349,946,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from tests.binding_tests.hints import BoundParseFlag
from tests.integration_tests.utils import are_enumerations_equivalent
from tests.port_tests.hints import PortedParseFlag
def test_basic() -> None:
assert are_enumerations_equivalent(BoundParseFlag, PortedParseFlag)
| [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
1bff16f23bd3351800a53cc3027af5daf14364e8 | 9596e8b90bfd17df2e24468e10210d3fe22e5973 | /Binary Search Tree/construct_BST_from_preorder_recursive.py | 1104cd473c91ed83d7b02e1a4ce457138a293000 | [] | no_license | BhargavReddy461/Coding | bb66581b7f6a8b54a5b6edb4f4ac0599a930b46d | 1084099489185926227172aa77221831c0017cbb | refs/heads/main | 2023-03-11T19:57:10.144922 | 2021-02-28T10:17:33 | 2021-02-28T10:17:33 | 338,948,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | INT_MIN = float("-infinity")
INT_MAX = float("infinity")
class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def constructTreeUtil(pre, key, preindex, mini, maxi, n):
if preindex[0] >= n:
return None
root = None
... | [
"noreply@github.com"
] | BhargavReddy461.noreply@github.com |
731b4753781490a4cc31126a597e7eaf792c589d | 6a3deb38999bb284e8dfa27e3612ea73e92fe1ed | /src/main/python/document_classification/topic_classification/classif/mainleave1out_svm.py | b0ba0220c761ddbfe002a72fa602acf40c3ec485 | [] | no_license | pszostek/research-python-backup | c7d1bf56dc4b1ab9412fcecb1a9222f2a8dbe6ca | e38508de91f8a7bda3096c6f0a361734207357a5 | refs/heads/master | 2020-05-20T08:50:05.306294 | 2012-09-28T13:24:43 | 2012-09-28T13:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | '''
Created on Nov 16, 2011
@author: mlukasik
'''
import sys
sys.path.append(r'../')
from wordsfreq import select_descriptive_words
from features import records_to_words_weights_converter
from zbl2py import record_read
from classifier_tester import LeaveOneOutAllCategories
from classifier_svm import SvmWordsClassifie... | [
"mateuszn@bd31ee22-090f-0410-9135-988eccef8701"
] | mateuszn@bd31ee22-090f-0410-9135-988eccef8701 |
68235f6720df2e23b20d5fd5a3758ce9711b975a | 2b2e1101197cff28e911c1e1540c7870e9332423 | /dc_rsn_fastmri/transforms.py | 3f113346c754273dbb21ac428e900dd341088645 | [] | no_license | Bala93/Holistic-MRI-Reconstruction | 56e88e751dcbddefb2a4c2b36917a76378f88dbb | 219652c8a08c4f2f682acd9f95a4e1b3fd36b70b | refs/heads/master | 2022-11-12T10:32:14.981003 | 2020-06-27T13:34:55 | 2020-06-27T13:34:55 | 240,435,331 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,289 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
import numpy as np
import torch
from torch.nn import functional as F
def to_tensor(data):
"""
Convert numpy array to PyTorch tensor... | [
"balamuralim.1993@gmail.com"
] | balamuralim.1993@gmail.com |
83ab8453e66449eae4a48bc3ea203ea2ad30d927 | ea99a5ec02c72c72d422f0a93d9e0fc054e1daf4 | /openacademy/tests/test_openacademy_session.py | db0f3e33bd5d0ce3d08c69e2995cedcc81f63208 | [] | no_license | moylop260/demo08 | 2926f15c524b33f2fc4fded044e232bfb583d042 | 33e4843a2283e2f84b99c1a94b491c4759810f17 | refs/heads/master | 2022-12-28T00:40:30.168024 | 2020-10-07T16:23:59 | 2020-10-07T16:23:59 | 298,601,431 | 0 | 0 | null | 2020-10-07T16:28:07 | 2020-09-25T14:49:16 | Python | UTF-8 | Python | false | false | 2,835 | py | import psycopg2
from odoo.exceptions import ValidationError
from odoo.tests import TransactionCase
from odoo.tools import mute_logger
class OpenacademySessionTest(TransactionCase):
def test_session_same_instructor_constraint(self):
with self.assertRaisesRegex(
ValidationError, "A session's in... | [
"moylop260@vauxoo.com"
] | moylop260@vauxoo.com |
078de54ef63bf02e43af6351706f132841322ea2 | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/stats/pdistrib/sinus_distribution.py | d0f9ce32d4cf03911ff297408443f9e1d6df173e | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 460 | py |
from scipy.stats.distributions import rv_continuous
from numpy import pi, cos, sin, log, arccos
class sin_gen( rv_continuous ):
def _pdf( self, x ):
return sin( x )
def _cdf( self, x ):
return 1 - cos( x )
def _stats( self ):
return 1.0, pi - 3.0, 0.0, 0.0
def ppf( self, x, *ar... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
f5c7a7be252a27494e0c3cb0494e88ef0ba1380a | c97fc7658c39feb51c0ed42c04783797c8675b8a | /pyside2_pyqt/pys2/59-2-QTableWidget-放置控件.py | e8f3781231d76e3404d5246f5452a53c6b2bb308 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 1,645 | py |
'''
扩展的表格控件 QTableWidget
放置控件 setCellWidget
'''
from PySide2.QtWidgets import QApplication, QWidget, QTableWidget, QPushButton,\
QVBoxLayout,QTableWidgetItem,QAbstractItemView,QComboBox
from PySide2.QtCore import *
class Window(QWidget):
def __init__(self):
super().__init__()
self.setWind... | [
"sgq523@163.com"
] | sgq523@163.com |
30069523845016dd0d9bcfd358757f83560cc1cc | 514df3b61cce4262259826d06d9eb8f751ab538f | /raiden/tests/unit/api/test_encoding.py | 9c54c1e4693a4e124b4b3c96d6ba8d1e6c75d079 | [
"MIT"
] | permissive | christianbrb/raiden | c7fa2cd4ccbb4d9013f2768204e5fff6baf4b994 | 64f0715af076747b293671157e2cbbd235cab81b | refs/heads/master | 2020-04-05T12:27:27.454823 | 2020-01-16T08:44:29 | 2020-01-16T08:44:29 | 156,870,814 | 0 | 0 | MIT | 2020-01-16T08:44:30 | 2018-11-09T14:10:57 | Python | UTF-8 | Python | false | false | 584 | py | import datetime
from raiden.api.v1.encoding import BaseSchema, TimeStampField
class SchemaTest(BaseSchema):
timestamp = TimeStampField()
class Meta:
fields = ("timestamp",)
strict = True
decoding_class = dict
def test_timestamp_field():
now = datetime.datetime.now()
assert ... | [
"lefteris@refu.co"
] | lefteris@refu.co |
0aeedc590224748103e6bd4670c94e4faf40ffcb | 60fa442ae76b960ab21b10fb527c0eac85cdc587 | /python/python_def.py | 2295834afff884149525c5ad5647210fce6e82fd | [] | no_license | pjanowski/Pawel_PhD_Scripts | 8e6c2b92b492f9cacf425327a01faaceb27bb87d | 5f9b1735ca6da8fdf0946d6748f3da7d3d723d5e | refs/heads/master | 2021-01-10T06:15:30.287053 | 2015-11-16T04:04:07 | 2015-11-16T04:04:07 | 46,250,317 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | #! /usr/bin/python
import sys
import os
from numpy import *
#read mdcrd file, return vector of all coordinates and vector of boxsize (last line of file)
def readmdcrd(filename):
with open(filename) as f:
x = f.readlines()
boxsizeline=x[len(x)-1]
x=x[1:len(x)-1] #delete first and last line of file
coords =[]
fo... | [
"pawelrc@gmail.com"
] | pawelrc@gmail.com |
26e28d33c8c6297563c4468806296897064bb2f9 | cf49100e92667054215a325a53a90168e45aa09a | /pages/urls.py | 20b46dc6fc07428bcf95e2c8d069c077cd3a87b7 | [] | no_license | cmrajib/django_Car_Dealer | 81ec72f3059253786dde4eed924a5a9ac0951c26 | 7862e883bfe1afcacf9f825ce23c38361c17e23f | refs/heads/main | 2023-02-06T13:52:11.218256 | 2020-12-28T08:39:54 | 2020-12-28T08:39:54 | 324,939,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from django.urls import path
from . import views
from django.conf import settings
from django.contrib.staticfiles.urls import static, staticfiles_urlpatterns
urlpatterns = [
path('',views.home, name='home'),
path('about/',views.about, name='about'),
path('services/',views.services, name='services'),
p... | [
"cmrajib@gmail.com"
] | cmrajib@gmail.com |
3e6b7914a8683c305856bd528823b9bdec5c7b47 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_delete.py | b5d167dfb8f50d5c29603c79616556a738a970bf | [
"LicenseRef-scancode-generic-cla",
"MIT",
"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,513 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ad6092b48c4f94bceb34cd6cdf1cf5d42d5c2ceb | 67b7e6d2c08f08403ec086c510622be48b8d26d8 | /src/test/tinc/tincrepo/mpp/gpdb/tests/storage/persistent_tables/PTRebuild/persistent_rebuild_utility.py | 212367e2f8cdb90651e2455a926e83e9e22412e6 | [
"Apache-2.0",
"PostgreSQL",
"LicenseRef-scancode-rsa-md4",
"OLDAP-2.8",
"HPND-sell-variant",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"Zlib",
"LicenseRef-scancode-zeusbench",
"LicenseRef-scancode-mit-modification-obligations",
"OpenSSL",
"MIT",
"LicenseRef-scancode-other-copyleft",
"bzip2-1.0.6"... | permissive | sshyran/gpdb | 41012411d22b0294204dfb0fe67a1f4c8d1ecaf6 | 2d065ecdd2b5535cb42474f17a0ee6592b4e6837 | refs/heads/master | 2023-04-09T14:05:44.030212 | 2016-11-12T08:33:33 | 2016-11-12T08:34:36 | 73,544,159 | 0 | 0 | Apache-2.0 | 2023-04-04T00:30:10 | 2016-11-12T09:43:54 | PLpgSQL | UTF-8 | Python | false | false | 2,870 | py | """
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | [
"jyih@pivotal.io"
] | jyih@pivotal.io |
3dcc0ad5982f6e037755f286cb1d33d5a5bfd5a1 | 77c641fd0708b279dddbe01f6af32a8531b93185 | /marketsim/gen/_out/_iorder.py | de97210402903b8441c873be5f0ca279f340fcfb | [] | no_license | abensrhir/marketsimulator | aea286afd2bb2e0c8a547bfa879601aef21c0cd5 | f9f55c72fb34cdbec42b96737ca20839f26c6299 | refs/heads/master | 2020-12-13T20:55:55.795344 | 2014-02-24T22:52:24 | 2014-02-24T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | class IOrder(object):
pass
| [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
f58793d8282c25528c748d780e38e5b0f943d2f1 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-8571.py | a159505d4d3bf11ca950564fec3da5b62ebaf45a | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,762 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
71b3ff10a96ff0146225b660a1259e34747d41a8 | 36222fc73431a89d41a342aa176158b8868bc41a | /accounts/migrations/0018_auto_20170403_1641.py | 92ed6bc2e80b2c4c68ece263f59e13a20acf03b5 | [] | no_license | dxviidmg/CITNOVA | 9e3f555e192d4e875fc4b990b70c52e3f6fc8bc0 | f18d6e74082d0ddf58eaba439d5e20f2d48af7b9 | refs/heads/master | 2021-01-18T23:34:41.179481 | 2017-05-20T13:59:11 | 2017-05-20T13:59:11 | 87,117,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-03 21:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0017_auto_20170403_1633'),
]
operations = [
migrations.AlterFie... | [
"dmg_92@hotmail.com"
] | dmg_92@hotmail.com |
aad43d3a976052b593eadb35af09150cc09f72ba | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_29347.py | 1e918908593cb7b64dc991bbb91cba59a0b14fc3 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | # Convert a filename to a file:// URL
import pathlib
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
11ea09cd5d200d805b08ebfee2cea27826e7292f | a10e0b699e9cf34eba277913baee54d6747351d0 | /user/middleware/jwt_auth_middleware.py | e494a3a8cf75238209ad03a1376acc6b1e640518 | [] | no_license | Guya-LTD/user | dcbffe4768ed1152e166ae47113cea30b09078e0 | f4c06aeb10d01d62d1cb14ce2c21cfbc926310a6 | refs/heads/master | 2023-02-13T02:49:29.575648 | 2021-01-01T19:50:18 | 2021-01-01T19:50:18 | 287,047,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | # -*- coding: utf-8 -*-
"""Copyright Header Details
Copyright
---------
Copyright (C) Guya , PLC - All Rights Reserved (As Of Pending...)
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
LICENSE
-------
This file is subject to the terms and conditi... | [
"simonbelete@gmail.com"
] | simonbelete@gmail.com |
785b9f23e57fb8365f7221c7d6e9c94b0d8ce6c5 | ec4e94c8d2e57e25f179f73d613f70d0b56fee15 | /WorkFlow2/AB/AUGMENT/B.0/qaz_train_50000_7/ocean_annealing.py | d5a50daccb2df068eb5d97b018e9a877665a49ce | [] | no_license | whigg/susy_qa_interns_2020 | a352eec40e615a01e8a70bd0aefb01108a1a0200 | 986f2037b59fb69dc4ee11b07456da3df72d0da8 | refs/heads/master | 2023-01-01T20:10:09.508435 | 2020-10-28T21:25:23 | 2020-10-28T21:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,999 | py | ############################################################################
#11/07/2020 - WORKING
#train_size50000
#cutoff = 95
#2 folds
#AUGMENT
#Fix_variable = True
############################################################################
#Python imports
import numpy as np
from scipy.optimize import basinhoppin... | [
"hessel.timothee@gmail.com"
] | hessel.timothee@gmail.com |
8eb679c828ab3ce4ab8c1f89cb6a845643a54337 | 8f29859477f94d156f0f7012db051f97f0ac20dc | /session3/homework3/lesson_9.py | 45799a9babc7805c8ba3df3f3e6d36662679b3a0 | [] | no_license | akien1998/trungkien-fundamental-c4e22 | c0cf7848eb167eee251ceb976448806c8ee16ab4 | aa4a18c883ca3d0daeef0c1942fb3f12dd3ab898 | refs/heads/master | 2020-03-29T17:24:57.851594 | 2018-11-23T16:14:47 | 2018-11-23T16:14:47 | 150,161,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | print("hello , my name is kien and here is my flock")
items=[5,7,300,90,24,50,75]
print(*items,sep=", ")
print("now my biggest sheep has size 300 let's shear it After shearing ,here is my flock")
items[2]=8
print(*items,sep=", ")
# Month1:
print("Month 1")
for i in range(len(items)):
items[i] += 50
print("One mon... | [
"abc@example.com"
] | abc@example.com |
d8319ebe343f65f66d8b697333b0f7f613b1fa82 | 1b9075ffea7d4b846d42981b41be44238c371202 | /2008/devel/applications/science/electronics/iverilog/actions.py | a231e08f2897e8332ed3500d303fc0f88ad3d041 | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "verilog-%s" % get.srcVERSIO... | [
"MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2"
] | MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2 |
29863db2599a66d029437d57697ec0e70828cb84 | 5a5bcfe21defcaf6b050b0c92e8ec03cee7eb50f | /gencrud/gen/task/admin/base_task_image.py | 41d9dde29acd489998e9eb8cf3154d0f9acb05d1 | [] | no_license | marychev/gencrud | dc146c570a81ed0665f6bec309f106d966be349a | d6dc478b9a079aba5589591fa2e79665179e28a2 | refs/heads/master | 2023-01-06T18:50:13.417451 | 2020-10-23T18:05:38 | 2020-10-23T18:05:38 | 262,617,213 | 2 | 0 | null | 2020-05-10T18:35:19 | 2020-05-09T16:55:28 | Python | UTF-8 | Python | false | false | 477 | py | from django.contrib import admin
from gen.abstract.admin import AbstractDefaultAdmin, AbstractImageAdmin
from task.models.task_image import TaskImage
from gen.task.strings import NAME_APP as TASK_NAME_APP
@admin.register(TaskImage)
class BaseTaskImageAdmin(AbstractDefaultAdmin, AbstractImageAdmin):
raw_id_fields ... | [
"marychevmihail3737@gmail.com"
] | marychevmihail3737@gmail.com |
b87269f3a6463b33a2243782abeca0bd8ffef7eb | 0eb3cb7493b6cc604a1aea9afc7af02e89b38602 | /course_3_assessment_2.py | 5cd818976ab1a685b2577b745ea4631fa59cc9cf | [] | no_license | ec4sug4/i | 8b7c2d21ff3e7c763464f3a77ea009683eb17d51 | 1dbd58bb12729749c220b9f1f92f63389e7a886c | refs/heads/master | 2023-05-10T17:08:57.966542 | 2020-07-02T09:33:01 | 2020-07-02T09:33:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | # 1. Write code to assign to the variable map_testing all the elements in lst_check while adding the string “Fruit: ” to the beginning of each element using mapping.
lst_check = ['plums', 'watermelon', 'kiwi', 'strawberries', 'blueberries', 'peaches', 'apples', 'mangos', 'papaya']
map_testing = map(lambda word: "Fru... | [
"subham.kumar032@gmail.com"
] | subham.kumar032@gmail.com |
743049b5d49a16b369d7c94a8635c0f45fdb2bff | ff05d0221defcb9cacf4497381d6353a6b2d0853 | /gpytorch/lazy/matmul_lazy_variable.py | e4eb0d8a4966c755ea85e57319c6eb4a3b1ac95d | [
"MIT"
] | permissive | ediphy-dwild/gpytorch | 5685ee673fd3f1836942fc7b23b4b540421d4f80 | 559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a | refs/heads/master | 2021-04-09T15:07:43.952159 | 2018-03-16T14:48:51 | 2018-03-16T14:48:51 | 125,529,576 | 0 | 0 | MIT | 2018-03-16T14:46:08 | 2018-03-16T14:46:06 | Python | UTF-8 | Python | false | false | 4,560 | py | import torch
from torch.autograd import Variable
from .lazy_variable import LazyVariable
from .non_lazy_variable import NonLazyVariable
def _inner_repeat(tensor, amt):
return tensor.unsqueeze(-1).repeat(amt, 1).squeeze(-1)
def _outer_repeat(tensor, amt):
return tensor.unsqueeze(-1).repeat(1, amt).view(-1)
... | [
"gpleiss@gmail.com"
] | gpleiss@gmail.com |
b65fca0fa7588a1a07a2b75d02f9515d64a2423c | 48377e027a031036b9ebc5c9dcfc9a35ceed76d7 | /common/event.py | 092896175b292a1f4f66855398e25f47671c925b | [
"MIT"
] | permissive | MichioY/bilibiliupload | ed83a3836b09365f801ba93d5de818c2de147fbf | 623e0d06e6acb4b5f2c3d6291450f27bbf83667e | refs/heads/master | 2020-06-25T21:22:15.097945 | 2019-07-28T09:54:29 | 2019-07-28T09:54:29 | 199,425,286 | 1 | 0 | MIT | 2019-07-29T09:48:56 | 2019-07-29T09:48:56 | null | UTF-8 | Python | false | false | 5,202 | py | # encoding: UTF-8
# 系统模块
import inspect
from concurrent.futures.thread import ThreadPoolExecutor
from queue import Queue, Empty
from threading import *
import functools
class EventManager:
def __init__(self):
"""初始化事件管理器"""
# 事件对象列表
self.__eventQueue = Queue()
# 事件管理器开关
sel... | [
"34411314+ForgQi@users.noreply.github.com"
] | 34411314+ForgQi@users.noreply.github.com |
db6a891092593473920b15dcde556e7f6311783e | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/storage_profile.py | 2eaa9f97219613ab1fa64b1ed2d1cff243d158bb | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def StorageProfile(vim, *args, **kwargs):
'''The StorageProfile data object represents th... | [
"jmb@pexip.com"
] | jmb@pexip.com |
c238f3543c137e495f335fafc7a38f7a9ca1998a | 01c98f61835397c0a24f1169e022a3d37bde1d1d | /随手记/类型提示.py | f02013ee7bb41e1fdc8fd3c804ffd4b077dd6e41 | [] | no_license | legolas-zeng/scripts | a342d72712eda51104f73a2c785c5569ce8cdec9 | b2a1670dfea4277696a549bce79da79bbfc11258 | refs/heads/master | 2021-07-20T05:20:09.187685 | 2021-07-15T11:43:24 | 2021-07-15T11:43:24 | 117,564,259 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | # coding=utf-8
# @Time : 2019/4/23 11:15
# @Author : zwa
from typing import TypeVar, Iterable, Tuple, Dict, List,MutableMapping,Text
'''
对于较复杂的内置类型、泛型、生成器、自定义类型等,需要引入标准库typing
typing常用的类型:
int,long,float: 整型,长整形,浮点型;
bool,str: 布尔型,字符串类型;
List, Tuple, Dict, Set:列表,元组,字典, 集合;
Iterable,Iterator:可迭代类型,迭代器类型;
Generator... | [
"814382690@qq.com"
] | 814382690@qq.com |
af9158ff1514ee96dc92338871873897acc7dfad | 6b6f68f507746e3e39b0e8789af5d044e27d6b0a | /Array/0011_ContainerWithMostWater_M.py | 6a8526e5b5663eca53b6397adc38cf07275426a5 | [] | no_license | PFZ86/LeetcodePractice | bb0012d8b3120451dda1745875836278d3362e45 | 6db9db1934bc0a8142124d8b56bf6c07bdf43d79 | refs/heads/master | 2021-08-28T08:43:27.343395 | 2021-08-17T20:38:32 | 2021-08-17T20:38:32 | 230,925,656 | 1 | 1 | null | 2021-08-17T20:38:32 | 2019-12-30T14:01:27 | Python | UTF-8 | Python | false | false | 574 | py | # https://leetcode.com/problems/container-with-most-water/
# Solution 1: the two-pointer method
class Solution(object):
def maxArea(self, height):
"""
:type height: List[int]
:rtype: int
"""
res = 0
left, right = 0, len(height)-1
while left < right... | [
"pengfeizang@pengfeis-iMac.fios-router.home"
] | pengfeizang@pengfeis-iMac.fios-router.home |
deef72765b58a4ed2bae8afba4b9ba5610f01b0c | 712d957a3712bdca502dfabf8845e5b1eb35eb56 | /ai/ants_stats.py | 3e390870c95fab061b1cad5b42351db775b2395f | [] | no_license | skytreader/pydagogical | 726e1f32d3096a53eded7a9c70608fa67929998e | ac246ddb37b04ceb7cdf226e56f780af4be60a2b | refs/heads/master | 2023-02-03T09:53:50.604923 | 2023-01-31T17:30:24 | 2023-01-31T17:30:24 | 15,190,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | #! /usr/bin/env python3
from ai.ants import TravellingSalesAnts
from stats.avg import mean, standard_deviation
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="statistics for ant colonies.")
parser.add_argument(
"--ants", "-a", type=int, default=100, required=Fa... | [
"chadestioco@gmail.com"
] | chadestioco@gmail.com |
2514503ddd942a7b58035a517877e5d858a0ca0b | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/contrib/framework/python/framework/graph_util.py | 8136ea823f367fbb49ce362c4994b920242b85a5 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:bb5b2844afc27b5a3578d4c6ae8655fd67f626fbc8a2bd734c52a977c9b334b6
size 6314
| [
"github@cuba12345"
] | github@cuba12345 |
c9bf088d260bd1d1677eb18a25e7a02114648f72 | 3011e024b5f31d6c747a2bd4a143bb6a0eeb1e1d | /chapter03/db_operation_demo/venv/Scripts/pip3.7-script.py | 1071be04f55f2425c9dd75d385ec3d62eacc654a | [] | no_license | yingkun1/python-django | a3084460a83682f3e0848d5b40c881f93961ecc2 | 08c9ed3771eb245ee9ff66f67cf28730d2675bbe | refs/heads/master | 2022-12-11T12:33:20.788524 | 2019-06-12T09:30:59 | 2019-06-12T09:30:59 | 189,977,625 | 1 | 0 | null | 2022-11-22T02:57:01 | 2019-06-03T09:43:30 | Python | UTF-8 | Python | false | false | 423 | py | #!E:\python-django\chapter03\db_operation_demo\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"925712087@qq.com"
] | 925712087@qq.com |
623561c66907e9f47dee5e5cf621f14fbe7302eb | 20f138b4b71cf70b75637124f0aedf57ad8f3e4e | /tests/test_sensors_events.py | 2e30f6e4e958a60b3d2b12247326244bcace7bda | [
"MIT"
] | permissive | ellezdi0808/garbevents | 4556a406b282b5c39ce468a3be9bc0f59043f47e | 845f14c29087465cb97e9874ea4aaf50cd879530 | refs/heads/master | 2023-01-22T13:58:16.780113 | 2020-12-10T15:01:17 | 2020-12-10T15:01:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # -*- coding: utf-8 -*-
from garbevents.sensors_events import GetData
from garbevents.settings import Settings as ST
'mitmdump -p 8889 -s test_sensors_events.py'
ST.url = 'http://sensor.wodidashi.com'
ST.report_path = 'report'
ST.all_events = ['LX_CONVERSATION_MSG_ITEM_FORWAR_CLICK', 'LX_CONVERSATION_SETTING_TOPS_C... | [
"1456470136@qq.com"
] | 1456470136@qq.com |
e4a47ecffbd510d97ecb76393985930660ef8eab | a9006c71d2470ad66f48004b06970c4033644e84 | /1-ndarray/ndarray.py | b1bd166a7d973f28390481abfa19f15c5e192cd9 | [] | no_license | ayman-elkassas/Numpy-CrashCode | 1797558bdcec01143e58db5141bcbad883e97d1d | da6a4deb7ed28bfc937c5f371e88574ba4e354af | refs/heads/master | 2023-03-30T23:34:27.649014 | 2021-04-11T17:52:27 | 2021-04-11T17:52:27 | 356,939,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # N-Dimensional array
import numpy as np
# 1 dim
a=np.array([1,2,3])
print(a)
# 2 dim
a = np.array([[1, 2], [3, 4]])
print(a)
# minimum dimensions
a=np.array([1, 2, 3,4,5], ndmin=2)
print(a)
# minimum dimensions
a=np.array([1, 2, 3,4,5],dtype=complex)
print(a)
| [
"aymanelkassas88@gmail.com"
] | aymanelkassas88@gmail.com |
ccfe9bef2615ea39545d183fbbd39a7966a9e68b | cad762658ab8326d7f43bba6f69df35a8b770e34 | /test/test_markdown_paragraph_extra.py | 7cf910bfed14980ba63567659a9bcbc53e359196 | [
"MIT"
] | permissive | ExternalRepositories/pymarkdown | 9c248b519791a4c869d1e71fa405c06d15ce553b | 479ace2d2d9dd5def81c72ef3b58bce6fb76f594 | refs/heads/main | 2023-08-28T03:45:25.536530 | 2021-10-31T19:39:22 | 2021-10-31T19:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228,901 | py | """
https://github.github.com/gfm/#paragraph
"""
import pytest
from .utils import act_and_assert
# pylint: disable=too-many-lines
@pytest.mark.gfm
def test_paragraph_extra_43a():
"""
Test case extra 43a: Paragraph with code span with newline inside
"""
# Arrange
source_markdown = """a`code
... | [
"jack.de.winter@outlook.com"
] | jack.de.winter@outlook.com |
c3cd637c92069c11289669f7c4eb0a6324b4086e | e0d404675839dc10bc1e995be4c35a69ab9133a5 | /grr/core/grr_response_core/lib/util/random.py | 0c9e43de82fc1268eddd27da7af1b0019f79bd31 | [
"Apache-2.0"
] | permissive | feitianyiren/grr | 4afebc4a1912d46b4df4f1b4b0d25500505d05e5 | 9cc014f44ea9b21166e3b6815eb218d39f37fa07 | refs/heads/master | 2020-04-09T02:53:22.199635 | 2018-11-28T10:54:52 | 2018-11-28T10:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | #!/usr/bin/env python
"""A module with utilities for optimized pseudo-random number generation."""
from __future__ import absolute_import
from __future__ import unicode_literals
import os
import struct
from typing import Callable
from typing import List
_random_buffer_size = 1024 # type: int
_random_buffer = [] #... | [
"realbushman@gmail.com"
] | realbushman@gmail.com |
69c159d7a7a4edfa7bee562d23ae26ade9ea0824 | 31a0b0749c30ff37c3a72592387f9d8195de4bd6 | /rllib/agents/dreamer/dreamer_torch_policy.py | 547496acaba461bdd208ea7273946bef3cdbc304 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | longshotsyndicate/ray | 15100bad514b602a3fa39bfe205288e7bec75d90 | 3341fae573868338b665bcea8a1c4ee86b702751 | refs/heads/master | 2023-01-28T15:16:00.401509 | 2022-02-18T05:35:47 | 2022-02-18T05:35:47 | 163,961,795 | 1 | 1 | Apache-2.0 | 2023-01-14T08:01:02 | 2019-01-03T11:03:35 | Python | UTF-8 | Python | false | false | 9,948 | py | import logging
import numpy as np
from typing import Dict, Optional
import ray
from ray.rllib.agents.dreamer.utils import FreezeParameters
from ray.rllib.evaluation.episode import Episode
from ray.rllib.models.catalog import ModelCatalog
from ray.rllib.policy.policy import Policy
from ray.rllib.policy.policy_template... | [
"noreply@github.com"
] | longshotsyndicate.noreply@github.com |
edc7232ff8571f2ba989aedae3673ad96f8d10e3 | c9c44fc7a4f28cede97207b25ceec80ad3e1f7b5 | /python/sudoku/test_solver.py | 7b15ae294126815cae1fb165d8eae135ff251f34 | [
"BSD-3-Clause"
] | permissive | aaugustin/sudoku | 6651cfbdcf700946a4b5fb1e0f3fe9cae536924e | 287c361653341196b4416800fe5ece00fa0a88d1 | refs/heads/main | 2023-09-02T07:59:34.748194 | 2023-04-30T21:03:23 | 2023-04-30T21:03:23 | 14,256,209 | 16 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,966 | py | import unittest
from .grid import Grid
from .solver import solve
class TestSolve(unittest.TestCase):
def test_solve(self):
# fmt: off
tests = [
# one solution, solved without search
(
Grid([5, 3, 0, 0, 7, 0, 0, 0, 0, 6, 0, 0, 1, 9, 5, 0, 0, 0, 0, 9, 8, 0, 0... | [
"aymeric.augustin@m4x.org"
] | aymeric.augustin@m4x.org |
5fe8a815979d3b10045cf4e64eb92d244c1fde62 | 9c636aeed2fc0a591507fcf0a8a6124fae710c9b | /moveZeroes.py | b99741df4166ea9cbbf182841f8b52efd690e8cd | [] | no_license | ilkaynazli/challenges | 4b2d1ac847b1761f98183457f8ea5bac6556eeff | f7c165fedbdc9811fb7f1d2a43c797f5b5ac5322 | refs/heads/master | 2020-04-07T01:03:18.625568 | 2019-04-25T19:40:22 | 2019-04-25T19:40:22 | 157,928,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | """
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
Example:
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]
Note:
You must do this in-place without making a copy of the array.
Minimize the total number of operations.
"""
#this solution c... | [
"ilkayncelik@gmail.com"
] | ilkayncelik@gmail.com |
a7240e0d41632604e6ffa2507e5774b3e07d500e | dc2e335299c3221c759866e6761e3ee29be7e2a9 | /twice.py | e888051a7eeaa6893d9bca292b0aae999d8ea1d8 | [] | no_license | terasakisatoshi/wasm_with_julia | 90ee4fb4def70b4850de08690d3ae41b69932e4c | e8d708297f10760a06ceb4ad668f263b210134a4 | refs/heads/main | 2023-02-01T15:51:56.914385 | 2020-12-11T09:25:34 | 2020-12-11T09:25:34 | 312,151,587 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from wasmer import Instance
def run_wasm(*args):
wasm_bytes = open("twice.wasm", 'rb').read()
instance = Instance(wasm_bytes)
res = instance.exports.twice(*args)
return res
| [
"terasakisatoshi.math@gmail.com"
] | terasakisatoshi.math@gmail.com |
164fe5fb45e2a7969ee09ab5681c95a6fa25c4f4 | 450cbb860f879d3883006cd9b9400abc34960328 | /manage.py | 86096060a0732ce1f14d8c6a3419688a522d4240 | [] | no_license | crowdbotics-apps/test-app-001-26449 | 6941a23abd053cce9fe3e88252742ba99d4ec446 | f7d87f77fb2c87409040b62cba4ed4f77b674939 | refs/heads/master | 2023-04-25T06:56:55.149153 | 2021-05-09T18:24:42 | 2021-05-09T18:24:42 | 365,818,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_app_001_26449.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ea645e586aaea90ea55bf37472e53a26ba0e6fcd | c02bf56c8685501202e32ac2cef354fce805e05a | /tests/unit/lib/observability/xray_traces/test_xray_event_puller.py | a7b737aa540aab5227ab1f4514f414bd47abf015 | [
"BSD-3-Clause",
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | jfuss/aws-sam-cli | 3da2d0413a37e1f3c09cb144582874863a5ea717 | 6c8c76f8fd91d223530f6c5d5ac75767d6251ff5 | refs/heads/chore/auto-label-prs | 2023-08-03T08:03:18.791771 | 2021-11-09T21:01:04 | 2021-11-09T21:01:04 | 132,761,763 | 1 | 0 | Apache-2.0 | 2023-05-02T19:50:43 | 2018-05-09T13:34:41 | Python | UTF-8 | Python | false | false | 7,516 | py | import time
import uuid
from itertools import zip_longest
from unittest import TestCase
from unittest.mock import patch, mock_open, call, Mock, ANY
from botocore.exceptions import ClientError
from parameterized import parameterized
from samcli.lib.observability.xray_traces.xray_event_puller import XRayTracePuller
c... | [
"noreply@github.com"
] | jfuss.noreply@github.com |
d0aeb8d4c12a405d496f2827c4b78e79cb710b21 | 332648fcbfe7a77731d2de2cf79d4f24b999ca5c | /day0621/context_process_demo/front/models.py | 8106152560b9a4e9f012f25ecca37838c9091f30 | [] | no_license | githq123/20200210py | 453ffe72392f97622ed6aea15f5dcb9d37ebf585 | d041f070d519bfb1fd64a78d7e66a21179fe44ff | refs/heads/master | 2021-01-01T21:07:05.996015 | 2020-02-09T16:30:40 | 2020-02-09T16:30:40 | 239,335,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from django.db import models
from django.core import validators
# Create your models here.
class User(models.Model):
username=models.CharField(max_length=100,validators=[validators.MinLengthValidator(6)])
password=models.CharField(max_length=30,validators=[validators.MinLengthValidator(6)])
telephone = mod... | [
"1424127615@qq.com"
] | 1424127615@qq.com |
4093df3ed41ccc2d1b879f21e59fb7ec372cd898 | 4a839a9f633aa13429a57e7c0610c361e9bff891 | /blogs/urls.py | 4af0c548426a7993c70f57ebf126f50efe97eeb8 | [] | no_license | sharifahmed699/django-with-Bootstrap-Blog | fd2a2442819b1fa737c086d30e068a3f5c981e15 | d4fd6f7f8c4b1690d3e9855308971d401ae4d49e | refs/heads/master | 2020-12-28T18:09:08.781175 | 2020-02-05T11:33:58 | 2020-02-05T11:33:58 | 238,434,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | """blogs URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"sharifahmedewu15@gmail.com"
] | sharifahmedewu15@gmail.com |
93f598fbac2a7341b0f8750ac67f9ebd72d79bd9 | 732536468e61932e7c0829934262b645effbd6d4 | /python_stack/python/OOP/User.py | 9110e481d562a4cd9aedcd8becdf0765e5a7c53e | [] | no_license | jignacioa/Coding-Dojo | 7a83919d09fb6ad714379dc58b1ce8e706ccc7b6 | 0e1f0d4fc528439bf34d866f4c409994741e870b | refs/heads/master | 2023-01-21T06:48:15.880635 | 2021-02-08T01:36:17 | 2021-02-08T01:36:17 | 251,421,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | class User:
def __init__(self, name, balance):
self.name = name
self.balance = balance
#function to make deposit
def make_deposit(self, deposit):
self.balance = self.balance + deposit
#make a withdrawal
def make_withdrawal(self, withdrawal):
self.balance = ... | [
"jignacio.aglr@gmail.com"
] | jignacio.aglr@gmail.com |
8ca1e67f65e5a92d0254431f2dc4566ad2840748 | aee4c0839933a11d8ce3c485d06595202dd3cabd | /keras/dtensor/metrics_test.py | ddad4077ef9554ba626fbb1f77ddcc86051264bb | [
"Apache-2.0"
] | permissive | xiaoheilong3112/keras | fc3025a2f14838bf8416b2faed766cb43da62f9b | 8d5e9b2163ec9b7d9f70920d1c7992b6df6820ec | refs/heads/master | 2023-08-07T18:23:36.804563 | 2023-07-25T19:16:12 | 2023-07-25T19:16:48 | 137,238,629 | 1 | 0 | Apache-2.0 | 2023-07-26T05:22:44 | 2018-06-13T15:59:45 | Python | UTF-8 | Python | false | false | 3,623 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
4f321975b51dca6a7f4e576db78e043785246e44 | 51f2492a5c207e3664de8f6b2d54bb93e313ca63 | /atcoder/abc064/a.py | 8f3e1c0754c08c01aa0c7987afe7b963300e6274 | [
"WTFPL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abeaumont/competitive-programming | 23c5aabd587d7bb15a61efd3428838cb934233dd | a24c9b89941a59d344b51dc1010de66522b1a0dd | refs/heads/master | 2023-09-01T09:50:58.267361 | 2023-07-31T18:00:10 | 2023-07-31T18:00:10 | 117,589,708 | 618 | 262 | WTFPL | 2023-07-12T17:36:20 | 2018-01-15T20:00:56 | C++ | UTF-8 | Python | false | false | 177 | py | #!/usr/bin/env python3
# https://abc064.contest.atcoder.jp/tasks/abc064_a
r, g, b = map(int, input().split())
if (r * 100 + g * 10 + b) % 4 == 0: print('YES')
else: print('NO')
| [
"alfredo.beaumont@gmail.com"
] | alfredo.beaumont@gmail.com |
5c4a2469e06ee080616d6929378c2d6205986b0e | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/__init___parts/Attribute.py | a2607162b4a5688bbc2819d3c894becff898b171 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 23,212 | py | class Attribute(object,_Attribute):
""" Represents the base class for custom attributes. """
def Equals(self,obj):
"""
Equals(self: Attribute,obj: object) -> bool
Returns a value that indicates whether this instance is equal to a specified object.
obj: An System.Object to compare with this instanc... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
5e0d1feb73613f140184b4fc3179275aff818f85 | c243661d9d321b39256ad3dee4f5ce4b30a1fa93 | /packages/compare-images/python/itkwasm-compare-images-emscripten/itkwasm_compare_images_emscripten/vector_magnitude_async.py | 13376d8cd9d0ca4960a9fc947c35775aec4f18a7 | [
"Apache-2.0"
] | permissive | InsightSoftwareConsortium/itk-wasm | 409621ea9430065c51759e4398959fe0ea3ab64a | 63369f1439583f27c77a4534ea2ef204c63dfa39 | refs/heads/main | 2023-08-31T13:31:27.333792 | 2023-08-30T04:20:30 | 2023-08-30T04:20:30 | 45,812,381 | 69 | 23 | Apache-2.0 | 2023-09-11T21:09:22 | 2015-11-09T03:20:17 | C++ | UTF-8 | Python | false | false | 1,291 | py | # Generated file. To retain edits, remove this comment.
# Generated file. Do not edit.
from pathlib import Path
import os
from typing import Dict, Tuple, Optional, List, Any
from .js_package import js_package
from itkwasm.pyodide import (
to_js,
to_py,
js_resources
)
from itkwasm import (
InterfaceT... | [
"matt.mccormick@kitware.com"
] | matt.mccormick@kitware.com |
e2f298e1df520fabb8e7891f117e441b0411b067 | acf445a4fd4384b968c508ced7eab609fc8cfeba | /env/bin/tqdm | fc041caf2406fc2f5da68a5c7cbd1ede9530a40b | [] | no_license | yopi1838/FINAL_FEM_Parser | eb987271a2325cd501e10e447b88992aef43caaf | 244991b17676a09aa4987c32f9ddc95422ac68b7 | refs/heads/master | 2021-07-17T15:57:10.484570 | 2020-08-09T15:24:39 | 2020-08-09T15:24:39 | 200,372,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | #!/Users/yopiprabowooktiovan/Dropbox/Titech/Journal/code/FINAL_Parser/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from tqdm.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yopi1838@gmail.com"
] | yopi1838@gmail.com | |
570d07effba7e506add3a3d3e645a62a898a19d3 | 004b9c4b517889373ed2e62823c6003ad7b8b895 | /venv/bin/flask | a12a6ec85896732b72f124ee20dcf26331bcc64c | [] | no_license | wagolemusa/flask-full | c817d76d367c08f0b411177037bdd04e3c73e406 | 07f63181d774bc5246f50d0c46ba0f714a0db879 | refs/heads/master | 2020-03-22T22:16:45.635542 | 2018-07-12T17:29:09 | 2018-07-12T17:29:09 | 140,743,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/home/refuge/code/flaskfull-api/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"homiemusa@gmail.com"
] | homiemusa@gmail.com | |
947d5df373c68f18fc8c75539b330935f4359893 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/049e077c2e384bd182f2def66a3861d7.py | 7845afc266de7dededdcd7273d1c0d3fc3f03392 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 69 | py | is_leap_year = lambda n: n % 400 == 0 or n % 4 == 0 and n % 100 != 0
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
1ca2e6f4991e35db7b94cf6144a66054a3fc9ff4 | 4e44c4bbe274b0a8ccca274f29c4140dfad16d5e | /Push2_MIDI_Scripts/decompiled 10.0.3b2 scripts/Push2/clip_control.py | f6feb84d14d419bbd08dac48f42e47eaec81e4e0 | [] | no_license | intergalacticfm/Push2_MIDI_Scripts | b48841e46b7a322f2673259d1b4131d2216f7db6 | a074e2337b2e5d2e5d2128777dd1424f35580ae1 | refs/heads/master | 2021-06-24T15:54:28.660376 | 2020-10-27T11:53:57 | 2020-10-27T11:53:57 | 137,673,221 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,723 | py | # uncompyle6 version 3.0.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.13 (default, Jan 19 2017, 14:48:08)
# [GCC 6.3.0 20170118]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\Push2\clip_control.py
# Compiled at: 2018-06-05 08:04:21
from __future__... | [
"ratsnake.cbs@gmail.com"
] | ratsnake.cbs@gmail.com |
73d4217f1d5695736777975ee47932e887a29fb8 | 61afd923551491846ae827821f55c4fb5fd04c98 | /packages/levylab_lib_cryostation_instrument/levylab_lib_cryostation_instrument-1.1.3.9.spec | 68e2b36f24a3317b362697569b6c0338ee843087 | [
"BSD-3-Clause"
] | permissive | laserengineer/levylabpitt.github.io | b74b711aff2a5eb1b46f880a1071ac0873f1a9ac | cdf9aeb6faaf136211291ce2232c239229d85bbe | refs/heads/master | 2023-04-29T02:36:48.736236 | 2021-05-14T19:20:40 | 2021-05-14T19:20:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,781 | spec | [Package]
Name="levylab_lib_cryostation_instrument"
Version="1.1.3.9"
Release=""
ID=39b9dff85426c8ca2e1ab82ea9f9e11f
File Format="vip"
Format Version="2017"
Display Name="Cryostation"
[Description]
Description="Program for logging Montana Instruments Cryostation status to the DSC. Provides a UI and API for getting in... | [
"p.irvin@levylab.org"
] | p.irvin@levylab.org |
f9657092a3695225f277bfb673d8f84207e4ce49 | 44a2741832c8ca67c8e42c17a82dbe23a283428d | /cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/akVs5PFJetSequence_pp_jec_cff.py | 2a9e4bf7aabd49fbcf7d491094ef17bcb482436f | [] | no_license | yenjie/HIGenerator | 9ff00b3f98b245f375fbd1b565560fba50749344 | 28622c10395af795b2b5b1fecf42e9f6d4e26f2a | refs/heads/master | 2021-01-19T01:59:57.508354 | 2016-06-01T08:06:07 | 2016-06-01T08:06:07 | 22,097,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,505 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akVs5PFmatch = patJetGenJetMatch.clone(
src = cms.InputTag("akVs5PFJets"),
matched = cms.InputTag("ak5HiGenJets")
)
akVs5PFparton = p... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
8b585fa945715fea1bba33d9acab2aff06afa47f | 47eef5d51b67c75645b51b7fbd8e30a57a33eb29 | /panda/tests/test_related_upload.py | 20e1cf72795cb90594f4ec4dcec9c5701d980393 | [
"MIT"
] | permissive | eads/panda | 4105ea0d729399ccd13e68b644fae600b39c69dc | 3e343b9e30288abfe39a4a4bff72277d7635dc77 | refs/heads/master | 2021-01-24T05:42:35.450374 | 2012-03-27T18:51:41 | 2012-03-27T18:51:41 | 3,847,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | #!/usr/bin/env python
import os.path
from django.conf import settings
from django.test import TransactionTestCase
from panda.tests import utils
class TestRelatedUpload(TransactionTestCase):
fixtures = ['init_panda.json']
def setUp(self):
settings.CELERY_ALWAYS_EAGER = True
self.user = util... | [
"staringmonkey@gmail.com"
] | staringmonkey@gmail.com |
5c32b33746acd135cbf5368a51794bb7866d2ace | f49fd4f3e8e577b170bccd9ede03edcae4f3e120 | /Deadline24 2016/Eliminacje/sets/Rozkazy.py | 9ed4d60c5200b38b1464fd622bd5da6a02a4c7fd | [] | no_license | marcinowski/competitions | 6f03b7009b8e75e96ecfd416be185a45627ebb87 | 42829914c724b580f292fddab919131ed3b7d222 | refs/heads/master | 2021-01-19T08:46:57.421400 | 2017-04-09T19:10:26 | 2017-04-09T19:10:26 | 87,676,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | import time
def reader(plik):
f = open(plik)
l_1 = f.readline()
NM = list(eval(l_1.replace(" ",",")))
N = NM[0] #liczba miast
M = NM[1] #liczba dróg
lista = [] ... | [
"muszynskimarcin@wp.pl"
] | muszynskimarcin@wp.pl |
edf36ad6832e9f2ce6443af77ee1c850a5e2dd67 | fe090190fb9780414e81aa9e113c047e760564e6 | /tests/test_firebase.py | 5eb28b47ea4cd02eb695fb46d07296ba9d2ec4ae | [] | no_license | mitubaEX/LINE_bot_MITUBA | 4dad7b6af101047160823f2f290453b0f9b1572e | 31d6c81d5171f2e760a0679e92a34e96fe78223e | refs/heads/master | 2021-05-05T00:28:10.156439 | 2018-02-11T13:38:22 | 2018-02-11T13:38:22 | 119,495,540 | 0 | 0 | null | 2018-02-11T12:12:04 | 2018-01-30T06:56:04 | Python | UTF-8 | Python | false | false | 298 | py | from unittest import TestCase
from model.money import Money
from data_store.money_store import MoneyStore
class TestFirebase(TestCase):
def test_get_money(self):
moneyStore = MoneyStore()
moneyStore.add_money(Money('0', 0))
self.assertEqual(moneyStore.get_money(), 0)
| [
"g1344955@cse.kyoto-su.ac.jp"
] | g1344955@cse.kyoto-su.ac.jp |
bfc16d722a5bc34451254853de1f541770c276a7 | 7300938cc6dce48a8142251beba72d17b380435f | /virtual/Lib/site-packages/pip/_vendor/urllib3/__init__.py | 6d4bb7b9435597f069098328e83f8dc579fcb34b | [] | no_license | Sriramg89/Restaurant | 68ba46912ac29a5b2c5f161a74e98ef6d913b7eb | 3c70a42b7fb0ce41d703e16678661d6084c80511 | refs/heads/main | 2023-03-12T02:01:59.943499 | 2021-03-01T05:53:52 | 2021-03-01T05:53:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | """
Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more
"""
from __future__ import absolute_import
# Set default logging handler to avoid "No handler found" warnings.
import logging
import warnings
from logging import NullHandler
from . import exceptions
from ._version ... | [
"37271647+sriramg89@users.noreply.github.com"
] | 37271647+sriramg89@users.noreply.github.com |
e9eb09f19e7d63b9bfe81dc879af7a3ee30c9fe8 | 3a4549470cb0e6e55c98522ba08ce629d60960ea | /froide/foirequest/forms/message.py | 6cde8a2c9fb2940245b2d227868a2feca2062ae1 | [
"MIT"
] | permissive | lanmarc77/froide | 4e28d3e33017b3e776a7eb13d63c7b71bdb3bc68 | bddc8bb27c8a7c2a959003dda724194948bc381a | refs/heads/main | 2023-03-17T03:02:01.277465 | 2021-03-06T16:37:26 | 2021-03-06T16:37:26 | 345,137,125 | 0 | 0 | MIT | 2021-03-06T16:13:09 | 2021-03-06T16:13:09 | null | UTF-8 | Python | false | false | 30,056 | py | import datetime
import logging
import os
import re
from django.conf import settings
from django.utils.translation import gettext_lazy as _, ngettext_lazy
from django.template.defaultfilters import slugify
from django.utils import timezone
from django import forms
from django.db import transaction
from django.template.... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
a79e40c8dd49c02810b3d44dd89544a27c93d3fa | 623701d50b98b678707771f06cd81d72a819ee80 | /sigfox_api_client/rest.py | ba0ddb350449f4b96f6b891f1777a3ad48695c10 | [] | no_license | besterjaco/sigfoxapi | 1a63c6687bd26aa8a76248a8ea59532c786f6c78 | 03d86819365de95c0da32de1b1de0b7fd20a3c3d | refs/heads/master | 2020-09-21T17:05:47.908180 | 2019-11-27T11:20:51 | 2019-11-27T11:20:51 | 224,859,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,202 | py | # coding: utf-8
"""
Sigfox API
# API overview Sigfox API is used to integrate with the Sigfox platform. The API uses the HTTP protocol, following the REST principles (POST, GET, DELETE, PUT requests). The API endpoints accept and return data in the JSON format, with the corresponding \"application/json\" co... | [
"JacoB3@discovery.co.za"
] | JacoB3@discovery.co.za |
3c0ba2d8937238ff3dccd5731a2bb8a8952de192 | e22390ec9aa1a842626075113472f81076e1bf5f | /pullenti/ner/core/TableRowToken.py | d85db6d1d6fa1c395548c238dd789f1b4a41e2bc | [] | no_license | pullenti/PullentiPython | ba9f450f3f49786732e80f34d0506d4a6d41afc3 | 815d550b99f113034c27f60d97493ce2f8e4cfcc | refs/heads/master | 2021-06-22T17:12:36.771479 | 2020-12-11T06:10:23 | 2020-12-11T06:10:23 | 161,268,453 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # Copyright (c) 2013, Pullenti. All rights reserved.
# Non-Commercial Freeware and Commercial Software.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project.
# The latest version of the code is available on the site www.pullenti.ru
from pullenti.ner.MetaTo... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
2de2d9d72f8dc018921e35018f879b625dc0ce73 | c291ba4506a8998df8d7f384c911f6a0a1294001 | /bai__92/Cau_2/TimKiemDm.py | ce4806415471cb0e27da415b5ae37601d4d799bb | [] | no_license | thanh-falis/Python | f70804ea4a3c127dcb7738d4e7c6ddb4c5a0a9d4 | fa9f98d18e0de66caade7c355aa6084f2d61aab3 | refs/heads/main | 2023-08-18T17:34:29.851365 | 2021-09-30T12:09:30 | 2021-09-30T12:09:30 | 398,952,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from QLSP import *
data = input("Nhập từ khóa muốn tìm kiếm:")
file = DocFile("danhmucSanpham.txt")
print(file)
print("*"*30)
print("Kết quả tìm kiếm:")
TimKiemDanhMuc(data) | [
"thanhelma2020|@gmail.com"
] | thanhelma2020|@gmail.com |
5dce14bddbb52be0bbd749ce61c6890163c7d938 | 22ca8a28a9b10cb92abc8756521781ebe9fd78ec | /src/citibike_trips.py | 82136b820f5efc44028a3f123a06a7f485dd3635 | [] | no_license | ResidentMario/citibike-sankey | 017460d64ca8ea57b0f8a5581e902866e855a14e | 237ed9a089229f7023dfab137917acdb0bd75a23 | refs/heads/master | 2020-12-07T19:54:28.204704 | 2016-09-15T01:29:11 | 2016-09-15T01:29:11 | 67,977,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,515 | py | import requests
import zipfile
import os
import io
import pandas as pd
import googlemaps
import json
import numpy as np
import geojson
from polyline.codec import PolylineCodec
from datetime import datetime, timedelta
from pymongo import MongoClient
from pymongo.errors import ServerSelectionTimeoutError
import pymongo
i... | [
"aleksey.bilogur@gmail.com"
] | aleksey.bilogur@gmail.com |
9350784a903ca86ae303b2fd83a9bf5bcef67e10 | 5ab1130ae04735463fc44102adbe7d7072d9b8c9 | /pylearn/scipy/optimization/unconstrained/rosenbrock.py | e0b259df0424c689696a53fb033d5fb928f51aab | [] | no_license | sigirisetti/python_projects | 8f917a6d052d7cb717f48fde8b791e4638ea821d | 123386b2f91be870e4795df14109142d7cd2eb96 | refs/heads/master | 2023-08-23T04:34:36.464290 | 2023-08-13T11:15:33 | 2023-08-13T11:15:33 | 130,079,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | import numpy as np
import pandas as pd
from scipy.optimize import minimize
from util import timer
df = pd.DataFrame.from_items([('Optimization Method', []), ('Iterations', []), ('Function Evaluations', []), ('Status', []), ('Message', []), ('Time in Secs', []), ])
def rosen(x):
"""The Rosenbrock function"""
... | [
"sigirisetti@yahoo.com"
] | sigirisetti@yahoo.com |
30a15cdd42e6965ef99a09588367a249182dbafa | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/operations/_operations.py | 7c4f7751ce6e36030967e19d85ecf20eeba0be94 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 5,061 | 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"
] | test-repo-billy.noreply@github.com |
2a07b25d7a904681d6206b3511f12bd6ad09924d | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/926.py | 2c452bfc684965b647a36204391265cc5e65c5c4 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py |
# 前缀和解法
class Solution:
def minFlipsMonoIncr(self, S: str) -> int:
P = [0]
for x in S:
P.append(P[-1] + int(x))
return min(P[j] + len(S)-j-(P[-1]-P[j])
for j in range(len(P)))
| [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
18771097a6f3601b4dc565a926313d08c7a9b61e | b3da2b2a8f8e451020a86791ea258cb000e21416 | /das/das/doctype/shift_assignment_tool/shift_assignment_tool.py | 75596eac1b6fa4219af312225fb0283f4d7c78e5 | [
"MIT"
] | permissive | asoral/das | 5412bc6538247f48d6c36c69f308fed1cebacba7 | dd5de3b55b06fc2b523c8020acbc96ab86be4609 | refs/heads/master | 2021-01-04T10:37:54.631552 | 2019-10-11T10:49:06 | 2019-10-11T10:49:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe,json
from frappe.model.document import Document
class ShiftAssignmentTool(Document):
pass
@frappe.whitelist()
def update_shift(shift_assignment_... | [
"hereabdulla@gmail.com"
] | hereabdulla@gmail.com |
d4d23339d70ceea7814bb6eb15979cff1f11cb13 | c045416b1f5c5bc4f0fbfa7d64a7cfa5afe1c3a4 | /magentaT/magenta/music/chords_lib.py | 23ba520bc89bafc1d43c41f0dc2516b4ab6bc727 | [
"Apache-2.0"
] | permissive | Tiasa/CreativeComposer | e037055c232dc6b261b4fd7542cab3865e7ec1c4 | b2ea3d1570b367068021726f1858587a0ad4d09f | refs/heads/master | 2021-06-27T06:59:37.351749 | 2020-10-29T21:54:19 | 2020-10-29T21:54:19 | 143,206,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,934 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"tiasa.ap.10@gmail.com"
] | tiasa.ap.10@gmail.com |
3d5248c39ed9fc1573831a5fa278e8e32b485692 | a8d10242ceb3fac0acad44816a1fbe2ed969421d | /WHOIS/whois_003.py | 19726403527ee78d092e2fe9bae08533663f1e2d | [] | no_license | Toni-CBS/MBA_Python_01 | 5bf0ec3392e306589548b28fcd92400faa23adb7 | 5c760a5443867857dedd5d518264a0c1d9f10474 | refs/heads/main | 2023-08-24T00:47:45.000045 | 2021-10-18T23:02:08 | 2021-10-18T23:02:08 | 404,312,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #!/usr/bin/python
import whois
target = "google.com"
def func_whois(_domain):
querywhois = whois.query(_domain)
print("[+] - Nome do dominio", querywhois.name)
print("[+] - Data de criacao: ", querywhois.creation_date)
print("[+] - Data de Expiracao? " , querywhois.expiration_date)
... | [
"yellow@battosai.yellow.dojo"
] | yellow@battosai.yellow.dojo |
25c063e7e0ccec5e76eb6ae6d72a2b7dd7c6261a | d78989a8ce52a98f48d77228c4ea893f7aae31f7 | /symbolic_expressions/sample2-virt-obfuscate-decode-byte-array-false.py | 5b22a381686c1eae7eda45e2e6118076d8521d40 | [] | no_license | llyuer/Tigress_protection | 78ead2cf9979a7b3287175cd812833167d520244 | 77c68c4c949340158b855561726071cfdd82545f | refs/heads/master | 2020-06-17T11:16:40.078433 | 2019-04-16T09:27:29 | 2019-04-16T09:27:29 | 195,908,093 | 1 | 0 | null | 2019-07-09T01:14:06 | 2019-07-09T01:14:06 | null | UTF-8 | Python | false | false | 31,727 | py | #!/usr/bin/env python2
## -*- coding: utf-8 -*-
import sys
def sx(bits, value):
sign_bit = 1 << (bits - 1)
return (value & (sign_bit - 1)) - (value & sign_bit)
SymVar_0 = int(sys.argv[1])
ref_264 = SymVar_0
ref_279 = ref_264 # MOV operation
ref_166095 = ref_279 # MOV operation
ref_166263 = ref_166095 # MOV ... | [
"jonathan.salwan@gmail.com"
] | jonathan.salwan@gmail.com |
d9af4cf0b9e3a100cc451df486f6a96aacfe0297 | aa4aa51465d79e0447cbe22281f0402ca95bdaa2 | /python/Network-Intrusion-Detection-master/NSL-KDD/SimpleRNN/binary/lskeras1test.py | 6be208b3c32cff2e7a0b96ed069dc2f19c3ed572 | [] | no_license | zuozuo12/usualProject | 2ca06bb7a1ff6f99343f1997053ba8d5a48e00a7 | 335bcef5d76d6cf0c84dd3209176089b3b07fbba | refs/heads/master | 2020-11-27T17:02:33.252884 | 2019-10-22T06:46:32 | 2019-10-22T06:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | py | from __future__ import print_function
from sklearn.cross_validation import train_test_split
import pandas as pd
import numpy as np
np.random.seed(1337) # for reproducibility
from keras.preprocessing import sequence
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers import Dense, Dro... | [
"llfwyyx@163.com"
] | llfwyyx@163.com |
544dc12ee67d639626e18366a8af3f1df0857ee3 | 035cabcbbd378a360633baaf3e3ded1792e5704e | /3/comp/main.py | c9a4dabc4362b9015ad636947a75aa8538e7f84c | [] | no_license | tomasderner97/Praktikum-III | c30a55050033d1ea23bd142401a6ae30eb18f902 | 8f84b4a11a197dc4e322db6976de848500906e88 | refs/heads/master | 2020-09-08T21:20:35.554960 | 2019-11-12T14:58:17 | 2019-11-12T14:58:17 | 221,243,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | from labrep_utils import *
A = uf(1.659, 0.003) * 1e-6
rtut_minuty = dataframe_from_csv("../data/rtut.csv")
rtut = pd.DataFrame()
rtut["vlevo"] = rtut_minuty["vlevo_stupne"] + rtut_minuty["vlevo_minuty"] / 60
rtut["vpravo"] = rtut_minuty["vpravo_stupne"] + rtut_minuty["vpravo_minuty"] / 60
rtut["vpravo"] -= 3... | [
"tomasderner97@gmail.com"
] | tomasderner97@gmail.com |
afcc896518db8edd6e7c1da49f3b3b80f0a15deb | c0cffe5f31070ac163e3963b8616da10d131e355 | /env/lib/python3.6/site-packages/scipy/special/_precompute/utils.py | 45a1bae1290f5364bed30f3434c6e2d189b53c13 | [
"Apache-2.0"
] | permissive | SanaAwan5/smart_contracts7 | 1bc9a0bf2a700e527436d1f6cee8e0251c0e651b | 40a487cb3843e86ab5e4cb50b1aafa2095f648cd | refs/heads/master | 2021-08-31T21:50:35.086907 | 2019-06-25T05:22:19 | 2019-06-25T05:22:19 | 193,639,676 | 0 | 1 | Apache-2.0 | 2021-08-11T03:42:07 | 2019-06-25T05:22:07 | Python | UTF-8 | Python | false | false | 1,182 | py | from __future__ import division, print_function, absolute_import
import warnings
try:
import mpmath as mp
except ImportError:
pass
try:
# Can remove when sympy #11255 is resolved; see
# https://github.com/sympy/sympy/issues/11255
with warnings.catch_warnings():
warnings.simplefilter("igno... | [
"sanaawan@ittc.ku.edu"
] | sanaawan@ittc.ku.edu |
5625dfc9e0e188ae78d55c088efae514dba8912e | a2fb2f3821af2ae59e6354f93272c54b3abae52f | /stackdio/api/users/tests/__init__.py | 7f3ef76f94bd3d7299431e56b21fd09459fb779e | [
"Apache-2.0"
] | permissive | pombredanne/stackdio | 1bae1803083f76df9c7bba56c0ffcf08897bbba6 | 8f037c428c187b65750ab387a3e11ed816f33be6 | refs/heads/master | 2021-01-18T11:30:14.157528 | 2016-01-28T17:15:05 | 2016-01-28T17:15:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # -*- coding: utf-8 -*-
# Copyright 2014, Digital Reasoning
#
# 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 applica... | [
"clark.perkins@digitalreasoning.com"
] | clark.perkins@digitalreasoning.com |
ecbd6aa8bec606978050bff3d95190ed9cb1a2f2 | d8d668c76f446011e8d7edb7a526575dc80b6290 | /schemas/question.py | a27981b6cb9faae6655f2d646a00733e9271b3d4 | [] | no_license | LondonComputadores/flask-psql-sqlalchemy-alembic | 80a351a06d07c6c2480fa8b0c5862658eae3c4ab | ceaf7e0688b59a343c5fb7131b5386d704e0920b | refs/heads/main | 2023-07-06T13:32:25.818936 | 2021-08-11T17:57:44 | 2021-08-11T17:57:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | from app.database.ma import ma
from app.models.question import QuestionModel
from marshmallow import fields
class QuestionSchemaMinimal(ma.SQLAlchemySchema):
class Meta:
model = QuestionModel
id = ma.auto_field()
question = ma.auto_field()
domain = ma.auto_field()
class QuestionSchema(Questi... | [
"london.computadores@gmail.com"
] | london.computadores@gmail.com |
4bd0246d39796a916a02ce9dc0c9e47b95c1e253 | 99b0631baa2fd9ab2455d848b47febf581916272 | /Api_Auto_Test/common_code/reg_fixed_account.py | f61df632ea159dbb0f110a9e24fb0a60d9647277 | [] | no_license | seceast/PyProjects | a934e366cb619f2610d75b9a0fb47d818814a4de | 7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1 | refs/heads/master | 2023-03-07T22:23:21.229489 | 2021-02-25T05:37:58 | 2021-02-25T05:37:58 | 265,480,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,820 | py | #!/user/bin/env python
# -*- coding: utf-8 -*-
# __author__ = yangyd
# Create time: 2019/7/16 0016 15:58
import os
from common_code.operate_mysql import OperateMysql
from common_code.project_path import CONFIG_PATH
from common_code.operate_http_requests import HttpRequest
from common_code.operate_config import DoCon... | [
"yangyadong25@163.com"
] | yangyadong25@163.com |
11cfb58441b8505c6a931658c82412b37130185f | 16c8fdf291430475f40d578b0d64552eb64046e9 | /colour/continuous/tests/test_abstract.py | 9333e1aa98284d30866cdfa9e76b0ae63e46cc0b | [
"BSD-3-Clause"
] | permissive | nodefeet/colour | 4c1bfed87ce173ff878bdf288fd9828bb68022e3 | 319dd5b1c45aef6983eff1830f918c1e593fb530 | refs/heads/develop | 2022-02-19T17:39:36.657993 | 2022-02-15T08:38:26 | 2022-02-15T08:38:26 | 460,456,444 | 0 | 0 | BSD-3-Clause | 2022-02-17T13:53:37 | 2022-02-17T13:53:36 | null | UTF-8 | Python | false | false | 2,040 | py | """Defines the unit tests for the :mod:`colour.continuous.abstract` module."""
import unittest
from colour.continuous import AbstractContinuousFunction
__author__ = "Colour Developers"
__copyright__ = "Copyright 2013 Colour Developers"
__license__ = "New BSD License - https://opensource.org/licenses/BSD-3-Clause"
__... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
5bc83cfa189dabb0ff096d8a78d080a787f8a656 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /testing/test_programs/benchmark_suite/shedskin/path_tracing.py | 1aa272c8f334243cd9e9ea0d4e81c3e4c5d47dc0 | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,634 | py | from random import random
from math import sqrt
import sys
# path tracer, (c) jonas wagner (http://29a.ch/)
# http://29a.ch/2010/5/17/path-tracing-a-cornell-box-in-javascript
# converted to Python by <anonymous>
ITERATIONS = 10 # should be much higher for good quality
class V3(object):
def __init__(self, x_, y... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
b5666ed6aa84d8b3ecbd32245c4225368fd86384 | f030c1b724ad3a04dade2463374bd3c03e17b93c | /napari/layers/_source.py | 2fc09ec50e40a97114f61c8014856db297efbb73 | [
"BSD-3-Clause"
] | permissive | sandutsar/napari | 3c8568979c320d57cdb80e2ea2a5db7ea035413b | 37d476bc0b00252177f17f25e7d1fd52ddc4bb69 | refs/heads/master | 2023-07-25T08:31:32.189843 | 2021-09-05T11:01:02 | 2021-09-05T11:01:02 | 390,003,115 | 0 | 0 | BSD-3-Clause | 2021-09-05T12:18:14 | 2021-07-27T13:56:23 | Python | UTF-8 | Python | false | false | 2,993 | py | from __future__ import annotations
from contextlib import contextmanager
from contextvars import ContextVar
from typing import Optional, Tuple
from magicgui.widgets import FunctionGui
from pydantic import BaseModel
class Source(BaseModel):
"""An object to store the provenance of a layer.
Parameters
---... | [
"noreply@github.com"
] | sandutsar.noreply@github.com |
4a33138133c0d3c934ebc2ba7e37d53c93f5cf43 | c4e9b3e5686ed8c6e885aa9f6a72a571f4b33db6 | /matplotlib_study/plot3d.py | 613421f202ed1e3b20e10b377004e9ae6a3d7412 | [] | no_license | WhiteCri/learn-advanced-python | c2a081db0f901bb76e470341497014b4384ba803 | 8111cb12e8b05a9168a0236e05f4a6a1cda255eb | refs/heads/master | 2023-04-13T22:55:49.060522 | 2021-04-28T05:00:49 | 2021-04-28T05:00:49 | 345,628,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from mpl_toolkits import mplot3d
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure()
ax = plt.axes(projection='3d')
z = np.linspace(0, 1, 100)
x = z * np.sin(20 * z)
y = z * np.cos(20 * z)
ax.plot3D(x, y, z, 'gray')
ax.set_title('3D line plot')
plt.show()
from mpl_toolkits import mplot3d
import numpy... | [
"sjrnfu12@naver.com"
] | sjrnfu12@naver.com |
58358377df84919a1713a925eb29ddf926ff02ff | 79e1d04867c4298b23c907f92c7119e4bea8ef02 | /allennlp/allennlp/training/checkpointer.py | 1c65531199aaaed25cb14ba47026756993701366 | [
"Apache-2.0"
] | permissive | ethanjperez/convince | 53db0bcd978831799c68fe63ecb0c91473ec40c4 | ccf60824b28f0ce8ceda44a7ce52a0d117669115 | refs/heads/master | 2023-01-08T09:12:16.722614 | 2021-11-03T18:50:30 | 2021-11-03T18:50:30 | 205,189,291 | 27 | 8 | Apache-2.0 | 2023-01-05T22:43:12 | 2019-08-29T15:03:34 | Python | UTF-8 | Python | false | false | 7,497 | py | from typing import Union, Dict, Any, List, Tuple
import logging
import os
import re
import shutil
import time
import torch
from allennlp.nn import util as nn_util
logger = logging.getLogger(__name__)
class Checkpointer:
"""
This class implements the functionality for checkpointing your model and trainer st... | [
"ethanperez18@gmail.com"
] | ethanperez18@gmail.com |
c718d3cf631ee09f421736a93c51a2fd3def633c | 279b3ee2e33ff1a82f1e9399ba3a82f67c4f314c | /old/rx.py | a3e78a305a0f18bf7d48b158310c96c9ddea70fe | [
"MIT"
] | permissive | timm/bnbad | 1b971fcb71d821cac4b0b74db910e45d2a59facb | eddef66d0635da59f5b8ff4f46ebada12bdc17f4 | refs/heads/master | 2023-02-24T13:39:43.185423 | 2020-07-25T20:27:42 | 2020-07-25T20:27:42 | 279,713,890 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,208 | py | """
"""
### Xtiles
def pairs(lst):
last=lst[0]
for i in lst[1:]:
yield last,i
last = i
class Stats:
"""
Farcade for holding stats functions.
A treatment "`Rx`" is a label (`i.rx`) and a set of
values (`i.all`).
Similar treatments can be `group`ed together
into sets of values with the sa... | [
"tim.menzies@gmail.com"
] | tim.menzies@gmail.com |
c8c6d775ff68ac7ed3fca2bd22bd34f7951d29b4 | 59b3f3e3c082bf0891e8a117251607dac71c7e9c | /dockit/manifest/__init__.py | 63be6dd3a15575324d067e06262800a89c1b45d3 | [
"BSD-3-Clause"
] | permissive | cuker/django-dockit | 55a42af69b4dd41e941fe07ebc70a7a0826bd253 | 406734280ca6b55f66b73b3b4ec5e97ba58f045d | refs/heads/master | 2021-01-17T22:53:38.324005 | 2013-07-18T09:40:35 | 2013-07-18T09:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from common import *
from adaptors import *
from datasources import *
from manifests import *
| [
"jasonk@cukerinteractive.com"
] | jasonk@cukerinteractive.com |
9ef5043077d9edbe590df74015323d437151eb55 | fea928f66d6f6aeb51aa4c3b1841105e03afbc2a | /cQube_release_1.0/Sanity_Testing/Invalid_credentials_check.py | 931441795e86be0a92c027310667a14e7375ff65 | [] | no_license | chetandg123/Project1 | 97dda96458ed519020d5c306c5a64f578fbe3b06 | fd502af6653a9cd7fedce28440229e31cb5a4a4f | refs/heads/master | 2022-12-12T21:10:38.807562 | 2020-08-27T10:25:54 | 2020-08-27T10:25:54 | 259,562,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | import time
import unittest
from selenium import webdriver
from Data.parameters import Data
from get_dir import pwd
class login_test(unittest.TestCase):
def setUp(self):
dri = pwd()
self.driver = webdriver.Chrome(dri.get_driver_path())
self.driver.implicitly_wait(15)
def test_url(se... | [
"chetan.goudar@tibilsolutions.com"
] | chetan.goudar@tibilsolutions.com |
6c702605a3be8a608094ca9b166472fa2c4a835e | d1cb20b43d86a3e20118e776810ca91f078f9951 | /dash/models.py | d7660159feb3a7c3655d538da1ec3146fd326948 | [] | no_license | toluwanicareer/wallet | b3118a86b831eebb08ea1673fa10828632db6891 | ed07c209fbd86e7a9796cc3a4669daf4041071b5 | refs/heads/master | 2020-03-18T16:05:36.884898 | 2018-06-03T10:19:06 | 2018-06-03T10:19:06 | 134,945,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | from django.db import models
from django.contrib.auth.models import User
from .functions import generate_address, create_or_update_online_wallet,create_eth_wallet,subscribe_to_webhook
from django.conf import settings
from django.contrib import messages
import time
import pdb
# Create your models here.
class Wallet(mod... | [
"abiodun.toluwanii@gmail.com"
] | abiodun.toluwanii@gmail.com |
b5c1a3b7dfc429c0cd838f7d31749da0b3f67896 | 98d2ebd7e6a4731dd0c74e74cea25a18086b04ec | /instance_segmentation/configs/activations/iif/iif_r50_4x4_2x_lvis_v05.py | fe655b3d621cf35ccb918515defc6ff2e7b5d5b0 | [
"Apache-2.0"
] | permissive | kostas1515/iif | feaf216e25e3ba36f4fd8b387e7013d4b8ad1920 | cea5da4539ce918fde1e30946743816821e68634 | refs/heads/master | 2023-05-23T06:04:54.617730 | 2022-09-11T14:26:03 | 2022-09-11T14:26:03 | 385,597,246 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | _base_ = [
'../../lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis_v0.5.py'
]
data = dict(train=dict(oversample_thr=0.0))
model = dict(roi_head=dict(bbox_head=dict(loss_cls=dict(type="IIFLoss",variant='raw',num_classes=1230,path='./lvis_files/idf_1231.csv'),
init_cfg = di... | [
"konsa15@liverpool.ac.uk"
] | konsa15@liverpool.ac.uk |
943848aa5cc3ba8143ef3363e8c8b27b68cf3e7a | edbb7fc7241d4cf98700c0c273021f262a1f6feb | /led/writer/dotstar.py | ff4430770ebab7fdde9a208be362c8e0ed9ec661 | [] | no_license | rdeits/Bemis-100 | a4867df5551658ad23e5a12b19b9d2e667f23f95 | 0d2ffaaf7e841b2983dfb12853947a29dbf62449 | refs/heads/master | 2021-12-27T06:30:32.122940 | 2020-12-19T23:01:08 | 2020-12-19T23:01:08 | 12,530,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | from __future__ import division
import led.ledctl as ledctl
import sys
import json
import board # provided by adafruit-circuitpython-dotstar
import busio
import numpy as np
class DotstarWriter(ledctl.WriterNode):
def __init__(self, **kwargs):
ledctl.WriterNode.__init__(self, **kwargs)
# Constr... | [
"robin.deits@gmail.com"
] | robin.deits@gmail.com |
e138aee93da7f18dc31c5360faf50f1b02ab5953 | f744d8e646ea67d59df66cb3050e3890ed68b4a0 | /plans_src/plans/urls.py | e24b05520d3e73dbfbe889598c0bffe85c47d53b | [] | no_license | Aisuluu1405/python_group_3_homework_45_Aisulu_Dzhusupova | c6b75a717d37555553b30ba32b23cc43d3696b3e | e6666847e6e3390751fbb80dfff89f29543172e1 | refs/heads/master | 2023-05-04T20:40:35.403541 | 2019-09-16T12:15:38 | 2019-09-16T12:15:38 | 208,769,293 | 0 | 0 | null | 2023-04-21T20:37:19 | 2019-09-16T10:09:50 | Python | UTF-8 | Python | false | false | 576 | py | from django.contrib import admin
from django.urls import path
from webapp.views import index_view, plan_view, plan_create_view, plan_edit, delete_view, item_delete
urlpatterns = [
path('admin/', admin.site.urls),
path('', index_view, name='index'),
path('plan/<int:pk>/', plan_view, name='view_plan'),
... | [
"aisuluueco2009@yandex.ru"
] | aisuluueco2009@yandex.ru |
5b56fe26f6f041c0b99c2c4e60dd55d8aed31acd | 8aa0d1d407bb1c66d01261f7e2c4e9832e856a2d | /experiments/experiments_ccle_ic/cross_validation/nmf_icm/nmf_icm_nested_xval.py | 3827322970efaf0486a7e69ca6ba04dc461a4408 | [] | no_license | garedaba/BNMTF_ARD | 59e3ec1dbfd2a9ab9f4ec61368ec06e3783c3ee4 | 0a89e4b4971ff66c25010bd53ee2622aeaf69ae9 | refs/heads/master | 2022-01-16T06:57:12.581285 | 2018-06-10T10:22:12 | 2018-06-10T10:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | """
Run the nested cross-validation for the Gibbs NMF class, on the CCLE IC50 dataset.
"""
import sys, os
project_location = os.path.dirname(__file__)+"/../../../../../"
sys.path.append(project_location)
from BNMTF_ARD.code.models.nmf_icm import nmf_icm
from BNMTF_ARD.code.cross_validation.nested_matrix_cross_validat... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
4e673b723198493429799e7a20231bae52ea5423 | 23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9 | /app/game/action/node/sdk_tencent.py | 93694bd93ccc48c127befb2a1d5f4ea749db42f2 | [] | no_license | Cuick/traversing | 210fcfb1c780037de59343fffeb4fa4d3f2eae32 | c78982580af7f63c8bff4dcb37005b7f7c682b5b | refs/heads/master | 2021-01-10T17:38:37.899460 | 2016-11-18T06:06:55 | 2016-11-18T06:06:55 | 55,397,540 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | # -*- coding:utf-8 -*-
"""
created by server on 15-2-11下午3:49.
"""
from gfirefly.server.globalobject import remoteserviceHandle
from gfirefly.server.logobj import logger
from app.proto_file.common_pb2 import GetGoldResponse
from app.proto_file.game_pb2 import GameLoginRequest
from shared.db_opear.configs_data import ga... | [
"zxzxck@163.com"
] | zxzxck@163.com |
757ea18b8316ffeb143b80586451ed1e1fcb97f3 | c51eef37bb983a9c35635c7ccc96a0cf689a7438 | /com/chapter10_grains/07_print_for2.py | 7154e42edb4dfea2e327e9e51cc59f3154602ac2 | [] | no_license | Kyeongrok/python_crawler | 0a717b43be36584af1b0f7c1ad0c79108a5d11e0 | 5a5da8af7bb080f752a9a066741ac8adab136a3a | refs/heads/master | 2022-09-13T03:15:08.053639 | 2022-08-02T15:45:03 | 2022-08-02T15:45:03 | 124,719,435 | 40 | 34 | null | 2019-02-27T08:29:52 | 2018-03-11T03:20:32 | HTML | UTF-8 | Python | false | false | 296 | py | from urllib.request import urlopen
import json
from_date = "2010-01-01"
to_date = "2018-04-28"
url = "http://grains.krei.re.kr/chart/main_chart/index/kind/W/sdate/" + from_date + "/edate/" + to_date
text = urlopen(url)
json_objs = json.load(text)
for item in json_objs[0:10]:
print(item)
| [
"kyeongrok.kim@okiconcession.com"
] | kyeongrok.kim@okiconcession.com |
4c044c8f4ae147c0b15ed5048feb0a1464e07e17 | ef6e86a3bbbf309c6ac7f4c87254001b6b410d7f | /benchmarks/operator_benchmark/benchmark_pytorch.py | 6d13fdb994bbc17280433a60bf07f5df77ea03e8 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | MJ10/pytorch | 92c2a8440590aac3a21ddd5f10b8ef6666ff13b0 | cd4f11f9cc7b7533aa46f9292e67c1f917b34a22 | refs/heads/master | 2020-07-24T08:06:34.957193 | 2019-10-16T05:14:32 | 2019-10-16T05:14:32 | 207,856,631 | 1 | 0 | NOASSERTION | 2019-09-11T16:23:28 | 2019-09-11T16:23:21 | null | UTF-8 | Python | false | false | 6,779 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import time
import json
import benchmark_core
import torch
import cpp_extension # noqa
"""PyTorch performance microbenchmarks.
This module contains PyTorch-specific fu... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8a19dfdc61d5453ab52adb07f7cd3ba385e3c5b3 | 2efa7fa6c3805db49be3e6eda25278a2d50ac9e3 | /md-api/nc-create-xr-mpls-ldp-cfg-99-ydk.py | 01085589f3fc6534de39521605a30d6a39341221 | [
"Apache-2.0"
] | permissive | pushou/cleu2017-ltrspg-2601 | 37a71a8cd2789586cc8252ed4dc7d8018c09f7c2 | 11580c4fcdeead16b2f0680141ad98b8d1f4d1a2 | refs/heads/master | 2020-04-30T04:54:33.375132 | 2017-06-09T23:15:18 | 2017-06-09T23:15:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,296 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
d78851c6dbb4a350a5ff3aec50fa4186ed646948 | fabc9a21767482e4b18021f9acacaf5147a8af8c | /FradulentActivity.py | ff33d46a64a7df071428b899499d9e44cf43d7ce | [] | no_license | PriyankaDwivedi23/CSCI.799.09-Independent_Study | 66bcc6db9d4dd7050656df96d04923f39d4822ef | 3a09aab4e3de4e1b6ff877bd6a0b0c79ae527dc9 | refs/heads/master | 2020-09-27T19:25:17.110090 | 2019-12-15T23:43:15 | 2019-12-15T23:43:15 | 226,591,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | #!/bin/python3
import math
import os
from collections import deque
def getMedian(n):
if n % 2 == 0:
return int(n / 2)
return int(n/2 +1)
def median(arr, days, medianPosition):
counter , left = 0 , 0
while counter < medianPosition:
counter += arr[left]
left +=1
right = le... | [
"you@example.com"
] | you@example.com |
adb2b80833ab7ae00bc2274e2a9acd025f66deab | e26586e8647bf440d74d11d1dbe4314c78edfdb9 | /mediamanagement/migrations/0011_auto_20191125_0017.py | d4243cf03cdbb59973472ca7f27ec91bc0594b98 | [] | no_license | kranthi0987/whatsappbusinessdjango | 1eebbbfe79a3ccad7208f0166144cfb7e58e4479 | 2113a1ec851f05df913089e1cfd2fbc76edc77c0 | refs/heads/master | 2023-01-25T02:13:32.271448 | 2020-03-12T18:55:46 | 2020-03-12T18:55:46 | 223,013,794 | 1 | 1 | null | 2022-12-11T14:12:27 | 2019-11-20T19:41:40 | JavaScript | UTF-8 | Python | false | false | 613 | py | # Generated by Django 2.2.6 on 2019-11-24 18:47
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('mediamanagement', '0010_auto_20191123_1059'),
]
operations = [
migrations.RenameField(
model_name='mediamessagemodel... | [
"kranthi0987@gmail.com"
] | kranthi0987@gmail.com |
f3e6e62ea270e853951b749d993589a920b2ebc3 | 544648d1fa2c1e78af931a6f22ae4b83018d4d65 | /ue4docker/infrastructure/WindowsUtils.py | 3088580d96c9c7085adac91be1f4a4c9637c7b2e | [
"MIT"
] | permissive | damonkim-83/ue4-docker | 3b82c9d6893a459a3945adc983aea3a30cede02c | 9b1595527b2288653ff7648b4db0b97c1bc41457 | refs/heads/master | 2020-09-08T13:49:53.795549 | 2019-11-12T07:03:18 | 2019-11-12T07:03:18 | 221,151,385 | 0 | 0 | MIT | 2019-11-12T06:59:24 | 2019-11-12T06:59:23 | null | UTF-8 | Python | false | false | 5,276 | py | from .PackageUtils import PackageUtils
import os, platform
if platform.system() == 'Windows':
import winreg
# Import the `semver` package even when the conflicting `node-semver` package is present
semver = PackageUtils.importFile('semver', os.path.join(PackageUtils.getPackageLocation('semver'), 'semver.py'))
class ... | [
"adam.rehn@my.jcu.edu.au"
] | adam.rehn@my.jcu.edu.au |
e364185442025c6160c11ba028b364eb27e3408e | c440ae324c8d5487679b066b62e64176487b4f6a | /mysite/books/views.py | ddcccfe38de61c41ab1db0c6c182bcf78e6aa8b6 | [] | no_license | gangyou/python_execrise | d19eef8acf9e6565e56b27204184ca018d0e7712 | 32afdd9b45a0ecc6c966471bda0d3e03ac632aea | refs/heads/master | 2021-01-23T05:35:21.659681 | 2014-02-20T01:24:26 | 2014-02-20T01:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | from django.shortcuts import render_to_response
from django.http import HttpResponse, HttpResponseRedirect
from books.models import Book
from django.core.mail import send_mail
from django.views.generic.base import TemplateView
from books.forms import AuthorForm
from django.shortcuts import render
def forms(request):
... | [
"gangyou@gmail.com"
] | gangyou@gmail.com |
0096a7def808984269e6172d03cccea4fa7e27de | d7663e323e2b48ad094e0ab7454ab0bed73aafd1 | /pychzrm course/exercise_kung_fu/exercise_list.py | bd4205e130e96f1bb84324fe64c93a988702bee6 | [] | no_license | Jack-HFK/hfklswn | f9b775567d5cdbea099ec81e135a86915ab13a90 | f125671a6c07e35f67b49013c492d76c31e3219f | refs/heads/master | 2021-06-19T05:58:54.699104 | 2019-08-09T10:12:22 | 2019-08-09T10:12:22 | 201,442,926 | 7 | 0 | null | 2021-04-20T18:26:03 | 2019-08-09T10:07:20 | HTML | UTF-8 | Python | false | false | 497 | py | # zip() = ('a', 1)('b', 2)('c', 3)('d', 4)
a0 = dict(zip(("a","b","c","d","e"),(1,2,3,4))) # {'a': 1, 'b': 2, 'c': 3, 'd': 4}
a1 = range(10) # range(0, 10)
a2 = [i for i in a1 if i in a0]
print(a2)
a3 = [a0[s]for s in a0] #[1, 2, 3, 4]
a4 = [i for i in a1 if i in a3 ] #[1, 2, 3, 4]
a5 = {i:i*i for i in a1} #{0: 0... | [
"88888888@qq.com"
] | 88888888@qq.com |
26e1717e11d4defec7a4917ab8fc86d6796fbfff | a29310948867f5f07109fcd225a84282ad7eea16 | /list_test/list_index.py | 278e1ea833828490eb0a4d65a5fc9fb23537921f | [] | no_license | likeweilikewei/Python-study-demo | 09b266c0756b6e340e8b8e3153a7e497be8ee1a9 | 7dd4bc851273a5815d8980f9857828abfa5364a7 | refs/heads/master | 2020-06-26T21:17:27.095532 | 2019-07-31T02:17:43 | 2019-07-31T02:17:43 | 199,760,324 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | #! /user/bin/env python
# -*- coding=utf-8 -*-
def list_index():
lists = ['pe', 'ps', 'amount', 'ps']
old_lists = ["stkRealTimeState:*->shrCd", "stkRealTimeState:*->shrNm", "stkRealTimeState:*->nMatch",
"stkRealTimeState:*->riseAndFallRate"]
print(lists.index('ps'))
print(lists.index(... | [
"1293120583@qq,com"
] | 1293120583@qq,com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.