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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b8ef6e4ddfe11306702678e9a8e5c00eac0656c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02901/s181974865.py | e2137c4696abe05b40a7101f829d7767622b0d43 | [] | 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 | 442 | py | N, M = map(int, input().split())
key = []
for _ in range(M):
a, b = map(int, input().split())
s = 0
C = list(map(lambda x:int(x)-1, input().split()))
for c in C:
s |= 1<<c
key += [(s, a)]
dp = [float('inf')]*(1<<N)
dp[0] = 0
for s in range(1<<N):
for i in range(M):
t = s | key[i][0] # 遷移先
cos... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e9cac985d19977a538b2f9e0a5dcdfd6c2452669 | 971300f5983692e12805805dd49e2f77fa20250f | /src/branches/dae_dtalite_integration/core/models/abstract_regression_model.py | 9648228c09e3b79b4c09baf452bbfcb9febf81a4 | [] | no_license | MAlbertini95/simtravel | 3a18ee302f6d9ab676455caaad15461874a698a9 | 4844927243a854b9a93f1b1d93f795ff116a7212 | refs/heads/master | 2021-04-19T03:04:26.752252 | 2014-07-12T00:50:11 | 2014-07-12T00:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,342 | py | from numpy import all, array, zeros
from scipy import exp
from openamos.core.models.abstract_model import Model
from openamos.core.errors import SpecificationError, ErrorSpecificationError
class AbstractRegressionModel(Model):
def __init__(self, specification, error_specification):
"""
This... | [
"karthik.charan@8e946292-11aa-11df-992a-f3fa5211fe9f"
] | karthik.charan@8e946292-11aa-11df-992a-f3fa5211fe9f |
86b0d00083516ac574501614cf84a7ab1f14f983 | 25b2daa09d3994672936231b7949ad60292fd052 | /apps/cart/forms.py | 7c4ace067207ccb673e8085d0db87a30f6253f02 | [] | no_license | pavelm2007/shop | c1896145e3b3c43fd25c32e0e39697b6cbacadc9 | 979bbdfd51c53f1757e1cc5646e61bd71e8fce40 | refs/heads/master | 2021-01-25T10:29:50.502933 | 2014-05-15T07:54:07 | 2014-05-15T07:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,570 | py | # -*- coding: utf-8 -*-
from django import forms
from django.forms.models import inlineformset_factory
from django.contrib.contenttypes.models import ContentType
from django.template.defaultfilters import striptags
from .models import Order, OrderItem, Contact_info
BASKET_OPTIONS_USE_KEEP = False
class OrderItemF... | [
"pavelm2007@yandex.ru"
] | pavelm2007@yandex.ru |
12d3146f4e383ba18e9a4c88f8655aca2bb439a8 | 94838674ffd175df6194437c1ccc3f90ab409d6c | /pillowV3/log/2018-12-30 15:01:12.856571 | 0d9018eeb9b74f767f0c3a4a8a50e23b98ff40c1 | [] | no_license | WojciechKoz/MyFirstNeuralNetwork | 4fdb3140d8f02257599d005638598f78055c1ac8 | 3cd032aba80ecd71edb0286724ae9ba565b75a81 | refs/heads/master | 2020-04-02T03:02:48.680433 | 2020-02-29T17:57:43 | 2020-02-29T17:57:43 | 153,943,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511,606 | 856571 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
from __future__ import print_function # new print() on python2
from datetime import datetime
import sys
import numpy as np
from mnist import MNIST
# Display full arrays
np.set_printoptions(threshold=np.inf)
mndata = MNIST('./data')
images_full, labels_full = mndata.loa... | [
"246992@student.pwr.edu.pl"
] | 246992@student.pwr.edu.pl |
3c34105bfa17f674e7bb3b8621bc4ceb8ae112b5 | bb88122fc4978b14e8a9b02d8c11f1ce67ea17d0 | /01_keras/keras31_cifar100_1_imshow.py | c2765b3208fba97f52169ea5492007275762cd5d | [] | no_license | star10919/Keras_ | c2c8a6f3d0e1a7ceba9e81dbc51ecfd12bd5fe78 | f3156b7db6e12feea075b46e94b09157f43a141c | refs/heads/main | 2023-08-17T22:44:54.324315 | 2021-10-24T02:47:00 | 2021-10-24T02:47:00 | 390,066,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from tensorflow.keras.datasets import cifar100
import numpy as np
import matplotlib.pyplot as plt
from icecream import ic
(x_train, y_train), (x_test, y_test) = cifar100.load_data()
ic(x_train.shape, y_train.shape) # (50000, 32, 32, 3), (50000, 1)
ic(x_test.shape, y_test.shape) # (10000, 32, 32, 3), (10000, 1)
... | [
"star10919@naver.com"
] | star10919@naver.com |
1183fbfc216acc8a1e4f790c2cf4417f3125aa41 | f694b37f548fe67656bf737073e0221e23b53dfb | /app/models.py | b29b69f52d28438d63166cea33e9228099faca9c | [] | no_license | itsumura-h/django_api_auth_sample | d92937834e79856b7956fddf174682d1d5bd22dc | 4a3244c8a3471573f1f29c3a67ddf924f8649ed1 | refs/heads/master | 2020-05-25T18:51:40.285232 | 2019-05-22T01:08:54 | 2019-05-22T01:08:54 | 187,937,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,703 | py | from django.db import models
from django.contrib.auth.hashers import make_password
from django.utils import timezone
import hashlib
# Create your models here.
class User(models.Model):
def __str__(self):
return str(self.name)
name = models.CharField(max_length=255)
password = models.CharField(ma... | [
"dumblepy@gmail.com"
] | dumblepy@gmail.com |
610035bce67bfdabe6c21fe5bf50792c3954ccad | f02eb256fdaf94bc7fc8e2d7ecb7352b98eaf494 | /tests/test_save_reload_user.py | a0d68fd0753ad0addf27d58d3cb85bc80ff0f58f | [] | no_license | andres0191/AirBnB_clone | b98c4ef70c5f933154367557fc4026a2ce4e258a | 818e60d89939650a2962164690987a0703792ef5 | refs/heads/master | 2021-01-03T23:58:42.569557 | 2020-03-03T00:32:49 | 2020-03-03T00:32:49 | 240,291,850 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | #!/usr/bin/python3
from models.engine.file_storage import FileStorage
from models.base_model import BaseModel
from models.user import User
storage = FileStorage()
storage.reload()
all_objs = storage.all()
print("-- Reloaded objects --")
for obj_id in all_objs.keys():
obj = all_objs[obj_id]
print(obj)
print("... | [
"jodia.ms@outlook.com"
] | jodia.ms@outlook.com |
069a1ecdd2ecdaf92638a7dc6e3f0758e7fc68c6 | f352f9915c0b9d6f7ea010169f5dafd3a9fb8638 | /lib/nltk/classify/decisiontree.py | a4095c909c93dae0b48fa736d684b467dc579d35 | [] | no_license | nltk/nltk.github.com | fa235e76788e6e8e7349e7195e61799c1402e61d | cf0d2aa508a1de9147ccf30bd070660651d55adb | refs/heads/master | 2023-07-31T13:34:20.864897 | 2023-01-02T15:33:19 | 2023-01-02T15:33:19 | 2,686,706 | 34 | 41 | null | 2022-10-06T17:06:49 | 2011-11-01T09:59:49 | HTML | UTF-8 | Python | false | false | 13,083 | py | # Natural Language Toolkit: Decision Tree Classifiers
#
# Copyright (C) 2001-2021 NLTK Project
# Author: Edward Loper <edloper@gmail.com>
# URL: <https://www.nltk.org/>
# For license information, see LICENSE.TXT
"""
A classifier model that decides which label to assign to a token on
the basis of a tree struct... | [
"stevenbird1@gmail.com"
] | stevenbird1@gmail.com |
fc1aed88264779358eff660f119563fd54d8a910 | ae3abdd710878d79e60b1f1c56c5cd394ab511f4 | /scripts/ajive_analysis.py | 4eef9222b51981000f5ac81b3b4d3f1e752f4d9a | [] | no_license | idc9/breast_cancer_image_analysis | 0eee6c7d796aabde8a447085996e32563acf6bd1 | 4a4af9d6b55b3ca38b26111d0f55af89a48b1282 | refs/heads/master | 2020-11-27T14:22:07.967478 | 2020-04-13T23:51:53 | 2020-04-13T23:51:53 | 229,484,796 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,751 | py | import os
from joblib import dump
import matplotlib.pyplot as plt
from jive.AJIVE import AJIVE
from explore.BlockBlock import BlockBlock
from explore.Base import Union
from cbcs_joint.load_analysis_data import load_analysis_data
from cbcs_joint.viz_utils import savefig, mpl_noaxis
from cbcs_joint.Paths import Paths
... | [
"idc9@cornell.edu"
] | idc9@cornell.edu |
93278531bd2f7b0295e3a883583124b4e66288e2 | c0385ff098c71e6b9e9883e5e0b1a23d6ddee30a | /src/apps/accounts/urls.py | 1ea7e73d3c17414ed305e39dbf374e478c3f6d9b | [
"MIT"
] | permissive | ehoversten/Travel-Buddy | c8122e941e491f467d4b085bd09e5f23b2674af6 | e117cfcd14be3d04cab97b4fc28ced3f95f5786b | refs/heads/master | 2022-12-11T08:35:16.098525 | 2020-08-10T18:11:40 | 2020-08-10T18:11:40 | 149,361,212 | 1 | 3 | null | 2022-12-08T02:25:23 | 2018-09-18T22:47:54 | JavaScript | UTF-8 | Python | false | false | 268 | py | from django.conf.urls import url
from .views import (
register_view,
LoginFormView
)
urlpatterns = [
url(r'^$', LoginFormView.as_view(), name='login'),
# url(r'^$', login_view, name='login'),
url(r'^register/$', register_view, name='register'),
]
| [
"sixgg4@gmail.com"
] | sixgg4@gmail.com |
088de244f3f420206a51d57f323c763474709895 | e96e03300af5aeb41b9ced0febefa4fb4a12cd28 | /to_nwb/extensions/general/gen_yaml.py | a830e5845f935a2e7e20e31eaa0fd72ff8a9ce39 | [
"BSD-3-Clause"
] | permissive | deeptimittal12/to_nwb | 4db72499e1696a8d73739aede365b6a4ea878dd7 | 9876a1baf4faf56ba54fe8ff7359129450e2aca0 | refs/heads/master | 2021-05-19T13:12:45.463079 | 2019-06-19T22:09:02 | 2019-06-19T22:09:02 | 251,717,287 | 1 | 0 | BSD-3-Clause | 2020-03-31T20:00:22 | 2020-03-31T20:00:22 | null | UTF-8 | Python | false | false | 1,898 | py | from pynwb.spec import NWBDatasetSpec, NWBNamespaceBuilder, NWBGroupSpec, \
NWBAttributeSpec
namespace = 'general'
ns_path = namespace + '.namespace.yaml'
ext_source = namespace + '.extensions.yaml'
values = NWBAttributeSpec(name='values',
dtype='text',
doc='val... | [
"ben.dichter@gmail.com"
] | ben.dichter@gmail.com |
bde00068d71ed1c31ca61ddb9cd7e7d3d39ec8d1 | aff774e066b5db7fdefa4ca9c760b55fc80a678e | /modelrunner/redis_utils.py | 61b5c3a286a0922517bdafa6dcb1d856eb497514 | [] | no_license | piensa/modelrunner | 3e965d75f2401ace5e7ac931da64b4794e0d1d96 | 385e1e01a8007e156855495393d57a1403ec72b2 | refs/heads/master | 2020-03-18T14:56:37.852622 | 2019-02-04T22:16:05 | 2019-02-04T22:16:05 | 134,876,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | # -*- coding: utf-8 -*-
"""
functions associated with implementing modelrunner 'protocol' via Redis
command dicts are serialized as json
"""
import logging
from .utils import json_dumps_datetime, json_loads_datetime
# setup log
logger = logging.getLogger('modelrunner')
def pop_command(redis_conn, queue_name, timeo... | [
"chris.natali@gmail.com"
] | chris.natali@gmail.com |
8c347fbf4734a6975b4f15136fa2ac019f6ac964 | e5d4d867e8369194e3519d795d57a6df81357c99 | /exps/utils/quaternion.py | 68befca69501d9cfb2f8eefe9b03363921c866ef | [
"MIT"
] | permissive | hyperplane-lab/Generative-3D-Part-Assembly | 76eb2d414af41b4aa8a188257fb12368d8fccf94 | 1e0e671d282d24d9c95a0f0a7ae67fa923575f45 | refs/heads/main | 2023-05-06T20:15:26.504273 | 2021-05-27T13:18:18 | 2021-05-27T13:18:18 | 301,576,236 | 86 | 15 | null | null | null | null | UTF-8 | Python | false | false | 6,606 | py | # Copyright (c) 2018-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import torch
import numpy as np
# PyTorch-backed implementations
def qmul(q, r):
"""
Multiply quaternion(s) q with qu... | [
"you@example.com"
] | you@example.com |
c849667e0bdec93b1f1f55ec5c9906baaa0cb01b | dc7cdeecb1ed52a7bdd18cd20c69aa43897f0830 | /wechatpy/events.py | aaf98a0629cf895fad0e1d7d1358ed7b8fc492ca | [
"MIT"
] | permissive | hurricane1260/wechatpy | 421b0a27b78bbb3bcc33bc6e6685b6beacd55dde | 0d7916e1a894f208dcea18b33803751166378c3d | refs/heads/master | 2021-01-17T18:37:14.535895 | 2014-11-02T16:27:31 | 2014-11-02T16:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,429 | py | from __future__ import absolute_import, unicode_literals
from .fields import StringField, FloatField, IntegerField, BaseField
from .messages import BaseMessage
EVENT_TYPES = {}
def register_event(event_type):
def register(cls):
EVENT_TYPES[event_type] = cls
return cls
return register
clas... | [
"messense@icloud.com"
] | messense@icloud.com |
3b6ebd315450fc2c97862754c665237294407a45 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/scaleform/daapi/view/lobby/profile/ProfileSection.py | b4db4c8e5d4ea33bab42ac314a91489bad338c34 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 4,621 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileSection.py
from helpers import dependency
from helpers import i18n
from gui.Scaleform.daapi.view.meta.ProfileSectionMeta import ProfileSectionMeta
from gui.Scaleform.locale.PROFILE impor... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
33e1acb8213c3949b68066fc4c21db1c9a41b63e | 18239524612cf572bfeaa3e001a3f5d1b872690c | /clients/keto/python/test/test_ory_access_control_policy_roles.py | 58ab31294ec8ab133335aea33cb9535ffefe7585 | [
"Apache-2.0"
] | permissive | simoneromano96/sdk | 2d7af9425dabc30df830a09b26841fb2e8781bf8 | a6113d0daefbbb803790297e4b242d4c7cbbcb22 | refs/heads/master | 2023-05-09T13:50:45.485951 | 2021-05-28T12:18:27 | 2021-05-28T12:18:27 | 371,689,133 | 0 | 0 | Apache-2.0 | 2021-05-28T12:11:41 | 2021-05-28T12:11:40 | null | UTF-8 | Python | false | false | 1,108 | py | # coding: utf-8
"""
ORY Keto
A cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. # noqa: E501
The version of the OpenAPI document: v0.0.0-alpha.1
Contact: hi@ory.sh
Generated by: https://openapi-generator... | [
"noreply@github.com"
] | simoneromano96.noreply@github.com |
17c409f96f6fbfc2ece1feb2169d436079206edf | c61a28aba19f7cdf9a5127e8a782bf115c265e70 | /apps/recruitpro/recruitpro/projects/doctype/project/test_project.py | c4ea5f0a15de18c53a3d959798b6561206bae9f6 | [
"MIT"
] | permissive | sharmilaviji/RecruitPRO-NEW | fa72c8fc00f469a41798b1047c11dcc470fbc495 | dcfaedebe56b45acd6ddcab7e24c939b853a2c8c | refs/heads/master | 2021-05-26T12:14:12.611154 | 2020-04-27T04:40:50 | 2020-04-27T04:40:50 | 254,125,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, teampro and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestProject(unittest.TestCase):
pass
| [
"sharmiviji1997@gmail.com"
] | sharmiviji1997@gmail.com |
1dfd792b4d6b9073b528ef9278bbf99e213f1556 | aa53489a8a63ce7911814ad65fefc72e966e12a4 | /shopstats/manage.py | e9da8239b56bfbc892534a0f34833d40ca16e3a5 | [] | no_license | rajesh67/shopstats | 6e67a238dee0230cb4a0b7d178539e18a60c3dce | 708a225b66420f7103d52d23bcfb97add9a419a7 | refs/heads/master | 2021-01-10T04:53:59.464927 | 2016-01-15T16:37:21 | 2016-01-15T16:37:21 | 49,218,834 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shopstats.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"rajeshmeena.iitkgp@gmail.com"
] | rajeshmeena.iitkgp@gmail.com |
0380022b8c6b8eef636f670ba5bfbc4a414b5801 | da11f3d8ab43b2def03e7e99ed08aec2d578611f | /python编程从入门到实践/第十七章/17-1/java_repos.py | 8ee138382a88ec6e3bdf71d1f9af66c1c60a3d68 | [] | no_license | huanglun1994/learn | ff3bbb1b0afe7e9c0812bd71af62707acbb5b0b5 | 9dc8ddd440e56a9961b118813162323fdfd4f16e | refs/heads/master | 2021-01-01T06:30:34.652264 | 2018-07-09T15:00:21 | 2018-07-09T15:00:21 | 97,444,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | # -*- coding: utf-8 -*-
"""xxxxx"""
__author__ = 'Huang Lun'
import requests
import pygal
from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS
# 执行API调用并存储响应
url = 'https://api.github.com/search/repositories?q=language:java&sort=stars'
r = requests.get(url)
print('Status code: ', r.status_code)
# 将A... | [
"492593760@qq.com"
] | 492593760@qq.com |
f28ba1c32f9bd37f6f17a95addc3e0021621f4e1 | 8de2869bf284e98de6a9b424e90da5ab361d8aac | /book/_build/jupyter_execute/matplotlib/04_LinesAndMarkers.py | 389934d917a8f82f9913f961208dd4315888974e | [] | no_license | hossainlab/dataviz | d37081da066bd88165aba41e2a8050ee17a1b131 | e02b38827ab363f907b8c06c8f7ffc98a6a27a8f | refs/heads/master | 2023-07-20T01:42:47.144900 | 2021-08-29T10:43:15 | 2021-08-29T10:43:15 | 291,055,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
matplotlib.interactive(True)
plt.ion()
matplotlib.is_interactive()
# #### We start off with the previously seen sine curve
# In[2]:
x = np.linspace(start=0, stop=10, num=50)
# In[3]:
plt.plot... | [
"work.jubayer@gmail.com"
] | work.jubayer@gmail.com |
dd7d6a3be9acc10f5538b1fd07a6ee1bfc699701 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_299/ch46_2020_04_06_14_54_53_768265.py | 19931a4dad29c6cad1dbaef1231cbe4501b937b9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | def numero_no_indice(lista):
for i,e in enumerate(lista):
if i!=e:
del lista[i]
return lista | [
"you@example.com"
] | you@example.com |
a99854b984911426cefd12d106e8d4e639de58b4 | 7f203d6d2d48bdc0b768215798f0694803268818 | /test/vnx/resource/test_migration.py | 0a48bd056d09f0df5cd51a5bbe89b270cee31643 | [
"Apache-2.0"
] | permissive | thotypous/storops | 1108a314658def0dac69e0b0d14578283aab50b4 | 8ea8c5a71f2bf93b710c854ee6c3b01f334673a0 | refs/heads/master | 2021-01-21T17:03:31.935679 | 2016-08-22T15:30:54 | 2016-08-22T15:30:54 | 66,502,757 | 0 | 0 | null | 2016-08-24T21:57:36 | 2016-08-24T21:57:35 | null | UTF-8 | Python | false | false | 3,363 | py | # coding=utf-8
# Copyright (c) 2015 EMC Corporation.
# 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... | [
"cedric.zhuang@emc.com"
] | cedric.zhuang@emc.com |
b2ffd186bd314161749bdd589717f9c0c6dc87d0 | 3c62aaf3b1b3c598dbe43a47f4d76ae90b27b098 | /PA2/part1/linear_regression.py | c519c202b7d8fc652487ef864f6557a37e38fa20 | [] | no_license | trademark152/Machine_Learning_CSCI567_USC | e8a222e7d9093bc78cf1a17545faf3e2710bdf39 | 61b614676510fd1fbb49da255a667c8da4a911f7 | refs/heads/master | 2022-12-16T11:50:57.912882 | 2020-09-26T00:20:48 | 2020-09-26T00:20:48 | 298,696,629 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,501 | py | """
Do not change the input and output format.
If our script cannot run your code or the format is improper, your code will not be graded.
The only functions you need to implement in this template is linear_regression_noreg, linear_regression_invertible,regularized_linear_regression,
tune_lambda, test_error and mappin... | [
"trademark152@gmail.com"
] | trademark152@gmail.com |
39ae03eb391316d2130cb398f9458429c9dd0e77 | 339f207fd7dd99b7b6484ffa78bfbf8102c25ede | /wrappedapp/tests/models/test_auth.py | 3826af0a7bbf48a9eb4772fe9bad3857f92bb9b1 | [] | no_license | ralphbean/wrappedapp | 0b3b43d4435b6e16b1a21a0f766bfa3d51450bf2 | 73bbbc0366d06492d0a7822c8b543f5410e15a6f | refs/heads/master | 2016-09-06T10:36:02.820439 | 2011-09-28T18:46:11 | 2011-09-28T18:46:27 | 2,477,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | # -*- coding: utf-8 -*-
"""Test suite for the TG app's models"""
from nose.tools import eq_
from wrappedapp import model
from wrappedapp.tests.models import ModelTest
class TestGroup(ModelTest):
"""Unit test case for the ``Group`` model."""
klass = model.Group
attrs = dict(
group_name = u"test_gro... | [
"ralph.bean@gmail.com"
] | ralph.bean@gmail.com |
9481c3b012fa6b02185d777dafa526c7ef1e00d7 | 8d014c5513a0eeca086010b018b67336f8d042e0 | /cam_esp32cam.py | 253eb82dfa3400a82cc5d443548f35bf88108c6e | [] | no_license | rkuo2000/cv2 | 26ce0a06b4040eabb82319ec44cab5c3639b9495 | 16e64e7092d6654ea470e469d6b15f308ecd1788 | refs/heads/master | 2022-10-12T00:11:35.964818 | 2022-09-30T06:50:35 | 2022-09-30T06:50:35 | 108,848,948 | 5 | 29 | null | 2022-09-29T11:01:48 | 2017-10-30T12:38:58 | Python | UTF-8 | Python | false | false | 681 | py | # open browser at ipaddr of ESP32-CAM to set stream size
# 320x240 doesn't work, other resolution are OK
import numpy as np
import cv2
from urllib.request import urlopen
# port 81 has stream, see ESP32-CAM webserver.ino
url = 'http://192.168.1.5:81/stream'
CAMERA_BUFFER_SIZE = 4096
stream = urlopen(url)
bbb... | [
"noreply@github.com"
] | rkuo2000.noreply@github.com |
34aff31d919f88404099c15990efd64e8c9f7d6a | b9801a2ad269a678acd6113992f063fba2813f65 | /test/test_policy.py | 97c8c6b5d630335fbff44038ef558dd399776b92 | [
"MIT"
] | permissive | ax-ncolyer/automox-console-sdk-python | 6dd01826cc9629b2ee6086ae179b443f9ba8e0db | 27ba2279e2d59e3f0cbfc00e34eddb51838e402e | refs/heads/main | 2023-08-12T20:57:24.264682 | 2021-09-16T02:18:01 | 2021-09-16T02:18:01 | 406,992,680 | 0 | 0 | MIT | 2021-09-16T02:35:32 | 2021-09-16T02:35:31 | null | UTF-8 | Python | false | false | 862 | py | # coding: utf-8
"""
Automox Console API
API for use with the Automox Console # noqa: E501
OpenAPI spec version: 2021-08-10
Contact: support@automox.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import automox_co... | [
"zachary.youtz@automox.com"
] | zachary.youtz@automox.com |
fb31c45f4f37bb9228e0728eb24e7fa6149627df | 6fbca0b22dbf7e79d3e7796bdcc18cc564a77eb1 | /aol/documents/tests.py | 10679b394aeca4ae2fe688e74bfb4832a53e6371 | [] | no_license | mdj2/aol | b998a41552eca6c3d09b7f97891283563d7d3b01 | f848f5328aec30826d726033cd44216be4e9dabd | refs/heads/master | 2021-01-09T20:48:48.372586 | 2014-03-18T18:23:14 | 2014-03-18T18:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | import os
from django.test import TestCase
from django.core.urlresolvers import reverse
from django.conf import settings as SETTINGS
from .models import Document
from aol.users.tests.test_views import LoginMixin
from aol.lakes.models import NHDLake as Lake
class ViewTest(LoginMixin):
fixtures = ['lakes.json']
... | [
"mdj2@pdx.edu"
] | mdj2@pdx.edu |
9973762cd04b563d1fa57643f4ea17013ea0507f | cd627d56e00fafeaa547582145eead9147329b6a | /django-rest/sxfunc/snippets/views.py | 5cafeac4c29da9f55fa20e01723ac2571dcc23f7 | [] | no_license | 2XL/hwDjango | 57c2b7f6ee91e89ebc566891c7e2ceb01e2192c1 | 0816f0e9f842025b14779ed731e8c15a30894a95 | refs/heads/master | 2021-01-13T09:15:33.791503 | 2016-11-08T15:44:32 | 2016-11-08T15:44:32 | 72,609,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | from django.shortcuts import render
# Create your views here.
############ Wrapping Views with function based decorator
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .models import Snippet
from .serializers import SnippetSerializer
... | [
"chenglong.zq@gmail.com"
] | chenglong.zq@gmail.com |
b197c6d251ae7bc5c527c1b8248d9b2690e1135b | 30fced93674fce23af3e0eda735221fab785ca2e | /beta/download.py | 7acc0177eba335648b27a596fc552b4438b80d66 | [] | no_license | li3637/JD_Diy | 8047017fc8caf7cbb8ca6988b1a7146c122ed8b4 | 9222a5e6a92d094b56cf94aa37677ec5a5796993 | refs/heads/master | 2023-06-11T06:30:37.100477 | 2021-06-21T04:34:21 | 2021-06-21T04:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,668 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author : Chiupam
# @Data : 2021-06-15
# @Version : v 1.0
# @Updata :
# @Future :
from JD_Diy import chat_id, jdbot, _ConfigDir, _ScriptsDir, _OwnDir, logger, _JdbotDir
from ..bot.utils import cmd, press_event, backfile, jdcmd, V4, QL, _ConfigFile, mycron, s... | [
"chiupam@126.com"
] | chiupam@126.com |
1a9fb7d130bad860e146e811538a5e4d009b51c4 | 09d767a12ad01b189f5793fa66fef2cca06c821a | /python/yiqing/app.py | b020af8640080ec52c4a8699163b8bded92ed195 | [] | no_license | sunyinggang/dailyCode | 403048f85a5506459ec3f5551230c8592f346aed | ec72332d0ac2be79cdd436631f886e25265dfd6c | refs/heads/master | 2023-03-09T02:35:56.518021 | 2021-03-01T15:38:23 | 2021-03-01T15:38:23 | 296,016,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from app import app
if __name__ == '__main__':
app.run(debug=True, port=5050, host='0.0.0.0') | [
"136080416@qq.com"
] | 136080416@qq.com |
18736855e45eda60471a343f863989a8ab6556b4 | 20c9f3a089286a442cc15f8a31bb34e110e68d8b | /tests/python/len.py | 643569734e0202f30062585e3840e5e5ee19fe9b | [
"MIT"
] | permissive | denim2x/py2nim | 00ca515daef897d380dbf4915583a470ffe4c94e | 56fc2699d31241c60bed726f59efea4bf46be238 | refs/heads/master | 2021-09-28T06:37:42.786868 | 2018-11-15T08:12:30 | 2018-11-15T08:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | class A:
def __init__(self, elements):
self.elements = elements
def __len__(self):
return len(self.elements)
a = A([2])
print(len(a))
| [
"alehander42@gmail.com"
] | alehander42@gmail.com |
8ed433dd2530fe9753af90133ba61335dd78dd9e | 92795fd129672b52ace12f7bf4eb08f72da916c5 | /adminphotoload/templatetags/widget_photo_iframe.py | bb95fad92665987f0ed394f6c9240f07f850a4cd | [] | no_license | ljarufe/quimerahg | b601f0b1bb77e48893f128615d54dfe062a4fd74 | 872e7deca73ccd8417d0d963a043cb2e79d64ffb | refs/heads/master | 2021-01-25T07:07:35.430695 | 2013-10-21T19:03:57 | 2013-10-21T19:03:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # -*- coding: utf-8 -*-
from django import template
from django.conf import settings
register = template.Library()
@register.inclusion_tag('templatetags/iframe.html')
def widget_photo_iframe(app, model, id, change):
"""
Inserta el código para la herramienta para subir fotos en un iframe
"""
return {... | [
"luisjarufe@gmail.com"
] | luisjarufe@gmail.com |
03aef183e7f933a66be4b8cb22079d3baab2ba23 | d153e65c8f3f60abb6d2ad11f9463f0c79179f36 | /.ipynb_checkpoints/vis_util-checkpoint.py | b92ded8c4560d066e3f733b952ef832e4d7894a6 | [] | no_license | chuazh/cs231n_project | a1ed7aeefd38185578bf6c02dd640b099812dcc6 | 1e0f30c76966c40b96172a268201e57c584aecd6 | refs/heads/master | 2020-05-20T18:51:23.254213 | 2019-05-14T23:57:18 | 2019-05-14T23:57:18 | 185,714,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | import torchvision
import torchvision.datasets as dset
import torchvision.transforms as T
import torchvision.models as models
import torch
import torch.nn as nn
import matplotlib.pyplot as plt
import time
import os
import copy
import numpy as np
def check_accuracy_vis(prefix,loader, model, device, plot=True):
pri... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
d32216fde31ae9640754800c85f46534ce87f113 | 00f20cf0bd5fa65c9f54aa5a29fe3565fd8b2d96 | /swagger_client/models/match_query.py | d5fb5908d6802428b6a87f53062fada57dbc5695 | [] | no_license | gingerwizard/python-ece-client | 8b81094ddf64617c12aea9db65b9d5f7a6f1c73c | 6187fdde855a147d114fb7ee39fc5314a1b0893f | refs/heads/master | 2021-08-29T08:16:31.942559 | 2017-12-13T14:32:23 | 2017-12-13T14:32:23 | 114,131,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,774 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class MatchQue... | [
"dalem@elastic.co"
] | dalem@elastic.co |
000110f69e38d8e360fc1503ca5f26370e05cd25 | cb57a9ea4622b94207d12ea90eab9dd5b13e9e29 | /lintcode/python/1909_order_allocation.py | 4ff108d890858840ee3ef9ae25488bb9c13d9df3 | [] | no_license | boknowswiki/mytraning | b59585e1e255a7a47c2b28bf2e591aef4af2f09a | 5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a | refs/heads/master | 2023-08-16T03:28:51.881848 | 2023-08-10T04:28:54 | 2023-08-10T04:28:54 | 124,834,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,870 | py | #!/usr/bin/python -t
# dfs
from typing import (
List,
)
class Solution:
def __init__(self):
self.cur_max = 0
self.ret = None
"""
@param score: When the j-th driver gets the i-th order, we can get score[i][j] points.
@return: return an array that means the array[i]-th driver gets ... | [
"boknowswiki@gmail.com"
] | boknowswiki@gmail.com |
9fb989048567eb5db15c515f5ce3ba6801b857bf | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/CreateCabInstanceRequest.py | 47923c7bc2c403b3b77dcab96630ccdb24c8801c | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,170 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
b13046ceab6991b6f1d95e04fbe41b7ce103755b | 888899f0cb3e6e7b28a9de39001a1fd1c177cd35 | /COMPLETE PYTHON-3 COURSE/Chapter-05-LIST/summary.py | 857ad7b8e6e4441e7a901e9c5b8d6851a307ef48 | [] | no_license | VivakaNand/COMPLETE_PYTHON_3 | ef162d71d3a44bf661fcc1a8aacce31e7953cd7c | b3b835afe7671fdc3d29d912650fd4ccd3bc83f6 | refs/heads/master | 2023-02-04T10:13:41.881939 | 2020-12-23T08:30:51 | 2020-12-23T08:30:51 | 323,839,528 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # list chapter summary
# list is a data structure that can hold any type of data
# create list
words = ["word1", "word2"]
# you can store anything inside list
mixed = [1,2,3, [4,5,6], 'seven', 8.0,None]
# list is ordered collection of items
# print(mixed[0]) # output = 1
# print(mixed[3]) # output = [4,5,6]
# add d... | [
"vivekjetani83@gmail.com"
] | vivekjetani83@gmail.com |
6f331f833f6106821b1fbc0630bb3491154a5ed3 | 28a9cc19537f7264421afeb9883962aa480c2616 | /login/models.py | dfc8567340a7277a6b236ffa42c5bf8ad2a3ca0c | [] | no_license | ujjwalagrawal17/BrokerAppBackend | b33df886b389aabfcfe7278c3e41c99d13d4fbb3 | 1b8ffd18e4c5257d222c17b8aece3351b549b204 | refs/heads/master | 2021-01-22T21:23:18.807792 | 2017-03-18T19:06:44 | 2017-03-18T19:06:44 | 85,425,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class login_user(models.Model):
name= models.CharField(max_length=120,null=False,blank=False)
firm_name= models.CharField(max_length=240,null=False,blank=False)
city= models.CharField(max_length=240,null=False,blank=Fa... | [
"ujjwal.iitism@gmail.com"
] | ujjwal.iitism@gmail.com |
e35356aad8d52ce034b950fa1b84a9f27923a533 | c5759366f8b2cb2e129df0637b62774225a0c41a | /code/tensor2tensor/tensor2tensor/data_generators/text_encoder_build_subword.py | 89c6b9516e982d110e466e5b73735fd4f1e123fe | [
"Apache-2.0"
] | permissive | cake-lab/transient-deep-learning | f8646a4386528aa147d8d3dcdff8089985870041 | 87c6717e4026801623cf0327e78ad57f51cb1461 | refs/heads/master | 2022-11-02T20:02:29.642997 | 2022-02-08T16:51:09 | 2022-02-08T16:51:09 | 227,036,173 | 11 | 1 | Apache-2.0 | 2022-10-05T13:01:38 | 2019-12-10T05:27:50 | Python | UTF-8 | Python | false | false | 2,973 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"ozymandias@OzymandiasdeMacBook-Pro.local"
] | ozymandias@OzymandiasdeMacBook-Pro.local |
ff77547cc6d5321804ab90dbd2386f9f3b515921 | fff54b01b46cef0bbc70a6469c88c01c82af5a57 | /network/library/glib-networking/actions.py | 660dea0d9d3cf5ffb5633a05765dd140c9dcdf02 | [] | no_license | LimeLinux/Packages | e51deae6c0d1406e31f06caa5aaa7749466bef0b | d492e075d8b051df68b98c315ad0628e33a8fac4 | refs/heads/master | 2021-01-11T12:37:22.150638 | 2018-08-30T18:24:32 | 2018-08-30T18:24:32 | 77,054,292 | 5 | 19 | null | 2018-02-02T17:24:06 | 2016-12-21T13:33:45 | Python | UTF-8 | Python | false | false | 725 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--disable-static \
... | [
"zirkovandersen@gmail.com"
] | zirkovandersen@gmail.com |
744dd80c6dd301c986dfd766d02f90b8df0c7590 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/scaleform/daapi/view/lobby/historicalbattles/__init__.py | 319e96efe3c7f12b469f2b5042230f76267adc3d | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,685 | py | # 2015.11.10 21:27:13 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/historicalBattles/__init__.py
from gui.Scaleform.framework import GroupedViewSettings, ViewTypes, ScopeTemplates
from gui.Scaleform.framework.package_layout import PackageBusinessHandler
from gui.Scalefo... | [
"info@webium.sk"
] | info@webium.sk |
aec9135ff3f8ea294de2287b9c3fb015c1842ecb | 9c9abdf101ce10d170de060155d7e96b244112eb | /logicmind/tokens/nop.py | d17faec06205634f0c31c421b359bde0fbb21eb9 | [
"MIT"
] | permissive | gridl/Py-Utils | b914aef6b527d5e24972c2b2559937ffe14f8f54 | 96e554ef4da7f9f94d405f523bd234db7dca96a7 | refs/heads/master | 2020-11-29T08:30:59.015303 | 2019-04-27T13:45:31 | 2019-04-27T13:45:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from tokens.token import Token
class Not(Token):
representations = ['¬', '!']
single_char_representation = '¬'
def __init__(self):
super().__init__(operands=1, precedence=1)
def apply(self, right):
return not right
def __repr__(self):
return '¬'
| [
"totufals@hotmail.com"
] | totufals@hotmail.com |
e43b0767d3b8addee5a35fe4962d4ec12254d4cf | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/documentdb/v20210115/get_database_account.py | 8f4d59344f5e4492cb41eab079c01a343bb0963e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,607 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
bdc08ee0779b38395377347f0abedd95471a6d05 | 65a70271f97f6760996fb87df95b18186b8dde8c | /__main__.py | 5d8df591955a25d858ae1d8f3ce6df3931de37de | [] | no_license | sebbekarlsson/bethins | f3d843ee092e8b3245de4c03dc53a6e57f5bcac7 | efc394a785231a60e6cd9068a0f0ea76deb3a902 | refs/heads/master | 2016-09-14T09:48:10.193590 | 2016-04-29T19:31:13 | 2016-04-29T19:31:13 | 57,068,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from bethins.app import app
if __name__ == '__main__':
app.run(debug=True)
| [
"sebbekarlsson97@gmail.com"
] | sebbekarlsson97@gmail.com |
5cd3e967959c0a4211a1c671d6336fbd4c832a7a | 3288a3e1ac9fe24260e6eb3e54234cf1a9c6e33a | /model/rage.py | 3941517a4a82de7a3cddb1758bb223a744cab090 | [] | no_license | phamdinhkhanh/alltherage | 691ea098cb485df84db230af1f0bb376e1a8201f | 94f253dbc5b830dc9d1b76680c9b41a05a6c3f16 | refs/heads/master | 2021-01-23T14:49:57.214474 | 2017-07-30T09:23:38 | 2017-07-30T09:23:38 | 93,261,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | from mongoengine import *
from flask_restful import Resource, reqparse
import mlab
class Rage(Document):
name = StringField();
url = StringField();
description = StringField();
old_price = FloatField();
new_price = FloatField();
discount_rate = FloatField();
is_favorite = BooleanField();
... | [
"phamdinhkhanh.tkt53.neu@gmail.com"
] | phamdinhkhanh.tkt53.neu@gmail.com |
a05f388b7fed9deac9f7b8e1e5e439e90ec715a9 | 84d2efd222fa190c8b3efcad083dcf2c7ab30047 | /test.py | fc24c2054c5968948fcc906e963e832aa2a418a6 | [] | no_license | webclinic017/Capstone-2 | aedfc8692647f2e84114da5b2e32856d0de80586 | d476723f7893c7c5da14e24f28736a8f0ba7ff55 | refs/heads/master | 2023-01-23T06:44:36.868373 | 2020-12-03T19:44:51 | 2020-12-03T19:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import sklearn.linear_model
import scipy.stats as stats
import pandas_market_calendars as mcal
from alpha_vantage.timeseries import TimeSeries
api_key = '8FIYTT49ZEZT2GV5'
ts = TimeSeries(key=api_key, output_format='pandas')
data, meta_da... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
fe41e57f2ed88a9306816bc86c1326ed3f15f4a5 | 853d7901c4bdc7db8e655092c9939741b4f86161 | /886.py | be36ff32f774dcec2059ca91e5828d87b1299df8 | [
"MIT"
] | permissive | wilbertgeng/LeetCode_exercise | 904d6a3f91d94f451b40f3760131aefaa8584b3b | f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc | refs/heads/main | 2023-03-16T01:25:00.514922 | 2021-03-15T06:12:59 | 2021-03-15T06:12:59 | 347,856,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | """886. Possible Bipartition"""
class Solution(object):
def possibleBipartition(self, N, dislikes):
"""
:type N: int
:type dislikes: List[List[int]]
:rtype: bool
"""
seen = {}
self.graph = collections.defaultdict(list)
for (u, v) in dislikes: ... | [
"wilbertgeng@gmail.com"
] | wilbertgeng@gmail.com |
748c4782c7cd76f5ae63a10cc29668cecc5cb385 | 70fa4bc22afd3d0527888d382827c7c2e1269b8a | /examples/columbia_river_crossing.py | 263f0b7f942ff977e4ec41aba47835a0ecbf4025 | [
"BSD-2-Clause"
] | permissive | moorepants/EfficientRoutes | 20029f19ed5ec79d484660d8f963f4e78d2d899d | 2705b643b95cb7921dc3216d534aa5bdbff302a1 | refs/heads/master | 2020-04-06T06:47:52.698417 | 2012-06-28T09:12:30 | 2012-06-28T09:12:30 | 4,477,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | #!/usr/bin/env python
# This example compares two routes connecting Portland, Oregon to Vancouver,
# Washington over a bridge across the Columbia River. The planned bicycle route
# sends the bicyclist through various elevation changes and several yield
# signs, stop signs, and traffic signals where as the automobiles ... | [
"moorepants@gmail.com"
] | moorepants@gmail.com |
399677d94f7dba5213292ea7db1d4bba220d5d29 | f394598dad4276f9667e702b7360ab14dcd10cfc | /unsolved/power_of_four.py | 81e77db6b544515bf8744ccd45c335929374d9f2 | [] | no_license | siowyisheng/python-problem-solving | fe9ded3761e637883467cb81abc01bcb0a54b589 | 7e32767a3ac710ecfc37f205ee35eda194400122 | refs/heads/master | 2020-03-21T19:57:56.118616 | 2019-06-28T08:12:09 | 2019-06-28T08:12:09 | 138,980,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | Given a 32-bit positive integer N, determine whether it is a power of four in faster than O(log N) time.
| [
"siowyisheng@gmail.com"
] | siowyisheng@gmail.com |
8aa1667e96ff01d3a43197b476b881ceb027dc8e | d3be0d693440c618d211bc3801a29b885041786a | /scripts/migrations/label_test.py | 45e6a66c1d0b77179e304048114bec7d94c2c009 | [
"Apache-2.0"
] | permissive | jimpallomeni/buck | 9479b048e59ee1d0a78b3c0c30cb98af61920fe3 | 0d752267ca1ea6f93ac1966bac75e6168df0254c | refs/heads/master | 2021-07-05T08:27:30.295952 | 2017-09-27T22:34:01 | 2017-09-28T00:18:46 | 105,082,899 | 0 | 0 | null | 2017-09-28T00:22:08 | 2017-09-28T00:22:08 | null | UTF-8 | Python | false | false | 1,358 | py | import label
import unittest
class LabelTest(unittest.TestCase):
def test_can_parse_full_label_from_string(self):
l = label.from_string('cell//package:name')
self.assertEqual(l.name, 'name')
self.assertEqual(l.package, 'package')
self.assertEqual(l.cell, 'cell')
def test_can_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6c7283f79ab27c859cffb7b7d39c93d67372cd59 | 164e0f43ef3ad4cb7f6b28dfdd2bfbaa66d38ce2 | /Word_Pattern/Word_Pattern.py | c8e8770d0ef80e9476f394041e584d25a6bd9e7b | [] | no_license | maoxx241/code | b217f2d10065d90f52cfa38788c99e238565b892 | 16e97ec5ee7ae9ffa69da2e001d15a86d73d2040 | refs/heads/master | 2021-07-11T14:25:35.098241 | 2020-11-25T14:01:56 | 2020-11-25T14:01:56 | 222,544,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | class Solution:
def wordPattern(self, pattern: str, str: str) -> bool:
lst=str.split()
if len(lst)!=len(pattern):
return False
dic={}
for i,c in enumerate(pattern):
if c not in dic:
if lst[i] in dic.values():
return... | [
"maomaoyu870@gmail.com"
] | maomaoyu870@gmail.com |
e4e52e5407ba0039db5808125b456d675cb0959c | c387360f00fc0f7c36bb3f9b8bcff24ff2bc87d6 | /baekjoon_14918.py | 290dcc0aecad7532749df48895a36ad3936d3924 | [] | no_license | younkyounghwan/python | e8e8f2adce5e3005df7ba35298bafe04f02c6d33 | e76783d59bab871b3fd98c088296521d979b1303 | refs/heads/master | 2020-04-01T14:57:54.113092 | 2019-08-27T13:45:56 | 2019-08-27T13:45:56 | 153,315,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | x, y = map(int,input().split())
print(x+y) | [
"youn7117@naver.com"
] | youn7117@naver.com |
9ee85000310e262b188ffd12e9948483f3d681e7 | 7cb626363bbce2f66c09e509e562ff3d371c10c6 | /multimodel_inference/py3_v1/sc3elsm.py | 2d50cceedee31d0481ec347f123d4e6d48609f87 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | z0on/AFS-analysis-with-moments | 76bfd6b0361ab7e9173144dbd21b6fa2c7bf1795 | eea4735b3b6fbe31c4e396da3d798387884a1500 | refs/heads/master | 2023-07-31T20:49:20.865161 | 2023-07-19T06:57:32 | 2023-07-19T06:57:32 | 96,915,117 | 4 | 5 | null | 2020-09-02T17:39:08 | 2017-07-11T16:38:03 | Python | UTF-8 | Python | false | false | 3,247 | py | #!/usr/bin/env python3
# split, three epochs in each pop, asymmetric migration at same rates in all epochs
# n(para): 11
import matplotlib
matplotlib.use('PDF')
import moments
import pylab
import random
import matplotlib.pyplot as plt
import numpy as np
from numpy import array
from moments import Misc,Spectrum,Numer... | [
"matz@utexas.edu"
] | matz@utexas.edu |
661866a587111cbadec04ee46f867134a8b01025 | ac192c0d64c31c33d76708b3f5a0062a842d59cf | /LearningCode/3_8_aroundTheWorld.py | ba68059b790cdb5bd2695a4bd3887c758b429be7 | [
"Apache-2.0"
] | permissive | jercas/PythonCrashCourse | 7a73c6af327b653581e9d260431b022a08923fb3 | 464cf1dfa4c33adc73e15e15a37da94da0912e19 | refs/heads/master | 2020-12-02T22:11:24.650904 | 2017-07-03T09:37:27 | 2017-07-03T09:37:27 | 96,094,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #coding=utf-8
#放眼世界P41 2017.4.11
myDreamPlace = ['losAngle','houston','newYork']
print('1.this is the oringle list')
print(myDreamPlace)
print('2.this is the sorted list')
print(sorted(myDreamPlace))
print('now what?')
print(myDreamPlace)
print('3.this is the sorted and reverse list')
print(sorted(myDreamPlace))
print(... | [
"jercas0618@163.com"
] | jercas0618@163.com |
a5dae9eaf99e07f4a4f3bcdd368bb8a6b274af16 | 0857ee93b0a041bb38c635b71e456247982e18f0 | /app/migrations/0001_initial.py | 20b17abffc8af2b5cdf3a8f0e2ae4fc224399542 | [] | no_license | ConnorFieldUser/single_page_secrets | 932ae5f253c3c4742d3584ecb6a34e0776f5672e | e4acdc26e64999e9d351beda98fd4f6af91566b5 | refs/heads/master | 2020-07-26T21:48:56.960107 | 2016-11-10T17:15:48 | 2016-11-10T17:15:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-10 16:26
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"jtaddei@gmail.com"
] | jtaddei@gmail.com |
74764b1315255cbdaa416559f8d622f03ccc9269 | 31c310ef2cedb0d7b7327668bdbff4b50b165e74 | /app/__init__.py | 2030ab9a162509c54f126c68431fcc06854e893f | [
"MIT"
] | permissive | wou-cs/wolfit | 8ffacc5a4eb235d570f7f2042c4c731b4f145be5 | cebf6a0676ae86ea9d37ad9e8b2fe1aa1535c498 | refs/heads/main | 2023-03-09T22:41:17.418489 | 2023-02-04T13:36:02 | 2023-02-04T13:36:02 | 136,679,479 | 2 | 14 | MIT | 2023-02-16T07:12:04 | 2018-06-09T01:05:52 | Python | UTF-8 | Python | false | false | 580 | py | import os
import config
from flask import Flask
from flask_bootstrap import Bootstrap
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from app.commands import sample_data
app = Flask(__name__)
app.config.from_object(config.Config)
app.config.from_envvar('... | [
"chris@chrisbrooks.org"
] | chris@chrisbrooks.org |
fb33ad47c4b0d1dbaab994ac4d7707c1c15ad619 | 4ac6808e6153dceebd6271c017f9613818866da5 | /app/__init__.py | 7b12aec453ef6cc0483e2eb1f4a1bdf6ff520c4f | [
"MIT"
] | permissive | quanpower/xielaoban-server | 59d9331737c79163f0d4bd352bdcfc900c2e0c0c | 584eaa6c049a9d664efaf60cd23273147d0a5c6e | refs/heads/master | 2022-12-09T20:59:20.466225 | 2018-02-10T15:30:17 | 2018-02-10T15:30:17 | 120,546,895 | 1 | 0 | MIT | 2022-12-08T00:44:41 | 2018-02-07T01:36:25 | Python | UTF-8 | Python | false | false | 4,018 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_mail import Mail
from flask_moment import Moment
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_pagedown import PageDown
from config import config
from flask_admin import Admin, BaseView, expose
from flask_... | [
"quanpower@gmail.com"
] | quanpower@gmail.com |
b322b4c51ee51cca8bce61a8bb26932135730db1 | 8f9ea3f14bdf2187de759939b2bbc87fe68ccfc0 | /tensorflow/python/keras/layers/wrappers.py | 7759561ef94c4a81552ef7b40ea71e49bbb743ae | [
"Apache-2.0"
] | permissive | davidstanke/bazel-mvn-demo | 4ea43f0ba293a28b916a27eab5f0812e9b753c2c | cff14dddce15ea7152988da576673bd15bab6c6e | refs/heads/master | 2022-10-20T07:52:29.651851 | 2018-11-22T13:17:51 | 2018-11-22T13:17:51 | 157,782,756 | 2 | 0 | Apache-2.0 | 2022-10-04T23:47:05 | 2018-11-15T22:54:09 | C++ | UTF-8 | Python | false | false | 18,856 | py | # Copyright 2015 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... | [
"davidstanke@gmail.com"
] | davidstanke@gmail.com |
7926b45512fe41390359b55d5dc715655d19920f | 72b74f66f83239a928bf049c0dd6e47576e57bae | /NLP/word2vec/data_processing/__init__.py | 26e9b2e5b6b5f6c6a8227cbaffee616283614ce3 | [] | no_license | InsaneLife/DeepLearning | 7934056682e4fec7f3241dd2d4fbe1b4c5f192d2 | 4b60fe40587b96ba2a351c1b3cb832d03c2071ab | refs/heads/master | 2022-10-08T08:18:19.633449 | 2017-08-30T10:47:05 | 2017-08-30T10:47:05 | 65,697,666 | 2 | 4 | null | 2022-09-30T21:55:05 | 2016-08-15T02:16:34 | C++ | UTF-8 | Python | false | false | 736 | py | # coding=utf8
# author = 'Aaron Chou'
import sys
import zipfile
reload(sys)
sys.setdefaultencoding('utf-8')
# filename = '../../../..//data/NLP/sougou/news_oneline.txt'
# with open(filename) as f:
# data = f.readline().decode('utf-8')
#
#
# filename = '../../../../data/word2vec/text8.zip'
# with zipfile.ZipFile(... | [
"993001803@qq.com"
] | 993001803@qq.com |
ddd71101293b395a9c27fbd25cd8df5f75c8dcfa | 42fdf741bf64ea2e63d1546bb08356286f994505 | /test_20160921_macroblk_generation/rasp30_vmm_gen2.py | c42901a6f5a231f2613db9a070596ac4babdbe9d | [] | no_license | skim819/RASP_Workspace_sihwan | 7e3cd403dc3965b8306ec203007490e3ea911e3b | 0799e146586595577c8efa05c647b8cb92b962f4 | refs/heads/master | 2020-12-24T05:22:25.775823 | 2017-04-01T22:15:18 | 2017-04-01T22:15:18 | 41,511,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | li_sm_0b = ['fgota[0:1].out[0]','ota_buf[0].out[0]','ota[0].out[0]','ota_vmm[0].out[0]','cap[0:3].out[0]','nfet[0:1].out[0]','pfet[0:1].out[0]','tgate[0:3].out[0]','nmirror_vmm[0:1].out[0]','ladder_blk[0].out[0:1]','c4_blk[0].out[0]','speech[0].out[0:1]','INFneuron[0].out[0]','lpf[0].out[0]','nfet_i2v[0].out[0]... | [
"ubuntu@ubuntu-VirtualBox.(none)"
] | ubuntu@ubuntu-VirtualBox.(none) |
736f4698de804a541c0980b218de7e032a7725b7 | 6618febe7d31b263acf2006dae748ce25fb03cfc | /fileparsers.py | 3ff51617fc82d199d0a93c62a7b2c5cbccf578a2 | [] | no_license | breecummins/PatternMatch | d8312d95d119ea8e373ed3f1ff5be9350fb543ed | 061b87fea1ef52825d4dba3af675d1a44af0f20c | refs/heads/master | 2021-01-17T09:42:04.173524 | 2016-06-02T17:04:57 | 2016-06-02T17:04:57 | 31,024,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | # The MIT License (MIT)
# Copyright (c) 2015 Breschine Cummins
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | [
"breecummins@gmail.com"
] | breecummins@gmail.com |
884b606858c44db1fa41bb8f88a377326eb04a69 | 27722ac879b3416a0919dce80d4ec4f2a5c93c97 | /adafruit_pixie.py | 739cd33384b7309d19e4b59d60c04d7e4daf4f47 | [
"MIT"
] | permissive | makermelissa/Adafruit_CircuitPython_Pixie | ee3d5b5861dcf5283b67053c18ce23eb06b88ee9 | 2bdfcf52d8861befc47f433b660f372c20a23d2d | refs/heads/master | 2020-04-25T06:57:24.144082 | 2019-02-25T22:57:25 | 2019-02-25T22:57:25 | 172,598,614 | 0 | 0 | MIT | 2019-02-25T22:54:35 | 2019-02-25T22:54:35 | null | UTF-8 | Python | false | false | 4,674 | py | # The MIT License (MIT)
#
# Copyright (c) 2016 Damien P. George (original Neopixel object)
# Copyright (c) 2018 Ladyada
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, ... | [
"kattni@adafruit.com"
] | kattni@adafruit.com |
ed629e71203af591f84402090e41ad720808065a | 10e8b0b82c429593449f5b3f0ee6efca6d403870 | /Old_Pando/HRRR_downloads/old_dwnld_scripts/download_hrrr.py | 4df7e0c8549423f3e27555f7099459c2528e0af5 | [] | no_license | janmandel/HorelS3-Archive | 7bf50ba2e65812857ea857bc2d033c2a661273e4 | 73f765de5358352ea9d87d76275c5cfb67a5cf43 | refs/heads/master | 2020-03-28T11:24:45.375321 | 2018-09-06T21:17:15 | 2018-09-06T21:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,249 | py | # Brian Blaylock
# February 27, 2017
"""
Downloads the operational HRRR from NCEOP NOMADS server
A re-write of the "get_hrrr.csh" script in python.
"""
import urllib
from datetime import datetime, timedelta
import os
import stat
# ----------------------------------------------------------------------------
# ... | [
"blaylockbk@gmail.com"
] | blaylockbk@gmail.com |
5b932c5056e7bd1fe88edd01c629c4c593215858 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03026/s629929775.py | 95360d8a62b73cf93e76bfc9c8e613d053dfdfeb | [] | 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 | 500 | py | N = int(input())
L = [list(map(int,input().split())) for k in range(N-1)]
c = sorted(list(map(int,input().split())))
a = sum(c) - c[-1]
T = [[] for k in range(N)]
for e in L:
T[e[0]-1].append(e[1]-1)
T[e[1]-1].append(e[0]-1)
kyori = [-1 for k in range(N)]
que = [L[0][0]]
kyori[L[0][0]] = c.pop()
while len(que... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed09351b57eec7ced5b4c69fadb372f03896c127 | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/venv/lib/python3.7/site-packages/streamlit/proto/PageInfo_pb2.py | c550c50579acc89520cbfcfbccf60c1c2162d8de | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | true | 1,978 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/PageInfo.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_data... | [
"edimaudo@gmail.com"
] | edimaudo@gmail.com |
c056ca62fb58ccf1f0ad981bf2c2828285c23243 | 94a6a83c8bd3f9a951ee7d48973f35d0b5b6f99c | /runcases/pygal/config.py | 489618db7c428e189a6aedcb81af7fef0a0dafcd | [] | no_license | JerryLiu0821/apython | 19766bebd5365e53aa7ea46adc01132045e91f9c | d9804b1099c879da1f8dc130fb205ab191f65fb1 | refs/heads/master | 2020-05-17T05:09:15.319167 | 2015-08-17T10:50:09 | 2015-08-17T10:50:09 | 40,886,032 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,588 | py | # -*- coding: utf-8 -*-
# This file is part of pygal
#
# A python svg graph plotting library
# Copyright © 2012-2014 Kozea
#
# This library is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version... | [
"liujian@letv.com"
] | liujian@letv.com |
77fe07d5e52bfe2f60ffef3a17d87c9c4778edbb | fa32f7fe4068323b719725558423927ad307cc4b | /build_isolated/roslaunch/catkin_generated/pkg.develspace.context.pc.py | 2b96196666b66142663c46a34c0c8bcc818b81b6 | [] | no_license | CJohnson5136/ros_catkin_ws | d07ee8c20bc1ebe6c05abdea24ef1f5dab14954b | 05193a7e587ab82e696c66176b151c43d2bcef82 | refs/heads/master | 2021-05-09T03:05:12.373334 | 2018-01-28T03:13:33 | 2018-01-28T03:13:33 | 119,227,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "roslaunch"
PROJECT_SPACE_DIR = "/home... | [
"cody.johnson@ucollege.edu"
] | cody.johnson@ucollege.edu |
e2b23a1391b17cde86fbd36afbff414773d9903b | a66c079f250c5469e01b5ec5b00a795dbc9fa9a0 | /blog/admin.py | 8c315f065ee59a47926fb5507af9892b991febc6 | [
"MIT"
] | permissive | Cpeters1982/MillGeekV2 | b925f013ae9b95827bfc304a57b0e0dceabd7544 | e08a1366bbe732b0d7fc7a7802cd54ff1d1091bf | refs/heads/master | 2021-08-06T14:45:57.616281 | 2017-11-06T06:38:11 | 2017-11-06T06:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Post
class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'slug', 'author', 'publish', 'status')
list_filter = ('status', 'created', 'publish', 'author')
search_fields = ('title', 'body')
p... | [
"chiefautoparts@outlook.com"
] | chiefautoparts@outlook.com |
8a6970567b9013782b84557a586c6ce62b9f05a7 | 2d23c271ec1a226bb345c23d7b2671ec021e9502 | /Triangle.py | 74991744eea783b53c8a6721026897aac3e70a7c | [] | no_license | chenlanlan/leetcode | 2e6aec0846ed951466bcd2c2e4596c998faca8e4 | d02478853c32c29477f53852286c429c20f1424e | refs/heads/master | 2016-09-08T05:07:46.904441 | 2015-07-12T05:41:15 | 2015-07-12T05:41:15 | 32,845,795 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | #!/usr/bin/python
class Solution:
# @param triangle, a list of lists of integers
# @return an integer
def minimumTotal(self, triangle):
sum = triangle
ans = triangle[0][0]
for i in range(1, len(triangle)):
for j in range(0, i + 1):
if j == 0:
... | [
"silan0318@163.com"
] | silan0318@163.com |
44e995678e486ed927b284dd2cac84cdbca80e09 | a722faf9fb50c794555861bb4858c3ed8a7a25f3 | /sandbox/peachpy_avx_practice/logic.py | c3fc2c739060b29e44d01407d874555685f434b3 | [] | no_license | ar90n/lab | 31e5d2c320de5618bc37572011596fee8923255d | 6d035e12f743e9ba984e79bfe660967b9ca8716b | refs/heads/main | 2023-07-25T17:29:57.960915 | 2023-07-22T12:08:18 | 2023-07-22T12:08:18 | 77,883,405 | 4 | 0 | null | 2023-07-17T08:45:14 | 2017-01-03T04:15:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,678 | py | from peachpy import *
from peachpy.x86_64 import *
import numpy as np
import ctypes
def gen_andnot_ps():
x = Argument(ptr(const_float_))
y = Argument(ptr(const_float_))
z = Argument(ptr(float_))
with Function("AndNot", (x, y, z), target=uarch.default + isa.avx2) as asm_function:
reg_x = Gener... | [
"argon.argon.argon@gmail.com"
] | argon.argon.argon@gmail.com |
f714a0095b6e307d7d0c605551e5062b707f474e | 644d9ef18713e4cb5d4c3b53301bd7276dcdf477 | /api/programs/views/shared_files.py | 16753e871ff23a7486b45fe52c1b5af4a82dca6c | [] | no_license | alexhernandez-git/django-classline | 6cb5bcd268248999e18037f58c4ed30012d51915 | 49fcf0c6d735a56eaebc17d04be52dab91ca4c3a | refs/heads/master | 2023-03-18T07:10:08.770066 | 2021-03-04T22:24:09 | 2021-03-04T22:24:09 | 287,985,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | """Program views."""
# Django REST Framework
from rest_framework import mixins, viewsets, status, filters
from rest_framework.response import Response
from rest_framework.decorators import action
from rest_framework.filters import SearchFilter, OrderingFilter
from django_filters.rest_framework import DjangoFilt... | [
"vlexhndz@gmail.com"
] | vlexhndz@gmail.com |
6e1f6880a6caf5cffabb380e12829f1606c3e98f | 942ee5e8d54e8ebe9c5c841fbfdd1da652946944 | /1501-2000/1751.Maximum Number of Events That Can Be Attended II.py | 9344ddbdab3c4b8f5e076a9e4c18942fe3232650 | [] | no_license | kaiwensun/leetcode | 0129c174457f32887fbca078fb448adce46dd89d | 6b607f4aae3a4603e61f2e2b7480fdfba1d9b947 | refs/heads/master | 2023-08-31T07:30:50.459062 | 2023-08-27T07:59:16 | 2023-08-27T07:59:16 | 57,526,914 | 69 | 9 | null | 2023-08-20T06:34:41 | 2016-05-01T05:37:29 | Python | UTF-8 | Python | false | false | 756 | py | import functools, collections, bisect
class Solution:
def maxValue(self, events: List[List[int]], k: int) -> int:
end2eid = collections.defaultdict(list)
for i in range(len(events)):
end2eid[events[i][1]].append(i)
end_days = list(sorted(end2eid.keys()))
@functools.lru_... | [
"skw_kevin@126.com"
] | skw_kevin@126.com |
a9ef067613f57b825d3533520dc3ed43f8292ccf | c0bf1f7ca6d9d7562f72b4a668e97a2d5ffe7c88 | /examples/thread_matmul_ipxact/thread_matmul_ipxact.py | 0ce4d4f6801adc0539c36f4b0974578f5403318c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | 00mjk/veriloggen | cee0da16182c3c9bd95340a966d6a3febc0e7ad1 | 9d0af9638470b3b85cbf9cb53f16b853932571c8 | refs/heads/master | 2023-06-23T07:10:20.645734 | 2021-07-18T14:53:13 | 2021-07-18T14:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,682 | py | from __future__ import absolute_import
from __future__ import print_function
import sys
import os
import numpy as np
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__)))))
from veriloggen import *
import veriloggen.thread... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
694cbb1a9d0f58df9ff2f2a939cac87b4136ff2c | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /zactionConst.py | e0a0d9c1bc4143546dda68c8a1f4581f9655fb66 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,359 | py | #Embedded file name: zactionConst.py
"""
Constants for the Action System
"""
ACTION_SCHEMA = 'zaction'
_ACTION_PREFIX = ACTION_SCHEMA + '.'
_ACTION_TREE_TABLE_NAME = 'trees'
_ACTION_TREE_TABLE_FULL_PATH = _ACTION_PREFIX + _ACTION_TREE_TABLE_NAME
_ACTION_TREE_LINK_TABLE_NAME = 'treeLinks'
_ACTION_TREE_LINK_TABLE_FULL_PA... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
2d8ff7c75391eb1e4653770f6cae51129252f4a2 | 8ff5bd7d22b578678fe7225a84f82cea5eafa25a | /Backend/todoapps/todo/apps/forms.py | f4b8eed46fe38dbebdb1842a7b754f591f1a3bf1 | [] | no_license | Jayson7/Mumswhocode-bootcamp-frontend-basics | 33639eb40b48cba6aca99ca4d60e7119ab9739bf | de05098e44c13077a9402074811525d53b580b9c | refs/heads/master | 2023-08-15T03:45:07.848603 | 2021-09-09T22:58:27 | 2021-09-09T22:58:27 | 399,247,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.forms import ModelForm
from .models import Todo
class Todoforms(ModelForm):
class Meta:
model = Todo
fields = "__all__"
| [
"lexxiijoo70@gmail.com"
] | lexxiijoo70@gmail.com |
f45e0da10b926bc1517347097b9438b886b636fe | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba2738.pngMap.py | c2eaef6280a4d4f3f5199ee2ca4ceeb4ff981c88 | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba2738.pngMap = [
'00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
'00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
'0000000000000000000000000000000000000... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
0c8715456aea5a32d0a4f5330b7b558b9fd2d9ca | 5acc2eb70ed8b755d7f6b62b65a09cc29b661271 | /Aula 10/atv01.py | c376629dd2744f4bba8899ed5d2c8d19113ba60a | [] | no_license | Yuri-Santiago/sor-python-ifce-p7 | 07d1a30f2c304a0a11a2a39b40784cc543f4a18c | ccd3460ecab580e23fb41921ee7cc284d7212aef | refs/heads/master | 2023-05-28T08:32:13.188126 | 2021-06-06T22:20:14 | 2021-06-06T22:20:14 | 350,816,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | """
1 - Criar uma classe que modele retângulos.
1. Atributos: LadoA, LadoB (ou Comprimento e Largura, ou Base e Altura, a escolher)
2. Métodos: Mudar valor dos lados, Retornar valor dos lados, calcular Área e calcular Perímetro;
3. Crie um programa que utilize esta classe. Ele deve pedir ao usuário que info... | [
"yurimateussantiago@gmail.com"
] | yurimateussantiago@gmail.com |
ffcab0aa4429d00f96f023703c2dbcbc06e49257 | 526986209fbf00e85c98648600f5f58575d54096 | /messages/pep8/E101.py | e88e05d0d2cf11f1a10caebbeb070b49f491d889 | [
"Unlicense"
] | permissive | landscape-test/all-messages | 126b67d2fc395018121a40787ca92762a03f4873 | f349ac581f3a149b30591d7a9149629b9bf539cb | refs/heads/master | 2020-06-02T08:36:53.946720 | 2014-01-10T06:36:05 | 2014-01-10T06:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | """
E101
Indentation contains mixed spaces and tabs
"""
| [
"git@carlcrowder.com"
] | git@carlcrowder.com |
0afcf429e50ba86c7d155d63ceed8647dcab0bf3 | 3327a87cefa2275bd0ba90a500444f3494b14fdf | /bwu/stack/225-implement-stack-using-queues.py | 4bc2aee9364af8063e2c1b101d5f1e0e53ac5d4d | [] | no_license | captainhcg/leetcode-in-py-and-go | e1b56f4228e0d60feff8f36eb3d457052a0c8d61 | 88a822c48ef50187507d0f75ce65ecc39e849839 | refs/heads/master | 2021-06-09T07:27:20.358074 | 2017-01-07T00:23:10 | 2017-01-07T00:23:10 | 61,697,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | class Stack(object):
def __init__(self):
"""
initialize your data structure here.
"""
self.queue1, self.queue2 = [], []
def push(self, x):
"""
:type x: int
:rtype: nothing
"""
self.queue1.append(x)
def pop(self):
"""
... | [
"noreply@github.com"
] | captainhcg.noreply@github.com |
ab2a4a29a09b53ddb57516f07e70cf10806af844 | 89621b6ca971efb67b764efc5fe76d7cd2f187d7 | /elife_bus_sdk/exceptions.py | c6bfc832551238623bbbb31b29a4f4d369825641 | [
"MIT"
] | permissive | elifesciences/bus-sdk-python | f3e91e0bf429610c26222ff3be80ac9f624ac80e | 419d5a88c5393729d4f884edf41390f3bc5c86b8 | refs/heads/master | 2022-08-08T17:45:15.873473 | 2022-07-26T02:35:03 | 2022-07-26T02:35:03 | 108,875,988 | 0 | 0 | MIT | 2022-07-26T02:35:04 | 2017-10-30T16:12:23 | Python | UTF-8 | Python | false | false | 105 | py |
class PublisherTypeNotFound(Exception):
pass
class MessageQueueTypeNotFound(Exception):
pass
| [
"noreply@github.com"
] | elifesciences.noreply@github.com |
05269f28d5f43d0869e568da2498e7a8ccdff3b6 | 1e6e3bb707920fdb01ebca23eaf81097c558d918 | /tests/system/migrations/test_0013_archived_meeting_ids.py | f69d1c6db3a7b9cb3f778da5aa8b75117e4fb12b | [
"MIT"
] | permissive | OpenSlides/openslides-backend | cbd24589f82a6f29bde02611610511870bb6abbf | d8511f5138db4cc5fe4fa35e2a0200f766bd49c5 | refs/heads/main | 2023-08-23T11:54:25.064070 | 2023-08-22T11:15:45 | 2023-08-22T11:15:45 | 231,757,840 | 6 | 22 | MIT | 2023-09-14T16:23:41 | 2020-01-04T12:17:38 | Python | UTF-8 | Python | false | false | 13,194 | py | ONE_ORGANIZATION_FQID = "organization/1"
def test_migration(write, finalize, assert_model):
write(
{
"type": "create",
"fqid": "meeting/1",
"fields": {"is_active_in_organization_id": 1},
},
{
"type": "create",
"fqid": ONE_ORGANIZA... | [
"noreply@github.com"
] | OpenSlides.noreply@github.com |
df2e7687f497b9de3efad226520196e5f835d697 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Logit/trend_ConstantTrend/cycle_5/ar_12/test_artificial_1024_Logit_ConstantTrend_5_12_0.py | 5b95e6cd8a0927e6f837267cb4099daf8fe96f20 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 265 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 5, transform = "Logit", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
1aeccb7035a0df9c0d0256b8677e5d53d01bac56 | 7c69c27a1c6ff2a1552900f4c1001281f4447233 | /codechef/tsort.py | dba0f813d790848a76c4ee81b6119ce78800c5a0 | [] | no_license | Hamiltonxx/pyalgorithms | 894a0228928819601a816c472689ce96a11e1d25 | 92284f6105c5deb7f843ff299ee3ceb6382cf879 | refs/heads/master | 2023-09-04T13:01:46.465661 | 2023-09-02T05:50:23 | 2023-09-02T05:50:23 | 231,999,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | t = int(input())
lst = []
for i in range(t):
lst.append(int(input()))
lst.sort()
for x in lst:
print(x) | [
"hamiltonhgz@gmail.com"
] | hamiltonhgz@gmail.com |
c8b1abe8e4f8b79cafede323f43675dd5b43f597 | 039a274d8a8bfbfb90b3c884024edf8c18507150 | /nmt/origin/nmt.py | 0a54108b8469d501872666c268d1e58e54a947a5 | [
"MIT"
] | permissive | JayceeLee/TheanoProject | 1e33ae2a58a188cfce6c5bcbd8a2f6f9fbd36a0d | be1f5f09aa84d64ad3df7b798cf6ff74a08bf3b7 | refs/heads/master | 2021-05-11T09:12:50.278105 | 2017-04-09T08:55:03 | 2017-04-09T08:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,820 | py | '''
Build a neural machine translation model with soft attention
'''
import theano
import theano.tensor as tensor
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
import cPickle as pkl
import numpy as np
import copy
import os
import sys
import time
from collections import OrderedDict
import regex... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
4d2e063d60ff9fe1c6e29ab07f13137c1edbbd48 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/swaggeraemosgi/model/org_apache_sling_event_impl_eventing_thread_pool_properties.py | 8ded9a93c3374c856f6e681fbdcda9df8a966b64 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 6,961 | py | """
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.t... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
326b4bbd99f9eed9bff3b4bb454476f0beb387c0 | 7d8900637a800d0efa2e1d6a9d4fe877943fdabf | /dudu/add.py | cfcb0a5d3c3f51cc3bb33468b54af380d8a287cd | [
"MIT"
] | permissive | vollov/python-test | d66e0b101f3a664d2d0d33591af8af7134afabd6 | 864896f8ccedb28e15c4962d8983862e9a0e6d77 | refs/heads/master | 2021-07-19T03:15:45.026613 | 2021-02-12T18:24:22 | 2021-02-12T18:24:22 | 46,740,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py |
# add two numbers a and b, and return a+b
# para:
# a - integer number
# b - integer number
# return: a number which is sum of a and b
#
def add(a, b):
print("OK")
return a+b
print("NOT OK")
# here im going to make a subtracting function
# input:
# a - integer
# b - integer
# return: a-b... | [
"dike.zhang@gmail.com"
] | dike.zhang@gmail.com |
bbe8ca1d65b3a671fbd2432b250d18df17ed5c27 | 8004b7468ad46a6330192985f1f9e3a45cc1d2c2 | /databasenote/第一周/第三天/复习.py | 9ba787c38c5ac08b4d75305be9ffb55897966a62 | [] | no_license | yuemeiss/database | d9704f90127cfd27b92f62a251c213a8d6bc93eb | 5f2304cf72330d6102124755cbc1ff5d14c77a77 | refs/heads/master | 2020-03-27T23:14:47.532297 | 2018-12-11T02:28:04 | 2018-12-11T02:28:04 | 147,304,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | 1.数据库的技术的发展
2.相关概念:
数据库:
数据库系统:
数据库管理系统:
为什么使用mysql:
SQL 数据库语言
3.什么是mysql数据库?
mysql的优势?
是一款开源的自由的软件
是一款多用户、多线程的SQL数据库服务器
能够快捷、高效、安全的处理大量数据,使用简单,易操作
跨平台,可移植型强
支持多种操作系统
为多种编程语言提供了API
4. 安装mysql、启动、连接
5. 创建数据库、修改数据库、删除数据库
6.数据库的存储引擎(三大引擎)和数据库的字段类型(数字、字符串、日期)
7.数据库表的创建、删除、修改
创建表(字段、参数类型、为空、不... | [
"1083027306@qq.com"
] | 1083027306@qq.com |
5ffc3d3bf7c7b8c6b4ccf0ee7f773bdbb5fed2f3 | a10377a6d0c7576b9e47209f49dea398181f73fe | /extras/qpsclient.py | f399f7aa38285299a94de567adbf9fa214f42306 | [
"BSD-3-Clause"
] | permissive | zymITsky/ants | 14077dab214aff543bbc75a059240dd55f656916 | 52918d18c94a9a69c3b2495286e3384ba57ad6f8 | refs/heads/master | 2020-06-01T11:04:53.520288 | 2015-02-03T08:09:59 | 2015-02-03T08:09:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | """
A spider that generate light requests to meassure QPS troughput
usage:
scrapy runspider qpsclient.py --loglevel=INFO --set RANDOMIZE_DOWNLOAD_DELAY=0 --set CONCURRENT_REQUESTS=50 -a qps=10 -a latency=0.3
"""
from ants.spider import Spider
from ants.http import Request
class QPSSpider(Spider):
name = ... | [
"cong.wang@tqmall.com"
] | cong.wang@tqmall.com |
b5329073e1fc97c5ba35195a87c08968c20a55b4 | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode_easy/Question_821_Shortest_Distance_to_a_Character.py | 33695fa6230f0a4b098de6ed4589ea8ce26b3954 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | #!/usr/bin/python
# coding: utf-8
class Solution(object):
def shortestToChar(self, S, C):
"""
:type S: str
:type C: str
:rtype: List[int]
"""
n, pos = len(S), -len(S)
res = [n] * n
for i in range(n):
if S[i] == C:
pos = i
... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
6dc15d918ffa46a255df6032022b7e89718fe9b3 | 1cb2b8bf6f244f67e3b867a74a6297556b5e0167 | /rmatics/view/protocol.py | f076bf3da0140903d3b344160a7d59b880c09656 | [] | no_license | ElinRin/informatics-alive | 82f1be65e88860bc4b170b72da39811d30a681e6 | 59a0d1537b90481c2750a05172557bd88fcdcc98 | refs/heads/master | 2020-03-28T22:39:41.979770 | 2018-09-24T10:56:26 | 2018-09-24T10:56:26 | 149,248,491 | 0 | 0 | null | 2018-09-24T10:56:27 | 2018-09-18T07:44:24 | Python | UTF-8 | Python | false | false | 8,016 | py | import time
import traceback
from collections import OrderedDict
from flask import (
g,
jsonify,
Blueprint
)
from sqlalchemy import and_
from rmatics.model import db
from rmatics.model.ejudge_run import EjudgeRun
from rmatics.model.statement import Statement
from rmatics.utils.exceptions import (
Inter... | [
"n.pakhtusov@tinkoff.ru"
] | n.pakhtusov@tinkoff.ru |
b77f5b032f953ed006c22bb0b7765506412aad56 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0801_0850/LeetCode818_RaceCar.py | 8973cff01e19bfcaf0a4885b70d166e80525fb5d | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 941 | py | '''
Created on May 1, 2018
@author: tongq
'''
c_ Solution(o..
___ -
hashmap {0:0}
___ racecar target
"""
:type target: int
:rtype: int
"""
__ target __ hashmap: r.. hashmap[target]
# Number of bits necessary to represent self in binary.
n ta... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
1243495e4d86517d0efab71f93b5ef8c5692f8c5 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/database/influxdb/influxdb_user.py | 6b78276dbad5b9feb48f678066ed402dec5dee69 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 5,248 | py | #!/usr/bin/python
# (c) 2017, Vitaliy Zhhuta <zhhuta () gmail.com>
# insipred by Kamil Szczygiel <kamil.szczygiel () intel.com> influxdb_database module
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__meta... | [
"sifang@cisco.com"
] | sifang@cisco.com |
e808ecad2aaae033f06016a6b865f7a2ebc7b95c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/389/usersdata/329/73216/submittedfiles/poligono.py | 83c9b44a1a65243971d936af7331531404998ba4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | # -*- coding: utf-8 -*-
n = float(input('digite o valor de lados='))
nd = (n**((n-3)))/2
print ('%.1f' % nd) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
adfe58513a6fe2e4b6bbf9df0757e94a5dc4e27a | d735b8354e06eb26aa5ed0ac25ebf96bdd8d67b6 | /python16/day1-21/day006 小数据池和编码/02 作业讲解.py | 8d5be45087e50789765e5e05c7d549a69cf11dba | [] | no_license | cn5036518/xq_py | e004766e6b2582ba37d7335320ed6b42f563c46c | ac932dc7fcb89a7a7faf8bda80791743755fd557 | refs/heads/master | 2021-07-15T18:44:19.244025 | 2020-09-12T09:38:25 | 2020-09-12T09:38:25 | 208,355,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,879 | py | #重点题目回顾和重写
# 5、元素分类
# 有如下值li= [11,22,33,44,55,66,77,88,99,90],
# 将所有大于 66 的值保存至字典的第一个key中,
# 将小于 66 的值保存至第二个key的值中。
# 即: {'k1': 大于66的所有值列表, 'k2': 小于66的所有值列表}
#方法1 空字典{} 空列表 好理解
li= [11,22,33,44,55,66,77,88,99,90]
dic1 = {}
li1 = []
li2 = []
for i in li:
if i > 66:
li1.append(i) #空列表追加
else:
... | [
"wangtongpei@meicai.cn"
] | wangtongpei@meicai.cn |
8e6ee2d167ba76946304901f9b857a62506894e4 | 0cb08e9532758cbec1afe20eb41028d5f276e82d | /gs37(nested serializer )/api/admin.py | e3c0a4b8c2a8cde9f8fa47e15ccefb3248d11be7 | [] | no_license | P-iyushRaj/Django-Rest-Framework | 1eca586ee6ded4720e8f1845c9c9cac06d637492 | 9d7e754156739118f725ab431d25bdde63ebd91d | refs/heads/master | 2023-03-15T05:27:37.352592 | 2021-03-08T09:27:46 | 2021-03-08T09:27:46 | 345,599,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from django.contrib import admin
# Register your models here.
from .models import Singer, Song
@admin.register(Singer)
class SingerAdmin(admin.ModelAdmin):
list_display=['id', 'name', 'gender']
@admin.register(Song)
class SongAdmin(admin.ModelAdmin):
list_display = ['id', 'title', 'singer', 'duration'] | [
"piyush@gmail.com"
] | piyush@gmail.com |
f24665f25700be68e4a637774b61b744257416cb | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/venv/lib/python3.7/site-packages/plotly/graph_objs/scattermapbox/_line.py | 24de4166109b0586711d43349e01d8f14fa88d1b | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | false | 5,567 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Line(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scattermapbox"
_path_str = "scattermapbox.line"
_valid_props = {"color", "width"}
# color... | [
"edimaudo@gmail.com"
] | edimaudo@gmail.com |
b4c5e3e144d510a232590523f174411f1d2e2336 | b1c7a768f38e2e987a112da6170f49503b9db05f | /userprofile/migrations/0004_profile_date.py | d3cd49baf2783abbc91a484f53e46ccd13a7639a | [] | no_license | Niladrykar/bracketerp | 8b7491aa319f60ec3dcb5077258d75b0394db374 | ca4ee60c2254c6c132a38ce52410059cc6b19cae | refs/heads/master | 2022-12-11T04:23:07.504966 | 2019-03-18T06:58:13 | 2019-03-18T06:58:13 | 176,218,029 | 1 | 0 | null | 2022-12-08T03:01:46 | 2019-03-18T06:27:37 | JavaScript | UTF-8 | Python | false | false | 495 | py | # Generated by Django 2.0.6 on 2018-09-19 07:05
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0003_auto_20180915_1222'),
]
operations = [
migrations.AddField(
model_name='profile... | [
"niladry.kar85@gmail.com"
] | niladry.kar85@gmail.com |
4867cc358df2a9e5db6d64974690faef2801d82b | 2e1c1558f6fcb12a57449f9f6f0db6f1cbf38dd6 | /src/masonite/authorization/models/__init__.py | 0b6a76d853be38776efb36472df3256fcdf79305 | [
"MIT"
] | permissive | MasoniteFramework/masonite | ca51bf3d0e4777e624b3a9e94d1360936fb8006d | e8e55e5fdced9f28cc8acb1577457a490e5b4b74 | refs/heads/4.0 | 2023-09-01T18:59:01.331411 | 2022-11-05T01:29:29 | 2022-11-05T01:29:29 | 113,248,605 | 2,173 | 185 | MIT | 2023-04-02T02:29:18 | 2017-12-06T00:30:22 | Python | UTF-8 | Python | false | false | 35 | py | from .authorizes import Authorizes
| [
"idmann509@gmail.com"
] | idmann509@gmail.com |
4a81108d031b334c2ee7e35ff0f338776b47c049 | 9a0e2312236b628007a67c07164ea7b97207e47c | /col/apps/logpoint_agent_collector/logpoint_agent_collector.py | e1650f10b279daff06f16f5235310f5f6c184d17 | [] | no_license | laxmi518/network_project | d88b9fe73522deaa90c1dbfd22c6861020a6c7be | 2e998338f3d1142a8098d3dfd35f4c8ad0e4ba00 | refs/heads/master | 2020-05-21T15:48:07.830107 | 2018-05-09T18:58:37 | 2018-05-09T18:58:37 | 84,631,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | #!/usr/bin/env python
import logging
from pylib.wiring import gevent_zmq as zmq
from lib import fi_collector
from fi_applications import make_zip
from pylib import conf, wiring, textual
log = logging.getLogger(__name__)
def _parse_args():
options, config = conf.parse_config()
return config
def _prepare_a... | [
"laxmi.jhapa@gmail.com"
] | laxmi.jhapa@gmail.com |
86124ffe93f07eff65064bf4b695bf53599a00e4 | e70bc88ccc01a7616016d085a96f8f8c81ade50c | /tests/test_changelog.py | b3c324c81487c1c47a64f856f938f5422e291cae | [
"BSD-3-Clause"
] | permissive | justcalamari/rever | 1dc9b51c8338c3fb53c7c7adbb0eac59de2a8305 | 8bea796991a6ed354d45b053064324659b1f2b38 | refs/heads/master | 2021-04-29T19:34:57.352326 | 2018-02-28T04:59:59 | 2018-02-28T04:59:59 | 121,580,667 | 0 | 0 | null | 2018-02-15T01:26:15 | 2018-02-15T01:26:14 | null | UTF-8 | Python | false | false | 2,976 | py | """Tests the changelog activity."""
import os
from rever import vcsutils
from rever.logger import current_logger
from rever.main import env_main
REVER_XSH = """
$ACTIVITIES = ['changelog']
$DAG['changelog'].kwargs = {
'filename': 'CHANGELOG.rst',
'ignore': ['TEMPLATE.rst'],
'news': 'nuws',
}
"""
CHANGEL... | [
"scopatz@gmail.com"
] | scopatz@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.