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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9bad380d1be1c4ee15612b78894c0dcea4cc9d25 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather3_W_fix3blk_C_change/train/pyr_3s/L7/step10_a.py | 030a17a2615a8bb52e57dc6be508bb22e9741a0d | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,177 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
256a7ddfba37eb808339ceb2846b338beba828fe | 30e8e9365725fbdd7b0ee6660595eb8fa97b4a16 | /Semi-Supervised Learning_GAN/code.py | a17a4879c9e6758d1716dbf6fe64f475233c9117 | [] | no_license | moileehyeji/Discussion | edf0945c75a45998b13f4a4fa214587ed9bc5a75 | d502f45edadb178f14a21201707a6b1651932499 | refs/heads/main | 2023-05-06T15:15:00.567930 | 2021-06-04T05:59:20 | 2021-06-04T05:59:20 | 373,735,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,125 | py |
# https://github.com/eriklindernoren/PyTorch-GAN/blob/master/implementations/sgan/sgan.py
import argparse
import os
import numpy as np
import math
import torchvision.transforms as transforms
from torchvision.utils import save_image
from torch.utils.data import DataLoader
from torchvision import datasets
... | [
"noreply@github.com"
] | moileehyeji.noreply@github.com |
a74b092a468de49c8bc506b98a8a0ff2bf39b929 | 2ce18a0d8e106065b57136927e3e73b4fa82f8fa | /list-comprehension/changing-generators.py | 29c62ce4f684f20d09f39b639c0d5fa5b0a8ddf9 | [] | no_license | ColinFendrick/python-data-science-toolbox | 3eac02f3e65cf7e63f7c297f06a35ee7cbe92216 | 83a3d4614ef825302f1881b5b9a59e65db583a00 | refs/heads/master | 2021-01-02T19:06:18.395930 | 2020-02-17T17:07:44 | 2020-02-17T17:07:44 | 239,757,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | lannister = ['cersei', 'jaime', 'tywin', 'tyrion', 'joffrey']
lengths = (len(person) for person in lannister)
for value in lengths:
print(value)
| [
"colin.fendrick@gmail.com"
] | colin.fendrick@gmail.com |
5b96b98122a2782bb9492808fa86015dbce11b7a | 8b5d68c9398186cae64dbcc5b293d62d69e1921d | /src/python/knowledge_base/readers/structured_data_reader.py | 7036de83e51c53d32b65ca69040eabecd3cc8e46 | [
"Apache-2.0"
] | permissive | reynoldsm88/Hume | ec99df21e9b9651ec3cacfb8655a510ba567abc9 | 79a4ae3b116fbf7c9428e75a651753833e5bc137 | refs/heads/master | 2020-07-24T21:28:39.709145 | 2019-07-10T15:43:24 | 2019-07-10T15:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import json
class StructuredDataReader:
def __init__(self):
pass
def read(self, kb, structured_kb_file):
print "StructuredDataReader READ"
with open(structured_kb_file) as f:
structured_kb = json.load(f)
kb.structured_kb = structured_kb
| [
"hqiu@bbn.com"
] | hqiu@bbn.com |
1a329ea8b2e8fde9c9df6ee1fd947b58d49244a3 | f42affa951cd292e42fa47b4f4c5bfdab5c21eeb | /paddle.py | 5a3c751610cf1e19d060b380d81001011fc1d8fc | [] | no_license | thepixelboy/pong-game | 27e5432c9ee0080d2db3f2909591a0d2ef8d35c5 | d79fea5f8fd85dc06b906375587514a317d32bae | refs/heads/main | 2023-05-06T22:22:03.107087 | 2021-05-30T12:11:50 | 2021-05-30T12:11:50 | 372,206,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from turtle import Turtle
DEFAULT_MOVE = 20
class Paddle(Turtle):
def __init__(self, position):
super().__init__()
self.position = position
self.create_paddle()
def create_paddle(self):
self.shape("square")
self.color("white")
self.penup()
self.shapesize(stretch_wid=5, stretch_le... | [
"34570952+thepixelboy@users.noreply.github.com"
] | 34570952+thepixelboy@users.noreply.github.com |
d029186d44f62f98b226e4323b39b616d5f990a0 | fb97ccbd6aa0933f991c429c0e30081ce0f1fd90 | /Python/_interview_cake/9_valid_bst.py | 596335f493c2f0de60817cd5c0c1ec068d7cae43 | [] | no_license | 01-Jacky/PracticeProblems | a6c9b1dabc794ca52624870e48dcb84b1b69af67 | 5714fdb2d8a89a68d68d07f7ffd3f6bcff5b2ccf | refs/heads/master | 2022-03-23T12:24:13.834902 | 2019-12-31T08:11:19 | 2019-12-31T08:11:19 | 81,617,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | """
Validate a BST
1)
Max of left sub tree must be < than root value
Min of right sub tree must be > than root value
"""
def is_bst(root, min=float('-inf'), max=float('inf')):
if root is None:
return True
return min < root.value < max and \
is_bst(root.left, min, root.value) and \
... | [
"hklee310@gmail.com"
] | hklee310@gmail.com |
7a460d9abfd96d7fe1447f44197a372f74d342bc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_overcompensating.py | 2a2eb667f086df830e2666df3c95521102fec4ca | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py |
from xai.brain.wordbase.verbs._overcompensate import _OVERCOMPENSATE
#calss header
class _OVERCOMPENSATING(_OVERCOMPENSATE, ):
def __init__(self,):
_OVERCOMPENSATE.__init__(self)
self.name = "OVERCOMPENSATING"
self.specie = 'verbs'
self.basic = "overcompensate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
59e619a9fa42c03d894ec74a465d10095094baeb | b4f487228db96114c52750c1cd72a7119230526a | /uliweb/i18n/pygettext.py | 6569b9a317aa089a0a40e0f8f28fdd80d7f930dc | [
"BSD-2-Clause"
] | permissive | limodou/uliweb3 | 6a400bd1c0047d8ecc8dbb3c16c01671f033153e | bca802c320bd09cc317b2db2574bd4bc7ca1d388 | refs/heads/master | 2023-03-04T18:35:53.921848 | 2023-02-25T08:16:42 | 2023-02-25T08:16:42 | 148,398,667 | 19 | 4 | BSD-2-Clause | 2023-02-25T08:16:43 | 2018-09-12T00:43:24 | Python | UTF-8 | Python | false | false | 32,831 | py | #! /usr/bin/env python
# coding=utf-8
# Originally written by Barry Warsaw <barry@zope.com>
#
# Minimally patched to make it even more xgettext compatible
# by Peter Funk <pf@artcom-gmbh.de>
#
# 2002-11-22 J?gen Hermann <jh@web.de>
# Added checks that _() only contains string literals, and
# command line args are resol... | [
"limodou@gmail.com"
] | limodou@gmail.com |
d99d576a058ef5956106984d6bfadfa650d180fb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03167/s367868270.py | 31abb3c30c5fcaa1420f7b86a38e2c7adaa479cf | [] | 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 | 541 | py | from collections import deque
h,w=map(int,input().split())
maze=[[i for i in input()] for _ in range(h)]
que=deque([[0,0]])
visited=[[0 for _ in range(w)] for _ in range(h)]
visited[0][0]=1
while que:
n=que.popleft()
x,y=n[0],n[1]
if n==(h-1,w-1):
break
for i, j in [(1,0), (0,1)]:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
81fe7eadd2418caa75ad8188bf1b5777398c7eb8 | 24f664aa2344d4f5d5e7b048ac4e85231715c4c8 | /datasets/github/scrape_repos/indexer.py | dd7a16e3b4940538eab982c9b84e8157e3e56d50 | [] | no_license | speycode/clfuzz | 79320655e879d1e0a06a481e8ec2e293c7c10db7 | f2a96cf84a7971f70cb982c07b84207db407b3eb | refs/heads/master | 2020-12-05T13:44:55.486419 | 2020-01-03T14:14:03 | 2020-01-03T14:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | # Copyright 2018, 2019 Chris Cummins <chrisc.101@gmail.com>.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
646aedf7a130c27300fb9f4a0e1e999385f86318 | f4aa1885d4121e131c2a580183c6312aeefa8147 | /ch12/likes_app_virtualenv/src/django-likes/likes/test_utils/test_app/apps.py | fc04070e8336f17e3b2402586653623e6bb51f67 | [
"MIT"
] | permissive | PacktPublishing/Django-3-Web-Development-Cookbook-Fourth-Edition | 8f09d1ea9b13e8a66fc489fc09c9a5ee8f9968cf | 9371e0ea6f4dc61567bf28299cf57146519e274c | refs/heads/master | 2023-02-20T02:36:51.226985 | 2023-01-30T08:39:30 | 2023-01-30T08:39:30 | 201,903,680 | 189 | 117 | MIT | 2023-02-10T22:45:42 | 2019-08-12T09:54:54 | Python | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class TestAppConfig(AppConfig):
name = 'test_app'
| [
"aidasbend@yahoo.com"
] | aidasbend@yahoo.com |
ab575baf490fda95031b2f5688a47b4869525d35 | 7d172bc83bc61768a09cc97746715b8ec0e13ced | /odoo/migrations/0006_auto_20170628_0402.py | 09a34635f361cf04be7b163f3380f627c20f235a | [] | no_license | shivam1111/jjuice | a3bcd7ee0ae6647056bdc62ff000ce6e6af27594 | 6a2669795ed4bb4495fda7869eeb221ed6535582 | refs/heads/master | 2020-04-12T05:01:27.981792 | 2018-11-08T13:00:49 | 2018-11-08T13:00:49 | 81,114,622 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-06-28 04:02
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('odoo', '0005_auto_20170618_1356'),
]
operations = [
migrations.AlterModelTable(
... | [
"shivam1111@gmail.com"
] | shivam1111@gmail.com |
ace37ff10fc593ff551992e0b65900a9501b6d8a | e53c7d270e26bd0fac9dedadff9b4a4ff99110ec | /posts/views.py | 7d49db83c9a42fea1d31c85f873eff532ba7c0cb | [] | no_license | kydzoster/django-message_board | 34b33c0c240bd1dbb21bb0500db791411cca8cc6 | df8f038fc94b02e9ec9c51b8aab8307e1bc75848 | refs/heads/master | 2022-08-01T09:54:13.686456 | 2020-05-27T14:17:34 | 2020-05-27T14:17:34 | 267,337,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.shortcuts import render
# Create your views here.
from django.views.generic import ListView
from .models import Post
class HomePageView(ListView):
model = Post
template_name = 'home.html'
context_object_name = 'all_posts_list' | [
"kydzoster@gmail.com"
] | kydzoster@gmail.com |
d0ae70451d70c0b7ffb35207c06faf07fc9c01d9 | 5801d65a93670ee89fc92fc59c3948765f8c028f | /loan_management/loan_management/doctype/customer_expenses/customer_expenses.py | 7c1e3f0b7e1fa4eb980bd78431ed0448b4f6de7a | [
"MIT"
] | permissive | staumoepeau/customer_loan | a9205476aa4646ba08f8531c27ecd43a21165f12 | bb9f42160bc1e17085f000b15810892337dd0465 | refs/heads/master | 2021-01-22T04:23:16.804892 | 2018-11-27T21:09:28 | 2018-11-27T21:09:28 | 92,459,369 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Sione Taumoepeau and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class CustomerExpenses(Document):
pass
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
57800186771cb6665475f9ebaa02f58d2a3cb52f | a570561df345c055a8763aefb63a153ed2a4d002 | /django/paper_tracker/papers/urls.py | 9a3fbdfcd3d4f5104ea9f1c501953d1a8478b644 | [
"MIT"
] | permissive | kmod/paper_tracker | 7b089613172788360d5401434e58a31740062577 | 43dc10286e8ea3d38b888403091d18549a8106d6 | refs/heads/master | 2020-12-24T12:34:32.130210 | 2016-11-29T22:52:36 | 2016-11-29T22:52:36 | 72,976,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^papers$', views.papers_index, name='papers_index'),
url(r'^$', views.collections_index, name='collections_index'),
url(r'^collection/(?P<collection_id>[0-9]+)/$', views.collection, name='collection'),
url(r'^paper/new$', views... | [
"kevmod@gmail.com"
] | kevmod@gmail.com |
c2a5bcff0bcc1420d7abd3fe87de544b2d01d220 | 5a7a3447d434a458a7bb63f2aa11b64c284d5492 | /thread-ing/thread-test.py | 837138ed0f016cd25779cf75bbc034ccf39bbfbd | [] | no_license | woshimayi/mypython | 35792e12036a7a05f12d3ef7006637b2b03f0e2e | 7f1eb38e8585bf6d2f21d3ad0f64dace61425875 | refs/heads/master | 2023-09-01T08:59:12.301836 | 2023-08-30T05:30:54 | 2023-08-30T05:30:54 | 130,017,052 | 4 | 0 | null | 2018-12-02T16:18:14 | 2018-04-18T06:50:36 | HTML | UTF-8 | Python | false | false | 1,130 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: woshimayi
@license: (C) Copyright 2015-2049, Node Supply Chain Manager Corporation Limited.
@contact: xxxxxxxx@qq.com
@software: garner
@file: thread-test.py
@time: 2020/8/6 17:12
@desc:
'''
import threading
import time
exitFlag = 0
class myThrea... | [
"woshidamayi@Gmail.com"
] | woshidamayi@Gmail.com |
d86207b5e670b325df9b9349b9b14a45a03030f9 | a679a7d30f132441fd65d90000c1daeb390a4ab5 | /tests/test_strformat_pybrace.py | 4f93167429011f80b9ca64f6b03e0a92d1959f09 | [
"MIT"
] | permissive | llimeht/i18nspector | 0c4c9d6420fd5f050c45941df4b6cb9ad882c367 | 593e5d1adc5f21765051203fc0e6c16775e60258 | refs/heads/master | 2023-09-04T11:49:40.196374 | 2021-10-26T17:09:32 | 2021-10-26T17:09:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,953 | py | # Copyright © 2016-2018 Jakub Wilk <jwilk@jwilk.net>
#
# 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, modify, mer... | [
"jwilk@jwilk.net"
] | jwilk@jwilk.net |
26a8e7dd07b21f480488e1f4a850785dfd0f4f0d | f98c174d9011ed29cd8d304f0e4d7042b00d0233 | /automaton/lib/autoplatform.py | 40fe96107a47a44e1797c0eae35c56deb42b1d0e | [
"MIT"
] | permissive | nemec/Automaton | 10755e544a2004b31b55bf213c516001955a89f1 | eea2f89dc10031fba45c80eb63053480dfc3543f | refs/heads/master | 2020-12-24T15:04:49.102660 | 2016-01-04T20:23:35 | 2016-01-04T20:23:35 | 703,746 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | import platform as pl
import os
# pylint: disable-msg=C0103
# This module deals with platform-specific paths
# Set the platform we are currently running on
if pl.system().lower().startswith('windows'):
platform = 'windows'
elif pl.system().lower().startswith('darwin'):
platform = 'mac'
else:
platform = 'linux'
... | [
"djnemec@gmail.com"
] | djnemec@gmail.com |
afb78213b6b7a098c79cada1633fcf560bcdde47 | f156f2d94c1334b60afaab93fedb25da937af7a5 | /world/models.py | 90bbe5d05af7a6b3c2c4eb9441a8121432a07ae1 | [] | no_license | zeroam/geodjango | 74e0484263b23a024f453ec5c7fa68da3a2ccbc5 | b56a79ac22a126f11bbf6addbc734b6714f516cb | refs/heads/master | 2020-04-19T09:32:28.141513 | 2019-01-29T07:58:18 | 2019-01-29T07:58:18 | 168,114,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | from django.contrib.gis.db import models
class WorldBorder(models.Model):
# Regular Django fields corresponding to the attributes in the world borders shapefile.
name = models.CharField(max_length=50)
area = models.IntegerField()
pop2005 = models.IntegerField('Polulation 2005')
fips = models.CharFi... | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
d70057826d20d1c2123c88d7b0b4fc2374b67a16 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/python/kernel_tests/matrix_solve_op_test.py | 46c0c0de944b57256fb9fa5f616169edea2a8e3b | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,173 | 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... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
284a051b4199ebc1e0859e2bc7ce26faacac59c5 | b7a97c2919807983cd418d9262a1246fff9d95a1 | /apps/feeder/models/order.py | 77d0d82a6596d396f812baa2efc04c2fd78f327f | [] | no_license | PUYUP/kirimsaran | da2f439c70979ab88ef2e62e3b2a73c2278ce077 | 250dddddc3d22429c26eed6bfeaf054666f0c110 | refs/heads/main | 2023-08-04T10:11:23.016982 | 2021-09-29T00:59:11 | 2021-09-29T00:59:11 | 397,851,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,508 | py | from django.core.validators import RegexValidator
from django.db import models, transaction
from django.conf import settings
from django.apps import apps
from django.utils.translation import ugettext_lazy as _
from .abstract import AbstractCommonField
from ..utils import save_random_identifier
class AbstractOrder(Ab... | [
"hellopuyup@gmail.com"
] | hellopuyup@gmail.com |
316e7365092c96ced14f54d6d4595c49ec57a2ca | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/392/usersdata/314/71167/submittedfiles/formula.py | f70b595a824c5bd58d3737692eea90af30944fcf | [] | 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 | 92 | py | # -*- coding: utf-8 -*-
print('digite P: '\n)
print('digite i: '\n)
print('digite n: '\n)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9cbf73b313ceadb9a84a8983a41d3478ed5d80c4 | bd4144e919786b4aded4345a2a69ed79e0922946 | /1월 3주차/공통조상.py | 2f554303324d304c1362d167d0514050064e797d | [] | no_license | 2020-ASW/kwoneyng-Park | 670ee027a77c1559f808a51aaf58f27ab3bb85b9 | 3ef556889bbf3f2762c01fdfd10b59869d5e912f | refs/heads/master | 2023-05-14T16:14:04.227511 | 2021-06-11T08:00:37 | 2021-06-11T08:00:37 | 321,286,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | from math import log2
def makeTree(cur, parent):
depth[cur] = depth[parent] + 1 # 자식노드 차수가 부모노드 + 1
dp[cur][0] = parent
for i in range(1,mxL):
upper = dp[cur][i-1] #1 2^n
if upper == 0:
break
dp[cur][i] = dp[upper][i-1]
# dp[13][2] = dp[6][1]
for child in n... | [
"nan308@naver.com"
] | nan308@naver.com |
96f31bfeb86c80ba89858cec03aa42169c5c1f39 | 9f98ed0db445cd69e22eea9e6cfefa929111fe7f | /setup.py | 8afab05cdee21e2c40619e9211f70e7c7243323a | [] | no_license | zhuyoucai168/talospider | 670c34fc75e709814c1dd9f9f72e0a21e07dee47 | da4f0bdc6f6046c306be5c36d9016b74794823b0 | refs/heads/master | 2020-08-29T05:39:57.661905 | 2019-02-22T06:55:48 | 2019-02-22T06:55:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(
name='talospider',
version='0.0.6',
author='Howie Hu',
description="A simple,lightweight scraping micro-framework",
author_email='xiaozizayang@gmail.com',
install_requires=['lxml', 'requests', 'cchardet', 'cssselect'],
... | [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
0121af025b75095b667e0d0416853d7206c880a4 | ac83d1ddb84ecc904c73bdf779f458bd77efc98c | /src/programy/config/brain/binaries.py | 730ef746b85832414db26d3fdd3828a61fc3a8a2 | [
"MIT"
] | permissive | secrecy27/chatbot | 77829f32a15e17563f038663aebebdb71e52c5a7 | e65a753cf665a4d6d97b57703431cba5331e4f0b | refs/heads/master | 2022-07-24T08:39:57.788009 | 2020-07-16T03:55:21 | 2020-07-16T03:55:21 | 130,678,143 | 4 | 4 | NOASSERTION | 2022-07-06T19:49:14 | 2018-04-23T10:12:01 | Python | UTF-8 | Python | false | false | 2,747 | py | """
Copyright (c) 2016-2018 Keith Sterling http://www.keithsterling.com
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... | [
"secrecy418@naver.com"
] | secrecy418@naver.com |
582e6d7977304ec94ff5e09011134c56548fddee | 8644a2174c3cb7ccfe211a5e49edffbcc3a74a46 | /HackerrankSolutions/ProblemSolving/DataStructures/LinkedList/Easy/insert_node_doubly_ll.py | 30a3ceddc485daee86a8b335eec39479fd28e2eb | [] | no_license | bhavya2403/Learning-Python | 9e7cc9dee21172321fb217cae27c8072357f71ce | 3898211b357fbab320010a82a4811b68611d0422 | refs/heads/main | 2023-03-24T03:19:49.989965 | 2021-03-22T20:11:04 | 2021-03-22T20:11:04 | 315,962,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | class DoublyLinkedListNode:
def __init__(self, node_data):
self.data = node_data
self.next = None
self.prev = None
class DoublyLinkedList:
def __init__(self):
self.head = None
self.tail = None
def insert_node(self, node_data):
node = DoublyLink... | [
"noreply@github.com"
] | bhavya2403.noreply@github.com |
3c40d89ebe58b12e75def3e0190a55e9fe582789 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/MMseg-swin/configs/ann/ann_r50-d8_512x512_20k_voc12aug.py | 84eaca27405633ca786ead28b974db2f7f527e5c | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,652 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
c3b5005a2b16bf465392034a5dd8560026528ce1 | 9318b1885946f639f1446431abc6ec4fa33fc9ac | /Cisco_python/module_4/act-3.py | 4a247a9c4472018c19b3a620743bb178d2405f56 | [] | no_license | mcewenar/PYTHON_INFO_I_BASIC | 1d365bcd3d0186c8955e3cde2605831717d0a412 | e5c3278969b420e7ce03bf7903cf57e63865aaca | refs/heads/master | 2023-06-04T02:26:42.124304 | 2021-06-22T02:48:08 | 2021-06-22T02:48:08 | 326,510,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | #Tu tarea es escribir y probar una función que toma tres argumentos (un año, un mes y un día del mes)
#y devuelve el día correspondiente del año, o devuelve None si cualquiera de los argumentos no es válido.
#Debes utilizar las funciones previamente escritas y probadas. Agrega algunos casos de prueba al código.
#Est... | [
"dmcewena@hotmail.com"
] | dmcewena@hotmail.com |
a9ffbf6927f011eca02197d776c8cdf231525322 | 42ff36f4c6c967d2f39bf75c1f24c8b5911a8491 | /whileloop.py | b570fd612b80873ea6da85ac6f2859b7c5ebf077 | [] | no_license | cal1log/python | 0d47b688e619d0cdd464267225f76fff7d3101a4 | c8196c40e5505d4e83301ada97dd384611660778 | refs/heads/main | 2023-06-29T13:11:31.869976 | 2021-07-27T22:36:04 | 2021-07-27T22:36:04 | 366,841,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | #!/usr/bin/env python3
i = 1
''' incremental while loop '''
while i <= 5:
print('hello calilog')
i += 1
print()
i = 5
''' decremental while loop '''
while i >= 1:
print('hello calilog')
i -= 1
| [
"orlago250183@gmail.com"
] | orlago250183@gmail.com |
16bec49a939949dec19469329515808a53e2b58d | ddd35c693194aefb9c009fe6b88c52de7fa7c444 | /Live 10.1.18/_NKFW2/ResettingMixerComponent.py | c2477c605980a00da5595cf0a5b14ce75043c10b | [] | no_license | notelba/midi-remote-scripts | 819372d9c22573877c7912091bd8359fdd42585d | e3ec6846470eed7da8a4d4f78562ed49dc00727b | refs/heads/main | 2022-07-30T00:18:33.296376 | 2020-10-04T00:00:12 | 2020-10-04T00:00:12 | 301,003,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00)
# [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]
# Embedded file name: C:\ProgramData\Ableton\Live 9.7 Suite\Resources\MIDI Remote Scripts\_NKFW2\ResettingMixerComponent.py
# Compiled at: 2017-10-14 18:5... | [
"notelba@example.com"
] | notelba@example.com |
c306ee028f03366c34bdca2afb22d77a7303c459 | a6f70134a9bfdcc630e67a6d05c174d35496ada3 | /Sum of Inverse of Numbers^n.py | bb4e17b7740256803b5bc189aaea48aee10de4d2 | [] | no_license | nauman-sakharkar/Python-2.x | 9c0e9d9e5968631e44ab595175ddcbe0a1b615ad | 31df433481d75c7b76a40b2fc372fa6fefbb779f | refs/heads/master | 2022-10-08T17:20:46.387977 | 2020-06-10T07:36:03 | 2020-06-10T07:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | n=int(input("Enter the Number Of Times = "))
q=int(input("Enter The Number = "))
sum=0
for i in range(1,n+1):
sum=sum+((1/q)**i)
print("",sum)
| [
"50130960+nauman-sakharkar@users.noreply.github.com"
] | 50130960+nauman-sakharkar@users.noreply.github.com |
4ea666bc8e896fbcd40fb73d27e4e967147c0a7b | 3e85618c79a1a934fec543e1327e772ca081a5b9 | /N1226.py | f9cf0945dd8c9496a8325051fcd4c4ce8e6bba04 | [] | no_license | ghdus4185/SWEXPERT | 72d79aa4a668452327a676a644b952bab191c79b | 4dc74ad74df7837450de4ce55526dac7760ce738 | refs/heads/master | 2020-07-16T18:31:22.153239 | 2019-12-20T04:18:30 | 2019-12-20T04:18:30 | 205,843,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import sys
sys.stdin = open('input.txt', 'r')
def find(x,y):
global di, dj, maze, possible, check
stack = []
stack.append([x,y])
while stack:
n = stack.pop()
for k in range(4):
ni = n[0] + di[k]
nj = n[1] + dj[k]
# 범위 안에 있는지
if 0 <= ni < 1... | [
"ckdghdus@naver.com"
] | ckdghdus@naver.com |
7ede643951e1f15dbbd488aee63423bae39dbced | 33db9e6d0a73f2353747a4c9d3223d55a38730a8 | /apps/first_app/models.py | 9c9e3168c45565effb1144ef8f0ded356a58890e | [] | no_license | philmccormick23/Likes-and-Books | 94d778df265fe9b1645f783c83358617ca6fe0c0 | 0a9b18ceb7ce33a72334900e7f9f62b10d87a796 | refs/heads/master | 2020-04-02T15:14:46.314382 | 2018-10-24T19:46:10 | 2018-10-24T19:46:10 | 154,559,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class User(models.Model):
first_name = models.CharField(max_length=200)
last_name = models.CharField(max_length=200)
email = models.EmailField()
created_at = models.DateTimeField(auto_now_add=True)
updat... | [
"phillipmccormick@Phillips-MacBook-Pro.local"
] | phillipmccormick@Phillips-MacBook-Pro.local |
0c21269cec3d106c781ee734f3a60a7415c78889 | 1792509a9accac11c837e2a18dcb3d34f1d7e30e | /client/category.py | edfa52d0b3eb42271cc8d9e90fe84f84bc763d38 | [] | no_license | kafura-kafiri/herb | 2d3166b94e5fdacd106d6c4bc21d09f6c9cf568e | 48329a0059e2843c72ad2d85e7bb31379f0042e5 | refs/heads/master | 2020-04-09T09:35:03.720161 | 2018-12-17T11:02:25 | 2018-12-17T11:02:25 | 160,238,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | import requests
url = 'http://localhost:5000/categories/'
headers = {'content-type': 'application/json'}
_categories = [
{
'ancestors': ['a', 'b', 'c'],
'title': 'd'
}, {
'ancestors': ['x', 'y'],
'title': 'z'
}
]
def fill():
requests.post(url + '*')
print()
pri... | [
"kafura.kafiri@gmail.com"
] | kafura.kafiri@gmail.com |
28cb89506c201fba276f34362a75f76ce01ffe95 | f6d2385cd8eb896e17c5e72ac75abe6a0ba28659 | /greffe1/essais.py | 9f4aebeaa116aa85140e83a9274bb4de511e3b61 | [] | no_license | pastrouveedespeudo/greffegreffe | fba94c9169c3d021714eabf1a45812ca762cfe9d | 8ebe4d555246aed26e705671014a260a23148a6a | refs/heads/master | 2020-06-12T14:50:17.590418 | 2019-07-04T14:01:25 | 2019-07-04T14:01:25 | 194,335,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from fonction import function
from fonction import ecrire
from fonction import lecture
from fonction import ecrire2
page = 'https://fr.yahoo.com/?guccounter=1&guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&guce_referrer_sig=AQAAAMdlxFFv1CpIEQ0VuhLMZl4pjm_0Ur2KGpLoKBkg4lBqmzqdwLxulK-E29QEXf815EL1VsURfRYB-M3USUSs2... | [
"noreply@github.com"
] | pastrouveedespeudo.noreply@github.com |
79258c9426d558486274c453e5f1e7bd0cbb4a0a | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/validPalindrome_20200803230103.py | 15299f1055653cb18098fa47a7ef7af4c4238410 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import re
def palindrome(str):
if len(str) == 0:
return True
actualStr = str.lower()
str = str.lower()
cleanStr = re.sub(r"[,.;:@#?!&$]+",' ',str)
print('cleanStr',cleanStr)
str = str.split(" ")
str.reverse()
newArr = []
print(actualStr)
for i in str:
newArr.ap... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
ca7095ab3d8c8f9a438a75a24c6495f62b664b90 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_geologies.py | 84e56d430f9355cad6a66d3b9a709b593d67b684 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py |
from xai.brain.wordbase.nouns._geology import _GEOLOGY
#calss header
class _GEOLOGIES(_GEOLOGY, ):
def __init__(self,):
_GEOLOGY.__init__(self)
self.name = "GEOLOGIES"
self.specie = 'nouns'
self.basic = "geology"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
84eef6cc65ec245e27db562aaabcc91b480142bb | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Hash Table/logger_rate_limiter.py | 2d6dcba5dcff6b6585ced12fe6631fc0e2af2b74 | [] | no_license | harvi7/Leetcode-Problems-Python | d3a5e8898aceb11abc4cae12e1da50061c1d352c | 73adc00f6853e821592c68f5dddf0a823cce5d87 | refs/heads/master | 2023-05-11T09:03:03.181590 | 2023-04-29T22:03:41 | 2023-04-29T22:03:41 | 222,657,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | class Logger:
def __init__(self):
"""
Initialize your data structure here.
"""
self._msg_dict = {}
def shouldPrintMessage(self, timestamp: int, message: str) -> bool:
"""
Returns true if the message should be printed in the given timestamp, otherwise returns fal... | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
377e0a1762965418f5d2a4d4871feeed710a71e8 | 565f95f207f49d987bdc372cd80942be95451731 | /python/misc/hlgrep | d76c0a07ff98af04d294df10bef1e8a2e4b4256a | [] | no_license | dustin/snippets | 76724c2131546bddd35a80da16921a44a49e2262 | 5be535890f9e71e298fec601d55c469c542ea330 | refs/heads/master | 2023-08-18T22:01:39.546961 | 2022-12-29T07:39:40 | 2022-12-29T07:39:40 | 18,840 | 18 | 4 | null | 2013-01-06T08:10:39 | 2008-05-22T07:58:19 | C | UTF-8 | Python | false | false | 306 | #!/usr/bin/env python
import sys
import posix
import re
smso=posix.popen("tput smso").read()
rmso=posix.popen("tput rmso").read()
expression=re.compile("(" + sys.argv[1] + ")")
l=sys.stdin.readline()
while l != '':
s=expression.sub(smso + '\\1' + rmso, l)
sys.stdout.write(s)
l=sys.stdin.readline()
| [
"dustin@spy.net"
] | dustin@spy.net | |
a35928309c1fa5bf69a6928dedc88f21e8e1bf73 | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /examples/chartsheet.py | 3edbd9dbfe920d08f7d3e6d4ecf08d471cba16e0 | [
"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,774 | py | #######################################################################
#
# An example of creating an Excel chart in a chartsheet with Python
# and XlsxWriter.
#
# Copyright 2013-2019, John McNamara, jmcnamara@cpan.org
#
import xlsxwriter
workbook = xlsxwriter.Workbook('chartsheet.xlsx')
# Add a worksheet to hold the... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
f485b1fe84144a2e6e02f8c6db683e8241399c64 | 831fe3255ab2dd7abb9fc79a21756012d57cb863 | /projects/nerf/nerf/raymarcher.py | 3be73d32299a15739202136510193efb2809c1ef | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | ksengin/pytorch3d | 3e84365ed2499c11ef5a443c4ab28bda85e71f7e | 1fffa20541c9fa3248e02473bee294724922d989 | refs/heads/master | 2021-05-16T21:24:36.150263 | 2021-03-19T07:07:23 | 2021-03-19T07:07:23 | 250,474,512 | 0 | 0 | NOASSERTION | 2020-03-27T08:00:17 | 2020-03-27T08:00:17 | null | UTF-8 | Python | false | false | 2,796 | py | # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import torch
from pytorch3d.renderer import EmissionAbsorptionRaymarcher
from pytorch3d.renderer.implicit.raymarching import (
_check_density_bounds,
_check_raymarcher_inputs,
_shifted_cumprod,
)
class EmissionAbsorptionNeRFRaymarcher... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ada1ac04d0162f1f086d1ebfc1bb718c67f74aee | 2a34a824e1a2d3bac7b99edcf19926a477a157a0 | /src/cr/vision/core/colors.py | 2865015e52642389b5b3c74caf559bef6dda8111 | [
"Apache-2.0"
] | permissive | carnotresearch/cr-vision | a7cb07157dbf470ed3fe560ef85d6e5194c660ae | 317fbf70c558e8f9563c3d0ba3bebbc5f84af622 | refs/heads/master | 2023-04-10T22:34:34.833043 | 2021-04-25T13:32:14 | 2021-04-25T13:32:14 | 142,256,002 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,002 | py | '''
List of common colors in b g r format
'''
ALICEBLUE = (255, 248, 240)
ANTIQUEWHITE = (215, 235, 250)
AQUA = (255, 255, 0)
AQUAMARINE = (212, 255, 127)
AZURE = (255, 255, 240)
BEIGE = (220, 245, 245)
BISQUE = (196, 228, 255)
BLACK = (0, 0, 0)
BLANCHEDALMOND = (205, 235, 255)
BLUE = (255, 0, 0)
BLUEVIOLET = (226, 43... | [
"shailesh@indigits.com"
] | shailesh@indigits.com |
83ef5f92fe38434ba6cab8b23f51c000ed6735e5 | fb4a589b87fde22d43fe4345794c00bbc3785085 | /resources/oci-lib/lib/python3.6/site-packages/services/events/src/oci_cli_events/generated/events_cli.py | 2f9059015121b13e588187ead12c46120419a5ed | [] | no_license | dickiesanders/oci-cli-action | a29ccf353a09cb110a38dc9c7f9ea76260c62a48 | ef409321a0b9bdbce37e0e39cfe0e6499ccffe1f | refs/heads/master | 2022-12-18T02:52:07.786446 | 2020-09-19T09:44:02 | 2020-09-19T09:44:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,182 | py | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | [
"bytesbay@icloud.com"
] | bytesbay@icloud.com |
2915daa920a718772f982608d13e1abbe0e0de8f | 96e76bcb634e0e48bcf3ae352eb235ed9bc32b36 | /app/migrations/0020_news_date_and_time.py | abf6be4f45c0a5659dc925a56654a48eab0b5a70 | [] | no_license | Ectroverse/EctroverseDjango | cef8a8a2149271c0995f1b60676f636e5dfc23ec | a3dad97b4e7a89694248c21df75ebdcc37e975f0 | refs/heads/master | 2023-04-18T21:12:20.062646 | 2021-04-28T11:06:01 | 2021-04-28T11:06:01 | 291,338,914 | 1 | 3 | null | 2021-01-23T14:32:21 | 2020-08-29T19:50:33 | Python | UTF-8 | Python | false | false | 409 | py | # Generated by Django 3.1 on 2021-01-24 16:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0019_auto_20210124_1638'),
]
operations = [
migrations.AddField(
model_name='news',
name='date_and_time',
... | [
"vsavko@gmail.com"
] | vsavko@gmail.com |
6c58b0de7a6aaa29da887706c57a87152a52622a | 7208db50a22368c335e7d7d8b37a3fedb09c60e5 | /cairis/gui/ResponsesDialog.py | 462cb9196456757bb3e23ec2869fb3380d5121b9 | [
"Apache-2.0"
] | permissive | nebloc/cairis | 41c7f20af56c46bddcb3927dc4aa410f6477e6ed | 1277a148a270d5471b59fc238aa6590bc1d3044e | refs/heads/master | 2020-03-24T03:51:11.908096 | 2018-07-27T16:07:36 | 2018-07-27T16:07:36 | 142,434,768 | 0 | 0 | Apache-2.0 | 2018-07-26T11:58:24 | 2018-07-26T11:58:24 | null | UTF-8 | Python | false | false | 4,350 | 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... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
053f1ccda4e39457dc790683227d0bc1b6d7da4d | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ges/huaweicloudsdkges/v2/model/list_jobs_resp_job_list.py | 45bcf3b71b8ca926bfc21443a9d3494688005247 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 11,035 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListJobsRespJobList:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribut... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3d9cb190898bb0de72ad98aa055083f485cc3c08 | f07392633118f7f6aff0a5a9b2a5c9eaab1a0299 | /Examples/packaging/Capitalize/capitalize/capital_mod.py | 2b4d8147fce933a404c366dee5112a3e807866e5 | [] | no_license | UWPCE-PythonCert/Py300 | afc4abca736cfea031292db6bed996465f37604f | 7f93d20ae66ba9a56c4dcc0c1fdafcf79db15349 | refs/heads/master | 2020-05-26T13:43:38.098926 | 2018-03-05T07:11:48 | 2018-03-05T07:11:48 | 85,002,542 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | #!/usr/bin/env python
"""
A really simple module, just to demonstrate packaging
"""
def capitalize_line(instr):
"""
capitalizes the input string
:param instr: the string to capitalize it should be a single line.
:type instr: string
:returns: a capitalized version of instr
"""
return " ... | [
"PythonCHB@gmail.com"
] | PythonCHB@gmail.com |
086e7cd5094e3ff935e8b9311c8664873ac1cfc8 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/l3/start_20200620180546.py | 304413c0994d4341aa3bde6dc27f92c38feb6864 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10 | py | import dis | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
6dce8ab5aa0b8bd0c0ee86d7753accc09fc9c3a9 | 8fa8ded3772dd7a124c1bbb91fc109ed2b63574b | /mycelium/apps/groups/migrations/0024_auto__add_field_grouprule_account__add_field_group_account.py | 6efb4463b3442d5bbdba8fed2d4d0f47a61bb622 | [] | no_license | skoczen/mycelium | 3642b0f5e5ea03d609a3e499c7ad68092101dce0 | da0f169163f4dc93e2dc2b0d934abf4f18c18af0 | refs/heads/master | 2020-04-10T09:21:46.893254 | 2014-05-20T02:27:06 | 2014-05-20T02:27:06 | 2,114,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,761 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
depends_on = (
("accounts", "0004_create_old_data_account"),
)
def forwards(self, orm):
# Adding field 'GroupRule.accou... | [
"steven@quantumimagery.com"
] | steven@quantumimagery.com |
133eb8ff9bdd88c775a362eb91c937e712aea0bb | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/workloads/setup.py | 4eb445f63f094bb7c215e4c40b08e0266e1db3d9 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 1,704 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
842ea8d847ca0d8514eb8efc7bf05841e0aa0d31 | e04d7dedd28e6ae77fdead98cc870e8969e4e7fc | /venv/bin/easy_install-3.6 | 0884f63c734475a699effa551be434a39db10d2c | [] | no_license | damodharn/Python_Week3 | eb9670707ffcf07feb2596431eb747ab90ea0c89 | 3a47a6f464fb066a00f7277de4ca9d9c37850da9 | refs/heads/master | 2020-06-29T21:53:42.311181 | 2019-08-13T13:29:17 | 2019-08-13T13:29:17 | 200,634,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | 6 | #!/home/admin1/PycharmProjects/week3/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"damodharn21@gmail.com"
] | damodharn21@gmail.com |
0b7dfd99cdf13d9ecafbc21d8fc4f34870cc081b | e1d6de1fb5ce02907df8fa4d4e17e61d98e8727d | /crawlers/urllib2s/urllib2_posts.py | e58f5ccf7fb07608478bd5d3e0cbb37eff0ded44 | [] | no_license | neuroph12/nlpy | 3f3d1a8653a832d6230cb565428ee0c77ef7451d | 095976d144dacf07414bf7ee42b811eaa67326c1 | refs/heads/master | 2020-09-16T08:24:37.381353 | 2016-09-10T19:24:05 | 2016-09-10T19:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | import urllib
import urllib2
url = 'http://www.douban.com/accounts/login'
values = {'form_email': '',
'form_password': ''}
data = urllib.urlencode(values)
req = urllib2.Request(url, data)
resp = urllib2.urlopen(req)
html = resp.read()
print(html) | [
"anderscui@gmail.com"
] | anderscui@gmail.com |
66259f17ed43af8cc07fab9f59f2c6e11087508a | e84f8bcf2ea91ac12f9850a6f487b8b6bff09235 | /pyfr/backends/cuda/types.py | 0cc8c1b194cd8f1297244c06bf5c39a0ec500c80 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | permissive | Aerojspark/PyFR | 2bdbbf8a1a0770dc6cf48100dc5f895eb8ab8110 | b59e67f3aa475f7e67953130a45f264f90e2bb92 | refs/heads/master | 2021-01-14T08:51:48.893378 | 2014-09-01T15:02:28 | 2014-09-01T15:02:28 | 24,884,060 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,726 | py | # -*- coding: utf-8 -*-
import collections
import itertools as it
import numpy as np
import pycuda.driver as cuda
import pyfr.backends.base as base
class CUDAMatrixBase(base.MatrixBase):
def onalloc(self, basedata, offset):
self.basedata = int(basedata)
self.data = self.basedata + offset
... | [
"freddie@witherden.org"
] | freddie@witherden.org |
91f594c0d623009fa6d5f267254ce89dd81b5e16 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02846/s097636759.py | 3a28136572804ebc45464a64aaca2efeebe9c309 | [] | 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 | 1,115 | py | import sys
sys.setrecursionlimit(10**9)
INF=10**18
def input():
return sys.stdin.readline().rstrip()
def main():
def nibutan(ok,ng):
while abs(ok-ng) > 1:
mid = (ok + ng) // 2
if solve(mid,2):
ok = mid
else:
ng = mid
return ok
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5f43276c56036f6fb66ed1d8b271c4f884b8a619 | b7125b27e564d2cc80a2ce8d0a6f934aa22c8445 | /.history/display_board_20201108143615.py | 98a8605857b33b641a94ead1694ab306c856f3eb | [] | no_license | JensVL96/Puzzle-solver-for-fun | 4c15dcd570c3705b7ac555efb56b52913e81083c | 6d8a4378a480372213a596a336a4deca727a00fc | refs/heads/master | 2021-07-15T05:19:42.185495 | 2020-11-08T13:59:49 | 2020-11-08T13:59:49 | 224,855,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,475 | py | from config import *
import pygame as pg
class Display_board():
def __init__(self, screen):
self.screen = screen
self.font_num = pg.font.SysFont("comicsans", NUMBER_SIZE)
self.font_cdt = pg.font.SysFont("comicsans", CANDIDATE_SIZE)
def draw_val(self, val, x, y):
text1 = self.... | [
"jle040@uit.no"
] | jle040@uit.no |
70001b56d298f5befbbcdf00e94f61e060b46a96 | 21b0483666d8e5cbdc4a911bda93e1a3392c40ec | /lib/initialConditions.py | 1f3e0b6022939d9fa360915afc8482217719f223 | [] | no_license | Christopher-Bradshaw/fluids_final | 0541111323c640b40ee86f970acb896689bbb867 | 2e33b2ef04fdbd40760c1804a02c86c93c5fd926 | refs/heads/master | 2021-08-24T03:13:43.132099 | 2017-12-07T20:33:31 | 2017-12-07T20:33:31 | 113,245,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,193 | py | import numpy as np
def getPressure(energy, volume, gamma):
return energy * (gamma - 1) / volume
def getFlatConfig():
dx = 1
width = 5
gamma = 5/3
# Densities
initialRho = np.ones(width) # this will never change
summedInitialRho = np.array([
initialRho[i] + initialRho[i+1] for i in ... | [
"christopher.peter.bradshaw+github@gmail.com"
] | christopher.peter.bradshaw+github@gmail.com |
40b4fc7442a3dca396d30cd384a4df70fbca793d | a6d8465aed280c36fb7129e1fa762535bae19941 | /embroidery365/builder/migrations/0015_auto_20171107_1318.py | e8fb24e2d785b3b21a4799b1ab238de547240bcb | [] | no_license | rahuezo/365digitizing_and_embroidery | c61c53f567e73163a67d3fd568a20551a3681ccd | 41a22b6ff8bd83238219f2d34ce13b5a8ef9bb57 | refs/heads/master | 2020-09-02T11:59:07.702947 | 2017-11-11T02:40:01 | 2017-11-11T02:40:01 | 98,377,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-11-07 21:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('builder', '0014_order_extra_details'),
]
operations = [
migrations.AlterFie... | [
"rahuezo@ucdavis.edu"
] | rahuezo@ucdavis.edu |
2ef93f787a9d83908066ad2e141bcdc977dc2348 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_pragma99.py | e33f306588051a905793954fdd141d45e8a365b0 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=11
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
class Opty(cirq.PointOptimizer):
def optimization_at(
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
b723760ee19970314f9f76ce4761b88748adc393 | d90af0def0e29ebaebcf986399fcee65e1e2916c | /python/PDB/HSExposure.py | 779b719cece4c85738eaaab62c3ecb814a685d26 | [
"LicenseRef-scancode-biopython"
] | permissive | Zaiyong/csrosetta | 2fdbbdd7da24ce971f7f2297a7cd14723cdd59d6 | 539c60664dba3972062002ff4e636c7f029927cb | refs/heads/master | 2020-12-25T15:18:39.274689 | 2020-02-25T09:15:35 | 2020-02-25T09:15:35 | 65,408,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,412 | py | # Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Half-sphere exposure and coordination number calculation."""
import warnings
from math... | [
"zaiyong@jianings-MacBook-Air.local"
] | zaiyong@jianings-MacBook-Air.local |
7dfcd4cd24d5ed5f45978adad9a7d5d79e6a8df9 | 691793de7d07b17918d076b319281c706f7275c0 | /signing_today_client/api_client.py | 98948f9c78f3f2cce8197afcb845c184beb78226 | [
"MIT"
] | permissive | signingtoday/signingtoday-sdk-python | 1ddfae5340690c80760c500436631d4a8ff9c87f | ed267279622fb59f2ad8fa289157fc9cdf9d8a5b | refs/heads/master | 2020-12-03T15:32:35.755222 | 2020-03-24T08:27:11 | 2020-03-24T08:27:11 | 231,372,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,011 | py | # coding: utf-8
"""
Signing Today Web
*Signing Today* is the perfect Digital Signature Gateway. Whenever in Your workflow You need to add one or more Digital Signatures to Your document, *Signing Today* is the right choice. You prepare Your documents, *Signing Today* takes care of all the rest: send invitation... | [
"smartcloud@bit4id.com"
] | smartcloud@bit4id.com |
93de9a042164784e1ab3c9d2675bfade0049d3b5 | f84c51d8159e973913f5c537f08d285bdb3630e2 | /neural_sp/bin/args_asr.py | 54e0a69463158cfa3a6d65a4044267be461a7bd4 | [
"Apache-2.0"
] | permissive | lahiruts/neural_sp | d302ce0479bcbe813639c531f460d55a6c9c2a65 | 5b314ece12081db8b423d4dc32ce33f4228ff37b | refs/heads/master | 2022-11-20T06:45:34.891542 | 2020-07-22T09:20:55 | 2020-07-22T09:20:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,139 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Args option for the ASR task."""
import configargparse
from distutils.util import strtobool
import os
from neural_sp.bin.train_utils import load_config
... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
b89e6024ba7fcd2978bed43342381eaea6996fb3 | 5ebfced62f59052560c6adf89bfd2f249877cc75 | /webcomics/series/urls.py | 46b8c581e3ef21673277aa776913f4bad5bfbd5c | [] | no_license | lumenwrites/webcomics | 537c9bd0337ebd087dacdee7b72797b658481f8c | 34200eaf19021147c561bf140a685e398156589e | refs/heads/master | 2021-06-10T17:12:50.317113 | 2017-02-19T09:28:57 | 2017-02-19T09:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from django.conf.urls import url
from . import views
from posts.views import SeriesFeed
urlpatterns = [
# url(r'^$', views.BrowseView.as_view(), name='post-list'),
url(r'^create-series/$', views.SeriesCreate.as_view(), name='series-create'),
url(r'^series/(?P<slug>[^\.]+)/edit$', views.SeriesEdit.as_vie... | [
"raymestalez@gmail.com"
] | raymestalez@gmail.com |
daae7ab1b7ac6d998eca5a559c61ec45f2d7095e | 25985aeeee54373d26a164e4cc6a014770e3ebf3 | /windows/w3af/w3af/core/data/nltk_wrapper/.svn/text-base/nltk_wrapper.py.svn-base | 3f652ee04b353c653d75d4761f71621362d73520 | [] | no_license | sui84/tools | 4b750dae90940fbe3a226cba72dc071d8fb88b7c | 651cc08eb50199ce1044c684dbf714ea26df6432 | refs/heads/master | 2021-01-22T19:22:26.964580 | 2017-08-20T15:23:38 | 2017-08-20T15:23:38 | 100,774,276 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | '''
nltk_wrapper.py
Copyright 2011 Andres Riancho
This file is part of w3af, w3af.sourceforge.net .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope... | [
"sui84@126.com"
] | sui84@126.com | |
214374daa226d99e5073ab7b542cbb0a073ca027 | fce6762c17fc81009af226f71ca32d2dc8227beb | /Section 4 Matrix multiplications.py | 952e60e048ad9f035f59866a9b471ae7989ef640 | [] | no_license | kuangzijian/Linear-Algebra | 3f9599ef282283dfc6bd49c0c97327a8fa31e671 | 94a872502ff570f04d61cb7bf1db653681f403c3 | refs/heads/master | 2022-11-04T07:05:55.272865 | 2019-07-31T05:32:42 | 2019-07-31T05:32:42 | 196,622,918 | 0 | 1 | null | 2022-10-29T19:00:25 | 2019-07-12T17:57:11 | Python | UTF-8 | Python | false | false | 7,048 | py | import numpy as np
import matplotlib.pyplot as plt
import math
from sympy import *
#Standard matrix multiplication, parts 1 & 2
## rules for multiplication validity
m = 4
n = 3
k = 6
# make some matrices
A = np.random.randn(m,n)
B = np.random.randn(n,k)
C = np.random.randn(m,k)
# test which multiplications are valid... | [
"kuangzijian1@hotmail.com"
] | kuangzijian1@hotmail.com |
3482c862a6405f9d46af7e9c72673545f05201a1 | eb8b5cde971573668800146b3632e43ed6e493d2 | /python/oneflow/test/modules/test_instruction_replay.py | e9fbd188d1ecc88127be665d92a6ea691ab0065a | [
"Apache-2.0"
] | permissive | big-data-ai/oneflow | 16f167f7fb7fca2ce527d6e3383c577a90829e8a | b1c67df42fb9c5ab1335008441b0273272d7128d | refs/heads/master | 2023-07-08T21:21:41.136387 | 2021-08-21T11:31:14 | 2021-08-21T11:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | big-data-ai.noreply@github.com |
30b31dbb48ee318100dfe52ceb8b3bf19ac84ee9 | 9aab01a48d1af5c4f1889ae9d27940f8bc738d37 | /Mindshare/project_management/cvr/tables.py | 4143730b11b7ed81bf26920c54a9c284e43bd1ea | [] | no_license | raveena17/workout-ex | 274998170a3cfbf42bffe61d49fce8531eddc3f5 | a9c652535f33d05199b3c5d26b72c721a822a2b7 | refs/heads/master | 2021-09-05T10:06:46.399468 | 2018-01-26T08:36:58 | 2018-01-26T08:36:58 | 119,025,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # import django_tables2 as tables
# from .models import Cvr
# #class django_tables2.columns.LinkColumn(, urlconf=None, , kwargs=None, current_app=None, attrs=None, **extra)
# class CVRTable(tables.Table):
# id = tables.LinkColumn(viewname='edit_cvr', args=[tables.A('pk')])
# class Meta:
# model = Cvr... | [
"raveena@5gindia.net"
] | raveena@5gindia.net |
6c79ae8cc7aed21c5f2b9410bcf90b219dedfe16 | 07af444dafa5bde373b0730e92d67e455d4ff4df | /SFData/StackOverflow/s36972087_ground_truth.py | 79f82ae3f49c2bb32dc969c91d323ecc4f7a516f | [] | no_license | tensfa/tensfa | 9114595b58a2e989780af0c348afb89a2abb04b4 | 415dcfaec589b0b14c5b9864872c912f3851b383 | refs/heads/main | 2023-06-30T14:27:38.217089 | 2021-08-03T01:33:30 | 2021-08-03T01:33:30 | 368,465,614 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import tensorflow as tf
import numpy as np
train_images = np.array(np.random.random((10, 19)), dtype=np.float32)
train_labels = np.random.randint(0, 2, 10, dtype=np.int32)
train_labels = np.eye(2)[train_labels]
sess = tf.InteractiveSession()
x = tf.placeholder(tf.float32, shape=[None, 19])
y_ = tf.placeholder(tf.flo... | [
"tensfa@yeah.net"
] | tensfa@yeah.net |
62a13abd4c0147da29cd785233f04f06aca6a23a | 2a8abd5d6acdc260aff3639bce35ca1e688869e9 | /telestream_cloud_qc_sdk/test/test_container_essence_consistency_test.py | a53e951acde1e1e1d545fa4c1388c5f5ecb32225 | [
"MIT"
] | permissive | Telestream/telestream-cloud-python-sdk | 57dd2f0422c83531e213f48d87bc0c71f58b5872 | ce0ad503299661a0f622661359367173c06889fc | refs/heads/master | 2021-01-18T02:17:44.258254 | 2020-04-09T11:36:07 | 2020-04-09T11:36:07 | 49,494,916 | 0 | 0 | MIT | 2018-01-22T10:07:49 | 2016-01-12T11:10:56 | Python | UTF-8 | Python | false | false | 1,600 | py | # coding: utf-8
"""
Qc API
Qc API # noqa: E501
The version of the OpenAPI document: 3.0.0
Contact: cloudsupport@telestream.net
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import telestream_cloud_qc
from telestream_cl... | [
"cloudsupport@telestream.net"
] | cloudsupport@telestream.net |
5c90209a2a85242d66565dc74c3d13c88a2f10b7 | e7b7505c084e2c2608cbda472bc193d4a0153248 | /DailyChallenge/LC_126.py | 6a71e599fd82c9936054243d450e4e182fae01a5 | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py |
class Solution:
def findLadders(self, beginWord: str, endWord: str, wordList):
#we dont need visited since we will remove the newLayer.values() for the words we have processed
wordList = set(wordList)
res = []
lowercase = string.ascii_lowercase
#layer is similar to queue ... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
4e7eb91fe1d09211b9bd1a08ad237e37699b1484 | ac549e553263801bdc6962a10ebbe784dc2631df | /Python/graphs/traversal.py | e3e6b65ebfcfc36492062561afd6ccc02a61bcd2 | [] | no_license | Bishal44/DataStructure | e595890d18bde39e65f02a7ca3a6904c6070c3c8 | 939c47de6dcfe3b2578aaa0610d3cdc5726572c7 | refs/heads/master | 2020-09-10T22:40:46.368607 | 2020-03-28T12:15:08 | 2020-03-28T12:15:08 | 221,854,694 | 0 | 0 | null | 2019-12-10T15:47:45 | 2019-11-15T05:59:40 | Python | UTF-8 | Python | false | false | 1,863 | py | '''
Created on Sat Jan 11 2020
'''
graph = {'A': set(['B', 'C', 'F']),
'B': set(['A', 'D', 'E']),
'C': set(['A', 'F']),
'D': set(['B']),
'E': set(['B', 'F']),
'F': set(['A', 'C', 'E'])}
# dfs and bfs are the ultimately same except that they are visiting nodes in
# differe... | [
"bhattaraibishal704@gmail.com"
] | bhattaraibishal704@gmail.com |
aeb610b09b0c9d2cd3f230690fa462bbab915093 | f125a883dbcc1912dacb3bf13e0f9263a42e57fe | /tsis1/Loop for/3532.py | e1fad768f54887c4a2ca4540e551ec7aadfa2c56 | [] | no_license | AruzhanBazarbai/pp2 | 1f28b9439d1b55499dec4158e8906954b507f04a | 9d7f1203b6735b27bb54dfda73b3d2c6b90524c3 | refs/heads/master | 2023-07-13T05:26:02.154105 | 2021-08-27T10:20:34 | 2021-08-27T10:20:34 | 335,332,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | #Задача №3532. Сумма кубов
n=int(input())
cnt=0
for i in range(1,n+1):
cnt+=i**3
print(cnt) | [
"aruzhanart2003@mail.ru"
] | aruzhanart2003@mail.ru |
b08ad2fefef80365d87004cef4629d3c62aa60b3 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/layout/legend/_traceorder.py | d5fe177e6cf14ddf521d4e55b0eef9d2d0fa8d2e | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 532 | py | import _plotly_utils.basevalidators
class TraceorderValidator(_plotly_utils.basevalidators.FlaglistValidator):
def __init__(self, plotly_name="traceorder", parent_name="layout.legend", **kwargs):
super(TraceorderValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
fb2dc56539cdf51cd1d14fa04f375e98d0178ecc | ea16c6da19fce9a4dff085aaeff3ac12baa21d59 | /tests/test_obvs.py | 5febd213e3768347232d28f1e8c604c5c017648c | [] | no_license | changhoonhahn/specmulator | a31b17aeab1ba1a29118e431fd7558dd8bbc7e5b | 9453e7fcc30d74b732594bfb78f7e4f5d20bc95f | refs/heads/master | 2021-09-10T18:57:21.361837 | 2018-03-31T05:52:33 | 2018-03-31T05:52:33 | 106,511,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,710 | py | import numpy as np
import env
import util as UT
import obvs as Obvs
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.rcParams['text.usetex'] = True
mpl.rcParams['font.family'] = 'serif'
mpl.rcParams['axes.linewidth'] = 1.5
mpl.rcParams['axes.xmargin'] = 1
mpl.rcParams['xtick.labelsize'] = 'x-large'
mpl.... | [
"chh327@nyu.edu"
] | chh327@nyu.edu |
d7f53e22fde0ca53ee451f3ff3b5e007a16c8a41 | 9c61ec2a55e897e4a3bb9145296081c648d812c4 | /docs/cd/06443007程式碼/ch01/1-8.py | d27b4e821287c1d67dba80b1f5b27da4d527b6e6 | [] | no_license | wildboy2arthur/ML-Class | 47899246251d12972a6d3875160c1cc8d1052202 | 345c86e3f8890919d59a63a79674acbdcd4577c4 | refs/heads/main | 2023-07-16T11:32:07.683652 | 2021-08-24T08:25:04 | 2021-08-24T08:25:04 | 399,388,026 | 0 | 0 | null | 2021-08-24T08:18:36 | 2021-08-24T08:18:35 | null | UTF-8 | Python | false | false | 240 | py | def cal_price_dict(k_cost):
rate = 0.03
nt_cost = k_cost * rate
inc = 0.2
nt_price = nt_cost * (1 + inc)
data = {
'k_cost': k_cost,
'nt_cost': nt_cost,
'nt_price': nt_price
}
return data | [
"1101404110@nkust.edu.tw"
] | 1101404110@nkust.edu.tw |
4da999cb489a900fa165b6cd924ab3776644bd18 | 9973dd9a35333f1b24e4c1e3cd2098391d17e193 | /clones/migrations/0002_auto_20200216_2103.py | d210099b236272054745ccd1c53767889b1d5bc6 | [] | no_license | smilepogz/FinalTrelloClone | 5140f804ceeb02e6969cb5693daa3cad7e296961 | 9affade23a0b911baa5fa11d9d2ce83e3db669e7 | refs/heads/master | 2021-01-04T11:20:08.893932 | 2020-02-17T13:44:11 | 2020-02-17T13:44:11 | 240,524,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # Generated by Django 3.0.3 on 2020-02-16 13:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clones', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='boardlist',
name='title',
... | [
"you@example.com"
] | you@example.com |
020942a036c94976bc69092a9f4d19b9c8c7ad90 | 8f455679fdb8e05c4c78141a8065250696d68d89 | /MultiNetV1.py | f46219308f3cf2135c2153d96f56870b3514b6ff | [
"MIT"
] | permissive | x5g/dogs_vs_cats | 63a17ac914ded5850d6d4e745408d50e4d242f74 | 8a6b992fe9abc6b20b31729eaec79ca8d6ec12e0 | refs/heads/master | 2022-10-20T02:25:51.097115 | 2020-06-09T17:21:52 | 2020-06-09T17:21:52 | 271,065,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,326 | py | import plaidml.keras
plaidml.keras.install_backend()
import os
os.environ["KERAS_BACKEND"] = "plaidml.keras.backend"
import keras
import matplotlib.pyplot as plt
import numpy as np
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
ROWS = 299
COLS = 299
CHANNELS = 3
batch_size = 32
epochs =... | [
"1098766468@qq.com"
] | 1098766468@qq.com |
8e3f054d598f85623ae2376aac935bda04e154d6 | afbae26b958b5ef20548402a65002dcc8e55b66a | /ironstubs/process_stubs.py | 570dd3fd93b8d1d96302c69f2f0d497a9dd5adf3 | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 6,253 | py | """ Stub Generator for IronPython
Extended script based on script developed by Gary Edwards at:
gitlab.com/reje/revit-python-stubs
This is uses a slightly modify version of generator3,
github.com/JetBrains/intellij-community/blob/master/python/helpers/generator3.py
Iterates through a list of targeted assembl... | [
"gtalarico@gmail.com"
] | gtalarico@gmail.com |
9fabaf664d6dbaf4dd42fc7eb23fb3b411cfd395 | 845d8e6816e91474e673b6cda452254d40c65e5c | /django_mailbox/transports/mmdf.py | ad462849609331fa0f5cdc9bf69e107179dd2cb7 | [] | no_license | redtoad/django-mailbox | d0847f7f29f4e4459045e8d9d3d5d1406968175b | 6da17053d495bee58ea78d4fb394d7618aeaab1a | refs/heads/master | 2021-01-01T15:36:55.409316 | 2013-06-12T06:50:25 | 2013-06-12T06:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from mailbox import MMDF
from django_mailbox.transports.generic import GenericFileMailbox
class MMDFTransport(GenericFileMailbox):
_variant = MMDF
| [
"me@adamcoddington.net"
] | me@adamcoddington.net |
02405e0001cf5846244e9d69773d9a9e7158254b | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/paa/paa_r50_fpn_1.5x_coco.py | 816c773695c011d9bf568083b9cd4e991e0abf1e | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 713 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
6204778bccce5acd82eee6997003e783a16005fd | a939e018333a9ecd26ddc618f99835b7eb381686 | /.svn/tmp/tempfile.2.tmp | 509885ba67010786fd018501957f1787d480a5c8 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | tmp | #!/usr/bin/python
# coding=utf8
# Copyright 2015 LeTV Inc. All Rights Reserved.
# author: gaoqiang@letv.com (Qiang Gao)
import os
import signal
from le_crawler.common.logutil import Log
thrift_logger = Log('thrift.server.TServer', 'log/thrift_filter.error').log
from optparse import OptionParser
from thrift.transport... | [
"zjc0516@126.com"
] | zjc0516@126.com |
6951735b5119448cb7a86cf403b941f92733e4b0 | f46966a5e49a6138182635a4850738a18eec01e5 | /scripts/utils/bcbio_prep_cwl_genomes.py | d704120ef6fa0e7407cca8ec06c5c6a3272e0319 | [
"MIT"
] | permissive | jchenpku/bcbio-nextgen | 44a9247a0e1314aaba66d1f9941540ddb2993bde | 9ddbfcc6f2595298ae8aad3adfa6a568a2a4c62f | refs/heads/master | 2020-08-01T03:06:30.695158 | 2019-10-07T00:21:32 | 2019-10-07T00:21:32 | 73,585,332 | 1 | 0 | MIT | 2019-10-07T00:21:33 | 2016-11-12T23:49:31 | Python | UTF-8 | Python | false | false | 2,642 | py | #!/usr/bin/env python
"""Clean and prepare a set of genomes for CWL usage and upload.
bcbio with CWL can read directly from a reference genome folder
without using Galaxy location files. This allows both local and
remote usage on object stores (Arvados, DNAnexus, SevenBridges, Synapse, S3).
This copies from an existi... | [
"chapmanb@50mail.com"
] | chapmanb@50mail.com |
000ad2bfe0221337ebe78b33b4c1046aed21085d | 46b432cd3557038c454601367b878f889c9b6a8f | /kiyuna/tutorial04/test_hmm.py | b2b0fc5a973faf6fbfb2ad7d8772238651f39b66 | [] | no_license | tmu-nlp/NLPtutorial2019 | 84ceec06568fd9d899a686658fb8851466133375 | d77d199c50cd37d70e462209a7bfcd4dee9140a1 | refs/heads/master | 2020-05-14T13:34:05.336594 | 2019-09-25T02:25:41 | 2019-09-25T02:25:41 | 181,814,723 | 1 | 0 | null | 2019-08-01T18:53:54 | 2019-04-17T04:04:06 | Python | UTF-8 | Python | false | false | 3,896 | py | '''
隠れマルコフモデルによる品詞推定
'''
import os
import sys
import subprocess
from collections import defaultdict
from math import log2
os.chdir(os.path.dirname(os.path.abspath(__file__))) # cd .
def message(text):
print("\33[92m" + text + "\33[0m")
def load_model(model_file):
possible_tags = defaultdict(int)
emi... | [
"kyuna.prog@gmail.com"
] | kyuna.prog@gmail.com |
c697740729c72361e89fa3f8b66eec1705d07e84 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R3/benchmark/startPyquil348.py | c41069924278a31fe96eac76877e55e4208814cf | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # qubit number=4
# total number=13
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(1) # number=2
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
1af9746ec4cafd840ab09d82afe8460f8f91246c | 27ece9ab880a0bdba4b2c053eccda94602c716d5 | /.history/tf_regression_logistic_20181130085723.py | 63a5da989d271aad51d7c4b5ba99da863f646db0 | [] | no_license | Symfomany/keras | 85e3ad0530837c00f63e14cee044b6a7d85c37b2 | 6cdb6e93dee86014346515a2017652c615bf9804 | refs/heads/master | 2020-04-08T20:21:35.991753 | 2018-11-30T08:23:36 | 2018-11-30T08:23:36 | 159,695,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,658 | py | import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
import os, argparse
"""
Any interaction with your filesystem to save persistent data in TF needs a Saver object and a Session object.
The Saver constructor allows you to control many things among which 1 is important:
The var_list: Default to... | [
"julien@meetserious.com"
] | julien@meetserious.com |
66c35ef831aaa59121f0b9b48d719fee7b050b34 | 078686dd88ff399cb3f9f773d237a7b18adf513a | /fund_crawl.py | 2e11bb1c2315571f53e2f78a3e04f58a7555f55c | [] | no_license | kh7160/lotto | b1995bb9488a02f9c0656779cb6bb118aa1d66b0 | 9c6b764bcc7244729d8ad39637de3d029f8f4b26 | refs/heads/master | 2023-02-28T00:12:27.295284 | 2021-02-01T10:49:20 | 2021-02-01T10:49:20 | 334,917,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import requests
from bs4 import BeautifulSoup
import fund_parse
url = 'https://dhlottery.co.kr/common.do?method=main'
resp = requests.get(url)
soup = BeautifulSoup(resp.text, 'html.parser')
# 7 num crawling
group = soup.select('.group .num span')
group = group[0].text
num = []
num.append(int(soup.find_all('span', {... | [
"kh7160@naver.com"
] | kh7160@naver.com |
ddff08d9864dfe1076ecf400d73e63b3b20a37df | 1a663b69c47ac56c38aed5704fc403df82b48491 | /teafacto/scripts/theanowrap.py | 331e4da792e0cef33af941df2b7e907443d1db42 | [
"MIT"
] | permissive | lukovnikov/teafacto | 9c0dda1dbb1abbcff795097a3522178ad5395852 | 5e863df8d061106ad705c0837f2d2ca4e08db0e4 | refs/heads/master | 2020-04-04T05:53:56.616520 | 2017-02-08T21:03:17 | 2017-02-08T21:03:17 | 46,288,607 | 2 | 5 | null | 2016-04-13T12:25:47 | 2015-11-16T16:52:23 | Python | UTF-8 | Python | false | false | 710 | py | from teafacto.core.base import tensorops as T, Val, param
import numpy as np
import sys
x = Val(np.random.random((10,10)))
#y = Val(np.random.random((10,10)))
y = param((10, 10), name="y").uniform()
w = param((10, 10), name="w").uniform()
#z = T.dot(x, y)
z = (x + y)
u = z * w
s = T.nnet.sigmoid
s2 = T.nnet.sigmoid
p... | [
"lukovnikov@outlook.com"
] | lukovnikov@outlook.com |
59c6f29c6c88c672ad008ad803c796881d0de0c6 | 938a089e9b5e876a3b48932274171da7a4e7aa42 | /bench/genesys2.py | 2332f797a6bd9cebe7f8ad88338e320f41377567 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | rprinz08/liteeth | aa94e0eb790ba571ea59e98697d11300a57b3d03 | dc10f82753efd236e1811a72c4be2c27cefd2c68 | refs/heads/master | 2023-07-18T17:17:06.441779 | 2021-09-10T08:06:47 | 2021-09-10T08:06:47 | 260,763,015 | 0 | 0 | NOASSERTION | 2020-05-02T19:47:32 | 2020-05-02T19:47:32 | null | UTF-8 | Python | false | false | 2,680 | py | #!/usr/bin/env python3
#
# This file is part of LiteEth.
#
# Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
import os
import argparse
from migen import *
from litex_boards.platforms import genesys2
from litex_boards.targets.genesys2 import _CRG
from litex.so... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
6387f24c6cee7a4d44c898fadc2886bc1358fc85 | cb3d1b072391b07ef0e9596df7f223f37683e970 | /[0333]_Largest_BST_Subtree/Largest_BST_Subtree.py | 20ac486fdae272035ca2cdb53f05e32e45ab550b | [] | no_license | kotori233/LeetCode | 99620255a64c898457901602de5db150bc35aabb | 996f9fcd26326db9b8f49078d9454fffb908cafe | refs/heads/master | 2021-09-10T18:00:56.968949 | 2018-03-30T14:38:27 | 2018-03-30T14:38:27 | 103,036,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def largestBSTSubtree(self, root):
"""
:type root: TreeNode
:rtype: int
"""
sel... | [
"cycycy3333@163.com"
] | cycycy3333@163.com |
dbc0c27afd8670f2879a4311628eb29b3134a236 | b0ba1585b2f65b2ba0ce98d4186d1d33b91f27cb | /src/containerapp/azext_containerapp/containerapp_decorator.py | 243d3be45515bfeec28eb8c29d18137123008b91 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | anagg929/azure-cli-extensions | dce128c9a5105a2c5f510081ec0f521cf5720b55 | ec02d4c83bd8d5ece829abd75b3030142c67aa3a | refs/heads/main | 2023-09-03T19:43:24.099198 | 2023-08-29T12:57:13 | 2023-08-29T12:57:13 | 299,980,394 | 0 | 0 | MIT | 2020-09-30T16:21:59 | 2020-09-30T16:21:58 | null | UTF-8 | Python | false | false | 77,574 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | anagg929.noreply@github.com |
4fccc4958d08996a263601b37e9b8b1a85416c19 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /stackoverflow_site__parsing/print__datetime_utc_and_reputation_change__with_missing_dates.py | 00e9926585256ee0385b09771cb3e87d0bf1e62c | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import datetime as DT
def generate_range_dates(start_date, end_date) -> list:
date_1 = min(start_date, end_date)
date_2 = max(start_date, end_date)
# Сразу добавляем стартовую дату
items = [date_1]
while date_1 < date_2:
... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
4bdba1ed302a07e95891189723cb8e02be46a173 | 8806a17d66d7abb8434c879215dc09cbfc3b5a25 | /bin/log.py | 02e6764c09facc7e70ec062e7792b50d468208ef | [] | no_license | chenrun666/JW_purchase | f23d1719f447be669134c8fc02b1b8fd9d82cba8 | 9552920259f4014a08b38db88d0d48f0864822d3 | refs/heads/master | 2020-04-25T20:44:06.403805 | 2019-03-09T10:05:19 | 2019-03-09T10:05:19 | 173,057,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,963 | py | # coding:utf-8
import logging
from logging.handlers import RotatingFileHandler # 按文件大小滚动备份
import colorlog # 控制台日志输入颜色
import time
import datetime
import os
cur_path = os.path.dirname(os.path.realpath(__file__)) # log_path是存放日志的路径
log_path = os.path.join(os.path.dirname(cur_path), 'logs')
if not os.path.exists(log_... | [
"17610780919@163.com"
] | 17610780919@163.com |
76f0db3ff3eb3950c75953ea5619bbcd4e1ee88c | 113bfeda578324908963307670718c5545f30e8b | /booksite/booksite/book/migrations/0011_auto_20171205_1611.py | c4e55389b90cee0a19f1960233318db14ed070c8 | [
"Apache-2.0"
] | permissive | tkliuxing/bookspider | f0989814716e38fa081cc300f92fc975ff8ac67d | bc7ba487f0ab6ea7782f5093bb1d074eac662bdf | refs/heads/master | 2021-01-18T23:31:26.566892 | 2020-03-14T04:04:48 | 2020-03-14T04:04:48 | 21,845,464 | 40 | 36 | null | 2015-11-06T03:58:04 | 2014-07-15T03:51:01 | CSS | UTF-8 | Python | false | false | 426 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-12-05 08:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('book', '0010_auto_20171205_1436'),
]
operations = [
migrations.AlterUniqueTogether(
... | [
"ouyanghongyu@gmail.com"
] | ouyanghongyu@gmail.com |
67a841ac1879780cf4fb03786cd5b1d6924639eb | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/sympy/physics/mechanics/system.py | b82288bed1b78b4314a676d5a08789aa26293f22 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 18,663 | py | from sympy.core.backend import eye, Matrix, zeros
from sympy.physics.mechanics import dynamicsymbols
from sympy.physics.mechanics.functions import find_dynamicsymbols
__all__ = ['SymbolicSystem']
class SymbolicSystem(object):
"""SymbolicSystem is a class that contains all the information about a
system in a ... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
46b39b7702a9141219f94da8c8bd28f61995ddac | 60c4255fb0cf7ed817ff09d8113bf404cde8e12b | /env/lib/python2.7/site-packages/django/db/models/fields/related.py | 097b33363a2c3931424d17747bbaba9e3fa56da9 | [] | no_license | adamjberg/finna-be-octo-ninja | 83aba13f619d4fbfb5308e48336917f0ada0459d | cf16bfcb3d7bb4e878ba0b99ad701b5cda8be34c | refs/heads/master | 2021-01-10T20:19:20.849476 | 2014-01-11T05:42:23 | 2014-01-11T05:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,415 | py | from operator import attrgetter
from django.db import connection, connections, router
from django.db.backends import util
from django.db.models import signals, get_model
from django.db.models.fields import (AutoField, Field, IntegerField,
PositiveIntegerField, PositiveSmallIntegerField, FieldDoesNotExist)
f... | [
"ilikecattle@gmail.com"
] | ilikecattle@gmail.com |
e51ce24cc9abf704617483f76ca2cd74285aeb65 | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/VanderPlas17Python/E_Chapter4/N_ThreeDimensionalPlotting/A_ThreeDimensionalPoints/index.py | 0b8df9722eaab651824247c3bb62acae5f54c7eb | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.HierBlock import HierBlock as hbk
from modules.node.block.ImageBlock ... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
8a501952490fa9d33985f24cf23aa7cb69298554 | 452be58b4c62e6522724740cac332ed0fe446bb8 | /src/starboard/android/shared/gyp_configuration.gypi | 12dd79875f4d6246ee3cd44f16732f163bbd4628 | [
"Apache-2.0"
] | permissive | blockspacer/cobalt-clone-cab7770533804d582eaa66c713a1582f361182d3 | b6e802f4182adbf6a7451a5d48dc4e158b395107 | 0b72f93b07285f3af3c8452ae2ceaf5860ca7c72 | refs/heads/master | 2020-08-18T11:32:21.458963 | 2019-10-17T13:09:35 | 2019-10-17T13:09:35 | 215,783,613 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,374 | gypi | # Copyright 2016 The Cobalt 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 applicable ... | [
"trofimov_d_a@magnit.ru"
] | trofimov_d_a@magnit.ru |
6914467b4e480fb1fed13898dda10452a6241fef | 51b6d2fc53d5c632fcf01319842baebf13901e84 | /atcoder.jp/arc032/arc032_1/Main.py | 66bb6d66546bb0ff6cd9f30580c3f42ba9e3c722 | [] | no_license | mono-0812/procon | 35db3b2c21eff74fbd7b52db07f249380f6834ef | 68a4b53880a228a0164052b23d1326363efcbc20 | refs/heads/master | 2023-05-30T17:02:58.935074 | 2021-06-27T12:15:10 | 2021-06-27T12:15:10 | 345,896,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | n = int(input())
val = 0
for i in range(1,n+1):
val += i
for i in range(2,val//2):
if val%i == 0:
print("BOWWOW")
exit()
if val == 1:
print("BOWWOW")
exit()
print("WANWAN") | [
"frisk02.jar@gmail.com"
] | frisk02.jar@gmail.com |
8e0ec5c953585aa962691f0bce2d260c8e78caa8 | 11c036911cf893325199d9e9a91a11cd1dca7c90 | /all-paths-from-source-to-target/solution.py | 1fd9a15570b8173bfb5bd501c9d9b6d36d73959b | [] | no_license | arpiagar/HackerEarth | 34f817f69e94d88657c1d8991a55aca302cdc890 | 4a94f1b11a353ab6b2837a1ac77bfbd7c91f91d2 | refs/heads/master | 2021-07-18T14:23:05.124943 | 2021-02-09T21:58:12 | 2021-02-09T21:58:12 | 19,204,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | #https://leetcode.com/problems/all-paths-from-source-to-target/submissions/
class Solution:
def allPathsSourceTarget(self, graph: List[List[int]]) -> List[List[int]]:
adj_map ={}
for i in range(len(graph)):
adj_map[i] = graph[i]
start = 0
out = []
self.findpath(... | [
"arpit.agarwal@booking.com"
] | arpit.agarwal@booking.com |
2f529daab804ec0cba2e66c17c9fb00762f77f1f | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/MSSM_HiggsToMuMu/fragment_mhmodp_MA110_tb14_ggA.py | c41e893213325a4ae34cac52e2ac1bfb82a44725 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 16,290 | py | COM_ENERGY = 13000.0 # GeV
CROSS_SECTION = 1 # pb
PROCESS = 'HiggsBSM:gg2A3 = on'
SLHA_TABLE = """BLOCK SPINFO
1 FeynHiggs
2 2.12.0
2 built on ott 13, 2016
BLOCK MODSEL
1 0 # Model
2 1 # GridPts
3 0 # Content
... | [
"pietro.vischia@gmail.com"
] | pietro.vischia@gmail.com |
6416ddb447a7ceb30781bc3de024bd452393023a | 12c15c7ae150acaf8032f444db24440da2234b1a | /ArtificialIntelligence/DOCUMENTATION/Project2_Jimut/valueIterationAgents.py | 84b978c8e5c524d6638932a24ece1a152f975751 | [] | no_license | Jimut123/rkmveri-labs | 315ecd4607af72dd0851489e427a3ab09a8009ff | be19a453ea32460c454e3443798e3d8954fb084b | refs/heads/master | 2023-02-02T17:11:23.641187 | 2020-12-13T18:35:20 | 2020-12-13T18:35:20 | 201,784,550 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,614 | py | # valueIterationAgents.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to ht... | [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.