blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
150bd0efd216bec9d3f05d67433ec1b07b6a88dc | edebce2da16b500683cb9777c37924bf3dcd2895 | /myself/blog/blog/urls.py | 77bd8a1bcc2b85d70290d5fed2334d1b66011e47 | [] | no_license | yxd2018/Test | d26778b0b826f663b665f765b0851b8f2d04a7f7 | 9fba56a9d7540ce35e29bf886248e05fc090c21d | refs/heads/master | 2020-03-08T07:47:42.445969 | 2018-04-04T02:58:12 | 2018-04-04T02:58:12 | 128,003,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"yxd0822@163.com"
] | yxd0822@163.com |
24826e7db681b08ab83bbbc5d2e7edf0c4dc493b | 0604fb807a330892b82de2f13e43d1e288f33043 | /tests/.venv/bin/jsonpatch | 2e23b784b185a3e40e966bb637c392a564d0b346 | [] | no_license | wtsi-hgi/openstack_report | fe679c33d776ba5c181d5a0a806122d8fe89cc27 | 1e9fddaddf82bca6290a5d52792b7df608600804 | refs/heads/master | 2023-01-23T07:46:39.275387 | 2021-02-19T13:43:35 | 2021-02-19T13:43:35 | 203,331,160 | 0 | 0 | null | 2023-01-04T09:03:16 | 2019-08-20T08:15:37 | Python | UTF-8 | Python | false | false | 3,696 | #!/Users/pa11/Code/openstack_report/.venv/bin/python3
# -*- coding: utf-8 -*-
import sys
import os.path
import json
import jsonpatch
import tempfile
import argparse
parser = argparse.ArgumentParser(
description='Apply a JSON patch on a JSON file')
parser.add_argument('ORIGINAL', type=argparse.FileType('r'),
... | [
"pa11@mib113623i.internal.sanger.ac.uk"
] | pa11@mib113623i.internal.sanger.ac.uk | |
6299e9b31dc2732eb897d86e22688c2d2019c47e | 216f59e44324d19b4978e221e548f4dc88a96de2 | /Day41/01 手写socket server.py | b5c6751fb445f149158f3a3a4ff89e676c7c8de0 | [] | no_license | klandhu/Python-S14 | b69f85d749e26adaf1edfadf8f690cce25776bab | 6171be56cc01ebdb11dffc0049e43727771f10fd | refs/heads/master | 2020-04-06T09:53:01.596595 | 2018-11-16T10:06:40 | 2018-11-16T10:06:40 | 157,357,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import socket
sk =socket.socket()
sk.bind(('127.0.0.1',8080))
sk.listen(5)
while 1:
conn, addr = sk.accept()
data = conn.recv(9000)
print(data)
conn.send(b'HTTP/1.1 200 OK\r\n\r\n')
#conn.send(b'o98k')
with open("test.html","rb") as f:
conn.send(f.read())
conn.close()
| [
"nan.hu@gometech.com.cn"
] | nan.hu@gometech.com.cn |
556a0be4744a9543cc7d75387a5797c1e97cdc25 | d46558f344c9f20205ee3c9c3f4fc4c3450500c8 | /project2/task2/Reducer2.py | a061d28250bea81f2dc4126f1fc9250f8c082b09 | [] | no_license | xiezhw3/bigDataProject | 8d6545d0853dfbec4dbd47337337711d14fffc9a | 57a1905f924fb86ed541161334ecf6696e755e57 | refs/heads/master | 2016-08-05T06:58:13.962850 | 2015-06-11T13:19:39 | 2015-06-11T13:19:39 | 37,263,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #! /usr/bin/python
import sys, heapq
from operator import *
oldKey = None
tags = {}
for line in sys.stdin:
data_mapped = line.strip().split('\t')
if len(data_mapped) != 3:
continue
zero, tag, num = data_mapped
if not tag in tags.keys():
tags[tag] = 0
tags[tag] += int(num)
top1... | [
"xiezhw3@gmail.com"
] | xiezhw3@gmail.com |
c274dbbe37b4a409b549b682a826a50e9a4c7009 | e74d43d46819068bb51724e3c3485796065af1f7 | /strings_and_array/P1_2.py | c60d7c8c530f1fe0e33ebb9eb724e414e7484646 | [] | no_license | sunnyyants/crackingPython | 30a06de78525773fdf6d18e55f20e9970d4031b5 | 6197e916dfd47be61319103c7d482d4bae0f8f93 | refs/heads/master | 2021-01-15T23:02:16.865043 | 2014-01-12T20:06:07 | 2014-01-12T20:06:07 | 13,941,490 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | __author__ = 'SunnyYan'
# Reverse a null terminal string
# I decide to use 3 different methods
def method1(strings):
if len(strings) == 1:
return strings
return method1(strings[1::1]) + strings[0]
def method2(strings):
return strings[::-1]
def method3(strings):
i = len(strings)-1
result ... | [
"sunnyyants@gmail.com"
] | sunnyyants@gmail.com |
84db0d6012e0ac0180354fa1f6e290665ac7f820 | 9407dc0d46e266bc76eb9572731e0e9924364f61 | /vikalp/local_settings.py | 74a2ab2a4fbf0a5bd37afe0d3f76aaa66e52d7e2 | [] | no_license | mihirk/vikalp | 232aac510f98f05572d910645a070772a55a9051 | bb29624f438ce2e9e0e8482f3fe645f7b5ae32e1 | refs/heads/master | 2021-01-18T03:37:39.050602 | 2014-01-03T13:46:46 | 2014-01-03T13:46:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py |
# DEBUG = True
from .settings import * # noqa
TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner'
COMPRESS_ENABLED = True
DATABASES = {
"default": {
# Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
"ENGINE": "django.db.backends.sqlite3",
# DB name or path to databa... | [
"mihir.khatwani@gmail.com"
] | mihir.khatwani@gmail.com |
49ad2bf24f87bb8e881b32002df4a56eb1cde4e1 | 719febb378f20e9c63aefd521ab6ceb1a05e836f | /runserver.py | 64149946f28bb657ca2cdd6e3a13899d4a7af172 | [] | no_license | shuyangli/paradigms-game | 303336daa3b6e4a4d99165158b45ccbfa14ce95f | 22fa2d047facdcd65ec71f5f9c668c87afbaa419 | refs/heads/master | 2016-09-05T19:54:34.899171 | 2015-05-07T04:27:56 | 2015-05-07T04:27:56 | 34,142,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import argparse
from castle_server import CastleServer
if __name__ == '__main__':
# Parse command line arguments
parser = argparse.ArgumentParser(description="Server for Castles game.")
parser.add_argument("-p", "--port", type=int, default=9001, dest="port", help="port number")
parser.add_argument("-d"... | [
"shuyang.li.95@gmail.com"
] | shuyang.li.95@gmail.com |
d4fddba0fc023aa2bf4ded9cd8bd5b50cf21c4d4 | b8b6bd8f14db95d74df1f27e2c7e5e61d0e831e2 | /src/DQN.py | 470ebda84eea9e1b2e6f2c5636f8658203cdabfa | [] | no_license | JustCallMeDavid/USRL4RS | fa6f2c83cb8e0e11381eba15deaeb5b21820b56d | ddaeb75f7a17ca484196a2e985b94e64cbed1c08 | refs/heads/main | 2023-08-27T15:08:29.317092 | 2021-10-11T13:55:58 | 2021-10-11T13:55:58 | 415,513,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import torch
class DQNet(torch.nn.Module):
def __init__(self, emb_size, hidden_size, out_size):
super(DQNet, self).__init__()
self.fc1 = torch.nn.Linear(emb_size, hidden_size)
self.fc2 = torch.nn.Linear(hidden_size, out_size)
self.relu = torch.nn.ReLU()
def forward(self, x):
... | [
"d.gradinariu@hotmail.com"
] | d.gradinariu@hotmail.com |
aaaad40aad30f39b1b13f1908e2db82289f5c51d | ee1b2303bc3d7d476f61bd5268baa707279fc454 | /LAS_Processor_v4.py | ce96857739842a3c9c047b2a395204b6393cea41 | [] | no_license | GeospatialDaryl/objLAS | b90853fd6ff494eba39de72ed2284d9e0d3f34e3 | a1f85266fdaf9031dcc4cf442fdd9512e51e7b82 | refs/heads/master | 2021-01-06T20:46:41.279218 | 2015-09-23T17:07:06 | 2015-09-23T17:07:06 | 31,977,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | import ClassLASObj_v13
from ClassLASObj_v13 import *
#Class LTKPaths contains Machine Specific Paths
import ModuleLiDARtools_v1
from ModuleLiDARtools_v1 import * #Paths
import os
#import arcpy
#import arcgisscripting
#gp = arcgisscripting.create(9.3)
#gp.AddToolbox("C:\Program Files (x86)\ArcGIS\ArcToolBox\Toolboxes... | [
"daryl_van_dyke@fws.gov"
] | daryl_van_dyke@fws.gov |
afb08de55adda6d146170c5964c70216e97605d2 | 14b44146a4d6b9780390a0dccbaed60156abb0f8 | /blog/models.py | 4d83b10414cb41f53fb11bd47c962f4b08b1b9a5 | [] | no_license | lillian7/wopaproject | 8e15869cc8c42b2a89c8a809d0f805fab0814efa | 68cde33a1539d7051a3c377e0404938a2c77fd5f | refs/heads/master | 2020-05-17T21:38:03.503813 | 2014-08-08T08:18:22 | 2014-08-08T08:18:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | from django.db import models
from django.db.models import permalink
# Create your models here.
#first a database table called blog
class Blog(models.Model):
#the fields to be created in the table blogs
title = models.CharField(max_length=100, db_index=True)
slug = models.SlugField(max_length=100, db_index... | [
"lnassanga@gmail.com"
] | lnassanga@gmail.com |
cab89a174139d9965e8c64cdb0a66f9260beeedf | 4b758ca583d2a58d4d711381405e024109a0f08f | /dali_tf_plugin/dali_tf_plugin_utils.py | 54baaa57acf8c189bf3870be8426eaa03913c41c | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | ConnectionMaster/DALI | 76ff07b2fa3f62490b059088c88ade7570130ff4 | 6b90519d2c209d705e8912a5f00b71a018aeaa52 | refs/heads/master | 2023-04-14T13:04:57.520421 | 2021-01-22T16:34:31 | 2021-01-22T16:34:31 | 187,683,855 | 1 | 1 | Apache-2.0 | 2023-04-03T23:45:28 | 2019-05-20T17:18:56 | C++ | UTF-8 | Python | false | false | 5,971 | py | # Copyright (c) 2019, NVIDIA 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-2.0
#
# Unless required by applic... | [
"noreply@github.com"
] | ConnectionMaster.noreply@github.com |
6820ae5641d1fe67e470fc362c090c11417e87bb | 90343974013351bd925a403739ba77c45084fd7d | /Frankot_Chellapa.py | 0a9466cfce0946f53869687dc2dae5e4ea7c96d6 | [] | no_license | cosecdelta/Computer-Vision-Basic-Codes | a91564855d0faa283129f5d4753d3a2434379891 | bf95f1d25e4fdf9875701bb975355fd5c327e8cd | refs/heads/main | 2023-03-05T00:21:14.845060 | 2021-02-17T22:19:29 | 2021-02-17T22:19:29 | 329,207,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | ## Default modules imported. Import more if you need to.
import numpy as np
from skimage.io import imread, imsave
## Fill out these functions yourself
# Inputs:
# nrm: HxWx3. Unit normal vectors at each location. All zeros at mask == 0
# mask: A 0-1 mask of size HxW, showing where observed data is... | [
"noreply@github.com"
] | cosecdelta.noreply@github.com |
140539ee859d3d8844b1506b84e1853570ab09c1 | 246729c419e99e237065635f693f44fb0a62b41f | /catalyst/contrib/utils/thresholds.py | 907e853b6514c5a2d8057a66a557ccade60e34b4 | [
"Apache-2.0"
] | permissive | Pandinosaurus/catalyst | d3fb311c26ec943b4ac483ba229c3dd1e7a7cff6 | 117b0cc9256be7af6122f6fcc4f95a0e5a2adbc5 | refs/heads/master | 2022-05-06T02:38:28.119220 | 2021-08-30T07:55:33 | 2021-08-30T07:55:33 | 207,519,426 | 0 | 0 | Apache-2.0 | 2021-08-31T03:49:16 | 2019-09-10T09:35:11 | Python | UTF-8 | Python | false | false | 16,883 | py | from typing import Callable, List, Tuple
from collections import defaultdict
import enum
from functools import partial
import numpy as np
from sklearn.model_selection import RepeatedStratifiedKFold
METRIC_FN = Callable[[np.ndarray, np.ndarray], float]
class ThresholdMode(str, enum.Enum):
"""Available threshold ... | [
"noreply@github.com"
] | Pandinosaurus.noreply@github.com |
598c1c9cd8f05d484e01315b7d163bcd17656212 | 0bc31d7f07a135e3909e7caf33246dd52999b50f | /common/decorator.py | 0149f457a77e062c759d593242274aa58df0204c | [] | no_license | shelmesky/wisemonitor | db022d3382fe39033ae53178edd7d4b6cfa1a95b | 905fec5d58a08851089e39e617e8d52363b7f36c | refs/heads/master | 2021-01-10T21:04:35.992790 | 2014-06-30T10:56:53 | 2014-06-30T10:56:53 | 12,806,391 | 4 | 5 | null | 2016-07-14T07:41:52 | 2013-09-13T09:47:01 | Go | UTF-8 | Python | false | false | 328 | py | import functools
def require_login(method):
def wrapper(self, *args, **kwargs):
user = self.get_secure_cookie("wisemonitor_user")
uri = self.request.uri
if not user:
self.redirect("/login/?next=%s" % uri)
else:
return method(self, *args, **kwargs)
return ... | [
"roy.lieu@gmail.com"
] | roy.lieu@gmail.com |
3b2bf05909e2b6c2de791c1388a76308d4c4e735 | 1ad3409413ee0bd02e81199efd1f83469b25737c | /2020-09-16/2.py | 6ff89e40f649c40b8595660cab7acba17613d280 | [] | no_license | montrehack/challenges | 4711552e968fd1a0783659f708586d347d744672 | d5f419417a651c1ee456d5fed49a4bb06476f1b9 | refs/heads/master | 2022-05-09T09:52:51.609548 | 2022-04-24T00:37:45 | 2022-04-24T00:37:45 | 12,901,416 | 28 | 12 | null | 2022-04-24T00:37:46 | 2013-09-17T17:00:54 | PHP | UTF-8 | Python | false | false | 9,036 | py | from pwn import *
from struct import pack, unpack
from sys import exit
DEBUG = False
REMOTE = None
REMOTE = 'ctf.segfault.me'
RVA_HEAP_ALLOC = 0xEDE # readelf -s chal | grep heap_alloc (Windows)
RVA_HEAP_ALLOC = 0x145E # readelf -s chal | grep heap_alloc (Linux)
RVA_FLAG_TWO = 0x203020 # readelf -s chal | grep fla... | [
"alex@segfault.me"
] | alex@segfault.me |
fe15e96de78340081044c390097e0aa7fe290d4f | 45a00ac27ac8745e41ee89e89ae798ab052896d0 | /interface1/venv/case/mail.py | 5a07871a1b4d241c25c33d70f9ba2624aebe55c8 | [] | no_license | jiangll888/interface | c7b96f5c8105e66a98f8e951b897c751d882cd6d | 3f3fa6d1d9591a8331eb660aa040861edb44a610 | refs/heads/master | 2020-04-30T13:10:59.372448 | 2019-03-22T02:52:18 | 2019-03-22T02:52:18 | 176,848,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | from util.send_mail import SendMail
from util.db_config import OperaDB
class RunMail:
def send_mail(self,filename=None):
op = OperaDB()
se = SendMail()
result_list = op.get_all("select result from `case`;")
result_list1 = [[value for key,value in d.items()][0] for d in result_list]... | [
"jiangliulin@163.com"
] | jiangliulin@163.com |
00c3a56f1c545aa36ab9dc7ecd7a9bb798961fe0 | caa175a933aca08a475c6277e22cdde1654aca7b | /tests/schema/product/query/snapshots/snap_test_all_product_file_paths.py | b5339588cbf10678ad6205db41a22f2ee60c7a11 | [
"MIT"
] | permissive | simonsobs/acondbs | 01d68ae40866461b85a6c9fcabdfbea46ef5f920 | d18c7b06474b0dacb1dcf1c6dbd1e743407645e2 | refs/heads/main | 2023-07-07T04:33:40.561273 | 2023-06-28T22:08:00 | 2023-06-28T22:08:00 | 239,022,783 | 0 | 1 | MIT | 2023-06-26T20:36:39 | 2020-02-07T21:07:46 | Python | UTF-8 | Python | false | false | 2,557 | py | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['test_schema[all] 1'] = {
'data': {
'allProductFilePaths': {
'edges': [
{
'node': {... | [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
41f5580fcdacf988e3d0088c4ff35723a7277bb3 | d9563800aabef6dd47c3ad28491686ebe552bf10 | /web.py | ffa925faad9315654c04e91ab80269e992f92551 | [] | no_license | drovn003/heroku | b88f858b7328500b39c5a418aefcab3c1e7a330e | d7560535a65f49e6675f92a68cd9319092ca9de5 | refs/heads/master | 2020-04-02T18:30:07.883122 | 2018-10-25T16:30:07 | 2018-10-25T16:30:07 | 154,702,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from flask import Flask
app = Flask(__name__)
@app.route(‘/‘)
def index():
return ‘hello, wold’
| [
"noreply@github.com"
] | drovn003.noreply@github.com |
b6ebc8726aa81143cc63fd8d1964d325186e3b94 | 96cb22932f6f17a64d4ae54cd3e5db11da1e7092 | /tests/unit/test_pathify_by_key_ends.py | b0cccdc6152b7b46c83d5ec7da17e3099a79a6ae | [
"MIT"
] | permissive | xguse/snaketools | 4f076cce25f5b4dcf7f5ad542e2a5ebef5ff52a3 | ba3b68088bd9bb656b9ad64656a537bc1cfccdb4 | refs/heads/master | 2021-01-23T12:05:00.217621 | 2018-06-08T16:04:08 | 2018-06-08T16:04:08 | 102,645,205 | 1 | 0 | MIT | 2018-06-01T17:03:32 | 2017-09-06T18:41:15 | Python | UTF-8 | Python | false | false | 1,349 | py | """Unit test the pathify_by_key_ends function."""
from pathlib import Path
from snaketools import snaketools
from tests.test_snaketools import * # noqa: F403,F401
def test_pathify_this():
"""Ensure pathify_this returns expected values."""
assert snaketools.pathify_this("TEXT_FILE")
assert snaketools.pa... | [
"w.gus.dunn@gmail.com"
] | w.gus.dunn@gmail.com |
34504f3e195a7d0a38dcbf2515ee3814f9664a6d | f288b7103133eb101304308d4f4c9c827b732056 | /experiences/sofaSceneLowBridge/topo.py | c98a9bb703207245cdb091af83f01ef15927053d | [] | no_license | zaneck/evolveRobots | 3c9dd1b0196df28b2c33ffd3c500dd7cbaa33ba2 | 02616fb8dbe1fffd57cd6e078338a7a394d010de | refs/heads/master | 2020-04-11T01:29:27.124160 | 2016-09-30T12:03:31 | 2016-09-30T12:03:31 | 60,244,000 | 1 | 0 | null | 2016-09-29T11:46:00 | 2016-06-02T07:56:10 | Python | UTF-8 | Python | false | false | 1,793 | py | # topology = [
# [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
# [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
# [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
# [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
# [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
# [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
# [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | [
"val.owczarek@gmail.com"
] | val.owczarek@gmail.com |
c92f83856a460fbd76d55aecce1634bc80da397a | 77f7d3c94a696f02249440d24f099baafa5dd499 | /g1scraper/scrap.py | 4ede4acdf1861d41ef8a9dc91038488418d69be1 | [
"Apache-2.0"
] | permissive | schneider8357/g1scraper | eabe85fc5907204fa744559aa4ad34b93f3c6e3c | a756c652ed121a7f7109cbdaec5d11f5dd277c0c | refs/heads/main | 2023-06-25T10:31:13.445238 | 2021-08-03T15:26:18 | 2021-08-03T15:26:18 | 392,109,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | """Funcoes de scraping."""
import collections
import json
from bs4 import BeautifulSoup
import requests
def get_closing_bracket(string, indice_inicio):
"""Retorna o indice da '}' correspondente a '{' no indice recebido."""
if string[indice_inicio] != '{':
raise ValueError("String invalida")
deque... | [
"schneider8357@hotmail.com"
] | schneider8357@hotmail.com |
07be42846ea3adc4c1fcc1067837e0394309c7c8 | 968003c0336733ad45ccedbdce23b51a4df89825 | /hottbox/rank/rank_estimation.py | f4f5795d89d2884c57d3fe690bc3c3773553ac41 | [
"Apache-2.0"
] | permissive | hottbox/hottbox | 0167ed079ba9608c6c1b3366bc522dabd824075f | 26580018ec6d38a1b08266c04ce4408c9e276130 | refs/heads/develop | 2020-03-07T05:36:06.008704 | 2020-01-31T12:47:52 | 2020-01-31T12:47:52 | 127,300,555 | 175 | 25 | Apache-2.0 | 2020-01-31T12:54:16 | 2018-03-29T14:07:32 | Python | UTF-8 | Python | false | false | 2,000 | py | import numpy as np
from ..core.structures import Tensor
from ..algorithms.decomposition.cpd import CPD
def rankest(tensor, rank_range, epsilon=10e-3, verbose=False):
""" Estimate the optimal Kruskal rank of a tensor
Parameters
----------
tensor : Tensor
Multi-dimensional data which Kruskal ra... | [
"ilyakisil@gmail.com"
] | ilyakisil@gmail.com |
906140f5f9e9984a384bf2df06111b3814945311 | 643293536a8e09d05ee7df0da7a5a19369331f7e | /kindred_api/migrations/0003_remove_user_ig_token_expiry.py | 8ae9e09e54d9a7f4995482614d0ce6a2393211ea | [] | no_license | williamflaherty/kindred-api | 1caa53a7f4acfdd23fd5b6d8656cc40394ad94a3 | 7110290a0d7b3aed272d4125f38eed366b415d01 | refs/heads/master | 2021-03-22T04:36:34.401632 | 2015-07-31T12:22:44 | 2015-07-31T12:22:44 | 39,611,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('kindred_api', '0002_auto_20150725_2011'),
]
operations = [
migrations.RemoveField(
model_name='user',
... | [
"william.flaherty@gmail.com"
] | william.flaherty@gmail.com |
80a10e59342491b0f719f60ab2dabcaa09b7a8af | c123929d263042368ecab95d0efc791b084cc5ef | /exambook/asgi.py | 7a9b6dab347618e406f847de2195985a7c9c9f24 | [] | no_license | mufazzalshokh/examboook | 6b05232c47bd90b7191fd1c1b70a9573958e9704 | 7c70e5338a1cf4e8ea73622bd645c3c5a3f7fba3 | refs/heads/master | 2023-08-15T00:08:43.170106 | 2021-09-22T19:59:34 | 2021-09-22T19:59:34 | 385,854,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for exambook project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"zafarberdinazarov@Zafars-MacBook-Air.local"
] | zafarberdinazarov@Zafars-MacBook-Air.local |
648342a399665026c92a81498c91443f2eea80e2 | 9a05de245f3d87a731a44f47a1c316d3fe0d996b | /src/paloma/migrations/0011_auto__chg_field_mailbox_user.py | b7414063ade935c0e278c011b6e13bde31cc2445 | [
"BSD-2-Clause"
] | permissive | harajuku-tech/paloma | 4c3651711d76b0df86692cf45b1bced221b8cc77 | 5be6ac7724ec0cabe5390b7018112f41fdec7581 | refs/heads/master | 2021-01-10T22:04:11.898174 | 2012-09-18T02:55:21 | 2012-09-18T02:55:21 | 3,616,369 | 0 | 1 | null | 2012-09-17T06:02:54 | 2012-03-04T05:56:51 | Python | UTF-8 | Python | false | false | 10,049 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Mailbox.user'
db.alter_column('paloma_mailbox', 'user_id', self.gf('django.db.models.fiel... | [
"gmail@hdknr.com"
] | gmail@hdknr.com |
3f420e13c93c7aa89a8a063eca9f36043e5b52b1 | 4c41163cb921215f0d089f0e485103a621b6990b | /cmdr/cmdp/views.py | 44546d5fec1b9eb5da145cdc5e9a938360b98c44 | [] | no_license | haman1/CRUD | 582a1858c5cab370b0283b33f5c3f9814db0ebe3 | 922cbd9cf5536ce56c83cee053f51ee0d891b73b | refs/heads/master | 2022-07-16T20:47:47.092695 | 2020-05-13T17:05:04 | 2020-05-13T17:05:04 | 263,691,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.views.generic import ListView
# Create your views here.
from .models import Cmdr
class HomePageView(ListView):
model = Cmdr
template_name = 'home.html'
| [
"ombasaherman@gmail.com"
] | ombasaherman@gmail.com |
574e9a3ede31b2a2ec1ea8f1f6ed416baced133d | f26233042850800454406617fa2eb9b7669364f8 | /MIsim/compute.py | 2a9888472c65ef9b857a5789cc1d41ab39a4be06 | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | iniverno/MIsim | 69144f9669d00429da5c396ebf95dc9c21f886b7 | c37ab10c19cd009bf4a916e88c916e4f2e5321ba | refs/heads/master | 2021-01-10T09:47:12.746751 | 2016-02-04T22:23:04 | 2016-02-04T22:23:04 | 51,109,803 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,536 | py | ##################################################################################3
#
# Jorge Albericio, 2015
# jorge@ece.utoronto.ca
#
##################################################################################
import chunk
import numpy as np
import math
# in:
# data : numpy 3D ndarray of dimen... | [
"jorge.albericio@gmail.com"
] | jorge.albericio@gmail.com |
fa93d85569c12cb7aa7140fff0a8c35bf8da0a13 | 85b958530cbf8a77c5766f88eb8a6590bdf1ad56 | /application/controllers/area_atencion/delete.py | b554fddf5f50405484aa2c5594a37eac73d00faa | [] | no_license | charliecarmona44/tut2018 | 1e1ed8c56ebf6b2df09b59a5010d8ebbc17d433e | 54c796a4bdda29a9c5be371de55804ccc4eb9af8 | refs/heads/master | 2022-03-13T21:00:05.623926 | 2019-07-19T15:53:18 | 2019-07-19T15:53:18 | 197,802,686 | 0 | 0 | null | 2019-10-31T08:23:54 | 2019-07-19T15:51:11 | Python | UTF-8 | Python | false | false | 3,018 | py | import config
import hashlib
import app
class Delete:
def __init__(self):
pass
'''
def GET(self, id_area_atencion, **k):
if app.session.loggedin is True: # validate if the user is logged
# session_username = app.session.username
session_privilege = app.session.... | [
"53064537+charliecarmona44@users.noreply.github.com"
] | 53064537+charliecarmona44@users.noreply.github.com |
4765bc6a151dd2ace0a1caa820041abaa0e3233f | 1bccf0b1374dcfddfc3e320fd5b6af499334df2d | /data/rsync.py | 904679ac972e2e9f6646d7eed2179b1a3253946a | [
"Unlicense"
] | permissive | chebee7i/twitter | 6b245f5a7b7510089b62d48567e6208e1fe8a1db | ec1d772c3ef7d2288ac8051efb8637378f3ec195 | refs/heads/master | 2021-01-01T16:25:13.242941 | 2015-06-24T19:39:24 | 2015-06-24T19:39:24 | 23,846,593 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | """
Script to backup Twitter data using rsync.
A lockfile ensures that this script does not run until the previous run has
finished.
"""
from __future__ import print_function
import errno
import fcntl
import glob
import os
import subprocess
import sys
import time
import configparser
config = configparser.ConfigPa... | [
"chebee7i@gmail.com"
] | chebee7i@gmail.com |
86b7e9291c8130f09049ae542b9f23a1ef115a28 | 50f239890cf2708f9e2f9fa29216aeaea360eb31 | /tests/examples/inconsistent_pipeline.py | d41f71045fab62e79b38a4af27dfb509993c53f0 | [
"MIT"
] | permissive | jbn/modpipe | 485b18cf13290724c2b282b849ca4ac7b2d0f03e | 06e182704d4582ab41ce92f5ae1a908874bf60e2 | refs/heads/master | 2021-06-23T09:31:08.432654 | 2019-06-19T17:36:55 | 2019-06-19T17:36:55 | 137,112,992 | 4 | 0 | MIT | 2019-06-19T17:36:57 | 2018-06-12T18:35:50 | Python | UTF-8 | Python | false | false | 169 | py | def f(x):
return {'value': x}
def g(src):
return src, {}
def h(src, dst):
dst['computation'] = src['value'] * 2
def last_one(src, dst):
return dst
| [
"jbn@abreka.com"
] | jbn@abreka.com |
e3d8013e33d572b49aff44454e400c499ce32db6 | b4eff234e9faf8656a6012bbc36c4da3267e3a8a | /Laboratorium2/zad5_lib.py | bbd622f0b41b7544bc95cd47b0eff61ce09b14a7 | [] | no_license | rzeznia/pythonWSBpwjs | 1ab339bb8f9c28840e40e5d7cf0afe0188a9184a | 81e5df9a58e6b11d120bfd67fbf9054e52518bdc | refs/heads/master | 2020-04-09T05:36:38.276884 | 2019-01-27T13:22:20 | 2019-01-27T13:22:20 | 160,071,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from math import sqrt
def srednia(lista_ocen):
liczba_ocen = len(lista_ocen)
return suma_ocen(lista_ocen) / liczba_ocen
def suma_ocen(lista_ocen):
liczba_ocen = len(lista_ocen)
suma = 0
for ocena in lista_ocen:
suma += ocena
return suma
def mediana(lista_ocen):
liczba_ocen = len(l... | [
"marcin.gd3@gmail.com"
] | marcin.gd3@gmail.com |
6f02326609f002098b509e1d2671a05d4d6e528b | fed0f32e035eb26c5acb84d9ee7626bf6e3c3d39 | /Finding the multiple.py | 5a87711d731a36421bf8d09e8bcb7702a6c20845 | [] | no_license | Suru996/SRM-e_lab-Python-Level-1 | 6f0ad4db94b3377d13b8bf92382294495c7fcee2 | d69a93018d862e668cee76791c081df36a05f8e5 | refs/heads/main | 2023-07-27T12:13:10.743000 | 2021-08-22T10:19:50 | 2021-08-22T10:19:50 | 387,500,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | n = int(input())#Length of list
b = []
for x in range(0,n):
a = int(input())# input from user
b.append(a)#Assigning each value given by user as integer type
k = int(input())#Multiples of k
for x in range(0,n):
if(b[x] % k ==0):
print(b[x])
| [
"noreply@github.com"
] | Suru996.noreply@github.com |
96bac37f424b77980856d7e2566c984015610ba9 | b97f8bbc34d4b6d07e23eb86eb3e584f67dc90f2 | /base_station/tests.py | 61bdfcd87f90495f6c93cb301d1cd87446463de0 | [
"Apache-2.0"
] | permissive | EpicEric/base_stations_django | 5f6a8df402cdae825bd9b67663cfbe66d93525dc | 7a04bc78ebe59067e7ff117862c9d2b0182d5d13 | refs/heads/master | 2021-03-24T13:03:09.073738 | 2018-12-29T13:31:25 | 2018-12-29T13:31:25 | 122,376,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | from collections import Counter
from django.test import TestCase
from django.contrib.gis.geos import Point
from model_mommy import mommy
from base_station.models import IdentifiedBaseStation
class IdentifiedBaseStationTestCase(TestCase):
def test_one_bs_inside_bounds(self):
bs = mommy.make(IdentifiedBase... | [
"mateusnakajo@gmail.com"
] | mateusnakajo@gmail.com |
3f8f37c93b7b3054adec950e900f86e9dbe50c09 | 360f2f8489187e243f23fa552c36a89dd48d3795 | /zadaca8.3.py | b9c5aa56718d37b71f1c9d148cbab3097b24046e | [] | no_license | stanic-mia/Zadaca08 | bfdd25e58f20ff69a4e41d0e6a16eb4345172f8e | 7afe513cd2ec34e59e83eaf396bece78ab860131 | refs/heads/main | 2023-02-03T08:00:28.156554 | 2020-12-21T09:54:54 | 2020-12-21T09:54:54 | 323,285,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py |
brojA = int(input("Unesite prvi broj: "))
brojB = int(input("Unesite drugi broj: "))
operacija = input("Unesite računsku operaciju (+, -, *, /): ")
if operacija == "+":
print("Rezultat zbrajanja je: " + str(brojA + brojB))
elif operacija == "-":
print("Rezultat oduzimanja je: " + str(brojA - b... | [
"noreply@github.com"
] | stanic-mia.noreply@github.com |
767266bd140e0c8874953355ff300d128e4c125b | 47dea5236f93d79a049e3de40a065ae5d0713e50 | /mainEditarArrendatario.py | ce008c0622b3ce4ede4c7ceb38c9fe320cba4440 | [] | no_license | WilliamsScott/sicurezzaPy | d10548b6688dbfede9a4fcb5280f03987b0a5b30 | 76653773358249658865307defea8aa1ca7c1bfb | refs/heads/master | 2020-06-03T04:52:08.705513 | 2019-06-11T20:58:26 | 2019-06-11T20:58:26 | 191,446,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,279 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainEditarArrendatario.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainEditarArrendatario(object):
def setupUi(self, Ma... | [
"wmejias97@gmail.com"
] | wmejias97@gmail.com |
f4b603d1599486d77c94fb8d33f2757497d0a40f | a9113d2ef0ba68a5fb882a7b06954b58500589a1 | /B10_T1_Sort_Lists.py | 96ed2186e503e978b95a8f2d07ffc9c4d6f01493 | [] | no_license | karthiklingasamy/Python_Sandbox | 4194f6bdfc13a62b6a43fc104354c428adb8f7c1 | c1c352a220c76804609067c9f02945c535847378 | refs/heads/master | 2020-12-27T06:50:30.582174 | 2020-02-02T16:50:26 | 2020-02-02T16:50:26 | 237,802,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | li = [8,7,6,9,3,2,5,4,1]
print(li)
# To sort without impacting the ordinal list use sorted() function
s_li = sorted(li) # Create new variable to see the results
print('Sorted Variable:', s_li)
# To sort original list without using new variable use sort() method
li.sort()
print('Original Variable:', li)
... | [
"noreply@github.com"
] | karthiklingasamy.noreply@github.com |
99bb55217063b4eccb9f79e6e03780c46df5d6a8 | 5297825412a061d7b44e4379c02f21f618c1c578 | /maoyan/models.py | 2b40aa65e8e6dccb74627c29311db1096ac0485d | [] | no_license | xiaolifeidao123456/spider | 63c2b8664ef98b84632e6a3b7493d0d5d0b1c3cd | b02958d06b5f8b91fc6fc6de2a8f331ae764418d | refs/heads/master | 2020-03-29T04:50:26.405292 | 2018-09-20T11:04:23 | 2018-09-20T11:07:30 | 149,551,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | # import scrapy
#
# class MovieItem(scrapy.Item):
# # 电影名字
# title = scrapy.Field()
# # 主演
# start = scrapy.Field()
# # 上映时间
# releasetime = scrapy.Field()
| [
"1062959398@qq.com"
] | 1062959398@qq.com |
3d4a418da0e12ece71efa3b7f76035ee453690bd | 811a15aceb8f35fa738fa01e30e5003460715706 | /DA_fitter.py | db47929e9a2eb5679d0d18ad6b8e96344aa8268f | [] | no_license | CManser/WD_MWS_pipeline | 2e3660e3504f261f3daf74fdacb8762c215a61d8 | 99ef0b73d842dfda072f902745635a99b9453991 | refs/heads/master | 2021-03-02T14:54:29.652384 | 2020-03-08T19:43:49 | 2020-03-08T19:43:49 | 245,876,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,998 | py | import MWS_WD_scripts
import numpy as np
import sys
import matplotlib.pyplot as plt
import os
import scipy.interpolate
c = 299792.458 # Speed of light in km/s
stdwave = np.arange(3000,11000.1, 0.1)
inp = sys.argv[1]
name = inp.split('/')[-1]
file_path = inp[:-1*len(name)]
print('\n' + name)
filename = inp
name_r... | [
"noreply@github.com"
] | CManser.noreply@github.com |
e098d6c21f58e58491d74aa19724a3243abf4a13 | 915ea8bcabf4da0833d241050ef226100f7bd233 | /SDKs/Python/test/test_add_contact_log_type.py | f6cd3f13996b307b1bf6cb61f610404ecbbae465 | [
"BSD-2-Clause"
] | permissive | parserrr/API-Examples | 03c3855e2aea8588330ba6a42d48a71eb4599616 | 0af039afc104316f1722ee2ec6d2881abd3fbc07 | refs/heads/master | 2020-07-10T22:17:24.906233 | 2019-08-26T03:06:21 | 2019-08-26T03:06:21 | 204,382,917 | 0 | 0 | null | 2019-08-26T02:48:16 | 2019-08-26T02:48:15 | null | UTF-8 | Python | false | false | 966 | py | # coding: utf-8
"""
MINDBODY Public API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
impo... | [
"christopher.volpi@mindbodyonline.com"
] | christopher.volpi@mindbodyonline.com |
8075009ac3e6a2b508e0c69650729de3d981023f | cdd43e5400d93e406bcea9b3b332e416f09cbb2a | /card.py | 7ad7121cc826cac891c26dff0831d01b25eb54dd | [] | no_license | shruti420/War | 3580670ed1d0690c635cb0ebbfa2ac91e4ff1d91 | 10072cbe32aae2ae46987eb135ca7b07ad1baacf | refs/heads/main | 2023-06-30T13:29:48.431548 | 2021-08-01T19:17:13 | 2021-08-01T19:17:13 | 391,712,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | class Card:
suits = ["spades", "hearts","diamonds","clubs"]
values=[None, None, "2","3","4","5","6","7","8","9","10","Jack","Queen","King", "Ace"]
def __init__(self,v,s):
""" suit + value are ints"""
self.value=v
self.suit=s
def __lt__(self,c2):
if self.valu... | [
"noreply@github.com"
] | shruti420.noreply@github.com |
2815b4c6b972718b4f6cde4c85bc7f35594f15dd | 57a3a9065ff67eb57eb24fe1615aad41bbc916be | /configs/categories_config_vtag_Bacon_nomet.py | 826bfd0c32ff97b4db5a3eafb9c4ae481f3fcc7d | [] | no_license | blallen/DmsMonoX | 2eb1b6bc415c6f4ceff3ec803c2de662b8470156 | 5dd52783032f536335e492a0931764650d690571 | refs/heads/master | 2020-12-30T23:21:34.757629 | 2015-02-24T15:06:21 | 2015-02-24T15:06:21 | 37,859,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,905 | py | # Configuration for the Mono-X categories
out_file_name = 'mono-x-vtagged.root'
BINS = [250.0 , 260.0 , 270.0 , 280.0 , 290.0 , 300.0 , 310.0 , 320.0 , 330.0,340,360,380,420,510,1000]
BINS = range(250,550,50)
BINS.append(1000)
categories = [
{
'name':"resolved"
,'in_file_name':"resolved-combo.root"
... | [
"Phil@pb-d-128-141-150-9.cern.ch"
] | Phil@pb-d-128-141-150-9.cern.ch |
844f98281de04f478b910610b2b109cddd3c8b53 | e9969129cd3622c1a5be06216b88ef2cce3cb5d5 | /old-kata-backup/count_no_of_digit.py | b25cc18d102f6be28f5f7a2391570a3c23cd3087 | [] | no_license | Kalaiyarazan/code_kata | f8ce2afb29adf112d9b50a1371a656f2c186988b | 532327b7d412565441a329f8f2c7de2362d1a68a | refs/heads/master | 2020-07-26T17:40:45.181350 | 2019-11-03T17:34:26 | 2019-11-03T17:34:26 | 208,722,306 | 0 | 1 | null | 2019-11-03T17:23:40 | 2019-09-16T06:06:06 | Python | UTF-8 | Python | false | false | 33 | py | xyz=str(input())
print(len(xyz))
| [
"kalaiyarazan.v@gmail.com"
] | kalaiyarazan.v@gmail.com |
556bd1178bb1f303a3bdf90522bf60abc26e0877 | 11b5bd6806447a9b2ef4d8d54a9dc64c8be5d6e5 | /src/optimizers/schedulers/multiplicative_lr.py | 416d6d20f06bafe37335a66d375ada4e92b29f45 | [] | no_license | milySW/NNResearchAPI | 0789478791a91002d79dd909fe5f9654deeb4b44 | 00bbea4909d1272f80455edb692b45c6c6d56831 | refs/heads/master | 2023-04-17T19:56:19.667177 | 2021-05-03T23:48:26 | 2021-05-03T23:48:26 | 291,540,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from torch.optim.lr_scheduler import MultiplicativeLR as TorchMultiplicativeLR
from src.base.scheduler import BaseScheduler
class MultiplicativeLR(BaseScheduler, TorchMultiplicativeLR):
__doc__ = TorchMultiplicativeLR.__doc__
def __init__(self, optimizer, **kwargs):
super().__init__(optimizer, **kwa... | [
"gajowczyk.milosz@gmail.com"
] | gajowczyk.milosz@gmail.com |
eafc3e3e7bd5e21ff2097a00bdaa5451de58476b | fcdb69b396258c1e3105dbfe1fcd50cc73f7b8cf | /Digite3numeros.py | 79bd3cf1b848415c3edc20bc3da0e501db723940 | [] | no_license | l0rennareis/Algoritmo | 6b7147be1bb21e084c0ccfcc77d61cedd93e13fe | f73a1cbc0ab773b755d756cc2bf8e5cc758a50b4 | refs/heads/master | 2021-03-19T07:25:50.806907 | 2017-06-23T22:50:13 | 2017-06-23T22:50:13 | 94,377,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | n1=int(input("digite numero: "))
n2=int(input("digite numero: "))
n3=int(input("digite numero: "))
print (n1)
print (n2)
print (n3)
if n1>n2>n3:
print (n3,n2,n1)
elif n1>n3>n2:
print (n2,n3,n1)
elif n2>n1>n3:
print (n3,n1,n2)
elif n2>n3>n1:
print (n1,n3,n2)
elif n3>n2>n1:
print (... | [
"noreply@github.com"
] | l0rennareis.noreply@github.com |
31c17d7e820daed91a22a6e437066125b32441a3 | a3f206af3878e2fff0437863a5c0d2d800295814 | /solutions/prob11650/solution_python.py | f199e1e2d76515db507a12104bfc50658824c8ae | [] | no_license | soarhigh03/baekjoon-solutions | 0cdcec30825a00074a982b380ae2f2ddee5e3f54 | 8161cdda184e4e354be4eafe2b4fa2bd48635fa4 | refs/heads/master | 2023-01-04T10:42:32.882285 | 2020-10-24T02:20:48 | 2020-10-24T02:20:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | """
Baekjoon Online Judge #11650
https://www.acmicpc.net/problem/11650
"""
N = int(input())
points = []
for _ in range(N):
point = tuple(map(int, input().split()))
points.append(point)
points.sort()
for point in points:
print(point[0], point[1])
| [
"loop.infinitely@gmail.com"
] | loop.infinitely@gmail.com |
43d8be24a71967b0f1da893e4c205887492daccf | a0ba44f11c7744f94293cc87bc794e99174374c5 | /src/astro/__init__.py | e424d9348777991dfcc98d7b07d3e9bc0e0ecc3c | [] | no_license | srswinde/astro | 2d1fec6c6c51935a97c3da07c7cb00359975fc6b | bbd46e741bdc543ce5862dd7f36d0952c43e5ac7 | refs/heads/master | 2021-01-20T14:49:52.840690 | 2018-05-30T05:16:24 | 2018-05-30T05:16:24 | 90,679,111 | 0 | 0 | null | 2018-10-31T20:30:17 | 2017-05-08T22:47:01 | Python | UTF-8 | Python | false | false | 123 | py | from angles import Hour_angle, RA_angle, Dec_angle, Deg10, Angle
import time
import math
from astrolib2 import starDate
| [
"scott@mogit.as.arizona.edu"
] | scott@mogit.as.arizona.edu |
80f852a7e4f8ac5b6c722e26b343afb62a37c251 | e18336fcffd73131e9a51c0b5b81fcaa7353489b | /jojojo.py | 8c842b4c379a5cf588317300edae02b0d634bfc2 | [] | no_license | Dopamine101/Prepro | 0603f66be24159016f66c06dcfefe18c5afa3d7d | 168475b2337a08e0a8ccbc97e66a716fb3a42e92 | refs/heads/main | 2023-06-12T04:12:32.359695 | 2021-07-05T11:06:39 | 2021-07-05T11:06:39 | 383,110,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | """Broken heart boy"""
def date():
"""print"""
toom = input()
ivayne = int(input())
sees = toom+"\n"
print(sees * ivayne)
date()
| [
"noreply@github.com"
] | Dopamine101.noreply@github.com |
178eb8eb639adbbf17d5a555b08e90e92ba2b6d8 | f0141f1b4bbf4555fcf96d2a297e2e3d61855e35 | /model/parameters.py | 35e0a1d64e0493fbead6457d977e6f4a709cc709 | [
"MIT"
] | permissive | JakartaLaw/bayesianfactormodel | b286b00d05edfc780cd2c31f25aad9363d7c2e39 | 0a75412d965ae2ed5c093315cb27f82d4a578590 | refs/heads/master | 2020-04-07T07:49:51.835924 | 2018-11-29T17:02:19 | 2018-11-29T17:02:19 | 158,190,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | import numpy as np
import pandas as pd
from collections import defaultdict
from model.parameterframe import ParameterFrame
from model.plotter import Plotter
from collections import defaultdict
class Parameters(Plotter):
def __init__(self, trace_df):
super().__init__(trace_df)
@property
def k(... | [
"Jeppe@Jeppes-MacBook-Pro.local"
] | Jeppe@Jeppes-MacBook-Pro.local |
e76767b8387ac2db7f8fa709a10ce6fac53354c9 | c202e9185995d9bf2d8ae4dc5ec054ae1c481901 | /Project 3/code/FragmentSampler.py | f51f431d19f1fc030cce31e2420c03560e84f6fb | [] | no_license | terryli710/BEIOMEDIN214 | a48ba30689f2a78a81d1b47f7a1fdce1048c2b62 | aecec061d2194748da5204d56a55b6def9642f9f | refs/heads/master | 2023-01-24T10:44:13.188814 | 2020-11-29T04:25:48 | 2020-11-29T04:25:48 | 296,722,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,041 | py | """
This file contains the main fragment sampling class, which performs a Monte Carlo simulated annealing procedure to fold a protein.
"""
from pyrosetta import *
init(extra_options='-mute all -constant_seed')
from Bio.SeqIO import parse
import math
import utils
from Protein import Protein
from FragmentSet import Fr... | [
"li.terry710@gmail.com"
] | li.terry710@gmail.com |
96b0c3d56f99985a786d35c32dcd60fc90857ec2 | 41bb733fd028a62961d516847cf9bc4fecc400d8 | /Pagination/PageView.py | 899012f54e7f70ce61c9600dfa191af20ce62f11 | [] | no_license | TcMysunshine/PyQtExample | 696ac823024d739cf85bd9a4dd7d3de09dd54f3d | cfda8a5fd0cf201c9ba0691562bd9a8eb97f791f | refs/heads/master | 2020-04-01T23:04:18.781429 | 2018-10-25T01:44:29 | 2018-10-25T01:44:29 | 153,740,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,252 | py | import sys
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5 import QtCore
from PyQt5.QtGui import *
import math
class PageView(QWidget):
def __init__(self, data, titles, keys, dataRow=10, dataCol=4):
super(PageView, self).__init__()
self.resize(960, 790)
#当前页数
s... | [
"2229238008@qq.com"
] | 2229238008@qq.com |
366f05348d78f59d0cfb7084d1df801404cd8b81 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/tlm/ukp/data_gen/token_as_label_payload_worker.py | 81026196e20a97d70f190756bed467c07997b9b6 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 2,226 | py | import os
import data_generator
from data_generator import job_runner
from data_generator.argmining.ukp import DataLoader
from data_generator.tokenizer_wo_tf import get_tokenizer
from list_lib import lmap
from tlm.data_gen.base import truncate_seq_pair
from tlm.data_gen.label_as_token_encoder import encode_label_and_t... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
88a76d162c799f38313d04a0f33fb0b576f56b9a | 940ad5e16ede0c344066c8f41f8b9788061bb0ec | /ABC133/a.py | bebb98ff398643d8b87c968f10d7e19a35911241 | [] | no_license | niwanowa/AtCoder | 03fe69c97d5503aabb5a3a42ee40c9824b128289 | f4218cf7e13d026a2a439a82340e208c10f5cef5 | refs/heads/master | 2021-07-24T05:23:40.624506 | 2020-05-12T12:36:01 | 2020-05-12T12:36:01 | 167,095,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | N,A,B = map(int, input().split())
print(min(B,N*A)) | [
"58393481+kyuto-ja@users.noreply.github.com"
] | 58393481+kyuto-ja@users.noreply.github.com |
1897f88ad015c004be99c47772f7326fbf9769c2 | 837ab6d73fd951f47038851c8c32db5cd33ee955 | /backend/common/command/user_point_update_command.py | 7b04c13d82b363929e1daf97e5d1b24e2d0a26fc | [] | no_license | swsnu/swpp2019-team16 | 6932ddc89f5513cff1dc90febb1d3f308cf991f9 | c7c9e91be036f1c78c94d57755eb45537c2b29ad | refs/heads/master | 2023-01-07T18:58:38.399582 | 2019-12-14T13:19:13 | 2019-12-14T13:19:13 | 206,933,906 | 5 | 11 | null | 2023-01-04T12:22:36 | 2019-09-07T07:43:03 | JavaScript | UTF-8 | Python | false | false | 507 | py | from .command import Command
USER_POINT_UPDATE_COMMAND = 'command.user_point_update'
class UserPointUpdateCommand(Command):
def __init__(self, user_id, point):
super().__init__(USER_POINT_UPDATE_COMMAND)
self._user_id = user_id
self._point = point
@property
def user_id(self):
... | [
"43679861+dkim94@users.noreply.github.com"
] | 43679861+dkim94@users.noreply.github.com |
61554408c0eb98c3e6251f605e72cf95bb1bbd1c | 6692019df03c08d57a533250500c9624b9ef42f5 | /testedio/local.py | 53a7878b64a85b054b9c4eee6e64c8bf5dce943f | [] | no_license | alifanov/testedio | bc009d28c2b833103ebc4156f1d182034bcf60db | fdfbd4af98bb77fa859345368917ee2a7510f8b0 | refs/heads/master | 2020-06-20T01:22:30.863510 | 2016-11-27T14:44:03 | 2016-11-27T14:44:03 | 74,890,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # -*- coding: utf-8 -*-
DEBUG = True
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.S... | [
"lifanov.a.v@gmail.com"
] | lifanov.a.v@gmail.com |
e609e60eb27278d53ee2daa281255ee2a724f9e8 | 6c2818dfe861e4091ade259ce003aba576ce1d58 | /dj_rapidapp/settings.py | 225fc31265df557bc63df7dc775d2c02ad33a13d | [
"MIT"
] | permissive | urkh/dj_rapidapp | 3a3d7a7597553183e7f1e4b779ae660365b9577a | baa367823b16bc4709103a898cddd281051959c2 | refs/heads/master | 2021-03-27T10:22:07.357525 | 2015-05-09T05:52:00 | 2015-05-09T05:52:00 | 28,834,817 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | """
Django settings for dj_rapidapp project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...... | [
"gust989@gmail.com"
] | gust989@gmail.com |
e7da783c225cf27febaea8e230005621d565444d | 58f1cb1761d4e7114bbe0cc54195fc3bf72ccc4d | /python_solution/171_180/DungeonGame.py | 01e8e864c3b0a512d4b93f35dd5c279960ff390f | [] | no_license | CescWang1991/LeetCode-Python | 4e2e9b1872ef92d128c681c1ed07db19938b1ef5 | 0584b86642dff667f5bf6b7acfbbce86a41a55b6 | refs/heads/master | 2020-03-31T02:37:12.065854 | 2019-04-24T02:33:15 | 2019-04-24T02:33:15 | 151,832,885 | 1 | 1 | null | 2019-04-15T06:34:41 | 2018-10-06T11:22:49 | Python | UTF-8 | Python | false | false | 1,308 | py | # 174. Dungeon Game
# Dynamic Programming:
# 从后往前遍历,从右下角出发,dp[i][j]表示到达[i,j]时的最小HP值,dp[i][j]始终大于等于1
# 如果dungeon[i][j]为负,则dp[i][j] = min(dp[i+1][j], dp[i][j+1]) - dungeon[i][j],为右边和下边hp的最小值 - dungeon[i][j]
# 如果dungeon[i][j]为正,当dp[i][j]为负时,将其设为1。
class Solution:
def calculateMinimumHP(self, dungeon):
"""
... | [
"cescwang1991@gmail.com"
] | cescwang1991@gmail.com |
0eb9f2f1d94a4eb053ed1d47b6656a5e43094f17 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/Learn/PyCharm/Algorithmic Toolbox/Greedy Algorithms/Maximum Number of Prizes/maximum_number_of_prizes.py | 7d5a1b2fea1e80689bd1231f2652fd7b5ea7c8b9 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0364270870b82331956a2b84ff0aabc4b589ce630df5b152845ae2a98acf8167
size 300
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
8904156b5ce473631854fb7c9c76a996702066ad | f3033e5dd3033613a17c9fe9752d7f1f15bbd78a | /funciones/documentacion.py | 2426b0dcb9c17260ac1079e5327f29bf984cc2ab | [] | no_license | vidalchile/curso-profesional-de-python | 785a19929424abe6400b32ab21be088da1e729a8 | 3db500a31bf35b3f95317ac39ab1620598917f95 | refs/heads/master | 2022-03-22T03:43:00.469096 | 2019-10-09T01:23:11 | 2019-10-09T01:23:11 | 183,976,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | #Sacar provecho a nuestra documentación.
"""
Almacenamos las funciones dentro de nuestro diccionario,
posteriormente iteramos los elementos del diccionario
y en cada iteración imprimimos la documentación
"""
def suma(a, b):
"""Función suma (documentación)"""
return a + b
def resta(a, b):
"""Función resta (docum... | [
"cris.vidal04@gmail.com"
] | cris.vidal04@gmail.com |
5e442222c9d6447fd16a6d9160111d2eb813d625 | c0fdd5675bf262f36a22c648cee4c9ec34d2f218 | /test_video/mesh_demo.py | 390203a23e044edeb235bc98fc3eda3b9b9d40f7 | [] | no_license | mfkiwl/handAR | 5917c6ef69693f4d8287c57b3a6b6742c7943179 | b04f4aee7e39ef920d5eba1873a2b172f20f7060 | refs/heads/main | 2023-08-11T12:16:50.744158 | 2021-10-11T16:41:33 | 2021-10-11T16:41:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,081 | py | import sys
import os
import os.path as osp
import argparse
import numpy as np
import cv2
import torch
import torchvision.transforms as transforms
from torch.nn.parallel.data_parallel import DataParallel
import torch.backends.cudnn as cudnn
import PIL
from PIL import Image
sys.path.insert(0, osp.join('..', 'main'))
sy... | [
"1155116223@link.cuhk.edu.hk"
] | 1155116223@link.cuhk.edu.hk |
53883e8800ced687ff86dd92e63e098998975a37 | 1ee096359c79d095c2bb11b15b1bec7442b62f6c | /app.py | cb4845f2591355844287947d756c68fc9472c6c4 | [
"MIT"
] | permissive | lordserch/flask-azure-cognitive-services | 4f3961c779c8a83c6160d6585221e834c35658ea | 2d66718df90e8ea02f1a7c26f68af1f8a93c29a7 | refs/heads/master | 2020-06-16T13:01:16.987200 | 2019-07-06T21:58:42 | 2019-07-06T21:58:42 | 195,583,713 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | import translate, os, sentiment, synthesize
from flask import Flask, render_template, url_for, jsonify, request, send_from_directory
app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False
@app.route('/')
def index():
return render_template('index.html')
@app.route('/translate-text', methods=['POST'])
def transla... | [
"sergiorol@hotmail.com"
] | sergiorol@hotmail.com |
e5d1f6d1168b0b81451e306681670034888c9b43 | db24baee3c6054fe55498dd1c66e55bee54a1305 | /allposibilityofijk.py | e516682b6452a0e7bf79200036365a04c3023043 | [] | no_license | aksharyash/CodeKata-GUVI | cb0ff6f2d4193d94dd8b0dcc31de0973eb315907 | 7d523f4530b46f0e4da375295d8de19d4faa1bf5 | refs/heads/master | 2020-06-21T09:40:37.731312 | 2019-08-14T07:51:27 | 2019-08-14T07:51:27 | 197,411,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | n=int(input())
inp=list(map(int,input().split()))
lst=[[inp[i],inp[j],inp[k]] for i in range(len(inp)) for j in range(len(inp)) for k in range(len(inp))if inp[i]+inp[j]==inp[k] and i<j<k]
for i in lst:
for j in i:
if j=='[' or j==']' or j==',':
pass
else:
print(j,end=' ')
... | [
"noreply@github.com"
] | aksharyash.noreply@github.com |
09e0445c83d6ca20cec8fb1da65e4af21fabe937 | 3506a6ecd58698af0415ca7300d9f43e2f3a27c0 | /environment_creator/main_env_creator.py | 61d3bf1ea4bd3a3871ea53609935aed2e7cf7487 | [] | no_license | FernandoFuentesArija/marketing_de | 1803887f8f200d8f8db478968be41b1781d5bd80 | 5c7fb11874e85ab8295158b2b71c186e39d0b065 | refs/heads/master | 2020-04-13T00:23:59.468129 | 2019-06-13T21:13:07 | 2019-06-13T21:13:07 | 162,844,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from bbdd_manager.Mongo_manager import Mongo_manager
from bbdd_manager import ConfigVariablesBbdd
from environment_creator.Object_generator import Object_generator
# Creamos una conexion a la BBDD
bbdd_connec = Mongo_manager(ConfigVariablesBbdd.env_database)
# Creamos el objeto
og1 = Object_generator(bbdd_connec)
og1.... | [
"fernando_fuentes_arija@yahoo.es"
] | fernando_fuentes_arija@yahoo.es |
c4b13827dd26e6eb1f2560c0927b0bfa450019ad | 37d36adb9284f9ff19e9cc6ec3f323ef59b2473b | /a3/ps3.py | ac9e1a3ad4ed1abfc3f065b47582fa896a785304 | [] | no_license | mfidler88/sem2-s2018 | 35c55d75020b2b5ecc5f1c8ea6459a0680a5c00c | 9f6ba355b21011582fa82e90b504023187801add | refs/heads/master | 2021-09-13T04:52:23.065894 | 2018-04-25T05:26:04 | 2018-04-25T05:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,340 | py | U2FsdGVkX1+h1j641VJMjDoI31AVWEaUfvPJr59gaHB3lLTXXQd50YhlAEpYV6NA
kf5eJ2tjbffBxten27jFaxvx517BVP8GcrW5QrFpYWSm3t0OHjsMS55T2cJg8pLG
74tCMpXmUG97oBYnhwQnGUsONmvF8FWY2zKWwbWWa3An17u9dpyM2x2uT4zJDL5z
yQed8xpYkolYjIZ0N+vmNUAqpG6t8htqzWlQOiyqLg2fYwfzcRL9XSB/bmtcwGj/
UyuPXnQTAvjin2vlsR13+2NOauC+Obbhn39HrBn6WXbI+/DWwiVQ/5yM/iqr... | [
"kfidler6@gatech.edu"
] | kfidler6@gatech.edu |
61d2fc0ef44c6b1c5dfaf62f9463947621867fc9 | a22cc323b29f50da397d8363ac2521e3542a0fd7 | /dpaycli/exceptions.py | bae39e29196bee7aae8c59769ed5783a861fb228 | [
"MIT"
] | permissive | dpays/dpay-cli | 1a58c7dae45218e3b05b7e17ff5ce03e918d27b9 | dfa80898e1faea2cee92ebec6fe04873381bd40f | refs/heads/master | 2020-04-01T09:26:43.200933 | 2018-10-15T08:03:06 | 2018-10-15T08:03:06 | 153,075,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | # This Python file uses the following encoding: utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
class WalletExists(Exception):
""" A wallet has already been created and requires a password to be
unlo... | [
"jaredricelegal@gmail.com"
] | jaredricelegal@gmail.com |
b29f17221b216cea2a7f3cddbe1c3513bde59920 | ef3568b08d0e99f57a0feb2882f2c65c1e97dd80 | /magenta/models/music_vae/data.py | d176d7c4eec90f8fd229ef4b2f8ea9a7be9128ba | [
"Apache-2.0"
] | permissive | SeanHsieh/magenta | ccf6d31ad93b036fb93f16d7ab387e0670f934db | 9794130b40d6e8131a7d6dd9698d935633c5d4cc | refs/heads/master | 2021-04-27T13:26:23.952856 | 2018-02-22T00:36:30 | 2018-02-22T00:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,363 | py | # Copyright 2017 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... | [
"noreply@github.com"
] | SeanHsieh.noreply@github.com |
87eb5b823f9ba9b24000e7cc2baa16e31afd600b | 3f34ecc7d4e9fef6d3ab3b2114fe5f1431744ae8 | /mypy/3/3.5.str_fromat.py | be0240d0760a2338f4bffbce59da625d8c19605c | [] | no_license | wcybxzj/learing_dive_into_python | 386101f4674b2e6d4b176cc4109b95b98c3024b7 | 40c456eb2afe4de421bb7e9fedd4f9401b4213a6 | refs/heads/master | 2021-01-10T01:01:42.361133 | 2015-02-07T14:48:23 | 2015-02-07T14:48:23 | 29,670,309 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
uid ="sa"
pwd = "secret"
# 两种方式结构完全相同
print pwd +' is password '+ uid
print '%s is password %s' % (pwd, uid)
userCount = 6
print "User connected:%d" % (userCount)
try:
print "User connected" + userCount
except TypeError:
print 'int cant connect with str'
#数值的格式化
print... | [
"virgo86ybx@gmail.com"
] | virgo86ybx@gmail.com |
6ca28a1331aa11b8585b3149fa132846aa5c8bcc | da2d6c22dd1b389175ad303a729ff1f2a82ba9a8 | /Seaborn/Seaborn.py | 680c9d2ba8d68112331870bf2b384eaa30a2dcbe | [] | no_license | hmtalha786/Data-Science | 05019dc2e3745899ecfad40deec0e039b779a914 | b322fc42a7babd29947f7bea049bb0dcf4c2bc19 | refs/heads/master | 2023-03-22T04:12:15.364694 | 2021-03-13T17:28:59 | 2021-03-13T17:28:59 | 335,062,509 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,866 | py | #!/usr/bin/env python
# coding: utf-8
# # Seaborn Tutorial
# ### Imports
# In[ ]:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# In[ ]:
get_ipython().run_line_magic('matplotlib', 'inline')
# In[ ]:
# Auto reloads notebook when changes are made
get_ipython().r... | [
"talhaofficialwork@gmail.com"
] | talhaofficialwork@gmail.com |
094285e188cc74e8c610f2daa584348e0873f7ca | 6237a4d717a7055c9b0f1de3204554cbf5069b62 | /UserLog/urls.py | 4457c41a32857ba13cffcc92a2bd40f237eea06e | [] | no_license | sylvia198591/BookProject | 180b9072c13cad5a5f996d60946caab78ae503b1 | eabfb6cfe63e45f7f73c1500bad6aa8d3a1c62fb | refs/heads/master | 2023-03-27T00:25:10.827236 | 2021-03-22T08:43:49 | 2021-03-22T08:43:49 | 350,118,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from django.urls import path
from UserLog import views
from django.conf.urls import url
from UserLog import views
from UserLog.views import ExampleView, CustomAuthToken
urlpatterns = [
path('api/users/',ExampleView.as_view()),
path('api/token/auth/', CustomAuthToken.as_view()),
]
| [
"sylvia.anitha@gmail.com"
] | sylvia.anitha@gmail.com |
1e189f1ce03846ffe4d1f30d329b5694e3540608 | ecdb99b66c3f40a66c7123b8f8ac8e1f2772c8da | /random_request.py | 112757d9569c0e17f92bd403ddb01e0e7927486a | [] | no_license | kannanenator/haikus-from-wikipedia | ef8168e310bb8190a6b457c5d2f4be09db21bc6f | a404033fcd8f4850e150b0a820d8be4974cd6eb4 | refs/heads/master | 2020-04-05T23:09:27.083860 | 2019-11-04T00:05:19 | 2019-11-04T00:05:19 | 57,425,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | import requests
from bs4 import BeautifulSoup
import sys
# runs on python 3.5
def request_random():
'''Request random wikipedia article, return html_doc'''
r = requests.get('https://en.wikipedia.org/wiki/Special:Random')
return r.content, r.url
def parse_article(article):
'''parse html and get relevant (main pa... | [
"kannanenator.gmail.com"
] | kannanenator.gmail.com |
1140e573f0619909625e7218b1ff94f7d6402bec | dc849231858f6a1378c8fb52e81035d20e48e321 | /Lab3/实验代码/2/bookmanager/forms.py | 2d4e7e98b82012568e11fb05f6f64edd4ae53506 | [] | no_license | Fooo0/Software-Engineering | 05413854f9ee54b14034bcb0f182643b2fb985de | 47c65bc7b291352ea590ea168bf30a32b1e25363 | refs/heads/master | 2021-01-10T17:20:59.748108 | 2016-02-20T14:35:52 | 2016-02-20T14:35:52 | 52,155,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | # -*- coding: utf-8 -*-
from django import forms
from bookmanager.models import Book, Author
class Form_Book_new(forms.ModelForm):
class Meta:
model = Book
fields = ('Title','AuthorID','Publisher',
'PublishDate', 'Price')
error_messages = {
'Title': {'required' : '请填... | [
"xiao-fei-fei@qq.com"
] | xiao-fei-fei@qq.com |
706672dfd171b2790a1fdce2493d5e185f065859 | 35831bbf46ee61be24a27983deaafe0247b0d141 | /2-body-sim.py | 8a0e9f7a8a8c937a1352b14fe2bce9da5acfeb30 | [] | no_license | austinpower1258/3-Body-Problem | 15ae4b8c93b30b433e574f4fcf0f17fa8d7081c3 | efe344e299fb9dd7b6ab960a177b4becbfdfa96e | refs/heads/main | 2023-06-27T08:34:37.893727 | 2021-08-03T04:48:20 | 2021-08-03T04:48:20 | 392,190,318 | 0 | 0 | null | 2021-08-03T04:47:37 | 2021-08-03T04:37:43 | null | UTF-8 | Python | false | false | 2,799 | py | #Utilizing Newton's Law of Gravitation to model the 3 Body Problem.
import scipy as sci
import scipy.integrate
import matplotlib.pyplot as plt
from mpt_toolkits.mplot3d import Axes3D
from matplotlib import animation
G = 6.6741e-11
m_nd = 1.989e+30 #mass of sun
r_nd = 5.326e+12 #distance between stars in Alpha Centauri... | [
"austinpower1258@gmail.com"
] | austinpower1258@gmail.com |
0af3b29891b6fbebdeee1c25209ba88f7d067e45 | 362591481e20b0cfb65d92829698d7defe22c4c4 | /themarket/products/migrations/0001_initial.py | 37b01d4360f441392b8fe107fafc8561743f5801 | [] | no_license | wahello/themarket | 595025d62e1f7b00a78798475b2d8e9a2e2fe443 | 23fb34d7e850f50d9c7defd0de2649611086ea0f | refs/heads/master | 2020-08-01T19:43:17.681826 | 2018-09-03T11:27:05 | 2018-09-03T11:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Generated by Django 2.0.6 on 2018-08-02 11:57
from django.db import migrations, models
import products.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
(... | [
"peadarh10@gmail.com"
] | peadarh10@gmail.com |
5cfdb1953496c336c527e9960195efc031c7c309 | c09b12ec1e56ff679c9795c48d828d832630e49f | /hw6/webapps/urls.py | f42d5dabb59476e001a7d847daa9524edeb0bd7d | [] | no_license | justinguo/Web-Application-Development | 9bceda6bb3359eea2f5f03b88b638218d7a51f4f | 23eb79359b0ad3b202b32d55ba33ccd1e40d4d6a | refs/heads/master | 2021-01-21T05:16:55.119537 | 2017-02-25T22:15:51 | 2017-02-25T22:15:51 | 83,166,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'', include('socialnetwork.urls')),
)
| [
"justinguo317@gmail.com"
] | justinguo317@gmail.com |
a64a605f728f7e372b162f11ff7618200ec903bc | beebc5ff44407f3f3a4c1463cd09f0917dbe5391 | /pytype/tools/merge_pyi/test_data/simple.comment.py | 1b8f2e1604e2a1c309c4cf80b2abc6b62ca7c58b | [
"Apache-2.0",
"MIT"
] | permissive | mraarif/pytype | 4f190cb2591896133761295f3d84d80602dffb58 | 546e8b8114c9af54a409985a036398c4f6955677 | refs/heads/master | 2023-01-23T09:48:06.239353 | 2020-12-02T06:08:27 | 2020-12-02T06:08:27 | 303,069,915 | 1 | 0 | NOASSERTION | 2020-12-02T06:08:28 | 2020-10-11T07:53:55 | null | UTF-8 | Python | false | false | 169 | py | from typing import Any
def f1(a, b):
# type: (Any, Any) -> r1
"""Doc"""
return a+b
def f2(a):
# type: (Any) -> r2
return 1
def f3(a):
return 1
| [
"rechen@google.com"
] | rechen@google.com |
f4cf95f415d6cafda447424f9f68a0875e3b4189 | 9cba18b1811fb6d4447627b6f6b64c18167cd590 | /sclp028.py | ed5373544f969af84b6b6ec87aedd7649596f469 | [] | no_license | kh4r00n/SoulCodeLP | 45e10778c3b894dbaadad46b213d25daf557f2a0 | a104852d26edf0b11b23ec2545c9422e9ba42c6e | refs/heads/main | 2023-08-10T22:46:01.123331 | 2021-10-05T03:02:36 | 2021-10-05T03:02:36 | 411,645,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | '''
Crie u programa que leia um número de 3 dígitos
'''
num = int(input('Digite um número: '))
while num < 100 or num > 999:
num = int(input('O numero nao tem 3 digitos. Digite novamente:')) | [
"noreply@github.com"
] | kh4r00n.noreply@github.com |
8a42837ead36a6a7bd40e72a709707c10b2da8a9 | 6f23d4d5cfd3b464457c6622e662af87bf957125 | /crudapp/migrations/0010_auto_20200819_1604.py | 80dc406f0446374f0e353312f24fc4bcc9316965 | [] | no_license | RohiniPunde/crud | 31c411662350d1f85f334e3cad3adcf63c2098a9 | a2ff0b051234f3c1584b8dadbc58ff01d9222730 | refs/heads/master | 2022-12-15T18:45:37.175833 | 2020-08-29T16:33:37 | 2020-08-29T16:33:37 | 287,257,366 | 0 | 0 | null | 2020-08-29T16:33:38 | 2020-08-13T11:09:54 | Python | UTF-8 | Python | false | false | 389 | py | # Generated by Django 3.0.3 on 2020-08-19 23:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crudapp', '0009_auto_20200819_1556'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='phone',
... | [
"punderohini@gmail.com"
] | punderohini@gmail.com |
4c3c2cc9d54d334c6c07cfddc33d6c9c853a2442 | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/1032.等式方程的可满足性.py | 7023bb9ec8392f37b654506730bd4b9421433cc1 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 1032.等式方程的可满足性.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
eb357b4506f5f70ef0b18f378e976d94d6b2f4e8 | 3943103da2b3bef6b8b60b5f20ae901be7e4d61b | /602/day02.py | 553fd27c2021b09c7e781bfcd47b81a9e91d4215 | [] | no_license | shangtengjun/spider | 03006934f200e0efb5a4636a82fba7a1a576dd04 | dc503ad949cbde7447b52425d66a94df7b43c19b | refs/heads/master | 2022-12-09T21:46:40.386697 | 2020-09-09T08:33:17 | 2020-09-09T08:33:17 | 281,431,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | # coding:utf-8
import requests
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"}
s = 0
for i in range(20):
http_url = "http://tieba.baidu.com/f?kw=%E5%B9%BF%E4%B8%9C%E5%B7%A5%E4%B8%9A%E5%A4%A7%E5%AD%A6%E5%8D%8E%E7%A... | [
"358695374@qq.com"
] | 358695374@qq.com |
19767bc330f5767b57969673ea3e52cc7fd126c3 | f7023b1c89a0dda7555b1eb84208a2d30cc9e8f8 | /experimentFiles/experiment/ui_MainWindow.py | 67b04bfb2b762476dcf8dc5ab367076846ada9b0 | [] | no_license | mercedes92/VisualIKExperiment | fc7424c0f827aa695bf1d34d8e4c7f5cf21e46d0 | a9cfa1e541c1822cf7e6bc116c482f5fc289722e | refs/heads/master | 2021-01-10T19:53:36.790976 | 2015-08-21T11:56:54 | 2015-08-21T11:56:54 | 39,624,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,165 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainUI.ui'
#
# Created: Thu Jul 2 18:53:45 2015
# by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribu... | [
"mpaolett@alumnos.unex.es"
] | mpaolett@alumnos.unex.es |
58e2a64da4f5f9392df906fa7ed03792da1a3d60 | dfbe8dacccf9527c6448e5edaf0568342b918a19 | /src/dataset/dtd_dataset.py | 80d2a42084e9ef7ad4d068118a0d2c2eec1b66a1 | [
"MIT"
] | permissive | FabianGroeger96/semantic-segmentation-dtd | e0add90e97f8d052690f3244426d19108bf5fb2c | 084a0ab5807e912bee80ae2dcf5f22b7ef8579a1 | refs/heads/main | 2023-05-09T04:33:15.104499 | 2021-06-02T16:35:06 | 2021-06-02T16:35:06 | 325,009,577 | 3 | 0 | MIT | 2020-12-31T08:11:29 | 2020-12-28T12:41:09 | Python | UTF-8 | Python | false | false | 6,532 | py | import os
import math
import numpy as np
import tensorflow as tf
from tensorflow.keras.layers.experimental.preprocessing import RandomFlip, RandomRotation, RandomContrast, RandomTranslation
from pathlib import Path
from src.settings.settings import Settings
class DTDDataset:
"""
Dataset representation for th... | [
"fabian.groeger@bluewin.ch"
] | fabian.groeger@bluewin.ch |
453b76f5dada5d070199968e11ec8472ff2c4592 | 8ae061d040e16305d4025128b9bf0dfa2d77e6e1 | /wordbook/pymodule/machine_learning/module/preprocessing/__init__.py | 86473b6829de9d55cba7c2eba4aa35d20b70a6a6 | [] | no_license | shiinokinoki/flashcard | 313a6b14d1016b2f9b3cd14b1792d3bc0f7fc2cd | 144f867d364a1c53a457a0a8bebcc0e42da6c39f | refs/heads/master | 2022-12-17T11:26:00.241838 | 2020-09-19T11:42:46 | 2020-09-19T11:42:46 | 294,350,980 | 0 | 0 | null | 2020-09-18T01:20:02 | 2020-09-10T08:33:20 | CSS | UTF-8 | Python | false | false | 61 | py | from ._data import Image_for_ocr
__all__ = ['Image_for_ocr'] | [
"shue@shiikishuueinoMacBook-Air.local"
] | shue@shiikishuueinoMacBook-Air.local |
74c64ce4ae04ef8be29d1ae4925caa57cc9de28c | 10cb919d03d1e50dda253c6e771d470c035f92d1 | /proyecto/MotoGP/motogp_app.py | ba8fd9b0fd1f6c5b52d59405aa1df08e6db0097d | [] | no_license | JoseVP/Python-Avanzado | 0c1dc0f75dfd259cadfd30d7ce4d2ae3cd3bbce9 | ca7c8e346cb170b170af2f5931c02f0d684ec109 | refs/heads/master | 2021-01-10T21:28:07.926457 | 2012-05-30T10:33:25 | 2012-05-30T10:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import MySQLdb
from gi.repository import Gtk
import subprocess
class Moto_GP:
#-------------------FUNCIONES INTERNAS---------------------#
#Carga los circuitos iniciales en los botones de la Ventana de inicio
def cargar_circuitos_iniciale... | [
"josevalenzuelaperez@gmail.com"
] | josevalenzuelaperez@gmail.com |
29d967e22202502a0489bcd8d31f34e6cac31bb2 | 5be9fc95e24d4ee571f0edc4039caf7465563c06 | /Problems/The army of units/main.py | 4e708eb8148ea805daaa5c7bcaecb6adabfd7925 | [] | no_license | helenlavr/Coffee-Machine | 8a7e4ad83e36925d991346c8e87b6ccdb9c59681 | 938cfec67390185b929ccfca0d00dbdbb4ba489f | refs/heads/master | 2023-01-01T21:27:22.449491 | 2020-10-15T10:40:41 | 2020-10-15T10:40:41 | 304,292,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | units = int(input())
if units >= 1000:
print('legion')
elif units >= 500:
print('swarm')
elif units >= 50:
print('horde')
elif units >= 10:
print('pack')
elif units >= 1:
print('few')
else:
print('no army')
| [
"helenlav@stud.ntnu.no"
] | helenlav@stud.ntnu.no |
9afe8e0f69ee47f22bd74b8e222360bc796ad45f | 308dbc263ab71b1f424d9130e11e9d7d65de7945 | /model/Armadura.py | b0bfbfb7f8a310b5b26c4f0a22391d0d5c685a2e | [] | no_license | rfgonzalez13/MHRiseApp | 37cdb415568a6fc302899ea17da3746858809ae9 | 5166ef4c2027bfc6e7e9510eb1cfbbc50562e5a0 | refs/heads/master | 2023-07-25T08:49:31.516496 | 2021-09-09T15:40:26 | 2021-09-09T15:40:26 | 373,656,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # coding = utf-8
from google.appengine.ext import ndb
class Armadura(ndb.Model):
nombre = ndb.StringProperty(required=True, indexed=True)
pk_nombre = ndb.StringProperty(required=True, indexed=True)
casco = ndb.IntegerProperty(indexed=True)
cota = ndb.IntegerProperty(indexed=True)
brazales = ndb.In... | [
"rfgonzalez@esei.uvigo.es"
] | rfgonzalez@esei.uvigo.es |
49abdf437aff0bb64af3510ebc54df23c69483f5 | 7e3a860c5204ad3ba4320f7a5d5bb0d796c3d4fa | /scripts/helper/get_brightness.py | 71fe14c7820506038407f1584509000df49518af | [] | no_license | dot361/Weak-radio-signal-data-processing | 9a019b5bdd1258b9acf9852122f03588df67f12d | 2f305263948016470c27da222e72d41a9e802a26 | refs/heads/master | 2022-11-14T21:53:28.041898 | 2020-07-06T13:48:28 | 2020-07-06T13:48:28 | 268,297,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | import urllib
from datetime import datetime,timedelta
import sys
import numpy as numpy
def get_ra_dec(start_time, stop_time, obj):
lat = 21.847222;
lon = 57.5593055;
alt = 10;
step_size = '1 h'
if(obj == "panstarrs"):
obj_name = 'C/2017 T2'
if(obj == "atlas"):
#obj_name = 'C/20... | [
"s7_jasmon_g@venta.lv"
] | s7_jasmon_g@venta.lv |
7f027308fcfb3c04e668a3e684a1c89c3d18adba | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/delete_log_stream_request.py | 03161ca879c09c3628e30d67bc31b138c95aef90 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,000 | py | # coding: utf-8
import re
import six
class DeleteLogStreamRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json ke... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
0dacff2c236fe90e948a6c0b3fecb7e82d6c3d1a | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /xlsxwriter/test/comparison/test_chart_font04.py | bf7ebe1e1cb139da22fb9e4d7fff60c429f6eb5e | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 1,669 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
4a11b48179794959d216c089d888dbd02e6e7ace | cbf3482a35083844a34d9fdfb6d9754164b8c8f7 | /blog/migrations/0030_postlike.py | c1fd1ad7536e7b8009c153d81e8af6146d316cf6 | [] | no_license | sopilnyak/technotrack-web1-spring-2017 | f27abb15f2f563b44a544c430e743d961a0d11a9 | 5f4573b417d71347f746660754faae3166be854f | refs/heads/master | 2021-01-21T08:15:21.078499 | 2017-04-17T17:02:55 | 2017-04-17T17:02:55 | 83,340,481 | 0 | 0 | null | 2017-02-27T17:59:56 | 2017-02-27T17:59:56 | null | UTF-8 | Python | false | false | 878 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-17 01:24
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):
dependencies = [
migrations.swappable_depende... | [
"o.sopilniak@gmail.com"
] | o.sopilniak@gmail.com |
f08c3e33a0eea3128e92594b3a26b4ec9ff3d9d2 | ce2474b35aaa600947ee4bfcd521f90382f2eb15 | /test_lcm_simulation.py | 10209a6f4a6c74d14d0e09d6505c0a0b0009f4bb | [] | no_license | SEMCOG/semcog_urbansim | 9ebb5ea8fa195570ff659d8dc40b3c8e86d23a89 | 07809c2f03ea43a43c8d801b08d500f2aaf139f3 | refs/heads/forecast_2050 | 2023-08-17T23:31:31.845339 | 2023-08-17T20:52:22 | 2023-08-17T20:52:22 | 37,195,829 | 7 | 12 | null | 2023-09-07T15:54:18 | 2015-06-10T12:29:19 | Jupyter Notebook | UTF-8 | Python | false | false | 1,039 | py | import orca
import os
import yaml
from urbansim_templates.models import LargeMultinomialLogitStep
from urbansim_templates import modelmanager as mm
mm.initialize('configs/elcm_2050')
def generate_yaml_configs():
hlcm_yaml = os.listdir('configs/hlcm_2050')
hlcm_yaml = ["hlcm_2050/"+path for path in hlcm_yaml i... | [
"xie@semcog.org"
] | xie@semcog.org |
f052c9274c97d671c506f9299e5eac7729340135 | edb0a9a6649296968076024ce9dbd64f91a79d4e | /Codes/tmp.py | 3869b97a7dff099b932375203c076defc389772e | [] | no_license | Pierre-FrancoisW/Master-Thesis | 94f1253345ee5a0f88c9c95c913d1ac5dfb67666 | f1e4bb02194c43753855b17589a32ff281396d98 | refs/heads/main | 2023-07-13T21:58:24.058295 | 2021-08-25T09:58:08 | 2021-08-25T09:58:08 | 399,195,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,447 | py | import numpy as np
#
# Official Code for Classification_local_mda
#
counter = 0
counter1 = 0
counter2 = 0
def prob_node_left(tree, node, uniform):
# [tree.children_left[node]] = node + 1 as long as node is not a leaf
if uniform:
return 0.50
else:
return tree.n_node_samples[tree... | [
"noreply@github.com"
] | Pierre-FrancoisW.noreply@github.com |
e80667808902da02160f366d3c3fbe610cd032e0 | 831451f5d88c630ce5d3c6f495a016118a0c36ad | /rest-service/manager_rest/test/endpoints/test_depup_utils.py | 73784be30c89ee0bd8b6a472e95d6ca2fd8ede88 | [
"Apache-2.0"
] | permissive | TS-at-WS/cloudify-manager | 8c3eb713a2f86da6e6cde1d976969733db53f2dd | 3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc | refs/heads/master | 2021-03-04T22:18:25.591541 | 2020-03-02T16:03:41 | 2020-03-09T09:19:26 | 246,069,993 | 0 | 0 | Apache-2.0 | 2020-07-29T16:35:22 | 2020-03-09T15:18:04 | null | UTF-8 | Python | false | false | 2,658 | py | import unittest
from manager_rest.deployment_update import utils
class DeploymentUpdateTestCase(unittest.TestCase):
def test_traverse_object(self):
object_to_traverse = {
'nodes': {
'n1': 1,
'n2': ['l2', {'inner': [3]}]
}
}
# asser... | [
"mxmrlv@gmail.com"
] | mxmrlv@gmail.com |
7279f4e7aeaa3ac8756f44479f75a752a49c2500 | aa0ff41682eb3b66d3577eb806821126a2d3ace2 | /18. 四数之和/four_sum.py | 16af2dc43c31588b055445608fc94fa557c1fe79 | [] | no_license | qybing/LeetCode | 11c3b88b7536ae4790d1b481f37741b2c5e9bcce | bafa85fde597a17b6dee8cfdd0153a7176ff8fcf | refs/heads/master | 2023-02-06T09:14:29.516336 | 2020-12-30T07:33:37 | 2020-12-30T07:33:37 | 103,499,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | #! python3
# _*_ coding: utf-8 _*_
# @Time : 2020/5/19 9:58
# @Author : Jovan
# @File : four_sum.py
# @desc :
def fourSum(nums, target):
nums.sort()
length = len(nums)
result = []
for i in range(length):
if i >= 1 and nums[i] == nums[i - 1]:
continue
for j in range(i + 1, le... | [
"qiaoyanbing1@163.com"
] | qiaoyanbing1@163.com |
bf806c4adf32732ebf9c1fe7bd0d8226e8786132 | c6f95907558349991ed5d350359b51ad4af4b634 | /projectName/subpackage_1/__init__.py | a39f8fe5b38d180873bc20e04f625c8771462801 | [] | no_license | mitchell-dawson/untitledProject | e773802e007c1c1759985f68cfd665e080f2b763 | f54687d45c2ce787394d7f34244926c9993638ac | refs/heads/main | 2023-01-23T22:34:00.442837 | 2020-11-27T16:40:51 | 2020-11-27T16:40:51 | 316,551,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | # General store format (access everything, no order)
from .moduleA import *
# online store format
# import .moduleB
# import .moduleB | [
"mitchell.dawson7@hotmail.com"
] | mitchell.dawson7@hotmail.com |
0e252a730c01e23c0749c29858d12daba11eeda6 | d89aa6be7a7661c9955d143eed11cb8a526091c4 | /src/main/com/dong/database/demo/mysql/create_database.py | 04036f11a7250d5ae3368e7f379eefb496bbb472 | [] | no_license | weidongcao/finance_spider | 366e209371319b961c587dfdcd37eed5dcb06a6d | 4e210548d93c9d01101b26556f4342099df67c37 | refs/heads/master | 2021-01-24T04:34:34.367440 | 2019-08-25T07:03:14 | 2019-08-25T07:03:14 | 122,943,048 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | """
通过Python,连接Mysql并创建数据库配置实例
"""
import pymysql
db = pymysql.connect(host='cm02.spark.com', user='root', password='123123', port=3306)
cursor = db.cursor()
cursor.execute('select version()')
data = cursor.fetchone()
print('Database version: ', data)
cursor.execute('create database spiders default character set utf8 ... | [
"1774104802@qq.com"
] | 1774104802@qq.com |
e440d2c140932d115fb47dd81b71b07e16609724 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractLuxiufer.py | 4e0f1d83bb26fb14a4a67239ee9051bb1a167144 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 342 | py | def extractLuxiufer(item):
"""
Parser for 'Luxiufer'
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or 'preview' in item['title'].lower():
return None
if 'WATTT' in item['tags']:
return buildReleaseMessageWithType(item, 'WATTT', vol, chp, frag=frag, postfix=p... | [
"something@fake-url.com"
] | something@fake-url.com |
180e788b1edfb6a7fbd2064e95711bc278e96ab5 | b737ed73e7b64c004c56b57e80aaa884a25ec98a | /likeapp/models.py | 63ab1110009de6bfd4179e04b5724ac59fe0bb83 | [] | no_license | sungwoni/cyber_public_sphere | 1ec5425c3afb16d0f0b2a1fd6ad97599f5dd2885 | da18b1cd8ce6588d1f197fa3df30ae68df8fe6f5 | refs/heads/main | 2023-07-23T09:33:49.648546 | 2021-08-19T01:54:48 | 2021-08-19T01:54:48 | 397,192,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
from articleapp.models import Article
class LikeRecord(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='like_record')
article = models.ForeignKey(Article, on_delete=models.... | [
"tjddnjs2013@gmail.com"
] | tjddnjs2013@gmail.com |
0ab9edfe9c90a6220e8a5bc16a7c65fa0ab9536e | 6e6b4aff225fc068f2d87ee19b7bfb1d9a0e7607 | /greedy/DNA(1969).py | 1dfab44544626789f6a1215df99669d41856d154 | [] | no_license | pjok1122/baekjoon-online-judge-practice | cc4489c9dc2cd9dd4841fed7e0f6fa9827f7154a | 2a9b7dd6342a255bb1e6b644082f40d6ef940290 | refs/heads/master | 2020-07-07T23:01:09.736034 | 2020-05-11T11:08:46 | 2020-05-11T11:08:46 | 203,498,880 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | '''
주어진 DNA 문자열에서 Hamming Distance의 합이 최소가 되도록 하는 문제.
1. 가장 많이 등장하는 뉴클레오티드('문자')를 세고 그 값을 Max로 설정. 가장 많이 등장하는 문자가 H.D가 최소가 되도록 하므로 DNA 결과(result)에 포함시킨다.
2. 하나의 뉴클레오티드가 결정될 때마다 H.D의 값은 N - Max 만큼 증가한다.
3. 시간복잡도 : O(N*M) ~ O(N)
'''
N,M = map(int,input().split())
dna = []
result =''
hd = 0
for i in range(N):
dna.appe... | [
"pjok1122@naver.com"
] | pjok1122@naver.com |
2ddc82f3173503e7a5e90c47ea1549b0f769cc44 | 496ba1638338c2c548c612cfb4264f28bbab85e0 | /utilities/ClientOperation.py | 2fc6b1dfa1f4bedbf9b4cee2af964e3f5f67b3a0 | [] | no_license | CreativeeBlackWolf/chat | e1673e8990af1d3c3ba0f5d2c4c789b8f318fdf2 | f3f1891fe976460093c829d54938dfeda85a5f52 | refs/heads/main | 2023-02-27T11:23:51.327445 | 2021-02-01T18:18:23 | 2021-02-01T18:18:23 | 335,032,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import json
class ClientOperation:
def __init__(self, type, **kwargs):
self.type = type
if self.type == "messageArrived":
# both str instances, content and author of the message
self.content = kwargs["messageContent"]
self.author = kwargs["messageAuthor"]
elif self.type == "channelLeave":
pass... | [
"creativeeblackwolf@gmail.com"
] | creativeeblackwolf@gmail.com |
901b04d91b82ae5953029503be57765f7213c0e2 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/73faa376ad87004014356477048e7298d06de792-<remove_custom_def>-fix.py | 399fefca0541ee754193ead44addaf401950bbcb | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | def remove_custom_def(self, field):
changed = False
f = dict()
for x in self.custom_field_mgr:
if ((x.name == field) and (x.managedObjectType == vim.VirtualMachine)):
changed = True
if (not self.module.check_mode):
self.content.customFieldsManager.RemoveCustom... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
25c2d35b1ad3349af246ac423d420173e50b00d2 | 9d3b8d5f45e5407f3275542cf5792fd2510abfe4 | /Chapter8-Practice/test_8.4.1.py | d34f4b2acda4c2f610a12866949f272167402672 | [] | no_license | Beautyi/PythonPractice | 375767583870d894801013b775c493bbd3c36ebc | 9104006998a109dcab0848d5540fb963b20f5b02 | refs/heads/master | 2020-04-23T09:58:50.065403 | 2019-04-08T02:55:52 | 2019-04-08T02:55:52 | 171,088,504 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | #在函数中修改列表
#首先创建一个列表,其中包含一些要打印的设计
unprinted_designs = ['iphone case', 'robot pendant', 'dodecahedron']
completed_models = []
#模拟打印每个设计,直到没有未打印的设计为止。打印后转移到completed_models中
while unprinted_designs:
current_design = unprinted_designs.pop()
#模拟根据设计制作的3D打印模型的过程
print("Printing model: " + current_design)
comp... | [
"1210112866@qq.com"
] | 1210112866@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.